vendor: 4,515 bytes, lines 1-10
1var kf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zm(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var OO={exports:{}},Od={exports:{}};/*! 2 * jQuery JavaScript Library v3.7.0 3 * https://jquery.com/ 4 * 5 * Copyright OpenJS Foundation and other contributors 6 * Released under the MIT license 7 * https://jquery.org/license 8 * 9 * Date: 2023-05-11T18:29Z 10 */var ng;function bO(){return ng||(ng=1,function(o){(function(t,e){o.exports=t.document?e(t,!0):function(i){if(!i.document)throw new Error("jQuery requires a window with a document");return e(i)}})(typeof window<"u"?window:kf,function(t,e){var i=[],r=Object.getPrototypeOf,n=i.slice,s=i.flat?function(d){return i.flat.call(d)}:function(d){return i.concat.apply([],d)},a=i.push,l=i.indexOf,u={},c=u.toString,p=u.hasOwnProperty,f=p.toString,v=f.call(Object),y={},w=function(h){return typeof h=="function"&&typeof h.nodeType!="number"&&typeof h.item!="function"},b=function(h){return h!=null&&h===h.window},O=t.document,A={type:!0,src:!0,nonce:!0,noModule:!0};function P(d,h,m){m=m||O;var C,S,_=m.createElement("script");if(_.text=d,h)for(C in A)S=h[C]||h.getAttribute&&h.getAttribute(C),S&&_.setAttribute(C,S);m.head.appendChild(_).parentNode.removeChild(_)}function L(d){return d==null?d+"":typeof d=="object"||typeof d=="function"?u[c.call(d)]||"object":typeof d}var x="3.7.0",H=/HTML$/i,g=function(d,h){return new g.fn.init(d,h)};g.fn=g.prototype={jquery:x,constructor:g,length:0,toArray:function(){return n.call(this)},get:function(d){return d==null?n.call(this):d<0?this[d+this.length]:this[d]},pushStack:function(d){var h=g.merge(this.constructor(),d);return h.prevObject=this,h},each:function(d){return g.each(this,d)},map:function(d){return this.pushStack(g.map(this,function(h,m){return d.call(h,m,h)}))},slice:function(){return this.pushStack(n.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(g.grep(this,function(d,h){return(h+1)%2}))},odd:function(){return this.pushStack(g.grep(this,function(d,h){return h%2}))},eq:function(d){var h=this.length,m=+d+(d<0?h:0);return this.pushStack(m>=0&&m<h?[this[m]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:i.sort,splice:i.splice},g.extend=g.fn.extend=function(){var d,h,m,C,S,_,R=arguments[0]||{},M=1,F=arguments.length,B=!1;for(typeof R=="boolean"&&(B=R,R=arguments[M]||{},M++),typeof R!="object"&&!w(R)&&(R={}),M===F&&(R=this,M--);M<F;M++)if((d=arguments[M])!=null)for(h in d)C=d[h],!(h==="__proto__"||R===C)&&(B&&C&&(g.isPlainObject(C)||(S=Array.isArray(C)))?(m=R[h],S&&!Array.isArray(m)?_=[]:!S&&!g.isPlainObject(m)?_={}:_=m,S=!1,R[h]=g.extend(B,_,C)):C!==void 0&&(R[h]=C));return R},g.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(d){throw new Error(d)},noop:function(){},isPlainObject:function(d){var h,m;return!d||c.call(d)!=="[object Object]"?!1:(h=r(d),h?(m=p.call(h,"constructor")&&h.constructor,typeof m=="function"&&f.call(m)===v):!0)},isEmptyObject:function(d){var h;for(h in d)return!1;return!0},globalEval:function(d,h,m){P(d,{nonce:h&&h.nonce},m)},each:function(d,h){var m,C=0;if(N(d))for(m=d.length;C<m&&h.call(d[C],C,d[C])!==!1;C++);else for(C in d)if(h.call(d[C],C,d[C])===!1)break;return d},text:function(d){var h,m="",C=0,S=d.nodeType;if(S){if(S===1||S===9||S===11)return d.textContent;if(S===3||S===4)return d.nodeValue}else for(;h=d[C++];)m+=g.text(h);return m},makeArray:function(d,h){var m=h||[];return d!=null&&(N(Object(d))?g.merge(m,typeof d=="string"?[d]:d):a.call(m,d)),m},inArray:function(d,h,m){return h==null?-1:l.call(h,d,m)},isXMLDoc:function(d){var h=d&&d.namespaceURI,m=d&&(d.ownerDocument||d).documentElement;return!H.test(h||m&&m.nodeName||"HTML")},merge:function(d,h){for(var m=+h.length,C=0,S=d.length;C<m;C++)d[S++]=h[C];return d.length=S,d},grep:function(d,h,m){for(var C,S=[],_=0,R=d.length,M=!m;_<R;_++)C=!h(d[_],_),C!==M&&S.push(d[_]);return S},map:function(d,h,m){var C,S,_=0,R=[];if(N(d))for(C=d.length;_<C;_++)S=h(d[_],_,m),S!=null&&R.push(S);else for(_ in d)S=h(d[_],_,m),S!=null&&R.push(S);return s(R)},guid:1,support:y}),typeof Symbol=="function"&&(g.fn[Symbol.iterator]=i[Symbol.iterator]),g.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(d,h){u["[object "+h+"]"]=h.toLowerCase()});function N(d){var h=!!d&&"length"in d&&d.length,m=L(d);
10return w(d)||b(d)?!1:m==="array"||h===0||typeof h=="number"&&h>0&&h-1 in d}function V(d,h){return d.nodeName&&d.nodeName.toLowerCase()===h.toLowerCase()}var z=i.pop,I=i.sort,k=i.splice,j="[\\x20\\t\\r\\n\\f]",X=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g");g.contains=function(d,h){var m=h&&h.parentNode;return d===m||!!(m&&m.nodeType===1&&(d.contains?d.contains(m):d.compareDocumentPosition&&d.compareDocumentPosition(m)&16))};var re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function ge(d,h){return h?d==="\0"?"�":d.slice(0,-1)+"\\"+d.charCodeAt(d.length-1).toString(16)+" ":"\\"+d}g.escapeSelector=function(d){return(d+"").replace(re,ge)};var ae=O,ve=a;(function(){var d,h,m,C,S,_=ve,R,M,F,B,Y,Z=g.expando,$=0,le=0,je=Ml(),lt=Ml(),Xe=Ml(),Vt=Ml(),Ft=function(D,G){return D===G&&(S=!0),0},ur="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",cr="(?:\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",rt="\\["+j+"*("+cr+")(?:"+j+"*([*^$|!~]?=)"+j+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+cr+"))|)"+j+"*\\]",qn=":("+cr+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+rt+")*)|.*)\\)|)",ut=new RegExp(j+"+","g"),Et=new RegExp("^"+j+"*,"+j+"*"),Qs=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),yd=new RegExp(j+"|>"),dr=new RegExp(qn),Js=new RegExp("^"+cr+"$"),pr={ID:new RegExp("^#("+cr+")"),CLASS:new RegExp("^\\.("+cr+")"),TAG:new RegExp("^("+cr+"|[*])"),ATTR:new RegExp("^"+rt),PSEUDO:new RegExp("^"+qn),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+ur+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},on=/^(?:input|select|textarea|button)$/i,sn=/^h\d$/i,Fi=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,md=/[+~]/,Gr=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\r\\n\\f])","g"),Hr=function(D,G){var U="0x"+D.slice(1)-65536;return G||(U<0?String.fromCharCode(U+65536):String.fromCharCode(U>>10|55296,U&1023|56320))},yO=function(){an()},mO=Nl(function(D){return D.disabled===!0&&V(D,"fieldset")},{dir:"parentNode",next:"legend"});function CO(){try{return R.activeElement}catch{}}try{_.apply(i=n.call(ae.childNodes),ae.childNodes),i[ae.childNodes.length].nodeType}catch{_={apply:function(G,U){ve.apply(G,n.call(U))},call:function(G){ve.apply(G,n.call(arguments,1))}}}function ft(D,G,U,K){var J,he,me,Te,Ce,et,ke,ze=G&&G.ownerDocument,tt=G?G.nodeType:9;if(U=U||[],typeof D!="string"||!D||tt!==1&&tt!==9&&tt!==11)return U;if(!K&&(an(G),G=G||R,F)){if(tt!==11&&(Ce=Fi.exec(D)))if(J=Ce[1]){if(tt===9)if(me=G.getElementById(J)){if(me.id===J)return _.call(U,me),U}else return U;else if(ze&&(me=ze.getElementById(J))&&ft.contains(G,me)&&me.id===J)return _.call(U,me),U}else{if(Ce[2])return _.apply(U,G.getElementsByTagName(D)),U;if((J=Ce[3])&&G.getElementsByClassName)return _.apply(U,G.getElementsByClassName(J)),U}if(!Vt[D+" "]&&(!B||!B.test(D))){if(ke=D,ze=G,tt===1&&(yd.test(D)||Qs.test(D))){for(ze=md.test(D)&&Cd(G.parentNode)||G,(ze!=G||!y.scope)&&((Te=G.getAttribute("id"))?Te=g.escapeSelector(Te):G.setAttribute("id",Te=Z)),et=Il(D),he=et.length;he--;)et[he]=(Te?"#"+Te:":scope")+" "+xl(et[he]);ke=et.join(",")}try{return _.apply(U,ze.querySelectorAll(ke)),U}catch{Vt(D,!0)}finally{Te===Z&&G.removeAttribute("id")}}}return rg(D.replace(X,"$1"),G,U,K)}function Ml(){var D=[];function G(U,K){return D.push(U+" ")>h.cacheLength&&delete G[D.shift()],G[U+" "]=K}return G}function Qi(D){return D[Z]=!0,D}function ko(D){var G=R.createElement("fieldset");try{return!!D(G)}catch{return!1}finally{G.parentNode&&G.parentNode.removeChild(G),G=null}}function wO(D){return function(G){return V(G,"input")&&G.type===D}}function SO(D){return function(G){return(V(G,"input")||V(G,"button"))&&G.type===D}}function tg(D){return function(G){return"form"in G?G.parentNode&&G.disabled===!1?"label"in G?"label"in G.parentNode?G.parentNode.disabled===D:G.disabled===D:G.isDisabled===D||G.isDisabled!==!D&&mO(G)===D:G.disabled===D:"label"in G?G.disabled===D:!1}}function Xn(D){return Qi(function(G){return G=+G,Qi(function(U,K){for(var J,he=D([],U.length,G),me=he.length;me--;)U[J=he[me]]&&(U[J]=!(K[J]=U[J]))})})}function Cd(D){return D&&typeof D.getElementsByTagName<"u"&&D}function an(D){var G,U=D?D.ownerDocument||D:ae;return U==R||U.nodeType!==9||!U.documentElement||(R=U,M=R.documentElement,F=!g.isXMLDoc(R),Y=M.matches||M.webkitMatchesSelector||M.msMatchesSelector,ae!=R&&(G=R.defaultView)&&G.top!==G&&G.addEventListener("unload",yO),y.getById=ko(function(K){return M.appendChild(K).id=g.expando,!R.getElementsByName||!R.getElementsByName(g.expando).length}),y.disconnectedMatch=ko(function(K){return Y.call(K,"*")}),y.scope=ko(function(){return R.querySelectorAll(":scope")}),y.cssHas=ko(function(){try{return R.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),y.getById?(h.filter.ID=function(K){var J=K.replace(Gr,Hr);return function(he){return he.getAttribute("id")===J}},h.find.ID=function(K,J){if(typeof J.getElementById<"u"&&F){var he=J.getElementById(K);return he?[he]:[]}}):(h.filter.ID=function(K){var J=K.replace(Gr,Hr);return function(he){var me=typeof he.getAttributeNode<"u"&&he.getAttributeNode("id");return me&&me.value===J}},h.find.ID=function(K,J){if(typeof J.getElementById<"u"&&F){var he,me,Te,Ce=J.getElementById(K);if(Ce){if(he=Ce.getAttributeNode("id"),he&&he.value===K)return[Ce];for(Te=J.getElementsByName(K),me=0;Ce=Te[me++];)if(he=Ce.getAttributeNode("id"),he&&he.value===K)return[Ce]}return[]}}),h.find.TAG=function(K,J){return typeof J.getElementsByTagName<"u"?J.getElementsByTagName(K):J.querySelectorAll(K)},h.find.CLASS=function(K,J){if(typeof J.getElementsByClassName<"u"&&F)return J.getElementsByClassName(K)},B=[],ko(function(K){var J;M.appendChild(K).innerHTML="<a id='"+Z+"' href='' disabled='disabled'></a><select id='"+Z+"-\r\\' disabled='disabled'><option selected=''></option></select>",K.querySelectorAll("[selected]").length||B.push("\\["+j+"*(?:value|"+ur+")"),K.querySelectorAll("[id~="+Z+"-]").length||B.push("~="),K.querySelectorAll("a#"+Z+"+*").length||B.push(".#.+[+~]"),K.querySelectorAll(":checked").length||B.push(":checked"),J=R.createElement("input"),J.setAttribute("type","hidden"),K.appendChild(J).setAttribute("name","D"),M.appendChild(K).disabled=!0,K.querySelectorAll(":disabled").length!==2&&B.push(":enabled",":disabled"),J=R.createElement("input"),J.setAttribute("name",""),K.appendChild(J),K.querySelectorAll("[name='']").length||B.push("\\["+j+"*name"+j+"*="+j+`*(?:''|"")`)}),y.cssHas||B.push(":has"),B=B.length&&new RegExp(B.join("|")),Ft=function(K,J){if(K===J)return S=!0,0;var he=!K.compareDocumentPosition-!J.compareDocumentPosition;return he||(he=(K.ownerDocument||K)==(J.ownerDocument||J)?K.compareDocumentPosition(J):1,he&
vendor: 19,194 bytes, line 10
101||!y.sortDetached&&J.compareDocumentPosition(K)===he?K===R||K.ownerDocument==ae&&ft.contains(ae,K)?-1:J===R||J.ownerDocument==ae&&ft.contains(ae,J)?1:C?l.call(C,K)-l.call(C,J):0:he&4?-1:1)}),R}ft.matches=function(D,G){return ft(D,null,null,G)},ft.matchesSelector=function(D,G){if(an(D),F&&!Vt[G+" "]&&(!B||!B.test(G)))try{var U=Y.call(D,G);if(U||y.disconnectedMatch||D.document&&D.document.nodeType!==11)return U}catch{Vt(G,!0)}return ft(G,R,null,[D]).length>0},ft.contains=function(D,G){return(D.ownerDocument||D)!=R&&an(D),g.contains(D,G)},ft.attr=function(D,G){(D.ownerDocument||D)!=R&&an(D);var U=h.attrHandle[G.toLowerCase()],K=U&&p.call(h.attrHandle,G.toLowerCase())?U(D,G,!F):void 0;return K!==void 0?K:D.getAttribute(G)},ft.error=function(D){throw new Error("Syntax error, unrecognized expression: "+D)},g.uniqueSort=function(D){var G,U=[],K=0,J=0;if(S=!y.sortStable,C=!y.sortStable&&n.call(D,0),I.call(D,Ft),S){for(;G=D[J++];)G===D[J]&&(K=U.push(J));for(;K--;)k.call(D,U[K],1)}return C=null,D},g.fn.uniqueSort=function(){return this.pushStack(g.uniqueSort(n.apply(this)))},h=g.expr={cacheLength:50,createPseudo:Qi,match:pr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(D){return D[1]=D[1].replace(Gr,Hr),D[3]=(D[3]||D[4]||D[5]||"").replace(Gr,Hr),D[2]==="~="&&(D[3]=" "+D[3]+" "),D.slice(0,4)},CHILD:function(D){return D[1]=D[1].toLowerCase(),D[1].slice(0,3)==="nth"?(D[3]||ft.error(D[0]),D[4]=+(D[4]?D[5]+(D[6]||1):2*(D[3]==="even"||D[3]==="odd")),D[5]=+(D[7]+D[8]||D[3]==="odd")):D[3]&&ft.error(D[0]),D},PSEUDO:function(D){var G,U=!D[6]&&D[2];return pr.CHILD.test(D[0])?null:(D[3]?D[2]=D[4]||D[5]||"":U&&dr.test(U)&&(G=Il(U,!0))&&(G=U.indexOf(")",U.length-G)-U.length)&&(D[0]=D[0].slice(0,G),D[2]=U.slice(0,G)),D.slice(0,3))}},filter:{TAG:function(D){var G=D.replace(Gr,Hr).toLowerCase();return D==="*"?function(){return!0}:function(U){return V(U,G)}},CLASS:function(D){var G=je[D+" "];return G||(G=new RegExp("(^|"+j+")"+D+"("+j+"|$)"))&&je(D,function(U){return G.test(typeof U.className=="string"&&U.className||typeof U.getAttribute<"u"&&U.getAttribute("class")||"")})},ATTR:function(D,G,U){return function(K){var J=ft.attr(K,D);return J==null?G==="!=":G?(J+="",G==="="?J===U:G==="!="?J!==U:G==="^="?U&&J.indexOf(U)===0:G==="*="?U&&J.indexOf(U)>-1:G==="$="?U&&J.slice(-U.length)===U:G==="~="?(" "+J.replace(ut," ")+" ").indexOf(U)>-1:G==="|="?J===U||J.slice(0,U.length+1)===U+"-":!1):!0}},CHILD:function(D,G,U,K,J){var he=D.slice(0,3)!=="nth",me=D.slice(-4)!=="last",Te=G==="of-type";return K===1&&J===0?function(Ce){return!!Ce.parentNode}:function(Ce,et,ke){var ze,tt,Ne,vt,Zt,jt=he!==me?"nextSibling":"previousSibling",Mi=Ce.parentNode,fr=Te&&Ce.nodeName.toLowerCase(),Bo=!ke&&!Te,$t=!1;if(Mi){if(he){for(;jt;){for(Ne=Ce;Ne=Ne[jt];)if(Te?V(Ne,fr):Ne.nodeType===1)return!1;Zt=jt=D==="only"&&!Zt&&"nextSibling"}return!0}if(Zt=[me?Mi.firstChild:Mi.lastChild],me&&Bo){for(tt=Mi[Z]||(Mi[Z]={}),ze=tt[D]||[],vt=ze[0]===$&&ze[1],$t=vt&&ze[2],Ne=vt&&Mi.childNodes[vt];Ne=++vt&&Ne&&Ne[jt]||($t=vt=0)||Zt.pop();)if(Ne.nodeType===1&&++$t&&Ne===Ce){tt[D]=[$,vt,$t];break}}else if(Bo&&(tt=Ce[Z]||(Ce[Z]={}),ze=tt[D]||[],vt=ze[0]===$&&ze[1],$t=vt),$t===!1)for(;(Ne=++vt&&Ne&&Ne[jt]||($t=vt=0)||Zt.pop())&&!((Te?V(Ne,fr):Ne.nodeType===1)&&++$t&&(Bo&&(tt=Ne[Z]||(Ne[Z]={}),tt[D]=[$,$t]),Ne===Ce)););return $t-=J,$t===K||$t%K===0&&$t/K>=0}}},PSEUDO:function(D,G){var U,K=h.pseudos[D]||h.setFilters[D.toLowerCase()]||ft.error("unsupported pseudo: "+D);return K[Z]?K(G):K.length>1?(U=[D,D,"",G],h.setFilters.hasOwnProperty(D.toLowerCase())?Qi(function(J,he){for(var me,Te=K(J,G),Ce=Te.length;Ce--;)me=l.call(J,Te[Ce]),J[me]=!(he[me]=Te[Ce])}):function(J){return K(J,0,U)}):K}},pseudos:{not:Qi(function(D){var G=[],U=[],K=_d(D.replace(X,"$1"));return K[Z]?Qi(function(J,he,me,Te){for(var Ce,et=K(J,null,Te,[]),ke=J.length;ke--;)(Ce=et[ke])&&(J[ke]=!(he[ke]=Ce))}):function(J,he,me){return G[0]=J,K(G,null,me,U),G[0]=null,!U.pop()}}),has:Qi(function(D){return function(G){return ft(D,G).length>0}}),contains:Qi(function(D){return D=D.replace(Gr,Hr),function(G){return(G.textContent||g.text(G)).indexOf(D)>-1}}),lang:Qi(function(D){return Js.test(D||"")||ft.error("unsupported lang: "+D),D=D.replace(Gr,Hr).toLowerCase(),function(G){var U;do if(U=F?G.lang:G.getAttribute("xml:lang")||G.getAttribute("lang"))return U=U.toLowerCase(),U===D||U.indexOf(D+"-")===0;while((G=G.parentNode)&&G.nodeType===1);return!1}}),target:function(D){var G=t.location&&t.location.hash;return G&&G.slice(1)===D.id},root:function(D){return D===M},focus:function(D){return D===CO()&&R.hasFocus()&&!!(D.type||D.href||~D.tabIndex)},enabled:tg(!1),disabled:tg(!0),checked:function(D){return V(D,"input")&&!!D.checked||V(D,"option")&&!!D.selected},selected:function(D){return D.parentNode&&D.parentNode.selectedIndex,D.selected===!0},empty:function(D){for(D=D.firstChild;D;D=D.nextSibling)if(D.nodeType<6)return!1;return!0},parent:function(D){return!h.pseudos.empty(D)},header:function(D){return sn.test(D.nodeName)},input:function(D){return on.test(D.nodeName)},button:function(D){return V(D,"input")&&D.type==="button"||V(D,"button")},text:function(D){var G;return V(D,"input")&&D.type==="text"&&((G=D.getAttribute("type"))==null||G.toLowerCase()==="text")},first:Xn(function(){return[0]}),last:Xn(function(D,G){return[G-1]}),eq:Xn(function(D,G,U){return[U<0?U+G:U]}),even:Xn(function(D,G){for(var U=0;U<G;U+=2)D.push(U);return D}),odd:Xn(function(D,G){for(var U=1;U<G;U+=2)D.push(U);return D}),lt:Xn(function(D,G,U){var K;for(U<0?K=U+G:U>G?K=G:K=U;--K>=0;)D.push(K);return D}),gt:Xn(function(D,G,U){for(var K=U<0?U+G:U;++K<G;)D.push(K);return D})}},h.pseudos.nth=h.pseudos.eq;for(d in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})h.pseudos[d]=wO(d);for(d in{submit:!0,reset:!0})h.pseudos[d]=SO(d);function ig(){}ig.prototype=h.filters=h.pseudos,h.setFilters=new ig;function Il(D,G){var U,K,J,he,me,Te,Ce,et=lt[D+" "];if(et)return G?0:et.slice(0);for(me=D,Te=[],Ce=h.preFilter;me;){(!U||(K=Et.exec(me)))&&(K&&(me=me.slice(K[0].length)||me),Te.push(J=[])),U=!1,(K=Qs.exec(me))&&(U=K.shift(),J.push({value:U,type:K[0].replace(X," ")}),me=me.slice(U.length));for(he in h.filter)(K=pr[he].exec(me))&&(!Ce[he]||(K=Ce[he](K)))&&(U=K.shift(),J.push({value:U,type:he,matches:K}),me=me.slice(U.length));if(!U)break}return G?me.length:me?ft.error(D):lt(D,Te).slice(0)}function xl(D){for(var G=0,U=D.length,K="";G<U;G++)K+=D[G].value;return K}function Nl(D,G,U){var K=G.dir,J=G.next,he=J||K,me=U&&he==="parentNode",Te=le++;return G.first?function(Ce,et,ke){for(;Ce=Ce[K];)if(Ce.nodeType===1||me)return D(Ce,et,ke);return!1}:function(Ce,et,ke){var ze,tt,Ne=[$,Te];if(ke){for(;Ce=Ce[K];)if((Ce.nodeType===1||me)&&D(Ce,et,ke))return!0}else for(;Ce=Ce[K];)if(Ce.nodeType===1||me)if(tt=Ce[Z]||(Ce[Z]={}),J&&V(Ce,J))Ce=Ce[K]||Ce;else{if((ze=tt[he])&&ze[0]===$&&ze[1]===Te)return Ne[2]=ze[2];if(tt[he]=Ne,Ne[2]=D(Ce,et,ke))return!0}return!1}}function wd(D){return D.length>1?function(G,U,K){for(var J=D.length;J--;)if(!D[J](G,U,K))return!1;return!0}:D[0]}function EO(D,G,U){for(var K=0,J=G.length;K<J;K++)ft(D,G[K],U);return U}function Gl(D,G,U,K,J){for(var he,me=[],Te=0,Ce=D.length,et=G!=null;Te<Ce;Te++)(he=D[Te])&&(!U||U(he,K,J))&&(me.push(he),et&&G.push(Te));return me}function Sd(D,G,U,K,J,he){return K&&!K[Z]&&(K=Sd(K)),J&&!J[Z]&&(J=Sd(J,he)),Qi(function(me,Te,Ce,et){var ke,ze,tt,Ne,vt=[],Zt=[],jt=Te.length,Mi=me||EO(G||"*",Ce.nodeType?[Ce]:Ce,[]),fr=D&&(me||!G)?Gl(Mi,vt,D,Ce,et):Mi;if(U?(Ne=J||(me?D:jt||K)?[]:Te,U(fr,Ne,Ce,et)):Ne=fr,K)for(ke=Gl(Ne,Zt),K(ke,[],Ce,et),ze=ke.length;ze--;)(tt=ke[ze])&&(Ne[Zt[ze]]=!(fr[Zt[ze]]=tt));if(me){if(J||D){if(J){for(ke=[],ze=Ne.length;ze--;)(tt=Ne[ze])&&ke.push(fr[ze]=tt);J(null,Ne=[],ke,et)}for(ze=Ne.length;ze--;)(tt=Ne[ze])&&(ke=J?l.call(me,tt):vt[ze])>-1&&(me[ke]=!(Te[ke]=tt))}}else Ne=Gl(Ne===Te?Ne.splice(jt,Ne.length):Ne),J?J(null,Te,Ne,et):_.apply(Te,Ne)})}function Ed(D){for(var G,U,K,J=D.length,he=h.relative[D[0].type],me=he||h.relative[" "],Te=he?1:0,Ce=Nl(function(ze){return ze===G},me,!0),et=Nl(function(ze){return l.call(G,ze)>-1},me,!0),ke=[function(ze,tt,Ne){var vt=!he&&(Ne||tt!=m)||((G=tt).nodeType?Ce(ze,tt,Ne):et(ze,tt,Ne));return G=null,vt}];Te<J;Te++)if(U=h.relative[D[Te].type])ke=[Nl(wd(ke),U)];else{if(U=h.filter[D[Te].type].apply(null,D[Te].matches),U[Z]){for(K=++Te;K<J&&!h.relative[D[K].type];K++);return Sd(Te>1&&wd(ke),Te>1&&xl(D.slice(0,Te-1).concat({value:D[Te-2].type===" "?"*":""})).replace(X,"$1"),U,Te<K&&Ed(D.slice(Te,K)),K<J&&Ed(D=D.slice(K)),K<J&&xl(D))}ke.push(U)}return wd(ke)}function _O(D,G){var U=G.length>0,K=D.length>0,J=function(he,me,Te,Ce,et){var ke,ze,tt,Ne=0,vt="0",Zt=he&&[],jt=[],Mi=m,fr=he||K&&h.find.TAG("*",et),Bo=$+=Mi==null?1:Math.random()||.1,$t=fr.length;for(et&&(m=me==R||me||et);vt!==$t&&(ke=fr[vt])!=null;vt++){if(K&&ke){for(ze=0,!me&&ke.ownerDocument!=R&&(an(ke),Te=!F);tt=D[ze++];)if(tt(ke,me||R,Te)){_.call(Ce,ke);break}et&&($=Bo)}U&&((ke=!tt&&ke)&&Ne--,he&&Zt.push(ke))}if(Ne+=vt,U&&vt!==Ne){for(ze=0;tt=G[ze++];)tt(Zt,jt,me,Te);if(he){if(Ne>0)for(;vt--;)Zt[vt]||jt[vt]||(jt[vt]=z.call(Ce));jt=Gl(jt)}_.apply(Ce,jt),et&&!he&&jt.length>0&&Ne+G.length>1&&g.uniqueSort(Ce)}return et&&($=Bo,m=Mi),Zt};return U?Qi(J):J}function _d(D,G){var U,K=[],J=[],he=Xe[D+" "];if(!he){for(G||(G=Il(D)),U=G.length;U--;)he=Ed(G[U]),he[Z]?K.push(he):J.push(he);he=Xe(D,_O(J,K)),he.selector=D}return he}function rg(D,G,U,K){var J,he,me,Te,Ce,et=typeof D=="function"&&D,ke=!K&&Il(D=et.selector||D);if(U=U||[],ke.length===1){if(he=ke[0]=ke[0].slice(0),he.length>2&&(me=he[0]).type==="ID"&&G.nodeType===9&&F&&h.relative[he[1].type]){if(G=(h.find.ID(me.matches[0].replace(Gr,Hr),G)||[])[0],G)et&&(G=G.parentNode);else return U;D=D.slice(he.shift().value.length)}for(J=pr.needsContext.test(D)?0:he.length;J--&&(me=he[J],!h.relative[Te=me.type]);)if((Ce=h.find[Te])&&(K=Ce(me.matches[0].replace(Gr,Hr),md.test(he[0].type)&&Cd(G.parentNode)||G))){if(he.splice(J,1),D=K.length&&xl(he),!D)return _.apply(U,K),U;break}}return(et||_d(D,ke))(K,G,!F,U,!G||md.test(D)&&Cd(G.parentNode)||G),U}y.sortStable=Z.split("").sort(Ft).join("")===Z,an(),y.sortDetached=ko(function(D){return D.compareDocumentPosition(R.createElement("fieldset"))&1}),g.find=ft,g.expr[":"]=g.expr.pseudos,g.unique=g.uniqueSort,ft.compile=_d,ft.select=rg,ft.setDocument=an,ft.escape=g.escapeSelector,ft.getText=g.text,ft.isXML=g.isXMLDoc,ft.selectors=g.expr,ft.support=g.support,ft.uniqueSort=g.uniqueSort})();var pe=function(d,h,m){for(var C=[],S=m!==void 0;(d=d[h])&&d.nodeType!==9;)if(d.nodeType===1){if(S&&g(d).is(m))break;C.push(d)}return C},ne=function(d,h){for(var m=[];d;d=d.nextSibling)d.nodeType===1&&d!==h&&m.push(d);return m},ye=g.expr.match.needsContext,Pe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Se(d,h,m){return w(h)?g.grep(d,function(C,S){return!!h.call(C,S,C)!==m}):h.nodeType?g.grep(d,function(C){return C===h!==m}):typeof h!="string"?g.grep(d,function(C){return l.call(h,C)>-1!==m}):g.filter(h,d,m)}g.filter=function(d,h,m){var C=h[0];return m&&(d=":not("+d+")"),h.length===1&&C.nodeType===1?g.find.matchesSelector(C,d)?[C]:[]:g.find.matches(d,g.grep(h,function(S){return S.nodeType===1}))},g.fn.extend({find:function(d){var h,m,C=this.length,S=this;if(typeof d!="string")return this.pushStack(g(d).filter(function(){for(h=0;h<C;h++)if(g.contains(S[h],this))return!0}));for(m=this.pushStack([]),h=0;h<C;h++)g.find(d,S[h],m);return C>1?g.uniqueSort(m):m},filter:function(d){return this.pushStack(Se(this,d||[],!1))},not:function(d){return this.pushStack(Se(this,d||[],!0))},is:function(d){return!!Se(this,typeof d=="string"&&ye.test(d)?g(d):d||[],!1).length}});var Ge,st=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ce=g.fn.init=function(d,h,m){var C,S;if(!d)return this;if(m=m||Ge,typeof d=="string")if(d[0]==="<"&&d[d.length-1]===">"&&d.length>=3?C=[null,d,null]:C=st.exec(d),C&&(C[1]||!h))if(C[1]){if(h=h instanceof g?h[0]:h,g.merge(this,g.parseHTML(C[1],h&&h.nodeType?h.ownerDocument||h:O,!0)),Pe.test(C[1])&&g.isPlainObject(h))for(C in h)w(this[C])?this[C](h[C]):this.attr(C,h[C]);return this}else return S=O.getElementById(C[2]),S&&(this[0]=S,this.length=1),this;else return!h||h.jquery?(h||m).find(d):this.constructor(h).find(d);else{if(d.nodeType)return this[0]=d,this.length=1,this;if(w(d))return m.ready!==void 0?m.ready(d):d(g)}return g.makeArray(d,this)};ce.prototype=g.fn,Ge=g(O);var xe=/^(?:parents|prev(?:Until|All))/,Ve={children:!0,contents:!0,next:!0,prev:!0};g.fn.extend({has:function(d){var h=g(d,this),m=h.length;return this.filter(function(){for(var C=0;C<m;C++)if(g.contains(this,h[C]))return!0})},closest:function(d,h){var m,C=0,S=this.length,_=[],R=typeof d!="string"&&g(d);if(!ye.test(d)){for(;C<S;C++)for(m=this[C];m&&m!==h;m=m.parentNode)if(m.nodeType<11&&(R?R.index(m)>-1:m.nodeType===1&&g.find.matchesSelector(m,d))){_.push(m);break}}return this.pushStack(_.length>1?g.uniqueSort(_):_)},index:function(d){return d?typeof d=="string"?l.call(g(d),this[0]):l.call(this,d.jquery?d[0]:d):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(d,h){return this.pushStack(g.uniqueSort(g.merge(this.get(),g(d,h))))},addBack:function(d){return this.add(d==null?this.prevObject:this.prevObject.filter(d))}});function Ue(d,h){for(;(d=d[h])&&d.nodeType!==1;);return d}g.each({parent:function(d){var h=d.parentNode;return h&&h.nodeType!==11?h:null},parents:function(d){return pe(d,"parentNode")},parentsUntil:function(d,h,m){return pe(d,"parentNode",m)},next:function(d){return Ue(d,"nextSibling")},prev:function(d){return Ue(d,"previousSibling")},nextAll:function(d){return pe(d,"nextSibling")},prevAll:function(d){return pe(d,"previousSibling")},nextUntil:function(d,h,m){return pe(d,"nextSibling",m)},prevUntil:function(d,h,m){return pe(d,"previousSibling",m)},siblings:function(d){return ne((d.parentNode||{}).firstChild,d)},children:function(d){return ne(d.firstChild)},contents:function(d){return d.contentDocument!=null&&r(d.contentDocument)?d.contentDocument:(V(d,"template")&&(d=d.content||d),g.merge([],d.childNodes))}},function(d,h){g.fn[d]=function(m,C){var S=g.map(this,h,m);return d.slice(-5)!=="Until"&&(C=m),C&&typeof C=="string"&&(S=g.filter(C,S)),this.length>1&&(Ve[d]||g.uniqueSort(S),xe.test(d)&&S.reverse()),this.pushStack(S)}});var qe=/[^\x20\t\r\n\f]+/g;function Ht(d){var h={};return g.each(d.match(qe)||[],function(m,C){h[C]=!0}),h}g.Callbacks=function(d){d=typeof d=="string"?Ht(d):g.extend({},d);var h,m,C,S,_=[],R=[],M=-1,F=function(){for(S=S||d.once,C=h=!0;R.length;M=-1)for(m=R.shift();++M<_.length;)_[M].apply(m[0],m[1])===!1&&d.stopOnFalse&&(M=_.length,m=!1);d.memory||(m=!1),h=!1,S&&(m?_=[]:_="")},B={add:function(){return _&&(m&&!h&&(M=_.length-1,R.push(m)),function Y(Z){g.each(Z,function($,le){w(le)?(!d.unique||!B.has(le))&&_.push(le):le&&le.length&&L(le)!=="string"&&Y(le)})}(arguments),m&&!h&&F()),this},remove:function(){return g.each(arguments,function(Y,Z){for(var $;($=g.inArray(Z,_,$))>-1;)_.splice($,1),$<=M&&M--}),this},has:function(Y){return Y?g.inArray(Y,_)>-1:_.length>0},empty:function(){return _&&(_=[]),this},disable:function(){return S=R=[],_=m="",this},disabled:function(){return!_},lock:function(){return S=R=[],!m&&!h&&(_=m=""),this},locked:function(){return!!S},fireWith:function(Y,Z){return S||(Z=Z||[],Z=[Y,Z.slice?Z.slice():Z],R.push(Z),h||F()),this},fire:function(){return B.fireWith(this,arguments),this},fired:function(){return!!C}};return B};function wt(d){return d}function de(d){throw d}function be(d,h,m,C){var S;try{d&&w(S=d.promise)?S.call(d).done(h).fail(m):d&&w(S=d.then)?S.call(d,h,m):h.apply(void 0,[d].slice(C))}catch(_){m.apply(void 0,[_])}}g.extend({Deferred:function(d){var h=[["notify","progress",g.Callbacks("memory"),g.Callbacks("memory"),2],["resolve","done",g.Callbacks("once memory"),g.Callbacks("once memory"),0,"resolved"],["reject","fail",g.Callbacks("once memory"),g.Callbacks("once memory"),1,"rejected"]],m="pending",C={state:function(){return m},always:function(){return S.done(arguments).fail(arguments),this},catch:function(_){return C.then(null,_)},pipe:function(){var _=arguments;return g.Deferred(function(R){g.each(h,function(M,F){var B=w(_[F[4]])&&_[F[4]];S[F[1]](function(){var Y=B&&B.apply(this,arguments);Y&&w(Y.promise)?Y.promise().progress(R.notify).done(R.resolve).fail(R.reject):R[F[0]+"With"](this,B?[Y]:arguments)})}),_=null}).promise()},then:function(_,R,M){var F=0;function B(Y,Z,$,le){return function(){var je=this,lt=arguments,Xe=function(){var Ft,ur;if(!(Y<F)){if(Ft=$.apply(je,lt),Ft===Z.promise())throw new TypeError("Thenable self-resolution");ur=Ft&&(typeof Ft=="object"||typeof Ft=="function")&&Ft.then,w(ur)?le?ur.call(Ft,B(F,Z,wt,le),B(F,Z,de,le)):(F++,ur.call(Ft,B(F,Z,wt,le),B(F,Z,de,le),B(F,Z,wt,Z.notifyWith))):($!==wt&&(je=void 0,lt=[Ft]),(le||Z.resolveWith)(je,lt))}},Vt=le?Xe:function(){try{Xe()}catch(Ft){g.Deferred.exceptionHook&&g.Deferred.exceptionHook(Ft,Vt.error),Y+1>=F&&($!==de&&(je=void 0,lt=[Ft]),Z.rejectWith(je,lt))}};Y?Vt():(g.Deferred.getErrorHook?Vt.error=g.Deferred.getErrorHook():g.Deferred.getStackHook&&(Vt.error=g.Deferred.getStackHook()),t.setTimeout(Vt))}}return g.Deferred(function(Y){h[0][3].add(B(0,Y,w(M)?M:wt,Y.notifyWith)),h[1][3].add(B(0,Y,w(_)?_:wt)),h[2][3].add(B(0,Y,w(R)?R:de))}).promise()},promise:function(_){return _!=null?g.extend(_,C):C}},S={};return g.each(h,function(_,R){var M=R[2],F=R[5];C[R[1]]=M.add,F&&M.add(function(){m=F},h[3-_][2].disable,h[3-_][3].disable,h[0][2].lock,h[0][3].lock),M.add(R[3].fire),S[R[0]]=function(){return S[R[0]+"With"](this===S?void 0:this,arguments),this},S[R[0]+"With"]=M.fireWith}),C.promise(S),d&&d.call(S,S),S},when:function(d){var h=arguments.length,m=h,C=Array(m),S=n.call(arguments),_=g.Deferred(),R=function(M){return function(F){C[M]=this,S[M]=arguments.length>1?n.call(arguments):F,--h||_.resolveWith(C,S)}};if(h<=1&&(be(d,_.done(R(m)).resolve,_.reject,!h),_.state()==="pending"||w(S[m]&&S[m].then)))return _.then();for(;m--;)be(S[m],R(m),_.reject);return _.promise()}});var dt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;g.Deferred.exceptionHook=function(d,h){t.console&&t.console.warn&&d&&dt.test(d.name)&&t.console.warn("jQuery.Deferred exception: "+d.message,d.stack,h)},g.readyException=function(d){t.setTimeout(function(){throw d})};var te=g.Deferred();g.fn.ready=function(d){return te.then(d).catch(function(h){g.readyException(h)}),this},g.extend({isReady:!1,readyWait:1,ready:function(d){(d===!0?--g.readyWait:g.isReady)||(g.isReady=!0,!(d!==!0&&--g.readyWait>0)&&te.resolveWith(O,[g]))}}),g.ready.then=te.then;function ue(){O.removeEventListener("DOMContentLoaded",ue),t.removeEventListener("load",ue),g.ready()}O.readyState==="complete"||O.readyState!=="loading"&&!O.documentElement.doScroll?t.setTimeout(g.ready):(O.addEventListener("DOMContentLoaded",ue),t.addEventListener("load",ue));var Ee=function(d,h,m,C,S,_,R){var M=0,F=d.length,B=m==null;if(L(m)==="object"){S=!0;for(M in m)Ee(d,h,M,m[M],!0,_,R)}else if(C!==void 0&&(S=!0,w(C)||(R=!0),B&&(R?(h.call(d,C),h=null):(B=h,h=function(Y,Z,$){return B.call(g(Y),$)})),h))for(;M<F;
vendor: 4,776 bytes, line 10
10M++)h(d[M],m,R?C:C.call(d[M],M,h(d[M],m)));return S?d:B?h.call(d):F?h(d[0],m):_},De=/^-ms-/,He=/-([a-z])/g;function Ae(d,h){return h.toUpperCase()}function Fe(d){return d.replace(De,"ms-").replace(He,Ae)}var Ze=function(d){return d.nodeType===1||d.nodeType===9||!+d.nodeType};function at(){this.expando=g.expando+at.uid++}at.uid=1,at.prototype={cache:function(d){var h=d[this.expando];return h||(h={},Ze(d)&&(d.nodeType?d[this.expando]=h:Object.defineProperty(d,this.expando,{value:h,configurable:!0}))),h},set:function(d,h,m){var C,S=this.cache(d);if(typeof h=="string")S[Fe(h)]=m;else for(C in h)S[Fe(C)]=h[C];return S},get:function(d,h){return h===void 0?this.cache(d):d[this.expando]&&d[this.expando][Fe(h)]},access:function(d,h,m){return h===void 0||h&&typeof h=="string"&&m===void 0?this.get(d,h):(this.set(d,h,m),m!==void 0?m:h)},remove:function(d,h){var m,C=d[this.expando];if(C!==void 0){if(h!==void 0)for(Array.isArray(h)?h=h.map(Fe):(h=Fe(h),h=h in C?[h]:h.match(qe)||[]),m=h.length;m--;)delete C[h[m]];(h===void 0||g.isEmptyObject(C))&&(d.nodeType?d[this.expando]=void 0:delete d[this.expando])}},hasData:function(d){var h=d[this.expando];return h!==void 0&&!g.isEmptyObject(h)}};var we=new at,ht=new at,xr=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,qi=/[A-Z]/g;function Us(d){return d==="true"?!0:d==="false"?!1:d==="null"?null:d===+d+""?+d:xr.test(d)?JSON.parse(d):d}function Ov(d,h,m){var C;if(m===void 0&&d.nodeType===1)if(C="data-"+h.replace(qi,"-$&").toLowerCase(),m=d.getAttribute(C),typeof m=="string"){try{m=Us(m)}catch{}ht.set(d,h,m)}else m=void 0;return m}g.extend({hasData:function(d){return ht.hasData(d)||we.hasData(d)},data:function(d,h,m){return ht.access(d,h,m)},removeData:function(d,h){ht.remove(d,h)},_data:function(d,h,m){return we.access(d,h,m)},_removeData:function(d,h){we.remove(d,h)}}),g.fn.extend({data:function(d,h){var m,C,S,_=this[0],R=_&&_.attributes;if(d===void 0){if(this.length&&(S=ht.get(_),_.nodeType===1&&!we.get(_,"hasDataAttrs"))){for(m=R.length;m--;)R[m]&&(C=R[m].name,C.indexOf("data-")===0&&(C=Fe(C.slice(5)),Ov(_,C,S[C])));we.set(_,"hasDataAttrs",!0)}return S}return typeof d=="object"?this.each(function(){ht.set(this,d)}):Ee(this,function(M){var F;if(_&&M===void 0)return F=ht.get(_,d),F!==void 0||(F=Ov(_,d),F!==void 0)?F:void 0;this.each(function(){ht.set(this,d,M)})},null,h,arguments.length>1,null,!0)},removeData:function(d){return this.each(function(){ht.remove(this,d)})}}),g.extend({queue:function(d,h,m){var C;if(d)return h=(h||"fx")+"queue",C=we.get(d,h),m&&(!C||Array.isArray(m)?C=we.access(d,h,g.makeArray(m)):C.push(m)),C||[]},dequeue:function(d,h){h=h||"fx";var m=g.queue(d,h),C=m.length,S=m.shift(),_=g._queueHooks(d,h),R=function(){g.dequeue(d,h)};S==="inprogress"&&(S=m.shift(),C--),S&&(h==="fx"&&m.unshift("inprogress"),delete _.stop,S.call(d,R,_)),!C&&_&&_.empty.fire()},_queueHooks:function(d,h){var m=h+"queueHooks";return we.get(d,m)||we.access(d,m,{empty:g.Callbacks("once memory").add(function(){we.remove(d,[h+"queue",m])})})}}),g.fn.extend({queue:function(d,h){var m=2;return typeof d!="string"&&(h=d,d="fx",m--),arguments.length<m?g.queue(this[0],d):h===void 0?this:this.each(function(){var C=g.queue(this,d,h);g._queueHooks(this,d),d==="fx"&&C[0]!=="inprogress"&&g.dequeue(this,d)})},dequeue:function(d){return this.each(function(){g.dequeue(this,d)})},clearQueue:function(d){return this.queue(d||"fx",[])},promise:function(d,h){var m,C=1,S=g.Deferred(),_=this,R=this.length,M=function(){--C||S.resolveWith(_,[_])};for(typeof d!="string"&&(h=d,d=void 0),d=d||"fx";R--;)m=we.get(_[R],d+"queueHooks"),m&&m.empty&&(C++,m.empty.add(M));return M(),S.promise(h)}});var bv=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,zs=new RegExp("^(?:([+-])=|)("+bv+")([a-z%]*)$","i"),Nr=["Top","Right","Bottom","Left"],$n=O.documentElement,Io=function(d){return g.contains(d.ownerDocument,d)},x_={composed:!0};$n.getRootNode&&(Io=function(d){return g.contains(d.ownerDocument,d)||d.getRootNode(x_)===d.ownerDocument});var Al=function(d,h){return d=h||d,d.style.display==="none"||d.style.display===""&&Io(d)&&g.css(d,"display")==="none"};function Tv(d,h,m,C){var S,_,R=20,M=C?function(){return C.cur()}:function(){return g.css(d,h,"")},F=M(),B=m&&m[3]||(g.cssNumber[h]?"":"px"),Y=d.nodeType&&(g.cssNumber[h]||B!=="px"&&+F)&&zs.exec(g.css(d,h));if(Y&&Y[3]!==B){for(F=F/2,B=B||Y[3],Y=+F||1;R--;)g.style(d,h,Y+B),(1-_)*(1-(_=M()/F||.5))<=0&&(R=0),Y=Y/_;Y=Y*2,g.style(d,h,Y+B),m=m||[]}return m&&(Y=+Y||+F||0,S=m[1]?Y+(m[1]+1)*m[2]:+m[2],C&&(C.unit=B,C.start=Y,C.end=S)),S}var Rv={};function N_(d){var h,m=d.ownerDocument,C=d.nodeName,S=Rv[C];return S||(h=m.body.appendChild(m.createElement(C)),S=g.css(h,"display"),h.parentNode.removeChild(h),S==="none"&&(S="block"),Rv[C]=S,S)}function xo(d,h){for(var m,C,S=[],_=0,R=d.length;
vendor: 31,711 bytes, line 10
10_<R;_++)C=d[_],C.style&&(m=C.style.display,h?(m==="none"&&(S[_]=we.get(C,"display")||null,S[_]||(C.style.display="")),C.style.display===""&&Al(C)&&(S[_]=N_(C))):m!=="none"&&(S[_]="none",we.set(C,"display",m)));for(_=0;_<R;_++)S[_]!=null&&(d[_].style.display=S[_]);return d}g.fn.extend({show:function(){return xo(this,!0)},hide:function(){return xo(this)},toggle:function(d){return typeof d=="boolean"?d?this.show():this.hide():this.each(function(){Al(this)?g(this).show():g(this).hide()})}});var $s=/^(?:checkbox|radio)$/i,Av=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Pv=/^$|^module$|\/(?:java|ecma)script/i;(function(){var d=O.createDocumentFragment(),h=d.appendChild(O.createElement("div")),m=O.createElement("input");m.setAttribute("type","radio"),m.setAttribute("checked","checked"),m.setAttribute("name","t"),h.appendChild(m),y.checkClone=h.cloneNode(!0).cloneNode(!0).lastChild.checked,h.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!h.cloneNode(!0).lastChild.defaultValue,h.innerHTML="<option></option>",y.option=!!h.lastChild})();var Li={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Li.tbody=Li.tfoot=Li.colgroup=Li.caption=Li.thead,Li.th=Li.td,y.option||(Li.optgroup=Li.option=[1,"<select multiple='multiple'>","</select>"]);function Qt(d,h){var m;return typeof d.getElementsByTagName<"u"?m=d.getElementsByTagName(h||"*"):typeof d.querySelectorAll<"u"?m=d.querySelectorAll(h||"*"):m=[],h===void 0||h&&V(d,h)?g.merge([d],m):m}function rd(d,h){for(var m=0,C=d.length;m<C;m++)we.set(d[m],"globalEval",!h||we.get(h[m],"globalEval"))}var G_=/<|&#?\w+;/;function Dv(d,h,m,C,S){for(var _,R,M,F,B,Y,Z=h.createDocumentFragment(),$=[],le=0,je=d.length;le<je;le++)if(_=d[le],_||_===0)if(L(_)==="object")g.merge($,_.nodeType?[_]:_);else if(!G_.test(_))$.push(h.createTextNode(_));else{for(R=R||Z.appendChild(h.createElement("div")),M=(Av.exec(_)||["",""])[1].toLowerCase(),F=Li[M]||Li._default,R.innerHTML=F[1]+g.htmlPrefilter(_)+F[2],Y=F[0];Y--;)R=R.lastChild;g.merge($,R.childNodes),R=Z.firstChild,R.textContent=""}for(Z.textContent="",le=0;_=$[le++];){if(C&&g.inArray(_,C)>-1){S&&S.push(_);continue}if(B=Io(_),R=Qt(Z.appendChild(_),"script"),B&&rd(R),m)for(Y=0;_=R[Y++];)Pv.test(_.type||"")&&m.push(_)}return Z}var Lv=/^([^.]*)(?:\.(.+)|)/;function No(){return!0}function Go(){return!1}function nd(d,h,m,C,S,_){var R,M;if(typeof h=="object"){typeof m!="string"&&(C=C||m,m=void 0);for(M in h)nd(d,M,m,C,h[M],_);return d}if(C==null&&S==null?(S=m,C=m=void 0):S==null&&(typeof m=="string"?(S=C,C=void 0):(S=C,C=m,m=void 0)),S===!1)S=Go;else if(!S)return d;return _===1&&(R=S,S=function(F){return g().off(F),R.apply(this,arguments)},S.guid=R.guid||(R.guid=g.guid++)),d.each(function(){g.event.add(this,h,S,C,m)})}g.event={global:{},add:function(d,h,m,C,S){var _,R,M,F,B,Y,Z,$,le,je,lt,Xe=we.get(d);if(Ze(d))for(m.handler&&(_=m,m=_.handler,S=_.selector),S&&g.find.matchesSelector($n,S),m.guid||(m.guid=g.guid++),(F=Xe.events)||(F=Xe.events=Object.create(null)),(R=Xe.handle)||(R=Xe.handle=function(Vt){return typeof g<"u"&&g.event.triggered!==Vt.type?g.event.dispatch.apply(d,arguments):void 0}),h=(h||"").match(qe)||[""],B=h.length;B--;)M=Lv.exec(h[B])||[],le=lt=M[1],je=(M[2]||"").split(".").sort(),le&&(Z=g.event.special[le]||{},le=(S?Z.delegateType:Z.bindType)||le,Z=g.event.special[le]||{},Y=g.extend({type:le,origType:lt,data:C,handler:m,guid:m.guid,selector:S,needsContext:S&&g.expr.match.needsContext.test(S),namespace:je.join(".")},_),($=F[le])||($=F[le]=[],$.delegateCount=0,(!Z.setup||Z.setup.call(d,C,je,R)===!1)&&d.addEventListener&&d.addEventListener(le,R)),Z.add&&(Z.add.call(d,Y),Y.handler.guid||(Y.handler.guid=m.guid)),S?$.splice($.delegateCount++,0,Y):$.push(Y),g.event.global[le]=!0)},remove:function(d,h,m,C,S){var _,R,M,F,B,Y,Z,$,le,je,lt,Xe=we.hasData(d)&&we.get(d);if(!(!Xe||!(F=Xe.events))){for(h=(h||"").match(qe)||[""],B=h.length;B--;){if(M=Lv.exec(h[B])||[],le=lt=M[1],je=(M[2]||"").split(".").sort(),!le){for(le in F)g.event.remove(d,le+h[B],m,C,!0);continue}for(Z=g.event.special[le]||{},le=(C?Z.delegateType:Z.bindType)||le,$=F[le]||[],M=M[2]&&new RegExp("(^|\\.)"+je.join("\\.(?:.*\\.|)")+"(\\.|$)"),R=_=$.length;_--;)Y=$[_],(S||lt===Y.origType)&&(!m||m.guid===Y.guid)&&(!M||M.test(Y.namespace))&&(!C||C===Y.selector||C==="**"&&Y.selector)&&($.splice(_,1),Y.selector&&$.delegateCount--,Z.remove&&Z.remove.call(d,Y));R&&!$.length&&((!Z.teardown||Z.teardown.call(d,je,Xe.handle)===!1)&&g.removeEvent(d,le,Xe.handle),delete F[le])}g.isEmptyObject(F)&&we.remove(d,"handle events")}},dispatch:function(d){var h,m,C,S,_,R,M=new Array(arguments.length),F=g.event.fix(d),B=(we.get(this,"events")||Object.create(null))[F.type]||[],Y=g.event.special[F.type]||{};for(M[0]=F,h=1;h<arguments.length;h++)M[h]=arguments[h];if(F.delegateTarget=this,!(Y.preDispatch&&Y.preDispatch.call(this,F)===!1)){for(R=g.event.handlers.call(this,F,B),h=0;(S=R[h++])&&!F.isPropagationStopped();)for(F.currentTarget=S.elem,m=0;(_=S.handlers[m++])&&!F.isImmediatePropagationStopped();)(!F.rnamespace||_.namespace===!1||F.rnamespace.test(_.namespace))&&(F.handleObj=_,F.data=_.data,C=((g.event.special[_.origType]||{}).handle||_.handler).apply(S.elem,M),C!==void 0&&(F.result=C)===!1&&(F.preventDefault(),F.stopPropagation()));return Y.postDispatch&&Y.postDispatch.call(this,F),F.result}},handlers:function(d,h){var m,C,S,_,R,M=[],F=h.delegateCount,B=d.target;if(F&&B.nodeType&&!(d.type==="click"&&d.button>=1)){for(;B!==this;B=B.parentNode||this)if(B.nodeType===1&&!(d.type==="click"&&B.disabled===!0)){for(_=[],R={},m=0;m<F;m++)C=h[m],S=C.selector+" ",R[S]===void 0&&(R[S]=C.needsContext?g(S,this).index(B)>-1:g.find(S,this,null,[B]).length),R[S]&&_.push(C);_.length&&M.push({elem:B,handlers:_})}}return B=this,F<h.length&&M.push({elem:B,handlers:h.slice(F)}),M},addProp:function(d,h){Object.defineProperty(g.Event.prototype,d,{enumerable:!0,configurable:!0,get:w(h)?function(){if(this.originalEvent)return h(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[d]},set:function(m){Object.defineProperty(this,d,{enumerable:!0,configurable:!0,writable:!0,value:m})}})},fix:function(d){return d[g.expando]?d:new g.Event(d)},special:{load:{noBubble:!0},click:{setup:function(d){var h=this||d;return $s.test(h.type)&&h.click&&V(h,"input")&&Pl(h,"click",!0),!1},trigger:function(d){var h=this||d;return $s.test(h.type)&&h.click&&V(h,"input")&&Pl(h,"click"),!0},_default:function(d){var h=d.target;return $s.test(h.type)&&h.click&&V(h,"input")&&we.get(h,"click")||V(h,"a")}},beforeunload:{postDispatch:function(d){d.result!==void 0&&d.originalEvent&&(d.originalEvent.returnValue=d.result)}}}};function Pl(d,h,m){if(!m){we.get(d,h)===void 0&&g.event.add(d,h,No);return}we.set(d,h,!1),g.event.add(d,h,{namespace:!1,handler:function(C){var S,_=we.get(this,h);if(C.isTrigger&1&&this[h]){if(_)(g.event.special[h]||{}).delegateType&&C.stopPropagation();else if(_=n.call(arguments),we.set(this,h,_),this[h](),S=we.get(this,h),we.set(this,h,!1),_!==S)return C.stopImmediatePropagation(),C.preventDefault(),S}else _&&(we.set(this,h,g.event.trigger(_[0],_.slice(1),this)),C.stopPropagation(),C.isImmediatePropagationStopped=No)}})}g.removeEvent=function(d,h,m){d.removeEventListener&&d.removeEventListener(h,m)},g.Event=function(d,h){if(!(this instanceof g.Event))return new g.Event(d,h);d&&d.type?(this.originalEvent=d,this.type=d.type,this.isDefaultPrevented=d.defaultPrevented||d.defaultPrevented===void 0&&d.returnValue===!1?No:Go,this.target=d.target&&d.target.nodeType===3?d.target.parentNode:d.target,this.currentTarget=d.currentTarget,this.relatedTarget=d.relatedTarget):this.type=d,h&&g.extend(this,h),this.timeStamp=d&&d.timeStamp||Date.now(),this[g.expando]=!0},g.Event.prototype={constructor:g.Event,isDefaultPrevented:Go,isPropagationStopped:Go,isImmediatePropagationStopped:Go,isSimulated:!1,preventDefault:function(){var d=this.originalEvent;this.isDefaultPrevented=No,d&&!this.isSimulated&&d.preventDefault()},stopPropagation:function(){var d=this.originalEvent;this.isPropagationStopped=No,d&&!this.isSimulated&&d.stopPropagation()},stopImmediatePropagation:function(){var d=this.originalEvent;this.isImmediatePropagationStopped=No,d&&!this.isSimulated&&d.stopImmediatePropagation(),this.stopPropagation()}},g.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},g.event.addProp),g.each({focus:"focusin",blur:"focusout"},function(d,h){function m(C){if(O.documentMode){var S=we.get(this,"handle"),_=g.event.fix(C);_.type=C.type==="focusin"?"focus":"blur",_.isSimulated=!0,S(C),_.target===_.currentTarget&&S(_)}else g.event.simulate(h,C.target,g.event.fix(C))}g.event.special[d]={setup:function(){var C;if(Pl(this,d,!0),O.documentMode)C=we.get(this,h),C||this.addEventListener(h,m),we.set(this,h,(C||0)+1);else return!1},trigger:function(){return Pl(this,d),!0},teardown:function(){var C;if(O.documentMode)C=we.get(this,h)-1,C?we.set(this,h,C):(this.removeEventListener(h,m),we.remove(this,h));else return!1},_default:function(C){return we.get(C.target,d)},delegateType:h},g.event.special[h]={setup:function(){var C=this.ownerDocument||this.document||this,S=O.documentMode?this:C,_=we.get(S,h);_||(O.documentMode?this.addEventListener(h,m):C.addEventListener(d,m,!0)),we.set(S,h,(_||0)+1)},teardown:function(){var C=this.ownerDocument||this.document||this,S=O.documentMode?this:C,_=we.get(S,h)-1;_?we.set(S,h,_):(O.documentMode?this.removeEventListener(h,m):C.removeEventListener(d,m,!0),we.remove(S,h))}}}),g.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(d,h){g.event.special[d]={delegateType:h,bindType:h,handle:function(m){var C,S=this,_=m.relatedTarget,R=m.handleObj;return(!_||_!==S&&!g.contains(S,_))&&(m.type=R.origType,C=R.handler.apply(this,arguments),m.type=h),C}}}),g.fn.extend({on:function(d,h,m,C){return nd(this,d,h,m,C)},one:function(d,h,m,C){return nd(this,d,h,m,C,1)},off:function(d,h,m){var C,S;if(d&&d.preventDefault&&d.handleObj)return C=d.handleObj,g(d.delegateTarget).off(C.namespace?C.origType+"."+C.namespace:C.origType,C.selector,C.handler),this;if(typeof d=="object"){for(S in d)this.off(S,h,d[S]);return this}return(h===!1||typeof h=="function")&&(m=h,h=void 0),m===!1&&(m=Go),this.each(function(){g.event.remove(this,d,m,h)})}});var H_=/<script|<style|<link/i,V_=/checked\s*(?:[^=]|=\s*.checked.)/i,k_=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Fv(d,h){return V(d,"table")&&V(h.nodeType!==11?h:h.firstChild,"tr")&&g(d).children("tbody")[0]||d}function B_(d){return d.type=(d.getAttribute("type")!==null)+"/"+d.type,d}function j_(d){return(d.type||"").slice(0,5)==="true/"?d.type=d.type.slice(5):d.removeAttribute("type"),d}function Mv(d,h){var m,C,S,_,R,M,F;if(h.nodeType===1){if(we.hasData(d)&&(_=we.get(d),F=_.events,F)){we.remove(h,"handle events");for(S in F)for(m=0,C=F[S].length;m<C;m++)g.event.add(h,S,F[S][m])}ht.hasData(d)&&(R=ht.access(d),M=g.extend({},R),ht.set(h,M))}}function W_(d,h){var m=h.nodeName.toLowerCase();m==="input"&&$s.test(d.type)?h.checked=d.checked:(m==="input"||m==="textarea")&&(h.defaultValue=d.defaultValue)}function Ho(d,h,m,C){h=s(h);var S,_,R,M,F,B,Y=0,Z=d.length,$=Z-1,le=h[0],je=w(le);if(je||Z>1&&typeof le=="string"&&!y.checkClone&&V_.test(le))return d.each(function(lt){var Xe=d.eq(lt);je&&(h[0]=le.call(this,lt,Xe.html())),Ho(Xe,h,m,C)});if(Z&&(S=Dv(h,d[0].ownerDocument,!1,d,C),_=S.firstChild,S.childNodes.length===1&&(S=_),_||C)){for(R=g.map(Qt(S,"script"),B_),M=R.length;Y<Z;Y++)F=S,Y!==$&&(F=g.clone(F,!0,!0),M&&g.merge(R,Qt(F,"script"))),m.call(d[Y],F,Y);if(M)for(B=R[R.length-1].ownerDocument,g.map(R,j_),Y=0;Y<M;Y++)F=R[Y],Pv.test(F.type||"")&&!we.access(F,"globalEval")&&g.contains(B,F)&&(F.src&&(F.type||"").toLowerCase()!=="module"?g._evalUrl&&!F.noModule&&g._evalUrl(F.src,{nonce:F.nonce||F.getAttribute("nonce")},B):P(F.textContent.replace(k_,""),F,B))}return d}function Iv(d,h,m){for(var C,S=h?g.filter(h,d):d,_=0;(C=S[_])!=null;_++)!m&&C.nodeType===1&&g.cleanData(Qt(C)),C.parentNode&&(m&&Io(C)&&rd(Qt(C,"script")),C.parentNode.removeChild(C));return d}g.extend({htmlPrefilter:function(d){return d},clone:function(d,h,m){var C,S,_,R,M=d.cloneNode(!0),F=Io(d);if(!y.noCloneChecked&&(d.nodeType===1||d.nodeType===11)&&!g.isXMLDoc(d))for(R=Qt(M),_=Qt(d),C=0,S=_.length;C<S;C++)W_(_[C],R[C]);if(h)if(m)for(_=_||Qt(d),R=R||Qt(M),C=0,S=_.length;C<S;C++)Mv(_[C],R[C]);else Mv(d,M);return R=Qt(M,"script"),R.length>0&&rd(R,!F&&Qt(d,"script")),M},cleanData:function(d){for(var h,m,C,S=g.event.special,_=0;(m=d[_])!==void 0;_++)if(Ze(m)){if(h=m[we.expando]){if(h.events)for(C in h.events)S[C]?g.event.remove(m,C):g.removeEvent(m,C,h.handle);m[we.expando]=void 0}m[ht.expando]&&(m[ht.expando]=void 0)}}}),g.fn.extend({detach:function(d){return Iv(this,d,!0)},remove:function(d){return Iv(this,d)},text:function(d){return Ee(this,function(h){return h===void 0?g.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=h)})},null,d,arguments.length)},append:function(){return Ho(this,arguments,function(d){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var h=Fv(this,d);h.appendChild(d)}})},prepend:function(){return Ho(this,arguments,function(d){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var h=Fv(this,d);h.insertBefore(d,h.firstChild)}})},before:function(){return Ho(this,arguments,function(d){this.parentNode&&this.parentNode.insertBefore(d,this)})},after:function(){return Ho(this,arguments,function(d){this.parentNode&&this.parentNode.insertBefore(d,this.nextSibling)})},empty:function(){for(var d,h=0;(d=this[h])!=null;h++)d.nodeType===1&&(g.cleanData(Qt(d,!1)),d.textContent="");return this},clone:function(d,h){return d=d??!1,h=h??d,this.map(function(){return g.clone(this,d,h)})},html:function(d){return Ee(this,function(h){var m=this[0]||{},C=0,S=this.length;if(h===void 0&&m.nodeType===1)return m.innerHTML;if(typeof h=="string"&&!H_.test(h)&&!Li[(Av.exec(h)||["",""])[1].toLowerCase()]){h=g.htmlPrefilter(h);try{for(;C<S;C++)m=this[C]||{},m.nodeType===1&&(g.cleanData(Qt(m,!1)),m.innerHTML=h);m=0}catch{}}m&&this.empty().append(h)},null,d,arguments.length)},replaceWith:function(){var d=[];return Ho(this,arguments,function(h){var m=this.parentNode;g.inArray(this,d)<0&&(g.cleanData(Qt(this)),m&&m.replaceChild(h,this))},d)}}),g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(d,h){g.fn[d]=function(m){for(var C,S=[],_=g(m),R=_.length-1,M=0;M<=R;M++)C=M===R?this:this.clone(!0),g(_[M])[h](C),a.apply(S,C.get());return this.pushStack(S)}});var od=new RegExp("^("+bv+")(?!px)[a-z%]+$","i"),sd=/^--/,Dl=function(d){var h=d.ownerDocument.defaultView;return(!h||!h.opener)&&(h=t),h.getComputedStyle(d)},xv=function(d,h,m){var C,S,_={};for(S in h)_[S]=d.style[S],d.style[S]=h[S];C=m.call(d);for(S in h)d.style[S]=_[S];return C},U_=new RegExp(Nr.join("|"),"i");(function(){function d(){if(B){F.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",B.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",$n.appendChild(F).appendChild(B);var Y=t.getComputedStyle(B);m=Y.top!=="1%",M=h(Y.marginLeft)===12,B.style.right="60%",_=h(Y.right)===36,C=h(Y.width)===36,B.style.position="absolute",S=h(B.offsetWidth/3)===12,$n.removeChild(F),B=null}}function h(Y){return Math.round(parseFloat(Y))}var m,C,S,_,R,M,F=O.createElement("div"),B=O.createElement("div");B.style&&(B.style.backgroundClip="content-box",B.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle=B.style.backgroundClip==="content-box",g.extend(y,{boxSizingReliable:function(){return d(),C},pixelBoxStyles:function(){return d(),_},pixelPosition:function(){return d(),m},reliableMarginLeft:function(){return d(),M},scrollboxSize:function(){return d(),S},reliableTrDimensions:function(){var Y,Z,$,le;return R==null&&(Y=O.createElement("table"),Z=O.createElement("tr"),$=O.createElement("div"),Y.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Z.style.cssText="border:1px solid",Z.style.height="1px",$.style.height="9px",$.style.display="block",$n.appendChild(Y).appendChild(Z).appendChild($),le=t.getComputedStyle(Z),R=parseInt(le.height,10)+parseInt(le.borderTopWidth,10)+parseInt(le.borderBottomWidth,10)===Z.offsetHeight,$n.removeChild(Y)),R}}))})();function Ks(d,h,m){var C,S,_,R,M=sd.test(h),F=d.style;return m=m||Dl(d),m&&(R=m.getPropertyValue(h)||m[h],M&&R&&(R=R.replace(X,"$1")||void 0),R===""&&!Io(d)&&(R=g.style(d,h)),!y.pixelBoxStyles()&&od.test(R)&&U_.test(h)&&(C=F.width,S=F.minWidth,_=F.maxWidth,F.minWidth=F.maxWidth=F.width=R,R=m.width,F.width=C,F.minWidth=S,F.maxWidth=_)),R!==void 0?R+"":R}function Nv(d,h){return{get:function(){if(d()){delete this.get;return}return(this.get=h).apply(this,arguments)}}}var Gv=["Webkit","Moz","ms"],Hv=O.createElement("div").style,Vv={};function z_(d){for(var h=d[0].toUpperCase()+d.slice(1),m=Gv.length;m--;)if(d=Gv[m]+h,d in Hv)return d}function ad(d){var h=g.cssProps[d]||Vv[d];return h||(d in Hv?d:Vv[d]=z_(d)||d)}var $_=/^(none|table(?!-c[ea]).+)/,K_={position:"absolute",visibility:"hidden",display:"block"},kv={letterSpacing:"0",fontWeight:"400"};function Bv(d,h,m){var C=zs.exec(h);return C?Math.max(0,C[2]-(m||0))+(C[3]||"px"):h}function ld(d,h,m,C,S,_){var R=h==="width"?1:0,M=0,F=0,B=0;if(m===(C?"border":"content"))return 0;for(;R<4;R+=2)m==="margin"&&(B+=g.css(d,m+Nr[R],!0,S)),C?(m==="content"&&(F-=g.css(d,"padding"+Nr[R],!0,S)),m!=="margin"&&(F-=g.css(d,"border"+Nr[R]+"Width",!0,S))):(F+=g.css(d,"padding"+Nr[R],!0,S),m!=="padding"?F+=g.css(d,"border"+Nr[R]+"Width",!0,S):M+=g.css(d,"border"+Nr[R]+"Width",!0,S));return!C&&_>=0&&(F+=Math.max(0,Math.ceil(d["offset"+h[0].toUpperCase()+h.slice(1)]-_-F-M-.5))||0),F+B}function jv(d,h,m){var C=Dl(d),S=!y.boxSizingReliable()||m,_=S&&g.css(d,"boxSizing",!1,C)==="border-box",R=_,M=Ks(d,h,C),F="offset"+h[0].toUpperCase()+h.slice(1);if(od.test(M)){if(!m)return M;M="auto"}return(!y.boxSizingReliable()&&_||!y.reliableTrDimensions()&&V(d,"tr")||M==="auto"||!parseFloat(M)&&g.css(d,"display",!1,C)==="inline")&&d.getClientRects().length&&(_=g.css(d,"boxSizing",!1,C)==="border-box",R=F in d,R&&(M=d[F])),M=parseFloat(M)||0,M+ld(d,h,m||(_?"border":"content"),R,C,M)+"px"}g.extend({cssHooks:{opacity:{get:function(d,h){if(h){var m=Ks(d,"opacity");return m===""?"1":m}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(d,h,m,C){if(!(!d||d.nodeType===3||d.nodeType===8||!d.style)){var S,_,R,M=Fe(h),F=sd.test(h),B=d.style;if(F||(h=ad(M)),R=g.cssHooks[h]||g.cssHooks[M],m!==void 0){if(_=typeof m,_==="string"&&(S=zs.exec(m))&&S[1]&&(m=Tv(d,h,S),_="number"),m==null||m!==m)return;_==="number"&&!F&&(m+=S&&S[3]||(g.cssNumber[M]?"":"px")),!y.clearCloneStyle&&m===""&&h.indexOf("background")===0&&(B[h]="inherit"),(!R||!("set"in R)||(m=R.set(d,m,C))!==void 0)&&(F?B.setProperty(h,m):B[h]=m)}else return R&&"get"in R&&(S=R.get(d,!1,C))!==void 0?S:B[h]}},css:function(d,h,m,C){var S,_,R,M=Fe(h),F=sd.test(h);return F||(h=ad(M)),R=g.cssHooks[h]||g.cssHooks[M],R&&"get"in R&&(S=R.get(d,!0,m)),S===void 0&&(S=Ks(d,h,C)),S==="normal"&&h in kv&&(S=kv[h]),m===""||m?(_=parseFloat(S),m===!0||isFinite(_)?_||0:S):S}}),g.each(["height","width"],function(d,h){g.cssHooks[h]={get:function(m,C,S){if(C)return $_.test(g.css(m,"display"))&&(!m.getClientRects().length||!m.getBoundingClientRect().width)?xv(m,K_,function(){return jv(m,h,S)}):jv(m,h,S)},set:function(m,C,S){var _,R=Dl(m),M=!y.scrollboxSize()&&R.position==="absolute",F=M||S,B=F&&g.css(m,"boxSizing",!1,R)==="border-box",Y=S?ld(m,h,S,B,R):0;return B&&M&&(Y-=Math.ceil(m["offset"+h[0].toUpperCase()+h.slice(1)]-parseFloat(R[h])-ld(m,h,"border",!1,R)-.5)),Y&&(_=zs.exec(C))&&(_[3]||"px")!=="px"&&(m.style[h]=C,C=g.css(m,h)),Bv(m,C,Y)}}}),g.cssHooks.marginLeft=Nv(y.reliableMarginLeft,function(d,h){if(h)return(parseFloat(Ks(d,"marginLeft"))||d.getBoundingClientRect().left-xv(d,{marginLeft:0},function(){return d.getBoundingClientRect().left}))+"px"}),g.each({margin:"",padding:"",border:"Width"},function(d,h){g.cssHooks[d+h]={expand:function(m){for(var C=0,S={},_=typeof m=="string"?m.split(" "):[m];C<4;C++)S[d+Nr[C]+h]=_[C]||_[C-2]||_[0];return S}},d!=="margin"&&(g.cssHooks[d+h].set=Bv)}),g.fn.extend({css:function(d,h){return Ee(this,function(m,C,S){var _,R,M={},F=0;if(Array.isArray(C)){for(_=Dl(m),R=C.length;F<R;F++)M[C[F]]=g.css(m,C[F],!1,_);return M}return S!==void 0?g.style(m,C,S):g.css(m,C)},d,h,arguments.length>1)}});function Jt(d,h,m,C,S){return new Jt.prototype.init(d,h,m,C,S)}g.Tween=Jt,Jt.prototype={constructor:Jt,init:function(d,h,m,C,S,_){this.elem=d,this.prop=m,this.easing=S||g.easing._default,this.options=h,this.start=this.now=this.cur(),this.end=C,this.unit=_||(g.cssNumber[m]?"":"px")},cur:function(){var d=Jt.propHooks[this.prop];return d&&d.get?d.get(this):Jt.propHooks._default.get(this)},run:function(d){var h,m=Jt.propHooks[this.prop];return this.options.duration?this.pos=h=g.easing[this.easing](d,this.options.duration*d,0,1,this.options.duration):this.pos=h=d,this.now=(this.end-this.start)*h+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),m&&m.set?m.set(this):Jt.propHooks._default.set(this),this}},Jt.prototype.init.prototype=Jt.prototype,Jt.propHooks={_default:{get:function(d){var h;return d.elem.nodeType!==1||d.elem[d.prop]!=null&&d.elem.style[d.prop]==null?d.elem[d.prop]:(h=g.css(d.elem,d.prop,""),!h||h==="auto"?0:h)},set:function(d){g.fx.step[d.prop]?g.fx.step[d.prop](d):d.elem.nodeType===1&&(g.cssHooks[d.prop]||d.elem.style[ad(d.prop)]!=null)?g.style(d.elem,d.prop,d.now+d.unit):d.elem[d.prop]=d.now}}},Jt.propHooks.scrollTop=Jt.propHooks.scrollLeft={set:function(d){d.elem.nodeType&&d.elem.parentNode&&(d.elem[d.prop]=d.now)}},g.easing={linear:function(d){return d},swing:function(d){return .5-Math.cos(d*Math.PI)/2},_default:"swing"},g.fx=Jt.prototype.init,g.fx.step={};var Vo,Ll,Y_=/^(?:toggle|show|hide)$/,q_=/queueHooks$/;function ud(){Ll&&(O.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(ud):t.setTimeout(ud,g.fx.interval),g.fx.tick())}function Wv(){return t.setTimeout(function(){Vo=void 0}),Vo=Date.now()}function Fl(d,h){var m,C=0,S={height:d};for(h=h?1:0;C<4;C+=2-h)m=Nr[C],S["margin"+m]=S["padding"+m]=d;return h&&(S.opacity=S.width=d),S}function Uv(d,h,m){for(var C,S=(Xi.tweeners[h]||[]).concat(Xi.tweeners["*"]),_=0,R=S.length;_<R;_++)if(C=S[_].call(m,h,d))return C}function X_(d,h,m){var C,S,_,R,M,F,B,Y,Z="width"in h||"height"in h,$=this,le={},je=d.style,lt=d.nodeType&&Al(d),Xe=we.get(d,"fxshow");m.queue||(R=g._queueHooks(d,"fx"),R.unqueued==null&&(R.unqueued=0,M=R.empty.fire,R.empty.fire=function(){R.unqueued||M()}),R.unqueued++,$.always(function(){$.always(function(){R.unqueued--,g.queue(d,"fx").length||R.empty.fire()})}));for(C in h)if(S=h[C],Y_.test(S)){if(delete h[C],_=_||S==="toggle",S===(lt?"hide":"show"))if(S==="show"&&Xe&&Xe[C]!==void 0)lt=!0;else continue;le[C]=Xe&&Xe[C]||g.style(d,C)}if(F=!g.isEmptyObject(h),!(!F&&g.isEmptyObject(le))){Z&&d.nodeType===1&&(m.overflow=[je.overflow,je.overflowX,je.overflowY],B=Xe&&Xe.display,B==null&&(B=we.get(d,"display")),Y=g.css(d,"display"),Y==="none"&&(B?Y=B:(xo([d],!0),B=d.style.display||B,Y=g.css(d,"display"),xo([d]))),(Y==="inline"||Y==="inline-block"&&B!=null)&&g.css(d,"float")==="none"&&(F||($.done(function(){je.display=B}),B==null&&(Y=je.display,B=Y==="none"?"":Y)),je.display="inline-block")),m.overflow&&(je.overflow="hidden",$.always(function(){je.overflow=m.overflow[0],je.overflowX=m.overflow[1],je.overflowY=m.overflow[2]})),F=!1;for(C in le)F||(Xe?"hidden"in Xe&&(lt=Xe.hidden):Xe=we.access(d,"fxshow",{display:B}),_&&(Xe.hidden=!lt),lt&&xo([d],!0),$.done(function(){lt||xo([d]),we.remove(d,"fxshow");for(C in le)g.style(d,C,le[C])})),F=Uv(lt?Xe[C]:0,C,$),C in Xe||(Xe[C]=F.start,lt&&(F.end=F.start,F.start=0))}}function Q_(d,h){var m,C,S,_,R;for(m in d)if(C=Fe(m),S=h[C],_=d[m],Array.isArray(_)&&(S=_[1],_=d[m]=_[0]),m!==C&&(d[C]=_,delete d[m]),R=g.cssHooks[C],R&&"expand"in R){_=R.expand(_),delete d[C];for(m in _)m in d||(d[m]=_[m],h[m]=S)}else h[C]=S}function Xi(d,h,m){var C,S,_=0,R=Xi.prefilters.length,M=g.Deferred().always(function(){delete F.elem}),F=function(){if(S)return!1;for(var Z=Vo||Wv(),$=Math.max(0,B.startTime+B.duration-Z),le=$/B.duration||0,je=1-le,lt=0,Xe=B.tweens.length;lt<Xe;lt++)B.tweens[lt].run(je);return M.notifyWith(d,[B,je,$]),je<1&&Xe?$:(Xe||M.notifyWith(d,[B,1,0]),M.resolveWith(d,[B]),!1)},B=M.promise({elem:d,props:g.extend({},h),opts:g.extend(!0,{specialEasing:{},easing:g.easing._default},m),originalProperties:h,originalOptions:m,startTime:Vo||Wv(),duration:m.duration,tweens:[],createTween:function(Z,$){var le=g.Tween(d,B.opts,Z,$,B.opts.specialEasing[Z]||B.opts.easing);return B.tweens.push(le),le},stop:function(Z){var $=0,le=Z?B.tweens.length:0;if(S)return this;for(S=!0;$<le;$++)B.tweens[$].run(1);return Z?(M.notifyWith(d,[B,1,0]),M.resolveWith(d,[B,Z])):M.rejectWith(d,[B,Z]),this}}),Y=B.props;for(Q_(Y,B.opts.specialEasing);_<R;_++)if(C=Xi.prefilters[_].call(B,d,Y,B.opts),C)return w(C.stop)&&(g._queueHooks(B.elem,B.opts.queue).stop=C.stop.bind(C)),C;return g.map(Y,Uv,B),w(B.opts.start)&&B.opts.start.call(d,B),B.progress(B.opts.progress).done(B.opts.done,B.opts.complete).fail(B.opts.fail).always(B.opts.always),g.fx.timer(g.extend(F,{elem:d,anim:B,queue:B.opts.queue})),B}g.Animation=g.extend(Xi,{tweeners:{"*":[function(d,h){var m=this.createTween(d,h);return Tv(m.elem,d,zs.exec(h),m),m}]},tweener:function(d,h){w(d)?(h=d,d=["*"]):d=d.match(qe);for(var m,C=0,S=d.length;C<S;C++)m=d[C],Xi.tweeners[m]=Xi.tweeners[m]||[],Xi.tweeners[m].unshift(h)},prefilters:[X_],prefilter:function(d,h){h?Xi.prefilters.unshift(d):Xi.prefilters.push(d)}}),g.speed=function(d,h,m){var C=d&&typeof d=="object"?g.extend({},d):{complete:m||!m&&h||w(d)&&d,duration:d,easing:m&&h||h&&!w(h)&&h};return g.fx.off?C.duration=0:typeof C.duration!="number"&&(C.duration in g.fx.speeds?C.duration=g.fx.speeds[C.duration]:C.duration=g.fx.speeds._default),(C.queue==null||C.queue===!0)&&(C.queue="fx"),C.old=C.complete,C.complete=function(){w(C.old)&&C.old.call(this),C.queue&&g.dequeue(this,C.queue)},C},g.fn.extend({fadeTo:function(d,h,m,C){return this.filter(Al).css("opacity",0).show().end().animate({opacity:h},d,m,C)},animate:function(d,h,m,C){var S=g.isEmptyObject(d),_=g.speed(h,m,C),R=function(){var M=Xi(this,g.extend({},d),_);(S||we.get(this,"finish"))&&M.stop(!0)};return R.finish=R,S||_.queue===!1?this.each(R):this.queue(_.queue,R)},stop:function(d,h,m){var C=function(S){var _=S.stop;delete S.stop,_(m)};return typeof d!="string"&&(m=h,h=d,d=void 0),h&&this.queue(d||"fx",[]),this.each(function(){var S=!0,_=d!=null&&d+"queueHooks",R=g.timers,M=we.get(this);if(_)M[_]&&M[_].stop&&C(M[_]);else for(_ in M)M[_]&&M[_].stop&&q_.test(_)&&C(M[_]);for(_=R.length;_--;)R[_].elem===this&&(d==null||R[_].queue===d)&&(R[_].anim.stop(m),S=!1,R.splice(_,1));(S||!m)&&g.dequeue(this,d)})},finish:function(d){return d!==!1&&(d=d||"fx"),this.each(function(){var h,m=we.get(this),C=m[d+"queue"],S=m[d+"queueHooks"],_=g.timers,R=C?C.length:0;for(m.finish=!0,g.queue(this,d,[]),S&&S.stop&&S.stop.call(this,!0),h=_.length;h--;)_[h].elem===this&&_[h].queue===d&&(_[h].anim.stop(!0),_.splice(h,1));for(h=0;h<R;h++)C[h]&&C[h].finish&&C[h].finish.call(this);delete m.finish})}}),g.each(["toggle","show","hide"],function(d,h){var m=g.fn[h];g.fn[h]=function(C,S,_){return C==null||typeof C=="boolean"?m.apply(this,arguments):this.animate(Fl(h,!0),C,S,_)}}),g.each({slideDown:Fl("show"),slideUp:Fl("hide"),slideToggle:Fl("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(d,h){g.fn[d]=function(m,C,S){return this.animate(h,m,C,S)}}),g.timers=[],g.fx.tick=function(){var d,h=0,m=g.timers;for(Vo=Date.now();h<m.length;h++)d=m[h],!d()&&m[h]===d&&m.splice(h--,1);m.length||g.fx.stop(),Vo=void 0},g.fx.timer=function(d){g.timers.push(d),g.fx.start()},g.fx.interval=13,g.fx.start=function(){Ll||(Ll=!0,ud())},g.fx.stop=function(){Ll=null},g.fx.speeds={slow:600,fast:200,_default:400},g.fn.delay=function(d,h){return d=g.fx&&g.fx.speeds[d]||d,h=h||"fx",this.queue(h,function(m,C){var S=t.setTimeout(m,d);C.stop=function(){t.clearTimeout(S)}})},function(){var d=O.createElement("input"),h=O.createElement("select"),m=h.appendChild(O.createElement("option"));d.type="checkbox",y.checkOn=d.value!=="",y.optSelected=m.selected,d=O.createElement("input"),d.value="t",d.type="radio",y.radioValue=d.value==="t"}();var zv,Ys=g.expr.attrHandle;g.fn.extend({attr:function(d,h){return Ee(this,g.attr,d,h,arguments.length>1)},removeAttr:function(d){return this.each(function(){g.removeAttr(this,d)})}}),g.extend({attr:function(d,h,m){var C,S,_=d.nodeType;if(!(_===3||_===8||_===2)){if(typeof d.getAttribute>"u")return g.prop(d,h,m);if((_!==1||!g.isXMLDoc(d))&&(S=g.attrHooks[h.toLowerCase()]||(g.expr.match.bool.test(h)?zv:void 0)),m!==void 0){if(m===null){g.removeAttr(d,h);return}return S&&"set"in S&&(C=S.set(d,m,h))!==void 0?C:(d.setAttribute(h,m+""),m)}return S&&"get"in S&&(C=S.get(d,h))!==null?C:(C=g.find.attr(d,h),C??void 0)}},attrHooks:{type:{set:function(d,h){if(!y.radioValue&&h==="radio"&&V(d,"input")){var m=d.value;return d.setAttribute("type",h),m&&(d.value=m),h}}}},removeAttr:function(d,h){var m,C=0,S=h&&h.match(qe);if(S&&d.nodeType===1)for(;m=S[C++];)d.removeAttribute(m)}}),zv={set:function(d,h,m){return h===!1?g.removeAttr(d,m):d.setAttribute(m,m),m}},g.each(g.expr.match.bool.source.match(/\w+/g),function(d,h){var m=Ys[h]||g.find.attr;Ys[h]=function(C,S,_){var R,M,F=S.toLowerCase();return _||(M=Ys[F],Ys[F]=R,R=m(C,S,_)!=null?F:null,Ys[F]=M),R}});var J_=/^(?:input|select|textarea|button)$/i,Z_=/^(?:a|area)$/i;g.fn.extend({prop:function(d,h){return Ee(this,g.prop,d,h,arguments.length>1)},removeProp:function(d){return this.each(function(){delete this[g.propFix[d]||d]})}}),g.extend({prop:function(d,h,m){var C,S,_=d.nodeType;if(!(_===3||_===8||_===2))return(_!==1||!g.isXMLDoc(d))&&(h=g.propFix[h]||h,S=g.propHooks[h]),m!==void 0?S&&"set"in S&&(C=S.set(d,m,h))!==void 0?C:d[h]=m:S&&"get"in S&&(C=S.get(d,h))!==null?C:d[h]},propHooks:{tabIndex:{get:function(d){var h=g.find.attr(d,"tabindex");return h?parseInt(h,10):J_.test(d.nodeName)||Z_.test(d.nodeName)&&d.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(g.propHooks.selected={get:function(d){var h=d.parentNode;return h&&h.parentNode&&h.parentNode.selectedIndex,null},set:function(d){var h=d.parentNode;h&&(h.selectedIndex,h.parentNode&&h.parentNode.selectedIndex)}}),g.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){g.propFix[this.toLowerCase()]=this});function Kn(d){var h=d.match(qe)||[];return h.join(" ")}function Yn(d){return d.getAttribute&&d.getAttribute("class")||""}
vendor: 6,798 bytes, lines 10-13
10function cd(d){return Array.isArray(d)?d:typeof d=="string"?d.match(qe)||[]:[]}g.fn.extend({addClass:function(d){var h,m,C,S,_,R;return w(d)?this.each(function(M){g(this).addClass(d.call(this,M,Yn(this)))}):(h=cd(d),h.length?this.each(function(){if(C=Yn(this),m=this.nodeType===1&&" "+Kn(C)+" ",m){for(_=0;_<h.length;_++)S=h[_],m.indexOf(" "+S+" ")<0&&(m+=S+" ");R=Kn(m),C!==R&&this.setAttribute("class",R)}}):this)},removeClass:function(d){var h,m,C,S,_,R;return w(d)?this.each(function(M){g(this).removeClass(d.call(this,M,Yn(this)))}):arguments.length?(h=cd(d),h.length?this.each(function(){if(C=Yn(this),m=this.nodeType===1&&" "+Kn(C)+" ",m){for(_=0;_<h.length;_++)for(S=h[_];m.indexOf(" "+S+" ")>-1;)m=m.replace(" "+S+" "," ");R=Kn(m),C!==R&&this.setAttribute("class",R)}}):this):this.attr("class","")},toggleClass:function(d,h){var m,C,S,_,R=typeof d,M=R==="string"||Array.isArray(d);return w(d)?this.each(function(F){g(this).toggleClass(d.call(this,F,Yn(this),h),h)}):typeof h=="boolean"&&M?h?this.addClass(d):this.removeClass(d):(m=cd(d),this.each(function(){if(M)for(_=g(this),S=0;S<m.length;S++)C=m[S],_.hasClass(C)?_.removeClass(C):_.addClass(C);else(d===void 0||R==="boolean")&&(C=Yn(this),C&&we.set(this,"__className__",C),this.setAttribute&&this.setAttribute("class",C||d===!1?"":we.get(this,"__className__")||""))}))},hasClass:function(d){var h,m,C=0;for(h=" "+d+" ";m=this[C++];)if(m.nodeType===1&&(" "+Kn(Yn(m))+" ").indexOf(h)>-1)return!0;return!1}});var eO=/\r/g;g.fn.extend({val:function(d){var h,m,C,S=this[0];return arguments.length?(C=w(d),this.each(function(_){var R;this.nodeType===1&&(C?R=d.call(this,_,g(this).val()):R=d,R==null?R="":typeof R=="number"?R+="":Array.isArray(R)&&(R=g.map(R,function(M){return M==null?"":M+""})),h=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()],(!h||!("set"in h)||h.set(this,R,"value")===void 0)&&(this.value=R))})):S?(h=g.valHooks[S.type]||g.valHooks[S.nodeName.toLowerCase()],h&&"get"in h&&(m=h.get(S,"value"))!==void 0?m:(m=S.value,typeof m=="string"?m.replace(eO,""):m??"")):void 0}}),g.extend({valHooks:{option:{get:function(d){var h=g.find.attr(d,"value");return h??Kn(g.text(d))}},select:{get:function(d){var h,m,C,S=d.options,_=d.selectedIndex,R=d.type==="select-one",M=R?null:[],F=R?_+1:S.length;for(_<0?C=F:C=R?_:0;C<F;C++)if(m=S[C],(m.selected||C===_)&&!m.disabled&&(!m.parentNode.disabled||!V(m.parentNode,"optgroup"))){if(h=g(m).val(),R)return h;M.push(h)}return M},set:function(d,h){for(var m,C,S=d.options,_=g.makeArray(h),R=S.length;R--;)C=S[R],(C.selected=g.inArray(g.valHooks.option.get(C),_)>-1)&&(m=!0);return m||(d.selectedIndex=-1),_}}}}),g.each(["radio","checkbox"],function(){g.valHooks[this]={set:function(d,h){if(Array.isArray(h))return d.checked=g.inArray(g(d).val(),h)>-1}},y.checkOn||(g.valHooks[this].get=function(d){return d.getAttribute("value")===null?"on":d.value})});var qs=t.location,$v={guid:Date.now()},dd=/\?/;g.parseXML=function(d){var h,m;if(!d||typeof d!="string")return null;try{h=new t.DOMParser().parseFromString(d,"text/xml")}catch{}return m=h&&h.getElementsByTagName("parsererror")[0],(!h||m)&&g.error("Invalid XML: "+(m?g.map(m.childNodes,function(C){return C.textContent}).join(` 11`):d)),h};var Kv=/^(?:focusinfocus|focusoutblur)$/,Yv=function(d){d.stopPropagation()};g.extend(g.event,{trigger:function(d,h,m,C){var S,_,R,M,F,B,Y,Z,$=[m||O],le=p.call(d,"type")?d.type:d,je=p.call(d,"namespace")?d.namespace.split("."):[];if(_=Z=R=m=m||O,!(m.nodeType===3||m.nodeType===8)&&!Kv.test(le+g.event.triggered)&&(le.indexOf(".")>-1&&(je=le.split("."),le=je.shift(),je.sort()),F=le.indexOf(":")<0&&"on"+le,d=d[g.expando]?d:new g.Event(le,typeof d=="object"&&d),d.isTrigger=C?2:3,d.namespace=je.join("."),d.rnamespace=d.namespace?new RegExp("(^|\\.)"+je.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,d.result=void 0,d.target||(d.target=m),h=h==null?[d]:g.makeArray(h,[d]),Y=g.event.special[le]||{},!(!C&&Y.trigger&&Y.trigger.apply(m,h)===!1))){if(!C&&!Y.noBubble&&!b(m)){for(M=Y.delegateType||le,Kv.test(M+le)||(_=_.parentNode);_;_=_.parentNode)$.push(_),R=_;R===(m.ownerDocument||O)&&$.push(R.defaultView||R.parentWindow||t)}for(S=0;(_=$[S++])&&!d.isPropagationStopped();)Z=_,d.type=S>1?M:Y.bindType||le,B=(we.get(_,"events")||Object.create(null))[d.type]&&we.get(_,"handle"),B&&B.apply(_,h),B=F&&_[F],B&&B.apply&&Ze(_)&&(d.result=B.apply(_,h),d.result===!1&&d.preventDefault());return d.type=le,!C&&!d.isDefaultPrevented()&&(!Y._default||Y._default.apply($.pop(),h)===!1)&&Ze(m)&&F&&w(m[le])&&!b(m)&&(R=m[F],R&&(m[F]=null),g.event.triggered=le,d.isPropagationStopped()&&Z.addEventListener(le,Yv),m[le](),d.isPropagationStopped()&&Z.removeEventListener(le,Yv),g.event.triggered=void 0,R&&(m[F]=R)),d.result}},simulate:function(d,h,m){var C=g.extend(new g.Event,m,{type:d,isSimulated:!0});g.event.trigger(C,null,h)}}),g.fn.extend({trigger:function(d,h){return this.each(function(){g.event.trigger(d,h,this)})},triggerHandler:function(d,h){var m=this[0];if(m)return g.event.trigger(d,h,m,!0)}});var tO=/\[\]$/,qv=/\r?\n/g,iO=/^(?:submit|button|image|reset|file)$/i,rO=/^(?:input|select|textarea|keygen)/i;function pd(d,h,m,C){var S;if(Array.isArray(h))g.each(h,function(_,R){m||tO.test(d)?C(d,R):pd(d+"["+(typeof R=="object"&&R!=null?_:"")+"]",R,m,C)});else if(!m&&L(h)==="object")for(S in h)pd(d+"["+S+"]",h[S],m,C);else C(d,h)}g.param=function(d,h){var m,C=[],S=function(_,R){var M=w(R)?R():R;C[C.length]=encodeURIComponent(_)+"="+encodeURIComponent(M??"")};if(d==null)return"";if(Array.isArray(d)||d.jquery&&!g.isPlainObject(d))g.each(d,function(){S(this.name,this.value)});else for(m in d)pd(m,d[m],h,S);return C.join("&")},g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var d=g.prop(this,"elements");return d?g.makeArray(d):this}).filter(function(){var d=this.type;return this.name&&!g(this).is(":disabled")&&rO.test(this.nodeName)&&!iO.test(d)&&(this.checked||!$s.test(d))}).map(function(d,h){var m=g(this).val();return m==null?null:Array.isArray(m)?g.map(m,function(C){return{name:h.name,value:C.replace(qv,`\r 12`)}}):{name:h.name,value:m.replace(qv,`\r 13`)}}).get()}});var nO=/%20/g,oO=/#.*$/,sO=/([?&])_=[^&]*/,aO=/^(.*?):[ \t]*([^\r\n]*)$/mg,lO=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,uO=/^(?:GET|HEAD)$/,cO=/^\/\//,Xv={},fd={},Qv="*/".concat("*"),hd=O.createElement("a");hd.href=qs.href;function Jv(d){return function(h,m){typeof h!="string"&&(m=h,h="*");var C,S=0,_=h.toLowerCase().match(qe)||[];if(w(m))for(;C=_[S++];)C[0]==="+"?(C=C.slice(1)||"*",(d[C]=d[C]||[]).unshift(m)):(d[C]=d[C]||[]).push(m)}}function Zv(d,h,m,C){var S={},_=d===fd;function R(M){var F;return S[M]=!0,g.each(d[M]||[],function(B,Y){var Z=Y(h,m,C);if(typeof Z=="string"&&!_&&!S[Z])return h.dataTypes.unshift(Z),R(Z
vendor: 14,509 bytes, line 13
13),!1;if(_)return!(F=Z)}),F}return R(h.dataTypes[0])||!S["*"]&&R("*")}function vd(d,h){var m,C,S=g.ajaxSettings.flatOptions||{};for(m in h)h[m]!==void 0&&((S[m]?d:C||(C={}))[m]=h[m]);return C&&g.extend(!0,d,C),d}function dO(d,h,m){for(var C,S,_,R,M=d.contents,F=d.dataTypes;F[0]==="*";)F.shift(),C===void 0&&(C=d.mimeType||h.getResponseHeader("Content-Type"));if(C){for(S in M)if(M[S]&&M[S].test(C)){F.unshift(S);break}}if(F[0]in m)_=F[0];else{for(S in m){if(!F[0]||d.converters[S+" "+F[0]]){_=S;break}R||(R=S)}_=_||R}if(_)return _!==F[0]&&F.unshift(_),m[_]}function pO(d,h,m,C){var S,_,R,M,F,B={},Y=d.dataTypes.slice();if(Y[1])for(R in d.converters)B[R.toLowerCase()]=d.converters[R];for(_=Y.shift();_;)if(d.responseFields[_]&&(m[d.responseFields[_]]=h),!F&&C&&d.dataFilter&&(h=d.dataFilter(h,d.dataType)),F=_,_=Y.shift(),_){if(_==="*")_=F;else if(F!=="*"&&F!==_){if(R=B[F+" "+_]||B["* "+_],!R){for(S in B)if(M=S.split(" "),M[1]===_&&(R=B[F+" "+M[0]]||B["* "+M[0]],R)){R===!0?R=B[S]:B[S]!==!0&&(_=M[0],Y.unshift(M[1]));break}}if(R!==!0)if(R&&d.throws)h=R(h);else try{h=R(h)}catch(Z){return{state:"parsererror",error:R?Z:"No conversion from "+F+" to "+_}}}}return{state:"success",data:h}}g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:qs.href,type:"GET",isLocal:lO.test(qs.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qv,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(d,h){return h?vd(vd(d,g.ajaxSettings),h):vd(g.ajaxSettings,d)},ajaxPrefilter:Jv(Xv),ajaxTransport:Jv(fd),ajax:function(d,h){typeof d=="object"&&(h=d,d=void 0),h=h||{};var m,C,S,_,R,M,F,B,Y,Z,$=g.ajaxSetup({},h),le=$.context||$,je=$.context&&(le.nodeType||le.jquery)?g(le):g.event,lt=g.Deferred(),Xe=g.Callbacks("once memory"),Vt=$.statusCode||{},Ft={},ur={},cr="canceled",rt={readyState:0,getResponseHeader:function(ut){var Et;if(F){if(!_)for(_={};Et=aO.exec(S);)_[Et[1].toLowerCase()+" "]=(_[Et[1].toLowerCase()+" "]||[]).concat(Et[2]);Et=_[ut.toLowerCase()+" "]}return Et==null?null:Et.join(", ")},getAllResponseHeaders:function(){return F?S:null},setRequestHeader:function(ut,Et){return F==null&&(ut=ur[ut.toLowerCase()]=ur[ut.toLowerCase()]||ut,Ft[ut]=Et),this},overrideMimeType:function(ut){return F==null&&($.mimeType=ut),this},statusCode:function(ut){var Et;if(ut)if(F)rt.always(ut[rt.status]);else for(Et in ut)Vt[Et]=[Vt[Et],ut[Et]];return this},abort:function(ut){var Et=ut||cr;return m&&m.abort(Et),qn(0,Et),this}};if(lt.promise(rt),$.url=((d||$.url||qs.href)+"").replace(cO,qs.protocol+"//"),$.type=h.method||h.type||$.method||$.type,$.dataTypes=($.dataType||"*").toLowerCase().match(qe)||[""],$.crossDomain==null){M=O.createElement("a");try{M.href=$.url,M.href=M.href,$.crossDomain=hd.protocol+"//"+hd.host!=M.protocol+"//"+M.host}catch{$.crossDomain=!0}}if($.data&&$.processData&&typeof $.data!="string"&&($.data=g.param($.data,$.traditional)),Zv(Xv,$,h,rt),F)return rt;B=g.event&&$.global,B&&g.active++===0&&g.event.trigger("ajaxStart"),$.type=$.type.toUpperCase(),$.hasContent=!uO.test($.type),C=$.url.replace(oO,""),$.hasContent?$.data&&$.processData&&($.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&($.data=$.data.replace(nO,"+")):(Z=$.url.slice(C.length),$.data&&($.processData||typeof $.data=="string")&&(C+=(dd.test(C)?"&":"?")+$.data,delete $.data),$.cache===!1&&(C=C.replace(sO,"$1"),Z=(dd.test(C)?"&":"?")+"_="+$v.guid+++Z),$.url=C+Z),$.ifModified&&(g.lastModified[C]&&rt.setRequestHeader("If-Modified-Since",g.lastModified[C]),g.etag[C]&&rt.setRequestHeader("If-None-Match",g.etag[C])),($.data&&$.hasContent&&$.contentType!==!1||h.contentType)&&rt.setRequestHeader("Content-Type",$.contentType),rt.setRequestHeader("Accept",$.dataTypes[0]&&$.accepts[$.dataTypes[0]]?$.accepts[$.dataTypes[0]]+($.dataTypes[0]!=="*"?", "+Qv+"; q=0.01":""):$.accepts["*"]);for(Y in $.headers)rt.setRequestHeader(Y,$.headers[Y]);if($.beforeSend&&($.beforeSend.call(le,rt,$)===!1||F))return rt.abort();if(cr="abort",Xe.add($.complete),rt.done($.success),rt.fail($.error),m=Zv(fd,$,h,rt),!m)qn(-1,"No Transport");else{if(rt.readyState=1,B&&je.trigger("ajaxSend",[rt,$]),F)return rt;$.async&&$.timeout>0&&(R=t.setTimeout(function(){rt.abort("timeout")},$.timeout));try{F=!1,m.send(Ft,qn)}catch(ut){if(F)throw ut;qn(-1,ut)}}function qn(ut,Et,Qs,yd){var dr,Js,pr,on,sn,Fi=Et;F||(F=!0,R&&t.clearTimeout(R),m=void 0,S=yd||"",rt.readyState=ut>0?4:0,dr=ut>=200&&ut<300||ut===304,Qs&&(on=dO($,rt,Qs)),!dr&&g.inArray("script",$.dataTypes)>-1&&g.inArray("json",$.dataTypes)<0&&($.converters["text script"]=function(){}),on=pO($,on,rt,dr),dr?($.ifModified&&(sn=rt.getResponseHeader("Last-Modified"),sn&&(g.lastModified[C]=sn),sn=rt.getResponseHeader("etag"),sn&&(g.etag[C]=sn)),ut===204||$.type==="HEAD"?Fi="nocontent":ut===304?Fi="notmodified":(Fi=on.state,Js=on.data,pr=on.error,dr=!pr)):(pr=Fi,(ut||!Fi)&&(Fi="error",ut<0&&(ut=0))),rt.status=ut,rt.statusText=(Et||Fi)+"",dr?lt.resolveWith(le,[Js,Fi,rt]):lt.rejectWith(le,[rt,Fi,pr]),rt.statusCode(Vt),Vt=void 0,B&&je.trigger(dr?"ajaxSuccess":"ajaxError",[rt,$,dr?Js:pr]),Xe.fireWith(le,[rt,Fi]),B&&(je.trigger("ajaxComplete",[rt,$]),--g.active||g.event.trigger("ajaxStop")))}return rt},getJSON:function(d,h,m){return g.get(d,h,m,"json")},getScript:function(d,h){return g.get(d,void 0,h,"script")}}),g.each(["get","post"],function(d,h){g[h]=function(m,C,S,_){return w(C)&&(_=_||S,S=C,C=void 0),g.ajax(g.extend({url:m,type:h,dataType:_,data:C,success:S},g.isPlainObject(m)&&m))}}),g.ajaxPrefilter(function(d){var h;for(h in d.headers)h.toLowerCase()==="content-type"&&(d.contentType=d.headers[h]||"")}),g._evalUrl=function(d,h,m){return g.ajax({url:d,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(C){g.globalEval(C,h,m)}})},g.fn.extend({wrapAll:function(d){var h;return this[0]&&(w(d)&&(d=d.call(this[0])),h=g(d,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&h.insertBefore(this[0]),h.map(function(){for(var m=this;m.firstElementChild;)m=m.firstElementChild;return m}).append(this)),this},wrapInner:function(d){return w(d)?this.each(function(h){g(this).wrapInner(d.call(this,h))}):this.each(function(){var h=g(this),m=h.contents();m.length?m.wrapAll(d):h.append(d)})},wrap:function(d){var h=w(d);return this.each(function(m){g(this).wrapAll(h?d.call(this,m):d)})},unwrap:function(d){return this.parent(d).not("body").each(function(){g(this).replaceWith(this.childNodes)}),this}}),g.expr.pseudos.hidden=function(d){return!g.expr.pseudos.visible(d)},g.expr.pseudos.visible=function(d){return!!(d.offsetWidth||d.offsetHeight||d.getClientRects().length)},g.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var fO={0:200,1223:204},Xs=g.ajaxSettings.xhr();y.cors=!!Xs&&"withCredentials"in Xs,y.ajax=Xs=!!Xs,g.ajaxTransport(function(d){var h,m;if(y.cors||Xs&&!d.crossDomain)return{send:function(C,S){var _,R=d.xhr();if(R.open(d.type,d.url,d.async,d.username,d.password),d.xhrFields)for(_ in d.xhrFields)R[_]=d.xhrFields[_];d.mimeType&&R.overrideMimeType&&R.overrideMimeType(d.mimeType),!d.crossDomain&&!C["X-Requested-With"]&&(C["X-Requested-With"]="XMLHttpRequest");for(_ in C)R.setRequestHeader(_,C[_]);h=function(M){return function(){h&&(h=m=R.onload=R.onerror=R.onabort=R.ontimeout=R.onreadystatechange=null,M==="abort"?R.abort():M==="error"?typeof R.status!="number"?S(0,"error"):S(R.status,R.statusText):S(fO[R.status]||R.status,R.statusText,(R.responseType||"text")!=="text"||typeof R.responseText!="string"?{binary:R.response}:{text:R.responseText},R.getAllResponseHeaders()))}},R.onload=h(),m=R.onerror=R.ontimeout=h("error"),R.onabort!==void 0?R.onabort=m:R.onreadystatechange=function(){R.readyState===4&&t.setTimeout(function(){h&&m()})},h=h("abort");try{R.send(d.hasContent&&d.data||null)}catch(M){if(h)throw M}},abort:function(){h&&h()}}}),g.ajaxPrefilter(function(d){d.crossDomain&&(d.contents.script=!1)}),g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(d){return g.globalEval(d),d}}}),g.ajaxPrefilter("script",function(d){d.cache===void 0&&(d.cache=!1),d.crossDomain&&(d.type="GET")}),g.ajaxTransport("script",function(d){if(d.crossDomain||d.scriptAttrs){var h,m;return{send:function(C,S){h=g("<script>").attr(d.scriptAttrs||{}).prop({charset:d.scriptCharset,src:d.url}).on("load error",m=function(_){h.remove(),m=null,_&&S(_.type==="error"?404:200,_.type)}),O.head.appendChild(h[0])},abort:function(){m&&m()}}}});var eg=[],gd=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var d=eg.pop()||g.expando+"_"+$v.guid++;return this[d]=!0,d}}),g.ajaxPrefilter("json jsonp",function(d,h,m){var C,S,_,R=d.jsonp!==!1&&(gd.test(d.url)?"url":typeof d.data=="string"&&(d.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&gd.test(d.data)&&"data");if(R||d.dataTypes[0]==="jsonp")return C=d.jsonpCallback=w(d.jsonpCallback)?d.jsonpCallback():d.jsonpCallback,R?d[R]=d[R].replace(gd,"$1"+C):d.jsonp!==!1&&(d.url+=(dd.test(d.url)?"&":"?")+d.jsonp+"="+C),d.converters["script json"]=function(){return _||g.error(C+" was not called"),_[0]},d.dataTypes[0]="json",S=t[C],t[C]=function(){_=arguments},m.always(function(){S===void 0?g(t).removeProp(C):t[C]=S,d[C]&&(d.jsonpCallback=h.jsonpCallback,eg.push(C)),_&&w(S)&&S(_[0]),_=S=void 0}),"script"}),y.createHTMLDocument=function(){var d=O.implementation.createHTMLDocument("").body;return d.innerHTML="<form></form><form></form>",d.childNodes.length===2}(),g.parseHTML=function(d,h,m){if(typeof d!="string")return[];typeof h=="boolean"&&(m=h,h=!1);var C,S,_;return h||(y.createHTMLDocument?(h=O.implementation.createHTMLDocument(""),C=h.createElement("base"),C.href=O.location.href,h.head.appendChild(C)):h=O),S=Pe.exec(d),_=!m&&[],S?[h.createElement(S[1])]:(S=Dv([d],h,_),_&&_.length&&g(_).remove(),g.merge([],S.childNodes))},g.fn.load=function(d,h,m){var C,S,_,R=this,M=d.indexOf(" ");return M>-1&&(C=Kn(d.slice(M)),d=d.slice(0,M)),w(h)?(m=h,h=void 0):h&&typeof h=="object"&&(S="POST"),R.length>0&&g.ajax({url:d,type:S||"GET",dataType:"html",data:h}).done(function(F){_=arguments,R.html(C?g("<div>").append(g.parseHTML(F)).find(C):F)}).always(m&&function(F,B){R.each(function(){m.apply(this,_||[F.responseText,B,F])})}),this},g.expr.pseudos.animated=function(d){return g.grep(g.timers,function(h){return d===h.elem}).length},g.offset={setOffset:function(d,h,m){var C,S,_,R,M,F,B,Y=g.css(d,"position"),Z=g(d),$={};Y==="static"&&(d.style.position="relative"),M=Z.offset(),_=g.css(d,"top"),F=g.css(d,"left"),B=(Y==="absolute"||Y==="fixed")&&(_+F).indexOf("auto")>-1,B?(C=Z.position(),R=C.top,S=C.left):(R=parseFloat(_)||0,S=parseFloat(F)||0),w(h)&&(h=h.call(d,m,g.extend({},M))),h.top!=null&&($.top=h.top-M.top+R),h.left!=null&&($.left=h.left-M.left+S),"using"in h?h.using.call(d,$):Z.css($)}},g.fn.extend({offset:function(d){if(arguments.length)return d===void 0?this:this.each(function(S){g.offset.setOffset(this,d,S)});var h,m,C=this[0];if(C)return C.getClientRects().length?(h=C.getBoundingClientRect(),m=C.ownerDocument.defaultView,{top:h.top+m.pageYOffset,left:h.left+m.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var d,h,m,C=this[0],S={top:0,left:0};if(g.css(C,"position")==="fixed")h=C.getBoundingClientRect();else{for(h=this.offset(),m=C.ownerDocument,d=C.offsetParent||m.documentElement;d&&(d===m.body||d===m.documentElement)&&g.css(d,"position")==="static";)d=d.parentNode;d&&d!==C&&d.nodeType===1&&(S=g(d).offset(),S.top+=g.css(d,"borderTopWidth",!0),S.left+=g.css(d,"borderLeftWidth",!0))}return{top:h.top-S.top-g.css(C,"marginTop",!0),left:h.left-S.left-g.css(C,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var d=this.offsetParent;d&&g.css(d,"position")==="static";)d=d.offsetParent;return d||$n})}}),g.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(d,h){var m=h==="pageYOffset";g.fn[d]=function(C){return Ee(this,function(S,_,R){var M;if(b(S)?M=S:S.nodeType===9&&(M=S.defaultView),R===void 0)return M?M[h]:S[_];M?M.scrollTo(m?M.pageXOffset:R,m?R:M.pageYOffset):S[_]=R},d,C,arguments.length)}}),g.each(["top","left"],function(d,h){g.cssHooks[h]=Nv(y.pixelPosition,function(m,C){if(C)return C=Ks(m,h),od.test(C)?g(m).position()[h]+"px":C})}),g.each({Height:"height",Width:"width"},function(d,h){g.each({padding:"inner"+d,content:h,"":"outer"+d},function(m,C){g.fn[C]=function(S,_){var R=arguments.length&&(m||typeof S!="boolean"),M=m||(S===!0||_===!0?"margin":"border");return Ee(this,function(F,B,Y){var Z;return b(F)?C.indexOf("outer")===0?F["inner"+d]:F.document.documentElement["client"+d]:F.nodeType===9?(Z=F.documentElement,Math.max(F.body["scroll"+d],Z["scroll"+d],F.body["offset"+d],Z["offset"+d],Z["client"+d])):Y===void 0?g.css(F,B,M):g.style(F,B,Y,M)},h,R?S:void 0,R)}})}),g.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(d,h){g.fn[h]=function(m){return this.on(h,m)}}),g.fn.extend({bind:function(d,h,m){return this.on(d,null,h,m)},unbind:function(d,h){return this.off(d,null,h)},delegate:function(d,h,m,C){return this.on(h,d,m,C)},undelegate:function(d,h,m){return arguments.length===1?this.off(d,"**"):this.off(h,d||"**",m)},hover:function(d,h){return this.mouseenter(d).mouseleave(h||d)}}),g.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(d,h){g.fn[h]=function(m,C){return arguments.length>0?this.on(h,null,m,C):this.trigger(h)}});var hO=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;g.proxy=function(d,h){var m,C,S;if(typeof h=="string"&&(m=d[h],h=d,d=m),!!w(d))return C=n.call(arguments,2),S=function(){return d.apply(h||this,C.concat(n.call(arguments)))},S.guid=d.guid=d.guid||g.guid++,S},g.holdReady=function(d){d?g.readyWait++:g.ready(!0)},g.isArray=Array.isArray,g.parseJSON=JSON.parse,g.nodeName=V,g.isFunction=w,g.isWindow=b,g.camelCase=Fe,g.type=L,g.now=Date.now,g.isNumeric=function(d){var h=g.type(d);
13return(h==="number"||h==="string")&&!isNaN(d-parseFloat(d))},g.trim=function(d){return d==null?"":(d+"").replace(hO,"$1")};var vO=t.jQuery,gO=t.$;return g.noConflict=function(d){return t.$===g&&(t.$=gO),d&&t.jQuery===g&&(t.jQuery=vO),g},typeof e>"u"&&(t.jQuery=t.$=g),g})}(Od)),Od.exports}(function(o,t){(function(e){o.exports=e(bO())})(function(e){var i=window.Slick||{};i=function(){var r=0;function n(s,a){var l=this,u;l.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(s),appendDots:e(s),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(c,p){return e('<button type="button" />').text(p+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},l.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.extend(l,l.initials),l.activeBreakpoint=null,l.animType=null,l.animProp=null,l.breakpoints=[],l.breakpointSettings=[],l.cssTransitions=!1,l.focussed=!1,l.interrupted=!1,l.hidden="hidden",l.paused=!0,l.positionProp=null,l.respondTo=null,l.rowCount=1,l.shouldClick=!0,l.$slider=e(s),l.$slidesCache=null,l.transformType=null,l.transitionType=null,l.visibilityChange="visibilitychange",l.windowWidth=0,l.windowTimer=null,u=e(s).data("slick")||{},l.options=e.extend({},l.defaults,a,u),l.currentSlide=l.options.initialSlide,l.originalSettings=l.options,typeof document.mozHidden<"u"?(l.hidden="mozHidden",l.visibilityChange="mozvisibilitychange"):typeof document.webkitHidden<"u"&&(l.hidden="webkitHidden",l.visibilityChange="webkitvisibilitychange"),l.autoPlay=e.proxy(l.autoPlay,l),l.autoPlayClear=e.proxy(l.autoPlayClear,l),l.autoPlayIterator=e.proxy(l.autoPlayIterator,l),l.changeSlide=e.proxy(l.changeSlide,l),l.clickHandler=e.proxy(l.clickHandler,l),l.selectHandler=e.proxy(l.selectHandler,l),l.setPosition=e.proxy(l.setPosition,l),l.swipeHandler=e.proxy(l.swipeHandler,l),l.dragHandler=e.proxy(l.dragHandler,l),l.keyHandler=e.proxy(l.keyHandler,l),l.instanceUid=r++,l.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,l.registerBreakpoints(),l.init(!0)}return n}(),i.prototype.activateADA=function(){var r=this;r.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},i.prototype.addSlide=i.prototype.slickAdd=function(r,n,s){var a=this;if(typeof n=="boolean")s=n,n=null;else if(n<0||n>=a.slideCount)return!1;a.unload(),typeof n=="number"?n===0&&a.$slides.length===0?e(r).appendTo(a.$slideTrack):s?e(r).insertBefore(a.$slides.eq(n)):e(r).insertAfter(a.$slides.eq(n)):s===!0?e(r).prependTo(a.$slideTrack):e(r).appendTo(a.$slideTrack),a.$slides=a.$slideTrack.children(this.options.slide),a.$slideTrack.children(this.options.slide).detach(),a.$slideTrack.append(a.$slides),a.$slides.each(function(l,u){e(u).attr("data-slick-index",l)}),a.$slidesCache=a.$slides,a.reinit()},i.prototype.animateHeight=function(){var r=this;if(r.options.slidesToShow===1&&r.options.adaptiveHeight===!0&&r.options.vertical===!1){var n=r.$slides.eq(r.currentSlide).outerHeight(!0);r.$list.animate({height:n},r.options.speed)}},i.prototype.animateSlide=function(r,n){var s={},a=this;a.animateHeight(),a.options.rtl===!0&&a.options.vertical===!1&&(r=-r),a.transformsEnabled===!1?a.options.vertical===!1?a.$slideTrack.animate({left:r},a.options.speed,a.options.easing,n):a.$slideTrack.animate({top:r},a.options.speed,a.options.easing,n):a.cssTransitions===!1?(a.options.rtl===!0&&(a.currentLeft=-a.currentLeft),e({animStart:a.currentLeft}).animate({animStart:r},{duration:a.options.speed,easing:a.options.easing,step:function(l){l=Math.ceil(l),a.options.vertical===!1?(s[a.animType]="translate("+l+"px, 0px)",a.$slideTrack.css(s)):(s[a.animType]="translate(0px,"+l+"px)",a.$slideTrack.css(s))},complete:function(){n&&n.call()}})):(a.applyTransition(),r=Math.ceil(r),a.options.vertical===!1?s[a.animType]="translate3d("+r+"px, 0px, 0px)":s[a.animType]="translate3d(0px,"+r+"px, 0px)",a.$slideTrack.css(s),n&&setTimeout(function(){a.disableTransition(),n.call()},a.options.speed))},i.prototype.getNavTarget=function(){var r=this,n=r.options.asNavFor;return n&&n!==null&&(n=e(n).not(r.$slider)),n},i.prototype.asNavFor=function(r){var n=this,s=n.getNavTarget();s!==null&&typeof s=="object"&&s.each(function(){var a=e(this).slick("getSlick");a.unslicked||a.slideHandler(r,!0)})},i.prototype.applyTransition=function(r){var n=this,s={};n.options.fade===!1?s[n.transitionType]=n.transformType+" "+n.options.speed+"ms "+n.options.cssEase:s[n.transitionType]="opacity "+n.options.speed+"ms "+n.options.cssEase,n.options.fade===!1?n.$slideTrack.css(s):n.$slides.eq(r).css(s)},i.prototype.autoPlay=function(){var r=this;r.autoPlayClear(),r.slideCount>r.options.slidesToShow&&(r.autoPlayTimer=setInterval(r.autoPlayIterator,r.options.autoplaySpeed))},i.prototype.autoPlayClear=function(){var r=this;r.autoPlayTimer&&clearInterval(r.autoPlayTimer)},i.prototype.autoPlayIterator=function(){var r=this,n=r.currentSlide+r.options.slidesToScroll;!r.paused&&!r.interrupted&&!r.focussed&&(r.options.infinite===!1&&(r.direction===1&&r.currentSlide+1===r.slideCount-1?r.direction=0:r.direction===0&&(n=r.currentSlide-r.options.slidesToScroll,r.currentSlide-1===0&&(r.direction=1))),r.slideHandler(n))},i.prototype.buildArrows=function(){var r=this;r.options.arrows===!0&&(r.$prevArrow=e(r.options.prevArrow).addClass("slick-arrow"),r.$
13nextArrow=e(r.options.nextArrow).addClass("slick-arrow"),r.slideCount>r.options.slidesToShow?(r.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),r.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),r.htmlExpr.test(r.options.prevArrow)&&r.$prevArrow.prependTo(r.options.appendArrows),r.htmlExpr.test(r.options.nextArrow)&&r.$nextArrow.appendTo(r.options.appendArrows),r.options.infinite!==!0&&r.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):r.$prevArrow.add(r.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},i.prototype.buildDots=function(){var r=this,n,s;if(r.options.dots===!0&&r.slideCount>r.options.slidesToShow){for(r.$slider.addClass("slick-dotted"),s=e("<ul />").addClass(r.options.dotsClass),n=0;n<=r.getDotCount();n+=1)s.append(e("<li />").append(r.options.customPaging.call(this,r,n)));r.$dots=s.appendTo(r.options.appendDots),r.$dots.find("li").first().addClass("slick-active")}},i.prototype.buildOut=function(){var r=this;r.$slides=r.$slider.children(r.options.slide+":not(.slick-cloned)").addClass("slick-slide"),r.slideCount=r.$slides.length,r.$slides.each(function(n,s){e(s).attr("data-slick-index",n).data("originalStyling",e(s).attr("style")||"")}),r.$slider.addClass("slick-slider"),r.$slideTrack=r.slideCount===0?e('<div class="slick-track"/>').appendTo(r.$slider):r.$slides.wrapAll('<div class="slick-track"/>').parent(),r.$list=r.$slideTrack.wrap('<div class="slick-list"/>').parent(),r.$slideTrack.css("opacity",0),(r.options.centerMode===!0||r.options.swipeToSlide===!0)&&(r.options.slidesToScroll=1),e("img[data-lazy]",r.$slider).not("[src]").addClass("slick-loading"),r.setupInfinite(),r.buildArrows(),r.buildDots(),r.updateDots(),r.setSlideClasses(typeof r.currentSlide=="number"?r.currentSlide:0),r.options.draggable===!0&&r.$list.addClass("draggable")},i.prototype.buildRows=function(){var r=this,n,s,a,l,u,c,p;if(l=document.createDocumentFragment(),c=r.$slider.children(),r.options.rows>0){for(p=r.options.slidesPerRow*r.options.rows,u=Math.ceil(c.length/p),n=0;n<u;n++){var f=document.createElement("div");for(s=0;s<r.options.rows;s++){var v=document.createElement("div");for(a=0;a<r.options.slidesPerRow;a++){var y=n*p+(s*r.options.slidesPerRow+a);c.get(y)&&v.appendChild(c.get(y))}f.appendChild(v)}l.appendChild(f)}r.$slider.empty().append(l),r.$slider.children().children().children().css({width:100/r.options.slidesPerRow+"%",display:"inline-block"})}},i.prototype.checkResponsive=function(r,n){var s=this,a,l,u,c=!1,p=s.$slider.width(),f=window.innerWidth||e(window).width();if(s.respondTo==="window"?u=f:s.respondTo==="slider"?u=p:s.respondTo==="min"&&(u=Math.min(f,p)),s.options.responsive&&s.options.responsive.length&&s.options.responsive!==null){l=null;for(a in s.breakpoints)s.breakpoints.hasOwnProperty(a)&&(s.originalSettings.mobileFirst===!1?u<s.breakpoints[a]&&(l=s.breakpoints[a]):u>s.breakpoints[a]&&(l=s.breakpoints[a]));l!==null?s.activeBreakpoint!==null?(l!==s.activeBreakpoint||n)&&(s.activeBreakpoint=l,s.breakpointSettings[l]==="unslick"?s.unslick(l):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[l]),r===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(r)),c=l):(s.activeBreakpoint=l,s.breakpointSettings[l]==="unslick"?s.unslick(l):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[l]),r===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(r)),c=l):s.activeBreakpoint!==null&&(s.activeBreakpoint=null,s.options=s.originalSettings,r===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(r),c=l),!r&&c!==!1&&s.$slider.trigger("breakpoint",[s,c])}},i.prototype.changeSlide=function(r,n){var s=this,a=e(r.currentTarget),l,u,c;switch(a.is("a")&&r.preventDefault(),a.is("li")||(a=a.closest("li")),c=s.slideCount%s.options.slidesToScroll!==0,l=c?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,r.data.message){case"previous":u=l===0?s.options.slidesToScroll:s.options.slidesToShow-l,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-u,!1,n);break;case"next":u=l===0?s.options.slidesToScroll:l,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+u,!1,n);break;case"index":var p=r.data.index===0?0:r.data.index||a.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(p),!1,n),a.children().trigger("focus");break;default:return}},i.prototype.checkNavigable=function(r){var n=this,s,a;if(s=n.getNavigableIndexes(),a=0,r>s[s.length-1])r=s[s.length-1];else for(var l in s){if(r<s[l]){r=a;break}a=s[l]}return r},i.prototype.cleanUpEvents=function(){var r=this;r.options.dots&&r.$dots!==null&&(e("li",r.$dots).off("click.slick",r.changeSlide).off("mouseenter.slick",e.proxy(r.interrupt,r,!0)).off("mouseleave.
13slick",e.proxy(r.interrupt,r,!1)),r.options.accessibility===!0&&r.$dots.off("keydown.slick",r.keyHandler)),r.$slider.off("focus.slick blur.slick"),r.options.arrows===!0&&r.slideCount>r.options.slidesToShow&&(r.$prevArrow&&r.$prevArrow.off("click.slick",r.changeSlide),r.$nextArrow&&r.$nextArrow.off("click.slick",r.changeSlide),r.options.accessibility===!0&&(r.$prevArrow&&r.$prevArrow.off("keydown.slick",r.keyHandler),r.$nextArrow&&r.$nextArrow.off("keydown.slick",r.keyHandler))),r.$list.off("touchstart.slick mousedown.slick",r.swipeHandler),r.$list.off("touchmove.slick mousemove.slick",r.swipeHandler),r.$list.off("touchend.slick mouseup.slick",r.swipeHandler),r.$list.off("touchcancel.slick mouseleave.slick",r.swipeHandler),r.$list.off("click.slick",r.clickHandler),e(document).off(r.visibilityChange,r.visibility),r.cleanUpSlideEvents(),r.options.accessibility===!0&&r.$list.off("keydown.slick",r.keyHandler),r.options.focusOnSelect===!0&&e(r.$slideTrack).children().off("click.slick",r.selectHandler),e(window).off("orientationchange.slick.slick-"+r.instanceUid,r.orientationChange),e(window).off("resize.slick.slick-"+r.instanceUid,r.resize),e("[draggable!=true]",r.$slideTrack).off("dragstart",r.preventDefault),e(window).off("load.slick.slick-"+r.instanceUid,r.setPosition)},i.prototype.cleanUpSlideEvents=function(){var r=this;r.$list.off("mouseenter.slick",e.proxy(r.interrupt,r,!0)),r.$list.off("mouseleave.slick",e.proxy(r.interrupt,r,!1))},i.prototype.cleanUpRows=function(){var r=this,n;r.options.rows>0&&(n=r.$slides.children().children(),n.removeAttr("style"),r.$slider.empty().append(n))},i.prototype.clickHandler=function(r){var n=this;n.shouldClick===!1&&(r.stopImmediatePropagation(),r.stopPropagation(),r.preventDefault())},i.prototype.destroy=function(r){var n=this;n.autoPlayClear(),n.touchObject={},n.cleanUpEvents(),e(".slick-cloned",n.$slider).detach(),n.$dots&&n.$dots.remove(),n.$prevArrow&&n.$prevArrow.length&&(n.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.prevArrow)&&n.$prevArrow.remove()),n.$nextArrow&&n.$nextArrow.length&&(n.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.nextArrow)&&n.$nextArrow.remove()),n.$slides&&(n.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){e(this).attr("style",e(this).data("originalStyling"))}),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.detach(),n.$list.detach(),n.$slider.append(n.$slides)),n.cleanUpRows(),n.$slider.removeClass("slick-slider"),n.$slider.removeClass("slick-initialized"),n.$slider.removeClass("slick-dotted"),n.unslicked=!0,r||n.$slider.trigger("destroy",[n])},i.prototype.disableTransition=function(r){var n=this,s={};s[n.transitionType]="",n.options.fade===!1?n.$slideTrack.css(s):n.$slides.eq(r).css(s)},i.prototype.fadeSlide=function(r,n){var s=this;s.cssTransitions===!1?(s.$slides.eq(r).css({zIndex:s.options.zIndex}),s.$slides.eq(r).animate({opacity:1},s.options.speed,s.options.easing,n)):(s.applyTransition(r),s.$slides.eq(r).css({opacity:1,zIndex:s.options.zIndex}),n&&setTimeout(function(){s.disableTransition(r),n.call()},s.options.speed))},i.prototype.fadeSlideOut=function(r){var n=this;n.cssTransitions===!1?n.$slides.eq(r).animate({opacity:0,zIndex:n.options.zIndex-2},n.options.speed,n.options.easing):(n.applyTransition(r),n.$slides.eq(r).css({opacity:0,zIndex:n.options.zIndex-2}))},i.prototype.filterSlides=i.prototype.slickFilter=function(r){var n=this;r!==null&&(n.$slidesCache=n.$slides,n.unload(),n.$slideTrack.children(this.options.slide).detach(),n.$slidesCache.filter(r).appendTo(n.$slideTrack),n.reinit())},i.prototype.focusHandler=function(){var r=this;r.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(n){n.stopImmediatePropagation();var s=e(this);setTimeout(function(){r.options.pauseOnFocus&&(r.focussed=s.is(":focus"),r.autoPlay())}
13,0)})},i.prototype.getCurrent=i.prototype.slickCurrentSlide=function(){var r=this;return r.currentSlide},i.prototype.getDotCount=function(){var r=this,n=0,s=0,a=0;if(r.options.infinite===!0)if(r.slideCount<=r.options.slidesToShow)++a;else for(;n<r.slideCount;)++a,n=s+r.options.slidesToScroll,s+=r.options.slidesToScroll<=r.options.slidesToShow?r.options.slidesToScroll:r.options.slidesToShow;else if(r.options.centerMode===!0)a=r.slideCount;else if(!r.options.asNavFor)a=1+Math.ceil((r.slideCount-r.options.slidesToShow)/r.options.slidesToScroll);else for(;n<r.slideCount;)++a,n=s+r.options.slidesToScroll,s+=r.options.slidesToScroll<=r.options.slidesToShow?r.options.slidesToScroll:r.options.slidesToShow;return a-1},i.prototype.getLeft=function(r){var n=this,s,a,l=0,u,c;return n.slideOffset=0,a=n.$slides.first().outerHeight(!0),n.options.infinite===!0?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,c=-1,n.options.vertical===!0&&n.options.centerMode===!0&&(n.options.slidesToShow===2?c=-1.5:n.options.slidesToShow===1&&(c=-2)),l=a*n.options.slidesToShow*c),n.slideCount%n.options.slidesToScroll!==0&&r+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(r>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(r-n.slideCount))*n.slideWidth*-1,l=(n.options.slidesToShow-(r-n.slideCount))*a*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,l=n.slideCount%n.options.slidesToScroll*a*-1))):r+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(r+n.options.slidesToShow-n.slideCount)*n.slideWidth,l=(r+n.options.slidesToShow-n.slideCount)*a),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,l=0),n.options.centerMode===!0&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:n.options.centerMode===!0&&n.options.infinite===!0?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:n.options.centerMode===!0&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),n.options.vertical===!1?s=r*n.slideWidth*-1+n.slideOffset:s=r*a*-1+l,n.options.variableWidth===!0&&(n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?u=n.$slideTrack.children(".slick-slide").eq(r):u=n.$slideTrack.children(".slick-slide").eq(r+n.options.slidesToShow),n.options.rtl===!0?u[0]?s=(n.$slideTrack.width()-u[0].offsetLeft-u.width())*-1:s=0:s=u[0]?u[0].offsetLeft*-1:0,n.options.centerMode===!0&&(n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?u=n.$slideTrack.children(".slick-slide").eq(r):u=n.$slideTrack.children(".slick-slide").eq(r+n.options.slidesToShow+1),n.options.rtl===!0?u[0]?s=(n.$slideTrack.width()-u[0].offsetLeft-u.width())*-1:s=0:s=u[0]?u[0].offsetLeft*-1:0,s+=(n.$list.width()-u.outerWidth())/2)),s},i.prototype.getOption=i.prototype.slickGetOption=function(r){var n=this;return n.options[r]},i.prototype.getNavigableIndexes=function(){var r=this,n=0,s=0,a=[],l;for(r.options.infinite===!1?l=r.slideCount:(n=r.options.slidesToScroll*-1,s=r.options.slidesToScroll*-1,l=r.slideCount*2);n<l;)a.push(n),n=s+r.options.slidesToScroll,s+=r.options.slidesToScroll<=r.options.slidesToShow?r.options.slidesToScroll:r.options.slidesToShow;return a},i.prototype.getSlick=function(){return this},i.prototype.getSlideCount=function(){var r=this,n,s,a;return a=r.options.centerMode===!0?r.slideWidth*Math.floor(r.options.slidesToShow/2):0,r.options.swipeToSlide===!0?(r.$slideTrack.find(".slick-slide").each(function(l,u){if(u.offsetLeft-a+e(u).outerWidth()/2>r.swipeLeft*-1)return s=u,!1}),n=Math.abs(e(s).attr("data-slick-index")-r.currentSlide)||1,n):r.options.slidesToScroll},i.prototype.goTo=i.prototype.slickGoTo=function(r,n){var s=this;s.changeSlide({data:{message:"index",index:parseInt(r)}},n)},i.prototype.init=function(r){var n=this;e(n.$slider).hasClass("slick-initialized")||(e(n.$slider).addClass("slick-initialized"),n.buildRows(),n.buildOut(),n.setProps(),n.startLoad(),n.loadSlider(),n.initializeEvents(),n.updateArrows(),n.updateDots(),n.checkResponsive(!0),n.focusHandler()),r&&n.$slider.trigger("init",[n]),n.options.accessibility===!0&&n.initADA(),n.options.autoplay&&(n.paused=!1,n.autoPlay())},i.prototype.initADA=function(){var r=this,n=Math.ceil(r.slideCount/r.options.slidesToShow),s=r.getNavigableIndexes().filter(function(u){return u>=0&&u<r.slideCount});r.$slides.add(r.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),r.$dots!==null&&(r.$slides.not(r.$slideTrack.find(".slick-cloned")).each(function(u){var c=s.indexOf(u);if(e(this).attr({role:"tabpanel",id:"slick-slide"+r.instanceUid+u,tabindex:-1}),c!==-1){var p="slick-slide-control"+r.instanceUid+c;e("#"+p).length&&e(this).attr({"aria-describedby":p})}}),r.$dots.attr("role","tablist").find("li").each(function(u){var c=s[u];e(this).attr({role:"presentation"}),e(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+r.instanceUid+u,"aria-controls":"slick-slide"+r.instanceUid+c,"aria-label":u+1+" of "+n,"aria-selected":null,tabindex:"-1"})}).eq(r.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var a=r.currentSlide,l=a+r.options.slidesToShow;a<l;
vendor: 1,487 bytes, line 13
13a++)r.options.focusOnChange?r.$slides.eq(a).attr({tabindex:"0"}):r.$slides.eq(a).removeAttr("tabindex");r.activateADA()},i.prototype.initArrowEvents=function(){var r=this;r.options.arrows===!0&&r.slideCount>r.options.slidesToShow&&(r.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},r.changeSlide),r.$nextArrow.off("click.slick").on("click.slick",{message:"next"},r.changeSlide),r.options.accessibility===!0&&(r.$prevArrow.on("keydown.slick",r.keyHandler),r.$nextArrow.on("keydown.slick",r.keyHandler)))},i.prototype.initDotEvents=function(){var r=this;r.options.dots===!0&&r.slideCount>r.options.slidesToShow&&(e("li",r.$dots).on("click.slick",{message:"index"},r.changeSlide),r.options.accessibility===!0&&r.$dots.on("keydown.slick",r.keyHandler)),r.options.dots===!0&&r.options.pauseOnDotsHover===!0&&r.slideCount>r.options.slidesToShow&&e("li",r.$dots).on("mouseenter.slick",e.proxy(r.interrupt,r,!0)).on("mouseleave.slick",e.proxy(r.interrupt,r,!1))},i.prototype.initSlideEvents=function(){var r=this;r.options.pauseOnHover&&(r.$list.on("mouseenter.slick",e.proxy(r.interrupt,r,!0)),r.$list.on("mouseleave.slick",e.proxy(r.interrupt,r,!1)))},i.prototype.initializeEvents=function(){var r=this;r.initArrowEvents(),r.initDotEvents(),r.initSlideEvents(),r.$list.on("touchstart.slick mousedown.slick",{action:"start"},r.swipeHandler),r.$list.on("touchmove.slick mousemove.slick",{action:"move"},r.swipeHandler),r.$list.on("touchend.slick mouseup.slick",{action:"end"}
13,r.swipeHandler),r.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},r.swipeHandler),r.$list.on("click.slick",r.clickHandler),e(document).on(r.visibilityChange,e.proxy(r.visibility,r)),r.options.accessibility===!0&&r.$list.on("keydown.slick",r.keyHandler),r.options.focusOnSelect===!0&&e(r.$slideTrack).children().on("click.slick",r.selectHandler),e(window).on("orientationchange.slick.slick-"+r.instanceUid,e.proxy(r.orientationChange,r)),e(window).on("resize.slick.slick-"+r.instanceUid,e.proxy(r.resize,r)),e("[draggable!=true]",r.$slideTrack).on("dragstart",r.preventDefault),e(window).on("load.slick.slick-"+r.instanceUid,r.setPosition),e(r.setPosition)},i.prototype.initUI=function(){var r=this;r.options.arrows===!0&&r.slideCount>r.options.slidesToShow&&(r.$prevArrow.show(),r.$nextArrow.show()),r.options.dots===!0&&r.slideCount>r.options.slidesToShow&&r.$dots.show()},i.prototype.keyHandler=function(r){var n=this;r.target.tagName.match("TEXTAREA|INPUT|SELECT")||(r.keyCode===37&&n.options.accessibility===!0?n.changeSlide({data:{message:n.options.rtl===!0?"next":"previous"}}):r.keyCode===39&&n.options.accessibility===!0&&n.changeSlide({data:{message:n.options.rtl===!0?"previous":"next"}}))},i.prototype.lazyLoad=function(){var r=this,n,s,a,l;function u(y){e("img[data-lazy]",y).each(function(){var w=e(this),b=e(this).attr("data-lazy"),O=e(this).attr("data-srcset"),A=e(this).attr("data-sizes")||r.$slider.attr("data-sizes"),P=document.createElement("img");P.onload=function(){w.animate({opacity:0}
vendor: 6,690 bytes, line 13
13,100,function(){O&&(w.attr("srcset",O),A&&w.attr("sizes",A)),w.attr("src",b).animate({opacity:1},200,function(){w.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,w,b])})},P.onerror=function(){w.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,w,b])},P.src=b})}if(r.options.centerMode===!0?r.options.infinite===!0?(a=r.currentSlide+(r.options.slidesToShow/2+1),l=a+r.options.slidesToShow+2):(a=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),l=2+(r.options.slidesToShow/2+1)+r.currentSlide):(a=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,l=Math.ceil(a+r.options.slidesToShow),r.options.fade===!0&&(a>0&&a--,l<=r.slideCount&&l++)),n=r.$slider.find(".slick-slide").slice(a,l),r.options.lazyLoad==="anticipated")for(var c=a-1,p=l,f=r.$slider.find(".slick-slide"),v=0;v<r.options.slidesToScroll;v++)c<0&&(c=r.slideCount-1),n=n.add(f.eq(c)),n=n.add(f.eq(p)),c--,p++;u(n),r.slideCount<=r.options.slidesToShow?(s=r.$slider.find(".slick-slide"),u(s)):r.currentSlide>=r.slideCount-r.options.slidesToShow?(s=r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow),u(s)):r.currentSlide===0&&(s=r.$slider.find(".slick-cloned").slice(r.options.slidesToShow*-1),u(s))},i.prototype.loadSlider=function(){var r=this;r.setPosition(),r.$slideTrack.css({opacity:1}),r.$slider.removeClass("slick-loading"),r.initUI(),r.options.lazyLoad==="progressive"&&r.progressiveLazyLoad()},i.prototype.next=i.prototype.slickNext=function(){var r=this;r.changeSlide({data:{message:"next"}})},i.prototype.orientationChange=function(){var r=this;r.checkResponsive(),r.setPosition()},i.prototype.pause=i.prototype.slickPause=function(){var r=this;r.autoPlayClear(),r.paused=!0},i.prototype.play=i.prototype.slickPlay=function(){var r=this;r.autoPlay(),r.options.autoplay=!0,r.paused=!1,r.focussed=!1,r.interrupted=!1},i.prototype.postSlide=function(r){var n=this;if(!n.unslicked&&(n.$slider.trigger("afterChange",[n,r]),n.animating=!1,n.slideCount>n.options.slidesToShow&&n.setPosition(),n.swipeLeft=null,n.options.autoplay&&n.autoPlay(),n.options.accessibility===!0&&(n.initADA(),n.options.focusOnChange))){var s=e(n.$slides.get(n.currentSlide));s.attr("tabindex",0).focus()}},i.prototype.prev=i.prototype.slickPrev=function(){var r=this;r.changeSlide({data:{message:"previous"}})},i.prototype.preventDefault=function(r){r.preventDefault()},i.prototype.progressiveLazyLoad=function(r){r=r||1;var n=this,s=e("img[data-lazy]",n.$slider),a,l,u,c,p;s.length?(a=s.first(),l=a.attr("data-lazy"),u=a.attr("data-srcset"),c=a.attr("data-sizes")||n.$slider.attr("data-sizes"),p=document.createElement("img"),p.onload=function(){u&&(a.attr("srcset",u),c&&a.attr("sizes",c)),a.attr("src",l).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),n.options.adaptiveHeight===!0&&n.setPosition(),n.$slider.trigger("lazyLoaded",[n,a,l]),n.progressiveLazyLoad()},p.onerror=function(){r<3?setTimeout(function(){n.progressiveLazyLoad(r+1)},500):(a.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,a,l]),n.progressiveLazyLoad())},p.src=l):n.$slider.trigger("allImagesLoaded",[n])},i.prototype.refresh=function(r){var n=this,s,a;a=n.slideCount-n.options.slidesToShow,!n.options.infinite&&n.currentSlide>a&&(n.currentSlide=a),n.slideCount<=n.options.slidesToShow&&(n.currentSlide=0),s=n.currentSlide,n.destroy(!0),e.extend(n,n.initials,{currentSlide:s}),n.init(),r||n.changeSlide({data:{message:"index",index:s}},!1)},i.prototype.registerBreakpoints=function(){var r=this,n,s,a,l=r.options.responsive||null;if(e.type(l)==="array"&&l.length){r.respondTo=r.options.respondTo||"window";for(n in l)if(a=r.breakpoints.length-1,l.hasOwnProperty(n)){for(s=l[n].breakpoint;a>=0;)r.breakpoints[a]&&r.breakpoints[a]===s&&r.breakpoints.splice(a,1),a--;r.breakpoints.push(s),r.breakpointSettings[s]=l[n].settings}r.breakpoints.sort(function(u,c){return r.options.mobileFirst?u-c:c-u})}},i.prototype.reinit=function(){var r=this;r.$slides=r.$slideTrack.children(r.options.slide).addClass("slick-slide"),r.slideCount=r.$slides.length,r.currentSlide>=r.slideCount&&r.currentSlide!==0&&(r.currentSlide=r.currentSlide-r.options.slidesToScroll),r.slideCount<=r.options.slidesToShow&&(r.currentSlide=0),r.registerBreakpoints(),r.setProps(),r.setupInfinite(),r.buildArrows(),r.updateArrows(),r.initArrowEvents(),r.buildDots(),r.updateDots(),r.initDotEvents(),r.cleanUpSlideEvents(),r.initSlideEvents(),r.checkResponsive(!1,!0),r.options.focusOnSelect===!0&&e(r.$slideTrack).children().on("click.slick",r.selectHandler),r.setSlideClasses(typeof r.currentSlide=="number"?r.currentSlide:0),r.setPosition(),r.focusHandler(),r.paused=!r.options.autoplay,r.autoPlay(),r.$slider.trigger("reInit",[r])},i.prototype.resize=function(){var r=this;e(window).width()!==r.windowWidth&&(clearTimeout(r.windowDelay),r.windowDelay=window.setTimeout(function(){r.windowWidth=e(window).width(),r.checkResponsive(),r.unslicked||r.setPosition()},50))},i.prototype.removeSlide=i.prototype.slickRemove=function(r,n,s){var a=this;if(typeof r=="boolean"?(n=r,r=n===!0?0:a.slideCount-1):r=n===!0?--r:r,a.slideCount<1||r<0||r>a.slideCount-1)return!1;a.unload(),s===!0?a.$slideTrack.children().remove():a.$slideTrack.children(this.options.slide).eq(r).remove(),a.$slides=a.$slideTrack.children(this.options.slide),a.$slideTrack.children(this.options.slide).detach(),a.$slideTrack.append(a.$slides),a.$slidesCache=a.$slides,a.reinit()},i.prototype.setCSS=function(r){var n=this,s={},a,l;n.options.rtl===!0&&(r=-r),a=n.positionProp=="left"?Math.ceil(r)+"px":"0px",l=n.positionProp=="top"?Math.ceil(r)+"px":"0px",s[n.positionProp]=r,n.transformsEnabled===!1?n.$slideTrack.css(s):(s={},n.cssTransitions===!1?(s[n.animType]="translate("+a+", "+l+")",n.$slideTrack.css(s)):(s[n.animType]="translate3d("+a+", "+l+", 0px)",n.$slideTrack.css(s)))},i.prototype.setDimensions=function(){var r=this;r.options.vertical===!1?r.options.centerMode===!0&&r.$list.css({padding:"0px "+r.options.centerPadding}):(r.$list.height(r.$slides.first().outerHeight(!0)*r.options.slidesToShow),r.options.centerMode===!0&&r.$list.css({padding:r.options.centerPadding+" 0px"})),r.listWidth=r.$list.width(),r.listHeight=r.$list.height(),r.options.vertical===!1&&r.options.variableWidth===!1?(r.slideWidth=Math.ceil(r.listWidth/r.options.slidesToShow),r.$slideTrack.width(Math.ceil(r.slideWidth*r.$slideTrack.children(".slick-slide").length))):r.options.variableWidth===!0?r.$slideTrack.width(5e3*r.slideCount):(r.slideWidth=Math.ceil(r.listWidth),r.$
13slideTrack.height(Math.ceil(r.$slides.first().outerHeight(!0)*r.$slideTrack.children(".slick-slide").length)));var n=r.$slides.first().outerWidth(!0)-r.$slides.first().width();r.options.variableWidth===!1&&r.$slideTrack.children(".slick-slide").width(r.slideWidth-n)},i.prototype.setFade=function(){var r=this,n;r.$slides.each(function(s,a){n=r.slideWidth*s*-1,r.options.rtl===!0?e(a).css({position:"relative",right:n,top:0,zIndex:r.options.zIndex-2,opacity:0}):e(a).css({position:"relative",left:n,top:0,zIndex:r.options.zIndex-2,opacity:0})}),r.$slides.eq(r.currentSlide).css({zIndex:r.options.zIndex-1,opacity:1})},i.prototype.setHeight=function(){var r=this;if(r.options.slidesToShow===1&&r.options.adaptiveHeight===!0&&r.options.vertical===!1){var n=r.$slides.eq(r.currentSlide).outerHeight(!0);r.$list.css("height",n)}},i.prototype.setOption=i.prototype.slickSetOption=function(){var r=this,n,s,a,l,u=!1,c;if(e.type(arguments[0])==="object"?(a=arguments[0],u=arguments[1],c="multiple"):e.type(arguments[0])==="string"&&(a=arguments[0],l=arguments[1],u=arguments[2],arguments[0]==="responsive"&&e.type(arguments[1])==="array"?c="responsive":typeof arguments[1]<"u"&&(c="single")),c==="single")r.options[a]=l;else if(c==="multiple")e.each(a,function(p,f){r.options[p]=f});else if(c==="responsive")for(s in l)if(e.type(r.options.responsive)!=="array")r.options.responsive=[l[s]];else{for(n=r.options.responsive.length-1;n>=0;)r.options.responsive[n].breakpoint===l[s].breakpoint&&r.options.responsive.splice(n,1),n--;r.options.responsive.push(l[s])}u&&(r.unload(),r.reinit())},i.prototype.setPosition=function(){var r=this;r.setDimensions(),r.setHeight(),r.options.fade===!1?r.setCSS(r.getLeft(r.currentSlide)):r.setFade(),r.$slider.trigger("setPosition",[r])},i.prototype.setProps=function(){var r=this,n=document.body.style;r.positionProp=r.options.vertical===!0?"top":"left",r.positionProp==="top"?r.$slider.addClass("slick-vertical"):r.$slider.removeClass("slick-vertical"),(n.WebkitTransition!==void 0||n.MozTransition!==void 0||n.msTransition!==void 0)&&r.options.useCSS===!0&&(r.cssTransitions=!0),r.options.fade&&(typeof r.options.zIndex=="number"?r.options.zIndex<3&&(r.options.zIndex=3):r.options.zIndex=r.defaults.zIndex),n.OTransform!==void 0&&(r.animType="OTransform",r.transformType="-o-transform",r.transitionType="OTransition",n.perspectiveProperty===void 0&&n.webkitPerspective===void 0&&(r.animType=!1)),n.MozTransform!==void 0&&(r.animType="MozTransform",r.transformType="-moz-transform",r.transitionType="MozTransition",n.perspectiveProperty===void 0&&n.MozPerspective===void 0&&(r.animType=!1)),n.webkitTransform!==void 0&&(r.animType="webkitTransform",r.transformType="-webkit-transform",r.transitionType="webkitTransition",n.perspectiveProperty===void 0&&n.webkitPerspective===void 0&&(r.animType=!1)),n.msTransform!==void 0&&(r.animType="msTransform",r.transformType="-ms-transform",r.transitionType="msTransition",n.msTransform===void 0&&(r.animType=!1)),n.transform!==void 0&&r.animType!==!1&&(r.animType="transform",r.transformType="transform",r.transitionType="transition"),r.transformsEnabled=r.options.useTransform&&r.animType!==null&&r.animType!==!1},i.prototype.setSlideClasses=function(r){var n=this,s,a,l,u;if(a=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(r).addClass("slick-current"),n.options.centerMode===!0){var c=n.options.slidesToShow%2===0?1:0;s=Math.floor(n.options.slidesToShow/2),n.options.infinite===!0&&(r>=s&&r<=n.slideCount-1-s?n.$slides.slice(r-s+c,r+s+1).addClass("slick-active").attr("aria-hidden","false"):(l=n.options.slidesToShow+r,a.slice(l-s+1+c,l+s+2).addClass("slick-active").attr("aria-hidden","false")),r===0?a.eq(a.length-1-n.options.slidesToShow).addClass("slick-center"):r===n.slideCount-1&&a.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(r).addClass("slick-center")}else r>=0&&r<=n.slideCount-n.options.slidesToShow?n.$slides.slice(r,r+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):a.length<=n.options.slidesToShow?a.addClass("slick-active").attr("aria-hidden","false"):(u=n.slideCount%n.options.slidesToShow,l=n.options.infinite===!0?n.options.slidesToShow+r:r,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-r<n.options.slidesToShow?a.slice(l-(n.options.slidesToShow-u),l+u).addClass("slick-active").attr("aria-hidden","false"):a.slice(l,l+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));(n.options.lazyLoad==="ondemand"||n.options.lazyLoad==="anticipated")&&n.lazyLoad()},i.prototype.setupInfinite=function(){var r=this,n,s,a;if(r.options.fade===!0&&(r.options.centerMode=!1),r.options.infinite===!0&&r.options.fade===!1&&(s=null,r.slideCount>r.options.slidesToShow)){for(r.options.centerMode===!0?a=r.options.slidesToShow+1:a=r.options.slidesToShow,n=r.slideCount;n>r.slideCount-a;n-=1)s=n-1,e(r.$slides[s]).clone(!0).attr("id","").attr("data-slick-index",s-r.slideCount).prependTo(r.$slideTrack).addClass("slick-cloned");for(n=0;n<a+r.slideCount;n+=1)s=n,e(r.$slides[s]).clone(!0).attr("id","").attr("data-slick-index",s+r.slideCount).appendTo(r.$slideTrack).addClass("slick-cloned");r.$slideTrack.find(".slick-cloned").find("[id]").each(function(){e(this).attr("id","")})}},i.prototype.interrupt=function(r){var n=this;r||n.autoPlay(),n.interrupted=r},i.prototype.selectHandler=function(r){var n=this,s=e(r.target).is(".slick-slide")?e(r.target):e(r.target).parents(".slick-slide"),a=parseInt(s.attr("data-slick-index"));if(a||(a=0),n.slideCount<=n.options.slidesToShow){n.slideHandler(a,!1,!0);return}n.slideHandler(a)},i.prototype.slideHandler=function(r,n,s){var a,l,u,c,p=null,f=this,v;
13if(n=n||!1,!(f.animating===!0&&f.options.waitForAnimate===!0)&&!(f.options.fade===!0&&f.currentSlide===r)){if(n===!1&&f.asNavFor(r),a=r,p=f.getLeft(a),c=f.getLeft(f.currentSlide),f.currentLeft=f.swipeLeft===null?c:f.swipeLeft,f.options.infinite===!1&&f.options.centerMode===!1&&(r<0||r>f.getDotCount()*f.options.slidesToScroll)){f.options.fade===!1&&(a=f.currentSlide,s!==!0&&f.slideCount>f.options.slidesToShow?f.animateSlide(c,function(){f.postSlide(a)}):f.postSlide(a));return}else if(f.options.infinite===!1&&f.options.centerMode===!0&&(r<0||r>f.slideCount-f.options.slidesToScroll)){f.options.fade===!1&&(a=f.currentSlide,s!==!0&&f.slideCount>f.options.slidesToShow?f.animateSlide(c,function(){f.postSlide(a)}):f.postSlide(a));return}if(f.options.autoplay&&clearInterval(f.autoPlayTimer),a<0?f.slideCount%f.options.slidesToScroll!==0?l=f.slideCount-f.slideCount%f.options.slidesToScroll:l=f.slideCount+a:a>=f.slideCount?f.slideCount%f.options.slidesToScroll!==0?l=0:l=a-f.slideCount:l=a,f.animating=!0,f.$slider.trigger("beforeChange",[f,f.currentSlide,l]),u=f.currentSlide,f.currentSlide=l,f.setSlideClasses(f.currentSlide),f.options.asNavFor&&(v=f.getNavTarget(),v=v.slick("getSlick"),v.slideCount<=v.options.slidesToShow&&v.setSlideClasses(f.currentSlide)),f.updateDots(),f.updateArrows(),f.options.fade===!0){s!==!0?(f.fadeSlideOut(u),f.fadeSlide(l,function(){f.postSlide(l)})):f.postSlide(l),f.animateHeight();return}s!==!0&&f.slideCount>f.options.slidesToShow?f.animateSlide(p,function(){f.postSlide(l)}):f.postSlide(l)}},i.prototype.startLoad=function(){var r=this;r.options.arrows===!0&&r.slideCount>r.options.slidesToShow&&(r.$prevArrow.hide(),r.$nextArrow.hide()),r.options.dots===!0&&r.slideCount>r.options.slidesToShow&&r.$dots.hide(),r.$slider.addClass("slick-loading")},i.prototype.swipeDirection=function(){var r,n,s,a,l=this;return r=l.touchObject.startX-l.touchObject.curX,n=l.touchObject.startY-l.touchObject.curY,s=Math.atan2(n,r),a=Math.round(s*180/Math.PI),a<0&&(a=360-Math.abs(a)),a<=45&&a>=0||a<=360&&a>=315?l.options.rtl===!1?"left":"right":a>=135&&a<=225?l.options.rtl===!1?"right":"left":l.options.verticalSwiping===!0?a>=35&&a<=135?"down":"up":"vertical"},i.prototype.swipeEnd=function(r){var n=this,s,a;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),n.touchObject.curX===void 0)return!1;if(n.touchObject.edgeHit===!0&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(a=n.swipeDirection(),a){case"left":case"down":s=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":s=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1;break}a!="vertical"&&(n.slideHandler(s),n.touchObject={},n.$slider.trigger("swipe",[n,a]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},i.prototype.swipeHandler=function(r){var n=this;if(!(n.options.swipe===!1||"ontouchend"in document&&n.options.swipe===!1)&&!(n.options.draggable===!1&&r.type.indexOf("mouse")!==-1))switch(n.touchObject.fingerCount=r.originalEvent&&r.originalEvent.touches!==void 0?r.originalEvent.touches.length:1,n.touchObject.minSwipe=n.listWidth/n.options.touchThreshold,n.options.verticalSwiping===!0&&(n.touchObject.minSwipe=n.listHeight/n.options.touchThreshold),r.data.action){case"start":n.swipeStart(r);break;case"move":n.swipeMove(r);break;case"end":n.swipeEnd(r);break}},i.prototype.swipeMove=function(r){var n=this,s,a,l,u,c,p;if(c=r.originalEvent!==void 0?r.originalEvent.touches:null,!n.dragging||n.scrolling||c&&c.length!==1)return!1;if(s=n.getLeft(n.currentSlide),n.touchObject.curX=c!==void 0?c[0].pageX:r.clientX,n.touchObject.curY=c!==void 0?c[0].pageY:r.clientY,n.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(n.touchObject.curX-n.touchObject.startX,2))),p=Math.round(Math.sqrt(Math.pow(n.touchObject.curY-n.touchObject.startY,2))),!n.options.verticalSwiping&&!n.swiping&&p>4)return n.scrolling=!0,!1;if(n.options.verticalSwiping===!0&&(n.touchObject.swipeLength=p),a=n.swipeDirection(),r.originalEvent!==void 0&&n.touchObject.swipeLength>4&&(n.swiping=!0,r.preventDefault()),u=(n.options.rtl===!1?1:-1)*(n.touchObject.curX>n.touchObject.startX?1:-1),n.options.verticalSwiping===!0&&(u=n.touchObject.curY>n.touchObject.startY?1:-1),l=n.touchObject.swipeLength,n.touchObject.edgeHit=!1,n.options.infinite===!1&&(n.currentSlide===0&&a==="right"||n.currentSlide>=n.getDotCount()&&a==="left")&&(l=n.touchObject.swipeLength*n.options.edgeFriction,n.touchObject.edgeHit=!0),n.options.vertical===!1?n.swipeLeft=s+l*u:n.swipeLeft=s+l*(n.$list.height()/n.listWidth)*u,n.options.verticalSwiping===!0&&(n.swipeLeft=s+l*u),n.options.fade===!0||n.options.touchMove===!1)return!1;if(n.animating===!0)return n.swipeLeft=null,!1;n.setCSS(n.swipeLeft)},i.prototype.swipeStart=function(r){var n=this,s;if(n.interrupted=!0,n.touchObject.fingerCount!==1||n.slideCount<=n.options.slidesToShow)return n.touchObject={},!1;r.originalEvent!==void 0&&r.originalEvent.touches!==void 0&&(s=r.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=s!==void 0?s.pageX:r.clientX,n.touchObject.startY=n.touchObject.curY=s!==void 0?s.pageY:r.clientY,n.dragging=!0},i.prototype.unfilterSlides=i.prototype.slickUnfilter=function(){var r=this;r.$slidesCache!==null&&(r.unload(),r.$slideTrack.children(this.options.slide).detach(),r.$slidesCache.appendTo(r.$slideTrack),r.reinit())},i.prototype.unload=function(){var r=this;e(".slick-cloned",r.$slider).remove(),r.$dots&&r.$dots.remove(),r.$prevArrow&&r.htmlExpr.test(r.options.prevArrow)&&r.$prevArrow.remove(),r.$nextArrow&&r.htmlExpr.test(r.options.nextArrow)&&r.$nextArrow.remove(),r.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
13,i.prototype.unslick=function(r){var n=this;n.$slider.trigger("unslick",[n,r]),n.destroy()},i.prototype.updateArrows=function(){var r=this;Math.floor(r.options.slidesToShow/2),r.options.arrows===!0&&r.slideCount>r.options.slidesToShow&&!r.options.infinite&&(r.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),r.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),r.currentSlide===0?(r.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),r.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(r.currentSlide>=r.slideCount-r.options.slidesToShow&&r.options.centerMode===!1||r.currentSlide>=r.slideCount-1&&r.options.centerMode===!0)&&(r.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),r.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},i.prototype.updateDots=function(){var r=this;r.$dots!==null&&(r.$dots.find("li").removeClass("slick-active").end(),r.$dots.find("li").eq(Math.floor(r.currentSlide/r.options.slidesToScroll)).addClass("slick-active"))},i.prototype.visibility=function(){var r=this;r.options.autoplay&&(document[r.hidden]?r.interrupted=!0:r.interrupted=!1)},e.fn.slick=function(){var r=this,n=arguments[0],s=Array.prototype.slice.call(arguments,1),a=r.length,l,u;for(l=0;l<a;l++)if(typeof n=="object"||typeof n>"u"?r[l].slick=new i(r[l],n):u=r[l].slick[n].apply(r[l].slick,s),typeof u<"u")return u;return r}})})(OO);var Hu=function(){return Hu=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r]);return o},Hu.apply(this,arguments)},TO=function(){function o(t,e,i){var r=this;this.endVal=e,this.options=i,this.version="2.6.2",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(n){r.startTime||(r.startTime=n);var s=n-r.startTime;r.remaining=r.duration-s,r.useEasing?r.countDown?r.frameVal=r.startVal-r.easingFn(s,0,r.startVal-r.endVal,r.duration):r.frameVal=r.easingFn(s,r.startVal,r.endVal-r.startVal,r.duration):r.frameVal=r.startVal+(r.endVal-r.startVal)*(s/r.duration);var a=r.countDown?r.frameVal<r.endVal:r.frameVal>r.endVal;r.frameVal=a?r.endVal:r.frameVal,r.frameVal=Number(r.frameVal.toFixed(r.options.decimalPlaces)),r.printValue(r.frameVal),s<r.duration?r.rAF=requestAnimationFrame(r.count):r.finalEndVal!==null?r.update(r.finalEndVal):r.options.onCompleteCallback&&r.options.onCompleteCallback()},this.formatNumber=function(n){var s,a,l,u,c=n<0?"-":"";s=Math.abs(n).toFixed(r.options.decimalPlaces);var p=(s+="").split(".");if(a=p[0],l=p.length>1?r.options.decimal+p[1]:"",r.options.useGrouping){u="";for(var f=3,v=0,y=0,w=a.length;y<w;++y)r.options.useIndianSeparators&&y===4&&(f=2,v=1),y!==0&&v%f==0&&(u=r.options.separator+u),v++,u=a[w-y-1]+u;a=u}return r.options.numerals&&r.options.numerals.length&&(a=a.replace(/[0-9]/g,function(b){return r.options.numerals[+b]}),l=l.replace(/[0-9]/g,function(b){return r.options.numerals[+b]})),c+r.options.prefix+a+l+r.options.suffix},this.easeOutExpo=function(n,s,a,l){return a*(1-Math.pow(2,-10*n/l))*1024/1023+s},this.options=Hu(Hu({},this.defaults),i),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(e),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el=typeof t=="string"?document.getElementById(t):t,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.enableScrollSpy&&(this.error?console.error(this.error,t):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return r.handleScroll(r)}),window.onscroll=function(){window.onScrollFns.forEach(function(n){return n()})},this.handleScroll(this)))}return o.prototype.handleScroll=function(t){if(t&&window&&!t.once){var e=window.innerHeight+window.scrollY,i=t.el.getBoundingClientRect(),r=i.top+window.pageYOffset,n=i.top+i.height+window.pageYOffset;n<e&&n>window.scrollY&&t.paused?(t.paused=!1,setTimeout(function(){return t.start()},t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>n||r>e)&&!t.paused&&t.reset()}},o.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var e=t-this.startVal;if(Math.abs(e)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var i=this.countDown?1:-1;
13this.endVal=t+i*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},o.prototype.start=function(t){this.error||(t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},o.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},o.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},o.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},o.prototype.printValue=function(t){var e;if(this.el){var i=this.formattingFn(t);!((e=this.options.plugin)===null||e===void 0)&&e.render?this.options.plugin.render(this.el,i):this.el.tagName==="INPUT"?this.el.value=i:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=i:this.el.innerHTML=i}},o.prototype.ensureNumber=function(t){return typeof t=="number"&&!isNaN(t)},o.prototype.validateValue=function(t){var e=Number(t);return this.ensureNumber(e)?e:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},o.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},o}(),eC={exports:{}};(function(o,t){(function(e,i){o.exports=i()})(kf,function(){return function(e){function i(n){if(r[n])return r[n].exports;var s=r[n]={exports:{},id:n,loaded:!1};return e[n].call(s.exports,s,s.exports,i),s.loaded=!0,s.exports}var r={};return i.m=e,i.c=r,i.p="dist/",i(0)}([function(e,i,r){function n(X){return X&&X.__esModule?X:{default:X}}var s=Object.assign||function(X){for(var re=1;re<arguments.length;re++){var ge=arguments[re];for(var ae in ge)Object.prototype.hasOwnProperty.call(ge,ae)&&(X[ae]=ge[ae])}return X},a=r(1),l=(n(a),r(6)),u=n(l),c=r(7),p=n(c),f=r(8),v=n(f),y=r(9),w=n(y),b=r(10),O=n(b),A=r(11),P=n(A),L=r(14),x=n(L),H=[],g=!1,N={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},V=function(){var X=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(X&&(g=!0),g)return H=(0,P.default)(H,N),(0,O.default)(H,N.once),H},z=function(){H=(0,x.default)(),V()},I=function(){H.forEach(function(X,re){X.node.removeAttribute("data-aos"),X.node.removeAttribute("data-aos-easing"),X.node.removeAttribute("data-aos-duration"),X.node.removeAttribute("data-aos-delay")})},k=function(X){return X===!0||X==="mobile"&&w.default.mobile()||X==="phone"&&w.default.phone()||X==="tablet"&&w.default.tablet()||typeof X=="function"&&X()===!0},j=function(X){N=s(N,X),H=(0,x.default)();var re=document.all&&!window.atob;return k(N.disable)||re?I():(N.disableMutationObserver||v.default.isSupported()||(console.info(` 14 aos: MutationObserver is not supported on this browser, 15 code mutations observing has been disabled. 16 You may have to call "refreshHard()" by yourself. 17 `),N.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",N.easing),document.querySelector("body").setAttribute("data-aos-duration",N.duration),document.querySelector("body").setAttribute("data-aos-delay",N.delay),N.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?V(!0):N.startEvent==="load"?window.addEventListener(N.startEvent,function(){V(!0)}):document.addEventListener(N.startEvent,function(){V(!0)}),window.addEventListener("resize",(0,p.default)(V,N.debounceDelay,!0)),window.addEventListener("orientationchange",(0,p.default)(V,N.debounceDelay,!0)),window.addEventListener("scroll",(0,u.default)(function(){(0,O.default)(H,N.once)},N.throttleDelay)),N.disableMutationObserver||v.default.ready("[data-aos]",z),H)};e.exports={init:j,refresh:V,refreshHard:z}},function(e,i){},,,,,function(e,i){(function(r){function n(k,j,X){function re(be){var dt=Ge,te=st;return Ge=st=void 0,qe=be,xe=k.apply(te,dt)}function ge(be){return qe=be,Ve=setTimeout(pe,j),Ht?re(be):xe}function ae(be){var dt=be-Ue,te=be-qe,ue=j-dt;return wt?z(ue,ce-te):ue}function ve(be){var dt=be-Ue,te=be-qe;return Ue===void 0||dt>=j||dt<0||wt&&te>=ce}function pe(){var be=I();return ve(be)?ne(be):void(Ve=setTimeout(pe,ae(be)))}function ne(be){return Ve=void 0,de&&Ge?re(be):(Ge=st=void 0,xe)}function ye(){Ve!==void 0&&clearTimeout(Ve),qe=0,Ge=Ue=st=Ve=void 0}function Pe(){return Ve===void 0?xe:ne(I())}function Se(){var be=I(),dt=ve(be);if(Ge=arguments,st=this,Ue=be,dt){if(Ve===void 0)return ge(Ue);if(wt)return Ve=setTimeout(pe,j),re(Ue)}return Ve===void 0&&(Ve=setTimeout(pe,j)),xe}var Ge,st,ce,xe,Ve,Ue,qe=0,Ht=!1,wt=!1,de=!0;if(typeof k!="function")throw new TypeError(f);return j=c(j)||0,a(X)&&(Ht=!!X.leading,wt="maxWait"in X,ce=wt?V(c(X.maxWait)||0,j):ce,de="trailing"in X?!!X.trailing:de),Se.cancel=ye,Se.flush=Pe,Se}function s(k,j,X){var re=!0,ge=!0;if(typeof k!="function")throw new TypeError(f);return a(X)&&(re="leading"in X?!!X.leading:re,ge="trailing"in X?!!X.trailing:ge),n(k,j,{leading:re,maxWait:j,trailing:ge})}function a(k){var j=typeof k>"u"?"undefined":p(k);return!!k&&(j=="object"||j=="function")}function l(k){return!!k&&(typeof k>"u"?"undefined":p(k))=="object"}function u(k){return(typeof k>"u"?"undefined":p(k))=="symbol"||l(k)&&N.call(k)==y}function c(k){if(typeof k=="number")return k;if(u(k))return v;if(a(k)){var j=typeof k.valueOf=="function"?k.valueOf():k;k=a(j)?j+"":j}if(typeof k!="string")return k===0?k:+k;k=k.replace(w,"");var X=O.test(k);return X||A.test(k)?P(k.slice(2),X?2:8):b.test(k)?v:+k}var p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},f="Expected a function",v=NaN,y="[object Symbol]",w=/^\s+|\s+$/g,b=
17/^[-+]0x[0-9a-f]+$/i,O=/^0b[01]+$/i,A=/^0o[0-7]+$/i,P=parseInt,L=(typeof r>"u"?"undefined":p(r))=="object"&&r&&r.Object===Object&&r,x=(typeof self>"u"?"undefined":p(self))=="object"&&self&&self.Object===Object&&self,H=L||x||Function("return this")(),g=Object.prototype,N=g.toString,V=Math.max,z=Math.min,I=function(){return H.Date.now()};e.exports=s}).call(i,function(){return this}())},function(e,i){(function(r){function n(I,k,j){function X(de){var be=Se,dt=Ge;return Se=Ge=void 0,Ue=de,ce=I.apply(dt,be)}function re(de){return Ue=de,xe=setTimeout(ve,k),qe?X(de):ce}function ge(de){var be=de-Ve,dt=de-Ue,te=k-be;return Ht?V(te,st-dt):te}function ae(de){var be=de-Ve,dt=de-Ue;return Ve===void 0||be>=k||be<0||Ht&&dt>=st}function ve(){var de=z();return ae(de)?pe(de):void(xe=setTimeout(ve,ge(de)))}function pe(de){return xe=void 0,wt&&Se?X(de):(Se=Ge=void 0,ce)}function ne(){xe!==void 0&&clearTimeout(xe),Ue=0,Se=Ve=Ge=xe=void 0}function ye(){return xe===void 0?ce:pe(z())}function Pe(){var de=z(),be=ae(de);if(Se=arguments,Ge=this,Ve=de,be){if(xe===void 0)return re(Ve);if(Ht)return xe=setTimeout(ve,k),X(Ve)}return xe===void 0&&(xe=setTimeout(ve,k)),ce}var Se,Ge,st,ce,xe,Ve,Ue=0,qe=!1,Ht=!1,wt=!0;if(typeof I!="function")throw new TypeError(p);return k=u(k)||0,s(j)&&(qe=!!j.leading,Ht="maxWait"in j,st=Ht?N(u(j.maxWait)||0,k):st,wt="trailing"in j?!!j.trailing:wt),Pe.cancel=ne,Pe.flush=ye,Pe}function s(I){var k=typeof I>"u"?"undefined":c(I);return!!I&&(k=="object"||k=="function")}function a(I){return!!I&&(typeof I>"u"?"undefined":c(I))=="object"}function l(I){return(typeof I>"u"?"undefined":c(I))=="symbol"||a(I)&&g.call(I)==v}function u(I){if(typeof I=="number")return I;if(l(I))return f;if(s(I)){var k=typeof I.valueOf=="function"?I.valueOf():I;I=s(k)?k+"":k}if(typeof I!="string")return I===0?I:+I;I=I.replace(y,"");var j=b.test(I);return j||O.test(I)?A(I.slice(2),j?2:8):w.test(I)?f:+I}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},p="Expected a function",f=NaN,v="[object Symbol]",y=/^\s+|\s+$/g,w=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,O=/^0o[0-7]+$/i,A=parseInt,P=(typeof r>"u"?"undefined":c(r))=="object"&&r&&r.Object===Object&&r,L=(typeof self>"u"?"undefined":c(self))=="object"&&self&&self.Object===Object&&self,x=P||L||Function("return this")(),H=Object.prototype,g=H.toString,N=Math.max,V=Math.min,z=function(){return x.Date.now()};e.exports=n}).call(i,function(){return this}())},function(e,i){function r(c){var p=void 0,f=void 0;for(p=0;p<c.length;p+=1)if(f=c[p],f.dataset&&f.dataset.aos||f.children&&r(f.children))return!0;return!1}function n(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function s(){return!!n()}function a(c,p){var f=window.document,v=n(),y=new v(l);u=p,y.observe(f.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function l(c){c&&c.forEach(function(p){var f=Array.prototype.slice.call(p.addedNodes),v=Array.prototype.slice.call(p.removedNodes),y=f.concat(v);if(r(y))return u()})}Object.defineProperty(i,"__esModule",{value:!0});var u=function(){};i.default={isSupported:s,ready:a}},function(e,i){function r(f,v){if(!(f instanceof v))throw new TypeError("Cannot call a class as a function")}function n(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(i,"__esModule",{value:!0});var s=function(){function f(v,y){for(var w=0;w<y.length;w++){var b=y[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(v,b.key,b)}}return function(v,y,w){return y&&f(v.prototype,y),w&&f(v,w),v}}(),a=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,l=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
17sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,u=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,c=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,p=function(){function f(){r(this,f)}return s(f,[{key:"phone",value:function(){var v=n();return!(!a.test(v)&&!l.test(v.substr(0,4)))}},{key:"mobile",value:function(){var v=n();return!(!u.test(v)&&!c.test(v.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),f}();i.default=new p},function(e,i){Object.defineProperty(i,"__esModule",{value:!0});var r=function(s,a,l){var u=s.node.getAttribute("data-aos-once");a>s.position?s.node.classList.add("aos-animate"):typeof u<"u"&&(u==="false"||!l&&u!=="true")&&s.node.classList.remove("aos-animate")},n=function(s,a){var l=window.pageYOffset,u=window.innerHeight;
17s.forEach(function(c,p){r(c,u+l,a)})};i.default=n},function(e,i,r){function n(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(i,"__esModule",{value:!0});var s=r(12),a=n(s),l=function(u,c){return u.forEach(function(p,f){p.node.classList.add("aos-init"),p.position=(0,a.default)(p.node,c.offset)}),u};i.default=l},function(e,i,r){function n(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(i,"__esModule",{value:!0});var s=r(13),a=n(s),l=function(u,c){var p=0,f=0,v=window.innerHeight,y={offset:u.getAttribute("data-aos-offset"),anchor:u.getAttribute("data-aos-anchor"),anchorPlacement:u.getAttribute("data-aos-anchor-placement")};switch(y.offset&&!isNaN(y.offset)&&(f=parseInt(y.offset)),y.anchor&&document.querySelectorAll(y.anchor)&&(u=document.querySelectorAll(y.anchor)[0]),p=(0,a.default)(u).top,y.anchorPlacement){case"top-bottom":break;case"center-bottom":p+=u.offsetHeight/2;break;case"bottom-bottom":p+=u.offsetHeight;break;case"top-center":p+=v/2;break;case"bottom-center":p+=v/2+u.offsetHeight;break;case"center-center":p+=v/2+u.offsetHeight/2;break;case"top-top":p+=v;break;case"bottom-top":p+=u.offsetHeight+v;break;case"center-top":p+=u.offsetHeight/2+v}return y.anchorPlacement||y.offset||isNaN(c)||(f=c),p+f};i.default=l},function(e,i){Object.defineProperty(i,"__esModule",{value:!0});var r=function(n){for(var s=0,a=0;n&&!isNaN(n.offsetLeft)&&!isNaN(n.offsetTop);)s+=n.offsetLeft-(n.tagName!="BODY"?n.scrollLeft:0),a+=n.offsetTop-(n.tagName!="BODY"?n.scrollTop:0),n=n.offsetParent;return{top:a,left:s}};i.default=r},function(e,i){Object.defineProperty(i,"__esModule",{value:!0});var r=function(n){return n=n||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(n,function(s){return{node:s}})};i.default=r}])})})(eC);var RO=eC.exports;const AO=Zm(RO);/** 18 * @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v31.1.1 19 * @link https://www.ag-grid.com/ 20 * @license MIT 21 */function Rr(o){return o==null||o===""?null:o}function Q(o,t){return t===void 0&&(t=!1),o!=null&&(o!==""||t)}function Me(o){return!Q(o)}function Si(o){return o==null||o.length===0}function ka(o){return o!=null&&typeof o.toString=="function"?o.toString():null}function Tn(o){if(o!==void 0){if(o===null||o==="")return null;if(typeof o=="number")return isNaN(o)?void 0:o;var t=parseInt(o,10);return isNaN(t)?void 0:t}}function Vu(o){if(o!==void 0)return o===null||o===""?!1:typeof o=="boolean"?o:/true/i.test(o)}function PO(o){if(!(o==null||o===""))return o}function qp(o,t){var e=o?JSON.stringify(o):null,i=t?JSON.stringify(t):null;return e===i}function DO(o,t,e){e===void 0&&(e=!1);var i=o==null,r=t==null;if(o&&o.toNumber&&(o=o.toNumber()),t&&t.toNumber&&(t=t.toNumber()),i&&r)return 0;if(i)return-1;if(r)return 1;function n(s,a){return s>a?1:s<a?-1:0}if(typeof o!="string"||!e)return n(o,t);try{return o.localeCompare(t)}catch{return n(o,t)}}function co(o){if(o instanceof Set||o instanceof Map){var t=[];return o.forEach(function(e){return t.push(e)}),t}return Object.values(o)}var LO=Object.freeze({__proto__:null,makeNull:Rr,exists:Q,missing:Me,missingOrEmpty:Si,toStringOrNull:ka,attrToNumber:Tn,attrToBoolean:Vu,attrToString:PO,jsonEquals:qp,defaultComparator:DO,values:co}),FO=function(){function o(){this.existingKeys={}}return o.prototype.addExistingKeys=function(t){for(var e=0;e<t.length;e++)this.existingKeys[t[e]]=!0},o.prototype.getUniqueKey=function(t,e){t=ka(t);for(var i=0;;){var r=void 0;if(t?(r=t,i!==0&&(r+="_"+i)):e?(r=e,i!==0&&(r+="_"+i)):r=i,!this.existingKeys[r])return this.existingKeys[r]=!0,String(r);i++}},o}(),MO=function(o){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&o[t],i=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},IO=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n};function Ut(o,t){var e,i;if(o!=null){if(Array.isArray(o)){for(var r=0;r<o.length;r++)t(r.toString(),o[r]);return}try{for(var n=MO(Object.entries(o)),s=n.next();!s.done;s=n.next()){var a=IO(s.value,2),l=a[0],u=a[1];t(l,u)}}catch(c){e={error:c}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}}}function Bf(o){for(var t={},e=Object.keys(o),i=0;i<e.length;i++){var r=e[i],n=o[r];t[r]=n}return t}function ku(o,t){if(o){var e=o,i={};return Object.keys(e).forEach(function(r){if(!(t&&t.indexOf(r)>=0)){var n=e[r],s=Bu(n)&&n.constructor===Object;s?i[r]=ku(n):i[r]=n}}),i}}function Rn(o){if(!o)return[];var t=Object;if(typeof t.values=="function")return t.values(o);var e=[];for(var i in o)o.hasOwnProperty(i)&&o.propertyIsEnumerable(i)&&e.push(o[i]);return e}function _i(o,t,e,i){e===void 0&&(e=!0),i===void 0&&(i=!1),Q(t)&&Ut(t,function(r,n){var s=o[r];if(s!==n){if(i){var a=s==null&&n!=null;if(a){var l=typeof n=="object"&&n.constructor===Object,u=l;u&&(s={},o[r]=s)}}Bu(n)&&Bu(s)&&!Array.isArray(s)?_i(s,n,e,i):(e||n!==void 0)&&(o[r]=n)}})}function ps(o,t,e){if(!(!t||!o)){if(!e)return o[t];for(var i=t.split("."),r=o,n=0;n<i.length;n++){if(r==null)return;r=r[i[n]]}return r}}
21function tC(o,t,e){t===void 0&&(t=[]),Object.keys(o).forEach(function(s){var a=o[s];typeof a=="object"&&!t.includes(s)&&(o[s]=void 0)});var i=Object.getPrototypeOf(o),r={},n=function(s){return"AG Grid: Grid API function ".concat(s,`() cannot be called as the grid has been destroyed. 22 It is recommended to remove local references to the grid api. Alternatively, check gridApi.isDestroyed() to avoid calling methods against a destroyed grid. 23 To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: `).concat(e)};Object.getOwnPropertyNames(i).forEach(function(s){var a=i[s];if(typeof a=="function"&&!t.includes(s)){var l=function(){console.warn(n(s))};r[s]={value:l,writable:!0}}}),Object.defineProperties(o,r)}function Bu(o){return typeof o=="object"&&o!==null}var xO=Object.freeze({__proto__:null,iterateObject:Ut,cloneObject:Bf,deepCloneDefinition:ku,getAllValuesInObject:Rn,mergeDeep:_i,getValueUsingField:ps,removeAllReferences:tC,isNonNullObject:Bu}),og={};function po(o,t){og[t]||(o(),og[t]=!0)}function Le(o){po(function(){return console.warn("AG Grid: "+o)},o)}function Or(o){po(function(){return console.error("AG Grid: "+o)},o)}function wc(o){if(o.name)return o.name;var t=/function\s+([^\(]+)/.exec(o.toString());return t&&t.length===2?t[1].trim():null}function Sc(o){return!!(o&&o.constructor&&o.call&&o.apply)}function iC(o){rC(o,400)}var bd=[],Td=!1;function Xp(o){bd.push(o),!Td&&(Td=!0,window.setTimeout(function(){var t=bd.slice();bd.length=0,Td=!1,t.forEach(function(e){return e()})},0))}function rC(o,t){t===void 0&&(t=0),o.length>0&&window.setTimeout(function(){return o.forEach(function(e){return e()})},t)}function Oi(o,t){var e;return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var n=this;window.clearTimeout(e),e=window.setTimeout(function(){o.apply(n,i)},t)}}function Qp(o,t){var e=0;return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var n=this,s=new Date().getTime();s-e<t||(e=s,o.apply(n,i))}}function jf(o,t,e,i){e===void 0&&(e=100);var r=new Date().getTime(),n=null,s=!1,a=function(){var l=new Date().getTime()-r>e;(o()||l)&&(t(),s=!0,n!=null&&(window.clearInterval(n),n=null),l&&i&&console.warn(i))};a(),s||(n=window.setInterval(a,10))}function NO(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return function(e){return o.reduce(function(i,r){return r(i)},e)}}var GO=function(){},HO=Object.freeze({__proto__:null,doOnce:po,warnOnce:Le,errorOnce:Or,getFunctionName:wc,isFunction:Sc,executeInAWhile:iC,executeNextVMTurn:Xp,executeAfter:rC,debounce:Oi,throttle:Qp,waitUntil:jf,compose:NO,noop:GO}),Oe;(function(o){o.CommunityCoreModule="@ag-grid-community/core",o.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",o.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",o.CsvExportModule="@ag-grid-community/csv-export",o.EnterpriseCoreModule="@ag-grid-enterprise/core",o.RowGroupingModule="@ag-grid-enterprise/row-grouping",o.ColumnsToolPanelModule="@ag-grid-enterprise/column-tool-panel",o.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",o.MenuModule="@ag-grid-enterprise/menu",o.SetFilterModule="@ag-grid-enterprise/set-filter",o.MultiFilterModule="@ag-grid-enterprise/multi-filter",o.StatusBarModule="@ag-grid-enterprise/status-bar",o.SideBarModule="@ag-grid-enterprise/side-bar",o.RangeSelectionModule="@ag-grid-enterprise/range-selection",o.MasterDetailModule="@ag-grid-enterprise/master-detail",o.RichSelectModule="@ag-grid-enterprise/rich-select",o.GridChartsModule="@ag-grid-enterprise/charts",o.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",o.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",o.ExcelExportModule="@ag-grid-enterprise/excel-export",o.ClipboardModule="@ag-grid-enterprise/clipboard",o.SparklinesModule="@ag-grid-enterprise/sparklines",o.AdvancedFilterModule="@ag-grid-enterprise/advanced-filter",o.AngularModule="@ag-grid-community/angular",o.ReactModule="@ag-grid-community/react",o.VueModule="@ag-grid-community/vue"})(Oe||(Oe={}));var Zs=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},sg=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},ct=function(){function o(){}return o.register=function(t){o.__register(t,!0,void 0)},o.registerModules=function(t){o.__registerModules(t,!0,void 0)}
23,o.__register=function(t,e,i){o.runVersionChecks(t),i!==void 0?(o.areGridScopedModules=!0,o.gridModulesMap[i]===void 0&&(o.gridModulesMap[i]={}),o.gridModulesMap[i][t.moduleName]=t):o.globalModulesMap[t.moduleName]=t,o.setModuleBased(e)},o.__unRegisterGridModules=function(t){delete o.gridModulesMap[t]},o.__registerModules=function(t,e,i){o.setModuleBased(e),t&&t.forEach(function(r){return o.__register(r,e,i)})},o.isValidModuleVersion=function(t){var e=Zs(t.version.split(".")||[],2),i=e[0],r=e[1],n=Zs(o.currentModuleVersion.split(".")||[],2),s=n[0],a=n[1];return i===s&&r===a},o.runVersionChecks=function(t){if(o.currentModuleVersion||(o.currentModuleVersion=t.version),t.version?o.isValidModuleVersion(t)||console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '".concat(t.moduleName,"' is version ").concat(t.version," but the other modules are version ").concat(this.currentModuleVersion,". Please update all modules to the same version.")):console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '".concat(t.moduleName,"' is incompatible. Please update all modules to the same version.")),t.validate){var e=t.validate();if(!e.isValid){var i=e;console.error("AG Grid: ".concat(i.message))}}},o.setModuleBased=function(t){o.moduleBased===void 0?o.moduleBased=t:o.moduleBased!==t&&po(function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community)
23- you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")},"ModulePackageCheck")},o.__setIsBundled=function(){o.isBundled=!0},o.__assertRegistered=function(t,e,i){var r;if(this.__isRegistered(t,i))return!0;var n=e+t,s;if(o.isBundled)s="AG Grid: unable to use ".concat(e,` as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle: 24 25 <script src="https://cdn.jsdelivr.net/npm/ag-grid-enterprise@AG_GRID_VERSION/dist/ag-grid-enterprise.min.js"><\/script> 26 27For more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise`);else if(o.moduleBased||o.moduleBased===void 0){var a=(r=Object.entries(Oe).find(function(l){var u=Zs(l,2);u[0];var c=u[1];return c===t}))===null||r===void 0?void 0:r[0];s="AG Grid: unable to use ".concat(e," as the ").concat(a," is not registered").concat(o.areGridScopedModules?" for gridId: ".concat(i):"",`. Check if you have registered the module: 28 29 import { ModuleRegistry } from '@ag-grid-community/core'; 30 import { `).concat(a," } from '").concat(t,`'; 31 32 ModuleRegistry.registerModules([ `).concat(a,` ]); 33 34For more info see: https://www.ag-grid.com/javascript-grid/modules/`)}else s="AG Grid: unable to use ".concat(e,` as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package: 35 36 import 'ag-grid-enterprise'; 37 38For more info see: https://www.ag-grid.com/javascript-grid/packages/`);return po(function(){console.warn(s)},n),!1},o.__warnEnterpriseChartDisabled=function(t){var e="ag-charts-enterprise",i=e+":"+t,r="https://ag-grid.com/javascript-data-grid/integrated-charts/",n="AG Grid: the '".concat(t,"' chart type is not supported in AG Charts Community. See ").concat(r," for more details.");po(function(){console.warn(n)},i)},o.__isRegistered=function(t,e){var i;return!!o.globalModulesMap[t]||!!(!((i=o.gridModulesMap[e])===null||i===void 0)&&i[t])},o.__getRegisteredModules=function(t){return sg(sg([],Zs(co(o.globalModulesMap)),!1),Zs(co(o.gridModulesMap[t]||{})),!1)},o.__getGridRegisteredModules=function(t){var e;return co((e=o.gridModulesMap[t])!==null&&e!==void 0?e:{})||[]},o.__isPackageBased=function(){return!o.moduleBased},o.globalModulesMap={},o.gridModulesMap={},o.areGridScopedModules=!1,o}(),VO=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},kO=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},BO=function(){function o(t,e){if(this.beanWrappers={},this.destroyed=!1,!(!t||!t.beanClasses)){this.contextParams=t,this.logger=e,this.logger.log(">> creating ag-Application Context"),this.createBeans();var i=this.getBeanInstances();this.wireBeans(i),this.logger.log(">> ag-Application Context ready - component is alive")}}return o.prototype.getBeanInstances=function(){return co(this.beanWrappers).map(function(t){return t.beanInstance})},o.prototype.createBean=function(t,e){if(!t)throw Error("Can't wire to bean since it is null");return this.wireBeans([t],e),t},o.prototype.wireBeans=function(t,e){this.autoWireBeans(t),this.methodWireBeans(t),this.callLifeCycleMethods(t,"preConstructMethods"),Q(e)&&t.forEach(e),this.callLifeCycleMethods(t,"postConstructMethods")},o.prototype.createBeans=function(){var t=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),Ut(this.beanWrappers,function(i,r){var n;r.bean.__agBeanMetaData&&r.bean.__agBeanMetaData.autowireMethods&&r.bean.__agBeanMetaData.autowireMethods.agConstructor&&(n=r.bean.__agBeanMetaData.autowireMethods.agConstructor);var s=t.getBeansForParameters(n,r.bean.name),a=new(r.bean.bind.apply(r.bean,kO([null],VO(s),!1)));r.beanInstance=a});var e=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: ".concat(e))},o.prototype.createBeanWrapper=function(t){var e=t.__agBeanMetaData;if(!e){var i=void 0;t.prototype.constructor?i=wc(t.prototype.constructor):i=""+t,console.error("Context item ".concat(i," is not a bean"));return}var r={bean:t,beanInstance:null,beanName:e.beanName};this.beanWrappers[e.beanName]=r},o.prototype.autoWireBeans=function(t){var e=this;t.forEach(function(i){e.forEachMetaDataInHierarchy(i,function(r,n){var s=r.agClassAttributes;
38s&&s.forEach(function(a){var l=e.lookupBeanInstance(n,a.beanName,a.optional);i[a.attributeName]=l})})})},o.prototype.methodWireBeans=function(t){var e=this;t.forEach(function(i){e.forEachMetaDataInHierarchy(i,function(r,n){Ut(r.autowireMethods,function(s,a){if(s!=="agConstructor"){var l=e.getBeansForParameters(a,n);i[s].apply(i,l)}})})})},o.prototype.forEachMetaDataInHierarchy=function(t,e){for(var i=Object.getPrototypeOf(t);i!=null;){var r=i.constructor;if(r.hasOwnProperty("__agBeanMetaData")){var n=r.__agBeanMetaData,s=this.getBeanName(r);e(n,s)}i=Object.getPrototypeOf(i)}},o.prototype.getBeanName=function(t){if(t.__agBeanMetaData&&t.__agBeanMetaData.beanName)return t.__agBeanMetaData.beanName;var e=t.toString(),i=e.substring(9,e.indexOf("("));return i},o.prototype.getBeansForParameters=function(t,e){var i=this,r=[];return t&&Ut(t,function(n,s){var a=i.lookupBeanInstance(e,s);r[Number(n)]=a}),r},o.prototype.lookupBeanInstance=function(t,e,i){if(i===void 0&&(i=!1),this.destroyed)return this.logger.log("AG Grid: bean reference ".concat(e," is used after the grid is destroyed!")),null;if(e==="context")return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(e))return this.contextParams.providedBeanInstances[e];var r=this.beanWrappers[e];return r?r.beanInstance:(i||console.error("AG Grid: unable to find bean reference ".concat(e," while initialising ").concat(t)),null)},o.prototype.callLifeCycleMethods=function(t,e){var i=this;t.forEach(function(r){return i.callLifeCycleMethodsOnBean(r,e)})},o.prototype.callLifeCycleMethodsOnBean=function(t,e,i){var r={};this.forEachMetaDataInHierarchy(t,function(s){var a=s[e];a&&a.forEach(function(l){l!=i&&(r[l]=!0)})});var n=Object.keys(r);n.forEach(function(s){return t[s]()})},o.prototype.getBean=function(t){return this.lookupBeanInstance("getBean",t,!0)},o.prototype.destroy=function(){if(!this.destroyed){this.destroyed=!0,this.logger.log(">> Shutting down ag-Application Context");var t=this.getBeanInstances();this.destroyBeans(t),this.contextParams.providedBeanInstances=null,ct.__unRegisterGridModules(this.contextParams.gridId),this.logger.log(">> ag-Application Context shut down - component is dead")}},o.prototype.destroyBean=function(t){t&&this.destroyBeans([t])},o.prototype.destroyBeans=function(t){var e=this;return t?(t.forEach(function(i){e.callLifeCycleMethodsOnBean(i,"preDestroyMethods","destroy");var r=i;typeof r.destroy=="function"&&r.destroy()}),[]):[]},o.prototype.isDestroyed=function(){return this.destroyed},o.prototype.getGridId=function(){return this.contextParams.gridId},o}();function ag(o,t,e){var i=wo(o.constructor);i.preConstructMethods||(i.preConstructMethods=[]),i.preConstructMethods.push(t)}function ie(o,t,e){var i=wo(o.constructor);i.postConstructMethods||(i.postConstructMethods=[]),i.postConstructMethods.push(t)}function Xt(o,t,e){var i=wo(o.constructor);i.preDestroyMethods||(i.preDestroyMethods=[]),i.preDestroyMethods.push(t)}function fe(o){return function(t){var e=wo(t);e.beanName=o}}function E(o){return function(t,e,i){nC(t,o,!1,t,e,null)}}function nt(o){return function(t,e,i){nC(t,o,!0,t,e,null)}}function nC(o,t,e,i,r,n){if(t===null){console.error("AG Grid: Autowired name should not be null");return}if(typeof n=="number"){console.error("AG Grid: Autowired should be on an attribute");return}var s=wo(o.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:r,beanName:t,optional:e})}function Hi(o){return function(t,e,i){var r=typeof t=="function"?t:t.constructor,n;if(typeof i=="number"){var s=void 0;e?(n=wo(r),s=e):(n=wo(r),s="agConstructor"),n.autowireMethods||(n.autowireMethods={}),n.autowireMethods[s]||(n.autowireMethods[s]={}),n.autowireMethods[s][i]=o}}}function wo(o){return o.hasOwnProperty("__agBeanMetaData")||(o.__agBeanMetaData={}),o.__agBeanMetaData}var lg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n}
38,Hl=function(o,t){return function(e,i){t(e,i,o)}},Gn=function(){function o(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return o.prototype.setBeans=function(t,e,i,r){if(i===void 0&&(i=null),r===void 0&&(r=null),this.frameworkOverrides=e,this.gridOptionsService=t,i){var n=t.useAsyncEvents();this.addGlobalListener(i,n)}r&&this.addGlobalListener(r,!1)},o.prototype.setFrameworkOverrides=function(t){this.frameworkOverrides=t},o.prototype.getListeners=function(t,e,i){var r=e?this.allAsyncListeners:this.allSyncListeners,n=r.get(t);return!n&&i&&(n=new Set,r.set(t,n)),n},o.prototype.noRegisteredListenersExist=function(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0},o.prototype.addEventListener=function(t,e,i){i===void 0&&(i=!1),this.getListeners(t,i,!0).add(e)},o.prototype.removeEventListener=function(t,e,i){i===void 0&&(i=!1);var r=this.getListeners(t,i,!1);if(r&&(r.delete(e),r.size===0)){var n=i?this.allAsyncListeners:this.allSyncListeners;n.delete(t)}},o.prototype.addGlobalListener=function(t,e){e===void 0&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).add(t)},o.prototype.removeGlobalListener=function(t,e){e===void 0&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).delete(t)},o.prototype.dispatchEvent=function(t){var e=t;this.gridOptionsService&&this.gridOptionsService.addGridCommonParams(e),this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},o.prototype.dispatchEventOnce=function(t){this.firedEvents[t.type]||this.dispatchEvent(t)},o.prototype.dispatchToListeners=function(t,e){var i=this,r,n=t.type;if(e&&"event"in t){var s=t.event;s instanceof Event&&(t.eventPath=s.composedPath())}var a=function(p,f){return p.forEach(function(v){if(f.has(v)){var y=i.frameworkOverrides?function(){return i.frameworkOverrides.wrapIncoming(function(){return v(t)})}:function(){return v(t)};e?i.dispatchAsync(y):y()}})},l=(r=this.getListeners(n,e,!1))!==null&&r!==void 0?r:new Set,u=new Set(l);u.size>0&&a(u,l);var c=new Set(e?this.globalAsyncListeners:this.globalSyncListeners);c.forEach(function(p){var f=i.frameworkOverrides?function(){return i.frameworkOverrides.wrapIncoming(function(){return p(n,t)})}:function(){return p(n,t)};e?i.dispatchAsync(f):f()})},o.prototype.dispatchAsync=function(t){var e=this;this.asyncFunctionsQueue.push(t),this.scheduled||(this.frameworkOverrides.wrapIncoming(function(){window.setTimeout(e.flushAsyncQueue.bind(e),0)}),this.scheduled=!0)},o.prototype.flushAsyncQueue=function(){this.scheduled=!1;var t=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],t.forEach(function(e){return e()})},lg([Hl(0,Hi("gridOptionsService")),Hl(1,Hi("frameworkOverrides")),Hl(2,Hi("globalEventListener")),Hl(3,Hi("globalSyncEventListener"))],o.prototype,"setBeans",null),o=lg([fe("eventService")],o),o}(),Wf=function(){function o(t){this.frameworkOverrides=t,this.wrappedListeners=new Map,this.wrappedGlobalListeners=new Map}return o.prototype.wrap=function(t){var e=this,i=t;return this.frameworkOverrides.shouldWrapOutgoing&&(i=function(r){e.frameworkOverrides.wrapOutgoing(function(){return t(r)})},this.wrappedListeners.set(t,i)),i},o.prototype.wrapGlobal=function(t){var e=this,i=t;return this.frameworkOverrides.shouldWrapOutgoing&&(i=function(r,n){e.frameworkOverrides.wrapOutgoing(function(){return t(r,n)})},this.wrappedGlobalListeners.set(t,i)),i},o.prototype.unwrap=function(t){var e;return(e=this.wrappedListeners.get(t))!==null&&e!==void 0?e:t},o.prototype.unwrapGlobal=function(t){var e;return(e=this.wrappedGlobalListeners.get(t))!==null&&e!==void 0?e:t},o}(),ea=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},jO={resizable:!0,sortable:!0},WO=0;function oC(){return WO++}var pt=function(){function o(t,e,i,r){this.instanceId=oC(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.eventService=new Gn,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=t,this.userProvidedColDef=e,this.colId=i,this.primary=r,this.setState(t)}return o.prototype.getInstanceId=function(){return this.instanceId},o.prototype.setState=function(t){t.sort!==void 0?(t.sort==="asc"||t.sort==="desc")&&(this.sort=t.sort):(t.initialSort==="asc"||t.initialSort==="desc")&&(this.sort=t.initialSort);var e=t.sortIndex,i=t.initialSortIndex;e!==void 0?e!==null&&(this.sortIndex=e):i!==null&&(this.sortIndex=i);var r=t.hide,n=t.initialHide;r!==void 0?this.visible=!r:this.visible=!n,t.pinned!==void 0?this.setPinned(t.pinned):this.setPinned(t.initialPinned);var s=t.flex,a=t.initialFlex;s!==void 0?this.flex=s:a!==void 0&&(this.flex=a)}
38,o.prototype.setColDef=function(t,e,i){this.colDef=t,this.userProvidedColDef=e,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),this.eventService.dispatchEvent(this.createColumnEvent("colDefChanged",i))},o.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},o.prototype.setParent=function(t){this.parent=t},o.prototype.getParent=function(){return this.parent},o.prototype.setOriginalParent=function(t){this.originalParent=t},o.prototype.getOriginalParent=function(){return this.originalParent},o.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip()},o.prototype.initDotNotation=function(){var t=this.gridOptionsService.get("suppressFieldDotNotation");this.fieldContainsDots=Q(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!t,this.tooltipFieldContainsDots=Q(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!t},o.prototype.initMinAndMaxWidths=function(){var t=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(t),this.maxWidth=this.columnUtils.calculateColMaxWidth(t)},o.prototype.initTooltip=function(){this.tooltipEnabled=Q(this.colDef.tooltipField)||Q(this.colDef.tooltipValueGetter)||Q(this.colDef.tooltipComponent)},o.prototype.resetActualWidth=function(t){var e=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(e,t,!0)},o.prototype.isEmptyGroup=function(){return!1},o.prototype.isRowGroupDisplayed=function(t){if(Me(this.colDef)||Me(this.colDef.showRowGroup))return!1;var e=this.colDef.showRowGroup===!0,i=this.colDef.showRowGroup===t;return e||i},o.prototype.isPrimary=function(){return this.primary},o.prototype.isFilterAllowed=function(){var t=!!this.colDef.filter;return t},o.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},o.prototype.isTooltipEnabled=function(){return this.tooltipEnabled},o.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},o.prototype.addEventListener=function(t,e){var i,r;this.frameworkOverrides.shouldWrapOutgoing&&!this.frameworkEventListenerService&&(this.eventService.setFrameworkOverrides(this.frameworkOverrides),this.frameworkEventListenerService=new Wf(this.frameworkOverrides));var n=(r=(i=this.frameworkEventListenerService)===null||i===void 0?void 0:i.wrap(e))!==null&&r!==void 0?r:e;this.eventService.addEventListener(t,n)},o.prototype.removeEventListener=function(t,e){var i,r,n=(r=(i=this.frameworkEventListenerService)===null||i===void 0?void 0:i.unwrap(e))!==null&&r!==void 0?r:e;this.eventService.removeEventListener(t,n)},o.prototype.createColumnFunctionCallbackParams=function(t){return this.gridOptionsService.addGridCommonParams({node:t,data:t.data,column:this,colDef:this.colDef})},o.prototype.isSuppressNavigable=function(t){if(typeof this.colDef.suppressNavigable=="boolean")return this.colDef.suppressNavigable;if(typeof this.colDef.suppressNavigable=="function"){var e=this.createColumnFunctionCallbackParams(t),i=this.colDef.suppressNavigable;return i(e)}return!1},o.prototype.isCellEditable=function(t){return t.group&&!this.gridOptionsService.get("enableGroupEdit")?!1:this.isColumnFunc(t,this.colDef.editable)},o.prototype.isSuppressFillHandle=function(){return!!this.colDef.suppressFillHandle},o.prototype.isAutoHeight=function(){return!!this.colDef.autoHeight},o.prototype.isAutoHeaderHeight=function(){return!!this.colDef.autoHeaderHeight},o.prototype.isRowDrag=function(t){return this.isColumnFunc(t,this.colDef.rowDrag)},o.prototype.isDndSource=function(t){return this.isColumnFunc(t,this.colDef.dndSource)},o.prototype.isCellCheckboxSelection=function(t){return this.isColumnFunc(t,this.colDef.checkboxSelection)},o.prototype.isSuppressPaste=function(t){return this.isColumnFunc(t,this.colDef?this.colDef.suppressPaste:null)},o.prototype.isResizable=function(){return!!this.getColDefValue("resizable")},o.prototype.getColDefValue=function(t){var e;return(e=this.colDef[t])!==null&&e!==void 0?e:jO[t]},o.prototype.isColumnFunc=function(t,e){if(typeof e=="boolean")return e;if(typeof e=="function"){var i=this.createColumnFunctionCallbackParams(t),r=e;return r(i)}return!1},o.prototype.setMoving=function(t,e){this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent("movingChanged",e))},o.prototype.createColumnEvent=function(t,e){return this.gridOptionsService.addGridCommonParams({type:t,column:this,columns:[this],source:e})},o.prototype.isMoving=function(){return this.moving},o.prototype.getSort=function(){return this.sort},o.prototype.setSort=function(t,e){this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent("sortChanged",e))),this.dispatchStateUpdatedEvent("sort")},o.prototype.setMenuVisible=function(t,e){this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged",e)))},o.prototype.isMenuVisible=function(){return this.menuVisible},o.prototype.isSortable=function(){return!!this.getColDefValue("sortable")},o.prototype.isSortAscending=function(){return this.sort==="asc"},o.prototype.isSortDescending=function(){return this.sort==="desc"},o.prototype.isSortNone=function(){return Me(this.sort)},o.prototype.isSorting=function(){return Q(this.sort)},o.prototype.getSortIndex=function(){return this.sortIndex},o.prototype.setSortIndex=function(t){this.sortIndex=t,this.dispatchStateUpdatedEvent("sortIndex")},o.prototype.setAggFunc=function(t){this.aggFunc=t,this.dispatchStateUpdatedEvent("aggFunc")},o.prototype.getAggFunc=function(){return this.aggFunc},o.prototype.getLeft=function(){return this.left},o.prototype.getOldLeft=function(){return this.oldLeft},o.prototype.getRight=function(){return this.left+this.actualWidth},o.prototype.setLeft=function(t,e){this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent("leftChanged",e)))},o.prototype.isFilterActive=function(){return this.filterActive}
38,o.prototype.setFilterActive=function(t,e,i){this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",e)));var r=this.createColumnEvent("filterChanged",e);i&&_i(r,i),this.eventService.dispatchEvent(r)},o.prototype.isHovered=function(){return this.columnHoverService.isHovered(this)},o.prototype.setPinned=function(t){t===!0||t==="left"?this.pinned="left":t==="right"?this.pinned="right":this.pinned=null,this.dispatchStateUpdatedEvent("pinned")},o.prototype.setFirstRightPinned=function(t,e){this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged",e)))},o.prototype.setLastLeftPinned=function(t,e){this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent("lastLeftPinnedChanged",e)))},o.prototype.isFirstRightPinned=function(){return this.firstRightPinned},o.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},o.prototype.isPinned=function(){return this.pinned==="left"||this.pinned==="right"},o.prototype.isPinnedLeft=function(){return this.pinned==="left"},o.prototype.isPinnedRight=function(){return this.pinned==="right"},o.prototype.getPinned=function(){return this.pinned},o.prototype.setVisible=function(t,e){var i=t===!0;this.visible!==i&&(this.visible=i,this.eventService.dispatchEvent(this.createColumnEvent("visibleChanged",e))),this.dispatchStateUpdatedEvent("hide")},o.prototype.isVisible=function(){return this.visible},o.prototype.isSpanHeaderHeight=function(){var t=this.getColDef();return!t.suppressSpanHeaderHeight&&!t.autoHeaderHeight},o.prototype.getColumnGroupPaddingInfo=function(){var t=this.getParent();if(!t||!t.isPadding())return{numberOfParents:0,isSpanningTotal:!1};for(var e=t.getPaddingLevel()+1,i=!0;t;){if(!t.isPadding()){i=!1;break}t=t.getParent()}return{numberOfParents:e,isSpanningTotal:i}},o.prototype.getColDef=function(){return this.colDef},o.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},o.prototype.getColId=function(){return this.colId},o.prototype.getId=function(){return this.colId},o.prototype.getUniqueId=function(){return this.colId},o.prototype.getDefinition=function(){return this.colDef},o.prototype.getActualWidth=function(){return this.actualWidth},o.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},o.prototype.setAutoHeaderHeight=function(t){var e=t!==this.autoHeaderHeight;return this.autoHeaderHeight=t,e},o.prototype.createBaseColDefParams=function(t){var e=this.gridOptionsService.addGridCommonParams({node:t,data:t.data,colDef:this.colDef,column:this});return e},o.prototype.getColSpan=function(t){if(Me(this.colDef.colSpan))return 1;var e=this.createBaseColDefParams(t),i=this.colDef.colSpan(e);return Math.max(i,1)},o.prototype.getRowSpan=function(t){if(Me(this.colDef.rowSpan))return 1;var e=this.createBaseColDefParams(t),i=this.colDef.rowSpan(e);return Math.max(i,1)},o.prototype.setActualWidth=function(t,e,i){i===void 0&&(i=!1),this.minWidth!=null&&(t=Math.max(t,this.minWidth)),this.maxWidth!=null&&(t=Math.min(t,this.maxWidth)),this.actualWidth!==t&&(this.actualWidth=t,this.flex&&e!=="flex"&&e!=="gridInitializing"&&(this.flex=null),i||this.fireColumnWidthChangedEvent(e)),this.dispatchStateUpdatedEvent("width")},o.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent("widthChanged",t))},o.prototype.isGreaterThanMax=function(t){return this.maxWidth!=null?t>this.maxWidth:!1},o.prototype.getMinWidth=function(){return this.minWidth},o.prototype.getMaxWidth=function(){return this.maxWidth},o.prototype.getFlex=function(){return this.flex||0},o.prototype.setFlex=function(t){this.flex!==t&&(this.flex=t),this.dispatchStateUpdatedEvent("flex")},o.prototype.setMinimum=function(t){Q(this.minWidth)&&this.setActualWidth(this.minWidth,t)},o.prototype.setRowGroupActive=function(t,e){this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged",e))),this.dispatchStateUpdatedEvent("rowGroup")},o.prototype.isRowGroupActive=function(){return this.rowGroupActive},o.prototype.setPivotActive=function(t,e){this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnPivotChanged",e))),this.dispatchStateUpdatedEvent("pivot")},o.prototype.isPivotActive=function(){return this.pivotActive},o.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},o.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},o.prototype.setValueActive=function(t,e){this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnValueChanged",e)))},o.prototype.isValueActive=function(){return this.aggregationActive},o.prototype.isAllowPivot=function(){return this.colDef.enablePivot===!0},o.prototype.isAllowValue=function(){return this.colDef.enableValue===!0},o.prototype.isAllowRowGroup=function(){return this.colDef.enableRowGroup===!0},o.prototype.getMenuTabs=function(t){Le("As of v31.1, 'getMenuTabs' is deprecated. Use 'getColDef().menuTabs ?? defaultValues' instead.");var e=this.getColDef().menuTabs;return e==null&&(e=t),e},o.prototype.dispatchStateUpdatedEvent=function(t){this.eventService.dispatchEvent({type:o.EVENT_STATE_UPDATED,key:t})},o.EVENT_MOVING_CHANGED="movingChanged",o.EVENT_LEFT_CHANGED="leftChanged",o.EVENT_WIDTH_CHANGED="widthChanged",o.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",o.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",o.EVENT_VISIBLE_CHANGED="visibleChanged",o.EVENT_FILTER_CHANGED="filterChanged",o.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",o.EVENT_SORT_CHANGED="sortChanged",o.EVENT_COL_DEF_CHANGED="colDefChanged",o.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",o.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",o.EVENT_PIVOT_CHANGED="columnPivotChanged",o.EVENT_VALUE_CHANGED="columnValueChanged",o.EVENT_STATE_UPDATED="columnStateUpdated",ea([E("gridOptionsService")],o.prototype,"gridOptionsService",void 0),ea([E("columnUtils")],o.prototype,"columnUtils",void 0),ea([E("columnHoverService")],o.prototype,"columnHoverService",void 0),ea([E("frameworkOverrides")],o.prototype,"frameworkOverrides",void 0),ea([ie],o.prototype,"initialise",null),o}(),UO=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},_t=function(){function o(t,e,i,r){this.localEventService=new Gn,this.expandable=!1,this.instanceId=oC(),this.expandableListenerRemoveCallback=null,this.colGroupDef=t,this.groupId=e,this.expanded=!!t&&!!t.openByDefault,this.padding=i,this.level=r}return o.prototype.destroy=function(){this.expandableListenerRemoveCallback&&this.reset(null,void 0)},o.prototype.reset=function(t,e){this.colGroupDef=t,this.level=e,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0},o.prototype.getInstanceId=function(){return this.instanceId},o.prototype.setOriginalParent=function(t){this.originalParent=t},o.prototype.getOriginalParent=function(){return this.originalParent},o.prototype.getLevel=function(){return this.level},o.prototype.isVisible=function(){return this.children?this.children.some(function(t){return t.isVisible()}):!1},o.prototype.isPadding=function(){return this.padding},o.prototype.setExpanded=function(t){this.expanded=t===void 0?!1:t;var e={type:o.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(e)},o.prototype.isExpandable=function(){return this.expandable},o.prototype.isExpanded=function(){return this.expanded},o.prototype.getGroupId=function(){return this.groupId},o.prototype.getId=function(){return this.getGroupId()},o.prototype.setChildren=function(t){this.children=t},o.prototype.getChildren=function(){return this.children},o.prototype.getColGroupDef=function(){return this.colGroupDef},o.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},o.prototype.addLeafColumns=function(t){this.children&&this.children.forEac
38h(function(e){e instanceof pt?t.push(e):e instanceof o&&e.addLeafColumns(t)})},o.prototype.getColumnGroupShow=function(){var t=this.colGroupDef;if(t)return t.columnGroupShow},o.prototype.setupExpandable=function(){var t=this;this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();var e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(function(i){return i.addEventListener("visibleChanged",e)}),this.expandableListenerRemoveCallback=function(){t.getLeafColumns().forEach(function(i){return i.removeEventListener("visibleChanged",e)}),t.expandableListenerRemoveCallback=null}},o.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,e=!1,i=!1,r=this.findChildrenRemovingPadding(),n=0,s=r.length;n<s;n++){var a=r[n];if(a.isVisible()){var l=a.getColumnGroupShow();l==="open"?(t=!0,i=!0):l==="closed"?(e=!0,i=!0):(t=!0,e=!0)}}var u=t&&e&&i;if(this.expandable!==u){this.expandable=u;var c={type:o.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(c)}}},o.prototype.findChildrenRemovingPadding=function(){var t=[],e=function(i){i.forEach(function(r){var n=r instanceof o&&r.isPadding();n?e(r.children):t.push(r)})};return e(this.children),t},o.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},o.prototype.addEventListener=function(t,e){this.localEventService.addEventListener(t,e)},o.prototype.removeEventListener=function(t,e){this.localEventService.removeEventListener(t,e)},o.EVENT_EXPANDED_CHANGED="expandedChanged",o.EVENT_EXPANDABLE_CHANGED="expandableChanged",UO([Xt],o.prototype,"destroy",null),o}(),zO={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function $O(o){return o!=null&&o.length>0}function ot(o){if(!(!o||!o.length))return o[o.length-1]}function jr(o,t,e){return o==null&&t==null?!0:o!=null&&t!=null&&o.length===t.length&&o.every(function(i,r){return e?e(i,t[r]):t[r]===i})}function KO(o,t){return jr(o,t)}function sC(o){return o.sort(function(t,e){return t-e})}function YO(o,t){if(o)for(var e=o.length-2;e>=0;e--){var i=o[e]===t,r=o[e+1]===t;i&&r&&o.splice(e+1,1)}}function Uf(o,t){var e=o.indexOf(t);e>=0&&(o[e]=o[o.length-1],o.pop())}function ui(o,t){var e=o.indexOf(t);e>=0&&o.splice(e,1)}function aC(o,t){for(var e=0;e<t.length;e++)Uf(o,t[e])}function lC(o,t){for(var e=0;e<t.length;e++)ui(o,t[e])}function Ba(o,t,e){o.splice(e,0,t)}function qO(o,t,e){if(!(o==null||t==null))for(var i=t.length-1;i>=0;i--){var r=t[i];Ba(o,r,e)}}function Jp(o,t,e){lC(o,t),t.slice().reverse().forEach(function(i){return Ba(o,i,e)})}function rr(o,t){return o.indexOf(t)>-1}function uC(o){return[].concat.apply([],o)}function Zp(o,t){t==null||o==null||t.forEach(function(e){return o.push(e)})}function XO(o){return o.map(ka)}function QO(o,t){if(o!=null)for(var e=o.length-1;e>=0;e--)t(o[e],e)}var JO=Object.freeze({__proto__:null,existsAndNotEmpty:$O,last:ot,areEqual:jr,shallowCompare:KO,sortNumerically:sC,removeRepeatsFromArray:YO,removeFromUnorderedArray:Uf,removeFromArray:ui,removeAllFromUnorderedArray:aC,removeAllFromArray:lC,insertIntoArray:Ba,insertArrayIntoArray:qO,moveInArray:Jp,includes:rr,flatten:uC,pushAll:Zp,toStrings:XO,forEachReverse:QO}),cC="__ag_Grid_Stop_Propagation",ZO=["touchstart","touchend","touchmove","touchcancel","scroll"],Rd={};function sr(o){o[cC]=!0}function nr(o){return o[cC]===!0}var zf=function(){var o={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},t=function(e){if(typeof Rd[e]=="boolean")return Rd[e];var i=document.createElement(o[e]||"div");return e="on"+e,Rd[e]=e in i};return t}();function ju(o,t,e){for(var i=t;i;){var r=o.getDomData(i,e);if(r)return r;i=i.parentElement}return null}function Wu(o,t){return!t||!o?!1:pC(t).indexOf(o)>=0}function dC(o){for(var t=[],e=o.target;e;)t.push(e),e=e.parentElement;return t}function pC(o){var t=o;return t.path?t.path:t.composedPath?t.composedPath():dC(t)}function fC(o,t,e,i){var r=rr(ZO,e),n=r?{passive:!0}:void 0;o&&o.addEventListener&&o.addEventListener(t,e,i,n)}var eb=Object.freeze({__proto__:null,stopPropagationForAgGrid:sr,isStopPropagationForAgGrid:nr,isEventSupported:zf,getCtrlForEventTarget:ju,isElementInEventPath:Wu,createEventPath:dC,getEventPath:pC,addSafePassiveEventListener:fC}),Qn=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ee=function(){function o(){var t=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.lastChangeSetIdLookup={},this.propertyListenerId=0,this.isAlive=function(){return!t.destroyed}}return o.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},o.prototype.getContext=function(){return this.context},o.prototype.destroy=function(){this.destroyFunctions.forEach(function(t){return t()}),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:o.EVENT_DESTROYED})},o.prototype.addEventListener=function(t,e){this.localEventService||(this.localEventService=new Gn),this.localEventService.addEventListener(t,e)},o.prototype.removeEventListener=function(t,e){this.localEventService&&this.localEventService.removeEventListener(t,e)},o.prototype.dispatchEvent=function(t){this.localEventService&&this.localEventService.dispatchEvent(t)}
38,o.prototype.addManagedListener=function(t,e,i){var r=this;if(!this.destroyed){t instanceof HTMLElement?fC(this.getFrameworkOverrides(),t,e,i):t.addEventListener(e,i);var n=function(){return t.removeEventListener(e,i),r.destroyFunctions=r.destroyFunctions.filter(function(s){return s!==n}),null};return this.destroyFunctions.push(n),n}},o.prototype.setupGridOptionListener=function(t,e){var i=this;this.gridOptionsService.addEventListener(t,e);var r=function(){return i.gridOptionsService.removeEventListener(t,e),i.destroyFunctions=i.destroyFunctions.filter(function(n){return n!==r}),null};return this.destroyFunctions.push(r),r},o.prototype.addManagedPropertyListener=function(t,e){return this.destroyed?function(){return null}:this.setupGridOptionListener(t,e)},o.prototype.addManagedPropertyListeners=function(t,e){var i=this;if(!this.destroyed){var r=t.join("-")+this.propertyListenerId++,n=function(s){if(s.changeSet){if(s.changeSet&&s.changeSet.id===i.lastChangeSetIdLookup[r])return;i.lastChangeSetIdLookup[r]=s.changeSet.id}var a={type:"gridPropertyChanged",changeSet:s.changeSet,source:s.source};e(a)};t.forEach(function(s){return i.setupGridOptionListener(s,n)})}},o.prototype.addDestroyFunc=function(t){this.isAlive()?this.destroyFunctions.push(t):t()},o.prototype.createManagedBean=function(t,e){var i=this.createBean(t,e);return this.addDestroyFunc(this.destroyBean.bind(this,t,e)),i},o.prototype.createBean=function(t,e,i){return(e||this.getContext()).createBean(t,i)},o.prototype.destroyBean=function(t,e){return(e||this.getContext()).destroyBean(t)},o.prototype.destroyBeans=function(t,e){var i=this;return t&&t.forEach(function(r){return i.destroyBean(r,e)}),[]},o.EVENT_DESTROYED="destroyed",Qn([E("frameworkOverrides")],o.prototype,"frameworkOverrides",void 0),Qn([E("context")],o.prototype,"context",void 0),Qn([E("eventService")],o.prototype,"eventService",void 0),Qn([E("gridOptionsService")],o.prototype,"gridOptionsService",void 0),Qn([E("localeService")],o.prototype,"localeService",void 0),Qn([E("environment")],o.prototype,"environment",void 0),Qn([Xt],o.prototype,"destroy",null),o}(),tb=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Vl=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ib=function(o,t){return function(e,i){t(e,i,o)}},rb=function(o){tb(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,i,r,n){var s=new FO,a=this.extractExistingTreeData(r),l=a.existingCols,u=a.existingGroups,c=a.existingColKeys;s.addExistingKeys(c);var p=this.recursivelyCreateColumns(e,0,i,l,s,u,n),f=this.findMaxDept(p,0);this.logger.log("Number of levels for grouped columns is "+f);var v=this.balanceColumnTree(p,0,f,s),y=function(w,b){w instanceof _t&&w.setupExpandable(),w.setOriginalParent(b)};return this.columnUtils.depthFirstOriginalTreeSearch(null,v,y),{columnTree:v,treeDept:f}},t.prototype.extractExistingTreeData=function(e){var i=[],r=[],n=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(s){if(s instanceof _t){var a=s;r.push(a)}else{var l=s;n.push(l.getId()),i.push(l)}}),{existingCols:i,existingGroups:r,existingColKeys:n}},t.prototype.createForAutoGroups=function(e,i){var r=this;return e.map(function(n){return r.createAutoGroupTreeItem(i,n)})},t.prototype.createAutoGroupTreeItem=function(e,i){for(var r=this.findDepth(e),n=i,s=r-1;s>=0;s--){var a=new _t(null,"FAKE_PATH_".concat(i.getId(),"}_").concat(s),!0,s);this.createBean(a),a.setChildren([n]),n.setOriginalParent(a),n=a}return r===0&&i.setOriginalParent(null),n},t.prototype.findDepth=function(e){for(var i=0,r=e;r&&r[0]&&r[0]instanceof _t;)i++,r=r[0].getChildren();return i},t.prototype.balanceColumnTree=function(e,i,r,n){for(var s=[],a=0;a<e.length;a++){var l=e[a];if(l instanceof _t){var u=l,c=this.balanceColumnTree(u.getChildren(),i+1,r,n);u.setChildren(c),s.push(u)}else{for(var p=void 0,f=void 0,v=r-1;v>=i;v--){var y=n.getUniqueKey(null,null),w=this.createMergedColGroupDef(null),b=new _t(w,y,!0,i);this.createBean(b),f&&f.setChildren([b]),f=b,p||(p=f)}if(p&&f){s.push(p);var O=e.some(function(A){return A instanceof _t});if(O){f.setChildren([l]);continue}else{f.setChildren(e);break}}s.push(l)}}return s},t.prototype.findMaxDept=function(e,i){for(var r=i,n=0;n<e.length;n++){var s=e[n];if(s instanceof _t){var a=s,l=this.findMaxDept(a.getChildren(),i+1);r<l&&(r=l)}}return r},t.prototype.recursivelyCreateColumns=function(e,i,r,n,s,a,l){if(!e)return[];for(var u=new Array(e.length),c=0;c<u.length;c++){var p=e[c];this.isColumnGroup(p)?u[c]=this.createColumnGroup(r,p,i,n,s,a,l):u[c]=this.createColumn(r,p,n,s,l)}return u},t.prototype.createColumnGroup=function(e,i,r,n,s,a,l){var u=this.createMergedColGroupDef(i),c=s.getUniqueKey(u.groupId||null,null),p=new _t(u,c,!1,r);this.createBean(p);var f=this.findExistingGroup(i,a);f&&a.splice(f.idx,1);var v=f==null?void 0:f.group;v&&p.setExpanded(v.isExpanded());var y=this.recursivelyCreateColumns(u.children,r+1,e,n,s,a,l);return p.setChildren(y),p},t.prototype.createMergedColGroupDef=function(e){var i={};return Object.assign(i,this.gridOptionsService.get("defaultColGroupDef")),Object.assign(i,e),i},t.prototype.createColumn=function(e,i,r,n,s){var a=this.findExistingColumn(i,r);a&&(r==null||r.splice(a.idx,1));var l=a==null?void 0:a.column;if(l){var c=this.addColumnDefaultAndTypes(i,l.getColId());l.setColDef(c,i,s),this.applyColumnState(l,c,s)}else{var u=n.getUniqueKey(i.colId,i.field),c=this.addColumnDefaultAndTypes(i,u);l=new pt(c,i,u,e),this.context.createBean(l)}return this.dataTypeService.addColumnListeners(l),l},t.prototype.applyColumnState=function(e,i,r){var n=Tn(i.flex);n!==void 0&&e.setFlex(n);var s=e.getFlex()<=0;if(s){var a=Tn(i.width);if(a!=null)e.setActualWidth(a,r);else{var l=e.getActualWidth();e.setActualWidth(l,r)}}i.sort!==void 0&&(i.sort=="asc"||i.sort=="desc"?e.setSort(i.sort,r):e.setSort(void 0,r));var u=Tn(i.sortIndex);u!==void 0&&e.setSortIndex(u);var c=Vu(i.hide);c!==void 0&&e.setVisible(!c,r),i.pinned!==void 0&&e.setPinned(i.pinned)},t.prototype.findExistingColumn=function(e,i){if(i)for(var r=0;r<i.length;r++){var n=i[r].getUserProvidedColDef();if(n){var s=e.colId!=null;if(s){if(i[r].getId()===e.colId)return{idx:r,column:i[r]};continue}var a=e.field!=null;if(a){if(n.field===e.field)return{idx:r,column:i[r]};continue}if(n===e)return{idx:r,column:i[r]}}}},t.prototype.findExistingGroup=function(e,i){var r=e.groupId!=null;if(r)for(var n=0;n<i.length;n++){var s=i[n],a=s.getColGroupDef();if(a&&s.getId()===e.groupId)return{idx:n,group:s}}},t.prototype.addColumnDefaultAndTypes=function(e,i){var r={},n=this.gridOptionsService.get("defaultColDef");_i(r,n,!1,!0);var s=this.dataTypeService.updateColDefAndGetColumnType(r,e,i);s&&this.assignColumnTypes(s,r),_i(r,e,!1,!0);var a=this.gridOptionsService.get("autoGroupColumnDef"),l=this.gridOptionsService.isColumnsSortingCoupledToGroup();return e.rowGroup&&a&&l&&_i(r,{sort:a.sort,initialSort:a.initialSort},!1,!0),this.dataTypeService.validateColDef(r),r},t.prototype.assignColumnTypes=function(e,i){if(e.length){var r=Object.assign({}
38,zO),n=this.gridOptionsService.get("columnTypes")||{};Ut(n,function(s,a){if(s in r)console.warn("AG Grid: the column type '".concat(s,"' is a default column type and cannot be overridden."));else{var l=a;l.type&&Le("Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type."),r[s]=a}}),e.forEach(function(s){var a=r[s.trim()];a?_i(i,a,!1,!0):console.warn("AG Grid: colDef.type '"+s+"' does not correspond to defined gridOptions.columnTypes")})}},t.prototype.isColumnGroup=function(e){return e.children!==void 0},Vl([E("columnUtils")],t.prototype,"columnUtils",void 0),Vl([E("dataTypeService")],t.prototype,"dataTypeService",void 0),Vl([ib(0,Hi("loggerFactory"))],t.prototype,"setBeans",null),t=Vl([fe("columnFactory")],t),t}(ee),nb=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},At=function(){function o(t,e,i,r){this.displayedChildren=[],this.localEventService=new Gn,this.groupId=e,this.partId=i,this.providedColumnGroup=t,this.pinned=r}return o.createUniqueId=function(t,e){return t+"_"+e},o.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},o.prototype.getParent=function(){return this.parent},o.prototype.setParent=function(t){this.parent=t},o.prototype.getUniqueId=function(){return o.createUniqueId(this.groupId,this.partId)},o.prototype.isEmptyGroup=function(){return this.displayedChildren.length===0},o.prototype.isMoving=function(){var t=this.getProvidedColumnGroup().getLeafColumns();return!t||t.length===0?!1:t.every(function(e){return e.isMoving()})},o.prototype.checkLeft=function(){if(this.displayedChildren.forEach(function(r){r instanceof o&&r.checkLeft()}),this.displayedChildren.length>0)if(this.gridOptionsService.get("enableRtl")){var t=ot(this.displayedChildren),e=t.getLeft();this.setLeft(e)}else{var i=this.displayedChildren[0].getLeft();this.setLeft(i)}else this.setLeft(null)},o.prototype.getLeft=function(){return this.left},o.prototype.getOldLeft=function(){return this.oldLeft},o.prototype.setLeft=function(t){this.oldLeft=this.left,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(o.EVENT_LEFT_CHANGED)))},o.prototype.getPinned=function(){return this.pinned},o.prototype.createAgEvent=function(t){return{type:t}},o.prototype.addEventListener=function(t,e){this.localEventService.addEventListener(t,e)},o.prototype.removeEventListener=function(t,e){this.localEventService.removeEventListener(t,e)},o.prototype.getGroupId=function(){return this.groupId},o.prototype.getPartId=function(){return this.partId},o.prototype.isChildInThisGroupDeepSearch=function(t){var e=!1;return this.children.forEach(function(i){t===i&&(e=!0),i instanceof o&&i.isChildInThisGroupDeepSearch(t)&&(e=!0)}),e},o.prototype.getActualWidth=function(){var t=0;return this.displayedChildren&&this.displayedChildren.forEach(function(e){t+=e.getActualWidth()}),t},o.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var t=!1;return this.displayedChildren.forEach(function(e){e.isResizable()&&(t=!0)}),t},o.prototype.getMinWidth=function(){var t=0;return this.displayedChildren.forEach(function(e){t+=e.getMinWidth()||0}),t},o.prototype.addChild=function(t){this.children||(this.children=[]),this.children.push(t)},o.prototype.getDisplayedChildren=function(){return this.displayedChildren},o.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},o.prototype.getDisplayedLeafColumns=function(){var t=[];return this.addDisplayedLeafColumns(t),t},o.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},o.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},o.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},o.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},o.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},o.prototype.setExpanded=function(t){this.providedColumnGroup.setExpanded(t)},o.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEac
38h(function(e){e instanceof pt?t.push(e):e instanceof o&&e.addDisplayedLeafColumns(t)})},o.prototype.addLeafColumns=function(t){this.children.forEach(function(e){e instanceof pt?t.push(e):e instanceof o&&e.addLeafColumns(t)})},o.prototype.getChildren=function(){return this.children},o.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},o.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},o.prototype.getPaddingLevel=function(){var t=this.getParent();return!this.isPadding()||!t||!t.isPadding()?0:1+t.getPaddingLevel()},o.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var e=this;e!=null&&e.isPadding();)e=e.getParent();var i=e?e.providedColumnGroup.isExpandable():!1;if(!i){this.displayedChildren=this.children,this.localEventService.dispatchEvent(this.createAgEvent(o.EVENT_DISPLAYED_CHILDREN_CHANGED));return}this.children.forEach(function(r){var n=r instanceof o&&(!r.displayedChildren||!r.displayedChildren.length);if(!n){var s=r.getColumnGroupShow();switch(s){case"open":e.providedColumnGroup.isExpanded()&&t.displayedChildren.push(r);break;case"closed":e.providedColumnGroup.isExpanded()||t.displayedChildren.push(r);break;default:t.displayedChildren.push(r);break}}}),this.localEventService.dispatchEvent(this.createAgEvent(o.EVENT_DISPLAYED_CHILDREN_CHANGED))},o.EVENT_LEFT_CHANGED="leftChanged",o.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",nb([E("gridOptionsService")],o.prototype,"gridOptionsService",void 0),o}(),T=function(){function o(){}return o.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",o.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",o.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",o.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",o.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",o.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",o.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",o.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",o.EVENT_COLUMN_MOVED="columnMoved",o.EVENT_COLUMN_VISIBLE="columnVisible",o.EVENT_COLUMN_PINNED="columnPinned",o.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",o.EVENT_COLUMN_RESIZED="columnResized",o.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",o.EVENT_SUPPRESS_COLUMN_MOVE_CHANGED="suppressMovableColumns",o.EVENT_SUPPRESS_MENU_HIDE_CHANGED="suppressMenuHide",o.EVENT_SUPPRESS_FIELD_DOT_NOTATION="suppressFieldDotNotation",o.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",o.EVENT_COLUMN_HEADER_MOUSE_OVER="columnHeaderMouseOver",o.EVENT_COLUMN_HEADER_MOUSE_LEAVE="columnHeaderMouseLeave",o.EVENT_COLUMN_HEADER_CLICKED="columnHeaderClicked",o.EVENT_COLUMN_HEADER_CONTEXT_MENU="columnHeaderContextMenu",o.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",o.EVENT_ROW_GROUP_OPENED="rowGroupOpened",o.EVENT_ROW_DATA_UPDATED="rowDataUpdated",o.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",o.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",o.EVENT_CHART_CREATED="chartCreated",o.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",o.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",o.EVENT_CHART_DESTROYED="chartDestroyed",o.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",o.EVENT_TOOL_PANEL_SIZE_CHANGED="toolPanelSizeChanged",o.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",o.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",o.EVENT_MODEL_UPDATED="modelUpdated",o.EVENT_CUT_START="cutStart",o.EVENT_CUT_END="cutEnd",o.EVENT_PASTE_START="pasteStart",o.EVENT_PASTE_END="pasteEnd",o.EVENT_FILL_START="fillStart",o.EVENT_FILL_END="fillEnd",o.EVENT_RANGE_DELETE_START="rangeDeleteStart",o.EVENT_RANGE_DELETE_END="rangeDeleteEnd",o.EVENT_UNDO_STARTED="undoStarted",o.EVENT_UNDO_ENDED="undoEnded",o.EVENT_REDO_STARTED="redoStarted",o.EVENT_REDO_ENDED="redoEnded",o.EVENT_KEY_SHORTCUT_CHANGED_CELL_START="keyShortcutChangedCellStart",o.EVENT_KEY_SHORTCUT_CHANGED_CELL_END="keyShortcutChangedCellEnd",o.EVENT_CELL_CLICKED="cellClicked",o.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",o.EVENT_CELL_MOUSE_DOWN="cellMouseDown",o.EVENT_CELL_CONTEXT_MENU="cellContextMenu",o.EVENT_CELL_VALUE_CHANGED="cellValueChanged",o.EVENT_CELL_EDIT_REQUEST="cellEditRequest",o.EVENT_ROW_VALUE_CHANGED="rowValueChanged",o.EVENT_CELL_FOCUSED="cellFocused",o.EVENT_CELL_FOCUS_CLEARED="cellFocusCleared",o.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",o.EVENT_ROW_SELECTED="rowSelected",o.EVENT_SELECTION_CHANGED="selectionChanged",o.EVENT_TOOLTIP_SHOW="tooltipShow",o.EVENT_TOOLTIP_HIDE="tooltipHide",o.EVENT_CELL_KEY_DOWN="cellKeyDown",o.EVENT_CELL_MOUSE_OVER="cellMouseOver",o.EVENT_CELL_MOUSE_OUT="cellMouseOut",o.EVENT_FILTER_CHANGED="filterChanged",o.EVENT_FILTER_MODIFIED="filterModified",o.EVENT_FILTER_OPENED="filterOpened",o.EVENT_ADVANCED_FILTER_BUILDER_VISIBLE_CHANGED="advancedFilterBuilderVisibleChanged",o.EVENT_SORT_CHANGED="sortChanged",o.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",o.EVENT_ROW_CLICKED="rowClicked",o.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",o.EVENT_GRID_READY="gridReady",o.EVENT_GRID_PRE_DESTROYED="gridPreDestroyed",o.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",o.EVENT_VIEWPORT_CHANGED="viewportChanged",o.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",o.EVENT_FIRST_DATA_RENDERED="firstDataRendered",o.EVENT_DRAG_STARTED="dragStarted",o.EVENT_DRAG_STOPPED="dragStopped",o.EVENT_CHECKBOX_CHANGED="checkboxChanged",o.EVENT_ROW_EDITING_STARTED="rowEditingStarted",o.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",o.EVENT_CELL_EDITING_STARTED="cellEditingStarted",o.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",o.EVENT_BODY_SCROLL="bodyScroll",o.EVENT_BODY_SCROLL_END="bodyScrollEnd",o.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",o.EVENT_PAGINATION_CHANGED="paginationChanged",o.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",o.EVENT_STORE_REFRESHED="storeRefreshed",o.EVENT_STATE_UPDATED="stateUpdated",o.EVENT_COLUMN_MENU_VISIBLE_CHANGED="columnMenuVisibleChanged",o.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",o.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED="columnContainerWidthChanged",o.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",o.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",o.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",o.EVENT_FLASH_CELLS="flashCells",o.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOff
38setChanged",o.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",o.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",o.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",o.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",o.EVENT_HEADER_HEIGHT_CHANGED="headerHeightChanged",o.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",o.EVENT_ROW_DRAG_ENTER="rowDragEnter",o.EVENT_ROW_DRAG_MOVE="rowDragMove",o.EVENT_ROW_DRAG_LEAVE="rowDragLeave",o.EVENT_ROW_DRAG_END="rowDragEnd",o.EVENT_GRID_STYLES_CHANGED="gridStylesChanged",o.EVENT_POPUP_TO_FRONT="popupToFront",o.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",o.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",o.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",o.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",o.EVENT_STORE_UPDATED="storeUpdated",o.EVENT_FILTER_DESTROYED="filterDestroyed",o.EVENT_ROW_DATA_UPDATE_STARTED="rowDataUpdateStarted",o.EVENT_ROW_COUNT_READY="rowCountReady",o.EVENT_ADVANCED_FILTER_ENABLED_CHANGED="advancedFilterEnabledChanged",o.EVENT_DATA_TYPES_INFERRED="dataTypesInferred",o.EVENT_FIELD_VALUE_CHANGED="fieldValueChanged",o.EVENT_FIELD_PICKER_VALUE_SELECTED="fieldPickerValueSelected",o.EVENT_SIDE_BAR_UPDATED="sideBarUpdated",o}(),hC=function(){function o(){this.existingIds={}}return o.prototype.getInstanceIdForKey=function(t){var e=this.existingIds[t],i;return typeof e!="number"?i=0:i=e+1,this.existingIds[t]=i,i},o}(),ob=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ad=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Cs="ag-Grid-AutoColumn",sb=function(o){ob(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.createAutoGroupColumns=function(e){var i=this,r=[],n=this.gridOptionsService.get("treeData"),s=this.gridOptionsService.isGroupMultiAutoColumn();return n&&s&&(console.warn('AG Grid: you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data'),s=!1),s?e.forEach(function(a,l){r.push(i.createOneAutoGroupColumn(a,l))}):r.push(this.createOneAutoGroupColumn()),r},t.prototype.updateAutoGroupColumns=function(e,i){var r=this;e.forEach(function(n,s){return r.updateOneAutoGroupColumn(n,s,i)})},t.prototype.createOneAutoGroupColumn=function(e,i){var r;e?r="".concat(Cs,"-").concat(e.getId()):r=Cs;var n=this.createAutoGroupColDef(r,e,i);n.colId=r;var s=new pt(n,null,r,!0);return this.context.createBean(s),s},t.prototype.updateOneAutoGroupColumn=function(e,i,r){var n=e.getColDef(),s=typeof n.showRowGroup=="string"?n.showRowGroup:void 0,a=s!=null?this.columnModel.getPrimaryColumn(s):void 0,l=this.createAutoGroupColDef(e.getId(),a??void 0,i);e.setColDef(l,null,r),this.columnFactory.applyColumnState(e,l,r)},t.prototype.createAutoGroupColDef=function(e,i,r){var n=this.createBaseColDef(i),s=this.gridOptionsService.get("autoGroupColumnDef");if(_i(n,s),n=this.columnFactory.addColumnDefaultAndTypes(n,e),!this.gridOptionsService.get("treeData")){var a=Me(n.field)&&Me(n.valueGetter)&&Me(n.filterValueGetter)&&n.filter!=="agGroupColumnFilter";a&&(n.filter=!1)}r&&r>0&&(n.headerCheckboxSelection=!1);var l=this.gridOptionsService.isColumnsSortingCoupledToGroup(),u=n.valueGetter||n.field!=null;return l&&!u&&(n.sortIndex=void 0,n.initialSort=void 0),n},t.prototype.createBaseColDef=function(e){var i=this.gridOptionsService.get("autoGroupColumnDef"),r=this.localeService.getLocaleTextFunc(),n={headerName:r("group","Group")},s=i&&(i.cellRenderer||i.cellRendererSelector);if(s||(n.cellRenderer="agGroupCellRenderer"),e){var a=e.getColDef();Object.assign(n,{headerName:this.columnModel.getDisplayNameForColumn(e,"header"),headerValueGetter:a.headerValueGetter}),a.cellRenderer&&Object.assign(n,{cellRendererParams:{innerRenderer:a.cellRenderer,innerRendererParams:a.cellRendererParams}}),n.showRowGroup=e.getColId()}else n.showRowGroup=!0;return n},Ad([E("columnModel")],t.prototype,"columnModel",void 0),Ad([E("columnFactory")],t.prototype,"columnFactory",void 0),t=Ad([fe("autoGroupColService")],t),t}(ee),ab=/[&<>"']/g,lb={"&":"&","<":"<",">":">",'"':""","'":"'"};function ub(o){var t=String.fromCharCode;function e(p){var f=[];if(!p)return[];for(var v=p.length,y=0,w,b;y<v;
38)w=p.charCodeAt(y++),w>=55296&&w<=56319&&y<v?(b=p.charCodeAt(y++),(b&64512)==56320?f.push(((w&1023)<<10)+(b&1023)+65536):(f.push(w),y--)):f.push(w);return f}function i(p){if(p>=55296&&p<=57343)throw Error("Lone surrogate U+"+p.toString(16).toUpperCase()+" is not a scalar value")}function r(p,f){return t(p>>f&63|128)}function n(p){if(p>=0&&p<=31&&p!==10){var f=p.toString(16).toUpperCase(),v=f.padStart(4,"0");return"_x".concat(v,"_")}if(!(p&4294967168))return t(p);var y="";return p&4294965248?p&4294901760?p&4292870144||(y=t(p>>18&7|240),y+=r(p,12),y+=r(p,6)):(i(p),y=t(p>>12&15|224),y+=r(p,6)):y=t(p>>6&31|192),y+=t(p&63|128),y}for(var s=e(o),a=s.length,l=-1,u,c="";++l<a;)u=s[l],c+=n(u);return c}function cb(o){return o[0].toUpperCase()+o.substring(1).toLowerCase()}function Dt(o,t){if(o==null)return null;var e=o.toString().toString();return t?e:e.replace(ab,function(i){return lb[i]})}function vC(o){if(!o||o==null)return null;var t=/([a-z])([A-Z])/g,e=/([A-Z]+)([A-Z])([a-z])/g,i=o.replace(t,"$1 $2").replace(e,"$1 $2$3").replace(/\./g," ").split(" ");return i.map(function(r){return r.substring(0,1).toUpperCase()+(r.length>1?r.substring(1,r.length):"")}).join(" ")}function gC(o){return o.replace(/[A-Z]/g,function(t){return"-".concat(t.toLocaleLowerCase())})}var db=Object.freeze({__proto__:null,utf8_encode:ub,capitalise:cb,escapeString:Dt,camelCaseToHumanText:vC,camelCaseToHyphenated:gC});function _n(o){var t=new Map;return o.forEach(function(e){return t.set(e[0],e[1])}),t}function pb(o,t){var e=new Map;return o.forEach(function(i){return e.set(t(i),i)}),e}function fb(o){var t=[];return o.forEach(function(e,i){return t.push(i)}),t}var hb=Object.freeze({__proto__:null,convertToMap:_n,mapById:pb,keys:fb}),vb=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),kt=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},gb=function(o,t){return function(e,i){t(e,i,o)}},yb=function(o,t){var e={};for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&t.indexOf(i)<0&&(e[i]=o[i]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(o);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(o,i[r])&&(e[i[r]]=o[i[r]]);return e},gi=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},yi=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},Pd=function(o){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&o[t],i=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},mb=function(o){vb(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.primaryHeaderRowCount=0,e.secondaryHeaderRowCount=0,e.gridHeaderRowCount=0,e.displayedColumnsLeft=[],e.displayedColumnsRight=[],e.displayedColumnsCenter=[],e.displayedColumns=[],e.displayedColumnsAndGroupsMap={},e.viewportColumns=[],e.viewportColumnsHash="",e.headerViewportColumns=[],e.viewportColumnsCenter=[],e.headerViewportColumnsCenter=[],e.viewportRowLeft={},e.viewportRowRight={},e.viewportRowCenter={},e.autoHeightActiveAtLeastOnce=!1,e.rowGroupColumns=[],e.valueColumns=[],e.pivotColumns=[],e.ready=!1,e.changeEventsDispat
38ching=!1,e.autoGroupsNeedBuilding=!1,e.forceRecreateAutoGroups=!1,e.pivotMode=!1,e.bodyWidth=0,e.leftWidth=0,e.rightWidth=0,e.bodyWidthDirty=!0,e.shouldQueueResizeOperations=!1,e.resizeOperationQueue=[],e}return t.prototype.init=function(){var e=this;this.suppressColumnVirtualisation=this.gridOptionsService.get("suppressColumnVirtualisation");var i=this.gridOptionsService.get("pivotMode");this.isPivotSettingAllowed(i)&&(this.pivotMode=i),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents"],function(r){return e.buildAutoGroupColumns(rs(r.source))}),this.addManagedPropertyListener("autoGroupColumnDef",function(r){return e.onAutoGroupColumnDefChanged(rs(r.source))}),this.addManagedPropertyListeners(["defaultColDef","columnTypes","suppressFieldDotNotation"],function(r){return e.onSharedColDefChanged(rs(r.source))}),this.addManagedPropertyListener("pivotMode",function(r){return e.setPivotMode(e.gridOptionsService.get("pivotMode"),rs(r.source))}),this.addManagedListener(this.eventService,T.EVENT_FIRST_DATA_RENDERED,function(){return e.onFirstDataRendered()})},t.prototype.buildAutoGroupColumns=function(e){this.columnDefs&&(this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns(e))},t.prototype.onAutoGroupColumnDefChanged=function(e){this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns,e)},t.prototype.onSharedColDefChanged=function(e){this.gridColumns&&(this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns,e),this.createColumnsFromColumnDefs(!0,e))},t.prototype.setColumnDefs=function(e,i){var r=!!this.columnDefs;this.columnDefs=e,this.createColumnsFromColumnDefs(r,i)},t.prototype.recreateColumnDefs=function(e){this.onSharedColDefChanged(e)},t.prototype.destroyOldColumns=function(e,i){var r={};if(e){this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(s){r[s.getInstanceId()]=s}),i&&this.columnUtils.depthFirstOriginalTreeSearch(null,i,function(s){r[s.getInstanceId()]=null});var n=Object.values(r).filter(function(s){return s!=null});this.destroyBeans(n)}},t.prototype.destroyColumns=function(){this.destroyOldColumns(this.primaryColumnTree),this.destroyOldColumns(this.secondaryBalancedTree),this.destroyOldColumns(this.groupAutoColsBalancedTree)},t.prototype.createColumnsFromColumnDefs=function(e,i){var r=this,n=e?this.compareColumnStatesAndDispatchEvents(i):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var s=this.primaryColumns,a=this.primaryColumnTree,l=this.columnFactory.createColumnTree(this.columnDefs,!0,a,i);this.destroyOldColumns(this.primaryColumnTree,l.columnTree),this.primaryColumnTree=l.columnTree,this.primaryHeaderRowCount=l.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach(function(p){return r.primaryColumnsMap[p.getId()]=p}),this.extractRowGroupColumns(i,s),this.extractPivotColumns(i,s),this.extractValueColumns(i,s),this.ready=!0;var u=this.gridColsArePrimary===void 0,c=this.gridColsArePrimary||u||this.autoGroupsNeedBuilding;c&&(this.updateGridColumns(),e&&this.gridColsArePrimary&&!this.gridOptionsService.get("maintainColumnOrder")&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(i),this.checkViewportColumns()),this.dispatchEverythingChanged(i),this.changeEventsDispatching=!0,n&&n(),this.changeEventsDispatching=!1,this.dispatchNewColumnsLoaded(i)},t.prototype.shouldRowModelIgnoreRefresh=function(){return this.changeEventsDispatching},t.prototype.dispatchNewColumnsLoaded=function(e){var i={type:T.EVENT_NEW_COLUMNS_LOADED,source:e};this.eventService.dispatchEvent(i),e==="gridInitializing"&&this.onColumnsReady()},t.prototype.dispatchEverythingChanged=function(e){var i={type:T.EVENT_COLUMN_EVERYTHING_CHANGED,source:e};this.eventService.dispatchEvent(i)},t.prototype.orderGridColumnsLikePrimary=function(){var e=this,i=this.primaryColumns;if(i){var r=i.filter(function(s){return e.gridColumns.indexOf(s)>=0}),n=this.gridColumns.filter(function(s){return r.indexOf(s)<0});this.gridColumns=yi(yi([],gi(n),!1),gi(r),!1),this.gridColumns=this.placeLockedColumns(this.gridColumns)}},t.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},t.prototype.setViewport=function(){this.gridOptionsService.get("enableRtl")?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},t.prototype.getDisplayedColumnsStartingAt=function(e){for(var i=e,r=[];i!=null;)r.push(i),i=this.getDisplayedColAfter(i);return r},t.prototype.checkViewportColumns=function(e){if(e===void 0&&(e=!1),this.displayedColumnsCenter!=null){var i=this.extractViewport();if(i){var r={type:T.EVENT_VIRTUAL_COLUMNS_CHANGED,afterScroll:e};this.eventService.dispatchEvent(r)}}},t.prototype.setViewportPosition=function(e,i,r){r===void 0&&(r=!1),(e!==this.scrollWidth||i!==this.scrollPosition||this.bodyWidthDirty)&&
38(this.scrollWidth=e,this.scrollPosition=i,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns(r))},t.prototype.isPivotMode=function(){return this.pivotMode},t.prototype.isPivotSettingAllowed=function(e){return e&&this.gridOptionsService.get("treeData")?(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1):!0},t.prototype.setPivotMode=function(e,i){if(!(e===this.pivotMode||!this.isPivotSettingAllowed(this.pivotMode))&&(this.pivotMode=e,!!this.gridColumns)){this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(i);var r={type:T.EVENT_COLUMN_PIVOT_MODE_CHANGED};this.eventService.dispatchEvent(r)}},t.prototype.getSecondaryPivotColumn=function(e,i){if(Me(this.secondaryColumns))return null;var r=this.getPrimaryColumn(i),n=null;return this.secondaryColumns.forEach(function(s){var a=s.getColDef().pivotKeys,l=s.getColDef().pivotValueColumn,u=jr(a,e),c=l===r;u&&c&&(n=s)}),n},t.prototype.setBeans=function(e){this.logger=e.create("columnModel")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var i,r;this.gridOptionsService.get("enableRtl")?(i=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,r=this.displayedColumnsRight?ot(this.displayedColumnsRight):null):(i=this.displayedColumnsLeft?ot(this.displayedColumnsLeft):null,r=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach(function(n){n.setLastLeftPinned(n===i,e),n.setFirstRightPinned(n===r,e)})},t.prototype.autoSizeColumns=function(e){var i=this;if(this.shouldQueueResizeOperations){this.resizeOperationQueue.push(function(){return i.autoSizeColumns(e)});return}var r=e.columns,n=e.skipHeader,s=e.skipHeaderGroups,a=e.stopAtGroup,l=e.source,u=l===void 0?"api":l;this.animationFrameService.flushAllFrames();for(var c=[],p=-1,f=n??this.gridOptionsService.get("skipHeaderOnAutoSize"),v=s??f;p!==0;)p=0,this.actionOnGridColumns(r,function(y){if(c.indexOf(y)>=0)return!1;var w=i.autoWidthCalculator.getPreferredWidthForColumn(y,f);if(w>0){var b=i.normaliseColumnWidth(y,w);y.setActualWidth(b,u),c.push(y),p++}return!0},u);v||this.autoSizeColumnGroupsByColumns(r,u,a),this.dispatchColumnResizedEvent(c,!0,"autosizeColumns")},t.prototype.dispatchColumnResizedEvent=function(e,i,r,n){if(n===void 0&&(n=null),e&&e.length){var s={type:T.EVENT_COLUMN_RESIZED,columns:e,column:e.length===1?e[0]:null,flexColumns:n,finished:i,source:r};this.eventService.dispatchEvent(s)}},t.prototype.dispatchColumnChangedEvent=function(e,i,r){var n={type:e,columns:i,column:i&&i.length==1?i[0]:null,source:r};this.eventService.dispatchEvent(n)},t.prototype.dispatchColumnMovedEvent=function(e){var i=e.movedColumns,r=e.source,n=e.toIndex,s=e.finished,a={type:T.EVENT_COLUMN_MOVED,columns:i,column:i&&i.length===1?i[0]:null,toIndex:n,finished:s,source:r};this.eventService.dispatchEvent(a)},t.prototype.dispatchColumnPinnedEvent=function(e,i){if(e.length){var r=e.length===1?e[0]:null,n=this.getCommonValue(e,function(a){return a.getPinned()}),s={type:T.EVENT_COLUMN_PINNED,pinned:n??null,columns:e,column:r,source:i};this.eventService.dispatchEvent(s)}},t.prototype.dispatchColumnVisibleEvent=function(e,i){if(e.length){var r=e.length===1?e[0]:null,n=this.getCommonValue(e,function(a){return a.isVisible()}),s={type:T.EVENT_COLUMN_VISIBLE,visible:n,columns:e,column:r,source:i};this.eventService.dispatchEvent(s)}},t.prototype.autoSizeColumn=function(e,i,r){e&&this.autoSizeColumns({columns:[e],skipHeader:r,skipHeaderGroups:!0,source:i})},t.prototype.autoSizeColumnGroupsByColumns=function(e,i,r){var n,s,a,l,u=new Set,c=this.getGridColumns(e);c.forEach(function(P){for(var L=P.getParent();L&&L!=r;)L.isPadding()||u.add(L),L=L.getParent()});var p,f=[];try{for(var v=Pd(u),y=v.next();!y.done;y=v.next()){var w=y.value;try{for(var b=(a=void 0,Pd(this.ctrlsService.getHeaderRowContainerCtrls())),O=b.next();!O.done;O=b.next()){var A=O.value;if(p=A.getHeaderCtrlForColumn(w),p)break}}catch(P){a={error:P}}finally{try{O&&!O.done&&(l=b.return)&&l.call(b)}finally{if(a)throw a.error}}p&&p.resizeLeafColumnsToFit(i)}}catch(P){n={error:P}}finally{try{y&&!y.done&&(s=v.return)&&s.call(v)}finally{if(n)throw n.error}}return f},t.prototype.autoSizeAllColumns=function(e,i){var r=this;
38if(this.shouldQueueResizeOperations){this.resizeOperationQueue.push(function(){return r.autoSizeAllColumns(e,i)});return}var n=this.getAllDisplayedColumns();this.autoSizeColumns({columns:n,skipHeader:i,source:e})},t.prototype.getColumnsFromTree=function(e){var i=[],r=function(n){for(var s=0;s<n.length;s++){var a=n[s];a instanceof pt?i.push(a):a instanceof _t&&r(a.getChildren())}};return r(e),i},t.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},t.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},t.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},t.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},t.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},t.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},t.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},t.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},t.prototype.getViewportColumns=function(){return this.viewportColumns},t.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},t.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},t.prototype.isColSpanActive=function(){return this.colSpanActive},t.prototype.getDisplayedColumnsForRow=function(e,i,r,n){for(var s=[],a=null,l=function(p){var f=i[p],v=i.length-p,y=Math.min(f.getColSpan(e),v),w=[f];if(y>1){for(var b=y-1,O=1;O<=b;O++)w.push(i[p+O]);p+=b}var A;if(r?(A=!1,w.forEach(function(L){r(L)&&(A=!0)})):A=!0,A){if(s.length===0&&a){var P=n?n(f):!1;P&&s.push(a)}s.push(f)}a=f,u=p},u,c=0;c<i.length;c++)l(c),c=u;return s},t.prototype.getViewportCenterColumnsForRow=function(e){var i=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var r=function(s){var a=s.getLeft();return Q(a)&&a>i.viewportLeft},n=this.isColumnVirtualisationSuppressed()?null:this.isColumnInRowViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,n,r)},t.prototype.isColumnAtEdge=function(e,i){var r=this.getAllDisplayedColumns();if(!r.length)return!1;var n=i==="first",s;if(e instanceof At){var a=e.getDisplayedLeafColumns();if(!a.length)return!1;s=n?a[0]:ot(a)}else s=e;return(n?r[0]:ot(r))===s},t.prototype.getAriaColumnIndex=function(e){var i;return e instanceof At?i=e.getLeafColumns()[0]:i=e,this.ariaOrderColumns.indexOf(i)+1},t.prototype.isColumnInHeaderViewport=function(e){return e.isAutoHeaderHeight()?!0:this.isColumnInRowViewport(e)},t.prototype.isColumnInRowViewport=function(e){if(e.isAutoHeight())return!0;var i=e.getLeft()||0,r=i+e.getActualWidth(),n=this.viewportLeft-200,s=this.viewportRight+200,a=i<n&&r<n,l=i>s&&r>s;return!a&&!l},t.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},t.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},t.prototype.updatePrimaryColumnList=function(e,i,r,n,s,a){var l=this;if(!(!e||Si(e))){var u=!1;if(e.forEach(function(p){if(p){var f=l.getPrimaryColumn(p);if(f){if(r){if(i.indexOf(f)>=0)return;i.push(f)}else{if(i.indexOf(f)<0)return;ui(i,f)}n(f),u=!0}}}),!!u){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(a);var c={type:s,columns:i,column:i.length===1?i[0]:null,source:a};this.eventService.dispatchEvent(c)}}},t.prototype.setRowGroupColumns=function(e,i){this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,T.EVENT_COLUMN_ROW_GROUP_CHANGED,!0,this.setRowGroupActive.bind(this),i)},t.prototype.setRowGroupActive=function(e,i,r){e!==i.isRowGroupActive()&&(i.setRowGroupActive(e,r),e&&!this.gridOptionsService.get("suppressRowGroupHidesColumns")&&this.setColumnsVisible([i],!1,r),!e&&!this.gridOptionsService.get("suppressMakeColumnVisibleAfterUnGroup")&&this.setColumnsVisible([i],!0,r))},t.prototype.addRowGroupColumns=function(e,i){this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),T.EVENT_COLUMN_ROW_GROUP_CHANGED,i)},t.prototype.removeRowGroupColumns=function(e,i){this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),T.EVENT_COLUMN_ROW_GROUP_CHANGED,i)},t.prototype.addPivotColumns=function(e,i){this.updatePrimaryColumnList(e,this.pivotColumns,!0,function(r){return r.setPivotActive(!0,i)},T.EVENT_COLUMN_PIVOT_CHANGED,i)},t.prototype.setPivotColumns=function(e,i){this.setPrimaryColumnList(e,this.pivotColumns,T.EVENT_COLUMN_PIVOT_CHANGED,!0,function(r,n){n.setPivotActive(r,i)},i)},t.prototype.removePivotColumns=function(e,i){this.updatePrimaryColumnList(e,this.pivotColumns,!1,function(r){return r.setPivotActive(!1,i)},T.EVENT_COLUMN_PIVOT_CHANGED,i)},t.prototype.setPrimaryColumnList=function(e,i,r,n,s,a){var l=this;if(this.gridColumns){var u=new Map;
38i.forEach(function(c,p){return u.set(c,p)}),i.length=0,Q(e)&&e.forEach(function(c){var p=l.getPrimaryColumn(c);p&&i.push(p)}),i.forEach(function(c,p){var f=u.get(c);if(f===void 0){u.set(c,0);return}n&&f!==p||u.delete(c)}),(this.primaryColumns||[]).forEach(function(c){var p=i.indexOf(c)>=0;s(p,c)}),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(a),this.dispatchColumnChangedEvent(r,yi([],gi(u.keys()),!1),a)}},t.prototype.setValueColumns=function(e,i){this.setPrimaryColumnList(e,this.valueColumns,T.EVENT_COLUMN_VALUE_CHANGED,!1,this.setValueActive.bind(this),i)},t.prototype.setValueActive=function(e,i,r){if(e!==i.isValueActive()&&(i.setValueActive(e,r),e&&!i.getAggFunc())){var n=this.aggFuncService.getDefaultAggFunc(i);i.setAggFunc(n)}},t.prototype.addValueColumns=function(e,i){this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),T.EVENT_COLUMN_VALUE_CHANGED,i)},t.prototype.removeValueColumns=function(e,i){this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),T.EVENT_COLUMN_VALUE_CHANGED,i)},t.prototype.normaliseColumnWidth=function(e,i){var r=e.getMinWidth();Q(r)&&i<r&&(i=r);var n=e.getMaxWidth();return Q(n)&&e.isGreaterThanMax(i)&&(i=n),i},t.prototype.getPrimaryOrGridColumn=function(e){var i=this.getPrimaryColumn(e);return i||this.getGridColumn(e)},t.prototype.setColumnWidths=function(e,i,r,n){var s=this,a=[];e.forEach(function(l){var u=s.getPrimaryOrGridColumn(l.key);if(u){a.push({width:l.newWidth,ratios:[1],columns:[u]});var c=s.gridOptionsService.get("colResizeDefault")==="shift";if(c&&(i=!i),i){var p=s.getDisplayedColAfter(u);if(!p)return;var f=u.getActualWidth()-l.newWidth,v=p.getActualWidth()+f;a.push({width:v,ratios:[1],columns:[p]})}}}),a.length!==0&&this.resizeColumnSets({resizeSets:a,finished:r,source:n})},t.prototype.checkMinAndMaxWidthsForSet=function(e){var i=e.columns,r=e.width,n=0,s=0,a=!0;i.forEach(function(c){var p=c.getMinWidth();n+=p||0;var f=c.getMaxWidth();Q(f)&&f>0?s+=f:a=!1});var l=r>=n,u=!a||r<=s;return l&&u},t.prototype.resizeColumnSets=function(e){var i=this,r=e.resizeSets,n=e.finished,s=e.source,a=!r||r.every(function(y){return i.checkMinAndMaxWidthsForSet(y)});if(!a){if(n){var l=r&&r.length>0?r[0].columns:null;this.dispatchColumnResizedEvent(l,n,s)}return}var u=[],c=[];r.forEach(function(y){var w=y.width,b=y.columns,O=y.ratios,A={},P={};b.forEach(function(N){return c.push(N)});for(var L=!0,x=0,H=function(){if(x++,x>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";L=!1;var N=[],V=0,z=w;b.forEach(function(k,j){var X=P[k.getId()];if(X)z-=A[k.getId()];else{N.push(k);var re=O[j];V+=re}});var I=1/V;N.forEach(function(k,j){var X=j===N.length-1,re;X?re=z:(re=Math.round(O[j]*w*I),z-=re);var ge=k.getMinWidth(),ae=k.getMaxWidth();Q(ge)&&re<ge?(re=ge,P[k.getId()]=!0,L=!0):Q(ae)&&ae>0&&re>ae&&(re=ae,P[k.getId()]=!0,L=!0),A[k.getId()]=re})};L;){var g=H();if(g==="break")break}b.forEach(function(N){var V=A[N.getId()],z=N.getActualWidth();z!==V&&(N.setActualWidth(V,s),u.push(N))})});var p=u.length>0,f=[];p&&(f=this.refreshFlexedColumns({resizingCols:c,skipSetLeft:!0}),this.setLeftValues(s),this.updateBodyWidths(),this.checkViewportColumns());var v=c.concat(f);(p||n)&&this.dispatchColumnResizedEvent(v,n,s,f)},t.prototype.setColumnAggFunc=function(e,i,r){if(e){var n=this.getPrimaryColumn(e);n&&(n.setAggFunc(i),this.dispatchColumnChangedEvent(T.EVENT_COLUMN_VALUE_CHANGED,[n],r))}},t.prototype.moveRowGroupColumn=function(e,i,r){if(!this.isRowGroupEmpty()){var n=this.rowGroupColumns[e],s=this.rowGroupColumns.slice(e,i);this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(i,0,n);var a={type:T.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:s,column:s.length===1?s[0]:null,source:r};this.eventService.dispatchEvent(a)}},t.prototype.moveColumns=function(e,i,r,n){if(n===void 0&&(n=!0),!!this.gridColumns){if(this.columnAnimationService.start(),i>this.gridColumns.length-e.length){console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+i),console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");return}var s=this.getGridColumns(e),a=!this.doesMovePassRules(s,i);a||(Jp(this.gridColumns,s,i),this.updateDisplayedColumns(r),this.dispatchColumnMovedEvent({movedColumns:s,source:r,toIndex:i,finished:n}),this.columnAnimationService.finish())}},t.prototype.doesMovePassRules=function(e,i){var r=this.getProposedColumnOrder(e,i);return this.doesOrderPassRules(r)},t.prototype.doesOrderPassRules=function(e){return!(!this.doesMovePassMarryChildren(e)||!this.doesMovePassLockedPositions(e))},t.prototype.getProposedColumnOrder=function(e,i){var r=this.gridColumns.slice();return Jp(r,e,i),r},t.prototype.sortColumnsLikeGridColumns=function(e){var i=this;if(!(!e||e.length<=1)){var r=e.filter(function(n){return i.gridColumns.indexOf(n)<0}).length>0;r||e.sort(function(n,s){var a=i.gridColumns.indexOf(n),l=i.gridColumns.indexOf(s);return a-l})}},t.prototype.doesMovePassLockedPositions=function(e){var i=0,r=!0,n=function(s){return s?s===!0||s==="left"?0:2:1};return e.forEach(function(s){var a=n(s.getColDef().lockPosition);a<i&&(r=!1),i=a}),r},t.prototype.doesMovePassMarryChildren=function(e){var i=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(r){if(r instanceof _t){var n=r,s=n.getColGroupDef(),a=s&&s.marryChildren;if(a){var l=[];
38n.getLeafColumns().forEach(function(v){var y=e.indexOf(v);l.push(y)});var u=Math.max.apply(Math,l),c=Math.min.apply(Math,l),p=u-c,f=n.getLeafColumns().length-1;p>f&&(i=!1)}}}),i},t.prototype.moveColumnByIndex=function(e,i,r){if(this.gridColumns){var n=this.gridColumns[e];this.moveColumns([n],i,r)}},t.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var i=this.primaryColumns.slice();return this.gridColsArePrimary?i.sort(function(r,n){return e.gridColumns.indexOf(r)-e.gridColumns.indexOf(n)}):this.lastPrimaryOrder&&i.sort(function(r,n){return e.lastPrimaryOrder.indexOf(r)-e.lastPrimaryOrder.indexOf(n)}),this.columnDefFactory.buildColumnDefs(i,this.rowGroupColumns,this.pivotColumns)}},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),i=this.getWidthOfColsInList(this.displayedColumnsLeft),r=this.getWidthOfColsInList(this.displayedColumnsRight);this.bodyWidthDirty=this.bodyWidth!==e;var n=this.bodyWidth!==e||this.leftWidth!==i||this.rightWidth!==r;if(n){this.bodyWidth=e,this.leftWidth=i,this.rightWidth=r;var s={type:T.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED};this.eventService.dispatchEvent(s);var a={type:T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED};this.eventService.dispatchEvent(a)}},t.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},t.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},t.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},t.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},t.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},t.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},t.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},t.prototype.getDisplayedColumns=function(e){switch(e){case"left":return this.getDisplayedLeftColumns();case"right":return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},t.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns:null},t.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns:null},t.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},t.prototype.getAllGridColumns=function(){var e;return(e=this.gridColumns)!==null&&e!==void 0?e:[]},t.prototype.isEmpty=function(){return Si(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return Si(this.rowGroupColumns)},t.prototype.setColumnsVisible=function(e,i,r){i===void 0&&(i=!1),this.applyColumnState({state:e.map(function(n){return{colId:typeof n=="string"?n:n.getColId(),hide:!i}})},r)},t.prototype.setColumnsPinned=function(e,i,r){if(this.gridColumns){if(this.gridOptionsService.isDomLayout("print")){console.warn("AG Grid: Changing the column pinning status is not allowed with domLayout='print'");return}this.columnAnimationService.start();var n;i===!0||i==="left"?n="left":i==="right"?n="right":n=null,this.actionOnGridColumns(e,function(s){return s.getPinned()!==n?(s.setPinned(n),!0):!1},r,function(){var s={type:T.EVENT_COLUMN_PINNED,pinned:n,column:null,columns:null,source:r};return s}),this.columnAnimationService.finish()}},t.prototype.actionOnGridColumns=function(e,i,r,n){var s=this;if(!Si(e)){var a=[];if(e.forEach(function(u){if(u){var c=s.getGridColumn(u);if(c){var p=i(c);p!==!1&&a.push(c)}}}),!!a.length&&(this.updateDisplayedColumns(r),Q(n)&&n)){var l=n();l.columns=a,l.column=a.length===1?a[0]:null,this.eventService.dispatchEvent(l)}}},t.prototype.getDisplayedColBefore=function(e){var i=this.getAllDisplayedColumns(),r=i.indexOf(e);return r>0?i[r-1]:null},t.prototype.getDisplayedColAfter=function(e){var i=this.getAllDisplayedColumns(),r=i.indexOf(e);return r<i.length-1?i[r+1]:null},t.prototype.getDisplayedGroupAfter=function(e){return this.getDisplayedGroupAtDirection(e,"After")},t.prototype.getDisplayedGroupBefore=function(e){return this.getDisplayedGroupAtDirection(e,"Before")},t.prototype.getDisplayedGroupAtDirection=function(e,i){for(var r=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),n=e.getDisplayedLeafColumns(),s=i==="After"?ot(n):n[0],a="getDisplayedCol".concat(i);;){var l=this[a](s);if(!l)return null;var u=this.getColumnGroupAtLevel(l,r);if(u!==e)return u}},t.prototype.getColumnGroupAtLevel=function(e,i){for(var r=e.getParent(),n,s;;){var a=r.getProvidedColumnGroup();if(n=a.getLevel(),s=r.getPaddingLevel(),n+s<=i)break;r=r.getParent()}return r},t.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},t.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},t.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e;return(e=[]).concat.apply(e,[this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]])},t.prototype.createStateItemFromColumn=function(e){var i=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,r=e.isPivotActive()?this.pivotColumns.indexOf(e):null,n=e.isValueActive()?e.getAggFunc():null,s=e.getSort()!=null?e.getSort():null,a=e.getSortIndex()!=null?e.getSortIndex():null,l=e.getFlex()!=null&&e.getFlex()>0?e.getFlex():null,u={colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:s,sortIndex:a,aggFunc:n,rowGroup:e.isRowGroupActive(),rowGroupIndex:i,pivot:e.isPivotActive(),pivotIndex:r,flex:l};return u},t.prototype.getColumnState=function(){if(Me(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns(),i=e.map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(i),i},t.prototype.orderColumnStateList=function(e){var i=_n(this.gridColumns.map(function(r,n){return[r.getColId(),n]}));e.sort(function(r,n){var s=i.has(r.colId)?i.get(r.colId):-1,a=i.has(n.colId)?i.get(n.colId):-1;return s-a})},t.prototype.resetColumnState=function(e){var i=this;if(!Si(this.primaryColumns)){var r=this.getColumnsFromTree(this.primaryColumnTree),n=[],s=1e3,a=1e3,l=[];this.groupAutoColumns&&(l=l.concat(this.groupAutoColumns)),r&&(l=l.concat(r)),l.forEach(function(u){var c=i.getColumnStateFromColDef(u);Me(c.rowGroupIndex)&&c.rowGroup&&(c.rowGroupIndex=s++),Me(c.pivotIndex)&&c.pivot&&(c.pivotIndex=a++),n.push(c)}),this.applyColumnState({state:n,applyOrder:!0},e)}},t.prototype.getColumnStateFromColDef=function(e){var i=function(b,O){return b??O??null},r=e.getColDef(),n=i(r.sort,r.initialSort),s=i(r.sortIndex,r.initialSortIndex),a=i(r.hide,r.initialHide),l=i(r.pinned,r.initialPinned),u=i(r.width,r.initialWidth),c=i(r.flex,r.initialFlex),p=i(r.rowGroupIndex,r.initialRowGroupIndex),f=i(r.rowGroup,r.initialRowGroup);p==null&&(f==null||f==!1)&&(p=null,f=null);var v=i(r.pivotIndex,r.initialPivotIndex),y=i(r.pivot,r.initialPivot);v==null&&(y==null||y==!1)&&(v=null,y=null);var w=i(r.aggFunc,r.initialAggFunc);return{colId:e.getColId(),sort:n,sortIndex:s,hide:a,pinned:l,width:u,flex:c,rowGroup:f,rowGroupIndex:p,pivot:y,pivotIndex:v,aggFunc:w}},t.prototype.applyColumnState=function(e,i){var r=this;if(Si(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;var n=function(u,c,p){var f=r.compareColumnStatesAndDispatchEvents(i);r.autoGroupsNeedBuilding=!0;var v=c.slice(),y={},w={},b=[],O=[],A=0,P=r.rowGroupColumns.slice(),L=r.pivotColumns.slice();u.forEach(function(N){var V=N.colId||"",z=V.startsWith(Cs);if(z){b.push(N),O.push(N);return}var I=p(V);I?(r.syncColumnWithStateItem(I,N,e.defaultState,y,w,!1,i),ui(v,I)):(O.push(N),A+=1)});var x=function(N){return r.syncColumnWithStateItem(N,null,e.defaultState,y,w,!1,i)};v.forEach(x);var H=function(N,V,z,I){var k=N[z.getId()],j=N[I.getId()],X=k!=null,re=j!=null;if(X&&re)return k-j;if(X)return-1;if(re)return 1;var ge=V.indexOf(z),ae=V.indexOf(I),ve=ge>=0,pe=ae>=0;return ve&&pe?ge-ae:ve?-1:1};r.rowGroupColumns.sort(H.bind(r,y,P)),r.pivotColumns.sort(H.bind(r,w,L)),r.updateGridColumns();var g=r.groupAutoColumns?r.groupAutoColumns.slice():[];return b.forEach(function(N){var V=r.getAutoColumn(N.colId);ui(g,V),r.syncColumnWithStateItem(V,N,e.defaultState,null,null,!0,i)}),g.forEach(x),r.applyOrderAfterApplyState(e),r.updateDisplayedColumns(i),r.dispatchEverythingChanged(i),f(),{unmatchedAndAutoStates:O,unmatchedCount:A}};this.columnAnimationService.start();var s=n(e.state||[],this.primaryColumns||[],function(u){return r.getPrimaryColumn(u)}),a=s.unmatchedAndAutoStates,l=s.unmatchedCount;return(a.length>0||Q(e.defaultState))&&(l=n(a,this.secondaryColumns||[],function(u){return r.getSecondaryColumn(u)}).unmatchedCount),this.columnAnimationService.finish(),l===0},t.prototype.applyOrderAfterApplyState=function(e){var i=this;if(!(!e.applyOrder||!e.state)){var r=[],n={};
38e.state.forEach(function(a){if(!(!a.colId||n[a.colId])){var l=i.gridColumnsMap[a.colId];l&&(r.push(l),n[a.colId]=!0)}});var s=0;if(this.gridColumns.forEach(function(a){var l=a.getColId(),u=n[l]!=null;if(!u){var c=l.startsWith(Cs);c?Ba(r,a,s++):r.push(a)}}),r=this.placeLockedColumns(r),!this.doesMovePassMarryChildren(r)){console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.");return}this.gridColumns=r}},t.prototype.compareColumnStatesAndDispatchEvents=function(e){var i=this,r={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},n=this.getColumnState(),s={};return n.forEach(function(a){s[a.colId]=a}),function(){var a=i.getPrimaryAndSecondaryAndAutoColumns(),l=function(A,P,L,x){var H=P.map(x),g=L.map(x),N=jr(H,g);if(!N){var V=new Set(P);L.forEach(function(k){V.delete(k)||V.add(k)});var z=yi([],gi(V),!1),I={type:A,columns:z,column:z.length===1?z[0]:null,source:e};i.eventService.dispatchEvent(I)}},u=function(A){var P=[];return a.forEach(function(L){var x=s[L.getColId()];x&&A(x,L)&&P.push(L)}),P},c=function(A){return A.getColId()};l(T.EVENT_COLUMN_ROW_GROUP_CHANGED,r.rowGroupColumns,i.rowGroupColumns,c),l(T.EVENT_COLUMN_PIVOT_CHANGED,r.pivotColumns,i.pivotColumns,c);var p=function(A,P){var L=A.aggFunc!=null,x=L!=P.isValueActive(),H=L&&A.aggFunc!=P.getAggFunc();return x||H},f=u(p);f.length>0&&i.dispatchColumnChangedEvent(T.EVENT_COLUMN_VALUE_CHANGED,f,e);var v=function(A,P){return A.width!=P.getActualWidth()};i.dispatchColumnResizedEvent(u(v),!0,e);var y=function(A,P){return A.pinned!=P.getPinned()};i.dispatchColumnPinnedEvent(u(y),e);var w=function(A,P){return A.hide==P.isVisible()};i.dispatchColumnVisibleEvent(u(w),e);var b=function(A,P){return A.sort!=P.getSort()||A.sortIndex!=P.getSortIndex()},O=u(b);O.length>0&&i.sortController.dispatchSortChangedEvents(e,O),i.normaliseColumnMovedEventForColumnState(n,e)}},t.prototype.getCommonValue=function(e,i){if(!(!e||e.length==0)){for(var r=i(e[0]),n=1;n<e.length;n++)if(r!==i(e[n]))return;return r}},t.prototype.normaliseColumnMovedEventForColumnState=function(e,i){var r=this,n=this.getColumnState(),s={};n.forEach(function(p){return s[p.colId]=p});var a={};e.forEach(function(p){s[p.colId]&&(a[p.colId]=!0)});var l=e.filter(function(p){return a[p.colId]}),u=n.filter(function(p){return a[p.colId]}),c=[];u.forEach(function(p,f){var v=l&&l[f];if(v&&v.colId!==p.colId){var y=r.getGridColumn(v.colId);y&&c.push(y)}}),c.length&&this.dispatchColumnMovedEvent({movedColumns:c,source:i,finished:!0})},t.prototype.syncColumnWithStateItem=function(e,i,r,n,s,a,l){if(e){var u=function(N,V){var z={value1:void 0,value2:void 0},I=!1;return i&&(i[N]!==void 0&&(z.value1=i[N],I=!0),Q(V)&&i[V]!==void 0&&(z.value2=i[V],I=!0)),!I&&r&&(r[N]!==void 0&&(z.value1=r[N]),Q(V)&&r[V]!==void 0&&(z.value2=r[V])),z},c=u("hide").value1;c!==void 0&&e.setVisible(!c,l);var p=u("pinned").value1;p!==void 0&&e.setPinned(p);var f=this.columnUtils.calculateColMinWidth(e.getColDef()),v=u("flex").value1;if(v!==void 0&&e.setFlex(v),v==null){var y=u("width").value1;y!=null&&f!=null&&y>=f&&e.setActualWidth(y,l)}var w=u("sort").value1;w!==void 0&&(w==="desc"||w==="asc"?e.setSort(w,l):e.setSort(void 0,l));var b=u("sortIndex").value1;if(b!==void 0&&e.setSortIndex(b),!(a||!e.isPrimary())){var O=u("aggFunc").value1;O!==void 0&&(typeof O=="string"?(e.setAggFunc(O),e.isValueActive()||(e.setValueActive(!0,l),this.valueColumns.push(e))):(Q(O)&&console.warn("AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),e.isValueActive()&&(e.setValueActive(!1,l),ui(this.valueColumns,e))));var A=u("rowGroup","rowGroupIndex"),P=A.value1,L=A.value2;(P!==void 0||L!==void 0)&&(typeof L=="number"||P?(e.isRowGroupActive()||(e.setRowGroupActive(!0,l),this.rowGroupColumns.push(e)),n&&typeof L=="number"&&(n[e.getId()]=L)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,l),ui(this.rowGroupColumns,e)));var x=u("pivot","pivotIndex"),H=x.value1,g=x.value2;(H!==void 0||g!==void 0)&&(typeof g=="number"||H?(e.isPivotActive()||(e.setPivotActive(!0,l),this.pivotColumns.push(e)),s&&typeof g=="number"&&(s[e.getId()]=g)):e.isPivotActive()&&(e.setPivotActive(!1,l),ui(this.pivotColumns,e)))}}},t.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},t.prototype.getColumns=function(e,i){var r=[];return e&&e.forEach(function(n){var s=i(n);s&&r.push(s)}),r},t.prototype.getColumnWithValidation=function(e){if(e==null)return null;var i=this.getGridColumn(e);return i||console.warn("AG Grid: could not find column "+e),i},t.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},t.prototype.lookupGridColumn=function(e){return this.gridColumnsMap[e]},t.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},t.prototype.getColumn=function(e,i,r){if(!e||!r)return null;if(typeof e=="string"&&r[e])return r[e];for(var n=0;n<i.length;n++)if(this.columnsMatch(i[n],e))return i[n];return this.getAutoColumn(e)},t.prototype.getSourceColumnsForGroupColumn=function(e){var i=e.getColDef().showRowGroup;if(!i)return null;if(i===!0)return this.rowGroupColumns.slice(0);var r=this.getPrimaryColumn(i);return r?[r]:null},t.prototype.getAutoColumn=function(e){var i=this;return!this.groupAutoColumns||!Q(this.groupAutoColumns)||Me(this.groupAutoColumns)?null:this.groupAutoColumns.find(function(r){return i.columnsMatch(r,e)})||null},t.prototype.columnsMatch=function(e,i){var r=e===i,n=e.getColDef()===i,s=e.getColId()==i;return r||n||s},t.prototype.getDisplayNameForColumn=function(e,i,r){if(r===void 0&&(r=!1),!e)return null;var n=this.getHeaderName(e.getColDef(),e,null,null,i);return r?this.wrapHeaderNameWithAggFunc(e,n):n},t.prototype.getDisplayNameForProvidedColumnGroup=function(e,i,r){var n=i?i.getColGroupDef():null;return n?this.getHeaderName(n,null,e,i,r):null},t.prototype.getDisplayNameForColumnGroup=function(e,i){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),i)},t.prototype.getHeaderName=function(e,i,r,n,s){var a=e.headerValueGetter;if(a){var l=this.gridOptionsService.addGridCommonParams({colDef:e,column:i,columnGroup:r,providedColumnGroup:n,location:s});
38return typeof a=="function"?a(l):typeof a=="string"?this.expressionService.evaluate(a,l):(console.warn("AG Grid: headerValueGetter must be a function or a string"),"")}else{if(e.headerName!=null)return e.headerName;if(e.field)return vC(e.field)}return""},t.prototype.wrapHeaderNameWithAggFunc=function(e,i){if(this.gridOptionsService.get("suppressAggFuncInHeader"))return i;var r=e.getColDef().pivotValueColumn,n=Q(r),s=null,a;if(n){var l=this.gridOptionsService.get("removePivotHeaderRowWhenSingleValueColumn")&&this.valueColumns.length===1,u=e.getColDef().pivotTotalColumnIds!==void 0;if(l&&!u)return i;s=r?r.getAggFunc():null,a=!0}else{var c=e.isValueActive(),p=this.pivotMode||!this.isRowGroupEmpty();c&&p?(s=e.getAggFunc(),a=!0):a=!1}if(a){var f=typeof s=="string"?s:"func",v=this.localeService.getLocaleTextFunc(),y=v(f,f);return"".concat(y,"(").concat(i,")")}return i},t.prototype.getColumnGroup=function(e,i){if(!e)return null;if(e instanceof At)return e;var r=this.getAllDisplayedTrees(),n=typeof i=="number",s=null;return this.columnUtils.depthFirstAllColumnTreeSearch(r,function(a){if(a instanceof At){var l=a,u=void 0;n?u=e===l.getGroupId()&&i===l.getPartId():u=e===l.getGroupId(),u&&(s=l)}}),s},t.prototype.isReady=function(){return this.ready},t.prototype.extractValueColumns=function(e,i){this.valueColumns=this.extractColumns(i,this.valueColumns,function(r,n){return r.setValueActive(n,e)},function(){},function(){},function(r){var n=r.aggFunc;if(n===null||n==="")return null;if(n!==void 0)return!!n},function(r){return r.initialAggFunc!=null&&r.initialAggFunc!=""}),this.valueColumns.forEach(function(r){var n=r.getColDef();n.aggFunc!=null&&n.aggFunc!=""?r.setAggFunc(n.aggFunc):r.getAggFunc()||r.setAggFunc(n.initialAggFunc)})},t.prototype.extractRowGroupColumns=function(e,i){this.rowGroupColumns=this.extractColumns(i,this.rowGroupColumns,function(r,n){return r.setRowGroupActive(n,e)},function(r){return r.rowGroupIndex},function(r){return r.initialRowGroupIndex},function(r){return r.rowGroup},function(r){return r.initialRowGroup})},t.prototype.extractColumns=function(e,i,r,n,s,a,l){e===void 0&&(e=[]),i===void 0&&(i=[]);var u=[],c=[];(this.primaryColumns||[]).forEach(function(v){var y=e.indexOf(v)<0,w=v.getColDef(),b=Vu(a(w)),O=Vu(l(w)),A=Tn(n(w)),P=Tn(s(w)),L,x=b!==void 0,H=A!==void 0,g=O!==void 0,N=P!==void 0;if(x?L=b:H?A===null?L=!1:L=A>=0:y?g?L=O:N?L=P!=null&&P>=0:L=!1:L=i.indexOf(v)>=0,L){var V=y?A!=null||P!=null:A!=null;V?u.push(v):c.push(v)}});var p=function(v){var y=n(v.getColDef()),w=s(v.getColDef());return y??w};u.sort(function(v,y){var w=p(v),b=p(y);return w===b?0:w<b?-1:1});var f=[].concat(u);return i.forEach(function(v){c.indexOf(v)>=0&&f.push(v)}),c.forEach(function(v){f.indexOf(v)<0&&f.push(v)}),i.forEach(function(v){f.indexOf(v)<0&&r(v,!1)}),f.forEach(function(v){i.indexOf(v)<0&&r(v,!0)}),f},t.prototype.extractPivotColumns=function(e,i){this.pivotColumns=this.extractColumns(i,this.pivotColumns,function(r,n){return r.setPivotActive(n,e)},function(r){return r.pivotIndex},function(r){return r.initialPivotIndex},function(r){return r.pivot},function(r){return r.initialPivot})},t.prototype.resetColumnGroupState=function(e){if(this.primaryColumnTree){var i=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,function(r){if(r instanceof _t){var n=r.getColGroupDef(),s={groupId:r.getGroupId(),open:n?n.openByDefault:void 0};i.push(s)}}),this.setColumnGroupState(i,e)}},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(i){i instanceof _t&&e.push({groupId:i.getGroupId(),open:i.isExpanded()})}),e},t.prototype.setColumnGroupState=function(e,i){var r=this;if(this.gridBalancedTree){this.columnAnimationService.start();var n=[];if(e.forEach(function(a){var l=a.groupId,u=a.open,c=r.getProvidedColumnGroup(l);c&&c.isExpanded()!==u&&(r.logger.log("columnGroupOpened("+c.getGroupId()+","+u+")"),c.setExpanded(u),n.push(c))}),this.updateGroupsAndDisplayedColumns(i),this.setFirstRightAndLastLeftPinned(i),n.length){var s={type:T.EVENT_COLUMN_GROUP_OPENED,columnGroup:_t.length===1?n[0]:void 0,columnGroups:n};this.eventService.dispatchEvent(s)}this.columnAnimationService.finish()}},t.prototype.setColumnGroupOpened=function(e,i,r){var n;e instanceof _t?n=e.getId():n=e||"",this.setColumnGroupState([{groupId:n,open:i}],r)},t.prototype.getProvidedColumnGroup=function(e){typeof e!="string"&&console.error("AG Grid: group key must be a string");var i=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(r){r instanceof _t&&r.getId()===e&&(i=r)}),i},t.prototype.calculateColumnsForDisplay=function(){var e=this,i;return this.pivotMode&&Me(this.secondaryColumns)?i=this.gridColumns.filter(function(r){var n=e.groupAutoColumns&&rr(e.groupAutoColumns,r),s=e.valueColumns&&rr(e.valueColumns,r);return n||s}):i=this.gridColumns.filter(function(r){var n=e.groupAutoColumns&&rr(e.groupAutoColumns,r);return n||r.isVisible()}),i},t.prototype.checkColSpanActiveInCols=function(e){var i=!1;return e.forEach(function(r){Q(r.getColDef().colSpan)&&(i=!0)}),i},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};var i=function(r){var n=r.getColDef(),s=n.showRowGroup;n&&Q(s)&&(e.groupDisplayColumns.push(r),typeof s=="string"?e.groupDisplayColumnsMap[s]=r:s===!0&&e.getRowGroupColumns().forEac
38h(function(a){e.groupDisplayColumnsMap[a.getId()]=r}))};this.gridColumns.forEach(i)},t.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},t.prototype.getGroupDisplayColumnForGroup=function(e){return this.groupDisplayColumnsMap[e]},t.prototype.updateDisplayedColumns=function(e){var i=this.calculateColumnsForDisplay();this.buildDisplayedTrees(i),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},t.prototype.isSecondaryColumnsPresent=function(){return Q(this.secondaryColumns)},t.prototype.setSecondaryColumns=function(e,i){var r=this;if(this.gridColumns){var n=e&&e.length>0;if(!(!n&&Me(this.secondaryColumns))){if(n){this.processSecondaryColumnDefinitions(e);var s=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0,i);this.destroyOldColumns(this.secondaryBalancedTree,s.columnTree),this.secondaryBalancedTree=s.columnTree,this.secondaryHeaderRowCount=s.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach(function(a){return r.secondaryColumnsMap[a.getId()]=a}),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(i)}}},t.prototype.processSecondaryColumnDefinitions=function(e){var i=this.gridOptionsService.get("processPivotResultColDef"),r=this.gridOptionsService.get("processPivotResultColGroupDef");if(!(!i&&!r)){var n=function(s){s.forEach(function(a){var l=Q(a.children);if(l){var u=a;r&&r(u),n(u.children)}else{var c=a;i&&i(c)}})};e&&n(e)}},t.prototype.updateGridColumns=function(){var e=this,i=this.gridBalancedTree;this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns;var r=this.createGroupAutoColumnsIfNeeded();if(r){var n=_n(this.groupAutoColumns.map(function(u){return[u,!0]}));this.lastPrimaryOrder&&(this.lastPrimaryOrder=this.lastPrimaryOrder.filter(function(u){return!n.has(u)}),this.lastPrimaryOrder=yi(yi([],gi(this.groupAutoColumns),!1),gi(this.lastPrimaryOrder),!1)),this.lastSecondaryOrder&&(this.lastSecondaryOrder=this.lastSecondaryOrder.filter(function(u){return!n.has(u)}),this.lastSecondaryOrder=yi(yi([],gi(this.groupAutoColumns),!1),gi(this.lastSecondaryOrder),!1))}var s;if(this.secondaryColumns&&this.secondaryBalancedTree){var a=this.secondaryColumns.some(function(u){return e.gridColumnsMap[u.getColId()]!==void 0});this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,a&&(s=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,s=this.lastPrimaryOrder);if(this.addAutoGroupToGridColumns(),this.orderGridColsLike(s),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.calculateColumnsForGroupDisplay(),this.refreshQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach(function(u){return e.gridColumnsMap[u.getId()]=u}),this.setAutoHeightActive(),!jr(i,this.gridBalancedTree)){var l={type:T.EVENT_GRID_COLUMNS_CHANGED};this.eventService.dispatchEvent(l)}},t.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter(function(i){return i.isAutoHeight()}).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var e=this.gridOptionsService.isRowModelType("clientSide")||this.gridOptionsService.isRowModelType("serverSide");e||Le("autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}},t.prototype.orderGridColsLike=function(e){if(!Me(e)){var i=_n(e.map(function(c,p){return[c,p]})),r=!0;if(this.gridColumns.forEach(function(c){i.has(c)&&(r=!1)}),!r){var n=_n(this.gridColumns.map(function(c){return[c,!0]})),s=e.filter(function(c){return n.has(c)}),a=_n(s.map(function(c){return[c,!0]})),l=this.gridColumns.filter(function(c){return!a.has(c)}),u=s.slice();l.forEach(function(c){var p=c.getOriginalParent();if(!p){u.push(c);return}for(var f=[];!f.length&&p;){var v=p.getLeafColumns();v.forEach(function(b){var O=u.indexOf(b)>=0,A=f.indexOf(b)<0;
38O&&A&&f.push(b)}),p=p.getOriginalParent()}if(!f.length){u.push(c);return}var y=f.map(function(b){return u.indexOf(b)}),w=Math.max.apply(Math,yi([],gi(y),!1));Ba(u,c,w+1)}),this.gridColumns=u}}},t.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},t.prototype.refreshQuickFilterColumns=function(){var e,i=(e=this.isPivotMode()?this.secondaryColumns:this.primaryColumns)!==null&&e!==void 0?e:[];this.groupAutoColumns&&(i=i.concat(this.groupAutoColumns)),this.columnsForQuickFilter=this.gridOptionsService.get("includeHiddenColumnsInQuickFilter")?i:i.filter(function(r){return r.isVisible()||r.isRowGroupActive()})},t.prototype.placeLockedColumns=function(e){var i=[],r=[],n=[];return e.forEach(function(s){var a=s.getColDef().lockPosition;a==="right"?n.push(s):a==="left"||a===!0?i.push(s):r.push(s)}),yi(yi(yi([],gi(i),!1),gi(r),!1),gi(n),!1)},t.prototype.addAutoGroupToGridColumns=function(){if(Me(this.groupAutoColumns)){this.destroyOldColumns(this.groupAutoColsBalancedTree),this.groupAutoColsBalancedTree=null;return}this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.destroyOldColumns(this.groupAutoColsBalancedTree,e),this.groupAutoColsBalancedTree=e,this.gridBalancedTree=e.concat(this.gridBalancedTree)},t.prototype.clearDisplayedAndViewportColumns=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.ariaOrderColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},t.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var i={type:T.EVENT_DISPLAYED_COLUMNS_CHANGED};this.eventService.dispatchEvent(i)},t.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinColumnsAriaOrder(),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter(function(i){return i.isAutoHeight()})},t.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},t.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},t.prototype.joinColumnsAriaOrder=function(){var e,i,r=this.getAllGridColumns(),n=[],s=[],a=[];try{for(var l=Pd(r),u=l.next();!u.done;u=l.next()){var c=u.value,p=c.getPinned();p?p===!0||p==="left"?n.push(c):a.push(c):s.push(c)}}catch(f){e={error:f}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(e)throw e.error}}this.ariaOrderColumns=n.concat(s).concat(a)},t.prototype.joinDisplayedColumns=function(){this.gridOptionsService.get("enableRtl")?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},t.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},t.prototype.setLeftValuesOfColumns=function(e){var i=this;if(this.primaryColumns){var r=this.getPrimaryAndSecondaryAndAutoColumns().slice(0),n=this.gridOptionsService.get("enableRtl");[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach(function(s){if(n){var a=i.getWidthOfColsInList(s);s.forEach(function(u){a-=u.getActualWidth(),u.setLeft(a,e)})}else{var l=0;s.forEach(function(u){u.setLeft(l,e),l+=u.getActualWidth()})}aC(r,s)}),r.forEach(function(s){s.setLeft(null,e)})}},t.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach(function(e){e.forEach(function(i){if(i instanceof At){var r=i;r.checkLeft()}})})},t.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,i){i.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,function(r){r instanceof pt&&i.push(r)})},t.prototype.isColumnVirtualisationSuppressed=function(){return this.suppressColumnVirtualisation||this.viewportRight===0},t.prototype.extractViewportColumns=function(){this.isColumnVirtualisationSuppressed()?(this.viewportColumnsCenter=this.displayedColumnsCenter,this.headerViewportColumnsCenter=this.displayedColumnsCenter):(this.viewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInRowViewport.bind(this)),this.headerViewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInHeaderViewport.bind(this))),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight),this.headerViewportColumns=this.headerViewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},t.prototype.getVirtualHeaderGroupRow=function(e,i){var r;switch(e){case"left":r=this.viewportRowLeft[i];break;case"right":r=this.viewportRowRight[i];break;default:r=this.viewportRowCenter[i];break}return Me(r)&&(r=[]),r},t.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.headerViewportColumns.forEach(function(r){return e[r.getId()]=!0});var i=function(r,n,s){for(var a=!1,l=0;l<r.length;l++){var u=r[l],c=!1;if(u instanceof pt)c=e[u.getId()]===!0;else{var p=u,f=p.getDisplayedChildren();f&&(c=i(f,n,s+1))}c&&(a=!0,n[s]||(n[s]=[]),n[s].push(u))}return a};i(this.displayedTreeLeft,this.viewportRowLeft,0),i(this.displayedTreeRight,this.viewportRowRight,0),i(this.displayedTreeCentre,this.viewportRowCenter,0)},t.prototype.extractViewport=function(){var e=function(n){return"".concat(n.getId(),"-").concat(n.getPinned()||"normal")};this.extractViewportColumns();var i=this.viewportColumns.map(e).join("#"),r=this.viewportColumnsH
38ash!==i;return r&&(this.viewportColumnsHash=i,this.calculateHeaderRows()),r},t.prototype.refreshFlexedColumns=function(e){var i;e===void 0&&(e={});var r=e.source?e.source:"flex";if(e.viewportWidth!=null&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];var n=-1;if(e.resizingCols){for(var s=new Set(e.resizingCols),a=this.displayedColumnsCenter,l=a.length-1;l>=0;l--)if(s.has(a[l])){n=l;break}}for(var u=0,c=[],p=0,f=0,l=0;l<this.displayedColumnsCenter.length;l++){var v=this.displayedColumnsCenter[l].getFlex()&&l>n;v?(c.push(this.displayedColumnsCenter[l]),f+=this.displayedColumnsCenter[l].getFlex(),p+=(i=this.displayedColumnsCenter[l].getMinWidth())!==null&&i!==void 0?i:0):u+=this.displayedColumnsCenter[l].getActualWidth()}if(!c.length)return[];var y=[];u+p>this.flexViewportWidth&&(c.forEach(function(N){var V;return N.setActualWidth((V=N.getMinWidth())!==null&&V!==void 0?V:0,r)}),y=c,c=[]);var w=[],b;e:for(;;){b=this.flexViewportWidth-u;for(var O=b/f,l=0;l<c.length;l++){var A=c[l],P=O*A.getFlex(),L=0,x=A.getMinWidth(),H=A.getMaxWidth();if(Q(x)&&P<x?L=x:Q(H)&&P>H&&(L=H),L){A.setActualWidth(L,r),Uf(c,A),f-=A.getFlex(),y.push(A),u+=A.getActualWidth();continue e}w[l]=Math.round(P)}break}var g=b;return c.forEach(function(N,V){N.setActualWidth(Math.min(w[V],g),r),y.push(N),g-=w[V]}),e.skipSetLeft||this.setLeftValues(r),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.dispatchColumnResizedEvent(y,!0,r,c),c},t.prototype.sizeColumnsToFit=function(e,i,r,n){var s=this,a,l,u,c,p;if(i===void 0&&(i="sizeColumnsToFit"),this.shouldQueueResizeOperations){this.resizeOperationQueue.push(function(){return s.sizeColumnsToFit(e,i,r,n)});return}var f={};n&&((a=n==null?void 0:n.columnLimits)===null||a===void 0||a.forEach(function(ae){var ve=ae.key,pe=yb(ae,["key"]);f[typeof ve=="string"?ve:ve.getColId()]=pe}));var v=this.getAllDisplayedColumns(),y=e===this.getWidthOfColsInList(v);if(!(e<=0||!v.length||y)){var w=[],b=[];v.forEach(function(ae){ae.getColDef().suppressSizeToFit===!0?b.push(ae):w.push(ae)});var O=w.slice(0),A=!1,P=function(ae){ui(w,ae),b.push(ae)};for(w.forEach(function(ae){var ve,pe;ae.resetActualWidth(i);var ne=f==null?void 0:f[ae.getId()],ye=(ve=ne==null?void 0:ne.minWidth)!==null&&ve!==void 0?ve:n==null?void 0:n.defaultMinWidth,Pe=(pe=ne==null?void 0:ne.maxWidth)!==null&&pe!==void 0?pe:n==null?void 0:n.defaultMaxWidth,Se=ae.getActualWidth();typeof ye=="number"&&Se<ye?ae.setActualWidth(ye,i,!0):typeof Pe=="number"&&Se>Pe&&ae.setActualWidth(Pe,i,!0)});!A;){A=!0;var L=e-this.getWidthOfColsInList(b);if(L<=0)w.forEach(function(ae){var ve,pe,ne=(pe=(ve=f==null?void 0:f[ae.getId()])===null||ve===void 0?void 0:ve.minWidth)!==null&&pe!==void 0?pe:n==null?void 0:n.defaultMinWidth;if(typeof ne=="number"){ae.setActualWidth(ne,i,!0);return}ae.setMinimum(i)});else for(var x=L/this.getWidthOfColsInList(w),H=L,g=w.length-1;g>=0;g--){var N=w[g],V=f==null?void 0:f[N.getId()],z=(l=V==null?void 0:V.minWidth)!==null&&l!==void 0?l:n==null?void 0:n.defaultMinWidth,I=(u=V==null?void 0:V.maxWidth)!==null&&u!==void 0?u:n==null?void 0:n.defaultMaxWidth,k=(c=N.getMinWidth())!==null&&c!==void 0?c:0,j=(p=N.getMaxWidth())!==null&&p!==void 0?p:Number.MAX_VALUE,X=typeof z=="number"&&z>k?z:N.getMinWidth(),re=typeof I=="number"&&I<j?I:N.getMaxWidth(),ge=Math.round(N.getActualWidth()*x);Q(X)&&ge<X?(ge=X,P(N),A=!1):Q(re)&&ge>re?(ge=re,P(N),A=!1):g===0&&(ge=H),N.setActualWidth(ge,i,!0),H-=ge}}O.forEach(function(ae){ae.fireColumnWidthChangedEvent(i)}),this.setLeftValues(i),this.updateBodyWidths(),!r&&this.dispatchColumnResizedEvent(O,!0,i)}},t.prototype.buildDisplayedTrees=function(e){var i=[],r=[],n=[];e.forEach(function(a){switch(a.getPinned()){case"left":i.push(a);break;case"right":r.push(a);break;default:n.push(a);break}});var s=new hC;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(i,s,"left",this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(r,s,"right",this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(n,s,null,this.displayedTreeCentre),this.updateDisplayedMap()},t.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var i=function(r){e.displayedColumnsAndGroupsMap[r.getUniqueId()]=r};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,i),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,i),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,i)},t.prototype.isDisplayed=function(e){var i=this.displayedColumnsAndGroupsMap[e.getUniqueId()];return i===e},t.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,function(i){i instanceof At&&i.calculateDisplayedColumns()})},t.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},t.prototype.createGroupAutoColumnsIfNeeded=function(){var e=this.forceRecreateAutoGroups;if(this.forceRecreateAutoGroups=!1,!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var i=this.gridOptionsService.isGroupUseEntireRow(this.pivotMode),r=this.pivotMode?this.gridOptionsService.get("pivotSuppressAutoColumn"):this.isGroupSuppressAutoColumn(),n=this.rowGroupColumns.length>0||this.gridOptionsService.get("treeData"),s=n&&!r&&!i;if(s){var a=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns),l=!this.autoColsEqual(a,this.groupAutoColumns);if(l||e)return this.groupAutoColumns=a,!0}else this.groupAutoColumns=null;return!1},t.prototype.isGroupSuppressAutoColumn=function(){var e=this.gridOptionsService.get("groupDisplayType"),i=e==="custom";if(i)return!0;var r=this.gridOptionsService.get("treeDataDisplayType");return r==="custom"},t.prototype.autoColsEqual=function(e,i){return jr(e,i,function(r,n){return r.getColId()===n.getColId()})},t.prototype.getWidthOfColsInList=function(e){return e.reduce(function(i,r){return i+r.getActualWidth()},0)},t.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsService.get("enableRtl"),i=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&i.reverse();for(var r=0;r<i.length;r++){var n=this[i[r]]();if(n.length)return e?ot(n):n[0]}return null},t.prototype.setColumnHeaderHeight=function(e,i){var r=e.setAutoHeaderHeight(i);if(r){var n={type:T.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,column:e,columns:[e],source:"autosizeColumnHeaderHeight"};this.eventService.dispatchEvent(n)}},t.prototype.getColumnGroupHeaderRowHeight=function(){return this.isPivotMode()?this.getPivotGroupHeaderHeight():this.getGroupHeaderHeight()},t.prototype.getColumnHeaderRowHeight=function(){var e=this.isPivotMode()?this.getPivotHeaderHeight():this.getHeaderHeight(),i=this.getAllDisplayedColumns().filter(function(r){return r.isAutoHeaderHeight()}).map(function(r){return r.getAutoHeaderHeight()||0});return Math.max.apply(Math,yi([e],gi(i),!1))},t.prototype.getHeaderHeight=function(){var e;return(e=this.gridOptionsService.get("headerHeight"))!==null&&e!==void 0?e:this.environment.getFromTheme(25,"headerHeight")},t.prototype.getFloatingFiltersHeight=function(){var e;return(e=this.gridOptionsService.get("floatingFiltersHeight"))!==null&&e!==void 0?e:this.getHeaderHeight()},t.prototype.getGroupHeaderHeight=function(){var e;return(e=this.gridOptionsService.get("groupHeaderHeight"))!==null&&e!==void 0?e:this.getHeaderHeight()},t.prototype.getPivotHeaderHeight=function(){var e;return(e=this.gridOptionsService.get("pivotHeaderHeight"))!==null&&e!==void 0?e:this.getHeaderHeight()},t.prototype.getPivotGroupHeaderHeight=function(){var e;return(e=this.gridOptionsService.get("pivotGroupHeaderHeight"))!==null&&e!==void 0?e:this.getGroupHeaderHeight()},t.prototype.queueResizeOperations=function(){this.shouldQueueResizeOperations=!0},t.prototype.processResizeOperations=function(){this.shouldQueueResizeOperations=!1,this.resizeOperation
38Queue.forEach(function(e){return e()}),this.resizeOperationQueue=[]},t.prototype.resetColumnDefIntoColumn=function(e,i){var r=e.getUserProvidedColDef();if(!r)return!1;var n=this.columnFactory.addColumnDefaultAndTypes(r,e.getColId());return e.setColDef(n,r,i),!0},t.prototype.isColumnGroupingLocked=function(e){var i=this.gridOptionsService.get("groupLockGroupColumns");if(!e.isRowGroupActive()||i===0)return!1;if(i===-1)return!0;var r=this.rowGroupColumns.findIndex(function(n){return n.getColId()===e.getColId()});return i>r},t.prototype.generateColumnStateForRowGroupAndPivotIndexes=function(e,i){var r=this,n={},s=function(a,l,u,c,p,f){if(!l.length||!r.primaryColumns)return[];for(var v=Object.keys(a),y=new Set(v),w=new Set(v),b=new Set(l.map(function(z){var I=z.getColId();return w.delete(I),I}).concat(v)),O=[],A={},P=0,L=0;L<r.primaryColumns.length;L++){var x=r.primaryColumns[L].getColId();b.has(x)&&(O.push(x),A[x]=P++)}var H=1e3,g=!1,N=0,V=function(z){for(var I=A[z],k=N;k<I;k++){var j=O[k];w.has(j)&&(a[j][p]=H++,w.delete(j))}N=I};l.forEach(function(z){var I=z.getColId();if(y.has(I))V(I),a[I][p]=H++;else{var k=z.getColDef(),j=k[p]===null||k[p]===void 0&&k[f]==null;if(j){if(!g){var X=k[u]||k[u]===void 0&&k[c];X?V(I):(w.forEach(function(re){a[re][p]=H+A[re]}),H+=O.length,g=!0)}n[I]||(n[I]={colId:I}),n[I][p]=H++}}})};return s(e,this.rowGroupColumns,"rowGroup","initialRowGroup","rowGroupIndex","initialRowGroupIndex"),s(i,this.pivotColumns,"pivot","initialPivot","pivotIndex","initialPivotIndex"),Object.values(n)},t.prototype.onColumnsReady=function(){var e=this,i=this.gridOptionsService.get("autoSizeStrategy");if(i){var r=i.type;setTimeout(function(){if(r==="fitGridWidth"){var n=i.columnLimits,s=i.defaultMinWidth,a=i.defaultMaxWidth,l=n==null?void 0:n.map(function(u){var c=u.colId,p=u.minWidth,f=u.maxWidth;return{key:c,minWidth:p,maxWidth:f}});e.ctrlsService.getGridBodyCtrl().sizeColumnsToFit({defaultMinWidth:s,defaultMaxWidth:a,columnLimits:l})}else r==="fitProvidedWidth"&&e.sizeColumnsToFit(i.width,"sizeColumnsToFit")})}},t.prototype.onFirstDataRendered=function(){var e=this,i=this.gridOptionsService.get("autoSizeStrategy");if((i==null?void 0:i.type)==="fitCellContents"){var r=i.colIds,n=i.skipHeader;setTimeout(function(){r?e.autoSizeColumns({columns:r,skipHeader:n,source:"autosizeColumns"}):e.autoSizeAllColumns("autosizeColumns",n)})}},kt([E("expressionService")],t.prototype,"expressionService",void 0),kt([E("columnFactory")],t.prototype,"columnFactory",void 0),kt([E("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),kt([E("ctrlsService")],t.prototype,"ctrlsService",void 0),kt([E("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),kt([E("columnUtils")],t.prototype,"columnUtils",void 0),kt([E("columnAnimationService")],t.prototype,"columnAnimationService",void 0),kt([E("autoGroupColService")],t.prototype,"autoGroupColService",void 0),kt([nt("aggFuncService")],t.prototype,"aggFuncService",void 0),kt([nt("valueCache")],t.prototype,"valueCache",void 0),kt([nt("animationFrameService")],t.prototype,"animationFrameService",void 0),kt([E("sortController")],t.prototype,"sortController",void 0),kt([E("columnDefFactory")],t.prototype,"columnDefFactory",void 0),kt([ie],t.prototype,"init",null),kt([Xt],t.prototype,"destroyColumns",null),kt([gb(0,Hi("loggerFactory"))],t.prototype,"setBeans",null),t=kt([fe("columnModel")],t),t}(ee);function rs(o){return o==="gridOptionsUpdated"?"gridOptionsChanged":o}var Cb=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),wb=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Sb=function(o){Cb(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.calculateColMinWidth=function(e){return e.minWidth!=null?e.minWidth:this.environment.getMinColW
38idth()},t.prototype.calculateColMaxWidth=function(e){return e.maxWidth!=null?e.maxWidth:Number.MAX_SAFE_INTEGER},t.prototype.calculateColInitialWidth=function(e){var i=this.calculateColMinWidth(e),r=this.calculateColMaxWidth(e),n,s=Tn(e.width),a=Tn(e.initialWidth);return s!=null?n=s:a!=null?n=a:n=200,Math.max(Math.min(n,r),i)},t.prototype.getOriginalPathForColumn=function(e,i){var r=[],n=!1,s=function(a,l){for(var u=0;u<a.length;u++){if(n)return;var c=a[u];if(c instanceof _t){var p=c;s(p.getChildren(),l+1),r[l]=c}else c===e&&(n=!0)}};return s(i,0),n?r:null},t.prototype.depthFirstOriginalTreeSearch=function(e,i,r){var n=this;i&&i.forEach(function(s){s instanceof _t&&n.depthFirstOriginalTreeSearch(s,s.getChildren(),r),r(s,e)})},t.prototype.depthFirstAllColumnTreeSearch=function(e,i){var r=this;e&&e.forEach(function(n){n instanceof At&&r.depthFirstAllColumnTreeSearch(n.getChildren(),i),i(n)})},t.prototype.depthFirstDisplayedColumnTreeSearch=function(e,i){var r=this;e&&e.forEach(function(n){n instanceof At&&r.depthFirstDisplayedColumnTreeSearch(n.getDisplayedChildren(),i),i(n)})},t=wb([fe("columnUtils")],t),t}(ee),Eb=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),_b=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Ob=function(o){Eb(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.createDisplayedGroups=function(e,i,r,n){for(var s=this,a=this.mapOldGroupsById(n),l=[],u=e,c=function(){var p=u;u=[];for(var f=0,v=function(x){var H=f;f=x;var g=p[H],N=g instanceof At?g.getProvidedColumnGroup():g,V=N.getOriginalParent();if(V==null){for(var z=H;z<x;z++)l.push(p[z]);return}for(var I=s.createColumnGroup(V,i,a,r),z=H;z<x;z++)I.addChild(p[z]);u.push(I)},y=1;y<p.length;y++){var w=p[y],b=w instanceof At?w.getProvidedColumnGroup():w,O=b.getOriginalParent(),A=p[f],P=A instanceof At?A.getProvidedColumnGroup():A,L=P.getOriginalParent();O!==L&&v(y)}f<p.length&&v(p.length)};u.length;)c();return this.setupParentsIntoColumns(l,null),l},t.prototype.createColumnGroup=function(e,i,r,n){var s=e.getGroupId(),a=i.getInstanceIdForKey(s),l=At.createUniqueId(s,a),u=r[l];return u&&u.getProvidedColumnGroup()!==e&&(u=null),Q(u)?u.reset():(u=new At(e,s,a,n),this.context.createBean(u)),u},t.prototype.mapOldGroupsById=function(e){var i={},r=function(n){n.forEach(function(s){if(s instanceof At){var a=s;i[s.getUniqueId()]=a,r(a.getChildren())}})};return e&&r(e),i},t.prototype.setupParentsIntoColumns=function(e,i){var r=this;e.forEach(function(n){if(n.setParent(i),n instanceof At){var s=n;r.setupParentsIntoColumns(s.getChildren(),s)}})},t=_b([fe("displayedGroupCreator")],t),t}(ee),ln=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},un=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},bb={enableBrowserTooltips:!0,tooltipTrigger:!0,tooltipMouseTrack:!0,tooltipInteraction:!0,defaultColGroupDef:!0,suppressAutoSize:!0,skipHeaderOnAutoSize:!0,autoSizeStrategy:!0,components:!0,stopEditingWhenCellsLoseFocus:!0,undoRedoCellEditing:!0,undoRedoCellEditingLimit:!0,excelStyles:!0,cacheQuickFilter:!0,excludeHiddenColumnsFromQuickFilter:!0,advancedFilterModel:!0,customChartThemes:!0,chartThemeOverrides:!0,enableChartToolPanelsButton:!0,suppressChartToolPanelsButton:!0,chartToolPanelsDef:!0,loadingCellRendererSelector:!0,localeText:!0,keepDetailRows:!0,keepDetailRowsCount:!0,detailRowHeight:!0,detailRowAutoHeight:!0,tabIndex:!0,valueCache:!0,valueCacheNeverExpires:!0,enableCellExpressions:!0,suppressParentsInRowNodes:!0,suppressTouch:!0,suppressAsyncEvents:!0,suppressBrowserResizeObserver:!0,suppressPropertyNamesCheck:!0,debug:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!0,paginationPageSizeSelector:!0,paginateChildRows:!0,pivotPanelShow:!0,pivotSuppressAutoColumn:!0,suppressExpandablePivotGroups:!0,aggFuncs:!0,suppressAggFuncInHeader:!0,suppressAggAtRootLevel:!0,removePivotHeaderRowWhenSingleValueColumn:!0,allowShowChangeAfterFilter:!0,ensureDomOrder:!0,enableRtl:!0,suppressColumnVirtualisation:!0,suppressMaxRenderedRowRestriction:!0,suppressRowVirtualisation:!0,rowDragText:!0,suppressGroupMaintainValueType:!0,groupLockGroupColumns:!0,rowGroupPanelSuppressSort:!0,suppressGroupRowsSticky:!0,rowModelType:!0,cacheOverflowSize:!0,infiniteInitialRowCount:!0,serverSideInitialRowCount:!0,suppressServerSideInfiniteScroll:!0,maxBlocksInCache:!0,maxConcurrentDatasourceRequests:!0,blockLoadDebounceMillis:!0,serverSideOnlyRefreshFilteredGroups:!0,serverSidePivotResultFieldSeparator:!0,viewportRowModelPageSize:!0,viewportRowModelBufferSize:!0,debounceVerticalScrollbar:!0,suppressAnimationFrame:!0,suppressPreventDefaultOnMouseWheel:!0,scrollbarWidth:!0,icons:!0,suppressRowTransform:!0,gridId:!0,functionsPassive:!0,enableGroupEdit:!0,initialState:!0,processUnpinnedColumns:!0,createChartContainer:!0,getLocaleText:!0,getRowId:!0,reactiveCustomComponents:!0,columnMenu:!0},Er=function(){function o(){}return o.STRING_PROPERTIES=["rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator","columnMenu"],o.OBJECT_PROPERTIES=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","statusBar","sideBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterModel","advancedFilterParent","advancedFilterBuilderParams","initialState","autoSizeStrategy"],o.ARRAY_PROPERTIES=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector"],o.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","cellFlashDuration","cellFadeDuration","tabIndex"],o.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupIncludeTotalFooter","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","excludeHiddenColumnsFromQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterMovesDown","enterMovesDownAfterEdit","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","enableChartToolPanelsButton","suppressChartToolPanelsButton","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilterAllLevels","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","serverSideSortOnServer","serverSideFilterOnServer","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","suppressServerSideInfiniteScroll","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","suppressGroupMaintainValueType","reactiveCustomComponents"],o.FUNCTIONAL_PROPERTIES=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","fullWidthCellRenderer","loadingCellRenderer","loadingOverlayComponent","noRowsOverlayComponent","detailCellRenderer","quickFilterParser","quickFilterMatcher"],o.CALLBACK_PROPERTIES=["getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","
38sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","groupIncludeFooter","loadingCellRendererSelector","getRowId","groupAggFiltering"],o.FUNCTION_PROPERTIES=un(un([],ln(o.FUNCTIONAL_PROPERTIES),!1),ln(o.CALLBACK_PROPERTIES),!1),o.ALL_PROPERTIES=un(un(un(un(un(un([],ln(o.ARRAY_PROPERTIES),!1),ln(o.OBJECT_PROPERTIES),!1),ln(o.STRING_PROPERTIES),!1),ln(o.NUMBER_PROPERTIES),!1),ln(o.FUNCTION_PROPERTIES),!1),ln(o.BOOLEAN_PROPERTIES),!1),o}(),ef=function(){return ef=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},ef.apply(this,arguments)},ug=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},cg=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},yC=function(){function o(){}o.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)},o.getGridOptionKeys=function(){return this.ALL_PROPERTIES_AND_CALLBACKS},o.combineAttributesAndGridOptions=function(e,i){typeof e!="object"&&(e={});var r=ef({},e),n=o.getGridOptionKeys();return n.forEach(function(s){var a=i[s];typeof a<"u"&&a!==o.VUE_OMITTED_PROPERTY&&(r[s]=a)}),r},o.processOnChange=function(e,i){if(e){var r={},n=!1;if(Object.keys(e).filter(function(a){return o.ALL_PROPERTIES_AND_CALLBACKS_SET.has(a)}).forEach(function(a){r[a]=e[a],n=!0}),!!n){i.__internalUpdateGridOptions(r);var s={type:T.EVENT_COMPONENT_STATE_CHANGED};Ut(r,function(a,l){s[a]=l}),i.dispatchEvent(s)}}};var t;return t=o,o.EVENTS=co(T),o.VUE_OMITTED_PROPERTY="AG-VUE-OMITTED-PROPERTY",o.EXCLUDED_INTERNAL_EVENTS=[T.EVENT_SCROLLBAR_WIDTH_CHANGED,T.EVENT_CHECKBOX_CHANGED,T.EVENT_HEIGHT_SCALE_CHANGED,T.EVENT_BODY_HEIGHT_CHANGED,T.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED,T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,T.EVENT_SCROLL_VISIBILITY_CHANGED,T.EVENT_COLUMN_HOVER_CHANGED,T.EVENT_FLASH_CELLS,T.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,T.EVENT_DISPLAYED_ROWS_CHANGED,T.EVENT_LEFT_PINNED_WIDTH_CHANGED,T.EVENT_RIGHT_PINNED_WIDTH_CHANGED,T.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,T.EVENT_POPUP_TO_FRONT,T.EVENT_STORE_UPDATED,T.EVENT_COLUMN_PANEL_ITEM_DRAG_START,T.EVENT_COLUMN_PANEL_ITEM_DRAG_END,T.EVENT_FILL_START,T.EVENT_FILL_END,T.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,T.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,T.EVENT_FULL_WIDTH_ROW_FOCUSED,T.EVENT_HEADER_HEIGHT_CHANGED,T.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,T.EVENT_CELL_FOCUS_CLEARED,T.EVENT_GRID_STYLES_CHANGED,T.EVENT_FILTER_DESTROYED,T.EVENT_ROW_DATA_UPDATE_STARTED,T.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,T.EVENT_DATA_TYPES_INFERRED,T.EVENT_FIELD_VALUE_CHANGED,T.EVENT_FIELD_PICKER_VALUE_SELECTED,T.EVENT_SUPPRESS_COLUMN_MOVE_CHANGED,T.EVENT_SUPPRESS_MENU_HIDE_CHANGED,T.EVENT_SUPPRESS_FIELD_DOT_NOTATION,T.EVENT_ROW_COUNT_READY,T.EVENT_SIDE_BAR_UPDATED],o.PUBLIC_EVENTS=o.EVENTS.filter(function(e){return!rr(o.EXCLUDED_INTERNAL_EVENTS,e)}),o.EVENT_CALLBACKS=o.EVENTS.map(function(e){return o.getCallbackForEvent(e)}),o.STRING_PROPERTIES=Er.STRING_PROPERTIES,o.OBJECT_PROPERTIES=Er.OBJECT_PROPERTIES,o.ARRAY_PROPERTIES=Er.ARRAY_PROPERTIES,o.NUMBER_PROPERTIES=Er.NUMBER_PROPERTIES,o.BOOLEAN_PROPERTIES=Er.BOOLEAN_PROPERTIES,o.FUNCTION_PROPERTIES=Er.FUNCTION_PROPERTIES,o.ALL_PROPERTIES=Er.ALL_PROPERTIES,o.ALL_PROPERTIES_AND_CALLBACKS=cg(cg([],ug(t.ALL_PROPERTIES),!1),ug(t.EVENT_CALLBACKS),!1),o.ALL_PROPERTIES_AND_CALLBACKS_SET=new Set(o.ALL_PROPERTIES_AND_CALLBACKS),o}
38(),Tb=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Rb=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Ab=function(o){Tb(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.componentsMappedByName={},e}return t.prototype.setupComponents=function(e){var i=this;e&&e.forEach(function(r){return i.addComponent(r)})},t.prototype.addComponent=function(e){var i=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=i.toUpperCase();this.componentsMappedByName[r]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},t=Rb([fe("agStackComponentsRegistry")],t),t}(ee);function $i(o,t,e){e==null||typeof e=="string"&&e==""?$f(o,t):Ki(o,t,e)}function Ki(o,t,e){o.setAttribute(mC(t),e.toString())}function $f(o,t){o.removeAttribute(mC(t))}function mC(o){return"aria-".concat(o)}function Lt(o,t){t?o.setAttribute("role",t):o.removeAttribute("role")}function CC(o){var t;return o==="asc"?t="ascending":o==="desc"?t="descending":o==="mixed"?t="other":t="none",t}function Pb(o){return parseInt(o.getAttribute("aria-level"),10)}function wC(o){return parseInt(o.getAttribute("aria-posinset"),10)}function SC(o){return o.getAttribute("aria-label")}function Hn(o,t){$i(o,"label",t)}function Uu(o,t){$i(o,"labelledby",t)}function Db(o,t){$i(o,"describedby",t)}function Kf(o,t){$i(o,"live",t)}function EC(o,t){$i(o,"atomic",t)}function _C(o,t){$i(o,"relevant",t)}function OC(o,t){$i(o,"level",t)}function Yf(o,t){$i(o,"disabled",t)}function Ec(o,t){$i(o,"hidden",t)}function qf(o,t){$i(o,"activedescendant",t)}function qr(o,t){Ki(o,"expanded",t)}function bC(o){$f(o,"expanded")}function Xf(o,t){Ki(o,"setsize",t)}function Qf(o,t){Ki(o,"posinset",t)}function TC(o,t){Ki(o,"multiselectable",t)}function RC(o,t){Ki(o,"rowcount",t)}function Jf(o,t){Ki(o,"rowindex",t)}function AC(o,t){Ki(o,"colcount",t)}function Zf(o,t){Ki(o,"colindex",t)}function PC(o,t){Ki(o,"colspan",t)}function DC(o,t){Ki(o,"sort",t)}function LC(o){$f(o,"sort")}function ws(o,t){$i(o,"selected",t)}function Lb(o,t){Ki(o,"checked",t===void 0?"mixed":t)}function eh(o,t){$i(o,"controls",t.id),Uu(t,o.id)}function th(o,t){return t===void 0?o("ariaIndeterminate","indeterminate"):t===!0?o("ariaChecked","checked"):o("ariaUnchecked","unchecked")}var Fb=Object.freeze({__proto__:null,setAriaRole:Lt,getAriaSortState:CC,getAriaLevel:Pb,getAriaPosInSet:wC,getAriaLabel:SC,setAriaLabel:Hn,setAriaLabelledBy:Uu,setAriaDescribedBy:Db,setAriaLive:Kf,setAriaAtomic:EC,setAriaRelevant:_C,setAriaLevel:OC,setAriaDisabled:Yf,setAriaHidden:Ec,setAriaActiveDescendant:qf,setAriaExpanded:qr,removeAriaExpanded:bC,setAriaSetSize:Xf,setAriaPosInSet:Qf,setAriaMultiSelectable:TC,setAriaRowCount:RC,setAriaRowIndex:Jf,setAriaColCount:AC,setAriaColIndex:Zf,setAriaColSpan:PC,setAriaSort:DC,removeAriaSort:LC,setAriaSelected:ws,setAriaChecked:Lb,setAriaControls:eh,getAriaCheckboxStateName:th}),Dd,kl,Ld,Fd,Md,Id,tf,rf;function Dr(){return Dd===void 0&&(Dd=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Dd}function ih(){if(kl===void 0)if(Dr()){var o=navigator.userAgent.match(/version\/(\d+)/i);o&&(kl=o[1]!=null?parseFloat(o[1]):0)}else kl=0;return kl}function _c(){if(Ld===void 0){var o=window;Ld=!!o.chrome&&(!!o.chrome.webstore||!!o.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return Ld}function rh(){return Fd===void 0&&(Fd=/(firefox)/i.test(navigator.userAgent)),Fd}function nh(){return Md===void 0&&(Md=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Md}function tn(){return Id===void 0&&(Id=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),Id}function oh(){return!Dr()||ih()>=15}function zu(o){if(!o)return null;var t=o.tabIndex,e=o.getAttribute("tabIndex");return t===-1&&(e===null||e===""&&!rh())?null:t.toString()}function FC(){if(!document.body)return-1;var o=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,e=document.createElement("div");for(document.body.appendChild(e);;){var i=o*2;if(e.style.height=i+"px",i>t||e.clientHeight!==i)break;o=i}return document.body.removeChild(e),o}function MC(){var o,t,e;return(t=(o=document.body)===null||o===void 0?void 0:o.clientWidth)!==null&&t!==void 0?t:window.innerHeight||((e=document.documentElement)===null||e===void 0?void 0:e.clientWidth)||-1}function IC(){var o,t,e;return(t=(o=document.body)===null||o===void 0?void 0:o.clientHeight)!==null&&t!==void 0?t:window.innerHeight||((e=document.documentElement)===null||e===void 0?void 0:e.clientHeight)||-1}function xC(){return rf==null&&NC(),rf}function NC(){var o=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",o.appendChild(t);var e=t.offsetWidth-t.clientWidth;e===0&&t.clientWidth===0&&(e=null),t.parentNode&&t.parentNode.removeChild(t),e!=null&&(rf=e,tf=e===0)}function sh(){return tf==null&&NC(),tf}var Mb=Object.freeze({__proto__:null,isBrowserSafari:Dr,getSafariVersion:ih,isBrowserChrome:_c,isBrowserFirefox:rh,isMacOsUserAgent:nh,isIOSUserAgent:tn,browserSupportsPreventScroll:oh,getTabIndex:zu,getMaxDivHeight:FC,getBodyWidth:MC,getBodyHeight:IC,getScrollbarWidth:xC,isInvisibleScrollbar:sh});function fs(o,t){return o.toString().padStart(t,"0")}function GC(o,t){for(var e=[],i=o;i<=t;i++)e.push(i);return e}
38function Ib(o){return typeof o=="string"&&(o=parseInt(o,10)),typeof o=="number"?Math.floor(o):null}function xb(o,t){for(var e="",i=0;i<t;i++)e+=String.fromCharCode(o&255),o>>>=8;return e}function Nb(o,t,e){return typeof o!="number"?"":ah(Math.round(o*100)/100,t,e)}function ah(o,t,e){return typeof o!="number"?"":o.toString().replace(".",e).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1".concat(t))}function Gb(o){return o==null?null:o.reduce(function(t,e){return t+e},0)}var Hb=Object.freeze({__proto__:null,padStartWidthZeros:fs,createArrayOfNumbers:GC,cleanNumber:Ib,decToHex:xb,formatNumberTwoDecimalPlacesAndCommas:Nb,formatNumberCommas:ah,sum:Gb}),xd=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n};function ki(o,t,e){if(t===void 0&&(t=!0),e===void 0&&(e="-"),!o)return null;var i=[o.getFullYear(),o.getMonth()+1,o.getDate()].map(function(r){return fs(r,2)}).join(e);return t&&(i+=" "+[o.getHours(),o.getMinutes(),o.getSeconds()].map(function(r){return fs(r,2)}).join(":")),i}var Nd=function(o){if(o>3&&o<21)return"th";var t=o%10;switch(t){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function hs(o,t){t===void 0&&(t="YYYY-MM-DD");var e=fs(o.getFullYear(),4),i=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],n={YYYY:function(){return e.slice(e.length-4,e.length)},YY:function(){return e.slice(e.length-2,e.length)},Y:function(){return"".concat(o.getFullYear())},MMMM:function(){return i[o.getMonth()]},MMM:function(){return i[o.getMonth()].slice(0,3)},MM:function(){return fs(o.getMonth()+1,2)},Mo:function(){return"".concat(o.getMonth()+1).concat(Nd(o.getMonth()+1))},M:function(){return"".concat(o.getMonth()+1)},Do:function(){return"".concat(o.getDate()).concat(Nd(o.getDate()))},DD:function(){return fs(o.getDate(),2)},D:function(){return"".concat(o.getDate())},dddd:function(){return r[o.getDay()]},ddd:function(){return r[o.getDay()].slice(0,3)},dd:function(){return r[o.getDay()].slice(0,2)},do:function(){return"".concat(o.getDay()).concat(Nd(o.getDay()))},d:function(){return"".concat(o.getDay())}},s=new RegExp(Object.keys(n).join("|"),"g");return t.replace(s,function(a){return a in n?n[a]():a})}function di(o){if(!o)return null;var t=xd(o.split(" "),2),e=t[0],i=t[1];if(!e)return null;var r=e.split("-").map(function(y){return parseInt(y,10)});if(r.filter(function(y){return!isNaN(y)}).length!==3)return null;var n=xd(r,3),s=n[0],a=n[1],l=n[2],u=new Date(s,a-1,l);if(u.getFullYear()!==s||u.getMonth()!==a-1||u.getDate()!==l)return null;if(!i||i==="00:00:00")return u;var c=xd(i.split(":").map(function(y){return parseInt(y,10)}),3),p=c[0],f=c[1],v=c[2];return p>=0&&p<24&&u.setHours(p),f>=0&&f<60&&u.setMinutes(f),v>=0&&v<60&&u.setSeconds(v),u}var Vb=Object.freeze({__proto__:null,serialiseDate:ki,dateToFormattedString:hs,parseDateTimeFromString:di}),kb=function(o){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&o[t],i=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Bb=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},Bl;function nf(o,t,e){for(var i=o.parentElement,r=i&&i.firstChild;r;)t&&r.classList.toggle(t,r===o),e&&r.classList.toggle(e,r!==o),r=r.nextSibling}var HC="[tabindex], input, select, button, textarea, [href]",lh="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function uh(o){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,e="input, select, button, textarea",i=t.call(o,e),r=t.call(o,lh),n=Ti(o),s=i&&!r&&n;return s}function it(o,t,e){e===void 0&&(e={});var i=e.skipAriaHidden;o.classList.toggle("ag-hidden",!t),i||Ec(o,!t)}function VC(o,t,e){e===void 0&&(e={});var i=e.skipAriaHidden;o.classList.toggle("ag-invisible",!t),i||Ec(o,!t)}function Ss(o,t){var e="disabled",i=t?function(r){return r.setAttribute(e,"")}:function(r){return r.removeAttribute(e)};i(o),gh(o.querySelectorAll("input"),function(r){return i(r)})}function fo(o,t,e){for(var i=0;o;){if(o.classList.contains(t))return!0;
38if(o=o.parentElement,typeof e=="number"){if(++i>e)break}else if(o===e)break}return!1}function Vn(o){var t=window.getComputedStyle(o),e=t.height,i=t.width,r=t.borderTopWidth,n=t.borderRightWidth,s=t.borderBottomWidth,a=t.borderLeftWidth,l=t.paddingTop,u=t.paddingRight,c=t.paddingBottom,p=t.paddingLeft,f=t.marginTop,v=t.marginRight,y=t.marginBottom,w=t.marginLeft,b=t.boxSizing;return{height:parseFloat(e||"0"),width:parseFloat(i||"0"),borderTopWidth:parseFloat(r||"0"),borderRightWidth:parseFloat(n||"0"),borderBottomWidth:parseFloat(s||"0"),borderLeftWidth:parseFloat(a||"0"),paddingTop:parseFloat(l||"0"),paddingRight:parseFloat(u||"0"),paddingBottom:parseFloat(c||"0"),paddingLeft:parseFloat(p||"0"),marginTop:parseFloat(f||"0"),marginRight:parseFloat(v||"0"),marginBottom:parseFloat(y||"0"),marginLeft:parseFloat(w||"0"),boxSizing:b}}function sl(o){var t=Vn(o);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom:t.height}function Ro(o){var t=Vn(o);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight:t.width}function ch(o){var t=Vn(o),e=t.marginBottom+t.marginTop;return Math.ceil(o.offsetHeight+e)}function ja(o){var t=Vn(o),e=t.marginLeft+t.marginRight;return Math.ceil(o.offsetWidth+e)}function dh(o){var t=o.getBoundingClientRect(),e=Vn(o),i=e.borderTopWidth,r=e.borderLeftWidth,n=e.borderRightWidth,s=e.borderBottomWidth;return{top:t.top+(i||0),left:t.left+(r||0),right:t.right+(n||0),bottom:t.bottom+(s||0)}}function Wa(){if(typeof Bl=="boolean")return Bl;var o=document.createElement("div");return o.style.direction="rtl",o.style.width="1px",o.style.height="1px",o.style.position="fixed",o.style.top="0px",o.style.overflow="hidden",o.dir="rtl",o.innerHTML=`<div style="width: 2px"> 39 <span style="display: inline-block; width: 1px"></span> 40 <span style="display: inline-block; width: 1px"></span> 41 </div>`,document.body.appendChild(o),o.scrollLeft=1,Bl=Math.floor(o.scrollLeft)===0,document.body.removeChild(o),Bl}function Ua(o,t){var e=o.scrollLeft;return t&&(e=Math.abs(e),_c()&&!Wa()&&(e=o.scrollWidth-o.clientWidth-e)),e}function za(o,t,e){e&&(Wa()?t*=-1:(Dr()||_c())&&(t=o.scrollWidth-o.clientWidth-t)),o.scrollLeft=t}function Nt(o){for(;o&&o.firstChild;)o.removeChild(o.firstChild)}function br(o){o&&o.parentNode&&o.parentNode.removeChild(o)}function ph(o){return!!o.offsetParent}function Ti(o){var t=o;if(t.checkVisibility)return t.checkVisibility({checkVisibilityCSS:!0});var e=!ph(o)||window.getComputedStyle(o).visibility!=="visible";return!e}function pi(o){var t=document.createElement("div");return t.innerHTML=(o||"").trim(),t.firstChild}function fh(o,t,e){e&&e.nextSibling===t||(e?e.nextSibling?o.insertBefore(t,e.nextSibling):o.appendChild(t):o.firstChild&&o.firstChild!==t&&o.insertAdjacentElement("afterbegin",t))}function hh(o,t){for(var e=0;e<t.length;e++){var i=t[e],r=o.children[e];r!==i&&o.insertBefore(i,r)}}function kC(o,t,e){e?e.insertAdjacentElement("afterend",t):o.firstChild?o.insertAdjacentElement("afterbegin",t):o.appendChild(t)}function vh(o,t){var e,i;if(t)try{for(var r=kb(Object.entries(t)),n=r.next();!n.done;n=r.next()){var s=Bb(n.value,2),a=s[0],l=s[1];if(!(!a||!a.length||l==null)){var u=gC(a),c=l.toString(),p=c.replace(/\s*!important/g,""),f=p.length!=c.length?"important":void 0;o.style.setProperty(u,p,f)}}}catch(v){e={error:v}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}}function BC(o){return o.clientWidth<o.scrollWidth}function jC(o){return o.clientHeight<o.scrollHeight}function $a(o,t){t==="flex"?(o.style.removeProperty("width"),o.style.removeProperty("minWidth"),o.style.removeProperty("maxWidth"),o.style.flex="1 1 auto"):Bi(o,t)}function Bi(o,t){t=Oc(t),o.style.width=t.toString(),o.style.maxWidth=t.toString(),o.style.minWidth=t.toString()}function jb(o,t){t==="flex"?(o.style.removeProperty("height"),o.style.removeProperty("minHeight"),o.style.removeProperty("maxHeight"),o.style.flex="1 1 auto"):ho(o,t)}function ho(o,t){t=Oc(t),o.style.height=t.toString(),o.style.maxHeight=t.toString(),o.style.minHeight=t.toString()}function Oc(o){return typeof o=="number"?"".concat(o,"px"):o}function al(o){return o instanceof Node||o instanceof HTMLElement}function WC(o){if(o==null)return[];var t=[];return gh(o,function(e){return t.push(e)}),t}function UC(o,t){if(o)for(var e=0;e<o.length;e++){var i=o[e];t(i.name,i.value)}}function Ar(o,t,e){e==null?o.removeAttribute(t):o.setAttribute(t,e.toString())}function gh(o,t){if(o!=null)for(var e=0;e<o.length;e++)t(o[e])}function yh(o,t){o.then(function(e){var i=e.getGui();i!=null&&(typeof i=="object"?t.appendChild(i):t.innerHTML=i)})}var Wb=Object.freeze({__proto__:null,radioCssClass:nf,FOCUSABLE_SELECTOR:HC,FOCUSABLE_EXCLUDE:lh,isFocusableFormField:uh,setDisplayed:it,setVisible:VC,setDisabled:Ss,isElementChildOfClass:fo,getElementSize:Vn,getInnerHeight:sl,getInnerWidth:Ro,getAbsoluteHeight:ch,getAbsoluteWidth:ja,getElementRectWithOffset:dh,isRtlNegativeScroll:Wa,get
41ScrollLeft:Ua,setScrollLeft:za,clearElement:Nt,removeFromParent:br,isInDOM:ph,isVisible:Ti,loadTemplate:pi,ensureDomOrder:fh,setDomChildOrder:hh,insertWithDomOrder:kC,addStylesToElement:vh,isHorizontalScrollShowing:BC,isVerticalScrollShowing:jC,setElementWidth:$a,setFixedWidth:Bi,setElementHeight:jb,setFixedHeight:ho,formatSize:Oc,isNodeOrElement:al,copyNodeList:WC,iterateNamedNodeMap:UC,addOrRemoveAttribute:Ar,nodeListForEach:gh,bindCellRendererToHtmlElement:yh}),Ub=function(o){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&o[t],i=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function zC(o,t,e){var i={},r=o.filter(function(n){return!t.some(function(s){return s===n})});return r.length>0&&r.forEach(function(n){return i[n]=ll(n,e).values}),i}function ll(o,t,e,i){var r,n,s=t.map(function(y,w){return{value:y,relevance:zb(o.toLowerCase(),y.toLocaleLowerCase()),idx:w}});if(s.sort(function(y,w){return w.relevance-y.relevance}),e&&(s=s.filter(function(y){return y.relevance!==0})),s.length>0&&i&&i>0){var a=s[0].relevance,l=a*i;s=s.filter(function(y){return l-y.relevance<0})}var u=[],c=[];try{for(var p=Ub(s),f=p.next();!f.done;f=p.next()){var v=f.value;u.push(v.value),c.push(v.idx)}}catch(y){r={error:y}}finally{try{f&&!f.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}return{values:u,indices:c}}function zb(o,t){for(var e=o.replace(/\s/g,""),i=t.replace(/\s/g,""),r=0,n=-1,s=0;s<e.length;s++){var a=i.indexOf(e[s],n+1);a!==-1&&(n=a,r+=100-n*100/1e4*100)}return r}var $b=Object.freeze({__proto__:null,fuzzyCheckStrings:zC,fuzzySuggestions:ll}),$C={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",setFilterGroupClosed:"tree-closed",setFilterGroupOpen:"tree-open",setFilterGroupIndeterminate:"tree-indeterminate",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",menuAlt:"menu-alt",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none",advancedFilterBuilder:"group",advancedFilterBuilderDrag:"grip",advancedFilterBuilderInvalid:"not-allowed",advancedFilterBuilderMoveUp:"up",advancedFilterBuilderMoveDown:"down",advancedFilterBuilderAdd:"plus",advancedFilterBuilderRemove:"minus"};function Ni(o,t,e){var i=bt(o,t,e);if(i){var r=i.className;if(typeof r=="string"&&r.indexOf("ag-icon")>-1||typeof r=="object"&&r["ag-icon"])return i}var n=document.createElement("span");return n.appendChild(i),n}function bt(o,t,e,i){var r=null,n=e&&e.getColDef().icons;if(n&&(r=n[o]),t&&!r){var s=t.get("icons");s&&(r=s[o])}if(r){var a=void 0;if(typeof r=="function")a=r();else if(typeof r=="string")a=r;else throw new Error("icon from grid options needs to be a string or a function");if(typeof a=="string")return pi(a);if(al(a))return a;console.warn("AG Grid: iconRenderer should return back a string or a dom object")}else{var l=document.createElement("span"),u=$C[o];return u||(i?u=o:(console.warn("AG Grid: Did not find icon ".concat(o)),u="")),l.setAttribute("class","ag-icon ag-icon-".concat(u)),l.setAttribute("unselectable","on"),Lt(l,"presentation"),l}}var Kb=Object.freeze({__proto__:null,iconNameClassMap:$C,createIcon:Ni,createIconNoSpan:bt}),W=function(){function o(){}return o.BACKSPACE="Backspace",o.TAB="Tab",o.ENTER="Enter",o.ESCAPE="Escape",o.SPACE=" ",o.LEFT="ArrowLeft",o.UP="ArrowUp",o.RIGHT="ArrowRight",o.DOWN="ArrowDown",o.DELETE="Delete",o.F2="F2",o.PAGE_UP="PageUp",o.PAGE_DOWN="PageDown",o.PAGE_HOME="Home",o.PAGE_END="End",o.A="KeyA",o.C="KeyC",o.D="KeyD",o.V="KeyV",o.X="KeyX",o.Y="KeyY",o.Z="KeyZ",o}(),Yb=65,qb=67,Xb=86,Qb=68,Jb=90,Zb=89;function bc(o){if(o.altKey||o.ctrlKey||o.metaKey)return!1;var t=o.key.length===1;return t}function $u(o,t,e,i,r){var n=i?i.getColDef().suppressKeyboardEvent:void 0;if(!n)return!1;var s=o.addGridCommonParams({event:t,editing:r,column:i,node:e,data:e.data,colDef:i.getColDef()});if(n){var a=n(s);if(a)return!0}return!1}function KC(o,t,e,i){var r=i.getDefinition(),n=r&&r.suppressHeaderKeyboardEvent;if(!Q(n))return!1;var s=o.addGridCommonParams({colDef:r,column:i,headerRowIndex:e,event:t});return!!n(s)}function YC(o){var t=o.keyCode,e;switch(t){case Yb:e=W.A;break;case qb:e=W.C;break;case Xb:e=W.V;break;case Qb:e=W.D;break;case Jb:e=W.Z;break;case Zb:e=W.Y;break;default:e=o.code}return e}function qC(o,t){return t===void 0&&(t=!1),o===W.DELETE?!0:!t&&o===W.BACKSPACE?nh():!1}var eT=Object.freeze({__proto__:null,isEventFromPrintableCharacter:bc,isUserSuppressingKeyboardEvent:$u,isUserSuppressingHeaderKeyboardEvent:KC,normaliseQwertyAzerty:YC,isDeleteKey:qC});function mh(o,t,e){if(e===0)return!1;var i=Math.abs(o.clientX-t.clientX),r=Math.abs(o.clientY-t.clientY);return Math.max(i,r)<=e}var tT=Object.freeze({__proto__:null,areEventsNear:mh});function iT(o,t){if(!o)return!1;for(var e=function(a,l){var u=t[a.id],c=t[l.id],p=u!==void 0,f=c!==void 0,v=p&&f,y=!p&&!f;return v?u-c:y?a.__objectId-l.__objectId:p?1:-1},i,r,n=!1,s=0;s<o.length-1;s++)if(i=o[s],r=o[s+1],e(i,r)>0){n=!0;break}return n?(o.sort(e),!0):!1}var rT=Object.freeze({__proto__:null,sortRowNodesByOrder:iT});function Ch(o){var t=new Set;return o.forEach(function(e){return t.add(e)}),t}var nT=Object.freeze({__proto__:null,convertToSet:Ch}),Tt=function(){return Tt=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},Tt.apply(this,arguments)},oT=Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt({},Fb),JO),Mb),Vb),Wb),eb),HO),$b),LO),Kb),eT),hb),tT),Hb),xO),rT),nT),db),Ke=oT,Es=function(){function o(t,e){t===void 0&&(t=0),e===void 0&&(e=1),this.nextValue=t,this.step=e}return o.prototype.next=function(){var t=this.nextValue;return this.nextValue+=this.step,t},o.prototype.peek=function(){return this.nextValue},o.prototype.skip=function(t){this.nextValue+=t},o}(),ns;(function(o){o[o.IN_PROGRESS=0]="IN_PROGRESS",o[o.RESOLVED=1]="RESOLVED"})(ns||(ns={}));var Ei=function(){function o(t){var e=this;this.status=ns.IN_PROGRESS,this.resolution=null,this.waiters=[],t(function(i){return e.onDone(i)},function(i){return e.onReject(i)})}return o.all=function(t){return new o(function(e){var i=t.length,r=new Array(i);t.forEach(function(n,s){n.then(function(a){r[s]=a,i--,i===0&&e(r)})})})},o.resolve=function(t){return t===void 0&&(t=null),new o(function(e){return e(t)})},o.prototype.then=function(t){var e=this;return new o(function(i){e.status===ns.RESOLVED?i(t(e.resolution)):e.waiters.push(function(r){return i(t(r))})})},o.prototype.resolveNow=function(t,e){return this.status===ns.RESOLVED?e(this.resolution):t},o.prototype.onDone=function(t){this.status=ns.RESOLVED,this.resolution=t,this.waiters.forEac
41h(function(e){return e(t)})},o.prototype.onReject=function(t){console.warn("TBI")},o}(),sT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),no=function(){return no=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},no.apply(this,arguments)},Gd=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Zi;(function(o){o[o.NOTHING=0]="NOTHING",o[o.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",o[o.SHOWING=2]="SHOWING"})(Zi||(Zi={}));var Cr;(function(o){o[o.HOVER=0]="HOVER",o[o.FOCUS=1]="FOCUS"})(Cr||(Cr={}));var XC=function(o){sT(t,o);function t(e,i,r){var n=o.call(this)||this;return n.parentComp=e,n.tooltipShowDelayOverride=i,n.tooltipHideDelayOverride=r,n.SHOW_QUICK_TOOLTIP_DIFF=1e3,n.FADE_OUT_TOOLTIP_TIMEOUT=1e3,n.INTERACTIVE_HIDE_DELAY=100,n.interactionEnabled=!1,n.isInteractingWithTooltip=!1,n.state=Zi.NOTHING,n.tooltipInstanceCount=0,n.tooltipMouseTrack=!1,n}return t.prototype.postConstruct=function(){this.gridOptionsService.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gridOptionsService.get("tooltipMouseTrack");var e=this.parentComp.getGui();this.tooltipTrigger===Cr.HOVER&&(this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this))),this.tooltipTrigger===Cr.FOCUS&&(this.addManagedListener(e,"focusin",this.onFocusIn.bind(this)),this.addManagedListener(e,"focusout",this.onFocusOut.bind(this))),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.interactionEnabled||(this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this)))},t.prototype.getGridOptionsTooltipDelay=function(e){var i=this.gridOptionsService.get(e);return i<0&&Le("".concat(e," should not be lower than 0")),Math.max(200,i)},t.prototype.getTooltipDelay=function(e){var i,r;return e==="show"?(i=this.tooltipShowDelayOverride)!==null&&i!==void 0?i:this.getGridOptionsTooltipDelay("tooltipShowDelay"):(r=this.tooltipHideDelayOverride)!==null&&r!==void 0?r:this.getGridOptionsTooltipDelay("tooltipHideDelay")},t.prototype.destroy=function(){this.setToDoNothing(),o.prototype.destroy.call(this)},t.prototype.getTooltipTrigger=function(){var e=this.gridOptionsService.get("tooltipTrigger");return!e||e==="hover"?Cr.HOVER:Cr.FOCUS},t.prototype.onMouseEnter=function(e){var i=this;this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!tn()&&(t.isLocked?this.showTooltipTimeoutId=window.setTimeout(function(){i.prepareToShowTooltip(e)},this.INTERACTIVE_HIDE_DELAY):this.prepareToShowTooltip(e))},t.prototype.onMouseMove=function(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&this.state===Zi.SHOWING&&this.tooltipComp&&this.positionTooltip()},t.prototype.onMouseDown=function(){this.setToDoNothing()},t.prototype.onMouseLeave=function(){this.interactionEnabled?this.lockService():this.setToDoNothing()},t.prototype.onFocusIn=function(){this.prepareToShowTooltip()},t.prototype.onFocusOut=function(e){var i,r=e.relatedTarget,n=this.parentComp.getGui(),s=(i=this.tooltipComp)===null||i===void 0?void 0:i.getGui();this.isInteractingWithTooltip||n.contains(r)||this.interactionEnabled&&(s!=null&&s.contains(r))||this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.prepareToShowTooltip=function(e){if(this.state!=Zi.NOTHING||t.isLocked)return!1;var i=0;return e&&(i=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),i),this.state=Zi.WAITING_TO_SHOW,!0},t.prototype.isLastTooltipHiddenRecently=function(){var e=new Date().getTime(),i=t.lastTooltipHideTime;return e-i<this.SHOW_QUICK_TOOLTIP_DIFF},t.prototype.setToDoNothing=function(){this.state===Zi.SHOWING&&this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.onColumnMovedEventCallback&&(this.onColumnMovedEventCallback(),this.onColumnMovedEventCallback=void 0),this.clearTimeouts(),this.state=Zi.NOTHING,this.lastMouseEvent=null},t.prototype.showTooltip=function(){var e=no({},this.parentComp.getTooltipParams());if(!Q(e.value)){this.setToDoNothing();return}this.state=Zi.SHOWING,this.tooltipInstanceCount++;var i=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount),r=this.userComponentFactory.getTooltipCompDetail
41s(e);r.newAgStackInstance().then(i)},t.prototype.hideTooltip=function(e){if(!(!e&&this.isInteractingWithTooltip)){this.tooltipComp&&(this.destroyTooltipComp(),t.lastTooltipHideTime=new Date().getTime());var i={type:T.EVENT_TOOLTIP_HIDE,parentGui:this.parentComp.getGui()};this.eventService.dispatchEvent(i),this.state=Zi.NOTHING}},t.prototype.newTooltipComponentCallback=function(e,i){var r=this.state!==Zi.SHOWING||this.tooltipInstanceCount!==e;if(r){this.getContext().destroyBean(i);return}var n=i.getGui();this.tooltipComp=i,n.classList.contains("ag-tooltip")||n.classList.add("ag-tooltip-custom"),this.tooltipTrigger===Cr.HOVER&&n.classList.add("ag-tooltip-animate"),this.interactionEnabled&&n.classList.add("ag-tooltip-interactive");var s=this.localeService.getLocaleTextFunc(),a=this.popupService.addPopup({eChild:n,ariaLabel:s("ariaLabelTooltip","Tooltip")});a&&(this.tooltipPopupDestroyFunc=a.hideFunc),this.positionTooltip(),this.tooltipTrigger===Cr.FOCUS&&(this.onBodyScrollEventCallback=this.addManagedListener(this.eventService,T.EVENT_BODY_SCROLL,this.setToDoNothing.bind(this)),this.onColumnMovedEventCallback=this.addManagedListener(this.eventService,T.EVENT_COLUMN_MOVED,this.setToDoNothing.bind(this))),this.interactionEnabled&&(this.tooltipTrigger===Cr.HOVER?(this.tooltipMouseEnterListener=this.addManagedListener(n,"mouseenter",this.onTooltipMouseEnter.bind(this))||null,this.tooltipMouseLeaveListener=this.addManagedListener(n,"mouseleave",this.onTooltipMouseLeave.bind(this))||null):(this.tooltipFocusInListener=this.addManagedListener(n,"focusin",this.onTooltipFocusIn.bind(this))||null,this.tooltipFocusOutListener=this.addManagedListener(n,"focusout",this.onTooltipFocusOut.bind(this))||null));var l={type:T.EVENT_TOOLTIP_SHOW,tooltipGui:n,parentGui:this.parentComp.getGui()};this.eventService.dispatchEvent(l),this.startHideTimeout()},t.prototype.onTooltipMouseEnter=function(){this.isInteractingWithTooltip=!0,this.unlockService()},t.prototype.onTooltipMouseLeave=function(){this.isInteractingWithTooltip=!1,this.lockService()},t.prototype.onTooltipFocusIn=function(){this.isInteractingWithTooltip=!0},t.prototype.onTooltipFocusOut=function(e){var i,r=this.parentComp.getGui(),n=(i=this.tooltipComp)===null||i===void 0?void 0:i.getGui(),s=e.relatedTarget;n!=null&&n.contains(s)||(this.isInteractingWithTooltip=!1,r.contains(s)?this.startHideTimeout():this.hideTooltip())},t.prototype.positionTooltip=function(){var e={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupService.positionPopupUnderMouseEvent(no(no({},e),{mouseEvent:this.lastMouseEvent})):this.popupService.positionPopupByComponent(no(no({},e),{eventSource:this.parentComp.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5}))},t.prototype.destroyTooltipComp=function(){var e=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var i=this.tooltipPopupDestroyFunc,r=this.tooltipComp,n=this.tooltipTrigger===Cr.HOVER?this.FADE_OUT_TOOLTIP_TIMEOUT:0;window.setTimeout(function(){i(),e.getContext().destroyBean(r)},n),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},t.prototype.clearTooltipListeners=function(){[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener].forEach(function(e){e&&e()}),this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null},t.prototype.lockService=function(){var e=this;t.isLocked=!0,this.interactiveTooltipTimeoutId=window.setTimeout(function(){e.unlockService(),e.setToDoNothing()},this.INTERACTIVE_HIDE_DELAY)},t.prototype.unlockService=function(){t.isLocked=!1,this.clearInteractiveTimeout()},t.prototype.startHideTimeout=function(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay("hide"))},t.prototype.clearShowTimeout=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)},t.prototype.clearHideTimeout=function(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},t.prototype.clearInteractiveTimeout=function(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)},t.prototype.clearTimeouts=function(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()},t.isLocked=!1,Gd([E("popupService")],t.prototype,"popupService",void 0),Gd([E("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Gd([ie],t.prototype,"postConstruct",null),t}(ee),aT=function(){function o(t){this.cssClassStates={},this.getGui=t}return o.prototype.addCssClass=function(t){var e=this,i=(t||"").split(" ");if(i.length>
411){i.forEach(function(s){return e.addCssClass(s)});return}var r=this.cssClassStates[t]!==!0;if(r&&t.length){var n=this.getGui();n&&n.classList.add(t),this.cssClassStates[t]=!0}},o.prototype.removeCssClass=function(t){var e=this,i=(t||"").split(" ");if(i.length>1){i.forEach(function(s){return e.removeCssClass(s)});return}var r=this.cssClassStates[t]!==!1;if(r&&t.length){var n=this.getGui();n&&n.classList.remove(t),this.cssClassStates[t]=!1}},o.prototype.containsCssClass=function(t){var e=this.getGui();return e?e.classList.contains(t):!1},o.prototype.addOrRemoveCssClass=function(t,e){var i=this;if(t){if(t.indexOf(" ")>=0){var r=(t||"").split(" ");if(r.length>1){r.forEach(function(a){return i.addOrRemoveCssClass(a,e)});return}}var n=this.cssClassStates[t]!==e;if(n&&t.length){var s=this.getGui();s&&s.classList.toggle(t,e),this.cssClassStates[t]=e}}},o}(),lT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Hd=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},uT=new Es,We=function(o){lT(t,o);function t(e){var i=o.call(this)||this;return i.displayed=!0,i.visible=!0,i.compId=uT.next(),i.cssClassManager=new aT(function(){return i.eGui}),e&&i.setTemplate(e),i}return t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsService.get("enableBrowserTooltips")},t.prototype.getCompId=function(){return this.compId},t.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},t.prototype.setTooltip=function(e,i,r){var n=this,s=function(){n.usingBrowserTooltips?n.getGui().removeAttribute("title"):n.tooltipFeature=n.destroyBean(n.tooltipFeature)},a=function(){n.usingBrowserTooltips?n.getGui().setAttribute("title",n.tooltipText):n.tooltipFeature=n.createBean(new XC(n,i,r))};this.tooltipText!=e&&(this.tooltipText&&s(),e!=null&&(this.tooltipText=e,this.tooltipText&&a()))},t.prototype.createChildComponentsFromTags=function(e,i){var r=this,n=WC(e.childNodes);n.forEach(function(s){if(s instanceof HTMLElement){var a=r.createComponentFromElement(s,function(u){var c=u.getGui();c&&r.copyAttributesFromNode(s,u.getGui())},i);if(a){if(a.addItems&&s.children.length){r.createChildComponentsFromTags(s,i);var l=Array.prototype.slice.call(s.children);a.addItems(l)}r.swapComponentForNode(a,e,s)}else s.childNodes&&r.createChildComponentsFromTags(s,i)}})},t.prototype.createComponentFromElement=function(e,i,r){var n=e.nodeName,s=r?r[e.getAttribute("ref")]:void 0,a=this.agStackComponentsRegistry.getComponentClass(n);if(a){t.elementGettingCreated=e;var l=new a(s);return l.setParentComponent(this),this.createBean(l,null,i),l}return null},t.prototype.copyAttributesFromNode=function(e,i){UC(e.attributes,function(r,n){return i.setAttribute(r,n)})},t.prototype.swapComponentForNode=function(e,i,r){var n=e.getGui();i.replaceChild(n,r),i.insertBefore(document.createComment(r.nodeName),n),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,r)},t.prototype.swapInComponentForQuerySelectors=function(e,i){var r=this;this.iterateOverQuerySelectors(function(n){r[n.attributeName]===i&&(r[n.attributeName]=e)})},t.prototype.iterateOverQuerySelectors=function(e){for(var i=Object.getPrototypeOf(this);i!=null;){var r=i.__agComponentMetaData,n=wc(i.constructor);r&&r[n]&&r[n].querySelectors&&r[n].querySelectors.forEach(function(s){return e(s)}),i=Object.getPrototypeOf(i)}},t.prototype.activateTabIndex=function(e){var i=this.gridOptionsService.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui()),e.forEach(function(r){return r.setAttribute("tabindex",i.toString())})},t.prototype.setTemplate=function(e,i){var r=pi(e);this.setTemplateFromElement(r,i)},t.prototype.setTemplateFromElement=function(e,i){this.eGui=e,this.eGui.__ag
41Component=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),i)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var i=this;this.iterateOverQuerySelectors(function(r){var n=function(l){return i[r.attributeName]=l},s=r.refSelector&&e.getAttribute("ref")===r.refSelector;if(s)n(e.eGui);else{var a=e.eGui.querySelector(r.querySelector);a&&n(a.__agComponent||a)}})}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.getAriaElement=function(){return this.getFocusableElement()},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,i){if(e!=null)if(i||(i=this.eGui),al(e))i.appendChild(e);else{var r=e;i.appendChild(r.getGui())}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e,i){if(i===void 0&&(i={}),e!==this.visible){this.visible=e;var r=i.skipAriaHidden;VC(this.eGui,e,{skipAriaHidden:r})}},t.prototype.setDisplayed=function(e,i){if(i===void 0&&(i={}),e!==this.displayed){this.displayed=e;var r=i.skipAriaHidden;it(this.eGui,e,{skipAriaHidden:r});var n={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(n)}},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.parentComponent&&(this.parentComponent=void 0);var e=this.eGui;e&&e.__agComponent&&(e.__agComponent=void 0),o.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,i,r){var n=this;this.eGui.addEventListener(e,i,r),this.addDestroyFunc(function(){return n.eGui.removeEventListener(e,i)})},t.prototype.addCssClass=function(e){this.cssClassManager.addCssClass(e)},t.prototype.removeCssClass=function(e){this.cssClassManager.removeCssClass(e)},t.prototype.containsCssClass=function(e){return this.cssClassManager.containsCssClass(e)},t.prototype.addOrRemoveCssClass=function(e,i){this.cssClassManager.addOrRemoveCssClass(e,i)},t.prototype.getAttribute=function(e){var i=this.eGui;return i?i.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'.concat(e,'"]'))},t.EVENT_DISPLAYED_CHANGED="displayedChanged",Hd([E("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),Hd([ag],t.prototype,"preConstructOnComponent",null),Hd([ag],t.prototype,"createChildComponentsPreConstruct",null),t}(ee);function se(o){return cT.bind(this,"[ref=".concat(o,"]"),o)}function cT(o,t,e,i,r){if(o===null){console.error("AG Grid: QuerySelector selector should not be null");return}if(typeof r=="number"){console.error("AG Grid: QuerySelector should be on an attribute");return}dT(e,"querySelectors",{attributeName:i,querySelector:o,refSelector:t})}function dT(o,t,e){var i=pT(o,wc(o.constructor));i[t]||(i[t]=[]),i[t].push(e)}function pT(o,t){return o.__agComponentMetaData||(o.__agComponentMetaData={}),o.__agComponentMetaData[t]||(o.__agComponentMetaData[t]={}),o.__agComponentMetaData[t]}var fT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),dg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},hT=function(o){fT(t,o);function t(){return o.call(this,` 42 <div class="ag-floating-filter-input" role="presentation"> 43 <ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field> 44 </div>`)||this}return t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var i=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),r=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel("".concat(i," ").concat(r("ariaFilterInput","Filter Input")))},t.prototype.onParentModelChanged=function(e){var i=this;if(e==null){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(function(r){if(r.getModelAsString){var n=r.getModelAsString(e);i.eFloatingFilterText.setValue(n)}})},t.prototype.onParamsUpdated=function(e){this.refresh(e)},t.prototype.refresh=function(e){this.init(e)},dg([se("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),dg([E("columnModel")],t.prototype,"columnModel",void 0),t}(We),QC=function(){function o(t,e,i,r){var n=this;this.alive=!0,this.context=t,this.eParent=r;
44var s=e.getDateCompDetails(i),a=s.newAgStackInstance();a.then(function(l){if(!n.alive){t.destroyBean(l);return}n.dateComp=l,l&&(r.appendChild(l.getGui()),l.afterGuiAttached&&l.afterGuiAttached(),n.tempValue&&l.setDate(n.tempValue),n.disabled!=null&&n.setDateCompDisabled(n.disabled))})}return o.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},o.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},o.prototype.setDate=function(t){this.dateComp?this.dateComp.setDate(t):this.tempValue=t},o.prototype.setDisabled=function(t){this.dateComp?this.setDateCompDisabled(t):this.disabled=t},o.prototype.setDisplayed=function(t){it(this.eParent,t)},o.prototype.setInputPlaceholder=function(t){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(t)},o.prototype.setInputAriaLabel=function(t){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(t)},o.prototype.afterGuiAttached=function(t){this.dateComp&&typeof this.dateComp.afterGuiAttached=="function"&&this.dateComp.afterGuiAttached(t)},o.prototype.updateParams=function(t){var e,i,r=!1;if(!((e=this.dateComp)===null||e===void 0)&&e.refresh&&typeof this.dateComp.refresh=="function"){var n=this.dateComp.refresh(t);n!==null&&(r=!0)}if(!r&&(!((i=this.dateComp)===null||i===void 0)&&i.onParamsUpdated)&&typeof this.dateComp.onParamsUpdated=="function"){var n=this.dateComp.onParamsUpdated(t);n!==null&&Le("Custom date component method 'onParamsUpdated' is deprecated. Use 'refresh' instead.")}},o.prototype.setDateCompDisabled=function(t){this.dateComp!=null&&this.dateComp.setDisabled!=null&&this.dateComp.setDisabled(t)},o}(),JC=function(){function o(){this.customFilterOptions={}}return o.prototype.init=function(t,e){this.filterOptions=t.filterOptions||e,this.mapCustomOptions(),this.selectDefaultItem(t)},o.prototype.getFilterOptions=function(){return this.filterOptions},o.prototype.mapCustomOptions=function(){var t=this;this.filterOptions&&this.filterOptions.forEach(function(e){if(typeof e!="string"){var i=[["displayKey"],["displayName"],["predicate","test"]],r=function(n){return n.some(function(s){return e[s]!=null})?!0:(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '".concat(n,"'")),!1)};if(!i.every(r)){t.filterOptions=t.filterOptions.filter(function(n){return n===e})||[];return}t.customFilterOptions[e.displayKey]=e}})},o.prototype.selectDefaultItem=function(t){if(t.defaultOption)this.defaultOption=t.defaultOption;else if(this.filterOptions.length>=1){var e=this.filterOptions[0];typeof e=="string"?this.defaultOption=e:e.displayKey?this.defaultOption=e.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},o.prototype.getDefaultOption=function(){return this.defaultOption},o.prototype.getCustomOption=function(t){return this.customFilterOptions[t]},o}(),ZC={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},vT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}
44t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),of=function(){return of=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},of.apply(this,arguments)},pg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Ao=function(o){vT(t,o);function t(e,i){i===void 0&&(i={});var r=o.call(this)||this;return r.eFocusableElement=e,r.callbacks=i,r.callbacks=of({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(n){if(!n.defaultPrevented){var s=r.focusService.findNextFocusableElement(r.eFocusableElement,!1,n.shiftKey);s&&(s.focus(),n.preventDefault())}}},i),r}return t.prototype.postConstruct=function(){this.eFocusableElement.classList.add(t.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)},t.prototype.addKeyDownListeners=function(e){var i=this;this.addManagedListener(e,"keydown",function(r){if(!(r.defaultPrevented||nr(r))){if(i.callbacks.shouldStopEventPropagation(r)){sr(r);return}r.key===W.TAB?i.callbacks.onTabKeyDown(r):i.callbacks.handleKeyDown&&i.callbacks.handleKeyDown(r)}})},t.FOCUS_MANAGED_CLASS="ag-focus-managed",pg([E("focusService")],t.prototype,"focusService",void 0),pg([ie],t.prototype,"postConstruct",null),t}(ee),gT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Vd=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ew="ag-resizer-wrapper",yT='<div class="'.concat(ew,`"> 45 <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div> 46 <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div> 47 <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div> 48 <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div> 49 <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div> 50 <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div> 51 <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div> 52 <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div> 53 </div>`),tw=function(o){gT(t,o);function t(e,i){var r=o.call(this)||this;return r.element=e,r.dragStartPosition={x:0,y:0},r.position={x:0,y:0},r.lastSize={width:-1,height:-1},r.positioned=!1,r.resizersAdded=!1,r.resizeListeners=[],r.boundaryEl=null,r.isResizing=!1,r.isMoving=!1,r.resizable={},r.movable=!1,r.currentResizer=null,r.config=Object.assign({},{popup:!1},i),r}return t.prototype.center=function(){var e=this.offsetParent,i=e.clientHeight,r=e.clientWidth,n=r/2-this.getWidth()/2,s=i/2-this.getHeight()/2;this.offsetElement(n,s)},t.prototype.initialisePosition=function(){if(!this.positioned){var e=this.config,i=e.centered,r=e.forcePopupParentAsOffsetParent,n=e.minWidth,s=e.width,a=e.minHeight,l=e.height,u=e.x,c=e.y;this.offsetParent||this.setOffsetParent();var p=0,f=0,v=Ti(this.element);if(v){var y=this.findBoundaryElement(),w=window.getComputedStyle(y);if(w.minWidth!=null){var b=y.offsetWidth-this.element.offsetWidth;f=parseInt(w.minWidth,10)-b}if(w.minHeight!=null){var O=y.offsetHeight-this.element.offsetHeight;p=parseInt(w.minHeight,10)-O}}if(this.minHeight=a||p,this.minWidth=n||f,s&&this.setWidth(s),l&&this.setHeight(l),(!s||!l)&&this.refreshSize(),i)this.center();else if(u||c)this.offsetElement(u,c);else if(v&&r){var y=this.boundaryEl,A=!0;if(y||(y=this.findBoundaryElement(),A=!1),y){var P=parseFloat(y.style.top),L=parseFloat(y.style.left);A?this.offsetElement(isNaN(L)?0:L,isNaN(P)?0:P):this.setPosition(L,P)}}this.positioned=!!this.offsetParent}},t.prototype.isPositioned=function(){return this.positioned},t.prototype.getPosition=function(){return this.position},t.prototype.setMovable=function(e,i){if(!(!this.config.popup||e===this.movable)){this.movable=e;var r=this.moveElementDragListener||{eElement:i,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(r),this.moveElementDragListener=r):(this.dragService.removeDragSource(r),this.moveElementDragListener=void 0)}},t.prototype.setResizable=function(e){var i=this;if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),typeof e=="boolean"){if(e===!1)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(function(r){var n=e,s=!!n[r],a=i.getResizerElement(r),l={dragStartPixels:0,eElement:a,onDragStart:function(u){return i.onResizeStart(u,r)},onDragging:i.onResize.bind(i),onDragStop:function(u){return i.onResizeEnd(u,r)}};(s||!i.isAlive()&&!s)&&(s?(i.dragService.addDragSource(l),i.resizeListeners.push(l),a.style.pointerEvents="all"):a.style.pointerEvents="none",i.resizable[r]=s)})},t.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},t.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var e=this.lastSize,i=e.height,r=e.width;r!==-1&&(this.element.style.width="".concat(r,"px")),i!==-1&&(this.element.style.height="".concat(i,"px"))},t.prototype.getHeight=function(){return this.element.offsetHeight},t.prototype.setHeight=function(e){var i=this.config.popup,r=this.element,n=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)ho(r,e),e=ch(r),n=!0;else if(e=Math.max(this.minHeight,e),this.positioned){var s=this.getAvailableHeight();s&&e>s&&(e=s)}this.getHeight()!==e&&(n?(r.style.maxHeight="unset",r.style.minHeight="unset"):i?ho(r,e):(r.style.height="".concat(e,"px"),r.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:parseFloat(e)))},t.prototype.getAvailableHeight=function(){var e=this.config,i=e.popup,r=e.forcePopupParentAsOffsetParent;this.positioned||this.initialisePosition();var n=this.offsetParent.clientHeight;if(!n)return null;var s=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect(),l=i?this.position.y:s.top,u=i?0:a.top,c=0;if(r){var p=this.element.parentElement;if(p){var f=p.getBoundingClientRect().bottom;c=f-s.bottom}}var v=n+u-l-c;return v},t.prototype.getWidth=function(){return this.element.offsetWidth},t.prototype.setWidth=function(e){var i=this.element,r=this.config.popup,n=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)Bi(i,e),e=ja(i),n=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var s=this.offsetParent.clientWidth,a=r?this.position.x:this.element.getBoundingClientRect().left;s&&e+a>s&&(e=s-a)}this.getWidth()!==e&&(n?(i.style.maxWidth="unset",i.style.minWidth="unset"):this.config.popup?Bi(i,e):(i.style.width="".concat(e,"px"),i.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:parseFloat(e)))},t.prototype.offsetElement=function(e,i){e===void 0&&(e=0),i===void 0&&(i=0);var r=this.config.forcePopupParentAsOffsetParent,n=r?this.boundaryEl:this.element;n&&(this.popupService.positionPopup({ePopup:n,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:function(){return{x:e,y:i}}}),this.setPosition(parseFloat(n.style.left),parseFloat(n.style.top)))},t.prototype.constrainSizeToAvailableHeight=function(e){var i=this;if(this.config.forcePopupParentAsOffsetParent){var r=function(){var n=i.getAvailableHeight();i.element.style.setProperty("max-height","".concat(n,"px"))};e?this.resizeObserverSubscriber=this.resizeObserverService.observeResize(this.popupService.getPopupParent(),r):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}},t.prototype.setPosition=function(e,i){this.position.x=e,this.position.y=i},t.prototype.updateDragStartPosition=function(e,i){this.dragStartPosition={x:e,y:i}},t.prototype.calculateMouseMovement=function(e){var i=e.e,r=e.isLeft,n=e.isTop,s=e.anywhereWithin,a=e.topBuffer,l=i.clientX-this.dragStartPosition.x,u=i.clientY-this.dragStartPosition.y,c=this.shouldSkipX(i,!!r,!!s,l)?0:l,p=this.shouldSkipY(i,!!n,a,u)?0:u;return{movementX:c,movementY:p}},t.prototype.shouldSkipX=function(e,i,r,n){var s=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect(),l=this.boundaryEl.getBoundingClientRect(),u=this.config.popup?this.position.x:s.left,c=u<=0&&a.left>
53=e.clientX||a.right<=e.clientX&&a.right<=l.right;return c?!0:(i?c=n<0&&e.clientX>u+a.left||n>0&&e.clientX<u+a.left:r?c=n<0&&e.clientX>l.right||n>0&&e.clientX<u+a.left:c=n<0&&e.clientX>l.right||n>0&&e.clientX<l.right,c)},t.prototype.shouldSkipY=function(e,i,r,n){r===void 0&&(r=0);var s=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect(),l=this.boundaryEl.getBoundingClientRect(),u=this.config.popup?this.position.y:s.top,c=u<=0&&a.top>=e.clientY||a.bottom<=e.clientY&&a.bottom<=l.bottom;return c?!0:(i?c=n<0&&e.clientY>u+a.top+r||n>0&&e.clientY<u+a.top:c=n<0&&e.clientY>l.bottom||n>0&&e.clientY<l.bottom,c)},t.prototype.createResizeMap=function(){var e=this.element;this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}},t.prototype.addResizers=function(){if(!this.resizersAdded){var e=this.element;if(e){var i=new DOMParser,r=i.parseFromString(yT,"text/html").body;e.appendChild(r.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},t.prototype.removeResizers=function(){this.resizerMap=void 0;var e=this.element.querySelector(".".concat(ew));e&&this.element.removeChild(e),this.resizersAdded=!1},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e,i){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!i.match(/top/i),isRight:!!i.match(/right/i),isBottom:!!i.match(/bottom/i),isLeft:!!i.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[i].element.classList.add("ag-active");var r=this.config,n=r.popup,s=r.forcePopupParentAsOffsetParent;!n&&!s&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.getSiblings=function(){var e=this.element,i=e.parentElement;return i?Array.prototype.slice.call(i.children).filter(function(r){return!r.classList.contains("ag-hidden")}):null},t.prototype.getMinSizeOfSiblings=function(){for(var e=this.getSiblings()||[],i=0,r=0,n=0;n<e.length;n++){var s=e[n],a=!!s.style.flex&&s.style.flex!=="0 0 auto";if(s!==this.element){var l=this.minHeight||0,u=this.minWidth||0;if(a){var c=window.getComputedStyle(s);c.minHeight&&(l=parseInt(c.minHeight,10)),c.minWidth&&(u=parseInt(c.minWidth,10))}else l=s.offsetHeight,u=s.offsetWidth;i+=l,r+=u}}return{height:i,width:r}},t.prototype.applySizeToSiblings=function(e){var i=null,r=this.getSiblings();if(r){for(var n=0;n<r.length;n++){var s=r[n];s!==i&&(e?s.style.height="".concat(s.offsetHeight,"px"):s.style.width="".concat(s.offsetWidth,"px"),s.style.flex="0 0 auto",s===this.element&&(i=r[n+1]))}i&&(i.style.removeProperty("height"),i.style.removeProperty("min-height"),i.style.removeProperty("max-height"),i.style.flex="1 1 auto")}},t.prototype.isResizable=function(){return Object.values(this.resizable).some(function(e){return e})},t.prototype.onResize=function(e){if(!(!this.isResizing||!this.currentResizer)){var i=this.config,r=i.popup,n=i.forcePopupParentAsOffsetParent,s=this.currentResizer,a=s.isTop,l=s.isRight,u=s.isBottom,c=s.isLeft,p=l||c,f=u||a,v=this.calculateMouseMovement({e,isLeft:c,isTop:a}),y=v.movementX,w=v.movementY,b=this.position.x,O=this.position.y,A=0,P=0;if(p&&y){var L=c?-1:1,x=this.getWidth(),H=x+y*L,g=!1;c&&(A=x-H,(b+A<=0||H<=this.minWidth)&&(g=!0,A=0)),g||this.setWidth(H)}if(f&&w){var L=a?-1:1,N=this.getHeight(),V=N+w*L,z=!1;a?(P=N-V,(O+P<=0||V<=this.minHeight)&&(z=!0,P=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&N<V&&this.getMinSizeOfSiblings().height+V>this.element.parentElement.offsetHeight&&(z=!0),z||this.setHeight(V)}this.updateDragStartPosition(e.clientX,e.clientY),((r||n)&&A||P)&&this.offsetElement(b+A,O+P)}},t.prototype.onResizeEnd=function(e,i){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var r={type:"resize"};this.element.classList.remove("ag-resizing"),this.resizerMap[i].element.classList.remove("ag-active"),this.dispatchEvent(r)},t.prototype.refreshSize=function(){var e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))},t.prototype.onMoveStart=function(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var i=this.position,r=i.x,n=i.y,s;this.config.calculateTopBuffer&&(s=this.config.calculateTopBuffer());var a=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:s}),l=a.movementX,u=a.movementY;this.offsetElement(r+l,n+u),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")},t.prototype.setOffsetParent=function(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent},t.prototype.findBoundaryElement=function(){for(var e=this.element;e;){if(window.getComputedStyle(e).position!=="static")return e;e=e.parentElement}return this.element},t.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}},t.prototype.destroy=function(){o.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()},Vd([E("popupService")],t.prototype,"popupService",void 0),Vd([E("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Vd([E("dragService")],t.prototype,"dragService",void 0),t}
53(ee),mT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),kd=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Ku=function(o){mT(t,o);function t(e){var i=o.call(this)||this;return i.filterNameKey=e,i.applyActive=!1,i.hidePopup=null,i.debouncePending=!1,i.appliedModel=null,i.buttonListeners=[],i}return t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new Ao(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new tw(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)},t.prototype.handleKeyDown=function(e){},t.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.resetTemplate=function(e){var i=this.getGui();i&&i.removeEventListener("submit",this.onFormSubmit);var r=` 54 <form class="ag-filter-wrapper"> 55 <div class="ag-filter-body-wrapper ag-`.concat(this.getCssIdentifier(),`-body-wrapper" ref="eFilterBody"> 56 `).concat(this.createBodyTemplate(),` 57 </div> 58 </form>`);this.setTemplate(r,e),i=this.getGui(),i&&i.addEventListener("submit",this.onFormSubmit)},t.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},t.prototype.init=function(e){var i=this;this.setParams(e),this.resetUiToDefaults(!0).then(function(){i.updateUiVisibility(),i.setupOnBtApplyDebounce()})},t.prototype.setParams=function(e){this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),this.resetButtonsPanel()},t.prototype.updateParams=function(e){var i=this;this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),this.resetUiToActiveModel(this.getModel(),function(){i.updateUiVisibility(),i.setupOnBtApplyDebounce()})},t.prototype.resetButtonsPanel=function(){var e=this,i=this.providedFilterParams.buttons,r=i&&i.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(Nt(this.eButtonsPanel),this.buttonListeners.forEach(function(a){return a==null?void 0:a()}),this.buttonListeners=[]):r&&(this.eButtonsPanel=document.createElement("div"),this.eButtonsPanel.classList.add("ag-filter-apply-panel")),!r){this.eButtonsPanel&&br(this.eButtonsPanel);return}var n=document.createDocumentFragment(),s=function(a){var l,u;switch(a){case"apply":l=e.translate("applyFilter"),u=function(f){return e.onBtApply(!1,!1,f)};break;case"clear":l=e.translate("clearFilter"),u=function(){return e.onBtClear()};break;case"reset":l=e.translate("resetFilter"),u=function(){return e.onBtReset()};break;case"cancel":l=e.translate("cancelFilter"),u=function(f){e.onBtCancel(f)};break;default:console.warn("AG Grid: Unknown button type specified");return}var c=a==="apply"?"submit":"button",p=pi(`<button 59 type="`.concat(c,`" 60 ref="`).concat(a,`FilterButton" 61 class="ag-button ag-standard-button ag-filter-apply-panel-button" 62 >`).concat(l,` 63 </button>`));e.buttonListeners.push(e.addManagedListener(p,"click",u)),n.append(p)};Ch(i).forEach(function(a){return s(a)}),this.eButtonsPanel.append(n),this.getGui().appendChild(this.eButtonsPanel)},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=this,i=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs()),r=Oi(this.checkApplyDebounce.bind(this),i);this.onBtApplyDebounce=function(){e.debouncePending=!0,r()}},t.prototype.checkApplyDebounce=function(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())},t.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},t.prototype.setModel=function(e){var i=this,r=e!=null?this.setModelIntoUi(e):this.resetUiToDefaults();return r.then(function(){i.updateUiVisibility(),i.applyModel("api")})},t.prototype.onBtCancel=function(e){var i=this;this.resetUiToActiveModel(this.getModel(),function(){i.handleCancelEnd(e)})},t.prototype.handleCancelEnd=function(e){this.providedFilterParams.closeOnApply&&this.close(e)},t.prototype.resetUiToActiveModel=function(e,i){var r=this,n=function(){r.onUiChanged(!1,"prevent"),i==null||i()};e!=null?this.setModelIntoUi(e).then(n):this.resetUiToDefaults().then(n)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then(function(){return e.onUiChanged()})},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(e){var i=this.getModelFromUi();if(!this.isModelValid(i))return!1;var r=this.appliedModel;return this.appliedModel=i,!this.areModelsEqual(r,i)},t.prototype.isModelValid=function(e){return!0},t.prototype.onFormSubmit=function(e){e.preventDefault()},t.prototype.onBtApply=function(e,i,r){if(e===void 0&&(e=!1),i===void 0&&(i=!1),r&&r.preventDefault(),this.applyModel(i?"rowDataUpdated":"ui")){var n="columnFilter";this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:i,source:n})}var s=this.providedFilterParams.closeOnApply;s&&this.applyActive&&!e&&!i&&this.close(r)},t.prototype.onNewRowsLoaded=function(){},t.prototype.close=function(e){if(this.hidePopup){var i=e,r=i&&i.key,n;(r==="Enter"||r==="Space")&&(n={keyboardEvent:i}),this.hidePopup(n),this.hidePopup=null}},t.prototype.onUiChanged=function(e,i){if(e===void 0&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){var r=this.isModelValid(this.getModelFromUi()),n=this.getRefElement("applyFilterButton");n&&Ss(n,!r)}e&&!i||i==="immediately"?this.onBtApply(e):(!this.applyActive&&!i||i==="debounce")&&this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(e==null?void 0:e.container)},t.prototype.refreshFilterResizer=function(e){if(!(!this.positionableFeature||e==="toolPanel")){var i=e==="floatingFilter"||e==="columnFilter",r=this,n=r.positionableFeature,s=r.gridOptionsService;i?(n.restoreLastSize(),n.setResizable(s.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setRe
63sizable(!1)),this.positionableFeature.constrainSizeToAvailableHeight(!0)}},t.prototype.afterGuiDetached=function(){this.checkApplyDebounce(),this.positionableFeature&&this.positionableFeature.constrainSizeToAvailableHeight(!1)},t.getDebounceMs=function(e,i){return t.isUseApplyButton(e)?(e.debounceMs!=null&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):e.debounceMs!=null?e.debounceMs:i},t.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.refresh=function(e){return this.providedFilterParams=e,!0},t.prototype.destroy=function(){var e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),this.appliedModel=null,o.prototype.destroy.call(this)},t.prototype.translate=function(e){var i=this.localeService.getLocaleTextFunc();return i(e,ZC[e])},t.prototype.getCellValue=function(e){return this.providedFilterParams.getValue(e)},t.prototype.getPositionableElement=function(){return this.eFilterBody},kd([E("rowModel")],t.prototype,"rowModel",void 0),kd([se("eFilterBody")],t.prototype,"eFilterBody",void 0),kd([ie],t.prototype,"postConstruct",null),t}(We),CT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),wT=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},iw=function(o){CT(t,o);function t(e,i){var r=o.call(this,i)||this;return r.labelSeparator="",r.labelAlignment="left",r.disabled=!1,r.label="",r.config=e||{},r}return t.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,i=e.labelSeparator,r=e.label,n=e.labelWidth,s=e.labelAlignment;i!=null&&this.setLabelSeparator(i),r!=null&&this.setLabel(r),n!=null&&this.setLabelWidth(n),this.setLabelAlignment(s||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){Nt(this.eLabel),typeof this.label=="string"?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),this.label===""?(it(this.eLabel,!1),Lt(this.eLabel,"presentation")):(it(this.eLabel,!0),Lt(this.eLabel,null))},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&this.refreshLabel(),this)},t.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-".concat(this.getCompId(),"-label"),this.eLabel.id},t.prototype.getLabel=function(){return this.label},t.prototype.setLabel=function(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)},t.prototype.setLabelAlignment=function(e){var i=this.getGui(),r=i.classList;return r.toggle("ag-label-align-left",e==="left"),r.toggle("ag-label-align-right",e==="right"),r.toggle("ag-label-align-top",e==="top"),this},t.prototype.setLabelEllipsis=function(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this},t.prototype.setLabelWidth=function(e){return this.label==null?this:($a(this.eLabel,e),this)},t.prototype.setDisabled=function(e){e=!!e;var i=this.getGui();return Ss(i,e),i.classList.toggle("ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},wT([ie],t.prototype,"postConstruct",null),t}(We),ST=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&
63(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),rw=function(o){ST(t,o);function t(e,i,r){var n=o.call(this,e,i)||this;return n.className=r,n}return t.prototype.postConstruct=function(){o.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className),this.refreshAriaLabelledBy()},t.prototype.refreshAriaLabelledBy=function(){var e=this.getAriaElement(),i=this.getLabelId();SC(e)!==null?Uu(e,""):Uu(e,i??"")},t.prototype.setAriaLabel=function(e){return Hn(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this},t.prototype.onValueChange=function(e){var i=this;return this.addManagedListener(this,T.EVENT_FIELD_VALUE_CHANGED,function(){return e(i.getValue())}),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return Bi(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,i){return this.value===e?this:(this.previousValue=this.value,this.value=e,i||this.dispatchEvent({type:T.EVENT_FIELD_VALUE_CHANGED}),this)},t}(iw),ET=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ta=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},_T=` 64 <div class="ag-picker-field" role="presentation"> 65 <div ref="eLabel"></div> 66 <div ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-picker-collapsed"> 67 <div ref="eDisplayField" class="ag-picker-field-display"></div> 68 <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div> 69 </div> 70 </div>`,nw=function(o){ET(t,o);function t(e){var i=o.call(this,e,(e==null?void 0:e.template)||_T,e==null?void 0:e.className)||this;if(i.isPickerDisplayed=!1,i.skipClick=!1,i.pickerGap=4,i.hideCurrentPicker=null,i.ariaRole=e==null?void 0:e.ariaRole,i.onPickerFocusIn=i.onPickerFocusIn.bind(i),i.onPickerFocusOut=i.onPickerFocusOut.bind(i),!e)return i;var r=e.pickerGap,n=e.maxPickerHeight,s=e.variableWidth,a=e.minPickerWidth,l=e.maxPickerWidth;return r!=null&&(i.pickerGap=r),i.variableWidth=!!s,n!=null&&i.setPickerMaxHeight(n),a!=null&&i.setPickerMinWidth(a),l!=null&&i.setPickerMaxWidth(l),i}return t.prototype.postConstruct=function(){o.prototype.postConstruct.call(this),this.setupAria();var e="ag-".concat(this.getCompId(),"-display");this.eDisplayField.setAttribute("id",e);var i=this.getAriaElement();this.addManagedListener(i,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(this.eLabel,"mousedown",this.onLabelOrWrapperMouseDown.bind(this)),this.addManagedListener(this.eWrapper,"mousedown",this.onLabelOrWrapperMouseDown.bind(this));var r=this.config.pickerIcon;if(r){var n=bt(r,this.gridOptionsService);n&&this.eIcon.appendChild(n)}},t.prototype.setupAria=function(){var e=this.getAriaElement();e.setAttribute("tabindex",this.gridOptionsService.get("tabIndex").toString()),qr(e,!1),this.ariaRole&&Lt(e,this.ariaRole)},t.prototype.onLabelOrWrapperMouseDown=function(e){if(e){var i=this.getFocusableElement();if(i!==this.eWrapper&&(e==null?void 0:e.target)===i)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())},t.prototype.onKeyDown=function(e){switch(e.key){case W.UP:case W.DOWN:case W.ENTER:case W.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case W.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}},t.prototype.showPicker=function(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());var e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)},t.prototype.renderAndPositionPicker=function(){var e=this,i=this.gridOptionsService.getDocument(),r=this.pickerComponent.getGui();this.gridOptionsService.get("suppressScrollWhenPopupsAreOpen")||(this.destroyMouseWheelFunc=this.addManagedListener(this.eventService,T.EVENT_BODY_SCROLL,function(){e.hidePicker()}));var n=this.localeService.getLocaleTextFunc(),s=this.config,a=s.pickerAriaLabelKey,l=s.pickerAriaLabelValue,u=s.modalPicker,c=u===void 0?!0:u,p={modal:c,eChild:r,closeOnEsc:!0,closedCallback:function(){var P=i.activeElement===i.body;e.beforeHidePicker(),P&&e.isAlive()&&e.getFocusableElement().focus()},ariaLabel:n(a,l)},f=this.popupService.addPopup(p),v=this,y=v.maxPickerHeight,w=v.minPickerWidth,b=v.maxPickerWidth,O=v.variableWidth;O?(w&&(r.style.minWidth=w),r.style.width=Oc(ja(this.eWrapper)),b&&(r.style.maxWidth=b)):$a(r,b??ja(this.eWrapper));var A=y??"".concat(sl(this.popupService.getPopupParent()),"px");return r.style.setProperty("max-height",A),r.style.position="absolute",this.alignPickerToComponent(),f.hideFunc},t.prototype.alignPickerToComponent=function(){if(this.pickerComponent){var e=this.config.pickerType,i=this.pickerGap,r=this.gridOptionsService.get("enableRtl")?"right":"left";this.popupService.positionPopupByComponent({type:e,eventSource:this.eWrapper,ePopup:this.pickerComponent.getGui(),position:"under",alignSide:r,keepWithinBounds:!0,nudgeY:i})}},t.prototype.beforeHidePicker=function(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);var e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null},t.prototype.toggleExpandedStyles=function(e){if(this.isAlive()){var i=this.getAriaElement();qr(i,e),this.eWrapper.classList.toggle("ag-picker-expanded",e),this.eWrapper.classList.toggle("ag-picker-collapsed",!e)}},t.prototype.onPickerFocusIn=function(){this.togglePickerHasFocus(!0)},t.prototype.onPickerFocusOut=function(e){var i;!((i=this.pickerComponent)===null||i===void 0)&&i.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)},t.prototype.togglePickerHasFocus=function(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)},t.prototype.hidePicker=function(){this.hideCurrentPicker&&this.hideCurrentPicker()},t.prototype.setInputWidth=function(e){return $a(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},t.prototype.setPickerGap=function(e){return this.pickerGap=e,this},t.prototype.setPickerMinWidth=function(e){return typeof e=="number"&&(e="".concat(e,"px")),this.minPickerWidth=e??void 0,this},t.prototype.setPickerMaxWidth=function(e){return typeof e=="number"&&(e="".concat(e,"px")),this.maxPickerWidth=e??void 0,this},t.prototype.setPickerMaxHeight=function(e){return typeof e=="number"&&(e="".concat(e,"px")),this.maxPickerHeight=e??void 0,this},t.prototype.destroy=function(){this.hidePicker(),o.prototype.destroy.call(this)},ta([E("popupService")],t.prototype,"popupService",void 0),ta([se("eLabel")],t.prototype,"eLabel",void 0),ta([se("eWrapper")],t.prototype,"eWrapper",void 0),ta([se("eDisplayField")],t.prototype,"eDisplayField",void 0),ta([se("eIcon")],t.prototype,"eIcon",void 0),t}
70(rw),OT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),bT=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},fg=function(o){OT(t,o);function t(e){e===void 0&&(e="default");var i=o.call(this,'<div class="ag-list ag-'.concat(e,'-list" role="listbox"></div>'))||this;return i.cssIdentifier=e,i.options=[],i.itemEls=[],i}return t.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){var i=e.key;switch(i){case W.ENTER:if(!this.highlightedEl)this.setValue(this.getValue());else{var r=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(r)}break;case W.DOWN:case W.UP:var n=i===W.DOWN,s=void 0;if(e.preventDefault(),!this.highlightedEl)s=this.itemEls[n?0:this.itemEls.length-1];else{var a=this.itemEls.indexOf(this.highlightedEl),l=a+(n?1:-1);l=Math.min(Math.max(l,0),this.itemEls.length-1),s=this.itemEls[l]}this.highlightItem(s);break}},t.prototype.addOptions=function(e){var i=this;return e.forEach(function(r){return i.addOption(r)}),this},t.prototype.addOption=function(e){var i=e.value,r=e.text,n=Dt(r||i);return this.options.push({value:i,text:n}),this.renderOption(i,n),this.updateIndices(),this},t.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach(function(i,r){Qf(i,r+1),Xf(i,e.length)})},t.prototype.renderOption=function(e,i){var r=this,n=document.createElement("div");Lt(n,"option"),n.classList.add("ag-list-item","ag-".concat(this.cssIdentifier,"-list-item")),n.innerHTML="<span>".concat(i,"</span>"),n.tabIndex=-1,this.itemEls.push(n),this.addManagedListener(n,"mouseover",function(){return r.highlightItem(n)}),this.addManagedListener(n,"mouseleave",function(){return r.clearHighlighted()}),this.addManagedListener(n,"click",function(){return r.setValue(e)}),this.getGui().appendChild(n)},t.prototype.setValue=function(e,i){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(),this;var r=this.options.findIndex(function(s){return s.value===e});if(r!==-1){var n=this.options[r];this.value=n.value,this.displayValue=n.text!=null?n.text:n.value,this.highlightItem(this.itemEls[r]),i||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var i=this.options.findIndex(function(r){return r.value===e.value});i!==-1&&this.highlightItem(this.itemEls[i])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){Ti(e)&&(this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(t.ACTIVE_CLASS),ws(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){!this.highlightedEl||!Ti(this.highlightedEl)||(this.highlightedEl.classList.remove(t.ACTIVE_CLASS),ws(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:T.EVENT_FIELD_VALUE_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",t.ACTIVE_CLASS="ag-active-item",bT([ie],t.prototype,"init",null),t}
70(We),TT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),sf=function(){return sf=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},sf.apply(this,arguments)},Tc=function(o){TT(t,o);function t(e){return o.call(this,sf({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"smallDown",ariaRole:"combobox"},e))||this}return t.prototype.postConstruct=function(){o.prototype.postConstruct.call(this),this.createListComponent(),this.eWrapper.tabIndex=this.gridOptionsService.get("tabIndex")},t.prototype.createListComponent=function(){var e=this;this.listComponent=this.createBean(new fg("select")),this.listComponent.setParentComponent(this);var i=this.listComponent.getAriaElement(),r="ag-select-list-".concat(this.listComponent.getCompId());i.setAttribute("id",r),eh(this.getAriaElement(),i),this.listComponent.addGuiEventListener("keydown",function(n){n.key===W.TAB&&(n.preventDefault(),n.stopImmediatePropagation(),e.getGui().dispatchEvent(new KeyboardEvent("keydown",{key:n.key,shiftKey:n.shiftKey,ctrlKey:n.ctrlKey,bubbles:!0})))}),this.listComponent.addManagedListener(this.listComponent,fg.EVENT_ITEM_SELECTED,function(){e.hidePicker(),e.dispatchEvent({type:t.EVENT_ITEM_SELECTED})}),this.listComponent.addManagedListener(this.listComponent,T.EVENT_FIELD_VALUE_CHANGED,function(){e.listComponent&&(e.setValue(e.listComponent.getValue(),!1,!0),e.hidePicker())})},t.prototype.createPickerComponent=function(){return this.listComponent},t.prototype.showPicker=function(){this.listComponent&&(o.prototype.showPicker.call(this),this.listComponent.refreshHighlighted())},t.prototype.addOptions=function(e){var i=this;return e.forEach(function(r){return i.addOption(r)}),this},t.prototype.addOption=function(e){return this.listComponent.addOption(e),this},t.prototype.setValue=function(e,i,r){if(this.value===e||!this.listComponent)return this;r||this.listComponent.setValue(e,!0);var n=this.listComponent.getValue();return n===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),o.prototype.setValue.call(this,e,i))},t.prototype.destroy=function(){this.listComponent&&(this.destroyBean(this.listComponent),this.listComponent=void 0),o.prototype.destroy.call(this)},t.EVENT_ITEM_SELECTED="selectedItem",t}(nw),RT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Bd=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},On=function(o){RT(t,o);function t(e,i,r,n){r===void 0&&(r="text"),n===void 0&&(n="input");var s=o.call(this,e,` 71 <div role="presentation"> 72 <div ref="eLabel" class="ag-input-field-label"></div> 73 <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation"> 74 <`.concat(n,' ref="eInput" class="ag-input-field-input"></').concat(n,`> 75 </div> 76 </div>`),i)||this;return s.inputType=r,s.displayFieldTag=n,s}return t.prototype.postConstruct=function(){o.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add("".concat(this.className,"-label")),this.eWrapper.classList.add("".concat(this.className,"-input-wrapper")),this.eInput.classList.add("".concat(this.className,"-input")),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-".concat(this.getCompId(),"-input");var e=this.config,i=e.width,r=e.value;i!=null&&this.setWidth(i),r!=null&&this.setValue(r),this.addInputListeners(),this.activateTabIndex([this.eInput])},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",function(i){return e.setValue(i.target.value)})},t.prototype.setInputType=function(){this.displayFieldTag==="input"&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return $a(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},t.prototype.getFocusableElement=function(){return this.eInput},t.prototype.setMaxLength=function(e){var i=this.eInput;return i.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){return Ar(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return Hn(this.eInput,e),this.refreshAriaLabelledBy(),this},t.prototype.setDisabled=function(e){return Ss(this.eInput,e),o.prototype.setDisabled.call(this,e)},t.prototype.setAutoComplete=function(e){if(e===!0)Ar(this.eInput,"autocomplete",null);else{var i=typeof e=="string"?e:"off";Ar(this.eInput,"autocomplete",i)}return this},Bd([se("eLabel")],t.prototype,"eLabel",void 0),Bd([se("eWrapper")],t.prototype,"eWrapper",void 0),Bd([se("eInput")],t.prototype,"eInput",void 0),t}
76(rw),AT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Rc=function(o){AT(t,o);function t(e,i,r){i===void 0&&(i="ag-checkbox"),r===void 0&&(r="checkbox");var n=o.call(this,e,i,r)||this;return n.labelAlignment="right",n.selected=!1,n.readOnly=!1,n.passive=!1,n}return t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return this.selected===void 0?!0:!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(e){return this.eWrapper.classList.toggle("ag-disabled",e),o.prototype.setDisabled.call(this,e)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),i=this.getNextValue();this.passive?this.dispatchChange(i,e):this.setValue(i)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,i){return this.refreshSelectedClass(e),this.setSelected(e,i),this},t.prototype.setName=function(e){var i=this.getInputElement();return i.name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,i){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=e===void 0,i||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,i,r){this.dispatchEvent({type:T.EVENT_FIELD_VALUE_CHANGED,selected:e,previousValue:i,event:r});var n=this.getInputElement(),s={type:T.EVENT_CHECKBOX_CHANGED,id:n.id,name:n.name,selected:e,previousValue:i};this.eventService.dispatchEvent(s)},t.prototype.onCheckboxClick=function(e){if(!(this.passive||this.eInput.disabled)){var i=this.isSelected(),r=this.selected=e.target.checked;this.refreshSelectedClass(r),this.dispatchChange(r,i,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",e===!0),this.eWrapper.classList.toggle("ag-indeterminate",e==null)},t}(On),PT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ow=function(o){PT(t,o);function t(e){return o.call(this,e,"ag-radio-button","radio")||this}return t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},t.prototype.addInputListeners=function(){o.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,T.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},t.prototype.onChange=function(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)},t}(Rc),DT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}
76t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),LT=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},FT=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},wh=function(){function o(t,e,i){this.localeService=t,this.optionsFactory=e,this.valueFormatter=i}return o.prototype.getModelAsString=function(t){var e=this;if(!t)return null;var i=t.operator!=null,r=this.localeService.getLocaleTextFunc();if(i){var n=t,s=n.conditions;if(!s){var a=n.condition1,l=n.condition2;s=[a,l]}var u=s.map(function(O){return e.getModelAsString(O)}),c=n.operator==="AND"?"andCondition":"orCondition";return u.join(" ".concat(r(c,ZC[c])," "))}else{if(t.type===Ct.BLANK||t.type===Ct.NOT_BLANK)return r(t.type,t.type);var p=t,f=this.optionsFactory.getCustomOption(p.type),v=f||{},y=v.displayKey,w=v.displayName,b=v.numberOfInputs;return y&&w&&b===0?(r(y,w),w):this.conditionToString(p,f)}},o.prototype.updateParams=function(t){this.optionsFactory=t.optionsFactory},o.prototype.formatValue=function(t){var e;return this.valueFormatter?(e=this.valueFormatter(t??null))!==null&&e!==void 0?e:"":String(t)},o}(),Ct=function(o){DT(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.eTypes=[],e.eJoinOperatorPanels=[],e.eJoinOperatorsAnd=[],e.eJoinOperatorsOr=[],e.eConditionBodies=[],e.listener=function(){return e.onUiChanged()},e.lastUiCompletePosition=null,e.joinOperatorId=0,e}return t.prototype.getNumberOfInputs=function(e){var i=this.optionsFactory.getCustomOption(e);if(i){var r=i.numberOfInputs;return r??1}var n=[t.EMPTY,t.NOT_BLANK,t.BLANK];return e&&n.indexOf(e)>=0?0:e===t.IN_RANGE?2:1},t.prototype.onFloatingFilterChanged=function(e,i){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(i),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){var i=this;this.eTypes.forEach(function(r,n){n===0?r.setValue(e,!0):r.setValue(i.optionsFactory.getDefaultOption(),!0)})},t.prototype.getModelFromUi=function(){var e=this.getUiCompleteConditions();return e.length===0?null:this.maxNumConditions>1&&e.length>1?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:e[0],condition2:e[1],conditions:e}:e[0]},t.prototype.getConditionTypes=function(){return this.eTypes.map(function(e){return e.getValue()})},t.prototype.getConditionType=function(e){return this.eTypes[e].getValue()},t.prototype.getJoinOperator=function(){return this.eJoinOperatorsOr.length===0?this.defaultJoinOperator:this.eJoinOperatorsOr[0].getValue()===!0?"OR":"AND"},t.prototype.areModelsEqual=function(e,i){var r=this;if(!e&&!i)return!0;if(!e&&i||e&&!i)return!1;var n=!e.operator,s=!i.operator,a=!n&&s||n&&!s;if(a)return!1;var l;if(n){var u=e,c=i;l=this.areSimpleModelsEqual(u,c)}else{var p=e,f=i;l=p.operator===f.operator&&jr(p.conditions,f.conditions,function(v,y){return r.areSimpleModelsEqual(v,y)})}return l},t.prototype.shouldRefresh=function(e){var i,r,n,s=this.getModel(),a=s?(i=s.conditions)!==null&&i!==void 0?i:[s]:null,l=(n=(r=e.filterOptions)===null||r===void 0?void 0:r.map(function(c){return typeof c=="string"?c:c.displayKey}))!==null&&n!==void 0?n:this.getDefaultFilterOptions(),u=!a||a.every(function(c){return l.find(function(p){return p===c.type})!==void 0});return!(!u||typeof e.maxNumConditions=="number"&&a&&a.length>e.maxNumConditions)},t.prototype.refresh=function(e){if(!this.shouldRefresh(e))return!1;var i=o.prototype.refresh.call(this,e);return i?(this.setParams(e),this.removeConditionsAndOperators(0),this.createOption(),this.setModel(this.getModel()),!0):!1},t.prototype.setModelIntoUi=function(e){var i=this,r=e.operator;if(r){var n=e;n.conditions||(n.conditions=[n.condition1,n.condition2]);var s=this.validateAndUpdateConditions(n.conditions),a=this.getNumC
76onditions();if(s<a)this.removeConditionsAndOperators(s);else if(s>a)for(var l=a;l<s;l++)this.createJoinOperatorPanel(),this.createOption();var u=n.operator==="OR";this.eJoinOperatorsAnd.forEach(function(p){return p.setValue(!u,!0)}),this.eJoinOperatorsOr.forEach(function(p){return p.setValue(u,!0)}),n.conditions.forEach(function(p,f){i.eTypes[f].setValue(p.type,!0),i.setConditionIntoUi(p,f)})}else{var c=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(c.type,!0),this.setConditionIntoUi(c,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),Ei.resolve()},t.prototype.validateAndUpdateConditions=function(e){var i=e.length;return i>this.maxNumConditions&&(e.splice(this.maxNumConditions),Le('Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.'),i=this.maxNumConditions),i},t.prototype.doesFilterPass=function(e){var i=this,r,n=this.getModel();if(n==null)return!0;var s=n.operator,a=[];if(s){var l=n;a.push.apply(a,FT([],LT((r=l.conditions)!==null&&r!==void 0?r:[]),!1))}else a.push(n);var u=s&&s==="OR"?"some":"every";return a[u](function(c){return i.individualConditionPasses(e,c)})},t.prototype.setParams=function(e){o.prototype.setParams.call(this,e),this.setNumConditions(e),this.defaultJoinOperator=this.getDefaultJoinOperator(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.optionsFactory=new JC,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute("tabindex","-1")},t.prototype.setNumConditions=function(e){var i,r;e.suppressAndOrCondition!=null&&Le('Since v29.2 "filterParams.suppressAndOrCondition" is deprecated. Use "filterParams.maxNumConditions = 1" instead.'),e.alwaysShowBothConditions!=null&&Le('Since v29.2 "filterParams.alwaysShowBothConditions" is deprecated. Use "filterParams.numAlwaysVisibleConditions = 2" instead.'),this.maxNumConditions=(i=e.maxNumConditions)!==null&&i!==void 0?i:e.suppressAndOrCondition?1:2,this.maxNumConditions<1&&(Le('"filterParams.maxNumConditions" must be greater than or equal to zero.'),this.maxNumConditions=1),this.numAlwaysVisibleConditions=(r=e.numAlwaysVisibleConditions)!==null&&r!==void 0?r:e.alwaysShowBothConditions?2:1,this.numAlwaysVisibleConditions<1&&(Le('"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.'),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(Le('"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".'),this.numAlwaysVisibleConditions=this.maxNumConditions)},t.prototype.createOption=function(){var e=this,i=this.createManagedBean(new Tc);this.eTypes.push(i),i.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(i.getGui());var r=this.createValueElement();this.eConditionBodies.push(r),this.eFilterBody.appendChild(r),this.putOptionsIntoDropdown(i),this.resetType(i);var n=this.getNumConditions()-1;this.forEachPositionInput(n,function(s){return e.resetInput(s)}),this.addChangedListeners(i,n)},t.prototype.createJoinOperatorPanel=function(){var e=document.createElement("div");this.eJoinOperatorPanels.push(e),e.classList.add("ag-filter-condition");var i=this.createJoinOperator(this.eJoinOperatorsAnd,e,"and"),r=this.createJoinOperator(this.eJoinOperatorsOr,e,"or");this.eFilterBody.appendChild(e);var n=this.eJoinOperatorPanels.length-1,s=this.joinOperatorId++;this.resetJoinOperatorAnd(i,n,s),this.resetJoinOperatorOr(r,n,s),this.isReadOnly()||(i.onValueChange(this.listener),r.onValueChange(this.listener))},t.prototype.createJoinOperator=function(e,i,r){var n=this.createManagedBean(new ow);return e.push(n),n.addCssClass("ag-filter-condition-operator"),n.addCssClass("ag-filter-condition-operator-".concat(r)),i.appendChild(n.getGui()),n},t.prototype.getDefaultJoinOperator=function(e){return e==="AND"||e==="OR"?e:"AND"},t.prototype.createFilterListOptions=function(){var e=this,i=this.optionsFactory.getFilterOptions();this.filterListOptions=i.map(function(r){return typeof r=="string"?e.createBoilerplateListOption(r):e.createCustomListOption(r)})},t.prototype.putOptionsIntoDropdown=function(e){this.filterListOptions.forEach(function(i){e.addOption(i)}),e.setDisabled(this.filterListOptions.length<=1)},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var i=e.displayKey,r=this.optionsFactory.getCustomOption(e.displayKey);return{value:i,text:r?this.localeService.getLocaleTextFunc()(r.displayKey,r.displayName):this.translate(i)}},t.prototype.isAllowTwoConditions=function(){return this.maxNumConditions>=2},t.prototype.createBodyTemplate=function(){return""},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)},t.prototype.updateNumConditions=function(){for(var e,i=-1,r=!0,n=0;
76n<this.getNumConditions();n++)this.isConditionUiComplete(n)?i=n:r=!1;if(this.shouldAddNewConditionAtEnd(r))this.createJoinOperatorPanel(),this.createOption();else{var s=(e=this.lastUiCompletePosition)!==null&&e!==void 0?e:this.getNumConditions()-2;if(i<s){this.removeConditionsAndOperators(s+1);var a=i+1,l=s-a;l>0&&this.removeConditionsAndOperators(a,l),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=i},t.prototype.updateConditionStatusesAndValues=function(e,i){var r=this;this.eTypes.forEach(function(s,a){var l=r.isConditionDisabled(a,e);s.setDisabled(l||r.filterListOptions.length<=1),a===1&&(Ss(r.eJoinOperatorPanels[0],l),r.eJoinOperatorsAnd[0].setDisabled(l),r.eJoinOperatorsOr[0].setDisabled(l))}),this.eConditionBodies.forEach(function(s,a){it(s,r.isConditionBodyVisible(a))});var n=(i??this.getJoinOperator())==="OR";this.eJoinOperatorsAnd.forEach(function(s,a){s.setValue(!n,!0)}),this.eJoinOperatorsOr.forEach(function(s,a){s.setValue(n,!0)}),this.forEachInput(function(s,a,l,u){r.setElementDisplayed(s,a<u),r.setElementDisabled(s,r.isConditionDisabled(l,e))}),this.resetPlaceholder()},t.prototype.shouldAddNewConditionAtEnd=function(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()},t.prototype.removeConditionsAndOperators=function(e,i){if(!(e>=this.getNumConditions())){this.removeComponents(this.eTypes,e,i),this.removeElements(this.eConditionBodies,e,i),this.removeValueElements(e,i);var r=Math.max(e-1,0);this.removeElements(this.eJoinOperatorPanels,r,i),this.removeComponents(this.eJoinOperatorsAnd,r,i),this.removeComponents(this.eJoinOperatorsOr,r,i)}},t.prototype.removeElements=function(e,i,r){var n=this.removeItems(e,i,r);n.forEach(function(s){return br(s)})},t.prototype.removeComponents=function(e,i,r){var n=this,s=this.removeItems(e,i,r);s.forEach(function(a){br(a.getGui()),n.destroyBean(a)})},t.prototype.removeItems=function(e,i,r){return r==null?e.splice(i):e.splice(i,r)},t.prototype.afterGuiAttached=function(e){if(o.prototype.afterGuiAttached.call(this,e),this.resetPlaceholder(),!(e!=null&&e.suppressFocus))if(this.isReadOnly())this.eFilterBody.focus();else{var i=this.getInputs(0)[0];if(!i)return;i instanceof On&&i.getInputElement().focus()}},t.prototype.afterGuiDetached=function(){o.prototype.afterGuiDetached.call(this);var e=this.getModel();this.resetUiToActiveModel(e);for(var i=-1,r=-1,n=!1,s=this.getJoinOperator(),a=this.getNumConditions()-1;a>=0;a--)if(this.isConditionUiComplete(a))i===-1&&(i=a,r=a);else{var l=a>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(a-1),u=a<i;(l||u)&&(this.removeConditionsAndOperators(a,1),n=!0,u&&r--)}var c=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),c=!0),this.shouldAddNewConditionAtEnd(r===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),c=!0),c&&this.updateConditionStatusesAndValues(r,s),n&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=r},t.prototype.getPlaceholderText=function(e,i){var r=this.translate(e);if(Sc(this.filterPlaceholder)){var n=this.filterPlaceholder,s=this.eTypes[i].getValue(),a=this.translate(s);r=n({filterOptionKey:s,filterOption:a,placeholder:r})}else typeof this.filterPlaceholder=="string"&&(r=this.filterPlaceholder);return r},t.prototype.resetPlaceholder=function(){var e=this,i=this.localeService.getLocaleTextFunc();this.forEachInput(function(r,n,s,a){if(r instanceof On){var l=n===0&&a>1?"inRangeStart":n===0?"filterOoo":"inRangeEnd",u=n===0&&a>1?i("ariaFilterFromValue","Filter from value"):n===0?i("ariaFilterValue","Filter Value"):i("ariaFilterToValue","Filter to Value");r.setInputPlaceholder(e.getPlaceholderText(l,s)),r.setInputAriaLabel(u)}})},t.prototype.setElementValue=function(e,i,r){e instanceof On&&e.setValue(i!=null?String(i):null,!0)},t.prototype.setElementDisplayed=function(e,i){e instanceof We&&it(e.getGui(),i)},t.prototype.setElementDisabled=function(e,i){e instanceof We&&Ss(e.getGui(),i)},t.prototype.attachElementOnChange=function(e,i){e instanceof On&&e.onValueChange(i)}
76,t.prototype.forEachInput=function(e){var i=this;this.getConditionTypes().forEach(function(r,n){i.forEachPositionTypeInput(n,r,e)})},t.prototype.forEachPositionInput=function(e,i){var r=this.getConditionType(e);this.forEachPositionTypeInput(e,r,i)},t.prototype.forEachPositionTypeInput=function(e,i,r){for(var n=this.getNumberOfInputs(i),s=this.getInputs(e),a=0;a<s.length;a++){var l=s[a];l!=null&&r(l,a,e,n)}},t.prototype.isConditionDisabled=function(e,i){return this.isReadOnly()?!0:e===0?!1:e>i+1},t.prototype.isConditionBodyVisible=function(e){var i=this.getConditionType(e),r=this.getNumberOfInputs(i);return r>0},t.prototype.isConditionUiComplete=function(e){if(e>=this.getNumConditions())return!1;var i=this.getConditionType(e);return!(i===t.EMPTY||this.getValues(e).some(function(r){return r==null}))},t.prototype.getNumConditions=function(){return this.eTypes.length},t.prototype.getUiCompleteConditions=function(){for(var e=[],i=0;i<this.getNumConditions();i++)this.isConditionUiComplete(i)&&e.push(this.createCondition(i));return e},t.prototype.createMissingConditionsAndOperators=function(){if(!this.isReadOnly())for(var e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()},t.prototype.resetUiToDefaults=function(e){var i=this;return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(function(r){return i.resetType(r)}),this.eJoinOperatorsAnd.forEach(function(r,n){return i.resetJoinOperatorAnd(r,n,i.joinOperatorId+n)}),this.eJoinOperatorsOr.forEach(function(r,n){return i.resetJoinOperatorOr(r,n,i.joinOperatorId+n)}),this.joinOperatorId++,this.forEachInput(function(r){return i.resetInput(r)}),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,e||this.onUiChanged(),Ei.resolve()},t.prototype.resetType=function(e){var i=this.localeService.getLocaleTextFunc(),r=i("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.getDefaultOption(),!0).setAriaLabel(r).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)},t.prototype.resetJoinOperatorAnd=function(e,i,r){this.resetJoinOperator(e,i,this.isDefaultOperator("AND"),this.translate("andCondition"),r)},t.prototype.resetJoinOperatorOr=function(e,i,r){this.resetJoinOperator(e,i,this.isDefaultOperator("OR"),this.translate("orCondition"),r)},t.prototype.resetJoinOperator=function(e,i,r,n,s){this.updateJoinOperatorDisabled(e.setValue(r,!0).setName("ag-simple-filter-and-or-".concat(this.getCompId(),"-").concat(s)).setLabel(n),i)},t.prototype.updateJoinOperatorsDisabled=function(){var e=this;this.eJoinOperatorsAnd.forEach(function(i,r){return e.updateJoinOperatorDisabled(i,r)}),this.eJoinOperatorsOr.forEach(function(i,r){return e.updateJoinOperatorDisabled(i,r)})},t.prototype.updateJoinOperatorDisabled=function(e,i){e.setDisabled(this.isReadOnly()||i>0)},t.prototype.resetInput=function(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())},t.prototype.setConditionIntoUi=function(e,i){var r=this,n=this.mapValuesFromModel(e);this.forEachInput(function(s,a,l,u){l===i&&r.setElementValue(s,n[a]!=null?n[a]:null)})},t.prototype.setValueFromFloatingFilter=function(e){var i=this;this.forEachInput(function(r,n,s,a){i.setElementValue(r,n===0&&s===0?e:null,!0)})},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(e,i){var r=this;this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(i,function(n){r.attachElementOnChange(n,r.listener)}))},t.prototype.individualConditionPasses=function(e,i){var r=this.getCellValue(e.node),n=this.mapValuesFromModel(i),s=this.optionsFactory.getCustomOption(i.type),a=this.evaluateCustomFilter(s,n,r);return a??(r==null?this.evaluateNullValue(i.type):this.evaluateNonNullValue(n,r,i,e))},t.prototype.evaluateCustomFilter=function(e,i,r){if(e!=null){var n=e.predicate;if(n!=null&&!i.some(function(s){return s==null}))return n(i,r)}},t.prototype.isBlank=function(e){return e==null||typeof e=="string"&&e.trim().length===0},t.prototype.hasInvalidInputs=function(){return!1},t.EMPTY="empty",t.BLANK="blank",t.NOT_BLANK="notBlank",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",t}
76(Ku),MT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Rt=function(o){MT(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.setParams=function(e){o.prototype.setParams.call(this,e),this.scalarFilterParams=e},t.prototype.evaluateNullValue=function(e){switch(e){case t.EQUALS:case t.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case t.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case t.BLANK:return!0;case t.NOT_BLANK:return!1}return!1},t.prototype.evaluateNonNullValue=function(e,i,r){var n=this.comparator(),s=e[0]!=null?n(e[0],i):0;switch(r.type){case t.EQUALS:return s===0;case t.NOT_EQUAL:return s!==0;case t.GREATER_THAN:return s>0;case t.GREATER_THAN_OR_EQUAL:return s>=0;case t.LESS_THAN:return s<0;case t.LESS_THAN_OR_EQUAL:return s<=0;case t.IN_RANGE:{var a=n(e[1],i);return this.scalarFilterParams.inRangeInclusive?s>=0&&a<=0:s>0&&a<0}case t.BLANK:return this.isBlank(i);case t.NOT_BLANK:return!this.isBlank(i);default:return console.warn('AG Grid: Unexpected type of filter "'+r.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},t}(Ct),sw=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),af=function(){return af=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},af.apply(this,arguments)},IT=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},hg=1e3,vg=1/0,aw=function(o){sw(t,o);function t(e,i,r){var n=o.call(this,i,r)||this;return n.dateFilterParams=e,n}return t.prototype.conditionToString=function(e,i){var r=e.type,n=(i||{}).numberOfInputs,s=r==Ct.IN_RANGE||n===2,a=di(e.dateFrom),l=di(e.dateTo),u=this.dateFilterParams.inRangeFloatingFilterDateFormat;if(s){var c=a!==null?hs(a,u):"null",p=l!==null?hs(l,u):"null";return"".concat(c,"-").concat(p)}return a!=null?hs(a,u):"".concat(r)},t.prototype.updateParams=function(e){o.prototype.updateParams.call(this,e),this.dateFilterParams=e.dateFilterParams},t}(wh),lw=function(o){sw(t,o);function t(){var e=o.call(this,"dateFilter")||this;return e.eConditionPanelsFrom=[],e.eConditionPanelsTo=[],e.dateConditionFromComps=[],e.dateConditionToComps=[],e.minValidYear=hg,e.maxValidYear=vg,e.minValidDate=null,e.maxValidDate=null,e}return t.prototype.afterGuiAttached=function(e){o.prototype.afterGuiAttached.call(this,e),this.dateConditionFromComps[0].afterGuiAttached(e)},t.prototype.mapValuesFromModel=function(e){var i=e||{},r=i.dateFrom,n=i.dateTo,s=i.type;return[r&&di(r)||null,n&&di(n)||null].slice(0,this.getNumberOfInputs(s))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,i){var r=i;return i==null||r<e?-1:r>e?1:0},t.prototype.setParams=function(e){this.dateFilterParams=e,o.prototype.setParams.call(this,e);var i=function(r,n){if(e[r]!=null)if(isNaN(e[r]))console.warn("AG Grid: DateFilter ".concat(r," is not a number"));else return e[r]==null?n:Number(e[r]);return n};this.minValidYear=i("minValidYear",hg),this.maxValidYear=i("maxValidYear",vg),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),e.minValidDate?this.minValidDate=e.minValidDate instanceof Date?e.minValidDate:di(e.minValidDate):this.minValidDate=null,e.maxValidDate?this.maxValidDate=e.maxValidDate instanceof Date?e.maxValidDate:di(e.maxValidDate):this.maxValidDate=null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&console.warn("AG Grid: DateFilter minValidDate should be <= maxValidDate"),this.filterModelFormatter=new aw(this.dateFilterParams,this.localeService,this.optionsFactory)},t.prototype.createDateCompWrapper=function(e){var i=this,r=new QC(this.getContext(),this.userComponentFactory,{onDateChanged:function(){return i.onUiChanged()},filterParams:this.dateFilterParams},e);return this.addDestroyFunc(function(){return r.destroy()}),r},t.prototype.setElementValue=function(e,i){e.setDate(i)},t.prototype.setElementDisplayed=function(e,i){e.setDisplayed(i)},t.prototype.setElementDisabled=function(e,i){e.setDisabled(i)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueElement=function(){var e=document.createElement("div");return e.classList.add("ag-filter-body"),this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e},t.prototype.createFromToElement=function(e,i,r,n){var s=document.createElement("div");s.classList.add("ag-filter-".concat(n)),s.classList.add("ag-filter-date-".concat(n)),i.push(s),e.appendChild(s),r.push(this.createDateCompWrapper(s))},t.prototype.removeValueElements=function(e,i){this.removeDateComps(this.dateConditionFromComps,e,i),this.removeDateComps(this.dateConditionToComps,e,i),this.removeItems(this.eConditionPanelsFrom,e,i),this.removeItems(this.eConditionPanelsTo,e,i)},t.prototype.removeDateComps=function(e,i,r){var n=this.removeItems(e,i,r);
76n.forEach(function(s){return s.destroy()})},t.prototype.isValidDateValue=function(e){if(e===null)return!1;if(this.minValidDate){if(e<this.minValidDate)return!1}else if(e.getUTCFullYear()<this.minValidYear)return!1;if(this.maxValidDate){if(e>this.maxValidDate)return!1}else if(e.getUTCFullYear()>this.maxValidYear)return!1;return!0},t.prototype.isConditionUiComplete=function(e){var i=this;if(!o.prototype.isConditionUiComplete.call(this,e))return!1;var r=!0;return this.forEachInput(function(n,s,a,l){a!==e||!r||s>=l||(r=r&&i.isValidDateValue(n.getDate()))}),r},t.prototype.areSimpleModelsEqual=function(e,i){return e.dateFrom===i.dateFrom&&e.dateTo===i.dateTo&&e.type===i.type},t.prototype.getFilterType=function(){return"date"},t.prototype.createCondition=function(e){var i=this.getConditionType(e),r={},n=this.getValues(e);return n.length>0&&(r.dateFrom=ki(n[0])),n.length>1&&(r.dateTo=ki(n[1])),af({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:i},r)},t.prototype.resetPlaceholder=function(){var e=this.localeService.getLocaleTextFunc(),i=this.translate("dateFormatOoo"),r=e("ariaFilterValue","Filter Value");this.forEachInput(function(n){n.setInputPlaceholder(i),n.setInputAriaLabel(r)})},t.prototype.getInputs=function(e){return e>=this.dateConditionFromComps.length?[null,null]:[this.dateConditionFromComps[e],this.dateConditionToComps[e]]},t.prototype.getValues=function(e){var i=[];return this.forEachPositionInput(e,function(r,n,s,a){n<a&&i.push(r.getDate())}),i},t.prototype.translate=function(e){return e===Rt.LESS_THAN?o.prototype.translate.call(this,"before"):e===Rt.GREATER_THAN?o.prototype.translate.call(this,"after"):o.prototype.translate.call(this,e)},t.prototype.getModelAsString=function(e){var i;return(i=this.filterModelFormatter.getModelAsString(e))!==null&&i!==void 0?i:""},t.DEFAULT_FILTER_OPTIONS=[Rt.EQUALS,Rt.NOT_EQUAL,Rt.LESS_THAN,Rt.GREATER_THAN,Rt.IN_RANGE,Rt.BLANK,Rt.NOT_BLANK],IT([E("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(Rt),xT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),uw=function(o){xT(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.isEventFromDataChange=function(e){return e==null?void 0:e.afterDataChange},t.prototype.getLastType=function(){return this.lastType},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setLastTypeFromModel=function(e){if(!e){this.lastType=this.optionsFactory.getDefaultOption();return}var i=e.operator,r;if(i){var n=e;r=n.conditions[0]}else r=e;this.lastType=r.type},t.prototype.canWeEditAfterModelFromParentFilter=function(e){if(!e)return this.isTypeEditable(this.lastType);var i=e.operator;if(i)return!1;var r=e;return this.isTypeEditable(r.type)},t.prototype.init=function(e){this.setSimpleParams(e,!1)},t.prototype.setSimpleParams=function(e,i){i===void 0&&(i=!0),this.optionsFactory=new JC,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),i||(this.lastType=this.optionsFactory.getDefaultOption()),this.readOnly=!!e.filterParams.readOnly;var r=this.isTypeEditable(this.optionsFactory.getDefaultOption());this.setEditable(r)},t.prototype.onParamsUpdated=function(e){this.refresh(e)},t.prototype.refresh=function(e){this.setSimpleParams(e)},t.prototype.doesFilterHaveSingleInput=function(e){var i=this.optionsFactory.getCustomOption(e),r=(i||{}).numberOfInputs;return r==null||r==1},t.prototype.isTypeEditable=function(e){var i=[Ct.IN_RANGE,Ct.EMPTY,Ct.BLANK,Ct.NOT_BLANK];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&i.indexOf(e)<0},t}
76(We),NT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),jd=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},GT=function(o){NT(t,o);function t(){return o.call(this,` 77 <div class="ag-floating-filter-input" role="presentation"> 78 <ag-input-text-field ref="eReadOnlyText"></ag-input-text-field> 79 <div ref="eDateWrapper" style="display: flex;"></div> 80 </div>`)||this}return t.prototype.getDefaultFilterOptions=function(){return lw.DEFAULT_FILTER_OPTIONS},t.prototype.init=function(e){o.prototype.init.call(this,e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent(),this.filterModelFormatter=new aw(this.filterParams,this.localeService,this.optionsFactory);var i=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(i("ariaDateFilterInput","Date Filter Input"))},t.prototype.onParamsUpdated=function(e){this.refresh(e)},t.prototype.refresh=function(e){o.prototype.refresh.call(this,e),this.params=e,this.filterParams=e.filterParams,this.updateDateComponent(),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams}),this.updateCompOnModelChange(e.currentParentModel())},t.prototype.updateCompOnModelChange=function(e){var i=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(i),i){if(e){var r=e;this.dateComp.setDate(di(r.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)},t.prototype.setEditable=function(e){it(this.eDateWrapper,e),it(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(e,i){this.isEventFromFloatingFilter(i)||this.isEventFromDataChange(i)||(o.prototype.setLastTypeFromModel.call(this,e),this.updateCompOnModelChange(e))},t.prototype.onDateChanged=function(){var e=this,i=this.dateComp.getDate(),r=ki(i);this.params.parentFilterInstance(function(n){if(n){var s=di(r);n.onFloatingFilterChanged(e.getLastType()||null,s)}})},t.prototype.getDateComponentParams=function(){var e=Ku.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs());return{onDateChanged:Oi(this.onDateChanged.bind(this),e),filterParams:this.params.column.getColDef().filterParams}},t.prototype.createDateComponent=function(){var e=this;this.dateComp=new QC(this.getContext(),this.userComponentFactory,this.getDateComponentParams(),this.eDateWrapper),this.addDestroyFunc(function(){return e.dateComp.destroy()})},t.prototype.updateDateComponent=function(){var e=this.gridOptionsService.addGridCommonParams(this.getDateComponentParams());this.dateComp.updateParams(e)},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},jd([E("userComponentFactory")],t.prototype,"userComponentFactory",void 0),jd([se("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),jd([se("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(uw),HT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}
80t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),VT=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},kT=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},BT=function(o){HT(t,o);function t(){return o.call(this,` 81 <div class="ag-filter-filter"> 82 <ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field> 83 </div>`)||this}return t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.init=function(e){var i=this;this.params=e,this.setParams(e);var r=this.gridOptionsService.getDocument(),n=this.eDateInput.getInputElement();this.addManagedListener(n,"mousedown",function(){i.eDateInput.isDisabled()||i.usingSafariDatePicker||n.focus()}),this.addManagedListener(n,"input",function(s){s.target===r.activeElement&&(i.eDateInput.isDisabled()||i.params.onDateChanged())})},t.prototype.setParams=function(e){var i=this.eDateInput.getInputElement(),r=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=r&&Dr(),i.type=r?"date":"text";var n=e.filterParams||{},s=n.minValidYear,a=n.maxValidYear,l=n.minValidDate,u=n.maxValidDate;if(l&&s&&Le("DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored."),u&&a&&Le("DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored."),l&&u){var c=kT([l,u].map(function(v){return v instanceof Date?v:di(v)}),2),p=c[0],f=c[1];p&&f&&p.getTime()>f.getTime()&&Le("DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.")}l?l instanceof Date?i.min=hs(l):i.min=l:s&&(i.min="".concat(s,"-01-01")),u?u instanceof Date?i.max=hs(u):i.max=u:a&&(i.max="".concat(a,"-12-31"))},t.prototype.onParamsUpdated=function(e){this.refresh(e)},t.prototype.refresh=function(e){this.params=e,this.setParams(e)},t.prototype.getDate=function(){return di(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(ki(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.setDisabled=function(e){this.eDateInput.setDisabled(e)},t.prototype.afterGuiAttached=function(e){(!e||!e.suppressFocus)&&this.eDateInput.getInputElement().focus()},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&e.filterParams.browserDatePicker!=null?e.filterParams.browserDatePicker:_c()||rh()||Dr()&&ih()>=14.1},VT([se("eDateInput")],t.prototype,"eDateInput",void 0),t}(We),jT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Po=function(o){jT(t,o);function t(e,i,r){return i===void 0&&(i="ag-text-field"),r===void 0&&(r="text"),o.call(this,e,i,r)||this}return t.prototype.postConstruct=function(){o.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},t.prototype.setValue=function(e,i){return this.eInput.value!==e&&(this.eInput.value=Q(e)?e:""),o.prototype.setValue.call(this,e,i)},t.prototype.setStartValue=function(e){this.setValue(e,!0)},t.prototype.preventDisallowedCharacters=function(){var e=new RegExp("[".concat(this.config.allowedCharPattern,"]")),i=function(r){bc(r)&&r.key&&!e.test(r.key)&&r.preventDefault()};this.addManagedListener(this.eInput,"keydown",i),this.addManagedListener(this.eInput,"paste",function(r){var n,s=(n=r.clipboardData)===null||n===void 0?void 0:n.getData("text");s&&s.split("").some(function(a){return!e.test(a)})&&r.preventDefault()})},t}
83(On),WT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Sh=function(o){WT(t,o);function t(e){return o.call(this,e,"ag-number-field","number")||this}return t.prototype.postConstruct=function(){var e=this;o.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",function(){var i=parseFloat(e.eInput.value),r=isNaN(i)?"":e.normalizeValue(i.toString());e.value!==r&&e.setValue(r)}),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any"},t.prototype.onWheel=function(e){document.activeElement===this.eInput&&e.preventDefault()},t.prototype.normalizeValue=function(e){if(e==="")return"";this.precision!=null&&(e=this.adjustPrecision(e));var i=parseFloat(e);return this.min!=null&&i<this.min?e=this.min.toString():this.max!=null&&i>this.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e,i){if(this.precision==null)return e;if(i){var r=parseFloat(e).toFixed(this.precision);return parseFloat(r).toString()}var n=String(e).split(".");if(n.length>1){if(n[1].length<=this.precision)return e;if(this.precision>0)return"".concat(n[0],".").concat(n[1].slice(0,this.precision))}return n[0]},t.prototype.setMin=function(e){return this.min===e?this:(this.min=e,Ar(this.eInput,"min",e),this)},t.prototype.setMax=function(e){return this.max===e?this:(this.max=e,Ar(this.eInput,"max",e),this)},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e?this:(this.step=e,Ar(this.eInput,"step",e),this)},t.prototype.setValue=function(e,i){var r=this;return this.setValueOrInputValue(function(n){return o.prototype.setValue.call(r,n,i)},function(){return r},e)},t.prototype.setStartValue=function(e){var i=this;return this.setValueOrInputValue(function(r){return o.prototype.setValue.call(i,r,!0)},function(r){i.eInput.value=r},e)},t.prototype.setValueOrInputValue=function(e,i,r){if(Q(r)){var n=this.isScientificNotation(r);if(n&&this.eInput.validity.valid)return e(r);if(!n){r=this.adjustPrecision(r);var s=this.normalizeValue(r);n=r!=s}if(n)return i(r)}return e(r)},t.prototype.getValue=function(){if(this.eInput.validity.valid){var e=this.eInput.value;return this.isScientificNotation(e)?this.adjustPrecision(e,!0):o.prototype.getValue.call(this)}},t.prototype.isScientificNotation=function(e){return typeof e=="string"&&e.includes("e")},t}(Po),cw=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),dw=function(o){cw(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.conditionToString=function(e,i){var r=(i||{}).numberOfInputs,n=e.type==Ct.IN_RANGE||r===2;return n?"".concat(this.formatValue(e.filter),"-").concat(this.formatValue(e.filterTo)):e.filter!=null?this.formatValue(e.filter):"".concat(e.type)},t}(wh);function lf(o){var t=(o??{}).allowedCharPattern;return t??null}var pw=function(o){cw(t,o);function t(){var e=o.call(this,"numberFilter")||this;return e.eValuesFrom=[],e.eValuesTo=[],e}return t.prototype.refresh=function(e){return this.numberFilterParams.allowedCharPattern!==e.allowedCharPattern?!1:o.prototype.refresh.call(this,e)},t.prototype.mapValuesFromModel=function(e){var i=e||{},r=i.filter,n=i.filterTo,s=i.type;return[this.processValue(r),this.processValue(n)].slice(0,this.getNumberOfInputs(s))},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.comparator=function(){return function(e,i){return e===i?0:e<i?1:-1}},t.prototype.setParams=function(e){this.numberFilterParams=e,o.prototype.setParams.call(this,e),this.filterModelFormatter=new dw(this.localeService,this.optionsFactory,this.numberFilterParams.numberFormatter)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.setElementValue=function(e,i,r){var n=!r&&this.numberFilterParams.numberFormatter?this.numberFilterParams.numberFormatter(i??null):i;o.prototype.setElementValue.call(this,e,n)},t.prototype.createValueElement=function(){var e=lf(this.numberFilterParams),i=document.createElement("div");return i.classList.add("ag-filter-body"),Lt(i,"presentation"),this.createFromToElement(i,this.eValuesFrom,"from",e),this.createFromToElement(i,this.eValuesTo,"to",e),i},t.prototype.createFromToElement=function(e,i,r,n){var s=this.createManagedBean(n?new Po({allowedCharPattern:n}):new Sh);s.addCssClass("ag-filter-".concat(r)),s.addCssClass("ag-filter-filter"),i.push(s),e.appendChild(s.getGui())},t.prototype.removeValueElements=function(e,i){this.removeComponents(this.eV
83aluesFrom,e,i),this.removeComponents(this.eValuesTo,e,i)},t.prototype.getValues=function(e){var i=this,r=[];return this.forEachPositionInput(e,function(n,s,a,l){s<l&&r.push(i.processValue(i.stringToFloat(n.getValue())))}),r},t.prototype.areSimpleModelsEqual=function(e,i){return e.filter===i.filter&&e.filterTo===i.filterTo&&e.type===i.type},t.prototype.getFilterType=function(){return"number"},t.prototype.processValue=function(e){return e==null||isNaN(e)?null:e},t.prototype.stringToFloat=function(e){if(typeof e=="number")return e;var i=Rr(e);return i!=null&&i.trim()===""&&(i=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(i):i==null||i.trim()==="-"?null:parseFloat(i)},t.prototype.createCondition=function(e){var i=this.getConditionType(e),r={filterType:this.getFilterType(),type:i},n=this.getValues(e);return n.length>0&&(r.filter=n[0]),n.length>1&&(r.filterTo=n[1]),r},t.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},t.prototype.getModelAsString=function(e){var i;return(i=this.filterModelFormatter.getModelAsString(e))!==null&&i!==void 0?i:""},t.prototype.hasInvalidInputs=function(){var e=!1;return this.forEachInput(function(i){if(!i.getInputElement().validity.valid){e=!0;return}}),e},t.DEFAULT_FILTER_OPTIONS=[Rt.EQUALS,Rt.NOT_EQUAL,Rt.GREATER_THAN,Rt.GREATER_THAN_OR_EQUAL,Rt.LESS_THAN,Rt.LESS_THAN_OR_EQUAL,Rt.IN_RANGE,Rt.BLANK,Rt.NOT_BLANK],t}(Rt),fw=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Yu=function(){return Yu=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},Yu.apply(this,arguments)},hw=function(o){fw(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.conditionToString=function(e,i){var r=(i||{}).numberOfInputs,n=e.type==Ct.IN_RANGE||r===2;return n?"".concat(e.filter,"-").concat(e.filterTo):e.filter!=null?"".concat(e.filter):"".concat(e.type)},t}(wh),Eh=function(o){fw(t,o);function t(){var e=o.call(this,"textFilter")||this;return e.eValuesFrom=[],e.eValuesTo=[],e}return t.trimInput=function(e){var i=e&&e.trim();return i===""?e:i},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.setParams=function(e){this.textFilterParams=e,o.prototype.setParams.call(this,e),this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER),this.filterModelFormatter=new hw(this.localeService,this.optionsFactory)},t.prototype.getTextMatcher=function(){var e=this.textFilterParams.textCustomComparator;return e?(Ke.warnOnce("textCustomComparator is deprecated, use textMatcher instead."),function(i){var r=i.filterOption,n=i.value,s=i.filterText;return e(r,n,s)}):this.textFilterParams.textMatcher||t.DEFAULT_MATCHER},t.prototype.createCondition=function(e){var i=this.getConditionType(e),r={filterType:this.getFilterType(),type:i},n=this.getValuesWithSideEffects(e,!0);return n.length>0&&(r.filter=n[0]),n.length>1&&(r.filterTo=n[1]),r},t.prototype.getFilterType=function(){return"text"},t.prototype.areSimpleModelsEqual=function(e,i){return e.filter===i.filter&&e.filterTo===i.filterTo&&e.type===i.type},t.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},t.prototype.getValues=function(e){return this.getValuesWithSideEffects(e,!1)},t.prototype.getValuesWithSideEffects=function(e,i){var r=this,n=[];return this.forEachPositionInput(e,function(s,a,l,u){var c;if(a<u){var p=Rr(s.getValue());i&&r.textFilterParams.trimInput&&(p=(c=t.trimInput(p))!==null&&c!==void 0?c:null,s.setValue(p,!0)),n.push(p)}}),n},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueElement=function(){var e=document.createElement("div");return e.classList.add("ag-filter-body"),Lt(e,"presentation"),this.createFromToElement(e,this.eValuesFrom,"from"),this.createFromToElement(e,this.eValuesTo,"to"),e},t.prototype.createFromToElement=function(e,i,r){var n=this.createManagedBean(new Po);n.addCssClass("ag-filter-".concat(r)),n.addCssClass("ag-filter-filter"),i.push(n),e.appendChild(n.getGui())},t.prototype.removeValueElements=function(e,i){this.removeComponents(this.eV
83aluesFrom,e,i),this.removeComponents(this.eValuesTo,e,i)},t.prototype.mapValuesFromModel=function(e){var i=e||{},r=i.filter,n=i.filterTo,s=i.type;return[r||null,n||null].slice(0,this.getNumberOfInputs(s))},t.prototype.evaluateNullValue=function(e){var i=[Ct.NOT_EQUAL,Ct.NOT_CONTAINS,Ct.BLANK];return e?i.indexOf(e)>=0:!1},t.prototype.evaluateNonNullValue=function(e,i,r,n){var s=this,a=e.map(function(O){return s.formatter(O)})||[],l=this.formatter(i),u=this.textFilterParams,c=u.api,p=u.colDef,f=u.column,v=u.columnApi,y=u.context,w=u.textFormatter;if(r.type===Ct.BLANK)return this.isBlank(i);if(r.type===Ct.NOT_BLANK)return!this.isBlank(i);var b={api:c,colDef:p,column:f,columnApi:v,context:y,node:n.node,data:n.data,filterOption:r.type,value:l,textFormatter:w};return a.some(function(O){return s.matcher(Yu(Yu({},b),{filterText:O}))})},t.prototype.getModelAsString=function(e){var i;return(i=this.filterModelFormatter.getModelAsString(e))!==null&&i!==void 0?i:""},t.DEFAULT_FILTER_OPTIONS=[Ct.CONTAINS,Ct.NOT_CONTAINS,Ct.EQUALS,Ct.NOT_EQUAL,Ct.STARTS_WITH,Ct.ENDS_WITH,Ct.BLANK,Ct.NOT_BLANK],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return e==null?null:e.toString().toLowerCase()},t.DEFAULT_MATCHER=function(e){var i=e.filterOption,r=e.value,n=e.filterText;if(n==null)return!1;switch(i){case t.CONTAINS:return r.indexOf(n)>=0;case t.NOT_CONTAINS:return r.indexOf(n)<0;case t.EQUALS:return r===n;case t.NOT_EQUAL:return r!=n;case t.STARTS_WITH:return r.indexOf(n)===0;case t.ENDS_WITH:var s=r.lastIndexOf(n);return s>=0&&s===r.length-n.length;default:return!1}},t}(Ct),vw=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Wd=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},gw=function(o){vw(t,o);function t(e){var i=o.call(this)||this;return i.params=e,i.valueChangedListener=function(){},i}return t.prototype.setupGui=function(e){var i=this,r;this.eFloatingFilterTextInput=this.createManagedBean(new Po((r=this.params)===null||r===void 0?void 0:r.config));var n=this.eFloatingFilterTextInput.getGui();e.appendChild(n),this.addManagedListener(n,"input",function(s){return i.valueChangedListener(s)}),this.addManagedListener(n,"keydown",function(s){return i.valueChangedListener(s)})},t.prototype.setEditable=function(e){this.eFloatingFilterTextInput.setDisabled(!e)},t.prototype.setAutoComplete=function(e){this.eFloatingFilterTextInput.setAutoComplete(e)},t.prototype.getValue=function(){return this.eFloatingFilterTextInput.getValue()},t.prototype.setValue=function(e,i){this.eFloatingFilterTextInput.setValue(e,i)},t.prototype.setValueChangedListener=function(e){this.valueChangedListener=e},t.prototype.setParams=function(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)},t.prototype.setAriaLabel=function(e){this.eFloatingFilterTextInput.setInputAriaLabel(e)},t}(ee),yw=function(o){vw(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.setTemplate(` 84 <div class="ag-floating-filter-input" role="presentation" ref="eFloatingFilterInputContainer"></div> 85 `)},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,i){this.isEventFromFloatingFilter(i)||this.isEventFromDataChange(i)||(this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(e)))},t.prototype.init=function(e){this.setupFloatingFilterInputService(e),o.prototype.init.call(this,e),this.setTextInputParams(e)},t.prototype.setupFloatingFilterInputService=function(e){this.floatingFilterInputService=this.createFloatingFilterInputService(e),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer)},t.prototype.setTextInputParams=function(e){var i;this.params=e;var r=(i=e.browserAutoComplete)!==null&&i!==void 0?i:!1;if(this.floatingFilterInputService.setParams({ariaLabel:this.getAriaLabel(e),autoComplete:r}),this.applyActive=Ku.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){var n=Ku.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),s=Oi(this.syncUpWithParentFilter.bind(this),n);this.floatingFilterInputService.setValueChangedListener(s)}},t.prototype.onParamsUpdated=function(e){this.refresh(e)},t.prototype.refresh=function(e){o.prototype.refresh.call(this,e),this.setTextInputParams(e)},t.prototype.recreateFloatingFilterInputService=function(e){var i=this.floatingFilterInputService.getValue();Nt(this.eFloatingFilterInputContainer),this.destroyBean(this.floatingFilterInputService),this.setupFloatingFilterInputService(e),this.floatingFilterInputService.setValue(i,!0)},t.prototype.getAriaLabel=function(e){var i=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),r=this.localeService.getLocaleTextFunc();return"".concat(i," ").concat(r("ariaFilterInput","Filter Input"))},t.prototype.syncUpWithParentFilter=function(e){var i=this,r=e.key===W.ENTER;if(!(this.applyActive&&!r)){var n=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(n=Eh.trimInput(n),this.floatingFilterInputService.setValue(n,!0)),this.params.parentFilterInstance(function(s){s&&s.onFloatingFilterChanged(i.getLastType()||null,n||null)})}},t.prototype.setEditable=function(e){this.floatingFilterInputService.setEditable(e)},Wd([E("columnModel")],t.prototype,"columnModel",void 0),Wd([se("eFloatingFilterInputContainer")],t.prototype,"eFloatingFilterInputContainer",void 0),Wd([ie],t.prototype,"postConstruct",null),t}
85(uw),mw=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),UT=function(o){mw(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.valueChangedListener=function(){},e.numberInputActive=!0,e}return t.prototype.setupGui=function(e){var i=this;this.eFloatingFilterNumberInput=this.createManagedBean(new Sh),this.eFloatingFilterTextInput=this.createManagedBean(new Po),this.eFloatingFilterTextInput.setDisabled(!0);var r=this.eFloatingFilterNumberInput.getGui(),n=this.eFloatingFilterTextInput.getGui();e.appendChild(r),e.appendChild(n),this.setupListeners(r,function(s){return i.valueChangedListener(s)}),this.setupListeners(n,function(s){return i.valueChangedListener(s)})},t.prototype.setEditable=function(e){this.numberInputActive=e,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)},t.prototype.setAutoComplete=function(e){this.eFloatingFilterNumberInput.setAutoComplete(e),this.eFloatingFilterTextInput.setAutoComplete(e)},t.prototype.getValue=function(){return this.getActiveInputElement().getValue()},t.prototype.setValue=function(e,i){this.getActiveInputElement().setValue(e,i)},t.prototype.getActiveInputElement=function(){return this.numberInputActive?this.eFloatingFilterNumberInput:this.eFloatingFilterTextInput},t.prototype.setValueChangedListener=function(e){this.valueChangedListener=e},t.prototype.setupListeners=function(e,i){this.addManagedListener(e,"input",i),this.addManagedListener(e,"keydown",i)},t.prototype.setParams=function(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)},t.prototype.setAriaLabel=function(e){this.eFloatingFilterNumberInput.setInputAriaLabel(e),this.eFloatingFilterTextInput.setInputAriaLabel(e)},t}(ee),zT=function(o){mw(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.init=function(e){var i;o.prototype.init.call(this,e),this.filterModelFormatter=new dw(this.localeService,this.optionsFactory,(i=e.filterParams)===null||i===void 0?void 0:i.numberFormatter)},t.prototype.onParamsUpdated=function(e){this.refresh(e)},t.prototype.refresh=function(e){var i=lf(e.filterParams);i!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),o.prototype.refresh.call(this,e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})},t.prototype.getDefaultFilterOptions=function(){return pw.DEFAULT_FILTER_OPTIONS},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},t.prototype.createFloatingFilterInputService=function(e){return this.allowedCharPattern=lf(e.filterParams),this.allowedCharPattern?this.createManagedBean(new gw({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new UT)},t}(yw),$T=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),KT=function(o){$T(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.init=function(e){o.prototype.init.call(this,e),this.filterModelFormatter=new hw(this.localeService,this.optionsFactory)},t.prototype.onParamsUpdated=function(e){this.refresh(e)},t.prototype.refresh=function(e){o.prototype.refresh.call(this,e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})},t.prototype.getDefaultFilterOptions=function(){return Eh.DEFAULT_FILTER_OPTIONS},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},t.prototype.createFloatingFilterInputService=function(){return this.createManagedBean(new gw)},t}(yw),zt=function(){function o(t,e){e===void 0&&(e=!1);var i=this;this.destroyFuncs=[],this.touching=!1,this.eventService=new Gn,this.eElement=t,this.preventMouseClick=e;var r=this.onTouchStart.bind(this),n=this.onTouchMove.bind(this),s=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",r,{passive:!0}),this.eElement.addEventListener("touchmove",n,{passive:!0}),this.eElement.addEventListener("touchend",s,{passive:!1}),this.destroyFuncs.push(function(){i.eElement.removeEventListener("touchstart",r,{passive:!0}),i.eElement.removeEventListener("touchmove",n,{passive:!0}),i.eElement.removeEventListener("touchend",s,{passive:!1})})}return o.prototype.getActiveTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e].identifier===this.touchStart.identifier;if(i)return t[e]}return null},o.prototype.addEventListener=function(t,e){this.eventService.addEventListener(t,e)},o.prototype.removeEventListener=function(t,e){this.eventService.removeEventListener(t,e)},o.prototype.onTouchStart=function(t){var e=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var i=this.touchStart;window.setTimeout(function(){var r=e.touchStart===i;if(e.touching&&r&&!e.moved){e.moved=!0;var n={type:o.EVENT_LONG_TAP,touchStart:e.touchStart,touchEvent:t};e.eventService.dispatchEvent(n)}},500)}},o.prototype.onTouchMove=function(t){if(this.touching){var e=this.getActiveTouch(t.touches);if(e){var i=!mh(e,this.touchStart,4);
85i&&(this.moved=!0)}}},o.prototype.onTouchEnd=function(t){if(this.touching){if(!this.moved){var e={type:o.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(e),this.checkForDoubleTap()}this.preventMouseClick&&t.cancelable&&t.preventDefault(),this.touching=!1}},o.prototype.checkForDoubleTap=function(){var t=new Date().getTime();if(this.lastTapTime&&this.lastTapTime>0){var e=t-this.lastTapTime;if(e>o.DOUBLE_TAP_MILLIS){var i={type:o.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(i),this.lastTapTime=null}else this.lastTapTime=t}else this.lastTapTime=t},o.prototype.destroy=function(){this.destroyFuncs.forEach(function(t){return t()})},o.EVENT_TAP="tap",o.EVENT_DOUBLE_TAP="doubleTap",o.EVENT_LONG_TAP="longTap",o.DOUBLE_TAP_MILLIS=500,o}(),YT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Jn=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},_h=function(o){YT(t,o);function t(e){var i=o.call(this)||this;return e||i.setTemplate(t.TEMPLATE),i}return t.prototype.attachCustomElements=function(e,i,r,n,s){this.eSortOrder=e,this.eSortAsc=i,this.eSortDesc=r,this.eSortMixed=n,this.eSortNone=s},t.prototype.setupSort=function(e,i){var r=this;i===void 0&&(i=!1),this.column=e,this.suppressOrder=i,this.setupMultiSortIndicator(),this.column.isSortable()&&(this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addManagedPropertyListener("unSortIcon",function(){return r.updateIcons()}),this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,function(){return r.updateIcons()}),this.addManagedListener(this.eventService,T.EVENT_SORT_CHANGED,function(){return r.onSortChanged()}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return r.onSortChanged()}),this.onSortChanged())},t.prototype.addInIcon=function(e,i,r){if(i!=null){var n=bt(e,this.gridOptionsService,r);n&&i.appendChild(n)}},t.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},t.prototype.updateIcons=function(){var e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc){var i=e==="asc";it(this.eSortAsc,i,{skipAriaHidden:!0})}if(this.eSortDesc){var r=e==="desc";it(this.eSortDesc,r,{skipAriaHidden:!0})}if(this.eSortNone){var n=!this.column.getColDef().unSortIcon&&!this.gridOptionsService.get("unSortIcon"),s=e==null;it(this.eSortNone,!n&&s,{skipAriaHidden:!0})}},t.prototype.setupMultiSortIndicator=function(){var e=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var i=this.column.getColDef().showRowGroup,r=this.gridOptionsService.isColumnsSortingCoupledToGroup();r&&i&&(this.addManagedListener(this.eventService,T.EVENT_SORT_CHANGED,function(){return e.updateMultiSortIndicator()}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.updateMultiSortIndicator()}),this.updateMultiSortIndicator())},t.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var e=this.sortController.getDisplaySortForColumn(this.column)==="mixed";it(this.eSortMixed,e,{skipAriaHidden:!0})}},t.prototype.updateSortOrder=function(){var e=this,i;if(this.eSortOrder){var r=this.sortController.getColumnsWithSortingOrdered(),n=(i=this.sortController.getDisplaySortIndexForColumn(this.column))!==null&&i!==void 0?i:-1,s=r.some(function(l){var u;return(u=e.sortController.getDisplaySortIndexForColumn(l))!==null&&u!==void 0?u:-1>=1}),a=n>=0&&s;it(this.eSortOrder,a,{skipAriaHidden:!0}),n>=0?this.eSortOrder.textContent=(n+1).toString():Nt(this.eSortOrder)}},t.TEMPLATE=`<span class="ag-sort-indicator-container">
86 <span ref="eSortOrder" class="ag-sort-indicator-icon ag-sort-order ag-hidden" aria-hidden="true"></span> 87 <span ref="eSortAsc" class="ag-sort-indicator-icon ag-sort-ascending-icon ag-hidden" aria-hidden="true"></span> 88 <span ref="eSortDesc" class="ag-sort-indicator-icon ag-sort-descending-icon ag-hidden" aria-hidden="true"></span> 89 <span ref="eSortMixed" class="ag-sort-indicator-icon ag-sort-mixed-icon ag-hidden" aria-hidden="true"></span> 90 <span ref="eSortNone" class="ag-sort-indicator-icon ag-sort-none-icon ag-hidden" aria-hidden="true"></span> 91 </span>`,Jn([se("eSortOrder")],t.prototype,"eSortOrder",void 0),Jn([se("eSortAsc")],t.prototype,"eSortAsc",void 0),Jn([se("eSortDesc")],t.prototype,"eSortDesc",void 0),Jn([se("eSortMixed")],t.prototype,"eSortMixed",void 0),Jn([se("eSortNone")],t.prototype,"eSortNone",void 0),Jn([E("columnModel")],t.prototype,"columnModel",void 0),Jn([E("sortController")],t.prototype,"sortController",void 0),t}(We),qT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ei=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},uf=function(o){qT(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.lastMovingChanged=0,e}return t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||this.workOutSort()!=this.currentSort||this.shouldSuppressMenuHide()!=this.currentSuppressMenuHide?!1:(this.setDisplayName(e),!0)},t.prototype.workOutTemplate=function(){var e,i=(e=this.params.template)!==null&&e!==void 0?e:t.TEMPLATE;return i=i&&i.trim?i.trim():i,i},t.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setupFilterButton(),this.setDisplayName(e)},t.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var i=Dt(this.currentDisplayName,!0);this.eText&&(this.eText.textContent=i)}},t.prototype.addInIcon=function(e,i,r){if(i!=null){var n=bt(e,this.gridOptionsService,r);n&&i.appendChild(n)}},t.prototype.setupTap=function(){var e=this,i=this.gridOptionsService;if(!i.get("suppressTouch")){var r=new zt(this.getGui(),!0),n=this.shouldSuppressMenuHide(),s=n&&Q(this.eMenu),a=s?new zt(this.eMenu,!0):r;if(this.params.enableMenu){var l=s?"EVENT_TAP":"EVENT_LONG_TAP",u=function(f){return e.params.showColumnMenuAfterMouseClick(f.touchStart)};this.addManagedListener(a,zt[l],u)}if(this.params.enableSorting){var c=function(f){var v,y,w=f.touchStart.target;n&&(!((v=e.eMenu)===null||v===void 0)&&v.contains(w)||!((y=e.eFilterButton)===null||y===void 0)&&y.contains(w))||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")};this.addManagedListener(r,zt.EVENT_TAP,c)}if(this.params.enableFilterButton){var p=new zt(this.eFilterButton,!0);this.addManagedListener(p,"tap",function(){return e.params.showFilter(e.eFilterButton)}),this.addDestroyFunc(function(){return p.destroy()})}this.addDestroyFunc(function(){return r.destroy()}),s&&this.addDestroyFunc(function(){return a.destroy()})}},t.prototype.workOutShowMenu=function(){return this.params.enableMenu&&this.menuService.isHeaderMenuButtonEnabled()},t.prototype.shouldSuppressMenuHide=function(){return this.menuService.isHeaderMenuButtonAlwaysShowEnabled()},t.prototype.setMenu=function(){var e=this;if(this.eMenu){if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu){br(this.eMenu),this.eMenu=void 0;return}var i=this.menuService.isLegacyMenuEnabled();this.addInIcon(i?"menu":"menuAlt",this.eMenu,this.params.column),this.eMenu.classList.toggle("ag-header-menu-icon",!i),this.currentSuppressMenuHide=this.shouldSuppressMenuHide(),this.addManagedListener(this.eMenu,"click",function(){return e.params.showColumnMenu(e.eMenu)}),this.eMenu.classList.toggle("ag-header-menu-always-show",this.currentSuppressMenuHide)}},t.prototype.onMenuKeyboardShortcut=function(e){var i,r,n,s,a=this.params.column,l=this.menuService.isLegacyMenuEnabled();if(e&&!l){if(this.menuService.isFilterMenuInHeaderEnabled(a))return this.params.showFilter((r=(i=this.eFilterButton)!==null&&i!==void 0?i:this.eMenu)!==null&&r!==void 0?r:this.getGui()),!0}else if(this.params.enableMenu)return this.params.showColumnMenu((s=(n=this.eMenu)!==null&&n!==void 0?n:this.eFilterButton)!==null&&s!==void 0?s:this.getGui()),!0;return!1},t.prototype.workOutSort=function(){return this.params.enableSorting},t.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new _h(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDe
91sc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),!!this.currentSort){this.addManagedListener(this.params.column,pt.EVENT_MOVING_CHANGED,function(){e.lastMovingChanged=new Date().getTime()}),this.eLabel&&this.addManagedListener(this.eLabel,"click",function(r){var n=e.params.column.isMoving(),s=new Date().getTime(),a=s-e.lastMovingChanged<50,l=n||a;if(!l){var u=e.gridOptionsService.get("multiSortKey")==="ctrl",c=u?r.ctrlKey||r.metaKey:r.shiftKey;e.params.progressSort(c)}});var i=function(){if(e.addOrRemoveCssClass("ag-header-cell-sorted-asc",e.params.column.isSortAscending()),e.addOrRemoveCssClass("ag-header-cell-sorted-desc",e.params.column.isSortDescending()),e.addOrRemoveCssClass("ag-header-cell-sorted-none",e.params.column.isSortNone()),e.params.column.getColDef().showRowGroup){var r=e.columnModel.getSourceColumnsForGroupColumn(e.params.column),n=r==null?void 0:r.every(function(a){return e.params.column.getSort()==a.getSort()}),s=!n;e.addOrRemoveCssClass("ag-header-cell-sorted-mixed",s)}};this.addManagedListener(this.eventService,T.EVENT_SORT_CHANGED,i),this.addManagedListener(this.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,i)}},t.prototype.setupFilterIcon=function(){this.eFilter&&this.configureFilter(this.params.enableFilterIcon,this.eFilter,this.onFilterChangedIcon.bind(this))},t.prototype.setupFilterButton=function(){var e=this;if(this.eFilterButton){var i=this.configureFilter(this.params.enableFilterButton,this.eFilterButton,this.onFilterChangedButton.bind(this));i?this.addManagedListener(this.eFilterButton,"click",function(){return e.params.showFilter(e.eFilterButton)}):this.eFilterButton=void 0}},t.prototype.configureFilter=function(e,i,r){if(!e)return br(i),!1;var n=this.params.column;return this.addInIcon("filter",i,n),this.addManagedListener(n,pt.EVENT_FILTER_CHANGED,r),r(),!0},t.prototype.onFilterChangedIcon=function(){var e=this.params.column.isFilterActive();it(this.eFilter,e,{skipAriaHidden:!0})},t.prototype.onFilterChangedButton=function(){var e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",e)},t.prototype.getAnchorElementForMenu=function(e){var i,r,n,s;return e?(r=(i=this.eFilterButton)!==null&&i!==void 0?i:this.eMenu)!==null&&r!==void 0?r:this.getGui():(s=(n=this.eMenu)!==null&&n!==void 0?n:this.eFilterButton)!==null&&s!==void 0?s:this.getGui()},t.TEMPLATE=`<div class="ag-cell-label-container" role="presentation"> 92 <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span> 93 <span ref="eFilterButton" class="ag-header-icon ag-header-cell-filter-button" aria-hidden="true"></span> 94 <div ref="eLabel" class="ag-header-cell-label" role="presentation"> 95 <span ref="eText" class="ag-header-cell-text"></span> 96 <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span> 97 <ag-sort-indicator ref="eSortIndicator"></ag-sort-indicator> 98 </div> 99 </div>`,ei([E("sortController")],t.prototype,"sortController",void 0),ei([E("menuService")],t.prototype,"menuService",void 0),ei([E("columnModel")],t.prototype,"columnModel",void 0),ei([se("eFilter")],t.prototype,"eFilter",void 0),ei([se("eFilterButton")],t.prototype,"eFilterButton",void 0),ei([se("eSortIndicator")],t.prototype,"eSortIndicator",void 0),ei([se("eMenu")],t.prototype,"eMenu",void 0),ei([se("eLabel")],t.prototype,"eLabel",void 0),ei([se("eText")],t.prototype,"eText",void 0),ei([se("eSortOrder")],t.prototype,"eSortOrder",void 0),ei([se("eSortAsc")],t.prototype,"eSortAsc",void 0),ei([se("eSortDesc")],t.prototype,"eSortDesc",void 0),ei([se("eSortMixed")],t.prototype,"eSortMixed",void 0),ei([se("eSortNone")],t.prototype,"eSortNone",void 0),t}(We),XT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}
99t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ud=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},QT=function(o){XT(t,o);function t(){return o.call(this,t.TEMPLATE)||this}return t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.checkWarnings=function(){var e=this.params;e.template&&Le("A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var i=function(s){if(!nr(s)){var a=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),a,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,i),this.addTouchAndClickListeners(this.eOpenIcon,i);var r=function(s){sr(s)};this.addManagedListener(this.eCloseIcon,"dblclick",r),this.addManagedListener(this.eOpenIcon,"dblclick",r),this.addManagedListener(this.getGui(),"dblclick",i),this.updateIconVisibility();var n=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(n,_t.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(n,_t.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,i){var r=new zt(e,!0);this.addManagedListener(r,zt.EVENT_TAP,i),this.addDestroyFunc(function(){return r.destroy()}),this.addManagedListener(e,"click",i)},t.prototype.updateIconVisibility=function(){var e=this.params.columnGroup;if(e.isExpandable()){var i=this.params.columnGroup.isExpanded();it(this.eOpenIcon,i),it(this.eCloseIcon,!i)}else it(this.eOpenIcon,!1),it(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,i){var r=bt(e,this.gridOptionsService,null);r&&this.getRefElement(i).appendChild(r)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable()){it(this.eOpenIcon,!1),it(this.eCloseIcon,!1);return}},t.prototype.setupLabel=function(){var e,i=this.params,r=i.displayName,n=i.columnGroup;if(Q(r)){var s=Dt(r,!0);this.getRefElement("agLabel").textContent=s}this.addOrRemoveCssClass("ag-sticky-label",!(!((e=n.getColGroupDef())===null||e===void 0)&&e.suppressStickyLabel))},t.TEMPLATE=`<div class="ag-header-group-cell-label" ref="agContainer" role="presentation"> 100 <span ref="agLabel" class="ag-header-group-text" role="presentation"></span> 101 <span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span> 102 <span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span> 103 </div>`,Ud([E("columnModel")],t.prototype,"columnModel",void 0),Ud([se("agOpened")],t.prototype,"eOpenIcon",void 0),Ud([se("agClosed")],t.prototype,"eCloseIcon",void 0),t}(We),JT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Do=function(o){JT(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(e){e.addCssClass("ag-has-popup"),o.prototype.setParentComponent.call(this,e)},t.prototype.destroy=function(){var e=this.parentComponent,i=e&&e.isAlive();i&&e.getGui().classList.remove("ag-has-popup"),o.prototype.destroy.call(this)},t}
103(We),ZT=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),eR=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},tR=function(o){ZT(t,o);function t(){return o.call(this,t.TEMPLATE)||this}return t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),Q(e.value,!0)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()},t.prototype.onKeyDown=function(e){var i=e.key;(i===W.LEFT||i===W.UP||i===W.RIGHT||i===W.DOWN||e.shiftKey&&i===W.ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){var e=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){var e=this.eTextArea.getValue();return!Q(e)&&!Q(this.params.value)?this.params.value:this.params.parseValue(e)},t.TEMPLATE=`<div class="ag-large-text"> 104 <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area> 105 </div>`,eR([se("eTextArea")],t.prototype,"eTextArea",void 0),t}(Do),iR=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),gg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},rR=function(o){iR(t,o);function t(){var e=o.call(this,`<div class="ag-cell-edit-wrapper"> 106 <ag-select class="ag-cell-editor" ref="eSelect"></ag-select> 107 </div>`)||this;return e.startedByEnter=!1,e}return t.prototype.init=function(e){this.focusAfterAttached=e.cellStartedEdit;var i=this,r=i.eSelect,n=i.valueFormatterService,s=i.gridOptionsService,a=e.values,l=e.value,u=e.eventKey;if(Me(a)){console.warn("AG Grid: no values found for select cellEditor");return}this.startedByEnter=u!=null?u===W.ENTER:!1;var c=!1;a.forEach(function(y){var w={value:y},b=n.formatValue(e.column,null,y),O=b!=null;w.text=O?b:y,r.addOption(w),c=c||l===y}),c?r.setValue(e.value,!0):e.values.length&&r.setValue(e.values[0],!0);var p=e.valueListGap,f=e.valueListMaxWidth,v=e.valueListMaxHeight;p!=null&&r.setPickerGap(p),v!=null&&r.setPickerMaxHeight(v),f!=null&&r.setPickerMaxWidth(f),s.get("editType")!=="fullRow"&&this.addManagedListener(this.eSelect,Tc.EVENT_ITEM_SELECTED,function(){return e.stopEditing()})},t.prototype.afterGuiAttached=function(){var e=this;this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout(function(){e.isAlive()&&e.eSelect.showPicker()})},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},gg([E("valueFormatterService")],t.prototype,"valueFormatterService",void 0),gg([se("eSelect")],t.prototype,"eSelect",void 0),t}
107(Do),nR=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),oR=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Ac=function(o){nR(t,o);function t(e){var i=o.call(this,` 108 <div class="ag-cell-edit-wrapper"> 109 `.concat(e.getTemplate(),` 110 </div>`))||this;return i.cellEditorInput=e,i}return t.prototype.init=function(e){this.params=e;var i=this.eInput;this.cellEditorInput.init(i,e);var r;if(e.cellStartedEdit){this.focusAfterAttached=!0;var n=e.eventKey;n===W.BACKSPACE||e.eventKey===W.DELETE?r="":n&&n.length===1?r=n:(r=this.cellEditorInput.getStartValue(),n!==W.F2&&(this.highlightAllOnFocus=!0))}else this.focusAfterAttached=!1,r=this.cellEditorInput.getStartValue();r!=null&&i.setStartValue(r),this.addManagedListener(i.getGui(),"keydown",function(s){var a=s.key;(a===W.PAGE_UP||a===W.PAGE_DOWN)&&s.preventDefault()})},t.prototype.afterGuiAttached=function(){var e,i,r=this.localeService.getLocaleTextFunc(),n=this.eInput;if(n.setInputAriaLabel(r("ariaInputEditor","Input Editor")),!!this.focusAfterAttached){Dr()||n.getFocusableElement().focus();var s=n.getInputElement();this.highlightAllOnFocus?s.select():(i=(e=this.cellEditorInput).setCaret)===null||i===void 0||i.call(e)}},t.prototype.focusIn=function(){var e=this.eInput,i=e.getFocusableElement(),r=e.getInputElement();i.focus(),r.select()},t.prototype.getValue=function(){return this.cellEditorInput.getValue()},t.prototype.isPopup=function(){return!1},oR([se("eInput")],t.prototype,"eInput",void 0),t}(Do),sR=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),aR=function(){function o(){}return o.prototype.getTemplate=function(){return'<ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field>'},o.prototype.init=function(t,e){this.eInput=t,this.params=e,e.maxLength!=null&&t.setMaxLength(e.maxLength)},o.prototype.getValue=function(){var t=this.eInput.getValue();return!Q(t)&&!Q(this.params.value)?this.params.value:this.params.parseValue(t)},o.prototype.getStartValue=function(){var t=this.params.useFormatter||this.params.column.getColDef().refData;return t?this.params.formatValue(this.params.value):this.params.value},o.prototype.setCaret=function(){var t=this.eInput.getValue(),e=Q(t)&&t.length||0;e&&this.eInput.getInputElement().setSelectionRange(e,e)},o}(),yg=function(o){sR(t,o);function t(){return o.call(this,new aR)||this}return t}(Ac),lR=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),uR=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},cR="â",dR="â",pR=function(o){lR(t,o);function t(){var e=o.call(this)||this;e.refreshCount=0;var i=document.createElement("span"),r=document.createElement("span");r.setAttribute("class","ag-value-change-delta");var n=document.createElement("span");return n.setAttribute("class","ag-value-change-value"),i.appendChild(r),i.appendChild(n),e.setTemplateFromElement(i),e}return t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e,!0)},t.prototype.showDelta=function(e,i){var r=Math.abs(i),n=e.formatValue(r),s=Q(n)?n:r,a=i>=0;a?this.eDelta.textContent=cR+s:this.eDelta.textContent=dR+s,this.eDelta.classList.toggle("ag-value-change-delta-up",a),this.eDelta.classList.toggle("ag-value-change-delta-down",!a)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var i=this.refreshCount;this.getFrameworkOverrides().wrapIncoming(function(){window.setTimeout(function(){i===e.refreshCount&&e.hideDeltaValue()},2e3)})},t.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),Nt(this.eDelta)},t.prototype.refresh=function(e,i){i===void 0&&(i=!1);var r=e.value;if(r===this.lastValue||(Q(e.valueFormatted)?this.eValue.textContent=e.valueFormatted:Q(e.value)?this.eValue.textContent=r:Nt(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering()))return!1;if(typeof r=="number"&&typeof this.lastValue=="number"){var n=r-this.lastValue;this.showDelta(e,n)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),i||this.setTimerToRemoveDelta(),this.lastValue=r,!0},uR([E("filterManager")],t.prototype,"filterManager",void 0),t}
110(We),fR=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),hR=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},vR=function(o){fR(t,o);function t(){var e=o.call(this)||this;e.refreshCount=0;var i=document.createElement("span"),r=document.createElement("span");return r.setAttribute("class","ag-value-slide-current"),i.appendChild(r),e.setTemplateFromElement(i),e.eCurrent=e.queryForHtmlElement(".ag-value-slide-current"),e}return t.prototype.init=function(e){this.refresh(e,!0)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var i=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious);var r=document.createElement("span");r.setAttribute("class","ag-value-slide-previous ag-value-slide-out"),this.ePrevious=r,this.ePrevious.textContent=this.eCurrent.textContent,this.getGui().insertBefore(this.ePrevious,this.eCurrent),this.getFrameworkOverrides().wrapIncoming(function(){window.setTimeout(function(){i===e.refreshCount&&e.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(function(){i===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)},3e3)})},t.prototype.refresh=function(e,i){i===void 0&&(i=!1);var r=e.value;return Me(r)&&(r=""),r===this.lastValue||this.filterManager.isSuppressFlashingCellsBecauseFiltering()?!1:(i||this.addSlideAnimation(),this.lastValue=r,Q(e.valueFormatted)?this.eCurrent.textContent=e.valueFormatted:Q(e.value)?this.eCurrent.textContent=r:Nt(this.eCurrent),!0)},hR([E("filterManager")],t.prototype,"filterManager",void 0),t}(We),os=function(){return os=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},os.apply(this,arguments)},$e=function(){function o(t){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=o.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.selected=!1,this.beans=t}return o.prototype.setData=function(t){this.setDataCommon(t,!1)},o.prototype.updateData=function(t){this.setDataCommon(t,!0)},o.prototype.setDataCommon=function(t,e){var i=this.data;this.data=t,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable(),this.resetQuickFilterAggregateText();var r=this.createDataChangedEvent(t,i,e);this.dispatchLocalEvent(r)},o.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},o.prototype.createDataChangedEvent=function(t,e,i){return{type:o.EVENT_DATA_CHANGED,node:this,oldData:e,newData:t,update:i}},o.prototype.createLocalRowEvent=function(t){return{type:t,node:this}},o.prototype.getRowIndexString=function(){return this.rowPinned==="top"?"t-"+this.rowIndex:this.rowPinned==="bottom"?"b-"+this.rowIndex:this.rowIndex.toString()},o.prototype.createDaemonNode=function(){var t=new o(this.beans);return t.id=this.id,t.data=this.data,t.__daemon=!0,t.selected=this.selected,t.level=this.level,t},o.prototype.setDataAndId=function(t,e){var i=Q(this.id)?this.createDaemonNode():null,r=this.data;this.data=t,this.updateDataOnDetailNode(),this.setId(e),this.checkRowSelectable(),this.beans.selectionService.syncInRowNode(this,i);var n=this.createDataChangedEvent(t,r,!1);this.dispatchLocalEvent(n)},o.prototype.checkRowSelectable=function(){var t=this.beans.gridOptionsService.get("isRowSelectable");this.setRowSelectable(t?t(this):!0)},o.prototype.setRowSelectable=function(t,e){if(this.selectable!==t){if(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_SELECTABLE_CHANGED)),e)return;var i=this.beans.gridOptionsService.get("groupSelectsChildren");if(i){var r=this.calculateSelectedFromChildren();this.setSelectedParams({newValue:r??!1,source:"selectableChanged"});return}this.isSelected()&&!this.selectable&&this.setSelectedParams({newValue:!1,source:"selectableChanged"})}},o.prototype.setId=function(t){var e=this.beans.gridOptionsService.getCallback("getRowId");if(e)if(this.data){var i=this.getGroupKeys(!0);this.id=e({data:this.data,parentKeys:i.length>0?i:void 0,level:this.level}),this.id!==null&&typeof this.id=="string"&&this.id.startsWith(o.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with ".concat(o.ID_PREFIX_ROW_GROUP,", this is a reserved prefix for AG Grid's row grouping feature.")),this.id!==null&&typeof this.id!="string"&&(this.id=""+this.id
110)}else this.id=void 0;else this.id=t},o.prototype.getGroupKeys=function(t){t===void 0&&(t=!1);var e=[],i=this;for(t&&(i=i.parent);i&&i.level>=0;)e.push(i.key),i=i.parent;return e.reverse(),e},o.prototype.isPixelInRange=function(t){return!Q(this.rowTop)||!Q(this.rowHeight)?!1:t>=this.rowTop&&t<this.rowTop+this.rowHeight},o.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_FIRST_CHILD_CHANGED)))},o.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_LAST_CHILD_CHANGED)))},o.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_CHILD_INDEX_CHANGED)))},o.prototype.setRowTop=function(t){this.oldRowTop=this.rowTop,this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_TOP_CHANGED)),this.setDisplayed(t!==null))},o.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},o.prototype.setDisplayed=function(t){this.displayed!==t&&(this.displayed=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_DISPLAYED_CHANGED)))},o.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_DRAGGING_CHANGED)))},o.prototype.setHighlighted=function(t){t!==this.highlighted&&(this.highlighted=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_HIGHLIGHT_CHANGED)))},o.prototype.setHovered=function(t){this.hovered!==t&&(this.hovered=t)},o.prototype.isHovered=function(){return this.hovered},o.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},o.prototype.setMaster=function(t){this.master!==t&&(this.master&&!t&&(this.expanded=!1),this.master=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_MASTER_CHANGED)))},o.prototype.setGroup=function(t){this.group!==t&&(this.group&&!t&&(this.expanded=!1),this.group=t,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_GROUP_CHANGED)))},o.prototype.setRowHeight=function(t,e){e===void 0&&(e=!1),this.rowHeight=t,this.rowHeightEstimated=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_HEIGHT_CHANGED))},o.prototype.setRowAutoHeight=function(t,e){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[e.getId()]=t,t!=null&&(this.checkAutoHeightsDebounced==null&&(this.checkAutoHeightsDebounced=Oi(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},o.prototype.checkAutoHeights=function(){var t=this,e=!1,i=!0,r=0,n=this.__autoHeights;if(n!=null){var s=this.beans.columnModel.getAllDisplayedAutoHeightCols();if(s.forEach(function(l){var u=n[l.getId()];if(u==null)if(t.beans.columnModel.isColSpanActive()){var c=[];switch(l.getPinned()){case"left":c=t.beans.columnModel.getDisplayedLeftColumnsForRow(t);break;case"right":c=t.beans.columnModel.getDisplayedRightColumnsForRow(t);break;case null:c=t.beans.columnModel.getViewportCenterColumnsForRow(t);break}if(c.includes(l)){e=!0;return}u=-1}else{e=!0;return}else i=!1;u>r&&(r=u)}),!e&&((i||r<10)&&(r=this.beans.gridOptionsService.getRowHeightForNode(this).height),r!=this.rowHeight)){this.setRowHeight(r);var a=this.beans.rowModel;a.onRowHeightChangedDebounced&&a.onRowHeightChangedDebounced()}}},o.prototype.setRowIndex=function(t){this.rowIndex!==t&&(this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_ROW_INDEX_CHANGED)))},o.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_UI_LEVEL_CHANGED)))},o.prototype.setExpanded=function(t,e){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_EXPANDED_CHANGED));var i=Object.assign({},this.createGlobalRowEvent(T.EVENT_ROW_GROUP_OPENED),{expanded:t,event:e||null});this.beans.rowNodeEventThrottle.dispatchExpanded(i),this.sibling&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},o.prototype.createGlobalRowEvent=function(t){return this.beans.gridOptionsService.addGridCommonParams({type:t,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned})},o.prototype.dispatchLocalEvent=function(t){this.eventService&&this.eventService.dispatchEvent(t)}
110,o.prototype.setDataValue=function(t,e,i){var r=this,n=function(){var u;return typeof t!="string"?t:(u=r.beans.columnModel.getGridColumn(t))!==null&&u!==void 0?u:r.beans.columnModel.getPrimaryColumn(t)},s=n(),a=this.getValueFromValueService(s);if(this.beans.gridOptionsService.get("readOnlyEdit"))return this.dispatchEventForSaveValueReadOnly(s,a,e,i),!1;var l=this.beans.valueService.setValue(this,s,e,i);return this.dispatchCellChangedEvent(s,e,a),this.checkRowSelectable(),l},o.prototype.getValueFromValueService=function(t){var e=this.leafGroup&&this.beans.columnModel.isPivotMode(),i=this.group&&this.expanded&&!this.footer&&!e,r=this.beans.gridOptionsService.getGroupIncludeFooter(),n=r({node:this}),s=this.beans.gridOptionsService.get("groupSuppressBlankHeader"),a=i&&n&&!s,l=this.beans.valueService.getValue(t,this,!1,a);return l},o.prototype.dispatchEventForSaveValueReadOnly=function(t,e,i,r){var n=this.beans.gridOptionsService.addGridCommonParams({type:T.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:this.rowIndex,rowPinned:this.rowPinned,column:t,colDef:t.getColDef(),data:this.data,node:this,oldValue:e,newValue:i,value:i,source:r});this.beans.eventService.dispatchEvent(n)},o.prototype.setGroupValue=function(t,e){var i=this.beans.columnModel.getGridColumn(t);Me(this.groupData)&&(this.groupData={});var r=i.getColId(),n=this.groupData[r];n!==e&&(this.groupData[r]=e,this.dispatchCellChangedEvent(i,e,n))},o.prototype.setAggData=function(t){var e=this,i=this.aggData;if(this.aggData=t,this.eventService){var r=function(s){var a=e.aggData?e.aggData[s]:void 0,l=i?i[s]:void 0;if(a!==l){var u=e.beans.columnModel.lookupGridColumn(s);u&&e.dispatchCellChangedEvent(u,a,l)}};for(var n in this.aggData)r(n);for(var n in t)n in this.aggData||r(n)}},o.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0,e=this.beans.gridOptionsService.isRowModelType("serverSide");if(e){var i=this.beans.gridOptionsService.get("treeData"),r=this.beans.gridOptionsService.get("isServerSideGroup");t=!this.stub&&!this.footer&&(i?!!r&&r(this.data):!!this.group)}t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_HAS_CHILDREN_CHANGED)))},o.prototype.hasChildren=function(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren},o.prototype.isEmptyRowGroupNode=function(){return this.group&&Si(this.childrenAfterGroup)},o.prototype.dispatchCellChangedEvent=function(t,e,i){var r={type:o.EVENT_CELL_CHANGED,node:this,column:t,newValue:e,oldValue:i};this.dispatchLocalEvent(r)},o.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},o.prototype.isExpandable=function(){return this.footer?!1:this.beans.columnModel.isPivotMode()?this.hasChildren()&&!this.leafGroup:this.hasChildren()||!!this.master},o.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},o.prototype.depthFirstSearch=function(t){this.childrenAfterGroup&&this.childrenAfterGroup.forEach(function(e){return e.depthFirstSearch(t)}),t(this)},o.prototype.calculateSelectedFromChildren=function(){var t,e=!1,i=!1,r=!1;if(!(!((t=this.childrenAfterGroup)===null||t===void 0)&&t.length))return this.selectable?this.selected:null;for(var n=0;n<this.childrenAfterGroup.length;n++){var s=this.childrenAfterGroup[n],a=s.isSelected();if(!s.selectable){var l=s.calculateSelectedFromChildren();if(l===null)continue;a=l}switch(a){case!0:e=!0;break;case!1:i=!0;break;default:r=!0;break}}if(!(r||e&&i))return e?!0:i?!1:this.selectable?this.selected:null},o.prototype.setSelectedInitialValue=function(t){this.selected=t},o.prototype.selectThisNode=function(t,e,i){i===void 0&&(i="api");var r=!this.selectable&&t,n=this.selected===t;if(r||n)return!1;if(this.selected=t,this.eventService){this.dispatchLocalEvent(this.createLocalRowEvent(o.EVENT_ROW_SELECTED));var s=this.sibling;s&&s.footer&&s.dispatchLocalEvent(s.createLocalRowEvent(o.EVENT_ROW_SELECTED))}var a=os(os({},this.createGlobalRowEvent(T.EVENT_ROW_SELECTED)),{event:e||null,source:i});return this.beans.eventService.dispatchEvent(a),!0}
110,o.prototype.setSelected=function(t,e,i){if(e===void 0&&(e=!1),i===void 0&&(i="api"),typeof i=="boolean"){console.warn("AG Grid: since version v30, rowNode.setSelected() property `suppressFinishActions` has been removed, please use `gridApi.setNodesSelected()` for bulk actions, and the event `source` property for ignoring events instead.");return}this.setSelectedParams({newValue:t,clearSelection:e,rangeSelect:!1,source:i})},o.prototype.setSelectedParams=function(t){return this.rowPinned?(console.warn("AG Grid: cannot select pinned rows"),0):this.id===void 0?(console.warn("AG Grid: cannot select node until id for node is known"),0):this.beans.selectionService.setNodesSelected(os(os({},t),{nodes:[this.footer?this.sibling:this]}))},o.prototype.isRowPinned=function(){return this.rowPinned==="top"||this.rowPinned==="bottom"},o.prototype.isParentOfNode=function(t){for(var e=this.parent;e;){if(e===t)return!0;e=e.parent}return!1},o.prototype.addEventListener=function(t,e){var i,r;this.eventService||(this.eventService=new Gn),this.beans.frameworkOverrides.shouldWrapOutgoing&&!this.frameworkEventListenerService&&(this.eventService.setFrameworkOverrides(this.beans.frameworkOverrides),this.frameworkEventListenerService=new Wf(this.beans.frameworkOverrides));var n=(r=(i=this.frameworkEventListenerService)===null||i===void 0?void 0:i.wrap(e))!==null&&r!==void 0?r:e;this.eventService.addEventListener(t,n)},o.prototype.removeEventListener=function(t,e){var i,r;if(this.eventService){var n=(r=(i=this.frameworkEventListenerService)===null||i===void 0?void 0:i.unwrap(e))!==null&&r!==void 0?r:e;this.eventService.removeEventListener(t,n),this.eventService.noRegisteredListenersExist()&&(this.eventService=null)}},o.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(o.EVENT_MOUSE_ENTER))},o.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(o.EVENT_MOUSE_LEAVE))},o.prototype.getFirstChildOfFirstChild=function(t){for(var e=this,i=!0,r=!1,n=null;i&&!r;){var s=e.parent,a=Q(s)&&e.firstChild;a?s.rowGroupColumn===t&&(r=!0,n=s):i=!1,e=s}return r?n:null},o.prototype.isFullWidthCell=function(){if(this.detail)return!0;var t=this.beans.gridOptionsService.getCallback("isFullWidthRow");return t?t({rowNode:this}):!1},o.prototype.getRoute=function(){if(this.key!=null){for(var t=[],e=this;e.key!=null;)t.push(e.key),e=e.parent;return t.reverse()}},o.prototype.createFooter=function(){var t=this;if(!this.sibling){var e=new Set(["eventService","__objectId","sticky"]),i=new o(this.beans);Object.keys(this).forEach(function(r){e.has(r)||(i[r]=t[r])}),i.footer=!0,i.setRowTop(null),i.setRowIndex(null),i.oldRowTop=null,i.id="rowGroupFooter_"+this.id,i.sibling=this,this.sibling=i}},o.prototype.destroyFooter=function(){this.sibling&&(this.sibling.setRowTop(null),this.sibling.setRowIndex(null),this.sibling=void 0)},o.ID_PREFIX_ROW_GROUP="row-group-",o.ID_PREFIX_TOP_PINNED="t-",o.ID_PREFIX_BOTTOM_PINNED="b-",o.OBJECT_ID_SEQUENCE=0,o.EVENT_ROW_SELECTED="rowSelected",o.EVENT_DATA_CHANGED="dataChanged",o.EVENT_CELL_CHANGED="cellChanged",o.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",o.EVENT_MASTER_CHANGED="masterChanged",o.EVENT_GROUP_CHANGED="groupChanged",o.EVENT_MOUSE_ENTER="mouseEnter",o.EVENT_MOUSE_LEAVE="mouseLeave",o.EVENT_HEIGHT_CHANGED="heightChanged",o.EVENT_TOP_CHANGED="topChanged",o.EVENT_DISPLAYED_CHANGED="displayedChanged",o.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",o.EVENT_LAST_CHILD_CHANGED="lastChildChanged",o.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",o.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",o.EVENT_EXPANDED_CHANGED="expandedChanged",o.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",o.EVENT_SELECTABLE_CHANGED="selectableChanged",o.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",o.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",o.EVENT_DRAGGING_CHANGED="draggingChanged",o}(),gR=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}
110t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),qu=function(){return qu=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},qu.apply(this,arguments)},mg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Cw=function(o){gR(t,o);function t(){return o.call(this,` 111 <div class="ag-selection-checkbox" role="presentation"> 112 <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox> 113 </div>`)||this}return t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},t.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.rowNode.isSelected();this.eCheckbox.setValue(e,!0)},t.prototype.onClicked=function(e,i,r){return this.rowNode.setSelectedParams({newValue:e,rangeSelect:r.shiftKey,groupSelectsFiltered:i,event:r,source:"checkboxSelected"})},t.prototype.init=function(e){var i=this;this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",function(a){sr(a)}),this.addManagedListener(this.eCheckbox.getInputElement(),"click",function(a){sr(a);var l=i.gridOptionsService.get("groupSelectsFiltered"),u=i.eCheckbox.getValue();if(i.shouldHandleIndeterminateState(u,l)){var c=i.onClicked(!0,l,a||{});c===0&&i.onClicked(!1,l,a)}else u?i.onClicked(!1,l,a):i.onClicked(!0,l,a||{})}),this.addManagedListener(this.rowNode,$e.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,$e.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,$e.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this));var r=this.gridOptionsService.get("isRowSelectable"),n=r||typeof this.getIsVisible()=="function";if(n){var s=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,s),this.addManagedListener(this.rowNode,$e.EVENT_DATA_CHANGED,s),this.addManagedListener(this.rowNode,$e.EVENT_CELL_CHANGED,s),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.shouldHandleIndeterminateState=function(e,i){return i&&(this.eCheckbox.getPreviousValue()===void 0||e===void 0)&&this.gridOptionsService.isRowModelType("clientSide")},t.prototype.showOrHideSelect=function(){var e,i,r,n,s=this.rowNode.selectable,a=this.getIsVisible();if(s)if(typeof a=="function"){var l=(e=this.overrides)===null||e===void 0?void 0:e.callbackParams,u=(i=this.column)===null||i===void 0?void 0:i.createColumnFunctionCallbackParams(this.rowNode);s=u?a(qu(qu({},l),u)):!1}else s=a??!1;var c=(r=this.column)===null||r===void 0?void 0:r.getColDef().showDisabledCheckboxes;if(c){this.eCheckbox.setDisabled(!s),this.setVisible(!0),this.setDisplayed(!0);return}if(!((n=this.overrides)===null||n===void 0)&&n.removeHidden){this.setDisplayed(s);return}this.setVisible(s)},t.prototype.getIsVisible=function(){var e,i;return this.overrides?this.overrides.isVisible:(i=(e=this.column)===null||e===void 0?void 0:e.getColDef())===null||i===void 0?void 0:i.checkboxSelection},mg([se("eCheckbox")],t.prototype,"eCheckbox",void 0),mg([ie],t.prototype,"postConstruct",null),t}(We),_s;(function(o){o[o.Up=0]="Up",o[o.Down=1]="Down"})(_s||(_s={}));var bi;(function(o){o[o.Left=0]="Left",o[o.Right=1]="Right"})(bi||(bi={}));var yR=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&
113(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Zn=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},jl=function(o){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&o[t],i=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},hi;(function(o){o[o.ToolPanel=0]="ToolPanel",o[o.HeaderCell=1]="HeaderCell",o[o.RowDrag=2]="RowDrag",o[o.ChartPanel=3]="ChartPanel",o[o.AdvancedFilterBuilder=4]="AdvancedFilterBuilder"})(hi||(hi={}));var It=function(o){yR(t,o);function t(){var i=o!==null&&o.apply(this,arguments)||this;return i.dragSourceAndParamsList=[],i.dropTargets=[],i}e=t,t.prototype.init=function(){this.ePinnedIcon=Ni("columnMovePin",this.gridOptionsService,null),this.eHideIcon=Ni("columnMoveHide",this.gridOptionsService,null),this.eMoveIcon=Ni("columnMoveMove",this.gridOptionsService,null),this.eLeftIcon=Ni("columnMoveLeft",this.gridOptionsService,null),this.eRightIcon=Ni("columnMoveRight",this.gridOptionsService,null),this.eGroupIcon=Ni("columnMoveGroup",this.gridOptionsService,null),this.eAggregateIcon=Ni("columnMoveValue",this.gridOptionsService,null),this.ePivotIcon=Ni("columnMovePivot",this.gridOptionsService,null),this.eDropNotAllowedIcon=Ni("dropNotAllowed",this.gridOptionsService,null)},t.prototype.addDragSource=function(i,r){r===void 0&&(r=!1);var n={eElement:i.eElement,dragStartPixels:i.dragStartPixels,onDragStart:this.onDragStart.bind(this,i),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),includeTouch:r};this.dragSourceAndParamsList.push({params:n,dragSource:i}),this.dragService.addDragSource(n)},t.prototype.removeDragSource=function(i){var r=this.dragSourceAndParamsList.find(function(n){return n.dragSource===i});r&&(this.dragService.removeDragSource(r.params),ui(this.dragSourceAndParamsList,r))},t.prototype.clearDragSourceParamsList=function(){var i=this;this.dragSourceAndParamsList.forEach(function(r){return i.dragService.removeDragSource(r.params)}),this.dragSourceAndParamsList.length=0,this.dropTargets.length=0},t.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},t.prototype.onDragStart=function(i,r){this.dragging=!0,this.dragSource=i,this.eventLastTime=r,this.dragItem=this.dragSource.getDragItem(),this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},t.prototype.onDragStop=function(i){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var r=this.createDropTargetEvent(this.lastDropTarget,i,null,null,!1);this.lastDropTarget.onDragStop(r)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},t.prototype.onDragging=function(i,r){var n=this,s,a,l,u,c=this.getHorizontalDirection(i),p=this.getVerticalDirection(i);this.eventLastTime=i,this.positionGhost(i);var f=this.dropTargets.filter(function(w){return n.isMouseOnDropTarget(i,w)}),v=this.findCurrentDropTarget(i,f);if(v!==this.lastDropTarget)this.leaveLastTargetIfExists(i,c,p,r),this.lastDropTarget!==null&&v===null&&((a=(s=this.dragSource).onGridExit)===null||a===void 0||a.call(s,this.dragItem)),this.lastDropTarget===null&&v!==null&&((u=(l=this.dragSource).onGridEnter)===null||u===void 0||u.call(l,this.dragItem)),this.enterDragTargetIfExists(v,i,c,p,r),this.lastDropTarget=v;else if(v&&v.onDragging){var y=this.createDropTargetEvent(v,i,c,p,r);v.onDragging(y)}},t.prototype.getAllContainersFromDropTarget=function(i){var r=i.getSecondaryContainers?i.getSecondaryContainers():null,n=[[i.getContainer()]];return r?n.concat(r):n},t.prototype.allContainersIntersect=function(i,r){var n,s;try{for(var a=jl(r),l=a.next();!l.done;l=a.next()){var u=l.value,c=u.getBoundingClientRect();if(c.width===0||c.height===0)return!1;var p=i.clientX>=c.left&&i.clientX<c.right,f=i.clientY>=c.top&&i.clientY<c.bottom;if(!p||!f)return!1}}catch(v){n={error:v}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(n)throw n.error}}return!0},t.prototype.isMouseOnDropTarget=function(i,r){var n,s,a=this.getAllContainersFromDropTarget(r),l=!1;try{for(var u=jl(a),c=u.next();!c.done;c=u.next()){var p=c.value;if(this.allContainersIntersect(i,p)){l=!0;break}}}catch(f){n={error:f}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(n)throw n.error}}return r.targetContainsSource&&!r.getContainer().contains(this.dragSource.eElement)?!1:l&&r.isInterestedIn(this.dragSource.type,this.dragSource.eElement)},t.prototype.findCurrentDropTarget=function(i,r){var n,s,a,l,u=r.length;if(u===0)return null;if(u===1)return r[0];var c=this.gridOptionsService.getRootNode(),p=c.elementsFromPoint(i.clientX,i.clientY);try{for(var f=jl(p),v=f.next();!v.done;v=f.next()){var y=v.value;try{for(var w=(a=void 0,jl(r)),b=w.next();!b.done;b=w.next()){var O=b.value,A=uC(this.getAllContainersFromDropTarget(O));if(A.indexOf(y)!==-1)return O}}catch(P){a={error:P}}finally{try{b&&!b.done&&(l=w.return)&&l.call(w)}finally{if(a)throw a.error}}}}catch(P){n={error:P}}finally{try{v&&!v.done&&(s=f.return)&&s.call(f)}finally{if(n)throw n.error}}return null},t.prototype.enterDragTargetIfExists=function(i,r,n,s,a){if(i){if(i.onDragEnter){var l=this.createDropTargetEvent(i,r,n,s,a);i.onDragEnter(l)}this.setGhostIcon(i.getIconName?i.getIconName():null)}},t.prototype.leaveLastTargetIfExists=function(i,r,n,s){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var a=this.createDropTargetEvent(this.lastDropTarget,i,r,n,s);this.lastDropTarget.onDragLeave(a)}this.setGhostIcon(null)}},t.prototype.addDropTarget=function(i){this.dropTargets.push(i)},t.prototype.removeDropTarget=function(i){this.dropTargets=this.dropTargets.filter(function(r){return r.getContainer()!==i.getContainer()})},t.prototype.hasExternalDropZones=function(){return this.dropTargets.some(function(i){return i.external})},t.prototype.findExternalZone=function(i){var r=this.dropTargets.filter(function(n){return n.external});return r.find(function(n){return n.getContainer()===i.getContainer()})||null},t.prototype.getHorizontalDirection=function(i){var r=this.eventLastTime&&this.eventLastTime.clientX,n=i.clientX;return r===n?null:r>n?bi.Left:bi.Right},t.prototype.getVerticalDirection=function(i){var r=this.eventLastTime&&this.eventLastTime.clientY,n=i.clientY;return r===n?null:r>n?_s.Up:_s.Down},t.prototype.createDropTargetEvent=function(i,r,n,s,a){var l=i.getContainer(),u=l.getBoundingClientRect(),c=this,p=c.gridApi,f=c.columnApi,v=c.dragItem,y=c.dragSource,w=r.clientX-u.left,b=r.clientY-u.top;return{event:r,x:w,y:b,vDirection:s,hDirection:n,dragSource:y,fromNudge:a,dragItem:v,api:p,columnApi:f,dropZoneTarget:l}},t.prototype.positionGhost=function(i){var r=this.eGhost;if(r){var n=r.getBoundingClientRect(),s=n.height,a=MC()-2,l=IC()-2,u=dh(r.offsetParent),c=i.clientY,p=i.clientX,f=c-u.top-s/2,v=p-u.left-10,y=this.gridOptionsService.getDocument(),w=y.defaultView||window,b=w.pageYOffset||y.documentElement.scrollTop,O=w.pageXOffset||y.documentElement.scrollLeft;a>0&&v+r.clientWidth>a+O&&(v=a+O-r.clientWidth),v<0&&(v=0),l>0&&f+r.clientHeight>l+b&&(f=l+b-r.clientHeight),f<0&&(f=0),r.style.left="".concat(v,"px"),r.style.top="".concat(f,"px")}},t.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},t.prototype.createGhost=function(){this.eGhost=pi(e.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);var i=this.environment.getTheme().theme;i&&this.eGhost.classList.add(i),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var r=this.eGhost.querySelector(".ag-dnd-ghost-label"),n=this.dragSource.dragItemName;Sc(n)&&(n=n()),r.innerHTML=Dt(n)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var s=this.gridOptionsService.getDocument(),a=null,l=null;try{a=s.fullscreenElement}catch{}finally{a||(a=this.gridOptionsService.getRootNode());var u=a.querySelector("body");u?l=u:a instanceof ShadowRoot?l=a:a instanceof Document?l=a==null?void 0:a.documentElement:l=a}this.eGhostParent=l,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},t.prototype.setGhostIcon=function(i,r){r===void 0&&(r=!1),Nt(this.eGhostIcon);var n=null;switch(i||(i=this.dragSource.getDefaultIconName?this.dragSource.getDefaultIconName():e.ICON_NOT_ALLOWED),i){case e.ICON_PINNED:n=this.ePinnedIcon;break;case e.ICON_MOVE:n=this.eMoveIcon;break;case e.ICON_LEFT:n=this.eLeftIcon;break;case e.ICON_RIGHT:n=this.eRightIcon;break;case e.ICON_GROUP:n=this.eGroupIcon;break;case e.ICON_AGGREGATE:n=this.eAggregateIcon;break;case e.ICON_PIVOT:n=this.ePivotIcon;break;case e.ICON_NOT_ALLOWED:n=this.eDropNotAllowedIcon;break;case e.ICON_HIDE:n=this.eHideIcon;break}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",r),!(n===this.eHideIcon&&this.gridOptionsService.get("suppressDragLeaveHidesColumns"))&&n&&this.eGhostIcon.appendChild(n)};var e;return t.ICON_PINNED="pinned",t.ICON_MOVE="move",t.ICON_LEFT="left",t.ICON_RIGHT="right",t.ICON_GROUP="group",t.ICON_AGGREGATE="aggregate",t.ICON_PIVOT="pivot",t.ICON_NOT_ALLOWED="notAllowed",t.ICON_HIDE="hide",t.GHOST_TEMPLATE=`<div class="ag-dnd-ghost ag-unselectable">
114 <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span> 115 <div class="ag-dnd-ghost-label"></div> 116 </div>`,Zn([E("dragService")],t.prototype,"dragService",void 0),Zn([E("mouseEventService")],t.prototype,"mouseEventService",void 0),Zn([E("columnApi")],t.prototype,"columnApi",void 0),Zn([E("gridApi")],t.prototype,"gridApi",void 0),Zn([ie],t.prototype,"init",null),Zn([Xt],t.prototype,"clearDragSourceParamsList",null),t=e=Zn([fe("dragAndDropService")],t),t}(ee),Pc=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),La=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Xu=function(o){Pc(t,o);function t(e,i,r,n,s,a){var l=o.call(this)||this;return l.cellValueFn=e,l.rowNode=i,l.column=r,l.customGui=n,l.dragStartPixels=s,l.suppressVisibilityChange=a,l.dragSource=null,l}return t.prototype.isCustomGui=function(){return this.customGui!=null},t.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(bt("rowDrag",this.gridOptionsService,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.gridOptionsService.get("rowDragManaged")?new CR(this,this.beans,this.rowNode,this.column):new mR(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},t.prototype.setDragElement=function(e,i){this.setTemplateFromElement(e),this.addDragSource(i)},t.prototype.getSelectedNodes=function(){var e=this.gridOptionsService.get("rowDragMultiRow");if(!e)return[this.rowNode];var i=this.beans.selectionService.getSelectedNodes();return i.indexOf(this.rowNode)!==-1?i:[this.rowNode]},t.prototype.checkCompatibility=function(){var e=this.gridOptionsService.get("rowDragManaged"),i=this.gridOptionsService.get("treeData");i&&e&&Le("If using row drag with tree data, you cannot have rowDragManaged=true")},t.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},t.prototype.getRowDragText=function(e){if(e){var i=e.getColDef();if(i.rowDragText)return i.rowDragText}return this.gridOptionsService.get("rowDragText")},t.prototype.addDragSource=function(e){var i=this;e===void 0&&(e=4),this.dragSource&&this.removeDragSource();var r=this.localeService.getLocaleTextFunc();this.dragSource={type:hi.RowDrag,eElement:this.getGui(),dragItemName:function(){var n,s=i.getDragItem(),a=((n=s.rowNodes)===null||n===void 0?void 0:n.length)||1,l=i.getRowDragText(i.column);return l?l(s,a):a===1?i.cellValueFn():"".concat(a," ").concat(r("rowDragRows","rows"))},getDragItem:function(){return i.getDragItem()},dragStartPixels:e,dragSourceDomDataKey:this.gridOptionsService.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},t.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},La([E("beans")],t.prototype,"beans",void 0),La([ie],t.prototype,"postConstruct",null),La([Xt],t.prototype,"removeDragSource",null),t}(We),ww=function(o){Pc(t,o);function t(e,i,r){var n=o.call(this)||this;return n.parent=e,n.rowNode=i,n.column=r,n}return t.prototype.setDisplayedOrVisible=function(e){var i={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,i);else{var r=!0,n=!1;this.column&&(r=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),n=Sc(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0,i),this.parent.setVisible(r,i)):(this.parent.setDisplayed(r,i),this.parent.setVisible(!0,i))}},t}(ee),mR=function(o){Pc(t,o);function t(e,i,r,n){var s=o.call(this,e,r,n)||this;return s.beans=i,s}return t.prototype.postConstruct=function(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,$e.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,$e.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,$e.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,T.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.gridOptionsService.get("suppressRowDrag");this.setDisplayedOrVisible(e)},La([ie],t.prototype,"postConstruct",null),t}(ww),CR=function(o){Pc(t,o);function t(e,i,r,n){var s=o.call(this,e,r,n)||this;return s.beans=i,s}return t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,T.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,T.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,T.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,$e.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,$e.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.ctrlsService.getGridBodyCtrl(),i=e.getRowDragFeature
116(),r=i&&i.shouldPreventRowMove(),n=this.gridOptionsService.get("suppressRowDrag"),s=this.beans.dragAndDropService.hasExternalDropZones(),a=r&&!s||n;this.setDisplayedOrVisible(a)},La([ie],t.prototype,"postConstruct",null),t}(ww),wR=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Qu=function(){return Qu=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},Qu.apply(this,arguments)},ia=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},SR=function(o){wR(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.init=function(e,i,r,n,s,a,l){var u,c,p,f;this.params=l,this.eGui=i,this.eCheckbox=r,this.eExpanded=n,this.eContracted=s,this.comp=e,this.compClass=a;var v=l.node;l.value;var y=l.colDef,w=this.isTopLevelFooter();if(!w){var b=this.isEmbeddedRowMismatch();if(b)return;if(v.footer&&this.gridOptionsService.get("groupHideOpenParents")){var O=y&&y.showRowGroup,A=v.rowGroupColumn&&v.rowGroupColumn.getColId();if(O!==A)return}}if(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),!w){var P=l.node.footer&&l.node.rowGroupIndex===this.columnModel.getRowGroupColumns().findIndex(function(z){var I;return z.getColId()===((I=l.colDef)===null||I===void 0?void 0:I.showRowGroup)}),L=this.gridOptionsService.get("groupDisplayType")!="multipleColumns"||this.gridOptionsService.get("treeData"),x=L||this.gridOptionsService.get("showOpenedGroup")&&!l.node.footer&&(!l.node.group||l.node.rowGroupIndex!=null&&l.node.rowGroupIndex>this.columnModel.getRowGroupColumns().findIndex(function(z){var I;return z.getColId()===((I=l.colDef)===null||I===void 0?void 0:I.showRowGroup)})),H=!v.group&&(((u=this.params.colDef)===null||u===void 0?void 0:u.field)||((c=this.params.colDef)===null||c===void 0?void 0:c.valueGetter)),g=this.isExpandable(),N=this.columnModel.isPivotMode()&&v.leafGroup&&((p=v.rowGroupColumn)===null||p===void 0?void 0:p.getColId())===((f=l.column)===null||f===void 0?void 0:f.getColDef().showRowGroup),V=!this.showingValueForOpenedParent&&!g&&!H&&!x&&!P&&!N;if(V)return}this.addExpandAndContract(),this.addFullWidthRowDraggerIfNeeded(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded()},t.prototype.getCellAriaRole=function(){var e,i,r=(e=this.params.colDef)===null||e===void 0?void 0:e.cellAriaRole,n=(i=this.params.column)===null||i===void 0?void 0:i.getColDef().cellAriaRole;return r||n||"gridcell"},t.prototype.destroy=function(){o.prototype.destroy.call(this),this.expandListener=null},t.prototype.refreshAriaExpanded=function(){var e=this.params,i=e.node,r=e.eGridCell;if(this.expandListener&&(this.expandListener=this.expandListener()),!this.isExpandable()){bC(r);return}var n=function(){qr(r,!!i.expanded)};this.expandListener=this.addManagedListener(i,$e.EVENT_EXPANDED_CHANGED,n)||null,n()},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsService.get("groupIncludeTotalFooter")||this.params.value!=null||this.params.node.level!=-1)return!1;var e=this.params.colDef,i=e==null;if(i||e.showRowGroup===!0)return!0;var r=this.columnModel.getRowGroupColumns();if(!r||r.length===0)return!0;var n=r[0];return n.getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsService.get("embedFullWidthRows"))return!1;var e=this.params.pinned==="left",i=this.params.pinned==="right",r=!e&&!i;return this.gridOptionsService.get("enableRtl")?this.columnModel.isPinningLeft()?!i:!r:this.columnModel.isPinningLeft()?!e:!r},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,i=this.params.node;if(this.showingValueForOpenedParent)for(var r=i.parent;r!=null;){if(r.rowGroupColumn&&e.isRowGroupDisplayed(r.rowGroupColumn.getId())){this.displayedGroupNode=r;break}r=r.parent}Me(this.displayedGroupNode)&&(this.displayedGroupNode=i)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,i=this.params.column;if(!this.gridOptionsService.get("groupHideOpenParents")){this.showingValueForOpenedParent=!1;return}if(!e.groupData){this.showingValueForOpenedParent=!1;return}var r=e.rowGroupColumn!=null;if(r){var n=e.rowGroupColumn.getId(),s=i.isRowGroupDisplayed(n);if(s){this.showingValueForOpenedParent=!1;return}}var a=e.groupData[i.getId()]!=null;this.showingValueForOpenedParent=a},t.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},t.prototype.addGroupValue=function(){var e,i=this.adjustParamsWithDetailsFromRelatedColumn(),r=this.getInnerCompDetail
116s(i),n=i.valueFormatted,s=i.value,a=n;if(a==null){var l=this.displayedGroupNode.rowGroupColumn&&((e=this.params.column)===null||e===void 0?void 0:e.isRowGroupDisplayed(this.displayedGroupNode.rowGroupColumn.getId()));if(this.displayedGroupNode.key===""&&this.displayedGroupNode.group&&l){var u=this.localeService.getLocaleTextFunc();a=u("blanks","(Blanks)")}else a=s??null}this.comp.setInnerRenderer(r,a)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,i=this.params.column;if(!e)return this.params;var r=i!=null;if(r){var n=i.isRowGroupDisplayed(e.getId());if(!n)return this.params}var s=this.params,a=this.params,l=a.value,u=a.node,c=this.valueFormatterService.formatValue(e,u,l),p=Qu(Qu({},s),{valueFormatted:c});return p},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,i="";if(e){var r=Bf(this.params);r.value=this.params.value,typeof e=="function"?i=e(r):typeof e=="string"?i=this.expressionService.evaluate(e,r):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else{var n=this.localeService.getLocaleTextFunc(),s=n("footerTotal","Total");i=s+" "+(this.params.value!=null?this.params.value:"")}var a=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(a,i)},t.prototype.getInnerCompDetails=function(e){var i=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptionsService.get("groupRowRendererParams"),e);var r=this.userComponentFactory.getInnerRendererDetails(e,e),n=function(c){return c&&c.componentClass==i.compClass};if(r&&!n(r))return r;var s=this.displayedGroupNode.rowGroupColumn,a=s?s.getColDef():void 0;if(a){var l=this.userComponentFactory.getCellRendererDetails(a,e);if(l&&!n(l))return l;if(n(l)&&a.cellRendererParams&&a.cellRendererParams.innerRenderer){var u=this.userComponentFactory.getInnerRendererDetails(a.cellRendererParams,e);return u}}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,$e.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,i=this.isShowRowGroupForThisRow(),r=i&&e!=null&&e>=0,n=r?"(".concat(e,")"):"";this.comp.setChildCount(n)},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsService.get("treeData"))return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var i=this.params.column,r=i==null||i.isRowGroupDisplayed(e.getId());return r},t.prototype.addExpandAndContract=function(){var e,i=this.params,r=bt("groupExpanded",this.gridOptionsService,null),n=bt("groupContracted",this.gridOptionsService,null);r&&this.eExpanded.appendChild(r),n&&this.eContracted.appendChild(n);var s=i.eGridCell,a=((e=this.params.column)===null||e===void 0?void 0:e.isCellEditable(i.node))&&this.gridOptionsService.get("enableGroupEdit");!a&&this.isExpandable()&&!i.suppressDoubleClickExpand&&this.addManagedListener(s,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(s,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(i.node,$e.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var l=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,$e.EVENT_ALL_CHILDREN_COUNT_CHANGED,l),this.addManagedListener(this.displayedGroupNode,$e.EVENT_MASTER_CHANGED,l),this.addManagedListener(this.displayedGroupNode,$e.EVENT_GROUP_CHANGED,l),this.addManagedListener(this.displayedGroupNode,$e.EVENT_HAS_CHILDREN_CHANGED,l)},t.prototype.onExpandClicked=function(e){nr(e)||(sr(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var i=this.displayedGroupNode,r=!i.expanded;!r&&i.sticky&&this.scrollToStickyNode(i),i.setExpanded(r,e)},t.prototype.scrollToStickyNode=function(e){var i=this.ctrlsService.getGridBodyCtrl(),r=i.getScrollFeature
116();r.setVerticalScrollPosition(e.rowTop-e.stickyRowTop)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,i=this.columnModel.isPivotMode()&&e.leafGroup,r=e.isExpandable()&&!e.footer&&!i;if(!r)return!1;var n=this.params.column,s=n!=null&&typeof n.getColDef().showRowGroup=="string";if(s){var a=this.isShowRowGroupForThisRow();return a}return!0},t.prototype.showExpandAndContractIcons=function(){var e=this,i=e.params,r=e.displayedGroupNode,n=e.columnModel,s=i.node,a=this.isExpandable();if(a){var l=this.showingValueForOpenedParent?!0:s.expanded;this.comp.setExpandedDisplayed(l),this.comp.setContractedDisplayed(!l)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var u=n.isPivotMode(),c=u&&r.leafGroup,p=a&&!c,f=s.footer&&s.level===-1;this.comp.addOrRemoveCssClass("ag-cell-expandable",p),this.comp.addOrRemoveCssClass("ag-row-group",p),u?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",c):f||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!p)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},t.prototype.setupIndent=function(){var e=this.params.node,i=this.params.suppressPadding;i||(this.addManagedListener(e,$e.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsService.get("groupHideOpenParents")){var e=this.params,i=e.node,r=!!e.colDef,n=this.gridOptionsService.get("treeData"),s=!r||n||e.colDef.showRowGroup===!0,a=s?i.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+a,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(!(!this.params.fullWidth||!this.params.rowDrag)){var i=new Xu(function(){return e.params.value},this.params.node);this.createManagedBean(i,this.context),this.eGui.insertAdjacentElement("afterbegin",i.getGui())}},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return typeof e=="function"||e===!0},t.prototype.addCheckboxIfNeeded=function(){var e=this,i=this.displayedGroupNode,r=this.isUserWantsSelected()&&!i.footer&&!i.rowPinned&&!i.detail;if(r){var n=new Cw;this.getContext().createBean(n),n.init({rowNode:this.params.node,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(n.getGui()),this.addDestroyFunc(function(){return e.getContext().destroyBean(n)})}this.comp.setCheckboxVisible(r)},t.prototype.onKeyDown=function(e){var i=e.key===W.ENTER;if(!(!i||this.params.suppressEnterExpand)){var r=this.params.column&&this.params.column.isCellEditable(this.params.node);r||this.onExpandOrContract(e)}},t.prototype.onCellDblClicked=function(e){if(!nr(e)){var i=Wu(this.eExpanded,e)||Wu(this.eContracted,e);i||this.onExpandOrContract(e)}},ia([E("expressionService")],t.prototype,"expressionService",void 0),ia([E("valueFormatterService")],t.prototype,"valueFormatterService",void 0),ia([E("columnModel")],t.prototype,"columnModel",void 0),ia([E("userComponentFactory")],t.prototype,"userComponentFactory",void 0),ia([E("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(ee),ER=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ra=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Cg=function(o){ER(t,o);function t(){return o.call(this,t.TEMPLATE)||this}return t.prototype.init=function(e){var i=this,r={setInnerRenderer:function(l,u){return i.setRenderDetails(l,u)},setChildCount:function(l){return i.eChildCount.textContent=l},addOrRemoveCssClass:function(l,u){return i.addOrRemoveCssClass(l,u)},setContractedDisplayed:function(l){return it(i.eContracted,l)},setExpandedDisplayed:function(l){return it(i.eExpanded,l)},setCheckboxVisible:function(l){return i.eCheckbox.classList.toggle("ag-invisible",!l)}},n=this.createManagedBean(new SR),s=!e.colDef,a=this.getGui();n.init(r,a,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),s&&Lt(a,n.getCellAriaRole())},t.prototype.setRenderDetails=function(e,i){var r=this;if(e){var n=e.newAgStackInstance();if(!n)return;n.then(function(s){if(s){var a=function(){return r.context.destroyBean(s)};r.isAlive()?(r.eValue.appendChild(s.getGui()),r.addDestroyFunc(a)):a()}})}else this.eValue.innerText=i},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),o.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE=`<span class="ag-cell-wrapper">
117 <span class="ag-group-expanded" ref="eExpanded"></span> 118 <span class="ag-group-contracted" ref="eContracted"></span> 119 <span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span> 120 <span class="ag-group-value" ref="eValue"></span> 121 <span class="ag-group-child-count" ref="eChildCount"></span> 122 </span>`,ra([se("eExpanded")],t.prototype,"eExpanded",void 0),ra([se("eContracted")],t.prototype,"eContracted",void 0),ra([se("eCheckbox")],t.prototype,"eCheckbox",void 0),ra([se("eValue")],t.prototype,"eValue",void 0),ra([se("eChildCount")],t.prototype,"eChildCount",void 0),t}(We),_R=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),wg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},OR=function(o){_R(t,o);function t(){return o.call(this,t.TEMPLATE)||this}return t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){var e=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingError","ERR")},t.prototype.setupLoading=function(){var e=bt("groupLoading",this.gridOptionsService,null);e&&this.eLoadingIcon.appendChild(e);var i=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=i("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.TEMPLATE=`<div class="ag-loading"> 123 <span class="ag-loading-icon" ref="eLoadingIcon"></span> 124 <span class="ag-loading-text" ref="eLoadingText"></span> 125 </div>`,wg([se("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),wg([se("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(We),bR=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),TR=function(o){bR(t,o);function t(){return o.call(this)||this}return t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.init=function(e){var i=this,r=this.gridOptionsService.get("overlayLoadingTemplate");if(this.setTemplate(r??t.DEFAULT_LOADING_OVERLAY_TEMPLATE),!r){var n=this.localeService.getLocaleTextFunc();setTimeout(function(){i.getGui().textContent=n("loadingOoo","Loading...")})}},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span aria-live="polite" aria-atomic="true" class="ag-overlay-loading-center"></span>',t}(We),RR=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),AR=function(o){RR(t,o);function t(){return o.call(this)||this}return t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.init=function(e){var i=this,r=this.gridOptionsService.get("overlayNoRowsTemplate");if(this.setTemplate(r??t.DEFAULT_NO_ROWS_TEMPLATE),!r){var n=this.localeService.getLocaleTextFunc();setTimeout(function(){i.getGui().textContent=n("noRowsToShow","No Rows To Show")})}},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center"></span>',t}
125(We),PR=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),DR=function(o){PR(t,o);function t(){return o.call(this,'<div class="ag-tooltip"></div>')||this}return t.prototype.init=function(e){var i=e.value;this.getGui().textContent=Dt(i,!0)},t}(Do),LR=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),FR=function(){function o(){}return o.prototype.getTemplate=function(){return'<ag-input-number-field class="ag-cell-editor" ref="eInput"></ag-input-number-field>'},o.prototype.init=function(t,e){this.eInput=t,this.params=e,e.max!=null&&t.setMax(e.max),e.min!=null&&t.setMin(e.min),e.precision!=null&&t.setPrecision(e.precision),e.step!=null&&t.setStep(e.step);var i=t.getInputElement();e.preventStepping?t.addManagedListener(i,"keydown",this.preventStepping):e.showStepperButtons&&i.classList.add("ag-number-field-input-stepper")},o.prototype.preventStepping=function(t){(t.key===W.UP||t.key===W.DOWN)&&t.preventDefault()},o.prototype.getValue=function(){var t=this.eInput.getValue();if(!Q(t)&&!Q(this.params.value))return this.params.value;var e=this.params.parseValue(t);if(e==null)return e;if(typeof e=="string"){if(e==="")return null;e=Number(e)}return isNaN(e)?null:e},o.prototype.getStartValue=function(){return this.params.value},o}(),MR=function(o){LR(t,o);function t(){return o.call(this,new FR)||this}return t}(Ac),IR=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),xR=function(){function o(){}return o.prototype.getTemplate=function(){return'<ag-input-date-field class="ag-cell-editor" ref="eInput"></ag-input-date-field>'},o.prototype.init=function(t,e){this.eInput=t,this.params=e,e.min!=null&&t.setMin(e.min),e.max!=null&&t.setMax(e.max),e.step!=null&&t.setStep(e.step)},o.prototype.getValue=function(){var t=this.eInput.getDate();return!Q(t)&&!Q(this.params.value)?this.params.value:t??null},o.prototype.getStartValue=function(){var t=this.params.value;if(t instanceof Date)return ki(t,!1)},o}(),NR=function(o){IR(t,o);function t(){return o.call(this,new xR)||this}return t}(Ac),GR=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),HR=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},VR=function(){function o(t){this.getDataTypeService=t}return o.prototype.getTemplate=function(){return'<ag-input-date-field class="ag-cell-editor" ref="eInput"></ag-input-date-field>'},o.prototype.init=function(t,e){this.eInput=t,this.params=e,e.min!=null&&t.setMin(e.min),e.max!=null&&t.setMax(e.max),e.step!=null&&t.setStep(e.step)},o.prototype.getValue=function(){var t=this.formatDate(this.eInput.getDate());return!Q(t)&&!Q(this.params.value)?this.params.value:this.params.parseValue(t??"")},o.prototype.getStartValue=function(){var t,e;return ki((e=this.parseDate((t=this.params.value)!==null&&t!==void 0?t:void 0))!==null&&e!==void 0?e:null,!1)},o.prototype.parseDate=function(t){return this.getDataTypeService().getDateParserFunction(this.params.column)(t)},o.prototype.formatDate=function(t){return this.getDataTypeService().getDateFormatterFunction(this.params.column)(t)},o}(),kR=function(o){GR(t,o);function t(){var e=o.call(this,new VR(function(){return e.dataTypeService}))||this;return e}return HR([E("dataTypeService")],t.prototype,"dataTypeService",void 0),t}
125(Ac),BR=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),jR=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},WR=function(o){BR(t,o);function t(){return o.call(this,t.TEMPLATE)||this}return t.prototype.init=function(e){var i=this;this.params=e,this.updateCheckbox(e);var r=this.eCheckbox.getInputElement();r.setAttribute("tabindex","-1"),Kf(r,"polite"),this.addManagedListener(r,"click",function(s){if(sr(s),!i.eCheckbox.isDisabled()){var a=i.eCheckbox.getValue();i.onCheckboxChanged(a)}}),this.addManagedListener(r,"dblclick",function(s){sr(s)});var n=this.gridOptionsService.getDocument();this.addManagedListener(this.params.eGridCell,"keydown",function(s){if(s.key===W.SPACE&&!i.eCheckbox.isDisabled()){i.params.eGridCell===n.activeElement&&i.eCheckbox.toggle();var a=i.eCheckbox.getValue();i.onCheckboxChanged(a),s.preventDefault()}})},t.prototype.refresh=function(e){return this.params=e,this.updateCheckbox(e),!0},t.prototype.updateCheckbox=function(e){var i,r,n,s,a=!0;if(e.node.group&&e.column){var l=e.column.getColId();l.startsWith(Cs)?s=e.value==null||e.value===""?void 0:e.value==="true":e.node.aggData&&e.node.aggData[l]!==void 0?s=(i=e.value)!==null&&i!==void 0?i:void 0:a=!1}else s=(r=e.value)!==null&&r!==void 0?r:void 0;if(!a){this.eCheckbox.setDisplayed(!1);return}this.eCheckbox.setValue(s);var u=e.disabled!=null?e.disabled:!(!((n=e.column)===null||n===void 0)&&n.isCellEditable(e.node));this.eCheckbox.setDisabled(u);var c=this.localeService.getLocaleTextFunc(),p=th(c,s),f=u?p:"".concat(c("ariaToggleCellValue","Press SPACE to toggle cell value")," (").concat(p,")");this.eCheckbox.setInputAriaLabel(f)},t.prototype.onCheckboxChanged=function(e){var i=this.params,r=i.column,n=i.node,s=i.rowIndex,a=i.value,l={type:T.EVENT_CELL_EDITING_STARTED,column:r,colDef:r==null?void 0:r.getColDef(),data:n.data,node:n,rowIndex:s,rowPinned:n.rowPinned,value:a};this.eventService.dispatchEvent(l);var u=this.params.node.setDataValue(this.params.column,e,"edit"),c={type:T.EVENT_CELL_EDITING_STOPPED,column:r,colDef:r==null?void 0:r.getColDef(),data:n.data,node:n,rowIndex:s,rowPinned:n.rowPinned,value:a,oldValue:a,newValue:e,valueChanged:u};this.eventService.dispatchEvent(c)},t.TEMPLATE=` 126 <div class="ag-cell-wrapper ag-checkbox-cell" role="presentation"> 127 <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox> 128 </div>`,jR([se("eCheckbox")],t.prototype,"eCheckbox",void 0),t}(We),UR=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),zR=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},$R=function(o){UR(t,o);function t(){return o.call(this,` 129 <div class="ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit"> 130 <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox> 131 </div>`)||this}return t.prototype.init=function(e){var i=this,r;this.params=e;var n=(r=e.value)!==null&&r!==void 0?r:void 0;this.eCheckbox.setValue(n);var s=this.eCheckbox.getInputElement();s.setAttribute("tabindex","-1"),this.setAriaLabel(n),this.addManagedListener(this.eCheckbox,T.EVENT_FIELD_VALUE_CHANGED,function(a){return i.setAriaLabel(a.selected)})},t.prototype.getValue=function(){return this.eCheckbox.getValue()}
131,t.prototype.focusIn=function(){this.eCheckbox.getFocusableElement().focus()},t.prototype.afterGuiAttached=function(){this.params.cellStartedEdit&&this.focusIn()},t.prototype.isPopup=function(){return!1},t.prototype.setAriaLabel=function(e){var i=this.localeService.getLocaleTextFunc(),r=th(i,e),n=i("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel("".concat(n," (").concat(r,")"))},zR([se("eCheckbox")],t.prototype,"eCheckbox",void 0),t}(Do),KR=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),YR=function(o){KR(t,o);function t(){var e=o.call(this)||this;return e.setTemplate("<div></div>"),e}return t.prototype.init=function(e){var i;this.params=e,this.cssClassPrefix=(i=this.params.cssClassPrefix)!==null&&i!==void 0?i:"ag-menu-option",this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu()},t.prototype.configureDefaults=function(){return!0},t.prototype.addIcon=function(){if(!this.params.isCompact){var e=pi('<span ref="eIcon" class="'.concat(this.getClassName("part")," ").concat(this.getClassName("icon"),'" role="presentation"></span>'));this.params.checked?e.appendChild(bt("check",this.gridOptionsService)):this.params.icon&&(al(this.params.icon)?e.appendChild(this.params.icon):typeof this.params.icon=="string"?e.innerHTML=this.params.icon:console.warn("AG Grid: menu item icon must be DOM node or string")),this.getGui().appendChild(e)}},t.prototype.addName=function(){var e=pi('<span ref="eName" class="'.concat(this.getClassName("part")," ").concat(this.getClassName("text"),'">').concat(this.params.name||"","</span>"));this.getGui().appendChild(e)},t.prototype.addShortcut=function(){if(!this.params.isCompact){var e=pi('<span ref="eShortcut" class="'.concat(this.getClassName("part")," ").concat(this.getClassName("shortcut"),'">').concat(this.params.shortcut||"","</span>"));this.getGui().appendChild(e)}},t.prototype.addSubMenu=function(){var e=pi('<span ref="ePopupPointer" class="'.concat(this.getClassName("part")," ").concat(this.getClassName("popup-pointer"),'"></span>')),i=this.getGui();if(this.params.subMenu){var r=this.gridOptionsService.get("enableRtl")?"smallLeft":"smallRight";qr(i,!1),e.appendChild(bt(r,this.gridOptionsService))}i.appendChild(e)},t.prototype.getClassName=function(e){return"".concat(this.cssClassPrefix,"-").concat(e)},t.prototype.destroy=function(){o.prototype.destroy.call(this)},t}(We),qR=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),zd=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Sg=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},Eg=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},XR=function(o){qR(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.agGridDefaults={agDateInput:BT,agColumnHeader:uf,agColumnGroupHeader:QT,agSortIndicator:_h,agTextColumnFloatingFilter:KT,agNumberColumnFloatingFilter:zT,agDateColumnFloatingFilter:GT,agReadOnlyFloatingFilter:hT,agAnimateShowChangeCellRenderer:pR,agAnimateSlideCellRenderer:vR,agGroupCellRenderer:Cg,agGroupRowRenderer:Cg,agLoadingCellRenderer:OR,agCheckboxCellRenderer:WR,agCellEditor:yg,agTextCellEditor:yg,agNumberCellEditor:MR,agDateCellEditor:NR,agDateStringCellEditor:kR,agSelectCellEditor:rR,agLargeTextCellEditor:tR,agCheckboxCellEditor:$R,agTextColumnFilter:Eh,agNumberColumnFilter:pw,agDateColumnFilter:lw,agLoadingOverlay:TR,agNoRowsOverlay:AR,agTooltipComponent:DR,agMenuItem:YR},e.enterpriseAgDefaultCompsModule={agSetColumnFilter:Oe.SetFilterModule,agSetColumnFloatingFilter:Oe.SetFilterModule,agMultiColumnFilter:Oe.MultiFilterModule,agMultiColumnFloatingFilter:Oe.MultiFilterModule,agGroupColumnFilter:Oe.RowGroupingModule,agGroupColumnFloatingFilter:Oe.RowGroupingModule,agRichSelect:Oe.RichSelectModule,agRichSelectCellEditor:Oe.RichSelectModule,agDetailCellRenderer:Oe.MasterDetailModule,agSparklineCellRenderer:Oe.SparklinesModule},e.jsComps={},e}return t.prototype.init=function(){var e=this;this.gridOptions.components!=null&&Ut(this.gridOptions.components,function(i,r){return e.registerJsComponent(i,r)})},t.prototype.registerDefaultComponent=function(e,i){if(this.agGridDefaults[e]){console.error("Trying to overwrite a default component. You should call registerComponent");return}this.agGridDefaults[e]=i},t.prototype.registerJsComponent=function(e,i){this.jsComps[e]=i},t.prototype.retrieve=function(e,i){var r=this,n=function(p,f){return{componentFromFramework:f,component:p}},s=this.getFrameworkOverrides().frameworkComponent(i,this.gridOptions.components);if(s!=null)return n(s,!0);var a=this.jsComps[i];if(a){var l=this.getFrameworkOverrides().isFrameworkComponent(a);return n(a,l)}var u=this.agGridDefaults[i];if(u)return n(u,!1);var c=this.enterpriseAgDefaultCompsModule[i];return c?ct.__assertRegistered(c,"AG Grid '".concat(e,"' component: ").concat(i),this.context.getGridId()):po(function(){r.warnAboutMissingComponent(e,i)},"MissingComp"+i),null},t.prototype.warnAboutMissingComponent=function(e,i){var r=Eg(Eg([],Sg(Object.keys(this.agGridDefaults).filter(function(s){return!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(s)})),!1),Sg(Object.keys(this.jsComps)),!1),n=ll(i,r,!0,.8).values;console.warn("AG Grid: Could not find '".concat(i,`' component. It was configured as "`).concat(e,": '").concat(i,`'" but it wasn't found in the list of registered components.`)),n.length>0&&console.warn(" Did you mean: [".concat(n.slice(0,3),"]?")),console.warn("If using a custom component check it has been registered as described
131in: ".concat(this.getFrameworkOverrides().getDocLink("components/")))},zd([E("gridOptions")],t.prototype,"gridOptions",void 0),zd([ie],t.prototype,"init",null),t=zd([fe("userComponentRegistry")],t),t}(ee),QR={propertyName:"dateComponent",cellRenderer:!1},JR={propertyName:"headerComponent",cellRenderer:!1},ZR={propertyName:"headerGroupComponent",cellRenderer:!1},_g={propertyName:"cellRenderer",cellRenderer:!0},eA={propertyName:"cellEditor",cellRenderer:!1},Og={propertyName:"innerRenderer",cellRenderer:!0},tA={propertyName:"loadingOverlayComponent",cellRenderer:!1},iA={propertyName:"noRowsOverlayComponent",cellRenderer:!1},rA={propertyName:"tooltipComponent",cellRenderer:!1},cf={propertyName:"filter",cellRenderer:!1},nA={propertyName:"floatingFilterComponent",cellRenderer:!1},oA={propertyName:"toolPanel",cellRenderer:!1},sA={propertyName:"statusPanel",cellRenderer:!1},aA={propertyName:"fullWidthCellRenderer",cellRenderer:!0},lA={propertyName:"loadingCellRenderer",cellRenderer:!0},uA={propertyName:"groupRowRenderer",cellRenderer:!0},cA={propertyName:"detailCellRenderer",cellRenderer:!0},dA={propertyName:"menuItem",cellRenderer:!1},pA=function(){function o(){}return o.getFloatingFilterType=function(t){return this.filterToFloatingFilterMapping[t]},o.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",group:"agGroupColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},o}(),fA=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),jo=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},hA=function(o){fA(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.getHeaderCompDetails=function(e,i){return this.getCompDetails(e,JR,"agColumnHeader",i)},t.prototype.getHeaderGroupCompDetails=function(e){var i=e.columnGroup.getColGroupDef();return this.getCompDetails(i,ZR,"agColumnGroupHeader",e)},t.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,aA,null,e,!0)},t.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,lA,"agLoadingCellRenderer",e,!0)},t.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,uA,"agGroupRowRenderer",e,!0)},t.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,cA,"agDetailCellRenderer",e,!0)},t.prototype.getInnerRendererDetails=function(e,i){return this.getCompDetails(e,Og,null,i)},t.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,i){return this.getCompDetails(e,Og,null,i)},t.prototype.getCellRendererDetails=function(e,i){return this.getCompDetails(e,_g,null,i)},t.prototype.getCellEditorDetails=function(e,i){return this.getCompDetails(e,eA,"agCellEditor",i,!0)},t.prototype.getFilterDetails=function(e,i,r){return this.getCompDetails(e,cf,r,i,!0)},t.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,QR,"agDateInput",e,!0)}
131,t.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,tA,"agLoadingOverlay",e,!0)},t.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,iA,"agNoRowsOverlay",e,!0)},t.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,rA,"agTooltipComponent",e,!0)},t.prototype.getSetFilterCellRendererDetails=function(e,i){return this.getCompDetails(e,_g,null,i)},t.prototype.getFloatingFilterCompDetails=function(e,i,r){return this.getCompDetails(e,nA,r,i)},t.prototype.getToolPanelCompDetails=function(e,i){return this.getCompDetails(e,oA,null,i,!0)},t.prototype.getStatusPanelCompDetails=function(e,i){return this.getCompDetails(e,sA,null,i,!0)},t.prototype.getMenuItemCompDetails=function(e,i){return this.getCompDetails(e,dA,"agMenuItem",i,!0)},t.prototype.getCompDetails=function(e,i,r,n,s){var a=this;s===void 0&&(s=!1);var l=i.propertyName,u=i.cellRenderer,c=this.getCompKeys(e,i,n),p=c.compName,f=c.jsComp,v=c.fwComp,y=c.paramsFromSelector,w=c.popupFromSelector,b=c.popupPositionFromSelector,O=function(x){var H=a.userComponentRegistry.retrieve(l,x);H&&(f=H.componentFromFramework?void 0:H.component,v=H.componentFromFramework?H.component:void 0)};if(p!=null&&O(p),f==null&&v==null&&r!=null&&O(r),f&&u&&!this.agComponentUtils.doesImplementIComponent(f)&&(f=this.agComponentUtils.adaptFunction(l,f)),!f&&!v){s&&console.error("AG Grid: Could not find component ".concat(p,", did you forget to configure this component?"));return}
131var A=this.mergeParamsWithApplicationProvidedParams(e,i,n,y),P=f==null,L=f||v;return{componentFromFramework:P,componentClass:L,params:A,type:i,popupFromSelector:w,popupPositionFromSelector:b,newAgStackInstance:function(){return a.newAgStackInstance(L,P,A,i)}}},t.prototype.getCompKeys=function(e,i,r){var n=this,s=i.propertyName,a,l,u,c,p,f;if(e){var v=e,y=v[s+"Selector"],w=y?y(r):null,b=function(O){if(typeof O=="string")a=O;else if(O!=null&&O!==!0){var A=n.getFrameworkOverrides().isFrameworkComponent(O);A?u=O:l=O}};w?(b(w.component),c=w.params,p=w.popup,f=w.popupPosition):b(v[s])}return{compName:a,jsComp:l,fwComp:u,paramsFromSelector:c,popupFromSelector:p,popupPositionFromSelector:f}},t.prototype.newAgStackInstance=function(e,i,r,n){var s=n.propertyName,a=!i,l;if(a)l=new e;else{var u=this.componentMetadataProvider.retrieve(s);l=this.frameworkComponentWrapper.wrap(e,u.mandatoryMethodList,u.optionalMethodList,n)}var c=this.initComponent(l,r);return c==null?Ei.resolve(l):c.then(function(){return l})},t.prototype.mergeParamsWithApplicationProvidedParams=function(e,i,r,n){n===void 0&&(n=null);var s=this.gridOptionsService.getGridCommonParams();_i(s,r);var a=e,l=a&&a[i.propertyName+"Params"];if(typeof l=="function"){var u=l(r);_i(s,u)}else typeof l=="object"&&_i(s,l);return _i(s,n),s},t.prototype.initComponent=function(e,i){if(this.context.createBean(e),e.init!=null)return e.init(i)},t.prototype.getDefaultFloatingFilterType=function(e,i){if(e==null)return null;var r=null,n=this.getCompKeys(e,cf),s=n.compName,a=n.jsComp,l=n.fwComp;if(s)r=pA.getFloatingFilterType(s);else{var u=a==null&&l==null&&e.filter===!0;u&&(r=i())}return r},jo([E("gridOptions")],t.prototype,"gridOptions",void 0),jo([E("agComponentUtils")],t.prototype,"agComponentUtils",void 0),jo([E("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),jo([E("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),jo([nt("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),t=jo([fe("userComponentFactory")],t),t}(ee),vA=function(){function o(){}return o.ColDefPropertyMap={headerName:void 0,columnGroupShow:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnsMenuParams:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressCellFlash:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressMenu:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressS
131panHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0},o.ALL_PROPERTIES=Object.keys(o.ColDefPropertyMap),o}(),Ju;(function(o){o[o.SINGLE_SHEET=0]="SINGLE_SHEET",o[o.MULTI_SHEET=1]="MULTI_SHEET"})(Ju||(Ju={}));var gA=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),$d=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},yA=function(o){gA(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.dragEndFunctions=[],e.dragSources=[],e}return t.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},t.prototype.removeListener=function(e){var i=e.dragSource.eElement,r=e.mouseDownListener;if(i.removeEventListener("mousedown",r),e.touchEnabled){var n=e.touchStartListener;i.removeEventListener("touchstart",n,{passive:!0})}},t.prototype.removeDragSource=function(e){var i=this.dragSources.find(function(r){return r.dragSource===e});i&&(this.removeListener(i),ui(this.dragSources,i))},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e){var i=this,r=this.onMouseDown.bind(this,e),n=e.eElement,s=e.includeTouch,a=e.stopPropagationForTouch;n.addEventListener("mousedown",r);var l=null,u=this.gridOptionsService.get("suppressTouch");s&&!u&&(l=function(c){uh(c.target)||(c.cancelable&&(c.preventDefault(),a&&c.stopPropagation()),i.onTouchStart(e,c))},n.addEventListener("touchstart",l,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:r,touchStartListener:l,touchEnabled:!!s})},t.prototype.getStartTarget=function(){return this.startTarget},t.prototype.onTouchStart=function(e,i){var r=this;this.currentDragParams=e,this.dragging=!1;var n=i.touches[0];this.touchLastTime=n,this.touchStart=n;var s=function(p){return r.onTouchMove(p,e.eElement)},a=function(p){return r.onTouchUp(p,e.eElement)},l=function(p){p.cancelable&&p.preventDefault()},u=i.target,c=[{target:this.gridOptionsService.getRootNode(),type:"touchmove",listener:l,options:{passive:!1}},{target:u,type:"touchmove",listener:s,options:{passive:!0}},{target:u,type:"touchend",listener:a,options:{passive:!0}},{target:u,type:"touchcancel",listener:a,options:{passive:!0}}];this.addTemporaryEvents(c),e.dragStartPixels===0&&this.onCommonMove(n,this.touchStart,e.eElement)},t.prototype.onMouseDown=function(e,i){var r=this,n=i;if(!(e.skipMouseEvent&&e.skipMouseEvent(i))&&!n._alreadyProcessedByDragService&&(n._alreadyProcessedByDragService=!0,i.button===0)){this.shouldPreventMouseEvent(i)&&i.preventDefault(),this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=i,this.startTarget=i.target;var s=function(p){return r.onMouseMove(p,e.eElement)},a=function(p){return r.onMouseUp(p,e.eElement)},l=function(p){return p.preventDefault()},u=this.gridOptionsService.getRootNode(),c=[{target:u,type:"mousemove",listener:s},{target:u,type:"mouseup",listener:a},{target:u,type:"contextmenu",listener:l}];this.addTemporaryEvents(c),e.dragStartPixels===0&&this.onMouseMove(i,e.eElement)}},t.prototype.addTemporaryEvents=function(e){e.forEach(function(i){var r=i.target,n=i.type,s=i.listener,a=i.options;r.addEventListener(n,s,a)}),this.dragEndFunctions.push(function(){e.forEach(function(i){var r=i.target,n=i.type,s=i.listener,a=i.options;r.removeEventListener(n,s,a)})})},t.prototype.isEventNearStartEvent=function(e,i){var r=this.currentDragParams.dragStartPixels,n=Q(r)?r:4;return mh(e,i,n)},t.prototype.getFirstActiveTouch=function(e){for(var i=0;i<e.length;i++)if(e[i].identifier===this.touchStart.identifier)return e[i];return null},t.prototype.onCommonMove=function(e,i,r){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,i))return;this.dragging=!0;var n={type:T.EVENT_DRAG_STARTED,target:r};this.eventService.dispatchEvent(n),this.currentDragParams.onDragStart(i),this.currentDragParams.onDragging(i)}this.currentDragParams.onDragging(e)},t.prototype.onTouchMove=function(e,i){var r=this.getFirstActiveTouch(e.touches);
131r&&this.onCommonMove(r,this.touchStart,i)},t.prototype.onMouseMove=function(e,i){var r;if(Dr()){var n=this.gridOptionsService.getDocument();(r=n.getSelection())===null||r===void 0||r.removeAllRanges()}this.shouldPreventMouseEvent(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,i)},t.prototype.shouldPreventMouseEvent=function(e){var i=this.gridOptionsService.get("enableCellTextSelection"),r=e.type==="mousemove";return i&&r&&e.cancelable&&this.mouseEventService.isEventFromThisGrid(e)&&!this.isOverFormFieldElement(e)},t.prototype.isOverFormFieldElement=function(e){var i=e.target,r=i==null?void 0:i.tagName.toLocaleLowerCase();return!!(r!=null&&r.match("^a$|textarea|input|select|button"))},t.prototype.onTouchUp=function(e,i){var r=this.getFirstActiveTouch(e.changedTouches);r||(r=this.touchLastTime),this.onUpCommon(r,i)},t.prototype.onMouseUp=function(e,i){this.onUpCommon(e,i)},t.prototype.onUpCommon=function(e,i){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var r={type:T.EVENT_DRAG_STOPPED,target:i};this.eventService.dispatchEvent(r)}this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach(function(n){return n()}),this.dragEndFunctions.length=0},$d([E("mouseEventService")],t.prototype,"mouseEventService",void 0),$d([Xt],t.prototype,"removeAllListeners",null),t=$d([fe("dragService")],t),t}(ee),Sw=function(){function o(t){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=t.scrollContainer,this.scrollHorizontally=t.scrollAxis.indexOf("x")!==-1,this.scrollVertically=t.scrollAxis.indexOf("y")!==-1,this.scrollByTick=t.scrollByTick!=null?t.scrollByTick:20,t.onScrollCallback&&(this.onScrollCallback=t.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=t.getVerticalPosition,this.setVerticalPosition=t.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=t.getHorizontalPosition,this.setHorizontalPosition=t.setHorizontalPosition),this.shouldSkipVerticalScroll=t.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=t.shouldSkipHorizontalScroll||function(){return!1}}return o.prototype.check=function(t,e){e===void 0&&(e=!1);var i=e||this.shouldSkipVerticalScroll();if(!(i&&this.shouldSkipHorizontalScroll())){var r=this.scrollContainer.getBoundingClientRect(),n=this.scrollByTick;this.tickLeft=t.clientX<r.left+n,this.tickRight=t.clientX>r.right-n,this.tickUp=t.clientY<r.top+n&&!i,this.tickDown=t.clientY>r.bottom-n&&!i,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},o.prototype.ensureTickingStarted=function(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},o.prototype.doTick=function(){this.tickCount++;var t;if(t=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var e=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(e-t),this.tickDown&&this.setVerticalPosition(e+t)}if(this.scrollHorizontally){var i=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(i-t),this.tickRight&&this.setHorizontalPosition(i+t)}this.onScrollCallback&&this.onScrollCallback()},o.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},o}(),mA=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),bg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Kd="ag-list-item-hovered";(function(o){mA(t,o);function t(e,i,r){var n=o.call(this)||this;return n.comp=e,n.virtualList=i,n.params=r,n.currentDragValue=null,n.lastHoveredListItem=null,n}return t.prototype.postConstruct=function(){this.addManagedListener(this.params.eventSource,this.params.listItemDragStartEvent,this.listItemDragStart.bind(this)),this.addManagedListener(this.params.eventSource,this.params.listItemDragEndEvent,this.listItemDragEnd.bind(this)),this.createDropTarget(),this.createAutoScrollService()},t.prototype.listItemDragStart=function(e){this.currentDragValue=this.params.getCurrentDragValue(e),this.moveBlocked=this.params.isMoveBlocked(this.currentDragValue)},t.prototype.listItemDragEnd=function(){var e=this;window.setTimeout(function(){e.currentDragValue=null,e.moveBlocked=!1},10)},t.prototype.createDropTarget=function(){var e=this,i={isInterestedIn:function(r){return r===e.params.dragSourceType},getIconName:function(){return e.moveBlocked?It.ICON_PINNED:It.ICON_MOVE},getContainer:function(){return e.comp.getGui()},onDragging:function(r){return e.onDragging(r)},onDragStop:function(){return e.onDragStop()},onDragLeave:function(){return e.onDragLeave()}};this.dragAndDropService.addDropTarget(i)},t.prototype.createAutoScrollService=function(){var e=this.virtualList.getGui();
131this.autoScrollService=new Sw({scrollContainer:e,scrollAxis:"y",getVerticalPosition:function(){return e.scrollTop},setVerticalPosition:function(i){return e.scrollTop=i}})},t.prototype.onDragging=function(e){if(!(!this.currentDragValue||this.moveBlocked)){var i=this.getListDragItem(e),r=this.virtualList.getComponentAt(i.rowIndex);if(r){var n=r.getGui().parentElement;this.lastHoveredListItem&&this.lastHoveredListItem.rowIndex===i.rowIndex&&this.lastHoveredListItem.position===i.position||(this.autoScrollService.check(e.event),this.clearHoveredItems(),this.lastHoveredListItem=i,nf(n,Kd),nf(n,"ag-item-highlight-".concat(i.position)))}}},t.prototype.getListDragItem=function(e){var i=this.virtualList.getGui(),r=parseFloat(window.getComputedStyle(i).paddingTop),n=this.virtualList.getRowHeight(),s=this.virtualList.getScrollTop(),a=Math.max(0,(e.y-r+s)/n),l=this.params.getNumRows(this.comp)-1,u=Math.min(l,a)|0;return{rowIndex:u,position:Math.round(a)>a||a>l?"bottom":"top",component:this.virtualList.getComponentAt(u)}},t.prototype.onDragStop=function(){this.moveBlocked||(this.params.moveItem(this.currentDragValue,this.lastHoveredListItem),this.clearHoveredItems(),this.autoScrollService.ensureCleared())},t.prototype.onDragLeave=function(){this.clearHoveredItems(),this.autoScrollService.ensureCleared()},t.prototype.clearHoveredItems=function(){var e=this.virtualList.getGui();e.querySelectorAll(".".concat(Kd)).forEach(function(i){[Kd,"ag-item-highlight-top","ag-item-highlight-bottom"].forEach(function(r){i.classList.remove(r)})}),this.lastHoveredListItem=null},bg([E("dragAndDropService")],t.prototype,"dragAndDropService",void 0),bg([ie],t.prototype,"postConstruct",null),t})(ee);var zr;(function(o){o[o.Above=0]="Above",o[o.Below=1]="Below"})(zr||(zr={}));var Je=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n};function oo(o){var t=o,e=t!=null&&t.getFrameworkComponentInstance!=null;return e?t.getFrameworkComponentInstance():o}var Ew=function(){function o(){this.detailGridInfoMap={},this.destroyCalled=!1}return o.prototype.init=function(){var t=this;switch(this.rowModel.getType()){case"clientSide":this.clientSideRowModel=this.rowModel;break;case"infinite":this.infiniteRowModel=this.rowModel;break;case"serverSide":this.serverSideRowModel=this.rowModel;break}this.ctrlsService.whenReady(function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()})},o.prototype.__getAlignedGridService=function(){return this.alignedGridsService},o.prototype.__getContext=function(){return this.context},o.prototype.__getModel=function(){return this.rowModel},o.prototype.getGridId=function(){return this.context.getGridId()},o.prototype.addDetailGridInfo=function(t,e){this.detailGridInfoMap[t]=e},o.prototype.removeDetailGridInfo=function(t){this.detailGridInfoMap[t]=void 0},o.prototype.getDetailGridInfo=function(t){return this.detailGridInfoMap[t]},o.prototype.forEachDetailGridInfo=function(t){var e=0;Ut(this.detailGridInfoMap,function(i,r){Q(r)&&(t(r,e),e++)})},o.prototype.getDataAsCsv=function(t){if(ct.__assertRegistered(Oe.CsvExportModule,"api.getDataAsCsv",this.context.getGridId()))return this.csvCreator.getDataAsCsv(t)},o.prototype.exportDataAsCsv=function(t){ct.__assertRegistered(Oe.CsvExportModule,"api.exportDataAsCSv",this.context.getGridId())&&this.csvCreator.exportDataAsCsv(t)},o.prototype.assertNotExcelMultiSheet=function(t,e){return ct.__assertRegistered(Oe.ExcelExportModule,"api."+t,this.context.getGridId())?this.excelCreator.getFactoryMode()===Ju.MULTI_SHEET?(console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'"),!1):!0:!1},o.prototype.getDataAsExcel=function(t){if(this.assertNotExcelMultiSheet("getDataAsExcel",t))return this.excelCreator.getDataAsExcel(t)}
131,o.prototype.exportDataAsExcel=function(t){this.assertNotExcelMultiSheet("exportDataAsExcel",t)&&this.excelCreator.exportDataAsExcel(t)},o.prototype.getSheetDataForExcel=function(t){if(ct.__assertRegistered(Oe.ExcelExportModule,"api.getSheetDataForExcel",this.context.getGridId()))return this.excelCreator.setFactoryMode(Ju.MULTI_SHEET),this.excelCreator.getSheetDataForExcel(t)},o.prototype.getMultipleSheetsAsExcel=function(t){if(ct.__assertRegistered(Oe.ExcelExportModule,"api.getMultipleSheetsAsExcel",this.context.getGridId()))return this.excelCreator.getMultipleSheetsAsExcel(t)},o.prototype.exportMultipleSheetsAsExcel=function(t){ct.__assertRegistered(Oe.ExcelExportModule,"api.exportMultipleSheetsAsExcel",this.context.getGridId())&&this.excelCreator.exportMultipleSheetsAsExcel(t)},o.prototype.setGridAriaProperty=function(t,e){if(t){var i=this.ctrlsService.getGridBodyCtrl().getGui(),r="aria-".concat(t);e===null?i.removeAttribute(r):i.setAttribute(r,e)}},o.prototype.logMissingRowModel=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];console.error("AG Grid: api.".concat(t," can only be called when gridOptions.rowModelType is ").concat(e.join(" or ")))},o.prototype.logDeprecation=function(t,e,i,r){Le("Since ".concat(t," api.").concat(e," is deprecated. Please use ").concat(i," instead. ").concat(r))},o.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},o.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},o.prototype.getPinnedTopRow=function(t){return this.pinnedRowModel.getPinnedTopRow(t)},o.prototype.getPinnedBottomRow=function(t){return this.pinnedRowModel.getPinnedBottomRow(t)},o.prototype.expireValueCache=function(){this.valueCache.expire()},o.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},o.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},o.prototype.refreshCells=function(t){var e=this;t===void 0&&(t={}),this.frameworkOverrides.wrapIncoming(function(){return e.rowRenderer.refreshCells(t)})},o.prototype.flashCells=function(t){var e=this;t===void 0&&(t={});var i=function(r){return Le("Since v31.1 api.flashCells parameter '".concat(r,"Delay' is deprecated. Please use '").concat(r,"Duration' instead."))};Q(t.fadeDelay)&&i("fade"),Q(t.flashDelay)&&i("flash"),this.frameworkOverrides.wrapIncoming(function(){return e.rowRenderer.flashCells(t)})},o.prototype.redrawRows=function(t){var e=this;t===void 0&&(t={});var i=t?t.rowNodes:void 0;this.frameworkOverrides.wrapIncoming(function(){return e.rowRenderer.redrawRows(i)})},o.prototype.refreshHeader=function(){var t=this;this.frameworkOverrides.wrapIncoming(function(){return t.ctrlsService.getHeaderRowContainerCtrls().forEach(function(e){return e.refresh()})})},o.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},o.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},o.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},o.prototype.getModel=function(){return Le("Since v31.1 getModel() is deprecated. Please use the appropriate grid API methods instead."),this.rowModel},o.prototype.setRowNodeExpanded=function(t,e,i){this.expansionService.setRowNodeExpanded(t,e,i)},o.prototype.onGroupExpandedOrCollapsed=function(){if(Me(this.clientSideRowModel)){this.logMissingRowModel("onGroupExpandedOrCollapsed","clientSide");return}this.expansionService.onGroupExpandedOrCollapsed()},o.prototype.refreshClientSideRowModel=function(t){if(Me(this.clientSideRowModel)){this.logMissingRowModel("refreshClientSideRowModel","clientSide");return}this.clientSideRowModel.refreshModel(t)},o.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},o.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},o.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},o.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gos.getRowHeightAsNumber(),headerHeight:this.columnModel.getHeaderHeight()}},o.prototype.expandAll=function(){this.clientSideRowModel||this.serverSideRowModel?this.expansionService.expandAll(!0):this.logMissingRowModel("expandAll","clientSide","serverSide")},o.prototype.collapseAll=function(){this.clientSideRowModel||this.serverSideRowModel?this.expansionService.expandAll(!1):this.logMissingRowModel("collapseAll","clientSide","serverSide")}
131,o.prototype.addRenderedRowListener=function(t,e,i){this.rowRenderer.addRenderedRowListener(t,e,i)},o.prototype.getQuickFilter=function(){return this.gos.get("quickFilterText")},o.prototype.getAdvancedFilterModel=function(){return ct.__assertRegistered(Oe.AdvancedFilterModule,"api.getAdvancedFilterModel",this.context.getGridId())?this.filterManager.getAdvancedFilterModel():null},o.prototype.setAdvancedFilterModel=function(t){this.filterManager.setAdvancedFilterModel(t)},o.prototype.showAdvancedFilterBuilder=function(){ct.__assertRegistered(Oe.AdvancedFilterModule,"api.setAdvancedFilterModel",this.context.getGridId())&&this.filterManager.showAdvancedFilterBuilder("api")},o.prototype.setNodesSelected=function(t){var e=t.nodes.every(function(a){return a.rowPinned?(console.warn("AG Grid: cannot select pinned rows"),!1):a.id===void 0?(console.warn("AG Grid: cannot select node until id for node is known"),!1):!0});if(e){var i=t.nodes,r=t.source,n=t.newValue,s=i;this.selectionService.setNodesSelected({nodes:s,source:r??"api",newValue:n})}},o.prototype.selectAll=function(t){t===void 0&&(t="apiSelectAll"),this.selectionService.selectAllRowNodes({source:t})},o.prototype.deselectAll=function(t){t===void 0&&(t="apiSelectAll"),this.selectionService.deselectAllRowNodes({source:t})},o.prototype.selectAllFiltered=function(t){t===void 0&&(t="apiSelectAllFiltered"),this.selectionService.selectAllRowNodes({source:t,justFiltered:!0})},o.prototype.deselectAllFiltered=function(t){t===void 0&&(t="apiSelectAllFiltered"),this.selectionService.deselectAllRowNodes({source:t,justFiltered:!0})},o.prototype.getServerSideSelectionState=function(){return Me(this.serverSideRowModel)?(this.logMissingRowModel("getServerSideSelectionState","serverSide"),null):this.selectionService.getSelectionState()},o.prototype.setServerSideSelectionState=function(t){if(Me(this.serverSideRowModel)){this.logMissingRowModel("setServerSideSelectionState","serverSide");return}this.selectionService.setSelectionState(t,"api")},o.prototype.selectAllOnCurrentPage=function(t){t===void 0&&(t="apiSelectAllCurrentPage"),this.selectionService.selectAllRowNodes({source:t,justCurrentPage:!0})},o.prototype.deselectAllOnCurrentPage=function(t){t===void 0&&(t="apiSelectAllCurrentPage"),this.selectionService.deselectAllRowNodes({source:t,justCurrentPage:!0})},o.prototype.showLoadingOverlay=function(){this.overlayService.showLoadingOverlay()},o.prototype.showNoRowsOverlay=function(){this.overlayService.showNoRowsOverlay()},o.prototype.hideOverlay=function(){this.overlayService.hideOverlay()},o.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},o.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},o.prototype.getBestCostNodeSelection=function(){if(Me(this.clientSideRowModel)){this.logMissingRowModel("getBestCostNodeSelection","clientSide");return}return this.selectionService.getBestCostNodeSelection()},o.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},o.prototype.ensureColumnVisible=function(t,e){var i=this;e===void 0&&(e="auto"),this.frameworkOverrides.wrapIncoming(function(){return i.gridBodyCtrl.getScrollFeature().ensureColumnVisible(t,e)},"ensureVisible")},o.prototype.ensureIndexVisible=function(t,e){var i=this;this.frameworkOverrides.wrapIncoming(function(){return i.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t,e)},"ensureVisible")},o.prototype.ensureNodeVisible=function(t,e){var i=this;e===void 0&&(e=null),this.frameworkOverrides.wrapIncoming(function(){return i.gridBodyCtrl.getScrollFeature().ensureNodeVisible(t,e)},"ensureVisible")},o.prototype.forEachLeafNode=function(t){if(Me(this.clientSideRowModel)){this.logMissingRowModel("forEachLeafNode","clientSide");return}this.clientSideRowModel.forEachLeafNode(t)},o.prototype.forEachNode=function(t,e){this.rowModel.forEachNode(t,e)},o.prototype.forEachNodeAfterFilter=function(t){if(Me(this.clientSideRowModel)){this.logMissingRowModel("forEachNodeAfterFilter","clientSide");return}this.clientSideRowModel.forEachNodeAfterFilter(t)},o.prototype.forEachNodeAfterFilterAndSort=function(t){if(Me(this.clientSideRowModel)){this.logMissingRowModel("forEachNodeAfterFilterAndSort","clientSide");return}this.clientSideRowModel.forEachNodeAfterFilterAndSort(t)},o.prototype.getFilterInstance=function(t,e){return Le("'getFilterInstance' is deprecated. To get/set individual filter models, use 'getColumnFilterModel' or 'setColumnFilterModel' instead. To get hold of the filter instance, use 'getColumnFilterInstance' which returns the instance asynchronously."),this.filterManager.getFilterInstance(t,e)},o.prototype.getColumnFilterInstance=function(t){return this.filterManager.getColumnFilterInstance(t)},o.prototype.destroyFilter=function(t){var e=this.columnModel.getPrimaryColumn(t);if(e)return this.filterManager.destroyFilter(e,"api")},o.prototype.getStatusPanel=function(t){if(ct.__assertRegistered(Oe.StatusBarModule,"api.getStatusPanel",this.context.getGridId())){var e=this.statusBarService.getStatusPanel(t);return oo(e)}},o.prototype.getColumnDef=function(t){var e=this.columnModel.getPrimaryColumn(t);return e?e.getColDef():null},o.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},o.prototype.onFilterChanged=function(t){t===void 0&&(t="api"),this.filterManager.onFilterChanged({source:t})},o.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},o.prototype.setFilterModel=function(t){var e=this;this.frameworkOverrides.wrapIncoming(function(){return e.filterManager.setFilterModel(t)})},o.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},o.prototype.getColumnFilterModel=function(t){return this.filterManager.getColumnFilterModel(t)},o.prototype.setColumnFilterModel=function(t,e){return this.filterManager.setColumnFilterModel(t,e)},o.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},o.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()}
131,o.prototype.setFocusedCell=function(t,e,i){this.focusService.setFocusedCell({rowIndex:t,column:e,rowPinned:i,forceBrowserFocus:!0})},o.prototype.addRowDropZone=function(t){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(t)},o.prototype.removeRowDropZone=function(t){var e=this.dragAndDropService.findExternalZone(t);e&&this.dragAndDropService.removeDropTarget(e)},o.prototype.getRowDropZoneParams=function(t){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(t)},o.prototype.assertSideBarLoaded=function(t){return ct.__assertRegistered(Oe.SideBarModule,"api."+t,this.context.getGridId())},o.prototype.isSideBarVisible=function(){return this.assertSideBarLoaded("isSideBarVisible")&&this.sideBarService.getSideBarComp().isDisplayed()},o.prototype.setSideBarVisible=function(t){this.assertSideBarLoaded("setSideBarVisible")&&this.sideBarService.getSideBarComp().setDisplayed(t)},o.prototype.setSideBarPosition=function(t){this.assertSideBarLoaded("setSideBarPosition")&&this.sideBarService.getSideBarComp().setSideBarPosition(t)},o.prototype.openToolPanel=function(t){this.assertSideBarLoaded("openToolPanel")&&this.sideBarService.getSideBarComp().openToolPanel(t,"api")},o.prototype.closeToolPanel=function(){this.assertSideBarLoaded("closeToolPanel")&&this.sideBarService.getSideBarComp().close("api")},o.prototype.getOpenedToolPanel=function(){return this.assertSideBarLoaded("getOpenedToolPanel")?this.sideBarService.getSideBarComp().openedItem():null},o.prototype.refreshToolPanel=function(){this.assertSideBarLoaded("refreshToolPanel")&&this.sideBarService.getSideBarComp().refresh()},o.prototype.isToolPanelShowing=function(){return this.assertSideBarLoaded("isToolPanelShowing")&&this.sideBarService.getSideBarComp().isToolPanelShowing()},o.prototype.getToolPanelInstance=function(t){if(this.assertSideBarLoaded("getToolPanelInstance")){var e=this.sideBarService.getSideBarComp().getToolPanelInstance(t);return oo(e)}},o.prototype.getSideBar=function(){if(this.assertSideBarLoaded("getSideBar"))return this.sideBarService.getSideBarComp().getDef()},o.prototype.resetRowHeights=function(){if(Q(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive()){console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");return}this.clientSideRowModel.resetRowHeights()}},o.prototype.setRowCount=function(t,e){if(this.serverSideRowModel){if(this.columnModel.isRowGroupEmpty()){this.serverSideRowModel.setRowCount(t,e);return}console.error("AG Grid: setRowCount cannot be used while using row grouping.");return}if(this.infiniteRowModel){this.infiniteRowModel.setRowCount(t,e);return}
131this.logMissingRowModel("setRowCount","infinite","serverSide")},o.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},o.prototype.getValue=function(t,e){var i=this.columnModel.getPrimaryColumn(t);return Me(i)&&(i=this.columnModel.getGridColumn(t)),Me(i)?null:this.valueService.getValue(i,e)},o.prototype.addEventListener=function(t,e){this.apiEventService.addEventListener(t,e)},o.prototype.addGlobalListener=function(t){this.apiEventService.addGlobalListener(t)},o.prototype.removeEventListener=function(t,e){this.apiEventService.removeEventListener(t,e)},o.prototype.removeGlobalListener=function(t){this.apiEventService.removeGlobalListener(t)},o.prototype.dispatchEvent=function(t){this.eventService.dispatchEvent(t)},o.prototype.destroy=function(){var t="See ".concat(this.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed"));if(!this.destroyCalled){var e={type:T.EVENT_GRID_PRE_DESTROYED,state:this.getState()};this.dispatchEvent(e),this.destroyCalled=!0;var i=this.ctrlsService.getGridCtrl();i&&i.destroyGridUi(),this.context.destroy(),tC(this,["isDestroyed"],t)}},o.prototype.isDestroyed=function(){return this.destroyCalled},o.prototype.resetQuickFilter=function(){this.filterManager.resetQuickFilterCache()},o.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(ct.__assertRegistered(Oe.RangeSelectionModule,"api.getCellRanges",this.context.getGridId()),null)},o.prototype.addCellRange=function(t){if(this.rangeService){this.rangeService.addCellRange(t);return}ct.__assertRegistered(Oe.RangeSelectionModule,"api.addCellRange",this.context.getGridId())},o.prototype.clearRangeSelection=function(){this.rangeService&&this.rangeService.removeAllCellRanges(),ct.__assertRegistered(Oe.RangeSelectionModule,"gridApi.clearRangeSelection",this.context.getGridId())},o.prototype.undoCellEditing=function(){this.undoRedoService.undo("api")},o.prototype.redoCellEditing=function(){this.undoRedoService.redo("api")},o.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},o.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},o.prototype.assertChart=function(t,e){if(ct.__assertRegistered(Oe.GridChartsModule,"api."+t,this.context.getGridId()))return this.frameworkOverrides.wrapIncoming(function(){return e()})},o.prototype.getChartModels=function(){var t=this;return this.assertChart("getChartModels",function(){return t.chartService.getChartModels()})},o.prototype.getChartRef=function(t){var e=this;return this.assertChart("getChartRef",function(){return e.chartService.getChartRef(t)})},o.prototype.getChartImageDataURL=function(t){var e=this;return this.assertChart("getChartImageDataURL",function(){return e.chartService.getChartImageDataURL(t)})},o.prototype.downloadChart=function(t){var e=this;return this.assertChart("downloadChart",function(){return e.chartService.downloadChart(t)})},o.prototype.openChartToolPanel=function(t){var e=this;return this.assertChart("openChartToolPanel",function(){return e.chartService.openChartToolPanel(t)})},o.prototype.closeChartToolPanel=function(t){var e=this;return this.assertChart("closeChartToolPanel",function(){return e.chartService.closeChartToolPanel(t.chartId)})},o.prototype.createRangeChart=function(t){var e=this;return this.assertChart("createRangeChart",function(){return e.chartService.createRangeChart(t)})},o.prototype.createPivotChart=function(t){var e=this;return this.assertChart("createPivotChart",function(){return e.chartService.createPivotChart(t)})},o.prototype.createCrossFilterChart=function(t){var e=this;return this.assertChart("createCrossFilterChart",function(){return e.chartService.createCrossFilterChart(t)})},o.prototype.updateChart=function(t){var e=this;return this.assertChart("updateChart",function(){return e.chartService.updateChart(t)})},o.prototype.restoreChart=function(t,e){var i=this;return this.assertChart("restoreChart",function(){return i.chartService.restoreChart(t,e)})},o.prototype.assertClipboard=function(t,e){ct.__assertRegistered(Oe.ClipboardModule,"api"+t,this.context.getGridId())&&e()},o.prototype.copyToClipboard=function(t){var e=this;this.assertClipboard("copyToClipboard",function(){return e.clipboardService.copyToClipboard(t)})},o.prototype.cutToClipboard=function(t){var e=this;this.assertClipboard("cutToClipboard",function(){return e.clipboardService.cutToClipboard(t)})},o.prototype.copySelectedRowsToClipboard=function(t){var e=this;this.assertClipboard("copySelectedRowsToClipboard",function(){return e.clipboardService.copySelectedRowsToClipboard(t)})},o.prototype.copySelectedRangeToClipboard=function(t){var e=this;this.assertClipboard("copySelectedRangeToClipboard",function(){return e.clipboardService.copySelectedRangeToClipboard(t)})},o.prototype.copySelectedRangeDown=function(){var t=this;this.assertClipboard("copySelectedRangeDown",function(){return t.clipboardService.copyRangeDown()})},o.prototype.pasteFromClipboard=function(){var t=this;this.assertClipboard("pasteFromClipboard",function(){return t.clipboardService.pasteFromClipboard()})},o.prototype.showColumnMenuAfterButtonClick=function(t,e){Le("'showColumnMenuAfterButtonClick' is deprecated. Use 'IHeaderParams.showColumnMenu' within a header component, or 'api.showColumnMenu' elsewhere.");var i=this.columnModel.getGridColumn(t);this.menuService.showColumnMenu({column:i,buttonElement:e,positionBy:"button"})},o.prototype.showColumnMenuAfterMouseClick=function(t,e){Le("'showColumnMenuAfterMouseClick' is deprecated. Use 'IHeaderParams.showColumnMenuAfterMouseClick' within a header component, or 'api.showColumnMenu' elsewhere.");var i=this.columnModel.getGridColumn(t);if(i||(i=this.columnModel.getPrimaryColumn(t)),!i){console.error("AG Grid: column '".concat(t,"' not found"));return}this.menuService.showColumnMenu({column:i,mouseEvent:e,positionBy:"mouse"})},o.prototype.showColumnChooser=function(t){this.menuService.showColumnChooser({chooserParams:t})},o.prototype.showColumnFilter=function(t){var e=this.columnModel.getGridColumn(t);if(!e){console.error("AG Grid: column '".concat(t,"' not found"));return}this.menuService.showFilterMenu({column:e,containerType:"columnFilter",positionBy:"auto"})},o.prototype.showColumnMenu=function(t){var e=this.columnModel.getGridColumn(t);if(!e){console.error("AG Grid: column '".concat(t,"' not found"));return}this.menuService.showColumnMenu({column:e,positionBy:"auto"})},o.prototype.hidePopupMenu=function(){this.menuService.hidePopupMenu()},o.prototype.hideColumnChooser=function(){this.menuService.hideColumnChooser()},o.prototype.tabToNextCell=function(t){return this.navigationService.tabToNextCell(!1,t)},o.prototype.tabToPreviousCell=function(t){return this.navigationService.tabToNextCell(!0,t)},o.prototype.getCellRendererInstances=function(t){t===void 0&&(t={});
131var e=this.rowRenderer.getCellRendererInstances(t),i=e.map(oo);return i},o.prototype.getCellEditorInstances=function(t){t===void 0&&(t={});var e=this.rowRenderer.getCellEditorInstances(t),i=e.map(oo);return i},o.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},o.prototype.stopEditing=function(t){t===void 0&&(t=!1),this.rowRenderer.stopEditing(t)},o.prototype.startEditingCell=function(t){var e=this.columnModel.getGridColumn(t.colKey);if(!e){console.warn("AG Grid: no column found for ".concat(t.colKey));return}var i={rowIndex:t.rowIndex,rowPinned:t.rowPinned||null,column:e},r=t.rowPinned==null;r&&this.ensureIndexVisible(t.rowIndex),this.ensureColumnVisible(t.colKey);var n=this.navigationService.getCellByPosition(i);n&&(this.focusService.isCellFocused(i)||this.focusService.setFocusedCell(i),n.startRowOrCellEdit(t.key))},o.prototype.addAggFunc=function(t,e){this.logDeprecation("v31.1","addAggFunc(key, func)","addAggFuncs({ key: func })"),this.aggFuncService&&this.aggFuncService.addAggFuncs({key:e})},o.prototype.addAggFuncs=function(t){this.aggFuncService&&this.aggFuncService.addAggFuncs(t)},o.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},o.prototype.applyServerSideTransaction=function(t){if(!this.serverSideTransactionManager){this.logMissingRowModel("applyServerSideTransaction","serverSide");return}return this.serverSideTransactionManager.applyTransaction(t)},o.prototype.applyServerSideTransactionAsync=function(t,e){if(!this.serverSideTransactionManager){this.logMissingRowModel("applyServerSideTransactionAsync","serverSide");return}return this.serverSideTransactionManager.applyTransactionAsync(t,e)},o.prototype.applyServerSideRowData=function(t){var e,i,r=(e=t.startRow)!==null&&e!==void 0?e:0,n=(i=t.route)!==null&&i!==void 0?i:[];if(r<0){console.warn("AG Grid: invalid value ".concat(t.startRow," for startRow, the value should be >= 0"));return}this.serverSideRowModel?this.serverSideRowModel.applyRowData(t.successParams,r,n):this.logMissingRowModel("setServerSideDatasource","serverSide")},o.prototype.retryServerSideLoads=function(){if(!this.serverSideRowModel){this.logMissingRowModel("retryServerSideLoads","serverSide");return}this.serverSideRowModel.retryLoads()},o.prototype.flushServerSideAsyncTransactions=function(){if(!this.serverSideTransactionManager){this.logMissingRowModel("flushServerSideAsyncTransactions","serverSide");return}return this.serverSideTransactionManager.flushAsyncTransactions()},o.prototype.applyTransaction=function(t){var e=this;if(!this.clientSideRowModel){this.logMissingRowModel("applyTransaction","clientSide");return}return this.frameworkOverrides.wrapIncoming(function(){return e.clientSideRowModel.updateRowData(t)})},o.prototype.applyTransactionAsync=function(t,e){var i=this;if(!this.clientSideRowModel){this.logMissingRowModel("applyTransactionAsync","clientSide");return}this.frameworkOverrides.wrapIncoming(function(){return i.clientSideRowModel.batchUpdateRowData(t,e)})},o.prototype.flushAsyncTransactions=function(){var t=this;if(!this.clientSideRowModel){this.logMissingRowModel("flushAsyncTransactions","clientSide");return}this.frameworkOverrides.wrapIncoming(function(){return t.clientSideRowModel.flushAsyncTransactions()})},o.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():this.logMissingRowModel("refreshInfiniteCache","infinite")},o.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():this.logMissingRowModel("purgeInfiniteCache","infinite")},o.prototype.refreshServerSide=function(t){if(!this.serverSideRowModel){this.logMissingRowModel("refreshServerSide","serverSide");return}this.serverSideRowModel.refreshStore(t)},o.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(this.logMissingRowModel("getServerSideGroupLevelState","serverSide"),[])},o.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();
131this.logMissingRowModel("getInfiniteRowCount","infinite")},o.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();this.logMissingRowModel("isLastRowIndexKnown","infinite")},o.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},o.prototype.getFirstDisplayedRow=function(){return this.logDeprecation("v31.1","getFirstDisplayedRow","getFirstDisplayedRowIndex"),this.getFirstDisplayedRowIndex()},o.prototype.getFirstDisplayedRowIndex=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},o.prototype.getLastDisplayedRow=function(){return this.logDeprecation("v31.1","getLastDisplayedRow","getLastDisplayedRowIndex"),this.getLastDisplayedRowIndex()},o.prototype.getLastDisplayedRowIndex=function(){return this.rowRenderer.getLastVirtualRenderedRow()},o.prototype.getDisplayedRowAtIndex=function(t){return this.rowModel.getRow(t)},o.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},o.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},o.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},o.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},o.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},o.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},o.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},o.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},o.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},o.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},o.prototype.paginationGoToPage=function(t){this.paginationProxy.goToPage(t)},o.prototype.sizeColumnsToFit=function(t){typeof t=="number"?this.columnModel.sizeColumnsToFit(t,"api"):this.gridBodyCtrl.sizeColumnsToFit(t)},o.prototype.setColumnGroupOpened=function(t,e){this.columnModel.setColumnGroupOpened(t,e,"api")},o.prototype.getColumnGroup=function(t,e){return this.columnModel.getColumnGroup(t,e)},o.prototype.getProvidedColumnGroup=function(t){return this.columnModel.getProvidedColumnGroup(t)},o.prototype.getDisplayNameForColumn=function(t,e){return this.columnModel.getDisplayNameForColumn(t,e)||""},o.prototype.getDisplayNameForColumnGroup=function(t,e){return this.columnModel.getDisplayNameForColumnGroup(t,e)||""},o.prototype.getColumn=function(t){return this.columnModel.getPrimaryColumn(t)},o.prototype.getColumns=function(){return this.columnModel.getAllPrimaryColumns()},o.prototype.applyColumnState=function(t){return this.columnModel.applyColumnState(t,"api")},o.prototype.getColumnState=function(){return this.columnModel.getColumnState()},o.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},o.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},o.prototype.setColumnGroupState=function(t){this.columnModel.setColumnGroupState(t,"api")},o.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},o.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},o.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},o.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},o.prototype.getDisplayedColAfter=function(t){return this.columnModel.getDisplayedColAfter(t)},o.prototype.getDisplayedColBefore=function(t){return this.columnModel.getDisplayedColBefore(t)},o.prototype.setColumnVisible=function(t,e){this.logDeprecation("v31.1","setColumnVisible(key,visible)","setColumnsVisible([key],visible)"),this.columnModel.setColumnsVisible([t],e,"api")},o.prototype.setColumnsVisible=function(t,e){this.columnModel.setColumnsVisible(t,e,"api")},o.prototype.setColumnPinned=function(t,e){this.logDeprecation("v31.1","setColumnPinned(key,pinned)","setColumnsPinned([key],pinned)"),this.columnModel.setColumnsPinned([t],e,"api")},o.prototype.setColumnsPinned=function(t,e){this.columnModel.setColumnsPinned(t,e,"api")},o.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},o.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},o.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},o.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},o.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},o.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},o.prototype.moveColumn=function(t,e){this.logDeprecation("v31.1","moveColumn(key, toIndex)","moveColumns([key], toIndex)"),this.columnModel.moveColumns([t],e,"api")},o.prototype.moveColumnByIndex=function(t,e){this.columnModel.moveColumnByIndex(t,e,"api")},o.prototype.moveColumns=function(t,e){this.columnModel.moveColumns(t,e,"api")},o.prototype.moveRowGroupColumn=function(t,e){this.columnModel.moveRowGroupColumn(t,e,"api")}
131,o.prototype.setColumnAggFunc=function(t,e){this.columnModel.setColumnAggFunc(t,e,"api")},o.prototype.setColumnWidth=function(t,e,i,r){i===void 0&&(i=!0),r===void 0&&(r="api"),this.logDeprecation("v31.1","setColumnWidth(col, width)","setColumnWidths([{key: col, newWidth: width}])"),this.columnModel.setColumnWidths([{key:t,newWidth:e}],!1,i,r)},o.prototype.setColumnWidths=function(t,e,i){e===void 0&&(e=!0),i===void 0&&(i="api"),this.columnModel.setColumnWidths(t,!1,e,i)},o.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},o.prototype.getPivotResultColumn=function(t,e){return this.columnModel.getSecondaryPivotColumn(t,e)},o.prototype.setValueColumns=function(t){this.columnModel.setValueColumns(t,"api")},o.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},o.prototype.removeValueColumn=function(t){this.logDeprecation("v31.1","removeValueColumn(colKey)","removeValueColumns([colKey])"),this.columnModel.removeValueColumns([t],"api")},o.prototype.removeValueColumns=function(t){this.columnModel.removeValueColumns(t,"api")},o.prototype.addValueColumn=function(t){this.logDeprecation("v31.1","addValueColumn(colKey)","addValueColumns([colKey])"),this.columnModel.addValueColumns([t],"api")},o.prototype.addValueColumns=function(t){this.columnModel.addValueColumns(t,"api")},o.prototype.setRowGroupColumns=function(t){this.columnModel.setRowGroupColumns(t,"api")},o.prototype.removeRowGroupColumn=function(t){this.logDeprecation("v31.1","removeRowGroupColumn(colKey)","removeRowGroupColumns([colKey])"),this.columnModel.removeRowGroupColumns([t],"api")},o.prototype.removeRowGroupColumns=function(t){this.columnModel.removeRowGroupColumns(t,"api")},o.prototype.addRowGroupColumn=function(t){this.logDeprecation("v31.1","addRowGroupColumn(colKey)","addRowGroupColumns([colKey])"),this.columnModel.addRowGroupColumns([t],"api")},o.prototype.addRowGroupColumns=function(t){this.columnModel.addRowGroupColumns(t,"api")},o.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},o.prototype.setPivotColumns=function(t){this.columnModel.setPivotColumns(t,"api")},o.prototype.removePivotColumn=function(t){this.logDeprecation("v31.1","removePivotColumn(colKey)","removePivotColumns([colKey])"),this.columnModel.removePivotColumns([t],"api")},o.prototype.removePivotColumns=function(t){this.columnModel.removePivotColumns(t,"api")},o.prototype.addPivotColumn=function(t){this.logDeprecation("v31.1","addPivotColumn(colKey)","addPivotColumns([colKey])"),this.columnModel.addPivotColumns([t],"api")},o.prototype.addPivotColumns=function(t){this.columnModel.addPivotColumns(t,"api")},o.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},o.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},o.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},o.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},o.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},o.prototype.autoSizeColumn=function(t,e){return this.logDeprecation("v31.1","autoSizeColumn(key, skipHeader)","autoSizeColumns([key], skipHeader)"),this.columnModel.autoSizeColumns({columns:[t],skipHeader:e,source:"api"})},o.prototype.autoSizeColumns=function(t,e){this.columnModel.autoSizeColumns({columns:t,skipHeader:e,source:"api"})},o.prototype.autoSizeAllColumns=function(t){this.columnModel.autoSizeAllColumns("api",t)},o.prototype.setPivotResultColumns=function(t){this.columnModel.setSecondaryColumns(t,"api")},o.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},o.prototype.getState=function(){return this.stateService.getState()},o.prototype.getGridOption=function(t){return this.gos.get(t)},o.prototype.setGridOption=function(t,e){var i;this.updateGridOptions((i={},i[t]=e,i))},o.prototype.updateGridOptions=function(t){this.gos.updateGridOptions({options:t})},o.prototype.__internalUpdateGridOptions=function(t){this.gos.updateGridOptions({options:t,source:"gridOptionsUpdated"})},o.prototype.deprecatedUpdateGridOption=function(t,e){Le("set".concat(t.charAt(0).toUpperCase()).concat(t.slice(1,t.length)," is deprecated. Please use 'api.setGridOption('").concat(t,"', newValue)' or 'api.updateGridOptions({ ").concat(t,": newValue })' instead.")),this.setGridOption(t,e)},o.prototype.setPivotMode=function(t){this.deprecatedUpdateGridOption("pivotMode",t)},o.prototype.setPinnedTopRowData=function(t){this.deprecatedUpdateGridOption("pinnedTopRowData",t)},o.prototype.setPinnedBottomRowData=function(t){this.deprecatedUpdateGridOption("pinnedBottomRowData",t)},o.prototype.setPopupParent=function(t){this.deprecatedUpdateGridOption("popupParent",t)},o.prototype.setSuppressModelUpdateAfterUpdateTransaction=function(t){this.deprecatedUpdateGridOption("suppressModelUpdateAfterUpdateTransaction",t)},o.prototype.setDataTypeDefinitions=function(t){this.deprecatedUpdateGridOption("dataTypeDefinitions",t)},o.prototype.setPagination=function(t){this.deprecatedUpdateGridOption("pagination",t)},o.prototype.paginationSetPageSize=function(t){this.deprecatedUpdateGridOption("paginationPageSize",t)},o.prototype.setSideBar=function(t){this.deprecatedUpdateGridOption("sideBar",t)},o.prototype.setSuppressClipboardPaste=function(t){this.deprecatedUpdateGridOption("suppressClipboardPaste",t)},o.prototype.setGroupRemoveSingleChildren=function(t){this.deprecatedUpdateGridOption("groupRemoveSingleChildren",t)},o.prototype.setGroupRemoveLowestSingleChildren=function(t){this.deprecatedUpdateGridOption("groupRemoveLowestSingleChildren",t)},o.prototype.setGroupDisplayType=function(t){this.deprecatedUpdateGridOption("groupDisplayType",t)},o.prototype.setGroupIncludeFooter=function(t){this.deprecatedUpdateGridOption("groupIncludeFooter",t)},o.prototype.setGroupIncludeTotalFooter=function(t){this.deprecatedUpdateGridOption("groupIncludeTotalFooter",t)},o.prototype.setRowClass=function(t){this.deprecatedUpdateGridOption("rowClass",t)},o.prototype.setDeltaSort=function(t){this.deprecatedUpdateGridOption("deltaSort",t)},o.prototype.setSuppressRowDrag=function(t){this.deprecatedUpdateGridOption("suppressRowDrag",t)},o.prototype.setSuppressMoveWhenRowDragging=function(t){this.deprecatedUpdateGridOption("suppressMoveWhenRowDragging",t)},o.prototype.setSuppressRowClickSelection=function(t){this.deprecatedUpdateGridOption("suppressRowClickSelection",t)},o.prototype.setEnableAdvancedFilter=function(t){this.deprecatedUpdateGridOption("enableAdvancedFilter",t)},o.prototype.setIncludeHiddenColumnsInAdvancedFilter=function(t){this.deprecatedUpdateGridOption("includeHiddenColumnsInAdvancedFilter",t)},o.prototype.setAdvancedFilterParent=function(t){this.deprecatedUpdateGridOption("advancedFilterParent",t)},o.prototype.setAdvancedFilterBuilderParams=function(t){this.deprecatedUpdateGridOption("advancedFilterBuilderParams",t)},o.prototype.setQuickFilter=function(t){Le("setQuickFilter is deprecated. Please use 'api.setGridOption('quickFilterText', newValue)' or 'api.updateGridOptions({ quickFilterText: newValue })' instead."),this.gos.updateGridOptions({options:{quickFilterText:t}})},o.prototype.setExcludeHiddenColumnsFromQuickFilter=function(t){this.deprecatedUpdateGridOption("includeHiddenColumnsInQuickFilter",!t)},o.prototype.setIncludeHiddenColumnsInQuickFilter=function(t){this.deprecatedUpdateGridOption("includeHiddenColumnsInQuickFilter",t)},o.prototype.setQuickFilterParser=function(t){this.deprecatedUpdateGridOption("quickFilterParser",t)},o.prototype.setQuickFilterMatcher=function(t){this.deprecatedUpdateGridOption("quickFilterMatcher",t)},o.prototype.setAlwaysShowHorizontalScroll=function(t){this.deprecatedUpdateGridOption("alwaysShowHorizontalScroll",t)},o.prototype.setAlwaysShowVerticalScroll=function(t){this.deprecatedUpdateGridOption("alwaysShowVerticalScroll",t)},o.prototype.setFunctionsReadOnly=function(t){this.deprecatedUpdateGridOption("functionsReadOnly",t)},o.prototype.setColumnDefs=function(t,e){e===void 0&&(e="api"),Le("setColumnDefs is deprecated. Please use 'api.setGridOption('columnDefs', newValue)' or 'api.updateGridOptions({ columnDefs: newValue })' instead."),this.gos.updateGridOptions({options:{columnDefs:t},source:e})},o.prototype.setAutoGroupColumnDef=function(t,e){e===void 0&&(e="api"),Le("setAutoGroupColumnDef is deprecated. Please use 'api.setGridOption('autoGroupColumnDef', newValue)' or 'api.updateGridOptions({ autoGroupColumnDef: newValue })' instead."),this.gos.updateGridOptions({options:{autoGroupColumnDef:t},source:e})},o.prototype.setDefaultColDef=function(t,e){e===void 0&&(e="api"),Le("setDefaultColDef is deprecated. Please use 'api.setGridOption('defaultColDef', newValue)' or 'api.updateGridOptions({ defaultColDef: newValue })' instead."),this.gos.updateGridOptions({options:{defaultColDef:t},source:e})},o.prototype.setColumnTypes=function(t,e){e===void 0&&(e="api"),Le("setColumnTypes is deprecated. Please use 'api.setGridOption('columnTypes', newValue)' or 'api.updateGridOptions({ columnTypes: newValue })' instead."),this.gos.updateGridOptions({options:{columnTypes:t},source:e})},o.prototype.setTreeData=function(t){this.deprecatedUpdateGridOption("treeData",t)},o.prototype.setServerSideDatasource=function(t){this.deprecatedUpdateGridOption("serverSideDatasource",t)},o.prototype.setCacheBlockSize=function(t){this.deprecatedUpdateGridOption("cacheBlockSize",t)},o.prototype.setDatasource=function(t){this.deprecatedUpdateGridOption("datasource",t)},o.prototype.setViewportDatasource=function(t){this.deprecatedUpdateGridOption("viewportDatasource",t)},o.prototype.setRowData=function(t){this.deprecatedUpdateGridOption("rowData",t)},o.prototype.setEnableCellTextSelection=function(t){this.deprecatedUpdateGridOption("enableCellTextSelection",t)},o.prototype.setHeaderHeight=function(t){this.deprecatedUpdateGridOption("headerHeight",t)}
131,o.prototype.setDomLayout=function(t){this.deprecatedUpdateGridOption("domLayout",t)},o.prototype.setFillHandleDirection=function(t){this.deprecatedUpdateGridOption("fillHandleDirection",t)},o.prototype.setGroupHeaderHeight=function(t){this.deprecatedUpdateGridOption("groupHeaderHeight",t)},o.prototype.setFloatingFiltersHeight=function(t){this.deprecatedUpdateGridOption("floatingFiltersHeight",t)},o.prototype.setPivotHeaderHeight=function(t){this.deprecatedUpdateGridOption("pivotHeaderHeight",t)},o.prototype.setPivotGroupHeaderHeight=function(t){this.deprecatedUpdateGridOption("pivotGroupHeaderHeight",t)},o.prototype.setAnimateRows=function(t){this.deprecatedUpdateGridOption("animateRows",t)},o.prototype.setIsExternalFilterPresent=function(t){this.deprecatedUpdateGridOption("isExternalFilterPresent",t)},o.prototype.setDoesExternalFilterPass=function(t){this.deprecatedUpdateGridOption("doesExternalFilterPass",t)},o.prototype.setNavigateToNextCell=function(t){this.deprecatedUpdateGridOption("navigateToNextCell",t)},o.prototype.setTabToNextCell=function(t){this.deprecatedUpdateGridOption("tabToNextCell",t)},o.prototype.setTabToNextHeader=function(t){this.deprecatedUpdateGridOption("tabToNextHeader",t)},o.prototype.setNavigateToNextHeader=function(t){this.deprecatedUpdateGridOption("navigateToNextHeader",t)},o.prototype.setRowGroupPanelShow=function(t){this.deprecatedUpdateGridOption("rowGroupPanelShow",t)},o.prototype.setGetGroupRowAgg=function(t){this.deprecatedUpdateGridOption("getGroupRowAgg",t)},o.prototype.setGetBusinessKeyForNode=function(t){this.deprecatedUpdateGridOption("getBusinessKeyForNode",t)},o.prototype.setGetChildCount=function(t){this.deprecatedUpdateGridOption("getChildCount",t)},o.prototype.setProcessRowPostCreate=function(t){this.deprecatedUpdateGridOption("processRowPostCreate",t)},o.prototype.setGetRowId=function(t){Le("getRowId is a static property and can no longer be updated.")},o.prototype.setGetRowClass=function(t){this.deprecatedUpdateGridOption("getRowClass",t)},o.prototype.setIsFullWidthRow=function(t){this.deprecatedUpdateGridOption("isFullWidthRow",t)},o.prototype.setIsRowSelectable=function(t){this.deprecatedUpdateGridOption("isRowSelectable",t)},o.prototype.setIsRowMaster=function(t){this.deprecatedUpdateGridOption("isRowMaster",t)},o.prototype.setPostSortRows=function(t){this.deprecatedUpdateGridOption("postSortRows",t)},o.prototype.setGetDocument=function(t){this.deprecatedUpdateGridOption("getDocument",t)},o.prototype.setGetContextMenuItems=function(t){this.deprecatedUpdateGridOption("getContextMenuItems",t)},o.prototype.setGetMainMenuItems=function(t){this.deprecatedUpdateGridOption("getMainMenuItems",t)},o.prototype.setProcessCellForClipboard=function(t){this.deprecatedUpdateGridOption("processCellForClipboard",t)},o.prototype.setSendToClipboard=function(t){this.deprecatedUpdateGridOption("sendToClipboard",t)},o.prototype.setProcessCellFromClipboard=function(t){this.deprecatedUpdateGridOption("processCellFromClipboard",t)},o.prototype.setProcessPivotResultColDef=function(t){this.deprecatedUpdateGridOption("processPivotResultColDef",t)},o.prototype.setProcessPivotResultColGroupDef=function(t){this.deprecatedUpdateGridOption("processPivotResultColGroupDef",t)},o.prototype.setPostProcessPopup=function(t){this.deprecatedUpdateGridOption("postProcessPopup",t)},o.prototype.setInitialGroupOrderComparator=function(t){this.deprecatedUpdateGridOption("initialGroupOrderComparator",t)},o.prototype.setGetChartToolbarItems=function(t){this.deprecatedUpdateGridOption("getChartToolbarItems",t)},o.prototype.setPaginationNumberFormatter=function(t){this.deprecatedUpdateGridOption("paginationNumberFormatter",t)},o.prototype.setGetServerSideGroupLevelParams=function(t){this.deprecatedUpdateGridOption("getServerSideGroupLevelParams",t)},o.prototype.setIsServerSideGroupOpenByDefault=function(t){this.deprecatedUpdateGridOption("isServerSideGroupOpenByDefault",t)},o.prototype.setIsApplyServerSideTransaction=function(t){this.deprecatedUpdateGridOption("isApplyServerSideTransaction",t)},o.prototype.setIsServerSideGroup=function(t){this.deprecatedUpdateGridOption("isServerSideGroup",t)},o.prototype.setGetServerSideGroupKey=function(t){this.deprecatedUpdateGridOption("getServerSideGroupKey",t)},o.prototype.setGetRowStyle=function(t){this.deprecatedUpdateGridOption("getRowStyle",t)},o.prototype.setGetRowHeight=function(t){this.deprecatedUpdateGridOption("getRowHeight",t)},Je([nt("csvCreator")],o.prototype,"csvCreator",void 0),Je([nt("excelCreator")],o.prototype,"excelCreator",void 0),Je([E("rowRenderer")],o.prototype,"rowRenderer",void 0),Je([E("navigationService")],o.prototype,"navigationService",void 0),Je([E("filterManager")],o.prototype,"filterManager",void 0),Je([E("columnModel")],o.prototype,"columnModel",void 0),Je([E("selectionService")],o.prototype,"selectionService",void 0),Je([E("gridOptionsService")],o.prototype,"gos",void 0),Je([E("valueService")],o.prototype,"valueService",void 0),Je([E("al
131ignedGridsService")],o.prototype,"alignedGridsService",void 0),Je([E("eventService")],o.prototype,"eventService",void 0),Je([E("pinnedRowModel")],o.prototype,"pinnedRowModel",void 0),Je([E("context")],o.prototype,"context",void 0),Je([E("rowModel")],o.prototype,"rowModel",void 0),Je([E("sortController")],o.prototype,"sortController",void 0),Je([E("paginationProxy")],o.prototype,"paginationProxy",void 0),Je([E("focusService")],o.prototype,"focusService",void 0),Je([E("dragAndDropService")],o.prototype,"dragAndDropService",void 0),Je([nt("rangeService")],o.prototype,"rangeService",void 0),Je([nt("clipboardService")],o.prototype,"clipboardService",void 0),Je([nt("aggFuncService")],o.prototype,"aggFuncService",void 0),Je([E("menuService")],o.prototype,"menuService",void 0),Je([E("valueCache")],o.prototype,"valueCache",void 0),Je([E("animationFrameService")],o.prototype,"animationFrameService",void 0),Je([nt("statusBarService")],o.prototype,"statusBarService",void 0),Je([nt("chartService")],o.prototype,"chartService",void 0),Je([nt("undoRedoService")],o.prototype,"undoRedoService",void 0),Je([nt("rowNodeBlockLoader")],o.prototype,"rowNodeBlockLoader",void 0),Je([nt("ssrmTransactionManager")],o.prototype,"serverSideTransactionManager",void 0),Je([E("ctrlsService")],o.prototype,"ctrlsService",void 0),Je([E("overlayService")],o.prototype,"overlayService",void 0),Je([nt("sideBarService")],o.prototype,"sideBarService",void 0),Je([E("stateService")],o.prototype,"stateService",void 0),Je([E("expansionService")],o.prototype,"expansionService",void 0),Je([E("apiEventService")],o.prototype,"apiEventService",void 0),Je([E("frameworkOverrides")],o.prototype,"frameworkOverrides",void 0),Je([ie],o.prototype,"init",null),o=Je([fe("gridApi")],o),o}(),CA=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),na=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},_w=function(o){CA(t,o);function t(){var i=o!==null&&o.apply(this,arguments)||this;return i.quickFilter=null,i.quickFilterParts=null,i}e=t,t.prototype.postConstruct=function(){var i=this;this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return i.resetQuickFilterCache()}),this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,function(){return i.resetQuickFilterCache()}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return i.resetQuickFilterCache()}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_VISIBLE,function(){i.gridOptionsService.get("includeHiddenColumnsInQuickFilter")||i.resetQuickFilterCache()}),this.addManagedPropertyListener("quickFilterText",function(r){return i.setQuickFilter(r.currentValue)}),this.addManagedPropertyListener("includeHiddenColumnsInQuickFilter",function(){return i.onIncludeHiddenColumnsInQuickFilterChanged()}),this.quickFilter=this.parseQuickFilter(this.gridOptionsService.get("quickFilterText")),this.parser=this.gridOptionsService.get("quickFilterParser"),this.matcher=this.gridOptionsService.get("quickFilterMatcher"),this.setQuickFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],function(){return i.setQuickFilterParserAndMatcher()})},t.prototype.isQuickFilterPresent=function(){return this.quickFilter!==null},t.prototype.doesRowPassQuickFilter=function(i){var r=this,n=this.gridOptionsService.get("cacheQuickFilter");return this.matcher?this.doesRowPassQuickFilterMatcher(n,i):this.quickFilterParts.every(function(s){return n?r.doesRowPassQuickFilterCache(i,s):r.doesRowPassQuickFilterNoCache(i,s)})},t.prototype.resetQuickFilterCache=function(){this.rowModel.forEachNode(function(i){return i.quickFilterAggregateText=null})},t.prototype.setQuickFilterParts=function(){var i=this,r=i.quickFilter,n=i.parser;r?this.quickFilterParts=n?n(r):r.split(" "):this.quickFilterParts=null},t.prototype.parseQuickFilter=function(i){return Q(i)?this.gridOptionsService.isRowModelType("clientSide")?i.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},t.prototype.setQuickFilter=function(i){if(i!=null&&typeof i!="str
131ing"){console.warn("AG Grid - Grid option quickFilterText only supports string inputs, received: ".concat(typeof i));return}var r=this.parseQuickFilter(i);this.quickFilter!==r&&(this.quickFilter=r,this.setQuickFilterParts(),this.dispatchEvent({type:e.EVENT_QUICK_FILTER_CHANGED}))},t.prototype.setQuickFilterParserAndMatcher=function(){var i=this.gridOptionsService.get("quickFilterParser"),r=this.gridOptionsService.get("quickFilterMatcher"),n=i!==this.parser||r!==this.matcher;this.parser=i,this.matcher=r,n&&(this.setQuickFilterParts(),this.dispatchEvent({type:e.EVENT_QUICK_FILTER_CHANGED}))},t.prototype.onIncludeHiddenColumnsInQuickFilterChanged=function(){this.columnModel.refreshQuickFilterColumns(),this.resetQuickFilterCache(),this.isQuickFilterPresent()&&this.dispatchEvent({type:e.EVENT_QUICK_FILTER_CHANGED})},t.prototype.doesRowPassQuickFilterNoCache=function(i,r){var n=this,s=this.columnModel.getAllColumnsForQuickFilter();return s.some(function(a){var l=n.getQuickFilterTextForColumn(a,i);return Q(l)&&l.indexOf(r)>=0})},t.prototype.doesRowPassQuickFilterCache=function(i,r){return this.checkGenerateQuickFilterAggregateText(i),i.quickFilterAggregateText.indexOf(r)>=0},t.prototype.doesRowPassQuickFilterMatcher=function(i,r){var n;i?(this.checkGenerateQuickFilterAggregateText(r),n=r.quickFilterAggregateText):n=this.getQuickFilterAggregateText(r);var s=this,a=s.quickFilterParts,l=s.matcher;return l(a,n)},t.prototype.checkGenerateQuickFilterAggregateText=function(i){i.quickFilterAggregateText||(i.quickFilterAggregateText=this.getQuickFilterAggregateText(i))},t.prototype.getQuickFilterTextForColumn=function(i,r){var n=this.valueService.getValue(i,r,!0),s=i.getColDef();if(s.getQuickFilterText){var a=this.gridOptionsService.addGridCommonParams({value:n,node:r,data:r.data,column:i,colDef:s});n=s.getQuickFilterText(a)}return Q(n)?n.toString().toUpperCase():null},t.prototype.getQuickFilterAggregateText=function(i){var r=this,n=[],s=this.columnModel.getAllColumnsForQuickFilter();return s.forEach(function(a){var l=r.getQuickFilterTextForColumn(a,i);Q(l)&&n.push(l)}),n.join(e.QUICK_FILTER_SEPARATOR)};var e;return t.EVENT_QUICK_FILTER_CHANGED="quickFilterChanged",t.QUICK_FILTER_SEPARATOR=` 132`,na([E("valueService")],t.prototype,"valueService",void 0),na([E("columnModel")],t.prototype,"columnModel",void 0),na([E("rowModel")],t.prototype,"rowModel",void 0),na([ie],t.prototype,"postConstruct",null),t=e=na([fe("quickFilterService")],t),t}(ee),wA=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),wr=function(){return wr=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},wr.apply(this,arguments)},hr=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},SA=function(o){wA(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.allColumnFilters=new Map,e.allColumnListeners=new Map,e.activeAggregateFilters=[],e.activeColumnFilters=[],e.processingFilterChange=!1,e.filterModelUpdateQueue=[],e.columnFilterModelUpdateQueue=[],e.advancedFilterModelUpdateQueue=[],e}return t.prototype.init=function(){var e=this,i,r,n;this.addManagedListener(this.eventService,T.EVENT_GRID_COLUMNS_CHANGED,function(){return e.onColumnsChanged()}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_VALUE_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,function(){return e.updateAdvancedFilterColumns()}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_VISIBLE,function(){return e.updateAdvancedFilterColumns()}),this.addManagedListener(this.eventService,T.EVENT_ROW_DATA_UPDATED,function(){return e.onNewRowsLoaded("rowDataUpdated")}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],function(){e.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",function(){e.updateAggFiltering(),e.onFilterChanged()}),this.addManagedPropertyListener("advancedFilterModel",function(s){return e.setAdvancedFilterModel(s.currentValue)}),this.addManagedListener(this.eventService,T.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,function(s){var a=s.enabled;return e.onAdvancedFilterEnabledChanged(a)}),this.addManagedListener(this.eventService,T.EVENT_DATA_TYPES_INFERRED,function(){return e.process
132FilterModelUpdateQueue()}),this.addManagedListener(this.quickFilterService,_w.EVENT_QUICK_FILTER_CHANGED,function(){return e.onFilterChanged({source:"quickFilter"})}),this.initialFilterModel=wr({},(n=(r=(i=this.gridOptionsService.get("initialState"))===null||i===void 0?void 0:i.filter)===null||r===void 0?void 0:r.filterModel)!==null&&n!==void 0?n:{})},t.prototype.isExternalFilterPresentCallback=function(){var e=this.gridOptionsService.getCallback("isExternalFilterPresent");return typeof e=="function"?e({}):!1},t.prototype.doesExternalFilterPass=function(e){var i=this.gridOptionsService.get("doesExternalFilterPass");return typeof i=="function"?i(e):!1},t.prototype.setFilterModel=function(e,i){var r=this;if(i===void 0&&(i="api"),this.isAdvancedFilterEnabled()){this.warnAdvancedFilters();return}if(this.dataTypeService.isPendingInference()){this.filterModelUpdateQueue.push({model:e,source:i});return}var n=[],s=this.getFilterModel();if(e){var a=Ch(Object.keys(e));this.allColumnFilters.forEach(function(l,u){var c=e[u];n.push(r.setModelOnFilterWrapper(l.filterPromise,c)),a.delete(u)}),a.forEach(function(l){var u=r.columnModel.getPrimaryColumn(l)||r.columnModel.getGridColumn(l);if(!u){console.warn("AG Grid: setFilterModel() - no column found for colId: "+l);return}if(!u.isFilterAllowed()){console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+l);return}var c=r.getOrCreateFilterWrapper(u,"NO_UI");if(!c){console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+l);return}n.push(r.setModelOnFilterWrapper(c.filterPromise,e[l]))})}else this.allColumnFilters.forEach(function(l){n.push(r.setModelOnFilterWrapper(l.filterPromise,null))});Ei.all(n).then(function(){var l=r.getFilterModel(),u=[];r.allColumnFilters.forEach(function(c,p){var f=s?s[p]:null,v=l?l[p]:null;Ke.jsonEquals(f,v)||u.push(c.column)}),u.length>0&&r.onFilterChanged({columns:u,source:i})})},t.prototype.setModelOnFilterWrapper=function(e,i){return new Ei(function(r){e.then(function(n){typeof n.setModel!="function"&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),r()),(n.setModel(i)||Ei.resolve()).then(function(){return r()})})})},t.prototype.getFilterModel=function(){var e=this,i={};return this.allColumnFilters.forEach(function(r,n){var s=e.getModelFromFilterWrapper(r);Q(s)&&(i[n]=s)}),i},t.prototype.getModelFromFilterWrapper=function(e){var i,r=e.filterPromise,n=r.resolveNow(null,function(s){return s});return n==null?(i=this.initialFilterModel[e.column.getColId()])!==null&&i!==void 0?i:null:typeof n.getModel!="function"?(console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel"),null):n.getModel()},t.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},t.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},t.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},t.prototype.isChildFilterPresent=function(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()},t.prototype.isAdvancedFilterPresent=function(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isFilterPresent()},t.prototype.onAdvancedFilterEnabledChanged=function(e){var i=this,r;e?this.allColumnFilters.size&&(this.allColumnFilters.forEach(function(n){return i.disposeFilterWrapper(n,"advancedFilterEnabled")}),this.onFilterChanged({source:"advancedFilter"})):!((r=this.advancedFilterService)===null||r===void 0)&&r.isFilterPresent()&&(this.advancedFilterService.setModel(null),this.onFilterChanged({source:"advancedFilter"}))},t.prototype.isAdvancedFilterEnabled=function(){var e;return(e=this.advancedFilterService)===null||e===void 0?void 0:e.isEnabled()},t.prototype.isAdvancedFilterHeaderActive=function(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isHeaderActive()},t.prototype.doAggregateFiltersPass=function(e,i){return this.doColumnFiltersPass(e,i,!0)},t.prototype.updateActiveFilters=function(){var e=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var i=function(s){return s?s.isFilterActive?s.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1):!1},r=!!this.gridOptionsService.getGroupAggFiltering(),n=function(s){var a=!s.isPrimary();if(a)return!0;var l=!e.columnModel.isPivotActive(),u=s.isValueActive();return!u||!l?!1:e.columnModel.isPivotMode()?!0:r};
132this.allColumnFilters.forEach(function(s){if(s.filterPromise.resolveNow(!1,i)){var a=s.filterPromise.resolveNow(null,function(l){return l});n(s.column)?e.activeAggregateFilters.push(a):e.activeColumnFilters.push(a)}})},t.prototype.updateFilterFlagInColumns=function(e,i){this.allColumnFilters.forEach(function(r){var n=r.filterPromise.resolveNow(!1,function(s){return s.isFilterActive()});r.column.setFilterActive(n,e,i)})},t.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()},t.prototype.doColumnFiltersPass=function(e,i,r){for(var n=e.data,s=e.aggData,a=r?this.activeAggregateFilters:this.activeColumnFilters,l=r?s:n,u=0;u<a.length;u++){var c=a[u];if(!(c==null||c===i)){if(typeof c.doesFilterPass!="function")throw new Error("Filter is missing method doesFilterPass");if(!c.doesFilterPass({node:e,data:l}))return!1}}return!0},t.prototype.resetQuickFilterCache=function(){this.quickFilterService.resetQuickFilterCache()},t.prototype.refreshFiltersForAggregations=function(){var e=this.gridOptionsService.getGroupAggFiltering();e&&this.onFilterChanged()},t.prototype.callOnFilterChangedOutsideRenderCycle=function(e){var i=this,r=function(){return i.onFilterChanged(e)};this.rowRenderer.isRefreshInProgress()?setTimeout(r,0):r()},t.prototype.onFilterChanged=function(e){e===void 0&&(e={});var i=e.source,r=e.filterInstance,n=e.additionalEventAttributes,s=e.columns;this.updateDependantFilters(),this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",n),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.allColumnFilters.forEach(function(l){l.filterPromise&&l.filterPromise.then(function(u){u&&u!==r&&u.onAnyFilterChanged&&u.onAnyFilterChanged()})});var a={source:i,type:T.EVENT_FILTER_CHANGED,columns:s||[]};n&&_i(a,n),this.processingFilterChange=!0,this.eventService.dispatchEvent(a),this.processingFilterChange=!1},t.prototype.isSuppressFlashingCellsBecauseFiltering=function(){var e,i=(e=this.gridOptionsService.get("allowShowChangeAfterFilter"))!==null&&e!==void 0?e:!1;return!i&&this.processingFilterChange},t.prototype.isQuickFilterPresent=function(){return this.quickFilterService.isQuickFilterPresent()},t.prototype.updateAggFiltering=function(){this.aggFiltering=!!this.gridOptionsService.getGroupAggFiltering()},t.prototype.isAggregateQuickFilterPresent=function(){return this.isQuickFilterPresent()&&(this.aggFiltering||this.columnModel.isPivotMode())},t.prototype.isNonAggregateQuickFilterPresent=function(){return this.isQuickFilterPresent()&&!(this.aggFiltering||this.columnModel.isPivotMode())},t.prototype.doesRowPassOtherFilters=function(e,i){return this.doesRowPassFilter({rowNode:i,filterInstanceToSkip:e})},t.prototype.doesRowPassAggregateFilters=function(e){return!(this.isAggregateQuickFilterPresent()&&!this.quickFilterService.doesRowPassQuickFilter(e.rowNode)||this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(e.rowNode,e.filterInstanceToSkip))},t.prototype.doesRowPassFilter=function(e){return!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilterService.doesRowPassQuickFilter(e.rowNode)||this.isExternalFilterPresent()&&!this.doesExternalFilterPass(e.rowNode)||this.isColumnFilterPresent()&&!this.doColumnFiltersPass(e.rowNode,e.filterInstanceToSkip)||this.isAdvancedFilterPresent()&&!this.advancedFilterService.doesFilterPass(e.rowNode))},t.prototype.onNewRowsLoaded=function(e){this.allColumnFilters.forEach(function(i){i.filterPromise.then(function(r){r.onNewRowsLoaded&&r.onNewRowsLoaded()})}),this.updateFilterFlagInColumns(e,{afterDataChange:!0}),this.updateActiveFilters()},t.prototype.createValueGetter=function(e){var i=this;return function(r){var n=r.node;return i.valueService.getValue(e,n,!0)}},t.prototype.createGetValue=function(e){var i=this;return function(r,n){var s=n?i.columnModel.getGridColumn(n):e;return s?i.valueService.getValue(s,r,!0):void 0}},t.prototype.getFilterComponent=function(e,i,r){var n;if(r===void 0&&(r=!0),r)return((n=this.getOrCreateFilterWrapper(e,i))===null||n===void 0?void 0:n.filterPromise)||null;var s=this.cachedFilter(e);return s?s.filterPromise:null},t.prototype.isFilterActive=function(e){var i=this.cachedFilter(e);return!!i&&i.filterPromise.resolveNow(!1,function(r){return r.isFilterActive()})},t.prototype.getOrCreateFilterWrapper=function(e,i){if(!e.isFilterAllowed())return null;var r=this.cachedFilter(e);
132return r?i!=="NO_UI"&&this.putIntoGui(r,i):(r=this.createFilterWrapper(e,i),this.setColumnFilterWrapper(e,r)),r},t.prototype.cachedFilter=function(e){return this.allColumnFilters.get(e.getColId())},t.prototype.getDefaultFilter=function(e){var i;if(ct.__isRegistered(Oe.SetFilterModule,this.context.getGridId()))i="agSetColumnFilter";else{var r=this.dataTypeService.getBaseDataType(e);r==="number"?i="agNumberColumnFilter":r==="date"||r==="dateString"?i="agDateColumnFilter":i="agTextColumnFilter"}return i},t.prototype.getDefaultFloatingFilter=function(e){var i;if(ct.__isRegistered(Oe.SetFilterModule,this.context.getGridId()))i="agSetColumnFloatingFilter";else{var r=this.dataTypeService.getBaseDataType(e);r==="number"?i="agNumberColumnFloatingFilter":r==="date"||r==="dateString"?i="agDateColumnFloatingFilter":i="agTextColumnFloatingFilter"}return i},t.prototype.createFilterInstance=function(e){var i=this,r=this.getDefaultFilter(e),n=e.getColDef(),s,a=wr(wr({},this.createFilterParams(e,n)),{filterModifiedCallback:function(){return i.filterModifiedCallbackFactory(s,e)()},filterChangedCallback:function(u){return i.filterChangedCallbackFactory(s,e)(u)},doesRowPassOtherFilter:function(u){return i.doesRowPassOtherFilters(s,u)}}),l=this.userComponentFactory.getFilterDetails(n,a,r);return l?{filterPromise:function(){var u=l.newAgStackInstance();return u&&u.then(function(c){return s=c}),u},compDetails:l}:{filterPromise:null,compDetails:null}},t.prototype.createFilterParams=function(e,i){var r=this.gridOptionsService.addGridCommonParams({column:e,colDef:Bf(i),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(e),getValue:this.createGetValue(e),doesRowPassOtherFilter:function(){return!0}});return r},t.prototype.createFilterWrapper=function(e,i){var r,n={column:e,filterPromise:null,compiledElement:null,guiPromise:Ei.resolve(null),compDetails:null},s=this.createFilterInstance(e),a=s.filterPromise,l=s.compDetails;return n.filterPromise=(r=a==null?void 0:a())!==null&&r!==void 0?r:null,n.compDetails=l,a&&this.putIntoGui(n,i),n},t.prototype.putIntoGui=function(e,i){var r=this,n=document.createElement("div");n.className="ag-filter",e.guiPromise=new Ei(function(s){e.filterPromise.then(function(a){var l=a.getGui();Q(l)||console.warn("AG Grid: getGui method from filter returned ".concat(l,", it should be a DOM element or an HTML template string.")),typeof l=="string"&&(l=pi(l)),n.appendChild(l),s(n);var u={type:T.EVENT_FILTER_OPENED,column:e.column,source:i,eGui:n};r.eventService.dispatchEvent(u)})})},t.prototype.onColumnsChanged=function(){var e=this,i=[];this.allColumnFilters.forEach(function(r,n){var s;r.column.isPrimary()?s=e.columnModel.getPrimaryColumn(n):s=e.columnModel.getGridColumn(n),!s&&(i.push(r.column),e.disposeFilterWrapper(r,"columnChanged"),e.disposeColumnListener(n))}),i.length>0?this.onFilterChanged({columns:i,source:"api"}):this.updateDependantFilters()},t.prototype.updateDependantFilters=function(){var e=this,i=this.columnModel.getGroupAutoColumns();i==null||i.forEach(function(r){r.getColDef().filter==="agGroupColumnFilter"&&e.getOrCreateFilterWrapper(r,"NO_UI")})},t.prototype.isFilterAllowed=function(e){var i,r;if(this.isAdvancedFilterEnabled())return!1;var n=e.isFilterAllowed();if(!n)return!1;var s=this.allColumnFilters.get(e.getColId());return(r=(i=s==null?void 0:s.filterPromise)===null||i===void 0?void 0:i.resolveNow(!0,function(a){return typeof(a==null?void 0:a.isFilterAllowed)=="function"?a==null?void 0:a.isFilterAllowed():!0}))!==null&&r!==void 0?r:!0},t.prototype.getFloatingFilterCompDetails=function(e,i){var r=this,n=function(p){var f=r.getFilterComponent(e,"NO_UI");f!=null&&f.then(function(v){p(oo(v))})},s=e.getColDef(),a=wr(wr({},this.createFilterParams(e,s)),{filterChangedCallback:function(){return n(function(p){return r.filterChangedCallbackFactory(p,e)()})}}),l=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(s,cf,a),u=this.userComponentFactory.getDefaultFloatingFilterType(s,function(){return r.getDefaultFloatingFilter(e)});u==null&&(u="agReadOnlyFloatingFilter");var c={column:e,filterParams:l,currentParentModel:function(){return r.getCurrentFloatingFilterParentModel(e)},parentFilterInstance:n,showParentFilter:i,suppressFilterButton:!1};
132return this.userComponentFactory.getFloatingFilterCompDetails(s,c,u)},t.prototype.getCurrentFloatingFilterParentModel=function(e){var i=this.getFilterComponent(e,"NO_UI",!1);return i?i.resolveNow(null,function(r){return r&&r.getModel()}):null},t.prototype.destroyFilter=function(e,i){i===void 0&&(i="api");var r=e.getColId(),n=this.allColumnFilters.get(r);this.disposeColumnListener(r),delete this.initialFilterModel[r],n&&(this.disposeFilterWrapper(n,i),this.onFilterChanged({columns:[e],source:"api"}))},t.prototype.disposeColumnListener=function(e){var i=this.allColumnListeners.get(e);i&&(this.allColumnListeners.delete(e),i())},t.prototype.disposeFilterWrapper=function(e,i){var r=this;e.filterPromise.then(function(n){r.getContext().destroyBean(n),e.column.setFilterActive(!1,"filterDestroyed"),r.allColumnFilters.delete(e.column.getColId());var s={type:T.EVENT_FILTER_DESTROYED,source:i,column:e.column};r.eventService.dispatchEvent(s)})},t.prototype.filterModifiedCallbackFactory=function(e,i){var r=this;return function(){var n={type:T.EVENT_FILTER_MODIFIED,column:i,filterInstance:e};r.eventService.dispatchEvent(n)}},t.prototype.filterChangedCallbackFactory=function(e,i){var r=this;return function(n){var s,a=(s=n==null?void 0:n.source)!==null&&s!==void 0?s:"api",l={filter:e,additionalEventAttributes:n,columns:[i],source:a};r.callOnFilterChangedOutsideRenderCycle(l)}},t.prototype.checkDestroyFilter=function(e){var i=this,r=this.allColumnFilters.get(e);if(r){var n=r.column,s=(n.isFilterAllowed()?this.createFilterInstance(n):{compDetails:null}).compDetails;if(this.areFilterCompsDifferent(r.compDetails,s)){this.destroyFilter(n,"paramsUpdated");return}var a=n.getColDef().filterParams;if(!r.filterPromise){this.destroyFilter(n,"paramsUpdated");return}r.filterPromise.then(function(l){var u=l!=null&&l.refresh?l.refresh(wr(wr(wr({},i.createFilterParams(n,n.getColDef())),{filterModifiedCallback:i.filterModifiedCallbackFactory(l,n),filterChangedCallback:i.filterChangedCallbackFactory(l,n),doesRowPassOtherFilter:function(c){return i.doesRowPassOtherFilters(l,c)}}),a)):!0;u===!1&&i.destroyFilter(n,"paramsUpdated")})}},t.prototype.setColumnFilterWrapper=function(e,i){var r=this,n=e.getColId();this.allColumnFilters.set(n,i),this.allColumnListeners.set(n,this.addManagedListener(e,pt.EVENT_COL_DEF_CHANGED,function(){return r.checkDestroyFilter(n)}))},t.prototype.areFilterCompsDifferent=function(e,i){if(!i||!e)return!0;var r=e.componentClass,n=i.componentClass,s=r===n||(r==null?void 0:r.render)&&(n==null?void 0:n.render)&&r.render===n.render;return!s},t.prototype.getAdvancedFilterModel=function(){return this.isAdvancedFilterEnabled()?this.advancedFilterService.getModel():null},t.prototype.setAdvancedFilterModel=function(e){if(this.isAdvancedFilterEnabled()){if(this.dataTypeService.isPendingInference()){this.advancedFilterModelUpdateQueue.push(e);return}this.advancedFilterService.setModel(e??null),this.onFilterChanged({source:"advancedFilter"})}},t.prototype.showAdvancedFilterBuilder=function(e){this.isAdvancedFilterEnabled()&&this.advancedFilterService.getCtrl().toggleFilterBuilder(e,!0)},t.prototype.updateAdvancedFilterColumns=function(){this.isAdvancedFilterEnabled()&&this.advancedFilterService.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})},t.prototype.hasFloatingFilters=function(){if(this.isAdvancedFilterEnabled())return!1;var e=this.columnModel.getAllGridColumns();return e.some(function(i){return i.getColDef().floatingFilter})},t.prototype.getFilterInstance=function(e,i){if(this.isAdvancedFilterEnabled()){this.warnAdvancedFilters();return}var r=this.getFilterInstanceImpl(e,function(s){if(i){var a=oo(s);i(a)}}),n=oo(r);return n},t.prototype.getColumnFilterInstance=function(e){var i=this;return new Promise(function(r){i.getFilterInstance(e,function(n){r(n)})})},t.prototype.getFilterInstanceImpl=function(e,i){var r=this.columnModel.getPrimaryColumn(e);if(r){var n=this.getFilterComponent(r,"NO_UI"),s=n&&n.resolveNow(null,function(a){return a});return s?setTimeout(i,0,s):n&&n.then(function(a){i(a)}),s}},t.prototype.warnAdvancedFilters=function(){Le("Column Filter API methods have been disabled as Advanced Filters are enabled.")},t.prototype.setupAdvancedFilterHeaderComp=function(e){var i;(i=this.advancedFilterService)===null||i===void 0||i.getCtrl().setupHeaderComp(e)},t.prototype.getHeaderRowCount=function(){return this.isAdvancedFilterHeaderActive()?1:0},t.prototype.getHeaderHeight=function(){return this.isAdvancedFilterHeaderActive()?this.advancedFilterService.getCtrl().getHeaderHeight():0}
132,t.prototype.processFilterModelUpdateQueue=function(){var e=this;this.filterModelUpdateQueue.forEach(function(i){var r=i.model,n=i.source;return e.setFilterModel(r,n)}),this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue.forEach(function(i){var r=i.key,n=i.model,s=i.resolve;e.setColumnFilterModel(r,n).then(function(){return s()})}),this.columnFilterModelUpdateQueue=[],this.advancedFilterModelUpdateQueue.forEach(function(i){return e.setAdvancedFilterModel(i)}),this.advancedFilterModelUpdateQueue=[]},t.prototype.getColumnFilterModel=function(e){var i=this.getFilterWrapper(e);return i?this.getModelFromFilterWrapper(i):null},t.prototype.setColumnFilterModel=function(e,i){if(this.isAdvancedFilterEnabled())return this.warnAdvancedFilters(),Promise.resolve();if(this.dataTypeService.isPendingInference()){var r=function(){},n=new Promise(function(u){r=u});return this.columnFilterModelUpdateQueue.push({key:e,model:i,resolve:r}),n}var s=this.columnModel.getPrimaryColumn(e),a=s?this.getOrCreateFilterWrapper(s,"NO_UI"):null,l=function(u){return new Promise(function(c){u.then(function(p){return c(p)})})};return a?l(this.setModelOnFilterWrapper(a.filterPromise,i)):Promise.resolve()},t.prototype.getFilterWrapper=function(e){var i,r=this.columnModel.getPrimaryColumn(e);return r&&(i=this.cachedFilter(r))!==null&&i!==void 0?i:null},t.prototype.destroy=function(){var e=this;o.prototype.destroy.call(this),this.allColumnFilters.forEach(function(i){return e.disposeFilterWrapper(i,"gridDestroyed")}),this.allColumnListeners.clear()},hr([E("valueService")],t.prototype,"valueService",void 0),hr([E("columnModel")],t.prototype,"columnModel",void 0),hr([E("rowModel")],t.prototype,"rowModel",void 0),hr([E("userComponentFactory")],t.prototype,"userComponentFactory",void 0),hr([E("rowRenderer")],t.prototype,"rowRenderer",void 0),hr([E("dataTypeService")],t.prototype,"dataTypeService",void 0),hr([E("quickFilterService")],t.prototype,"quickFilterService",void 0),hr([nt("advancedFilterService")],t.prototype,"advancedFilterService",void 0),hr([ie],t.prototype,"init",null),t=hr([fe("filterManager")],t),t}(ee),EA=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Oh=function(o){EA(t,o);function t(e,i){var r=o.call(this,e)||this;return r.ctrl=i,r}return t.prototype.getCtrl=function(){return this.ctrl},t}(We),_A=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),oa=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},OA=function(o){_A(t,o);function t(e){return o.call(this,t.TEMPLATE,e)||this}return t.prototype.postConstruct=function(){var e=this,i=this.getGui(),r={addOrRemoveCssClass:function(n,s){return e.addOrRemoveCssClass(n,s)},addOrRemoveBodyCssClass:function(n,s){return e.eFloatingFilterBody.classList.toggle(n,s)},setButtonWrapperDisplayed:function(n){return it(e.eButtonWrapper,n)},setCompDetails:function(n){return e.setCompDetails(n)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(n){return i.style.width=n},setMenuIcon:function(n){return e.eButtonShowMainFilter.appendChild(n)}};
132this.ctrl.setComp(r,i,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var i=this;if(!e){this.destroyFloatingFilterComp(),this.compPromise=null;return}this.compPromise=e.newAgStackInstance(),this.compPromise.then(function(r){return i.afterCompCreated(r)})},t.prototype.destroyFloatingFilterComp=function(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))},t.prototype.afterCompCreated=function(e){if(e){if(!this.isAlive()){this.destroyBean(e);return}this.destroyFloatingFilterComp(),this.floatingFilterComp=e,this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()}},t.TEMPLATE=`<div class="ag-header-cell ag-floating-filter" role="gridcell"> 133 <div ref="eFloatingFilterBody" role="presentation"></div> 134 <div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation"> 135 <button type="button" class="ag-button ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button> 136 </div> 137 </div>`,oa([se("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),oa([se("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),oa([se("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),oa([ie],t.prototype,"postConstruct",null),oa([Xt],t.prototype,"destroyFloatingFilterComp",null),t}(Oh),bA=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),TA=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Pt;(function(o){o.AUTO_HEIGHT="ag-layout-auto-height",o.NORMAL="ag-layout-normal",o.PRINT="ag-layout-print"})(Pt||(Pt={}));var bh=function(o){bA(t,o);function t(e){var i=o.call(this)||this;return i.view=e,i}return t.prototype.postConstruct=function(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),i={autoHeight:e==="autoHeight",normal:e==="normal",print:e==="print"},r=i.autoHeight?Pt.AUTO_HEIGHT:i.print?Pt.PRINT:Pt.NORMAL;this.view.updateLayoutClasses(r,i)},t.prototype.getDomLayout=function(){var e,i=(e=this.gridOptionsService.get("domLayout"))!==null&&e!==void 0?e:"normal",r=["normal","print","autoHeight"];return r.indexOf(i)===-1?(Le("".concat(i," is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.")),"normal"):i},TA([ie],t.prototype,"postConstruct",null),t}(ee),RA=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Zu=function(){return Zu=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},Zu.apply(this,arguments)},cn=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Wt;(function(o){o[o.Vertical=0]="Vertical",o[o.Horizontal=1]="Horizontal"})(Wt||(Wt={}));var Kt;(function(o){o[o.Container=0]="Container",o[o.FakeContainer=1]="FakeContainer"})(Kt||(Kt={}));var AA=function(o){RA(t,o);function t(e){var i=o.call(this)||this;
137return i.lastScrollSource=[null,null],i.scrollLeft=-1,i.nextScrollTop=-1,i.scrollTop=-1,i.lastOffsetHeight=-1,i.lastScrollTop=-1,i.eBodyViewport=e,i.resetLastHScrollDebounced=Oi(function(){return i.lastScrollSource[Wt.Horizontal]=null},500),i.resetLastVScrollDebounced=Oi(function(){return i.lastScrollSource[Wt.Vertical]=null},500),i}return t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.get("enableRtl"),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady(function(i){e.centerRowContainerCtrl=i.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()})},t.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollComp(),i=this.ctrlsService.getFakeVScrollComp();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onHScroll.bind(this)),e.onScrollCallback(this.onFakeHScroll.bind(this));var r=this.gridOptionsService.get("debounceVerticalScrollbar"),n=r?Oi(this.onVScroll.bind(this),100):this.onVScroll.bind(this),s=r?Oi(this.onFakeVScroll.bind(this),100):this.onFakeVScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",n),i.onScrollCallback(s)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){var i=this.centerRowContainerCtrl==null;if(!i){e===void 0&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var r=this.enableRtl?e:-e,n=this.ctrlsService.getTopCenterRowContainerCtrl(),s=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),a=this.ctrlsService.getBottomCenterRowContainerCtrl(),l=this.ctrlsService.getFakeHScrollComp(),u=this.ctrlsService.getHeaderRowContainerCtrl();u.setHorizontalScroll(-r),a.setContainerTranslateX(r),n.setContainerTranslateX(r),s.setContainerTranslateX(r);var c=this.centerRowContainerCtrl.getViewportElement(),p=this.lastScrollSource[Wt.Horizontal]===Kt.Container;e=Math.abs(e),p?l.setScrollPosition(e):za(c,e,this.enableRtl)}},t.prototype.isControllingScroll=function(e,i){return this.lastScrollSource[i]==null?(this.lastScrollSource[i]=e,!0):this.lastScrollSource[i]===e},t.prototype.onFakeHScroll=function(){this.isControllingScroll(Kt.FakeContainer,Wt.Horizontal)&&this.onHScrollCommon(Kt.FakeContainer)},t.prototype.onHScroll=function(){this.isControllingScroll(Kt.Container,Wt.Horizontal)&&this.onHScrollCommon(Kt.Container)},t.prototype.onHScrollCommon=function(e){var i=this.centerRowContainerCtrl.getViewportElement(),r=i.scrollLeft;if(!this.shouldBlockScrollUpdate(Wt.Horizontal,r,!0)){var n;e===Kt.Container?n=Ua(i,this.enableRtl):n=this.ctrlsService.getFakeHScrollComp().getScrollPosition(),this.doHorizontalScroll(Math.round(n)),this.resetLastHScrollDebounced()}},t.prototype.onFakeVScroll=function(){this.isControllingScroll(Kt.FakeContainer,Wt.Vertical)&&this.onVScrollCommon(Kt.FakeContainer)},t.prototype.onVScroll=function(){this.isControllingScroll(Kt.Container,Wt.Vertical)&&this.onVScrollCommon(Kt.Container)},t.prototype.onVScrollCommon=function(e){var i;e===Kt.Container?i=this.eBodyViewport.scrollTop:i=this.ctrlsService.getFakeVScrollComp().getScrollPosition(),!this.shouldBlockScrollUpdate(Wt.Vertical,i,!0)&&(this.animationFrameService.setScrollTop(i),this.nextScrollTop=i,e===Kt.Container?this.ctrlsService.getFakeVScrollComp().setScrollPosition(i):this.eBodyViewport.scrollTop=i,this.gridOptionsService.get("suppressAnimationFrame")?this.scrollGridIfNeeded():this.animationFrameService.schedule(),this.resetLastVScrollDebounced())},t.prototype.doHorizontalScroll=function(e){var i=this.ctrlsService.getFakeHScrollComp().getScrollPosition();this.scrollLeft===e&&e===i||(this.scrollLeft=e,this.fireScrollEvent(Wt.Horizontal),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowContainerCtrl.onHorizontalViewportChanged(!0))},t.prototype.fireScrollEvent=function(e){var i=this,r={type:T.EVENT_BODY_SCROLL,direction:e===Wt.Horizontal?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(r),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout(function(){var n=Zu(Zu({},r),{type:T.EVENT_BODY_SCROLL_END});i.eventService.dispatchEvent(n)},100)},t.prototype.shouldBlockScrollUpdate=function(e,i,r){return r===void 0&&(r=!1),r&&!tn()?!1:e===Wt.Vertical?this.shouldBlockVerticalScroll(i):this.shouldBlockHorizontalScroll(i)},t.prototype.shouldBlockVerticalScroll=function(e){var i=sl(this.eBodyViewport),r=this.eBodyViewport.scrollHeight;return e<0||e+i>r},t.prototype.shouldBlockHorizontalScroll=function(e){var i=this.centerRowContainerCtrl.getCenterWidth(),r=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&Wa()){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+i>r},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent(Wt.Vertical)},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onHScrollCommon(Kt.Container)},t.prototype.scrollGridIfNeeded=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e,i){i===void 0&&(i=!1);var r=0,n=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();!i&&this.shouldBlockScrollUpdate(Wt.Horizontal,e)&&(this.enableRtl&&Wa()?e=e>0?0:n:e=Math.min(Math.max(e,r),n)),za(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){this.lastScrollTop=this.eBodyViewport.scrollTop,this.lastOffsetHeight=this.eBodyViewport.offsetHeight;var e={top:this.lastScrollTop,bottom:this.lastScrollTop+this.lastOffsetHeight};return e},t.prototype.getApproximateVScollPosition=function(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()},t.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var i=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(i+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-i},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,i){i===void 0&&(i=null);for(var r=this.rowModel.getRowCount(),n=-1,s=0;s<r;s++){var a=this.rowModel.getRow(s);if(typeof e=="function"){var l=e;if(a&&l(a)){n=s;break}}else if(e===a||e===a.data){n=s;break}}n>=0&&this.ensureIndexVisible(n,i)},t.prototype.ensureIndexVisible=function(e,i){var r=this;if(!this.gridOptionsService.isDomLayout("print")){var n=this.paginationProxy.getRowCount();if(typeof e!="number"||e<0||e>=n){console.warn("AG Grid: Invalid row index for ensureIndexVisible: "+e);return}var s=this.gridOptionsService.get("pagination"),a=s&&!this.gridOptionsService.get("suppressPaginationPanel");this.getFrameworkOverrides().wrapIncoming(function(){a||r.paginationProxy.goToPageWithIndex(e);var l=r.ctrlsService.getGridBodyCtrl(),u=l.getStickyTopHeight(),c=r.paginationProxy.getRow(e),p;do{var f=c.rowTop,v=c.rowHeight,y=r.paginationProxy.getPixelOffset(),w=c.rowTop-y,b=w+c.rowHeight,O=r.getVScrollPosition(),A=r.heightScaler.getDivStretchOffset(),P=O.to
137p+A,L=O.bottom+A,x=L-P,H=r.heightScaler.getScrollPositionForPixel(w),g=r.heightScaler.getScrollPositionForPixel(b-x),N=Math.min((H+g)/2,w),V=P+u>w,z=L<b,I=null;i==="top"?I=H:i==="bottom"?I=g:i==="middle"?I=N:V?I=H-u:z&&(I=g),I!==null&&(r.setVerticalScrollPosition(I),r.rowRenderer.redraw({afterScroll:!0})),p=f!==c.rowTop||v!==c.rowHeight}while(p);r.animationFrameService.flushAllFrames()})}},t.prototype.ensureColumnVisible=function(e,i){var r=this;i===void 0&&(i="auto");var n=this.columnModel.getGridColumn(e);if(n&&!n.isPinned()&&this.columnModel.isColumnDisplayed(n)){var s=this.getPositionedHorizontalScroll(n,i);this.getFrameworkOverrides().wrapIncoming(function(){s!==null&&r.centerRowContainerCtrl.setCenterViewportScrollLeft(s),r.centerRowContainerCtrl.onHorizontalViewportChanged(),r.animationFrameService.flushAllFrames()})}},t.prototype.setScrollPosition=function(e,i){var r=this;this.getFrameworkOverrides().wrapIncoming(function(){r.centerRowContainerCtrl.setCenterViewportScrollLeft(i),r.setVerticalScrollPosition(e),r.rowRenderer.redraw({afterScroll:!0}),r.animationFrameService.flushAllFrames()})},t.prototype.getPositionedHorizontalScroll=function(e,i){var r=this.isColumnOutsideViewport(e),n=r.columnBeforeStart,s=r.columnAfterEnd,a=this.centerRowContainerCtrl.getCenterWidth()<e.getActualWidth(),l=this.centerRowContainerCtrl.getCenterWidth(),u=this.enableRtl,c=(u?n:s)||a,p=u?s:n;i!=="auto"&&(c=i==="start",p=i==="end");var f=i==="middle";if(c||p||f){var v=this.getColumnBounds(e),y=v.colLeft,w=v.colMiddle,b=v.colRight;return f?w-l/2:c?u?b:y:u?y-l:b-l}return null},t.prototype.isColumnOutsideViewport=function(e){var i=this.getViewportBounds(),r=i.start,n=i.end,s=this.getColumnBounds(e),a=s.colLeft,l=s.colRight,u=this.enableRtl,c=u?r>l:n<l,p=u?n<a:r>a;return{columnBeforeStart:c,columnAfterEnd:p}},t.prototype.getColumnBounds=function(e){var i=this.enableRtl,r=this.columnModel.getBodyContainerWidth(),n=e.getActualWidth(),s=e.getLeft(),a=i?-1:1,l=i?r-s:s,u=l+n*a,c=l+n/2*a;return{colLeft:l,colMiddle:c,colRight:u}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),i=this.centerRowContainerCtrl.getCenterViewportScrollLeft(),r=i,n=e+i;return{start:r,end:n,width:e}},cn([E("ctrlsService")],t.prototype,"ctrlsService",void 0),cn([E("animationFrameService")],t.prototype,"animationFrameService",void 0),cn([E("paginationProxy")],t.prototype,"paginationProxy",void 0),cn([E("rowModel")],t.prototype,"rowModel",void 0),cn([E("rowContainerHeightService")],t.prototype,"heightScaler",void 0),cn([E("rowRenderer")],t.prototype,"rowRenderer",void 0),cn([E("columnModel")],t.prototype,"columnModel",void 0),cn([ie],t.prototype,"postConstruct",null),t}(ee),PA=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),df=function(){return df=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},df.apply(this,arguments)},Ii=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},DA=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},LA=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},FA=function(o){PA(t,o);function t(e){var i=o.call(this)||this;return i.isMultiRowDrag=!1,i.eContainer=e,i}return t.prototype.postConstruct=function(){var e=this;this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel),this.ctrlsService.whenReady(function(){var i=e.ctrlsService.getGridBodyCtrl();
137e.autoScrollService=new Sw({scrollContainer:i.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return i.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(r){return i.getScrollFeature().setVerticalScrollPosition(r)},onScrollCallback:function(){e.onDragging(e.lastDraggingEvent)}})})},t.prototype.getContainer=function(){return this.eContainer},t.prototype.isInterestedIn=function(e){return e===hi.RowDrag},t.prototype.getIconName=function(){var e=this.gridOptionsService.get("rowDragManaged");return e&&this.shouldPreventRowMove()?It.ICON_NOT_ALLOWED:It.ICON_MOVE},t.prototype.shouldPreventRowMove=function(){var e=this.columnModel.getRowGroupColumns();if(e.length)return!0;var i=this.filterManager.isAnyFilterPresent();if(i)return!0;var r=this.sortController.isSortActive();return!!r},t.prototype.getRowNodes=function(e){var i=this;if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];var r=this.gridOptionsService.get("rowDragMultiRow"),n=LA([],DA(this.selectionService.getSelectedNodes()),!1).sort(function(a,l){return a.rowIndex==null||l.rowIndex==null?0:i.getRowIndexNumber(a)-i.getRowIndexNumber(l)}),s=e.dragItem.rowNode;return r&&n.indexOf(s)!==-1?(this.isMultiRowDrag=!0,n):(this.isMultiRowDrag=!1,[s])},t.prototype.onDragEnter=function(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent(T.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach(function(i){i.setDragging(!0)}),this.onEnterOrDragging(e)},t.prototype.onDragging=function(e){this.onEnterOrDragging(e)},t.prototype.isFromThisGrid=function(e){var i=e.dragSource.dragSourceDomDataKey;return i===this.gridOptionsService.getDomDataKey()},t.prototype.isDropZoneWithinThisGrid=function(e){var i=this.ctrlsService.getGridBodyCtrl(),r=i.getGui(),n=e.dropZoneTarget;return!r.contains(n)},t.prototype.onEnterOrDragging=function(e){this.dispatchGridEvent(T.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var i=this.mouseEventService.getNormalisedPosition(e).y,r=this.gridOptionsService.get("rowDragManaged");r&&this.doManagedDrag(e,i),this.autoScrollService.check(e.event)},t.prototype.doManagedDrag=function(e,i){var r=this.isFromThisGrid(e),n=this.gridOptionsService.get("rowDragManaged"),s=e.dragItem.rowNodes;n&&this.shouldPreventRowMove()||(this.gridOptionsService.get("suppressMoveWhenRowDragging")||!r?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(s[0],i):this.moveRows(s,i))},t.prototype.getRowIndexNumber=function(e){return parseInt(ot(e.getRowIndexString().split("-")),10)},t.prototype.moveRowAndClearHighlight=function(e){var i=this,r=this.clientSideRowModel.getLastHighlightedRowNode(),n=r&&r.highlighted===zr.Below,s=this.mouseEventService.getNormalisedPosition(e).y,a=e.dragItem.rowNodes,l=n?1:0;if(this.isFromThisGrid(e))a.forEach(function(p){p.rowTop<s&&(l-=1)}),this.moveRows(a,s,l);else{var u=this.gridOptionsService.getCallback("getRowId"),c=this.clientSideRowModel.getRowIndexAtPixel(s)+1;this.clientSideRowModel.getHighlightPosition(s)===zr.Above&&c--,this.clientSideRowModel.updateRowData({add:a.map(function(p){return p.data}).filter(function(p){return!i.clientSideRowModel.getRowNode(u?u({data:p,level:0}):p.id)}),addIndex:c})}this.clearRowHighlight()},t.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},t.prototype.moveRows=function(e,i,r){r===void 0&&(r=0);var n=this.clientSideRowModel.ensureRowsAtPixel(e,i,r);n&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},t.prototype.addRowDropZone=function(e){var i=this;if(!e.getContainer()){Le("addRowDropZone - A container target needs to be provided");return}if(this.dragAndDropService.findExternalZone(e)){console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");return}var r={getContainer:e.getContainer};e.fromGrid?(e.fromGrid=void 0,r=e):(e.onDragEnter&&(r.onDragEnter=function(n){e.onDragEnter(i.draggingToRowDragEvent(T.EVENT_ROW_DRAG_ENTER,n))}),e.onDragLeave&&(r.onDragLeave=function(n){e.onDragLeave(i.draggingToRowDragEvent(T.EVENT_ROW_DRAG_LEAVE,n))}),e.onDragging&&(r.onDragging=function(n){e.onDragging(i.draggingToRowDragEvent(T.EVENT_ROW_DRAG_MOVE,n))}),e.onDragStop&&(r.onDragStop=function(n){e.onDragStop(i.draggingToRowDragEvent(T.EVENT_ROW_DRAG_END,n))})),this.dragAndDropService.addDropTarget(df({isInterestedIn:function(n){return n===hi.RowDrag},getIconName:function(){return It.ICON_MOVE},external:!0},r))},t.prototype.getRowDropZone=function(e){var i=this,r=this.getContainer.bind(this),n=this.onDragEnter.bind(this),s=this.onDragLeave.bind(this),a=this.onDragging.bind(this),l=this.onDragStop.bind(this);return e?{getContainer:r,onDragEnter:e.onDragEnter?function(u){n(u),e.onDragEnter(i.draggingToRowDragEvent(T.EVENT_ROW_DRAG_ENTER,u))}:n,onDragLeave:e.onDragLeave?function(u){s(u),e.onDragLeave(i.draggingToRowDragEvent(T.EVENT_ROW_DRAG_LEAVE,u))}:s,onDragging:e.onDragging?function(u){a(u),e.onDragging(i.draggingToRowDragEvent(T.EVENT_ROW_DRAG_MOVE,u))}:a,onDragStop:e.onDragStop?function(u){l(u),e.onDragStop(i.draggingToRowDragEvent(T.EVENT_ROW_DRAG_END,u))}:l,fromGrid:!0}:{getContainer:r,onDragEnter:n,onDragLeave:s,onDragging:a,onDragStop:l,fromGrid:!0}},t.prototype.draggingToRowDragEvent=function(e,i){var r=this.mouseEventService.getNormalisedPosition(i).y,n=r>this.paginationProxy.getCurrentPageHeight(),s=-1,a;n||(s=this.rowModel.getRowIndexAtPixel(r),a=this.rowModel.getRow(s));var l;switch(i.vDirection){case _s.Down:l="down";break;case _s.Up:l="up";break;default:l=null;break}var u=this.gridOptionsService.addGridCommonParams({type:e,event:i.event,node:i.dragItem.rowNode,nodes:i.dragItem.rowNodes,overIndex:s,overNode:a,y:r,vDirection:l});return u},t.prototype.dispatchGridEvent=function(e,i){var r=this.draggingToRowDragEvent(e,i);this.eventService.dispatchEvent(r)},t.prototype.onDragLeave=function(e){this.dispatchGridEvent(T.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsService.get("rowDragManaged")&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},t.prototype.onDragStop=function(e){this.dispatchGridEvent(T.EVENT_ROW_DRAG_END,e),this.stopDragging(e),this.gridOptionsService.get("rowDragManaged")&&(this.gridOptionsService.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(e))&&!this.isDropZoneWithinThisGrid(e)&&this.moveRowAndClearHighlight(e)},t.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(function(i){i.setDragging(!1)})},Ii([E("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Ii([E("rowModel")],t.prototype,"rowModel",void 0),Ii([E("paginationProxy")],t.prototype,"paginationProxy",void 0),Ii([E("columnModel")],t.prototype,"columnModel",void 0),Ii([E("focusService")],t.prototype,"focusService",void 0),Ii([E("sortController")],t.prototype,"sortController",void 0),Ii([E("filterManager")],t.prototype,"filterManager",void 0),Ii([E("selectionService")],t.prototype,"selectionService",void 0),Ii([E("mouseEventService")],t.prototype,"mouseEventService",void 0),Ii([E("ctrlsService")],t.prototype,"ctrlsService",void 0),Ii([nt("rangeService")],t.prototype,"rangeService",void 0),Ii([ie],t.prototype,"postConstruct",null),t}
137(ee),MA=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ti=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Os;(function(o){o.ANIMATION_ON="ag-row-animation",o.ANIMATION_OFF="ag-row-no-animation"})(Os||(Os={}));var Ow="ag-force-vertical-scroll",IA="ag-selectable",xA="ag-column-moving",NA=function(o){MA(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.stickyTopHeight=0,e}return t.prototype.getScrollFeature=function(){return this.bodyScrollFeature},t.prototype.getBodyViewportElement=function(){return this.eBodyViewport},t.prototype.setComp=function(e,i,r,n,s,a){var l=this;this.comp=e,this.eGridBody=i,this.eBodyViewport=r,this.eTop=n,this.eBottom=s,this.eStickyTop=a,this.setCellTextSelection(this.gridOptionsService.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",function(u){return l.setCellTextSelection(u.currentValue)}),this.createManagedBean(new bh(this.comp)),this.bodyScrollFeature=this.createManagedBean(new AA(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([n,r,s,a]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.filterManager.setupAdvancedFilterHeaderComp(n),this.ctrlsService.registerGridBodyCtrl(this)},t.prototype.getComp=function(){return this.comp},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,T.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.addFocusListeners=function(e){var i=this;e.forEach(function(r){i.addManagedListener(r,"focusin",function(n){var s=n.target,a=fo(s,"ag-root",r);r.classList.toggle("ag-has-focus",!a)}),i.addManagedListener(r,"focusout",function(n){var s=n.target,a=n.relatedTarget,l=r.contains(a),u=fo(a,"ag-root",r),c=fo(s,"ag-root",r);c||(!l||u)&&r.classList.remove("ag-has-focus")})})},t.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(xA,e)},t.prototype.setCellTextSelection=function(e){e===void 0&&(e=!1),this.comp.setCellSelectableCss(IA,e)},t.prototype.onScrollVisibilityChanged=function(){var e=this,i=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(i),this.setStickyTopWidth(i);var r=i&&this.gridOptionsService.getScrollbarWidth()||0,n=sh()?16:0,s="calc(100% + ".concat(r+n,"px)");this.animationFrameService.requestAnimationFrame(function(){return e.comp.setBodyViewportWidth(s)})},t.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e.length)},t.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1})},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsService.get("stopEditingWhenCellsLoseFocus")){var i=function(n){var s=n.relatedTarget;if(zu(s)===null){e.rowRenderer.stopEditing();return}var a=r.some(function(u){return u.contains(s)})&&e.mouseEventService.isElementInThisGrid(s);if(!a){var l=e.popupService;a=l.getActivePopups().some(function(u){return u.contains(s)})||l.isElementWithinCustomPopup(s)}a||e.rowRenderer.stopEditing()},r=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];
137r.forEach(function(n){return e.addManagedListener(n,"focusout",i)})}},t.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount()+this.filterManager.getHeaderRowCount(),i=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,r=i===-1?-1:e+i;this.comp.setRowCount(r)},t.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},t.prototype.setVerticalScrollPaddingVisible=function(e){var i=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(i)},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsService.get("alwaysShowVerticalScroll"),i=e?Ow:null,r=this.gridOptionsService.isDomLayout("normal");return this.comp.setAlwaysVerticalScrollClass(i,e),e||r&&jC(this.eBodyViewport)},t.prototype.setupRowAnimationCssClass=function(){var e=this,i=function(){var r=e.gridOptionsService.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),n=r?Os.ANIMATION_ON:Os.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(n,r)};i(),this.addManagedListener(this.eventService,T.EVENT_HEIGHT_SCALE_CHANGED,i),this.addManagedPropertyListener("animateRows",i)},t.prototype.getGridBodyElement=function(){return this.eGridBody},t.prototype.addBodyViewportListener=function(){var e=this.onBodyViewportContextMenu.bind(this);this.addManagedListener(this.eBodyViewport,"contextmenu",e),this.mockContextMenuForIPad(e),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this)),this.addFullWidthContainerWheelListener()},t.prototype.addFullWidthContainerWheelListener=function(){var e=this,i=this.eBodyViewport.querySelector(".ag-full-width-container"),r=this.eBodyViewport.querySelector(".ag-center-cols-viewport");i&&r&&this.addManagedListener(i,"wheel",function(n){return e.onFullWidthContainerWheel(n,r)})},t.prototype.onFullWidthContainerWheel=function(e,i){!e.deltaX||Math.abs(e.deltaY)>Math.abs(e.deltaX)||!this.mouseEventService.isEventFromThisGrid(e)||(e.preventDefault(),i.scrollBy({left:e.deltaX}))},t.prototype.onBodyViewportContextMenu=function(e,i,r){if(!(!e&&!r)){if(this.gridOptionsService.get("preventDefaultOnContextMenu")){var n=e||r;n.preventDefault()}var s=(e||i).target;(s===this.eBodyViewport||s===this.ctrlsService.getCenterRowContainerCtrl().getViewportElement())&&this.menuService.showContextMenu({mouseEvent:e,touchEvent:r,value:null,anchorToElement:this.eGridBody})}},t.prototype.mockContextMenuForIPad=function(e){if(tn()){var i=new zt(this.eBodyViewport),r=function(n){e(void 0,n.touchStart,n.touchEvent)};this.addManagedListener(i,zt.EVENT_LONG_TAP,r),this.addDestroyFunc(function(){return i.destroy()})}},t.prototype.onBodyViewportWheel=function(e){this.gridOptionsService.get("suppressScrollWhenPopupsAreOpen")&&this.popupService.hasAnchoredPopup()&&e.preventDefault()},t.prototype.onStickyTopWheel=function(e){e.preventDefault(),e.offsetY&&this.scrollVertically(e.deltaY)},t.prototype.getGui=function(){return this.eGridBody},t.prototype.scrollVertically=function(e){var i=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(i+e),this.eBodyViewport.scrollTop-i},t.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new FA(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},t.prototype.getRowDragFeature=function(){return this.rowDragFeature},t.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},t.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,i=e.getPinnedTopTotalHeight(),r=e.getPinnedBottomTotalHeight();this.comp.setTopHeight(i),this.comp.setBottomHeight(r),this.comp.setTopDisplay(i?"inherit":"none"),this.comp.setBottomDisplay(r?"inherit":"none"),this.setStickyTopOffsetTop()},t.prototype.setStickyTopHeight=function(e){e===void 0&&(e=0),this.comp.setStickyTopHeight("".concat(e,"px")),this.stickyTopHeight=e},t.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},t.prototype.setStickyTopWidth=function(e){if(!e)this.comp.setStickyTopWidth("100%");else{var i=this.gridOptionsService.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - ".concat(i,"px)"))}}
137,t.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},t.prototype.setStickyTopOffsetTop=function(){var e=this.ctrlsService.getGridHeaderCtrl(),i=e.getHeaderHeight()+this.filterManager.getHeaderHeight(),r=this.pinnedRowModel.getPinnedTopTotalHeight(),n=0;i>0&&(n+=i+1),r>0&&(n+=r+1),this.comp.setStickyTopTop("".concat(n,"px"))},t.prototype.sizeColumnsToFit=function(e,i){var r=this,n=this.isVerticalScrollShowing(),s=n?this.gridOptionsService.getScrollbarWidth():0,a=Ro(this.eGridBody),l=a-s;if(l>0){this.columnModel.sizeColumnsToFit(l,"sizeColumnsToFit",!1,e);return}i===void 0?window.setTimeout(function(){r.sizeColumnsToFit(e,100)},0):i===100?window.setTimeout(function(){r.sizeColumnsToFit(e,500)},100):i===500?window.setTimeout(function(){r.sizeColumnsToFit(e,-1)},500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e,{passive:!0})},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},ti([E("animationFrameService")],t.prototype,"animationFrameService",void 0),ti([E("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),ti([E("ctrlsService")],t.prototype,"ctrlsService",void 0),ti([E("columnModel")],t.prototype,"columnModel",void 0),ti([E("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),ti([E("menuService")],t.prototype,"menuService",void 0),ti([E("headerNavigationService")],t.prototype,"headerNavigationService",void 0),ti([E("dragAndDropService")],t.prototype,"dragAndDropService",void 0),ti([E("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),ti([E("rowRenderer")],t.prototype,"rowRenderer",void 0),ti([E("popupService")],t.prototype,"popupService",void 0),ti([E("mouseEventService")],t.prototype,"mouseEventService",void 0),ti([E("rowModel")],t.prototype,"rowModel",void 0),ti([E("filterManager")],t.prototype,"filterManager",void 0),t}(ee),ec;(function(o){o[o.FILL=0]="FILL",o[o.RANGE=1]="RANGE"})(ec||(ec={}));var ss;(function(o){o[o.VALUE=0]="VALUE",o[o.DIMENSION=1]="DIMENSION"})(ss||(ss={}));var sa="ag-cell-range-selected",GA="ag-cell-range-chart",HA="ag-cell-range-single-cell",VA="ag-cell-range-chart-category",kA="ag-cell-range-handle",BA="ag-cell-range-top",jA="ag-cell-range-right",WA="ag-cell-range-bottom",UA="ag-cell-range-left",zA=function(){function o(t,e){this.beans=t,this.cellCtrl=e}return o.prototype.setComp=function(t,e){this.cellComp=t,this.eGui=e,this.onRangeSelectionChanged()},o.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(sa,this.rangeCount!==0),this.cellComp.addOrRemoveCssClass("".concat(sa,"-1"),this.rangeCount===1),this.cellComp.addOrRemoveCssClass("".concat(sa,"-2"),this.rangeCount===2),this.cellComp.addOrRemoveCssClass("".concat(sa,"-3"),this.rangeCount===3),this.cellComp.addOrRemoveCssClass("".concat(sa,"-4"),this.rangeCount>=4),this.cellComp.addOrRemoveCssClass(GA,this.hasChartRange),ws(this.eGui,this.rangeCount>0?!0:void 0),this.cellComp.addOrRemoveCssClass(HA,this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},o.prototype.updateRangeBorders=function(){var t=this.getRangeBorders(),e=this.isSingleCell(),i=!e&&t.top,r=!e&&t.right,n=!e&&t.bottom,s=!e&&t.left;this.cellComp.addOrRemoveCssClass(BA,i),this.cellComp.addOrRemoveCssClass(jA,r),this.cellComp.addOrRemoveCssClass(WA,n),this.cellComp.addOrRemoveCssClass(UA,s)},o.prototype.isSingleCell=function(){var t=this.beans.rangeService;return this.rangeCount===1&&t&&!t.isMoreThanOneCell()},o.prototype.getHasChartRange=function(){var t=this.beans.rangeService;if(!this.rangeCount||!t)return!1;var e=t.getCellRanges();return e.length>0&&e.every(function(i){return rr([ss.DIMENSION,ss.VALUE],i.type)})},o.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},o.prototype.getRangeBorders=function(){var t=this,e=this.beans.gridOptionsService.get("enableRtl"),i=!1,r=!1,n=!1,s=!1,a=this.cellCtrl.getCellPosition().column,l=this.beans,u=l.rangeService,c=l.columnModel,p,f;e?(p=c.getDisplayedColAfter(a),f=c.getDisplayedColBefore(a)):(p=c.getDisplayedColBefore(a),f=c.getDisplayedColAfter(a));var v=u.getCellRanges().filter(function(A){return u.isCellInSpecificRange(t.cellCtrl.getCellPosition(),A)});p||(s=!0),f||(r=!0);for(var y=0;y<v.length&&!(i&&r&&n&&s);y++){var w=v[y],b=u.getRangeStartRow(w),O=u.getRangeEndRow(w);!i&&this.beans.rowPositionUtils.sameRow(b,this.cellCtrl.getCellPosition())&&(i=!0),!n&&this.beans.rowPositionUtils.sameRow(O,this.cellCtrl.getCellPosition())&&(n=!0),!s&&p&&w.columns.indexOf(p)<0&&(s=!0),!r&&f&&w.columns.indexOf(f)<0&&(r=!0)}return{top:i,right:r,bottom:n,left:s}},o.prototype.refreshHandle=function(){if(!(!this.beans.rangeService||this.beans.context.
137isDestroyed())){var t=this.shouldHaveSelectionHandle();this.selectionHandle&&!t&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),t&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass(kA,!!this.selectionHandle)}},o.prototype.shouldHaveSelectionHandle=function(){var t=this.beans,e=t.gridOptionsService,i=t.rangeService,r=i.getCellRanges(),n=r.length;if(this.rangeCount<1||n<1)return!1;var s=ot(r),a=this.cellCtrl.getCellPosition(),l=e.get("enableFillHandle")&&!this.cellCtrl.isSuppressFillHandle(),u=e.get("enableRangeHandle"),c=n===1&&!this.cellCtrl.isEditing()&&(l||u);if(this.hasChartRange){var p=r[0].type===ss.DIMENSION,f=p&&i.isCellInSpecificRange(a,r[0]);this.cellComp.addOrRemoveCssClass(VA,f),c=s.type===ss.VALUE}return c&&s.endRow!=null&&i.isContiguousRange(s)&&i.isBottomRightCell(s,a)},o.prototype.addSelectionHandle=function(){var t=this.beans,e=t.gridOptionsService,i=t.rangeService,r=ot(i.getCellRanges()).type,n=e.get("enableFillHandle")&&Me(r),s=n?ec.FILL:ec.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==s&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(s)),this.selectionHandle.refresh(this.cellCtrl)},o.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},o}(),$A=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),KA=function(o){$A(t,o);function t(e,i){var r=o.call(this)||this;return r.cellCtrl=e,r.beans=i,r.column=e.getColumn(),r.rowNode=e.getRowNode(),r.setupColSpan(),r.setupRowSpan(),r}return t.prototype.setupRowSpan=function(){var e=this;this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListener(this.beans.eventService,T.EVENT_NEW_COLUMNS_LOADED,function(){return e.onNewColumnsLoaded()})},t.prototype.setComp=function(e){this.eGui=e,this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()},t.prototype.onNewColumnsLoaded=function(){var e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this.applyRowSpan(!0))},t.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();jr(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},t.prototype.setupColSpan=function(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))},t.prototype.onWidthChanged=function(){if(this.eGui){var e=this.getCellWidth();this.eGui.style.width="".concat(e,"px")}},t.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce(function(e,i){return e+i.getActualWidth()},0):this.column.getActualWidth()},t.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),i=[];if(e===1)i.push(this.column);else for(var r=this.column,n=this.column.getPinned(),s=0;r&&s<e&&(i.push(r),r=this.beans.columnModel.getDisplayedColAfter(r),!(!r||Me(r)||n!==r.getPinned()));s++);return i},t.prototype.onLeftChanged=function(){if(this.eGui){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=e+"px"}},t.prototype.getCellLeft=function(){var e;return this.beans.gridOptionsService.get("enableRtl")&&this.colsSpanning?e=ot(this.colsSpanning):e=this.column,e.getLeft()},t.prototype.modifyLeftForPrintLayout=function(e){if(!this.cellCtrl.isPrintLayout()||this.column.getPinned()==="left")return e;var i=this.beans.columnModel.getDisplayedColumnsLeftWidth();if(this.column.getPinned()==="right"){var r=this.beans.columnModel.getBodyContainerWidth();return i+r+(e||0)}return i+(e||0)},t.prototype.applyRowSpan=function(e){if(!(this.rowSpan===1&&!e)){var i=this.beans.gridOptionsService.getRowHeightAsNumber(),r=i*this.rowSpan;this.eGui.style.height="".concat(r,"px"),this.eGui.style.zIndex="1"}},t.prototype.destroy=function(){o.prototype.destroy.call(this)},t}
137(ee),YA=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),qA=function(o){YA(t,o);function t(e,i){var r=o.call(this)||this;return r.staticClasses=[],r.cellCtrl=e,r.beans=i,r.column=e.getColumn(),r.rowNode=e.getRowNode(),r}return t.prototype.setComp=function(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},t.prototype.applyCellClassRules=function(){var e=this,i=this.column.getColDef(),r=i.cellClassRules,n=this.beans.gridOptionsService.addGridCommonParams({value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:i,column:this.column,rowIndex:this.rowNode.rowIndex});this.beans.stylingService.processClassRules(r===this.cellClassRules?void 0:this.cellClassRules,r,n,function(s){return e.cellComp.addOrRemoveCssClass(s,!0)},function(s){return e.cellComp.addOrRemoveCssClass(s,!1)}),this.cellClassRules=r},t.prototype.applyUserStyles=function(){var e=this.column.getColDef();if(e.cellStyle){var i;if(typeof e.cellStyle=="function"){var r=this.beans.gridOptionsService.addGridCommonParams({column:this.column,value:this.cellCtrl.getValue(),colDef:e,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex}),n=e.cellStyle;i=n(r)}else i=e.cellStyle;i&&this.cellComp.setUserStyles(i)}},t.prototype.applyClassesFromColDef=function(){var e=this,i=this.column.getColDef(),r=this.beans.gridOptionsService.addGridCommonParams({value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,column:this.column,colDef:i,rowIndex:this.rowNode.rowIndex});this.staticClasses.length&&this.staticClasses.forEach(function(n){return e.cellComp.addOrRemoveCssClass(n,!1)}),this.staticClasses=this.beans.stylingService.getStaticCellClasses(i,r),this.staticClasses.length&&this.staticClasses.forEach(function(n){return e.cellComp.addOrRemoveCssClass(n,!0)})},t.prototype.destroy=function(){o.prototype.destroy.call(this)},t}(ee),XA=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Dc=function(o){XA(t,o);function t(e,i){var r=o.call(this)||this;return r.ctrl=e,r.beans=i,r}return t.prototype.setComp=function(e){this.eGui=e,this.setupTooltip()},t.prototype.setBrowserTooltip=function(e){var i="title";e!=null&&e!=""?this.eGui.setAttribute(i,e):this.eGui.removeAttribute(i)},t.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsService.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?this.setBrowserTooltip(this.tooltip):this.createTooltipFeatureIfNeeded()},t.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},t.prototype.createTooltipFeatureIfNeeded=function(){var e=this,i,r,n,s;if(this.genericTooltipFeature==null){var a={getTooltipParams:function(){return e.getTooltipParams()},getGui:function(){return e.ctrl.getGui()}};this.genericTooltipFeature=this.createManagedBean(new XC(a,(r=(i=this.ctrl).getTooltipShowDelayOverride)===null||r===void 0?void 0:r.call(i),(s=(n=this.ctrl).getTooltipHideDelayOverride)===null||s===void 0?void 0:s.call(n)),this.beans.context)}},t.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.setBrowserTooltip(this.tooltip)},t.prototype.getTooltipParams=function(){var e=this,i=this.ctrl,r=i.getColumn?i.getColumn():void 0,n=i.getColDef?i.getColDef():void 0,s=i.getRowNode?i.getRowNode():void 0;return{location:i.getLocation(),colDef:n,column:r,rowIndex:i.getRowIndex?i.getRowIndex():void 0,node:s,data:s?s.data:void 0,value:this.getTooltipText(),valueFormatted:i.getValueFormatted?i.getValueFormatted():void 0,hideTooltipCallback:function(){return e.genericTooltipFeature.hideTooltip(!0)}}},t.prototype.getTooltipText=function(){return this.tooltip},t.prototype.destroy=function(){o.prototype.destroy.call(this)},t}(ee),Be=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},bw=function(){function o(){}return o.prototype.postConstruct=function(){this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel),this.gridOptionsService.isRowModelType("serverSide")&&(this.serverSideRowModel=this.rowModel)},Be([E("resizeObserverService")],o.prototype,"resizeObserverService",void 0),Be([E("paginationProxy")],o.prototype,"paginationProxy",void 0),Be([E("context")],o.prototype,"context",void 0),Be([E("columnApi")],o.prototype,"columnApi",void 0),Be([E("gridApi")],o.prototype,"gridApi",void 0),Be([E("gridOptionsService")],o.prototype,"gridOptionsService",void 0),Be([E("expressionService")],o.prototype,"expressionService",void 0),Be([E("environment")],o.prototype,"environment",void 0),Be([E("rowRenderer")],o.prototype,"rowRenderer",void 0),Be([E("templateService")],o.prototype,"templateService",void 0),Be([E("valueService")],o.prototype,"valueService",void 0),Be([E("eventService")],o.prototype,"eventService",void 0),Be([E("columnModel")],o.prototype,"columnModel",void 0),Be([E("headerNavigationService")],o.prototype,"headerNavigationService",void 0),Be([E("navigationService")],o.prototype,"navigationService",void 0),Be([E("columnAnimationService")],o.prototype,"columnAnimationService",void 0),Be([nt("rangeService")],o.prototype,"rangeService",void 0),Be([E("focusService")],o.prototype,"focusService",void 0),Be([E("popupService")],o.prototype,"popupService",void 0),Be([E("valueFormatterService")],o.prototype,"valueFormatterService",void 0),Be([E("stylingService")],o.prototype,"stylingService",void 0),Be([E("columnHoverService")],o.prototype,"columnHoverService",void 0),Be([E("userComponentFactory")],o.prototype,"userComponentFactory",void 0),Be([E("userComponentRegistry")],o.prototype,"userComponentRegistry",void 0),Be([E("animationFrameService")],o.prototype,"animationFrameService",void 0),Be([E("dragService")],o.prototype,"dragService",void 0),Be([E("dragAndDropService")],o.prototype,"dragAndDropService",void 0),Be([E("sortController")],o.prototype,"sortController",void 0),Be([E("filterManager")],o.prototype,"filterManager",void 0),Be([E("rowContainerHeightService")],o.prototype,"rowContainerHeightService",void 0),Be([E("frameworkOverrides")],o.prototype,"frameworkOverrides",void 0),Be([E("cellPositionUtils")],o.prototype,"cellPositionUtils",void 0),Be([E("rowPositionUtils")],o.prototype,"rowPositionUtils",void 0),Be([E("selectionService")],o.prototype,"selectionService",void 0),Be([nt("selectionHandleFactory")],o.prototype,"selectionHandleFactory",void 0),Be([E("rowCssClassCalculator")],o.prototype,"rowCssClassCalculator",void 0),Be([E("rowModel")],o.prototype,"rowModel",void 0),Be([E("ctrlsService")],o.prototype,"ctrlsService",void 0),Be([E("ctrlsFactory")],o.prototype,"ctrlsFactory",void 0),Be([E("agStackComponentsRegistry")],o.prototype,"agStackComponentsRegistry",void 0),Be([E("valueCache")],o.prototype,"valueCache",void 0),Be([E("rowNodeEventThrottle")],o.prototype,"rowNodeEventThrottle",void 0),Be([E("localeService")],o.prototype,"localeService",void 0),Be([E("valueParserService")],o.prototype,"valueParserService",void 0),Be([E("syncService")],o.prototype,"syncService",void 0),Be([E("ariaAnnouncementService")],o.prototype,"ariaAnnouncementService",void 0),Be([ie],o.prototype,"postConstruct",null),o=Be([fe("beans")],o),o}
137(),QA=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),JA=function(o){QA(t,o);function t(e,i,r){var n=o.call(this)||this;return n.cellCtrl=e,n.beans=i,n.column=r,n}return t.prototype.onMouseEvent=function(e,i){if(!nr(i))switch(e){case"click":this.onCellClicked(i);break;case"mousedown":case"touchstart":this.onMouseDown(i);break;case"dblclick":this.onCellDoubleClicked(i);break;case"mouseout":this.onMouseOut(i);break;case"mouseover":this.onMouseOver(i);break}},t.prototype.onCellClicked=function(e){var i=this;if(this.isDoubleClickOnIPad()){this.onCellDoubleClicked(e),e.preventDefault();return}var r=this.beans,n=r.eventService,s=r.rangeService,a=r.gridOptionsService,l=e.ctrlKey||e.metaKey;s&&l&&s.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&s.intersectLastRange(!0);var u=this.cellCtrl.createEvent(e,T.EVENT_CELL_CLICKED);n.dispatchEvent(u);var c=this.column.getColDef();c.onCellClicked&&window.setTimeout(function(){i.beans.frameworkOverrides.wrapOutgoing(function(){c.onCellClicked(u)})},0);var p=(a.get("singleClickEdit")||c.singleClickEdit)&&!a.get("suppressClickEdit");p&&!(e.shiftKey&&(s==null?void 0:s.getCellRanges().length)!=0)&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!tn()||zf("dblclick"))return!1;var e=new Date().getTime(),i=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,i},t.prototype.onCellDoubleClicked=function(e){var i=this,r=this.column.getColDef(),n=this.cellCtrl.createEvent(e,T.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),typeof r.onCellDoubleClicked=="function"&&window.setTimeout(function(){i.beans.frameworkOverrides.wrapOutgoing(function(){r.onCellDoubleClicked(n)})},0);var s=!this.beans.gridOptionsService.get("singleClickEdit")&&!this.beans.gridOptionsService.get("suppressClickEdit");s&&this.cellCtrl.startRowOrCellEdit(null,e)},t.prototype.onMouseDown=function(e){var i=e.ctrlKey,r=e.metaKey,n=e.shiftKey,s=e.target,a=this,l=a.cellCtrl,u=a.beans,c=u.eventService,p=u.rangeService,f=u.focusService;if(!this.isRightClickInExistingRange(e)){var v=p&&p.getCellRanges().length!=0;if(!n||!v){var y=Dr()&&!l.isEditing()&&!uh(s);l.focusCell(y)}if(n&&v&&!f.isCellFocused(l.getCellPosition())){e.preventDefault();var w=f.getFocusedCell();if(w){var b=w.column,O=w.rowIndex,A=w.rowPinned,P=u.rowRenderer.getRowByPosition({rowIndex:O,rowPinned:A}),L=P==null?void 0:P.getCellCtrl(b);L!=null&&L.isEditing()&&L.stopEditing(),f.setFocusedCell({column:b,rowIndex:O,rowPinned:A,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!this.containsWidget(s)){if(p){var x=this.cellCtrl.getCellPosition();if(n)p.extendLatestRangeToCell(x);else{var H=i||r;p.setRangeToCell(x,H)}}c.dispatchEvent(this.cellCtrl.createEvent(e,T.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var i=this.beans.rangeService;if(i){var r=i.isCellInAnyRange(this.cellCtrl.getCellPosition()),n=e.button===2||e.ctrlKey&&this.beans.gridOptionsService.get("allowContextMenuWithControlKey");if(r&&n)return!0}return!1},t.prototype.containsWidget=function(e){return fo(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var i=this.cellCtrl.createEvent(e,T.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(i),this.beans.columnHoverService.clearMouseOver()}},t.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var i=this.cellCtrl.createEvent(e,T.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(i),this.beans.columnHoverService.setMouseOver([this.column])}},t.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var i=this.cellCtrl.getGui(),r=i.contains(e.target),n=i.contains(e.relatedTarget);return r&&n},t.prototype.destroy=function(){},t}
137(bw),ZA=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),eP=function(o){ZA(t,o);function t(e,i,r,n,s){var a=o.call(this)||this;return a.cellCtrl=e,a.beans=i,a.rowNode=n,a.rowCtrl=s,a}return t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var i=e.key;switch(i){case W.ENTER:this.onEnterKeyDown(e);break;case W.F2:this.onF2KeyDown(e);break;case W.ESCAPE:this.onEscapeKeyDown(e);break;case W.TAB:this.onTabKeyDown(e);break;case W.BACKSPACE:case W.DELETE:this.onBackspaceOrDeleteKeyDown(i,e);break;case W.DOWN:case W.UP:case W.RIGHT:case W.LEFT:this.onNavigationKeyDown(e,i);break}},t.prototype.onNavigationKeyDown=function(e,i){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,i,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var i=this.beans.rangeService.extendLatestRangeInDirection(e);i&&this.beans.navigationService.ensureCellVisible(i)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyDown=function(e,i){var r=this,n=r.cellCtrl,s=r.beans,a=r.rowNode,l=s.gridOptionsService,u=s.rangeService,c=s.eventService;n.isEditing()||(c.dispatchEvent({type:T.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),qC(e,l.get("enableCellEditingOnBackspace"))?u&&l.get("enableRangeSelection")?u.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"}):n.isCellEditable()&&a.setDataValue(n.getColumn(),null,"cellClear"):n.startRowOrCellEdit(e,i),c.dispatchEvent({type:T.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},t.prototype.onEnterKeyDown=function(e){if(this.cellCtrl.isEditing()||this.rowCtrl.isEditing())this.cellCtrl.stopEditingAndFocus(!1,e.shiftKey);else if(this.beans.gridOptionsService.get("enterNavigatesVertically")){var i=e.shiftKey?W.UP:W.DOWN;this.beans.navigationService.navigateToNextCell(null,i,this.cellCtrl.getCellPosition(),!1)}else this.cellCtrl.startRowOrCellEdit(W.ENTER,e),this.cellCtrl.isEditing()&&e.preventDefault()},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(W.F2,e)},t.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.processCharacter=function(e){var i=e.target,r=i!==this.eGui;if(!(r||this.cellCtrl.isEditing())){var n=e.key;n===" "?this.onSpaceKeyDown(e):(this.cellCtrl.startRowOrCellEdit(n,e),e.preventDefault())}},t.prototype.onSpaceKeyDown=function(e){var i=this.beans.gridOptionsService;if(!this.cellCtrl.isEditing()&&i.isRowSelection()){var r=this.rowNode.isSelected(),n=!r;if(n||!i.get("suppressRowDeselection")){var s=this.beans.gridOptionsService.get("groupSelectsFiltered"),a=this.rowNode.setSelectedParams({newValue:n,rangeSelect:e.shiftKey,groupSelectsFiltered:s,event:e,source:"spaceKey"});r===void 0&&a===0&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:s,event:e,source:"spaceKey"})}}e.preventDefault()},t.prototype.destroy=function(){o.prototype.destroy.call(this)},t}(ee),tP=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),iP=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},rP=function(o){tP(t,o);function t(e,i,r){var n=o.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return n.rowNode=e,n.column=i,n.eCell=r,n}return t.prototype.postConstruct=function(){var e=this.getGui();e.appendChild(bt("rowDrag",this.gridOptionsService,null)),this.addGuiEventListener("mousedown",function(i){i.stopPropagation()}),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var i=this,r=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);var n=function(){try{var a=JSON.stringify(i.rowNode.data);e.dataTransfer.setData("application/json",a),e.dataTransfer.setData("text/plain",a)}catch{}};if(r){var s=this.gridOptionsService.addGridCommonParams({rowNode:this.rowNode,dragEvent:e});r(s)}else n()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},iP([ie],t.prototype,"postConstruct",null),t}(We),nP=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},oP=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},sP="ag-column-first",aP="ag-column-last",Lc=function(){function o(){}
137return o.getHeaderClassesFromColDef=function(t,e,i,r){return Me(t)?[]:this.getColumnClassesFromCollDef(t.headerClass,t,e,i,r)},o.getToolPanelClassesFromColDef=function(t,e,i,r){return Me(t)?[]:this.getColumnClassesFromCollDef(t.toolPanelClass,t,e,i,r)},o.refreshFirstAndLastStyles=function(t,e,i){t.addOrRemoveCssClass(sP,i.isColumnAtEdge(e,"first")),t.addOrRemoveCssClass(aP,i.isColumnAtEdge(e,"last"))},o.getClassParams=function(t,e,i,r){return e.addGridCommonParams({colDef:t,column:i,columnGroup:r})},o.getColumnClassesFromCollDef=function(t,e,i,r,n){if(Me(t))return[];var s;if(typeof t=="function"){var a=this.getClassParams(e,i,r,n);s=t(a)}else s=t;return typeof s=="string"?[s]:Array.isArray(s)?oP([],nP(s),!1):[]},o}(),lP=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),tc=function(){return tc=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},tc.apply(this,arguments)},uP="ag-cell",cP="ag-cell-auto-height",dP="ag-cell-normal-height",pP="ag-cell-focus",fP="ag-cell-first-right-pinned",hP="ag-cell-last-left-pinned",vP="ag-cell-not-inline-editing",gP="ag-column-hover",yP="ag-cell-wrap-text",mP=0,vo=function(o){lP(t,o);function t(e,i,r,n){var s=o.call(this)||this;return s.cellRangeFeature=null,s.cellPositionFeature=null,s.cellCustomStyleFeature=null,s.tooltipFeature=null,s.cellMouseListenerFeature=null,s.cellKeyboardListenerFeature=null,s.suppressRefreshCell=!1,s.onCellCompAttachedFuncs=[],s.column=e,s.rowNode=i,s.beans=r,s.rowCtrl=n,s.instanceId=e.getId()+"-"+mP++,s.colIdSanitised=Dt(s.column.getId()),r.gridOptionsService.get("suppressCellFocus")||(s.tabIndex=-1),s.createCellPosition(),s.addFeatures(),s.updateAndFormatValue(!1),s}return t.prototype.shouldRestoreFocus=function(){return this.beans.focusService.shouldRestoreFocus(this.cellPosition)},t.prototype.addFeatures=function(){var e=this;this.cellPositionFeature=new KA(this,this.beans),this.addDestroyFunc(function(){var r;(r=e.cellPositionFeature)===null||r===void 0||r.destroy(),e.cellPositionFeature=null}),this.cellCustomStyleFeature=new qA(this,this.beans),this.addDestroyFunc(function(){var r;(r=e.cellCustomStyleFeature)===null||r===void 0||r.destroy(),e.cellCustomStyleFeature=null}),this.cellMouseListenerFeature=new JA(this,this.beans,this.column),this.addDestroyFunc(function(){var r;(r=e.cellMouseListenerFeature)===null||r===void 0||r.destroy(),e.cellMouseListenerFeature=null}),this.cellKeyboardListenerFeature=new eP(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc(function(){var r;(r=e.cellKeyboardListenerFeature)===null||r===void 0||r.destroy(),e.cellKeyboardListenerFeature=null}),this.column.isTooltipEnabled()&&(this.enableTooltipFeature(),this.addDestroyFunc(function(){e.disableTooltipFeature()}));var i=this.beans.rangeService&&this.beans.gridOptionsService.get("enableRangeSelection");i&&(this.cellRangeFeature=new zA(this.beans,this),this.addDestroyFunc(function(){var r;(r=e.cellRangeFeature)===null||r===void 0||r.destroy(),e.cellRangeFeature=null}))},t.prototype.enableTooltipFeature=function(){var e=this,i=function(){var n=e.column.getColDef(),s=e.rowNode.data;if(n.tooltipField&&Q(s))return ps(s,n.tooltipField,e.column.isTooltipFieldContainsDots());var a=n.tooltipValueGetter;return a?a(e.beans.gridOptionsService.addGridCommonParams({location:"cell",colDef:e.column.getColDef(),column:e.column,rowIndex:e.cellPosition.rowIndex,node:e.rowNode,data:e.rowNode.data,value:e.value,valueFormatted:e.valueFormatted})):null},r={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getRowIndex:function(){return e.cellPosition.rowIndex},getRowNode:function(){return e.rowNode},getGui:function(){return e.getGui()},getLocation:function(){return"cell"},getTooltipValue:i,getValueFormatted:function(){return e.valueFormatted}};this.tooltipFeature=new Dc(r,this.beans)},t.prototype.disableTooltipFeature=function(){this.tooltipFeature&&(this.tooltipFeature.destroy(),this.tooltipFeature=null)},t.prototype.setComp=function(e,i,r,n,s){var a,l,u,c;this.cellComp=e,this.eGui=i,this.printLayout=n,this.addDomData(),this.onCellFocused(this.focusEventToRestore),this.applyStaticCssClasse
137s(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(r),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),(a=this.cellPositionFeature)===null||a===void 0||a.setComp(i),(l=this.cellCustomStyleFeature)===null||l===void 0||l.setComp(e),(u=this.tooltipFeature)===null||u===void 0||u.setComp(i),(c=this.cellKeyboardListenerFeature)===null||c===void 0||c.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(e,i),s&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach(function(p){return p()}),this.onCellCompAttachedFuncs=[])},t.prototype.setupAutoHeight=function(e){var i=this;if(this.isAutoHeight=this.column.isAutoHeight(),!(!this.isAutoHeight||!e)){var r=e.parentElement,n=this.beans.gridOptionsService.getRowHeightForNode(this.rowNode).height,s=function(u){if(!i.editing&&i.isAlive()){var c=Vn(r),p=c.paddingTop,f=c.paddingBottom,v=c.borderBottomWidth,y=c.borderTopWidth,w=p+f+v+y,b=e.offsetHeight,O=b+w;if(u<5){var A=i.beans.gridOptionsService.getDocument(),P=!A||!A.contains(e),L=O==0;if(P||L){window.setTimeout(function(){return s(u+1)},0);return}}var x=Math.max(O,n);i.rowNode.setRowAutoHeight(x,i.column)}},a=function(){return s(0)};a();var l=this.beans.resizeObserverService.observeResize(e,a);this.addDestroyFunc(function(){l(),i.rowNode.setRowAutoHeight(void 0,i.column)})}},t.prototype.getCellAriaRole=function(){var e;return(e=this.column.getColDef().cellAriaRole)!==null&&e!==void 0?e:"gridcell"},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getIncludeSelection=function(){return this.includeSelection},t.prototype.getIncludeRowDrag=function(){return this.includeRowDrag},t.prototype.getIncludeDndSource=function(){return this.includeDndSource},t.prototype.getColumnIdSanitised=function(){return this.colIdSanitised},t.prototype.getTabIndex=function(){return this.tabIndex},t.prototype.isCellRenderer=function(){var e=this.column.getColDef();return e.cellRenderer!=null||e.cellRendererSelector!=null},t.prototype.getValueToDisplay=function(){return this.valueFormatted!=null?this.valueFormatted:this.value},t.prototype.showValue=function(e){e===void 0&&(e=!1);var i=this.getValueToDisplay(),r;if(this.isCellRenderer()){var n=this.createCellRendererParams();r=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),n)}this.cellComp.setRenderDetails(r,i,e),this.refreshHandle()},t.prototype.setupControlComps=function(){var e=this.column.getColDef();this.includeSelection=this.isIncludeControl(e.checkboxSelection),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)},t.prototype.isForceWrapper=function(){var e=this.beans.gridOptionsService.get("enableCellTextSelection")||this.column.isAutoHeight();return e},t.prototype.isIncludeControl=function(e){var i=this.rowNode.rowPinned!=null,r=typeof e=="function",n=i?!1:r||e===!0;return n},t.prototype.refreshShouldDestroy=function(){var e=this.column.getColDef(),i=this.includeSelection!=this.isIncludeControl(e.checkboxSelection),r=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),n=this.includeDndSource!=this.isIncludeControl(e.dndSource);return i||r||n},t.prototype.startEditing=function(e,i,r){var n=this;if(e===void 0&&(e=null),i===void 0&&(i=!1),r===void 0&&(r=null),!(!this.isCellEditable()||this.editing)){if(!this.cellComp){this.onCellCompAttachedFuncs.push(function(){n.startEditing(e,i,r)});return}var s=this.createCellEditorParams(e,i),a=this.column.getColDef(),l=this.beans.userComponentFactory.getCellEditorDetails(a,s);this.editCompDetails=l;var u=(l==null?void 0:l.popupFromSelector)!=null?l.popupFromSelector:!!a.cellEditorPopup,c=(l==null?void 0:l.popupPositionFromSelector)!=null?l.popupPositionFromSelector:a.cellEditorPopupPosition;this.setEditing(!0),this.cellComp.setEditDetails(l,u,c,this.beans.gridOptionsService.get("reactiveCustomComponents"));var p=this.createEvent(r,T.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(p)}},t.prototype.setEditing=function(e){this.editing!==e&&(this.editing=e,this.refreshHandle())},t.prototype.stopRowOrCellEdit=function(e){e===void 0&&(e=!1),this.beans.gridOptionsService.get("editType")==="fullRow"?this.rowCtrl.stopEditing(e):this.stopEditing(e)},t.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},t.prototype.takeValueFromCellEditor=function(e){var i={newValueE
137xists:!1};if(e)return i;var r=this.cellComp.getCellEditor();if(!r)return i;var n=r.isCancelAfterEnd&&r.isCancelAfterEnd();if(n)return i;var s=r.getValue();return{newValue:s,newValueExists:!0}},t.prototype.saveNewValue=function(e,i){if(i===e)return!1;this.suppressRefreshCell=!0;var r=this.rowNode.setDataValue(this.column,i,"edit");return this.suppressRefreshCell=!1,r},t.prototype.stopEditing=function(e){if(e===void 0&&(e=!1),!this.editing)return!1;var i=this.takeValueFromCellEditor(e),r=i.newValue,n=i.newValueExists,s=this.rowNode.getValueFromValueService(this.column),a=!1;return n&&(a=this.saveNewValue(s,r)),this.setEditing(!1),this.cellComp.setEditDetails(),this.editCompDetails=void 0,this.updateAndFormatValue(!1),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(s,r,!e&&!!a),a},t.prototype.dispatchEditingStoppedEvent=function(e,i,r){var n=tc(tc({},this.createEvent(null,T.EVENT_CELL_EDITING_STOPPED)),{oldValue:e,newValue:i,valueChanged:r});this.beans.eventService.dispatchEvent(n)},t.prototype.createCellEditorParams=function(e,i){return this.beans.gridOptionsService.addGridCommonParams({value:this.rowNode.getValueFromValueService(this.column),eventKey:e,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,cellStartedEdit:i,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)})},t.prototype.createCellRendererParams=function(){var e=this,i=this.beans.gridOptionsService.addGridCommonParams({value:this.value,valueFormatted:this.valueFormatted,getValue:function(){return e.rowNode.getValueFromValueService(e.column)},setValue:function(r){return e.beans.valueService.setValue(e.rowNode,e.column,r)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,pinned:this.column.getPinned(),colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(r,n,s,a){return e.registerRowDragger(r,n,a)}});return i},t.prototype.parseValue=function(e){return this.beans.valueParserService.parseValue(this.column,this.rowNode,e,this.getValue())},t.prototype.setFocusOutOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusOut&&e.focusOut()}},t.prototype.setFocusInOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusIn?e.focusIn():this.focusCell(!0)}},t.prototype.onCellChanged=function(e){var i=e.column===this.column;i&&this.refreshCell({})},t.prototype.refreshOrDestroyCell=function(e){var i;this.refreshShouldDestroy()?(i=this.rowCtrl)===null||i===void 0||i.refreshCell(this):this.refreshCell(e)},t.prototype.refreshCell=function(e){var i,r,n;if(!(this.suppressRefreshCell||this.editing)){var s=this.column.getColDef(),a=e!=null&&!!e.newData,l=e!=null&&!!e.suppressFlash||!!s.suppressCellFlash,u=s.field==null&&s.valueGetter==null&&s.showRowGroup==null,c=e&&e.forceRefresh||u||a,p=!!this.cellComp,f=this.updateAndFormatValue(p),v=c||f;if(p){if(v){this.showValue(a);var y=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering(),w=!l&&!y&&(this.beans.gridOptionsService.get("enableCellChangeFlash")||s.enableCellChangeFlash);w&&this.flashCell(),(i=this.cellCustomStyleFeature)===null||i===void 0||i.applyUserStyles(),(r=this.cellCustomStyleFeature)===null||r===void 0||r.applyClassesFromColDef()}this.refreshToolTip(),(n=this.cellCustomStyleFeature)===null||n===void 0||n.applyCellClassRules()}}},t.prototype.stopEditingAndFocus=function(e,i){e===void 0&&(e=!1),i===void 0&&(i=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit(i)},t.prototype.navigateAfterEdit=function(e){var i=this.beans.gridOptionsService.get("enterNavigatesVerticallyAfterEdit");if(i){var r=e?W.UP:W.DOWN;this.beans.navigationService.navigateToNextCell(null,r,this.getCellPosition(),!1)}},t.prototype.flashCell=function(e){var i,r,n=(i=e==null?void 0:e.flashDuration)!==null&&i!==void 0?i:e==null?void 0:e.flashDelay,s=(r=e==null?void 0:e.fadeDuration)!==null&&r!==void 0?r:e==null?void 0:e.fadeDelay;this.animateCell("data-changed",n,s)},t.prototype.animateCell=function(e,i,r){var n=this;if(this.cellComp){var s="ag-cell-".concat(e),a="ag-cell-".concat(e,"-animation"),l=this.beans.gridOptionsService;
137i||(i=l.get("cellFlashDuration")),Q(r)||(r=l.get("cellFadeDuration")),this.cellComp.addOrRemoveCssClass(s,!0),this.cellComp.addOrRemoveCssClass(a,!1),this.beans.frameworkOverrides.wrapIncoming(function(){window.setTimeout(function(){n.isAlive()&&(n.cellComp.addOrRemoveCssClass(s,!1),n.cellComp.addOrRemoveCssClass(a,!0),n.eGui.style.transition="background-color ".concat(r,"ms"),window.setTimeout(function(){n.isAlive()&&(n.cellComp.addOrRemoveCssClass(a,!1),n.eGui.style.transition="")},r))},i)})}},t.prototype.onFlashCells=function(e){if(this.cellComp){var i=this.beans.cellPositionUtils.createId(this.getCellPosition()),r=e.cells[i];r&&this.animateCell("highlight")}},t.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},t.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},t.prototype.formatValue=function(e){var i;return(i=this.callValueFormatter(e))!==null&&i!==void 0?i:e},t.prototype.callValueFormatter=function(e){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,e)},t.prototype.updateAndFormatValue=function(e){var i=this.value,r=this.valueFormatted;return this.value=this.rowNode.getValueFromValueService(this.column),this.valueFormatted=this.callValueFormatter(this.value),e?!this.valuesAreEqual(i,this.value)||this.valueFormatted!=r:!0},t.prototype.valuesAreEqual=function(e,i){var r=this.column.getColDef();return r.equals?r.equals(e,i):e===i},t.prototype.getComp=function(){return this.cellComp},t.prototype.getValue=function(){return this.value},t.prototype.getValueFormatted=function(){return this.valueFormatted},t.prototype.addDomData=function(){var e=this,i=this.getGui();this.beans.gridOptionsService.setDomData(i,t.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc(function(){return e.beans.gridOptionsService.setDomData(i,t.DOM_DATA_KEY_CELL_CTRL,null)})},t.prototype.createEvent=function(e,i){var r=this.beans.gridOptionsService.addGridCommonParams({type:i,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),rowPinned:this.rowNode.rowPinned,event:e,rowIndex:this.rowNode.rowIndex});return r},t.prototype.processCharacter=function(e){var i;(i=this.cellKeyboardListenerFeature)===null||i===void 0||i.processCharacter(e)},t.prototype.onKeyDown=function(e){var i;(i=this.cellKeyboardListenerFeature)===null||i===void 0||i.onKeyDown(e)},t.prototype.onMouseEvent=function(e,i){var r;(r=this.cellMouseListenerFeature)===null||r===void 0||r.onMouseEvent(e,i)},t.prototype.getGui=function(){return this.eGui},t.prototype.refreshToolTip=function(){var e;(e=this.tooltipFeature)===null||e===void 0||e.refreshToolTip()},t.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},t.prototype.onLeftChanged=function(){var e;this.cellComp&&((e=this.cellPositionFeature)===null||e===void 0||e.onLeftChanged())},t.prototype.onDisplayedColumnsChanged=function(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())},t.prototype.refreshFirstAndLastStyles=function(){var e=this,i=e.cellComp,r=e.column,n=e.beans;Lc.refreshFirstAndLastStyles(i,r,n.columnModel)},t.prototype.refreshAriaColIndex=function(){var e=this.beans.columnModel.getAriaColumnIndex(this.column);Zf(this.getGui(),e)},t.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},t.prototype.onWidthChanged=function(){var e;return(e=this.cellPositionFeature)===null||e===void 0?void 0:e.onWidthChanged()},t.prototype.getColumn=function(){return this.column},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getBeans=function(){return this.beans},t.prototype.isPrintLayout=function(){return this.printLayout},t.prototype.appendChild=function(e){this.eGui.appendChild(e)},t.prototype.refreshHandle=function(){this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},t.prototype.getCellPosition=function(){return this.cellPosition},t.prototype.isEditing=function(){return this.editing},t.prototype.startRowOrCellEdit=function(e,i){var r=this;if(i===void 0&&(i=null),!this.cellComp){this.onCellCompAttachedFuncs.push(function(){r.startRowOrCellEdit(e,i)});return}this.beans.gridOptionsService.get("editType")==="fullRow"?this.rowCtrl.startRowEditing(e,this):this.startEditing(e,!0,i)},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},t.prototype.updateRangeBordersIfRangeCount=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()},t.prototype.onRangeSelectionChanged=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},t.prototype.isRangeSelectionEnabled=function(){return this.cellRangeFeature!=null}
137,t.prototype.focusCell=function(e){e===void 0&&(e=!1),this.beans.focusService.setFocusedCell({rowIndex:this.getCellPosition().rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:e})},t.prototype.onRowIndexChanged=function(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},t.prototype.onFirstRightPinnedChanged=function(){if(this.cellComp){var e=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass(fP,e)}},t.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var e=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass(hP,e)}},t.prototype.onCellFocused=function(e){if(!this.beans.gridOptionsService.get("suppressCellFocus")){var i=this.beans.focusService.isCellFocused(this.cellPosition);if(!this.cellComp){i&&(e!=null&&e.forceBrowserFocus)&&(this.focusEventToRestore=e);return}if(this.focusEventToRestore=void 0,this.cellComp.addOrRemoveCssClass(pP,i),i&&e&&e.forceBrowserFocus){var r=this.cellComp.getFocusableElement();r.focus({preventScroll:!!e.preventScrollOnBrowserFocus})}var n=this.beans.gridOptionsService.get("editType")==="fullRow";!i&&!n&&this.editing&&this.stopRowOrCellEdit(),i&&this.rowCtrl.announceDescription()}},t.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:Rr(this.rowNode.rowPinned),column:this.column}},t.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass(uP,!0),this.cellComp.addOrRemoveCssClass(vP,!0);var e=this.column.isAutoHeight()==!0;this.cellComp.addOrRemoveCssClass(cP,e),this.cellComp.addOrRemoveCssClass(dP,!e)},t.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsService.get("columnHoverHighlight")){var e=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass(gP,e)}},t.prototype.onColDefChanged=function(){var e,i;if(this.cellComp){var r=this.column.isAutoHeight();r!==this.isAutoHeight&&((e=this.rowCtrl)===null||e===void 0||e.refreshCell(this));var n=this.column.isTooltipEnabled();if(n?(this.disableTooltipFeature(),this.enableTooltipFeature(),(i=this.tooltipFeature)===null||i===void 0||i.setComp(this.eGui)):this.disableTooltipFeature(),this.setWrapText(),!this.editing)this.refreshOrDestroyCell({forceRefresh:!0,suppressFlash:!0});else{var s=this.getCellEditor();if(s!=null&&s.refresh){var a=this.editCompDetails.params,l=a.eventKey,u=a.cellStartedEdit,c=this.createCellEditorParams(l,u),p=this.column.getColDef(),f=this.beans.userComponentFactory.getCellEditorDetails(p,c);s.refresh(f.params)}}}},t.prototype.setWrapText=function(){var e=this.column.getColDef().wrapText==!0;this.cellComp.addOrRemoveCssClass(yP,e)},t.prototype.dispatchCellContextMenuEvent=function(e){var i=this,r=this.column.getColDef(),n=this.createEvent(e,T.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(n),r.onCellContextMenu&&window.setTimeout(function(){i.beans.frameworkOverrides.wrapOutgoing(function(){r.onCellContextMenu(n)})}
137,0)},t.prototype.getCellRenderer=function(){return this.cellComp?this.cellComp.getCellRenderer():null},t.prototype.getCellEditor=function(){return this.cellComp?this.cellComp.getCellEditor():null},t.prototype.destroy=function(){this.onCellCompAttachedFuncs=[],o.prototype.destroy.call(this)},t.prototype.createSelectionCheckbox=function(){var e=new Cw;return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e},t.prototype.createDndSource=function(){var e=new rP(this.rowNode,this.column,this.eGui);return this.beans.context.createBean(e),e},t.prototype.registerRowDragger=function(e,i,r){var n=this;if(this.customRowDragComp){this.customRowDragComp.setDragElement(e,i);return}var s=this.createRowDragComp(e,i,r);s&&(this.customRowDragComp=s,this.addDestroyFunc(function(){n.beans.context.destroyBean(s),n.customRowDragComp=null}))},t.prototype.createRowDragComp=function(e,i,r){var n=this,s=this.beans.gridOptionsService.get("pagination"),a=this.beans.gridOptionsService.get("rowDragManaged"),l=this.beans.gridOptionsService.isRowModelType("clientSide");if(a){if(!l){Le("managed row dragging is only allowed in the Client Side Row Model");return}if(s){Le("managed row dragging is not possible when doing pagination");return}}var u=new Xu(function(){return n.value},this.rowNode,this.column,e,i,r);return this.beans.context.createBean(u),u},t.DOM_DATA_KEY_CELL_CTRL="cellCtrl",t}(ee),CP=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),wP=function(o){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&o[t],i=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Yd=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},qd=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},ai;(function(o){o.Normal="Normal",o.FullWidth="FullWidth",o.FullWidthLoading="FullWidthLoading",o.FullWidthGroup="FullWidthGroup",o.FullWidthDetail
137="FullWidthDetail"})(ai||(ai={}));var SP=0,go=function(o){CP(t,o);function t(e,i,r,n,s){var a=o.call(this)||this;return a.allRowGuis=[],a.active=!0,a.centerCellCtrls={list:[],map:{}},a.leftCellCtrls={list:[],map:{}},a.rightCellCtrls={list:[],map:{}},a.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},a.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},a.rowDragComps=[],a.lastMouseDownOnDragger=!1,a.emptyStyle={},a.updateColumnListsPending=!1,a.rowId=null,a.businessKeySanitised=null,a.beans=i,a.gridOptionsService=i.gridOptionsService,a.rowNode=e,a.paginationPage=i.paginationProxy.getCurrentPage(),a.useAnimationFrameForCreate=n,a.printLayout=s,a.suppressRowTransform=a.gridOptionsService.get("suppressRowTransform"),a.instanceId=e.id+"-"+SP++,a.rowId=Dt(e.id),a.initRowBusinessKey(),a.rowFocused=i.focusService.isRowFocused(a.rowNode.rowIndex,a.rowNode.rowPinned),a.rowLevel=i.rowCssClassCalculator.calculateRowLevel(a.rowNode),a.setRowType(),a.setAnimateFlags(r),a.rowStyles=a.processStylesFromGridOptions(),a.isFullWidth()&&!a.gridOptionsService.get("suppressCellFocus")&&(a.tabIndex=-1),a.addListeners(),a}return t.prototype.initRowBusinessKey=function(){this.businessKeyForNodeFunc=this.gridOptionsService.get("getBusinessKeyForNode"),this.updateRowBusinessKey()},t.prototype.updateRowBusinessKey=function(){if(typeof this.businessKeyForNodeFunc=="function"){var e=this.businessKeyForNodeFunc(this.rowNode);this.businessKeySanitised=Dt(e)}},t.prototype.getRowId=function(){return this.rowId},t.prototype.getRowStyles=function(){return this.rowStyles},t.prototype.getTabIndex=function(){return this.tabIndex},t.prototype.isSticky=function(){return this.rowNode.sticky},t.prototype.getBeans=function(){return this.beans},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e,i,r){var n={rowComp:e,element:i,containerType:r};this.allRowGuis.push(n),r===Mt.LEFT?this.leftGui=n:r===Mt.RIGHT?this.rightGui=n:r===Mt.FULL_WIDTH?this.fullWidthGui=n:this.centerGui=n,this.initialiseRowComp(n),this.rowType!=="FullWidthLoading"&&!this.rowNode.rowPinned&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent()},t.prototype.unsetComp=function(e){switch(this.allRowGuis=this.allRowGuis.filter(function(i){return i.containerType!==e}),e){case Mt.LEFT:this.leftGui=void 0;break;case Mt.RIGHT:this.rightGui=void 0;break;case Mt.FULL_WIDTH:this.fullWidthGui=void 0;break;case Mt.CENTER:this.centerGui=void 0;break}},t.prototype.isCacheable=function(){return this.rowType===ai.FullWidthDetail&&this.gridOptionsService.get("keepDetailRows")},t.prototype.setCached=function(e){var i=e?"none":"";this.allRowGuis.forEach(function(r){return r.element.style.display=i})},t.prototype.initialiseRowComp=function(e){var i=this,r=this.gridOptionsService;this.listenOnDomOrder(e),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights(),this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(!1,e),r.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);var n=e.rowComp,s=this.getInitialRowClasses(e.containerType);s.forEach(function(a){return n.addOrRemoveCssClass(a,!0)}),this.executeSlideAndFadeAnimations(e),this.rowNode.group&&qr(e.element,this.rowNode.expanded==!0),this.setRowCompRowId(n),this.setRowCompRowBusinessKey(n),r.setDomData(e.element,t.DOM_DATA_KEY_ROW_CTRL,this),this.addDestroyFunc(function(){return r.setDomData(e.element,t.DOM_DATA_KEY_ROW_CTRL,null)}),this.useAnimationFrameForCreate?this.beans.animationFrameService.createTask(this.addHoverFunctionality.bind(this,e.element),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(e.element),this.isFullWidth()&&this.setupFullWidth(e),r.get("rowDragEntireRow")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameService.addDestroyTask(function(){i.isAlive()&&e.rowComp.addOrRemoveCssClass("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()},t.prototype.setRowCompRowBusinessKey=function(e){this.businessKeySanitised!=null&&e.setRowBusinessKey(this.businessKeySanitised)},t.prototype.getBusinessKey=function(){return this.businessKeySanitised},t.prototype.setRowCompRowId=function(e){this.rowId=Dt(this.rowNode.id),this.rowId!=null&&e.setRowId(this.rowId)},t.prototype.executeSlideAndFadeAnimations=function(e){var i=this,r=e.containerType,n=this.slideInAnimation[r];n&&(Xp(function(){i.onTopChanged()}),this.slideInAnimation[r]=!1);var s=this.fadeInAnimation[r];s&&(Xp(function(){e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}),this.fadeInAnimation[r]=!1)},t.prototype.addRowDraggerToRow=function(e){if(this.gridOptionsService.get("enableRangeSelection")){Le("Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`");return}var i=this.beans.localeService.getLocaleTextFunc(),r=new Xu(function(){return"1 ".concat(i("rowDragRow","row"))},this.rowNode,void 0,e.element,void 0,!0),n=this.createBean(r,this.beans.context);this.rowDragComps.push(n)},t.prototype.setupFullWidth=function(e){var i=this.getPinnedForContainer(e.containerType),r=this.createFullWidthParams(e.element,i);if(!(this.rowType==ai.FullWidthDetail&&!ct.__assertRegistered(Oe.MasterDetailModule,"cell renderer 'agDetailCellRenderer' (for master detail)",this.beans.context.getGridId()))){var n;switch(this.rowType){case ai.FullWidthDetail:n=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(r);break;case ai.FullWidthGroup:n=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(r);break;case ai.FullWidthLoading:n=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(r);break;default:n=this.beans.userComponentFactory.getFullWidthCellRendererDetails(r);break}e.rowComp.showFullWidth(n)}},t.prototype.isPrintLayout=function(){return this.printLayout},t.prototype.getFullWidthCellRenderers=function(){var e,i;return this.gridOptionsService.get("embedFullWidthRows")?this.allRowGuis.map(function(r){var n;return(n=r==null?void 0:r.rowComp)===null||n===void 0?void 0:n.getFullWidthCellRenderer()}):[(i=(e=this.fullWidthGui)===null||e===void 0?void 0:e.rowComp)===null||i===void 0?void 0:i.getFullWidthCellRenderer()]},t.prototype.getCellElement=function(e){var i=this.getCellCtrl(e);return i?i.getGui():null},t.prototype.executeProcessRowPostCreateFunc=function(){var e=this.gridOptionsService.getCallback("processRowPostCreate");if(!(!e||!this.areAllContainersReady())){var i={eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)};e(i)}},t.prototype.areAllContainersReady=function(){var e=!!this.leftGui||!this.beans.columnModel.isPinningLeft(),i=!!this.centerGui,r=!!this.rightGui||!this.beans.columnModel.isPinningRight();return e&&i&&r},t.prototype.setRowType=function(){var e=this.rowNode.stub,i=this.rowNode.isFullWidthCell(),r=this.gridOptionsService.get("masterDetail")&&this.rowNode.detail,n=this.beans.columnModel.isPivotMode(),s=!!this.rowNode.group&&!this.rowNode.footer,a=s&&this.gridOptionsService.isGroupUseEntireRow(n);e?this.rowType=ai.FullWidthLoading:r?this.rowType=ai.FullWidthDetail:i?this.rowType=ai.FullWidth:a?this.rowType=ai.FullWidthGroup:this.rowType=ai.Normal},t.prototype.updateColumnLists=function(e,i){var r=this;if(e===void 0&&(e=!1),i===void 0&&(i=!1),!this.isFullWidth()){var n=e||this.gridOptionsService.get("suppressAnimationFrame")||this.printLayout;if(n){this.updateColumnListsImpl(i);return}this.updateColumnListsPending||(this.beans.animationFrameService.createTask(function(){r.active&&r.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}},t.prototype.createCellCtrls=function(e,i,r){var n=this;r===void 0&&(r=null);var s={list:[],map:{}},a=function(l,u){s.list.push(u),s.map[l]=u};
137return i.forEach(function(l){var u=l.getInstanceId(),c=e.map[u];c||(c=new vo(l,n.rowNode,n.beans,n)),a(u,c)}),e.list.forEach(function(l){var u=s.map[l.getColumn().getInstanceId()]!=null;if(!u){var c=!n.isCellEligibleToBeRemoved(l,r);if(c){a(l.getColumn().getInstanceId(),l);return}l.destroy()}}),s},t.prototype.updateColumnListsImpl=function(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(e)},t.prototype.setCellCtrls=function(e){var i=this;this.allRowGuis.forEach(function(r){var n=i.getCellCtrlsForContainer(r.containerType);r.rowComp.setCellCtrls(n,e)})},t.prototype.getCellCtrlsForContainer=function(e){switch(e){case Mt.LEFT:return this.leftCellCtrls.list;case Mt.RIGHT:return this.rightCellCtrls.list;case Mt.FULL_WIDTH:return[];case Mt.CENTER:return this.centerCellCtrls.list;default:var i=e;throw new Error("Unhandled case: ".concat(i))}},t.prototype.createAllCellCtrls=function(){var e=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,e.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var i=e.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,i);var r=e.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,"left");var n=e.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,n,"right")}},t.prototype.isCellEligibleToBeRemoved=function(e,i){var r=!0,n=!1,s=e.getColumn();if(s.getPinned()!=i)return r;var a=e.isEditing(),l=this.beans.focusService.isCellFocused(e.getCellPosition()),u=a||l;if(u){var c=e.getColumn(),p=this.beans.columnModel.getAllDisplayedColumns(),f=p.indexOf(c)>=0;return f?n:r}return r},t.prototype.getDomOrder=function(){var e=this.gridOptionsService.get("ensureDomOrder");return e||this.gridOptionsService.isDomLayout("print")},t.prototype.listenOnDomOrder=function(e){var i=this,r=function(){e.rowComp.setDomOrder(i.getDomOrder())};this.addManagedPropertyListener("domLayout",r),this.addManagedPropertyListener("ensureDomOrder",r)},t.prototype.setAnimateFlags=function(e){if(!(this.isSticky()||!e)){var i=Q(this.rowNode.oldRowTop),r=this.beans.columnModel.isPinningLeft(),n=this.beans.columnModel.isPinningRight();if(i){if(this.isFullWidth()&&!this.gridOptionsService.get("embedFullWidthRows")){this.slideInAnimation.fullWidth=!0;return}this.slideInAnimation.center=!0,this.slideInAnimation.left=r,this.slideInAnimation.right=n}else{if(this.isFullWidth()&&!this.gridOptionsService.get("embedFullWidthRows")){this.fadeInAnimation.fullWidth=!0;return}this.fadeInAnimation.center=!0,this.fadeInAnimation.left=r,this.fadeInAnimation.right=n}}},t.prototype.isEditing=function(){return this.editingRow},t.prototype.isFullWidth=function(){return this.rowType!==ai.Normal},t.prototype.getRowType=function(){return this.rowType},t.prototype.refreshFullWidth=function(){var e=this,i=function(u,c){return u?u.rowComp.refreshFullWidth(function(){return e.createFullWidthParams(u.element,c)}):!0},r=i(this.fullWidthGui,null),n=i(this.centerGui,null),s=i(this.leftGui,"left"),a=i(this.rightGui,"right"),l=r&&n&&s&&a;return l},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.rowNode,$e.EVENT_HEIGHT_CHANGED,function(){return e.onRowHeightChanged()}),this.addManagedListener(this.rowNode,$e.EVENT_ROW_SELECTED,function(){return e.onRowSelected()}),this.addManagedListener(this.rowNode,$e.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,$e.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,$e.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,$e.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.rowNode.detail&&this.addManagedListener(this.rowNode.parent,$e.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,$e.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,$e.EVENT_CELL_CHANGED,this.postProcessCss.bind(this)),this.addManagedListener(this.rowNode,$e.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,$e.EVENT_DRAGGING_CHANGED,this.postProcessRowDragging.bind(this)),this.addManagedListener(this.rowNode,$e.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var i=this.beans.eventService;this.addManagedListener(i,T.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOff
137setChanged.bind(this)),this.addManagedListener(i,T.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(i,T.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(i,T.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(i,T.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(i,T.EVENT_CELL_FOCUS_CLEARED,this.onCellFocusChanged.bind(this)),this.addManagedListener(i,T.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(i,T.EVENT_MODEL_UPDATED,this.refreshFirstAndLastRowStyles.bind(this)),this.addManagedListener(i,T.EVENT_COLUMN_MOVED,this.updateColumnLists.bind(this)),this.addDestroyFunc(function(){e.destroyBeans(e.rowDragComps,e.beans.context)}),this.addManagedPropertyListeners(["rowDragEntireRow"],function(){var r=e.gridOptionsService.get("rowDragEntireRow");if(r){e.allRowGuis.forEach(function(n){e.addRowDraggerToRow(n)});return}e.destroyBeans(e.rowDragComps,e.beans.context),e.rowDragComps=[]}),this.addListenersForCellComps()},t.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,$e.EVENT_ROW_INDEX_CHANGED,function(){e.getAllCellCtrls().forEach(function(i){return i.onRowIndexChanged()})}),this.addManagedListener(this.rowNode,$e.EVENT_CELL_CHANGED,function(i){e.getAllCellCtrls().forEach(function(r){return r.onCellChanged(i)})})},t.prototype.onRowNodeDataChanged=function(e){var i=this,r=this.isFullWidth()!==!!this.rowNode.isFullWidthCell();if(r){this.beans.rowRenderer.redrawRow(this.rowNode);return}if(this.isFullWidth()){var n=this.refreshFullWidth();n||this.beans.rowRenderer.redrawRow(this.rowNode);return}this.getAllCellCtrls().forEach(function(s){return s.refreshCell({suppressFlash:!e.update,newData:!e.update})}),this.allRowGuis.forEach(function(s){i.setRowCompRowId(s.rowComp),i.updateRowBusinessKey(),i.setRowCompRowBusinessKey(s.rowComp)}),this.onRowSelected(),this.postProcessCss()},t.prototype.postProcessCss=function(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach(function(i){var r=e===zr.Above,n=e===zr.Below;i.rowComp.addOrRemoveCssClass("ag-row-highlight-above",r),i.rowComp.addOrRemoveCssClass("ag-row-highlight-below",n)})},t.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach(function(i){return i.rowComp.addOrRemoveCssClass("ag-row-dragging",e)})},t.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),i=this.rowNode.expanded==!0;this.allRowGuis.forEach(function(r){r.rowComp.addOrRemoveCssClass("ag-row-group",e),r.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&i),r.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!i),qr(r.element,e&&i)})},t.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},t.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists(!1,!0)},t.prototype.getRowPosition=function(){return{rowPinned:Rr(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},t.prototype.onKeyboardNavigate=function(e){var i=this.allRowGuis.find(function(u){return u.element.contains(e.target)}),r=i?i.element:null,n=r===e.target;if(n){var s=this.rowNode,a=this.beans.focusService.getFocusedCell(),l={rowIndex:s.rowIndex,rowPinned:s.rowPinned,column:a&&a.column};this.beans.navigationService.navigateToNextCell(e,e.key,l,!0),e.preventDefault()}},t.prototype.onTabKeyDown=function(e){if(!(e.defaultPrevented||nr(e))){var i=this.allRowGuis.find(function(a){return a.element.contains(e.target)}),r=i?i.element:null,n=r===e.target,s=null;n||(s=this.beans.focusService.findNextFocusableElement(r,!1,e.shiftKey)),(this.isFullWidth()&&n||!s)&&this.beans.navigationService.onTabKeyDown(this,e)}},t.prototype.onFullWidthRowFocused=function(e){var i,r=this.rowNode,n=e?this.isFullWidth()&&e.rowIndex===r.rowIndex&&e.rowPinned==r.rowPinned:!1,s=this.fullWidthGui?this.fullWidthGui.element:(i=this.centerGui)===null||i===void 0?void 0:i.element;s&&(s.classList.toggle("ag-full-width-focus",n),n&&s.focus({preventScroll:!0}))},t.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},t.prototype.removeCellCtrl=function(e,i){var r={list:[],map:{}};return e.list.forEach(function(n){n!==i&&(r.list.push(n),r.map[n.getInstanceId()]=n)}),r},t.prototype.onMouseEvent=function(e,i){switch(e){case"dblclick":this.onRowDblClick(i);break;case"click":this.onRowClick(i);break;case"touchstart":case"mousedown":this.onRowMouseDown(i);break}},t.prototype.createRowEvent=function(e,i){return this.gridOptionsService.addGridCommonParams({type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,event:i})},t.prototype.createRowEventWithSource=function(e,i){var r=this.createRowEvent(e,i);return r.source=this,r},t.prototype.onRowDblClick=function(e){if(!nr(e)){var i=this.createRowEventWithSource(T.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(i)}},t.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=fo(e.target,"ag-row-drag",3),!!this.isFullWidth()){var i=this.rowNode,r=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:i.rowIndex,column:r.getAllDisplayedColumns()[0],rowPinned:i.rowPinned,forceBrowserFocus:!0})}},t.prototype.onRowClick=function(e){var i=nr(e)||this.lastMouseDownOnDragger;if(!i){var r=this.createRowEventWithSource(T.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(r);var n=e.ctrlKey||e.metaKey,s=e.shiftKey,a=this.gridOptionsService.get("groupSelectsChildren");if(!(a&&this.rowNode.group||this.isRowSelectionBlocked()||this.gridOptionsService.get("suppressRowClickSelection"))){var l=this.gridOptionsService.get("rowMultiSelectWithClick"),u=!this.gridOptionsService.get("suppressRowDeselection"),c="rowClicked";if(this.rowNode.isSelected())l?this.rowNode.setSelectedParams({newValue:!1,event:e,source:c}):n?u&&this.rowNode.setSelectedParams({newValue:!1,event:e,source:c}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!s,rangeSelect:s,event:e,source:c});else{var p=l?!1:!n;this.rowNode.setSelectedParams({newValue:!0,clearSelection:p,rangeSelect:s,event:e,source:c})}}}},t.prototype.isRowSelectionBlocked=function(){return!this.rowNode.selectable||!!this.rowNode.rowPinned||!this.gridOptionsService.isRowSelection()},t.prototype.setupDetailRowAutoHeight=function(e){var i=this;if(this.rowType===ai.FullWidthDetail&&this.gridOptionsService.get("detailRowAutoHeight")){var r=function(){var s=e.clientHeight;if(s!=null&&s>0){var a=function(){i.rowNode.setRowHeight(s),i.beans.clientSideRowModel?i.beans.clientSideRowModel.onRowHeightChanged():i.beans.serverSideRowModel&&i.beans.serverSideRowModel.onRowHeightChanged()};window.setTimeout(a,0)}},n=this.beans.resizeObserverService.observeResize(e,r);this.addDestroyFunc(n),r()}},t.prototype.createFullWidthParams=function(e,i){var r=this,n=this.gridOptionsService.addGridCommonParams({fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,eGridCell:e,eParentOfValue:e,pinned:i,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(s,a,l,u){return r.addFullWidthRowDragging(s,a,l,u)}});return n},t.prototype.addFullWidthRowDragging=function(e,i,r,n){if(r===void 0&&(r=""),!!this.isFullWidth()){var s=new Xu(function(){return r},this.rowNode,void 0,e,i,n);this.createManagedBean(s,this.beans.context)}},t.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var i="ag-row-level-"+e,r="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(function(n){n.rowComp.addOrRemoveCssClass(i,!0),n.rowComp.addOrRemoveCssClass(r,!1)})}this.rowLevel=e},t.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},t.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},t.prototype.refreshFirstAndLastRowStyles=function(){var e=this.isFirstRowOnPage(),i=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach(function(r){return r.rowComp.addOrRemoveCssClass("ag-row-first",e)})),this.lastRowOnPage!==i&&(this.lastRowOnPage=i,this.allRowGuis.forEach(function(r){return r.rowComp.addOrRemoveCssClass("ag-row-last",i)}))},t.prototype.stopEditing=function(e){var i,r;if(e===void 0&&(e=!1),!this.stoppingRowEdit){var n=this.getAllCellCtrls(),s=this.editingRow;this.stoppingRowEdit=!0;var a=!1;try{for(var l=wP(n),u=l.next();!u.done;u=l.next()){var c=u.value,p=c.stopEditing(e);s&&!e&&!a&&p&&(a=!0)}}catch(v){i={error:v}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}if(a){var f=this.createRowEvent(T.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(f)}s&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},t.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach(function(i){i.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),i.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)})},t.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach(function(r){return r.rowComp.addOrRemoveCssClass("ag-row-editing",e)});var i=e?this.createRowEvent(T.EVENT_ROW_EDITING_STARTED):this.createRowEvent(T.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(i)},t.prototype.startRowEditing=function(e,i,r){if(e===void 0&&(e=null),i===void 0&&(i=null),r===void 0&&(r=null),!this.editingRow){var n=this.getAllCellCtrls().reduce(function(s,a){var l=a===i;return l?a.startEditing(e,l,r):a.startEditing(null,l,r),s?!0:a.isEditing()},!1);n&&this.setEditingRow(!0)}},t.prototype.getAllCellCtrls=function(){if(this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0)return this.centerCellCtrls.list;var e=qd(qd(qd([],Yd(this.centerCellCtrls.list),!1),Yd(this.leftCellCtrls.list),!1),Yd(this.rightCellCtrls.list),!1);return e},t.prototype.postProcessClassesFromGridOptions=function(){var e=this,i=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);
137!i||!i.length||i.forEach(function(r){e.allRowGuis.forEach(function(n){return n.rowComp.addOrRemoveCssClass(r,!0)})})},t.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,function(i){e.allRowGuis.forEach(function(r){return r.rowComp.addOrRemoveCssClass(i,!0)})},function(i){e.allRowGuis.forEach(function(r){return r.rowComp.addOrRemoveCssClass(i,!1)})})},t.prototype.setStylesFromGridOptions=function(e,i){var r=this;e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(i,function(n){return n.rowComp.setUserStyles(r.rowStyles)})},t.prototype.getPinnedForContainer=function(e){var i=e===Mt.LEFT?"left":e===Mt.RIGHT?"right":null;return i},t.prototype.getInitialRowClasses=function(e){var i=this.getPinnedForContainer(e),r={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeInAnimation[e],rowIsEven:this.rowNode.rowIndex%2===0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:i};return this.beans.rowCssClassCalculator.getInitialRowClasses(r)},t.prototype.processStylesFromGridOptions=function(){var e=this.gridOptionsService.get("rowStyle");if(e&&typeof e=="function"){console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead");return}var i=this.gridOptionsService.getCallback("getRowStyle"),r;if(i){var n={data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex};r=i(n)}return r||e?Object.assign({},e,r):this.emptyStyle},t.prototype.onRowSelected=function(e){var i=this,r=this.beans.gridOptionsService.getDocument(),n=!!this.rowNode.isSelected();this.forEachGui(e,function(s){s.rowComp.addOrRemoveCssClass("ag-row-selected",n),ws(s.element,n);var a=s.element.contains(r.activeElement);a&&(s===i.centerGui||s===i.fullWidthGui)&&i.announceDescription()})},t.prototype.announceDescription=function(){if(!this.isRowSelectionBlocked()){var e=this.rowNode.isSelected();if(!(e&&this.beans.gridOptionsService.get("suppressRowDeselection"))){var i=this.beans.localeService.getLocaleTextFunc(),r=i(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to ".concat(e?"deselect":"select"," this row."));this.beans.ariaAnnouncementService.announceValue(r)}}},t.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},t.prototype.addHoverFunctionality=function(e){var i=this;this.active&&(this.addManagedListener(e,"mouseenter",function(){return i.rowNode.onMouseEnter()}),this.addManagedListener(e,"mouseleave",function(){return i.rowNode.onMouseLeave()}),this.addManagedListener(this.rowNode,$e.EVENT_MOUSE_ENTER,function(){!i.beans.dragService.isDragging()&&!i.gridOptionsService.get("suppressRowHoverHighlight")&&(e.classList.add("ag-row-hover"),i.rowNode.setHovered(!0))}),this.addManagedListener(this.rowNode,$e.EVENT_MOUSE_LEAVE,function(){e.classList.remove("ag-row-hover"),i.rowNode.setHovered(!1)}))},t.prototype.roundRowTopToBounds=function(e){var i=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getApproximateVScollPosition(),r=this.applyPaginationOffset(i.top,!0)-100,n=this.applyPaginationOffset(i.bottom,!0)+100;return Math.min(Math.max(r,e),n)},t.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},t.prototype.forEachGui=function(e,i){e?i(e):this.allRowGuis.forEach(i)},t.prototype.onRowHeightChanged=function(e){if(this.rowNode.rowHeight!=null){var i=this.rowNode.rowHeight,r=this.beans.environment.getDefaultRowHeight(),n=this.gridOptionsService.isGetRowHeightFunction(),s=n?this.gridOptionsService.getRowHeightForNode(this.rowNode).height:void 0,a=s?"".concat(Math.min(r,s)-2,"px"):void 0;this.forEachGui(e,function(l){l.element.style.height="".concat(i,"px"),a&&l.element.style.setProperty("--ag-line-height",a)})}},t.prototype.addEventListener=function(e,i){o.prototype.addEventListener.call(this,e,i)},t.prototype.removeEventListener=function(e,i){o.prototype.removeEventListener.call(this,e,i)},t.prototype.destroyFirstPass=function(e){if(e===void 0&&(e=!1),this.active=!1,!e&&this.gridOptionsService.isAnimateRows()&&!this.isSticky()){var i=this.rowNode.rowTop!=null;if(i){var r=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(r)}else this.allRowGuis.forEach(function(s){return s.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)})}this.rowNode.setHovered(!1);var n=this.createRowEvent(T.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(n),this.beans.eventService.dispatchEvent(n),o.prototype.destroy.call(this)},t.prototype.destroySecondPass=function(){this.allRowGuis.length=0,this.stopEditing();var e=function(i){return i.list.forEach(function(r){return r.destroy()}),{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)}
137,t.prototype.setFocusedClasses=function(e){var i=this;this.forEachGui(e,function(r){r.rowComp.addOrRemoveCssClass("ag-row-focus",i.rowFocused),r.rowComp.addOrRemoveCssClass("ag-row-no-focus",!i.rowFocused)})},t.prototype.onCellFocusChanged=function(){var e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)},t.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},t.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},t.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},t.prototype.applyPaginationOffset=function(e,i){if(i===void 0&&(i=!1),this.rowNode.isRowPinned()||this.rowNode.sticky)return e;var r=this.beans.paginationProxy.getPixelOffset(),n=i?1:-1;return e+r*n},t.prototype.setRowTop=function(e){if(!this.printLayout&&Q(e)){var i=this.applyPaginationOffset(e),r=this.rowNode.isRowPinned()||this.rowNode.sticky,n=r?i:this.beans.rowContainerHeightService.getRealPixelPosition(i),s="".concat(n,"px");this.setRowTopStyle(s)}},t.prototype.getInitialRowTop=function(e){return this.suppressRowTransform?this.getInitialRowTopShared(e):void 0},t.prototype.getInitialTransform=function(e){return this.suppressRowTransform?void 0:"translateY(".concat(this.getInitialRowTopShared(e),")")},t.prototype.getInitialRowTopShared=function(e){if(this.printLayout)return"";var i;if(this.isSticky())i=this.rowNode.stickyRowTop;else{var r=this.slideInAnimation[e]?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,n=this.applyPaginationOffset(r);i=this.rowNode.isRowPinned()?n:this.beans.rowContainerHeightService.getRealPixelPosition(n)}return i+"px"},t.prototype.setRowTopStyle=function(e){var i=this;this.allRowGuis.forEach(function(r){return i.suppressRowTransform?r.rowComp.setTop(e):r.rowComp.setTransform("translateY(".concat(e,")"))})},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getCellCtrl=function(e){var i=null;return this.getAllCellCtrls().forEach(function(r){r.getColumn()==e&&(i=r)}),i!=null||this.getAllCellCtrls().forEach(function(r){r.getColSpanningList().indexOf(e)>=0&&(i=r)}),i},t.prototype.onRowIndexChanged=function(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},t.prototype.getRowIndex=function(){return this.rowNode.getRowIndexString()},t.prototype.updateRowIndexes=function(e){var i=this.rowNode.getRowIndexString(),r=this.beans.headerNavigationService.getHeaderRowCount()+this.beans.filterManager.getHeaderRowCount(),n=this.rowNode.rowIndex%2===0,s=r+this.rowNode.rowIndex+1;this.forEachGui(e,function(a){a.rowComp.setRowIndex(i),a.rowComp.addOrRemoveCssClass("ag-row-even",n),a.rowComp.addOrRemoveCssClass("ag-row-odd",!n),Jf(a.element,s)})},t.DOM_DATA_KEY_ROW_CTRL="renderedRow",t}(ee),EP=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),mi=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},_P=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},OP=function(o){EP(t,o);function t(e){var i=o.call(this)||this;return i.element=e,i}return t.prototype.postConstruct=function(){this.addKeyboardListeners(),this.addMouseListeners(),this.mockContextMenuForIPad()},t.prototype.addKeyboardListeners=function(){var e="keydown",i=this.processKeyboardEvent.bind(this,e);this.addManagedListener(this.element,e,i)},t.prototype.addMouseListeners=function(){var e=this,i=zf("touchstart")?"touchstart":"mousedown",r=["dblclick","contextmenu","mouseover","mouseout","click",i];r.forEach(function(n){var s=e.processMouseEvent.bind(e,n);e.addManagedListener(e.element,n,s)})},t.prototype.processMouseEvent=function(e,i){if(!(!this.mouseEventService.isEventFromThisGrid(i)||nr(i))){var r=this.getRowForEvent(i),n=this.mouseEventService.getRenderedCellForEvent(i);
137e==="contextmenu"?this.handleContextMenuMouseEvent(i,void 0,r,n):(n&&n.onMouseEvent(e,i),r&&r.onMouseEvent(e,i))}},t.prototype.mockContextMenuForIPad=function(){var e=this;if(tn()){var i=new zt(this.element),r=function(n){var s=e.getRowForEvent(n.touchEvent),a=e.mouseEventService.getRenderedCellForEvent(n.touchEvent);e.handleContextMenuMouseEvent(void 0,n.touchEvent,s,a)};this.addManagedListener(i,zt.EVENT_LONG_TAP,r),this.addDestroyFunc(function(){return i.destroy()})}},t.prototype.getRowForEvent=function(e){for(var i=e.target;i;){var r=this.gridOptionsService.getDomData(i,go.DOM_DATA_KEY_ROW_CTRL);if(r)return r;i=i.parentElement}return null},t.prototype.handleContextMenuMouseEvent=function(e,i,r,n){var s=r?r.getRowNode():null,a=n?n.getColumn():null,l=null;if(a){var u=e||i;n.dispatchCellContextMenuEvent(u??null),l=this.valueService.getValue(a,s)}var c=this.ctrlsService.getGridBodyCtrl(),p=n?n.getGui():c.getGridBodyElement();this.menuService.showContextMenu({mouseEvent:e,touchEvent:i,rowNode:s,column:a,value:l,anchorToElement:p})},t.prototype.getControlsForEventTarget=function(e){return{cellCtrl:ju(this.gridOptionsService,e,vo.DOM_DATA_KEY_CELL_CTRL),rowCtrl:ju(this.gridOptionsService,e,go.DOM_DATA_KEY_ROW_CTRL)}},t.prototype.processKeyboardEvent=function(e,i){var r=this.getControlsForEventTarget(i.target),n=r.cellCtrl,s=r.rowCtrl;i.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,i):s&&s.isFullWidth()&&this.processFullWidthRowKeyboardEvent(s,e,i))},t.prototype.processCellKeyboardEvent=function(e,i,r){var n=e.getRowNode(),s=e.getColumn(),a=e.isEditing(),l=!$u(this.gridOptionsService,r,n,s,a);if(l&&i==="keydown"){var u=!a&&this.navigationService.handlePageScrollingKey(r);u||e.onKeyDown(r),this.doGridOperations(r,e.isEditing()),bc(r)&&e.processCharacter(r)}if(i==="keydown"){var c=e.createEvent(r,T.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(c)}},t.prototype.processFullWidthRowKeyboardEvent=function(e,i,r){var n=e.getRowNode(),s=this.focusService.getFocusedCell(),a=s&&s.column,l=!$u(this.gridOptionsService,r,n,a,!1);if(l){var u=r.key;if(i==="keydown")switch(u){case W.PAGE_HOME:case W.PAGE_END:case W.PAGE_UP:case W.PAGE_DOWN:this.navigationService.handlePageScrollingKey(r,!0);break;case W.UP:case W.DOWN:e.onKeyboardNavigate(r);break;case W.TAB:e.onTabKeyDown(r);break}}if(i==="keydown"){var c=e.createRowEvent(T.EVENT_CELL_KEY_DOWN,r);this.eventService.dispatchEvent(c)}},t.prototype.doGridOperations=function(e,i){if(!(!e.ctrlKey&&!e.metaKey)&&!i&&this.mouseEventService.isEventFromThisGrid(e)){var r=YC(e);if(r===W.A)return this.onCtrlAndA(e);if(r===W.C)return this.onCtrlAndC(e);if(r===W.D)return this.onCtrlAndD(e);if(r===W.V)return this.onCtrlAndV(e);if(r===W.X)return this.onCtrlAndX(e);if(r===W.Y)return this.onCtrlAndY();if(r===W.Z)return this.onCtrlAndZ(e)}},t.prototype.onCtrlAndA=function(e){var i=this,r=i.pinnedRowModel,n=i.paginationProxy,s=i.rangeService;if(s&&n.isRowsToRender()){var a=_P([r.isEmpty("top"),r.isEmpty("bottom")],2),l=a[0],u=a[1],c=l?null:"top",p=void 0,f=void 0;u?(p=null,f=this.paginationProxy.getRowCount()-1):(p="bottom",f=r.getPinnedBottomRowData().length-1);var v=this.columnModel.getAllDisplayedColumns();if(Si(v))return;s.setCellRange({rowStartIndex:0,rowStartPinned:c,rowEndIndex:f,rowEndPinned:p,columnStart:v[0],columnEnd:ot(v)})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){if(!(!this.clipboardService||this.gridOptionsService.get("enableCellTextSelection"))){var i=this.getControlsForEventTarget(e.target),r=i.cellCtrl,n=i.rowCtrl;r!=null&&r.isEditing()||n!=null&&n.isEditing()||(e.preventDefault(),this.clipboardService.copyToClipboard())}},t.prototype.onCtrlAndX=function(e){if(!(!this.clipboardService||this.gridOptionsService.get("enableCellTextSelection")||this.gridOptionsService.get("suppressCutToClipboard"))){var i=this.getControlsForEventTarget(e.target),r=i.cellCtrl,n=i.rowCtrl;r!=null&&r.isEditing()||n!=null&&n.isEditing()||(e.preventDefault(),this.clipboardService.cutToClipboard(void 0,"ui"))}},t.prototype.onCtrlAndV=function(e){var i=this.getControlsForEventTarget(e.target),r=i.cellCtrl,n=i.rowCtrl;r!=null&&r.isEditing()||n!=null&&n.isEditing()||this.clipboardService&&!this.gridOptionsService.get("suppressClipboardPaste")&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){this.clipboardService&&!this.gridOptionsService.get("suppressClipboardPaste")&&this.clipboardService.copyRangeDown(),e.preventDefault()},t.prototype.onCtrlAndZ=function(e){this.gridOptionsService.get("undoRedoCellEditing")&&(e.preventDefault(),e.shiftKey?this.undoRedoService.redo("ui"):this.undoRedoService.undo("ui"))},t.prototype.onCtrlAndY=function(){this.undoRedoService.redo("ui")}
137,mi([E("mouseEventService")],t.prototype,"mouseEventService",void 0),mi([E("valueService")],t.prototype,"valueService",void 0),mi([E("menuService")],t.prototype,"menuService",void 0),mi([E("ctrlsService")],t.prototype,"ctrlsService",void 0),mi([E("navigationService")],t.prototype,"navigationService",void 0),mi([E("focusService")],t.prototype,"focusService",void 0),mi([E("undoRedoService")],t.prototype,"undoRedoService",void 0),mi([E("columnModel")],t.prototype,"columnModel",void 0),mi([E("paginationProxy")],t.prototype,"paginationProxy",void 0),mi([E("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),mi([nt("rangeService")],t.prototype,"rangeService",void 0),mi([nt("clipboardService")],t.prototype,"clipboardService",void 0),mi([ie],t.prototype,"postConstruct",null),t}(ee),bP=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),aa=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Tg=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},Rg=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},TP=function(o){bP(t,o);function t(e){var i=o.call(this)||this;return i.centerContainerCtrl=e,i}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()}),this.addManagedListener(this.eventService,T.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this)),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],function(){e.checkViewportAndScrolls()})},t.prototype.listenForResize=function(){var e=this,i=function(){return e.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(i),this.gridBodyCtrl.registerBodyViewportResizeListener(i)},t.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},t.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportInTheDOMTree()){this.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();var e=this.centerContainerCtrl.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},t.prototype.keepPinnedColumnsNarrowerThanViewport=function(){var e=this.gridBodyCtrl.getBodyViewportElement(),i=Ro(e);if(!(i<=50)){var r=this.getPinnedColumnsOverflowingViewport(i-50),n=this.gridOptionsService.getCallback("processUnpinnedColumns");if(r.length){if(n){var s={columns:r,viewportWidth:i};r=n(s)}this.columnModel.setColumnsPinned(r,null,"viewportSizeFeature")}}},t.prototype.getPinnedColumnsOverflowingViewport=function(e){var i=this.pinnedWidthService.getPinnedRightWidth(),r=this.pinnedWidthService.getPinnedLeftWidth(),n=i+r;if(n<e)return[];for(var s=Rg([],Tg(this.columnModel.getDisplayedLeftColumns()),!1),a=Rg([],Tg(this.columnModel.getDisplayedRightColumns()),!1),l=0,u=0,c=0,p=[],f=n-c-e;(u<s.length||l<a.length)&&f>0;){if(l<a.length){var v=a[l++];f-=v.getActualWidth(),p.push(v)}if(u<s.length&&f>0){var v=s[u++];f-=v.getActualWidth(),p.push(v)}}return p},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature
137().checkScrollLeft()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.checkBodyHeight=function(){var e=this.gridBodyCtrl.getBodyViewportElement(),i=sl(e);if(this.bodyHeight!==i){this.bodyHeight=i;var r={type:T.EVENT_BODY_HEIGHT_CHANGED};this.eventService.dispatchEvent(r)}},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e)},t.prototype.isHorizontalScrollShowing=function(){return this.centerContainerCtrl.isHorizontalScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),i=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,i)},aa([E("ctrlsService")],t.prototype,"ctrlsService",void 0),aa([E("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),aa([E("columnModel")],t.prototype,"columnModel",void 0),aa([E("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),aa([ie],t.prototype,"postConstruct",null),t}(ee),RP=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ag=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},AP=function(o){RP(t,o);function t(e){var i=o.call(this)||this;return i.element=e,i}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,T.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),i=e>0;it(this.element,i),Bi(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedLeftWidth()},Ag([E("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),Ag([ie],t.prototype,"postConstruct",null),t}(ee),PP=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Pg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},DP=function(o){PP(t,o);function t(e){var i=o.call(this)||this;return i.element=e,i}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,T.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),i=e>0;it(this.element,i),Bi(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedRightWidth()},Pg([E("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),Pg([ie],t.prototype,"postConstruct",null),t}
137(ee),LP=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Dg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Tw=function(o){LP(t,o);function t(e,i){var r=o.call(this)||this;return r.eContainer=e,r.eViewport=i,r}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,T.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),i=e!=null?"".concat(e,"px"):"";this.eContainer.style.height=i,this.eViewport&&(this.eViewport.style.height=i)},Dg([E("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),Dg([ie],t.prototype,"postConstruct",null),t}(ee),FP=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Xd=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},MP=function(o){FP(t,o);function t(e){var i=o.call(this)||this;return i.eContainer=e,i}return t.prototype.postConstruct=function(){var e=this;if(!Me(this.rangeService)){this.params={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)},this.addManagedPropertyListener("enableRangeSelection",function(r){var n=r.currentValue;if(n){e.enableFeature();return}e.disableFeature()}),this.addDestroyFunc(function(){return e.disableFeature()});var i=this.gridOptionsService.get("enableRangeSelection");i&&this.enableFeature()}},t.prototype.enableFeature=function(){this.dragService.addDragSource(this.params)},t.prototype.disableFeature=function(){this.dragService.removeDragSource(this.params)},Xd([nt("rangeService")],t.prototype,"rangeService",void 0),Xd([E("dragService")],t.prototype,"dragService",void 0),Xd([ie],t.prototype,"postConstruct",null),t}(ee),IP=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Qd=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Th=function(o){IP(t,o);function t(e,i){i===void 0&&(i=!1);var r=o.call(this)||this;return r.callback=e,r.addSpacer=i,r}return t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedListener(this.eventService,T.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,T.EVENT_LEFT_PINNED_WIDTH_CHANGED,e),this.addSpacer&&(this.addManagedListener(this.eventService,T.EVENT_RIGHT_PINNED_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,T.EVENT_SCROLL_VISIBILITY_CHANGED,e),this.addManagedListener(this.eventService,T.EVENT_SCROLLBAR_WIDTH_CHANGED,e)),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnModel,i=this.gridOptionsService.isDomLayout("print"),r=e.getBodyContainerWidth(),n=e.getDisplayedColumnsLeftWidth(),s=e.getDisplayedColumnsRightWidth(),a;if(i)a=r+n+s;else if(a=r,this.addSpacer){var l=this.gridOptionsService.get("enableRtl")?n:s;l===0&&this.scrollVisibleService.isVerticalScrollShowing()&&(a+=this.gridOptionsService.getScrollbarWidth())}this.callback(a)},Qd([E("columnModel")],t.prototype,"columnModel",void 0),Qd([E("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Qd([ie],t.prototype,"postConstruct",null),t}
137(ee),xP=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Wo=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Wl=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},Ul=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},q;(function(o){o.LEFT="left",o.RIGHT="right",o.CENTER="center",o.FULL_WIDTH="fullWidth",o.TOP_LEFT="topLeft",o.TOP_RIGHT="topRight",o.TOP_CENTER="topCenter",o.TOP_FULL_WIDTH="topFullWidth",o.STICKY_TOP_LEFT="stickyTopLeft",o.STICKY_TOP_RIGHT="stickyTopRight",o.STICKY_TOP_CENTER="stickyTopCenter",o.STICKY_TOP_FULL_WIDTH="stickyTopFullWidth",o.BOTTOM_LEFT="bottomLeft",o.BOTTOM_RIGHT="bottomRight",o.BOTTOM_CENTER="bottomCenter",o.BOTTOM_FULL_WIDTH="bottomFullWidth"})(q||(q={}));var Mt;(function(o){o.LEFT="left",o.RIGHT="right",o.CENTER="center",o.FULL_WIDTH="fullWidth"})(Mt||(Mt={}));function NP(o){switch(o){case q.CENTER:case q.TOP_CENTER:case q.STICKY_TOP_CENTER:case q.BOTTOM_CENTER:return Mt.CENTER;case q.LEFT:case q.TOP_LEFT:case q.STICKY_TOP_LEFT:case q.BOTTOM_LEFT:return Mt.LEFT;case q.RIGHT:case q.TOP_RIGHT:case q.STICKY_TOP_RIGHT:case q.BOTTOM_RIGHT:return Mt.RIGHT;case q.FULL_WIDTH:case q.TOP_FULL_WIDTH:case q.STICKY_TOP_FULL_WIDTH:case q.BOTTOM_FULL_WIDTH:return Mt.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}var GP=_n([[q.CENTER,"ag-center-cols-container"],[q.LEFT,"ag-pinned-left-cols-container"],[q.RIGHT,"ag-pinned-right-cols-container"],[q.FULL_WIDTH,"ag-full-width-container"],[q.TOP_CENTER,"ag-floating-top-container"],[q.TOP_LEFT,"ag-pinned-left-floating-top"],[q.TOP_RIGHT,"ag-pinned-right-floating-top"],[q.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[q.STICKY_TOP_CENTER,"ag-sticky-top-container"],[q.STICKY_TOP_LEFT,"ag-pinned-left-sticky-top"],[q.STICKY_TOP_RIGHT,"ag-pinned-right-sticky-top"],[q.STICKY_TOP_FULL_WIDTH,"ag-sticky-top-full-width-container"],[q.BOTTOM_CENTER,"ag-floating-bottom-container"],[q.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[q.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[q.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),HP=_n([[q.CENTER,"ag-center-cols-viewport"],[q.TOP_CENTER,"ag-floating-top-viewport"],[q.STICKY_TOP_CENTER,"ag-sticky-top-viewport"],[q.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),Rw=function(o){xP(t,o);function t(e){var i=o.call(this)||this;return i.visible=!0,i.EMPTY_CTRLS=[],i.name=e,i.isFullWithContainer=i.name===q.TOP_FULL_WIDTH||i.name===q.STICKY_TOP_FULL_WIDTH||i.name===q.BOTTOM_FULL_WIDTH||i.name===q.FULL_WIDTH,i}return t.getRowContainerCssClasses=function(e){var i=GP.get(e),r=HP.get(e);return{container:i,viewport:r}},t.getPinned=function(e){switch(e){case q.BOTTOM_LEFT:case q.TOP_LEFT:case q.STICKY_TOP_LEFT:case q.LEFT:return"left";case q.BOTTOM_RIGHT:case q.TOP_RIGHT:case q.STICKY_TOP_RIGHT:case q.RIGHT:return"right";default:return null}},t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.get("enableRtl"),this.forContainers([q.CENTER],function(){return e.viewportSizeFeature=e.createManagedBean(new TP(e))})},t.prototype.registerWithCtrlsService=function(){switch(this.name){case q.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case q.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case q.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case q.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case q.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case q.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case q.STICKY_TOP_CENTER:this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);break;case q.STICKY_TOP_LEFT:this.ctrlsService.registerStickyTopLeftRowContainerCon(this);break;case q.STICKY_TOP_RIGHT:this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);break;case q.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case q.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case q.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this);break}},t.prototype.forContainers=function(e,i){e.indexOf(this.name)>=0&&i()},t.prototype.getContainerElement=function(){return this.eContainer},t.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},t.prototype.setComp=function(e,i,r){var n=this;this.comp=e,this.eContainer=i,this.eViewport=r,this.createManagedBean(new OP(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var s=[q.TOP_CENTER,q.TOP_LEFT,q.TOP_RIGHT],a=[q.STICKY_TOP_CENTER,q.STICKY_TOP_LEFT,q.STICKY_TOP_RIGHT],l=[q.BOTTOM_CENTER,q.BOTTOM_LEFT,q.BOTTOM_RIGHT],u=[q.CENTER,q.LEFT,q.RIGHT],c=Ul(Ul(Ul(Ul([],Wl(s),!1),Wl(l),!1),Wl(u),!1),Wl(a),!1),p=[q.CENTER,q.LEFT,q.RIGHT,q.FULL_WIDTH],f=[q.CENTER,q.TOP_CENTER,q.STICKY_TOP_CENTER,q.BOTTOM_CENTER],v=[q.LEFT,q.BOTTOM_LEFT,q.TOP_LEFT,q.STICKY_TOP_LEFT],y=[q.RIGHT,q.BOTTOM_RIGHT,q.TOP_RIGHT,q.STICKY_TOP_RIGHT];this.forContainers(v,function(){n.pinnedWidthFeature=n.createManagedBean(new AP(n.eContainer)),n.addManagedListener(n.eventService,T.EVENT_LEFT_PINNED_WIDTH_CHANGED,function(){return n.onPinnedWidthChanged()})}),this.forContainers(y,function(){n.pinnedWidthFeature=n.createManagedBean(new DP(n.eContainer)),n.addManagedListener(n.eventService,T.EVENT_RIGHT_PINNED_WIDTH_CHANGED,function(){return n.onPinnedWidthChanged()})}),this.forContainers(p,function(){return n.createManagedBean(new Tw(n.eContainer,n.name===q.CENTER?r:void 0))}),this.forContainers(c,function(){return n.createManagedBean(new MP(n.eContainer))}),this.forContainers(f,function(){return n.createManagedBean(new Th(function(w){return n.comp.setContainerWidth("".concat(w,"px"))}))}),this.addListeners(),this.registerWithCtrlsService()},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,function(){return e.onDisplayedColumnsChanged()}),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,function(){return e.onDisplayedColumnsWidthChanged()}),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_ROWS_CHANGED,function(i){return e.onDisplayedRowsChanged(i.afterScroll)}),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},t.prototype.listenOnDomOrder=function(){var e=this,i=[q.STICKY_TOP_CENTER,q.STICKY_TOP_LEFT,q.STICKY_TOP_RIGHT,q.STICKY_TOP_FULL_WIDTH],r=i.indexOf(this.name)>=0;if(r){this.comp.setDomOrder(!0);return}var n=function(){var s=e.gridOptionsService.get("ensureDomOrder"),a=e.gridOptionsService.isDomLayout("print");e.comp.setDomOrder(s||a)};this.addManagedPropertyListener("domLayout",n),n()},t.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([q.TOP_CENTER,q.STICKY_TOP_CENTER,q.BOTTOM_CENTER],function(){var i=function(){return e.eViewport.scrollLeft=0};e.addManagedListener(e.eViewport,"scroll",i)})},t.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([q.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([q.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.addPreventScrollWhileDragging=function(){var e=this,i=function(r){e.dragService.isDragging()&&r.cancelable&&r.preventDefault()};this.eContainer.addEventListener("touchmove",i,{passive:!1}),this.addDestroyFunc(function(){return e.eContainer.removeEventListener("touchmove",i)})},t.prototype.onHorizontalViewportChanged=function(e){e===void 0&&(e=!1);var i=this.getCenterWidth(),r=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(i,r,e)},t.prototype.getCenterWidth=function(){return Ro(this.eViewport)},t.prototype.getCenterViewportScrollLeft=function(){return Ua(this.eViewport,this.enableRtl)},t.prototype.registerViewportResizeListener=function(e){var i=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc(function(){return i()})},t.prototype.isViewportInTheDOMTree=function(){return ph(this.eViewport)},t.prototype.getViewportScrollLeft=function(){return Ua(this.eViewport,this.enableRtl)},t.prototype.isHorizontalScrollShowing=function(){var e=this.gridOptionsService.get("alwaysShowHorizontalScroll");return e||BC(this.eViewport)},t.prototype.getViewportElement=function(){return this.eViewport},t.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX(".concat(e,"px)")},t.prototype.getHScrollPosition=function(){var e={left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth};return e},t.prototype.setCenterViewportScrollLeft=function(e){za(this.eViewport,e,this.enableRtl)},t.prototype.isContainerVisible=function(){var e=t.getPinned(this.name);return!e||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0},t.prototype.onPinnedWidthChanged=function(){var e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())},t.prototype.onDisplayedRowsChanged=function(e){var i=this;if(e===void 0&&(e=!1),!this.visible){this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});return}var r=this.gridOptionsService.isDomLayout("print"),n=this.gridOptionsService.get("embedFullWidthRows"),s=n||r,a=this.getRowCtrls().filter(function(l){var u=l.isFullWidth(),c=i.isFullWithContainer?!s&&u:s||!u;return c});this.comp.setRowCtrls({rowCtrls:a,useFlushSync:e})},t.prototype.getRowCtrls=function(){switch(this.name){case q.TOP_CENTER:case q.TOP_LEFT:case q.TOP_RIGHT:case q.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case q.STICKY_TOP_CENTER:case q.STICKY_TOP_LEFT:case q.STICKY_TOP_RIGHT:case q.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case q.BOTTOM_CENTER:case q.BOTTOM_LEFT:case q.BOTTOM_RIGHT:case q.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getCentreRowCtrls()}},Wo([E("dragService")],t.prototype,"dragService",void 0),Wo([E("ctrlsService")],t.prototype,"ctrlsService",void 0),Wo([E("columnModel")],t.prototype,"columnModel",void 0),Wo([E("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Wo([E("rowRenderer")],t.prototype,"rowRenderer",void 0),Wo([ie],t.prototype,"postConstruct",null),t}
137(ee),VP=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Vr=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},kP=`<div class="ag-root ag-unselectable" role="treegrid"> 138 <ag-header-root ref="gridHeader"></ag-header-root> 139 <div class="ag-floating-top" ref="eTop" role="presentation"> 140 <ag-row-container ref="topLeftContainer" name="`.concat(q.TOP_LEFT,`"></ag-row-container> 141 <ag-row-container ref="topCenterContainer" name="`).concat(q.TOP_CENTER,`"></ag-row-container> 142 <ag-row-container ref="topRightContainer" name="`).concat(q.TOP_RIGHT,`"></ag-row-container> 143 <ag-row-container ref="topFullWidthContainer" name="`).concat(q.TOP_FULL_WIDTH,`"></ag-row-container> 144 </div> 145 <div class="ag-body" ref="eBody" role="presentation"> 146 <div class="ag-body-viewport" ref="eBodyViewport" role="presentation"> 147 <ag-row-container ref="leftContainer" name="`).concat(q.LEFT,`"></ag-row-container> 148 <ag-row-container ref="centerContainer" name="`).concat(q.CENTER,`"></ag-row-container> 149 <ag-row-container ref="rightContainer" name="`).concat(q.RIGHT,`"></ag-row-container> 150 <ag-row-container ref="fullWidthContainer" name="`).concat(q.FULL_WIDTH,`"></ag-row-container> 151 </div> 152 <ag-fake-vertical-scroll></ag-fake-vertical-scroll> 153 </div> 154 <div class="ag-sticky-top" ref="eStickyTop" role="presentation"> 155 <ag-row-container ref="stickyTopLeftContainer" name="`).concat(q.STICKY_TOP_LEFT,`"></ag-row-container> 156 <ag-row-container ref="stickyTopCenterContainer" name="`).concat(q.STICKY_TOP_CENTER,`"></ag-row-container> 157 <ag-row-container ref="stickyTopRightContainer" name="`).concat(q.STICKY_TOP_RIGHT,`"></ag-row-container> 158 <ag-row-container ref="stickyTopFullWidthContainer" name="`).concat(q.STICKY_TOP_FULL_WIDTH,`"></ag-row-container> 159 </div> 160 <div class="ag-floating-bottom" ref="eBottom" role="presentation"> 161 <ag-row-container ref="bottomLeftContainer" name="`).concat(q.BOTTOM_LEFT,`"></ag-row-container> 162 <ag-row-container ref="bottomCenterContainer" name="`).concat(q.BOTTOM_CENTER,`"></ag-row-container> 163 <ag-row-container ref="bottomRightContainer" name="`).concat(q.BOTTOM_RIGHT,`"></ag-row-container> 164 <ag-row-container ref="bottomFullWidthContainer" name="`).concat(q.BOTTOM_FULL_WIDTH,`"></ag-row-container> 165 </div> 166 <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll> 167 <ag-overlay-wrapper></ag-overlay-wrapper> 168 </div>`),BP=function(o){VP(t,o);function t(){return o.call(this,kP)||this}return t.prototype.init=function(){var e=this,i=function(n,s){var a="".concat(n,"px");s.style.minHeight=a,s.style.height=a},r={setRowAnimationCssOnBodyViewport:function(n,s){return e.setRowAnimationCssOnBodyViewport(n,s)},setColumnCount:function(n){return AC(e.getGui(),n)},setRowCount:function(n){return RC(e.getGui(),n)},setTopHeight:function(n){return i(n,e.eTop)},setBottomHeight:function(n){return i(n,e.eBottom)},setTopDisplay:function(n){return e.eTop.style.display=n},setBottomDisplay:function(n){return e.eBottom.style.display=n},setStickyTopHeight:function(n){return e.eStickyTop.style.height=n},setStickyTopTop:function(n){return e.eStickyTop.style.top=n},setStickyTopWidth:function(n){return e.eStickyTop.style.width=n},setColumnMovingCss:function(n,s){return e.addOrRemoveCssClass(n,s)},updateLayoutClasses:function(n,s){var a=[e.eBodyViewport.classList,e.eBody.classList];a.forEach(function(l){l.toggle(Pt.AUTO_HEIGHT,s.autoHeight),l.toggle(Pt.NORMAL,s.normal),l.toggle(Pt.PRINT,s.print)}),e.addOrRemoveCssClass(Pt.AUTO_HEIGHT,s.autoHeight),e.addOrRemoveCssClass(Pt.NORMAL,s.normal),e.addOrRemoveCssClass(Pt.PRINT,s.print)},setAlwaysVerticalScrollClass:function(n,s){return e.eBodyViewport.classList.toggle(Ow,s)},registerBodyViewportResizeListener:function(n){var s=e.resizeObserverService.observeResize(e.eBodyViewport,n);e.addDestroyFunc(function(){return s()})},setPinnedTopBottomOverflowY:function(n){return e.eTop.style.overflowY=e.eBottom.style.overflowY=n},setCellSelectableCss:function(n,s){[e.eTop,e.eBodyViewport,e.eBottom].forEach(function(a){return a.classList.toggle(n,s)})},setBodyViewportWidth:function(n){return e.eBodyViewport.style.width=n}};
168this.ctrl=this.createManagedBean(new NA),this.ctrl.setComp(r,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService&&this.gridOptionsService.get("enableRangeSelection")||this.gridOptionsService.get("rowSelection")==="multiple")&&TC(this.getGui(),!0)},t.prototype.setRowAnimationCssOnBodyViewport=function(e,i){var r=this.eBodyViewport.classList;r.toggle(Os.ANIMATION_ON,i),r.toggle(Os.ANIMATION_OFF,!i)},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},Vr([E("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Vr([nt("rangeService")],t.prototype,"rangeService",void 0),Vr([se("eBodyViewport")],t.prototype,"eBodyViewport",void 0),Vr([se("eStickyTop")],t.prototype,"eStickyTop",void 0),Vr([se("eTop")],t.prototype,"eTop",void 0),Vr([se("eBottom")],t.prototype,"eBottom",void 0),Vr([se("gridHeader")],t.prototype,"headerRootComp",void 0),Vr([se("eBody")],t.prototype,"eBody",void 0),Vr([ie],t.prototype,"init",null),t}(We),jP=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),zl=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},WP=function(o){jP(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},t.prototype.onDisplayedColumnsChanged=function(){this.update()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},t.prototype.update=function(){var e=this;this.columnAnimationService.isActive()?this.columnAnimationService.executeLaterVMTurn(function(){e.columnAnimationService.executeLaterVMTurn(function(){return e.updateImpl()})}):this.updateImpl()},t.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(!(!e||this.columnAnimationService.isActive())){var i={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(i)}},t.prototype.setScrollsVisible=function(e){var i=this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing;if(i){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var r={type:T.EVENT_SCROLL_VISIBILITY_CHANGED};this.eventService.dispatchEvent(r)}},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},zl([E("ctrlsService")],t.prototype,"ctrlsService",void 0),zl([E("columnAnimationService")],t.prototype,"columnAnimationService",void 0),zl([ie],t.prototype,"postConstruct",null),t=zl([fe("scrollVisibleService")],t),t}(ee),UP=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Lg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},zP=function(o){UP(t,o);function t(){var i=o!==null&&o.apply(this,arguments)||this;return i.gridInstanceId=e.gridInstanceSequence.next(),i}e=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(i){i[e.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(i){return ju(this.gridOptionsService,i.target,vo.DOM_DATA_KEY_CELL_CTRL)},t.prototype.isEventFromThisGrid=function(i){var r=this.isElementInThisGrid(i.target);return r},t.prototype.isElementInThisGrid=function(i){for(var r=i;r;){var n=r[e.GRID_DOM_KEY];if(Q(n)){var s=n===this.gridInstanceId;return s}r=r.parentElement}return!1},t.prototype.getCellPositionForEvent=function(i){var r=this.getRenderedCellForEvent(i);return r?r.getCellPosition():null},t.prototype.getNormalisedPosition=function(i){var r=this.gridOptionsService.isDomLayout("normal"),n=i,s,a;if(n.clientX!=null||n.clientY!=null?(s=n.clientX,a=n.clientY):(s=n.x,a=n.y),r){var l=this.ctrlsService.getGridBodyCtrl(),u=l.getScrollFeature
168().getVScrollPosition(),c=l.getScrollFeature().getHScrollPosition();s+=c.left,a+=u.top}return{x:s,y:a}};var e;return t.gridInstanceSequence=new Es,t.GRID_DOM_KEY="__ag_grid_instance",Lg([E("ctrlsService")],t.prototype,"ctrlsService",void 0),t=e=Lg([fe("mouseEventService")],t),t}(ee),$P=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ic=function(){return ic=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},ic.apply(this,arguments)},ii=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},KP=function(o){$P(t,o);function t(){var e=o.call(this)||this;return e.onPageDown=Qp(e.onPageDown,100),e.onPageUp=Qp(e.onPageUp,100),e}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){e.gridBodyCon=i.gridBodyCtrl})},t.prototype.handlePageScrollingKey=function(e,i){i===void 0&&(i=!1);var r=e.key,n=e.altKey,s=e.ctrlKey||e.metaKey,a=!!this.rangeService&&e.shiftKey,l=this.mouseEventService.getCellPositionForEvent(e),u=!1;switch(r){case W.PAGE_HOME:case W.PAGE_END:!s&&!n&&(this.onHomeOrEndKey(r),u=!0);break;case W.LEFT:case W.RIGHT:case W.UP:case W.DOWN:if(!l)return!1;s&&!n&&!a&&(this.onCtrlUpDownLeftRight(r,l),u=!0);break;case W.PAGE_DOWN:case W.PAGE_UP:!s&&!n&&(u=this.handlePageUpDown(r,l,i));break}return u&&e.preventDefault(),u},t.prototype.handlePageUpDown=function(e,i,r){return r&&(i=this.focusService.getFocusedCell()),i?(e===W.PAGE_UP?this.onPageUp(i):this.onPageDown(i),!0):!1},t.prototype.navigateTo=function(e){var i=e.scrollIndex,r=e.scrollType,n=e.scrollColumn,s=e.focusIndex,a=e.focusColumn;if(Q(n)&&!n.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(n),Q(i)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(i,r),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(s),this.focusService.setFocusedCell({rowIndex:s,column:a,rowPinned:null,forceBrowserFocus:!0}),this.rangeService){var l={rowIndex:s,rowPinned:null,column:a};this.rangeService.setRangeToCell(l)}},t.prototype.onPageDown=function(e){var i=this.ctrlsService.getGridBodyCtrl(),r=i.getScrollFeature().getVScrollPosition(),n=this.getViewportHeight(),s=this.paginationProxy.getPixelOffset(),a=r.top+n,l=this.paginationProxy.getRowIndexAtPixel(a+s);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,l):this.navigateToNextPage(e,l)},t.prototype.onPageUp=function(e){var i=this.ctrlsService.getGridBodyCtrl(),r=i.getScrollFeature().getVScrollPosition(),n=this.paginationProxy.getPixelOffset(),s=r.top,a=this.paginationProxy.getRowIndexAtPixel(s+n);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,a,!0):this.navigateToNextPage(e,a,!0)},t.prototype.navigateToNextPage=function(e,i,r){r===void 0&&(r=!1);var n=this.getViewportHeight(),s=this.paginationProxy.getPageFirstRow(),a=this.paginationProxy.getPageLastRow(),l=this.paginationProxy.getPixelOffset(),u=this.paginationProxy.getRow(e.rowIndex),c=r?(u==null?void 0:u.rowHeight)-n-l:n-l,p=(u==null?void 0:u.rowTop)+c,f=this.paginationProxy.getRowIndexAtPixel(p+l);if(f===e.rowIndex){var v=r?-1:1;i=f=e.rowIndex+v}var y;r?(y="bottom",f<s&&(f=s),i<s&&(i=s)):(y="top",f>a&&(f=a),i>a&&(i=a)),this.isRowTallerThanView(f)&&(i=f,y="top"),this.navigateTo({scrollIndex:i,scrollType:y,scrollColumn:null,focusIndex:f,focusColumn:e.column})},t.prototype.navigateToNextPageWithAutoHeight=function(e,i,r){var n=this;r===void 0&&(r=!1),this.navigateTo({scrollIndex:i,scrollType:r?"bottom":"top",scrollC
168olumn:null,focusIndex:i,focusColumn:e.column}),setTimeout(function(){var s=n.getNextFocusIndexForAutoHeight(e,r);n.navigateTo({scrollIndex:i,scrollType:r?"bottom":"top",scrollColumn:null,focusIndex:s,focusColumn:e.column,isAsync:!0})},50)},t.prototype.getNextFocusIndexForAutoHeight=function(e,i){var r;i===void 0&&(i=!1);for(var n=i?-1:1,s=this.getViewportHeight(),a=this.paginationProxy.getPageLastRow(),l=0,u=e.rowIndex;u>=0&&u<=a;){var c=this.paginationProxy.getRow(u);if(c){var p=(r=c.rowHeight)!==null&&r!==void 0?r:0;if(l+p>s)break;l+=p}u+=n}return Math.max(0,Math.min(u,a))},t.prototype.getViewportHeight=function(){var e=this.ctrlsService.getGridBodyCtrl(),i=e.getScrollFeature().getVScrollPosition(),r=this.gridOptionsService.getScrollbarWidth(),n=i.bottom-i.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(n-=r),n},t.prototype.isRowTallerThanView=function(e){var i=this.paginationProxy.getRow(e);if(!i)return!1;var r=i.rowHeight;return typeof r!="number"?!1:r>this.getViewportHeight()},t.prototype.onCtrlUpDownLeftRight=function(e,i){var r=this.cellNavigationService.getNextCellToFocus(e,i,!0),n=r.rowIndex,s=r.column;this.navigateTo({scrollIndex:n,scrollType:null,scrollColumn:s,focusIndex:n,focusColumn:s})},t.prototype.onHomeOrEndKey=function(e){var i=e===W.PAGE_HOME,r=this.columnModel.getAllDisplayedColumns(),n=i?r[0]:ot(r),s=i?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:s,scrollType:null,scrollColumn:n,focusIndex:s,focusColumn:n})},t.prototype.onTabKeyDown=function(e,i){var r=i.shiftKey,n=this.tabToNextCellCommon(e,r,i);if(n){i.preventDefault();return}if(r){var s=e.getRowPosition(),a=s.rowIndex,l=s.rowPinned,u=l?a===0:a===this.paginationProxy.getPageFirstRow();u&&(this.gridOptionsService.get("headerHeight")===0||this.gridOptionsService.get("suppressHeaderFocus")?this.focusService.focusNextGridCoreContainer(!0,!0):(i.preventDefault(),this.focusService.focusPreviousFromFirstCell(i)))}else e instanceof vo&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(r)&&i.preventDefault()},t.prototype.tabToNextCell=function(e,i){var r=this.focusService.getFocusedCell();if(!r)return!1;var n=this.getCellByPosition(r);return!n&&(n=this.rowRenderer.getRowByPosition(r),!n||!n.isFullWidth())?!1:this.tabToNextCellCommon(n,e,i)},t.prototype.tabToNextCellCommon=function(e,i,r){var n=e.isEditing();if(!n&&e instanceof vo){var s=e,a=s.getRowCtrl();a&&(n=a.isEditing())}var l;return n?this.gridOptionsService.get("editType")==="fullRow"?l=this.moveToNextEditingRow(e,i,r):l=this.moveToNextEditingCell(e,i,r):l=this.moveToNextCellNotEditing(e,i),l||!!this.focusService.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,i,r){r===void 0&&(r=null);var n=e.getCellPosition();e.getGui().focus(),e.stopEditing();var s=this.findNextCellToFocusOn(n,i,!0);return s==null?!1:(s.startEditing(null,!0,r),s.focusCell(!1),!0)},t.prototype.moveToNextEditingRow=function(e,i,r){r===void 0&&(r=null);var n=e.getCellPosition(),s=this.findNextCellToFocusOn(n,i,!0);if(s==null)return!1;var a=s.getCellPosition(),l=this.isCellEditable(n),u=this.isCellEditable(a),c=a&&n.rowIndex===a.rowIndex&&n.rowPinned===a.rowPinned;if(l&&e.setFocusOutOnEditor(),!c){var p=e.getRowCtrl();p.stopEditing();var f=s.getRowCtrl();f.startRowEditing(void 0,void 0,r)}return u?(s.setFocusInOnEditor(),s.focusCell()):s.focusCell(!0),!0},t.prototype.moveToNextCellNotEditing=function(e,i){var r=this.columnModel.getAllDisplayedColumns(),n;e instanceof go?n=ic(ic({},e.getRowPosition()),{column:i?r[0]:ot(r)}):n=e.getCellPosition();var s=this.findNextCellToFocusOn(n,i,!1);if(s instanceof vo)s.focusCell(!0);else if(s)return this.tryToFocusFullWidthRow(s.getRowPosition(),i);return Q(s)},t.prototype.findNextCellToFocusOn=function(e,i,r){for(var n=e;;){e!==n&&(e=n),i||(n=this.getLastCellOfColSpan(n)),n=this.cellNavigationService.getNextTabbedCell(n,i);var s=this.gridOptionsService.getCallback("tabToNextCell");if(Q(s)){var a={backwards:i,editing:r,previousCellPosition:e,nextCellPosition:n||null},l=s(a);Q(l)?(l.floating&&(Le("tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?"),l.rowPinned=l.floating),n={rowIndex:l.rowIndex,column:l.column,rowPinned:l.rowPinned}):n=null}if(!n)return null;if(n.rowIndex<0){var u=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:u+n.rowIndex,column:n.column},fromCell:!0}),null}var c=this.gridOptionsService.get("editType")==="fullRow";if(r&&!c){var p=this.isCellEditable(n);if(!p)continue}this.ensureCellVisible(n);var f=this.getCellByPosition(n);if(!f){var v=this.rowRenderer.getRowByPosition(n);if(!v||!v.isFullWidth()||r)continue;return v}if(!f.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(n),f}},t.prototype.isCellEditable=function(e){var i=this.lookupRowNodeForCell(e);return i?e.column.isCellEditable(i):!1},t.prototype.getCellByPosition=function(e){var i=this.rowRenderer.getRowByPosition(e);return i?i.getCellCtrl(e.column):null},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned==="top"?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned==="bottom"?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},t.prototype.navigateToNextCell=function(e,i,r,n){for(var s=r,a=!1;s&&(s===r||!this.isValidNavigateCell(s));)this.gridOptionsService.get("enableRtl")?i===W.LEFT&&(s=this.getLastCellOfColSpan(s)):i===W.RIGHT&&(s=this.getLastCellOfColSpan(s)),s=this.cellNavigationService.getNextCellToFocus(i,s),a=Me(s);if(a&&e&&e.key===W.UP&&(s={rowIndex:-1,rowPinned:null,column:r.column}),n){var l=this.gridOptionsService.getCallback("navigateToNextCell");if(Q(l)){var u={key:i,previousCellPosition:r,nextCellPosition:s||null,event:e},c=l(u);Q(c)?(c.floating&&(Le("tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?"),c.rowPinned=c.floating),s={rowPinned:c.rowPinned,rowIndex:c.rowIndex,column:c.column}):s=null}}if(s){if(s.rowIndex<0){var p=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:p+s.rowIndex,column:r.column},event:e||void 0,fromCell:!0});return}var f=this.getNormalisedPosition(s);f?this.focusPosition(f):this.tryToFocusFullWidthRow(s)}},t.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var i=this.getCellByPosition(e);return i?(e=i.getCellPosition(),this.ensureCellVisible(e),e):null},t.prototype.tryToFocusFullWidthRow=function(e,i){i===void 0&&(i=!1);var r=this.columnModel.getAllDisplayedColumns(),n=this.rowRenderer.getRowByPosition(e);if(!n||!n.isFullWidth())return!1;var s=this.focusService.getFocusedCell(),a={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(i?ot(r):r[0])};this.focusPosition(a);var l=s!=null?this.rowPositionUtils.before(a,s):!1,u={type:T.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:a.rowIndex,rowPinned:a.rowPinned,column:a.column,isFullWidthCell:!0,floating:a.rowPinned,fromBelow:l};return this.eventService.dispatchEvent(u),!0}
168,t.prototype.focusPosition=function(e){this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(e)},t.prototype.isValidNavigateCell=function(e){var i=this.rowPositionUtils.getRowNode(e);return!!i},t.prototype.getLastCellOfColSpan=function(e){var i=this.getCellByPosition(e);if(!i)return e;var r=i.getColSpanningList();return r.length===1?e:{rowIndex:e.rowIndex,column:ot(r),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){var i=this.gridOptionsService.isGroupRowsSticky(),r=this.rowModel.getRow(e.rowIndex),n=i&&(r==null?void 0:r.sticky);!n&&Me(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)},ii([E("mouseEventService")],t.prototype,"mouseEventService",void 0),ii([E("paginationProxy")],t.prototype,"paginationProxy",void 0),ii([E("focusService")],t.prototype,"focusService",void 0),ii([nt("rangeService")],t.prototype,"rangeService",void 0),ii([E("columnModel")],t.prototype,"columnModel",void 0),ii([E("rowModel")],t.prototype,"rowModel",void 0),ii([E("ctrlsService")],t.prototype,"ctrlsService",void 0),ii([E("rowRenderer")],t.prototype,"rowRenderer",void 0),ii([E("headerNavigationService")],t.prototype,"headerNavigationService",void 0),ii([E("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),ii([E("cellNavigationService")],t.prototype,"cellNavigationService",void 0),ii([E("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),ii([ie],t.prototype,"postConstruct",null),t=ii([fe("navigationService")],t),t}(ee),YP=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),qP=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},XP=function(o){YP(t,o);function t(e){var i=o.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return i.params=e,i}return t.prototype.postConstruct=function(){this.gridOptionsService.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},t.prototype.addKeyDownListener=function(){var e=this,i=this.getGui(),r=this.params,n=function(s){$u(e.gridOptionsService,s,r.node,r.column,!0)||r.onKeyDown(s)};this.addManagedListener(i,"keydown",n)},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",qP([ie],t.prototype,"postConstruct",null),t}(Do),QP=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),JP=function(o){QP(t,o);function t(e,i,r,n,s){var a=o.call(this)||this;a.rendererVersion=0,a.editorVersion=0,a.beans=e,a.column=i.getColumn(),a.rowNode=i.getRowNode(),a.rowCtrl=i.getRowCtrl(),a.eRow=n,a.cellCtrl=i;var l=document.createElement("div");l.setAttribute("comp-id","".concat(a.getCompId())),a.setTemplateFromElement(l);var u=a.getGui();a.forceWrapper=i.isForceWrapper(),a.refreshWrapper(!1);var c=function(v,y){y!=null&&y!=""?u.setAttribute(v,y):u.removeAttribute(v)};Lt(u,i.getCellAriaRole()),c("col-id",i.getColumnIdSanitised());var p=i.getTabIndex();p!==void 0&&c("tabindex",p.toString());var f={addOrRemoveCssClass:function(v,y){return a.addOrRemoveCssClass(v,y)},setUserStyles:function(v){return vh(u,v)},getFocusableElement:function(){return a.getFocusableElement()},setIncludeSelection:function(v){return a.includeSelection=v},setIncludeRowDrag:function(v){return a.includeRowDrag=v},setIncludeDndSource:function(v){return a.includeDndSource=v},setRenderDetails:function(v,y,w){return a.setRenderDetails(v,y,w)},setEditDetails:function(v,y,w){return a.setEditDetails(v,y,w)},getCellEditor:function(){return a.cellEditor||null},getCellRenderer:function(){return a.cellRenderer||null},getParentOfValue:function(){return a.getParentOfValue()}};return i.setComp(f,a.getGui(),a.eCellWrapper,r,s),a}return t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,i,r){var n=this.cellEditor&&!this.cellEditorPopupWrapper;
168if(!n){this.firstRender=this.firstRender==null;var s=this.refreshWrapper(!1);if(this.refreshEditStyles(!1),e){var a=r||s,l=a?!1:this.refreshCellRenderer(e);l||(this.destroyRenderer(),this.createCellRendererInstance(e))}else this.destroyRenderer(),this.insertValueWithoutCellRenderer(i)}},t.prototype.setEditDetails=function(e,i,r){e?this.createCellEditorInstance(e,i,r):this.destroyEditor()},t.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},t.prototype.refreshWrapper=function(e){var i=this.includeRowDrag||this.includeDndSource||this.includeSelection,r=i||this.forceWrapper,n=r&&this.eCellWrapper==null;if(n){var s=document.createElement("div");s.setAttribute("role","presentation"),s.setAttribute("class","ag-cell-wrapper"),this.eCellWrapper=s,this.getGui().appendChild(this.eCellWrapper)}var a=!r&&this.eCellWrapper!=null;a&&(br(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!r);var l=!e&&r,u=l&&this.eCellValue==null;if(u){var c=document.createElement("span");c.setAttribute("role","presentation"),c.setAttribute("class","ag-cell-value"),this.eCellValue=c,this.eCellWrapper.appendChild(this.eCellValue)}var p=!l&&this.eCellValue!=null;p&&(br(this.eCellValue),this.eCellValue=void 0);var f=n||a||u||p;return f&&this.removeControls(),e||i&&this.addControls(),f},t.prototype.addControls=function(){this.includeRowDrag&&this.rowDraggingComp==null&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&this.dndSourceComp==null&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&this.checkboxSelectionComp==null&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))},t.prototype.createCellEditorInstance=function(e,i,r){var n=this,s=this.editorVersion,a=e.newAgStackInstance();if(a){var l=e.params;a.then(function(c){return n.afterCellEditorCreated(s,c,l,i,r)});var u=Me(this.cellEditor);u&&l.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var i=this.getParentOfValue();Nt(i);var r=e!=null?Dt(e,!0):null;r!=null&&(i.textContent=r)},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){var e=this.beans.context;this.cellRenderer=e.destroyBean(this.cellRenderer),br(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},t.prototype.destroyEditor=function(){var e=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),br(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},t.prototype.refreshCellRenderer=function(e){if(this.cellRenderer==null||this.cellRenderer.refresh==null||this.cellRendererClass!==e.componentClass)return!1;var i=this.cellRenderer.refresh(e.params);return i===!0||i===void 0},t.prototype.createCellRendererInstance=function(e){var i=this,r=this.beans.gridOptionsService.get("suppressAnimationFrame"),n=!r,s=this.rendererVersion,a=e.componentClass,l=function(){var u=i.rendererVersion!==s||!i.isAlive();if(!u){var c=e.newAgStackInstance(),p=i.afterCellRendererCreated.bind(i,s,a);c&&c.then(p)}};n&&this.firstRender?this.beans.animationFrameService.createTask(l,this.rowNode.rowIndex,"createTasksP2"):l()},t.prototype.getCtrl=function(){return this.cellCtrl},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.afterCellRendererCreated=function(e,i,r){var n=!this.isAlive()||e!==this.rendererVersion;if(n){this.beans.context.destroyBean(r);return}if(this.cellRenderer=r,this.cellRendererClass=i,this.cellRendererGui=this.cellRenderer.getGui(),this.cellRendererGui!=null){var s=this.getParentOfValue();Nt(s),s.appendChild(this.cellRendererGui)}},t.prototype.afterCellEditorCreated=function(e,i,r,n,s){var a=e!==this.editorVersion;if(a){this.beans.context.destroyBean(i);return}var l=i.isCancelBeforeStart&&i.isCancelBeforeStart();
168if(l){this.beans.context.destroyBean(i),this.cellCtrl.stopEditing(!0);return}if(!i.getGui){console.warn("AG Grid: cellEditor for column ".concat(this.column.getId()," is missing getGui() method")),this.beans.context.destroyBean(i);return}this.cellEditor=i,this.cellEditorGui=i.getGui();var u=n||i.isPopup!==void 0&&i.isPopup();u?this.addPopupCellEditor(r,s):this.addInCellEditor(),this.refreshEditStyles(!0,u),i.afterGuiAttached&&i.afterGuiAttached()},t.prototype.refreshEditStyles=function(e,i){var r;this.addOrRemoveCssClass("ag-cell-inline-editing",e&&!i),this.addOrRemoveCssClass("ag-cell-popup-editing",e&&!!i),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!e||!!i),(r=this.rowCtrl)===null||r===void 0||r.setInlineEditingCss(e)},t.prototype.addInCellEditor=function(){var e=this.getGui(),i=this.beans.gridOptionsService.getDocument();if(e.contains(i.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui){var r=this.getParentOfValue();r.appendChild(this.cellEditorGui)}},t.prototype.addPopupCellEditor=function(e,i){var r=this;this.beans.gridOptionsService.get("editType")==="fullRow"&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var n=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new XP(e));var s=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&s.appendChild(this.cellEditorGui);var a=this.beans.popupService,l=this.beans.gridOptionsService.get("stopEditingWhenCellsLoseFocus"),u=i??(n.getPopupPosition?n.getPopupPosition():"over"),c=this.beans.gridOptionsService.get("enableRtl"),p={ePopup:s,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:u,alignSide:c?"right":"left",keepWithinBounds:!0},f=a.positionPopupByComponent.bind(a,p),v=this.beans.localeService.getLocaleTextFunc(),y=a.addPopup({modal:l,eChild:s,closeOnEsc:!0,closedCallback:function(){r.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:f,ariaLabel:v("ariaLabelCellEditor","Cell Editor")});y&&(this.hideEditorPopup=y.hideFunc)},t.prototype.detach=function(){this.eRow.removeChild(this.getGui())},t.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),o.prototype.destroy.call(this)},t.prototype.clearParentOfValue=function(){var e=this.getGui(),i=this.beans.gridOptionsService.getDocument();e.contains(i.activeElement)&&oh()&&e.focus({preventScroll:!0}),Nt(this.getParentOfValue())},t}(We),ZP=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),eD=function(o){ZP(t,o);function t(e,i,r){var n=o.call(this)||this;n.cellComps={},n.beans=i,n.rowCtrl=e;var s=document.createElement("div");s.setAttribute("comp-id","".concat(n.getCompId())),s.setAttribute("style",n.getInitialStyle(r)),n.setTemplateFromElement(s);var a=n.getGui(),l=a.style;n.domOrder=n.rowCtrl.getDomOrder(),Lt(a,"row");var u=n.rowCtrl.getTabIndex();u!=null&&a.setAttribute("tabindex",u.toString());var c={setDomOrder:function(p){return n.domOrder=p},setCellCtrls:function(p){return n.setCellCtrls(p)},showFullWidth:function(p){return n.showFullWidth(p)},getFullWidthCellRenderer:function(){return n.getFullWidthCellRenderer()},addOrRemoveCssClass:function(p,f){return n.addOrRemoveCssClass(p,f)},setUserStyles:function(p){return vh(a,p)},setTop:function(p){return l.top=p},setTransform:function(p){return l.transform=p},setRowIndex:function(p){return a.setAttribute("row-index",p)},setRowId:function(p){return a.setAttribute("row-id",p)},setRowBusinessKey:function(p){return a.setAttribute("row-business-key",p)},refreshFullWidth:function(p){return n.refreshFullWidth(p)}};return e.setComp(c,n.getGui(),r),n.addDestroyFunc(function(){e.unsetComp(r)}),n}return t.prototype.getInitialStyle=function(e){var i=this.rowCtrl.getInitialTransform(e);return i?"transform: ".concat(i):"top: ".concat(this.rowCtrl.getInitialRowTop(e))},t.prototype.showFullWidth=function(e){var i=this,r=function(s){if(i.isAlive()){var a=s.getGui();
168i.getGui().appendChild(a),i.rowCtrl.setupDetailRowAutoHeight(a),i.setFullWidthRowComp(s)}else i.beans.context.destroyBean(s)},n=e.newAgStackInstance();n&&n.then(r)},t.prototype.setCellCtrls=function(e){var i=this,r=Object.assign({},this.cellComps);e.forEach(function(s){var a=s.getInstanceId(),l=i.cellComps[a];l==null?i.newCellComp(s):r[a]=null});var n=Rn(r).filter(function(s){return s!=null});this.destroyCells(n),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var i=this;if(this.domOrder){var r=[];e.forEach(function(n){var s=i.cellComps[n.getInstanceId()];s&&r.push(s.getGui())}),hh(this.getGui(),r)}},t.prototype.newCellComp=function(e){var i=new JP(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=i,this.getGui().appendChild(i.getGui())},t.prototype.destroy=function(){o.prototype.destroy.call(this),this.destroyAllCells()},t.prototype.destroyAllCells=function(){var e=Rn(this.cellComps).filter(function(i){return i!=null});this.destroyCells(e)},t.prototype.setFullWidthRowComp=function(e){var i=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc(function(){i.fullWidthCellRenderer=i.beans.context.destroyBean(i.fullWidthCellRenderer)})},t.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},t.prototype.destroyCells=function(e){var i=this;e.forEach(function(r){if(r){var n=r.getCtrl().getInstanceId();i.cellComps[n]===r&&(r.detach(),r.destroy(),i.cellComps[n]=null)}})},t.prototype.refreshFullWidth=function(e){var i=this.fullWidthCellRenderer;if(!i||!i.refresh)return!1;var r=e();return i.refresh(r)},t}(We),tD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),pf=function(){return pf=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},pf.apply(this,arguments)},la=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n};function iD(){var o=We.elementGettingCreated.getAttribute("name"),t=Rw.getRowContainerCssClasses(o),e,i=o===q.CENTER||o===q.TOP_CENTER||o===q.STICKY_TOP_CENTER||o===q.BOTTOM_CENTER;return i?e='<div class="'.concat(t.viewport,`" ref="eViewport" role="presentation"> 169 <div class="`).concat(t.container,`" ref="eContainer"></div> 170 </div>`):e='<div class="'.concat(t.container,'" ref="eContainer"></div>'),e}var rD=function(o){tD(t,o);function t(){var e=o.call(this,iD())||this;return e.rowComps={},e.name=We.elementGettingCreated.getAttribute("name"),e.type=NP(e.name),e}return t.prototype.postConstruct=function(){var e=this,i={setViewportHeight:function(n){return e.eViewport.style.height=n},setRowCtrls:function(n){var s=n.rowCtrls;return e.setRowCtrls(s)},setDomOrder:function(n){e.domOrder=n},setContainerWidth:function(n){return e.eContainer.style.width=n}},r=this.createManagedBean(new Rw(this.name));r.setComp(i,this.eContainer,this.eViewport)},t.prototype.preDestroy=function(){this.setRowCtrls([])},t.prototype.setRowCtrls=function(e){var i=this,r=pf({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;var n=function(s){var a=s.getInstanceId(),l=r[a];if(l)i.rowComps[a]=l,delete r[a],i.ensureDomOrder(l.getGui());else{if(!s.getRowNode().displayed)return;var u=new eD(s,i.beans,i.type);i.rowComps[a]=u,i.appendRow(u.getGui())}};e.forEach(n),Rn(r).forEach(function(s){i.eContainer.removeChild(s.getGui()),s.destroy()}),Lt(this.eContainer,"rowgroup")},t.prototype.appendRow=function(e){this.domOrder?kC(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},t.prototype.ensureDomOrder=function(e){this.domOrder&&(fh(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},la([E("beans")],t.prototype,"beans",void 0),la([se("eViewport")],t.prototype,"eViewport",void 0),la([se("eContainer")],t.prototype,"eContainer",void 0),la([ie],t.prototype,"postConstruct",null),la([Xt],t.prototype,"preDestroy",null),t}(We),Fg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},nD=function(){function o(t){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=t}return o.prototype.onDragEnter=function(t){var e=this;if(this.clearColumnsList(),!this.gridOptionsService.get("functionsReadOnly")){var i=t.dragItem.columns;
170i&&i.forEach(function(r){r.isPrimary()&&(r.isAnyFunctionActive()||(r.isAllowValue()?e.columnsToAggregate.push(r):r.isAllowRowGroup()?e.columnsToGroup.push(r):r.isAllowPivot()&&e.columnsToPivot.push(r)))})}},o.prototype.getIconName=function(){var t=this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length;return t>0?this.pinned?It.ICON_PINNED:It.ICON_MOVE:null},o.prototype.onDragLeave=function(t){this.clearColumnsList()},o.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},o.prototype.onDragging=function(t){},o.prototype.onDragStop=function(t){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},Fg([E("columnModel")],o.prototype,"columnModel",void 0),Fg([E("gridOptionsService")],o.prototype,"gridOptionsService",void 0),o}(),oD=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},yo=function(){function o(){}return o.attemptMoveColumns=function(t){var e=t.isFromHeader,i=t.hDirection,r=t.xPosition,n=t.fromEnter,s=t.fakeEvent,a=t.pinned,l=t.gridOptionsService,u=t.columnModel,c=i===bi.Left,p=i===bi.Right,f=t.allMovingColumns;if(e){var v=[];f.forEach(function(I){for(var k,j=null,X=I.getParent();X!=null&&X.getDisplayedLeafColumns().length===1;)j=X,X=X.getParent();if(j!=null){var re=!!(!((k=j.getColGroupDef())===null||k===void 0)&&k.marryChildren),ge=re?j.getProvidedColumnGroup().getLeafColumns():j.getLeafColumns();ge.forEach(function(ae){v.includes(ae)||v.push(ae)})}else v.includes(I)||v.push(I)}),f=v}var y=f.slice();u.sortColumnsLikeGridColumns(y);var w=this.calculateValidMoves({movingCols:y,draggingRight:p,xPosition:r,pinned:a,gridOptionsService:l,columnModel:u}),b=this.calculateOldIndex(y,u);if(w.length!==0){var O=w[0],A=b!==null&&!n;if(e&&(A=b!==null),!(A&&!s&&(c&&O>=b||p&&O<=b))){for(var P=u.getAllDisplayedColumns(),L=[],x=null,H=0;H<w.length;H++){var g=w[H],N=u.getProposedColumnOrder(y,g);if(u.doesOrderPassRules(N)){var V=N.filter(function(I){return P.includes(I)});if(x===null)x=V;else if(!jr(V,x))break;var z=this.groupFragCount(N);L.push({move:g,fragCount:z})}}if(L.length!==0)return L.sort(function(I,k){return I.fragCount-k.fragCount}),this.moveColumns(f,L[0].move,"uiColumnMoved",!1,u)}}},o.moveColumns=function(t,e,i,r,n){return n.moveColumns(t,e,i,r),r?null:{columns:t,toIndex:e}},o.calculateOldIndex=function(t,e){var i=e.getAllGridColumns(),r=sC(t.map(function(u){return i.indexOf(u)})),n=r[0],s=ot(r),a=s-n,l=a!==r.length-1;return l?null:n},o.groupFragCount=function(t){function e(s){for(var a=[],l=s.getOriginalParent();l!=null;)a.push(l),l=l.getOriginalParent();return a}for(var i=0,r=function(s){var a,l=e(t[s]),u=e(t[s+1]);a=oD(l.length>u.length?[l,u]:[u,l],2),l=a[0],u=a[1],l.forEach(function(c){u.indexOf(c)===-1&&i++})},n=0;n<t.length-1;n++)r(n);return i},o.calculateValidMoves=function(t){var e=t.movingCols,i=t.draggingRight,r=t.xPosition,n=t.pinned,s=t.gridOptionsService,a=t.columnModel,l=s.get("suppressMovableColumns")||e.some(function(I){return I.getColDef().suppressMovable});if(l)return[];var u=a.getDisplayedColumns(n),c=a.getAllGridColumns(),p=u.filter(function(I){return rr(e,I)}),f=u.filter(function(I){return!rr(e,I)}),v=c.filter(function(I){return!rr(e,I)}),y=0,w=r;if(i){var b=0;p.forEach(function(I){return b+=I.getActualWidth()}),w-=b}if(w>0){for(var O=0;O<f.length;O++){var A=f[O];if(w-=A.getActualWidth(),w<0)break;y++}i&&y++}var P;if(y>0){var L=f[y-1];P=v.indexOf(L)+1}else P=v.indexOf(f[0]),P===-1&&(P=0);var x=[P],H=function(I,k){return I-k};if(i){for(var g=P+1,N=c.length-1;g<=N;)x.push(g),g++;x.sort(H)}else{for(var g=P,N=c.length-1,V=c[g];g<=N&&u.indexOf(V)<0;)g++,x.push(g),V=c[g];g=P-1;for(var z=0;g>=z;)x.push(g),g--;x.sort(H).reverse()}return x}
170,o.normaliseX=function(t,e,i,r,n){var s=n.getHeaderRowContainerCtrl(e).getViewport();if(i&&(t-=s.getBoundingClientRect().left),r.get("enableRtl")){var a=s.clientWidth;t=a-t}return e==null&&(t+=n.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),t},o}(),ua=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},sD=function(){function o(t,e){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=t,this.eContainer=e,this.centerContainer=!Q(t)}return o.prototype.init=function(){var t=this;this.ctrlsService.whenReady(function(){t.gridBodyCon=t.ctrlsService.getGridBodyCtrl()})},o.prototype.getIconName=function(){return this.pinned?It.ICON_PINNED:It.ICON_MOVE},o.prototype.onDragEnter=function(t){var e=t.dragItem.columns,i=t.dragSource.type===hi.ToolPanel;if(i)this.setColumnsVisible(e,!0,"uiColumnDragged");else{var r=t.dragItem.visibleState,n=(e||[]).filter(function(s){return r[s.getId()]});this.setColumnsVisible(n,!0,"uiColumnDragged")}this.setColumnsPinned(e,this.pinned,"uiColumnDragged"),this.onDragging(t,!0,!0)},o.prototype.onDragLeave=function(){this.ensureIntervalCleared(),this.lastMovedInfo=null},o.prototype.setColumnsVisible=function(t,e,i){if(t){var r=t.filter(function(n){return!n.getColDef().lockVisible});this.columnModel.setColumnsVisible(r,e,i)}},o.prototype.setColumnsPinned=function(t,e,i){if(t){var r=t.filter(function(n){return!n.getColDef().lockPinned});this.columnModel.setColumnsPinned(r,e,i)}},o.prototype.onDragStop=function(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null},o.prototype.checkCenterForScrolling=function(t){if(this.centerContainer){var e=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),i=e+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsService.get("enableRtl")?(this.needToMoveRight=t<e+50,this.needToMoveLeft=t>i-50):(this.needToMoveLeft=t<e+50,this.needToMoveRight=t>i-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},o.prototype.onDragging=function(t,e,i,r){var n=this,s;if(t===void 0&&(t=this.lastDraggingEvent),e===void 0&&(e=!1),i===void 0&&(i=!1),r===void 0&&(r=!1),r){if(this.lastMovedInfo){var a=this.lastMovedInfo,l=a.columns,u=a.toIndex;yo.moveColumns(l,u,"uiColumnMoved",!0,this.columnModel)}return}if(this.lastDraggingEvent=t,!Me(t.hDirection)){var c=yo.normaliseX(t.x,this.pinned,!1,this.gridOptionsService,this.ctrlsService);e||this.checkCenterForScrolling(c);var p=this.normaliseDirection(t.hDirection),f=t.dragSource.type,v=((s=t.dragSource.getDragItem().columns)===null||s===void 0?void 0:s.filter(function(w){return w.getColDef().lockPinned?w.getPinned()==n.pinned:!0}))||[],y=yo.attemptMoveColumns({allMovingColumns:v,isFromHeader:f===hi.HeaderCell,hDirection:p,xPosition:c,pinned:this.pinned,fromEnter:e,fakeEvent:i,gridOptionsService:this.gridOptionsService,columnModel:this.columnModel});y&&(this.lastMovedInfo=y)}},o.prototype.normaliseDirection=function(t){if(this.gridOptionsService.get("enableRtl"))switch(t){case bi.Left:return bi.Right;case bi.Right:return bi.Left;default:console.error("AG Grid: Unknown direction ".concat(t))}else return t},o.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(It.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(It.ICON_RIGHT,!0))},o.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(It.ICON_MOVE))},o.prototype.moveInterval=function(){var t;this.intervalCount++,t=10+this.intervalCount*5,t>100&&(t=100);
170var e=null,i=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?e=i.scrollHorizontally(-t):this.needToMoveRight&&(e=i.scrollHorizontally(t)),e!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var r=this.lastDraggingEvent.dragItem.columns,n=r.filter(function(a){return!a.getColDef().lockPinned});if(n.length>0&&(this.dragAndDropService.setGhostIcon(It.ICON_PINNED),this.failedMoveAttempts>7)){var s=this.needToMoveLeft?"left":"right";this.setColumnsPinned(n,s,"uiColumnDragged"),this.dragAndDropService.nudge()}}},ua([E("columnModel")],o.prototype,"columnModel",void 0),ua([E("dragAndDropService")],o.prototype,"dragAndDropService",void 0),ua([E("gridOptionsService")],o.prototype,"gridOptionsService",void 0),ua([E("ctrlsService")],o.prototype,"ctrlsService",void 0),ua([ie],o.prototype,"init",null),o}(),aD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ca=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},lD=function(o){aD(t,o);function t(e,i){var r=o.call(this)||this;return r.pinned=e,r.eContainer=i,r}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){switch(e.pinned){case"left":e.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.leftRowContainerCtrl.getContainerElement()],[i.bottomLeftRowContainerCtrl.getContainerElement()],[i.topLeftRowContainerCtrl.getContainerElement()]];break;case"right":e.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.rightRowContainerCtrl.getContainerElement()],[i.bottomRightRowContainerCtrl.getContainerElement()],[i.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.centerRowContainerCtrl.getViewportElement()],[i.bottomCenterRowContainerCtrl.getViewportElement()],[i.topCenterRowContainerCtrl.getViewportElement()]];break}})},t.prototype.isInterestedIn=function(e){return e===hi.HeaderCell||e===hi.ToolPanel&&this.gridOptionsService.get("allowDragFromColumnsToolPanel")},t.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},t.prototype.getContainer=function(){return this.eContainer},t.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new sD(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new nD(this.pinned)),this.dragAndDropService.addDropTarget(this)},t.prototype.getIconName=function(){return this.currentDropListener.getIconName()},t.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===hi.ToolPanel},t.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},t.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},t.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},t.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},ca([E("dragAndDropService")],t.prototype,"dragAndDropService",void 0),ca([E("columnModel")],t.prototype,"columnModel",void 0),ca([E("ctrlsService")],t.prototype,"ctrlsService",void 0),ca([ie],t.prototype,"postConstruct",null),ca([ie],t.prototype,"init",null),t}(ee),uD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&
170(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),$l=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},cD=function(o){uD(t,o);function t(e){var i=o.call(this,t.TEMPLATE,e)||this;return i.headerCompVersion=0,i.column=e.getColumnGroupChild(),i.pinned=e.getPinned(),i}return t.prototype.postConstruct=function(){var e=this,i=this.getGui(),r=function(a,l){l!=null&&l!=""?i.setAttribute(a,l):i.removeAttribute(a)};r("col-id",this.column.getColId());var n={setWidth:function(a){return i.style.width=a},addOrRemoveCssClass:function(a,l){return e.addOrRemoveCssClass(a,l)},setAriaSort:function(a){return a?DC(i,a):LC(i)},setUserCompDetails:function(a){return e.setUserCompDetails(a)},getUserCompInstance:function(){return e.headerComp}};this.ctrl.setComp(n,this.getGui(),this.eResize,this.eHeaderCompWrapper);var s=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",s)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},t.prototype.setUserCompDetails=function(e){var i=this;this.headerCompVersion++;var r=this.headerCompVersion;e.newAgStackInstance().then(function(n){return i.afterCompCreated(r,n)})},t.prototype.afterCompCreated=function(e,i){if(e!=this.headerCompVersion||!this.isAlive()){this.destroyBean(i);return}this.destroyHeaderComp(),this.headerComp=i,this.headerCompGui=i.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())},t.TEMPLATE=`<div class="ag-header-cell" role="columnheader"> 171 <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div> 172 <div ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div> 173 </div>`,$l([se("eResize")],t.prototype,"eResize",void 0),$l([se("eHeaderCompWrapper")],t.prototype,"eHeaderCompWrapper",void 0),$l([ie],t.prototype,"postConstruct",null),$l([Xt],t.prototype,"destroyHeaderComp",null),t}(Oh),dD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Mg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},pD=function(o){dD(t,o);function t(e){return o.call(this,t.TEMPLATE,e)||this}return t.prototype.postConstruct=function(){var e=this,i=this.getGui(),r=function(s,a){return a!=null?i.setAttribute(s,a):i.removeAttribute(s)};i.setAttribute("col-id",this.ctrl.getColId());var n={addOrRemoveCssClass:function(s,a){return e.addOrRemoveCssClass(s,a)},setResizableDisplayed:function(s){return it(e.eResize,s)},setWidth:function(s){return i.style.width=s},setAriaExpanded:function(s){return r("aria-expanded",s)},setUserCompDetails:function(s){return e.setUserCompDetails(s)},getUserCompInstance:function(){return e.headerGroupComp}};this.ctrl.setComp(n,i,this.eResize)},t.prototype.setUserCompDetails=function(e){var i=this;e.newAgStackInstance().then(function(r){return i.afterHeaderCompCreated(r)})},t.prototype.afterHeaderCompCreated=function(e){var i=this,r=function(){return i.destroyBean(e)};if(!this.isAlive()){r();return}var n=this.getGui(),s=e.getGui();n.appendChild(s),this.addDestroyFunc(r),this.headerGroupComp=e,this.ctrl.
173setDragSource(n)},t.TEMPLATE=`<div class="ag-header-group-cell" role="columnheader"> 174 <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div> 175 </div>`,Mg([se("eResize")],t.prototype,"eResize",void 0),Mg([ie],t.prototype,"postConstruct",null),t}(Oh),fD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ig=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Bt;(function(o){o.COLUMN_GROUP="group",o.COLUMN="column",o.FLOATING_FILTER="filter"})(Bt||(Bt={}));var hD=function(o){fD(t,o);function t(e){var i=o.call(this)||this;return i.headerComps={},i.ctrl=e,i.setTemplate('<div class="'.concat(i.ctrl.getHeaderRowClass(),'" role="row"></div>')),i}return t.prototype.init=function(){var e=this;Jf(this.getGui(),this.ctrl.getAriaRowIndex());var i={setHeight:function(r){return e.getGui().style.height=r},setTop:function(r){return e.getGui().style.top=r},setHeaderCtrls:function(r,n){return e.setHeaderCtrls(r,n)},setWidth:function(r){return e.getGui().style.width=r}};this.ctrl.setComp(i)},t.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([],!1)},t.prototype.setHeaderCtrls=function(e,i){var r=this;if(this.isAlive()){var n=this.headerComps;if(this.headerComps={},e.forEach(function(l){var u=l.getInstanceId(),c=n[u];delete n[u],c==null&&(c=r.createHeaderComp(l),r.getGui().appendChild(c.getGui())),r.headerComps[u]=c}),Ut(n,function(l,u){r.getGui().removeChild(u.getGui()),r.destroyBean(u)}),i){var s=Rn(this.headerComps);s.sort(function(l,u){var c=l.getCtrl().getColumnGroupChild().getLeft(),p=u.getCtrl().getColumnGroupChild().getLeft();return c-p});var a=s.map(function(l){return l.getGui()});hh(this.getGui(),a)}}},t.prototype.createHeaderComp=function(e){var i;switch(this.ctrl.getType()){case Bt.COLUMN_GROUP:i=new pD(e);break;case Bt.FLOATING_FILTER:i=new OA(e);break;default:i=new cD(e);break}return this.createBean(i),i.setParentComponent(this),i},Ig([ie],t.prototype,"init",null),Ig([Xt],t.prototype,"destroyHeaderCtrls",null),t}(We),vD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),eo=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},gD=0,Fc=function(o){vD(t,o);function t(e,i,r){var n=o.call(this)||this;return n.resizeToggleTimeout=0,n.resizeMultiplier=1,n.resizeFeature=null,n.lastFocusEvent=null,n.dragSource=null,n.columnGroupChild=e,n.parentRowCtrl=r,n.beans=i,n.instanceId=e.getUniqueId()+"-"+gD++,n}return t.prototype.postConstruct=function(){var e=this;this.addManagedPropertyListeners(["suppressHeaderFocus"],function(){return e.refreshTabIndex()})},t.prototype.shouldStopEventPropagation=function(e){var i=this.focusService.getFocusedHeader(),r=i.headerRowIndex,n=i.column;return KC(this.gridOptionsService,e,r,n)},t.prototype.getWrapperHasFocus=function(){var e=this.gridOptionsService.getDocument(),i=e.activeElement;return i===this.eGui},t.prototype.setGui=function(e){this.eGui=e,this.addDomData(),this.addManagedListener(this.beans.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onDisplayedColumnsChanged(),this.refreshTabIndex()},t.prototype.onDisplayedColumnsChanged=function(){!this.comp||!this.column||(this.refreshFirstAndLastStyles(),this.refreshAriaColIndex())},t.prototype.refreshFirstAndLastStyles=function(){var e=this,i=e.comp,r=e.column,n=e.beans;Lc.refreshFirstAndLastStyles(i,r,n.columnModel)},t.prototype.refreshAriaColIndex=function(){var e=this,i=e.beans,r=e.column,n=i.
175columnModel.getAriaColumnIndex(r);Zf(this.eGui,n)},t.prototype.addResizeAndMoveKeyboardListeners=function(){this.resizeFeature&&(this.addManagedListener(this.eGui,"keydown",this.onGuiKeyDown.bind(this)),this.addManagedListener(this.eGui,"keyup",this.onGuiKeyUp.bind(this)))},t.prototype.refreshTabIndex=function(){var e=this.gridOptionsService.get("suppressHeaderFocus");e?this.eGui.removeAttribute("tabindex"):this.eGui.setAttribute("tabindex","-1")},t.prototype.onGuiKeyDown=function(e){var i,r=this.gridOptionsService.getDocument(),n=r.activeElement,s=e.key===W.LEFT||e.key===W.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),!(n!==this.eGui||!e.shiftKey&&!e.altKey)&&((this.isResizing||s)&&(e.preventDefault(),e.stopImmediatePropagation()),!!s)){var a=e.key===W.LEFT!==this.gridOptionsService.get("enableRtl"),l=bi[a?"Left":"Right"];if(e.altKey){this.isResizing=!0,this.resizeMultiplier+=1;var u=this.getViewportAdjustedResizeDiff(e);this.resizeHeader(u,e.shiftKey),(i=this.resizeFeature)===null||i===void 0||i.toggleColumnResizing(!0)}else this.moveHeader(l)}},t.prototype.getViewportAdjustedResizeDiff=function(e){var i=this.getResizeDiff(e),r=this.column.getPinned();if(r){var n=this.pinnedWidthService.getPinnedLeftWidth(),s=this.pinnedWidthService.getPinnedRightWidth(),a=Ro(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50;if(n+s+i>a)if(a>n+s)i=a-n-s;else return 0}return i},t.prototype.getResizeDiff=function(e){var i=e.key===W.LEFT!==this.gridOptionsService.get("enableRtl"),r=this.column.getPinned(),n=this.gridOptionsService.get("enableRtl");return r&&n!==(r==="right")&&(i=!i),(i?-1:1)*this.resizeMultiplier},t.prototype.onGuiKeyUp=function(){var e=this;this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=setTimeout(function(){var i;(i=e.resizeFeature)===null||i===void 0||i.toggleColumnResizing(!1)},150))},t.prototype.handleKeyDown=function(e){var i=this.getWrapperHasFocus();switch(e.key){case W.PAGE_DOWN:case W.PAGE_UP:case W.PAGE_HOME:case W.PAGE_END:i&&e.preventDefault()}},t.prototype.addDomData=function(){var e=this,i=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsService.setDomData(this.eGui,i,this),this.addDestroyFunc(function(){return e.gridOptionsService.setDomData(e.eGui,i,null)})},t.prototype.getGui=function(){return this.eGui},t.prototype.focus=function(e){return this.eGui?(this.lastFocusEvent=e||null,this.eGui.focus(),!0):!1},t.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},t.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},t.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getColumnGroupChild=function(){return this.columnGroupChild},t.prototype.removeDragSource=function(){this.dragSource&&(this.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null)},t.prototype.handleContextMenuMouseEvent=function(e,i,r){var n=e??i;this.gridOptionsService.get("preventDefaultOnContextMenu")&&n.preventDefault();var s=r instanceof pt?r:void 0;this.menuService.isHeaderContextMenuEnabled(s)&&this.menuService.showHeaderContextMenu(s,e,i),this.dispatchColumnMouseEvent(T.EVENT_COLUMN_HEADER_CONTEXT_MENU,r)},t.prototype.dispatchColumnMouseEvent=function(e,i){var r={type:e,column:i};this.eventService.dispatchEvent(r)},t.prototype.destroy=function(){o.prototype.destroy.call(this),this.removeDragSource(),this.comp=null,this.column=null,this.resizeFeature=null,this.lastFocusEvent=null,this.columnGroupChild=null,this.parentRowCtrl=null,this.eGui=null},t.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",eo([E("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),eo([E("focusService")],t.prototype,"focusService",void 0),eo([E("userComponentFactory")],t.prototype,"userComponentFactory",void 0),eo([E("ctrlsService")],t.prototype,"ctrlsService",void 0),eo([E("dragAndDropService")],t.prototype,"dragAndDropService",void 0),eo([E("menuService")],t.prototype,"menuService",void 0),eo([ie],t.prototype,"postConstruct",null),t}
175(ee),yD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),mD=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Rh=function(o){yD(t,o);function t(e,i,r,n){var s=o.call(this)||this;return s.columnOrGroup=e,s.eCell=i,s.ariaEl=s.eCell.querySelector("[role=columnheader]")||s.eCell,s.colsSpanning=n,s.beans=r,s}return t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsService.get("enableRtl")&&this.colsSpanning?ot(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,pt.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsService.get("suppressColumnMoveAnimation"),i=Q(this.columnOrGroup.getOldLeft()),r=this.beans.columnAnimationService.isActive()&&i&&!e;r?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,i=this.getColumnOrGroup(),r=i.getLeft(),n=i.getOldLeft(),s=this.modifyLeftForPrintLayout(i,n),a=this.modifyLeftForPrintLayout(i,r);this.setLeft(s),this.actualLeft=a,this.beans.columnAnimationService.executeNextVMTurn(function(){e.actualLeft===a&&e.setLeft(a)})},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),i=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,i),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,i){var r=this.beans.gridOptionsService.isDomLayout("print");if(!r||e.getPinned()==="left")return i;var n=this.beans.columnModel.getDisplayedColumnsLeftWidth();if(e.getPinned()==="right"){var s=this.beans.columnModel.getBodyContainerWidth();return n+s+i}return n+i},t.prototype.setLeft=function(e){if(Q(e)&&(this.eCell.style.left="".concat(e,"px")),this.columnOrGroup instanceof pt)this.columnOrGroup;else{var i=this.columnOrGroup,r=i.getLeafColumns();if(!r.length)return;r.length>1&&PC(this.ariaEl,r.length),r[0]}},mD([ie],t.prototype,"postConstruct",null),t}(ee),CD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),xg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Ah=function(o){CD(t,o);function t(e,i){var r=o.call(this)||this;return r.columns=e,r.element=i,r}return t.prototype.postConstruct=function(){this.gridOptionsService.get("columnHoverHighlight")&&this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},xg([E("columnHoverService")],t.prototype,"columnHoverService",void 0),xg([ie],t.prototype,"postConstruct",null),t}
175(ee),wD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),SD=function(o){wD(t,o);function t(e,i,r){var n=o.call(this,e,i,r)||this;return n.iconCreated=!1,n.column=e,n}return t.prototype.setComp=function(e,i,r,n){this.comp=e,this.eButtonShowMainFilter=r,this.eFloatingFilterBody=n,this.setGui(i),this.setupActive(),this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this)),this.setupFilterChangedListener(),this.addManagedListener(this.column,pt.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this))},t.prototype.resizeHeader=function(){},t.prototype.moveHeader=function(){},t.prototype.setupActive=function(){var e=this.column.getColDef(),i=!!e.filter,r=!!e.floatingFilter;this.active=i&&r},t.prototype.setupUi=function(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!(!this.active||this.iconCreated)){var e=bt("filter",this.gridOptionsService,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}},t.prototype.setupFocus=function(){this.createManagedBean(new Ao(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.setupAria=function(){var e=this.localeService.getLocaleTextFunc();Hn(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))},t.prototype.onTabKeyDown=function(e){var i=this.gridOptionsService.getDocument(),r=i.activeElement,n=r===this.eGui;if(!n){var s=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(s){this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),s.focus();return}var a=this.findNextColumnWithFloatingFilter(e.shiftKey);a&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:a},event:e})&&e.preventDefault()}},t.prototype.findNextColumnWithFloatingFilter=function(e){var i=this.beans.columnModel,r=this.column;do if(r=e?i.getDisplayedColBefore(r):i.getDisplayedColAfter(r),!r)break;while(!r.getColDef().filter||!r.getColDef().floatingFilter);return r},t.prototype.handleKeyDown=function(e){o.prototype.handleKeyDown.call(this,e);var i=this.getWrapperHasFocus();switch(e.key){case W.UP:case W.DOWN:i||e.preventDefault();case W.LEFT:case W.RIGHT:if(i)return;e.stopPropagation();case W.ENTER:i&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case W.ESCAPE:i||this.eGui.focus()}},t.prototype.onFocusIn=function(e){var i=this.eGui.contains(e.relatedTarget);if(!i){var r=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),n=!!e.relatedTarget&&fo(e.relatedTarget,"ag-floating-filter");if(r&&n&&e.target===this.eGui){var s=this.lastFocusEvent,a=!!(s&&s.key===W.TAB);if(s&&a){var l=s.shiftKey;this.focusService.focusInto(this.eGui,l)}}var u=this.getRowIndex();this.beans.focusService.setFocusedHeader(u,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new Ah([this.column],this.eGui));var i=function(){if(e.gridOptionsService.get("columnHoverHighlight")){var r=e.beans.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",r)}};this.addManagedListener(this.eventService,T.EVENT_COLUMN_HOVER_CHANGED,i),i()},t.prototype.setupLeft=function(){var e=new Rh(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupFilterButton=function(){this.suppressFilterButton=!this.menuService.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!this.menuService.isLegacyMenuEnabled()},t.prototype.setupUserComp=function(){var e=this;if(this.active){var i=this.beans.filterManager.getFloatingFilterCompDetail
175s(this.column,function(){return e.showParentFilter()});i&&this.setCompDetails(i)}},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setCompDetails(e)},t.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuService.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})},t.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var i=this.beans.filterManager,r=function(n){var s=e.comp.getFloatingFilterComp();s&&s.then(function(a){if(a){var l=i.getCurrentFloatingFilterParentModel(e.column);a.onParentModelChanged(l,n)}})};this.destroySyncListener=this.addManagedListener(this.column,pt.EVENT_FILTER_CHANGED,r),i.isFilterActive(this.column)&&r(null)}},t.prototype.setupWidth=function(){var e=this,i=function(){var r="".concat(e.column.getActualWidth(),"px");e.comp.setWidth(r)};this.addManagedListener(this.column,pt.EVENT_WIDTH_CHANGED,i),i()},t.prototype.setupFilterChangedListener=function(){this.active&&(this.destroyFilterChangedListener=this.addManagedListener(this.column,pt.EVENT_FILTER_CHANGED,this.updateFilterButton.bind(this)),this.updateFilterButton())},t.prototype.updateFilterButton=function(){if(!this.suppressFilterButton&&this.comp){var e=this.beans.filterManager.isFilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}},t.prototype.onColDefChanged=function(){var e=this,i,r,n=this.active;this.setupActive();var s=!n&&this.active;n&&!this.active&&((i=this.destroySyncListener)===null||i===void 0||i.call(this),(r=this.destroyFilterChangedListener)===null||r===void 0||r.call(this));var a=this.active?this.beans.filterManager.getFloatingFilterCompDetails(this.column,function(){return e.showParentFilter()}):null,l=this.comp.getFloatingFilterComp();!l||!a?this.updateCompDetails(a,s):l.then(function(u){var c;!u||e.beans.filterManager.areFilterCompsDifferent((c=e.userCompDetails)!==null&&c!==void 0?c:null,a)?e.updateCompDetails(a,s):e.updateFloatingFilterParams(a)})},t.prototype.updateCompDetails=function(e,i){this.isAlive()&&(this.setCompDetails(e),this.setupFilterButton(),this.setupUi(),i&&(this.setupSyncWithFilter(),this.setupFilterChangedListener()))},t.prototype.updateFloatingFilterParams=function(e){var i;if(e){var r=e.params;(i=this.comp.getFloatingFilterComp())===null||i===void 0||i.then(function(n){var s=!1;if(n!=null&&n.refresh&&typeof n.refresh=="function"){var a=n.refresh(r);a!==null&&(s=!0)}if(!s&&(n!=null&&n.onParamsUpdated)&&typeof n.onParamsUpdated=="function"){var a=n.onParamsUpdated(r);a!==null&&Le("Custom floating filter method 'onParamsUpdated' is deprecated. Use 'refresh' instead.")}})}},t.prototype.destroy=function(){o.prototype.destroy.call(this),this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.destroySyncListener=null,this.destroyFilterChangedListener=null},t}(Fc),ED=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),da=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},_D=function(o){ED(t,o);function t(e,i,r,n,s){var a=o.call(this)||this;return a.pinned=e,a.column=i,a.eResize=r,a.comp=n,a.ctrl=s,a}return t.prototype.postConstruct=function(){var e=this,i=[],r,n,s=function(){if(it(e.eResize,r),!!r){var u=e.horizontalResizeService.addResizeBar({eResizeBar:e.eResize,onResizeStart:e.onResizeStart.bind(e),onResizing:e.onResizing.bind(e,!1),onResizeEnd:e.onResizing.bind(e,!0)});if(i.push(u),n){var c=e.gridOptionsService.get("skipHeaderOnAutoSize"),p=function(){e.columnModel.autoSizeColumn(e.column,"uiColumnResized",c)};e.eResize.addEventListener("dblclick",p);var f=new zt(e.eResize);f.addEventListener(zt.EVENT_DOUBLE_TAP,p),i.push(function(){e.eResize.removeEventListener("dblclick",p),f.removeEventListener(zt.EVENT_DOUBLE_TAP,p),f.destroy()})}}}
175,a=function(){i.forEach(function(u){return u()}),i.length=0},l=function(){var u=e.column.isResizable(),c=!e.gridOptionsService.get("suppressAutoSize")&&!e.column.getColDef().suppressAutoSize,p=u!==r||c!==n;p&&(r=u,n=c,a(),s())};l(),this.addDestroyFunc(a),this.ctrl.addRefreshFunction(l)},t.prototype.onResizing=function(e,i){var r=this,n=r.column,s=r.lastResizeAmount,a=r.resizeStartWidth,l=this.normaliseResizeAmount(i),u=a+l,c=[{key:n,newWidth:u}];if(this.column.getPinned()){var p=this.pinnedWidthService.getPinnedLeftWidth(),f=this.pinnedWidthService.getPinnedRightWidth(),v=Ro(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50;if(p+f+(l-s)>v)return}this.lastResizeAmount=l,this.columnModel.setColumnWidths(c,this.resizeWithShiftKey,e,"uiColumnResized"),e&&this.toggleColumnResizing(!1)},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=e,this.toggleColumnResizing(!0)},t.prototype.toggleColumnResizing=function(e){this.comp.addOrRemoveCssClass("ag-column-resizing",e)},t.prototype.normaliseResizeAmount=function(e){var i=e,r=this.pinned!=="left",n=this.pinned==="right";return this.gridOptionsService.get("enableRtl")?r&&(i*=-1):n&&(i*=-1),i},da([E("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),da([E("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),da([E("ctrlsService")],t.prototype,"ctrlsService",void 0),da([E("columnModel")],t.prototype,"columnModel",void 0),da([ie],t.prototype,"postConstruct",null),t}(ee),OD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ng=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},bD=function(o){OD(t,o);function t(e){var i=o.call(this)||this;return i.cbSelectAllVisible=!1,i.processingEventFromCheckbox=!1,i.column=e,i}return t.prototype.onSpaceKeyDown=function(e){var i=this.cbSelectAll,r=this.gridOptionsService.getDocument();i.isDisplayed()&&!i.getGui().contains(r.activeElement)&&(e.preventDefault(),i.setValue(!i.getValue()))},t.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},t.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new Rc),this.cbSelectAll.addCssClass("ag-header-select-all"),Lt(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_PAGINATION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,T.EVENT_FIELD_VALUE_CHANGED,this.onCbSelectAll.bind(this)),Ec(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},t.prototype.onNewColumnsLoaded=function(){this.showOrHideSelectAll()},t.prototype.onDisplayedColumnsChanged=function(){this.isAlive()&&this.showOrHideSelectAll()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible,{skipAriaHidden:!0}),this.cbSelectAllVisible&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.selectionService.getSelectAllState(this.isFilteredOnly(),this.isCurrentPageOnly());this.cbSelectAll.setValue(e);var i=this.selectionService.hasNodesToSelect(this.isFilteredOnly(),this.isCurrentPageOnly());this.cbSelectAll.setDisabled(!i),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){var e=this.localeService.getLocaleTextFunc(),i=this.cbSelectAll.getValue(),r=i?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),n=e("ariaRowSelectAll","Press Space to toggle all rows selection");
175this.cbSelectAllVisible?this.headerCellCtrl.setAriaDescriptionProperty("selectAll","".concat(n," (").concat(r,")")):this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel("".concat(n," (").concat(r,")")),this.headerCellCtrl.announceAriaDescription()},t.prototype.checkSelectionType=function(e){var i=this.gridOptionsService.get("rowSelection")==="multiple";return i?!0:(console.warn("AG Grid: ".concat(e," is only available if using 'multiple' rowSelection.")),!1)},t.prototype.checkRightRowModelType=function(e){var i=this.rowModel.getType(),r=i==="clientSide"||i==="serverSide";return r?!0:(console.warn("AG Grid: ".concat(e," is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ").concat(i,".")),!1)},t.prototype.onCbSelectAll=function(){if(!this.processingEventFromCheckbox&&this.cbSelectAllVisible){var e=this.cbSelectAll.getValue(),i=this.isFilteredOnly(),r=this.isCurrentPageOnly(),n="uiSelectAll";r?n="uiSelectAllCurrentPage":i&&(n="uiSelectAllFiltered");var s={source:n,justFiltered:i,justCurrentPage:r};e?this.selectionService.selectAllRowNodes(s):this.selectionService.deselectAllRowNodes(s)}},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;if(typeof e=="function"){var i=e,r=this.gridOptionsService.addGridCommonParams({column:this.column,colDef:this.column.getColDef()});e=i(r)}return e?this.checkRightRowModelType("headerCheckboxSelection")&&this.checkSelectionType("headerCheckboxSelection"):!1},t.prototype.isFilteredOnly=function(){return!!this.column.getColDef().headerCheckboxSelectionFilteredOnly},t.prototype.isCurrentPageOnly=function(){return!!this.column.getColDef().headerCheckboxSelectionCurrentPageOnly},Ng([E("rowModel")],t.prototype,"rowModel",void 0),Ng([E("selectionService")],t.prototype,"selectionService",void 0),t}(ee),TD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),RD=function(o){TD(t,o);function t(e,i,r){var n=o.call(this,e,i,r)||this;return n.refreshFunctions=[],n.userHeaderClasses=new Set,n.ariaDescriptionProperties=new Map,n.column=e,n}return t.prototype.setComp=function(e,i,r,n){var s=this;this.comp=e,this.setGui(i),this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight(n),this.addColumnHoverListener(),this.setupFilterClass(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.resizeFeature=this.createManagedBean(new _D(this.getPinned(),this.column,r,e,this)),this.createManagedBean(new Ah([this.column],i)),this.createManagedBean(new Rh(this.column,i,this.beans)),this.createManagedBean(new Ao(i,{shouldStopEventPropagation:function(a){return s.shouldStopEventPropagation(a)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(),this.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader"],this.refresh.bind(this)),this.addManagedListener(this.column,pt.EVENT_COL_DEF_CHANGED,this.refresh.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeight
175Changed.bind(this))},t.prototype.resizeHeader=function(e,i){var r,n;if(this.column.isResizable()){var s=this.column.getActualWidth(),a=(r=this.column.getMinWidth())!==null&&r!==void 0?r:0,l=(n=this.column.getMaxWidth())!==null&&n!==void 0?n:Number.MAX_SAFE_INTEGER,u=Math.min(Math.max(s+e,a),l);this.beans.columnModel.setColumnWidths([{key:this.column,newWidth:u}],i,!0,"uiColumnResized")}},t.prototype.moveHeader=function(e){var i=this,r=i.eGui,n=i.column,s=i.gridOptionsService,a=i.ctrlsService,l=this.getPinned(),u=r.getBoundingClientRect().left,c=n.getActualWidth(),p=s.get("enableRtl"),f=e===bi.Left!==p,v=yo.normaliseX(f?u-20:u+c+20,l,!0,s,a);yo.attemptMoveColumns({allMovingColumns:[n],isFromHeader:!0,hDirection:e,xPosition:v,pinned:l,fromEnter:!1,fakeEvent:!1,gridOptionsService:s,columnModel:this.beans.columnModel}),a.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(n,"auto")},t.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},t.prototype.lookupUserCompDetails=function(){var e=this.createParams(),i=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(i,e)},t.prototype.createParams=function(){var e=this,i=this.gridOptionsService.addGridCommonParams({column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&this.menuService.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!this.openFilterEnabled||this.menuService.isLegacyMenuEnabled(),showColumnMenu:function(r){e.menuService.showColumnMenu({column:e.column,buttonElement:r,positionBy:"button"})},showColumnMenuAfterMouseClick:function(r){e.menuService.showColumnMenu({column:e.column,mouseEvent:r,positionBy:"mouse"})},showFilter:function(r){e.menuService.showFilterMenu({column:e.column,buttonElement:r,containerType:"columnFilter",positionBy:"button"})},progressSort:function(r){e.beans.sortController.progressSort(e.column,!!r,"uiColumnSorted")},setSort:function(r,n){e.beans.sortController.setSortForColumn(e.column,r,!!n,"uiColumnSorted")},eGridHeader:this.getGui()});return i},t.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new bD(this.column)),this.selectAllFeature.setComp(this)},t.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},t.prototype.handleKeyDown=function(e){o.prototype.handleKeyDown.call(this,e),e.key===W.SPACE&&this.selectAllFeature.onSpaceKeyDown(e),e.key===W.ENTER&&this.onEnterKeyDown(e),e.key===W.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)},t.prototype.onEnterKeyDown=function(e){if(e.ctrlKey||e.metaKey)this.showMenuOnKeyPress(e,!0);else if(this.sortable){var i=e.shiftKey;this.beans.sortController.progressSort(this.column,i,"uiColumnSorted")}},t.prototype.showMenuOnKeyPress=function(e,i){var r=this.comp.getUserCompInstance();!r||!(r instanceof uf)||r.onMenuKeyboardShortcut(i)&&e.preventDefault()},t.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var i=this.getRowIndex();this.focusService.setFocusedHeader(i,this.column),this.announceAriaDescription()}this.focusService.isKeyboardMode()&&this.setActiveHeader(!0)},t.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},t.prototype.setupTooltip=function(){var e=this,i={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){var n=e.column.getColDef().headerTooltip;return n}},r=this.createManagedBean(new Dc(i,this.beans));r.setComp(this.eGui),this.refreshFunctions.push(function(){return r.refreshToolTip()})},t.prototype.setupClassesFromColDef=function(){var e=this,i=function(){var r=e.column.getColDef(),n=Lc.getHeaderClassesFromColDef(r,e.gridOptionsService,e.column,null),s=e.userHeaderClasses;e.userHeaderClasses=new Set(n),n.forEach(function(a){s.has(a)?s.delete(a):e.comp.addOrRemoveCssClass(a,!0)}
175),s.forEach(function(a){return e.comp.addOrRemoveCssClass(a,!1)})};this.refreshFunctions.push(i),i()},t.prototype.setDragSource=function(e){var i=this;if(this.dragSourceElement=e,this.removeDragSource(),!(!e||!this.draggable)){var r=this,n=r.column,s=r.beans,a=r.displayName,l=r.dragAndDropService,u=r.gridOptionsService,c=s.columnModel,p=!this.gridOptionsService.get("suppressDragLeaveHidesColumns"),f=this.dragSource={type:hi.HeaderCell,eElement:e,getDefaultIconName:function(){return p?It.ICON_HIDE:It.ICON_NOT_ALLOWED},getDragItem:function(){return i.createDragItem(n)},dragItemName:a,onDragStarted:function(){p=!u.get("suppressDragLeaveHidesColumns"),n.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return n.setMoving(!1,"uiColumnMoved")},onGridEnter:function(v){var y;if(p){var w=((y=v==null?void 0:v.columns)===null||y===void 0?void 0:y.filter(function(b){return!b.getColDef().lockVisible}))||[];c.setColumnsVisible(w,!0,"uiColumnMoved")}},onGridExit:function(v){var y;if(p){var w=((y=v==null?void 0:v.columns)===null||y===void 0?void 0:y.filter(function(b){return!b.getColDef().lockVisible}))||[];c.setColumnsVisible(w,!1,"uiColumnMoved")}}};l.addDragSource(f,!0)}},t.prototype.createDragItem=function(e){var i={};return i[e.getId()]=e.isVisible(),{columns:[e],visibleState:i}},t.prototype.updateState=function(){this.menuEnabled=this.menuService.isColumnMenuInHeaderEnabled(this.column),this.openFilterEnabled=this.menuService.isFilterMenuInHeaderEnabled(this.column),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},t.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},t.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach(function(e){return e()})},t.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails(),i=this.comp.getUserCompInstance(),r=i!=null&&this.userCompDetails.componentClass==e.componentClass,n=r?this.attemptHeaderCompRefresh(e.params):!1;n?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},t.prototype.attemptHeaderCompRefresh=function(e){var i=this.comp.getUserCompInstance();if(!i||!i.refresh)return!1;var r=i.refresh(e);return r},t.prototype.calculateDisplayName=function(){return this.beans.columnModel.getDisplayNameForColumn(this.column,"header",!0)},t.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},t.prototype.workOutDraggable=function(){var e=this.column.getColDef(),i=this.gridOptionsService.get("suppressMovableColumns"),r=!i&&!e.suppressMovable&&!e.lockPosition;return!!r||!!e.enableRowGroup||!!e.enablePivot},t.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},t.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},t.prototype.onColumnValueChanged=function(){this.checkDisplayName()},t.prototype.setupWidth=function(){var e=this,i=function(){var r=e.column.getActualWidth();e.comp.setWidth("".concat(r,"px"))};this.addManagedListener(this.column,pt.EVENT_WIDTH_CHANGED,i),i()},t.prototype.setupMovingCss=function(){var e=this,i=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,pt.EVENT_MOVING_CHANGED,i),i()},t.prototype.setupMenuClass=function(){var e=this,i=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,pt.EVENT_MENU_VISIBLE_CHANGED,i),i()},t.prototype.setupSortableClass=function(){var e=this,i=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};i(),this.addRefreshFunction(i),this.addManagedListener(this.eventService,pt.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},t.prototype.setupFilterClass=function(){var e=this,i=function(){var r=e.column.isFilterActive();e.comp.addOrRemoveCssClass("ag-header-cell-filtered",r),e.refreshAria()};this.addManagedListener(this.column,pt.EVENT_FILTER_ACTIVE_CHANGED,i),i()},t.prototype.setupWrapTextClass=function(){var e=this,i=function(){var r=!!e.column.getColDef().wrapHeaderText;e.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",r)};i(),this.addRefreshFunction(i)},t.prototype.onDisplayedColumnsChanged=function(){o.prototype.onDisplayedColumnsChanged.call(this),this.isAlive()&&this.onHeaderHeight
175Changed()},t.prototype.onHeaderHeightChanged=function(){this.refreshSpanHeaderHeight()},t.prototype.refreshSpanHeaderHeight=function(){var e=this,i=e.eGui,r=e.column,n=e.comp,s=e.beans;if(!r.isSpanHeaderHeight()){i.style.removeProperty("top"),i.style.removeProperty("height"),n.addOrRemoveCssClass("ag-header-span-height",!1),n.addOrRemoveCssClass("ag-header-span-total",!1);return}var a=this.column.getColumnGroupPaddingInfo(),l=a.numberOfParents,u=a.isSpanningTotal;n.addOrRemoveCssClass("ag-header-span-height",l>0);var c=s.columnModel,p=c.getColumnHeaderRowHeight();if(l===0){n.addOrRemoveCssClass("ag-header-span-total",!1),i.style.setProperty("top","0px"),i.style.setProperty("height","".concat(p,"px"));return}n.addOrRemoveCssClass("ag-header-span-total",u);var f=c.isPivotMode(),v=f?c.getPivotGroupHeaderHeight():c.getGroupHeaderHeight(),y=l*v;i.style.setProperty("top","".concat(-y,"px")),i.style.setProperty("height","".concat(p+y,"px"))},t.prototype.setupAutoHeight=function(e){var i=this,r=this.beans,n=r.columnModel,s=r.resizeObserverService,a=function(v){if(i.isAlive()){var y=Vn(i.getGui()),w=y.paddingTop,b=y.paddingBottom,O=y.borderBottomWidth,A=y.borderTopWidth,P=w+b+O+A,L=e.offsetHeight,x=L+P;if(v<5){var H=i.beans.gridOptionsService.getDocument(),g=!H||!H.contains(e),N=x==0;if(g||N){window.setTimeout(function(){return a(v+1)},0);return}}n.setColumnHeaderHeight(i.column,x)}},l=!1,u,c=function(){var v=i.column.isAutoHeaderHeight();v&&!l&&p(),!v&&l&&f()},p=function(){l=!0,a(0),i.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),u=s.observeResize(e,function(){return a(0)})},f=function(){l=!1,u&&u(),i.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),u=void 0};c(),this.addDestroyFunc(function(){return f()}),this.addManagedListener(this.column,pt.EVENT_WIDTH_CHANGED,function(){return l&&a(0)}),this.addManagedListener(this.eventService,pt.EVENT_SORT_CHANGED,function(){l&&window.setTimeout(function(){return a(0)})}),this.addRefreshFunction(c)},t.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.localeService.getLocaleTextFunc(),i=this.beans.sortController.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(CC(i)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort"))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},t.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press ALT DOWN to open column menu"))}else this.setAriaDescriptionProperty("menu",null)},t.prototype.refreshAriaFilterButton=function(){if(this.openFilterEnabled&&!this.menuService.isLegacyMenuEnabled()){var e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("filterButton",e("ariaFilterColumn","Press CTRL ENTER to open filter"))}else this.setAriaDescriptionProperty("filterButton",null)},t.prototype.refreshAriaFiltered=function(){var e=this.localeService.getLocaleTextFunc(),i=this.column.isFilterActive();i?this.setAriaDescriptionProperty("filter",e("ariaColumnFiltered","Column Filtered")):this.setAriaDescriptionProperty("filter",null)},t.prototype.setAriaDescriptionProperty=function(e,i){i!=null?this.ariaDescriptionProperties.set(e,i):this.ariaDescriptionProperties.delete(e)},t.prototype.announceAriaDescription=function(){var e=this,i=this.beans.gridOptionsService.getDocument();if(this.eGui.contains(i.activeElement)){var r=Array.from(this.ariaDescriptionProperties.keys()).sort(function(n,s){return n==="filter"?-1:s.charCodeAt(0)-n.charCodeAt(0)}).map(function(n){return e.ariaDescriptionProperties.get(n)}).join(". ");this.beans.ariaAnnouncementService.announceValue(r)}},t.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered()},t.prototype.addColumnHoverListener=function(){var e=this,i=function(){if(e.gridOptionsService.get("columnHoverHighlight")){var r=e.beans.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",r)}};this.addManagedListener(this.eventService,T.EVENT_COLUMN_HOVER_CHANGED,i),i()},t.prototype.getColId=function(){return this.column.getColId()},t.prototype.addActiveHeaderMouseListeners=function(){var e=this,i=function(s){return e.handleMouseOverChange(s.type==="mouseenter")},r=function(){return e.dispatchColumnMouseEvent(T.EVENT_COLUMN_HEADER_CLICKED,e.column)},n=function(s){return e.handleContextMenuMouseEvent(s,void 0,e.column)};this.addManagedListener(this.getGui(),"mouseenter",i),this.addManagedListener(this.getGui(),"mouseleave",i),this.addManagedListener(this.getGui(),"click",r),this.addManagedListener(this.getGui(),"contextmenu",n)},t.prototype.handleMouseOverChange=function(e){this.setActiveHeader(e);var i=e?T.EVENT_COLUMN_HEADER_MOUSE_OVER:T.EVENT_COLUMN_HEADER_MOUSE_LEAVE,r={type:i,column:this.column};this.eventService.dispatchEvent(r)},t.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},t.prototype.getAnchorElementForMenu=function(e){var i=this.comp.getUserCompInstance();return i instanceof uf?i.getAnchorElementForMenu(e):this.getGui()},t.prototype.destroy=function(){o.prototype.destroy.call(this),this.refreshFunctions=null,this.selectAllFeature=null,this.dragSourceElement=null,this.userCompDetail
175s=null,this.userHeaderClasses=null,this.ariaDescriptionProperties=null},t}(Fc),AD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Kl=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},PD=function(o){AD(t,o);function t(e,i,r,n){var s=o.call(this)||this;return s.eResize=i,s.comp=e,s.pinned=r,s.columnGroup=n,s}return t.prototype.postConstruct=function(){var e=this;if(!this.columnGroup.isResizable()){this.comp.setResizableDisplayed(!1);return}var i=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(i),!this.gridOptionsService.get("suppressAutoSize")){var r=this.gridOptionsService.get("skipHeaderOnAutoSize");this.eResize.addEventListener("dblclick",function(){var n=[],s=e.columnGroup.getDisplayedLeafColumns();s.forEach(function(a){a.getColDef().suppressAutoSize||n.push(a.getColId())}),n.length>0&&e.columnModel.autoSizeColumns({columns:n,skipHeader:r,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit("uiColumnResized")})}},t.prototype.onResizeStart=function(e){var i=this.getInitialValues(e);this.storeLocalValues(i),this.toggleColumnResizing(!0)},t.prototype.onResizing=function(e,i,r){r===void 0&&(r="uiColumnResized");var n=this.normaliseDragChange(i),s=this.resizeStartWidth+n;this.resizeColumnsFromLocalValues(s,r,e)},t.prototype.getInitialValues=function(e){var i=this.getColumnsToResize(),r=this.getInitialSizeOfColumns(i),n=this.getSizeRatiosOfColumns(i,r),s={columnsToResize:i,resizeStartWidth:r,resizeRatios:n},a=null;if(e&&(a=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),a){var l=a.getDisplayedLeafColumns(),u=s.groupAfterColumns=l.filter(function(p){return p.isResizable()}),c=s.groupAfterStartWidth=this.getInitialSizeOfColumns(u);s.groupAfterRatios=this.getSizeRatiosOfColumns(u,c)}else s.groupAfterColumns=void 0,s.groupAfterStartWidth=void 0,s.groupAfterRatios=void 0;return s},t.prototype.storeLocalValues=function(e){var i=e.columnsToResize,r=e.resizeStartWidth,n=e.resizeRatios,s=e.groupAfterColumns,a=e.groupAfterStartWidth,l=e.groupAfterRatios;this.resizeCols=i,this.resizeStartWidth=r,this.resizeRatios=n,this.resizeTakeFromCols=s,this.resizeTakeFromStartWidth=a,this.resizeTakeFromRatios=l},t.prototype.clearLocalValues=function(){this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0},t.prototype.resizeLeafColumnsToFit=function(e){var i=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup),r=this.getInitialValues();i>r.resizeStartWidth&&this.resizeColumns(r,i,e,!0)},t.prototype.resizeColumnsFromLocalValues=function(e,i,r){var n,s,a;if(r===void 0&&(r=!0),!(!this.resizeCols||!this.resizeRatios)){var l={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:(n=this.resizeTakeFromCols)!==null&&n!==void 0?n:void 0,groupAfterStartWidth:(s=this.resizeTakeFromStartWidth)!==null&&s!==void 0?s:void 0,groupAfterRatios:(a=this.resizeTakeFromRatios)!==null&&a!==void 0?a:void 0};this.resizeColumns(l,e,i,r)}},t.prototype.resizeColumns=function(e,i,r,n){n===void 0&&(n=!0);var s=e.columnsToResize,a=e.resizeStartWidth,l=e.resizeRatios,u=e.groupAfterColumns,c=e.groupAfterStartWidth,p=e.groupAfterRatios,f=[];if(f.push({columns:s,ratios:l,width:i}),u){var v=i-a;f.push({columns:u,ratios:p,width:c-v})}this.columnModel.resizeColumnSets({resizeSets:f,finished:n,source:r}),n&&this.toggleColumnResizing(!1)},t.prototype.toggleColumnResizing=function(e){this.comp.addOrRemoveCssClass("ag-column-resizing",e)},t.prototype.getColumnsToResize=function(){var e=this.columnGroup.getDisplayedLeafColumns();return e.filter(function(i){return i.isResizable()})},t.prototype.getInitialSizeOfColumns=function(e){return e.reduce(function(i,r){return i+r.getActualWidth()},0)},t.prototype.getSizeRatiosOfColumns=function(e,i){return e.map(function(r){return r.getActualWidth()/i})},t.prototype.normaliseDragChange=function(e){var i=e;return this.gridOptionsService.get("enableRtl")?this.pinned!=="left"&&(i*=-1):this.pinned==="right"&&(i*=-1),i},t.prototype.destroy=function(){o.prototype.destroy.call(this),this.clearLocalValues()},Kl([E("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),Kl([E("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),Kl([E("columnModel")],t.prototype,"columnModel",void 0),Kl([ie],t.prototype,"postConstruct",null),t}
175(ee),DD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),LD=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},FD=function(o){DD(t,o);function t(e,i){var r=o.call(this)||this;return r.removeChildListenersFuncs=[],r.columnGroup=i,r.comp=e,r}return t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,At.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var i=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(function(r){r.addEventListener("widthChanged",i),r.addEventListener("visibleChanged",i),e.removeChildListenersFuncs.push(function(){r.removeEventListener("widthChanged",i),r.removeEventListener("visibleChanged",i)})})},t.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach(function(e){return e()}),this.removeChildListenersFuncs=[]},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.onWidthChanged=function(){var e=this.columnGroup.getActualWidth();this.comp.setWidth("".concat(e,"px")),this.comp.addOrRemoveCssClass("ag-hidden",e===0)},LD([ie],t.prototype,"postConstruct",null),t}(ee),MD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),rc=function(){return rc=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},rc.apply(this,arguments)},ID=function(o){MD(t,o);function t(e,i,r){var n=o.call(this,e,i,r)||this;return n.onSuppressColMoveChange=function(){if(!n.isAlive()||n.isSuppressMoving())n.removeDragSource();else if(!n.dragSource){var s=n.getGui();n.setDragSource(s)}},n.column=e,n}return t.prototype.setComp=function(e,i,r){this.comp=e,this.setGui(i),this.displayName=this.beans.columnModel.getDisplayNameForColumnGroup(this.column,"header"),this.addClasses(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp(),this.addHeaderMouseListeners();var n=this.getParentRowCtrl().getPinned(),s=this.column.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new Ah(s,i)),this.createManagedBean(new Rh(this.column,i,this.beans)),this.createManagedBean(new FD(e,this.column)),this.resizeFeature=this.createManagedBean(new PD(e,r,n,this.column)),this.createManagedBean(new Ao(i,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addManagedPropertyListener(T.EVENT_SUPPRESS_COLUMN_MOVE_CHANGED,this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners()},t.prototype.resizeHeader=function(e,i){if(this.resizeFeature){var r=this.resizeFeature.getInitialValues(i);this.resizeFeature.resizeColumns(r,r.resizeStartWidth+e,"uiColumnResized",!0)}},t.prototype.moveHeader=function(e){var i=this,r=i.beans,n=i.eGui,s=i.column,a=i.gridOptionsService,l=i.ctrlsService,u=a.get("enableRtl"),c=e===bi.Left,p=this.getPinned(),f=n.getBoundingClientRect(),v=f.left,y=f.width,w=yo.normaliseX(c!==u?v-20:v+y+20,p,!0,a,l),b=s.getGroupId(),O=this.focusService.getFocusedHeader();yo.attemptMoveColumns({allMovingColumns:this.column.getLeafColumns(),isFromHeader:!0,hDirection:e,xPosition:w,pinned:p,fromEnter:!1,fakeEvent:!1,gridOptionsService:a,columnModel:r.columnModel});var A=s.getDisplayedLeafColumns(),P=c?A[0]:ot(A);
175this.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(P,"auto"),!this.isAlive()&&O&&this.restoreFocus(b,s,O)},t.prototype.restoreFocus=function(e,i,r){var n=i.getLeafColumns();if(n.length){var s=n[0].getParent();if(s){var a=this.findGroupWidthId(s,e);a&&this.focusService.focusHeaderPosition({headerPosition:rc(rc({},r),{column:a})})}}},t.prototype.findGroupWidthId=function(e,i){for(;e;){if(e.getGroupId()===i)return e;e=e.getParent()}return null},t.prototype.resizeLeafColumnsToFit=function(e){this.resizeFeature&&this.resizeFeature.resizeLeafColumnsToFit(e)},t.prototype.setupUserComp=function(){var e=this,i=this.gridOptionsService.addGridCommonParams({displayName:this.displayName,columnGroup:this.column,setExpanded:function(n){e.beans.columnModel.setColumnGroupOpened(e.column.getProvidedColumnGroup(),n,"gridInitializing")}}),r=this.userComponentFactory.getHeaderGroupCompDetails(i);this.comp.setUserCompDetails(r)},t.prototype.addHeaderMouseListeners=function(){var e=this,i=function(s){return e.handleMouseOverChange(s.type==="mouseenter")},r=function(){return e.dispatchColumnMouseEvent(T.EVENT_COLUMN_HEADER_CLICKED,e.column.getProvidedColumnGroup())},n=function(s){return e.handleContextMenuMouseEvent(s,void 0,e.column.getProvidedColumnGroup())};this.addManagedListener(this.getGui(),"mouseenter",i),this.addManagedListener(this.getGui(),"mouseleave",i),this.addManagedListener(this.getGui(),"click",r),this.addManagedListener(this.getGui(),"contextmenu",n)},t.prototype.handleMouseOverChange=function(e){var i=e?T.EVENT_COLUMN_HEADER_MOUSE_OVER:T.EVENT_COLUMN_HEADER_MOUSE_LEAVE,r={type:i,column:this.column.getProvidedColumnGroup()};this.eventService.dispatchEvent(r)},t.prototype.setupTooltip=function(){var e=this,i=this.column.getColGroupDef(),r={getColumn:function(){return e.column},getGui:function(){return e.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return i&&i.headerTooltip}};i&&(r.getColDef=function(){return i});var n=this.createManagedBean(new Dc(r,this.beans));n.setComp(this.eGui)},t.prototype.setupExpandable=function(){var e=this.column.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,_t.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,_t.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},t.prototype.refreshExpanded=function(){var e=this.column;this.expandable=e.isExpandable();var i=e.isExpanded();this.expandable?this.comp.setAriaExpanded(i?"true":"false"):this.comp.setAriaExpanded(void 0)},t.prototype.getColId=function(){return this.column.getUniqueId()},t.prototype.addClasses=function(){var e=this,i=this.column.getColGroupDef(),r=Lc.getHeaderClassesFromColDef(i,this.gridOptionsService,null,this.column);if(this.column.isPadding()){r.push("ag-header-group-cell-no-group");var n=this.column.getLeafColumns();n.every(function(s){return s.isSpanHeaderHeight()})&&r.push("ag-header-span-height")}else r.push("ag-header-group-cell-with-group");r.forEach(function(s){return e.comp.addOrRemoveCssClass(s,!0)})},t.prototype.setupMovingCss=function(){var e=this,i=this.column.getProvidedColumnGroup(),r=i.getLeafColumns(),n=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};r.forEach(function(s){e.addManagedListener(s,pt.EVENT_MOVING_CHANGED,n)}),n()},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var i=this.getRowIndex();this.beans.focusService.setFocusedHeader(i,this.column)}},t.prototype.handleKeyDown=function(e){o.prototype.handleKeyDown.call(this,e);var i=this.getWrapperHasFocus();if(!(!this.expandable||!i)&&e.key===W.ENTER){var r=this.column,n=!r.isExpanded();this.beans.columnModel.setColumnGroupOpened(r.getProvidedColumnGroup(),n,"uiColumnExpanded")}},t.prototype.setDragSource=function(e){var i=this;if(!(!this.isAlive()||this.isSuppressMoving())&&(this.removeDragSource(),!!e)){var r=this,n=r.beans,s=r.column,a=r.displayName,l=r.gridOptionsService,u=r.dragAndDropService,c=n.columnModel,p=s.getProvidedColumnGroup().getLeafColumns(),f=!l.get("suppressDragLeaveHidesColumns"),v=this.dragSource={type:hi.HeaderCell,eElement:e,getDefaultIconName:function(){return f?It.ICON_HIDE:It.ICON_NOT_ALLOWED},dragItemName:a,getDragItem:function(){return i.getDragItemForGroup(s)},onDragStarted:function(){f=!l.get("suppressDragLeaveHidesColumns"),p.forEach(function(y){return y.setMoving(!0,"uiColumnDragged")})},onDragStopped:function(){return p.forEach(function(y){return y.setMoving(!1,"uiColumnDragged")})}
175,onGridEnter:function(y){var w;if(f){var b=((w=y==null?void 0:y.columns)===null||w===void 0?void 0:w.filter(function(O){return!O.getColDef().lockVisible}))||[];c.setColumnsVisible(b,!0,"uiColumnMoved")}},onGridExit:function(y){var w;if(f){var b=((w=y==null?void 0:y.columns)===null||w===void 0?void 0:w.filter(function(O){return!O.getColDef().lockVisible}))||[];c.setColumnsVisible(b,!1,"uiColumnMoved")}}};u.addDragSource(v,!0)}},t.prototype.getDragItemForGroup=function(e){var i=e.getProvidedColumnGroup().getLeafColumns(),r={};i.forEach(function(s){return r[s.getId()]=s.isVisible()});var n=[];return this.beans.columnModel.getAllDisplayedColumns().forEach(function(s){i.indexOf(s)>=0&&(n.push(s),ui(i,s))}),i.forEach(function(s){return n.push(s)}),{columns:n,visibleState:r}},t.prototype.isSuppressMoving=function(){var e=!1;this.column.getLeafColumns().forEach(function(r){(r.getColDef().suppressMovable||r.getColDef().lockPosition)&&(e=!0)});var i=e||this.gridOptionsService.get("suppressMovableColumns");return i},t}(Fc),xD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Gg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Hg=function(o){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&o[t],i=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ND=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},GD=0,Jd=function(o){xD(t,o);function t(e,i,r){var n=o.call(this)||this;n.instanceId=GD++,n.rowIndex=e,n.pinned=i,n.type=r;var s=r==Bt.COLUMN_GROUP?"ag-header-row-column-group":r==Bt.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return n.headerRowClass="ag-header-row ".concat(s),n}return t.prototype.postConstruct=function(){this.isPrintLayout=this.gridOptionsService.isDomLayout("print"),this.isEnsureDomOrder=this.gridOptionsService.get("ensureDomOrder")},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e,i){i===void 0&&(i=!0),this.comp=e,i&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners()},t.prototype.getHeaderRowClass=function(){return this.headerRowClass},t.prototype.getAriaRowIndex=function(){return this.rowIndex+1},t.prototype.addEventListeners=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_VIRTUAL_COLUMNS_CHANGED,function(i){return e.onVirtualColumnsChanged(i.afterScroll)}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_GRID_STYLES_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),this.addManagedPropertyListener("ensureDomOrder",function(i){return e.isEnsureDomOrder=i.currentValue}),this.addManagedPropertyListener("headerHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("groupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotGroupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("floatingFiltersHeight",this.onRowHeightChanged.bind(this))},t.prototype.getHeaderCellCtrl=function(e){if(this.headerCellCtrls)return co(this.headerCellCtrls).find(function(i){return i.getColumnGroupChild()===e})},t.prototype.onDisplayedColumnsChanged=function(){this.isPrintLayout=this.gridOptionsService.isDomLayout("print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},t.prototype.getType=function(){return this.type},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth("".concat(e,"px"))},t.prototype.getWidthForRow=function(){var e=this.beans.columnModel;if(this.isPrintLayout){var i=this.pinned!=null;return i?0:e.getContainerWidth("right")+e.getContainerWidth("left")+e.getContainerWidth(null)}return e.getContainerWidth(this.pinned)},t.prototype.onRowHeightChanged=function(){var e=this.getTopAndHeight(),i=e.topOffset,r=e.rowHeight;this.comp.setTop(i+"px"),this.comp.setHeight(r+"px")},t.prototype.getTopAndHeight=function(){var e=this.beans,i=e.columnModel,r=e.filterManager,n=i.getHeaderRowCount(),s=[],a=0;r.hasFloatingFilters()&&(n++,a=1);for(var l=i.getColumnGroupHeaderRowHeight(),u=i.getColumnHeaderRowHeight(),c=1+a,p=n-c,f=0;f<p;f++)s.push(l);s.push(u);for(var f=0;f<a;f++)s.push(i.getFloatingFiltersHeight());for(var v=0,f=0;f<this.rowIndex;f++)v+=s[f];var y=s[this.rowIndex];return{topOffset:v,rowHeight:y}},t.prototype.getPinned=function(){return this.pinned},t.prototype.getRowIndex=function(){return this.rowIndex},t.prototype.onVirtualColumnsChanged=function(e){e===void 0&&(e=!1);var i=this.getHeaderCtrls(),r=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(i,r,e)},t.prototype.getHeaderCtrls=function(){var e,i,r,n,s=this,a=this.headerCellCtrls;this.headerCellCtrls=new Map;var l=this.getColumnsInViewport();try{for(var u=Hg(l),c=u.next();!c.done;c=u.next()){var p=c.value;this.recycleAndCreateHeaderCtrls(p,a)}}catch(L){e={error:L}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(e)throw e.error}}var f=function(L){var x=s.beans,H=x.focusService,g=x.columnModel,N=H.isHeaderWrapperFocused(L);if(!N)return!1;var V=g.isDisplayed(L.getColumnGroupChild());return V};if(a)try{for(var v=Hg(a),y=v.next();!y.done;y=v.next()){var w=ND(y.value,2),b=w[0],O=w[1],A=f(O);A?this.headerCellCtrls.set(b,O):this.destroyBean(O)}}catch(L){r={error:L}}finally{try{y&&!y.done&&(n=v.return)&&n.call(v)}finally{if(r)throw r.error}}var P=Array.from(this.headerCellCtrls.values());return P},t.prototype.recycleAndCreateHeaderCtrls=function(e,i){if(this.headerCellCtrls&&!e.isEmptyGroup()){var r=e.getUniqueId(),n;i&&(n=i.get(r),i.delete(r));var s=n&&n.getColumnGroupChild()!=e;if(s&&(this.destroyBean(n),n=void 0),n==null)switch(this.type){case Bt.FLOATING_FILTER:n=this.createBean(new SD(e,this.beans,this));break;case Bt.COLUMN_GROUP:n=this.createBean(new ID(e,this.beans,this));break;default:n=this.createBean(new RD(e,this.beans,this));break}this.headerCellCtrls.set(r,n)}},t.prototype.getColumnsInViewport=function(){return this.isPrintLayout?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},t.prototype.getColumnsInViewportPrintLayout=function(){if(this.pinned!=null)return[];var e=[],i=this.getActualDepth(),r=this.beans.columnModel;return["left",null,"right"].forEach(function(n){var s=r.getVirtualHeaderGroupRow(n,i);e=e.concat(s)}),e},t.prototype.getActualDepth=function(){return this.type==Bt.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},t.prototype.getColumnsInViewportNormalLayout=function(){return this.beans.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())}
175,t.prototype.focusHeader=function(e,i){if(!this.headerCellCtrls)return!1;var r=Array.from(this.headerCellCtrls.values()),n=r.find(function(s){return s.getColumnGroupChild()==e});return n?n.focus(i):!1},t.prototype.destroy=function(){var e=this;this.headerCellCtrls&&this.headerCellCtrls.forEach(function(i){e.destroyBean(i)}),this.headerCellCtrls=void 0,o.prototype.destroy.call(this)},Gg([E("beans")],t.prototype,"beans",void 0),Gg([ie],t.prototype,"postConstruct",null),t}(ee),HD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Uo=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},VD=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},kD=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},BD=function(o){HD(t,o);function t(e){var i=o.call(this)||this;return i.hidden=!1,i.includeFloatingFilter=!1,i.groupsRowCtrls=[],i.pinned=e,i}return t.prototype.setComp=function(e,i){this.comp=e,this.eViewport=i,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,T.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},t.prototype.setupDragAndDrop=function(e){var i=new lD(this.pinned,e);this.createManagedBean(i)},t.prototype.refresh=function(e){var i=this;e===void 0&&(e=!1);var r=new Es,n=this.focusService.getFocusHeaderToUseAfterRefresh(),s=function(){var c=i.columnModel.getHeaderRowCount()-1;i.groupsRowCtrls=i.destroyBeans(i.groupsRowCtrls);for(var p=0;p<c;p++){var f=i.createBean(new Jd(r.next(),i.pinned,Bt.COLUMN_GROUP));i.groupsRowCtrls.push(f)}},a=function(){var c=r.next(),p=!i.hidden&&(i.columnsRowCtrl==null||!e||i.columnsRowCtrl.getRowIndex()!==c),f=p||i.hidden;f&&(i.columnsRowCtrl=i.destroyBean(i.columnsRowCtrl)),p&&(i.columnsRowCtrl=i.createBean(new Jd(c,i.pinned,Bt.COLUMN)))},l=function(){i.includeFloatingFilter=i.filterManager.hasFloatingFilters()&&!i.hidden;var c=function(){i.filtersRowCtrl=i.destroyBean(i.filtersRowCtrl)};if(!i.includeFloatingFilter){c();return}var p=r.next();if(i.filtersRowCtrl){var f=i.filtersRowCtrl.getRowIndex()!==p;(!e||f)&&c()}i.filtersRowCtrl||(i.filtersRowCtrl=i.createBean(new Jd(p,i.pinned,Bt.FLOATING_FILTER)))};s(),a(),l();var u=this.getAllCtrls();this.comp.setCtrls(u),this.restoreFocusOnHeader(n)},t.prototype.restoreFocusOnHeader=function(e){e==null||e.column.getPinned()!=this.pinned||this.focusService.focusHeaderPosition({headerPosition:e})},t.prototype.getAllCtrls=function(){var e=kD([],VD(this.groupsRowCtrls),!1);return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e},t.prototype.onGridColumnsChanged=function(){this.refresh(!0)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.filterManager.hasFloatingFilters()&&!this.hidden;this.includeFloatingFilter!==e&&this.refresh(!0)},t.prototype.setupCenterWidth=function(){var e=this;this.pinned==null&&this.createManagedBean(new Th(function(i){return e.comp.setCenterWidth("".concat(i,"px"))},!0))},t.prototype.setHorizontalScroll=function(e){this.comp.setViewportScrollLeft(e)},t.prototype.setupPinnedWidth=function(){var e=this;if(this.pinned!=null){var i=this.pinned==="left",r=this.pinned==="right";this.hidden=!0;var n=function(){var s=i?e.pinnedWidthService.getPinnedLeftWidth():e.pinnedWidthService.getPinnedRightWidth();if(s!=null){var a=s==0,l=e.hidden!==a,u=e.gridOptionsService.get("enableRtl"),c=e.gridOptionsService.getScrollbarWidth(),p=e.scrollVisibleService.isVerticalScrollShowing()&&(u&&i||!u&&r),f=p?s+c:s;e.comp.setPinnedContainerWidth("".concat(f,"px")),e.comp.setDisplayed(!a),l&&(e.hidden=a,e.refresh())}};this.addManagedListener(this.eventService,T.EVENT_LEFT_PINNED_WIDTH_CHANGED,n),this.addManagedListener(this.eventService,T.EVENT_RIGHT_PINNED_WIDTH_CHANGED,n),this.addManagedListener(this.eventService,T.EVENT_SCROLL_VISIBILITY_CHANGED,n),this.addManagedListener(this.eventService,T.EVENT_SCROLLBAR_WIDTH_CHANGED,n)}},t.prototype.getHeaderCtrlForColumn=function(e){if(e instanceof pt)return this.columnsRowCtrl?this.columnsRowCtrl.getHeaderCellCtrl(e):void 0;if(this.groupsRowCtrls.length!==0)for(var i=0;i<this.groupsRowCtrls.length;i++){var r=this.groupsRowCtrls[i].getHeaderCellCtrl(e);
175if(r)return r}},t.prototype.getHtmlElementForColumnHeader=function(e){var i=this.getHeaderCtrlForColumn(e);return i?i.getGui():null},t.prototype.getRowType=function(e){var i=this.getAllCtrls(),r=i[e];return r?r.getType():void 0},t.prototype.focusHeader=function(e,i,r){var n=this.getAllCtrls(),s=n[e];return s?s.focusHeader(i,r):!1},t.prototype.getViewport=function(){return this.eViewport},t.prototype.getRowCount=function(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)},t.prototype.destroy=function(){this.filtersRowCtrl&&(this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)),this.columnsRowCtrl&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),this.groupsRowCtrls&&this.groupsRowCtrls.length&&(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls)),o.prototype.destroy.call(this)},Uo([E("ctrlsService")],t.prototype,"ctrlsService",void 0),Uo([E("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Uo([E("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),Uo([E("columnModel")],t.prototype,"columnModel",void 0),Uo([E("focusService")],t.prototype,"focusService",void 0),Uo([E("filterManager")],t.prototype,"filterManager",void 0),t}(ee),jD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Zd=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ep=function(o){jD(t,o);function t(e){var i=o.call(this)||this;return i.headerRowComps={},i.rowCompsList=[],i.pinned=e,i}return t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var i={setDisplayed:function(n){return e.setDisplayed(n)},setCtrls:function(n){return e.setCtrls(n)},setCenterWidth:function(n){return e.eCenterContainer.style.width=n},setViewportScrollLeft:function(n){return e.getGui().scrollLeft=n},setPinnedContainerWidth:function(n){var s=e.getGui();s.style.width=n,s.style.maxWidth=n,s.style.minWidth=n}},r=this.createManagedBean(new BD(this.pinned));r.setComp(i,this.getGui())},t.prototype.selectAndSetTemplate=function(){var e=this.pinned=="left",i=this.pinned=="right",r=e?t.PINNED_LEFT_TEMPLATE:i?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE;this.setTemplate(r),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},t.prototype.destroyRowComps=function(){this.setCtrls([])},t.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},t.prototype.setCtrls=function(e){var i=this,r=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];var n,s=function(a){var l=a.getGui(),u=l.parentElement!=i.eRowContainer;u&&i.eRowContainer.appendChild(l),n&&fh(i.eRowContainer,l,n),n=l};e.forEach(function(a){var l=a.getInstanceId(),u=r[l];delete r[l];var c=u||i.createBean(new hD(a));i.headerRowComps[l]=c,i.rowCompsList.push(c),s(c)}),Rn(r).forEach(function(a){return i.destroyRowComp(a)})},t.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="rowgroup"></div>',t.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="rowgroup"></div>',t.CENTER_TEMPLATE=`<div class="ag-header-viewport" role="presentation"> 176 <div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div> 177 </div>`,Zd([se("eCenterContainer")],t.prototype,"eCenterContainer",void 0),Zd([ie],t.prototype,"init",null),Zd([Xt],t.prototype,"destroyRowComps",null),t}(We),WD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&
177(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),pa=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},_r;(function(o){o[o.UP=0]="UP",o[o.DOWN=1]="DOWN",o[o.LEFT=2]="LEFT",o[o.RIGHT=3]="RIGHT"})(_r||(_r={}));var UD=function(o){WD(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.currentHeaderRowWithoutSpan=-1,e}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(r){e.gridBodyCon=r.gridBodyCtrl});var i=this.gridOptionsService.getDocument();this.addManagedListener(i,"mousedown",function(){return e.setCurrentHeaderRowWithoutSpan(-1)})},t.prototype.getHeaderRowCount=function(){var e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0},t.prototype.navigateVertically=function(e,i,r){if(i||(i=this.focusService.getFocusedHeader()),!i)return!1;var n=i.headerRowIndex,s=i.column,a=this.getHeaderRowCount(),l=e===_r.UP,u=l?this.headerPositionUtils.getColumnVisibleParent(s,n):this.headerPositionUtils.getColumnVisibleChild(s,n),c=u.headerRowIndex,p=u.column,f=u.headerRowIndexWithoutSpan,v=!1;return c<0&&(c=0,p=s,v=!0),c>=a?(c=-1,this.setCurrentHeaderRowWithoutSpan(-1)):f!==void 0&&(this.currentHeaderRowWithoutSpan=f),!v&&!p?!1:this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:c,column:p},allowUserOverride:!0,event:r})},t.prototype.setCurrentHeaderRowWithoutSpan=function(e){this.currentHeaderRowWithoutSpan=e},t.prototype.navigateHorizontally=function(e,i,r){i===void 0&&(i=!1);var n=this.focusService.getFocusedHeader(),s=e===_r.LEFT,a=this.gridOptionsService.get("enableRtl"),l,u;return this.currentHeaderRowWithoutSpan!==-1?n.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=n.headerRowIndex,s!==a?(u="Before",l=this.headerPositionUtils.findHeader(n,u)):(u="After",l=this.headerPositionUtils.findHeader(n,u)),l||!i?this.focusService.focusHeaderPosition({headerPosition:l,direction:u,fromTab:i,allowUserOverride:!0,event:r}):this.focusNextHeaderRow(n,u,r)},t.prototype.focusNextHeaderRow=function(e,i,r){var n=e.headerRowIndex,s=null,a;if(i==="Before"?n>0&&(a=n-1,this.currentHeaderRowWithoutSpan-=1,s=this.headerPositionUtils.findColAtEdgeForHeaderRow(a,"end")):(a=n+1,this.currentHeaderRowWithoutSpan<this.getHeaderRowCount()?this.currentHeaderRowWithoutSpan+=1:this.setCurrentHeaderRowWithoutSpan(-1),s=this.headerPositionUtils.findColAtEdgeForHeaderRow(a,"start")),!s)return!1;var l=this.headerPositionUtils.getHeaderIndexToFocus(s.column,s==null?void 0:s.headerRowIndex),u=l.column,c=l.headerRowIndex;return this.focusService.focusHeaderPosition({headerPosition:{column:u,headerRowIndex:c},direction:i,fromTab:!0,allowUserOverride:!0,event:r})},t.prototype.scrollToColumn=function(e,i){if(i===void 0&&(i="After"),!e.getPinned()){var r;if(e instanceof At){var n=e.getDisplayedLeafColumns();r=i==="Before"?ot(n):n[0]}else r=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(r)}},pa([E("focusService")],t.prototype,"focusService",void 0),pa([E("headerPositionUtils")],t.prototype,"headerPositionUtils",void 0),pa([E("ctrlsService")],t.prototype,"ctrlsService",void 0),pa([ie],t.prototype,"postConstruct",null),t=pa([fe("headerNavigationService")],t),t}(ee),zD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}
177t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),zo=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},$D=function(o){zD(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.setComp=function(e,i,r){this.comp=e,this.eGui=i,this.createManagedBean(new Ao(r,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight();var n=this.onHeaderContextMenu.bind(this);this.addManagedListener(this.eGui,"contextmenu",n),this.mockContextMenuForIPad(n),this.ctrlsService.registerGridHeaderCtrl(this)},t.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListener("headerHeight",e),this.addManagedPropertyListener("pivotHeaderHeight",e),this.addManagedPropertyListener("groupHeaderHeight",e),this.addManagedPropertyListener("pivotGroupHeaderHeight",e),this.addManagedPropertyListener("floatingFiltersHeight",e),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,T.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,e),this.addManagedListener(this.eventService,T.EVENT_GRID_STYLES_CHANGED,e),this.addManagedListener(this.eventService,T.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,e)},t.prototype.getHeaderHeight=function(){return this.headerHeight},t.prototype.setHeaderHeight=function(){var e=this.columnModel,i=0,r=e.getHeaderRowCount(),n,s=this.filterManager.hasFloatingFilters();s&&(r++,i=1);var a=this.columnModel.getColumnGroupHeaderRowHeight(),l=this.columnModel.getColumnHeaderRowHeight(),u=1+i,c=r-u;if(n=i*e.getFloatingFiltersHeight(),n+=c*a,n+=l,this.headerHeight!==n){this.headerHeight=n;var p="".concat(n+1,"px");this.comp.setHeightAndMinHeight(p),this.eventService.dispatchEvent({type:T.EVENT_HEADER_HEIGHT_CHANGED})}},t.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.getAllDisplayedColumns(),i=e.some(function(r){return r.isSpanHeaderHeight()});this.comp.addOrRemoveCssClass("ag-header-allow-overflow",i)},t.prototype.onTabKeyDown=function(e){var i=this.gridOptionsService.get("enableRtl"),r=e.shiftKey!==i?_r.LEFT:_r.RIGHT;(this.headerNavigationService.navigateHorizontally(r,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},t.prototype.handleKeyDown=function(e){var i=null;switch(e.key){case W.LEFT:i=_r.LEFT;case W.RIGHT:Q(i)||(i=_r.RIGHT),this.headerNavigationService.navigateHorizontally(i,!1,e);break;case W.UP:i=_r.UP;case W.DOWN:Q(i)||(i=_r.DOWN),this.headerNavigationService.navigateVertically(i,null,e)&&e.preventDefault();break;default:return}},t.prototype.onFocusOut=function(e){var i=this.gridOptionsService.getDocument(),r=e.relatedTarget;!r&&this.eGui.contains(i.activeElement)||this.eGui.contains(r)||this.focusService.clearFocusedHeader()},t.prototype.onHeaderContextMenu=function(e,i,r){if(!(!e&&!r||!this.menuService.isHeaderContextMenuEnabled())){var n=(e??i).target;(n===this.eGui||n===this.ctrlsService.getHeaderRowContainerCtrl().getViewport())&&this.menuService.showHeaderContextMenu(void 0,e,r)}},t.prototype.mockContextMenuForIPad=function(e){if(tn()){var i=new zt(this.eGui),r=function(n){e(void 0,n.touchStart,n.touchEvent)};this.addManagedListener(i,zt.EVENT_LONG_TAP,r),this.addDestroyFunc(function(){return i.destroy()})}},zo([E("headerNavigationService")],t.prototype,"headerNavigationService",void 0),zo([E("focusService")],t.prototype,"focusService",void 0),zo([E("columnModel")],t.prototype,"columnModel",void 0),zo([E("ctrlsService")],t.prototype,"ctrlsService",void 0),zo([E("filterManager")],t.prototype,"filterManager",void 0),zo([E("menuService")],t.prototype,"menuService",void 0),t}
177(ee),KD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),YD=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},qD=function(o){KD(t,o);function t(){return o.call(this,t.TEMPLATE)||this}return t.prototype.postConstruct=function(){var e=this,i={addOrRemoveCssClass:function(s,a){return e.addOrRemoveCssClass(s,a)},setHeightAndMinHeight:function(s){e.getGui().style.height=s,e.getGui().style.minHeight=s}},r=this.createManagedBean(new $D);r.setComp(i,this.getGui(),this.getFocusableElement());var n=function(s){e.createManagedBean(s),e.appendChild(s)};n(new ep("left")),n(new ep(null)),n(new ep("right"))},t.TEMPLATE='<div class="ag-header" role="presentation"/>',YD([ie],t.prototype,"postConstruct",null),t}(We),XD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),tp=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},QD=function(o){XD(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.addResizeBar=function(e){var i=this,r={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e),includeTouch:!0,stopPropagationForTouch:!0};this.dragService.addDragSource(r);var n=function(){return i.dragService.removeDragSource(r)};return n},t.prototype.onDragStart=function(e,i){this.dragStartX=i.clientX,this.setResizeIcons();var r=i instanceof MouseEvent&&i.shiftKey===!0;e.onResizeStart(r)},t.prototype.setResizeIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!0),e.disableUserSelect(!0)},t.prototype.onDragStop=function(e,i){e.onResizeEnd(this.resizeAmount),this.resetIcons()},t.prototype.resetIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!1),e.disableUserSelect(!1)},t.prototype.onDragging=function(e,i){this.resizeAmount=i.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},tp([E("dragService")],t.prototype,"dragService",void 0),tp([E("ctrlsService")],t.prototype,"ctrlsService",void 0),t=tp([fe("horizontalResizeService")],t),t}(ee),JD=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),$o=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ZD=function(o){JD(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},t.prototype.showMenuAfterMouseEvent=function(e,i,r){var n=this;this.showPopup(e,function(s){n.popupService.positionPopupUnderMouseEvent({column:e,type:r,mouseEvent:i,ePopup:s})},r,i.target,this.menuService.isLegacyMenuEnabled())},t.prototype.showMenuAfterButtonClick=function(e,i,r){var n=this,s=-1,a="left",l=this.menuService.isLegacyMenuEnabled();!l&&this.gridOptionsService.get("enableRtl")&&(s=1,a="right");var u=l?void 0:4*s,c=l?void 0:4;
177this.showPopup(e,function(p){n.popupService.positionPopupByComponent({type:r,eventSource:i,ePopup:p,nudgeX:u,nudgeY:c,alignSide:a,keepWithinBounds:!0,position:"under",column:e})},r,i,l)},t.prototype.showPopup=function(e,i,r,n,s){var a=this,l=e?this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU"):void 0;if(!l||!e)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");var u=document.createElement("div");Lt(u,"presentation"),u.classList.add("ag-menu"),s||u.classList.add("ag-filter-menu"),this.tabListener=this.addManagedListener(u,"keydown",function(O){return a.trapFocusWithin(O,u)}),l.guiPromise.then(function(O){return u.appendChild(O)});var c,p=function(){var O;return(O=l.filterPromise)===null||O===void 0?void 0:O.then(function(A){var P;return(P=A==null?void 0:A.afterGuiDetached)===null||P===void 0?void 0:P.call(A)})},f=this.menuService.isColumnMenuAnchoringEnabled()?n??this.ctrlsService.getGridBodyCtrl().getGui():void 0,v=function(O){e.setMenuVisible(!1,"contextMenu");var A=O instanceof KeyboardEvent;if(a.tabListener&&(a.tabListener=a.tabListener()),A&&n&&Ti(n)){var P=a.focusService.findTabbableParent(n);P&&P.focus()}p(),a.dispatchVisibleChangedEvent(!1,r,e)},y=this.localeService.getLocaleTextFunc(),w=s&&r!=="columnFilter"?y("ariaLabelColumnMenu","Column Menu"):y("ariaLabelColumnFilter","Column Filter"),b=this.popupService.addPopup({modal:!0,eChild:u,closeOnEsc:!0,closedCallback:v,positionCallback:function(){return i(u)},anchorToElement:f,ariaLabel:w});b&&(this.hidePopup=c=b.hideFunc),l.filterPromise.then(function(O){i(u),O.afterGuiAttached&&O.afterGuiAttached({container:r,hidePopup:c})}),e.setMenuVisible(!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,r,e)},t.prototype.trapFocusWithin=function(e,i){e.key!==W.TAB||e.defaultPrevented||this.focusService.findNextFocusableElement(i,!1,e.shiftKey)||(e.preventDefault(),this.focusService.focusInto(i,e.shiftKey))},t.prototype.dispatchVisibleChangedEvent=function(e,i,r){var n={type:T.EVENT_COLUMN_MENU_VISIBLE_CHANGED,visible:e,switchingTab:!1,key:i,column:r??null};this.eventService.dispatchEvent(n)},t.prototype.isMenuEnabled=function(e){var i;return e.isFilterAllowed()&&((i=e.getColDef().menuTabs)!==null&&i!==void 0?i:["filterMenuTab"]).includes("filterMenuTab")},t.prototype.showMenuAfterContextMenuEvent=function(){},$o([E("filterManager")],t.prototype,"filterManager",void 0),$o([E("popupService")],t.prototype,"popupService",void 0),$o([E("focusService")],t.prototype,"focusService",void 0),$o([E("ctrlsService")],t.prototype,"ctrlsService",void 0),$o([E("menuService")],t.prototype,"menuService",void 0),t=$o([fe("filterMenuFactory")],t),t}(ee),e0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Vg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},vs;(function(o){o.TAB_GUARD="ag-tab-guard",o.TAB_GUARD_TOP="ag-tab-guard-top",o.TAB_GUARD_BOTTOM="ag-tab-guard-bottom"})(vs||(vs={}));var t0=function(o){e0(t,o);function t(e){var i=o.call(this)||this;i.skipTabGuardFocus=!1,i.forcingFocusOut=!1;var r=e.comp,n=e.eTopGuard,s=e.eBottomGuard,a=e.focusTrapActive,l=e.forceFocusOutWhenTabGuardsAreEmpty,u=e.focusInnerElement,c=e.onFocusIn,p=e.onFocusOut,f=e.shouldStopEventPropagation,v=e.onTabKeyDown,y=e.handleKeyDown,w=e.eFocusableElement;return i.comp=r,i.eTopGuard=n,i.eBottomGuard=s,i.providedFocusInnerElement=u,i.eFocusableElement=w,i.focusTrapActive=!!a,i.forceFocusOutWhenTabGuardsAreEmpty=!!l,i.providedFocusIn=c,i.providedFocusOut=p,i.providedShouldStopEventPropagation=f,i.providedOnTabKeyDown=v,i.providedHandleKeyDown=y,i}return t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new Ao(this.eFocusableElement,{shouldStopEventPropagation:function(){return e.shouldStopEventPropagation()},onTabKeyDown:function(i){return e.onTabKeyDown(i)},handleKeyDown:function(i){return e.handleKeyDown(i)},onFocusIn:function(i){return e.onFocusIn(i)},onFocusOut:function(i){return e.onFocusOut(i)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEac
177h(function(i){return e.addManagedListener(i,"focus",e.onFocus.bind(e))})},t.prototype.handleKeyDown=function(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)},t.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},t.prototype.shouldStopEventPropagation=function(){return this.providedShouldStopEventPropagation?this.providedShouldStopEventPropagation():!1},t.prototype.activateTabGuards=function(){if(!this.forcingFocusOut){var e=this.gridOptionsService.get("tabIndex");this.comp.setTabIndex(e.toString())}},t.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},t.prototype.onFocus=function(e){if(this.skipTabGuardFocus){this.skipTabGuardFocus=!1;return}if(this.forceFocusOutWhenTabGuardsAreEmpty){var i=this.focusService.findFocusableElements(this.eFocusableElement,".ag-tab-guard").length===0;if(i){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}}var r=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(r):this.focusInnerElement(r)},t.prototype.findNextElementOutsideAndFocus=function(e){var i=this.gridOptionsService.getDocument(),r=this.focusService.findFocusableElements(i.body,null,!0),n=r.indexOf(e?this.eTopGuard:this.eBottomGuard);if(n!==-1){var s,a;e?(s=0,a=n):(s=n+1,a=r.length);var l=r.slice(s,a),u=this.gridOptionsService.get("tabIndex");l.sort(function(c,p){var f=parseInt(c.getAttribute("tabindex")||"0"),v=parseInt(p.getAttribute("tabindex")||"0");return v===u?1:f===u?-1:f===0?1:v===0?-1:f-v}),l[e?l.length-1:0].focus()}},t.prototype.onFocusIn=function(e){this.focusTrapActive||(this.providedFocusIn&&this.providedFocusIn(e),this.deactivateTabGuards())},t.prototype.onFocusOut=function(e){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(e),this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards())},t.prototype.onTabKeyDown=function(e){var i=this;if(this.providedOnTabKeyDown){this.providedOnTabKeyDown(e);return}if(!this.focusTrapActive&&!e.defaultPrevented){var r=this.tabGuardsAreActive();r&&this.deactivateTabGuards();var n=this.getNextFocusableElement(e.shiftKey);r&&setTimeout(function(){return i.activateTabGuards()},0),n&&(n.focus(),e.preventDefault())}},t.prototype.focusInnerElement=function(e){e===void 0&&(e=!1);var i=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(i.splice(0,1),i.splice(i.length-1,1)),i.length&&i[e?i.length-1:0].focus({preventScroll:!0})},t.prototype.getNextFocusableElement=function(e){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e)},t.prototype.forceFocusOutOfContainer=function(e){var i=this;if(e===void 0&&(e=!1),!this.forcingFocusOut){var r=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,r.focus(),window.setTimeout(function(){i.forcingFocusOut=!1,i.activateTabGuards()})}},t.prototype.isTabGuard=function(e){return e===this.eTopGuard||e===this.eBottomGuard},Vg([E("focusService")],t.prototype,"focusService",void 0),Vg([ie],t.prototype,"postConstruct",null),t}(ee),i0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),r0=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},n0=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},ul=function(o){i0(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.initialiseTabGuard=function(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();var i=[this.eTopGuard,this.eBottomGuard],r={setTabIndex:function(n){i.forEac
177h(function(s){return n!=null?s.setAttribute("tabindex",n):s.removeAttribute("tabindex")})}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new t0({comp:r,focusTrapActive:!!e.focusTrapActive,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:e.onFocusIn,onFocusOut:e.onFocusOut,focusInnerElement:e.focusInnerElement,handleKeyDown:e.handleKeyDown,onTabKeyDown:e.onTabKeyDown,shouldStopEventPropagation:e.shouldStopEventPropagation,forceFocusOutWhenTabGuardsAreEmpty:e.forceFocusOutWhenTabGuardsAreEmpty}))},t.prototype.createTabGuard=function(e){var i=document.createElement("div"),r=e==="top"?vs.TAB_GUARD_TOP:vs.TAB_GUARD_BOTTOM;return i.classList.add(vs.TAB_GUARD,r),Lt(i,"presentation"),i},t.prototype.addTabGuards=function(e,i){this.eFocusableElement.insertAdjacentElement("afterbegin",e),this.eFocusableElement.insertAdjacentElement("beforeend",i)},t.prototype.removeAllChildrenExceptTabGuards=function(){var e=[this.eTopGuard,this.eBottomGuard];Nt(this.getFocusableElement()),this.addTabGuards.apply(this,n0([],r0(e),!1))},t.prototype.forceFocusOutOfContainer=function(e){e===void 0&&(e=!1),this.tabGuardCtrl.forceFocusOutOfContainer(e)},t.prototype.appendChild=function(e,i){al(e)||(e=e.getGui());var r=this.eBottomGuard;r?r.insertAdjacentElement("beforebegin",e):o.prototype.appendChild.call(this,e,i)},t}(We),o0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Yl=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n};(function(o){o0(t,o);function t(e){var i=o.call(this,t.getTemplate(e.cssClass))||this;return i.items=[],i.tabbedItemScrollMap=new Map,i.params=e,e.items&&e.items.forEach(function(r){return i.addItem(r)}),i}return t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),focusInnerElement:this.focusInnerElement.bind(this),focusTrapActive:!0}),this.addDestroyFunc(function(){var i,r,n;return(n=(r=(i=e.activeItem)===null||i===void 0?void 0:i.tabbedItem)===null||r===void 0?void 0:r.afterDetachedCallback)===null||n===void 0?void 0:n.call(r)})},t.getTemplate=function(e){return'<div class="ag-tabs '.concat(e,`"> 178 <div ref="eHeader" role="tablist" class="ag-tabs-header `).concat(e?"".concat(e,"-header"):"",`"></div> 179 <div ref="eBody" role="presentation" class="ag-tabs-body `).concat(e?"".concat(e,"-body"):"",`"></div> 180 </div>`)},t.prototype.handleKeyDown=function(e){var i=this.gridOptionsService.getDocument();switch(e.key){case W.RIGHT:case W.LEFT:if(!this.eHeader.contains(i.activeElement))return;var r=e.key===W.RIGHT,n=this.gridOptionsService.get("enableRtl"),s=this.items.indexOf(this.activeItem),a=r!==n?Math.min(s+1,this.items.length-1):Math.max(s-1,0);if(s===a)return;e.preventDefault();var l=this.items[a];this.showItemWrapper(l),l.eHeaderButton.focus();break;case W.UP:case W.DOWN:e.stopPropagation();break}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var i=this,r=i.focusService,n=i.eHeader,s=i.eBody,a=i.activeItem,l=this.gridOptionsService.getDocument(),u=l.activeElement,c=e.target;if(e.preventDefault(),n.contains(u)){this.focusBody(e.shiftKey);return}var p=null;r.isTargetUnderManagedComponent(s,c)&&(e.shiftKey&&(p=this.focusService.findFocusableElementBeforeTabGuard(s,c)),p||(p=a.eHeaderButton)),!p&&s.contains(u)&&(p=r.findNextFocusableElement(s,!1,e.shiftKey),p||this.focusHeader()),p&&p.focus()}}
180,t.prototype.focusInnerElement=function(e){e?this.focusHeader():this.focusBody(!0)},t.prototype.focusHeader=function(){this.activeItem.eHeaderButton.focus()},t.prototype.focusBody=function(e){this.focusService.focusInto(this.eBody,e)},t.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},t.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},t.prototype.addItem=function(e){var i=document.createElement("span");Lt(i,"tab"),i.setAttribute("tabindex","-1"),i.appendChild(e.title),i.classList.add("ag-tab"),this.eHeader.appendChild(i),Hn(i,e.titleLabel);var r={tabbedItem:e,eHeaderButton:i};this.items.push(r),i.addEventListener("click",this.showItemWrapper.bind(this,r))},t.prototype.showItem=function(e){var i=this.items.find(function(r){return r.tabbedItem===e});i&&this.showItemWrapper(i)},t.prototype.showItemWrapper=function(e){var i=this,r,n,s,a,l,u,c=e.tabbedItem,p=e.eHeaderButton;if((n=(r=this.params).onItemClicked)===null||n===void 0||n.call(r,{item:c}),this.activeItem===e){(a=(s=this.params).onActiveItemClicked)===null||a===void 0||a.call(s);return}this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),Nt(this.eBody),c.bodyPromise.then(function(f){i.eBody.appendChild(f);var v=!i.focusService.isKeyboardMode();if(i.focusService.focusInto(i.eBody,!1,v),c.afterAttachedCallback&&c.afterAttachedCallback(i.afterAttachedParams),i.params.keepScrollPosition){var y=c.getScrollableContainer&&c.getScrollableContainer()||f;i.lastScrollListener=i.addManagedListener(y,"scroll",function(){i.tabbedItemScrollMap.set(c.name,y.scrollTop)});var w=i.tabbedItemScrollMap.get(c.name);w!==void 0&&setTimeout(function(){y.scrollTop=w},0)}}),this.activeItem&&(this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),(u=(l=this.activeItem.tabbedItem).afterDetachedCallback)===null||u===void 0||u.call(l)),p.classList.add("ag-tab-selected"),this.activeItem=e},Yl([E("focusService")],t.prototype,"focusService",void 0),Yl([se("eHeader")],t.prototype,"eHeader",void 0),Yl([se("eBody")],t.prototype,"eBody",void 0),Yl([ie],t.prototype,"postConstruct",null),t})(ul);var s0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),a0=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},l0=50,u0=function(o){s0(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.polyfillFunctions=[],e}return t.prototype.observeResize=function(e,i){var r=this,n=this.gridOptionsService.getWindow(),s=function(){var c=new n.ResizeObserver(i);return c.observe(e),function(){return c.disconnect()}},a=function(){var c,p,f=(c=e==null?void 0:e.clientWidth)!==null&&c!==void 0?c:0,v=(p=e==null?void 0:e.clientHeight)!==null&&p!==void 0?p:0,y=!0,w=function(){var b,O;if(y){var A=(b=e==null?void 0:e.clientWidth)!==null&&b!==void 0?b:0,P=(O=e==null?void 0:e.clientHeight)!==null&&O!==void 0?O:0,L=A!==f||P!==v;L&&(f=A,v=P,i()),r.doNextPolyfillTurn(w)}};return w(),function(){return y=!1}},l=this.gridOptionsService.get("suppressBrowserResizeObserver"),u=!!n.ResizeObserver;return u&&!l?s():this.getFrameworkOverrides().wrapIncoming(function(){return a()},"resize-observer")},t.prototype.doNextPolyfillTurn=function(e){this.polyfillFunctions.push(e),this.schedulePolyfill()},t.prototype.schedulePolyfill=function(){var e=this;if(!this.polyfillScheduled){var i=function(){var r=e.polyfillFunctions;e.polyfillScheduled=!1,e.polyfillFunctions=[],r.forEach(function(n){return n()})};this.polyfillScheduled=!0,window.setTimeout(i,l0)}},t=a0([fe("resizeObserverService")],t),t}
180(ee),c0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ql=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},d0=function(o){c0(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.createTasksP1={list:[],sorted:!1},e.createTasksP2={list:[],sorted:!1},e.destroyTasks=[],e.ticking=!1,e.scrollGoingDown=!0,e.lastPage=0,e.lastScrollTop=0,e.taskCount=0,e.cancelledTasks=new Set,e}return t.prototype.setScrollTop=function(e){var i=this.gridOptionsService.get("pagination");if(this.scrollGoingDown=e>=this.lastScrollTop,i&&e===0){var r=this.paginationProxy.getCurrentPage();r!==this.lastPage&&(this.lastPage=r,this.scrollGoingDown=!0)}this.lastScrollTop=e},t.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsService.get("suppressAnimationFrame")},t.prototype.isOn=function(){return this.useAnimationFrame},t.prototype.verifyAnimationFrameOn=function(e){this.useAnimationFrame===!1&&console.warn("AG Grid: AnimationFrameService.".concat(e," called but animation frames are off"))},t.prototype.createTask=function(e,i,r){this.verifyAnimationFrameOn(r);var n={task:e,index:i,createOrder:++this.taskCount};this.addTaskToList(this[r],n),this.schedule()},t.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},t.prototype.addTaskToList=function(e,i){e.list.push(i),e.sorted=!1},t.prototype.sortTaskList=function(e){if(!e.sorted){var i=this.scrollGoingDown?1:-1;e.list.sort(function(r,n){return r.index!==n.index?i*(n.index-r.index):n.createOrder-r.createOrder}),e.sorted=!0}},t.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},t.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");for(var i=this.createTasksP1,r=i.list,n=this.createTasksP2,s=n.list,a=this.destroyTasks,l=new Date().getTime(),u=new Date().getTime()-l,c=e<=0,p=this.ctrlsService.getGridBodyCtrl();c||u<e;){var f=p.getScrollFeature().scrollGridIfNeeded();if(!f){var v=void 0;if(r.length)this.sortTaskList(i),v=r.pop().task;else if(s.length)this.sortTaskList(n),v=s.pop().task;else if(a.length)v=a.pop();else{this.cancelledTasks.clear();break}this.cancelledTasks.has(v)||v()}u=new Date().getTime()-l}r.length||s.length||a.length?this.requestFrame():this.stopTicking()},t.prototype.stopTicking=function(){this.ticking=!1},t.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},t.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},t.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60);this.requestAnimationFrame(e)},t.prototype.requestAnimationFrame=function(e){var i=this.gridOptionsService.getWindow();i.requestAnimationFrame?i.requestAnimationFrame(e):i.webkitRequestAnimationFrame?i.webkitRequestAnimationFrame(e):i.setTimeout(e,0)},t.prototype.isQueueEmpty=function(){return!this.ticking},t.prototype.debounce=function(e){var i=this,r=!1;return function(){if(!i.isOn()){window.setTimeout(e,0);return}r||(r=!0,i.addDestroyTask(function(){r=!1,e()}))}},ql([E("ctrlsService")],t.prototype,"ctrlsService",void 0),ql([E("paginationProxy")],t.prototype,"paginationProxy",void 0),ql([ie],t.prototype,"init",null),t=ql([fe("animationFrameService")],t),t}(ee),Qe;(function(o){o.EVERYTHING="group",o.FILTER="filter",o.SORT="sort",o.MAP="map",o.AGGREGATE="aggregate",o.FILTER_AGGREGATES="filter_aggregates",o.PIVOT="pivot",o.NOTHING="nothing"})(Qe||(Qe={}));
180var p0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ip=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},f0=function(o){p0(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.isClientSideRowModel=this.rowModel.getType()==="clientSide"},t.prototype.expandRows=function(e){if(this.isClientSideRowModel){var i=new Set(e);this.rowModel.forEachNode(function(r){r.id&&i.has(r.id)&&(r.expanded=!0)}),this.onGroupExpandedOrCollapsed()}},t.prototype.getExpandedRows=function(){var e=[];return this.rowModel.forEachNode(function(i){var r=i.expanded,n=i.id;r&&n&&e.push(n)}),e},t.prototype.expandAll=function(e){this.isClientSideRowModel&&this.rowModel.expandOrCollapseAll(e)},t.prototype.setRowNodeExpanded=function(e,i,r){e&&(r&&e.parent&&e.parent.level!==-1&&this.setRowNodeExpanded(e.parent,i,r),e.setExpanded(i))},t.prototype.onGroupExpandedOrCollapsed=function(){this.isClientSideRowModel&&this.rowModel.refreshModel({step:Qe.MAP})},ip([E("rowModel")],t.prototype,"rowModel",void 0),ip([ie],t.prototype,"postConstruct",null),t=ip([fe("expansionService")],t),t}(ee),h0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),kr=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},v0=function(o){h0(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.postConstruct=function(){var e;this.activeMenuFactory=(e=this.enterpriseMenuFactory)!==null&&e!==void 0?e:this.filterMenuFactory},t.prototype.showColumnMenu=function(e){this.showColumnMenuCommon(this.activeMenuFactory,e,"columnMenu")},t.prototype.showFilterMenu=function(e){var i=this.enterpriseMenuFactory&&this.isLegacyMenuEnabled()?this.enterpriseMenuFactory:this.filterMenuFactory;this.showColumnMenuCommon(i,e,e.containerType,!0)},t.prototype.showHeaderContextMenu=function(e,i,r){this.activeMenuFactory.showMenuAfterContextMenuEvent(e,i,r)},t.prototype.showContextMenu=function(e){var i,r,n,s=e.column,a=e.anchorToElement,l=e.rowNode,u=e.value;(i=this.contextMenuFactory)===null||i===void 0||i.onContextMenu((r=e.mouseEvent)!==null&&r!==void 0?r:null,(n=e.touchEvent)!==null&&n!==void 0?n:null,l??null,s??null,u,a)},t.prototype.showColumnChooser=function(e){var i;(i=this.columnChooserFactory)===null||i===void 0||i.showColumnChooser(e)},t.prototype.hidePopupMenu=function(){var e;(e=this.contextMenuFactory)===null||e===void 0||e.hideActiveMenu(),this.activeMenuFactory.hideActiveMenu()},t.prototype.hideColumnChooser=function(){var e;(e=this.columnChooserFactory)===null||e===void 0||e.hideActiveColumnChooser()},t.prototype.isColumnMenuInHeaderEnabled=function(e){var i=e.getColDef(),r=i.suppressMenu,n=i.suppressHeaderMenuButton,s=n??r;return!s&&this.activeMenuFactory.isMenuEnabled(e)&&(this.isLegacyMenuEnabled()||!!this.enterpriseMenuFactory)},t.prototype.isFilterMenuInHeaderEnabled=function(e){return!e.getColDef().suppressHeaderFilterButton&&this.filterManager.isFilterAllowed(e)},t.prototype.isHeaderContextMenuEnabled=function(e){return!(e!=null&&e.getColDef().suppressHeaderContextMenu)&&this.getColumnMenuType()==="new"},t.prototype.isHeaderMenuButtonAlwaysShowEnabled=function(){return this.isSuppressMenuHide()},t.prototype.isHeaderMenuButtonEnabled=function(){var e=!this.isSuppressMenuHide(),i=tn()&&e;return!i},t.prototype.isHeaderFilterButtonEnabled=function(e){return this.isFilterMenuInHeaderEnabled(e)&&!this.isLegacyMenuEnabled()&&!this.isFloatingFilterButtonDisplayed(e)},t.prototype.isFilterMenuItemEnabled=function(e){return this.filterManager.isFilterAllowed(e)&&!this.isLegacyMenuEnabled()&&!this.isFilterMenuInHeaderEnabled(e)&&!this.isFloatingFilterButtonDisplayed(e)},t.prototype.isColumnMenuAnchoringEnabled=function(){return!this.isLegacyMenuEnabled()},t.prototype.areAdditionalColumnMenuItemsEnabled=function(){return this.getColumnMenuType()==="new"},t.prototype.isLegacyMenuEnabled=function(){return this.getColumnMenuType()==="legacy"},t.prototype.isFloatingFilterButtonEnabled=function(e){var i,r=e.getColDef(),n=(i=r.floatingFilterComponentParams)===null||i===void 0?void 0:i.suppressFilterButton;return n!=null&&Le("As of v31.1, 'colDef.floatingFilterComponentParams.suppressFilterButton' is deprecated. Use 'colDef.suppressFloatingFilterButton' instead."),r.suppressFloatingFilterButton==null?!n:!r.suppressFloatingFilterButton},t.prototype.getColumnMenuType=function(){var e;
180return(e=this.gridOptionsService.get("columnMenu"))!==null&&e!==void 0?e:"legacy"},t.prototype.isFloatingFilterButtonDisplayed=function(e){return!!e.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(e)},t.prototype.isSuppressMenuHide=function(){var e=this.gridOptionsService.get("suppressMenuHide");return this.isLegacyMenuEnabled()||this.gridOptionsService.exists("suppressMenuHide")?e:!0},t.prototype.showColumnMenuCommon=function(e,i,r,n){var s=this,a=i.column,l=i.positionBy;if(l==="button"){var u=i.buttonElement;e.showMenuAfterButtonClick(a,u,r,n)}else if(l==="mouse"){var c=i.mouseEvent;e.showMenuAfterMouseEvent(a,c,r,n)}else a&&(this.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(a,"auto"),this.animationFrameService.requestAnimationFrame(function(){var p=s.ctrlsService.getHeaderRowContainerCtrl(a.getPinned()).getHeaderCtrlForColumn(a);e.showMenuAfterButtonClick(a,p.getAnchorElementForMenu(n),r,!0)}))},kr([nt("enterpriseMenuFactory")],t.prototype,"enterpriseMenuFactory",void 0),kr([E("filterMenuFactory")],t.prototype,"filterMenuFactory",void 0),kr([nt("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),kr([E("ctrlsService")],t.prototype,"ctrlsService",void 0),kr([E("animationFrameService")],t.prototype,"animationFrameService",void 0),kr([nt("columnChooserFactory")],t.prototype,"columnChooserFactory",void 0),kr([E("filterManager")],t.prototype,"filterManager",void 0),kr([ie],t.prototype,"postConstruct",null),t=kr([fe("menuService")],t),t}(ee),g0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),fa=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},y0=function(o){g0(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){e.centerRowContainerCtrl=i.centerRowContainerCtrl})},t.prototype.getPreferredWidthForColumn=function(e,i){var r=this.getHeaderCellForColumn(e);if(!r)return-1;var n=this.rowRenderer.getAllCellsForColumn(e);return i||n.push(r),this.addElementsToContainerAndGetWidth(n)},t.prototype.getPreferredWidthForColumnGroup=function(e){var i=this.getHeaderCellForColumn(e);return i?this.addElementsToContainerAndGetWidth([i]):-1},t.prototype.addElementsToContainerAndGetWidth=function(e){var i=this,r=document.createElement("form");r.style.position="fixed";var n=this.centerRowContainerCtrl.getContainerElement();e.forEach(function(l){return i.cloneItemIntoDummy(l,r)}),n.appendChild(r);var s=r.offsetWidth;n.removeChild(r);var a=this.getAutoSizePadding();return s+a},t.prototype.getAutoSizePadding=function(){return this.gridOptionsService.get("autoSizePadding")},t.prototype.getHeaderCellForColumn=function(e){var i=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach(function(r){var n=r.getHtmlElementForColumnHeader(e);n!=null&&(i=n)}),i},t.prototype.cloneItemIntoDummy=function(e,i){var r=e.cloneNode(!0);r.style.width="",r.style.position="static",r.style.left="";var n=document.createElement("div"),s=n.classList,a=["ag-header-cell","ag-header-group-cell"].some(function(f){return r.classList.contains(f)});a?(s.add("ag-header","ag-header-row"),n.style.position="static"):s.add("ag-row");for(var l=e.parentElement;l;){var u=["ag-header-row","ag-row"].some(function(f){return l.classList.contains(f)});if(u){for(var c=0;c<l.classList.length;c++){var p=l.classList[c];p!="ag-row-position-absolute"&&s.add(p)}break}l=l.parentElement}n.appendChild(r),i.appendChild(n)},fa([E("rowRenderer")],t.prototype,"rowRenderer",void 0),fa([E("ctrlsService")],t.prototype,"ctrlsService",void 0),fa([E("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),fa([ie],t.prototype,"postConstruct",null),t=fa([fe("autoWidthCalculator")],t),t}
180(ee),m0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Xl=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},C0=function(o){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&o[t],i=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},w0=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},S0=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},E0=function(o){m0(t,o);function t(e,i){var r=o.call(this)||this;return r.createRowCon=e,r.destroyRowCtrls=i,r.stickyRowCtrls=[],r.containerHeight=0,r}return t.prototype.postConstruct=function(){var e=this;this.isClientSide=this.rowModel.getType()==="clientSide",this.ctrlsService.whenReady(function(i){e.gridBodyCtrl=i.gridBodyCtrl})},t.prototype.getStickyRowCtrls=function(){return this.stickyRowCtrls},t.prototype.checkStickyRows=function(){var e=this,i=0;if(!this.gridOptionsService.isGroupRowsSticky())return this.refreshNodesAndContainerHeight([],i);for(var r=[],n=this.rowRenderer.getFirstVisibleVerticalPixel(),s=function(y){var w,b,O;r.push(y);var A;if(e.isClientSide){for(var P=y;P.isExpandable()&&P.expanded;)if(P.master)P=P.detailNode;else if(P.childrenAfterSort){if(P.childrenAfterSort.length===0)break;P=ot(P.childrenAfterSort)}A=P.rowTop+P.rowHeight}else if(y.master)A=y.detailNode.rowTop+y.detailNode.rowHeight;else{var L=(w=y.childStore)===null||w===void 0?void 0:w.getStoreBounds();A=((b=L==null?void 0:L.heightPx)!==null&&b!==void 0?b:0)+((O=L==null?void 0:L.topPx)!==null&&O!==void 0?O:0)}var x=n+i+y.rowHeight;A<x?y.stickyRowTop=i+(A-x):y.stickyRowTop=i,i=0,r.forEach(function(H){var g=H.stickyRowTop+H.rowHeight;i<g&&(i=g)})},a=0;;){var l=n+i,u=this.rowModel.getRowIndexAtPixel(l),c=this.rowModel.getRow(u);if(c==null||c.level<0||a++===100)break;for(var p=[],f=c.parent;f.level>=0;)p.push(f),f=f.parent;var v=p.reverse().find(function(y){return r.indexOf(y)<0&&y.displayed});if(v){s(v);continue}if(c.isExpandable()&&c.expanded&&c.rowTop<l){s(c);continue}break}return this.refreshNodesAndContainerHeight(r,i)},t.prototype.refreshStickyNode=function(e){for(var i=[],r=0;r<this.stickyRowCtrls.length;r++){var n=this.stickyRowCtrls[r].getRowNode();n!==e&&i.push(n)}this.refreshNodesAndContainerHeight(i,this.containerHeight)&&this.checkStickyRows()},t.prototype.refreshNodesAndContainerHeight=function(e,i){var r,n,s,a=this,l=!1,u=this.stickyRowCtrls.filter(function(b){return e.indexOf(b.getRowNode())===-1}),c=e.filter(function(b){return a.stickyRowCtrls.findIndex(function(O){return O.getRowNode()===b})===-1});(u.length||c.length)&&(l=!0);var p={};u.forEach(function(b){p[b.getRowNode().id]=b,a.stickyRowCtrls=a.stickyRowCtrls.filter(function(O){return O!==b})});try{for(var f=C0(Object.values(p)),v=f.next();!v.done;v=f.next()){var y=v.value;y.getRowNode().sticky=!1}}catch(b){r={error:b}}finally{try{v&&!v.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}this.destroyRowCtrls(p,!1);var w=c.map(function(b){return b.sticky=!0,a.createRowCon(b,!1,!1)});return(s=this.stickyRowCtrls).push.apply(s,S0([],w0(w),!1)),this.stickyRowCtrls.forEac
180h(function(b){return b.setRowTop(b.getRowNode().stickyRowTop)}),this.stickyRowCtrls.sort(function(b,O){return O.getRowNode().rowIndex-b.getRowNode().rowIndex}),this.containerHeight!==i&&(this.containerHeight=i,this.gridBodyCtrl.setStickyTopHeight(i),l=!0),l},Xl([E("rowModel")],t.prototype,"rowModel",void 0),Xl([E("rowRenderer")],t.prototype,"rowRenderer",void 0),Xl([E("ctrlsService")],t.prototype,"ctrlsService",void 0),Xl([ie],t.prototype,"postConstruct",null),t}(ee),_0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ji=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},dn=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},pn=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},O0=function(o){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&o[t],i=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},b0=function(o){_0(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.destroyFuncsForColumnListeners=[],e.rowCtrlsByRowIndex={},e.zombieRowCtrls={},e.allRowCtrls=[],e.topRowCtrls=[],e.bottomRowCtrls=[],e.refreshInProgress=!1,e.dataFirstRenderedFired=!1,e.setupRangeSelectionListeners=function(){var i=function(){e.getAllCellCtrls().forEach(function(l){return l.onRangeSelectionChanged()})},r=function(){e.getAllCellCtrls().forEach(function(l){return l.updateRangeBordersIfRangeCount()})},n=function(){e.eventService.addEventListener(T.EVENT_RANGE_SELECTION_CHANGED,i),e.eventService.addEventListener(T.EVENT_COLUMN_MOVED,r),e.eventService.addEventListener(T.EVENT_COLUMN_PINNED,r),e.eventService.addEventListener(T.EVENT_COLUMN_VISIBLE,r)},s=function(){e.eventService.removeEventListener(T.EVENT_RANGE_SELECTION_CHANGED,i),e.eventService.removeEventListener(T.EVENT_COLUMN_MOVED,r),e.eventService.removeEventListener(T.EVENT_COLUMN_PINNED,r),e.eventService.removeEventListener(T.EVENT_COLUMN_VISIBLE,r)};e.addDestroyFunc(function(){return s()}),e.addManagedPropertyListener("enableRangeSelection",function(l){var u=l.currentValue;u?n():s()});var a=e.gridOptionsService.get("enableRangeSelection");a&&n()},e}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.initialise()})},t.prototype.initialise=function(){var e=this;if(this.addManagedListener(this.eventService,T.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,T.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_BODY_SCROLL,this.onBodyScroll.bind(this)),this.addManagedListener(this.eventService,T.EVENT_BODY_HEIGHT_CHANGED,this.redraw.bind(this)),this.addManagedPropertyListeners(["domLayout","embedFullWidthRows"],function(){return e.onDomLayoutChanged()}),this.addManagedPropertyListeners(["suppressMaxRenderedRowRestriction","rowBuffer"],function(){return e.redraw()}),this.addManagedPropertyListeners(["suppressCellFocus","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],function(){return e.redrawRows()}),this.gridOptionsService.isGroupRowsSticky()){var i=this.rowModel.getType();(i==="clientSide"||i==="serverSide")&&(this.stickyRowFeature=this.createManagedBean(new E0(this.createRowCon.bind(this),this.destroyRowCtrls.bind(this))))}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsService.isDomLayout("print"),this.embedFullWidthRows=this.printLayout||this.gridOptionsService.get("embedFullWidthRows"),this.redrawAfterModelUpdate()},t.prototype.initialiseCache=function(){if(this.gridOptionsService.get("keepDetailRows")){var e=this.getKeepDetailRowsCount(),i=e??3;this.cachedRowCtrls=new T0(i)}},t.prototype.getKeepDetailRowsCount=function(){return this.gridOptionsService.get("keepDetailRowsCount")},t.prototype.getStickyTopRowCtrls=function(){return this.stickyRowFeature?this.stickyRowFeature.getStickyRowCtrls():[]},t.prototype.updateAllRowCtrls=function(){var e=Rn(this.rowCtrlsByRowIndex),i=Rn(this.zombieRowCtrls),r=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];i.length>0||r.length>0?this.allRowCtrls=pn(pn(pn([],dn(e),!1),dn(i),!1),dn(r),!1):this.allRowCtrls=e},t.prototype.onCellFocusChanged=function(e){this.getAllCellCtrls().forEac
180h(function(i){return i.onCellFocused(e)}),this.getFullWidthRowCtrls().forEach(function(i){return i.onFullWidthRowFocused(e)})},t.prototype.registerCellEventListeners=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_CELL_FOCUSED,function(i){e.onCellFocusChanged(i)}),this.addManagedListener(this.eventService,T.EVENT_CELL_FOCUS_CLEARED,function(){e.onCellFocusChanged()}),this.addManagedListener(this.eventService,T.EVENT_FLASH_CELLS,function(i){e.getAllCellCtrls().forEach(function(r){return r.onFlashCells(i)})}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_HOVER_CHANGED,function(){e.getAllCellCtrls().forEach(function(i){return i.onColumnHover()})}),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,function(){e.getAllCellCtrls().forEach(function(i){return i.onDisplayedColumnsChanged()})}),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,function(){e.printLayout&&e.getAllCellCtrls().forEach(function(i){return i.onLeftChanged()})}),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,T.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},t.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach(function(e){return e()}),this.destroyFuncsForColumnListeners.length=0},t.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var i=this.columnModel.getAllGridColumns();i.forEach(function(r){var n=function(p){e.getAllCellCtrls().forEach(function(f){f.getColumn()===r&&p(f)})},s=function(){n(function(p){return p.onLeftChanged()})},a=function(){n(function(p){return p.onWidthChanged()})},l=function(){n(function(p){return p.onFirstRightPinnedChanged()})},u=function(){n(function(p){return p.onLastLeftPinnedChanged()})},c=function(){n(function(p){return p.onColDefChanged()})};r.addEventListener("leftChanged",s),r.addEventListener("widthChanged",a),r.addEventListener("firstRightPinnedChanged",l),r.addEventListener("lastLeftPinnedChanged",u),r.addEventListener("colDefChanged",c),e.destroyFuncsForColumnListeners.push(function(){r.removeEventListener("leftChanged",s),r.removeEventListener("widthChanged",a),r.removeEventListener("firstRightPinnedChanged",l),r.removeEventListener("lastLeftPinnedChanged",u),r.removeEventListener("colDefChanged",c)})})},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsService.isDomLayout("print"),i=e||this.gridOptionsService.get("embedFullWidthRows"),r=i!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=i,r&&this.redrawAfterModelUpdate({domLayoutChanged:!0})},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.onPageLoaded=function(e){var i={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(i)},t.prototype.getAllCellsForColumn=function(e){var i=[];return this.getAllRowCtrls().forEach(function(r){var n=r.getCellElement(e);n&&i.push(n)}),i},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},t.prototype.getTopRowCtrls=function(){return this.topRowCtrls},t.prototype.getCentreRowCtrls=function(){return this.allRowCtrls},t.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},t.prototype.refreshFloatingRows=function(e,i){var r=this;e.forEach(function(n){n.destroyFirstPass(),n.destroySecondPass()}),e.length=0,i&&i.forEach(function(n){var s=new go(n,r.beans,!1,!1,r.printLayout);e.push(s)})},t.prototype.onPinnedRowDataChanged=function(){var e={recycleRows:!0};this.redrawAfterModelUpdate(e)},t.prototype.redrawRow=function(e,i){var r=this,n;if(i===void 0&&(i=!1),e.sticky)this.stickyRowFeature.refreshStickyNode(e);else if(!((n=this.cachedRowCtrls)===null||n===void 0)&&n.has(e)){this.cachedRowCtrls.removeRow(e);return}else{var s=function(a){var l=a[e.rowIndex];l&&l.getRowNode()===e&&(l.destroyFirstPass(),l.destroySecondPass(),a[e.rowIndex]=r.createRowCon(e,!1,!1))};switch(e.rowPinned){case"top":s(this.topRowCtrls);break;case"bottom":s(this.bottomRowCtrls);break;default:s(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}i||this.dispatchDisplayedRowsChanged(!1)},t.prototype.redrawRows=function(e){var i=this,r=e!=null;if(r){e==null||e.forEach(function(n){return i.redrawRow(n,!0)}),this.dispatchDisplayedRowsChanged(!1);return}this.redrawAfterModelUpdate()},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var i=e!=null&&e.suppressKeepFocus?null:this.focusService.getFocusCellToUseAfterRefresh();if(i==null)return null;var r=this.gridOptionsService.getDocument(),n=r.activeElement,s=this.gridOptionsService.getDomData(n,vo.DOM_DATA_KEY_CELL_CTRL),a=this.gridOptionsService.getDomData(n,go.DOM_DATA_KEY_ROW_CTRL),l=s||a;return l?i:null},t.prototype.redrawAfterModelUpdate=function(e){e===void 0&&(e={}),this.getLockOnRefresh();var i=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);var r=!e.domLayoutChanged&&!!e.recycleRows,n=e.animate&&this.gridOptionsService.isAnimateRows(),s=r?this.getRowsToRecycle():null;r||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature&&this.stickyRowFeature.checkStickyRows(),this.recycleRows(s,n),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),i!=null&&this.restoreFocusedCell(i),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var i=e.newData||e.newPage,r=this.gridOptionsService.get("suppressScrollOnNewData");
180i&&!r&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},t.prototype.updateContainerHeights=function(){if(this.printLayout){this.rowContainerHeightService.setModelHeight(null);return}var e=this.paginationProxy.getCurrentPageHeight();e===0&&(e=1),this.rowContainerHeightService.setModelHeight(e)},t.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.isRefreshInProgress=function(){return this.refreshInProgress},t.prototype.restoreFocusedCell=function(e){e&&(this.focusService.setRestoreFocusedCell(e),this.onCellFocusChanged(this.beans.gridOptionsService.addGridCommonParams({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"mock"})))},t.prototype.stopEditing=function(e){e===void 0&&(e=!1),this.getAllRowCtrls().forEach(function(i){i.stopEditing(e)})},t.prototype.getAllCellCtrls=function(){for(var e=[],i=this.getAllRowCtrls(),r=i.length,n=0;n<r;n++)for(var s=i[n].getAllCellCtrls(),a=s.length,l=0;l<a;l++)e.push(s[l]);return e},t.prototype.getAllRowCtrls=function(){var e,i,r=this.stickyRowFeature&&this.stickyRowFeature.getStickyRowCtrls()||[],n=pn(pn(pn([],dn(this.topRowCtrls),!1),dn(this.bottomRowCtrls),!1),dn(r),!1);try{for(var s=O0(Object.keys(this.rowCtrlsByRowIndex)),a=s.next();!a.done;a=s.next()){var l=a.value;n.push(this.rowCtrlsByRowIndex[l])}}catch(u){e={error:u}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}return n},t.prototype.addRenderedRowListener=function(e,i,r){var n=this.rowCtrlsByRowIndex[i];n&&n.addEventListener(e,r)},t.prototype.flashCells=function(e){e===void 0&&(e={}),this.getCellCtrls(e.rowNodes,e.columns).forEach(function(i){return i.flashCell(e)})},t.prototype.refreshCells=function(e){var i=this;e===void 0&&(e={});var r={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.getCellCtrls(e.rowNodes,e.columns).forEach(function(n){return n.refreshOrDestroyCell(r)}),e.rowNodes&&(this.getRowCtrls(e.rowNodes).forEach(function(n){if(n.isFullWidth()){var s=n.refreshFullWidth();s||i.redrawRow(n.getRowNode(),!0)}}),this.dispatchDisplayedRowsChanged(!1))},t.prototype.getCellRendererInstances=function(e){var i=this,r,n=this.getCellCtrls(e.rowNodes,e.columns).map(function(l){return l.getCellRenderer()}).filter(function(l){return l!=null});if(!((r=e.columns)===null||r===void 0)&&r.length)return n;var s=[],a=this.mapRowNodes(e.rowNodes);return this.getAllRowCtrls().forEach(function(l){if(!(a&&!i.isRowInMap(l.getRowNode(),a))&&l.isFullWidth())for(var u=l.getFullWidthCellRenderers(),c=0;c<u.length;c++){var p=u[c];p!=null&&s.push(p)}}),pn(pn([],dn(s),!1),dn(n),!1)},t.prototype.getCellEditorInstances=function(e){var i=[];return this.getCellCtrls(e.rowNodes,e.columns).forEach(function(r){var n=r.getCellEditor();n&&i.push(n)}),i},t.prototype.getEditingCells=function(){var e=[];return this.getAllCellCtrls().forEach(function(i){if(i.isEditing()){var r=i.getCellPosition();e.push(r)}}),e},t.prototype.mapRowNodes=function(e){if(e){var i={top:{},bottom:{},normal:{}};return e.forEach(function(r){var n=r.id;r.rowPinned==="top"?i.top[n]=r:r.rowPinned==="bottom"?i.bottom[n]=r:i.normal[n]=r}),i}},t.prototype.isRowInMap=function(e,i){var r=e.id,n=e.rowPinned;return n==="bottom"?i.bottom[r]!=null:n==="top"?i.top[r]!=null:i.normal[r]!=null},t.prototype.getRowCtrls=function(e){var i=this,r=this.mapRowNodes(e),n=this.getAllRowCtrls();return!e||!r?n:n.filter(function(s){var a=s.getRowNode();return i.isRowInMap(a,r)})},t.prototype.getCellCtrls=function(e,i){var r=this,n;Q(i)&&(n={},i.forEach(function(a){var l=r.columnModel.getGridColumn(a);Q(l)&&(n[l.getId()]=!0)}));var s=[];return this.getRowCtrls(e).forEach(function(a){a.getAllCellCtrls().forEac
180h(function(l){var u=l.getColumn().getId(),c=n&&!n[u];c||s.push(l)})}),s},t.prototype.destroy=function(){this.removeAllRowComps(),o.prototype.destroy.call(this)},t.prototype.removeAllRowComps=function(){var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.getRowsToRecycle=function(){var e=[];Ut(this.rowCtrlsByRowIndex,function(r,n){var s=n.getRowNode().id==null;s&&e.push(r)}),this.removeRowCtrls(e);var i={};return Ut(this.rowCtrlsByRowIndex,function(r,n){var s=n.getRowNode();i[s.id]=n}),this.rowCtrlsByRowIndex={},i},t.prototype.removeRowCtrls=function(e,i){var r=this;i===void 0&&(i=!1),e.forEach(function(n){var s=r.rowCtrlsByRowIndex[n];s&&(s.destroyFirstPass(i),s.destroySecondPass()),delete r.rowCtrlsByRowIndex[n]})},t.prototype.onBodyScroll=function(e){e.direction==="vertical"&&this.redraw({afterScroll:!0})},t.prototype.redraw=function(e){e===void 0&&(e={});var i=e.afterScroll,r;this.stickyRowFeature&&oh()&&(r=this.getCellToRestoreFocusToAfterRefresh()||void 0);var n=this.firstRenderedRow,s=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();var a=!1;this.stickyRowFeature&&(a=this.stickyRowFeature.checkStickyRows());var l=this.firstRenderedRow!==n||this.lastRenderedRow!==s;if(!(i&&!a&&!l)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,i),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(i&&!a),r!=null)){var u=this.getCellToRestoreFocusToAfterRefresh();r!=null&&u==null&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(r))}},t.prototype.removeRowCompsNotToDraw=function(e,i){var r={};e.forEach(function(a){return r[a]=!0});var n=Object.keys(this.rowCtrlsByRowIndex),s=n.filter(function(a){return!r[a]});this.removeRowCtrls(s,i)},t.prototype.calculateIndexesToDraw=function(e){var i=this,r=GC(this.firstRenderedRow,this.lastRenderedRow),n=function(c,p){var f=p.getRowNode().rowIndex;f!=null&&(f<i.firstRenderedRow||f>i.lastRenderedRow)&&i.doNotUnVirtualiseRow(p)&&r.push(f)};Ut(this.rowCtrlsByRowIndex,n),Ut(e,n),r.sort(function(c,p){return c-p});for(var s=[],a=0;a<r.length;a++){var l=r[a],u=this.paginationProxy.getRow(l);u&&!u.sticky&&s.push(l)}return s},t.prototype.recycleRows=function(e,i,r){var n=this;i===void 0&&(i=!1),r===void 0&&(r=!1);var s=this.calculateIndexesToDraw(e);if((this.printLayout||r)&&(i=!1),this.removeRowCompsNotToDraw(s,!i),s.forEach(function(l){var u=n.createOrUpdateRowCtrl(l,e,i,r);Q(u)}),e){var a=r&&!this.gridOptionsService.get("suppressAnimationFrame")&&!this.printLayout;a?this.beans.animationFrameService.addDestroyTask(function(){n.destroyRowCtrls(e,i),n.updateAllRowCtrls(),n.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(e,i)}this.updateAllRowCtrls()},t.prototype.dispatchDisplayedRowsChanged=function(e){e===void 0&&(e=!1);var i={type:T.EVENT_DISPLAYED_ROWS_CHANGED,afterScroll:e};this.eventService.dispatchEvent(i)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.isPinningLeft(),i=this.columnModel.isPinningRight(),r=this.pinningLeft!==e||i!==this.pinningRight;r&&(this.pinningLeft=e,this.pinningRight=i,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];this.getFullWidthRowCtrls().forEach(function(i){var r=i.getRowNode().rowIndex;e.push(r.toString())}),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0})},t.prototype.getFullWidthRowCtrls=function(e){var i=this,r=this.mapRowNodes(e);return this.getAllRowCtrls().filter(function(n){if(!n.isFullWidth())return!1;var s=n.getRowNode();return!(r!=null&&!i.isRowInMap(s,r))})},t.prototype.createOrUpdateRowCtrl=function(e,i,r,n){var s,a=this.rowCtrlsByRowIndex[e];a||(s=this.paginationProxy.getRow(e),Q(s)&&Q(i)&&i[s.id]&&s.alreadyRendered&&(a=i[s.id],i[s.id]=null));var l=!a;if(l)if(s||(s=this.paginationProxy.getRow(e)),Q(s))a=this.createRowCon(s,r,n);else return;return s&&(s.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=a,a},t.prototype.destroyRowCtrls=function(e,i){var r=this,n=[];Ut(e,function(s,a){if(a){if(r.cachedRowCtrls&&a.isCacheable()){r.cachedRowCtrls.addRow(a);return}a.destroyFirstPass(!i),i?(r.zombieRowCtrls[a.getInstanceId()]=a,n.push(function(){a.destroySecondPass(),delete r.zombieRowCtrls[a.getInstanceId()]})):a.destroySecondPass()}}),i&&(n.push(function(){r.updateAllRowCtrls(),r.dispatchDisplayedRowsChanged()}),iC(n))},t.prototype.getRowBuffer=function(){return this.gridOptionsService.get("rowBuffer")}
180,t.prototype.getRowBufferInPixels=function(){var e=this.getRowBuffer(),i=this.gridOptionsService.getRowHeightAsNumber();return e*i},t.prototype.workOutFirstAndLastRowsToRender=function(){this.rowContainerHeightService.updateOffset();var e,i;if(!this.paginationProxy.isRowsToRender())e=0,i=-1;else if(this.printLayout)this.environment.refreshRowHeightVariable(),e=this.paginationProxy.getPageFirstRow(),i=this.paginationProxy.getPageLastRow();else{var r=this.getRowBufferInPixels(),n=this.ctrlsService.getGridBodyCtrl(),s=this.gridOptionsService.get("suppressRowVirtualisation"),a=!1,l=void 0,u=void 0;do{var c=this.paginationProxy.getPixelOffset(),p=this.paginationProxy.getCurrentPagePixelRange(),f=p.pageFirstPixel,v=p.pageLastPixel,y=this.rowContainerHeightService.getDivStretchOffset(),w=n.getScrollFeature().getVScrollPosition(),b=w.top,O=w.bottom;s?(l=f+y,u=v+y):(l=Math.max(b+c-r,f)+y,u=Math.min(O+c+r,v)+y),this.firstVisibleVPixel=Math.max(b+c,f)+y,a=this.ensureAllRowsInRangeHaveHeightsCalculated(l,u)}while(a);var A=this.paginationProxy.getRowIndexAtPixel(l),P=this.paginationProxy.getRowIndexAtPixel(u),L=this.paginationProxy.getPageFirstRow(),x=this.paginationProxy.getPageLastRow();A<L&&(A=L),P>x&&(P=x),e=A,i=P}var H=this.gridOptionsService.isDomLayout("normal"),g=this.gridOptionsService.get("suppressMaxRenderedRowRestriction"),N=Math.max(this.getRowBuffer(),500);H&&!g&&i-e>N&&(i=e+N);var V=e!==this.firstRenderedRow,z=i!==this.lastRenderedRow;if(V||z){this.firstRenderedRow=e,this.lastRenderedRow=i;var I={type:T.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:i};this.eventService.dispatchEvent(I)}},t.prototype.dispatchFirstDataRenderedEvent=function(){var e=this;if(!this.dataFirstRenderedFired){this.dataFirstRenderedFired=!0;var i={type:T.EVENT_FIRST_DATA_RENDERED,firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow};window.requestAnimationFrame(function(){e.beans.eventService.dispatchEvent(i)})}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,i){var r=this.paginationProxy.ensureRowHeightsValid(e,i,-1,-1);return r&&this.updateContainerHeights(),r},t.prototype.getFirstVisibleVerticalPixel=function(){return this.firstVisibleVPixel},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var i=!1,r=!0,n=e.getRowNode(),s=this.focusService.isRowNodeFocused(n),a=e.isEditing(),l=n.detail,u=s||a||l;if(!u)return i;var c=this.paginationProxy.isRowPresent(n);return c?r:i},t.prototype.createRowCon=function(e,i,r){var n=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(n)return n;var s=this.gridOptionsService.get("suppressAnimationFrame"),a=r&&!s&&!this.printLayout,l=new go(e,this.beans,i,a,this.printLayout);return l},t.prototype.getRenderedNodes=function(){var e=this.rowCtrlsByRowIndex;return Object.keys(e).map(function(i){return e[i].getRowNode()})},t.prototype.getRowByPosition=function(e){var i,r=e.rowIndex;switch(e.rowPinned){case"top":i=this.topRowCtrls[r];break;case"bottom":i=this.bottomRowCtrls[r];break;default:i=this.rowCtrlsByRowIndex[r],i||(i=this.getStickyTopRowCtrls().find(function(n){return n.getRowNode().rowIndex===r})||null);break}return i},t.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.isRangeInRenderedViewport=function(e,i){var r=e==null||i==null;if(r)return!1;var n=e>this.lastRenderedRow,s=i<this.firstRenderedRow,a=!s&&!n;return a},Ji([E("animationFrameService")],t.prototype,"animationFrameService",void 0),Ji([E("paginationProxy")],t.prototype,"paginationProxy",void 0),Ji([E("columnModel")],t.prototype,"columnModel",void 0),Ji([E("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Ji([E("rowModel")],t.prototype,"rowModel",void 0),Ji([E("focusService")],t.prototype,"focusService",void 0),Ji([E("beans")],t.prototype,"beans",void 0),Ji([E("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),Ji([E("ctrlsService")],t.prototype,"ctrlsService",void 0),Ji([ie],t.prototype,"postConstruct",null),t=Ji([fe("rowRenderer")],t),t}(ee),T0=function(){function o(t){this.entriesMap={},this.entriesList=[],this.maxCount=t}return o.prototype.addRow=function(t){if(this.entriesMap[t.getRowNode().id]=t,this.entriesList.push(t),t.setCached(!0),this.entriesList.length>this.maxCount){var e=this.entriesList[0];e.destroyFirstPass(),e.destroySecondPass(),this.removeFromCache(e)}},o.prototype.getRow=function(t){if(t==null||t.id==null)return null;var e=this.entriesMap[t.id];if(!e)return null;
180this.removeFromCache(e),e.setCached(!1);var i=e.getRowNode()!=t;return i?null:e},o.prototype.has=function(t){return this.entriesMap[t.id]!=null},o.prototype.removeRow=function(t){var e=t.id,i=this.entriesMap[e];delete this.entriesMap[e],ui(this.entriesList,i)},o.prototype.removeFromCache=function(t){var e=t.getRowNode().id;delete this.entriesMap[e],ui(this.entriesList,t)},o.prototype.getEntries=function(){return this.entriesList},o}(),R0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),kg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},A0=function(o){R0(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.formatValue=function(e,i,r,n,s){s===void 0&&(s=!0);var a=null,l,u=e.getColDef();if(n?l=n:s&&(l=u.valueFormatter),l){var c=this.gridOptionsService.addGridCommonParams({value:r,node:i,data:i?i.data:null,colDef:u,column:e});typeof l=="function"?a=l(c):a=this.expressionService.evaluate(l,c)}else if(u.refData)return u.refData[r]||"";return a==null&&Array.isArray(r)&&(a=r.join(", ")),a},kg([E("expressionService")],t.prototype,"expressionService",void 0),t=kg([fe("valueFormatterService")],t),t}(ee),P0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),rp=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},D0=function(o){P0(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.init=function(){var e=this;this.setPinnedTopRowData(),this.setPinnedBottomRowData(),this.addManagedPropertyListener("pinnedTopRowData",function(){return e.setPinnedTopRowData()}),this.addManagedPropertyListener("pinnedBottomRowData",function(){return e.setPinnedBottomRowData()})},t.prototype.isEmpty=function(e){var i=e==="top"?this.pinnedTopRows:this.pinnedBottomRows;return Si(i)},t.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},t.prototype.getRowAtPixel=function(e,i){var r=i==="top"?this.pinnedTopRows:this.pinnedBottomRows;if(Si(r))return 0;for(var n=0;n<r.length;n++){var s=r[n],a=s.rowTop+s.rowHeight-1;if(a>=e)return n}return r.length-1},t.prototype.setPinnedTopRowData=function(){var e=this.gridOptionsService.get("pinnedTopRowData");this.pinnedTopRows=this.createNodesFromData(e,!0);var i={type:T.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(i)},t.prototype.setPinnedBottomRowData=function(){var e=this.gridOptionsService.get("pinnedBottomRowData");this.pinnedBottomRows=this.createNodesFromData(e,!1);var i={type:T.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(i)},t.prototype.createNodesFromData=function(e,i){var r=this,n=[];if(e){var s=0;e.forEach(function(a,l){var u=new $e(r.beans);u.data=a;var c=i?$e.ID_PREFIX_TOP_PINNED:$e.ID_PREFIX_BOTTOM_PINNED;u.id=c+l,u.rowPinned=i?"top":"bottom",u.setRowTop(s),u.setRowHeight(r.gridOptionsService.getRowHeightForNode(u).height),u.setRowIndex(l),s+=u.rowHeight,n.push(u)})}return n},t.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},t.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},t.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},t.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},t.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]}
180,t.prototype.forEachPinnedTopRow=function(e){Si(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},t.prototype.forEachPinnedBottomRow=function(e){Si(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},t.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},t.prototype.getTotalHeight=function(e){if(!e||e.length===0)return 0;var i=ot(e);return i.rowTop+i.rowHeight},rp([E("beans")],t.prototype,"beans",void 0),rp([ie],t.prototype,"init",null),t=rp([fe("pinnedRowModel")],t),t}(ee),Bg;(function(o){o.Applied="Applied",o.StoreNotFound="StoreNotFound",o.StoreLoading="StoreLoading",o.StoreWaitingToLoad="StoreWaitingToLoad",o.StoreLoadingFailed="StoreLoadingFailed",o.StoreWrongType="StoreWrongType",o.Cancelled="Cancelled",o.StoreNotStarted="StoreNotStarted"})(Bg||(Bg={}));var Mc=function(){function o(t,e){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=t,this.pathRoot={rowNode:e,children:null},this.mapToItems[e.id]=this.pathRoot}return o.prototype.setInactive=function(){this.active=!1},o.prototype.isActive=function(){return this.active},o.prototype.depthFirstSearchChangedPath=function(t,e){if(t.children)for(var i=0;i<t.children.length;i++)this.depthFirstSearchChangedPath(t.children[i],e);e(t.rowNode)},o.prototype.depthFirstSearchEverything=function(t,e,i){if(t.childrenAfterGroup)for(var r=0;r<t.childrenAfterGroup.length;r++){var n=t.childrenAfterGroup[r];n.childrenAfterGroup?this.depthFirstSearchEverything(t.childrenAfterGroup[r],e,i):i&&e(n)}e(t)},o.prototype.forEachChangedNodeDepthFirst=function(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1),this.active&&!i?this.depthFirstSearchChangedPath(this.pathRoot,t):this.depthFirstSearchEverything(this.pathRoot.rowNode,t,e)},o.prototype.executeFromRootNode=function(t){t(this.pathRoot.rowNode)},o.prototype.createPathItems=function(t){for(var e=t,i=0;!this.mapToItems[e.id];){var r={rowNode:e,children:null};this.mapToItems[e.id]=r,i++,e=e.parent}return i},o.prototype.populateColumnsMap=function(t,e){var i=this;if(!(!this.keepingColumns||!e))for(var r=t;r;)this.nodeIdsToColumns[r.id]||(this.nodeIdsToColumns[r.id]={}),e.forEach(function(n){return i.nodeIdsToColumns[r.id][n.getId()]=!0}),r=r.parent},o.prototype.linkPathItems=function(t,e){for(var i=t,r=0;r<e;r++){var n=this.mapToItems[i.id],s=this.mapToItems[i.parent.id];s.children||(s.children=[]),s.children.push(n),i=i.parent}},o.prototype.addParentNode=function(t,e){if(!(!t||t.isRowPinned())){var i=this.createPathItems(t);this.linkPathItems(t,i),this.populateColumnsMap(t,e)}},o.prototype.canSkip=function(t){return this.active&&!this.mapToItems[t.id]},o.prototype.getValueColumnsForNode=function(t,e){if(!this.keepingColumns)return e;var i=this.nodeIdsToColumns[t.id],r=e.filter(function(n){return i[n.getId()]});return r},o.prototype.getNotValueColumnsForNode=function(t,e){if(!this.keepingColumns)return null;var i=this.nodeIdsToColumns[t.id],r=e.filter(function(n){return!i[n.getId()]});return r},o}(),L0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ff=function(o){L0(t,o);function t(e){var i=o.call(this)||this;return i.state=t.STATE_WAITING_TO_LOAD,i.version=0,i.id=e,i}return t.prototype.getId=function(){return this.id},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.getVersion=function(){return this.version},t.prototype.setStateWaitingToLoad=function(){this.version++,this.state=t.STATE_WAITING_TO_LOAD},t.prototype.getState=function(){return this.state},t.prototype.pageLoadFailed=function(e){var i=this.isRequestMostRecentAndLive(e);i&&(this.state=t.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},t.prototype.success=function(e,i){this.successCommon(e,i)},t.prototype.pageLoaded=function(e,i,r){this.successCommon(e,{rowData:i,rowCount:r})},t.prototype.isRequestMostRecentAndLive=function(e){var i=e===this.version,r=this.isAlive();return i&&r},t.prototype.successCommon=function(e,i){this.dispatchLoadCompleted();var r=this.isRequestMostRecentAndLive(e);r&&(this.state=t.STATE_LOADED,this.processServerResult(i))},t.prototype.dispatchLoadCompleted=function(e){e===void 0&&(e=!0);var i={type:t.EVENT_LOAD_COMPLETE,success:e,block:this};this.dispatchEvent(i)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_WAITING_TO_LOAD="needsLoading",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}
180(ee),F0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ql=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},M0=function(o,t){return function(e,i){t(e,i,o)}},I0=function(o){F0(t,o);function t(){var i=o!==null&&o.apply(this,arguments)||this;return i.activeBlockLoadsCount=0,i.blocks=[],i.active=!0,i}e=t,t.prototype.postConstruct=function(){this.maxConcurrentRequests=this.getMaxConcurrentDatasourceRequests();var i=this.gridOptionsService.get("blockLoadDebounceMillis");i&&i>0&&(this.checkBlockToLoadDebounce=Ke.debounce(this.performCheckBlocksToLoad.bind(this),i))},t.prototype.setBeans=function(i){this.logger=i.create("RowNodeBlockLoader")},t.prototype.getMaxConcurrentDatasourceRequests=function(){var i=this.gridOptionsService.get("maxConcurrentDatasourceRequests");if(i==null)return 2;if(!(i<=0))return i},t.prototype.addBlock=function(i){this.blocks.push(i),i.addEventListener(ff.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},t.prototype.removeBlock=function(i){Ke.removeFromArray(this.blocks,i)},t.prototype.destroy=function(){o.prototype.destroy.call(this),this.active=!1},t.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),this.dispatchEvent({type:e.BLOCK_LOADED_EVENT}),this.activeBlockLoadsCount==0&&this.dispatchEvent({type:e.BLOCK_LOADER_FINISHED_EVENT})},t.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},t.prototype.performCheckBlocksToLoad=function(){if(this.active){if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){this.logger.log("checkBlockToLoad: max loads exceeded");return}var i=this.getAvailableLoadingCount(),r=this.blocks.filter(function(n){return n.getState()===ff.STATE_WAITING_TO_LOAD}).slice(0,i);this.registerLoads(r.length),r.forEach(function(n){return n.load()}),this.printCacheStatus()}},t.prototype.getBlockState=function(){if(this.gridOptionsService.isRowModelType("serverSide")){var i=this.rowModel;return i.getBlockStates()}var r={};return this.blocks.forEach(function(n){var s=n.getBlockStateJson(),a=s.id,l=s.state;r[a]=l}),r},t.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = ".concat(this.activeBlockLoadsCount,",")+" blocks = ".concat(JSON.stringify(this.getBlockState())))},t.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},t.prototype.registerLoads=function(i){this.activeBlockLoadsCount+=i},t.prototype.getAvailableLoadingCount=function(){return this.maxConcurrentRequests!==void 0?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0};var e;return t.BLOCK_LOADED_EVENT="blockLoaded",t.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",Ql([E("rowModel")],t.prototype,"rowModel",void 0),Ql([ie],t.prototype,"postConstruct",null),Ql([M0(0,Hi("loggerFactory"))],t.prototype,"setBeans",null),t=e=Ql([fe("rowNodeBlockLoader")],t),t}(ee),x0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}
180t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),np=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},N0=function(o){x0(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.currentPage=0,e.topDisplayedRowIndex=0,e.bottomDisplayedRowIndex=0,e.pixelOffset=0,e.masterRowCount=0,e}return t.prototype.postConstruct=function(){this.active=this.gridOptionsService.get("pagination"),this.pageSizeFromGridOptions=this.gridOptionsService.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedListener(this.eventService,T.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,i,r,n){var s=this.rowModel.ensureRowHeightsValid(e,i,this.getPageFirstRow(),this.getPageLastRow());return s&&this.calculatePages(),s},t.prototype.isPaginateChildRows=function(){var e=this.gridOptionsService.get("groupRemoveSingleChildren")||this.gridOptionsService.get("groupRemoveLowestSingleChildren");return e?!0:this.gridOptionsService.get("paginateChildRows")},t.prototype.onModelUpdated=function(e){this.calculatePages();var i={type:T.EVENT_PAGINATION_CHANGED,animate:e?e.animate:!1,newData:e?e.newData:!1,newPage:e?e.newPage:!1,newPageSize:e?e.newPageSize:!1,keepRenderedRows:e?e.keepRenderedRows:!1};this.eventService.dispatchEvent(i)},t.prototype.onPaginationGridOptionChanged=function(){this.active=this.gridOptionsService.get("pagination"),this.calculatePages();var e={type:T.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,newPageSize:!1,keepRenderedRows:!0};this.eventService.dispatchEvent(e)},t.prototype.onPageSizeGridOptionChanged=function(){this.setPageSize(this.gridOptionsService.get("paginationPageSize"),"gridOptions")},t.prototype.goToPage=function(e){if(!(!this.active||this.currentPage===e||typeof this.currentPage!="number")){this.currentPage=e;var i={type:T.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,newPageSize:!1};this.onModelUpdated(i)}},t.prototype.getPixelOffset=function(){return this.pixelOffset},t.prototype.getRow=function(e){return this.rowModel.getRow(e)},t.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},t.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},t.prototype.getCurrentPageHeight=function(){return Me(this.topRowBounds)||Me(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},t.prototype.getCurrentPagePixelRange=function(){var e=this.topRowBounds?this.topRowBounds.rowTop:0,i=this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0;return{pageFirstPixel:e,pageLastPixel:i}},t.prototype.isRowPresent=function(e){if(!this.rowModel.isRowPresent(e))return!1;var i=e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex;return i},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.forEachNodeOnPage=function(e){for(var i=this.getPageFirstRow(),r=this.getPageLastRow(),n=i;n<=r;n++){var s=this.getRow(n);s&&e(s)}},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){var i=this.rowModel.getRowBounds(e);return i.rowIndex=e,i},t.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},t.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.getPageForIndex=function(e){return Math.floor(e/this.pageSize)},t.prototype.goToPageWithIndex=function(e){if(this.active){var i=this.getPageForIndex(e);this.goToPage(i)}},t.prototype.isRowInPage=function(e){if(!this.active)return!0;var i=this.getPageForIndex(e.rowIndex);return i===this.currentPage},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),i=Math.floor(e/this.pageSize);this.goToPage(i)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPage=function(e){this.currentPage=e},Object.defineProperty(t.prototype,"pageSize",{get:function(){return Q(this.pageSizeAutoCalculated)?this.pageSizeAutoCalculated:Q(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:Q(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:Q(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:this.defaultPageSize}
180,enumerable:!1,configurable:!0}),t.prototype.unsetAutoCalculatedPageSize=function(){if(this.pageSizeAutoCalculated!==void 0){var e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&this.onModelUpdated({type:T.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1,newPageSize:!0})}},t.prototype.setPageSize=function(e,i){var r=this.pageSize;switch(i){case"autoCalculated":this.pageSizeAutoCalculated=e;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=e,this.currentPage!==0&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=e;break;case"gridOptions":this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage();break}if(r!==this.pageSize){var n={type:T.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1,newPageSize:!0};this.onModelUpdated(n)}},t.prototype.calculatePages=function(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(Q(this.topRowBounds)?this.topRowBounds.rowTop:0)},t.prototype.setPixelOffset=function(e){this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:T.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},t.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},t.prototype.adjustCurrentPageIfInvalid=function(){this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!isFinite(this.currentPage)||isNaN(this.currentPage)||this.currentPage<0)&&(this.currentPage=0)},t.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0){this.setZeroRows();return}var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid();var i=this.pageSize*this.currentPage,r=this.pageSize*(this.currentPage+1)-1;if(r>e&&(r=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(i),r===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var n=this.rowModel.getTopLevelRowDisplayedIndex(r+1);this.bottomDisplayedRowIndex=n-1}},t.prototype.getMasterRowCount=function(){return this.masterRowCount},t.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),this.masterRowCount===0){this.setZeroRows();return}var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)},t.prototype.calculatedPagesNotActive=function(){this.setPageSize(this.masterRowCount,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},np([E("rowModel")],t.prototype,"rowModel",void 0),np([ie],t.prototype,"postConstruct",null),t=np([fe("paginationProxy")],t),t}(ee),G0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),jg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},H0=function(o){G0(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.processAllCellClasses=function(e,i,r,n){this.processClassRules(void 0,e.cellClassRules,i,r,n),this.processStaticCellClasses(e,i,r)},t.prototype.processClassRules=function(e,i,r,n,s){if(!(i==null&&e==null)){var a={},l={},u=function(y,w){y.split(" ").forEach(function(b){b.trim()!=""&&w(b)})};if(i)for(var c=Object.keys(i),p=function(y){var w=c[y],b=i[w],O;typeof b=="string"?O=f.expressionService.evaluate(b,r):typeof b=="function"&&(O=b(r)),u(w,function(A){O?a[A]=!0:l[A]=!0})},f=this,v=0;v<c.length;v++)p(v);e&&s&&Object.keys(e).forEach(function(y){return u(y,function(w){a[w]||(l[w]=!0)})}
180),s&&Object.keys(l).forEach(s),Object.keys(a).forEach(n)}},t.prototype.getStaticCellClasses=function(e,i){var r=e.cellClass;if(!r)return[];var n;if(typeof r=="function"){var s=r;n=s(i)}else n=r;return typeof n=="string"&&(n=[n]),n||[]},t.prototype.processStaticCellClasses=function(e,i,r){var n=this.getStaticCellClasses(e,i);n.forEach(function(s){r(s)})},jg([E("expressionService")],t.prototype,"expressionService",void 0),t=jg([fe("stylingService")],t),t}(ee),V0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),k0=function(o){V0(t,o);function t(e){return o.call(this,e,"ag-toggle-button")||this}return t.prototype.setValue=function(e,i){return o.prototype.setValue.call(this,e,i),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},t}(Rc),B0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),j0=function(o){B0(t,o);function t(e){return o.call(this,e,"ag-text-area",null,"textarea")||this}return t.prototype.setValue=function(e,i){var r=o.prototype.setValue.call(this,e,i);return this.eInput.value=e,r},t.prototype.setCols=function(e){return this.eInput.cols=e,this},t.prototype.setRows=function(e){return this.eInput.rows=e,this},t}(On),W0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),U0=function(o){W0(t,o);function t(e){return o.call(this,e,"ag-date-field","date")||this}return t.prototype.postConstruct=function(){var e=this;o.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this));var i=Dr();this.addManagedListener(this.eInput,"mousedown",function(){e.isDisabled()||i||e.eInput.focus()}),this.eInput.step="any"},t.prototype.onWheel=function(e){document.activeElement===this.eInput&&e.preventDefault()},t.prototype.setMin=function(e){var i,r=e instanceof Date?(i=ki(e??null,!1))!==null&&i!==void 0?i:void 0:e;return this.min===r?this:(this.min=r,Ar(this.eInput,"min",r),this)},t.prototype.setMax=function(e){var i,r=e instanceof Date?(i=ki(e??null,!1))!==null&&i!==void 0?i:void 0:e;return this.max===r?this:(this.max=r,Ar(this.eInput,"max",r),this)},t.prototype.setStep=function(e){return this.step===e?this:(this.step=e,Ar(this.eInput,"step",e),this)},t.prototype.getDate=function(){var e;if(this.eInput.validity.valid)return(e=di(this.getValue()))!==null&&e!==void 0?e:void 0},t.prototype.setDate=function(e,i){this.setValue(ki(e??null,!1),i)},t}(Po),z0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),$0=function(o){z0(t,o);function t(e){return o.call(this,e,"ag-range-field","range")||this}return t.prototype.postConstruct=function(){o.prototype.postConstruct.call(this);var e=this.config,i=e.min,r=e.max,n=e.step;i!=null&&this.setMinValue(i),r!=null&&this.setMaxValue(r),this.setStep(n||1)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",function(i){var r=i.target.value;e.setValue(r)})},t.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this},t.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this},t.prototype.setStep=function(e){return this.eInput.setAttribute("step",e.toString()),this},t.prototype.setValue=function(e,i){this.min!=null&&(e=Math.max(parseFloat(e),this.min).toString()),this.max!=null&&(e=Math.min(parseFloat(e),this.max).toString());var r=o.prototype.setValue.call(this,e,i);return this.eInput.value=e,r},t}
180(On),K0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Wg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Y0=function(o){K0(t,o);function t(e,i){var r=o.call(this,'<div class="ag-rich-select-row" role="presentation"></div>')||this;return r.params=e,r.wrapperEl=i,r}return t.prototype.postConstruct=function(){this.addManagedListener(this.getGui(),"click",this.onClick.bind(this))},t.prototype.setState=function(e){var i="";this.params.valueFormatter&&(i=this.params.valueFormatter(e));
180var r=this.populateWithRenderer(e,i);r||this.populateWithoutRenderer(e,i),this.value=e},t.prototype.highlightString=function(e){var i=this.parsedValue;if(!(this.params.cellRenderer||!Q(i))){var r=Q(e);if(r){var n=i==null?void 0:i.toLocaleLowerCase().indexOf(e.toLocaleLowerCase());if(n>=0){var s=n+e.length,a=Dt(i.slice(0,n),!0),l=Dt(i.slice(n,s),!0),u=Dt(i.slice(s));this.renderValueWithoutRenderer("".concat(a,'<span class="ag-rich-select-row-text-highlight">').concat(l,"</span>").concat(u))}else r=!1}r||this.renderValueWithoutRenderer(i)}},t.prototype.updateHighlighted=function(e){var i,r=this.getGui(),n="ag-rich-select-row-".concat(this.getCompId());if((i=r.parentElement)===null||i===void 0||i.setAttribute("id",n),e){var s=this.getParentComponent().getAriaElement();qf(s,n),this.wrapperEl.setAttribute("data-active-option",n)}ws(r.parentElement,e),this.addOrRemoveCssClass("ag-rich-select-row-selected",e)},t.prototype.populateWithoutRenderer=function(e,i){var r=this.gridOptionsService.getDocument(),n=this.getGui(),s=r.createElement("span");s.style.overflow="hidden",s.style.textOverflow="ellipsis";var a=Dt(Q(i)?i:e,!0);this.parsedValue=Q(a)?a:null,n.appendChild(s),this.renderValueWithoutRenderer(a)},t.prototype.renderValueWithoutRenderer=function(e){var i=this.getGui().querySelector("span");i&&(i.innerHTML=Q(e)?e:" ")},t.prototype.populateWithRenderer=function(e,i){var r=this,n,s;return this.params.cellRenderer&&(s=this.userComponentFactory.getCellRendererDetails(this.params,{value:e,valueFormatted:i})),s&&(n=s.newAgStackInstance()),n&&yh(n,this.getGui()),n?(n.then(function(a){r.addDestroyFunc(function(){r.getContext().destroyBean(a)})}),!0):!1},t.prototype.onClick=function(){var e=this.getParentComponent(),i={type:T.EVENT_FIELD_PICKER_VALUE_SELECTED,fromEnterKey:!1,value:this.value};e==null||e.dispatchEvent(i)},Wg([E("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Wg([ie],t.prototype,"postConstruct",null),t}(We),q0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Jl=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Aw=function(o){q0(t,o);function t(e){var i=o.call(this,t.getTemplate((e==null?void 0:e.cssIdentifier)||"default"))||this;i.renderedRows=new Map,i.rowHeight=20;var r=e||{},n=r.cssIdentifier,s=n===void 0?"default":n,a=r.ariaRole,l=a===void 0?"listbox":a,u=r.listName;return i.cssIdentifier=s,i.ariaRole=l,i.listName=u,i}return t.prototype.postConstruct=function(){var e=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(i){return e.onFocusIn(i)},onFocusOut:function(i){return e.onFocusOut(i)},focusInnerElement:function(i){return e.focusInnerElement(i)},onTabKeyDown:function(i){return e.onTabKeyDown(i)},handleKeyDown:function(i){return e.handleKeyDown(i)}}),this.setAriaProperties(),this.addManagedListener(this.eventService,T.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanged.bind(this))},t.prototype.onGridStylesChanged=function(){this.rowHeight=this.getItemHeight(),this.refresh()},t.prototype.setAriaProperties=function(){var e=this.localeService.getLocaleTextFunc(),i=e("ariaDefaultListName",this.listName||"List"),r=this.eContainer;Lt(r,this.ariaRole),Hn(r,i)},t.prototype.addResizeObserver=function(){var e=this,i=function(){return e.animationFrameService.requestAnimationFrame(function(){return e.drawVirtualRows()})},r=this.resizeObserverService.observeResize(this.getGui(),i);this.addDestroyFunc(r)}
180,t.prototype.focusInnerElement=function(e){this.focusRow(e?this.model.getRowCount()-1:0)},t.prototype.onFocusIn=function(e){var i=e.target;i.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=wC(i)-1)},t.prototype.onFocusOut=function(e){this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null)},t.prototype.handleKeyDown=function(e){switch(e.key){case W.UP:case W.DOWN:this.navigate(e.key===W.UP)&&e.preventDefault();break}},t.prototype.onTabKeyDown=function(e){this.navigate(e.shiftKey)?e.preventDefault():(sr(e),this.forceFocusOutOfContainer(e.shiftKey))},t.prototype.navigate=function(e){if(this.lastFocusedRowIndex==null)return!1;var i=this.lastFocusedRowIndex+(e?-1:1);return i<0||i>=this.model.getRowCount()?!1:(this.focusRow(i),!0)},t.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},t.prototype.focusRow=function(e){var i=this;this.ensureIndexVisible(e),window.setTimeout(function(){if(i.isAlive()){var r=i.renderedRows.get(e);r&&r.eDiv.focus()}},10)},t.prototype.getComponentAt=function(e){var i=this.renderedRows.get(e);return i&&i.rowComponent},t.prototype.forEachRenderedRow=function(e){this.renderedRows.forEach(function(i,r){return e(i.rowComponent,r)})},t.getTemplate=function(e){return'<div class="ag-virtual-list-viewport ag-'.concat(e,`-virtual-list-viewport" role="presentation"> 181 <div class="ag-virtual-list-container ag-`).concat(e,`-virtual-list-container" ref="eContainer"></div> 182 </div>`)},t.prototype.getItemHeight=function(){return this.environment.getListItemHeight()},t.prototype.ensureIndexVisible=function(e,i){i===void 0&&(i=!0);var r=this.model.getRowCount();if(typeof e!="number"||e<0||e>=r)return console.warn("AG Grid: invalid row index for ensureIndexVisible: "+e),!1;var n=e*this.rowHeight,s=n+this.rowHeight,a=this.getGui(),l=a.scrollTop,u=a.offsetHeight,c=l+u,p=i?0:this.rowHeight,f=l>n+p,v=c<s-p;if(f)return a.scrollTop=n,!0;if(v){var y=s-u;return a.scrollTop=y,!0}return!1},t.prototype.setComponentCreator=function(e){this.componentCreator=e},t.prototype.setComponentUpdater=function(e){this.componentUpdater=e},t.prototype.getRowHeight=function(){return this.rowHeight},t.prototype.getScrollTop=function(){return this.getGui().scrollTop},t.prototype.setRowHeight=function(e){this.rowHeight=e,this.refresh()},t.prototype.refresh=function(e){var i=this;if(!(this.model==null||!this.isAlive())){var r=this.model.getRowCount();this.eContainer.style.height="".concat(r*this.rowHeight,"px"),jf(function(){return i.eContainer.clientHeight>=r*i.rowHeight},function(){i.isAlive()&&(i.canSoftRefresh(e)?i.drawVirtualRows(!0):(i.clearVirtualRows(),i.drawVirtualRows()))})}},t.prototype.canSoftRefresh=function(e){return!!(e&&this.renderedRows.size&&typeof this.model.areRowsEqual=="function"&&this.componentUpdater)},t.prototype.clearVirtualRows=function(){var e=this;this.renderedRows.forEach(function(i,r){return e.removeRow(r)})},t.prototype.drawVirtualRows=function(e){if(!(!this.isAlive()||!this.model)){var i=this.getGui(),r=i.scrollTop,n=r+i.offsetHeight,s=Math.floor(r/this.rowHeight),a=Math.floor(n/this.rowHeight);this.ensureRowsRendered(s,a,e)}},t.prototype.ensureRowsRendered=function(e,i,r){var n=this;this.renderedRows.forEach(function(a,l){(l<e||l>i)&&l!==n.lastFocusedRowIndex&&n.removeRow(l)}),r&&this.refreshRows();for(var s=e;s<=i;s++)this.renderedRows.has(s)||s<this.model.getRowCount()&&this.insertRow(s)},t.prototype.insertRow=function(e){var i=this,r=this.model.getRow(e),n=document.createElement("div");n.classList.add("ag-virtual-list-item","ag-".concat(this.cssIdentifier,"-virtual-list-item")),Lt(n,this.ariaRole==="tree"?"treeitem":"option"),Xf(n,this.model.getRowCount()),Qf(n,e+1),n.setAttribute("tabindex","-1"),n.style.height="".concat(this.rowHeight,"px"),n.style.top="".concat(this.rowHeight*e,"px");var s=this.componentCreator(r,n);s.addGuiEventListener("focusin",function(){return i.lastFocusedRowIndex=e}),n.appendChild(s.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",n):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",n):this.eContainer.appendChild(n),this.renderedRows.set(e,{rowComponent:s,eDiv:n,value:r})},t.prototype.removeRow=function(e){var i=this.renderedRows.get(e);this.eContainer.removeChild(i.eDiv),this.destroyBean(i.rowComponent),this.renderedRows.delete(e)},t.prototype.refreshRows=function(){var e=this,i=this.model.getRowCount();this.renderedRows.forEach(function(r,n){var s,a;if(n>=i)e.removeRow(n);else{var l=e.model.getRow(n);!((a=(s=e.model).areRowsEqual)===null||a===void 0)&&a.call(s,r.value,l)?e.componentUpdater(l,r.rowComponent):e.removeRow(n)}})},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",function(){return e.drawVirtualRows()},{passive:!0})},t.prototype.setModel=function(e){this.model=e},t.prototype.getAriaElement=function(){return this.eContainer},t.prototype.destroy=function(){this.isAlive()&&(this.clearVirtualRows(),o.prototype.destroy.call(this))},Jl([E("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Jl([E("animationFrameService")],t.prototype,"animationFrameService",void 0),Jl([se("eContainer")],t.prototype,"eContainer",void 0),Jl([ie],t.prototype,"postConstruct",null),t}
182(ul),X0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),nc=function(){return nc=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},nc.apply(this,arguments)},Ug=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Q0=` 183 <div class="ag-picker-field" role="presentation"> 184 <div ref="eLabel"></div> 185 <div ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-rich-select-value ag-picker-collapsed"> 186 <div ref="eDisplayField" class="ag-picker-field-display"></div> 187 <ag-input-text-field ref="eInput" class="ag-rich-select-field-input"></ag-input-text-field> 188 <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div> 189 </div> 190 </div>`,J0=function(o){X0(t,o);function t(e){var i=this,r,n;i=o.call(this,nc(nc({pickerAriaLabelKey:"ariaLabelRichSelectField",pickerAriaLabelValue:"Rich Select Field",pickerType:"ag-list",className:"ag-rich-select",pickerIcon:"smallDown",ariaRole:"combobox",template:(r=e==null?void 0:e.template)!==null&&r!==void 0?r:Q0,modalPicker:!1},e),{maxPickerHeight:(n=e==null?void 0:e.maxPickerHeight)!==null&&n!==void 0?n:"calc(var(--ag-row-height) * 6.5)"}))||this,i.searchString="",i.highlightedItem=-1,i.lastRowHovered=-1,i.searchStringCreator=null;var s=e||{},a=s.cellRowHeight,l=s.value,u=s.valueList,c=s.searchStringCreator;return a!=null&&(i.cellRowHeight=a),l!==void 0&&(i.value=l),u!=null&&(i.values=u),c&&(i.searchStringCreator=c),i}return t.prototype.postConstruct=function(){var e=this;o.prototype.postConstruct.call(this),this.createLoadingElement(),this.createListComponent();var i=this.config,r=i.allowTyping,n=i.placeholder;r?(this.eInput.setAutoComplete(!1).setInputPlaceholder(n),this.eDisplayField.classList.add("ag-hidden")):this.eInput.setDisplayed(!1),this.eWrapper.tabIndex=this.gridOptionsService.get("tabIndex");var s=this.config.searchDebounceDelay,a=s===void 0?300:s;this.clearSearchString=Oi(this.clearSearchString,a),this.renderSelectedValue(),r&&(this.eInput.onValueChange(function(l){return e.searchTextFromString(l)}),this.addManagedListener(this.eWrapper,"focus",this.onWrapperFocus.bind(this))),this.addManagedListener(this.eWrapper,"focusout",this.onWrapperFocusOut.bind(this))},t.prototype.createLoadingElement=function(){var e=this.gridOptionsService.getDocument(),i=this.localeService.getLocaleTextFunc(),r=e.createElement("div");r.classList.add("ag-loading-text"),r.innerText=i("loadingOoo","Loading..."),this.eLoading=r},t.prototype.createListComponent=function(){var e=this;this.listComponent=this.createBean(new Aw({cssIdentifier:"rich-select"})),this.listComponent.setComponentCreator(this.createRowComponent.bind(this));var i=function(c,p){};this.listComponent.setComponentUpdater(i),this.listComponent.setParentComponent(this),this.addManagedListener(this.listComponent,T.EVENT_FIELD_PICKER_VALUE_SELECTED,function(c){e.onListValueSelected(c.value,c.fromEnterKey)});var r=this.cellRowHeight;r&&this.listComponent.setRowHeight(r);var n=this.listComponent.getGui(),s=this.listComponent.getAriaElement();this.addManagedListener(n,"mousemove",this.onPickerMouseMove.bind(this)),this.addManagedListener(n,"mousedown",function(c){return c.preventDefault()}),n.classList.add("ag-rich-select-list");var a="ag-rich-select-list-".concat(this.listComponent.getCompId());s.setAttribute("id",a);var l=this.localeService.getLocaleTextFunc(),u=l(this.config.pickerAriaLabelKey,this.config.pickerAriaLabelValue);Hn(s,u),eh(this.eWrapper,s)},t.prototype.renderSelectedValue=function(){var e=this,i=this,r=i.value,
190n=i.eDisplayField,s=i.config,a=this.config,l=a.allowTyping,u=a.initialInputValue,c=this.config.valueFormatter?this.config.valueFormatter(r):r;if(l){this.eInput.setValue(u??c);return}var p;s.cellRenderer&&(p=this.userComponentFactory.getCellRendererDetails(this.config,{value:r,valueFormatted:c}));var f;if(p&&(f=p.newAgStackInstance()),f)Nt(n),yh(f,n),f.then(function(y){e.addDestroyFunc(function(){return e.getContext().destroyBean(y)})});else if(Q(this.value))n.innerText=c,n.classList.remove("ag-display-as-placeholder");else{var v=s.placeholder;Q(v)?(n.innerHTML="".concat(Dt(v)),n.classList.add("ag-display-as-placeholder")):Nt(n)}},t.prototype.getCurrentValueIndex=function(){var e=this,i=e.currentList,r=e.value;if(r==null||!i)return-1;for(var n=0;n<i.length;n++)if(i[n]===r)return n;return-1},t.prototype.highlightFilterMatch=function(){var e=this,i;(i=this.listComponent)===null||i===void 0||i.forEachRenderedRow(function(r,n){r.highlightString(e.searchString)})},t.prototype.highlightSelectedValue=function(e){var i=this,r;e==null&&(e=this.getCurrentValueIndex()),this.highlightedItem=e,(r=this.listComponent)===null||r===void 0||r.forEachRenderedRow(function(n,s){var a=e===-1?!1:i.highlightedItem===s;n.updateHighlighted(a)})},t.prototype.setRowHeight=function(e){e!==this.cellRowHeight&&(this.cellRowHeight=e),this.listComponent&&this.listComponent.setRowHeight(e)},t.prototype.createPickerComponent=function(){var e=this.values;return e&&this.setValueList({valueList:e}),this.listComponent},t.prototype.setSearchStringCreator=function(e){this.searchStringCreator=e},t.prototype.setValueList=function(e){var i=e.valueList,r=e.refresh;this.listComponent&&this.currentList!==i&&(this.currentList=i,this.listComponent.setModel({getRowCount:function(){return i.length},getRow:function(n){return i[n]},areRowsEqual:function(n,s){return n===s}}),r&&(this.values?this.listComponent.refresh(!0):(this.values=i,this.isPickerDisplayed&&this.showCurrentValueInPicker())))},t.prototype.showPicker=function(){o.prototype.showPicker.call(this),this.showCurrentValueInPicker(),this.displayOrHidePicker()},t.prototype.showCurrentValueInPicker=function(){var e,i;if(this.listComponent){if(!this.currentList){this.isPickerDisplayed&&this.eLoading&&this.listComponent.appendChild(this.eLoading);return}!((e=this.eLoading)===null||e===void 0)&&e.offsetParent&&((i=this.eLoading.parentElement)===null||i===void 0||i.removeChild(this.eLoading));var r=this.getCurrentValueIndex();r!==-1?(this.listComponent.refresh(),this.listComponent.ensureIndexVisible(r),this.listComponent.refresh(!0),this.highlightSelectedValue(r)):this.listComponent.refresh()}},t.prototype.beforeHidePicker=function(){this.highlightedItem=-1,o.prototype.beforeHidePicker.call(this)},t.prototype.onWrapperFocus=function(){if(this.eInput){var e=this.eInput.getFocusableElement();e.focus(),e.select()}},t.prototype.onWrapperFocusOut=function(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()},t.prototype.buildSearchStringFromKeyboardEvent=function(e){var i=e.key;if(i===W.BACKSPACE)this.searchString=this.searchString.slice(0,-1),i="";else if(!bc(e))return;e.preventDefault(),this.searchTextFromCharacter(i)},t.prototype.searchTextFromCharacter=function(e){this.searchString+=e,this.runSearch(),this.clearSearchString()},t.prototype.searchTextFromString=function(e){e==null&&(e=""),this.searchString=e,this.runSearch()},t.prototype.buildSearchStrings=function(e){var i=this.config.valueFormatter,r=i===void 0?function(s){return s}:i,n;return typeof e[0]=="number"||typeof e[0]=="string"?n=e.map(function(s){return r(s)}):typeof e[0]=="object"&&this.searchStringCreator&&(n=this.searchStringCreator(e)),n},t.prototype.getSuggestionsAndFilteredValues=function(e,i){var r=this,n=[],s=[];if(!e.length)return{suggestions:n,filteredValues:s};var a=this.config,l=a.searchType,u=l===void 0?"fuzzy":l,c=a.filterList;if(u==="fuzzy"){var p=ll(this.searchString,i,!0);n=p.values;var f=p.indices;if(c&&f.length)for(var v=0;v<f.length;v++)s.push(this.values[f[v]])}else n=i.filter(function(y,w){var b=y.toLocaleLowerCase(),O=r.searchString.toLocaleLowerCase(),A=u==="match"?b.startsWith(O):b.indexOf(O)!==-1;return c&&A&&s.push(r.values[w]),A});return{suggestions:n,filteredValues:s}},t.prototype.filterListModel=function(e){var i=this.config.filterList;i&&(this.setValueList({valueList:e,refresh:!0}),this.alignPickerToComponent())},t.prototype.runSearch=function(){var e,i,r=this.values,n=this.buildSearchStrings(r);if(!n){this.highlightSelectedValue(-1);return}var s=this.getSuggestionsAndFilteredValues(this.searchString,n),a=s.suggestions,l=s.filteredValues,u=this.config,c=u.filterList,p=u.highlightMatch,f=u.searchType,v=f===void 0?"fuzzy":f,y=l.length,w=!!(c&&this.searchString!=="");if(this.filterListModel(w?l:r),a.length){var b=w?0:n.indexOf(a[0]);this.selectListItem(b)}else if(this.highlightSelectedValue(-1),!w||y)(e=this.listComponent)===null||e===void 0||e.ensureIndexVisible(0);else if(w){this.getAriaElement().removeAttribute("data-active-option");var O=(i=this.listComponent)===null||i===void 0?void 0:i.getAriaElement();O&&qf(O,null)}p&&v!=="fuzzy"&&this.highlightFilterMatch(),this.displayOrHidePicker()},t.prototype.displayOrHidePicker=function(){var e,i=(e=this.listComponent)===null||e===void 0?void 0:e.getGui(),r=this.currentList?this.currentList.length===0:!1;i==null||i.classList.toggle("ag-hidden",r)},t.prototype.clearSearchString=function(){this.searchString=""},t.prototype.selectListItem=function(e,i){if(!(!this.isPickerDisplayed||!this.currentList||!this.listComponent||e<0||e>=this.currentList.length)){var r=this.listComponent.ensureIndexVisible(e,!i);r&&!i&&this.listComponent.refresh(!0),this.highlightSelectedValue(e)}},t.prototype.setValue=function(e,i,r){var n=this.currentList?this.currentList.indexOf(e):-1;return n===-1?this:(this.value=e,r||this.selectListItem(n),this.renderSelectedValue(),o.prototype.setValue.call(this,e,i))},t.prototype.createRowComponent=function(e){var i=new Y0(this.config,this.eWrapper);i.setParentComponent(this.listComponent),this.getContext().createBean(i),i.setState(e);var r=this.config,n=r.highlightMatch,s=r.searchType,a=s===void 0?"fuzzy":s;return n&&a!=="fuzzy"&&i.highlightString(this.searchString),i},t.prototype.getRowForMouseEvent=function(e){var i=this.listComponent;if(!i)return-1;var r=i==null?void 0:i.getGui(),n=r.getBoundingClientRect(),s=i.getScrollTop(),a=e.clientY-n.top+s;return Math.floor(a/i.getRowHeight())},t.prototype.onPickerMouseMove=function(e){if(this.listComponent){var i=this.getRowForMouseEvent(e);i!==-1&&i!=this.lastRowHovered&&(this.lastRowHovered=i,this.selectListItem(i,!0))}},t.prototype.onNavigationKeyDown=function(e,i){e.preventDefault();var r=i===W.DOWN;if(!this.isPickerDisplayed&&r){this.showPicker();return}var n=this.highlightedItem,s=r?1:-1,a=n===-1?0:n+s;
190this.selectListItem(a)},t.prototype.onEnterKeyDown=function(e){this.isPickerDisplayed&&(e.preventDefault(),this.currentList&&this.onListValueSelected(this.currentList[this.highlightedItem],!0))},t.prototype.onTabKeyDown=function(){!this.isPickerDisplayed||!this.currentList||this.setValue(this.currentList[this.highlightedItem],!1,!0)},t.prototype.onListValueSelected=function(e,i){this.setValue(e,!1,!0),this.dispatchPickerEvent(e,i),this.hidePicker()},t.prototype.dispatchPickerEvent=function(e,i){var r={type:T.EVENT_FIELD_PICKER_VALUE_SELECTED,fromEnterKey:i,value:e};this.dispatchEvent(r)},t.prototype.getFocusableElement=function(){var e=this.config.allowTyping;return e?this.eInput.getFocusableElement():o.prototype.getFocusableElement.call(this)},t.prototype.onKeyDown=function(e){var i=e.key,r=this.config.allowTyping;switch(i){case W.LEFT:case W.RIGHT:case W.PAGE_HOME:case W.PAGE_END:r||e.preventDefault();break;case W.PAGE_UP:case W.PAGE_DOWN:e.preventDefault();break;case W.DOWN:case W.UP:this.onNavigationKeyDown(e,i);break;case W.ESCAPE:this.isPickerDisplayed&&(Ti(this.listComponent.getGui())&&(e.preventDefault(),sr(e)),this.hidePicker());break;case W.ENTER:this.onEnterKeyDown(e);break;case W.TAB:this.onTabKeyDown();break;default:r||this.buildSearchStringFromKeyboardEvent(e)}},t.prototype.destroy=function(){this.listComponent&&(this.destroyBean(this.listComponent),this.listComponent=void 0),this.eLoading=void 0,o.prototype.destroy.call(this)},Ug([E("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Ug([se("eInput")],t.prototype,"eInput",void 0),t}(nw),Z0=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Zl=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},eL=function(o){Z0(t,o);function t(e){var i=o.call(this,e,t.TEMPLATE)||this;return i.labelAlignment="top",i}return t.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},t.prototype.onValueChange=function(e){var i=this,r=T.EVENT_FIELD_VALUE_CHANGED;return this.addManagedListener(this.eText,r,function(){var n=parseFloat(i.eText.getValue());i.eSlider.setValue(n.toString(),!0),e(n||0)}),this.addManagedListener(this.eSlider,r,function(){var n=i.eSlider.getValue();i.eText.setValue(n,!0),e(parseFloat(n))}),this},t.prototype.setSliderWidth=function(e){return this.eSlider.setWidth(e),this},t.prototype.setTextFieldWidth=function(e){return this.eText.setWidth(e),this},t.prototype.setMinValue=function(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this},t.prototype.setMaxValue=function(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this},t.prototype.getValue=function(){return this.eText.getValue()},t.prototype.setValue=function(e){return this.getValue()===e?this:(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:T.EVENT_FIELD_VALUE_CHANGED}),this)},t.prototype.setStep=function(e){return this.eSlider.setStep(e),this.eText.setStep(e),this},t.TEMPLATE=`<div class="ag-slider"> 191 <label ref="eLabel"></label> 192 <div class="ag-wrapper ag-slider-wrapper"> 193 <ag-input-range ref="eSlider"></ag-input-range> 194 <ag-input-number-field ref="eText"></ag-input-number-field> 195 </div> 196 </div>`,Zl([se("eLabel")],t.prototype,"eLabel",void 0),Zl([se("eSlider")],t.prototype,"eSlider",void 0),Zl([se("eText")],t.prototype,"eText",void 0),Zl([ie],t.prototype,"init",null),t}
196(iw),tL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),fn=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},iL=function(o){tL(t,o);function t(e){e===void 0&&(e={});var i=o.call(this,t.getTemplate(e))||this;i.suppressEnabledCheckbox=!0,i.suppressOpenCloseIcons=!1;var r=e.title,n=e.enabled,s=e.items,a=e.suppressEnabledCheckbox,l=e.suppressOpenCloseIcons;return i.title=r,i.cssIdentifier=e.cssIdentifier||"default",i.enabled=n??!0,i.items=s||[],i.alignItems=e.alignItems||"center",a!=null&&(i.suppressEnabledCheckbox=a),l!=null&&(i.suppressOpenCloseIcons=l),i}return t.getTemplate=function(e){var i=e.cssIdentifier||"default",r=e.direction||"vertical";return'<div class="ag-group ag-'.concat(i,`-group" role="presentation"> 197 <div class="ag-group-title-bar ag-`).concat(i,`-group-title-bar ag-unselectable" ref="eTitleBar" role="button"> 198 <span class="ag-group-title-bar-icon ag-`).concat(i,`-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span> 199 <span class="ag-group-title-bar-icon ag-`).concat(i,`-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span> 200 <span ref="eTitle" class="ag-group-title ag-`).concat(i,`-group-title"></span> 201 </div> 202 <div ref="eToolbar" class="ag-group-toolbar ag-`).concat(i,`-group-toolbar"> 203 <ag-checkbox ref="cbGroupEnabled"></ag-checkbox> 204 </div> 205 <div ref="eContainer" class="ag-group-container ag-group-container-`).concat(r," ag-").concat(i,`-group-container"></div> 206 </div>`)},t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var i=this.localeService.getLocaleTextFunc();this.cbGroupEnabled.setLabel(i("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshAriaStatus(),this.refreshChildDisplay()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(Ni("columnSelectClosed",this.gridOptionsService,null)),this.eGroupOpenedIcon.appendChild(Ni("columnSelectOpen",this.gridOptionsService,null)),this.addManagedListener(this.eTitleBar,"click",function(){return e.toggleGroupExpand()}),this.addManagedListener(this.eTitleBar,"keydown",function(i){switch(i.key){case W.ENTER:case W.SPACE:i.preventDefault(),e.toggleGroupExpand();break;case W.RIGHT:case W.LEFT:i.preventDefault(),e.toggleGroupExpand(i.key===W.RIGHT);break}})},t.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||qr(this.eTitleBar,this.expanded)},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;it(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),it(this.eGroupOpenedIcon,e&&this.expanded),it(this.eGroupClosedIcon,e&&!this.expanded)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){this.alignItems!==e&&this.removeCssClass("ag-group-item-alignment-".concat(this.alignItems)),this.alignItems=e;var i="ag-group-item-alignment-".concat(this.alignItems);return this.addCssClass(i),this},t.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),it(this.eContainer,!0),this):(e=e??!this.expanded,this.expanded===e?this:(this.expanded=e,this.refreshAriaStatus(),this.refreshChildDisplay(),it(this.eContainer,e),this.dispatchEvent({type:this.expanded?t.EVENT_EXPANDED:t.EVENT_COLLAPSED}),this))},t.prototype.addItems=function(e){var i=this;e.forEach(function(r){return i.addItem(r)})},t.prototype.prependItem=function(e){this.insertItem(e,this.eContainer.firstChild)},t.prototype.addItem=function(e){this.insertItem(e,null)},t.prototype.insertItem=function(e,i){var r=this.eContainer,n=e instanceof We?e.getGui():e;n.classList.add("ag-group-item","ag-".concat(this.cssIdentifier,"-group-item")),r.insertBefore(n,i),this.items.push(n)},t.prototype.hideItem=function(e,i){var r=this.items[i];it(r,!e)},t.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},t.prototype.addCssClassToTitleBar=function(e){this.eTitleBar.classList.add(e)},t.prototype.setEnabled=function(e,i){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),i||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var i=this;return this.cbGroupEnabled.onValueChange(function(r){i.setEnabled(r,!0),e(r)}),this},t.prototype.hideEnabledCheckbox=function(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,e&&this.toggleGroupExpand(!0),this},t.prototype.refreshDisabledStyles=function(){this.addOrRemoveCssClass("ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(this.eTitleBar.classList.add("ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(this.eTitleBar.classList.remove("ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),this.eContainer.classList.toggle("ag-disabled-group-container",!this.enabled)},t.EVENT_EXPANDED="expanded",t.EVENT_COLLAPSED="collapsed",fn([se("eTitleBar")],t.prototype,"eTitleBar",void 0),fn([se("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),fn([se("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),fn([se("eToolbar")],t.prototype,"eToolbar",void 0),fn([se("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),fn([se("eTitle")],t.prototype,"eTitle",void 0),fn([se("eContainer")],t.prototype,"eContainer",void 0),fn([ie],t.prototype,"postConstruct",null),t}
206(We),rL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),zg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},nL=function(o){rL(t,o);function t(e,i){e===void 0&&(e=0);var r=o.call(this,'<div class="ag-menu-list" role="tree"></div>')||this;return r.level=e,r.menuItems=[],r.params=i??{column:null,node:null,value:null},r}return t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(i){return e.onTabKeyDown(i)},handleKeyDown:function(i){return e.handleKeyDown(i)},onFocusIn:function(i){return e.handleFocusIn(i)},onFocusOut:function(i){return e.handleFocusOut(i)}})},t.prototype.onTabKeyDown=function(e){var i=this.getParentComponent(),r=i&&i.getGui(),n=r&&r.classList.contains("ag-focus-managed");n||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)},t.prototype.handleKeyDown=function(e){switch(e.key){case W.UP:case W.RIGHT:case W.DOWN:case W.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case W.ESCAPE:this.closeIfIsChild()&&sr(e);break}},t.prototype.handleFocusIn=function(e){var i,r,n=e.relatedTarget;!this.tabGuardCtrl.isTabGuard(n)&&(this.getGui().contains(n)||!((r=(i=this.activeMenuItem)===null||i===void 0?void 0:i.getSubMenuGui())===null||r===void 0)&&r.contains(n))||(this.activeMenuItem?this.activeMenuItem.activate():this.activateFirstItem())},t.prototype.handleFocusOut=function(e){var i,r=e.relatedTarget;!this.activeMenuItem||this.getGui().contains(r)||!((i=this.activeMenuItem.getSubMenuGui())===null||i===void 0)&&i.c
206ontains(r)||this.activeMenuItem.isSubMenuOpening()||this.activeMenuItem.deactivate()},t.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},t.prototype.addMenuItems=function(e){var i=this;e!=null&&Ei.all(e.map(function(r){return r==="separator"?Ei.resolve({eGui:i.createSeparator()}):typeof r=="string"?(console.warn("AG Grid: unrecognised menu item ".concat(r)),Ei.resolve({eGui:null})):i.addItem(r)})).then(function(r){r.forEach(function(n){n!=null&&n.eGui&&(i.appendChild(n.eGui),n.comp&&i.menuItems.push(n.comp))})})},t.prototype.addItem=function(e){var i=this,r=this.createManagedBean(new eu);return r.init({menuItemDef:e,isAnotherSubMenuOpen:function(){return i.menuItems.some(function(n){return n.isSubMenuOpen()})},level:this.level,contextParams:this.params}).then(function(){return r.setParentComponent(i),i.addManagedListener(r,eu.EVENT_CLOSE_MENU,function(n){i.dispatchEvent(n)}),i.addManagedListener(r,eu.EVENT_MENU_ITEM_ACTIVATED,function(n){i.activeMenuItem&&i.activeMenuItem!==n.menuItem&&i.activeMenuItem.deactivate(),i.activeMenuItem=n.menuItem}),{comp:r,eGui:r.getGui()}})},t.prototype.activateFirstItem=function(){var e=this.menuItems.filter(function(i){return!i.isDisabled()})[0];e&&e.activate()},t.prototype.createSeparator=function(){var e=` 207 <div class="ag-menu-separator" aria-hidden="true"> 208 <div class="ag-menu-separator-part"></div> 209 <div class="ag-menu-separator-part"></div> 210 <div class="ag-menu-separator-part"></div> 211 <div class="ag-menu-separator-part"></div> 212 </div>`;return pi(e)},t.prototype.handleNavKey=function(e){switch(e){case W.UP:case W.DOWN:var i=this.findNextItem(e===W.UP);i&&i!==this.activeMenuItem&&i.activate();return}var r=this.gridOptionsService.get("enableRtl")?W.RIGHT:W.LEFT;e===r?this.closeIfIsChild():this.openChild()},t.prototype.closeIfIsChild=function(e){var i=this.getParentComponent();return i&&i instanceof eu?(e&&e.preventDefault(),i.closeSubMenu(),i.getGui().focus(),!0):!1},t.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},t.prototype.findNextItem=function(e){var i=this.menuItems.filter(function(l){return!l.isDisabled()});if(i.length){if(!this.activeMenuItem)return e?ot(i):i[0];e&&i.reverse();for(var r,n=!1,s=0;s<i.length;s++){var a=i[s];if(!n){a===this.activeMenuItem&&(n=!0);continue}r=a;break}return n&&!r?i[0]:r||this.activeMenuItem}},t.prototype.destroy=function(){this.clearActiveItem(),o.prototype.destroy.call(this)},zg([E("focusService")],t.prototype,"focusService",void 0),zg([ie],t.prototype,"postConstruct",null),t}(ul),oL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),sL=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},aL=function(o){oL(t,o);function t(e){var i=o.call(this)||this;return i.wrappedComponent=e,i.setTemplateFromElement(e.getGui()),i}return t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(i){return e.onTabKeyDown(i)},handleKeyDown:function(i){return e.handleKeyDown(i)}})},t.prototype.handleKeyDown=function(e){e.key===W.ESCAPE&&this.closePanel()},t.prototype.onTabKeyDown=function(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())},t.prototype.closePanel=function(){var e=this.parentComponent;e.closeSubMenu(),setTimeout(function(){return e.getGui().focus()},0)},sL([ie],t.prototype,"postConstruct",null),t}
212(ul),lL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Fa=function(){return Fa=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},Fa.apply(this,arguments)},op=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},eu=function(o){lL(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.isActive=!1,e.subMenuIsOpen=!1,e.subMenuIsOpening=!1,e.suppressRootStyles=!0,e.suppressAria=!0,e.suppressFocus=!0,e}return t.prototype.init=function(e){var i=this,r,n,s=e.menuItemDef,a=e.isAnotherSubMenuOpen,l=e.level,u=e.childComponent,c=e.contextParams;this.params=e.menuItemDef,this.level=l,this.isAnotherSubMenuOpen=a,this.childComponent=u,this.contextParams=c,this.cssClassPrefix=(n=(r=this.params.menuItemParams)===null||r===void 0?void 0:r.cssClassPrefix)!==null&&n!==void 0?n:"ag-menu-option";var p=this.userComponentFactory.getMenuItemCompDetails(this.params,Fa(Fa({},s),{level:l,isAnotherSubMenuOpen:a,openSubMenu:function(f){return i.openSubMenu(f)},closeSubMenu:function(){return i.closeSubMenu()},closeMenu:function(f){return i.closeMenu(f)},updateTooltip:function(f){return i.updateTooltip(f)},onItemActivated:function(){return i.onItemActivated()}}));return p.newAgStackInstance().then(function(f){var v;i.menuItemComp=f;var y=(v=f.configureDefaults)===null||v===void 0?void 0:v.call(f);y&&i.configureDefaults(y===!0?void 0:y)})},t.prototype.addListeners=function(e,i){var r=this;i!=null&&i.suppressClick||this.addManagedListener(e,"click",function(n){return r.onItemSelected(n)}),i!=null&&i.suppressKeyboardSelect||this.addManagedListener(e,"keydown",function(n){(n.key===W.ENTER||n.key===W.SPACE)&&(n.preventDefault(),r.onItemSelected(n))}),i!=null&&i.suppressMouseDown||this.addManagedListener(e,"mousedown",function(n){n.stopPropagation(),n.preventDefault()}),i!=null&&i.suppressMouseOver||(this.addManagedListener(e,"mouseenter",function(){return r.onMouseEnter()}),this.addManagedListener(e,"mouseleave",function(){return r.onMouseLeave()}))},t.prototype.isDisabled=function(){return!!this.params.disabled},t.prototype.openSubMenu=function(e){var i=this,r,n;if(e===void 0&&(e=!1),this.closeSubMenu(),!!this.params.subMenu){this.subMenuIsOpening=!0;var s=pi('<div class="ag-menu" role="presentation"></div>');this.eSubMenuGui=s;var a,l=function(){i.subMenuIsOpening=!1};if(this.childComponent){var u=this.createBean(new aL(this.childComponent));u.setParentComponent(this);var c=u.getGui(),p="mouseenter",f=function(){return i.cancelDeactivate()};c.addEventListener(p,f),a=function(){return c.removeEventListener(p,f)},s.appendChild(c),this.childComponent.afterGuiAttached&&(l=function(){i.childComponent.afterGuiAttached(),i.subMenuIsOpening=!1})}else if(this.params.subMenu){var v=this.createBean(new nL(this.level+1,this.contextParams));v.setParentComponent(this),v.addMenuItems(this.params.subMenu),s.appendChild(v.getGui()),this.addManagedListener(v,t.EVENT_CLOSE_MENU,function(O){return i.dispatchEvent(O)}),v.addGuiEventListener("mouseenter",function(){return i.cancelDeactivate()}),a=function(){return i.destroyBean(v)},e&&(l=function(){v.activateFirstItem(),i.subMenuIsOpening=!1})}var y=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:this.eGui,ePopup:s}),w=this.localeService.getLocaleTextFunc(),b=this.popupService.addPopup({modal:!0,e
212Child:s,positionCallback:y,anchorToElement:this.eGui,ariaLabel:w("ariaLabelSubMenu","SubMenu"),afterGuiAttached:l});this.subMenuIsOpen=!0,this.setAriaExpanded(!0),this.hideSubMenu=function(){var O,A;b&&b.hideFunc(),i.subMenuIsOpen=!1,i.setAriaExpanded(!1),a(),(A=(O=i.menuItemComp).setExpanded)===null||A===void 0||A.call(O,!1),i.eSubMenuGui=void 0},(n=(r=this.menuItemComp).setExpanded)===null||n===void 0||n.call(r,!0)}},t.prototype.setAriaExpanded=function(e){this.suppressAria||qr(this.eGui,e)},t.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,this.setAriaExpanded(!1))},t.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},t.prototype.isSubMenuOpening=function(){return this.subMenuIsOpening},t.prototype.activate=function(e){var i=this,r,n;this.cancelActivate(),!this.params.disabled&&(this.isActive=!0,this.suppressRootStyles||this.eGui.classList.add("".concat(this.cssClassPrefix,"-active")),(n=(r=this.menuItemComp).setActive)===null||n===void 0||n.call(r,!0),this.suppressFocus||this.eGui.focus({preventScroll:!0}),e&&this.params.subMenu&&window.setTimeout(function(){i.isAlive()&&i.isActive&&i.openSubMenu()},300),this.onItemActivated())},t.prototype.deactivate=function(){var e,i;this.cancelDeactivate(),this.suppressRootStyles||this.eGui.classList.remove("".concat(this.cssClassPrefix,"-active")),(i=(e=this.menuItemComp).setActive)===null||i===void 0||i.call(e,!1),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},t.prototype.getGui=function(){return this.menuItemComp.getGui()},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getSubMenuGui=function(){return this.eSubMenuGui},t.prototype.onItemSelected=function(e){var i=this,r,n;(n=(r=this.menuItemComp).select)===null||n===void 0||n.call(r),this.params.action?this.getFrameworkOverrides().wrapOutgoing(function(){return i.params.action(i.gridOptionsService.addGridCommonParams(Fa({},i.contextParams)))}):this.openSubMenu(e&&e.type==="keydown"),!(this.params.subMenu&&!this.params.action||this.params.suppressCloseOnSelect)&&this.closeMenu(e)},t.prototype.closeMenu=function(e){var i={type:t.EVENT_CLOSE_MENU,event:e};this.dispatchEvent(i)},t.prototype.onItemActivated=function(){var e={type:t.EVENT_MENU_ITEM_ACTIVATED,menuItem:this};this.dispatchEvent(e)},t.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},t.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},t.prototype.onMouseEnter=function(){var e=this;this.cancelDeactivate(),this.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout(function(){return e.activate(!0)},t.ACTIVATION_DELAY):this.activate(!0)},t.prototype.onMouseLeave=function(){var e=this;this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout(function(){return e.deactivate()},t.ACTIVATION_DELAY):this.deactivate()},t.prototype.configureDefaults=function(e){var i=this,r,n,s;if(this.tooltip=this.params.tooltip,!this.menuItemComp){setTimeout(function(){return i.configureDefaults(e)});return}var a=this.menuItemComp.getGui(),l=(n=(r=this.menuItemComp).getRootElement)===null||n===void 0?void 0:n.call(r);l&&(e!=null&&e.suppressRootStyles||a.classList.add("ag-menu-option-custom"),a=l),this.eGui=a,this.suppressRootStyles=!!(e!=null&&e.suppressRootStyles),this.suppressRootStyles||(a.classList.add(this.cssClassPrefix),(s=this.params.cssClasses)===null||s===void 0||s.forEach(function(u){return a.classList.add(u)}),this.params.disabled&&a.classList.add("".concat(this.cssClassPrefix,"-disabled"))),e!=null&&e.suppressTooltip||this.setTooltip(),this.suppressAria=!!(e!=null&&e.suppressAria),this.suppressAria||(Lt(a,"treeitem"),OC(a,this.level+1),this.params.disabled&&Yf(a,!0)),e!=null&&e.suppressTabIndex||a.setAttribute("tabindex","-1"),this.params.disabled||this.addListeners(a,e),this.suppressFocus=!!(e!=null&&e.suppressFocus)},t.prototype.updateTooltip=function(e){this.tooltip=e,!this.tooltipFeature&&this.menuItemComp&&this.setTooltip()},t.prototype.setTooltip=function(){var e=this;this.tooltip&&(this.tooltipFeature=this.createManagedBean(new Dc({getGui:function(){return e.getGui()},getTooltipValue:function(){return e.tooltip},getLocation:function(){return"menu"}},this.beans)),this.tooltipFeature.setComp(this.getGui()))},t.EVENT_CLOSE_MENU="closeMenu",t.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",t.ACTIVATION_DELAY=80,op([E("popupService")],t.prototype,"popupService",void 0),op([E("userComponentFactory")],t.prototype,"userComponentFactory",void 0),op([E("beans")],t.prototype,"beans",void 0),t}
212(ee),uL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ha=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},cL=function(o){uL(t,o);function t(e){var i=o.call(this,t.getTemplate(e))||this;return i.config=e,i.closable=!0,i}return t.getTemplate=function(e){var i=e.cssIdentifier||"default";return'<div class="ag-panel ag-'.concat(i,`-panel" tabindex="-1"> 213 <div ref="eTitleBar" class="ag-panel-title-bar ag-`).concat(i,`-panel-title-bar ag-unselectable"> 214 <span ref="eTitle" class="ag-panel-title-bar-title ag-`).concat(i,`-panel-title-bar-title"></span> 215 <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-`).concat(i,`-panel-title-bar-buttons"></div> 216 </div> 217 <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-`).concat(i,`-panel-content-wrapper"></div> 218 </div>`)},t.prototype.postConstruct=function(){var e=this,i=this.config,r=i.component,n=i.closable,s=i.hideTitleBar,a=i.title,l=i.minWidth,u=l===void 0?250:l,c=i.width,p=i.minHeight,f=p===void 0?250:p,v=i.height,y=i.centered,w=i.popup,b=i.x,O=i.y;this.positionableFeature=new tw(this.getGui(),{minWidth:u,width:c,minHeight:f,height:v,centered:y,x:b,y:O,popup:w,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var A=this.getGui();r&&this.setBodyComponent(r),s?it(this.eTitleBar,!1):(a&&this.setTitle(a),this.setClosable(n??this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",function(P){var L=e.gridOptionsService.getDocument();if(A.contains(P.relatedTarget)||A.contains(L.activeElement)||e.eTitleBarButtons.contains(P.target)){P.preventDefault();return}var x=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");x&&x.focus()}),!(w&&this.positionableFeature.isPositioned())&&(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,i=this.getGui();i.focus(),this.close=function(){i.parentElement.removeChild(i),e.destroy()}},t.prototype.getHeight=function(){return this.positionableFeature.getHeight()},t.prototype.setHeight=function(e){this.positionableFeature.setHeight(e)},t.prototype.getWidth=function(){return this.positionableFeature.getWidth()},t.prototype.setWidth=function(e){this.positionableFeature.setWidth(e)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var i=this.closeButtonComp=new We(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(i);var r=i.getGui(),n=bt("close",this.gridOptionsService);n.classList.add("ag-panel-title-bar-button-icon"),r.appendChild(n),this.addTitleBarButton(i),i.addManagedListener(r,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){var r=this.closeButtonComp.getGui();r.parentElement.removeChild(r),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,i){var r=this.eTitleBarButtons,n=r.children,s=n.length;i==null&&(i=s),i=Math.max(0,Math.min(i,s)),e.addCssClass("ag-panel-title-bar-button");var a=e.getGui();i===0?r.insertAdjacentElement("afterbegin",a):i===s?r.insertAdjacentElement("beforeend",a):n[i-1].insertAdjacentElement("afterend",a),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return sl(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return Ro(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var e=this.getGui();e&&Ti(e)&&this.close(),o.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',ha([se("eContentWrapper")],t.prototype,"eContentWrapper",void 0),ha([se("eTitleBar")],t.prototype,"eTitleBar",void 0),ha([se("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),ha([se("eTitle")],t.prototype,"eTitle",void 0),ha([ie],t.prototype,"postConstruct",null),t}
218(We),dL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),oc=function(){return oc=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},oc.apply(this,arguments)},pL=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n};(function(o){dL(t,o);function t(e){var i=o.call(this,oc(oc({},e),{popup:!0}))||this;return i.isMaximizable=!1,i.isMaximized=!1,i.maximizeListeners=[],i.resizeListenerDestroy=null,i.lastPosition={x:0,y:0,width:0,height:0},i}return t.prototype.postConstruct=function(){var e=this,i=this.getGui(),r=this.config,n=r.movable,s=r.resizable,a=r.maximizable;this.addCssClass("ag-dialog"),o.prototype.postConstruct.call(this),this.addManagedListener(i,"focusin",function(l){i.contains(l.relatedTarget)||e.popupService.bringPopupToFront(i)}),n&&this.setMovable(n),a&&this.setMaximizable(a),s&&this.setResizable(s)},t.prototype.renderComponent=function(){var e=this.getGui(),i=this.config,r=i.alwaysOnTop,n=i.modal,s=i.title,a=i.afterGuiAttached,l=this.localeService.getLocaleTextFunc(),u=this.popupService.addPopup({modal:n,eChild:e,closeOnEsc:!0,closedCallback:this.onClosed.bind(this),alwaysOnTop:r,ariaLabel:s||l("ariaLabelDialog","Dialog"),afterGuiAttached:a});u&&(this.close=u.hideFunc)},t.prototype.onClosed=function(e){var i,r;this.destroy(),(r=(i=this.config).closedCallback)===null||r===void 0||r.call(i,e)},t.prototype.toggleMaximize=function(){var e=this.positionableFeature.getPosition();if(this.isMaximized){var i=this.lastPosition,r=i.x,n=i.y,s=i.width,a=i.height;this.setWidth(s),this.setHeight(a),this.positionableFeature.offsetElement(r,n)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){it(this.maximizeIcon,!this.isMaximized),it(this.minimizeIcon,this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach(function(e){return e()}),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),o.prototype.destroy.call(this)},t.prototype.setResizable=function(e){this.positionableFeature.setResizable(e)},t.prototype.setMovable=function(e){this.positionableFeature.setMovable(e,this.eTitleBar)},t.prototype.setMaximizable=function(e){var i=this;if(!e){this.clearMaximizebleListeners(),this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0);return}var r=this.eTitleBar;if(!(!r||e===this.isMaximizable)){var n=this.buildMaximizeAndMinimizeElements();this.refreshMaximizeIcon(),n.addManagedListener(n.getGui(),"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(n,0),this.maximizeListeners.push(this.addManagedListener(r,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",function(){i.isMaximized=!1,i.refreshMaximizeIcon()})}},t.prototype.buildMaximizeAndMinimizeElements=function(){var e=this.maximizeButtonComp=this.createBean(new We('<div class="ag-dialog-button"></span>')),i=e.getGui();return this.maximizeIcon=bt("maximize",this.gridOptionsService),i.appendChild(this.maximizeIcon),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),this.minimizeIcon=bt("minimize",this.gridOptionsService),i.appendChild(this.minimizeIcon),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon"),e},pL([E("popupService")],t.prototype,"popupService",void 0),t})(cL);
218var fL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),sc=function(){return sc=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},sc.apply(this,arguments)},va=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},$g=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},Kg=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},Yg=function(o){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&o[t],i=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Sn;(function(o){o[o.vertical=0]="vertical",o[o.horizontal=1]="horizontal"})(Sn||(Sn={}));var hL=0,vL=function(o){fL(t,o);function t(){var i=o!==null&&o.apply(this,arguments)||this;return i.popupList=[],i}e=t,t.prototype.postConstruct=function(){var i=this;this.ctrlsService.whenReady(function(r){i.gridCtrl=r.gridCtrl}),this.addManagedListener(this.eventService,T.EVENT_GRID_STYLES_CHANGED,this.handleThemeChange.bind(this))},t.prototype.getPopupParent=function(){var i=this.gridOptionsService.get("popupParent");return i||this.gridCtrl.getGui()},t.prototype.positionPopupForMenu=function(i){var r=i.eventSource,n=i.ePopup,s=this.getPopupIndex(n);if(s!==-1){var a=this.popupList[s];a.alignedToElement=r}var l=r.getBoundingClientRect(),u=this.getParentRect(),c=this.keepXYWithinBounds(n,l.top-u.top,Sn.vertical),p=n.clientWidth>0?n.clientWidth:200;n.style.minWidth="".concat(p,"px");var f=u.right-u.left,v=f-p,y;this.gridOptionsService.get("enableRtl")?(y=b(),y<0&&(y=w(),this.setAlignedStyles(n,"left")),y>v&&(y=0,this.setAlignedStyles(n,"right"))):(y=w(),y>v&&(y=b(),this.setAlignedStyles(n,"right")),y<0&&(y=0,this.setAlignedStyles(n,"left"))),n.style.left="".concat(y,"px"),n.style.top="".concat(c,"px");function w(){return l.right-u.left-2}function b(){return l.left-u.left-p}},t.prototype.positionPopupUnderMouseEvent=function(i){var r=this,n=i.ePopup,s=i.nudgeX,a=i.nudgeY,l=i.skipObserver;this.positionPopup({ePopup:n,nudgeX:s,nudgeY:a,keepWithinBounds:!0,skipObserver:l,updatePosition:function(){return r.calculatePointerAlign(i.mouseEvent)},postProcessCallback:function(){return r.callPostProcessPopup(i.type,i.ePopup,null,i.mouseEvent,i.column,i.rowNode)}})},t.prototype.calculatePointerAlign=function(i){var r=this.getParentRect();return{x:i.clientX-r.left,y:i.clientY-r.top}},t.prototype.positionPopupByComponent=function(i){var r=this,n=i.ePopup,s=i.nudgeX,a=i.nudgeY,l=i.keepWithinBounds,u=i.eventSource,c=i.alignSide,p=c===void 0?"left":c,f=i.position,v=f===void 0?"over":f,y=i.column,w=i.rowNode,b=i.type,O=u.getBoundingClientRect(),A=this.getParentRect(),P=this.getPopupIndex(n);if(P!==-1){var L=this.popupList[P];L.alignedToElement=u}var x=function(){var H=O.left-A.left;p==="right"&&(H-=n.offsetWidth-O.width);var g;if(v==="over")g=O.top-A.top,r.setAlignedStyles(n,"over");else{r.setAlignedStyles(n,"under");var N=r.shouldRenderUnderOrAbove(n,O,A,i.nudgeY||0);
218N==="under"?g=O.top-A.top+O.height:g=O.top-n.offsetHeight-(a||0)*2-A.top}return{x:H,y:g}};this.positionPopup({ePopup:n,nudgeX:s,nudgeY:a,keepWithinBounds:l,updatePosition:x,postProcessCallback:function(){return r.callPostProcessPopup(b,n,u,null,y,w)}})},t.prototype.shouldRenderUnderOrAbove=function(i,r,n,s){var a=n.bottom-r.bottom,l=r.top-n.top,u=i.offsetHeight+s;return a>u?"under":l>u||l>a?"above":"under"},t.prototype.setAlignedStyles=function(i,r){var n=this.getPopupIndex(i);if(n!==-1){var s=this.popupList[n],a=s.alignedToElement;if(a){var l=["right","left","over","above","under"];l.forEach(function(u){a.classList.remove("ag-has-popup-positioned-".concat(u)),i.classList.remove("ag-popup-positioned-".concat(u))}),r&&(a.classList.add("ag-has-popup-positioned-".concat(r)),i.classList.add("ag-popup-positioned-".concat(r)))}}},t.prototype.callPostProcessPopup=function(i,r,n,s,a,l){var u=this.gridOptionsService.getCallback("postProcessPopup");if(u){var c={column:a,rowNode:l,ePopup:r,type:i,eventSource:n,mouseEvent:s};u(c)}},t.prototype.positionPopup=function(i){var r=this,n=i.ePopup,s=i.keepWithinBounds,a=i.nudgeX,l=i.nudgeY,u=i.skipObserver,c=i.updatePosition,p={width:0,height:0},f=function(y){y===void 0&&(y=!1);var w=c(),b=w.x,O=w.y;y&&n.clientWidth===p.width&&n.clientHeight===p.height||(p.width=n.clientWidth,p.height=n.clientHeight,a&&(b+=a),l&&(O+=l),s&&(b=r.keepXYWithinBounds(n,b,Sn.horizontal),O=r.keepXYWithinBounds(n,O,Sn.vertical)),n.style.left="".concat(b,"px"),n.style.top="".concat(O,"px"),i.postProcessCallback&&i.postProcessCallback())};if(f(),!u){var v=this.resizeObserverService.observeResize(n,function(){return f(!0)});setTimeout(function(){return v()},e.WAIT_FOR_POPUP_CONTENT_RESIZE)}},t.prototype.getActivePopups=function(){return this.popupList.map(function(i){return i.element})},t.prototype.getPopupList=function(){return this.popupList},t.prototype.getParentRect=function(){var i=this.gridOptionsService.getDocument(),r=this.getPopupParent();return r===i.body?r=i.documentElement:getComputedStyle(r).position==="static"&&(r=r.offsetParent),dh(r)},t.prototype.keepXYWithinBounds=function(i,r,n){var s=n===Sn.vertical,a=s?"clientHeight":"clientWidth",l=s?"top":"left",u=s?"offsetHeight":"offsetWidth",c=s?"scrollTop":"scrollLeft",p=this.gridOptionsService.getDocument(),f=p.documentElement,v=this.getPopupParent(),y=v.getBoundingClientRect(),w=p.documentElement.getBoundingClientRect(),b=v===p.body,O=i[u],A=s?ch:ja,P=b?A(f)+f[c]:v[a];b&&(P-=Math.abs(w[l]-y[l]));var L=P-O;return Math.min(Math.max(r,0),Math.abs(L))},t.prototype.addPopup=function(i){var r=this.gridOptionsService.getDocument(),n=i.eChild,s=i.ariaLabel,a=i.alwaysOnTop,l=i.positionCallback,u=i.anchorToElement;if(!r)return console.warn("AG Grid: could not find the document, document is empty"),{hideFunc:function(){}};var c=this.getPopupIndex(n);if(c!==-1){var p=this.popupList[c];return{hideFunc:p.hideFunc}}this.initialisePopupPosition(n);var f=this.createPopupWrapper(n,s,!!a),v=this.addEventListenersToPopup(sc(sc({},i),{wrapperEl:f}));return l&&l(),this.addPopupToPopupList(n,f,v,u),{hideFunc:v}},t.prototype.initialisePopupPosition=function(i){var r=this.getPopupParent(),n=r.getBoundingClientRect();Q(i.style.top)||(i.style.top="".concat(n.top*-1,"px")),Q(i.style.left)||(i.style.left="".concat(n.left*-1,"px"))},t.prototype.createPopupWrapper=function(i,r,n){var s,a=this.getPopupParent(),l=document.createElement("div"),u=this.environment.getTheme().allThemes;return u.length&&(s=l.classList).add.apply(s,Kg([],$g(u),!1)),l.classList.add("ag-popup"),i.classList.add(this.gridOptionsService.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),i.hasAttribute("role")||Lt(i,"dialog"),Hn(i,r),l.appendChild(i),a.appendChild(l),n?this.setAlwaysOnTop(i,!0):this.bringPopupToFront(i),l},t.prototype.handleThemeChange=function(){var i,r,n,s,a,l=this.environment.getTheme().allThemes;try{for(var u=Yg(this.popupList),c=u.next();!c.done;c=u.next()){var p=c.value;try{for(var f=(n=void 0,Yg(Array.from(p.wrapper.classList))),v=f.next();!v.done;v=f.next()){var y=v.value;y.startsWith("ag-theme-")&&p.wrapper.classList.remove(y)}}catch(w){n={error:w}}finally{try{v&&!v.done&&(s=f.return)&&s.call(f)}finally{if(n)throw n.error}}l.length&&(a=p.wrapper.classList).add.apply(a,Kg([],$g(l),!1))}}catch(w){i={error:w}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}},t.prototype.addEventListenersToPopup=function(i){var r=this,n=this.gridOptionsService.getDocument(),s=this.getPopupParent(),a=i.wrapperEl,l=i.eChild;i.click;var u=i.closedCallback,c=i.afterGuiAttached,p=i.closeOnEsc,f=i.modal,v=!1,y=function(A){if(a.contains(n.activeElement)){var P=A.key;P===W.ESCAPE&&!nr(A)&&O({keyboardEvent:A})}},w=function(A){return O({mouseEvent:A})},b=function(A){return O({touchEvent:A})},O=function(A){A===void 0&&(A={});var P=A.mouseEvent,L=A.touchEvent,x=A.keyboardEvent;r.isEventFromCurrentPopup({mouseEvent:P,touchEvent:L},l)||v||(v=!0,s.removeChild(a),n.removeEventListener("keydown",y),n.removeEventListener("mousedown",w),n.removeEventListener("touchstart",b),n.removeEventListener("contextmenu",w),r.eventService.removeEventListener(T.EVENT_DRAG_STARTED,w),u&&u(P||L||x),r.removePopupFromPopupList(l))};return c&&c({hidePopup:O}),window.setTimeout(function(){p&&n.addEventListener("keydown",y),f&&(n.addEventListener("mousedown",w),r.eventService.addEventListener(T.EVENT_DRAG_STARTED,w),n.addEventListener("touchstart",b),n.addEventListener("contextmenu",w))},0),O},t.prototype.addPopupToPopupList=function(i,r,n,s){this.popupList.push({element:i,wrapper:r,hideFunc:n,instanceId:hL++,isAnchored:!!s}),s&&this.setPopupPositionRelatedToElement(i,s)},t.prototype.getPopupIndex=function(i){return this.popupList.findIndex(function(r){return r.element===i})},t.prototype.setPopupPositionRelatedToElement=function(i,r){var n=this.getPopupIndex(i);if(n!==-1){var s=this.popupList[n];if(s.stopAnchoringPromise&&s.stopAnchoringPromise.then(function(l){return l&&l()}),s.stopAnchoringPromise=void 0,s.isAnchored=!1,!!r){var a=this.keepPopupPositionedRelativeTo({element:r,ePopup:i,hidePopup:s.hideFunc});return s.stopAnchoringPromise=a,s.isAnchored=!0,a}}},t.prototype.removePopupFromPopupList=function(i){this.setAlignedStyles(i,null),this.setPopupPositionRelatedToElement(i,null),this.popupList=this.popupList.filter(function(r){return r.element!==i})},t.prototype.keepPopupPositionedRelativeTo=function(i){var r=this,n=this.getPopupParent(),s=n.getBoundingClientRect(),a=i.element,l=i.ePopup,u=a.getBoundingClientRect(),c=s.top-u.top,p=s.left-u.left,f=c,v=p,y=l.style.top,w=parseInt(y.substring(0,y.length-1),10),b=l.style.left,O=parseInt(b.substring(0,b.length-1),10);return new Ei(function(A){r.getFrameworkOverrides().setInterval(function(){var P=n.getBoundingClientRect(),L=a.getBoundingClientRect(),x=L.top==0&&L.left==0&&L.height==0&&L.width==0;if(x){i.hidePopup();return}
218var H=P.top-L.top;if(H!=f){var g=r.keepXYWithinBounds(l,w+c-H,Sn.vertical);l.style.top="".concat(g,"px")}f=H;var N=P.left-L.left;if(N!=v){var V=r.keepXYWithinBounds(l,O+p-N,Sn.horizontal);l.style.left="".concat(V,"px")}v=N},200).then(function(P){var L=function(){P!=null&&window.clearInterval(P)};A(L)})})},t.prototype.hasAnchoredPopup=function(){return this.popupList.some(function(i){return i.isAnchored})},t.prototype.isEventFromCurrentPopup=function(i,r){var n=i.mouseEvent,s=i.touchEvent,a=n||s;if(!a)return!1;var l=this.getPopupIndex(r);if(l===-1)return!1;for(var u=l;u<this.popupList.length;u++){var c=this.popupList[u];if(Wu(c.element,a))return!0}return this.isElementWithinCustomPopup(a.target)},t.prototype.isElementWithinCustomPopup=function(i){for(var r=this.gridOptionsService.getDocument();i&&i!==r.body;){if(i.classList.contains("ag-custom-component-popup")||i.parentElement===null)return!0;i=i.parentElement}return!1},t.prototype.getWrapper=function(i){for(;!i.classList.contains("ag-popup")&&i.parentElement;)i=i.parentElement;return i.classList.contains("ag-popup")?i:null},t.prototype.setAlwaysOnTop=function(i,r){var n=this.getWrapper(i);n&&(n.classList.toggle("ag-always-on-top",!!r),r&&this.bringPopupToFront(n))},t.prototype.bringPopupToFront=function(i){var r=this.getPopupParent(),n=Array.prototype.slice.call(r.querySelectorAll(".ag-popup")),s=n.length,a=Array.prototype.slice.call(r.querySelectorAll(".ag-popup.ag-always-on-top")),l=a.length,u=this.getWrapper(i);if(!(!u||s<=1||!r.contains(i))){var c=n.indexOf(u),p=u.querySelectorAll("div"),f=[];if(p.forEach(function(b){b.scrollTop!==0&&f.push([b,b.scrollTop])}),l){var v=u.classList.contains("ag-always-on-top");v?c!==s-1&&ot(a).insertAdjacentElement("afterend",u):c!==s-l-1&&a[0].insertAdjacentElement("beforebegin",u)}else c!==s-1&&ot(n).insertAdjacentElement("afterend",u);for(;f.length;){var y=f.pop();y[0].scrollTop=y[1]}var w={type:"popupToFront",eWrapper:u};this.eventService.dispatchEvent(w)}};var e;return t.WAIT_FOR_POPUP_CONTENT_RESIZE=200,va([E("focusService")],t.prototype,"focusService",void 0),va([E("ctrlsService")],t.prototype,"ctrlsService",void 0),va([E("resizeObserverService")],t.prototype,"resizeObserverService",void 0),va([ie],t.prototype,"postConstruct",null),t=e=va([fe("popupService")],t),t}(ee),gL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),yL=function(o){gL(t,o);function t(){var e=o.call(this,` 219 <div class="ag-autocomplete-row" role="presentation"> 220 <div class="ag-autocomplete-row-label"></div> 221 </div>`)||this;return e.hasHighlighting=!1,e}return t.prototype.setState=function(e,i){this.value=e,this.render(),this.updateSelected(i)},t.prototype.updateSelected=function(e){this.addOrRemoveCssClass("ag-autocomplete-row-selected",e)},t.prototype.setSearchString=function(e){var i,r=!1;if(Q(e)){var n=(i=this.value)===null||i===void 0?void 0:i.toLocaleLowerCase().indexOf(e.toLocaleLowerCase());if(n>=0){r=!0,this.hasHighlighting=!0;var s=n+e.length,a=Dt(this.value.slice(0,n)),l=Dt(this.value.slice(n,s)),u=Dt(this.value.slice(s));this.getGui().lastElementChild.innerHTML="".concat(a,"<b>").concat(l,"</b>").concat(u)}}!r&&this.hasHighlighting&&(this.hasHighlighting=!1,this.render())},t.prototype.render=function(){var e;this.getGui().lastElementChild.innerHTML=(e=Dt(this.value))!==null&&e!==void 0?e:" "},t}(We),mL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}
221t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),qg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},CL=function(o){mL(t,o);function t(e){var i=o.call(this,t.TEMPLATE)||this;return i.params=e,i.searchString="",i}return t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.init=function(){var e=this;this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList=this.createManagedBean(new Aw({cssIdentifier:"autocomplete"})),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),this.virtualList.setModel({getRowCount:function(){return e.autocompleteEntries.length},getRow:function(r){return e.autocompleteEntries[r]}});var i=this.virtualList.getGui();this.addManagedListener(i,"click",function(){return e.params.onConfirmed()}),this.addManagedListener(i,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(i,"mousedown",function(r){return r.preventDefault()}),this.setSelectedValue(0)},t.prototype.onNavigationKeyDown=function(e,i){e.preventDefault();var r=this.autocompleteEntries.indexOf(this.selectedValue),n=i===W.UP?r-1:r+1;this.checkSetSelectedValue(n)},t.prototype.setSearch=function(e){this.searchString=e,Q(e)?this.runSearch():(this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList.refresh(),this.checkSetSelectedValue(0)),this.updateSearchInList()},t.prototype.runContainsSearch=function(e,i){var r,n=!1,s=e.toLocaleLowerCase(),a=i.filter(function(l){var u=l.toLocaleLowerCase(),c=u.indexOf(s),p=c===0,f=c>=0;return f&&(!r||!n&&p||n===p&&l.length<r.length)&&(r=l,n=p),f});return!r&&a.length&&(r=a[0]),{topMatch:r,allMatches:a}},t.prototype.runSearch=function(){var e,i,r=this.params.autocompleteEntries,n=r.map(function(p){var f;return(f=p.displayValue)!==null&&f!==void 0?f:p.key}),s,a;if(this.params.useFuzzySearch)s=ll(this.searchString,n,!0).values,a=s.length?s[0]:void 0;else{var l=this.runContainsSearch(this.searchString,n);s=l.allMatches,a=l.topMatch}var u=r.filter(function(p){var f=p.key,v=p.displayValue;return s.includes(v??f)});if(!u.length&&this.selectedValue&&(!((i=(e=this.params)===null||e===void 0?void 0:e.forceLastSelection)===null||i===void 0)&&i.call(e,this.selectedValue,this.searchString))&&(u=[this.selectedValue]),this.autocompleteEntries=u,this.virtualList.refresh(),!!a){var c=s.indexOf(a);this.checkSetSelectedValue(c)}},t.prototype.updateSearchInList=function(){var e=this;this.virtualList.forEachRenderedRow(function(i){return i.setSearchString(e.searchString)})},t.prototype.checkSetSelectedValue=function(e){e>=0&&e<this.autocompleteEntries.length&&this.setSelectedValue(e)},t.prototype.setSelectedValue=function(e){var i=this.autocompleteEntries[e];this.selectedValue!==i&&(this.selectedValue=i,this.virtualList.ensureIndexVisible(e),this.virtualList.forEachRenderedRow(function(r,n){r.updateSelected(e===n)}))},t.prototype.createRowComponent=function(e){var i,r=new yL;return this.getContext().createBean(r),r.setState((i=e.displayValue)!==null&&i!==void 0?i:e.key,e===this.selectedValue),r},t.prototype.onMouseMove=function(e){var i=this.virtualList.getGui().getBoundingClientRect(),r=this.virtualList.getScrollTop(),n=e.clientY-i.top+r,s=Math.floor(n/this.virtualList.getRowHeight());this.checkSetSelectedValue(s)},t.prototype.afterGuiAttached=function(){this.virtualList.refresh()},t.prototype.getSelectedValue=function(){var e;return this.autocompleteEntries.length&&(e=this.selectedValue)!==null&&e!==void 0?e:null},t.TEMPLATE=`<div class="ag-autocomplete-list-popup"> 222 <div ref="eList" class="ag-autocomplete-list"></div> 223 <div>`,qg([se("eList")],t.prototype,"eList",void 0),qg([ie],t.prototype,"init",null),t}(Do),wL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&
223(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),sp=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},SL=function(o){wL(t,o);function t(){var e=o.call(this,` 224 <div class="ag-autocomplete" role="presentation"> 225 <ag-input-text-field ref="eAutocompleteInput"></ag-input-text-field> 226 </div>`)||this;return e.isListOpen=!1,e.lastPosition=0,e.valid=!0,e}return t.prototype.postConstruct=function(){var e=this;this.eAutocompleteInput.onValueChange(function(i){return e.onValueChanged(i)}),this.eAutocompleteInput.getInputElement().setAttribute("autocomplete","off"),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.addGuiEventListener("click",this.updatePositionAndList.bind(this)),this.addDestroyFunc(function(){e.destroyBean(e.autocompleteList)}),this.addGuiEventListener("focusout",function(){return e.onFocusOut()})},t.prototype.onValueChanged=function(e){var i=Rr(e);this.updateValue(i),this.updateAutocompleteList(i)},t.prototype.updateValue=function(e){this.updateLastPosition(),this.dispatchEvent({type:t.EVENT_VALUE_CHANGED,value:e}),this.validate(e)},t.prototype.updateAutocompleteList=function(e){var i,r,n,s,a=(r=(i=this.listGenerator)===null||i===void 0?void 0:i.call(this,e,this.lastPosition))!==null&&r!==void 0?r:{enabled:!1};if((!a.type||a.type!==((n=this.autocompleteListParams)===null||n===void 0?void 0:n.type))&&this.isListOpen&&this.closeList(),this.autocompleteListParams=a,!((s=this.autocompleteListParams)===null||s===void 0)&&s.enabled){this.isListOpen||this.openList();var l=this.autocompleteListParams.searchString;this.autocompleteList.setSearch(l??"")}else this.isListOpen&&this.closeList()},t.prototype.onKeyDown=function(e){var i=this,r=e.key;switch(this.updateLastPosition(),r){case W.ENTER:this.onEnterKeyDown(e);break;case W.TAB:this.onTabKeyDown(e);break;case W.DOWN:case W.UP:this.onUpDownKeyDown(e,r);break;case W.LEFT:case W.RIGHT:case W.PAGE_HOME:case W.PAGE_END:setTimeout(function(){i.updatePositionAndList()});break;case W.ESCAPE:this.onEscapeKeyDown(e);break;case W.SPACE:e.ctrlKey&&!this.isListOpen&&(e.preventDefault(),this.forceOpenList());break}},t.prototype.confirmSelection=function(){var e,i=(e=this.autocompleteList)===null||e===void 0?void 0:e.getSelectedValue();i&&(this.closeList(),this.dispatchEvent({type:t.EVENT_OPTION_SELECTED,value:this.getValue(),position:this.lastPosition,updateEntry:i,autocompleteType:this.autocompleteListParams.type}))},t.prototype.onTabKeyDown=function(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.confirmSelection())},t.prototype.onEnterKeyDown=function(e){e.preventDefault(),this.isListOpen?this.confirmSelection():this.onCompleted()},t.prototype.onUpDownKeyDown=function(e,i){var r;e.preventDefault(),this.isListOpen?(r=this.autocompleteList)===null||r===void 0||r.onNavigationKeyDown(e,i):this.forceOpenList()},t.prototype.onEscapeKeyDown=function(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.closeList(),this.setCaret(this.lastPosition,!0))},t.prototype.onFocusOut=function(){this.isListOpen&&this.closeList()},t.prototype.updatePositionAndList=function(){var e;this.updateLastPosition(),this.updateAutocompleteList((e=this.eAutocompleteInput.getValue())!==null&&e!==void 0?e:null)},t.prototype.setCaret=function(e,i){var r=this.gridOptionsService.getDocument();i&&r.activeElement===r.body&&this.eAutocompleteInput.getFocusableElement().focus();var n=this.eAutocompleteInput.getInputElement();n.setSelectionRange(e,e),e===n.value.length&&(n.scrollLeft=n.scrollWidth)},t.prototype.forceOpenList=function(){this.onValueChanged(this.eAutocompleteInput.getValue())},t.prototype.updateLastPosition=function(){var e;this.lastPosition=(e=this.eAutocompleteInput.getInputElement().selectionStart)!==null&&e!==void 0?e:0},t.prototype.validate=function(e){var i;this.validator&&(this.validationMessage=this.validator(e),this.eAutocompleteInput.getInputElement().setCustomValidity((i=this.validationMessage)!==null&&i!==void 0?i:""),this.valid=!this.validationMessage,this.dispatchEvent({type:t.EVENT_VALID_CHANGED,isValid:this.valid,val
226idationMessage:this.validationMessage}))},t.prototype.openList=function(){var e=this;this.isListOpen=!0,this.autocompleteList=this.createBean(new CL({autocompleteEntries:this.autocompleteListParams.entries,onConfirmed:function(){return e.confirmSelection()},forceLastSelection:this.forceLastSelection}));var i=this.autocompleteList.getGui(),r={ePopup:i,type:"autocomplete",eventSource:this.getGui(),position:"under",alignSide:this.gridOptionsService.get("enableRtl")?"right":"left",keepWithinBounds:!0},n=this.popupService.addPopup({eChild:i,anchorToElement:this.getGui(),positionCallback:function(){return e.popupService.positionPopupByComponent(r)},ariaLabel:this.listAriaLabel});this.hidePopup=n.hideFunc,this.autocompleteList.afterGuiAttached()},t.prototype.closeList=function(){this.isListOpen=!1,this.hidePopup(),this.destroyBean(this.autocompleteList),this.autocompleteList=null},t.prototype.onCompleted=function(){this.isListOpen&&this.closeList(),this.dispatchEvent({type:t.EVENT_VALUE_CONFIRMED,value:this.getValue(),isValid:this.isValid()})},t.prototype.getValue=function(){return Rr(this.eAutocompleteInput.getValue())},t.prototype.setInputPlaceholder=function(e){return this.eAutocompleteInput.setInputPlaceholder(e),this},t.prototype.setInputAriaLabel=function(e){return this.eAutocompleteInput.setInputAriaLabel(e),this},t.prototype.setListAriaLabel=function(e){return this.listAriaLabel=e,this},t.prototype.setListGenerator=function(e){return this.listGenerator=e,this},t.prototype.setValidator=function(e){return this.validator=e,this},t.prototype.isValid=function(){return this.valid},t.prototype.setValue=function(e){var i=e.value,r=e.position,n=e.silent,s=e.updateListOnlyIfOpen,a=e.restoreFocus;this.eAutocompleteInput.setValue(i,!0),this.setCaret(r??this.lastPosition,a),n||this.updateValue(i),(!s||this.isListOpen)&&this.updateAutocompleteList(i)},t.prototype.setForceLastSelection=function(e){return this.forceLastSelection=e,this},t.prototype.setInputDisabled=function(e){return this.eAutocompleteInput.setDisabled(e),this},t.EVENT_VALUE_CHANGED="eventValueChanged",t.EVENT_VALUE_CONFIRMED="eventValueConfirmed",t.EVENT_OPTION_SELECTED="eventOptionSelected",t.EVENT_VALID_CHANGED="eventValidChanged",sp([E("popupService")],t.prototype,"popupService",void 0),sp([se("eAutocompleteInput")],t.prototype,"eAutocompleteInput",void 0),sp([ie],t.prototype,"postConstruct",null),t}(We),EL=["touchstart","touchend","touchmove","touchcancel"],_L=function(){function o(t){t===void 0&&(t="javascript"),this.frameworkName=t,this.renderingEngine="vanilla",this.wrapIncoming=function(e){return e()},this.wrapOutgoing=function(e){return e()}}return o.prototype.setInterval=function(t,e){return new Ei(function(i){i(window.setInterval(t,e))})},o.prototype.addEventListener=function(t,e,i,r){var n=rr(EL,e);t.addEventListener(e,i,{capture:!!r,passive:n})},Object.defineProperty(o.prototype,"shouldWrapOutgoing",{get:function(){return!1},enumerable:!1,configurable:!0}),o.prototype.frameworkComponent=function(t){return null},o.prototype.isFrameworkComponent=function(t){return!1},o.prototype.getDocLink=function(t){var e=this.frameworkName==="solid"?"react":this.frameworkName;return"https://www.ag-grid.com/".concat(e,"-data-grid").concat(t?"/".concat(t):"")},o}(),OL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ko=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},bL=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},TL=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},RL=function(o){OL(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.getNextCellToFocus=function(e,i,r){return r===void 0&&(r=!1),r?this.getNextCellToFocusWithCtrlPressed(e,i):this.getNextCellToFocusWithoutCtrlPressed(e,i)},t.prototype.getNextCellToFocusWithCtrlPressed=function(e,i){var r=e===W.UP,n=e===W.DOWN,s=e===W.LEFT,a,l;if(r||n)l=r?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),a=i.column;else{var u=this.columnModel.getAllDisplayedColumns(),c=this.gridOptionsService.get("enableRtl");l=i.rowIndex,a=s!==c?u[0]:ot(u)}return{rowIndex:l,rowPinned:null,column:a}},t.prototype.getNextCellToFocusWithoutCtrlPressed=function(e,i){for(var r=i,n=!1;!n;){switch(e){case W.UP:r=this.getCellAbove(r);break;case W.DOWN:r=this.getCellBelow(r);break;case W.RIGHT:this.gridOptionsService.get("enableRtl")?r=this.getCellToLeft(r):r=this.getCellToRight(r);break;case W.LEFT:this.gridOptionsService.get("enableRtl")?r=this.getCellToRight(r):r=this.getCellToLeft(r);break;default:r=null,console.warn("AG Grid: unknown key for navigation "+e);break}r?n=this.isCellGoodToFocusOn(r):n=!0}return r},t.prototype.isCellGoodToFocusOn=function(e){var i=e.column,r;switch(e.rowPinned){case"top":r=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case"bottom":r=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:r=this.rowModel.getRow(e.rowIndex);break}if(!r)return!1;var n=i.isSuppressNavigable(r);return!n},t.prototype.getCellToLeft=function(e){if(!e)return null;var i=this.columnModel.getDisplayedColBefore(e.column);return i?{rowIndex:e.rowIndex,column:i,rowPinned:e.rowPinned}:null},t.prototype.getCellToRight=function(e){if(!e)return null;var i=this.columnModel.getDisplayedColAfter(e.column);return i?{rowIndex:e.rowIndex,column:i,rowPinned:e.rowPinned}:null},t.prototype.getRowBelow=function(e){var i=e.rowIndex,r=e.rowPinned;if(this.isLastRowInContainer(e))switch(r){case"bottom":return null;case"top":return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;default:return this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null}var n=this.rowModel.getRow(e.rowIndex),s=this.getNextStickyPosition(n);return s||{rowIndex:i+1,rowPinned:r}},t.prototype.getNextStickyPosition=function(e,i){if(!(!this.gridOptionsService.isGroupRowsSticky()||!e||!e.sticky)){var r=TL([],bL(this.rowRenderer.getStickyTopRowCtrls()),!1).sort(function(l,u){return l.getRowNode().rowIndex-u.getRowNode().rowIndex}),n=i?-1:1,s=r.findIndex(function(l){return l.getRowNode().rowIndex===e.rowIndex}),a=r[s+n];if(a)return{rowIndex:a.getRowNode().rowIndex,rowPinned:null}}},t.prototype.getCellBelow=function(e){if(!e)return null;var i=this.getRowBelow(e);return i?{rowIndex:i.rowIndex,column:e.column,rowPinned:i.rowPinned}:null},t.prototype.isLastRowInContainer=function(e){var i=e.rowPinned,r=e.rowIndex;if(i==="top"){var n=this.pinnedRowModel.getPinnedTopRowData().length-1;return n<=r}if(i==="bottom"){var s=this.pinnedRowModel.getPinnedBottomRowData().length-1;return s<=r}var a=this.paginationProxy.getPageLastRow();return a<=r},t.prototype.getRowAbove=function(e){var i=e.rowIndex,r=e.rowPinned,n=r?i===0:i===this.paginationProxy.getPageFirstRow();if(n)return r==="top"?null:r?this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender("top")?this.getLastFloatingTopRow():null:this.pinnedRowModel.isRowsToRender("top")?this.getLastFloatingTopRow():null;var s=this.rowModel.getRow(e.rowIndex),a=this.getNextStickyPosition(s,!0);return a||{rowIndex:i-1,rowPinned:r}},t.prototype.getCellAbove=function(e){if(!e)return null;var i=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return i?{rowIndex:i.rowIndex,column:e.column,rowPinned:i.rowPinned}:null},t.prototype.getLastBodyCell=function(){var e=this.paginationProxy.getPageLastRow();return{rowIndex:e,rowPinned:null}},t.prototype.getLastFloatingTopRow=function(){var e=this.pinnedRowModel.getPinnedTopRowData().length-1;return{rowIndex:e,rowPinned:"top"}},t.prototype.getNextTabbedCell=function(e,i){return i?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},t.prototype.getNextTabbedCellForwards=function(e){var i=this.columnModel.getAllDisplayedColumns(),r=e.rowIndex,n=e.rowPinned,s=this.columnModel.getDisplayedColAfter(e.column);if(!s){s=i[0];var a=this.getRowBelow(e);if(Me(a)||!a.rowPinned&&!this.paginationProxy.isRowInPage(a))return null;r=a?a.rowIndex:null,n=a?a.rowPinned:null}return{rowIndex:r,column:s,rowPinned:n}},t.prototype.getNextTabbedCellBackwards=function(e){var i=this.columnModel.getAllDisplayedColumns(),r=e.rowIndex,n=e.rowPinned,s=this.columnModel.getDisplayedColBefore(e.column);if(!s){s=ot(i);var a=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(Me(a)||!a.rowPinned&&!this.paginationProxy.isRowInPage(a))return null;r=a?a.rowIndex:null,n=a?a.rowPinned:null}return{rowIndex:r,column:s,rowPinned:n}},Ko([E("columnModel")],t.prototype,"columnModel",void 0),Ko([E("rowModel")],t.prototype,"rowModel",void 0),Ko([E("rowRenderer")],t.prototype,"rowRenderer",void 0),Ko([E("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Ko([E("paginationProxy")],t.prototype,"paginationProxy",void 0),t=Ko([fe("cellNavigationService")],t),t}
226(ee),AL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ga=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},PL=function(o,t){return function(e,i){t(e,i,o)}},DL=function(o){AL(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.consuming=!1,e}return t.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},t.prototype.getAlignedGridApis=function(){var e=this,i,r=(i=this.gridOptionsService.get("alignedGrids"))!==null&&i!==void 0?i:[],n=typeof r=="function";typeof r=="function"&&(r=r());var s=function(){return"See ".concat(e.getFrameworkOverrides().getDocLink("aligned-grids"))},a=r.map(function(l){var u;if(!l){Or("alignedGrids contains an undefined option."),n||Or(`You may want to configure via a callback to avoid setup race conditions: 227 "alignedGrids: () => [linkedGrid]"`),Or(s());return}if(l instanceof Ew)return l;var c=l;return"current"in c?(u=c.current)===null||u===void 0?void 0:u.api:(c.api||Or("alignedGrids - No api found on the linked grid. If you are passing gridOptions to alignedGrids since v31 this is no longer valid. ".concat(s())),c.api)}).filter(function(l){return!!l&&!l.isDestroyed()});return a},t.prototype.init=function(){this.addManagedListener(this.eventService,T.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,T.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},t.prototype.fireEvent=function(e){this.consuming||this.getAlignedGridApis().forEach(function(i){var r=i.__getAlignedGridService();e(r)})},t.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},t.prototype.fireColumnEvent=function(e){this.fireEvent(function(i){i.onColumnEvent(e)})},t.prototype.fireScrollEvent=function(e){e.direction==="horizontal"&&this.fireEvent(function(i){i.onScrollEvent(e)})},t.prototype.onScrollEvent=function(e){var i=this;this.onEvent(function(){var r=i.ctrlsService.getGridBodyCtrl();r.getScrollFeature().setHorizontalScrollPosition(e.left,!0)})},t.prototype.getMasterColumns=function(e){var i=[];return e.columns?e.columns.forEach(function(r){i.push(r)}):e.column&&i.push(e.column),i},t.prototype.getColumnIds=function(e){var i=[];return e.columns?e.columns.forEach(function(r){i.push(r.getColId())}):e.column&&i.push(e.column.getColId()),i},t.prototype.onColumnEvent=function(e){var i=this;this.onEvent(function(){switch(e.type){case T.EVENT_COLUMN_MOVED:case T.EVENT_COLUMN_VISIBLE:case T.EVENT_COLUMN_PINNED:case T.EVENT_COLUMN_RESIZED:var r=e;i.processColumnEvent(r);break;case T.EVENT_COLUMN_GROUP_OPENED:var n=e;i.processGroupOpenedEvent(n);break;case T.EVENT_COLUMN_PIVOT_CHANGED:console.warn("AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.");break}})},t.prototype.processGroupOpenedEvent=function(e){var i=this;e.columnGroups.forEach(function(r){var n=null;if(r){var s=r.getGroupId();n=i.columnModel.getProvidedColumnGroup(s)}r&&!n||(i.logger.log("onColumnEvent-> processing "+e+" expanded = "+r.isExpanded()),i.columnModel.setColumnGroupOpened(n,r.isExpanded(),"alignedGridChanged"))})},t.prototype.processColumnEvent=function(e){var i=this,r,n=e.column,s=null;if(n&&(s=this.columnModel.getPrimaryColumn(n.getColId())),!(n&&!s)){var a=this.getMasterColumns(e);switch(e.type){case T.EVENT_COLUMN_MOVED:{var l=e,u=e.api.getColumnState(),c=u.map(function(O){return{colId:O.colId}});this.columnModel.applyColumnState({state:c,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing ".concat(e.type," toIndex = ").concat(l.toIndex))}break;case T.EVENT_COLUMN_VISIBLE:{var p=e,u=e.api.getColumnState(),c=u.map(function(P){return{colId:P.colId,hide:P.hide}});this.columnModel.applyColumnState({state:c},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing ".concat(e.type," visible = ").concat(p.visible))}break;case T.EVENT_COLUMN_PINNED:{var f=e,u=e.api.getColumnState(),c=u.map(function(P){return{colId:P.colId,pinned:P.pinned}});this.columnModel.applyColumnState({state:c},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing ".concat(e.type," pinned = ").concat(f.pinned))}break;case T.EVENT_COLUMN_RESIZED:var v=e,y={};a.forEach(function(O){i.logger.log("onColumnEvent-> processing ".concat(e.type," actualWidth = ").concat(O.getActualWidth())),y[O.getId()]={key:O.getColId(),newWidth:O.getActualWidth()}}),(r=v.flexColumns)===null||r===void 0||r.forEach(function(O){y[O.getId()]&&delete y[O.getId()]}),this.columnModel.setColumnWidths(Object.values(y),!1,v.finished,"alignedGridChanged");break}var w=this.ctrlsService.getGridBodyCtrl(),b=w.isVerticalScrollShowing();
227this.getAlignedGridApis().forEach(function(O){O.setGridOption("alwaysShowVerticalScroll",b)})}},ga([E("columnModel")],t.prototype,"columnModel",void 0),ga([E("ctrlsService")],t.prototype,"ctrlsService",void 0),ga([PL(0,Hi("loggerFactory"))],t.prototype,"setBeans",null),ga([ie],t.prototype,"init",null),t=ga([fe("alignedGridsService")],t),t}(ee),LL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),tu=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Pw=function(o){LL(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.selectedNodes=new Map,e.lastRowNode=null,e}return t.prototype.init=function(){var e=this;this.rowSelection=this.gridOptionsService.get("rowSelection"),this.groupSelectsChildren=this.gridOptionsService.get("groupSelectsChildren"),this.addManagedPropertyListeners(["groupSelectsChildren","rowSelection"],function(){e.groupSelectsChildren=e.gridOptionsService.get("groupSelectsChildren"),e.rowSelection=e.gridOptionsService.get("rowSelection"),e.deselectAllRowNodes({source:"api"})}),this.addManagedListener(this.eventService,T.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},t.prototype.destroy=function(){o.prototype.destroy.call(this),this.resetNodes(),this.lastRowNode=null},t.prototype.isMultiselect=function(){return this.rowSelection==="multiple"},t.prototype.setNodesSelected=function(e){var i,r=e.newValue,n=e.clearSelection,s=e.suppressFinishActions,a=e.rangeSelect,l=e.nodes,u=e.event,c=e.source,p=c===void 0?"api":c;if(l.length===0)return 0;if(l.length>1&&!this.isMultiselect())return console.warn("AG Grid: cannot multi select while rowSelection='single'"),0;var f=this.groupSelectsChildren&&e.groupSelectsFiltered===!0,v=l.map(function(N){return N.footer?N.sibling:N});if(a){if(l.length>1)return console.warn("AG Grid: cannot range select while selecting multiple rows"),0;var y=null;if(p==="checkboxSelected"&&r===!1&&this.lastRowNode&&(this.lastRowNode.id?y=this.lastRowNode:this.lastRowNode=null),y==null&&(y=this.getLastSelectedNode()),y){var w=v[0],b=w!==y;if(b&&this.isMultiselect())return this.selectRange(w,y,r,p)}}this.lastRowNode=r?null:v[0];for(var O=0,A=0;A<v.length;A++){var P=v[A],L=f&&P.group;if(!L){var x=P.selectThisNode(r,u,p);x&&O++}this.groupSelectsChildren&&(!((i=P.childrenAfterGroup)===null||i===void 0)&&i.length)&&(O+=this.selectChildren(P,r,f,p))}if(!s){var H=r&&(n||!this.isMultiselect());if(H&&(O+=this.clearOtherNodes(v[0],p)),O>0){this.updateGroupsFromChildrenSelections(p);var g={type:T.EVENT_SELECTION_CHANGED,source:p};this.eventService.dispatchEvent(g)}}return O},t.prototype.selectRange=function(e,i,r,n){var s=this;r===void 0&&(r=!0);var a=this.rowModel.getNodesInRangeForSelection(e,i),l=0;a.forEach(function(c){if(!(c.group&&s.groupSelectsChildren)){var p=c.selectThisNode(r,void 0,n);p&&l++}}),this.updateGroupsFromChildrenSelections(n);var u={type:T.EVENT_SELECTION_CHANGED,source:n};return this.eventService.dispatchEvent(u),l},t.prototype.selectChildren=function(e,i,r,n){var s=r?e.childrenAfterAggFilter:e.childrenAfterGroup;return Me(s)?0:this.setNodesSelected({newValue:i,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:r,source:n,nodes:s})},t.prototype.getLastSelectedNode=function(){var e=Array.from(this.selectedNodes.keys());if(e.length==0)return null;var i=this.selectedNodes.get(ot(e));return i||null},t.prototype.getSelectedNodes=function(){var e=[];
227return this.selectedNodes.forEach(function(i){i&&e.push(i)}),e},t.prototype.getSelectedRows=function(){var e=[];return this.selectedNodes.forEach(function(i){i&&i.data&&e.push(i.data)}),e},t.prototype.getSelectionCount=function(){return this.selectedNodes.size},t.prototype.filterFromSelection=function(e){var i=new Map;this.selectedNodes.forEach(function(r,n){var s=r&&e(r);s&&i.set(n,r)}),this.selectedNodes=i},t.prototype.updateGroupsFromChildrenSelections=function(e,i){if(!this.groupSelectsChildren||this.rowModel.getType()!=="clientSide")return!1;var r=this.rowModel,n=r.getRootNode();i||(i=new Mc(!0,n),i.setInactive());var s=!1;return i.forEachChangedNodeDepthFirst(function(a){if(a!==n){var l=a.calculateSelectedFromChildren();s=a.selectThisNode(l===null?!1:l,void 0,e)||s}}),s},t.prototype.clearOtherNodes=function(e,i){var r=this,n=new Map,s=0;return this.selectedNodes.forEach(function(a){if(a&&a.id!==e.id){var l=r.selectedNodes.get(a.id);s+=l.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:i}),r.groupSelectsChildren&&a.parent&&n.set(a.parent.id,a.parent)}}),n.forEach(function(a){var l=a.calculateSelectedFromChildren();a.selectThisNode(l===null?!1:l,void 0,i)}),s},t.prototype.onRowSelected=function(e){var i=e.node;this.groupSelectsChildren&&i.group||(i.isSelected()?this.selectedNodes.set(i.id,i):this.selectedNodes.delete(i.id))},t.prototype.syncInRowNode=function(e,i){this.syncInOldRowNode(e,i),this.syncInNewRowNode(e)},t.prototype.syncInOldRowNode=function(e,i){var r=Q(i)&&e.id!==i.id;if(r&&i){var n=i.id,s=this.selectedNodes.get(n)==e;s&&this.selectedNodes.set(i.id,i)}},t.prototype.syncInNewRowNode=function(e){this.selectedNodes.has(e.id)?(e.setSelectedInitialValue(!0),this.selectedNodes.set(e.id,e)):e.setSelectedInitialValue(!1)},t.prototype.reset=function(e){var i=this.getSelectionCount();if(this.resetNodes(),i){var r={type:T.EVENT_SELECTION_CHANGED,source:e};this.eventService.dispatchEvent(r)}},t.prototype.resetNodes=function(){var e;(e=this.selectedNodes)===null||e===void 0||e.clear()},t.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()!=="clientSide")return;var e=this.rowModel,i=e.getTopLevelNodes();if(i===null)return;var r=[];function n(s){for(var a=0,l=s.length;a<l;a++){var u=s[a];if(u.isSelected())r.push(u);else{var c=u;c.group&&c.children&&n(c.children)}}}return n(i),r},t.prototype.isEmpty=function(){var e=0;return this.selectedNodes.forEach(function(i){i&&e++}),e===0},t.prototype.deselectAllRowNodes=function(e){var i=function(u){return u.selectThisNode(!1,void 0,n)},r=this.rowModel.getType()==="clientSide",n=e.source,s=e.justFiltered,a=e.justCurrentPage;if(a||s){if(!r){console.error("AG Grid: selecting just filtered only works when gridOptions.rowModelType='clientSide'");return}this.getNodesToSelect(s,a).forEach(i)}else this.selectedNodes.forEach(function(u){u&&i(u)}),this.reset(n);r&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(n);var l={type:T.EVENT_SELECTION_CHANGED,source:n};this.eventService.dispatchEvent(l)},t.prototype.getSelectedCounts=function(e,i){var r=this,n=0,s=0,a=function(l){r.groupSelectsChildren&&l.group||(l.isSelected()?n++:l.selectable&&s++)};return this.getNodesToSelect(e,i).forEach(a),{selectedCount:n,notSelectedCount:s}},t.prototype.getSelectAllState=function(e,i){var r=this.getSelectedCounts(e,i),n=r.selectedCount,s=r.notSelectedCount;return n===0&&s===0?!1:n>0&&s>0?null:n>0},t.prototype.hasNodesToSelect=function(e,i){return e===void 0&&(e=!1),i===void 0&&(i=!1),this.getNodesToSelect(e,i).filter(function(r){return r.selectable}).length>0},t.prototype.getNodesToSelect=function(e,i){var r=this;if(e===void 0&&(e=!1),i===void 0&&(i=!1),this.rowModel.getType()!=="clientSide")throw new Error("selectAll only available when rowModelType='clientSide', ie not ".concat(this.rowModel.getType()));var n=[];if(i)return this.paginationProxy.forEachNodeOnPage(function(a){if(!a.group){n.push(a);return}if(!a.expanded){var l=function(u){var c;n.push(u),!((c=u.childrenAfterFilter)===null||c===void 0)&&c.length&&u.childrenAfterFilter.forEach(l)};l(a);return}r.groupSelectsChildren||n.push(a)}),n;var s=this.rowModel;return e?(s.forEachNodeAfterFilter(function(a){n.push(a)}),n):(s.forEachNode(function(a){n.push(a)}),n)},t.prototype.selectAllRowNodes=function(e){if(this.rowModel.getType()!=="clientSide")throw new Error("selectAll only available when rowModelType='clientSide', ie not ".concat(this.rowModel.getType()));var i=e.source,r=e.justFiltered,n=e.justCurrentPage,s=function(l){return l.selectThisNode(!0,void 0,i)};
227this.getNodesToSelect(r,n).forEach(s),this.rowModel.getType()==="clientSide"&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(i);var a={type:T.EVENT_SELECTION_CHANGED,source:i};this.eventService.dispatchEvent(a)},t.prototype.getSelectionState=function(){var e=[];return this.selectedNodes.forEach(function(i){i!=null&&i.id&&e.push(i.id)}),e.length?e:null},t.prototype.setSelectionState=function(e,i){if(Array.isArray(e)){var r=new Set(e),n=[];this.rowModel.forEachNode(function(s){r.has(s.id)&&n.push(s)}),this.setNodesSelected({newValue:!0,nodes:n,source:i})}},tu([E("rowModel")],t.prototype,"rowModel",void 0),tu([E("paginationProxy")],t.prototype,"paginationProxy",void 0),tu([ie],t.prototype,"init",null),t=tu([fe("selectionService")],t),t}(ee),Xg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},FL=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},ML=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},Dw=function(){function o(t){var e=this;this.viaApi=function(i){for(var r,n=[],s=1;s<arguments.length;s++)n[s-1]=arguments[s];return Le("Since v31, 'columnApi.".concat(i,"' is deprecated and moved to 'api.").concat(i,"'.")),(r=e.api)[i].apply(r,ML([],FL(n),!1))},this.api=t}return o.prototype.sizeColumnsToFit=function(t){this.viaApi("sizeColumnsToFit",t)},o.prototype.setColumnGroupOpened=function(t,e){this.viaApi("setColumnGroupOpened",t,e)},o.prototype.getColumnGroup=function(t,e){return this.viaApi("getColumnGroup",t,e)},o.prototype.getProvidedColumnGroup=function(t){return this.viaApi("getProvidedColumnGroup",t)},o.prototype.getDisplayNameForColumn=function(t,e){return this.viaApi("getDisplayNameForColumn",t,e)},o.prototype.getDisplayNameForColumnGroup=function(t,e){return this.viaApi("getDisplayNameForColumnGroup",t,e)},o.prototype.getColumn=function(t){return this.viaApi("getColumn",t)},o.prototype.getColumns=function(){return this.viaApi("getColumns")},o.prototype.applyColumnState=function(t){return this.viaApi("applyColumnState",t)},o.prototype.getColumnState=function(){return this.viaApi("getColumnState")},o.prototype.resetColumnState=function(){this.viaApi("resetColumnState")},o.prototype.getColumnGroupState=function(){return this.viaApi("getColumnGroupState")},o.prototype.setColumnGroupState=function(t){this.viaApi("setColumnGroupState",t)},o.prototype.resetColumnGroupState=function(){this.viaApi("resetColumnGroupState")},o.prototype.isPinning=function(){return this.viaApi("isPinning")},o.prototype.isPinningLeft=function(){return this.viaApi("isPinningLeft")},o.prototype.isPinningRight=function(){return this.viaApi("isPinningRight")},o.prototype.getDisplayedColAfter=function(t){return this.viaApi("getDisplayedColAfter",t)},o.prototype.getDisplayedColBefore=function(t){return this.viaApi("getDisplayedColBefore",t)},o.prototype.setColumnVisible=function(t,e){this.viaApi("setColumnVisible",t,e)},o.prototype.setColumnsVisible=function(t,e){this.viaApi("setColumnsVisible",t,e)},o.prototype.setColumnPinned=function(t,e){this.viaApi("setColumnPinned",t,e)},o.prototype.setColumnsPinned=function(t,e){this.viaApi("setColumnsPinned",t,e)},o.prototype.getAllGridColumns=function(){return this.viaApi("getAllGridColumns")},o.prototype.getDisplayedLeftColumns=function(){return this.viaApi("getDisplayedLeftColumns")},o.prototype.getDisplayedCenterColumns=function(){return this.viaApi("getDisplayedCenterColumns")},o.prototype.getDisplayedRightColumns=function(){return this.viaApi("getDisplayedRightColumns")},o.prototype.getAllDisplayedColumns=function(){return this.viaApi("getAllDisplayedColumns")},o.prototype.getAllDisplayedVirtualColumns=function(){return this.viaApi("getAllDisplayedVirtualColumns")},o.prototype.moveColumn=function(t,e){this.viaApi("moveColumn",t,e)},o.prototype.moveColumnByIndex=function(t,e){this.viaApi("moveColumnByIndex",t,e)},o.prototype.moveColumns=function(t,e){this.viaApi("moveColumns",t,e)},o.prototype.moveRowGroupColumn=function(t,e){this.viaApi("moveRowGroupColumn",t,e)}
227,o.prototype.setColumnAggFunc=function(t,e){this.viaApi("setColumnAggFunc",t,e)},o.prototype.setColumnWidth=function(t,e,i,r){i===void 0&&(i=!0),this.viaApi("setColumnWidth",t,e,i,r)},o.prototype.setColumnWidths=function(t,e,i){e===void 0&&(e=!0),this.viaApi("setColumnWidths",t,e,i)},o.prototype.setPivotMode=function(t){this.viaApi("setPivotMode",t)},o.prototype.isPivotMode=function(){return this.viaApi("isPivotMode")},o.prototype.getPivotResultColumn=function(t,e){return this.viaApi("getPivotResultColumn",t,e)},o.prototype.setValueColumns=function(t){this.viaApi("setValueColumns",t)},o.prototype.getValueColumns=function(){return this.viaApi("getValueColumns")},o.prototype.removeValueColumn=function(t){this.viaApi("removeValueColumn",t)},o.prototype.removeValueColumns=function(t){this.viaApi("removeValueColumns",t)},o.prototype.addValueColumn=function(t){this.viaApi("addValueColumn",t)},o.prototype.addValueColumns=function(t){this.viaApi("addValueColumns",t)},o.prototype.setRowGroupColumns=function(t){this.viaApi("setRowGroupColumns",t)},o.prototype.removeRowGroupColumn=function(t){this.viaApi("removeRowGroupColumn",t)},o.prototype.removeRowGroupColumns=function(t){this.viaApi("removeRowGroupColumns",t)},o.prototype.addRowGroupColumn=function(t){this.viaApi("addRowGroupColumn",t)},o.prototype.addRowGroupColumns=function(t){this.viaApi("addRowGroupColumns",t)},o.prototype.getRowGroupColumns=function(){return this.viaApi("getRowGroupColumns")},o.prototype.setPivotColumns=function(t){this.viaApi("setPivotColumns",t)},o.prototype.removePivotColumn=function(t){this.viaApi("removePivotColumn",t)},o.prototype.removePivotColumns=function(t){this.viaApi("removePivotColumns",t)},o.prototype.addPivotColumn=function(t){this.viaApi("addPivotColumn",t)},o.prototype.addPivotColumns=function(t){this.viaApi("addPivotColumns",t)},o.prototype.getPivotColumns=function(){return this.viaApi("getPivotColumns")},o.prototype.getLeftDisplayedColumnGroups=function(){return this.viaApi("getLeftDisplayedColumnGroups")},o.prototype.getCenterDisplayedColumnGroups=function(){return this.viaApi("getCenterDisplayedColumnGroups")},o.prototype.getRightDisplayedColumnGroups=function(){return this.viaApi("getRightDisplayedColumnGroups")},o.prototype.getAllDisplayedColumnGroups=function(){return this.viaApi("getAllDisplayedColumnGroups")},o.prototype.autoSizeColumn=function(t,e){return this.viaApi("autoSizeColumn",t,e)},o.prototype.autoSizeColumns=function(t,e){this.viaApi("autoSizeColumns",t,e)},o.prototype.autoSizeAllColumns=function(t){this.viaApi("autoSizeAllColumns",t)},o.prototype.setPivotResultColumns=function(t){this.viaApi("setPivotResultColumns",t)},o.prototype.getPivotResultColumns=function(){return this.viaApi("getPivotResultColumns")},Xg([E("gridApi")],o.prototype,"api",void 0),o=Xg([fe("columnApi")],o),o}(),IL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Yo=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},xL=function(o){IL(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.initialised=!1,e.isSsrm=!1,e}return t.prototype.init=function(){var e=this;this.isSsrm=this.gridOptionsService.isRowModelType("serverSide"),this.cellExpressions=this.gridOptionsService.get("enableCellExpressions"),this.isTreeData=this.gridOptionsService.get("treeData"),this.initialised=!0;var i=function(n){return e.callColumnCellValueChangedHandler(n)},r=this.gridOptionsService.useAsyncEvents();this.eventService.addEventListener(T.EVENT_CELL_VALUE_CHANGED,i,r),this.addDestroyFunc(function(){return e.eventService.removeEventListener(T.EVENT_CELL_VALUE_CHANGED,i,r)}),this.addManagedPropertyListener("treeData",function(n){return e.isTreeData=n.currentValue})},t.prototype.getValue=function(e,i,r,n){if(r===void 0&&(r=!1),n===void 0&&(n=!1),this.initialised||this.init(),!!i){var s=e.getColDef(),a=s.field,l=e.getColId(),u=i.data,c,p=i.groupData&&i.groupData[l]!==void 0,f=!n&&i.aggData&&i.aggData[l]!==void 0,v=this.isSsrm&&n&&!!e.getColDef().aggFunc,y=this.isSsrm&&i.footer&&i.field&&(e.getColDef().showRowGroup===!0||e.getColDef().showRowGroup===i.field);if(r&&s.filterValueGetter?c=this.executeFilterValueGetter(s.filterValueGetter,u,e,i):this.isTreeData&&f?c=i.aggData[l]:this.isTreeData&&s.valueGetter?c=this.execute
227ValueGetter(s.valueGetter,u,e,i):this.isTreeData&&a&&u?c=ps(u,a,e.isFieldContainsDots()):p?c=i.groupData[l]:f?c=i.aggData[l]:s.valueGetter?c=this.executeValueGetter(s.valueGetter,u,e,i):y?c=ps(u,i.field,e.isFieldContainsDots()):a&&u&&!v&&(c=ps(u,a,e.isFieldContainsDots())),this.cellExpressions&&typeof c=="string"&&c.indexOf("=")===0){var w=c.substring(1);c=this.executeValueGetter(w,u,e,i)}if(c==null){var b=this.getOpenedGroup(i,e);if(b!=null)return b}return c}},t.prototype.getOpenedGroup=function(e,i){if(this.gridOptionsService.get("showOpenedGroup")){var r=i.getColDef();if(r.showRowGroup)for(var n=i.getColDef().showRowGroup,s=e.parent;s!=null;){if(s.rowGroupColumn&&(n===!0||n===s.rowGroupColumn.getColId()))return s.key;s=s.parent}}},t.prototype.setValue=function(e,i,r,n){var s=this.columnModel.getPrimaryColumn(i);if(!e||!s)return!1;Me(e.data)&&(e.data={});var a=s.getColDef(),l=a.field,u=a.valueSetter;if(Me(l)&&Me(u))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;if(!this.dataTypeService.checkType(s,r))return console.warn("AG Grid: Data type of the new value does not match the cell data type of the column"),!1;var c=this.gridOptionsService.addGridCommonParams({node:e,data:e.data,oldValue:this.getValue(s,e),newValue:r,colDef:s.getColDef(),column:s});c.newValue=r;var p;if(Q(u)?typeof u=="function"?p=u(c):p=this.expressionService.evaluate(u,c):p=this.setValueUsingField(e.data,l,r,s.isFieldContainsDots()),p===void 0&&(p=!0),!p)return!1;e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),c.newValue=this.getValue(s,e);var f={type:T.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:c.column,api:c.api,columnApi:c.columnApi,colDef:c.colDef,context:c.context,data:e.data,node:e,oldValue:c.oldValue,newValue:c.newValue,value:c.newValue,source:n};return this.eventService.dispatchEvent(f),!0},t.prototype.callColumnCellValueChangedHandler=function(e){var i=e.colDef.onCellValueChanged;typeof i=="function"&&this.getFrameworkOverrides().wrapOutgoing(function(){i({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,columnApi:e.columnApi,context:e.context})})},t.prototype.setValueUsingField=function(e,i,r,n){if(!i)return!1;var s=!1;if(!n)s=e[i]===r,s||(e[i]=r);else for(var a=i.split("."),l=e;a.length>0&&l;){var u=a.shift();a.length===0?(s=l[u]===r,s||(l[u]=r)):l=l[u]}return!s},t.prototype.executeFilterValueGetter=function(e,i,r,n){var s=this.gridOptionsService.addGridCommonParams({data:i,node:n,column:r,colDef:r.getColDef(),getValue:this.getValueCallback.bind(this,n)});return typeof e=="function"?e(s):this.expressionService.evaluate(e,s)},t.prototype.executeValueGetter=function(e,i,r,n){var s=r.getColId(),a=this.valueCache.getValue(n,s);if(a!==void 0)return a;var l=this.gridOptionsService.addGridCommonParams({data:i,node:n,column:r,colDef:r.getColDef(),getValue:this.getValueCallback.bind(this,n)}),u;return typeof e=="function"?u=e(l):u=this.expressionService.evaluate(e,l),this.valueCache.setValue(n,s,u),u},t.prototype.getValueCallback=function(e,i){var r=this.columnModel.getPrimaryColumn(i);return r?this.getValue(r,e):null},t.prototype.getKeyForNode=function(e,i){var r=this.getValue(e,i),n=e.getColDef().keyCreator,s=r;if(n){var a=this.gridOptionsService.addGridCommonParams({value:r,colDef:e.getColDef(),column:e,node:i,data:i.data});s=n(a)}return typeof s=="string"||s==null||(s=String(s),s==="[object Object]"&&Le("a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key")),s},Yo([E("expressionService")],t.prototype,"expressionService",void 0),Yo([E("columnModel")],t.prototype,"columnModel",void 0),Yo([E("valueCache")],t.prototype,"valueCache",void 0),Yo([E("dataTypeService")],t.prototype,"dataTypeService",void 0),Yo([ie],t.prototype,"init",null),t=Yo([fe("valueService")],t),t}(ee),NL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&
227(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Qg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},GL=function(o,t){return function(e,i){t(e,i,o)}},HL=function(o){NL(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.expressionToFunctionCache={},e}return t.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},t.prototype.evaluate=function(e,i){if(typeof e=="string")return this.evaluateExpression(e,i);console.error("AG Grid: value should be either a string or a function",e)},t.prototype.evaluateExpression=function(e,i){try{var r=this.createExpressionFunction(e),n=r(i.value,i.context,i.oldValue,i.newValue,i.value,i.node,i.data,i.colDef,i.rowIndex,i.api,i.columnApi,i.getValue,i.column,i.columnGroup);return n}catch(s){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",i),console.log("Exception = "+s),null}},t.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var i=this.createFunctionBody(e),r=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",i);return this.expressionToFunctionCache[e]=r,r},t.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},Qg([GL(0,Hi("loggerFactory"))],t.prototype,"setBeans",null),t=Qg([fe("expressionService")],t),t}(ee),VL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),kL=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},BL=function(o){VL(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.templateCache={},e.waitingCallbacks={},e}return t.prototype.getTemplate=function(e,i){var r=this.templateCache[e];if(r)return r;var n=this.waitingCallbacks[e],s=this;if(!n){n=[],this.waitingCallbacks[e]=n;var a=new XMLHttpRequest;a.onload=function(){s.handleHttpResult(this,e)},a.open("GET",e),a.send()}return i&&n.push(i),null},t.prototype.handleHttpResult=function(e,i){if(e.status!==200||e.response===null){console.warn("AG Grid: Unable to get template error ".concat(e.status," - ").concat(i));return}this.templateCache[i]=e.response||e.responseText;for(var r=this.waitingCallbacks[i],n=0;n<r.length;n++){var s=r[n];s()}},t=kL([fe("templateService")],t),t}(ee),jL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Jg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},WL=function(o,t){return function(e,i){t(e,i,o)}},UL=function(o){jL(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.setBeans=function(e){this.logging=e.get("debug")},t.prototype.create=function(e){return new Ph(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},Jg([WL(0,Hi("gridOptionsService"))],t.prototype,"setBeans",null),t=Jg([fe("loggerFactory")],t),t}(ee),Ph=function(){function o(t,e){this.name=t,this.isLoggingFunc=e}return o.prototype.isLogging=function(){return this.isLoggingFunc()},o.prototype.log=function(t){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+t)},o}
227(),zL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),qo=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},$L=function(o){zL(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.setComp=function(e,i,r){var n=this;this.view=e,this.eGridHostDiv=i,this.eGui=r,this.eGui.setAttribute("grid-id",this.context.getGridId()),this.dragAndDropService.addDropTarget({getContainer:function(){return n.eGui},isInterestedIn:function(a){return a===hi.HeaderCell||a===hi.ToolPanel},getIconName:function(){return It.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(i),this.createManagedBean(new bh(this.view)),this.addRtlSupport();var s=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(function(){return s()}),this.ctrlsService.registerGridCtrl(this)},t.prototype.isDetailGrid=function(){var e,i=this.focusService.findTabbableParent(this.getGui());return((e=i==null?void 0:i.getAttribute("row-id"))===null||e===void 0?void 0:e.startsWith("detail"))||!1},t.prototype.showDropZones=function(){return ct.__isRegistered(Oe.RowGroupingModule,this.context.getGridId())},t.prototype.showSideBar=function(){return ct.__isRegistered(Oe.SideBarModule,this.context.getGridId())},t.prototype.showStatusBar=function(){return ct.__isRegistered(Oe.StatusBarModule,this.context.getGridId())},t.prototype.showWatermark=function(){return ct.__isRegistered(Oe.EnterpriseCoreModule,this.context.getGridId())},t.prototype.onGridSizeChanged=function(){var e={type:T.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(e)},t.prototype.addRtlSupport=function(){var e=this.gridOptionsService.get("enableRtl")?"ag-rtl":"ag-ltr";this.view.setRtlClass(e)},t.prototype.destroyGridUi=function(){this.view.destroyGridUi()},t.prototype.getGui=function(){return this.eGui},t.prototype.setResizeCursor=function(e){this.view.setCursor(e?"ew-resize":null)},t.prototype.disableUserSelect=function(e){this.view.setUserSelect(e?"none":null)},t.prototype.focusNextInnerContainer=function(e){var i=this.gridOptionsService.getDocument(),r=this.view.getFocusableContainers(),n=r.findIndex(function(a){return a.contains(i.activeElement)}),s=n+(e?-1:1);return s<=0||s>=r.length?!1:this.focusService.focusInto(r[s])},t.prototype.focusInnerElement=function(e){var i=this.view.getFocusableContainers(),r=this.columnModel.getAllDisplayedColumns();if(e){if(i.length>1)return this.focusService.focusInto(ot(i),!0);var n=ot(r);if(this.focusService.focusGridView(n,!0))return!0}if(this.gridOptionsService.get("headerHeight")===0||this.gridOptionsService.get("suppressHeaderFocus")){if(this.focusService.focusGridView(r[0]))return!0;for(var s=1;s<i.length;s++)if(this.focusService.focusInto(i[s]))return!0;return!1}return this.focusService.focusFirstHeader()},t.prototype.forceFocusOutOfContainer=function(e){e===void 0&&(e=!1),this.view.forceFocusOutOfContainer(e)},qo([E("focusService")],t.prototype,"focusService",void 0),qo([E("resizeObserverService")],t.prototype,"resizeObserverService",void 0),qo([E("columnModel")],t.prototype,"columnModel",void 0),qo([E("ctrlsService")],t.prototype,"ctrlsService",void 0),qo([E("mouseEventService")],t.prototype,"mouseEventService",void 0),qo([E("dragAndDropService")],t.prototype,"dragAndDropService",void 0),t}
227(ee),KL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ya=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},YL=function(o){KL(t,o);function t(e){var i=o.call(this)||this;return i.eGridDiv=e,i}return t.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridComp");var i={destroyGridUi:function(){return e.destroyBean(e)},setRtlClass:function(n){return e.addCssClass(n)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(n){e.getGui().style.userSelect=n??"",e.getGui().style.webkitUserSelect=n??""},setCursor:function(n){e.getGui().style.cursor=n??""}};this.ctrl=this.createManagedBean(new $L);var r=this.createTemplate();
227this.setTemplate(r),this.ctrl.setComp(i,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(n){return e.ctrl.focusInnerElement(n)},forceFocusOutWhenTabGuardsAreEmpty:!0})},t.prototype.insertGridIntoDom=function(){var e=this,i=this.getGui();this.eGridDiv.appendChild(i),this.addDestroyFunc(function(){e.eGridDiv.removeChild(i),e.logger.log("Grid removed from DOM")})},t.prototype.updateLayoutClasses=function(e,i){var r=this.eRootWrapperBody.classList;r.toggle(Pt.AUTO_HEIGHT,i.autoHeight),r.toggle(Pt.NORMAL,i.normal),r.toggle(Pt.PRINT,i.print),this.addOrRemoveCssClass(Pt.AUTO_HEIGHT,i.autoHeight),this.addOrRemoveCssClass(Pt.NORMAL,i.normal),this.addOrRemoveCssClass(Pt.PRINT,i.print)},t.prototype.createTemplate=function(){var e=this.ctrl.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"",i=this.ctrl.showSideBar()?'<ag-side-bar ref="sideBar"></ag-side-bar>':"",r=this.ctrl.showStatusBar()?'<ag-status-bar ref="statusBar"></ag-status-bar>':"",n=this.ctrl.showWatermark()?"<ag-watermark></ag-watermark>":"",s=`<div class="ag-root-wrapper" role="presentation"> 228 `.concat(e,` 229 <div class="ag-root-wrapper-body" ref="rootWrapperBody" role="presentation"> 230 <ag-grid-body ref="gridBody"></ag-grid-body> 231 `).concat(i,` 232 </div> 233 `).concat(r,` 234 <ag-pagination></ag-pagination> 235 `).concat(n,` 236 </div>`);return s},t.prototype.getFocusableElement=function(){return this.eRootWrapperBody},t.prototype.getFocusableContainers=function(){var e=[this.gridBodyComp.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter(function(i){return Ti(i)})},ya([E("loggerFactory")],t.prototype,"loggerFactory",void 0),ya([se("gridBody")],t.prototype,"gridBodyComp",void 0),ya([se("sideBar")],t.prototype,"sideBarComp",void 0),ya([se("rootWrapperBody")],t.prototype,"eRootWrapperBody",void 0),ya([ie],t.prototype,"postConstruct",null),t}(ul),qL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Zg=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},vr=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},hn=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},XL=function(o){qL(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}e=t,t.prototype.progressSort=function(i,r,n){var s=this.getNextSortDirection(i);this.setSortForColumn(i,s,r,n)},t.prototype.setSortForColumn=function(i,r,n,s){r!=="asc"&&r!=="desc"&&(r=null);var a=this.gridOptionsService.isColumnsSortingCoupledToGroup(),l=[i];if(a&&i.getColDef().showRowGroup){var u=this.columnModel.getSourceColumnsForGroupColumn(i),c=u==null?void 0:u.filter(function(y){return y.isSortable()});c&&(l=hn([i],vr(c),!1))}l.forEach(function(y){return y.setSort(r,s)});var p=(n||this.gridOptionsService.get("alwaysMultiSort"))&&!this.gridOptionsService.get("suppressMultiSort"),f=[];if(!p){var v=this.clearSortBarTheseColumns(l,s);f.push.apply(f,hn([],vr(v),!1))}this.updateSortIndex(i),f.push.apply(f,hn([],vr(l),!1)),this.dispatchSortChangedEvents(s,f)},t.prototype.updateSortIndex=function(i){var r=this.gridOptionsService.isColumnsSortingCoupledToGroup(),n=this.columnModel.getGroupDisplayColumnForGroup(i.getId()),s=r&&n||i,a=this.getColumnsWithSortingOrdered();
236this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(c){return c.setSortIndex(null)});var l=a.filter(function(c){return r&&c.getColDef().showRowGroup?!1:c!==s}),u=s.getSort()?hn(hn([],vr(l),!1),[s],!1):l;u.forEach(function(c,p){c.setSortIndex(p)})},t.prototype.onSortChanged=function(i,r){this.dispatchSortChangedEvents(i,r)},t.prototype.isSortActive=function(){var i=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),r=i.filter(function(n){return!!n.getSort()});return r&&r.length>0},t.prototype.dispatchSortChangedEvents=function(i,r){var n={type:T.EVENT_SORT_CHANGED,source:i};r&&(n.columns=r),this.eventService.dispatchEvent(n)},t.prototype.clearSortBarTheseColumns=function(i,r){var n=[];return this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(s){i.includes(s)||(s.getSort()&&n.push(s),s.setSort(void 0,r))}),n},t.prototype.getNextSortDirection=function(i){var r;if(i.getColDef().sortingOrder?r=i.getColDef().sortingOrder:this.gridOptionsService.get("sortingOrder")?r=this.gridOptionsService.get("sortingOrder"):r=e.DEFAULT_SORTING_ORDER,!Array.isArray(r)||r.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's ".concat(r)),null;var n=r.indexOf(i.getSort()),s=n<0,a=n==r.length-1,l;return s||a?l=r[0]:l=r[n+1],e.DEFAULT_SORTING_ORDER.indexOf(l)<0?(console.warn("AG Grid: invalid sort type "+l),null):l},t.prototype.getIndexedSortMap=function(){var i=this,r=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter(function(c){return!!c.getSort()});if(this.columnModel.isPivotMode()){var n=this.gridOptionsService.isColumnsSortingCoupledToGroup();r=r.filter(function(c){var p=!!c.getAggFunc(),f=!c.isPrimary(),v=n?i.columnModel.getGroupDisplayColumnForGroup(c.getId()):c.getColDef().showRowGroup;return p||f||v})}var s=this.columnModel.getRowGroupColumns().filter(function(c){return!!c.getSort()}),a=this.gridOptionsService.isColumnsSortingCoupledToGroup()&&!!s.length;a&&(r=hn([],vr(new Set(r.map(function(c){var p;return(p=i.columnModel.getGroupDisplayColumnForGroup(c.getId()))!==null&&p!==void 0?p:c}))),!1));var l={};r.forEach(function(c,p){return l[c.getId()]=p}),r.sort(function(c,p){var f=c.getSortIndex(),v=p.getSortIndex();if(f!=null&&v!=null)return f-v;if(f==null&&v==null){var y=l[c.getId()],w=l[p.getId()];return y>w?1:-1}else return v==null?-1:1});var u=new Map;return r.forEach(function(c,p){return u.set(c,p)}),a&&s.forEach(function(c){var p=i.columnModel.getGroupDisplayColumnForGroup(c.getId());u.set(c,u.get(p))}),u},t.prototype.getColumnsWithSortingOrdered=function(){return hn([],vr(this.getIndexedSortMap().entries()),!1).sort(function(i,r){var n=vr(i,2);n[0];var s=n[1],a=vr(r,2);a[0];var l=a[1];return s-l}).map(function(i){var r=vr(i,1),n=r[0];return n})},t.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().filter(function(i){return i.getSort()}).map(function(i){return{sort:i.getSort(),colId:i.getId()}})},t.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().filter(function(i){return i.getSort()}).map(function(i){return{sort:i.getSort(),column:i}})},t.prototype.canColumnDisplayMixedSort=function(i){var r=this.gridOptionsService.isColumnsSortingCoupledToGroup(),n=!!i.getColDef().showRowGroup;return r&&n},t.prototype.getDisplaySortForColumn=function(i){var r=this.columnModel.getSourceColumnsForGroupColumn(i);if(!this.canColumnDisplayMixedSort(i)||!(r!=null&&r.length))return i.getSort();var n=i.getColDef().field!=null||!!i.getColDef().valueGetter,s=n?hn([i],vr(r),!1):r,a=s[0].getSort(),l=s.every(function(u){return u.getSort()==a});return l?a:"mixed"},t.prototype.getDisplaySortIndexForColumn=function(i){return this.getIndexedSortMap().get(i)};var e;return t.DEFAULT_SORTING_ORDER=["asc","desc",null],Zg([E("columnModel")],t.prototype,"columnModel",void 0),t=e=Zg([fe("sortController")],t),t}(ee),QL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&
236(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ma=function(){return Ma=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},Ma.apply(this,arguments)},ri=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},JL=function(o){QL(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}e=t,t.addKeyboardModeEvents=function(i){this.instanceCount>0||(i.addEventListener("keydown",e.toggleKeyboardMode),i.addEventListener("mousedown",e.toggleKeyboardMode))},t.removeKeyboardModeEvents=function(i){this.instanceCount>0||(i.addEventListener("keydown",e.toggleKeyboardMode),i.addEventListener("mousedown",e.toggleKeyboardMode))},t.toggleKeyboardMode=function(i){var r=e.keyboardModeActive,n=i.type==="
236keydown";n&&(i.ctrlKey||i.metaKey||i.altKey)||r!==n&&(e.keyboardModeActive=n)},t.unregisterGridCompController=function(i){e.removeKeyboardModeEvents(i)},t.prototype.init=function(){var i=this,r=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_MODE_CHANGED,r),this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_GROUP_OPENED,r),this.addManagedListener(this.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,r),this.registerKeyboardFocusEvents(),this.ctrlsService.whenReady(function(n){i.gridCtrl=n.gridCtrl})},t.prototype.registerKeyboardFocusEvents=function(){var i=this.gridOptionsService.getDocument();e.addKeyboardModeEvents(i),e.instanceCount++,this.addDestroyFunc(function(){e.instanceCount--,e.unregisterGridCompController(i)})},t.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var i=this.focusedCellPosition.column,r=this.columnModel.getGridColumn(i.getId());i!==r&&this.clearFocusedCell()}},t.prototype.isKeyboardMode=function(){return e.keyboardModeActive},t.prototype.getFocusCellToUseAfterRefresh=function(){var i=this.gridOptionsService.getDocument();return this.gridOptionsService.get("suppressFocusAfterRefresh")||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(i.activeElement,go.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},t.prototype.getFocusHeaderToUseAfterRefresh=function(){var i=this.gridOptionsService.getDocument();return this.gridOptionsService.get("suppressFocusAfterRefresh")||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(i.activeElement,Fc.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},t.prototype.isDomDataMissingInHierarchy=function(i,r){for(var n=i;n;){var s=this.gridOptionsService.getDomData(n,r);if(s)return!1;n=n.parentNode}return!0},t.prototype.getFocusedCell=function(){return this.focusedCellPosition},t.prototype.shouldRestoreFocus=function(i){var r=this;return this.isCellRestoreFocused(i)?(setTimeout(function(){r.restoredFocusedCellPosition=null},0),!0):!1},t.prototype.isCellRestoreFocused=function(i){return this.restoredFocusedCellPosition==null?!1:this.cellPositionUtils.equals(i,this.restoredFocusedCellPosition)},t.prototype.setRestoreFocusedCell=function(i){this.getFrameworkOverrides().renderingEngine==="react"&&(this.restoredFocusedCellPosition=i)},t.prototype.getFocusEventParams=function(){var i=this.focusedCellPosition,r=i.rowIndex,n=i.rowPinned,s=i.column,a={rowIndex:r,rowPinned:n,column:s,isFullWidthCell:!1},l=this.rowRenderer.getRowByPosition({rowIndex:r,rowPinned:n});return l&&(a.isFullWidthCell=l.isFullWidth()),a},t.prototype.clearFocusedCell=function(){if(this.restoredFocusedCellPosition=null,this.focusedCellPosition!=null){var i=Ma({type:T.EVENT_CELL_FOCUS_CLEARED},this.getFocusEventParams());this.focusedCellPosition=null,this.eventService.dispatchEvent(i)}},t.prototype.setFocusedCell=function(i){var r=i.column,n=i.rowIndex,s=i.rowPinned,a=i.forceBrowserFocus,l=a===void 0?!1:a,u=i.preventScrollOnBrowserFocus,c=u===void 0?!1:u,p=this.columnModel.getGridColumn(r);if(!p){this.focusedCellPosition=null;return}this.focusedCellPosition=p?{rowIndex:n,rowPinned:Rr(s),column:p}:null;var f=Ma(Ma({type:T.EVENT_CELL_FOCUSED},this.getFocusEventParams()),{forceBrowserFocus:l,preventScrollOnBrowserFocus:c,floating:null});this.eventService.dispatchEvent(f)},t.prototype.isCellFocused=function(i){return this.focusedCellPosition==null?!1:this.cellPositionUtils.equals(i,this.focusedCellPosition)},t.prototype.isRowNodeFocused=function(i){return this.isRowFocused(i.rowIndex,i.rowPinned)},t.prototype.isHeaderWrapperFocused=function(i){if(this.focusedHeaderPosition==null)return!1;var r=i.getColumnGroupChild(),n=i.getRowIndex(),s=i.getPinned(),a=this.focusedHeaderPosition,l=a.column,u=a.headerRowIndex;return r===l&&n===u&&s==l.getPinned()},t.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},t.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition}
236,t.prototype.setFocusedHeader=function(i,r){this.focusedHeaderPosition={headerRowIndex:i,column:r}},t.prototype.focusHeaderPosition=function(i){if(this.gridOptionsService.get("suppressHeaderFocus"))return!1;var r=i.direction,n=i.fromTab,s=i.allowUserOverride,a=i.event,l=i.fromCell,u=i.rowWithoutSpanValue,c=i.headerPosition;if(l&&this.filterManager.isAdvancedFilterHeaderActive())return this.focusAdvancedFilter(c);if(s){var p=this.getFocusedHeader(),f=this.headerNavigationService.getHeaderRowCount();if(n){var v=this.gridOptionsService.getCallback("tabToNextHeader");if(v){var y={backwards:r==="Before",previousHeaderPosition:p,nextHeaderPosition:c,headerRowCount:f};c=v(y)}}else{var v=this.gridOptionsService.getCallback("navigateToNextHeader");if(v&&a){var w={key:a.key,previousHeaderPosition:p,nextHeaderPosition:c,headerRowCount:f,event:a};c=v(w)}}}if(!c)return!1;if(c.headerRowIndex===-1)return this.filterManager.isAdvancedFilterHeaderActive()?this.focusAdvancedFilter(c):this.focusGridView(c.column);this.headerNavigationService.scrollToColumn(c.column,r);var b=this.ctrlsService.getHeaderRowContainerCtrl(c.column.getPinned()),O=b.focusHeader(c.headerRowIndex,c.column,a);return O&&(u!=null||l)&&this.headerNavigationService.setCurrentHeaderRowWithoutSpan(u??-1),O},t.prototype.focusFirstHeader=function(){var i=this.columnModel.getAllDisplayedColumns()[0];if(!i)return!1;i.getParent()&&(i=this.columnModel.getColumnGroupAtLevel(i,0));var r=this.headerPositionUtils.getHeaderIndexToFocus(i,0);return this.focusHeaderPosition({headerPosition:r,rowWithoutSpanValue:0})},t.prototype.focusLastHeader=function(i){var r=this.headerNavigationService.getHeaderRowCount()-1,n=ot(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:r,column:n},rowWithoutSpanValue:-1,event:i})},t.prototype.focusPreviousFromFirstCell=function(i){return this.filterManager.isAdvancedFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(i)},t.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},t.prototype.isRowFocused=function(i,r){return this.focusedCellPosition==null?!1:this.focusedCellPosition.rowIndex===i&&this.focusedCellPosition.rowPinned===Rr(r)},t.prototype.findFocusableElements=function(i,r,n){n===void 0&&(n=!1);var s=HC,a=lh;r&&(a+=", "+r),n&&(a+=', [tabindex="-1"]');var l=Array.prototype.slice.apply(i.querySelectorAll(s)).filter(function(p){return Ti(p)}),u=Array.prototype.slice.apply(i.querySelectorAll(a));if(!u.length)return l;var c=function(p,f){return p.filter(function(v){return f.indexOf(v)===-1})};return c(l,u)},t.prototype.focusInto=function(i,r,n){r===void 0&&(r=!1),n===void 0&&(n=!1);var s=this.findFocusableElements(i,null,n),a=r?ot(s):s[0];return a?(a.focus({preventScroll:!0}),!0):!1},t.prototype.findFocusableElementBeforeTabGuard=function(i,r){if(!r)return null;var n=this.findFocusableElements(i),s=n.indexOf(r);if(s===-1)return null;for(var a=-1,l=s-1;l>=0;l--)if(n[l].classList.contains(vs.TAB_GUARD_TOP)){a=l;break}return a<=0?null:n[a-1]},t.prototype.findNextFocusableElement=function(i,r,n){i===void 0&&(i=this.eGridDiv);var s=this.findFocusableElements(i,r?':not([tabindex="-1"])':null),a=this.gridOptionsService.getDocument(),l=a.activeElement,u;r?u=s.findIndex(function(p){return p.contains(l)}):u=s.indexOf(l);var c=u+(n?-1:1);return c<0||c>=s.length?null:s[c]},t.prototype.isTargetUnderManagedComponent=function(i,r){if(!r)return!1;var n=i.querySelectorAll(".".concat(Ao.FOCUS_MANAGED_CLASS));if(!n.length)return!1;for(var s=0;s<n.length;s++)if(n[s].contains(r))return!0;return!1},t.prototype.findTabbableParent=function(i,r){r===void 0&&(r=5);for(var n=0;i&&zu(i)===null&&++n<=r;)i=i.parentElement;return zu(i)===null?null:i},t.prototype.focusGridView=function(i,r){if(this.gridOptionsService.get("suppressCellFocus"))return r?this.gridOptionsService.get("suppressHeaderFocus")?this.focusNextGridCoreContainer(!0,!0):this.focusLastHeader():this.focusNextGridCoreContainer(!1);var n=r?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!n)return!1;var s=n.rowIndex,a=n.rowPinned,l=this.getFocusedHeader();if(!i&&l&&(i=l.column),s==null||!i)return!1;if(this.navigationService.ensureCellVisible({rowIndex:s,column:i,rowPinned:a}),this.setFocusedCell({rowIndex:s,column:i,rowPinned:Rr(a),forceBrowserFocus:!0}),this.rangeService){var u={rowIndex:s,rowPinned:a,column:i};this.rangeService.setRangeToCell(u)}return!0}
236,t.prototype.focusNextGridCoreContainer=function(i,r){return r===void 0&&(r=!1),!r&&this.gridCtrl.focusNextInnerContainer(i)?!0:((r||!i&&!this.gridCtrl.isDetailGrid())&&this.gridCtrl.forceFocusOutOfContainer(i),!1)},t.prototype.focusAdvancedFilter=function(i){return this.advancedFilterFocusColumn=i==null?void 0:i.column,this.advancedFilterService.getCtrl().focusHeaderComp()},t.prototype.focusNextFromAdvancedFilter=function(i,r){var n,s,a=(n=r?void 0:this.advancedFilterFocusColumn)!==null&&n!==void 0?n:(s=this.columnModel.getAllDisplayedColumns())===null||s===void 0?void 0:s[0];return i?this.focusHeaderPosition({headerPosition:{column:a,headerRowIndex:this.headerNavigationService.getHeaderRowCount()-1}}):this.focusGridView(a)},t.prototype.clearAdvancedFilterColumn=function(){this.advancedFilterFocusColumn=void 0};var e;return t.keyboardModeActive=!1,t.instanceCount=0,ri([E("eGridDiv")],t.prototype,"eGridDiv",void 0),ri([E("columnModel")],t.prototype,"columnModel",void 0),ri([E("headerNavigationService")],t.prototype,"headerNavigationService",void 0),ri([E("headerPositionUtils")],t.prototype,"headerPositionUtils",void 0),ri([E("rowRenderer")],t.prototype,"rowRenderer",void 0),ri([E("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),ri([E("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),ri([nt("rangeService")],t.prototype,"rangeService",void 0),ri([E("navigationService")],t.prototype,"navigationService",void 0),ri([E("ctrlsService")],t.prototype,"ctrlsService",void 0),ri([E("filterManager")],t.prototype,"filterManager",void 0),ri([nt("advancedFilterService")],t.prototype,"advancedFilterService",void 0),ri([ie],t.prototype,"init",null),t=e=ri([fe("focusService")],t),t}(ee),ZL=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),eF=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},tF=function(o){ZL(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.setMouseOver=function(e){this.selectedColumns=e;var i={type:T.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(i)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:T.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return!!this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},t=eF([fe("columnHoverService")],t),t}(ee),iF=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ap=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},rF=function(o){iF(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.executeNextFuncs=[],e.executeLaterFuncs=[],e.active=!1,e.suppressAnimation=!1,e.animationThreadCount=0,e}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){return e.gridBodyCtrl=i.gridBodyCtrl})},t.prototype.isActive=function(){return this.active&&!this.suppressAnimation},t.prototype.setSuppressAnimation=function(e){this.suppressAnimation=e},t.prototype.start=function(){this.active||this.gridOptionsService.get("suppressColumnMoveAnimation")||this.gridOptionsService.get("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0)},t.prototype.finish=function(){var e=this;this.active&&this.flush(function(){e.active=!1})},t.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},t.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},t.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var i=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push(function(){e.animationThreadCount===i&&e.gridBodyCtrl.setColumnMovingCss(!1)})},t.prototype.flush=function(e){var i=this;if(this.executeNextFuncs.length===0&&this.executeLaterFuncs.length===0){e();return}var r=function(n){for(;n.length;){var s=n.pop();s&&s()}};this.getFrameworkOverrides().wrapIncoming(function(){window.setTimeout(function(){return r(i.executeNextFuncs)},0),window.setTimeout(function(){r(i.executeLaterFuncs),e()},200)})},ap([E("ctrlsService")],t.prototype,"ctrlsService",void 0),ap([ie],t.prototype,"postConstruct",null),t=ap([fe("columnAnimationService")],t),t}
236(ee),nF=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),iu=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},oF=function(o){nF(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){e.centerRowContainerCon=i.centerRowContainerCtrl,e.addManagedListener(e.eventService,T.EVENT_BODY_HEIGHT_CHANGED,e.checkPageSize.bind(e)),e.addManagedListener(e.eventService,T.EVENT_SCROLL_VISIBILITY_CHANGED,e.checkPageSize.bind(e)),e.addManagedPropertyListener("paginationAutoPageSize",e.onPaginationAutoSizeChanged.bind(e)),e.checkPageSize()})},t.prototype.notActive=function(){return!this.gridOptionsService.get("paginationAutoPageSize")||this.centerRowContainerCon==null},t.prototype.onPaginationAutoSizeChanged=function(){this.notActive()?this.paginationProxy.unsetAutoCalculatedPageSize():this.checkPageSize()},t.prototype.checkPageSize=function(){var e=this;if(!this.notActive()){var i=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(i>0){var r=function(){var n=e.gridOptionsService.getRowHeightAsNumber(),s=Math.floor(i/n);e.paginationProxy.setPageSize(s,"autoCalculated")};this.isBodyRendered?Oi(function(){return r()},50)():(r(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}},iu([E("ctrlsService")],t.prototype,"ctrlsService",void 0),iu([E("paginationProxy")],t.prototype,"paginationProxy",void 0),iu([ie],t.prototype,"postConstruct",null),t=iu([fe("paginationAutoPageSizeService")],t),t}(ee),sF=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ey=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},aF=function(o){sF(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.cacheVersion=0,e}return t.prototype.init=function(){this.active=this.gridOptionsService.get("valueCache"),this.neverExpires=this.gridOptionsService.get("valueCacheNeverExpires")},t.prototype.onDataChanged=function(){this.neverExpires||this.expire()},t.prototype.expire=function(){this.cacheVersion++},t.prototype.setValue=function(e,i,r){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[i]=r)},t.prototype.getValue=function(e,i){if(!(!this.active||e.__cacheVersion!==this.cacheVersion))return e.__cacheData[i]},ey([ie],t.prototype,"init",null),t=ey([fe("valueCache")],t),t}(ee),lF=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}
236t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ru=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},uF="paste",cF=function(o){lF(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.init=function(){this.rowModel.getType()==="clientSide"&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,T.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){e.source!==uF&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,i){if(!this.gridOptionsService.get("suppressChangeDetection")){var r=[e];if(this.clientSideRowModel&&!e.isRowPinned()){var n=this.gridOptionsService.get("aggregateOnlyChangedColumns"),s=new Mc(n,this.clientSideRowModel.getRootNode());s.addParentNode(e.parent,[i]),this.clientSideRowModel.doAggregate(s),s.forEachChangedNodeDepthFirst(function(a){r.push(a)})}this.rowRenderer.refreshCells({rowNodes:r})}},ru([E("rowModel")],t.prototype,"rowModel",void 0),ru([E("rowRenderer")],t.prototype,"rowRenderer",void 0),ru([ie],t.prototype,"init",null),t=ru([fe("changeDetectionService")],t),t}(ee),dF=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ty=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},pF=function(o){dF(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.adaptFunction=function(e,i){var r=this.componentMetadataProvider.retrieve(e);return r&&r.functionAdapter?r.functionAdapter(i):null},t.prototype.adaptCellRendererFunction=function(e){var i=function(){function r(){}return r.prototype.refresh=function(n){return!1},r.prototype.getGui=function(){return this.eGui},r.prototype.init=function(n){var s=e(n),a=typeof s;if(a==="string"||a==="number"||a==="boolean"){this.eGui=pi("<span>"+s+"</span>");return}if(s==null){this.eGui=pi("<span></span>");return}this.eGui=s},r}();return i},t.prototype.doesImplementIComponent=function(e){return e?e.prototype&&"getGui"in e.prototype:!1},ty([E("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),t=ty([fe("agComponentUtils")],t),t}(ee),fF=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),lp=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},hF=function(o){fF(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","onParamsUpdated","refresh"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached","onParamsUpdated","refresh"]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["refresh"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","getState"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]},menuItem:{mandatoryMethodList:[],optionalMethodList:["setActive","select","setExpanded","configureDefaults"]}}},t.prototype.retrieve=function(e){return this.componentMetaData[e]},lp([E("agComponentUtils")],t.prototype,"agComponentUtils",void 0),lp([ie],t.prototype,"postConstruct",null),t=lp([fe("componentMetadataProvider")],t),t}
236(ee),vF=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),up=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},gF=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},yF=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},mF=25,iy=10,cp=8,CF=4,dp=4,pp=6,wF=16,ry=14,fp=8,SF={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:CF*5,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:cp*7,headerCellMinWidth:48,listItemHeight:cp*4,rowHeight:cp*6,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:dp*8,headerCellMinWidth:24,listItemHeight:dp*6,rowHeight:dp*7,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:pp*8,headerCellMinWidth:36,listItemHeight:pp*4,rowHeight:pp*7,chartMenuPanelWidth:240},"ag-theme-quartz":{headerHeight:ry+fp*4.25,headerCellMinWidth:36,listItemHeight:wF+fp,rowHeight:ry+fp*3.5,chartMenuPanelWidth:260}},ny={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},EF=function(o){vF(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.calculatedSizes={},e}return t.prototype.postConstruct=function(){var e=this,i,r=(i=this.getTheme().el)!==null&&i!==void 0?i:this.eGridDiv;this.addManagedPropertyListener("rowHeight",function(){return e.refreshRowHeightVariable()}),this.mutationObserver=new MutationObserver(function(){e.calculatedSizes={},e.fireGridStylesChangedEvent()}),this.mutationObserver.observe(r||this.eGridDiv,{attributes:!0,attributeFilter:["class"]})},t.prototype.fireGridStylesChangedEvent=function(){var e={type:T.EVENT_GRID_STYLES_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.getSassVariable=function(e){var i=this.getTheme(),r=i.themeFamily,n=i.el;if(!(!r||r.indexOf("ag-theme")!==0)){this.calculatedSizes||(this.calculatedSizes={}),this.calculatedSizes[r]||(this.calculatedSizes[r]={});var s=this.calculatedSizes[r][e];return s??(this.calculatedSizes[r][e]=this.calculateValueForSassProperty(e,r,n),this.calculatedSizes[r][e])}},t.prototype.calculateValueForSassProperty=function(e,i,r){var n,s="ag-theme-"+(i.match("material")?"material":i.match("balham")?"balham":i.match("alpine")?"alpine":"custom"),a=SF[s][e],l=this.gridOptionsService.getDocument();if(r||(r=this.eGridDiv),!ny[e])return a;var u=ny[e],c=l.createElement("div"),p=Array.from(r.classList);(n=c.classList).add.apply(n,yF([i],gF(p),!1)),c.style.position="absolute";var f=u.reduce(function(w,b){var O=l.createElement("div");return O.style.position="static",O.classList.add(b),w.appendChild(O),O},c),v=0;if(l.body){l.body.appendChild(c);var y=e.toLowerCase().indexOf("height")!==-1?"height":"width";v=parseInt(window.getComputedStyle(f)[y],10),l.body.removeChild(c)}return v||a},t.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},t.prototype.chartMenuPanelWidth=function(){return this.getSassVariable("chartMenuPanelWidth")},t.prototype.getTheme=function(){for(var e=/\bag-(material|(?:theme-([\w\-]*)))\b/g,i=this.eGridDiv,r=null,n=[];i;)if(r=e.exec(i.className),!r)i=i.parentElement||void 0;else{var s=i.className.match(e);s&&(n=s);break}if(!r)return{allThemes:n};var a=r[0];return{theme:a,el:i,themeFamily:a.replace(/-dark$/,""),allThemes:n}},t.prototype.getFromTheme=function(e,i){var r;return(r=this.getSassVariable(i))!==null&&r!==void 0?r:e},t.prototype.getDefaultRowHeight=function(){return this.getFromTheme(mF,"rowHeight")},t.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},t.prototype.refreshRowHeightVariable=function(){var e=this.eGridDiv.style.getPropertyValue("--ag-line-height").trim(),i=this.gridOptionsService.get("rowHeight");
236if(i==null||isNaN(i)||!isFinite(i))return e!==null&&this.eGridDiv.style.setProperty("--ag-line-height",null),-1;var r="".concat(i,"px");return e!=r?(this.eGridDiv.style.setProperty("--ag-line-height",r),i):e!=""?parseFloat(e):-1},t.prototype.getMinColWidth=function(){var e=this.getFromTheme(null,"headerCellMinWidth");return Q(e)?Math.max(e,iy):iy},t.prototype.destroy=function(){this.calculatedSizes=null,this.mutationObserver&&this.mutationObserver.disconnect(),o.prototype.destroy.call(this)},up([E("eGridDiv")],t.prototype,"eGridDiv",void 0),up([ie],t.prototype,"postConstruct",null),t=up([fe("environment")],t),t}(ee),_F=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),nu=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},OF=function(o,t){return function(e,i){t(e,i,o)}},bF=function(o){_F(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.scrollY=0,e.uiBodyHeight=0,e}return t.prototype.agWire=function(e){this.logger=e.create("RowContainerHeightService")},t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,T.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=FC(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},t.prototype.isStretching=function(){return this.stretching},t.prototype.getDivStretchOffset=function(){return this.divStretchOffset},t.prototype.updateOffset=function(){if(this.stretching){var e=this.ctrlsService.getGridBodyCtrl(),i=e.getScrollFeature().getVScrollPosition().top,r=this.getUiBodyHeight(),n=i!==this.scrollY||r!==this.uiBodyHeight;n&&(this.scrollY=i,this.uiBodyHeight=r,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY,i=e*this.pixelsToShave;this.logger.log("Div Stretch Offset = ".concat(i," (").concat(this.pixelsToShave," * ").concat(e,")")),this.setDivStretchOffset(i)},t.prototype.setUiContainerHeight=function(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventService.dispatchEvent({type:T.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},t.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},t.prototype.setDivStretchOffset=function(e){var i=typeof e=="number"?Math.floor(e):null;this.divStretchOffset!==i&&(this.divStretchOffset=i,this.eventService.dispatchEvent({type:T.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.stretching=e!=null&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.divStretchOffset},t.prototype.getUiBodyHeight=function(){var e=this.ctrlsService.getGridBodyCtrl(),i=e.getScrollFeature().getVScrollPosition();return i.bottom-i.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var i=this.modelHeight-this.getUiBodyHeight(),r=e/i,n=this.maxScrollY*r;return n},nu([E("ctrlsService")],t.prototype,"ctrlsService",void 0),nu([OF(0,Hi("loggerFactory"))],t.prototype,"agWire",null),nu([ie],t.prototype,"postConstruct",null),t=nu([fe("rowContainerHeightService")],t),t}
236(ee),TF=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ou=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},RF=function(o){TF(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.init=function(){var e=this;this.addManagedPropertyListener("isRowSelectable",function(){return e.updateSelectable()})},t.prototype.updateSelectableAfterGrouping=function(){this.updateSelectable(!0)},t.prototype.updateSelectable=function(e){e===void 0&&(e=!1);var i=!!this.gridOptionsService.get("rowSelection"),r=this.gridOptionsService.get("isRowSelectable");if(!(!i||!r)){var n=this.gridOptionsService.get("groupSelectsChildren"),s=this.rowModel.getType()==="clientSide"&&n,a=[],l=function(p){if(!(e&&!p.group)){if(s&&p.group){var f=p.childrenAfterGroup.some(function(y){return y.selectable===!0});p.setRowSelectable(f,!0);return}var v=r?r(p):!0;p.setRowSelectable(v,!0),!v&&p.isSelected()&&a.push(p)}};if(s){var u=this.rowModel,c=new Mc(!1,u.getRootNode());c.forEachChangedNodeDepthFirst(l,!0,!0)}else this.rowModel.forEachNode(l);a.length&&this.selectionService.setNodesSelected({nodes:a,newValue:!1,source:"selectableChanged"}),s&&this.selectionService instanceof Pw&&this.selectionService.updateGroupsFromChildrenSelections("selectableChanged")}},ou([E("rowModel")],t.prototype,"rowModel",void 0),ou([E("selectionService")],t.prototype,"selectionService",void 0),ou([ie],t.prototype,"init",null),t=ou([fe("selectableService")],t),t}(ee),AF=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ci=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},PF=function(o){AF(t,o);function t(){var e=o.call(this)||this;return e.previousAndFirstButtonsDisabled=!1,e.nextButtonDisabled=!1,e.lastButtonDisabled=!1,e.areListenersSetup=!1,e}return t.prototype.postConstruct=function(){var e=this,i=this.gridOptionsService.get("enableRtl");this.setTemplate(this.getTemplate());var r=this,n=r.btFirst,s=r.btPrevious,a=r.btNext,l=r.btLast;r.pageSizeComp,this.activateTabIndex([n,s,a,l]),n.insertAdjacentElement("afterbegin",bt(i?"last":"first",this.gridOptionsService)),s.insertAdjacentElement("afterbegin",bt(i?"next":"previous",this.gridOptionsService)),a.insertAdjacentElement("afterbegin",bt(i?"previous":"next",this.gridOptionsService)),l.insertAdjacentElement("afterbegin",bt(i?"first":"last",this.gridOptionsService)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],function(){return e.onPageSizeRelatedOptionsChange()}),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.onPaginationChanged()},t.prototype.onPaginationChanged=function(){var e=this.gridOptionsService.get("pagination"),i=e&&!this.gridOptionsService.get("suppressPaginationPanel");this.setDisplayed(i),i&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels(),this.onPageSizeRelatedOptionsChange())},t.prototype.onPageSizeRelatedOptionsChange=function(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())},t.prototype.setupListeners=function(){var e=this;this.areListenersSetup||(this.addManagedListener(this.eventService,T.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}
236].forEach(function(i){var r=i.el,n=i.fn;e.addManagedListener(r,"click",n),e.addManagedListener(r,"keydown",function(s){(s.key===W.ENTER||s.key===W.SPACE)&&(s.preventDefault(),n())})}),this.areListenersSetup=!0)},t.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,i=this.paginationProxy.getCurrentPage(),r=e?i+1:0;this.lbCurrent.textContent=this.formatNumber(r)},t.prototype.formatNumber=function(e){var i=this.gridOptionsService.getCallback("paginationNumberFormatter");if(i){var r={value:e};return i(r)}var n=this.localeService.getLocaleTextFunc(),s=n("thousandSeparator",","),a=n("decimalSeparator",".");return ah(e,s,a)},t.prototype.getTemplate=function(){var e=this.localeService.getLocaleTextFunc(),i=e("page","Page"),r=e("to","to"),n=e("of","of"),s=e("firstPage","First Page"),a=e("previousPage","Previous Page"),l=e("nextPage","Next Page"),u=e("lastPage","Last Page"),c=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'.concat(c,`"> 237 <ag-page-size-selector ref="pageSizeComp"></ag-page-size-selector> 238 <span class="ag-paging-row-summary-panel" role="status"> 239 <span id="ag-`).concat(c,`-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span> 240 <span id="ag-`).concat(c,'-to">').concat(r,`</span> 241 <span id="ag-`).concat(c,`-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span> 242 <span id="ag-`).concat(c,'-of">').concat(n,`</span> 243 <span id="ag-`).concat(c,`-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span> 244 </span> 245 <span class="ag-paging-page-summary-panel" role="presentation"> 246 <div ref="btFirst" class="ag-button ag-paging-button" role="button" aria-label="`).concat(s,`"></div> 247 <div ref="btPrevious" class="ag-button ag-paging-button" role="button" aria-label="`).concat(a,`"></div> 248 <span class="ag-paging-description" role="status"> 249 <span id="ag-`).concat(c,'-start-page">').concat(i,`</span> 250 <span id="ag-`).concat(c,`-start-page-number" ref="lbCurrent" class="ag-paging-number"></span> 251 <span id="ag-`).concat(c,'-of-page">').concat(n,`</span> 252 <span id="ag-`).concat(c,`-of-page-number" ref="lbTotal" class="ag-paging-number"></span> 253 </span> 254 <div ref="btNext" class="ag-button ag-paging-button" role="button" aria-label="`).concat(l,`"></div> 255 <div ref="btLast" class="ag-button ag-paging-button" role="button" aria-label="`).concat(u,`"></div> 256 </span> 257 </div>`)},t.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},t.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),i=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=e===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var n=this.isZeroPagesToDisplay(),s=e===r-1;this.nextButtonDisabled=s||n,this.lastButtonDisabled=!i||n||e===r-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},t.prototype.toggleButtonDisabled=function(e,i){Yf(e,i),e.classList.toggle("ag-disabled",i)},t.prototype.updateRowLabels=function(){var e=this.paginationProxy.getCurrentPage(),i=this.paginationProxy.getPageSize(),r=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null,
257s,a;if(this.isZeroPagesToDisplay()?s=a=0:(s=i*e+1,a=s+i-1,r&&a>n&&(a=n)),this.lbFirstRowOnPage.textContent=this.formatNumber(s),this.rowNodeBlockLoader.isLoading()){var l=this.localeService.getLocaleTextFunc();this.lbLastRowOnPage.innerHTML=l("pageLastRowUnknown","?")}else this.lbLastRowOnPage.textContent=this.formatNumber(a)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.getTotalPages();return e&&i===0},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.getTotalPages(),r=e?this.paginationProxy.getMasterRowCount():null;if(r===1){var n=this.paginationProxy.getRow(0),s=n&&n.group&&!(n.groupData||n.aggData);if(s){this.setTotalLabelsToZero();return}}if(e)this.lbTotal.textContent=this.formatNumber(i),this.lbRecordCount.textContent=this.formatNumber(r);else{var a=this.localeService.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=a,this.lbRecordCount.innerHTML=a}},t.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.textContent=this.formatNumber(0),this.lbCurrent.textContent=this.formatNumber(0),this.lbLastRowOnPage.textContent=this.formatNumber(0),this.lbTotal.textContent=this.formatNumber(0),this.lbRecordCount.textContent=this.formatNumber(0)},Ci([E("paginationProxy")],t.prototype,"paginationProxy",void 0),Ci([E("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Ci([se("btFirst")],t.prototype,"btFirst",void 0),Ci([se("btPrevious")],t.prototype,"btPrevious",void 0),Ci([se("btNext")],t.prototype,"btNext",void 0),Ci([se("btLast")],t.prototype,"btLast",void 0),Ci([se("lbRecordCount")],t.prototype,"lbRecordCount",void 0),Ci([se("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),Ci([se("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),Ci([se("lbCurrent")],t.prototype,"lbCurrent",void 0),Ci([se("lbTotal")],t.prototype,"lbTotal",void 0),Ci([se("pageSizeComp")],t.prototype,"pageSizeComp",void 0),Ci([ie],t.prototype,"postConstruct",null),t}(We),DF=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),hp=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},LF=function(o){DF(t,o);function t(){var e=o.call(this,t.TEMPLATE)||this;return e.inProgress=!1,e.destroyRequested=!1,e}return t.prototype.updateLayoutClasses=function(e,i){var r=this.eOverlayWrapper.classList;r.toggle(Pt.AUTO_HEIGHT,i.autoHeight),r.toggle(Pt.NORMAL,i.normal),r.toggle(Pt.PRINT,i.print)},t.prototype.postConstruct=function(){this.createManagedBean(new bh(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.overlayService.registerOverlayWrapperComp(this)},t.prototype.setWrapperTypeClass=function(e){var i=this.eOverlayWrapper.classList;this.activeOverlayWrapperCssClass&&i.toggle(this.activeOverlayWrapperCssClass,!1),this.activeOverlayWrapperCssClass=e,i.toggle(e,!0)},t.prototype.showOverlay=function(e,i,r){var n=this;this.inProgress||(this.setWrapperTypeClass(i),this.destroyActiveOverlay(),this.inProgress=!0,e&&e.then(function(s){n.inProgress=!1,n.eOverlayWrapper.appendChild(s.getGui()),n.activeOverlay=s,n.updateListenerDestroyFunc=r,n.destroyRequested&&(n.destroyRequested=!1,n.destroyActiveOverlay())}),this.setDisplayed(!0,{skipAriaHidden:!0}))},t.prototype.destroyActiveOverlay=function(){var e;if(this.inProgress){this.destroyRequested=!0;return}this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),(e=this.updateListenerDestroyFunc)===null||e===void 0||e.call(this),Nt(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})},t.prototype.destroy=function(){this.destroyActiveOverlay(),o.prototype.destroy.call(this)},t.TEMPLATE=` 258 <div class="ag-overlay" role="presentation"> 259 <div class="ag-overlay-panel" role="presentation"> 260 <div class="ag-overlay-wrapper" ref="eOverlayWrapper" role="presentation"></div> 261 </div> 262 </div>`,hp([E("overlayService")],t.prototype,"overlayService",void 0),hp([se("eOverlayWrapper")],t.prototype,"eOverlayWrapper",void 0),hp([ie],t.prototype,"postConstruct",null),t}
262(We),FF=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),su=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},MF=function(o){FF(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.getFirstRow=function(){var e=0,i;return this.pinnedRowModel.getPinnedTopRowCount()?i="top":this.rowModel.getRowCount()?(i=null,e=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(i="bottom"),i===void 0?null:{rowIndex:e,rowPinned:i}},t.prototype.getLastRow=function(){var e,i=null,r=this.pinnedRowModel.getPinnedBottomRowCount(),n=this.pinnedRowModel.getPinnedTopRowCount();return r?(i="bottom",e=r-1):this.rowModel.getRowCount()?(i=null,e=this.paginationProxy.getPageLastRow()):n&&(i="top",e=n-1),e===void 0?null:{rowIndex:e,rowPinned:i}},t.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.sameRow=function(e,i){return!e&&!i?!0:e&&!i||!e&&i?!1:e.rowIndex===i.rowIndex&&e.rowPinned==i.rowPinned},t.prototype.before=function(e,i){switch(e.rowPinned){case"top":if(i.rowPinned!=="top")return!0;break;case"bottom":if(i.rowPinned!=="bottom")return!1;break;default:if(Q(i.rowPinned))return i.rowPinned!=="top";break}return e.rowIndex<i.rowIndex},t.prototype.rowMax=function(e){var i=this,r;return e.forEach(function(n){(r===void 0||i.before(r,n))&&(r=n)}),r},t.prototype.rowMin=function(e){var i=this,r;return e.forEach(function(n){(r===void 0||i.before(n,r))&&(r=n)}),r},su([E("rowModel")],t.prototype,"rowModel",void 0),su([E("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),su([E("paginationProxy")],t.prototype,"paginationProxy",void 0),t=su([fe("rowPositionUtils")],t),t}(ee),IF=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),xF=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},NF=function(o){IF(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.createId=function(e){var i=e.rowIndex,r=e.rowPinned,n=e.column;return this.createIdFromValues({rowIndex:i,column:n,rowPinned:r})},t.prototype.createIdFromValues=function(e){var i=e.rowIndex,r=e.rowPinned,n=e.column;return"".concat(i,".").concat(r??"null",".").concat(n.getId())},t.prototype.equals=function(e,i){var r=e.column===i.column,n=e.rowPinned===i.rowPinned,s=e.rowIndex===i.rowIndex;return r&&n&&s},t=xF([fe("cellPositionUtils")],t),t}(ee),GF=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}
262t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Pa=function(){function o(t){this.cellValueChanges=t}return o}(),vp=function(o){GF(t,o);function t(e,i,r,n){var s=o.call(this,e)||this;return s.initialRange=i,s.finalRange=r,s.ranges=n,s}return t}(Pa),oy=function(){function o(t){this.actionStack=[],this.maxStackSize=t||o.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return o.prototype.pop=function(){return this.actionStack.pop()},o.prototype.push=function(t){var e=t.cellValueChanges&&t.cellValueChanges.length>0;e&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(t))},o.prototype.clear=function(){this.actionStack=[]},o.prototype.getCurrentStackSize=function(){return this.actionStack.length},o.DEFAULT_STACK_SIZE=10,o}(),HF=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ac=function(){return ac=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},ac.apply(this,arguments)},gr=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},VF=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},kF=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},BF=function(o){HF(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.cellValueChanges=[],e.activeCellEdit=null,e.activeRowEdit=null,e.isPasting=!1,e.isRangeInAction=!1,e.onCellValueChanged=function(i){var r={column:i.column,rowIndex:i.rowIndex,rowPinned:i.rowPinned},n=e.activeCellEdit!==null&&e.cellPositionUtils.equals(e.activeCellEdit,r),s=e.activeRowEdit!==null&&e.rowPositionUtils.sameRow(e.activeRowEdit,r),a=n||s||e.isPasting||e.isRangeInAction;if(a){var l=i.rowPinned,u=i.rowIndex,c=i.column,p=i.oldValue,f=i.value,v={rowPinned:l,rowIndex:u,columnId:c.getColId(),newValue:f,oldValue:p};e.cellValueChanges.push(v)}},e.clearStacks=function(){e.undoStack.clear(),e.redoStack.clear()},e}return t.prototype.init=function(){var e=this;if(this.gridOptionsService.get("undoRedoCellEditing")){var i=this.gridOptionsService.get("undoRedoCellEditingLimit");i<=0||(this.undoStack=new oy(i),this.redoStack=new oy(i),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addCellKeyListeners(),this.addManagedListener(this.eventService,T.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,T.EVENT_MODEL_UPDATED,function(r){r.keepUndoRedoStack||e.clearStacks()}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,T.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,T.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,T.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,T.EVENT_ROW_DRAG_END,this.clearStacks),this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl()}))}},t.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},t.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},t.prototype.undo=function(e){var i={type:T.EVENT_UNDO_STARTED,source:e};this.eventService.dispatchEvent(i);var r=this.undoRedo(this.undoStack,this.redoStack,"initialRange","oldValue","undo"),n={type:T.EVENT_UNDO_ENDED,source:e,operationPerformed:r};this.eventService.dispatchEvent(n)},t.prototype.redo=function(e){var i={type:T.EVENT_REDO_STARTED,source:e};this.eventService.dispatchEvent(i);var r=this.undoRedo(this.redoStack,this.undoStack,"finalRange","newValue","redo"),n={type:T.EVENT_REDO_ENDED,source:e,operationPerformed:r};this.eventService.dispatchEvent(n)},t.prototype.undoRedo=function(e,i,r,n,s){if(!e)return!1;var a=e.pop();
262return!a||!a.cellValueChanges?!1:(this.processAction(a,function(l){return l[n]},s),a instanceof vp?this.processRange(a.ranges||[a[r]]):this.processCell(a.cellValueChanges),i.push(a),!0)},t.prototype.processAction=function(e,i,r){var n=this;e.cellValueChanges.forEach(function(s){var a=s.rowIndex,l=s.rowPinned,u=s.columnId,c={rowIndex:a,rowPinned:l},p=n.getRowNode(c);p.displayed&&p.setDataValue(u,i(s),r)})},t.prototype.processRange=function(e){var i=this,r;this.rangeService.removeAllCellRanges(!0),e.forEach(function(n,s){if(n){var a=n.startRow,l=n.endRow;s===e.length-1&&(r={rowPinned:a.rowPinned,rowIndex:a.rowIndex,columnId:n.startColumn.getColId()},i.setLastFocusedCell(r));var u={rowStartIndex:a.rowIndex,rowStartPinned:a.rowPinned,rowEndIndex:l.rowIndex,rowEndPinned:l.rowPinned,columnStart:n.startColumn,columns:n.columns};i.rangeService.addCellRange(u)}})},t.prototype.processCell=function(e){var i=e[0],r=i.rowIndex,n=i.rowPinned,s={rowIndex:r,rowPinned:n},a=this.getRowNode(s),l={rowPinned:i.rowPinned,rowIndex:a.rowIndex,columnId:i.columnId};this.setLastFocusedCell(l,!!this.rangeService)},t.prototype.setLastFocusedCell=function(e,i){var r=e.rowIndex,n=e.columnId,s=e.rowPinned,a=this.gridBodyCtrl.getScrollFeature(),l=this.columnModel.getGridColumn(n);if(l){a.ensureIndexVisible(r),a.ensureColumnVisible(l);var u={rowIndex:r,column:l,rowPinned:s};this.focusService.setFocusedCell(ac(ac({},u),{forceBrowserFocus:!0})),i&&this.rangeService.setRangeToCell(u)}},t.prototype.addRowEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_ROW_EDITING_STARTED,function(i){e.activeRowEdit={rowIndex:i.rowIndex,rowPinned:i.rowPinned}}),this.addManagedListener(this.eventService,T.EVENT_ROW_EDITING_STOPPED,function(){var i=new Pa(e.cellValueChanges);e.pushActionsToUndoStack(i),e.activeRowEdit=null})},t.prototype.addCellEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_CELL_EDITING_STARTED,function(i){e.activeCellEdit={column:i.column,rowIndex:i.rowIndex,rowPinned:i.rowPinned}}),this.addManagedListener(this.eventService,T.EVENT_CELL_EDITING_STOPPED,function(i){e.activeCellEdit=null;var r=i.valueChanged&&!e.activeRowEdit&&!e.isPasting&&!e.isRangeInAction;if(r){var n=new Pa(e.cellValueChanges);e.pushActionsToUndoStack(n)}})},t.prototype.addPasteListeners=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_PASTE_START,function(){e.isPasting=!0}),this.addManagedListener(this.eventService,T.EVENT_PASTE_END,function(){var i=new Pa(e.cellValueChanges);e.pushActionsToUndoStack(i),e.isPasting=!1})},t.prototype.addFillListeners=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_FILL_START,function(){e.isRangeInAction=!0}),this.addManagedListener(this.eventService,T.EVENT_FILL_END,function(i){var r=new vp(e.cellValueChanges,i.initialRange,i.finalRange);e.pushActionsToUndoStack(r),e.isRangeInAction=!1})},t.prototype.addCellKeyListeners=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,function(){e.isRangeInAction=!0}),this.addManagedListener(this.eventService,T.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,function(){var i;e.rangeService&&e.gridOptionsService.get("enableRangeSelection")?i=new vp(e.cellValueChanges,void 0,void 0,kF([],VF(e.rangeService.getCellRanges()),!1)):i=new Pa(e.cellValueChanges),e.pushActionsToUndoStack(i),e.isRangeInAction=!1})},t.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},t.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},gr([E("focusService")],t.prototype,"focusService",void 0),gr([E("ctrlsService")],t.prototype,"ctrlsService",void 0),gr([E("rowModel")],t.prototype,"rowModel",void 0),gr([E("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),gr([E("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),gr([E("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),gr([E("columnModel")],t.prototype,"columnModel",void 0),gr([nt("rangeService")],t.prototype,"rangeService",void 0),gr([ie],t.prototype,"init",null),t=gr([fe("undoRedoService")],t),t}
262(ee),jF=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),gp=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},WF=function(o){jF(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.findHeader=function(e,i){var r,n,s;if(e.column instanceof At?(n="getDisplayedGroup".concat(i),r=this.columnModel[n](e.column)):(s="getDisplayedCol".concat(i),r=this.columnModel[s](e.column)),!!r){var a=e.headerRowIndex;if(this.getHeaderRowType(a)!==Bt.FLOATING_FILTER){for(var l=[r];r.getParent();)r=r.getParent(),l.push(r);r=l[l.length-1-a]}var u=this.getHeaderIndexToFocus(r,a),c=u.column,p=u.headerRowIndex;return{column:c,headerRowIndex:p}}},t.prototype.getHeaderIndexToFocus=function(e,i){var r;if(e instanceof At&&this.isAnyChildSpanningHeaderHeight(e)&&e.isPadding()){var n=e;r=n.getLeafColumns()[0];for(var s=r;s!==n;)i++,s=s.getParent()}return{column:r||e,headerRowIndex:i}},t.prototype.isAnyChildSpanningHeaderHeight=function(e){return e?e.getLeafColumns().some(function(i){return i.isSpanHeaderHeight()}):!1},t.prototype.getColumnVisibleParent=function(e,i){var r=this.getHeaderRowType(i),n=r===Bt.FLOATING_FILTER,s=r===Bt.COLUMN,a=n?e:e.getParent(),l=i-1,u=l;if(s&&this.isAnyChildSpanningHeaderHeight(e.getParent())){for(;a&&a.isPadding();)a=a.getParent(),l--;u=l,l<0&&(a=e,l=i,u=void 0)}return{column:a,headerRowIndex:l,headerRowIndexWithoutSpan:u}},t.prototype.getColumnVisibleChild=function(e,i,r){r===void 0&&(r="After");var n=this.getHeaderRowType(i),s=e,a=i+1,l=a;if(n===Bt.COLUMN_GROUP){for(var u=e.getDisplayedLeafColumns(),c=r==="After"?u[0]:ot(u),p=[],f=c;f.getParent()!==e;)f=f.getParent(),p.push(f);if(s=c,c.isSpanHeaderHeight())for(var v=p.length-1;v>=0;v--){var y=p[v];if(!y.isPadding()){s=y;break}a++}else s=ot(p),s||(s=c)}return{column:s,headerRowIndex:a,headerRowIndexWithoutSpan:l}},t.prototype.getHeaderRowType=function(e){var i=this.ctrlsService.getHeaderRowContainerCtrl();if(i)return i.getRowType(e)},t.prototype.findColAtEdgeForHeaderRow=function(e,i){var r=this.columnModel.getAllDisplayedColumns(),n=r[i==="start"?0:r.length-1];if(n){var s=this.ctrlsService.getHeaderRowContainerCtrl(n.getPinned()),a=s.getRowType(e);if(a==Bt.COLUMN_GROUP){var l=this.columnModel.getColumnGroupAtLevel(n,e);return{headerRowIndex:e,column:l}}return{headerRowIndex:a==null?-1:e,column:n}}},gp([E("columnModel")],t.prototype,"columnModel",void 0),gp([E("ctrlsService")],t.prototype,"ctrlsService",void 0),t=gp([fe("headerPositionUtils")],t),t}(ee),UF=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},zF=function(){function o(){}return o.prototype.buildColumnDefs=function(t,e,i){var r=this,n=[],s={};return t.forEach(function(a){for(var l=r.createDefFromColumn(a,e,i),u=!0,c=l,p=a.getOriginalParent(),f=null;p;){var v=null;if(p.isPadding()){p=p.getOriginalParent();continue}var y=s[p.getGroupId()];if(y){y.children.push(c),u=!1;break}if(v=r.createDefFromGroup(p),v&&(v.children=[c],s[v.groupId]=v,c=v,p=p.getOriginalParent()),p!=null&&f===p){u=!1;break}f=p}u&&n.push(c)}),n},o.prototype.createDefFromGroup=function(t){var e=ku(t.getColGroupDef(),["children"]);return e&&(e.groupId=t.getGroupId()),e}
262,o.prototype.createDefFromColumn=function(t,e,i){var r=ku(t.getColDef());return r.colId=t.getColId(),r.width=t.getActualWidth(),r.rowGroup=t.isRowGroupActive(),r.rowGroupIndex=t.isRowGroupActive()?e.indexOf(t):null,r.pivot=t.isPivotActive(),r.pivotIndex=t.isPivotActive()?i.indexOf(t):null,r.aggFunc=t.isValueActive()?t.getAggFunc():null,r.hide=t.isVisible()?void 0:!0,r.pinned=t.isPinned()?t.getPinned():null,r.sort=t.getSort()?t.getSort():null,r.sortIndex=t.getSortIndex()!=null?t.getSortIndex():null,r},o=UF([fe("columnDefFactory")],o),o}(),yp=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},$F=function(){function o(){}return o.prototype.getInitialRowClasses=function(t){var e=[];return Q(t.extraCssClass)&&e.push(t.extraCssClass),e.push("ag-row"),e.push(t.rowFocused?"ag-row-focus":"ag-row-no-focus"),t.fadeRowIn&&e.push("ag-opacity-zero"),e.push(t.rowIsEven?"ag-row-even":"ag-row-odd"),t.rowNode.isRowPinned()&&e.push("ag-row-pinned"),t.rowNode.isSelected()&&e.push("ag-row-selected"),t.rowNode.footer&&e.push("ag-row-footer"),e.push("ag-row-level-"+t.rowLevel),t.rowNode.stub&&e.push("ag-row-loading"),t.fullWidthRow&&e.push("ag-full-width-row"),t.expandable&&(e.push("ag-row-group"),e.push(t.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),t.rowNode.dragging&&e.push("ag-row-dragging"),Zp(e,this.processClassesFromGridOptions(t.rowNode)),Zp(e,this.preProcessRowClassRules(t.rowNode)),e.push(t.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),t.firstRowOnPage&&e.push("ag-row-first"),t.lastRowOnPage&&e.push("ag-row-last"),t.fullWidthRow&&(t.pinned==="left"&&e.push("ag-cell-last-left-pinned"),t.pinned==="right"&&e.push("ag-cell-first-right-pinned")),e},o.prototype.processClassesFromGridOptions=function(t){var e=[],i=function(l){typeof l=="string"?e.push(l):Array.isArray(l)&&l.forEach(function(u){return e.push(u)})},r=this.gridOptionsService.get("rowClass");if(r){if(typeof r=="function")return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];i(r)}var n=this.gridOptionsService.getCallback("getRowClass");if(n){var s={data:t.data,node:t,rowIndex:t.rowIndex},a=n(s);i(a)}return e},o.prototype.preProcessRowClassRules=function(t){var e=[];return this.processRowClassRules(t,function(i){e.push(i)},function(i){}),e},o.prototype.processRowClassRules=function(t,e,i){var r=this.gridOptionsService.addGridCommonParams({data:t.data,node:t,rowIndex:t.rowIndex});this.stylingService.processClassRules(void 0,this.gridOptionsService.get("rowClassRules"),r,e,i)},o.prototype.calculateRowLevel=function(t){return t.group?t.level:t.parent?t.parent.level+1:0},yp([E("stylingService")],o.prototype,"stylingService",void 0),yp([E("gridOptionsService")],o.prototype,"gridOptionsService",void 0),o=yp([fe("rowCssClassCalculator")],o),o}(),KF=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),au=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},YF=function(o){KF(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.init=function(){var e=this;this.isAccentedSort=this.gridOptionsService.get("accentedSort"),this.primaryColumnsSortGroups=this.gridOptionsService.isColumnsSortingCoupledToGroup(),this.addManagedPropertyListener("accentedSort",function(i){return e.isAccentedSort=i.currentValue}),this.addManagedPropertyListener("autoGroupColumnDef",function(){return e.primaryColumnsSortGroups=e.gridOptionsService.isColumnsSortingCoupledToGroup()})},t.prototype.doFullSort=function(e,i){var r=function(s,a){return{currentPos:a,rowNode:s}},n=e.map(r);return n.sort(this.compareRowNodes.bind(this,i)),n.map(function(s){return s.rowNode})},t.prototype.compareRowNodes=function(e,i,r){for(var n=i.rowNode,s=r.rowNode,a=0,l=e.length;a<l;a++){var u=e[a],c=u.sort==="desc",p=this.getValue(n,u.column),f=this.getValue(s,u.column),v=void 0,y=this.getComparator(u,n);y?v=y(p,f,n,s,c):v=Ke.defaultComparator(p,f,this.isAccentedSort);var w=!isNaN(v);if(w&&v!==0)return u.sort==="asc"?v:v*-1}return i.currentPos-r.currentPos},t.prototype.getComparator=function(e,i){var r=e.column,n=r.getColDef().comparator;if(n!=null)return n;if(r.getColDef().showRowGroup){var s=!i.group&&r.getColDef().field;if(s){var a=this.columnModel.getPrimaryColumn(s);if(a)return a.getColDef().comparator}}},t.prototype.getValue=function(e,i){var r,n;if(!this.primaryColumnsSortGroups)return this.valueService.getValue(i,e,!1,!1);var s=e.rowGroupColumn===i;if(s){var a=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotActive());if(a){var l=(r=e.allLeafChildren)===null||r===void 0?void 0:r[0];return l?this.valueService.getValue(i,l,!1,!1):void 0}var u=this.columnModel.getGroupDisplayColumnForGroup(i.getId());return u?(n=e.groupData)===null||n===void 0?void 0:n[u.getId()]:void 0}if(!(e.group&&i.getColDef().showRowGroup))return this.valueService.getValue(i,e,!1,!1)},au([E("valueService")],t.prototype,"valueService",void 0),au([E("columnModel")],t.prototype,"columnModel",void 0),au([ie],t.prototype,"init",null),t=au([fe("rowNodeSorter")],t),t}
262(ee),qF=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),XF=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},QF=function(o){qF(t,o);function t(){var i=o!==null&&o.apply(this,arguments)||this;return i.ready=!1,i.readyCallbacks=[],i}e=t,t.prototype.checkReady=function(){if(this.ready=this.gridCtrl!=null&&this.gridBodyCtrl!=null&&this.centerRowContainerCtrl!=null&&this.leftRowContainerCtrl!=null&&this.rightRowContainerCtrl!=null&&this.bottomCenterRowContainerCtrl!=null&&this.bottomLeftRowContainerCtrl!=null&&this.bottomRightRowContainerCtrl!=null&&this.topCenterRowContainerCtrl!=null&&this.topLeftRowContainerCtrl!=null&&this.topRightRowContainerCtrl!=null&&this.stickyTopCenterRowContainerCtrl!=null&&this.stickyTopLeftRowContainerCtrl!=null&&this.stickyTopRightRowContainerCtrl!=null&&this.centerHeaderRowContainerCtrl!=null&&this.leftHeaderRowContainerCtrl!=null&&this.rightHeaderRowContainerCtrl!=null&&this.fakeHScrollComp!=null&&this.fakeVScrollComp!=null&&this.gridHeaderCtrl!=null,this.ready){var i=this.createReadyParams();this.readyCallbacks.forEach(function(r){return r(i)}),this.readyCallbacks.length=0}},t.prototype.whenReady=function(i){this.ready?i(this.createReadyParams()):this.readyCallbacks.push(i)},t.prototype.createReadyParams=function(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,stickyTopCenterRowContainerCtrl:this.stickyTopCenterRowContainerCtrl,stickyTopLeftRowContainerCtrl:this.stickyTopLeftRowContainerCtrl,stickyTopRightRowContainerCtrl:this.stickyTopRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollComp:this.fakeHScrollComp,fakeVScrollComp:this.fakeVScrollComp,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},t.prototype.registerFakeHScrollComp=function(i){this.fakeHScrollComp=i,this.checkReady()},t.prototype.registerFakeVScrollComp=function(i){this.fakeVScrollComp=i,this.checkReady()},t.prototype.registerGridHeaderCtrl=function(i){this.gridHeaderCtrl=i,this.checkReady()},t.prototype.registerCenterRowContainerCtrl=function(i){this.centerRowContainerCtrl=i,this.checkReady()},t.prototype.registerLeftRowContainerCtrl=function(i){this.leftRowContainerCtrl=i,this.checkReady()},t.prototype.registerRightRowContainerCtrl=function(i){this.rightRowContainerCtrl=i,this.checkReady()},t.prototype.registerTopCenterRowContainerCtrl=function(i){this.topCenterRowContainerCtrl=i,this.checkReady()},t.prototype.registerTopLeftRowContainerCon=function(i){this.topLeftRowContainerCtrl=i,this.checkReady()},t.prototype.registerTopRightRowContainerCtrl=function(i){this.topRightRowContainerCtrl=i,this.checkReady()},t.prototype.registerStickyTopCenterRowContainerCtrl=function(i){this.stickyTopCenterRowContainerCtrl=i,this.checkReady()},t.prototype.registerStickyTopLeftRowContainerCon=function(i){this.stickyTopLeftRowContainerCtrl=i,this.checkReady()},t.prototype.registerStickyTopRightRowContainerCtrl=function(i){this.stickyTopRightRowContainerCtrl=i,this.checkReady()},t.prototype.registerBottomCenterRowContainerCtrl=function(i){this.bottomCenterRowContainerCtrl=i,this.checkReady()},t.prototype.registerBottomLeftRowContainerCtrl=function(i){this.bottomLeftRowContainerCtrl=i,this.checkReady()},t.prototype.registerBottomRightRowContainerCtrl=function(i){this.bottomRightRowContainerCtrl=i,this.checkReady()},t.prototype.registerHeaderContainer=function(i,r){switch(r){case"left":this.leftHeaderRowContainerCtrl=i;break;case"right":this.rightHeaderRowContainerCtrl=i;break;default:this.centerHeaderRowContainerCtrl=i;break}this.checkReady()},t.prototype.registerGridBodyCtrl=function(i){this.gridBodyCtrl=i,this.checkReady()},t.prototype.registerGridCtrl=function(i){this.gridCtrl=i,this.checkReady()},t.prototype.getFakeHScrollComp=function(){return this.fakeHScrollComp},t.prototype.getFakeVScrollComp=function(){return this.fakeVScrollComp},t.prototype.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},t.prototype.getGridCtrl=function(){return this.gridCtrl},t.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},t.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},t.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},t.prototype.getStickyTopCenterRowContainerCtrl=function(){return this.stickyTopCenterRowContainerCtrl},t.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},t.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},t.prototype.getHeaderRowContainerCtrl=function(i){switch(i){case"left":return this.leftHeaderRowContainerCtrl;case"right":return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}};var e;return t.NAME="ctrlsService",t=e=XF([fe(e.NAME)],t),t}
262(ee),JF=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ZF=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},eM=function(o){JF(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.registry={},e}return t.prototype.register=function(e){this.registry[e.controllerName]=e.controllerClass},t.prototype.getInstance=function(e){var i=this.registry[e];if(i!=null)return new i},t=ZF([fe("ctrlsFactory")],t),t}(ee),tM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ma=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Lw=function(o){tM(t,o);function t(e,i){var r=o.call(this,e)||this;return r.direction=i,r.hideTimeout=null,r}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,T.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",nh()||tn())},t.prototype.initialiseInvisibleScrollbar=function(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=sh(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))},t.prototype.addActiveListenerToggles=function(){var e=this,i=["mouseenter","mousedown","touchstart"],r=["mouseleave","touchend"],n=this.getGui();i.forEach(function(s){return e.addManagedListener(n,s,function(){return e.addOrRemoveCssClass("ag-scrollbar-active",!0)})}),r.forEach(function(s){return e.addManagedListener(n,s,function(){return e.addOrRemoveCssClass("ag-scrollbar-active",!1)})})},t.prototype.onScrollVisibilityChanged=function(){var e=this;this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),this.animationFrameService.requestAnimationFrame(function(){return e.setScrollVisible()})},t.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_BODY_SCROLL,function(i){i.direction===e.direction&&(e.hideTimeout!==null&&(window.clearTimeout(e.hideTimeout),e.hideTimeout=null),e.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))}),this.addManagedListener(this.eventService,T.EVENT_BODY_SCROLL_END,function(){e.hideTimeout=window.setTimeout(function(){e.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),e.hideTimeout=null},400)})},t.prototype.attemptSettingScrollPosition=function(e){var i=this,r=this.getViewport();jf(function(){return Ti(r)},function(){return i.setScrollPosition(e)},100)},t.prototype.getViewport=function(){return this.eViewport},t.prototype.getContainer=function(){return this.eContainer},t.prototype.onScrollCallback=function(e){this.addManagedListener(this.getViewport(),"scroll",e)},ma([se("eViewport")],t.prototype,"eViewport",void 0),ma([se("eContainer")],t.prototype,"eContainer",void 0),ma([E("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),ma([E("ctrlsService")],t.prototype,"ctrlsService",void 0),ma([E("animationFrameService")],t.prototype,"animationFrameService",void 0),t}
262(We),iM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ca=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},rM=function(o){iM(t,o);function t(){return o.call(this,t.TEMPLATE,"horizontal")||this}return t.prototype.postConstruct=function(){var e=this;o.prototype.postConstruct.call(this);var i=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,i),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,i),this.addManagedListener(this.eventService,T.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedPropertyListener("domLayout",i),this.ctrlsService.registerFakeHScrollComp(this),this.createManagedBean(new Th(function(r){return e.eContainer.style.width="".concat(r,"px")})),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))},t.prototype.initialiseInvisibleScrollbar=function(){this.invisibleScrollbar===void 0&&(this.enableRtl=this.gridOptionsService.get("enableRtl"),o.prototype.initialiseInvisibleScrollbar.call(this),this.invisibleScrollbar&&this.refreshCompBottom())},t.prototype.onPinnedRowDataChanged=function(){this.refreshCompBottom()},t.prototype.refreshCompBottom=function(){if(this.invisibleScrollbar){var e=this.pinnedRowModel.getPinnedBottomTotalHeight();this.getGui().style.bottom="".concat(e,"px")}},t.prototype.onScrollVisibilityChanged=function(){o.prototype.onScrollVisibilityChanged.call(this),this.setFakeHScrollSpacerWidths()},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),i=this.columnModel.getDisplayedColumnsRightWidth(),r=!this.enableRtl&&e,n=this.gridOptionsService.getScrollbarWidth();r&&(i+=n),Bi(this.eRightSpacer,i),this.eRightSpacer.classList.toggle("ag-scroller-corner",i<=n);var s=this.columnModel.getDisplayedColumnsLeftWidth(),a=this.enableRtl&&e;a&&(s+=n),Bi(this.eLeftSpacer,s),this.eLeftSpacer.classList.toggle("ag-scroller-corner",s<=n)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isHorizontalScrollShowing(),i=this.invisibleScrollbar,r=this.gridOptionsService.get("suppressHorizontalScroll"),n=e&&this.gridOptionsService.getScrollbarWidth()||0,s=n===0&&i?16:n,a=r?0:s;this.addOrRemoveCssClass("ag-scrollbar-invisible",i),ho(this.getGui(),a),ho(this.eViewport,a),ho(this.eContainer,a),this.setDisplayed(e,{skipAriaHidden:!0})},t.prototype.getScrollPosition=function(){return Ua(this.getViewport(),this.enableRtl)},t.prototype.setScrollPosition=function(e){Ti(this.getViewport())||this.attemptSettingScrollPosition(e),za(this.getViewport(),e,this.enableRtl)},t.TEMPLATE=`<div class="ag-body-horizontal-scroll" aria-hidden="true"> 263 <div class="ag-horizontal-left-spacer" ref="eLeftSpacer"></div> 264 <div class="ag-body-horizontal-scroll-viewport" ref="eViewport"> 265 <div class="ag-body-horizontal-scroll-container" ref="eContainer"></div> 266 </div> 267 <div class="ag-horizontal-right-spacer" ref="eRightSpacer"></div> 268 </div>`,Ca([se("eLeftSpacer")],t.prototype,"eLeftSpacer",void 0),Ca([se("eRightSpacer")],t.prototype,"eRightSpacer",void 0),Ca([E("columnModel")],t.prototype,"columnModel",void 0),Ca([E("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Ca([ie],t.prototype,"postConstruct",null),t}
268(Lw),nM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),mp=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},oM=function(o){nM(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedPropertyListener("domLayout",e)},t.prototype.checkContainerWidths=function(){var e=this.gridOptionsService.isDomLayout("print"),i=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),r=e?0:this.columnModel.getDisplayedColumnsRightWidth();i!=this.leftWidth&&(this.leftWidth=i,this.eventService.dispatchEvent({type:T.EVENT_LEFT_PINNED_WIDTH_CHANGED})),r!=this.rightWidth&&(this.rightWidth=r,this.eventService.dispatchEvent({type:T.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},t.prototype.getPinnedRightWidth=function(){return this.rightWidth},t.prototype.getPinnedLeftWidth=function(){return this.leftWidth},mp([E("columnModel")],t.prototype,"columnModel",void 0),mp([ie],t.prototype,"postConstruct",null),t=mp([fe("pinnedWidthService")],t),t}(ee),sM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),lu=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},aM=function(o){sM(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.events=[],e}return t.prototype.postConstruct=function(){this.rowModel.getType()=="clientSide"&&(this.clientSideRowModel=this.rowModel)},t.prototype.dispatchExpanded=function(e){var i=this;if(this.clientSideRowModel==null){this.eventService.dispatchEvent(e);return}this.events.push(e);var r=function(){i.clientSideRowModel&&i.clientSideRowModel.onRowGroupOpened(),i.events.forEach(function(n){return i.eventService.dispatchEvent(n)}),i.events=[]};this.dispatchExpandedDebounced==null&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce(r)),this.dispatchExpandedDebounced()},lu([E("animationFrameService")],t.prototype,"animationFrameService",void 0),lu([E("rowModel")],t.prototype,"rowModel",void 0),lu([ie],t.prototype,"postConstruct",null),t=lu([fe("rowNodeEventThrottle")],t),t}(ee),lM={columnsMenuParams:{version:"31.1",message:"Use `columnChooserParams` instead."},suppressMenu:{version:"31.1",message:"Use `suppressHeaderMenuButton` instead."}},vn=function(o,t){var e;return((e=t.rowModelType)!==null&&e!==void 0?e:"clientSide")==="clientSide"?{module:Oe.RowGroupingModule}:null},uM={enableRowGroup:vn,rowGroup:vn,rowGroupIndex:vn,enablePivot:vn,enableValue:vn,pivot:vn,pivotIndex:vn,aggFunc:vn,cellEditor:function(o){return o.cellEditor==="agRichSelect"||o.cellEditor==="agRichSelectCellEditor"?{module:Oe.RichSelectModule}:null},menuTabs:function(o){var t,e=["columnsMenuTab","generalMenuTab"];return!((t=o.menuTabs)===null||t===void 0)&&t.some(function(i){return e.includes(i)})?{module:Oe.MenuModule}:null},columnsMenuParams:{module:[Oe.MenuModule,Oe.ColumnsToolPanelModule]},columnChooserParams:{module:[Oe.MenuModule,Oe.ColumnsToolPanelModule]},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],dependencies:function(o,t){var e=t.rowSelection;return e==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"}},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],dependencies:function(o,t){var e=t.rowSelection;return e==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"}},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],dependencies:function(o,t){var e=t.rowSelection;return e==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"}},children:function(){return as}},as={objectName:"colDef",allProperties:vA.ALL_PROPERTIES,docsUrl:"column-properties/",deprecations:lM,validations:uM},sy=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},ay=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},cM={enableChartToolPanelsButton:{version:"29",message:"The Chart Tool Panels button is now enabled by default. To hide the Chart Tool Panels button and display the hamburger button instead, set suppressChartToolPanelsButton=true."},functionsPassive:{version:"29.2"},onColumnRowGroupChangeRequest:{version:"29.2"},onColumnPivotChangeRequest:{version:"29.2"},onColumnValueChangeRequest:{version:"29.2"}
268,onColumnAggFuncChangeRequest:{version:"29.2"},serverSideFilterAllLevels:{version:"30",message:"All server-side group levels are now filtered by default. This can be toggled using `serverSideOnlyRefreshFilteredGroups`."},suppressAggAtRootLevel:{version:"30",message:"The root level aggregation is now suppressed by default. This can be toggled using `alwaysAggregateAtRootLevel`."},excludeHiddenColumnsFromQuickFilter:{version:"30",message:"Hidden columns are now excluded from the Quick Filter by default. This can be toggled using `includeHiddenColumnsInQuickFilter`."},enterMovesDown:{version:"30",renamed:"enterNavigatesVertically"},enterMovesDownAfterEdit:{version:"30",renamed:"enterNavigatesVerticallyAfterEdit"},suppressParentsInRowNodes:{version:"30.2",message:"Using suppressParentsInRowNodes is no longer recommended. To serialize nodes it is now recommended to instead remove the parent node reference before serialization."},advancedFilterModel:{version:"31",message:"Use `initialState.filter.advancedFilterModel` instead."},suppressAsyncEvents:{version:"31",message:"Events should be handled asynchronously."},cellFadeDelay:{version:"31.1",renamed:"cellFadeDuration"},cellFlashDelay:{version:"31.1",renamed:"cellFlashDuration"},suppressServerSideInfiniteScroll:{version:"31.1"},serverSideSortOnServer:{version:"31.1"},serverSideFilterOnServer:{version:"31.1"}},dM={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!1,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:" ",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!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,suppressChartToolPanelsButton:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressAsyncEvents:!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,enableCellChangeFlash:!1,cellFlashDelay:500,cellFlashDuration:500,cellFadeDelay:1e3,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupIncludeTotalFooter:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!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,suppressServerSideInfiniteScroll:!1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSideSortOnServer:!1,serverSideFilterOnServer:!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,suppressGroupMaintainValueType:!1,functionsPassive:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1},pM={sideBar:{module:Oe.SideBarModule},statusBar:{module:Oe.StatusBarModule},enableCharts:{module:Oe.GridChartsModule},getMainMenuItems:{module:Oe.MenuModule},getContextMenuItems:{module:Oe.MenuModule},allowContextMenuWithControlKey:{module:Oe.MenuModule},enableAdvancedFilter:{module:Oe.AdvancedFilterModule},treeData:{supportedRowModels:["clientSide","serverSide"],module:Oe.RowGroupingModule,dependencies:function(o){var t,e=(t=o.rowModelType)!==null&&t!==void 0?t:"clientSide";switch(e){case"clientSide":var i="treeData requires 'getDataPath' in the ".concat(e," row model.");return o.getDataPath?null:i;case"serverSide":var r="treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ".concat(e," row model.");return o.isServerSideGroup&&o.getServerSideGroupKey?null:r}return null}},masterDetail:{module:Oe.MasterDetailModule},enableRangeSelection:{module:Oe.RangeSelectionModule},enableRangeHandle:{dependencies:{enableRangeSelection:[!0]}},enableFillHandle:{dependencies:{enableRangeSelection:[!0]}},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupIncludeFooter:{supportedRowModels:["clientSide","serverSide"],dependencies:function(o){var t,e=(t=o.rowModelType)!==null&&t!==void 0?t:"clientSide";switch(e){case"clientSide":return null;case"serverSide":var i="groupIncludeFooter is not supported alongside suppressServerSideInfiniteScroll";return o.suppressServerSideInfiniteScroll?i:null}return null}},groupIncludeTotalFooter:{supportedRowModels:["clientSide"]}
268,groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:[void 0,!1],groupRemoveLowestSingleChildren:[void 0,!1]}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:[void 0,!1],groupRemoveSingleChildren:[void 0,!1]}},groupSelectsChildren:{dependencies:{rowSelection:["multiple"]}},suppressParentsInRowNodes:{dependencies:{groupSelectsChildren:[void 0,!1]}},viewportDatasource:{supportedRowModels:["viewport"],module:Oe.ViewportRowModelModule},serverSideDatasource:{supportedRowModels:["serverSide"],module:Oe.ServerSideRowModelModule},cacheBlockSize:{supportedRowModels:["serverSide","infinite"]},datasource:{supportedRowModels:["infinite"],module:Oe.InfiniteRowModelModule},rowData:{supportedRowModels:["clientSide"],module:Oe.ClientSideRowModelModule},columnDefs:function(){return as},defaultColDef:function(){return as},defaultColGroupDef:function(){return as},autoGroupColumnDef:function(){return as}},fM={objectName:"gridOptions",allProperties:ay(ay([],sy(Er.ALL_PROPERTIES),!1),sy(yC.EVENT_CALLBACKS),!1),propertyExceptions:["api","columnApi"],docsUrl:"grid-options/",deprecations:cM,validations:pM},yr=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},uu=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},Cp=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},Fw=function(){function o(){var e=this;this.destroyed=!1,this.domDataKey="__AG_"+Math.random().toString(),this.propertyEventService=new Gn,this.globalEventHandlerFactory=function(i){return function(r,n){if(!e.destroyed){var s=t.alwaysSyncGlobalEvents.has(r);if(!(s&&!i||!s&&i)){var a=yC.getCallbackForEvent(r),l=e.gridOptions[a];typeof l=="function"&&e.frameworkOverrides.wrapOutgoing(function(){l(n)})}}}}}t=o,Object.defineProperty(o.prototype,"context",{get:function(){return this.gridOptions.context},enumerable:!1,configurable:!0}),o.prototype.init=function(){this.columnApi=new Dw(this.api);var e=!this.get("suppressAsyncEvents");this.eventService.addGlobalListener(this.globalEventHandlerFactory().bind(this),e),this.eventService.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.propertyEventService.setFrameworkOverrides(this.frameworkOverrides),this.getScrollbarWidth()},o.prototype.destroy=function(){this.destroyed=!0,this.columnApi=void 0},o.prototype.get=function(e){var i;return(i=this.gridOptions[e])!==null&&i!==void 0?i:dM[e]},o.prototype.getCallback=function(e){return this.mergeGridCommonParams(this.gridOptions[e])},o.prototype.exists=function(e){return Q(this.gridOptions[e])},o.prototype.mergeGridCommonParams=function(e){var i=this;if(e){var r=function(n){var s=n;return s.api=i.api,s.columnApi=i.columnApi,s.context=i.context,e(s)};return r}return e},o.toBoolean=function(e){return typeof e=="boolean"?e:typeof e=="string"?e.toUpperCase()==="TRUE"||e=="":!1},o.toNumber=function(e){if(typeof e=="number")return e;if(typeof e=="string"){var i=parseInt(e);return isNaN(i)?void 0:i}},o.toConstrainedNum=function(e,i){return function(r){var n=t.toNumber(r);if(!(n==null||n<e||n>i))return n}},o.getCoercedValue=function(e,i){var r=t.PROPERTY_COERCIONS.get(e);return r?r(i):i},o.getCoercedGridOptions=function(e){var i={};return Object.entries(e).forEach(function(r){var n=uu(r,2),s=n[0],a=n[1],l=t.getCoercedValue(s,a);i[s]=l}),i},o.prototype.updateGridOptions=function(e){var i=this,r=e.options,n=e.source,s=n===void 0?"api":n,a={id:t.changeSetId++,properties:[]},l=[];Object.entries(r).forEach(function(u){var c=uu(u,2),p=c[0],f=c[1];s==="api"&&bb[p]&&Le("".concat(p," is an initial property and cannot be updated."));var v=t.getCoercedValue(p,f),y=typeof v=="object"&&s==="api",w=i.gridOptions[p];if(y||w!==v){i.gridOptions[p]=v;var b={type:p,currentValue:v,previousValue:w,changeSet:a,source:s};l.push(b)}}),this.validationService.processGridOptions(this.gridOptions),a.properties=l.map(function(u){return u.type}),l.forEach(function(u){i.gridOptions.debug&&console.log("AG Grid: Updated property ".concat(u.type," from "),u.previousValue," to ",u.currentValue),i.propertyEventService.dispatchEvent(u)})},o.prototype.addEventListener=function(e,i){this.propertyEventService.addEventListener(e,i)},o.prototype.removeEventListener=function(e,i){this.propertyEventService.removeEventListener(e,i)},o.prototype.getScrollbarWidth=function(){if(this.scrollbarWidth==null){var e=typeof this.gridOptions.scrollbarWidth=="number"&&this.gridOptions.scrollbarWidth>=0,i=e?this.gridOptions.scrollbarWidth:xC();i!=null&&(this.scrollbarWidth=i,this.eventService.dispatchEvent({type:T.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},o.prototype.isRowModelType=function(e){return this.gridOptions.rowModelType===e||e==="clientSide"&&Me(this.gridOptions.rowModelType)},o.prototype.isDomLayout=function(e){var i,r=(i=this.gridOptions.domLayout)!==null&&i!==void 0?i:"normal";return r===e},o.prototype.isRowSelection=function(){return this.gridOptions.rowSelection==="single"||this.gridOptions.rowSelection==="multiple"},o.prototype.useAsyncEvents=function(){return!this.get("suppressAsyncEvents")},o.prototype.isGetRowHeightFunction=function(){return typeof this.gridOptions.getRowHeight=="function"},o.prototype.getRowHeightForNode=function(e,i,r){if(i===void 0&&(i=!1),r==null&&(r=this.environment.getDefaultRowHeight()),this.isGetRowHeightFunction()){if
268(i)return{height:r,estimated:!0};var n={node:e,data:e.data},s=this.getCallback("getRowHeight")(n);if(this.isNumeric(s))return s===0&&Le("The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead."),{height:Math.max(1,s),estimated:!1}}if(e.detail&&this.get("masterDetail"))return this.getMasterDetailRowHeight();var a=this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:r;return{height:a,estimated:!1}},o.prototype.getMasterDetailRowHeight=function(){return this.get("detailRowAutoHeight")?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}},o.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||Me(this.gridOptions.rowHeight))return this.environment.getDefaultRowHeight();var e=this.environment.refreshRowHeightVariable();return e!==-1?e:(console.warn("AG Grid row height must be a number if not using standard row model"),this.environment.getDefaultRowHeight())},o.prototype.isNumeric=function(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)},o.prototype.getDomDataKey=function(){return this.domDataKey},o.prototype.getDomData=function(e,i){var r=e[this.getDomDataKey()];return r?r[i]:void 0},o.prototype.setDomData=function(e,i,r){var n=this.getDomDataKey(),s=e[n];Me(s)&&(s={},e[n]=s),s[i]=r},o.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&Q(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&Q(e)?e:document},o.prototype.getWindow=function(){var e=this.getDocument();return e.defaultView||window},o.prototype.getRootNode=function(){return this.eGridDiv.getRootNode()},o.prototype.getAsyncTransactionWaitMillis=function(){return Q(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:50},o.prototype.isAnimateRows=function(){return this.get("ensureDomOrder")?!1:this.get("animateRows")},o.prototype.isGroupRowsSticky=function(){return!(this.get("suppressGroupRowsSticky")||this.get("paginateChildRows")||this.get("groupHideOpenParents")||this.isDomLayout("print"))},o.prototype.isColumnsSortingCoupledToGroup=function(){var e=this.gridOptions.autoGroupColumnDef;return!(e!=null&&e.comparator)&&!this.get("treeData")},o.prototype.getGroupAggFiltering=function(){var e=this.gridOptions.groupAggFiltering;if(typeof e=="function")return this.getCallback("groupAggFiltering");if(e===!0)return function(){return!0}},o.prototype.isGroupIncludeFooterTrueOrCallback=function(){var e=this.gridOptions.groupIncludeFooter;return e===!0||typeof e=="function"},o.prototype.getGroupIncludeFooter=function(){var e=this.gridOptions.groupIncludeFooter;return typeof e=="function"?this.getCallback("groupIncludeFooter"):e===!0?function(){return!0}:function(){return!1}},o.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.gridOptions.groupDisplayType==="multipleColumns":this.get("groupHideOpenParents")},o.prototype.isGroupUseEntireRow=function(e){return e?!1:this.gridOptions.groupDisplayType==="groupRows"},o.prototype.getGridCommonParams=function(){return{api:this.api,columnApi:this.columnApi,context:this.context}},o.prototype.addGridCommonParams=function(e){var i=e;return i.api=this.api,i.columnApi=this.columnApi,i.context=this.context,i};var t;return o.alwaysSyncGlobalEvents=new Set([T.EVENT_GRID_PRE_DESTROYED]),o.PROPERTY_COERCIONS=new Map(Cp(Cp(Cp([],uu(Er.BOOLEAN_PROPERTIES.map(function(e){return[e,t.toBoolean]})),!1),uu(Er.NUMBER_PROPERTIES.map(function(e){return[e,t.toNumber]})),!1),[["groupAggFiltering",function(e){return typeof e=="function"?e:t.toBoolean(e)}],["pageSize",t.toConstrainedNum(1,Number.MAX_VALUE)],["autoSizePadding",t.toConstrainedNum(0,Number.MAX_VALUE)],["keepDetailRowsCount",t.toConstrainedNum(1,Number.MAX_VALUE)],["rowBuffer",t.toConstrainedNum(0,Number.MAX_VALUE)],["infiniteInitialRowCount",t.toConstrainedNum(1,Number.MAX_VALUE)],["cacheOverflowSize",t.toConstrainedNum(1,Number.MAX_VALUE)],["cacheBlockSize",t.toConstrainedNum(1,Number.MAX_VALUE)],["serverSideInitialRowCount",t.toConstrainedNum(1,Number.MAX_VALUE)],["viewportRowModelPageSize",t.toConstrainedNum(1,Number.MAX_VALUE)],["viewportRowModelBufferSize",t.toConstrainedNum(0,Number.MAX_VALUE)]],!1)),o.changeSetId=0,yr([E("gridOptions")],o.prototype,"gridOptions",void 0),yr([E("eventService")],o.prototype,"eventService",void 0),yr([E("environment")],o.prototype,"environment",void 0),yr([E("frameworkOverrides")],o.prototype,"frameworkOverrides",void 0),yr([E("eGridDiv")],o.prototype,"eGridDiv",void 0),yr([E("validationService")],o.prototype,"validationService",void 0),yr([E("gridApi")],o.prototype,"api",void 0),yr([ie],o.prototype,"init",null),yr([Xt],o.prototype,"destroy",null),o=t=yr([fe("gridOptionsService")],o),o}
268(),hM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),vM=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},gM=function(o){hM(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.getLocaleTextFunc=function(){var e=this.gridOptionsService.getCallback("getLocaleText");if(e)return function(r,n,s){var a={key:r,defaultValue:n,variableValues:s};return e(a)};var i=this.gridOptionsService.get("localeText");return function(r,n,s){var a=i&&i[r];if(a&&s&&s.length)for(var l=0;!(l>=s.length);){var u=a.indexOf("${variable}");if(u===-1)break;a=a.replace("${variable}",s[l++])}return a??n}},t=vM([fe("localeService")],t),t}(ee),yM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),mM=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},CM=function(o){yM(t,o);function t(){return o.call(this,t.TEMPLATE,"vertical")||this}return t.prototype.postConstruct=function(){o.prototype.postConstruct.call(this),this.createManagedBean(new Tw(this.eContainer)),this.ctrlsService.registerFakeVScrollComp(this),this.addManagedListener(this.eventService,T.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onRowContainerHeightChanged.bind(this))},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),i=this.invisibleScrollbar,r=e&&this.gridOptionsService.getScrollbarWidth()||0,n=r===0&&i?16:r;this.addOrRemoveCssClass("ag-scrollbar-invisible",i),Bi(this.getGui(),n),Bi(this.eViewport,n),Bi(this.eContainer,n),this.setDisplayed(e,{skipAriaHidden:!0})},t.prototype.onRowContainerHeightChanged=function(){var e=this.ctrlsService,i=e.getGridBodyCtrl(),r=i.getBodyViewportElement(),n=this.getScrollPosition(),s=r.scrollTop;n!=s&&this.setScrollPosition(s,!0)},t.prototype.getScrollPosition=function(){return this.getViewport().scrollTop},t.prototype.setScrollPosition=function(e,i){!i&&!Ti(this.getViewport())&&this.attemptSettingScrollPosition(e),this.getViewport().scrollTop=e},t.TEMPLATE=`<div class="ag-body-vertical-scroll" aria-hidden="true"> 269 <div class="ag-body-vertical-scroll-viewport" ref="eViewport"> 270 <div class="ag-body-vertical-scroll-container" ref="eContainer"></div> 271 </div> 272 </div>`,mM([ie],t.prototype,"postConstruct",null),t}(Lw),wM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),li=function(){return li=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},li.apply(this,arguments)},to=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},mr=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},wa=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},ly={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},uy=["january","february","march","april","may","june","july","august","september","october","november","december"],SM=function(o){wM(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.dataTypeDefinitions={},e.isWaitingForRowData=!1,e.isColumnTypeOverrideInDataTypeDefinitions=!1,e.columnStateUpdatesPendingInference={},e.columnStateUpdateListenerDestroyFuncs=[],e}return t.prototype.init=function(){var e=this;this.groupHideOpenParents=this.gridOptionsService.get("groupHideOpenParents"),this.addManagedPropertyListener("groupHideOpenParents",function(){e.groupHideOpenParents=e.gridOptionsService.get("groupHideOpenParents")}),this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",function(i){e.processDataTypeDefinitions(),e.columnModel.recreateColumnDefs(rs(i.source))})},t.prototype.processDataTypeDefinitions=function(){var e=this,i,r=this.getDefaultDataTypes();this.dataTypeDefinitions={},Object.entries(r).forEach(function(s){var a=mr(s,2),l=a[0],u=a[1];e.dataTypeDefinitions[l]=li(li({},u),{groupSafeValueFormatter:e.createGroupSafeValueFormatter(u)})});var n=(i=this.gridOptionsService.get("dataTypeDefinitions"))!==null&&i!==void 0?i:{};this.dataTypeMatchers={}
272,Object.entries(n).forEach(function(s){var a=mr(s,2),l=a[0],u=a[1],c=e.processDataTypeDefinition(u,n,[l],r);c&&(e.dataTypeDefinitions[l]=c,u.dataTypeMatcher&&(e.dataTypeMatchers[l]=u.dataTypeMatcher))}),this.checkObjectValueHandlers(r),["dateString","text","number","boolean","date"].forEach(function(s){var a=e.dataTypeMatchers[s];a&&delete e.dataTypeMatchers[s],e.dataTypeMatchers[s]=a??r[s].dataTypeMatcher})},t.prototype.mergeDataTypeDefinitions=function(e,i){var r=li(li({},e),i);return e.columnTypes&&i.columnTypes&&i.appendColumnTypes&&(r.columnTypes=wa(wa([],mr(this.convertColumnTypes(e.columnTypes)),!1),mr(this.convertColumnTypes(i.columnTypes)),!1)),r},t.prototype.processDataTypeDefinition=function(e,i,r,n){var s,a=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){var l=n[a],u=i[a];if(l&&u&&(l=u),!this.validateDataTypeDefinition(e,l,a))return;s=this.mergeDataTypeDefinitions(l,e)}else{if(r.includes(a)){Le('Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.');return}var c=i[a];if(!this.validateDataTypeDefinition(e,c,a))return;var p=this.processDataTypeDefinition(c,i,wa(wa([],mr(r),!1),[a],!1),n);if(!p)return;s=this.mergeDataTypeDefinitions(p,e)}return li(li({},s),{groupSafeValueFormatter:this.createGroupSafeValueFormatter(s)})},t.prototype.validateDataTypeDefinition=function(e,i,r){return i?i.baseDataType!==e.baseDataType?(Le('The "baseDataType" property of a data type definition must match that of its parent.'),!1):!0:(Le("The data type definition ".concat(r," does not exist.")),!1)},t.prototype.createGroupSafeValueFormatter=function(e){var i=this;if(e.valueFormatter)return function(r){var n,s;if(!((n=r.node)===null||n===void 0)&&n.group){var a=r.column.getAggFunc();if(a){if(a==="first"||a==="last")return e.valueFormatter(r);if(e.baseDataType==="number"&&a!=="count"){if(typeof r.value=="number")return e.valueFormatter(r);if(typeof r.value=="object"){if(!r.value)return;if("toNumber"in r.value)return e.valueFormatter(li(li({},r),{value:r.value.toNumber()}));if("value"in r.value)return e.valueFormatter(li(li({},r),{value:r.value.value}))}}}if(!i.gridOptionsService.get("suppressGroupMaintainValueType"))return}else if(i.groupHideOpenParents&&r.column.isRowGroupActive()){if(typeof r.value!="string"||!((s=e.dataTypeMatcher)===null||s===void 0)&&s.call(e,r.value))return e.valueFormatter(r);if(!i.gridOptionsService.get("suppressGroupMaintainValueType"))return}return e.valueFormatter(r)}},t.prototype.updateColDefAndGetDataTypeDefinitionColumnType=function(e,i,r){var n=i.cellDataType,s=i.field;if(n===void 0&&(n=e.cellDataType),(n==null||n===!0)&&(n=this.canInferCellDataType(e,i)?this.inferCellDataType(s,r):!1),!n){e.cellDataType=!1;return}var a=this.dataTypeDefinitions[n];if(!a){Le('Missing data type definition - "'.concat(n,'"'));return}return e.cellDataType=n,a.groupSafeValueFormatter&&(e.valueFormatter=a.groupSafeValueFormatter),a.valueParser&&(e.valueParser=a.valueParser),a.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,a,r),a.columnTypes},t.prototype.updateColDefAndGetColumnType=function(e,i,r){var n,s,a=this.updateColDefAndGetDataTypeDefinitionColumnType(e,i,r),l=(s=(n=i.type)!==null&&n!==void 0?n:a)!==null&&s!==void 0?s:e.type;return e.type=l,l?this.convertColumnTypes(l):void 0},t.prototype.addColumnListeners=function(e){if(this.isWaitingForRowData){var i=this.columnStateUpdatesPendingInference[e.getColId()];if(i){var r=function(n){i.add(n.key)};e.addEventListener(pt.EVENT_STATE_UPDATED,r),this.columnStateUpdateListenerDestroyFuncs.push(function(){return e.removeEventListener(pt.EVENT_STATE_UPDATED,r)})}}},t.prototype.canInferCellDataType=function(e,i){var r=this,n;if(this.rowModel.getType()!=="clientSide")return!1;var s={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0}
272;if(this.doColDefPropsPreventInference(i,s))return!1;var a=i.type===null?e.type:i.type;if(a){var l=(n=this.gridOptionsService.get("columnTypes"))!==null&&n!==void 0?n:{},u=this.convertColumnTypes(a).some(function(c){var p=l[c.trim()];return p&&r.doColDefPropsPreventInference(p,s)});if(u)return!1}return!this.doColDefPropsPreventInference(e,s)},t.prototype.doColDefPropsPreventInference=function(e,i){var r=this;return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(function(n){var s=mr(n,2),a=s[0],l=s[1];return r.doesColDefPropPreventInference(e,i,a,l)})},t.prototype.doesColDefPropPreventInference=function(e,i,r,n){if(!i[r])return!1;var s=e[r];return s===null?(i[r]=!1,!1):n===void 0?!!s:s===n},t.prototype.inferCellDataType=function(e,i){var r;if(e){var n,s=this.getInitialData();if(s){var a=e.indexOf(".")>=0&&!this.gridOptionsService.get("suppressFieldDotNotation");n=ps(s,e,a)}else this.initWaitForRowData(i);if(n!=null){var l=mr((r=Object.entries(this.dataTypeMatchers).find(function(c){var p=mr(c,2);p[0];var f=p[1];return f(n)}))!==null&&r!==void 0?r:["object"],1),u=l[0];return u}}},t.prototype.getInitialData=function(){var e=this.gridOptionsService.get("rowData");if(e!=null&&e.length)return e[0];if(this.initialData)return this.initialData;var i=this.rowModel.getRootNode().allLeafChildren;return i!=null&&i.length?i[0].data:null},t.prototype.initWaitForRowData=function(e){var i=this;if(this.columnStateUpdatesPendingInference[e]=new Set,!this.isWaitingForRowData){this.isWaitingForRowData=!0;var r=this.isColumnTypeOverrideInDataTypeDefinitions;r&&this.columnModel.queueResizeOperations();var n=this.addManagedListener(this.eventService,T.EVENT_ROW_DATA_UPDATE_STARTED,function(s){var a=s.firstRowData;if(a){n==null||n(),i.isWaitingForRowData=!1,i.processColumnsPendingInference(a,r),i.columnStateUpdatesPendingInference={},r&&i.columnModel.processResizeOperations();var l={type:T.EVENT_DATA_TYPES_INFERRED};i.eventService.dispatchEvent(l)}})}},t.prototype.isPendingInference=function(){return this.isWaitingForRowData},t.prototype.processColumnsPendingInference=function(e,i){var r=this;this.initialData=e;var n=[];this.columnStateUpdateListenerDestroyFuncs.forEach(function(l){return l()}),this.columnStateUpdateListenerDestroyFuncs=[];var s={},a={};Object.entries(this.columnStateUpdatesPendingInference).forEach(function(l){var u=mr(l,2),c=u[0],p=u[1],f=r.columnModel.getGridColumn(c);if(f){var v=f.getColDef();if(r.columnModel.resetColumnDefIntoColumn(f,"cellDataTypeInferred")){var y=f.getColDef();if(i&&y.type&&y.type!==v.type){var w=r.getUpdatedColumnState(f,p);w.rowGroup&&w.rowGroupIndex==null&&(s[c]=w),w.pivot&&w.pivotIndex==null&&(a[c]=w),n.push(w)}}}}),i&&n.push.apply(n,wa([],mr(this.columnModel.generateColumnStateForRowGroupAndPivotIndexes(s,a)),!1)),n.length&&this.columnModel.applyColumnState({state:n},"cellDataTypeInferred"),this.initialData=null},t.prototype.getUpdatedColumnState=function(e,i){var r=this.columnModel.getColumnStateFromColDef(e);return i.forEach(function(n){delete r[n],n==="rowGroup"?delete r.rowGroupIndex:n==="pivot"&&delete r.pivotIndex}),r},t.prototype.checkObjectValueHandlers=function(e){var i=this.dataTypeDefinitions.object,r=e.object;this.hasObjectValueParser=i.valueParser!==r.valueParser,this.hasObjectValueFormatter=i.valueFormatter!==r.valueFormatter},t.prototype.convertColumnTypes=function(e){var i=[];if(e instanceof Array){var r=e.some(function(n){return typeof n!="string"});r?console.warn("if colDef.type is supplied an array it should be of type 'string[]'"):i=e}else typeof e=="string"?i=e.split(","):console.warn("colDef.type should be of type 'string' | 'string[]'");return i},t.prototype.getDateStringTypeDefinition=function(e){var i;return e?(i=this.getDataTypeDefinition(e))!==null&&i!==void 0?i:this.dataTypeDefinitions.dateString:this.dataTypeDefinitions.dateString},t.prototype.getDateParserFunction=function(e){return this.getDateStringTypeDefinition(e).dateParser},t.prototype.getDateFormatterFunction=function(e){return this.getDateStringTypeDefinition(e).dateFormatter},t.prototype.getDataTypeDefinition=function(e){var i=e.getColDef();if(i.cellDataType)return this.dataTypeDefinitions[i.cellDataType]},t.prototype.getBaseDataType=function(e){var i;return(i=this.getDataTypeDefinition(e))===null||i===void 0?void 0:i.baseDataType},t.prototype.checkType=function(e,i){var r;if(i==null)return!0;var n=(r=this.getDataTypeDefinition(e))===null||r===void 0?void 0:r.dataTypeMatcher;return n?n(i):!0},t.prototype.validateColDef=function(e){e.cellDataType==="object"&&(e.valueFormatter===this.dataTypeDefinitions.object.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&Le('Cell data type is "object" but no value formatter has been provided. Please either provide an object data type definition with a value formatter, or set "colDef.valueFormatter"'),e.editable&&e.valueParser===this.dataTypeDefinitions.object.valueParser&&!this.hasObjectValueParser&&Le('Cell data type is "object" but no value parser has been provided. Please either provide an object data type definition with a value parser, or set "colDef.valueParser"'))},t.prototype.setColDefPropertiesForBaseDataType=function(e,i,r){var n=this,s=function(p,f,v){var y=p.getColDef().valueFormatter;return y===i.groupSafeValueFormatter&&(y=i.valueFormatter),n.valueFormatterService.formatValue(p,f,v,y)},a=ct.__isRegistered(Oe.SetFilterModule,this.context.getGridId()),l=this.localeService.getLocaleTextFunc(),u=function(p){var f=e.filterParams;e.filterParams=typeof f=="object"?li(li({},f),p):p};switch(i.baseDataType){case"number":{e.cellEditor="agNumberCellEditor",a&&u({comparator:function(p,f){var v=p==null?0:parseInt(p),y=f==null?0:parseInt(f);return v===y?0:v>y?1:-1}});break}case"boolean":{e.cellEditor="agCheckboxCellEditor",e.cellRenderer="agCheckboxCellRenderer",e.suppressKeyboardEvent=function(p){return!!p.colDef.editable&&p.event.key===W.SPACE},u(a?{valueFormatter:function(p){return Q(p.value)?l(String(p.value),p.value?"True":"False"):l("blanks","(Blanks)")}}:{maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:function(p,f){return f},numberOfInputs:0}
272,{displayKey:"false",displayName:"False",predicate:function(p,f){return f===!1},numberOfInputs:0}]});break}case"date":{e.cellEditor="agDateCellEditor",e.keyCreator=function(p){return s(p.column,p.node,p.value)},a&&u({valueFormatter:function(p){var f=s(p.column,p.node,p.value);return Q(f)?f:l("blanks","(Blanks)")},treeList:!0,treeListFormatter:function(p,f){if(f===1&&p!=null){var v=uy[Number(p)-1];return l(v,ly[v])}return p??l("blanks","(Blanks)")}});break}case"dateString":{e.cellEditor="agDateStringCellEditor",e.keyCreator=function(p){return s(p.column,p.node,p.value)};var c=i.dateParser;u(a?{valueFormatter:function(p){var f=s(p.column,p.node,p.value);return Q(f)?f:l("blanks","(Blanks)")},treeList:!0,treeListPathGetter:function(p){var f=c(p??void 0);return f?[String(f.getFullYear()),String(f.getMonth()+1),String(f.getDate())]:null},treeListFormatter:function(p,f){if(f===1&&p!=null){var v=uy[Number(p)-1];return l(v,ly[v])}return p??l("blanks","(Blanks)")}}:{comparator:function(p,f){var v=c(f);return f==null||v<p?-1:v>p?1:0}});break}case"object":{e.cellEditorParams={useFormatter:!0},e.comparator=function(p,f){var v=n.columnModel.getPrimaryColumn(r),y=v==null?void 0:v.getColDef();if(!v||!y)return 0;var w=p==null?"":s(v,null,p),b=f==null?"":s(v,null,f);return w===b?0:w>b?1:-1},e.keyCreator=function(p){return s(p.column,p.node,p.value)},a?u({valueFormatter:function(p){var f=s(p.column,p.node,p.value);return Q(f)?f:l("blanks","(Blanks)")}}):e.filterValueGetter=function(p){return s(p.column,p.node,n.valueService.getValue(p.column,p.node))};break}}},t.prototype.getDefaultDataTypes=function(){var e=function(r){return!!r.match("^\\d{4}-\\d{2}-\\d{2}$")},i=this.localeService.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:function(r){var n,s;return((s=(n=r.newValue)===null||n===void 0?void 0:n.trim)===null||s===void 0?void 0:s.call(n))===""?null:Number(r.newValue)},valueFormatter:function(r){return r.value==null?"":typeof r.value!="number"||isNaN(r.value)?i("invalidNumber","Invalid Number"):String(r.value)},dataTypeMatcher:function(r){return typeof r=="number"}},text:{baseDataType:"text",valueParser:function(r){return r.newValue===""?null:ka(r.newValue)},dataTypeMatcher:function(r){return typeof r=="string"}},boolean:{baseDataType:"boolean",valueParser:function(r){var n,s;return r.newValue==null?r.newValue:((s=(n=r.newValue)===null||n===void 0?void 0:n.trim)===null||s===void 0?void 0:s.call(n))===""?null:String(r.newValue).toLowerCase()==="true"},valueFormatter:function(r){return r.value==null?"":String(r.value)},dataTypeMatcher:function(r){return typeof r=="boolean"}},date:{baseDataType:"date",valueParser:function(r){return di(r.newValue==null?null:String(r.newValue))},valueFormatter:function(r){var n;return r.value==null?"":!(r.value instanceof Date)||isNaN(r.value.getTime())?i("invalidDate","Invalid Date"):(n=ki(r.value,!1))!==null&&n!==void 0?n:""},dataTypeMatcher:function(r){return r instanceof Date}},dateString:{baseDataType:"dateString",dateParser:function(r){var n;return(n=di(r))!==null&&n!==void 0?n:void 0},dateFormatter:function(r){var n;return(n=ki(r??null,!1))!==null&&n!==void 0?n:void 0},valueParser:function(r){return e(String(r.newValue))?r.newValue:null},valueFormatter:function(r){return e(String(r.value))?r.value:""},dataTypeMatcher:function(r){return typeof r=="string"&&e(r)}},object:{baseDataType:"object",valueParser:function(){return null},valueFormatter:function(r){var n;return(n=ka(r.value))!==null&&n!==void 0?n:""}}}},to([E("rowModel")],t.prototype,"rowModel",void 0),to([E("columnModel")],t.prototype,"columnModel",void 0),to([E("columnUtils")],t.prototype,"columnUtils",void 0),to([E("valueService")],t.prototype,"valueService",void 0),to([E("valueFormatterService")],t.prototype,"valueFormatterService",void 0),to([ie],t.prototype,"init",null),t=to([fe("dataTypeService")],t),t}(ee),EM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}
272t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),cy=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},_M=function(o){EM(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.parseValue=function(e,i,r,n){var s=e.getColDef(),a=this.gridOptionsService.addGridCommonParams({node:i,data:i==null?void 0:i.data,oldValue:n,newValue:r,colDef:s,column:e}),l=s.valueParser;return Q(l)?typeof l=="function"?l(a):this.expressionService.evaluate(l,a):r},cy([E("expressionService")],t.prototype,"expressionService",void 0),t=cy([fe("valueParserService")],t),t}(ee),OM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Sa=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},bM=function(o){OM(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.waitingForColumns=!1,e}return t.prototype.postConstruct=function(){var e=this;this.addManagedPropertyListener("columnDefs",function(i){return e.setColumnDefs(i)})},t.prototype.start=function(){var e=this;this.ctrlsService.whenReady(function(){var i=e.gridOptionsService.get("columnDefs");i?e.setColumnsAndData(i):e.waitingForColumns=!0,e.gridReady()})},t.prototype.setColumnsAndData=function(e){this.columnModel.setColumnDefs(e??[],"gridInitializing"),this.rowModel.start()},t.prototype.gridReady=function(){var e=this;this.dispatchGridReadyEvent();var i=ct.__isRegistered(Oe.EnterpriseCoreModule,this.context.getGridId()),r=new Ph("AG Grid",function(){return e.gridOptionsService.get("debug")});r.log("initialised successfully, enterprise = ".concat(i))},t.prototype.dispatchGridReadyEvent=function(){var e={type:T.EVENT_GRID_READY};this.eventService.dispatchEvent(e)},t.prototype.setColumnDefs=function(e){var i=this.gridOptionsService.get("columnDefs");if(i){if(this.waitingForColumns){this.waitingForColumns=!1,this.setColumnsAndData(i);return}this.columnModel.setColumnDefs(i,rs(e.source))}},Sa([E("ctrlsService")],t.prototype,"ctrlsService",void 0),Sa([E("columnModel")],t.prototype,"columnModel",void 0),Sa([E("rowModel")],t.prototype,"rowModel",void 0),Sa([ie],t.prototype,"postConstruct",null),t=Sa([fe("syncService")],t),t}(ee),TM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),hf=function(){return hf=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},hf.apply(this,arguments)},Ea=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},RM=function(o){TM(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.manuallyDisplayed=!1,e}return t.prototype.postConstruct=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_ROW_DATA_UPDATED,function(){return e.onRowDataUpdated()}),this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,function(){return e.onNewColumnsLoaded()})},t.prototype.registerOverlayWrapperComp=function(e){this.overlayWrapperComp=e,(!this.gridOptionsService.get("
272columnDefs")||this.gridOptionsService.isRowModelType("clientSide")&&!this.gridOptionsService.get("rowData"))&&this.showLoadingOverlay()},t.prototype.showLoadingOverlay=function(){if(!this.gridOptionsService.get("suppressLoadingOverlay")){var e={},i=this.userComponentFactory.getLoadingOverlayCompDetails(e);this.showOverlay(i,"ag-overlay-loading-wrapper","loadingOverlayComponentParams")}},t.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsService.get("suppressNoRowsOverlay")){var e={},i=this.userComponentFactory.getNoRowsOverlayCompDetails(e);this.showOverlay(i,"ag-overlay-no-rows-wrapper","noRowsOverlayComponentParams")}},t.prototype.showOverlay=function(e,i,r){var n=this,s=e.newAgStackInstance(),a=this.addManagedPropertyListener(r,function(l){var u=l.currentValue;s.then(function(c){c.refresh&&c.refresh(n.gridOptionsService.addGridCommonParams(hf({},u??{})))})});this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.overlayWrapperComp.showOverlay(s,i,a)},t.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.overlayWrapperComp.hideOverlay()},t.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),i=this.gridOptionsService.get("suppressNoRowsOverlay");e&&!i?this.showNoRowsOverlay():this.hideOverlay()},t.prototype.onRowDataUpdated=function(){this.showOrHideOverlay()},t.prototype.onNewColumnsLoaded=function(){this.columnModel.isReady()&&!this.paginationProxy.isEmpty()&&!this.manuallyDisplayed&&this.hideOverlay()},Ea([E("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Ea([E("paginationProxy")],t.prototype,"paginationProxy",void 0),Ea([E("columnModel")],t.prototype,"columnModel",void 0),Ea([ie],t.prototype,"postConstruct",null),t=Ea([fe("overlayService")],t),t}(ee),AM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),En=function(){return En=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},En.apply(this,arguments)},wi=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},PM=function(o){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&o[t],i=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},DM=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},LM=function(o){AM(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.suppressEvents=!0,e.queuedUpdateSources=new Set,e.dispatchStateUpdateEventDebounced=Oi(function(){return e.dispatchQueuedStateUpdateEvents()},0),e}return t.prototype.postConstruct=function(){var e=this,i;this.isClientSideRowModel=this.rowModel.getType()==="clientSide",this.cachedState=(i=this.gridOptionsService.get("initialState"))!==null&&i!==void 0?i:{},this.ctrlsService.whenReady(function(){return e.suppressEventsAndDispatchInitEvent(function(){return e.setupStateOnGridReady()})});var r=this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,function(a){var l=a.source;l==="gridInitializing"&&(r==null||r(),e.suppressEventsAndDispatchInitEvent(function(){return e.setupStateOnColumnsInitialised()}))}),n=this.addManagedListener(this.eventService,T.EVENT_ROW_COUNT_READY,function(){n==null||n(),e.suppressEventsAndDispatchInitEvent(function(){return e.setupStateOnRowCountReady()})}),s=this.addManagedListener(this.eventService,T.EVENT_FIRST_DATA_RENDERED,function(){s==null||s(),e.suppressEventsAndDispatchInitEvent(function(){return e.setupStateOnFirstDataRendered()})})},t.prototype.getState=function(){return this.cachedState},t.prototype.setupStateOnGridReady=function(){var e=this;
272this.updateCachedState("sideBar",this.getSideBarState()),this.addManagedListener(this.eventService,T.EVENT_TOOL_PANEL_VISIBLE_CHANGED,function(){return e.updateCachedState("sideBar",e.getSideBarState())}),this.addManagedListener(this.eventService,T.EVENT_SIDE_BAR_UPDATED,function(){return e.updateCachedState("sideBar",e.getSideBarState())})},t.prototype.setupStateOnColumnsInitialised=function(){var e=this,i,r=(i=this.gridOptionsService.get("initialState"))!==null&&i!==void 0?i:{};this.setColumnState(r),this.setColumnGroupState(r),this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState()),this.addManagedListener(this.eventService,T.EVENT_COLUMN_VALUE_CHANGED,function(){return e.updateColumnState(["aggregation"])}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_MOVED,function(){return e.updateColumnState(["columnOrder"])}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PINNED,function(){return e.updateColumnState(["columnPinning"])}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_RESIZED,function(){return e.updateColumnState(["columnSizing"])}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_VISIBLE,function(){return e.updateColumnState(["columnVisibility"])}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_CHANGED,function(){return e.updateColumnState(["pivot"])}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return e.updateColumnState(["pivot"])}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.updateColumnState(["rowGroup"])}),this.addManagedListener(this.eventService,T.EVENT_SORT_CHANGED,function(){return e.updateColumnState(["sort"])}),this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,function(){return e.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","pivot","rowGroup","sort"])}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_GROUP_OPENED,function(){return e.updateCachedState("columnGroup",e.getColumnGroupState())})},t.prototype.setupStateOnRowCountReady=function(){var e=this,i,r=(i=this.gridOptionsService.get("initialState"))!==null&&i!==void 0?i:{},n=r.filter,s=r.rowGroupExpansion,a=r.rowSelection,l=r.pagination,u=this.gridOptionsService.get("advancedFilterModel");(n||u)&&this.setFilterState(n,u),s&&this.setRowGroupExpansionState(s),a&&this.setRowSelectionState(a),l&&this.setPaginationState(l),this.updateCachedState("filter",this.getFilterState()),this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState()),this.updateCachedState("rowSelection",this.getRowSelectionState()),this.updateCachedState("pagination",this.getPaginationState()),this.addManagedListener(this.eventService,T.EVENT_FILTER_CHANGED,function(){return e.updateCachedState("filter",e.getFilterState())}),this.addManagedListener(this.eventService,T.EVENT_ROW_GROUP_OPENED,function(){return e.updateCachedState("rowGroupExpansion",e.getRowGroupExpansionState())}),this.addManagedListener(this.eventService,T.EVENT_EXPAND_COLLAPSE_ALL,function(){return e.updateCachedState("rowGroupExpansion",e.getRowGroupExpansionState())}),this.addManagedListener(this.eventService,T.EVENT_SELECTION_CHANGED,function(){return e.updateCachedState("rowSelection",e.getRowSelectionState())}),this.addManagedListener(this.eventService,T.EVENT_PAGINATION_CHANGED,function(c){(c.newPage||c.newPageSize)&&e.updateCachedState("pagination",e.getPaginationState())})},t.prototype.setupStateOnFirstDataRendered=function(){var e=this,i,r=(i=this.gridOptionsService.get("initialState"))!==null&&i!==void 0?i:{},n=r.scroll,s=r.rangeSelection,a=r.focusedCell,l=r.columnOrder;a&&this.setFocusedCellState(a),s&&this.setRangeSelectionState(s),n&&this.setScrollState(n),this.setColumnPivotState(!!(l!=null&&l.orderedColIds)),this.updateCachedState("sideBar",this.getSideBarState()),this.updateCachedState("focusedCell",this.getFocusedCellState()),this.updateCachedState("rangeSelection",this.getRangeSelectionState()),this.updateCachedState("scroll",this.get
272ScrollState()),this.addManagedListener(this.eventService,T.EVENT_CELL_FOCUSED,function(){return e.updateCachedState("focusedCell",e.getFocusedCellState())}),this.addManagedListener(this.eventService,T.EVENT_RANGE_SELECTION_CHANGED,function(u){u.finished&&e.updateCachedState("rangeSelection",e.getRangeSelectionState())}),this.addManagedListener(this.eventService,T.EVENT_BODY_SCROLL_END,function(){return e.updateCachedState("scroll",e.getScrollState())})},t.prototype.getColumnState=function(){for(var e=this.columnModel.isPivotMode(),i=[],r=[],n=[],s=[],a=[],l=[],u=[],c=[],p=[],f=this.columnModel.getColumnState(),v=0;v<f.length;v++){var y=f[v],w=y.colId,b=y.sort,O=y.sortIndex,A=y.rowGroup,P=y.rowGroupIndex,L=y.aggFunc,x=y.pivot,H=y.pivotIndex,g=y.pinned,N=y.hide,V=y.width,z=y.flex;p.push(w),b&&(i[O??0]={colId:w,sort:b}),A&&(r[P??0]=w),typeof L=="string"&&n.push({colId:w,aggFunc:L}),x&&(s[H??0]=w),g&&(g==="right"?l:a).push(w),N&&u.push(w),(z||V)&&c.push({colId:w,flex:z??void 0,width:V})}return{sort:i.length?{sortModel:i}:void 0,rowGroup:r.length?{groupColIds:r}:void 0,aggregation:n.length?{aggregationModel:n}:void 0,pivot:s.length||e?{pivotMode:e,pivotColIds:s}:void 0,columnPinning:a.length||l.length?{leftColIds:a,rightColIds:l}:void 0,columnVisibility:u.length?{hiddenColIds:u}:void 0,columnSizing:c.length?{columnSizingModel:c}:void 0,columnOrder:p.length?{orderedColIds:p}:void 0}},t.prototype.setColumnState=function(e){var i=e.sort,r=e.rowGroup,n=e.aggregation,s=e.pivot,a=e.columnPinning,l=e.columnVisibility,u=e.columnSizing,c=e.columnOrder,p={},f=function(O){var A=p[O];return A||(A={colId:O},p[O]=A,A)};i&&i.sortModel.forEach(function(O,A){var P=O.colId,L=O.sort,x=f(P);x.sort=L,x.sortIndex=A}),r&&r.groupColIds.forEach(function(O,A){var P=f(O);P.rowGroup=!0,P.rowGroupIndex=A}),n&&n.aggregationModel.forEach(function(O){var A=O.colId,P=O.aggFunc;f(A).aggFunc=P}),s&&(s.pivotColIds.forEach(function(O,A){var P=f(O);P.pivot=!0,P.pivotIndex=A}),this.gridOptionsService.updateGridOptions({options:{pivotMode:s.pivotMode},source:"gridInitializing"})),a&&(a.leftColIds.forEach(function(O){f(O).pinned="left"}),a.rightColIds.forEach(function(O){f(O).pinned="right"})),l&&l.hiddenColIds.forEach(function(O){f(O).hide=!0}),u&&u.columnSizingModel.forEach(function(O){var A=O.colId,P=O.flex,L=O.width,x=f(A);x.flex=P??null,x.width=L});var v=c==null?void 0:c.orderedColIds,y=!!(v!=null&&v.length),w=y?v.map(function(O){return f(O)}):Object.values(p);if(w.length){this.columnStates=w;var b={sort:null,sortIndex:null,rowGroup:null,rowGroupIndex:null,aggFunc:null,pivot:null,pivotIndex:null,pinned:null,hide:null,flex:null};this.columnModel.applyColumnState({state:w,applyOrder:y,defaultState:b},"gridInitializing")}},t.prototype.setColumnPivotState=function(e){var i,r,n=this.columnStates;this.columnStates=void 0;var s=this.columnGroupStates;if(this.columnGroupStates=void 0,!!this.columnModel.isSecondaryColumnsPresent()){if(n){var a=[];try{for(var l=PM(n),u=l.next();!u.done;u=l.next()){var c=u.value;this.columnModel.getSecondaryColumn(c.colId)&&a.push(c)}}catch(p){i={error:p}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}this.columnModel.applyColumnState({state:a,applyOrder:e},"gridInitializing")}s&&this.columnModel.setColumnGroupState(s,"gridInitializing")}},t.prototype.getColumnGroupState=function(){var e=this.columnModel.getColumnGroupState(),i=[];return e.forEach(function(r){var n=r.groupId,s=r.open;s&&i.push(n)}),i.length?{openColumnGroupIds:i}:void 0},t.prototype.setColumnGroupState=function(e){var i;if(e.hasOwnProperty("columnGroup")){var r=new Set((i=e.columnGroup)===null||i===void 0?void 0:i.openColumnGroupIds),n=this.columnModel.getColumnGroupState(),s=n.map(function(a){var l=a.groupId,u=r.has(l);return u&&r.delete(l),{groupId:l,open:u}});r.forEach(function(a){s.push({groupId:a,open:!0})}),s.length&&(this.columnGroupStates=s),this.columnModel.setColumnGroupState(s,"gridInitializing")}},t.prototype.getFilterState=function(){var e,i=this.filterManager.getFilterModel();i&&Object.keys(i).length===0&&(i=void 0);var r=(e=this.filterManager.getAdvancedFilterModel())!==null&&e!==void 0?e:void 0;return i||r?{filterModel:i,advancedFilterModel:r}:void 0},t.prototype.setFilterState=function(e,i){var r=e??{advancedFilterModel:i},n=r.filterModel,s=r.advancedFilterModel;n&&this.filterManager.setFilterModel(n,"columnFilter"),s&&this.filterManager.setAdvancedFilterModel(s)},t.prototype.getRangeSelectionState=function(){var e,i=(e=this.rangeService)===null||e===void 0?void 0:e.getCellRanges().map(function(r){var n=r.id,s=r.type,a=r.startRow,l=r.endRow,u=r.columns,c=r.startColumn;return{id:n,type:s,startRow:a,endRow:l,colIds:u.map(function(p){return p.getColId()}),startColId:c.getColId()}});return i!=null&&i.length?{cellRanges:i}:void 0},t.prototype.setRangeSelectionState=function(e){var i=this,r;if(this.gridOptionsService.get("enableRangeSelection")){var n=e.cellRanges.map(function(s){return En(En({}
272,s),{columns:s.colIds.map(function(a){return i.columnModel.getGridColumn(a)}),startColumn:i.columnModel.getGridColumn(s.startColId)})});(r=this.rangeService)===null||r===void 0||r.setCellRanges(n)}},t.prototype.getScrollState=function(){var e,i,r;if(this.isClientSideRowModel){var n=(e=this.ctrlsService.getGridBodyCtrl())===null||e===void 0?void 0:e.getScrollFeature(),s=((i=n==null?void 0:n.getHScrollPosition())!==null&&i!==void 0?i:{left:0}).left,a=((r=n==null?void 0:n.getVScrollPosition())!==null&&r!==void 0?r:{top:0}).top;return a||s?{top:a,left:s}:void 0}},t.prototype.setScrollState=function(e){var i;if(this.isClientSideRowModel){var r=e.top,n=e.left;(i=this.ctrlsService.getGridBodyCtrl())===null||i===void 0||i.getScrollFeature().setScrollPosition(r,n)}},t.prototype.getSideBarState=function(){var e,i;return(i=(e=this.sideBarService)===null||e===void 0?void 0:e.getSideBarComp())===null||i===void 0?void 0:i.getState()},t.prototype.getFocusedCellState=function(){if(this.isClientSideRowModel){var e=this.focusService.getFocusedCell();if(e){var i=e.column,r=e.rowIndex,n=e.rowPinned;return{colId:i.getColId(),rowIndex:r,rowPinned:n}}}},t.prototype.setFocusedCellState=function(e){if(this.isClientSideRowModel){var i=e.colId,r=e.rowIndex,n=e.rowPinned;this.focusService.setFocusedCell({column:this.columnModel.getGridColumn(i),rowIndex:r,rowPinned:n,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}},t.prototype.getPaginationState=function(){var e=this.paginationProxy.getCurrentPage(),i=this.gridOptionsService.get("paginationAutoPageSize")?void 0:this.paginationProxy.getPageSize();if(!(!e&&!i))return{page:e,pageSize:i}},t.prototype.setPaginationState=function(e){e.pageSize&&!this.gridOptionsService.get("paginationAutoPageSize")&&this.paginationProxy.setPageSize(e.pageSize,"initialState"),typeof e.page=="number"&&this.paginationProxy.setPage(e.page)},t.prototype.getRowSelectionState=function(){var e,i=this.selectionService.getSelectionState(),r=!i||!Array.isArray(i)&&(i.selectAll===!1||i.selectAllChildren===!1)&&!(!((e=i==null?void 0:i.toggledNodes)===null||e===void 0)&&e.length);return r?void 0:i},t.prototype.setRowSelectionState=function(e){this.selectionService.setSelectionState(e,"gridInitializing")},t.prototype.getRowGroupExpansionState=function(){var e=this.expansionService.getExpandedRows();return e.length?{expandedRowGroupIds:e}:void 0},t.prototype.setRowGroupExpansionState=function(e){this.expansionService.expandRows(e.expandedRowGroupIds)},t.prototype.updateColumnState=function(e){var i=this,r=this.getColumnState(),n=!1;Object.entries(r).forEach(function(s){var a=DM(s,2),l=a[0],u=a[1];qp(u,i.cachedState[l])||(n=!0)}),this.cachedState=En(En({},this.cachedState),r),n&&this.dispatchStateUpdateEvent(e)},t.prototype.updateCachedState=function(e,i){var r,n=this.cachedState[e];this.cachedState=En(En({},this.cachedState),(r={},r[e]=i,r)),qp(i,n)||this.dispatchStateUpdateEvent([e])},t.prototype.dispatchStateUpdateEvent=function(e){var i=this;this.suppressEvents||(e.forEach(function(r){return i.queuedUpdateSources.add(r)}),this.dispatchStateUpdateEventDebounced())},t.prototype.dispatchQueuedStateUpdateEvents=function(){var e=Array.from(this.queuedUpdateSources);this.queuedUpdateSources.clear();var i={type:T.EVENT_STATE_UPDATED,sources:e,state:this.cachedState};this.eventService.dispatchEvent(i)},t.prototype.suppressEventsAndDispatchInitEvent=function(e){var i=this;this.suppressEvents=!0,this.columnAnimationService.setSuppressAnimation(!0),e(),setTimeout(function(){i.suppressEvents=!1,i.queuedUpdateSources.clear(),i.isAlive()&&(i.columnAnimationService.setSuppressAnimation(!1),i.dispatchStateUpdateEvent(["gridInitializing"]))})},wi([E("filterManager")],t.prototype,"filterManager",void 0),wi([nt("rangeService")],t.prototype,"rangeService",void 0),wi([E("ctrlsService")],t.prototype,"ctrlsService",void 0),wi([nt("sideBarService")],t.prototype,"sideBarService",void 0),wi([E("focusService")],t.prototype,"focusService",void 0),wi([E("columnModel")],t.prototype,"columnModel",void 0),wi([E("paginationProxy")],t.prototype,"paginationProxy",void 0),wi([E("rowModel")],t.prototype,"rowModel",void 0),wi([E("selectionService")],t.prototype,"selectionService",void 0),wi([E("expansionService")],t.prototype,"expansionService",void 0),wi([E("columnAnimationService")],t.prototype,"columnAnimationService",void 0),wi([ie],t.prototype,"postConstruct",null),t=wi([fe("stateService")],t),t}
272(ee),FM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),wp=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},io=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},_a=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},MM=function(o){FM(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.init=function(){this.processGridOptions(this.gridOptions)},t.prototype.processGridOptions=function(e){this.processOptions(e,fM)},t.prototype.processColumnDefs=function(e){this.processOptions(e,as)},t.prototype.processOptions=function(e,i){var r=this,n=i.validations,s=i.deprecations,a=i.allProperties,l=i.propertyExceptions,u=i.objectName,c=i.docsUrl;a&&this.gridOptions.suppressPropertyNamesCheck!==!0&&this.checkProperties(e,_a(_a([],io(l??[]),!1),io(Object.keys(s)),!1),a,u,c);var p=new Set,f=Object.keys(e);f.forEach(function(v){var y,w=s[v];if(w)if("renamed"in w){var b=w.renamed,O=w.version;p.add("As of v".concat(O,", ").concat(String(v)," is deprecated. Please use ").concat(String(b)," instead.")),e[b]=e[v]}else{var A=w.message,O=w.version;p.add("As of v".concat(O,", ").concat(String(v)," is deprecated. ").concat(A??""))}var P=e[v];if(!(P==null||P===!1)){var L=n[v],x;if(L)if(typeof L=="function"){var H=L(e,r.gridOptions);if(!H)return;if("objectName"in H){var g=e[v];if(Array.isArray(g)){g.forEach(function(re){r.processOptions(re,H)});return}r.processOptions(e[v],H);return}x=H}else x=L;else return;var N=x.module,V=x.dependencies,z=x.supportedRowModels;if(z){var I=(y=r.gridOptions.rowModelType)!==null&&y!==void 0?y:"clientSide";if(!z.includes(I)){p.add("".concat(String(v)," is not supported with the '").concat(I,"' row model."));return}}if(N){var k=Array.isArray(N)?N:[N],j=!0;if(k.forEach(function(re){ct.__assertRegistered(re,String(v),r.context.getGridId())||(j=!1,p.add("".concat(String(v)," is only available when ").concat(re," is loaded.")))}),!j)return}if(V){var X=r.checkForWarning(v,V,e);if(X){p.add(X);return}}}}),p.size>0&&p.forEach(function(v){Le(v)})},t.prototype.checkForWarning=function(e,i,r){if(typeof i=="function")return i(r,this.gridOptions);var n=Object.entries(i),s=n.find(function(c){var p=io(c,2),f=p[0],v=p[1],y=r[f];return!v.includes(y)});if(!s)return null;var a=io(s,2),l=a[0],u=a[1];return u.length>1?"'".concat(String(e),"' requires '").concat(l,"' to be one of [").concat(u.join(", "),"]."):"'".concat(String(e),"' requires '").concat(l,"' to be ").concat(u[0],".")},t.prototype.checkProperties=function(e,i,r,n,s){var a=["__ob__","__v_skip","__metadata__"],l=zC(Object.getOwnPropertyNames(e),_a(_a(_a([],io(a),!1),io(i),!1),io(r),!1),r);if(Ut(l,function(c,p){Le("invalid ".concat(n," property '").concat(c,"' did you mean any of these: ").concat(p.slice(0,8).join(", ")))}),Object.keys(l).length>0&&s){var u=this.getFrameworkOverrides().getDocLink(s);Le("to see all the valid ".concat(n," properties please check: ").concat(u))}},wp([E("gridOptions")],t.prototype,"gridOptions",void 0),wp([ie],t.prototype,"init",null),t=wp([fe("validationService")],t),t}
272(ee),IM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),dy=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},xM=function(o){IM(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.syncEventListeners=new Map,e.asyncEventListeners=new Map,e.syncGlobalEventListeners=new Set,e.asyncGlobalEventListeners=new Set,e}return t.prototype.postConstruct=function(){this.frameworkEventWrappingService=new Wf(this.getFrameworkOverrides())},t.prototype.addEventListener=function(e,i){var r=this.frameworkEventWrappingService.wrap(i),n=this.gridOptionsService.useAsyncEvents(),s=n?this.asyncEventListeners:this.syncEventListeners;s.has(e)||s.set(e,new Set),s.get(e).add(r),this.eventService.addEventListener(e,r,n)},t.prototype.addGlobalListener=function(e){var i=this.frameworkEventWrappingService.wrapGlobal(e),r=this.gridOptionsService.useAsyncEvents(),n=r?this.asyncGlobalEventListeners:this.syncGlobalEventListeners;n.add(i),this.eventService.addGlobalListener(i,r)},t.prototype.removeEventListener=function(e,i){var r,n=this.frameworkEventWrappingService.unwrap(i),s=this.asyncEventListeners.get(e),a=!!(s!=null&&s.delete(n));a||(r=this.asyncEventListeners.get(e))===null||r===void 0||r.delete(n),this.eventService.removeEventListener(e,n,a)},t.prototype.removeGlobalListener=function(e){var i=this.frameworkEventWrappingService.unwrapGlobal(e),r=this.asyncGlobalEventListeners.delete(i);r||this.syncGlobalEventListeners.delete(i),this.eventService.removeGlobalListener(i,r)},t.prototype.destroyEventListeners=function(e,i){var r=this;e.forEach(function(n,s){n.forEach(function(a){return r.eventService.removeEventListener(s,a,i)}),n.clear()}),e.clear()},t.prototype.destroyGlobalListeners=function(e,i){var r=this;e.forEach(function(n){return r.eventService.removeGlobalListener(n,i)}),e.clear()},t.prototype.destroy=function(){o.prototype.destroy.call(this),this.destroyEventListeners(this.syncEventListeners,!1),this.destroyEventListeners(this.asyncEventListeners,!0),this.destroyGlobalListeners(this.syncGlobalEventListeners,!1),this.destroyGlobalListeners(this.asyncGlobalEventListeners,!0)},dy([ie],t.prototype,"postConstruct",null),t=dy([fe("apiEventService")],t),t}(ee),NM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),cu=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},GM=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},HM=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},VM=function(o){NM(t,o);function t(){var e=o.call(this,'<span class="ag-paging-page-size"></span>')||this;return e.hasEmptyOption=!1,e.handlePageSizeItemSelected=function(){if(e.selectPageSizeComp){var i=e.selectPageSizeComp.getValue();if(i){var r=Number(i);isNaN(r)||r<1||r===e.paginationProxy.getPageSize()||(e.paginationProxy.setPageSize(r,"pageSizeSelector"),e.hasEmptyOption&&e.toggleSelectDisplay(!0),e.selectPageSizeComp.getFocusableElement().focus())}}},e}return t.prototype.init=function(){var e=this;this.addManagedPropertyListener("paginationPageSizeSelector",function(){e.onPageSizeSelectorValuesChange()}),this.addManagedListener(this.eventService,T.EVENT_PAGINATION_CHANGED,function(i){return e.handlePaginationChanged(i)})},t.prototype.handlePaginationChanged=function(e){if(!(!this.selectPageSizeComp||!(e!=null&&e.newPageSize))){var i=this.paginationProxy.getPageSize();this.getPageSizeSelectorValues().includes(i)?this.selectPageSizeComp.setValue(i.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}},t.prototype.toggleSelectDisplay=function(e){this.selectPageSizeComp&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp&&this.appendChild(this.selectPageSizeComp))},t.prototype.reset=function(){Nt(this.getGui()),this.selectPageSizeComp&&(this.destroyBean(this.selectPageSizeComp),this.selectPageSizeComp=void 0)},t.prototype.onPageSizeSelectorValuesChange=function(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()},t.prototype.shouldShowPageSizeSelector=function(){return this.gridOptionsService.get("pagination")&&!this.gridOptionsService.get("suppressPaginationPanel")&&!this.gridOptionsService.get("paginationAutoPageSize")&&this.gridOptionsService.get("paginationPageSizeSelector")!==!1},t.prototype.reloadPageSizesSelector=function(){var e=this,i=this.getPageSizeSelectorValues(),r=this.paginationProxy.getPageSize(),n=!r||!i.includes(r);n&&(i.unshift(""),Le(`The paginationPageSize grid option is set to a value that is not in the list of page size options. 273 Please make sure that the paginationPageSize grid option is set to one of the values in the 274 paginationPageSizeSelector array, or set the paginationPageSizeSelector to false to hide the page size selector.`)),this.selectPageSizeComp&&(this.destroyBean(this.selectPageSizeComp),this.selectPageSizeComp=void 0);var s=this.localeService.getLocaleTextFunc(),a=s("pageSizeSelectorLabel","Page Size:"),l=i.map(function(c){return{value:String(c),text:String(c)}}),u=s("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new Tc).addOptions(l).setValue(String(n?"":r)).setAriaLabel(u).setLabel(a).onValueChange(function(){return e.handlePageSizeItemSelected()}),this.hasEmptyOption=n},t.prototype.getPageSizeSelectorValues=function(){var e=[20,50,100],i=this.gridOptionsService.get("paginationPageSizeSelector");return!Array.isArray(i)||!this.validateValues(i)?e:HM([],GM(i),!1).sort(function(r,n){return r-n})},t.prototype.validateValues=function(e){if(!e.length)return Le(`The paginationPageSizeSelector grid option is an empty array. This is most likely a mistake. 275 If you want to hide the page size selector, please set the paginationPageSizeSelector to false.`),!1;for(var i=0;i<e.length;i++){var r=e[i],n=typeof r=="number",s=r>0;if(!n)return Le(`The paginationPageSizeSelector grid option contains a non-numeric value. 276 Please make sure that all values in the paginationPageSizeSelector array are numbers.`),!1;if(!s)return Le(`The paginationPageSizeSelector grid option contains a negative number or zero. 277 Please make sure that all values in the paginationPageSizeSelector array are positive.`),!1}return!0},t.prototype.destroy=function(){this.toggleSelectDisplay(!1),o.prototype.destroy.call(this)},cu([E("localeService")],t.prototype,"localeService",void 0),cu([E("gridOptionsService")],t.prototype,"gridOptionsService",void 0),cu([E("paginationProxy")],t.prototype,"paginationProxy",void 0),cu([ie],t.prototype,"init",null),t}
277(We),kM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Sp=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},BM=function(o){kM(t,o);function t(){var e=o.call(this)||this;return e.descriptionContainer=null,e.announceValue=Oi(e.announceValue.bind(e),200),e}return t.prototype.postConstruct=function(){var e=this.gridOptionsService.getDocument(),i=this.descriptionContainer=e.createElement("div");i.classList.add("ag-aria-description-container"),Kf(i,"polite"),_C(i,"additions text"),EC(i,!0),this.eGridDiv.appendChild(i)},t.prototype.announceValue=function(e){var i=this;this.descriptionContainer&&(this.descriptionContainer.textContent="",setTimeout(function(){i.descriptionContainer.textContent=e},50))},t.prototype.destroy=function(){o.prototype.destroy.call(this);var e=this.descriptionContainer;e&&(Nt(e),e.parentElement&&e.parentElement.removeChild(e)),this.descriptionContainer=null,this.eGridDiv=null},Sp([E("eGridDiv")],t.prototype,"eGridDiv",void 0),Sp([ie],t.prototype,"postConstruct",null),t=Sp([fe("ariaAnnouncementService")],t),t}(ee),py=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},fy=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))};function hy(o,t,e){if(!t)return Or("No gridOptions provided to createGrid"),{};var i=Fw.getCoercedGridOptions(t),r=new WM().create(o,i,function(s){var a=new YL(o);s.createBean(a)},void 0,e);if(!Object.isFrozen(t)&&!(e!=null&&e.frameworkOverrides)){var n="https://ag-grid.com/javascript-data-grid/grid-interface/#grid-api";Object.defineProperty(t,"api",{get:function(){Or("gridOptions.api is no longer supported. See ".concat(n,"."))},configurable:!0}),Object.defineProperty(t,"columnApi",{get:function(){Or("gridOptions.columnApi is no longer supported and all methods moved to the grid api. See ".concat(n,"."))},configurable:!0})}return r}var jM=1,WM=function(){function o(){}return o.prototype.create=function(t,e,i,r,n){var s,a=!!e.debug,l=(s=e.gridId)!==null&&s!==void 0?s:String(jM++),u=this.getRegisteredModules(n,l),c=this.createBeansList(e.rowModelType,u,l),p=this.createProvidedBeans(t,e,n);if(!c){Or("Failed to create grid.");return}var f={providedBeanInstances:p,beanClasses:c,debug:a,gridId:l},v=new Ph("Context",function(){return f.debug}),y=new BO(f,v),w=y.getBean("beans");return this.registerModuleUserComponents(w,u),this.registerStackComponents(w,u),this.registerControllers(w,u),i(y),w.syncService.start(),r&&r(y),w.gridApi},o.prototype.registerControllers=function(t,e){e.forEach(function(i){i.controllers&&i.controllers.forEach(function(r){return t.ctrlsFactory.register(r)})})},o.prototype.registerStackComponents=function(t,e){var i=this.createAgStackComponentsList(e);t.agStackComponentsRegistry.setupComponents(i)},o.prototype.getRegisteredModules=function(t,e){var i=t?t.modules:null,r=ct.__getRegisteredModules(e),n=[],s={},a=function(l,u,c){var p=function(f){s[f.moduleName]||(s[f.moduleName]=!0,n.push(f),ct.__register(f,l,c))};p(u),u.dependantModules&&u.dependantModules.forEach(function(f){return a(l,f,c)})};return i&&i.forEach(function(l){return a(!0,l,e)}),r&&r.forEach(function(l){return a(!ct.__isPackageBased(),l,void 0)}),n},o.prototype.registerModuleUserComponents=function(t,e){var i=this.extractModuleEntity(e,function(r){return r.userComponents?r.userComponents:[]});
277i.forEach(function(r){t.userComponentRegistry.registerDefaultComponent(r.componentName,r.componentClass)})},o.prototype.createProvidedBeans=function(t,e,i){var r=i?i.frameworkOverrides:null;Me(r)&&(r=new _L);var n={gridOptions:e,eGridDiv:t,globalEventListener:i?i.globalEventListener:null,globalSyncEventListener:i?i.globalSyncEventListener:null,frameworkOverrides:r};return i&&i.providedBeanInstances&&Object.assign(n,i.providedBeanInstances),n},o.prototype.createAgStackComponentsList=function(t){var e=[{componentName:"AgCheckbox",componentClass:Rc},{componentName:"AgRadioButton",componentClass:ow},{componentName:"AgToggleButton",componentClass:k0},{componentName:"AgInputTextField",componentClass:Po},{componentName:"AgInputTextArea",componentClass:j0},{componentName:"AgInputNumberField",componentClass:Sh},{componentName:"AgInputDateField",componentClass:U0},{componentName:"AgInputRange",componentClass:$0},{componentName:"AgRichSelect",componentClass:J0},{componentName:"AgSelect",componentClass:Tc},{componentName:"AgSlider",componentClass:eL},{componentName:"AgGridBody",componentClass:BP},{componentName:"AgHeaderRoot",componentClass:qD},{componentName:"AgSortIndicator",componentClass:_h},{componentName:"AgPagination",componentClass:PF},{componentName:"AgPageSizeSelector",componentClass:VM},{componentName:"AgOverlayWrapper",componentClass:LF},{componentName:"AgGroupComponent",componentClass:iL},{componentName:"AgRowContainer",componentClass:rD},{componentName:"AgFakeHorizontalScroll",componentClass:rM},{componentName:"AgFakeVerticalScroll",componentClass:CM},{componentName:"AgAutocomplete",componentClass:SL}],i=this.extractModuleEntity(t,function(r){return r.agStackComponents?r.agStackComponents:[]});return e=e.concat(i),e},o.prototype.createBeansList=function(t,e,i){t===void 0&&(t="clientSide");var r=e.filter(function(u){return!u.rowModel||u.rowModel===t}),n={clientSide:Oe.ClientSideRowModelModule,infinite:Oe.InfiniteRowModelModule,serverSide:Oe.ServerSideRowModelModule,viewport:Oe.ViewportRowModelModule};if(!n[t]){Or("Could not find row model for rowModelType = "+t);return}if(ct.__assertRegistered(n[t],"rowModelType = '".concat(t,"'"),i)){var s=[bw,MF,NF,WF,oF,Ew,XR,pF,hF,u0,hA,bF,QD,gM,MM,D0,yA,Ob,Gn,Fw,vL,Pw,SA,mb,UD,N0,b0,HL,rb,BL,DL,KP,aF,xL,UL,Sb,y0,ZD,It,Dw,JL,zP,EF,RL,A0,H0,WP,XL,tF,rF,RF,sb,cF,d0,BF,Ab,zF,$F,I0,YF,QF,oM,aM,eM,SM,_M,_w,bM,RM,LM,f0,xM,BM,v0],a=this.extractModuleEntity(r,function(u){return u.beans?u.beans:[]});s.push.apply(s,fy([],py(a),!1));var l=[];return s.forEach(function(u){l.indexOf(u)<0&&l.push(u)}),l}},o.prototype.extractModuleEntity=function(t,e){return[].concat.apply([],fy([],py(t.map(e)),!1))},o}(),vy;(function(o){o.InsideBase="insideBase",o.InsideEnd="insideEnd",o.Center="center",o.OutsideEnd="outsideEnd"})(vy||(vy={}));/** 278 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue 279 * @version v31.1.1 280 * @link https://www.ag-grid.com/ 281 * @license MIT 282 */var Ns=typeof global>"u"?{}:global;Ns.HTMLElement=typeof HTMLElement>"u"?{}:HTMLElement;Ns.HTMLButtonElement=typeof HTMLButtonElement>"u"?{}:HTMLButtonElement;Ns.HTMLSelectElement=typeof HTMLSelectElement>"u"?{}:HTMLSelectElement;Ns.HTMLInputElement=typeof HTMLInputElement>"u"?{}:HTMLInputElement;Ns.Node=typeof Node>"u"?{}:Node;Ns.MouseEvent=typeof MouseEvent>"u"?{}:MouseEvent;var Oa=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},ba=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},UM=function(){function o(t,e,i,r,n,s){this.nextId=0,this.rowCountReady=!1,this.allNodesMap={},this.rootNode=t,this.gridOptionsService=e,this.eventService=i,this.columnModel=r,this.beans=s,this.selectionService=n,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=o.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[]}return o.prototype.getCopyOfNodesMap=function(){return Ke.cloneObject(this.allNodesMap)},o.prototype.getRowNode=function(t){return this.allNodesMap[t]},o.prototype.setRowData=function(t){var e=this;if(typeof t=="string"){console.warn("AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects f
282irst");return}this.rowCountReady=!0,this.dispatchRowDataUpdateStartedEvent(t);var i=this.rootNode,r=this.rootNode.sibling;i.childrenAfterFilter=null,i.childrenAfterGroup=null,i.childrenAfterAggFilter=null,i.childrenAfterSort=null,i.childrenMapped=null,i.updateHasChildren(),this.nextId=0,this.allNodesMap={},t?i.allLeafChildren=t.map(function(n){return e.createNode(n,e.rootNode,o.TOP_LEVEL)}):(i.allLeafChildren=[],i.childrenAfterGroup=[]),r&&(r.childrenAfterFilter=i.childrenAfterFilter,r.childrenAfterGroup=i.childrenAfterGroup,r.childrenAfterAggFilter=i.childrenAfterAggFilter,r.childrenAfterSort=i.childrenAfterSort,r.childrenMapped=i.childrenMapped,r.allLeafChildren=i.allLeafChildren)},o.prototype.updateRowData=function(t,e){this.rowCountReady=!0,this.dispatchRowDataUpdateStartedEvent(t.add);var i={remove:[],update:[],add:[]},r=[];return this.executeRemove(t,i,r),this.executeUpdate(t,i,r),this.executeAdd(t,i),this.updateSelection(r,"rowDataChanged"),e&&Ke.sortRowNodesByOrder(this.rootNode.allLeafChildren,e),i},o.prototype.isRowCountReady=function(){return this.rowCountReady},o.prototype.dispatchRowDataUpdateStartedEvent=function(t){var e={type:T.EVENT_ROW_DATA_UPDATE_STARTED,firstRowData:t!=null&&t.length?t[0]:null};this.eventService.dispatchEvent(e)},o.prototype.updateSelection=function(t,e){var i=t.length>0;if(i&&this.selectionService.setNodesSelected({newValue:!1,nodes:t,suppressFinishActions:!0,source:e}),this.selectionService.updateGroupsFromChildrenSelections(e),i){var r={type:T.EVENT_SELECTION_CHANGED,source:e};this.eventService.dispatchEvent(r)}},o.prototype.executeAdd=function(t,e){var i=this,r,n=t.add,s=t.addIndex;if(!Ke.missingOrEmpty(n)){var a=n.map(function(w){return i.createNode(w,i.rootNode,o.TOP_LEVEL)});if(typeof s=="number"&&s>=0){var l=this.rootNode.allLeafChildren,u=l.length,c=s,p=this.gridOptionsService.get("treeData");if(p&&s>0&&u>0){for(var f=0;f<u;f++)if(((r=l[f])===null||r===void 0?void 0:r.rowIndex)==s-1){c=f+1;break}}var v=l.slice(0,c),y=l.slice(c,l.length);this.rootNode.allLeafChildren=ba(ba(ba([],Oa(v),!1),Oa(a),!1),Oa(y),!1)}else this.rootNode.allLeafChildren=ba(ba([],Oa(this.rootNode.allLeafChildren),!1),Oa(a),!1);this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),e.add=a}},o.prototype.executeRemove=function(t,e,i){var r=this,n=t.remove;if(!Ke.missingOrEmpty(n)){var s={};n.forEach(function(a){var l=r.lookupRowNode(a);l&&(l.isSelected()&&i.push(l),l.clearRowTopAndRowIndex(),s[l.id]=!0,delete r.allNodesMap[l.id],e.remove.push(l))}),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter(function(a){return!s[a.id]}),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},o.prototype.executeUpdate=function(t,e,i){var r=this,n=t.update;Ke.missingOrEmpty(n)||n.forEach(function(s){var a=r.lookupRowNode(s);a&&(a.updateData(s),!a.selectable&&a.isSelected()&&i.push(a),r.setMasterForRow(a,s,o.TOP_LEVEL,!1),e.update.push(a))})},o.prototype.lookupRowNode=function(t){var e=this.gridOptionsService.getCallback("getRowId"),i;if(e){var r=e({data:t,level:0});if(i=this.allNodesMap[r],!i)return console.error("AG Grid: could not find row id=".concat(r,", data item was not found for this id")),null}else if(i=this.rootNode.allLeafChildren.find(function(n){return n.data===t}),!i)return console.error("AG Grid: could not find data item as object was not found",t),console.error("Consider using getRowId to help the Grid find matching row data"),null;return i||null},o.prototype.createNode=function(t,e,i){var r=new $e(this.beans);r.group=!1,this.setMasterForRow(r,t,i,!0);var n=this.gridOptionsService.get("suppressParentsInRowNodes");return e&&!n&&(r.parent=e),r.level=i,r.setDataAndId(t,this.nextId.toString()),this.allNodesMap[r.id]&&console.warn("AG Grid: duplicate node id '".concat(r.id,"' detected from getRowId callback, this could cause issues in your grid.")),this.allNodesMap[r.id]=r,this.nextId++,r},o.prototype.setMasterForRow=function(t,e,i,r){var n=this.gridOptionsService.get("treeData");if(n)t.setMaster(!1),r&&(t.expanded=!1);else{var s=this.gridOptionsService.get("masterDetail");if(s){var a=this.gridOptionsService.get("isRowMaster");a?t.setMaster(a(e)):t.setMaster(!0)}else t.setMaster(!1);if(r){var l=this.columnModel.getRowGroupColumns(),u=l?l.length:0,c=i+u;t.expanded=t.master?this.isExpanded(c):!1}}},o.prototype.isExpanded=function(t){var e=this.gridOptionsService.get("groupDefaultExpanded");return e===-1?!0:t<e},o.TOP_LEVEL=0,o.ROOT_NODE_ID="ROOT_NODE_ID",o}
282(),zM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ni=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},oi=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},si=function(o,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return o.concat(n||Array.prototype.slice.call(t))},Sr;(function(o){o[o.Normal=0]="Normal",o[o.AfterFilter=1]="AfterFilter",o[o.AfterFilterAndSort=2]="AfterFilterAndSort",o[o.PivotNodes=3]="PivotNodes"})(Sr||(Sr={}));var $M=function(o){zM(t,o);function t(){var e=o!==null&&o.apply(this,arguments)||this;return e.onRowHeightChanged_debounced=Ke.debounce(e.onRowHeightChanged.bind(e),100),e.rowsToDisplay=[],e.hasStarted=!1,e.shouldSkipSettingDataOnStart=!1,e.isRefreshingModel=!1,e.rowCountReady=!1,e}return t.prototype.init=function(){var e=this,i=this.refreshModel.bind(this,{step:Qe.EVERYTHING}),r=!this.gridOptionsService.get("suppressAnimationFrame"),n=this.refreshModel.bind(this,{step:Qe.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:r});this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,n),this.addManagedListener(this.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,i),this.addManagedListener(this.eventService,T.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:Qe.PIVOT})),this.addManagedListener(this.eventService,T.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_MODE_CHANGED,i),this.addManagedListener(this.eventService,T.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanges.bind(this)),this.addManagedListener(this.eventService,T.EVENT_GRID_READY,function(){return e.onGridReady()}),this.addPropertyListeners(),this.rootNode=new $e(this.beans),this.nodeManager=new UM(this.rootNode,this.gridOptionsService,this.eventService,this.columnModel,this.selectionService,this.beans)},t.prototype.addPropertyListeners=function(){var e=this,i=new Set(["treeData","masterDetail"]),r=new Set(["suppressParentsInRowNodes","groupDefaultExpanded","groupAllowUnbalanced","initialGroupOrderComparator","groupHideOpenParents","groupDisplayType"]),n=new Set(["excludeChildrenWhenTreeDataFiltering"]),s=new Set(["removePivotHeaderRowWhenSingleValueColumn","pivotRowTotals","pivotColumnGroupTotals","suppressExpandablePivotGroups"]),a=new Set(["getGroupRowAgg","alwaysAggregateAtRootLevel","groupIncludeTotalFooter","suppressAggFilteredOnly"]),l=new Set(["postSortRows","groupDisplayType","accentedSort"]),u=new Set([]),c=new Set(["groupRemoveSingleChildren","groupRemoveLowestSingleChildren","groupIncludeFooter"]),p=si(si(si(si(si(si(si(si(si([],oi(i),!1),oi(r),!1),oi(n),!1),oi(s),!1),oi(s),!1),oi(a),!1),oi(l),!1),oi(u),!1),oi(c),!1);this.addManagedPropertyListeners(p,function(f){var v,y=(v=f.changeSet)===null||v===void 0?void 0:v.properties;if(y){var w=function(b){return y.some(function(O){return b.has(O)})};if(w(i)){e.setRowData(e.rootNode.allLeafChildren.map(function(b){return b.data}));return}if(w(r)){e.refreshModel({step:Qe.EVERYTHING});return}if(w(n)){e.refreshModel({step:Qe.FILTER});return}if(w(s)){e.refreshModel({step:Qe.PIVOT});return}if(w(a)){e.refreshModel({step:Qe.AGGREGATE});return}if(w(l)){e.refreshModel({step:Qe.SORT});return}if(w(u)){e.refreshModel({step:Qe.FILTER_AGGREGATES});return}w(c)&&e.refreshModel({step:Qe.MAP})}}),this.addManagedPropertyListener("rowHeight",function(){return e.resetRowHeights()})},t.prototype.start=function(){this.hasStarted=!0,this.shouldSkipSettingDataOnStart?this.dispatchUpdateEventsAndRefresh():this.setInitialData()},t.prototype.setInitialData=function(){var e=this.gridOptionsService.get("rowData");e&&(this.shouldSkipSettingDataOnStart=!0,this.setRowData(e))},t.prototype.ensureRowHeightsValid=function(e,i,r,n){var s,a=!1;do{s=!1;for(var l=this.getRowIndexAtPixel(e),u=this.getRowIndexAtPixel(i),c=Math.max(l,r),p=Math.min(u,n),f=c;f<=p;f++){var v=this.getRow(f);if(v.rowHeightEstimated){var y=this.gridOptionsService.getRowHeightForNode(v);v.setRowHeight(y.height),s=!0,a=!0}}s&&this.setRowTopAndRowIndex()}while(s);return a},t.prototype.setRowTopAndRowIndex=function(){for(var e=this.environment.getDefaultRowHeight(),i=0,r=new Set,n=this.gridOptionsService.isDomLayout("normal"),s=0;s<this.rowsToDisplay.length;s++){var a=this.rowsToDisplay[s];if(a.id!=null&&r.add(a.id),a.rowHeight==null){var l=this.gridOptionsService.getRowHeightForNode(a,n,e);a.setRowHeight(l.height,l.estimated)}a.setRowTop(i),a.setRowIndex(s),i+=a.rowHeight}return r},t.prototype.clearRowTopAndRowIndex=function(e,i){var r=e.isActive(),n=function(a){a&&a.id!=null&&!i.has(a.id)&&a.clearRowTopAndRowIndex()}
282,s=function(a){if(n(a),n(a.detailNode),n(a.sibling),a.hasChildren()&&a.childrenAfterGroup){var l=a.level==-1,u=r&&!l&&!a.expanded;u||a.childrenAfterGroup.forEach(s)}};s(this.rootNode)},t.prototype.ensureRowsAtPixel=function(e,i,r){var n=this;r===void 0&&(r=0);var s=this.getRowIndexAtPixel(i),a=this.getRow(s),l=!this.gridOptionsService.get("suppressAnimationFrame");return a===e[0]?!1:(e.forEach(function(u){Ke.removeFromArray(n.rootNode.allLeafChildren,u)}),e.forEach(function(u,c){Ke.insertIntoArray(n.rootNode.allLeafChildren,u,Math.max(s+r,0)+c)}),this.refreshModel({step:Qe.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:l}),!0)},t.prototype.highlightRowAtPixel=function(e,i){var r=i!=null?this.getRowIndexAtPixel(i):null,n=r!=null?this.getRow(r):null;if(!n||!e||n===e||i==null){this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null);return}var s=this.getHighlightPosition(i,n);this.lastHighlightedRow&&this.lastHighlightedRow!==n&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),n.setHighlighted(s),this.lastHighlightedRow=n},t.prototype.getHighlightPosition=function(e,i){if(!i){var r=this.getRowIndexAtPixel(e);if(i=this.getRow(r||0),!i)return zr.Below}var n=i.rowTop,s=i.rowHeight;return e-n<s/2?zr.Above:zr.Below},t.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},t.prototype.isLastRowIndexKnown=function(){return!0},t.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},t.prototype.getTopLevelRowCount=function(){var e=this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode;if(e)return 1;var i=this.rootNode.childrenAfterAggFilter;return i?i.length:0},t.prototype.getTopLevelRowDisplayedIndex=function(e){var i=this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode;if(i)return e;var r=this.rootNode.childrenAfterSort[e];if(this.gridOptionsService.get("groupHideOpenParents"))for(;r.expanded&&r.childrenAfterSort&&r.childrenAfterSort.length>0;)r=r.childrenAfterSort[0];return r.rowIndex},t.prototype.getRowBounds=function(e){if(Ke.missing(this.rowsToDisplay))return null;var i=this.rowsToDisplay[e];return i?{rowTop:i.rowTop,rowHeight:i.rowHeight}:null},t.prototype.onRowGroupOpened=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:Qe.MAP,keepRenderedRows:!0,animate:e})},t.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var i=this.gridOptionsService.isAnimateRows(),r=e.columns.length===0||e.columns.some(function(s){return s.isPrimary()}),n=r?Qe.FILTER:Qe.FILTER_AGGREGATES;this.refreshModel({step:n,keepRenderedRows:!0,animate:i})}},t.prototype.onSortChanged=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:Qe.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},t.prototype.getType=function(){return"clientSide"},t.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:Qe.PIVOT}):this.refreshModel({step:Qe.AGGREGATE})},t.prototype.createChangePath=function(e){var i=Ke.missingOrEmpty(e),r=new Mc(!1,this.rootNode);return(i||this.gridOptionsService.get("treeData"))&&r.setInactive(),r},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsService.get("suppressModelUpdateAfterUpdateTransaction")||e.rowNodeTransactions==null)return!1;var i=e.rowNodeTransactions.filter(function(n){return n.add!=null&&n.add.length>0||n.remove!=null&&n.remove.length>0}),r=i==null||i.length==0;return r},t.prototype.buildRefreshModelParams=function(e){var i=Qe.EVERYTHING,r={everything:Qe.EVERYTHING,group:Qe.EVERYTHING,filter:Qe.FILTER,map:Qe.MAP,aggregate:Qe.AGGREGATE,sort:Qe.SORT,pivot:Qe.PIVOT};if(Ke.exists(e)&&(i=r[e]),Ke.missing(i)){console.error("AG Grid: invalid step ".concat(e,", available steps are ").concat(Object.keys(r).join(", ")));return}var n=!this.gridOptionsService.get("suppressAnimationFrame"),s={step:i,keepRenderedRows:!0,keepEditingRows:!0,animate:n};return s},t.prototype.refreshModel=function(e){if(!(!this.hasStarted||this.isRefreshingModel||this.columnModel.shouldRowModelIgnoreRefresh())
282){var i=typeof e=="object"&&"step"in e?e:this.buildRefreshModelParams(e);if(i&&!this.isSuppressModelUpdateAfterUpdateTransaction(i)){var r=this.createChangePath(i.rowNodeTransactions);switch(this.isRefreshingModel=!0,i.step){case Qe.EVERYTHING:this.doRowGrouping(i.rowNodeTransactions,i.rowNodeOrder,r,!!i.afterColumnsChanged);case Qe.FILTER:this.doFilter(r);case Qe.PIVOT:this.doPivot(r);case Qe.AGGREGATE:this.doAggregate(r);case Qe.FILTER_AGGREGATES:this.doFilterAggregates(r);case Qe.SORT:this.doSort(i.rowNodeTransactions,r);case Qe.MAP:this.doRowsToDisplay()}var n=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(r,n),this.isRefreshingModel=!1;var s={type:T.EVENT_MODEL_UPDATED,animate:i.animate,keepRenderedRows:i.keepRenderedRows,newData:i.newData,newPage:!1,keepUndoRedoStack:i.keepUndoRedoStack};this.eventService.dispatchEvent(s)}}},t.prototype.isEmpty=function(){var e=Ke.missing(this.rootNode.allLeafChildren)||this.rootNode.allLeafChildren.length===0;return Ke.missing(this.rootNode)||e||!this.columnModel.isReady()},t.prototype.isRowsToRender=function(){return Ke.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},t.prototype.getNodesInRangeForSelection=function(e,i){var r=!i,n=!1,s=[],a=this.gridOptionsService.get("groupSelectsChildren");return this.forEachNodeAfterFilterAndSort(function(l){if(!n){if(r&&(l===i||l===e)&&(n=!0,l.group&&a)){s.push.apply(s,si([],oi(l.allLeafChildren),!1));return}if(!r){if(l!==i&&l!==e)return;r=!0}var u=!l.group||!a;if(u){s.push(l);return}}}),s},t.prototype.setDatasource=function(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")},t.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},t.prototype.getRootNode=function(){return this.rootNode},t.prototype.getRow=function(e){return this.rowsToDisplay[e]},t.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},t.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty()||this.rowsToDisplay.length===0)return-1;var i=0,r=this.rowsToDisplay.length-1;if(e<=0)return 0;var n=Ke.last(this.rowsToDisplay);if(n.rowTop<=e)return this.rowsToDisplay.length-1;for(var s=-1,a=-1;;){var l=Math.floor((i+r)/2),u=this.rowsToDisplay[l];if(this.isRowInPixel(u,e))return l;u.rowTop<e?i=l+1:u.rowTop>e&&(r=l-1);var c=s===i&&a===r;if(c)return l;s=i,a=r}},t.prototype.isRowInPixel=function(e,i){var r=e.rowTop,n=e.rowTop+e.rowHeight,s=r<=i&&n>i;return s},t.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach(function(i,r){return e(i,r)})},t.prototype.forEachNode=function(e,i){i===void 0&&(i=!1),this.recursivelyWalkNodesAndCallback({nodes:si([],oi(this.rootNode.childrenAfterGroup||[]),!1),callback:e,recursionType:Sr.Normal,index:0,includeFooterNodes:i})},t.prototype.forEachNodeAfterFilter=function(e,i){i===void 0&&(i=!1),this.recursivelyWalkNodesAndCallback({nodes:si([],oi(this.rootNode.childrenAfterAggFilter||[]),!1),callback:e,recursionType:Sr.AfterFilter,index:0,includeFooterNodes:i})},t.prototype.forEachNodeAfterFilterAndSort=function(e,i){i===void 0&&(i=!1),this.recursivelyWalkNodesAndCallback({nodes:si([],oi(this.rootNode.childrenAfterSort||[]),!1),callback:e,recursionType:Sr.AfterFilterAndSort,index:0,includeFooterNodes:i})},t.prototype.forEachPivotNode=function(e,i){i===void 0&&(i=!1),this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:e,recursionType:Sr.PivotNodes,index:0,includeFooterNodes:i})},t.prototype.recursivelyWalkNodesAndCallback=function(e){for(var i,r=e.nodes,n=e.callback,s=e.recursionType,a=e.includeFooterNodes,l=e.index,u=0;u<r.length;u++){var c=r[u];if(n(c,l++),c.hasChildren()&&!c.footer){var p=null;switch(s){case Sr.Normal:p=c.childrenAfterGroup;break;case Sr.AfterFilter:p=c.childrenAfterAggFilter;break;case Sr.AfterFilterAndSort:p=c.childrenAfterSort;break;case Sr.PivotNodes:p=c.leafGroup?null:c.childrenAfterSort;break}p&&(l=this.recursivelyWalkNodesAndCallback({nodes:si([],oi(p),!1),callback:n,recursionType:s,index:l,includeFooterNodes:a}))}}var f=(i=r[0])===null||i===void 0?void 0:i.parent;if(!a||!f)return l;var v=f===this.rootNode;if(v){var y=this.gridOptionsService.get("groupIncludeTotalFooter");if(!y)return l}else{var w=this.gridOptionsService.getGroupIncludeFooter();if(!w({node:f}))return l}return f.createFooter(),n(f.sibling,l++),l},t.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.doFilterAggregates=function(e){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:e}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter},t.prototype.expandOrCollapseAll=function(e){var i=this.gridOptionsService.get("treeData"),r=this.columnModel.isPivotActive(),n=function(l){l&&l.forEach(function(u){var c=function(){u.expanded=e,n(u.childrenAfterGroup)};if(i){var p=Ke.exists(u.childrenAfterGroup);p&&c();return}if(r){var f=!u.leafGroup;f&&c();return}var v=u.group;v&&c()})};this.rootNode&&n(this.rootNode.childrenAfterGroup),this.refreshModel({step:Qe.MAP});var s=e?"expandAll":"collapseAll",a={type:T.EVENT_EXPAND_COLLAPSE_ALL,source:s};this.eventService.dispatchEvent(a)},t.prototype.doSort=function(e,i){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:i})},t.prototype.doRowGrouping=function(e,i,r,n){if(this.groupStage){if(e?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,rowNodeOrder:i,changedPath:r}):this.groupStage.execute({rowNode:this.rootNode,changedPath:r,afterColumnsChanged:n}),this.gridOptionsService.get("groupSelectsChildren")){var s=this.selectionService.updateGroupsFromChildrenSelections("rowGroupChanged",r);if(s){var a={type:T.EVENT_SELECTION_CHANGED,source:"rowGroupChanged"};this.eventService.dispatchEvent(a)}}}else this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren();this.nodeManager.isRowCountReady()&&(this.rowCountReady=!0,this.eventService.dispatchEventOnce({type:T.EVENT_ROW_COUNT_READY}))},t.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},t.prototype.getRowNode=function(e){var i=typeof e=="string"&&e.indexOf($e.ID_PREFIX_ROW_GROUP)==0;if(i){var r=void 0;return this.forEachNode(function(n){n.id===e&&(r=n)}),r}return this.nodeManager.getRowNode(e)},t.prototype.setRowData=function(e){this.selectionService.reset("rowDataChanged"),this.nodeManager.setRowData(e),this.hasStarted&&this.dispatchUpdateEventsAndRefresh()},t.prototype.dispatchUpdateEventsAndRefresh=function(){var e={type:T.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(e),this.refreshModel({step:Qe.EVERYTHING,newData:!0})},t.prototype.batchUpdateRowData=function(e,i){var r=this;if(this.applyAsyncTransactionsTimeout==null){this.rowDataTransactionBatch=[];var n=this.gridOptionsService.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout(function(){r.executeBatchUpdateRowData()},n)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:i})},t.prototype.flushAsyncTransactions=function(){this.applyAsyncTransactionsTimeout!=null&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},t.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var i=[],r=[],n=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEac
282h(function(a){var l=e.nodeManager.updateRowData(a.rowDataTransaction,void 0);r.push(l),a.callback&&i.push(a.callback.bind(null,l)),typeof a.rowDataTransaction.addIndex=="number"&&(n=!0)}),this.commonUpdateRowData(r,void 0,n),i.length>0&&window.setTimeout(function(){i.forEach(function(a){return a()})},0),r.length>0){var s={type:T.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:r};this.eventService.dispatchEvent(s)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},t.prototype.updateRowData=function(e,i){this.valueCache.onDataChanged();var r=this.nodeManager.updateRowData(e,i),n=typeof e.addIndex=="number";return this.commonUpdateRowData([r],i,n),r},t.prototype.createRowNodeOrder=function(){var e=this.gridOptionsService.get("suppressMaintainUnsortedOrder");if(!e){var i={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var r=0;r<this.rootNode.allLeafChildren.length;r++){var n=this.rootNode.allLeafChildren[r];i[n.id]=r}return i}},t.prototype.commonUpdateRowData=function(e,i,r){if(this.hasStarted){var n=!this.gridOptionsService.get("suppressAnimationFrame");r&&(i=this.createRowNodeOrder());var s={type:T.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(s),this.refreshModel({step:Qe.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:i,keepRenderedRows:!0,keepEditingRows:!0,animate:n})}},t.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},t.prototype.onRowHeightChanged=function(){this.refreshModel({step:Qe.MAP,keepRenderedRows:!0,keepEditingRows:!0,keepUndoRedoStack:!0})},t.prototype.onRowHeightChangedDebounced=function(){this.onRowHeightChanged_debounced()},t.prototype.resetRowHeights=function(){var e=this.resetRowHeightsForAllRowNodes();this.rootNode.setRowHeight(this.rootNode.rowHeight,!0),this.rootNode.sibling&&this.rootNode.sibling.setRowHeight(this.rootNode.sibling.rowHeight,!0),e&&this.onRowHeightChanged()},t.prototype.resetRowHeightsForAllRowNodes=function(){var e=!1;return this.forEachNode(function(i){i.setRowHeight(i.rowHeight,!0);var r=i.detailNode;r&&r.setRowHeight(r.rowHeight,!0),i.sibling&&i.sibling.setRowHeight(i.sibling.rowHeight,!0),e=!0}),e},t.prototype.onGridStylesChanges=function(){this.columnModel.isAutoRowHeightActive()||this.resetRowHeights()},t.prototype.onGridReady=function(){this.hasStarted||this.setInitialData()},t.prototype.isRowDataLoaded=function(){return this.rowCountReady},ni([E("columnModel")],t.prototype,"columnModel",void 0),ni([E("selectionService")],t.prototype,"selectionService",void 0),ni([E("filterManager")],t.prototype,"filterManager",void 0),ni([E("valueCache")],t.prototype,"valueCache",void 0),ni([E("beans")],t.prototype,"beans",void 0),ni([E("filterStage")],t.prototype,"filterStage",void 0),ni([E("sortStage")],t.prototype,"sortStage",void 0),ni([E("flattenStage")],t.prototype,"flattenStage",void 0),ni([nt("groupStage")],t.prototype,"groupStage",void 0),ni([nt("aggregationStage")],t.prototype,"aggregationStage",void 0),ni([nt("pivotStage")],t.prototype,"pivotStage",void 0),ni([nt("filterAggregatesStage")],t.prototype,"filterAggregatesStage",void 0),ni([ie],t.prototype,"init",null),t=ni([fe("rowModel")],t),t}(ee),KM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),gy=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},YM=function(o){KM(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.execute=function(e){var i=e.changedPath;this.filterService.filter(i)},gy([E("filterService")],t.prototype,"filterService",void 0),t=gy([fe("filterStage")],t),t}
282(ee),qM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ep=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},XM=function(o){qM(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.execute=function(e){var i=this,r=this.sortController.getSortOptions(),n=Ke.exists(r)&&r.length>0,s=n&&Ke.exists(e.rowNodeTransactions)&&this.gridOptionsService.get("deltaSort"),a=r.some(function(l){var u=i.gridOptionsService.isColumnsSortingCoupledToGroup();return u?l.column.isPrimary()&&l.column.isRowGroupActive():!!l.column.getColDef().showRowGroup});this.sortService.sort(r,n,s,e.rowNodeTransactions,e.changedPath,a)},Ep([E("sortService")],t.prototype,"sortService",void 0),Ep([E("sortController")],t.prototype,"sortController",void 0),t=Ep([fe("sortStage")],t),t}(ee),QM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),_p=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},JM=function(o){QM(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.execute=function(e){var i=e.rowNode,r=[],n=this.columnModel.isPivotMode(),s=n&&i.leafGroup,a=s?[i]:i.childrenAfterSort,l=this.getFlattenDetails();this.recursivelyAddToRowsToDisplay(l,a,r,n,0);var u=r.length>0,c=!s&&u&&l.groupIncludeTotalFooter;return c&&(i.createFooter(),this.addRowNodeToRowsToDisplay(l,i.sibling,r,0)),r},t.prototype.getFlattenDetails=function(){var e=this.gridOptionsService.get("groupRemoveSingleChildren"),i=!e&&this.gridOptionsService.get("groupRemoveLowestSingleChildren");return{groupRemoveLowestSingleChildren:i,groupRemoveSingleChildren:e,isGroupMultiAutoColumn:this.gridOptionsService.isGroupMultiAutoColumn(),hideOpenParents:this.gridOptionsService.get("groupHideOpenParents"),groupIncludeTotalFooter:this.gridOptionsService.get("groupIncludeTotalFooter"),getGroupIncludeFooter:this.gridOptionsService.getGroupIncludeFooter()}},t.prototype.recursivelyAddToRowsToDisplay=function(e,i,r,n,s){if(!Ke.missingOrEmpty(i))for(var a=0;a<i.length;a++){var l=i[a],u=l.hasChildren(),c=n&&!u,p=e.groupRemoveSingleChildren&&u&&l.childrenAfterGroup.length===1,f=e.groupRemoveLowestSingleChildren&&u&&l.leafGroup&&l.childrenAfterGroup.length===1,v=n&&l.leafGroup,y=e.hideOpenParents&&l.expanded&&!l.master&&!v,w=!c&&!y&&!p&&!f;if(w&&this.addRowNodeToRowsToDisplay(e,l,r,s),!(n&&l.leafGroup)){if(u){var b=p||f;if(l.expanded||b){var O=b?s:s+1;this.recursivelyAddToRowsToDisplay(e,l.childrenAfterSort,r,n,O);var A=e.getGroupIncludeFooter({node:l});A?(l.createFooter(),this.addRowNodeToRowsToDisplay(e,l.sibling,r,O)):l.destroyFooter()}}else if(l.master&&l.expanded){var P=this.createDetailNode(l);this.addRowNodeToRowsToDisplay(e,P,r,s)}}}},t.prototype.addRowNodeToRowsToDisplay=function(e,i,r,n){r.push(i),i.setUiLevel(e.isGroupMultiAutoColumn?0:n)},t.prototype.createDetailNode=function(e){if(Ke.exists(e.detailNode))return e.detailNode;var i=new $e(this.beans);return i.detail=!0,i.selectable=!1,i.parent=e,Ke.exists(e.id)&&(i.id="detail_"+e.id),i.data=e.data,i.level=e.level+1,e.detailNode=i,i},_p([E("columnModel")],t.prototype,"columnModel",void 0),_p([E("beans")],t.prototype,"beans",void 0),t=_p([fe("flattenStage")],t),t}
282(ee),ZM=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Op=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},eI=function(o){ZM(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.sort=function(e,i,r,n,s,a){var l=this,u=this.gridOptionsService.get("groupMaintainOrder"),c=this.columnModel.getAllGridColumns().some(function(w){return w.isRowGroupActive()}),p={};r&&n&&(p=this.calculateDirtyNodes(n));var f=this.columnModel.isPivotMode(),v=this.gridOptionsService.getCallback("postSortRows"),y=function(w){var b;l.pullDownGroupDataForHideOpenParents(w.childrenAfterAggFilter,!0);var O=f&&w.leafGroup,A=u&&c&&!w.leafGroup&&!a;if(A){var P=(b=l.columnModel.getRowGroupColumns())===null||b===void 0?void 0:b[w.level+1],L=(P==null?void 0:P.getSort())===null,x=w.childrenAfterAggFilter.slice(0);if(w.childrenAfterSort&&!L){var H={};w.childrenAfterSort.forEach(function(N,V){H[N.id]=V}),x.sort(function(N,V){var z,I;return((z=H[N.id])!==null&&z!==void 0?z:0)-((I=H[V.id])!==null&&I!==void 0?I:0)})}w.childrenAfterSort=x}else!i||O?w.childrenAfterSort=w.childrenAfterAggFilter.slice(0):r?w.childrenAfterSort=l.doDeltaSort(w,p,s,e):w.childrenAfterSort=l.rowNodeSorter.doFullSort(w.childrenAfterAggFilter,e);if(w.sibling&&(w.sibling.childrenAfterSort=w.childrenAfterSort),l.updateChildIndexes(w),v){var g={nodes:w.childrenAfterSort};v(g)}};s&&s.forEachChangedNodeDepthFirst(y),this.updateGroupDataForHideOpenParents(s)},t.prototype.calculateDirtyNodes=function(e){var i={},r=function(n){n&&n.forEach(function(s){return i[s.id]=!0})};return e&&e.forEach(function(n){r(n.add),r(n.update),r(n.remove)}),i},t.prototype.doDeltaSort=function(e,i,r,n){var s=this,a=e.childrenAfterAggFilter,l=e.childrenAfterSort;if(!l)return this.rowNodeSorter.doFullSort(a,n);var u={},c=[];a.forEach(function(y){i[y.id]||!r.canSkip(y)?c.push(y):u[y.id]=!0});var p=l.filter(function(y){return u[y.id]}),f=function(y,w){return{currentPos:w,rowNode:y}},v=c.map(f).sort(function(y,w){return s.rowNodeSorter.compareRowNodes(n,y,w)});return this.mergeSortedArrays(n,v,p.map(f)).map(function(y){var w=y.rowNode;return w})},t.prototype.mergeSortedArrays=function(e,i,r){for(var n=[],s=0,a=0;s<i.length&&a<r.length;){var l=this.rowNodeSorter.compareRowNodes(e,i[s],r[a]);l<0?n.push(i[s++]):n.push(r[a++])}for(;s<i.length;)n.push(i[s++]);for(;a<r.length;)n.push(r[a++]);return n},t.prototype.updateChildIndexes=function(e){if(!Ke.missing(e.childrenAfterSort))for(var i=e.childrenAfterSort,r=0;r<i.length;r++){var n=i[r],s=r===0,a=r===e.childrenAfterSort.length-1;n.setFirstChild(s),n.setLastChild(a),n.setChildIndex(r)}},t.prototype.updateGroupDataForHideOpenParents=function(e){var i=this;if(this.gridOptionsService.get("groupHideOpenParents")){if(this.gridOptionsService.get("treeData"))return Ke.warnOnce("The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them."),!1;var r=function(n){i.pullDownGroupDataForHideOpenParents(n.childrenAfterSort,!1),n.childrenAfterSort.forEach(function(s){s.hasChildren()&&r(s)})};e&&e.executeFromRootNode(function(n){return r(n)})}},t.prototype.pullDownGroupDataForHideOpenParents=function(e,i){var r=this;!this.gridOptionsService.get("groupHideOpenParents")||Ke.missing(e)||e.forEach(function(n){var s=r.columnModel.getGroupDisplayColumns();s.forEach(function(a){var l=a.getColDef().showRowGroup;if(typeof l!="string"){console.error("AG Grid: groupHideOpenParents only w
282orks when specifying specific columns for colDef.showRowGroup");return}var u=l,c=r.columnModel.getPrimaryColumn(u),p=c===n.rowGroupColumn;if(!p)if(i)n.setGroupValue(a.getId(),void 0);else{var f=n.getFirstChildOfFirstChild(c);f&&n.setGroupValue(a.getId(),f.key)}})})},Op([E("columnModel")],t.prototype,"columnModel",void 0),Op([E("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),t=Op([fe("sortService")],t),t}(ee),tI=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),yy=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},iI=function(o){tI(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.filter=function(e){var i=this.filterManager.isChildFilterPresent();this.filterNodes(i,e)},t.prototype.filterNodes=function(e,i){var r=this,n=function(u,c){u.hasChildren()&&e&&!c?u.childrenAfterFilter=u.childrenAfterGroup.filter(function(p){var f=p.childrenAfterFilter&&p.childrenAfterFilter.length>0,v=p.data&&r.filterManager.doesRowPassFilter({rowNode:p});return f||v}):u.childrenAfterFilter=u.childrenAfterGroup,u.sibling&&(u.sibling.childrenAfterFilter=u.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var s=function(u,c){if(u.childrenAfterGroup)for(var p=0;p<u.childrenAfterGroup.length;p++){var f=u.childrenAfterGroup[p],v=c||r.filterManager.doesRowPassFilter({rowNode:f});f.childrenAfterGroup?s(u.childrenAfterGroup[p],v):n(f,v)}n(u,c)},a=function(u){return s(u,!1)};i.executeFromRootNode(a)}else{var l=function(u){return n(u,!1)};i.forEachChangedNodeDepthFirst(l,!0)}},t.prototype.doingTreeDataFiltering=function(){return this.gridOptionsService.get("treeData")&&!this.gridOptionsService.get("excludeChildrenWhenTreeDataFiltering")},yy([E("filterManager")],t.prototype,"filterManager",void 0),t=yy([fe("filterService")],t),t}(ee),rI=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ta=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},nI=function(o,t){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var i=e.call(o),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n},oI=function(o){rI(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.postConstruct=function(){var e=this;this.rowModel.getType()==="clientSide"&&(this.clientSideRowModel=this.rowModel,this.addManagedPropertyListener("rowData",function(){return e.onRowDataUpdated()}))},t.prototype.isActive=function(){var e=this.gridOptionsService.exists("getRowId"),i=this.gridOptionsService.get("resetRowDataOnUpdate");return i?!1:e},t.prototype.setRowData=function(e){var i=this.createTransactionForRowData(e);if(i){var r=nI(i,2),n=r[0],s=r[1];this.clientSideRowModel.updateRowData(n,s)}},t.prototype.createTransactionForRowData=function(e){if(Ke.missing(this.clientSideRowModel)){console.error("AG Grid: ImmutableService only works with ClientSideRowModel");return}var i=this.gridOptionsService.getCallback("getRowId");if(i==null){console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!");return}var r={remove:[],update:[],add:[]},n=this.clientSideRowModel.getCopyOfNodesMap(),s=this.gridOptionsService.get("suppressMaintainUnsortedOrder"),a=s?void 0:{};return Ke.exists(e)&&e.forEach(function(l,u){var c=i({data:l,level:0}),p=n[c];if(a&&(a[c]=u),p){var f=p.data!==l;f&&r.update.push(l),n[c]=void 0}else r.add.push(l)}
282),Ke.iterateObject(n,function(l,u){u&&r.remove.push(u.data)}),[r,a]},t.prototype.onRowDataUpdated=function(){var e=this.gridOptionsService.get("rowData");e&&(this.isActive()?this.setRowData(e):(this.selectionService.reset("rowDataChanged"),this.clientSideRowModel.setRowData(e)))},Ta([E("rowModel")],t.prototype,"rowModel",void 0),Ta([E("rowRenderer")],t.prototype,"rowRenderer",void 0),Ta([E("selectionService")],t.prototype,"selectionService",void 0),Ta([ie],t.prototype,"postConstruct",null),t=Ta([fe("immutableService")],t),t}(ee),sI="31.1.1",aI={version:sI,moduleName:Oe.ClientSideRowModelModule,rowModel:"clientSide",beans:[$M,YM,XM,JM,eI,iI,oI]},lI=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),bp=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},my=function(o){lI(t,o);function t(e,i,r){var n=o.call(this,e)||this;return n.parentCache=i,n.params=r,n.startRow=e*r.blockSize,n.endRow=n.startRow+r.blockSize,n}return t.prototype.postConstruct=function(){this.createRowNodes()},t.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},t.prototype.setDataAndId=function(e,i,r){Ke.exists(i)?e.setDataAndId(i,r.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,i=this.createLoadParams();if(Ke.missing(this.params.datasource.getRows)){console.warn("AG Grid: datasource is missing getRows method");return}window.setTimeout(function(){e.params.datasource.getRows(i)},0)},t.prototype.processServerFail=function(){},t.prototype.createLoadParams=function(){var e={startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsService.getGridCommonParams().context};return e},t.prototype.forEachNode=function(e,i,r){var n=this;this.rowNodes.forEach(function(s,a){var l=n.startRow+a;l<r&&e(s,i.next())})},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRow=function(e,i){i===void 0&&(i=!1),i||(this.lastAccessed=this.params.lastAccessedSequence.next());var r=e-this.startRow;return this.rowNodes[r]},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.params.blockSize;e++){var i=this.startRow+e,r=new $e(this.beans);r.setRowHeight(this.params.rowHeight),r.uiLevel=0,r.setRowIndex(i),r.setRowTop(this.params.rowHeight*i),this.rowNodes.push(r)}},t.prototype.processServerResult=function(e){var i=this;this.rowNodes.forEach(function(n,s){var a=e.rowData?e.rowData[s]:void 0;!n.id&&n.alreadyRendered&&a&&(i.rowNodes[s]=new $e(i.beans),i.rowNodes[s].setRowIndex(n.rowIndex),i.rowNodes[s].setRowTop(n.rowTop),i.rowNodes[s].setRowHeight(n.rowHeight),n.clearRowTopAndRowIndex()),i.setDataAndId(i.rowNodes[s],a,i.startRow+s)});var r=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,r)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach(function(e){e.clearRowTopAndRowIndex()})},bp([E("beans")],t.prototype,"beans",void 0),bp([ie],t.prototype,"postConstruct",null),bp([Xt],t.prototype,"destroyRowNodes",null),t}
282(ff),uI=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),du=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},cI=function(o,t){return function(e,i){t(e,i,o)}},dI=function(o){uI(t,o);function t(e){var i=o.call(this)||this;return i.lastRowIndexKnown=!1,i.blocks={},i.blockCount=0,i.rowCount=e.initialRowCount,i.params=e,i}return t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,i){i===void 0&&(i=!1);var r=Math.floor(e/this.params.blockSize),n=this.blocks[r];if(!n){if(i)return;n=this.createBlock(r)}return n.getRow(e)},t.prototype.createBlock=function(e){var i=this.createBean(new my(e,this,this.params));return this.blocks[i.getId()]=i,this.blockCount++,this.purgeBlocksIfNeeded(i),this.params.rowNodeBlockLoader.addBlock(i),i},t.prototype.refreshCache=function(){var e=this.blockCount==0;if(e){this.purgeCache();return}this.getBlocksInOrder().forEach(function(i){return i.setStateWaitingToLoad()}),this.params.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach(function(i){return e.destroyBlock(i)})},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,i){this.isAlive()&&(this.logger.log("onPageLoaded: page = ".concat(e.getId(),", lastRow = ").concat(i)),this.checkRowCount(e,i),this.onCacheUpdated())},t.prototype.purgeBlocksIfNeeded=function(e){var i=this,r=this.getBlocksInOrder().filter(function(u){return u!=e}),n=function(u,c){return c.getLastAccessed()-u.getLastAccessed()};r.sort(n);var s=this.params.maxBlocksInCache>0,a=s?this.params.maxBlocksInCache-1:null,l=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;r.forEach(function(u,c){var p=u.getState()===my.STATE_WAITING_TO_LOAD&&c>=l,f=s?c>=a:!1;if(p||f){if(i.isBlockCurrentlyDisplayed(u)||i.isBlockFocused(u))return;i.removeBlockFromCache(u)}})},t.prototype.isBlockFocused=function(e){var i=this.focusService.getFocusCellToUseAfterRefresh();if(!i||i.rowPinned!=null)return!1;var r=e.getStartRow(),n=e.getEndRow(),s=i.rowIndex>=r&&i.rowIndex<n;return s},t.prototype.isBlockCurrentlyDisplayed=function(e){var i=e.getStartRow(),r=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(i,r)},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkRowCount=function(e,i){if(typeof i=="number"&&i>=0)this.rowCount=i,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var r=(e.getId()+1)*this.params.blockSize,n=r+this.params.overflowSize;this.rowCount<n&&(this.rowCount=n)}},t.prototype.setRowCount=function(e,i){this.rowCount=e,Ke.exists(i)&&(this.lastRowIndexKnown=i),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e){var i=this,r=new Es;this.getBlocksInOrder().forEach(function(n){return n.forEachNode(e,r,i.rowCount)})},t.prototype.getBlocksInOrder=function(){var e=function(r,n){return r.getId()-n.getId()},i=Ke.getAllValuesInObject(this.blocks).sort(e);return i},t.prototype.destroyBlock=function(e){delete this.blocks[e.getId()],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();var e={type:T.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)}},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,i=[];
282this.getBlocksInOrder().forEach(function(r){var n=r.getId()*e.params.blockSize;n>=e.rowCount&&i.push(r)}),i.length>0&&i.forEach(function(r){return e.destroyBlock(r)})},t.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach(function(i){return e.removeBlockFromCache(i)}),this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,i){var r=this,n=[],s=-1,a=!1,l=new Es;Ke.missing(e)&&(a=!0);var u=!1;this.getBlocksInOrder().forEach(function(p){if(!u){if(a&&s+1!==p.getId()){u=!0;return}s=p.getId(),p.forEachNode(function(f){var v=f===e||f===i;(a||v)&&n.push(f),v&&(a=!a)},l,r.rowCount)}});var c=u||a;return c?[]:n},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,du([E("rowRenderer")],t.prototype,"rowRenderer",void 0),du([E("focusService")],t.prototype,"focusService",void 0),du([cI(0,Hi("loggerFactory"))],t.prototype,"setBeans",null),du([Xt],t.prototype,"destroyAllBlocks",null),t}(ee),pI=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),gn=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},fI=function(o){pI(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,i,r,n){return!1},t.prototype.init=function(){var e=this;this.gridOptionsService.isRowModelType("infinite")&&(this.rowHeight=this.gridOptionsService.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc(function(){return e.destroyCache()}),this.verifyProps())},t.prototype.verifyProps=function(){this.gridOptionsService.exists("initialGroupOrderComparator")&&Ke.warnOnce("initialGroupOrderComparator cannot be used with Infinite Row Model as sorting is done on the server side")},t.prototype.start=function(){this.setDatasource(this.gridOptionsService.get("datasource"))},t.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.addEventListeners=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,T.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this)),this.addManagedPropertyListener("datasource",function(){return e.setDatasource(e.gridOptionsService.get("datasource"))}),this.addManagedPropertyListener("cacheBlockSize",function(){return e.resetCache()}),this.addManagedPropertyListener("rowHeight",function(){e.rowHeight=e.gridOptionsService.getRowHeightAsNumber(),e.cacheParams.rowHeight=e.rowHeight,e.updateRowHeights()})},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){var e;this.cacheParams?e=this.isSortModelDifferent():e=!0,e&&this.reset()},t.prototype.isSortModelDifferent=function(){return!Ke.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return"infinite"},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()},t.prototype.isEmpty=function(){return!this.infiniteCache},t.prototype.isRowsToRender=function(){return!!this.infiniteCache},t.prototype.getNodesInRangeForSelection=function(e,i){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,i):[]},t.prototype.reset=function(){if(this.datasource){var e=this.gridOptionsService.getCallback("getRowId"),i=e!=null;i||this.selectionService.reset("rowDataChanged"),this.resetCache()}},t.prototype.createModelUpdatedEvent=function(){return{type:T.EVENT_MODEL_UPDATED,newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1}},t.prototype.resetCache=function(){this.destroyCache(),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,initialRowCount:this.gridOptionsService.get("infiniteInitialRowCount"),maxBlocksInCache:this.gridOptionsService.get("maxBlocksInCache"),rowHeight:this.gridOptionsService.getRowHeightAsNumber(),overflowSize:this.gridOptionsService.get("
282cacheOverflowSize"),blockSize:this.gridOptionsService.get("cacheBlockSize"),lastAccessedSequence:new Es},this.infiniteCache=this.createBean(new dI(this.cacheParams)),this.eventService.dispatchEventOnce({type:T.EVENT_ROW_COUNT_READY});var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.updateRowHeights=function(){var e=this;this.forEachNode(function(r){r.setRowHeight(e.rowHeight),r.setRowTop(e.rowHeight*r.rowIndex)});var i=this.createModelUpdatedEvent();this.eventService.dispatchEvent(i)},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){if(this.infiniteCache&&!(e>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(e)},t.prototype.getRowNode=function(e){var i;return this.forEachNode(function(r){r.id===e&&(i=r)}),i},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e)},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.getRowIndexAtPixel=function(e){if(this.rowHeight!==0){var i=Math.floor(e/this.rowHeight),r=this.getRowCount()-1;return i>r?r:i}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){var i=this.getRowNode(e.id);return!!i},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.isLastRowIndexKnown=function(){return this.infiniteCache?this.infiniteCache.isLastRowIndexKnown():!1},t.prototype.setRowCount=function(e,i){this.infiniteCache&&this.infiniteCache.setRowCount(e,i)},gn([E("filterManager")],t.prototype,"filterManager",void 0),gn([E("sortController")],t.prototype,"sortController",void 0),gn([E("selectionService")],t.prototype,"selectionService",void 0),gn([E("rowRenderer")],t.prototype,"rowRenderer",void 0),gn([E("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),gn([ie],t.prototype,"init",null),gn([Xt],t.prototype,"destroyDatasource",null),t=gn([fe("rowModel")],t),t}(ee),hI="31.1.1",vI={version:hI,moduleName:Oe.InfiniteRowModelModule,rowModel:"infinite",beans:[fI]},gI=function(){function o(){}return o.prototype.setBeans=function(t){this.beans=t},o.prototype.getFileName=function(t){var e=this.getDefaultFileExtension();return(t==null||!t.length)&&(t=this.getDefaultFileName()),t.indexOf(".")===-1?"".concat(t,".").concat(e):t},o.prototype.getData=function(t){var e=this.createSerializingSession(t);return this.beans.gridSerializer.serialize(e,t)},o.prototype.getDefaultFileName=function(){return"export.".concat(this.getDefaultFileExtension())},o}(),yI=function(){function o(t){this.groupColumns=[];var e=t.columnModel,i=t.valueService,r=t.gridOptionsService,n=t.valueFormatterService,s=t.valueParserService,a=t.processCellCallback,l=t.processHeaderCallback,u=t.processGroupHeaderCallback,c=t.processRowGroupCallback;this.columnModel=e,this.valueService=i,this.gridOptionsService=r,this.valueFormatterService=n,this.valueParserService=s,this.processCellCallback=a,this.processHeaderCallback=l,this.processGroupHeaderCallback=u,this.processRowGroupCallback=c}return o.prototype.prepare=function(t){this.groupColumns=t.filter(function(e){return!!e.getColDef().showRowGroup})},o.prototype.extractHeaderValue=function(t){var e=this.getHeaderName(this.processHeaderCallback,t);return e??""},o.prototype.extractRowCellValue=function(t,e,i,r,n){var s=this.gridOptionsService.get("groupHideOpenParents"),a=(!s||n.footer)&&this.shouldRenderGroupSummaryCell(n,t,e)?this.createValueForGroupNode(t,n):this.valueService.getValue(t,n),l=this.processCell({accumulatedRowIndex:i,rowNode:n,column:t,value:a,processCellCallback:this.processCellCallback,type:r});return l},o.prototype.shouldRenderGroupSummaryCell=function(t,e,i){var r,n=t&&t.group;if(!n)return!1;var s=this.groupColumns.indexOf(e);if(s!==-1){if(((r=t.groupData)===null||r===void 0?void 0:r[e.getId()])!=null||this.gridOptionsService.isRowModelType("serverSide")&&t.group)return!0;
282if(t.footer&&t.level===-1){var a=e.getColDef(),l=a==null||a.showRowGroup===!0;return l||a.showRowGroup===this.columnModel.getRowGroupColumns()[0].getId()}}var u=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotMode());return i===0&&u},o.prototype.getHeaderName=function(t,e){return t?t(this.gridOptionsService.addGridCommonParams({column:e})):this.columnModel.getDisplayNameForColumn(e,"csv",!0)},o.prototype.createValueForGroupNode=function(t,e){var i=this;if(this.processRowGroupCallback)return this.processRowGroupCallback(this.gridOptionsService.addGridCommonParams({column:t,node:e}));var r=this.gridOptionsService.get("treeData"),n=this.gridOptionsService.get("suppressGroupMaintainValueType"),s=function(c){var p,f;if(r||n)return c.key;var v=(p=c.groupData)===null||p===void 0?void 0:p[t.getId()];return!v||!c.rowGroupColumn||c.rowGroupColumn.getColDef().useValueFormatterForExport===!1?v:(f=i.valueFormatterService.formatValue(c.rowGroupColumn,c,v))!==null&&f!==void 0?f:v},a=e.footer,l=[s(e)];if(!this.gridOptionsService.isGroupMultiAutoColumn())for(;e.parent;)e=e.parent,l.push(s(e));var u=l.reverse().join(" -> ");return a?"Total ".concat(u):u},o.prototype.processCell=function(t){var e=this,i,r=t.accumulatedRowIndex,n=t.rowNode,s=t.column,a=t.value,l=t.processCellCallback,u=t.type;return l?{value:(i=l(this.gridOptionsService.addGridCommonParams({accumulatedRowIndex:r,column:s,node:n,value:a,type:u,parseValue:function(c){return e.valueParserService.parseValue(s,n,c,e.valueService.getValue(s,n))},formatValue:function(c){var p;return(p=e.valueFormatterService.formatValue(s,n,c))!==null&&p!==void 0?p:c}})))!==null&&i!==void 0?i:""}:s.getColDef().useValueFormatterForExport!==!1?{value:a??"",valueFormatted:this.valueFormatterService.formatValue(s,n,a)}:{value:a??""}},o}(),mI=function(){function o(){}return o.download=function(t,e){var i=document.defaultView||window;if(!i){console.warn("AG Grid: There is no `window` associated with the current `document`");return}var r=document.createElement("a"),n=i.URL.createObjectURL(e);r.setAttribute("href",n),r.setAttribute("download",t),r.style.display="none",document.body.appendChild(r),r.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:i})),document.body.removeChild(r),i.setTimeout(function(){i.URL.revokeObjectURL(n)},0)},o}(),CI=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Cy=`\r 283`,wI=function(o){CI(t,o);function t(e){var i=o.call(this,e)||this;i.isFirstLine=!0,i.result="";var r=e.suppressQuotes,n=e.columnSeparator;return i.suppressQuotes=r,i.columnSeparator=n,i}return t.prototype.addCustomContent=function(e){var i=this;e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,Cy),this.result+=e):e.forEach(function(r){i.beginNewLine(),r.forEach(function(n,s){s!==0&&(i.result+=i.columnSeparator),i.result+=i.putInQuotes(n.data.value||""),n.mergeAcross&&i.appendEmptyCells(n.mergeAcross)})}))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,i,r,n){r!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(i),this.appendEmptyCells(n)},t.prototype.appendEmptyCells=function(e){for(var i=1;i<=e;i++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,i){i!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,i,r){var n;i!=0&&(this.result+=this.columnSeparator);var s=this.extractRowCellValue(e,i,i,"csv",r);this.result+=this.putInQuotes((n=s.valueFormatted)!==null&&n!==void 0?n:s.value)},t.prototype.putInQuotes=function(e){if(this.suppressQuotes)return e;if(e==null)return'""';var i;typeof e=="string"?i=e:typeof e.toString=="function"?i=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),i="");var r=i.replace(/"/g,'""');return'"'+r+'"'},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+=Cy),this.isFirstLine=!1},t}
283(yI),SI=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),yn=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},EI=function(o){SI(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})},t.prototype.getMergedParams=function(e){var i=this.gridOptionsService.get("defaultCsvExportParams");return Object.assign({},i,e)},t.prototype.export=function(e){if(this.isExportSuppressed()){console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration.");return}var i=this.getMergedParams(e),r=this.getData(i),n=new Blob(["\uFEFF",r],{type:"text/plain"}),s=typeof i.fileName=="function"?i.fileName(this.gridOptionsService.getGridCommonParams()):i.fileName;mI.download(this.getFileName(s),n)},t.prototype.exportDataAsCsv=function(e){this.export(e)},t.prototype.getDataAsCsv=function(e,i){i===void 0&&(i=!1);var r=i?Object.assign({},e):this.getMergedParams(e);return this.getData(r)},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var i=this,r=i.columnModel,n=i.valueService,s=i.gridOptionsService,a=i.valueFormatterService,l=i.valueParserService,u=e,c=u.processCellCallback,p=u.processHeaderCallback,f=u.processGroupHeaderCallback,v=u.processRowGroupCallback,y=u.suppressQuotes,w=u.columnSeparator;return new wI({columnModel:r,valueService:n,gridOptionsService:s,valueFormatterService:a,valueParserService:l,processCellCallback:c||void 0,processHeaderCallback:p||void 0,processGroupHeaderCallback:f||void 0,processRowGroupCallback:v||void 0,suppressQuotes:y||!1,columnSeparator:w||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsService.get("suppressCsvExport")},yn([E("columnModel")],t.prototype,"columnModel",void 0),yn([E("valueService")],t.prototype,"valueService",void 0),yn([E("gridSerializer")],t.prototype,"gridSerializer",void 0),yn([E("gridOptionsService")],t.prototype,"gridOptionsService",void 0),yn([E("valueFormatterService")],t.prototype,"valueFormatterService",void 0),yn([E("valueParserService")],t.prototype,"valueParserService",void 0),yn([ie],t.prototype,"postConstruct",null),t=yn([fe("csvCreator")],t),t}(gI),_I=function(){var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),mn=function(o,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},wy;(function(o){o[o.HEADER_GROUPING=0]="HEADER_GROUPING",o[o.HEADER=1]="HEADER",o[o.BODY=2]="BODY"})(wy||(wy={}));var OI=function(o){_I(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.serialize=function(e,i){i===void 0&&(i={});var r=i.allColumns,n=i.columnKeys,s=i.skipRowGroups,a=this.getColumnsToExport(r,s,n),l=Ke.compose(this.prepareSession(a),this.prependContent(i),this.exportColumnGroups(i,a),this.exportHeaders(i,a),this.processPinnedTopRows(i,a),this.processRows(i,a),this.processPinnedBottomRows(i,a),this.appendContent(i));return l(e).parse()},t.prototype.processRow=function(e,i,r,n){var s=i.shouldRowBeSkipped||function(){return!1},a=this.gridOptionsService.get("groupRemoveSingleChildren"),l=this.gridOptionsService.get("groupRemoveLowestSingleChildren"),u=i.rowPositions!=null,c=u||!!i.onlySelected,p=this.gridOptionsService.get("groupHideOpenParents")&&!c,f=this.columnModel.isPivotMode()?n.leafGroup:!n.group,v=!!n.footer;i.skipRowGroups;var y=l&&n.leafGroup,w=n.allChildrenCount===1&&(a||y);if(!(!f&&!v&&(i.skipRowGroups||w||p)||i.onlySelected&&!n.isSelected()||i.skipPinnedTop&&n.rowPinned==="top"||i.skipPinnedBottom&&n.rowPinned==="bottom")){var b=n.level===-1;if(!(b&&!f&&!v)){var O=s(this.gridOptionsService.addGridCommonParams({node:n}));if(!O){var A=e.onNewBodyRow(n);if(r.forEach(function(L,x){A.onColumn(L,x,n)}),i.getCustomContentBelowRow){var P=i.getCustomContentBelowRow(this.gridOptionsService.addGridCommonParams({node:n}));P&&e.addCustomContent(P)}}}}},t.prototype.appendContent=function(e){return function(i){var r=e.appendContent;return r&&i.addCustomContent(r),i}},t.prototype.prependContent=function(e){return function(i){var r=e.prependContent;return r&&i.addCustomContent(r),i}},t.prototype.prepareSession=function(e){return function(i){return i.prepare(e),i}}
283,t.prototype.exportColumnGroups=function(e,i){var r=this;return function(n){if(!e.skipColumnGroupHeaders){var s=new hC,a=r.displayedGroupCreator.createDisplayedGroups(i,s,null);r.recursivelyAddHeaderGroups(a,n,e.processGroupHeaderCallback)}return n}},t.prototype.exportHeaders=function(e,i){return function(r){if(!e.skipColumnHeaders){var n=r.onNewHeaderRow();i.forEach(function(s,a){n.onColumn(s,a,void 0)})}return r}},t.prototype.processPinnedTopRows=function(e,i){var r=this;return function(n){var s=r.processRow.bind(r,n,e,i);return e.rowPositions?e.rowPositions.filter(function(a){return a.rowPinned==="top"}).sort(function(a,l){return a.rowIndex-l.rowIndex}).map(function(a){return r.pinnedRowModel.getPinnedTopRow(a.rowIndex)}).forEach(s):r.pinnedRowModel.forEachPinnedTopRow(s),n}},t.prototype.processRows=function(e,i){var r=this;return function(n){var s=r.rowModel,a=s.getType(),l=a==="clientSide",u=a==="serverSide",c=!l&&e.onlySelected,p=r.processRow.bind(r,n,e,i),f=e.exportedRows,v=f===void 0?"filteredAndSorted":f;if(e.rowPositions)e.rowPositions.filter(function(w){return w.rowPinned==null}).sort(function(w,b){return w.rowIndex-b.rowIndex}).map(function(w){return s.getRow(w.rowIndex)}).forEach(p);else if(r.columnModel.isPivotMode())l?s.forEachPivotNode(p,!0):u?s.forEachNodeAfterFilterAndSort(p,!0):s.forEachNode(p);else if(e.onlySelectedAllPages||c){var y=r.selectionService.getSelectedNodes();r.replicateSortedOrder(y),y.forEach(p)}
283else v==="all"?s.forEachNode(p):l||u?s.forEachNodeAfterFilterAndSort(p,!0):s.forEachNode(p);return n}},t.prototype.replicateSortedOrder=function(e){var i=this,r=this.sortController.getSortOptions(),n=function(s,a){var l,u,c,p;return s.rowIndex!=null&&a.rowIndex!=null?s.rowIndex-a.rowIndex:s.level===a.level?((l=s.parent)===null||l===void 0?void 0:l.id)===((u=a.parent)===null||u===void 0?void 0:u.id)?i.rowNodeSorter.compareRowNodes(r,{rowNode:s,currentPos:(c=s.rowIndex)!==null&&c!==void 0?c:-1},{rowNode:a,currentPos:(p=a.rowIndex)!==null&&p!==void 0?p:-1}):n(s.parent,a.parent):s.level>a.level?n(s.parent,a):n(s,a.parent)};e.sort(n)},t.prototype.processPinnedBottomRows=function(e,i){var r=this;return function(n){var s=r.processRow.bind(r,n,e,i);return e.rowPositions?e.rowPositions.filter(function(a){return a.rowPinned==="bottom"}).sort(function(a,l){return a.rowIndex-l.rowIndex}).map(function(a){return r.pinnedRowModel.getPinnedBottomRow(a.rowIndex)}).forEach(s):r.pinnedRowModel.forEachPinnedBottomRow(s),n}},t.prototype.getColumnsToExport=function(e,i,r){e===void 0&&(e=!1),i===void 0&&(i=!1);var n=this.columnModel.isPivotMode();if(r&&r.length)return this.columnModel.getGridColumns(r);var s=this.gridOptionsService.get("treeData"),a=[];return e&&!n?a=this.columnModel.getAllGridColumns():a=this.columnModel.getAllDisplayedColumns(),i&&!s&&(a=a.filter(function(l){return l.getColId()!==Cs})),a},t.prototype.recursivelyAddHeaderGroups=function(e,i,r){var n=[];e.forEach(function(s){var a=s;
283a.getChildren&&a.getChildren().forEach(function(l){return n.push(l)})}),e.length>0&&e[0]instanceof At&&this.doAddHeaderHeader(i,e,r),n&&n.length>0&&this.recursivelyAddHeaderGroups(n,i,r)},t.prototype.doAddHeaderHeader=function(e,i,r){var n=this,s=e.onNewHeaderGroupingRow(),a=0;i.forEach(function(l){var u=l,c;r?c=r(n.gridOptionsService.addGridCommonParams({columnGroup:u})):c=n.columnModel.getDisplayNameForColumnGroup(u,"header");var p=u.getLeafColumns().reduce(function(f,v,y,w){var b=Ke.last(f),O=v.getColumnGroupShow()==="open";return O?(!b||b[1]!=null)&&(b=[y],f.push(b)):b&&b[1]==null&&(b[1]=y-1),y===w.length-1&&b&&b[1]==null&&(b[1]=y),f},[]);s.onColumn(u,c||"",a++,u.getLeafColumns().length-1,p)})},mn([E("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),mn([E("columnModel")],t.prototype,"columnModel",void 0),mn([E("rowModel")],t.prototype,"rowModel",void 0),mn([E("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),mn([E("selectionService")],t.prototype,"selectionService",void 0),mn([E("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),mn([E("sortController")],t.prototype,"sortController",void 0),t=mn([fe("gridSerializer")],t),t}(ee),bI="31.1.1",TI={version:bI,moduleName:Oe.CsvExportModule,beans:[EI,OI]};Ke.utf8_encode;var RI=[aI,vI,TI];ct.registerModules(RI);function Sy(o,t){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),e.push.apply(e,i)}return e}function _e(o){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Sy(Object(e),!0).forEach(function(i){Gt(o,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(e)):Sy(Object(e)).forEac
283h(function(i){Object.defineProperty(o,i,Object.getOwnPropertyDescriptor(e,i))})}return o}function lc(o){"@babel/helpers - typeof";return lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lc(o)}function AI(o,t){if(!(o instanceof t))throw new TypeError("Cannot call a class as a function")}function Ey(o,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(o,i.key,i)}}function PI(o,t,e){return t&&Ey(o.prototype,t),e&&Ey(o,e),Object.defineProperty(o,"prototype",{writable:!1}),o}function Gt(o,t,e){return t in o?Object.defineProperty(o,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):o[t]=e,o}function Dh(o,t){return LI(o)||MI(o,t)||Mw(o,t)||xI()}function cl(o){return DI(o)||FI(o)||Mw(o)||II()}function DI(o){if(Array.isArray(o))return vf(o)}function LI(o){if(Array.isArray(o))return o}function FI(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function MI(o,t){var e=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(e!=null){var i=[],r=!0,n=!1,s,a;try{for(e=e.call(o);!(r=(s=e.next()).done)&&(i.push(s.value),!(t&&i.length===t));r=!0);}catch(l){n=!0,a=l}finally{try{!r&&e.return!=null&&e.return()}finally{if(n)throw a}}return i}}function Mw(o,t){if(o){if(typeof o=="string")return vf(o,t);var e=Object.prototype.toString.call(o).slice(8,-1);if(e==="Object"&&o.constructor&&(e=o.constructor.name),e==="Map"||e==="Set")return Array.from(o);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return vf(o,t)}}function vf(o,t){(t==null||t>o.length)&&(t=o.length);for(var e=0,i=new Array(t);e<t;e++)i[e]=o[e];return i}function II(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 284In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 285In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _y=function(){},Lh={},Iw={},xw=null,Nw={mark:_y,measure:_y};try{typeof window<"u"&&(Lh=window),typeof document<"u"&&(Iw=document),typeof MutationObserver<"u"&&(xw=MutationObserver),typeof performance<"u"&&(Nw=performance)}catch{}var NI=Lh.navigator||{},Oy=NI.userAgent,by=Oy===void 0?"":Oy,An=Lh,mt=Iw,Ty=xw,pu=Nw;An.document;var rn=!!mt.documentElement&&!!mt.head&&typeof mt.addEventListener=="function"&&typeof mt.createElement=="function",Gw=~by.indexOf("MSIE")||~by.indexOf("Trident/"),fu,hu,vu,gu,yu,Xr="___FONT_AWESOME___",gf=16,Hw="fa",Vw="svg-inline--fa",So="data-fa-i2svg",yf="data-fa-pseudo-element",GI="data-fa-pseudo-element-pending",Fh="data-prefix",Mh="data-icon",Ry="fontawesome-i2svg",HI="async",VI=["HTML","HEAD","STYLE","SCRIPT"],kw=function(){try{return!0}catch{return!1}}(),yt="classic",Ot="sharp",Ih=[yt,Ot];function dl(o){return new Proxy(o,{get:function(e,i){return i in e?e[i]:e[yt]}})}var Ka=dl((fu={},Gt(fu,yt,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),Gt(fu,Ot,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),fu)),Ya=dl((hu={},Gt(hu,yt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),Gt(hu,Ot,{solid:"fass",regular:"fasr",light:"fasl"}),hu)),qa=dl((vu={},Gt(vu,yt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),Gt(vu,Ot,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),vu)),kI=dl((gu={},Gt(gu,yt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),Gt(gu,Ot,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),gu)),BI=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,Bw="fa-layers-text",jI=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,WI=dl((yu={}
285,Gt(yu,yt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),Gt(yu,Ot,{900:"fass",400:"fasr",300:"fasl"}),yu)),jw=[1,2,3,4,5,6,7,8,9,10],UI=jw.concat([11,12,13,14,15,16,17,18,19,20]),zI=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],so={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Xa=new Set;Object.keys(Ya[yt]).map(Xa.add.bind(Xa));Object.keys(Ya[Ot]).map(Xa.add.bind(Xa));var $I=[].concat(Ih,cl(Xa),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",so.GROUP,so.SWAP_OPACITY,so.PRIMARY,so.SECONDARY]).concat(jw.map(function(o){return"".concat(o,"x")})).concat(UI.map(function(o){return"w-".concat(o)})),Ia=An.FontAwesomeConfig||{};function KI(o){var t=mt.querySelector("script["+o+"]");if(t)return t.getAttribute(o)}function YI(o){return o===""?!0:o==="false"?!1:o==="true"?!0:o}if(mt&&typeof mt.querySelector=="function"){var qI=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];qI.forEach(function(o){var t=Dh(o,2),e=t[0],i=t[1],r=YI(KI(e));r!=null&&(Ia[i]=r)})}var Ww={styleDefault:"solid",familyDefault:"classic",cssPrefix:Hw,replacementClass:Vw,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ia.familyPrefix&&(Ia.cssPrefix=Ia.familyPrefix);var bs=_e(_e({},Ww),Ia);bs.autoReplaceSvg||(bs.observeMutations=!1);var Re={};Object.keys(Ww).forEach(function(o){Object.defineProperty(Re,o,{enumerable:!0,set:function(e){bs[o]=e,xa.forEach(function(i){return i(Re)})},get:function(){return bs[o]}})});Object.defineProperty(Re,"familyPrefix",{enumerable:!0,set:function(t){bs.cssPrefix=t,xa.forEach(function(e){return e(Re)})},get:function(){return bs.cssPrefix}});An.FontAwesomeConfig=Re;var xa=[];function XI(o){return xa.push(o),function(){xa.splice(xa.indexOf(o),1)}}var Cn=gf,Tr={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function QI(o){if(!(!o||!rn)){var t=mt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=o;for(var e=mt.head.childNodes,i=null,r=e.length-1;r>-1;r--){var n=e[r],s=(n.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(i=n)}return mt.head.insertBefore(t,i),o}}var JI="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Qa(){for(var o=12,t="";o-- >0;)t+=JI[Math.random()*62|0];return t}function Gs(o){for(var t=[],e=(o||[]).length>>>0;e--;)t[e]=o[e];return t}function xh(o){return o.classList?Gs(o.classList):(o.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Uw(o){return"".concat(o).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function ZI(o){return Object.keys(o||{}).reduce(function(t,e){return t+"".concat(e,'="').concat(Uw(o[e]),'" ')},"").trim()}function Ic(o){return Object.keys(o||{}).reduce(function(t,e){return t+"".concat(e,": ").concat(o[e].trim(),";")},"")}function Nh(o){return o.size!==Tr.size||o.x!==Tr.x||o.y!==Tr.y||o.rotate!==Tr.rotate||o.flipX||o.flipY}function ex(o){var t=o.transform,e=o.containerWidth,i=o.iconWidth,r={transform:"translate(".concat(e/2," 256)")},n="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(n," ").concat(s," ").concat(a)},u={transform:"translate(".concat(i/2*-1," -256)")};return{outer:r,inner:l,path:u}}function tx(o){var t=o.transform,e=o.width,i=e===void 0?gf:e,r=o.height,n=r===void 0?gf:r,s=o.startCentered,a=s===void 0?!1:s,l="";return a&&Gw?l+="translate(".concat(t.x/Cn-i/2,"em, ").concat(t.y/Cn-n/2,"em) "):a?l+="translate(calc(-50% + ".concat(t.x/Cn,"em), calc(-50% + ").concat(t.y/Cn,"em)) "):l+="translate(".concat(t.x/Cn,"em, ").concat(t.y/Cn,"em) "),l+="scale(".concat(t.size/Cn*(t.flipX?-1:1),", ").concat(t.size/Cn*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var ix=`:root, :host { 286 --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; 287 --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; 288 --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; 289 --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; 290 --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; 291 --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; 292 --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; 293 --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; 294 --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; 295} 296 297svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { 298 overflow: visible; 299 box-sizing: content-box; 300} 301 302.svg-inline--fa { 303 display: var(--fa-display, inline-block); 304 height: 1em; 305 overflow: visible; 306 vertical-align: -0.125em; 307} 308.svg-inline--fa.fa-2xs { 309 vertical-align: 0.1em; 310} 311.svg-inline--fa.fa-xs { 312 vertical-align: 0em; 313} 314.svg-inline--fa.fa-sm { 315 vertical-align: -0.0714285705em; 316} 317.svg-inline--fa.fa-lg { 318 vertical-align: -0.2em; 319} 320.svg-inline--fa.fa-xl { 321 vertical-align: -0.25em; 322} 323.svg-inline--fa.fa-2xl { 324 vertical-align: -0.3125em; 325} 326.svg-inline--fa.fa-pull-left { 327 margin-right: var(--fa-pull-margin, 0.3em); 328 width: auto; 329} 330.svg-inline--fa.fa-pull-right { 331 margin-left: var(--fa-pull-margin, 0.3em); 332 width: auto; 333} 334.svg-inline--fa.fa-li { 335 width: var(--fa-li-width, 2em); 336 top: 0.25em; 337} 338.svg-inline--fa.fa-fw { 339 width: var(--fa-fw-width, 1.25em); 340} 341 342.fa-layers svg.svg-inline--fa { 343 bottom: 0; 344 left: 0; 345 margin: auto; 346 position: absolute; 347 right: 0; 348 top: 0; 349} 350 351.fa-layers-counter, .fa-layers-text { 352 display: inline-block; 353 position: absolute; 354 text-align: center; 355} 356 357.fa-layers { 358 display: inline-block; 359 height: 1em; 360 position: relative; 361 text-align: center; 362 vertical-align: -0.125em; 363 width: 1em; 364} 365.fa-layers svg.svg-inline--fa { 366 -webkit-transform-origin: center center; 367 transform-origin: center center; 368} 369 370.fa-layers-text { 371 left: 50%; 372 top: 50%; 373 -webkit-transform: translate(-50%, -50%); 374 transform: translate(-50%, -50%); 375 -webkit-transform-origin: center center; 376 transform-origin: center center; 377} 378 379.fa-layers-counter { 380 background-color: var(--fa-counter-background-color, #ff253a); 381 border-radius: var(--fa-counter-border-radius, 1em); 382 box-sizing: border-box; 383 color: var(--fa-inverse, #fff); 384 line-height: var(--fa-counter-line-height, 1); 385 max-width: var(--fa-counter-max-width, 5em); 386 min-width: var(--fa-counter-min-width, 1.5em); 387 overflow: hidden; 388 padding: var(--fa-counter-padding, 0.25em 0.5em); 389 right: var(--fa-right, 0); 390 text-overflow: ellipsis; 391 top: var(--fa-top, 0); 392 -webkit-transform: scale(var(--fa-counter-scale, 0.25)); 393 transform: scale(var(--fa-counter-scale, 0.25)); 394 -webkit-transform-origin: top right; 395 transform-origin: top right; 396} 397 398.fa-layers-bottom-right { 399 bottom: var(--fa-bottom, 0); 400 right: var(--fa-right, 0); 401 top: auto; 402 -webkit-transform: scale(var(--fa-layers-scale, 0.25)); 403 transform: scale(var(--fa-layers-scale, 0.25)); 404 -webkit-transform-origin: bottom right; 405 transform-origin: bottom right; 406} 407 408.fa-layers-bottom-left { 409 bottom: var(--fa-bottom, 0); 410 left: var(--fa-left, 0); 411 right: auto; 412 top: auto; 413 -webkit-transform: scale(var(--fa-layers-scale, 0.25)); 414 transform: scale(var(--fa-layers-scale, 0.25)); 415 -webkit-transform-origin: bottom left; 416 transform-origin: bottom left; 417} 418 419.fa-layers-top-right { 420 top: var(--fa-top, 0); 421 right: var(--fa-right, 0); 422 -webkit-transform: scale(var(--fa-layers-scale, 0.25)); 423 transform: scale(var(--fa-layers-scale, 0.25)); 424 -webkit-transform-origin: top right; 425 transform-origin: top right; 426} 427 428.fa-layers-top-left { 429 left: var(--fa-left, 0); 430 right: auto; 431 top: var(--fa-top, 0); 432 -webkit-transform: scale(var(--fa-layers-scale, 0.25)); 433 transform: scale(var(--fa-layers-scale, 0.25)); 434 -webkit-transform-origin: top left; 435 transform-origin: top left; 436} 437 438.fa-1x { 439 font-size: 1em; 440} 441 442.fa-2x { 443 font-size: 2em; 444} 445 446.fa-3x { 447 font-size: 3em; 448} 449 450.fa-4x { 451 font-size: 4em; 452} 453 454.fa-5x { 455 font-size: 5em; 456} 457 458.fa-6x { 459 font-size: 6em; 460} 461 462.fa-7x { 463 font-size: 7em; 464} 465 466.fa-8x { 467 font-size: 8em; 468} 469 470.fa-9x { 471 font-size: 9em; 472} 473 474.fa-10x { 475 font-size: 10em; 476} 477 478.fa-2xs { 479 font-size: 0.625em; 480 line-height: 0.1em; 481 vertical-align: 0.225em; 482} 483 484.fa-xs { 485 font-size: 0.75em; 486 line-height: 0.0833333337em; 487 vertical-align: 0.125em; 488} 489 490.fa-sm { 491 font-size: 0.875em; 492 line-height: 0.0714285718em; 493 vertical-align: 0.0535714295em; 494} 495 496.fa-lg { 497 font-size: 1.25em; 498 line-height: 0.05em; 499 vertical-align: -0.075em; 500} 501 502.fa-xl { 503 font-size: 1.5em; 504 line-height: 0.0416666682em; 505 vertical-align: -0.125em; 506} 507 508.fa-2xl { 509 font-size: 2em; 510 line-height: 0.03125em; 511 vertical-align: -0.1875em; 512} 513 514.fa-fw { 515 text-align: center; 516 width: 1.25em; 517} 518 519.fa-ul { 520 list-style-type: none; 521 margin-left: var(--fa-li-margin, 2.5em); 522 padding-left: 0; 523} 524.fa-ul > li { 525 position: relative; 526} 527 528.fa-li { 529 left: calc(var(--fa-li-width, 2em) * -1); 530 position: absolute; 531 text-align: center; 532 width: var(--fa-li-width, 2em); 533 line-height: inherit; 534} 535 536.fa-border { 537 border-color: var(--fa-border-color, #eee); 538 border-radius: var(--fa-border-radius, 0.1em); 539 border-style: var(--fa-border-style, solid); 540 border-width: var(--fa-border-width, 0.08em);
541 padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); 542} 543 544.fa-pull-left { 545 float: left; 546 margin-right: var(--fa-pull-margin, 0.3em); 547} 548 549.fa-pull-right { 550 float: right; 551 margin-left: var(--fa-pull-margin, 0.3em); 552} 553 554.fa-beat { 555 -webkit-animation-name: fa-beat; 556 animation-name: fa-beat; 557 -webkit-animation-delay: var(--fa-animation-delay, 0s); 558 animation-delay: var(--fa-animation-delay, 0s); 559 -webkit-animation-direction: var(--fa-animation-direction, normal); 560 animation-direction: var(--fa-animation-direction, normal); 561 -webkit-animation-duration: var(--fa-animation-duration, 1s); 562 animation-duration: var(--fa-animation-duration, 1s); 563 -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); 564 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 565 -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); 566 animation-timing-function: var(--fa-animation-timing, ease-in-out); 567} 568 569.fa-bounce { 570 -webkit-animation-name: fa-bounce; 571 animation-name: fa-bounce; 572 -webkit-animation-delay: var(--fa-animation-delay, 0s); 573 animation-delay: var(--fa-animation-delay, 0s); 574 -webkit-animation-direction: var(--fa-animation-direction, normal); 575 animation-direction: var(--fa-animation-direction, normal); 576 -webkit-animation-duration: var(--fa-animation-duration, 1s); 577 animation-duration: var(--fa-animation-duration, 1s); 578 -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); 579 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 580 -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); 581 animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); 582} 583 584.fa-fade { 585 -webkit-animation-name: fa-fade; 586 animation-name: fa-fade; 587 -webkit-animation-delay: var(--fa-animation-delay, 0s); 588 animation-delay: var(--fa-animation-delay, 0s); 589 -webkit-animation-direction: var(--fa-animation-direction, normal); 590 animation-direction: var(--fa-animation-direction, normal); 591 -webkit-animation-duration: var(--fa-animation-duration, 1s); 592 animation-duration: var(--fa-animation-duration, 1s); 593 -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); 594 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 595 -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); 596 animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); 597} 598 599.fa-beat-fade { 600 -webkit-animation-name: fa-beat-fade; 601 animation-name: fa-beat-fade; 602 -webkit-animation-delay: var(--fa-animation-delay, 0s); 603 animation-delay: var(--fa-animation-delay, 0s); 604 -webkit-animation-direction: var(--fa-animation-direction, normal); 605 animation-direction: var(--fa-animation-direction, normal); 606 -webkit-animation-duration: var(--fa-animation-duration, 1s); 607 animation-duration: var(--fa-animation-duration, 1s); 608 -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); 609 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 610 -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); 611 animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); 612} 613 614.fa-flip { 615 -webkit-animation-name: fa-flip; 616 animation-name: fa-flip; 617 -webkit-animation-delay: var(--fa-animation-delay, 0s); 618 animation-delay: var(--fa-animation-delay, 0s); 619 -webkit-animation-direction: var(--fa-animation-direction, normal); 620 animation-direction: var(--fa-animation-direction, normal); 621 -webkit-animation-duration: var(--fa-animation-duration, 1s); 622 animation-duration: var(--fa-animation-duration, 1s); 623 -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); 624 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 625 -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); 626 animation-timing-function: var(--fa-animation-timing, ease-in-out); 627} 628 629.fa-shake { 630 -webkit-animation-name: fa-shake; 631 animation-name: fa-shake; 632 -webkit-animation-delay: var(--fa-animation-delay, 0s); 633 animation-delay: var(--fa-animation-delay, 0s); 634 -webkit-animation-direction: var(--fa-animation-direction, normal); 635 animation-direction: var(--fa-animation-direction, normal); 636 -webkit-animation-duration: var(--fa-animation-duration, 1s); 637 animation-duration: var(--fa-animation-duration, 1s); 638 -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); 639 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 640 -webkit-animation-timing-function: var(--fa-animation-timing, linear); 641 animation-timing-function: var(--fa-animation-timing, linear); 642} 643 644.fa-spin { 645 -webkit-animation-name: fa-spin; 646 animation-name: fa-spin; 647 -webkit-animation-delay: var(--fa-animation-delay, 0s); 648 animation-delay: var(--fa-animation-delay, 0s); 649 -webkit-animation-direction: var(--fa-animation-direction, normal); 650 animation-direction: var(--fa-animation-direction, normal); 651 -webkit-animation-duration: var(--fa-animation-duration, 2s); 652 animation-duration: var(--fa-animation-duration, 2s); 653 -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); 654 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 655 -webkit-animation-timing-function: var(--fa-animation-timing, linear); 656 animation-timing-function: var(--fa-animation-timing, linear); 657} 658 659.fa-spin-reverse { 660 --fa-animation-direction: reverse; 661} 662 663.fa-pulse, 664.fa-spin-pulse { 665 -webkit-animation-name: fa-spin; 666 animation-name: fa-spin; 667 -webkit-animation-direction: var(--fa-animation-direction, normal); 668 animation-direction: var(--fa-animation-direction, normal); 669 -webkit-animation-duration: var(--fa-animation-duration, 1s); 670 animation-duration: var(--fa-animation-duration, 1s); 671 -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); 672 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 673 -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); 674 animation-timing-function: var(--fa-animation-timing, steps(8)); 675} 676 677@media (prefers-reduced-motion: reduce) { 678 .fa-beat, 679.fa-bounce, 680.fa-fade, 681.fa-beat-fade, 682.fa-flip, 683.fa-pulse, 684.fa-shake, 685.fa-spin, 686.fa-spin-pulse { 687 -webkit-animation-delay: -1ms; 688 animation-delay: -1ms; 689 -webkit-animation-duration: 1ms; 690 animation-duration: 1ms; 691 -webkit-animation-iteration-count: 1; 692 animation-iteration-count: 1; 693 -webkit-transition-delay: 0s; 694 transition-delay: 0s; 695 -webkit-transition-duration: 0s; 696 transition-duration: 0s; 697 } 698} 699@-webkit-keyframes fa-beat { 700 0%, 90% { 701 -webkit-transform: scale(1); 702 transform: scale(1); 703 } 704 45% { 705 -webkit-transform: scale(var(--fa-beat-scale, 1.25)); 706 transform: scale(var(--fa-beat-scale, 1.25)); 707 } 708} 709@keyframes fa-beat { 710 0%, 90% { 711 -webkit-transform: scale(1); 712 transform: scale(1); 713 } 714 45% { 715 -webkit-transform: scale(var(--fa-beat-scale, 1.25)); 716 transform: scale(var(--fa-beat-scale, 1.25)); 717 } 718} 719@-webkit-keyframes fa-bounce { 720 0% { 721 -webkit-transform: scale(1, 1) translateY(0); 722 transform: scale(1, 1) translateY(0); 723 } 724 10% { 725 -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); 726 transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); 727 } 728 30% { 729 -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); 730 transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); 731 } 732 50% { 733 -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); 734 transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); 735 } 736 57% { 737 -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); 738 transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); 739 } 740 64% { 741 -webkit-transform: scale(1, 1) translateY(0); 742 transform: scale(1, 1) translateY(0); 743 } 744 100% { 745 -webkit-transform: scale(1, 1) translateY(0); 746 transform: scale(1, 1) translateY(0); 747 } 748} 749@keyframes fa-bounce { 750 0% { 751 -webkit-transform: scale(1, 1) translateY(0); 752 transform: scale(1, 1) translateY(0); 753 } 754 10% { 755 -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); 756 transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); 757 } 758 30% { 759 -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); 760 transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); 761 } 762 50% { 763 -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); 764 transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); 765 } 766 57% { 767 -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); 768 transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); 769 } 770 64% { 771 -webkit-transform: scale(1, 1) translateY(0); 772 transform: scale(1, 1) translateY(0); 773 } 774 100% { 775 -webkit-transform: scale(1, 1) translateY(0); 776 transform: scale(1, 1) translateY(0); 777 } 778} 779@-webkit-keyframes fa-fade { 780 50% { 781 opacity: var(--fa-fade-opacity, 0.4); 782 } 783} 784@keyframes fa-fade { 785 50% { 786 opacity: var(--fa-fade-opacity, 0.4); 787 } 788} 789@-webkit-keyframes fa-beat-fade { 790 0%, 100% { 791 opacity: var(--fa-beat-fade-opacity, 0.4); 792 -webkit-transform: scale(1); 793 transform: scale(1); 794 } 795 50% { 796 opacity: 1; 797 -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); 798 transform: scale(var(--fa-beat-fade-scale, 1.125)); 799 } 800} 801@keyframes fa-beat-fade { 802 0%, 100% { 803 opacity: var(--fa-beat-fade-opacity, 0.4); 804 -webkit-transform: scale(1); 805 transform: scale(1); 806 } 807 50% { 808 opacity: 1; 809 -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); 810 transform: scale(var(--fa-beat-fade-scale, 1.125)); 811 } 812} 813@-webkit-keyframes fa-flip { 814 50% { 815 -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); 816 transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); 817 } 818} 819@keyframes fa-flip { 820 50% { 821 -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); 822 transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); 823 } 824} 825@-webkit-keyframes fa-shake { 826 0% { 827 -webkit-transform: rotate(-15deg); 828 transform: rotate(-15deg); 829 } 830 4% { 831 -webkit-transform: rotate(15deg); 832 transform: rotate(15deg); 833 } 834 8%, 24% { 835 -webkit-transform: rotate(-18deg); 836 transform: rotate(-18deg); 837 } 838 12%, 28% { 839 -webkit-transform: rotate(18deg); 840 transform: rotate(18deg); 841 } 842 16% { 843 -webkit-transform: rotate(-22deg); 844 transform: rotate(-22deg); 845 } 846 20% { 847 -webkit-transform: rotate(22deg); 848 transform: rotate(22deg); 849 } 850 32% { 851 -webkit-transform: rotate(-12deg); 852 transform: rotate(-12deg); 853 } 854 36% { 855 -webkit-transform: rotate(12deg); 856 transform: rotate(12deg); 857 } 858 40%, 100% { 859 -webkit-transform: rotate(0deg); 860 transform: rotate(0deg); 861 } 862} 863@keyframes fa-shake { 864 0% { 865 -webkit-transform: rotate(-15deg); 866 transform: rotate(-15deg); 867 } 868 4% { 869 -webkit-transform: rotate(15deg); 870 transform: rotate(15deg); 871 } 872 8%, 24% { 873 -webkit-transform: rotate(-18deg); 874 transform: rotate(-18deg); 875 } 876 12%, 28% { 877 -webkit-transform: rotate(18deg); 878 transform: rotate(18deg); 879 } 880 16% { 881 -webkit-transform: rotate(-22deg); 882 transform: rotate(-22deg); 883 } 884 20% { 885 -webkit-transform: rotate(22deg); 886 transform: rotate(22deg); 887 } 888 32% { 889 -webkit-transform: rotate(-12deg); 890 transform: rotate(-12deg); 891 } 892 36% { 893 -webkit-transform: rotate(12deg); 894 transform: rotate(12deg); 895 } 896 40%, 100% { 897 -webkit-transform: rotate(0deg); 898 transform: rotate(0deg); 899 } 900} 901@-webkit-keyframes fa-spin { 902 0% { 903 -webkit-transform: rotate(0deg); 904 transform: rotate(0deg); 905 } 906 100% { 907 -webkit-transform: rotate(360deg); 908 transform: rotate(360deg); 909 } 910} 911@keyframes fa-spin { 912 0% { 913 -webkit-transform: rotate(0deg); 914 transform: rotate(0deg); 915 } 916 100% { 917 -webkit-transform: rotate(360deg); 918 transform: rotate(360deg); 919 } 920} 921.fa-rotate-90 { 922 -webkit-transform: rotate(90deg); 923 transform: rotate(90deg); 924} 925 926.fa-rotate-180 { 927 -webkit-transform: rotate(180deg); 928 transform: rotate(180deg); 929} 930 931.fa-rotate-270 { 932 -webkit-transform: rotate(270deg); 933 transform: rotate(270deg); 934} 935 936.fa-flip-horizontal { 937 -webkit-transform: scale(-1, 1); 938 transform: scale(-1, 1); 939} 940
941.fa-flip-vertical { 942 -webkit-transform: scale(1, -1); 943 transform: scale(1, -1); 944} 945 946.fa-flip-both, 947.fa-flip-horizontal.fa-flip-vertical { 948 -webkit-transform: scale(-1, -1); 949 transform: scale(-1, -1); 950} 951 952.fa-rotate-by { 953 -webkit-transform: rotate(var(--fa-rotate-angle, none)); 954 transform: rotate(var(--fa-rotate-angle, none)); 955} 956 957.fa-stack { 958 display: inline-block; 959 vertical-align: middle; 960 height: 2em; 961 position: relative; 962 width: 2.5em; 963} 964 965.fa-stack-1x, 966.fa-stack-2x { 967 bottom: 0; 968 left: 0; 969 margin: auto; 970 position: absolute; 971 right: 0; 972 top: 0; 973 z-index: var(--fa-stack-z-index, auto); 974} 975 976.svg-inline--fa.fa-stack-1x { 977 height: 1em; 978 width: 1.25em; 979} 980.svg-inline--fa.fa-stack-2x { 981 height: 2em; 982 width: 2.5em; 983} 984 985.fa-inverse { 986 color: var(--fa-inverse, #fff); 987} 988 989.sr-only, 990.fa-sr-only { 991 position: absolute; 992 width: 1px; 993 height: 1px; 994 padding: 0; 995 margin: -1px; 996 overflow: hidden; 997 clip: rect(0, 0, 0, 0); 998 white-space: nowrap; 999 border-width: 0; 1000} 1001 1002.sr-only-focusable:not(:focus), 1003.fa-sr-only-focusable:not(:focus) { 1004 position: absolute; 1005 width: 1px; 1006 height: 1px; 1007 padding: 0; 1008 margin: -1px; 1009 overflow: hidden; 1010 clip: rect(0, 0, 0, 0); 1011 white-space: nowrap; 1012 border-width: 0; 1013} 1014 1015.svg-inline--fa .fa-primary { 1016 fill: var(--fa-primary-color, currentColor); 1017 opacity: var(--fa-primary-opacity, 1); 1018} 1019 1020.svg-inline--fa .fa-secondary { 1021 fill: var(--fa-secondary-color, currentColor); 1022 opacity: var(--fa-secondary-opacity, 0.4); 1023} 1024 1025.svg-inline--fa.fa-swap-opacity .fa-primary { 1026 opacity: var(--fa-secondary-opacity, 0.4); 1027} 1028 1029.svg-inline--fa.fa-swap-opacity .fa-secondary { 1030 opacity: var(--fa-primary-opacity, 1); 1031} 1032 1033.svg-inline--fa mask .fa-primary, 1034.svg-inline--fa mask .fa-secondary { 1035 fill: black; 1036} 1037 1038.fad.fa-inverse, 1039.fa-duotone.fa-inverse { 1040 color: var(--fa-inverse, #fff); 1041}`;function zw(){var o=Hw,t=Vw,e=Re.cssPrefix,i=Re.replacementClass,r=ix;if(e!==o||i!==t){var n=new RegExp("\\.".concat(o,"\\-"),"g"),s=new RegExp("\\--".concat(o,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");r=r.replace(n,".".concat(e,"-")).replace(s,"--".concat(e,"-")).replace(a,".".concat(i))}return r}var Ay=!1;function Tp(){Re.autoAddCss&&!Ay&&(QI(zw()),Ay=!0)}var rx={mixout:function(){return{dom:{css:zw,insertCss:Tp}}},hooks:function(){return{beforeDOMElementCreation:function(){Tp()},beforeI2svg:function(){Tp()}}}},Qr=An||{};Qr[Xr]||(Qr[Xr]={});Qr[Xr].styles||(Qr[Xr].styles={});Qr[Xr].hooks||(Qr[Xr].hooks={});Qr[Xr].shims||(Qr[Xr].shims=[]);var tr=Qr[Xr],$w=[],nx=function o(){mt.removeEventListener("DOMContentLoaded",o),uc=1,$w.map(function(t){return t()})},uc=!1;rn&&(uc=(mt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(mt.readyState),uc||mt.addEventListener("DOMContentLoaded",nx));function ox(o){rn&&(uc?setTimeout(o,0):$w.push(o))}function pl(o){var t=o.tag,e=o.attributes,i=e===void 0?{}:e,r=o.children,n=r===void 0?[]:r;return typeof o=="string"?Uw(o):"<".concat(t," ").concat(ZI(i),">").concat(n.map(pl).join(""),"</").concat(t,">")}function Py(o,t,e){if(o&&o[t]&&o[t][e])return{prefix:t,iconName:e,icon:o[t][e]}}var sx=function(t,e){return function(i,r,n,s){return t.call(e,i,r,n,s)}},Rp=function(t,e,i,r){var n=Object.keys(t),s=n.length,a=r!==void 0?sx(e,r):e,l,u,c;for(i===void 0?(l=1,c=t[n[0]]):(l=0,c=i);l<s;l++)u=n[l],c=a(c,t[u],u,t);return c};function ax(o){for(var t=[],e=0,i=o.length;e<i;
1041){var r=o.charCodeAt(e++);if(r>=55296&&r<=56319&&e<i){var n=o.charCodeAt(e++);(n&64512)==56320?t.push(((r&1023)<<10)+(n&1023)+65536):(t.push(r),e--)}else t.push(r)}return t}function mf(o){var t=ax(o);return t.length===1?t[0].toString(16):null}function lx(o,t){var e=o.length,i=o.charCodeAt(t),r;return i>=55296&&i<=56319&&e>t+1&&(r=o.charCodeAt(t+1),r>=56320&&r<=57343)?(i-55296)*1024+r-56320+65536:i}function Dy(o){return Object.keys(o).reduce(function(t,e){var i=o[e],r=!!i.icon;return r?t[i.iconName]=i.icon:t[e]=i,t},{})}function Cf(o,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=e.skipHooks,r=i===void 0?!1:i,n=Dy(t);typeof tr.hooks.addPack=="function"&&!r?tr.hooks.addPack(o,Dy(t)):tr.styles[o]=_e(_e({},tr.styles[o]||{}),n),o==="fas"&&Cf("fa",t)}var mu,Cu,wu,ls=tr.styles,ux=tr.shims,cx=(mu={},Gt(mu,yt,Object.values(qa[yt])),Gt(mu,Ot,Object.values(qa[Ot])),mu),Gh=null,Kw={},Yw={},qw={},Xw={},Qw={},dx=(Cu={},Gt(Cu,yt,Object.keys(Ka[yt])),Gt(Cu,Ot,Object.keys(Ka[Ot])),Cu);function px(o){return~$I.indexOf(o)}function fx(o,t){var e=t.split("-"),i=e[0],r=e.slice(1).join("-");return i===o&&r!==""&&!px(r)?r:null}var Jw=function(){var t=function(n){return Rp(ls,function(s,a,l){return s[l]=Rp(a,n,{}),s},{})};Kw=t(function(r,n,s){if(n[3]&&(r[n[3]]=s),n[2]){var a=n[2].filter(function(l){return typeof l=="number"});a.forEach(function(l){r[l.toString(16)]=s})}return r}),Yw=t(function(r,n,s){if(r[s]=s,n[2]){var a=n[2].filter(function(l){return typeof l=="string"});a.forEach(function(l){r[l]=s})}return r}),Qw=t(function(r,n,s){var a=n[2];return r[s]=s,a.forEach(function(l){r[l]=s}),r});var e="far"in ls||Re.autoFetchSvg,i=Rp(ux,function(r,n){var s=n[0],a=n[1],l=n[2];return a==="far"&&!e&&(a="fas"),typeof s=="string"&&(r.names[s]={prefix:a,iconName:l}),typeof s=="number"&&(r.unicodes[s.toString(16)]={prefix:a,iconName:l}),r},{names:{},unicodes:{}});qw=i.names,Xw=i.unicodes,Gh=xc(Re.styleDefault,{family:Re.familyDefault})};XI(function(o){Gh=xc(o.styleDefault,{family:Re.familyDefault})});Jw();function Hh(o,t){return(Kw[o]||{})[t]}function hx(o,t){return(Yw[o]||{})[t]}function ao(o,t){return(Qw[o]||{})[t]}function Zw(o){return qw[o]||{prefix:null,iconName:null}}function vx(o){var t=Xw[o],e=Hh("fas",o);return t||(e?{prefix:"fas",iconName:e}:null)||{prefix:null,iconName:null}}function Pn(){return Gh}var Vh=function(){return{prefix:null,iconName:null,rest:[]}};function xc(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=t.family,i=e===void 0?yt:e,r=Ka[i][o],n=Ya[i][o]||Ya[i][r],s=o in tr.styles?o:null;return n||s||null}var Ly=(wu={},Gt(wu,yt,Object.keys(qa[yt])),Gt(wu,Ot,Object.keys(qa[Ot])),wu);function Nc(o){var t,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=e.skipLookups,r=i===void 0?!1:i,n=(t={},Gt(t,yt,"".concat(Re.cssPrefix,"-").concat(yt)),Gt(t,Ot,"".concat(Re.cssPrefix,"-").concat(Ot)),t),s=null,a=yt;(o.includes(n[yt])||o.some(function(u){return Ly[yt].includes(u)}))&&(a=yt),(o.includes(n[Ot])||o.some(function(u){return Ly[Ot].includes(u)}))&&(a=Ot);var l=o.reduce(function(u,c){var p=fx(Re.cssPrefix,c);if(ls[c]?(c=cx[a].includes(c)?kI[a][c]:c,s=c,u.prefix=c):dx[a].indexOf(c)>-1?(s=c,u.prefix=xc(c,{family:a})):p?u.iconName=p:c!==Re.replacementClass&&c!==n[yt]&&c!==n[Ot]&&u.rest.push(c),!r&&u.prefix&&u.iconName){var f=s==="fa"?Zw(u.iconName):{},v=ao(u.prefix,u.iconName);f.prefix&&(s=null),u.iconName=f.iconName||v||u.iconName,u.prefix=f.prefix||u.prefix,u.prefix==="far"&&!ls.far&&ls.fas&&!Re.autoFetchSvg&&(u.prefix="fas")}return u},Vh());return(o.includes("fa-brands")||o.includes("fab"))&&(l.prefix="fab"),(o.includes("fa-duotone")||o.includes("fad"))&&(l.prefix="fad"),!l.prefix&&a===Ot&&(ls.fass||Re.autoFetchSvg)&&(l.prefix="fass",l.iconName=ao(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||s==="fa")&&(l.prefix=Pn()||"fas"),l}var gx=function(){function o(){AI(this,o),this.definitions={}}return PI(o,[{key:"add",value:function(){for(var e=this,i=arguments.length,r=new Array(i),n=0;n<i;n++)r[n]=arguments[n];var s=r.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(a){e.definitions[a]=_e(_e({},e.definitions[a]||{}),s[a]),Cf(a,s[a]);var l=qa[yt][a];l&&Cf(l,s[a]),Jw()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,i){var r=i.prefix&&i.iconName&&i.icon?{0:i}:i;return Object.keys(r).map(function(n){var s=r[n],a=s.prefix,l=s.iconName,u=s.icon,c=u[2];e[a]||(e[a]={}),c.length>
10410&&c.forEach(function(p){typeof p=="string"&&(e[a][p]=u)}),e[a][l]=u}),e}}]),o}(),Fy=[],us={},gs={},yx=Object.keys(gs);function mx(o,t){var e=t.mixoutsTo;return Fy=o,us={},Object.keys(gs).forEach(function(i){yx.indexOf(i)===-1&&delete gs[i]}),Fy.forEach(function(i){var r=i.mixout?i.mixout():{};if(Object.keys(r).forEach(function(s){typeof r[s]=="function"&&(e[s]=r[s]),lc(r[s])==="object"&&Object.keys(r[s]).forEach(function(a){e[s]||(e[s]={}),e[s][a]=r[s][a]})}),i.hooks){var n=i.hooks();Object.keys(n).forEach(function(s){us[s]||(us[s]=[]),us[s].push(n[s])})}i.provides&&i.provides(gs)}),e}function wf(o,t){for(var e=arguments.length,i=new Array(e>2?e-2:0),r=2;r<e;r++)i[r-2]=arguments[r];var n=us[o]||[];return n.forEach(function(s){t=s.apply(null,[t].concat(i))}),t}function Eo(o){for(var t=arguments.length,e=new Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];var r=us[o]||[];r.forEach(function(n){n.apply(null,e)})}function Jr(){var o=arguments[0],t=Array.prototype.slice.call(arguments,1);return gs[o]?gs[o].apply(null,t):void 0}function Sf(o){o.prefix==="fa"&&(o.prefix="fas");var t=o.iconName,e=o.prefix||Pn();if(t)return t=ao(e,t)||t,Py(eS.definitions,e,t)||Py(tr.styles,e,t)}var eS=new gx,Cx=function(){Re.autoReplaceSvg=!1,Re.observeMutations=!1,Eo("noAuto")},wx={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return rn?(Eo("beforeI2svg",t),Jr("pseudoElements2svg",t),Jr("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.autoReplaceSvgRoot;Re.autoReplaceSvg===!1&&(Re.autoReplaceSvg=!0),Re.observeMutations=!0,ox(function(){Ex({autoReplaceSvgRoot:e}),Eo("watch",t)})}},Sx={icon:function(t){if(t===null)return null;if(lc(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:ao(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var e=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],i=xc(t[0]);return{prefix:i,iconName:ao(i,e)||e}}if(typeof t=="string"&&(t.indexOf("".concat(Re.cssPrefix,"-"))>-1||t.match(BI))){var r=Nc(t.split(" "),{skipLookups:!0});return{prefix:r.prefix||Pn(),iconName:ao(r.prefix,r.iconName)||r.iconName}}if(typeof t=="string"){var n=Pn();return{prefix:n,iconName:ao(n,t)||t}}}},Di={noAuto:Cx,config:Re,dom:wx,parse:Sx,library:eS,findIconDefinition:Sf,toHtml:pl},Ex=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.autoReplaceSvgRoot,i=e===void 0?mt:e;(Object.keys(tr.styles).length>0||Re.autoFetchSvg)&&rn&&Re.autoReplaceSvg&&Di.dom.i2svg({node:i})};function Gc(o,t){return Object.defineProperty(o,"abstract",{get:t}),Object.defineProperty(o,"html",{get:function(){return o.abstract.map(function(i){return pl(i)})}}),Object.defineProperty(o,"node",{get:function(){if(rn){var i=mt.createElement("div");return i.innerHTML=o.html,i.children}}}),o}function _x(o){var t=o.children,e=o.main,i=o.mask,r=o.attributes,n=o.styles,s=o.transform;if(Nh(s)&&e.found&&!i.found){var a=e.width,l=e.height,u={x:a/l/2,y:.5};r.style=Ic(_e(_e({},n),{},{"transform-origin":"".concat(u.x+s.x/16,"em ").concat(u.y+s.y/16,"em")}))}return[{tag:"svg",attributes:r,children:t}]}function Ox(o){var t=o.prefix,e=o.iconName,i=o.children,r=o.attributes,n=o.symbol,s=n===!0?"".concat(t,"-").concat(Re.cssPrefix,"-").concat(e):n;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:_e(_e({},r),{},{id:s}),children:i}]}]}function kh(o){var t=o.icons,e=t.main,i=t.mask,r=o.prefix,n=o.iconName,s=o.transform,a=o.symbol,l=o.title,u=o.maskId,c=o.titleId,p=o.extra,f=o.watchable,v=f===void 0?!1:f,y=i.found?i:e,w=y.width,b=y.height,O=r==="fak",A=[Re.replacementClass,n?"".concat(Re.cssPrefix,"-").concat(n):""].filter(function(V){return p.classes.indexOf(V)===-1}).filter(function(V){return V!==""||!!V}).concat(p.classes).join(" "),P={children:[],attributes:_e(_e({},p.attributes),{},{"data-prefix":r,"data-icon":n,class:A,role:p.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(w," ").concat(b)})},L=O&&!~p.classes.indexOf("fa-fw")?{width:"".concat(w/b*16*.0625,"em")}:{};v&&(P.attributes[So]=""),l&&(P.children.push({tag:"title",attributes:{id:P.attributes["aria-labelledby"]||"title-".concat(c||Qa())},children:[l]}),delete P.attributes.title);var x=_e(_e({},P),{},{prefix:r,iconName:n,main:e,mask:i,maskId:u,transform:s,symbol:a,styles:_e(_e({},L),p.styles)}),H=i.found&&e.found?Jr("generateAbstractMask",x)||{children:[],attributes:{}}:Jr("generateAbstractIcon",x)||{children:[],attributes:{}},g=H.children,N=H.attributes;return x.children=g,x.attributes=N,a?Ox(x):_x(x)}function My(o){var t=o.content,e=o.width,i=o.height,r=o.transform,n=o.title,s=o.extra,a=o.watchable,l=a===void 0?!1:a,u=_e(_e(_e({},s.attributes),n?{title:n}:{}),{},{class:s.classes.join(" ")});l&&(u[So]="");var c=_e({},s.styles);Nh(r)&&(c.transform=tx({transform:r,startCentered:!0,width:e,height:i}),c["-webkit-transform"]=c.transform);var p=Ic(c);p.length>0&&(u.style=p);var f=[];return f.push({tag:"span",attributes:u,children:[t]}),n&&f.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),f}function bx(o){var t=o.content,e=o.title,i=o.extra,r=_e(_e(_e({},i.attributes),e?{title:e}:{}),{},{class:i.classes.join(" ")}),n=Ic(i.styles);n.length>0&&(r.style=n);var s=[];return s.push({tag:"span",attributes:r,children:[t]}),e&&s.push({tag:"span",attributes:{class:"sr-only"},children:[e]}),s}var Ap=tr.styles;function Ef(o){var t=o[0],e=o[1],i=o.slice(4),r=Dh(i,1),n=r[0],s=null;return Array.isArray(n)?s={tag:"g",attributes:{class:"".concat(Re.cssPrefix,"-").concat(so.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Re.cssPrefix,"-").concat(so.SECONDARY),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(Re.cssPrefix,"-").concat(so.PRIMARY),fill:"currentColor",d:n[1]}}]}
1041:s={tag:"path",attributes:{fill:"currentColor",d:n}},{found:!0,width:t,height:e,icon:s}}var Tx={found:!1,width:512,height:512};function Rx(o,t){!kw&&!Re.showMissingIcons&&o&&console.error('Icon with name "'.concat(o,'" and prefix "').concat(t,'" is missing.'))}function _f(o,t){var e=t;return t==="fa"&&Re.styleDefault!==null&&(t=Pn()),new Promise(function(i,r){if(Jr("missingIconAbstract"),e==="fa"){var n=Zw(o)||{};o=n.iconName||o,t=n.prefix||t}if(o&&t&&Ap[t]&&Ap[t][o]){var s=Ap[t][o];return i(Ef(s))}Rx(o,t),i(_e(_e({},Tx),{},{icon:Re.showMissingIcons&&o?Jr("missingIconAbstract")||{}:{}}))})}var Iy=function(){},Of=Re.measurePerformance&&pu&&pu.mark&&pu.measure?pu:{mark:Iy,measure:Iy},Da='FA "6.4.2"',Ax=function(t){return Of.mark("".concat(Da," ").concat(t," begins")),function(){return tS(t)}},tS=function(t){Of.mark("".concat(Da," ").concat(t," ends")),Of.measure("".concat(Da," ").concat(t),"".concat(Da," ").concat(t," begins"),"".concat(Da," ").concat(t," ends"))},Bh={begin:Ax,end:tS},Pu=function(){};function xy(o){var t=o.getAttribute?o.getAttribute(So):null;return typeof t=="string"}function Px(o){var t=o.getAttribute?o.getAttribute(Fh):null,e=o.getAttribute?o.getAttribute(Mh):null;return t&&e}function Dx(o){return o&&o.classList&&o.classList.contains&&o.classList.contains(Re.replacementClass)}function Lx(){if(Re.autoReplaceSvg===!0)return Du.replace;var o=Du[Re.autoReplaceSvg];return o||Du.replace}function Fx(o){return mt.createElementNS("http://www.w3.org/2000/svg",o)}function Mx(o){return mt.createElement(o)}function iS(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=t.ceFn,i=e===void 0?o.tag==="svg"?Fx:Mx:e;if(typeof o=="string")return mt.createTextNode(o);var r=i(o.tag);Object.keys(o.attributes||[]).forEach(function(s){r.setAttribute(s,o.attributes[s])});var n=o.children||[];return n.forEach(function(s){r.appendChild(iS(s,{ceFn:i}))}),r}function Ix(o){var t=" ".concat(o.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Du={replace:function(t){var e=t[0];
1041if(e.parentNode)if(t[1].forEach(function(r){e.parentNode.insertBefore(iS(r),e)}),e.getAttribute(So)===null&&Re.keepOriginalSource){var i=mt.createComment(Ix(e));e.parentNode.replaceChild(i,e)}else e.remove()},nest:function(t){var e=t[0],i=t[1];if(~xh(e).indexOf(Re.replacementClass))return Du.replace(t);var r=new RegExp("".concat(Re.cssPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var n=i[0].attributes.class.split(" ").reduce(function(a,l){return l===Re.replacementClass||l.match(r)?a.toSvg.push(l):a.toNode.push(l),a},{toNode:[],toSvg:[]});i[0].attributes.class=n.toSvg.join(" "),n.toNode.length===0?e.removeAttribute("class"):e.setAttribute("class",n.toNode.join(" "))}var s=i.map(function(a){return pl(a)}).join(` 1042`);e.setAttribute(So,""),e.innerHTML=s}};function Ny(o){o()}function rS(o,t){var e=typeof t=="function"?t:Pu;if(o.length===0)e();else{var i=Ny;Re.mutateApproach===HI&&(i=An.requestAnimationFrame||Ny),i(function(){var r=Lx(),n=Bh.begin("mutate");o.map(r),n(),e()})}}var jh=!1;function nS(){jh=!0}function bf(){jh=!1}var cc=null;function Gy(o){if(Ty&&Re.observeMutations){var t=o.treeCallback,e=t===void 0?Pu:t,i=o.nodeCallback,r=i===void 0?Pu:i,n=o.pseudoElementsCallback,s=n===void 0?Pu:n,a=o.observeMutationsRoot,l=a===void 0?mt:a;cc=new Ty(function(u){if(!jh){var c=Pn();Gs(u).forEach(function(p){if(p.type==="childList"&&p.addedNodes.length>0&&!xy(p.addedNodes[0])&&(Re.searchPseudoElements&&s(p.target),e(p.target)),p.type==="attributes"&&p.target.parentNode&&Re.searchPseudoElements&&s(p.target.parentNode),p.type==="attributes"&&xy(p.target)&&~zI.indexOf(p.attributeName))if(p.attributeName==="class"&&Px(p.target)){var f=Nc(xh(p.target)),v=f.prefix,y=f.iconName;p.target.setAttribute(Fh,v||c),y&&p.target.setAttribute(Mh,y)}else Dx(p.target)&&r(p.target)})}}),rn&&cc.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function xx(){cc&&cc.disconnect()}function Nx(o){var t=o.getAttribute("style"),e=[];return t&&(e=t.split(";").reduce(function(i,r){var n=r.split(":"),s=n[0],a=n.slice(1);return s&&a.length>0&&(i[s]=a.join(":").trim()),i},{})),e}function Gx(o){var t=o.getAttribute("data-prefix"),e=o.getAttribute("data-icon"),i=o.innerText!==void 0?o.innerText.trim():"",r=Nc(xh(o));return r.prefix||(r.prefix=Pn()),t&&e&&(r.prefix=t,r.iconName=e),r.iconName&&r.prefix||(r.prefix&&i.length>0&&(r.iconName=hx(r.prefix,o.innerText)||Hh(r.prefix,mf(o.innerText))),!r.iconName&&Re.autoFetchSvg&&o.firstChild&&o.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=o.firstChild.data)),r}function Hx(o){var t=Gs(o.attributes).reduce(function(r,n){return r.name!=="class"&&r.name!=="style"&&(r[n.name]=n.value),r},{}),e=o.getAttribute("title"),i=o.getAttribute("data-fa-title-id");return Re.autoA11y&&(e?t["aria-labelledby"]="".concat(Re.replacementClass,"-title-").concat(i||Qa()):(t["aria-hidden"]="true",t.focusable="false")),t}function Vx(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Tr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Hy(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},e=Gx(o),i=e.iconName,r=e.prefix,n=e.rest,s=Hx(o),a=wf("parseNodeAttributes",{},o),l=t.styleParser?Nx(o):[];return _e({iconName:i,title:o.getAttribute("title"),titleId:o.getAttribute("data-fa-title-id"),prefix:r,transform:Tr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:n,styles:l,attributes:s}},a)}var kx=tr.styles;function oS(o){var t=Re.autoReplaceSvg==="nest"?Hy(o,{styleParser:!1}):Hy(o);return~t.extra.classes.indexOf(Bw)?Jr("generateLayersText",o,t):Jr("generateSvgReplacementMutation",o,t)}var Dn=new Set;Ih.map(function(o){Dn.add("fa-".concat(o))});Object.keys(Ka[yt]).map(Dn.add.bind(Dn));Object.keys(Ka[Ot]).map(Dn.add.bind(Dn));Dn=cl(Dn);function Vy(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!rn)return Promise.resolve();var e=mt.documentElement.classList,i=function(p){return e.add("".concat(Ry,"-").concat(p))}
1042,r=function(p){return e.remove("".concat(Ry,"-").concat(p))},n=Re.autoFetchSvg?Dn:Ih.map(function(c){return"fa-".concat(c)}).concat(Object.keys(kx));n.includes("fa")||n.push("fa");var s=[".".concat(Bw,":not([").concat(So,"])")].concat(n.map(function(c){return".".concat(c,":not([").concat(So,"])")})).join(", ");if(s.length===0)return Promise.resolve();var a=[];try{a=Gs(o.querySelectorAll(s))}catch{}if(a.length>0)i("pending"),r("complete");else return Promise.resolve();var l=Bh.begin("onTree"),u=a.reduce(function(c,p){try{var f=oS(p);f&&c.push(f)}catch(v){kw||v.name==="MissingIcon"&&console.error(v)}return c},[]);return new Promise(function(c,p){Promise.all(u).then(function(f){rS(f,function(){i("active"),i("complete"),r("pending"),typeof t=="function"&&t(),l(),c()})}).catch(function(f){l(),p(f)})})}function Bx(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;oS(o).then(function(e){e&&rS([e],t)})}function jx(o){return function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=(t||{}).icon?t:Sf(t||{}),r=e.mask;return r&&(r=(r||{}).icon?r:Sf(r||{})),o(i,_e(_e({},e),{},{mask:r}))}}var Wx=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=e.transform,r=i===void 0?Tr:i,n=e.symbol,s=n===void 0?!1:n,a=e.mask,l=a===void 0?null:a,u=e.maskId,c=u===void 0?null:u,p=e.title,f=p===void 0?null:p,v=e.titleId,y=v===void 0?null:v,w=e.classes,b=w===void 0?[]:w,O=e.attributes,A=O===void 0?{}:O,P=e.styles,L=P===void 0?{}:P;if(t){var x=t.prefix,H=t.iconName,g=t.icon;return Gc(_e({type:"icon"},t),function(){return Eo("beforeDOMElementCreation",{iconDefinition:t,params:e}),Re.autoA11y&&(f?A["aria-labelledby"]="".concat(Re.replacementClass,"-title-").concat(y||Qa()):(A["aria-hidden"]="true",A.focusable="false")),kh({icons:{main:Ef(g),mask:l?Ef(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:x,iconName:H,transform:_e(_e({},Tr),r),symbol:s,title:f,maskId:c,titleId:y,extra:{attributes:A,styles:L,classes:b}})})}},Ux={mixout:function(){return{icon:jx(Wx)}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Vy,e.nodeCallback=Bx,e}}},provides:function(t){t.i2svg=function(e){var i=e.node,r=i===void 0?mt:i,n=e.callback,s=n===void 0?function(){}:n;return Vy(r,s)},t.generateSvgReplacementMutation=function(e,i){var r=i.iconName,n=i.title,s=i.titleId,a=i.prefix,l=i.transform,u=i.symbol,c=i.mask,p=i.maskId,f=i.extra;return new Promise(function(v,y){Promise.all([_f(r,a),c.iconName?_f(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(w){var b=Dh(w,2),O=b[0],A=b[1];v([e,kh({icons:{main:O,mask:A},prefix:a,iconName:r,transform:l,symbol:u,maskId:p,title:n,titleId:s,extra:f,watchable:!0})])}).catch(y)})},t.generateAbstractIcon=function(e){var i=e.children,r=e.attributes,n=e.main,s=e.transform,a=e.styles,l=Ic(a);l.length>0&&(r.style=l);var u;return Nh(s)&&(u=Jr("generateAbstractTransformGrouping",{main:n,transform:s,containerWidth:n.width,iconWidth:n.width})),i.push(u||n.icon),{children:i,attributes:r}}}},zx={mixout:function(){return{layer:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=i.classes,n=r===void 0?[]:r;return Gc({type:"layer"},function(){Eo("beforeDOMElementCreation",{assembler:e,params:i});var s=[];return e(function(a){Array.isArray(a)?a.map(function(l){s=s.concat(l.abstract)}):s=s.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(Re.cssPrefix,"-layers")].concat(cl(n)).join(" ")},children:s}]})}}}},$x={mixout:function(){return{counter:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=i.title,n=r===void 0?null:r,s=i.classes,a=s===void 0?[]:s,l=i.attributes,u=l===void 0?{}:l,c=i.styles,p=c===void 0?{}:c;return Gc({type:"counter",content:e},function(){return Eo("beforeDOMElementCreation",{content:e,params:i}),bx({content:e.toString(),title:n,extra:{attributes:u,styles:p,classes:["".concat(Re.cssPrefix,"-layers-counter")].concat(cl(a))}})})}}}},Kx={mixout:function(){return{text:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=i.transform,n=r===void 0?Tr:r,s=i.title,a=s===void 0?null:s,l=i.classes,u=l===void 0?[]:l,c=i.attributes,p=c===void 0?{}:c,f=i.styles,v=f===void 0?{}:f;return Gc({type:"text",content:e},function(){return Eo("beforeDOMElementCreation",{content:e,params:i}),My({content:e,transform:_e(_e({},Tr),n),title:a,extra:{attributes:p,styles:v,classes:["".concat(Re.cssPrefix,"-layers-text")].concat(cl(u))}})})}}},provides:function(t){t.generateLayersText=function(e,i){var r=i.title,n=i.transform,s=i.extra,a=null,l=null;if(Gw){var u=parseInt(getComputedStyle(e).fontSize,10),c=e.getBoundingClientRect();a=c.width/u,l=c.height/u}return Re.autoA11y&&!r&&(s.attributes["aria-hidden"]="true"),Promise.resolve([e,My({content:e.innerHTML,width:a,height:l,transform:n,title:r,extra:s,watchable:!0})])}}},Yx=new RegExp('"',"ug"),ky=[1105920,1112319];function qx(o){var t=o.replace(Yx,""),e=lx(t,0),i=e>=ky[0]&&e<=ky[1],r=t.length===2?t[0]===t[1]:!1;return{value:mf(r?t[0]:t),isSecondary:i||r}}function By(o,t){var e="".concat(GI).concat(t.replace(":","-"));return new Promise(function(i,r){if(o.getAttribute(e)!==null)return i();var n=Gs(o.children),s=n.filter(function(g){return g.getAttribute(yf)===t})[0],a=An.getComputedStyle(o,t),l=a.getPropertyValue("font-family").match(jI),u=a.getPropertyValue("font-weight"),c=a.getPropertyValue("content");
1042if(s&&!l)return o.removeChild(s),i();if(l&&c!=="none"&&c!==""){var p=a.getPropertyValue("content"),f=~["Sharp"].indexOf(l[2])?Ot:yt,v=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Ya[f][l[2].toLowerCase()]:WI[f][u],y=qx(p),w=y.value,b=y.isSecondary,O=l[0].startsWith("FontAwesome"),A=Hh(v,w),P=A;if(O){var L=vx(w);L.iconName&&L.prefix&&(A=L.iconName,v=L.prefix)}if(A&&!b&&(!s||s.getAttribute(Fh)!==v||s.getAttribute(Mh)!==P)){o.setAttribute(e,P),s&&o.removeChild(s);var x=Vx(),H=x.extra;H.attributes[yf]=t,_f(A,v).then(function(g){var N=kh(_e(_e({},x),{},{icons:{main:g,mask:Vh()},prefix:v,iconName:P,extra:H,watchable:!0})),V=mt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?o.insertBefore(V,o.firstChild):o.appendChild(V),V.outerHTML=N.map(function(z){return pl(z)}).join(` 1043`),o.removeAttribute(e),i()}).catch(r)}else i()}else i()})}function Xx(o){return Promise.all([By(o,"::before"),By(o,"::after")])}function Qx(o){return o.parentNode!==document.head&&!~VI.indexOf(o.tagName.toUpperCase())&&!o.getAttribute(yf)&&(!o.parentNode||o.parentNode.tagName!=="svg")}function jy(o){if(rn)return new Promise(function(t,e){var i=Gs(o.querySelectorAll("*")).filter(Qx).map(Xx),r=Bh.begin("searchPseudoElements");nS(),Promise.all(i).then(function(){r(),bf(),t()}).catch(function(){r(),bf(),e()})})}var Jx={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=jy,e}}},provides:function(t){t.pseudoElements2svg=function(e){var i=e.node,r=i===void 0?mt:i;Re.searchPseudoElements&&jy(r)}}},Wy=!1,Zx={mixout:function(){return{dom:{unwatch:function(){nS(),Wy=!0}}}},hooks:function(){return{bootstrap:function(){Gy(wf("mutationObserverCallbacks",{}))},noAuto:function(){xx()},watch:function(e){var i=e.observeMutationsRoot;Wy?bf():Gy(wf("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},Uy=function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(i,r){var n=r.toLowerCase().split("-"),s=n[0],a=n.slice(1).join("-");if(s&&a==="h")return i.flipX=!0,i;if(s&&a==="v")return i.flipY=!0,i;if(a=parseFloat(a),isNaN(a))return i;switch(s){case"grow":i.size=i.size+a;break;case"shrink":i.size=i.size-a;break;case"left":i.x=i.x-a;break;case"right":i.x=i.x+a;break;case"up":i.y=i.y-a;break;case"down":i.y=i.y+a;break;case"rotate":i.rotate=i.rotate+a;break}return i},e)},eN={mixout:function(){return{parse:{transform:function(e){return Uy(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,i){var r=i.getAttribute("data-fa-transform");return r&&(e.transform=Uy(r)),e}}},provides:function(t){t.generateAbstractTransformGrouping=function(e){var i=e.main,r=e.transform,n=e.containerWidth,s=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},l="translate(".concat(r.x*32,", ").concat(r.y*32,") "),u="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),c="rotate(".concat(r.rotate," 0 0)"),p={transform:"".concat(l," ").concat(u," ").concat(c)},f={transform:"translate(".concat(s/2*-1," -256)")},v={outer:a,inner:p,path:f};return{tag:"g",attributes:_e({},v.outer),children:[{tag:"g",attributes:_e({},v.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:_e(_e({},i.icon.attributes),v.path)}]}]}}}},Pp={x:0,y:0,width:"100%",height:"100%"};function zy(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return o.attributes&&(o.attributes.fill||t)&&(o.attributes.fill="black"),o}function tN(o){return o.tag==="g"?o.children:[o]}var iN={hooks:function(){return{parseNodeAttributes:function(e,i){var r=i.getAttribute("data-fa-mask"),n=r?Nc(r.split(" ").map(function(s){return s.trim()})):Vh();return n.prefix||(n.prefix=Pn()),e.mask=n,e.maskId=i.getAttribute("data-fa-mask-id"),e}}},provides:function(t){t.generateAbstractMask=function(e){var i=e.children,r=e.attributes,n=e.main,s=e.mask,a=e.maskId,l=e.transform,u=n.width,c=n.icon,p=s.width,f=s.icon,v=ex({transform:l,containerWidth:p,iconWidth:u}),y={tag:"rect",attributes:_e(_e({},Pp),{},{fill:"white"})},w=c.children?{children:c.children.map(zy)}:{},b={tag:"g",attributes:_e({},v.inner),children:[zy(_e({tag:c.tag,attributes:_e(_e({},c.attributes),v.path)},w))]},O={tag:"g",attributes:_e({},v.outer),children:[b]},A="mask-".concat(a||Qa()),P="clip-".concat(a||Qa()),L={tag:"mask",attributes:_e(_e({},Pp),{},{id:A,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[y,O]},x={tag:"defs",children:[{tag:"clipPath",attributes:{id:P},children:tN(f)},L]};return i.push(x,{tag:"rect",attributes:_e({fill:"currentColor","clip-path":"url(#".concat(P,")"),mask:"url(#".concat(A,")")},Pp)}),{children:i,attributes:r}}}},rN={provides:function(t){var e=!1;An.matchMedia&&(e=An.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var i=[],r={fill:"currentColor"}
1043,n={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:_e(_e({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=_e(_e({},n),{},{attributeName:"opacity"}),a={tag:"circle",attributes:_e(_e({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||a.children.push({tag:"animate",attributes:_e(_e({},n),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:_e(_e({},s),{},{values:"1;0;1;1;0;1;"})}),i.push(a),i.push({tag:"path",attributes:_e(_e({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:e?[]:[{tag:"animate",attributes:_e(_e({},s),{},{values:"1;0;0;0;0;1;"})}]}),e||i.push({tag:"path",attributes:_e(_e({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:_e(_e({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},nN={hooks:function(){return{parseNodeAttributes:function(e,i){var r=i.getAttribute("data-fa-symbol"),n=r===null?!1:r===""?!0:r;return e.symbol=n,e}}}},oN=[rx,Ux,zx,$x,Kx,Jx,Zx,eN,iN,rN,nN];mx(oN,{mixoutsTo:Di});Di.noAuto;var fl=Di.config,sN=Di.library,aN=Di.dom;Di.parse;Di.findIconDefinition;Di.toHtml;Di.icon;Di.layer;Di.text;Di.counter;var sS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="plus",i=448,r=512,n=[10133,61543,"add"],s="2b",a="M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faPlus=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(sS);var aS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="minus",i=448,r=512,n=[8211,8722,10134,"subtract"],s="f068",a="M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faMinus=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(aS);var lS={},uS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="rectangle-xmark",i=512,r=512,n=[62164,"rectangle-times","times-rectangle","window-close"],s="f410",a="M64 32C28.7 32 0 60.7 0 96V4
104316c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faRectangleXmark=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(uS);(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t=uS;o.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},o.faWindowClose=o.definition,o.prefix=t.prefix,o.iconName=t.iconName,o.width=t.width,o.height=t.height,o.ligatures=t.aliases,o.unicode=t.unicode,o.svgPathData=t.svgPathData,o.aliases=t.aliases})(lS);var cS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="angle-down",i=448,r=512,n=[8964],s="f107",a="M201.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 274.7 86.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faAngleDown=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(cS);var dS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="angle-right",i=320,r=512,n=[8250],s="f105",a="M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faAngleRight=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(dS);var pS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="circle-notch",i=512,r=512,n=[],s="f1ce",a="M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faCircleNotch=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(pS);var fS={},hS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="location-pin",i=384,r=512,n=["map-marker"],s="f041",a="M384 192c0 87.4-117 243-168.3 307.2c-12.3 15.3-35.1 15.3-47.4 0C117 435 0 279.4 0 192C0 86 86 0 192 0S384 86 384 192z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faLocationPin=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(hS);(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t=hS;o.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},o.faMapMarker=o.definition,o.prefix=t.prefix,o.iconName=t.iconName,o.width=t.width,o.height=t.height,o.ligatures=t.aliases,o.unicode=t.unicode,o.svgPathData=t.svgPathData,o.aliases=t.aliases})(fS);var vS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="users",i=640,r=512,n=[],s="f0c0",a="M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192h42.7c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0H21.3C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7h42.7C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3H405.3zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352H378.7C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7H154.7c-14.7 0-26.7-11.9-26.7-26.7z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faUsers=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(vS);var gS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="phone",i=512,r=512,n=[128222,128379],s="f095",a="M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faPhone=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(gS);var yS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="check",i=448,r=512,n=[10003,10004],s="f00c",a="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faCheck=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(yS);var mS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="globe",i=512,r=512,n=[127760],s="f0ac",a="M352 256c0 22.2-1.2 43.6-3.3 64H163.3c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64H348.7c2.2 20.4 3.3 41.8 3.3 64zm28.8-64H503.9c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32H376.7c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0H167.7c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0H18.6C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192H131.2c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8.1C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6H344.3c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352H135.3zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6H493.4z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faGlobe=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(mS);var CS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="suitcase",i=512,r=512,n=[129523],s="f0f2",a="M176 56V96H336V56c0-4.4-3.6-8-8-8H184c-4.4 0-8 3.6-8 8zM128 96V56c0-30.9 25.1-56 56-56H328c30.9 0 56 25.1 56 56V96v32V480H128V128 96zM64 9
10436H96V480H64c-35.3 0-64-28.7-64-64V160c0-35.3 28.7-64 64-64zM448 480H416V96h32c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faSuitcase=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(CS);var wS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="chevron-down",i=512,r=512,n=[],s="f078",a="M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faChevronDown=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(wS);var SS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="chevron-up",i=512,r=512,n=[],s="f077",a="M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faChevronUp=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(SS);var ES={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="envelope",i=512,r=512,n=[128386,9993,61443],s="f0e0",a="M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faEnvelope=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(ES);var _S={},OS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="file-arrow-down",i=384,r=512,n=["file-download"],s="f56d",a="M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 232V334.1l31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31V232c0-13.3 10.7-24 24-24s24 10.7 24 24z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faFileArrowDown=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(OS);(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t=OS;o.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},o.faFileDownload=o.definition,o.prefix=t.prefix,o.iconName=t.iconName,o.width=t.width,o.height=t.height,o.ligatures=t.aliases,o.unicode=t.unicode,o.svgPathData=t.svgPathData,o.aliases=t.aliases})(_S);var bS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="caret-down",i=320,r=512,n=[],s="f0d7",a="M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faCaretDown=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(bS);var TS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="caret-up",i=320,r=512,n=[],s="f0d8",a="M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faCaretUp=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(TS);var RS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="file-pdf",i=512,r=512,n=[],s="f1c1",a="M0 64C0 28.7 28.7 0 64 0H224V128c0 17.7 14.3 32 32 32H384V304H176c-35.3 0-64 28.7-64 64V512H64c-35.3 0-64-28.7-64-64V64zm384 64H256V0L384 128zM176 352h32c30.9 0 56 25.1 56 56s-25.1 56-56 56H192v32c0 8.8-7.2 16-16 16s-16-7.2
1043-16-16V448 368c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24H192v48h16zm96-80h32c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48H304c-8.8 0-16-7.2-16-16V368c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H320v96h16zm80-112c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16s-7.2 16-16 16H448v32h32c8.8 0 16 7.2 16 16s-7.2 16-16 16H448v48c0 8.8-7.2 16-16 16s-16-7.2-16-16V432 368z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faFilePdf=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(RS);var AS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fas",e="file-word",i=384,r=512,n=[],s="f1c2",a="M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM111 257.1l26.8 89.2 31.6-90.3c3.4-9.6 12.5-16.1 22.7-16.1s19.3 6.4 22.7 16.1l31.6 90.3L273 257.1c3.8-12.7 17.2-19.9 29.9-16.1s19.9 17.2 16.1 29.9l-48 160c-3 10-12 16.9-22.4 17.1s-19.8-6.2-23.2-16.1L192 336.6l-33.3 95.3c-3.4 9.8-12.8 16.3-23.2 16.1s-19.5-7.1-22.4-17.1l-48-160c-3.8-12.7 3.4-26.1 16.1-29.9s26.1 3.4 29.9 16.1z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faFileWord=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(AS);var PS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="far",e="circle-play",i=512,r=512,n=[61469,"play-circle"],s="f144",a="M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c7.6-4.2 16.8-4.1 24.3 .5l144 88c7.1 4.4 11.5 12.1 11.5 20.5s-4.4 16.1-11.5 20.5l-144 88c-7.4 4.5-16.7 4.7-24.3 .5s-12.3-12.2-12.3-20.9V168c0-8.7 4.7-16.7 12.3-20.9z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faCirclePlay=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(PS);var DS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="far",e="suitcase",i=512,r=512,n=[129523],s="f0f2",a="M176 56V96H336V56c0-4.4-3.6-8-8-8H184c-4.4 0-8 3.6-8 8zM128 96V56c0-30.9 25.1-56 56-56H328c30.9 0 56 25.1 56 56V96h64c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V160c0-35.3 28.7-64 64-64h64zm232 48H152h-8V432H368V144h-8zM64 144c-8.8 0-16 7.2-16 16V416c0 8.8 7.2 16 16 16H96V144H64zM448 432c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16H416V432h32z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faSuitcase=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(DS);var LS={},FS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="far",e="location-dot",i=384,r=512,n=["map-marker-alt"],s="f3c5",a="M336 192c0-79.5-64.5-144-144-144S48 112.5 48 192c0 12.4 4.5 31.6 15.3 57.2c10.5 24.8 25.4 52.2 42.5 79.9c28.5 46.2 61.5 90.8 86.2 122.6c24.8-31.8 57.8-76.4 86.2-122.6c17.1-27.7 32-55.1 42.5-79.9C331.5 223.6 336 204.4 336 192zm48 0c0 87.4-117 243-168.3 307.2c-12.3 15.3-35.1 15.3-47.4 0C117 435 0 279.4 0 192C0 86 86 0 192 0S384 86 384 192zm-160 0a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-112 0a80 80 0 1 1 160 0 80 80 0 1 1 -160 0z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faLocationDot=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(FS);(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t=FS;o.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},o.faMapMarkerAlt=o.definition,o.prefix=t.prefix,o.iconName=t.iconName,o.width=t.width,o.height=t.height,o.ligatures=t.aliases,o.unicode=t.unicode,o.svgPathData=t.svgPathData,o.aliases=t.aliases})(LS);var MS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="far",e="plus",i=448,r=512,n=[10133,61543,"add"],s="2b",a="M248 72c0-13.3-10.7-24-24-24s-24 10.7-24 24V232H40c-13.3 0-24 10.7-24 24s10.7 24 24 24H200V440c0 13.3 10.7 24 24 24s24-10.7 24-24V280H408c13.3 0 24-10.7 24-24s-10.7-24-24-24H248V72z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faPlus=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(MS);var IS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="far",e="minus",i=448,r=512,n=[8211,8722,10134,"subtract"],s="f068",a="M432 256c0 13.3-10.7 24-24 24L40 280c-13.3 0-24-10.7-24-24s10.7-24 24-24l368 0c13.3 0 24 10.7 24 24z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faMinus=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(IS);var xS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="far",e="globe",i=512,r=512,n=[127760],s="f0ac",a="M256 464c7.4 0 27-7.2 47.6-48.4c8.8-17.7 16.4-39.2 22-63.6H186.4c5.6 24.4 13.2 45.9 22 63.6C229 456.8 248.6 464 256 464zM178.5 304h155c1.6-15.3 2.5-31.4 2.5-48s-.9-32.7-2.5-48h-155c-1.6 15.3-2.5 31.4-2.5 48s.9 32.7 2.5 48zm7.9-144H325.6c-5.6-24.4-13.2-45.9-22-63.6C283 55.2 263.4 48 256 48s-27 7.2-47.6 48.4c-8.8 17.7-16.4 39.2-22 63.6zm195.3 48c1.5 15.5 2.2 31.6 2.2 48s-.8 32.5-2.2 48h76.7c3.6-15.4 5.6-31.5 5.6-48s-1.9-32.6-5.6-48H381.8zm58.8-48c-21.4-41.1-56.1-74.1-98.4-93.4c14.1 25.6 25.3 57.5 32.6 93.4h65.9zm-303.3 0c7.3-35.9 18.5-67.7 32.6-93.4c-42.3 19.3-77 52.3-98.4 93.4h65.9zM53.6 208c-3.6 15.4-5.6 31.5-5.6 48s1.9 32.6 5.6 48h76.7c-1.5-15.5-2.2-31.6-2.2-48s.8-32.5 2.2-48H53.6zM342.1 445.4c42.3-19.3 77-52.3 98.4-93.4H374.7c-7.3 35.9-18.5 67.7-32.6 93.4zm-172.2 0c-14.1-25.6-25.3-57.5-32.6-93.4H71.4c21.4 41.1 56.1 74.1 98.4 93.4zM256 512A256 256 0 1 1 256 0a256 256 0 1 1 0 512z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faGlobe=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(xS);var NS={},GS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="far",e="file-lines",i=384,r=512,n=[128441,128462,61686,"file-alt","file-text"],s="f15c",a="M64 464c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm56 256c-13.3 0-24 10.7-24 24s10.7 24 24 24H264c13.3 0 24-10.7 24-24s-10.7-24-24-24H120zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24H264c13.3 0 24-10.7 24-24s-10.7-24-24-24H120z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faFileLines=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(GS);(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t=GS;o.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},o.faFileAlt=o.definition,o.prefix=t.prefix,o.iconName=t.iconName,o.width=t.width,o.height=t.height,o.ligatures=t.aliases,o.unicode=t.unicode,o.svgPathData=t.svgPathData,o.aliases=t.aliases})(NS);var HS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="far",e="check",i=448,r=512,n=[10003,10004],s="f00c",a="M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119
1043119L407 103c9.4-9.4 24.6-9.4 33.9 0z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faCheck=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(HS);var VS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="far",e="angle-left",i=320,r=512,n=[8249],s="f104",a="M47 239c-9.4 9.4-9.4 24.6 0 33.9L207 433c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L97.9 256 241 113c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L47 239z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faAngleLeft=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(VS);var kS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="far",e="angle-right",i=320,r=512,n=[8250],s="f105",a="M273 239c9.4 9.4 9.4 24.6 0 33.9L113 433c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l143-143L79 113c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L273 239z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faAngleRight=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(kS);var BS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="far",e="angle-down",i=448,r=512,n=[8964],s="f107",a="M241 337c-9.4 9.4-24.6 9.4-33.9 0L47 177c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l143 143L367 143c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L241 337z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faAngleDown=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(BS);var jS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="far",e="angle-up",i=448,r=512,n=[8963],s="f106",a="M207 143c9.4-9.4 24.6-9.4 33.9 0L401 303c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-143-143L81 337c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L207 143z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faAngleUp=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(jS);var WS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="far",e="quote-left",i=448,r=512,n=[8220,"quote-left-alt"],s="f10d",a="M0 216C0 149.7 53.7 96 120 96h16c13.3 0 24 10.7 24 24s-10.7 24-24 24H120c-39.8 0-72 32.2-72 72v10c5.1-1.3 10.5-2 16-2h64c35.3 0 64 28.7 64 64v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V320 288 216zm48 72v32 32c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16V288c0-8.8-7.2-16-16-16H64c-8.8 0-16 7.2-16 16zm336-16H320c-8.8 0-16 7.2-16 16v32 32c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16V288c0-8.8-7.2-16-16-16zM256 320V288 216c0-66.3 53.7-120 120-120h16c13.3 0 24 10.7 24 24s-10.7 24-24 24H376c-39.8 0-72 32.2-72 72v10c5.1-1.3 10.5-2 16-2h64c35.3 0 64 28.7 64 64v64c0 35.3-28.7 64-64 64H320c-35.3 0-64-28.7-64-64V320z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faQuoteLeft=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(WS);var US={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="far",e="quote-right",i=448,r=512,n=[8221,"quote-right-alt"],s="f10e",a="M448 296c0 66.3-53.7 120-120 120H312c-13.3 0-24-10.7-24-24s10.7-24 24-24h16c39.8 0 72-32.2 72-72V286c-5.1 1.3-10.5 2-16 2H320c-35.3 0-64-28.7-64-64V160c0-35.3 28.7-64 64-64h64c35.3 0 64 28.7 64 64v32 32 72zm-48-72V192 160c0-8.8-7.2-16-16-16H320c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16zM64 240h64c8.8 0 16-7.2 16-16V192 160c0-8.8-7.2-16-16-16H64c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16zm128-48v32 72c0 66.3-53.7 120-120 120H56c-13.3 0-24-10.7-24-24s10.7-24 24-24H72c39.8 0 72-32.2 72-72V286c-5.1 1.3-10.5 2-16 2H64c-35.3 0-64-28.7-64-64V160c0-35.3 28.7-64 64-64h64c35.3 0 64 28.7 64 64v32z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faQuoteRight=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(US);var zS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fal",e="plus",i=448,r=512,n=[10133,61543,"add"],s="2b",a="M240 64c0-8.8-7.2-16-16-16s-16 7.2-16 16V240H32c-8.8 0-16 7.2-16 16s7.2 16 16 16H208V448
1043c0 8.8 7.2 16 16 16s16-7.2 16-16V272H416c8.8 0 16-7.2 16-16s-7.2-16-16-16H240V64z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faPlus=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(zS);var $S={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fal",e="angle-up",i=448,r=512,n=[8963],s="f106",a="M212.7 148.7c6.2-6.2 16.4-6.2 22.6 0l160 160c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0L224 182.6 75.3 331.3c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l160-160z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faAngleUp=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})($S);var KS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fal",e="angle-left",i=320,r=512,n=[8249],s="f104",a="M52.7 267.3c-6.2-6.2-6.2-16.4 0-22.6l160-160c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6L86.6 256 235.3 404.7c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0l-160-160z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faAngleLeft=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(KS);var YS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fal",e="angle-right",i=320,r=512,n=[8250],s="f105",a="M267.3 244.7c6.2 6.2 6.2 16.4 0 22.6l-160 160c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6L233.4 256 84.7 107.3c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0l160 160z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faAngleRight=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(YS);var qS={},XS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fal",e="magnifying-glass",i=512,r=512,n=[128269,"search"],s="f002",a="M384 208A176 176 0 1 0 32 208a176 176 0 1 0 352 0zM343.3 366C307 397.2 259.7 416 208 416C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208c0 51.7-18.8 99-50 135.3L507.3 484.7c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0L343.3 366z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faMagnifyingGlass=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(XS);(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t=XS;o.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},o.faSearch=o.definition,o.prefix=t.prefix,o.iconName=t.iconName,o.width=t.width,o.height=t.height,o.ligatures=t.aliases,o.unicode=t.unicode,o.svgPathData=t.svgPathData,o.aliases=t.aliases})(qS);var QS={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t="fal",e="check",i=448,r=512,n=[10003,10004],s="f00c",a="M443.3 100.7c6.2 6.2 6.2 16.4 0 22.6l-272 272c-6.2 6.2-16.4 6.2-22.6 0l-144-144c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L160 361.4 420.7 100.7c6.2-6.2 16.4-6.2 22.6 0z";o.definition={prefix:t,iconName:e,icon:[i,r,n,s,a]},o.faCheck=o.definition,o.prefix=t,o.iconName=e,o.width=i,o.height=r,o.ligatures=n,o.unicode=s,o.svgPathData=a,o.aliases=n})(QS);fl.autoAddCss=!0;fl.keepOriginalSource=!1;fl.autoReplaceSvg=!0;fl.observeMutations=!1;fl.searchPseudoElements=!0;sN.add(sS.faPlus,aS.faMinus,cS.faAngleDown,dS.faAngleRight,lS.faWindowClose,pS.faCircleNotch,fS.faMapMarker,vS.faUsers,gS.faPhone,yS.faCheck,mS.faGlobe,CS.faSuitcase,wS.faChevronDown,SS.faChevronUp,ES.faEnvelope,_S.faFileDownload,bS.faCaretDown,TS.faCaretUp,RS.faFilePdf,AS.faFileWord,PS.faCirclePlay,DS.faSuitcase,LS.faMapMarkerAlt,MS.faPlus,IS.faMinus,xS.faGlobe,NS.faFileAlt,HS.faCheck,VS.faAngleLeft,kS.faAngleRight,BS.faAngleDown,jS.faAngleUp,WS.faQuoteLeft,US.faQuoteRight,$S.faAngleUp,KS.faAngleLeft,YS.faAngleRight,zS.faPlus,qS.faSearch,QS.faCheck);aN.watch();document.querySelectorAll(".svg").forEach(function(o){var t=o.getAttribute("id"),e=o.getAttribute("class"),i=o.getAttribute("src");fetch(i).then(r=>r.text()).then(r=>{var n=new DOMParser,s=n.parseFromString(r,"image/svg+xml"),a=s.querySelector("svg");typeof t<"u"&&a.setAttribute("id",t),typeof e<"u"&&a.setAttribute("class",e+" svg--replaced"),a.removeAttribute("xmlns:a"),o.parentNode.replaceChild(a,o)})});var JS={exports:{}};(function(o){(function(t,e){o.exports?o.exports=e():t.SimpleLightbox=e()})(kf,function(){function t(l){for(var u=1;u<arguments.length;u++){var c=arguments[u];if(c)for(var p in c)c.hasOwnProperty(p)&&(l[p]=c[p])}return l}function e(l,u){l&&u&&(l.className+=" "+u)}function i(l,u){l&&u&&(l.className=l.className.replace(new RegExp("(\\s|^)"+u+"(\\s|$)")," ").trim())}function r(l){var u=document.createElement("div");return u.innerHTML=l.trim(),u.childNodes[0]}function n(l,u){return(l.matches||l.matchesSelector||l.msMatchesSelector).call(l,u)}function s(){return"innerHeight"in window?window.innerHeight:document.documentElement.offsetHeight}function a(l){this.init.apply(this,arguments)}return a.defaults={elementClass:"",elementLoadingClass:"slbLoading",htmlClass:"slbActive",closeBtnClass:"",nextBtnClass:"",prevBtnClass:"",loadingTextClass:"",closeBtnCaption:"Close",nextBtnCaption:"Next",prevBtnCaption:"Previous",loadingCaption:"Loading...",bindToItems:!0,closeOnOverlayClick:!0,closeOnEscapeKey:!0,nextOnImageClick:!0,showCaptions:!0,captionAttribute:"title",urlAttribute:"href",startAt:0,loadingTimeout:100,appendTarget:"body",beforeSetContent:null,beforeClose:null,afterClose:null,beforeDestroy:null,afterDestroy:null,videoRegex:new RegExp(/youtube.com|vimeo.com/)},t(a.prototype,{init:function(l){l=this.options=t({},a.defaults,l);var u=this,c;l.$items&&(c=l.$items.get()),l.elements&&(c=[].slice.call(typeof l.elements=="string"?document.querySelectorAll(l.elements):l.elements)),this.eventRegistry={lightbox:[],thumbnails:[]}
1043,this.items=[],this.captions=[],c&&c.forEach(function(p,f){u.items.push(p.getAttribute(l.urlAttribute)),u.captions.push(p.getAttribute(l.captionAttribute)),l.bindToItems&&u.addEvent(p,"click",function(v){v.preventDefault(),u.showPosition(f)},"thumbnails")}),l.items&&(this.items=l.items),l.captions&&(this.captions=l.captions)},addEvent:function(l,u,c,p){return this.eventRegistry[p||"lightbox"].push({element:l,eventName:u,callback:c}),l.addEventListener(u,c),this},removeEvents:function(l){return this.eventRegistry[l].forEach(function(u){u.element.removeEventListener(u.eventName,u.callback)}),this.eventRegistry[l]=[],this},next:function(){return this.showPosition(this.currentPosition+1)},prev:function(){return this.showPosition(this.currentPosition-1)},normalizePosition:function(l){return l>=this.items.length?l=0:l<0&&(l=this.items.length-1),l},showPosition:function(l){var u=this.normalizePosition(l);return typeof this.currentPosition<"u"&&(this.direction=u>this.currentPosition?"next":"prev"),this.currentPosition=u,this.setupLightboxHtml().prepareItem(this.currentPosition,this.setContent).show()},loading:function(l){var u=this,c=this.options;l?this.loadingTimeout=setTimeout(function(){e(u.$el,c.elementLoadingClass),u.$content.innerHTML='<p class="slbLoadingText '+c.loadingTextClass+'">'+c.loadingCaption+"</p>",u.show()},c.loadingTimeout):(i(this.$el,c.elementLoadingClass),clearTimeout(this.loadingTimeout))},prepareItem:function(l,u){var c=this,p=this.items[l];if(this.loading(!0),this.options.videoRegex.test(p))u.call(c,r('<div class="slbIframeCont"><iframe class="slbIframe" frameborder="0" allowfullscreen src="'+p+'"></iframe></div>'));else{var f=r('<div class="slbImageWrap"><img class="slbImage" src="'+p+'" /></div>');this.$currentImage=f.querySelector(".slbImage"),this.options.showCaptions&&this.captions[l]&&f.appendChild(r('<div class="slbCaption">'+this.captions[l]+"</div>")),this.loadImage(p,function(){c.setImageDimensions(),u.call(c,f),c.loadImage(c.items[c.normalizePosition(c.currentPosition+1)])})}return this},loadImage:function(l,u){if(!this.options.videoRegex.test(l)){var c=new Image;u&&(c.onload=u),c.src=l}},setupLightboxHtml:function(){var l=this.options;return this.$el||(this.$el=r('<div class="slbElement '+l.elementClass+'"><div class="slbOverlay"></div><div class="slbWrapOuter"><div class="slbWrap"><div class="slbContentOuter"><div class="slbContent"></div><button type="button" title="'+l.closeBtnCaption+'" class="slbCloseBtn '+l.closeBtnClass+'">Ã</button>'+(this.items.length>1?'<div class="slbArrows"><button type="button" title="'+l.prevBtnCaption+'" class="prev slbArrow'+l.prevBtnClass+'">'+l.prevBtnCaption+'</button><button type="button" title="'+l.nextBtnCaption+'" class="next slbArrow'+l.nextBtnClass+'">'+l.nextBtnCaption+"</button></div>":"")+"</div></div></div></div>"),this.$content=this.$el.querySelector(".slbContent")),this.$content.innerHTML="",this},show:function(){return this.modalInDom||(document.querySelector(this.options.appendTarget).appendChild(this.$el),e(document.documentElement,this.options.htmlClass),this.setupLightboxEvents(),this.modalInDom=!0),this},setContent:function(l){var u=typeof l=="string"?r(l):l;return this.loading(!1),this.setupLightboxHtml(),i(this.$content,"slbDirectionNext"),i(this.$content,"slbDirectionPrev"),this.direction&&e(this.$content,this.direction==="next"?"slbDirectionNext":"slbDirectionPrev"),this.options.beforeSetContent&&this.options.beforeSetContent(u,this),this.$content.appendChild(u),this},setImageDimensions:function(){this.$currentImage&&(this.$currentImage.style.maxHeight=s()+"px")},setupLightboxEvents:function(){var l=this;return this.eventRegistry.lightbox.length?this:(this.addEvent(this.$el,"click",function(u){var c=u.target;n(c,".slbCloseBtn")||l.options.closeOnOverlayClick&&n(c,".slbWrap")?l.close():n(c,".slbArrow")?n(c,".next")?l.next():l.prev():l.options.nextOnImageClick&&l.items.length>1&&n(c,".slbImage")&&l.next()}).addEvent(document,"keyup",function(u){l.options.closeOnEscapeKey&&u.keyCode===27&&l.close(),l.items.length>1&&((u.keyCode===39||u.keyCode===68)&&l.next(),(u.keyCode===37||u.keyCode===65)&&l.prev())}
vendor: 24,272 bytes, lines 1043-1048
1043).addEvent(window,"resize",function(){l.setImageDimensions()}),this)},close:function(){this.modalInDom&&(this.runHook("beforeClose"),this.removeEvents("lightbox"),this.$el&&this.$el.parentNode.removeChild(this.$el),i(document.documentElement,this.options.htmlClass),this.modalInDom=!1,this.runHook("afterClose")),this.direction=void 0,this.currentPosition=this.options.startAt},destroy:function(){this.close(),this.runHook("beforeDestroy"),this.removeEvents("thumbnails"),this.runHook("afterDestroy")},runHook:function(l){this.options[l]&&this.options[l](this)}}),a.open=function(l){var u=new a(l);return l.content?u.setContent(l.content).show():u.showPosition(u.options.startAt)},a.registerAsJqueryPlugin=function(l){l.fn.simpleLightbox=function(u){var c,p=this;return this.each(function(){l.data(this,"simpleLightbox")||(c=c||new a(l.extend({},u,{$items:p})),l.data(this,"simpleLightbox",c))})},l.SimpleLightbox=a},typeof window<"u"&&window.jQuery&&a.registerAsJqueryPlugin(window.jQuery),a})})(JS);var lN=JS.exports;const uN=Zm(lN);function $y(o,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(o,i.key,i)}}function cN(o,t,e){return t&&$y(o.prototype,t),e&&$y(o,e),Object.defineProperty(o,"prototype",{writable:!1}),o}/*! 1044 * Splide.js 1045 * Version : 4.1.4 1046 * License : MIT 1047 * Copyright: 2022 Naotoshi Fujita 1048 */var Ky="(prefers-reduced-motion: reduce)",cs=1,dN=2,Ts=3,Hs=4,hl=5,Lu=6,dc=7,pN={CREATED:cs,MOUNTED:dN,IDLE:Ts,MOVING:Hs,SCROLLING:hl,DRAGGING:Lu,DESTROYED:dc};function Zr(o){o.length=0}function kn(o,t,e){return Array.prototype.slice.call(o,t,e)}function gt(o){return o.bind.apply(o,[null].concat(kn(arguments,1)))}var ZS=setTimeout,Tf=function(){};function Yy(o){return requestAnimationFrame(o)}function Hc(o,t){return typeof t===o}function Ja(o){return!Uh(o)&&Hc("object",o)}var Wh=Array.isArray,eE=gt(Hc,"function"),Ln=gt(Hc,"string"),vl=gt(Hc,"undefined");function Uh(o){return o===null}function tE(o){try{return o instanceof(o.ownerDocument.defaultView||window).HTMLElement}catch{return!1}}function gl(o){return Wh(o)?o:[o]}function Wi(o,t){gl(o).forEach(t)}function zh(o,t){return o.indexOf(t)>-1}function Fu(o,t){return o.push.apply(o,gl(t)),o}function Wr(o,t,e){o&&Wi(t,function(i){i&&o.classList[e?"add":"remove"](i)})}function Lr(o,t){Wr(o,Ln(t)?t.split(" "):t,!0)}function yl(o,t){Wi(t,o.appendChild.bind(o))}function $h(o,t){Wi(o,function(e){var i=(t||e).parentNode;i&&i.insertBefore(e,t)})}function Za(o,t){return tE(o)&&(o.msMatchesSelector||o.matches).call(o,t)}function iE(o,t){var e=o?kn(o.children):[];return t?e.filter(function(i){return Za(i,t)}):e}function ml(o,t){return t?iE(o,t)[0]:o.firstElementChild}var el=Object.keys;function mo(o,t,e){return o&&(e?el(o).reverse():el(o)).forEach(function(i){i!=="__proto__"&&t(o[i],i)}),o}function tl(o){return kn(arguments,1).forEach(function(t){mo(t,function(e,i){o[i]=t[i]})}),o}function bn(o){return kn(arguments,1).forEach(function(t){mo(t,function(e,i){Wh(e)?o[i]=e.slice():Ja(e)?o[i]=bn({},Ja(o[i])?o[i]:{},e):o[i]=e})}),o}function qy(o,t){Wi(t||el(o),function(e){delete o[e]})}function Fr(o,t){Wi(o,function(e){Wi(t,function(i){e&&e.removeAttribute(i)})})}function Ye(o,t,e){Ja(t)?mo(t,function(i,r){Ye(o,r,i)}):Wi(o,function(i){Uh(e)||e===""?Fr(i,t):i.setAttribute(t,String(e))})}function ys(o,t,e){var i=document.createElement(o);return t&&(Ln(t)?Lr(i,t):Ye(i,t)),e&&yl(e,i),i}function er(o,t,e){if(vl(e))return getComputedStyle(o)[t];Uh(e)||(o.style[t]=""+e)}function il(o,t){er(o,"display",t)}function rE(o){o.setActive&&o.setActive()||o.focus({preventScroll:!0})}function ir(o,t){return o.getAttribute(t)}function Xy(o,t){return o&&o.classList.contains(t)}function Gi(o){return o.getBoundingClientRect()}function _o(o){Wi(o,function(t){t&&t.parentNode&&t.parentNode.removeChild(t)})}function nE(o){return ml(new DOMParser().parseFromString(o,"text/html").body)}function Br(o,t){o.preventDefault(),t&&(o.stopPropagation(),o.stopImmediatePropagation())}function oE(o,t){return o&&o.querySelector(t)}function Kh(o,t){return t?kn(o.querySelectorAll(t)):[]}function Ur(o,t){Wr(o,t,!1)}function Rf(o){return o.timeStamp}function ro(o){return Ln(o)?o:o?o+"px":""}var Cl="splide",Yh="data-"+Cl;function Na(o,t){if(!o)throw new Error("["+Cl+"] "+(t||""))}var Fn=Math.min,pc=Math.max,fc=Math.floor,rl=Math.ceil,fi=Math.abs;function sE(o,t,e){return fi(o-t)<e}function Mu(o,t,e,i){var r=Fn(t,e),n=pc(t,e);return i?r<o&&o<n:r<=o&&o<=n}function Jo(o,t,e){var i=Fn(t,e),r=pc(t,e);return Fn(pc(i,o),r)}function Af(o){return+(o>0)-+(o<0)}function Pf(o,t){return Wi(t,function(e){o=o.replace("%s",""+e)}),o}function qh(o){return o<10?"0"+o:""+o}var Qy={};function fN(o){return""+o+qh(Qy[o]=(Qy[o]||0)+1)}function aE(){var o=[];function t(s,a,l,u){r(s,a,function(c,p,f){var v="addEventListener"in c,y=v?c.removeEventListener.bind(c,p,l,u):c.removeListener.bind(c,l);v?c.addEventListener(p,l,u):c.addListener(l),o.push([c,p,f,l,y])})}function e(s,a,l){r(s,a,function(u,c,p){o=o.filter(function(f){return f[0]===u&&f[1]===c&&f[2]===p&&(!l||f[3]===l)?(f[4](),!1):!0})})}function i(s,a,l){var u,c=!0;return typeof CustomEvent=="function"?u=new CustomEvent(a,{bubbles:c,detail:l}):(u=document.createEvent("CustomEvent"),u.initCustomEvent(a,c,!1,l)),s.dispatchEvent(u),u}function r(s,a,l){Wi(s,function(u){u&&Wi(a,function(c){c.split(" ").forEach(function(p){var f=p.split(".");l(u,f[0],f[1])})})})}function n(){o.forEach(function(s){s[4]()}),Zr(o)}return{bind:t,unbind:e,dispatch:i,destroy:n}}var Lo="mounted",Jy="ready",Mn="move",wl="moved",lE="click",hN="active",vN="inactive",gN="visible",yN="hidden",xt="refresh",vi="updated",nl="resize",Xh="resized",mN="drag",CN="dragging",wN="dragged",Qh="scroll",Vs="scrolled",SN="overflow",uE="destroy",EN="arrows:mounted",_N="arrows:updated",ON="pagination:mounted",bN="pagination:updated",cE="navigation:mounted",dE="autoplay:play",TN="autoplay:playing",pE="autoplay:pause",fE="lazyload:loaded",hE="sk",vE="sh",hc="ei";function St(o){var t=o?o.event.bus:document.createDocumentFragment(),e=aE();function i(n,s){e.bind(t,gl(n).join(" "),function(a){s.apply(s,Wh(a.detail)?a.detail:[])})}function r(n){e.dispatch(t,n,kn(arguments,1))}return o&&o.event.on(uE,e.destroy),tl(e,{bus:t,on:i,off:gt(e.unbind,t),emit:r})}function Vc(o,t,e,i){var r=Date.now,n,s=0,a,l=!0,u=0;function c(){if(!l){if(s=o?Fn((r()-n)/o,1):1,e&&e(s),s>=1&&(t(),n=r(),i&&++u>=i))return f();a=Yy(c)}}function p(O){O||y(),n=r()-(O?s*o:0),l=!1,a=Yy(c)}function f(){l=!0}function v(){n=r(),s=0,e&&e(s)}function y(){a&&cancelAnimationFrame(a),s=0,a=0,l=!0}function w(O){o=O}function b(){return l}return{start:p,rewind:v,pause:f,cancel:y,set:w,isPaused:b}}function RN(o){var t=o;function e(r){t=r}function i(r){return zh(gl(r),t)}return{set:e,is:i}}function AN(o,t){var e=Vc(t||0,o,null,1);return function(){e.isPaused()&&e.start()}}function PN(o,t,e){var i=o.state,r=e.breakpoints||{},n=e.reducedMotion||{},s=aE(),a=[];function l(){var y=e.mediaQuery==="min";el(r).sort(function(w,b){return y?+w-+b:+b-+w}).forEach(function(w){c(r[w],"("+(y?"min":"max")+"-width:"+w+"px)")}),c(n,Ky),p()}function u(y){y&&s.destroy()}function c(y,w){var b=matchMedia(w);s.bind(b,"change",p),a.push([y,b])}function p(){var y=i.is(dc),w=e.direction,b=a.reduce(function(O,A){return bn(O,A[1].matches?A[0]:{})},{});qy(e),v(b),e.destroy?o.destroy(e.destroy==="completely"):y?(u(!0),o.mount()):w!==e.direction&&o.refresh()}function f(y){matchMedia(Ky).matches&&(y?bn(e,n):qy(e,el(n)))}function v(y,w,b){bn(e,y),w&&bn(Object.getPrototypeOf(e),y),(b||!i.is(cs))&&o.emit(vi,e)}return{setup:l,destroy:u,reduce:f,set:v}}var kc="Arrow",Bc=kc+"Left",jc=kc+"Right",gE=kc+"Up",yE=kc+"Down",Zy="rtl",Wc="ttb",Dp={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[gE,jc],ArrowRight:[yE,Bc]};function DN(o,t,e){function i(n,s,a){a=a||e.direction;var l=a===Zy&&!s?1:a===Wc?0:-1;return Dp[n]&&Dp[n][l]||n.replace(/width|left|right/i,function(u,c){var p=Dp[u.toLowerCase()][l]||u;return c>0?p.charAt(0).toUpperCase()+p.slice(1):p})}function r(n){return n*(e.direction===Zy?1:-1)}return{resolve:i,orient:r}}var $r="role",ms="tabindex",LN="disabled",ar="aria-",Sl=ar+"controls",mE=ar+"current",em=ar+"selected",Vi=ar+"label",Jh=ar+"labelledby",CE=ar+"hidden",Zh=ar+"orientation",ol=ar+"roledescription",tm=ar+"live",im=ar+"busy",rm=ar+"atomic",ev=[$r,ms,LN,Sl,mE,Vi,Jh,CE,Zh,ol],Ir=Cl+"__",Bn="is-",Lp=Cl,nm=Ir+"track",FN=Ir+"list",Uc=Ir+"slide",wE=Uc+"--clone",MN=Uc+"__container",tv=Ir+"arrows",zc=Ir+"arrow",SE=zc+"--prev",EE=zc+"--next",$c=Ir+"pagination",_E=$c+"__page",IN=Ir+"progress",xN=IN+"__bar",NN=Ir+"toggle",GN=Ir+"spinner",HN=Ir+"sr",VN=Bn+"initialized",Oo=Bn+"active",OE=Bn+"prev",bE=Bn+"next",Df=Bn+"visible",Lf=Bn+"loading",TE=Bn+"focus-in",RE=Bn+"overflow",kN=[Oo,Df,OE,bE,Lf,TE,RE],BN={slide:Uc,clone:wE,arrows:tv,arrow:zc,prev:SE,next:EE,pagination:$c,page:_E,spinner:GN};function jN(o,t){if(eE(o.closest))return o.closest(t);for(var e=o;e&&e.nodeType===1&&!Za(e,t);)e=e.parentElement;return e}var WN=5,om=200,AE="touchstart mousedown",Fp="touchmove mousemove",Mp="touchend touchcancel mouseup click";function UN(o,t,e){var i=St(o),r=i.on,n=i.bind,s=o.root,a=e.i18n,l={},u=[],c=[],p=[],f,v,y;function w(){P(),L(),A()}function b(){r(xt,O),r(xt,w),r(vi,A),n(document,AE+" keydown",function(g){y=g.type==="keydown"},{capture:!0}),n(s,"focusin",function(){Wr(s,TE,!!y)})}function O(g){var N=ev.concat("style");Zr(u),Ur(s,c),Ur(f,p),Fr([f,v],N),Fr(s,g?N:["style",ol])}function A(){Ur(s,c),Ur(f,p),c=H(Lp),p=H(nm),Lr(s,c),Lr(f,p),Ye(s,Vi,e.label),Ye(s,Jh,e.labelledby)}function P(){f=x("."+nm),v=ml(f,"."+FN),Na(f&&v,"A track/list element is missing."),Fu(u,iE(v,"."+Uc+":not(."+wE+")")),mo({arrows:tv,pagination:$c,prev:SE,next:EE,bar:xN,toggle:NN},function(g,N){l[N]=x("."+g)}),tl(l,{root:s,track:f,list:v,slides:u})}function L(){var g=s.id||fN(Cl),N=e.role;s.id=g,f.id=f.id||g+"-track",v.id=v.id||g+"-list",!ir(s,$r)&&s.tagName!=="SECTION"&&N&&Ye(s,$r,N),Ye(s,ol,a.carousel),Ye(v,$r,"presentation")}function x(g){var N=oE(s,g);return N&&jN(N,"."+Lp)===s?N:void 0}function H(g){return[g+"--"+e.type,g+"--"+e.direction,e.drag&&g+"--draggable",e.isNavigation&&g+"--nav",g===Lp&&Oo]}return tl(l,{setup:w,mount:b,destroy:O})}var Rs="slide",ks="loop",El="fade";function zN(o,t,e,i){var r=St(o),n=r.on,s=r.emit,a=r.bind,l=o.Components,u=o.root,c=o.options,p=c.isNavigation,f=c.updateOnMove,v=c.i18n,y=c.pagination,w=c.slideFocus,b=l.Direction.resolve,O=ir(i,"style"),A=ir(i,Vi),P=e>-1,L=ml(i,"."+MN),x;function H(){P||(i.id=u.id+"-slide"+qh(t+1),Ye(i,$r,y?"tabpanel":"group"),Ye(i,ol,v.slide),Ye(i,Vi,A||Pf(v.slideLabel,[t+1,o.length]))),g()}function g(){a(i,"click",gt(s,lE,ve)),a(i,"keydown",gt(s,hE,ve)),n([wl,vE,Vs],I),n(cE,V),f&&n(Mn,z)}function N(){x=!0,r.destroy(),Ur(i,kN),Fr(i,ev),Ye(i,"style",O),Ye(i,Vi,A||"")}function V(){var pe=o.splides.map(function(ne){var ye=ne.splide.Components.Slides.getAt(t);return ye?ye.slide.id:""}).join(" ");Ye(i,Vi,Pf(v.slideX,(P?e:t)+1)),Ye(i,Sl,pe),Ye(i,$r,w?"button":""),w&&Fr(i,ol)}function z(){x||I()}function I(){if(!x){var pe=o.index;k(),j(),Wr(i,OE,t===pe-1),Wr(i,bE,t===pe+1)}}function k(){var pe=re();pe!==Xy(i,Oo)&&(Wr(i,Oo,pe),Ye(i,mE,p&&pe||""),s(pe?hN:vN,ve))}function j(){var pe=ge(),ne=!pe&&(!re()||P);if(o.state.is([Hs,hl])||Ye(i,CE,ne||""),Ye(Kh(i,c.focusableNodes||""),ms,ne?-1:""),w&&Ye(i,ms,ne?-1:0),pe!==Xy(i,Df)&&(Wr(i,Df,pe),s(pe?gN:yN,ve)),!pe&&document.activeElement===i){var ye=l.Slides.getAt(o.index);ye&&rE(ye.slide)}}function X(pe,ne,ye){er(ye&&L||i,pe,ne)}function re(){var pe=o.index;return pe===t||c.cloneStatus&&pe===e}function ge(){if(o.is(El))return re();var pe=Gi(l.Elements.track),ne=Gi(i),ye=b("left",!0),Pe=b("right",!0);return fc(pe[ye])<=rl(ne[ye])&&fc(ne[Pe])<=rl(pe[Pe])}function ae(pe,ne){var ye=fi(pe-t);return!P&&(c.rewind||o.is(ks))&&(ye=Fn(ye,o.length-ye)),ye<=ne}var ve={index:t,slideIndex:e,slide:i,container:L,isClone:P,mount:H,destroy:N,update:I,style:X,isWithin:ae};return ve}function $N(o,t,e){var i=St(o),r=i.on,n=i.emit,s=i.bind,a=t.Elements,l=a.slides,u=a.list,c=[];function p(){f(),r(xt,v),r(xt,f)}function f(){l.forEach(function(I,k){w(I,k,-1)})}function v(){x(function(I){I.destroy()}),Zr(c)}function y(){x(function(I){I.update()})}function w(I,k,j){var X=zN(o,k,j,I);X.mount(),c.push(X),c.sort(function(re,ge){return re.index-ge.index})}function b(I){return I?H(function(k){return!k.isClone}):c}function O(I){var k=t.Controller,j=k.toIndex(I),X=k.hasFocus()?1:e.perPage;return H(function(re){return Mu(re.index,j,j+X-1)})}function A(I){return H(I)[0]}function P(I,k){Wi(I,function(j){if(Ln(j)&&(j=nE(j)),tE(j)){var X=l[k];X?$h(j,X):yl(u,j),Lr(j,e.classes.slide),N(j,gt(n,nl))}}),n(xt)}function L(I){_o(H(I).map(function(k){return k.slide})),n(xt)}function x(I,k){b(k).forEach(I)}function H(I){return c.filter(eE(I)?I:function(k){return Ln(I)?Za(k.slide,I):zh(gl(I),k.index)})}function g(I,k,j){x(function(X){X.style(I,k,j)})}function N(I,k){var j=Kh(I,"img"),X=j.length;X?j.forEach(function(re){s(re,"load error",function(){--X||k()})}):k()}function V(I){return I?l.length:c.length}function z(){return c.length>e.perPage}return{mount:p,destroy:v,update:y,register:w,get:b,getIn:O,getAt:A,add:P,remove:L,forEach:x,filter:H,style:g,getLength:V,isEnough:z}}function KN(o,t,e){var i=St(o),r=i.on,n=i.bind,s=i.emit,a=t.Slides,l=t.Direction.resolve,u=t.Elements,c=u.root,p=u.track,f=u.list,v=a.getAt,y=a.style,w,b,O;function A(){P(),n(window,"resize load",AN(gt(s,nl))),r([vi,xt],P),r(nl,L)}function P(){w=e.direction===Wc,er(c,"maxWidth",ro(e.width)),er(p,l("paddingLeft"),x(!1)),er(p,l("paddingRight"),x(!0)),L(!0)}function L(ve){var pe=Gi(c);(ve||b.width!==pe.width||b.height!==pe.height)&&(er(p,"height",H()),y(l("marginRight"),ro(e.gap)),y("width",N()),y("height",V(),!0),b=pe,s(Xh),O!==(O=ae())&&(Wr(c,RE,O),s(SN,O)))}function x(ve){var pe=e.padding,ne=l(ve?"right":"left");return pe&&ro(pe[ne]||(Ja(pe)?0:pe))||"0px"}function H(){var ve="";return w&&(ve=g(),Na(ve,"height or heightRatio is missing."),ve="calc("+ve+" - "+x(!1)+" - "+x(!0)+")"),ve}function g(){return ro(e.height||Gi(f).width*e.heightRatio)}function N(){return e.autoWidth?null:ro(e.fixedWidth)||(w?"":z())}function V(){return ro(e.fixedHeight)||(w?e.autoHeight?null:z():g())}function z(){var ve=ro(e.gap);return"calc((100%"+(ve&&" + "+ve)+")/"+(e.perPage||1)+(ve&&" - "+ve)+")"}function I(){return Gi(f)[l("width")]}function k(ve,pe){var ne=v(ve||0);return ne?Gi(ne.slide)[l("width")]+(pe?0:re()):0}function j(ve,pe){var ne=v(ve);if(ne){var ye=Gi(ne.slide)[l("right")],Pe=Gi(f)[l("left")];return fi(ye-Pe)+(pe?0:re())}return 0}function X(ve){return j(o.length-1)-j(0)+k(0,ve)}function re(){var ve=v(0);return ve&&parseFloat(er(ve.slide,l("marginRight")))||0}function ge(ve){return parseFloat(er(p,l("padding"+(ve?"Right":"Left"))))||0}function ae(){return o.is(El)||X(!0)>I()}return{mount:A,resize:L,listSize:I,slideSize:k,sliderSize:X,totalSize:j,getPadding:ge,isOverflow:ae}}var YN=2;function qN(o,t,e){var i=St(o),r=i.on,n=t.Elements,s=t.Slides,a=t.Direction.resolve,l=[],u;function c(){r(xt,p),r([vi,nl],v),(u=b())&&(y(u),t.Layout.resize(!0))}function p(){f(),c()}function f(){_o(l),Zr(l),i.destroy()}function v(){var O=b();u!==O&&(u<O||!O)&&i.emit(xt)}function y(O){var A=s.get().slice(),P=A.length;if(P){for(;A.length<O;)Fu(A,A);Fu(A.slice(-O),A.slice(0,O)).forEach(function(L,x){var H=x<O,g=w(L.slide,x);H?$h(g,A[0].slide):yl(n.list,g),Fu(l,g),s.register(g,x-O+(H?0:P),L.index)})}}function w(O,A){var P=O.cloneNode(!0);return Lr(P,e.classes.clone),P.id=o.root.id+"-clone"+qh(A+1),P}function b(){var O=e.clones;if(!o.is(ks))O=0;else if(vl(O)){var A=e[a("fixedWidth")]&&t.Layout.slideSize(0),P=A&&rl(Gi(n.track)[a("width")]/A);O=P||e[a("autoWidth")]&&o.length||e.perPage*YN}return O}return{mount:c,destroy:f}}function XN(o,t,e){var i=St(o),r=i.on,n=i.emit,s=o.state.set,a=t.Layout,l=a.slideSize,u=a.getPadding,c=a.totalSize,p=a.listSize,f=a.sliderSize,v=t.Direction,y=v.resolve,w=v.orient,b=t.Elements,O=b.list,A=b.track,P;function L(){P=t.Transition,r([Lo,Xh,vi,xt],x)}function x(){t.Controller.isBusy()||(t.Scroll.cancel(),g(o.index),t.Slides.update())}function H(ne,ye,Pe,Se){ne!==ye&&ve(ne>Pe)&&(I(),N(z(X(),ne>Pe),!0)),s(Hs),n(Mn,ye,Pe,ne),P.start(ye,function(){s(Ts),n(wl,ye,Pe,ne),Se&&Se()})}function g(ne){N(j(ne,!0))}function N(ne,ye){if(!o.is(El)){var Pe=ye?ne:V(ne);er(O,"transform","translate"+y("X")+"("+Pe+"px)"),ne!==Pe&&n(vE)}}function V(ne){if(o.is(ks)){var ye=k(ne),Pe=ye>t.Controller.getEnd(),Se=ye<0;(Se||Pe)&&(ne=z(ne,Pe))}return ne}function z(ne,ye){var Pe=ne-ae(ye),Se=f();return ne-=w(Se*(rl(fi(Pe)/Se)||1))*(ye?1:-1),ne}function I(){N(X(),!0),P.cancel()}function k(ne){for(var ye=t.Slides.get(),Pe=0,Se=1/0,Ge=0;Ge<ye.length;Ge++){var st=ye[Ge].index,ce=fi(j(st,!0)-ne);if(ce<=Se)Se=ce,Pe=st;else break}return Pe}function j(ne,ye){var Pe=w(c(ne-1)-ge(ne));return ye?re(Pe):Pe}function X(){var ne=y("left");return Gi(O)[ne]-Gi(A)[ne]+w(u(!1))}function re(ne){return e.trimSpace&&o.is(Rs)&&(ne=Jo(ne,0,w(f(!0)-p()))),ne}function ge(ne){var ye=e.focus;return ye==="center"?(p()-l(ne,!0))/2:+ye*l(ne)||0}function ae(ne){return j(ne?t.Controller.getEnd():0,!!e.trimSpace)}function ve(ne){var ye=w(z(X(),ne));return ne?ye>=0:ye<=O[y("scrollWidth")]-Gi(A)[y("width")]}function pe(ne,ye){ye=vl(ye)?X():ye;var Pe=ne!==!0&&w(ye)<w(ae(!1)),Se=ne!==!1&&w(ye)>w(ae(!0));return Pe||Se}return{mount:L,move:H,jump:g,translate:N,shift:z,cancel:I,toIndex:k,toPosition:j,getPosition:X,getLimit:ae,exceededLimit:pe,reposition:x}}function QN(o,t,e){var i=St(o),r=i.on,n=i.emit,s=t.Move,a=s.getPosition,l=s.getLimit,u=s.toPosition,c=t.Slides,p=c.isEnough,f=c.getLength,v=e.omitEnd,y=o.is(ks),w=o.is(Rs),b=gt(X,!1),O=gt(X,!0),A=e.start||0,P,L=A,x,H,g;function N(){V(),r([vi,xt,hc],V),r(Xh,z)}function V(){x=f(!0),H=e.perMove,g=e.perPage,P=ve();var ce=Jo(A,0,v?P:x-1);ce!==A&&(A=ce,s.reposition())}function z(){P!==ve()&&n(hc)}function I(ce,xe,Ve){if(!st()){var Ue=j(ce),qe=ae(Ue);qe>-1&&(xe||qe!==A)&&(Pe(qe),s.move(Ue,qe,L,Ve))}}function k(ce,xe,Ve,Ue){t.Scroll.scroll(ce,xe,Ve,function(){var qe=ae(s.toIndex(a()));Pe(v?Fn(qe,P):qe),Ue&&Ue()})}function j(ce){var xe=A;if(Ln(ce)){var Ve=ce.match(/([+\-<>])(\d+)?/)||[],Ue=Ve[1],qe=Ve[2];Ue==="+"||Ue==="-"?xe=re(A+ +(""+Ue+(+qe||1)),A):Ue===">"?xe=qe?pe(+qe):b(!0):Ue==="<"&&(xe=O(!0))}else xe=y?ce:Jo(ce,0,P);return xe}function X(ce,xe){var Ve=H||(Ge()?1:g),Ue=re(A+Ve*(ce?-1:1),A,!(H||Ge()));return Ue===-1&&w&&!sE(a(),l(!ce),1)?ce?0:P:xe?Ue:ae(Ue)}function re(ce,xe,Ve){if(p()||Ge()){var Ue=ge(ce);Ue!==ce&&(xe=ce,ce=Ue,Ve=!1),ce<0||ce>P?!H&&(Mu(0,ce,xe,!0)||Mu(P,xe,ce,!0))?ce=pe(ne(ce)):y?ce=Ve?ce<0?-(x%g||g):x:ce:e.rewind?ce=ce<0?P:0:ce=-1:Ve&&ce!==xe&&(ce=pe(ne(xe)+(ce<xe?-1:1)))}else ce=-1;return ce}function ge(ce){if(w&&e.trimSpace==="move"&&ce!==A)for(var xe=a();xe===u(ce,!0)&&Mu(ce,0,o.length-1,!e.rewind);)ce<A?--ce:++ce;return ce}function ae(ce){return y?(ce+x)%x||0:ce}function ve(){for(var ce=x-(Ge()||y&&H?1:g);v&&ce-- >0;)if(u(x-1,!0)!==u(ce,!0)){ce++;break}return Jo(ce,0,x-1)}function pe(ce){return Jo(Ge()?ce:g*ce,0,P)}function ne(ce){return Ge()?Fn(ce,P):fc((ce>=P?x-1:ce)/g)}function ye(ce){var xe=s.toIndex(ce);return w?Jo(xe,0,P):xe}function Pe(ce){ce!==A&&(L=A,A=ce)}function Se(ce){return ce?L:A}function Ge(){return!vl(e.focus)||e.isNavigation}function st(){return o.state.is([Hs,hl])&&!!e.waitForTransition}return{mount:N,go:I,scroll:k,getNext:b,getPrev:O,getAdjacent:X,getEnd:ve,setIndex:Pe,getIndex:Se,toIndex:pe,toPage:ne,toDest:ye,hasFocus:Ge,isBusy:st}}var JN="http://www.w3.org/2000/svg",ZN="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z",Su=40;function eG(o,t,e){var i=St(o),r=i.on,n=i.bind,s=i.emit,a=e.classes,l=e.i18n,u=t.Elements,c=t.Controller,p=u.arrows,f=u.track,v=p,y=u.prev,w=u.next,b,O,A={};function P(){x(),r(vi,L)}function L(){H(),P()}function x(){var k=e.arrows;k&&!(y&&w)&&V(),y&&w&&(tl(A,{prev:y,next:w}),il(v,k?"":"none"),Lr(v,O=tv+"--"+e.direction),k&&(g(),I(),Ye([y,w],Sl,f.id),s(EN,y,w)))}function H(){i.destroy(),Ur(v,O),b?(_o(p?[y,w]:v),y=w=null):Fr([y,w],ev)}function g(){r([Lo,wl,xt,Vs,hc],I),n(w,"click",gt(N,">")),n(y,"click",gt(N,"<"))}function N(k){c.go(k,!0)}function V(){v=p||ys("div",a.arrows),y=z(!0),w=z(!1),b=!0,yl(v,[y,w]),!p&&$h(v,f)}function z(k){var j='<button class="'+a.arrow+" "+(k?a.prev:a.next)+'" type="button"><svg xmlns="'+JN+'" viewBox="0 0 '+Su+" "+Su+'" width="'+Su+'" height="'+Su+'" focusable="false"><path d="'+(e.arrowPath||ZN)+'" />';return nE(j)}function I(){if(y&&w){var k=o.index,j=c.getPrev(),X=c.getNext(),re=j>-1&&k<j?l.last:l.prev,ge=X>-1&&k>X?l.first:l.next;y.disabled=j<0,w.disabled=X<0,Ye(y,Vi,re),Ye(w,Vi,ge),s(_N,y,w,j,X)}}return{arrows:A,mount:P,destroy:H,update:I}}var tG=Yh+"-interval";function iG(o,t,e){var i=St(o),r=i.on,n=i.bind,s=i.emit,a=Vc(e.interval,o.go.bind(o,">"),g),l=a.isPaused,u=t.Elements,c=t.Elements,p=c.root,f=c.toggle,v=e.autoplay,y,w,b=v==="pause";function O(){v&&(A(),f&&Ye(f,Sl,u.track.id),b||P(),H())}function A(){e.pauseOnHover&&n(p,"mouseenter mouseleave",function(V){y=V.type==="mouseenter",x()}),e.pauseOnFocus&&n(p,"focusin focusout",function(V){w=V.type==="focusin",x()}),f&&n(f,"click",function(){b?P():L(!0)}),r([Mn,Qh,xt],a.rewind),r(Mn,N)}function P(){l()&&t.Slides.isEnough()&&(a.start(!e.resetProgress),w=y=b=!1,H(),s(dE))}function L(V){V===void 0&&(V=!0),b=!!V,H(),l()||(a.pause(),s(pE))}function x(){b||(y||w?L(!1):P())}function H(){f&&(Wr(f,Oo,!b),Ye(f,Vi,e.i18n[b?"play":"pause"]))}function g(V){var z=u.bar;z&&er(z,"width",V*100+"%"),s(TN,V)}function N(V){var z=t.Slides.getAt(V);a.set(z&&+ir(z.slide,tG)||e.interval)}return{mount:O,destroy:a.cancel,play:P,pause:L,isPaused:l}}function rG(o,t,e){var i=St(o),r=i.on;function n(){e.cover&&(r(fE,gt(a,!0)),r([Lo,vi,xt],gt(s,!0)))}function s(l){t.Slides.forEach(function(u){var c=ml(u.container||u.slide,"img");c&&c.src&&a(l,c,u)})}function a(l,u,c){c.style("background",l?'center/cover no-repeat url("'+u.src+'")':"",!0),il(u,l?"none":"")}return{mount:n,destroy:gt(s,!1)}}var nG=10,oG=600,sG=.6,aG=1.5,lG=800;function uG(o,t,e){var i=St(o),r=i.on,n=i.emit,s=o.state.set,a=t.Move,l=a.getPosition,u=a.getLimit,c=a.exceededLimit,p=a.translate,f=o.is(Rs),v,y,w=1;function b(){r(Mn,L),r([vi,xt],x)}function O(g,N,V,z,I){var k=l();if(L(),V&&(!f||!c())){var j=t.Layout.sliderSize(),X=Af(g)*j*fc(fi(g)/j)||0;g=a.toPosition(t.Controller.toDest(g%j))+X}var re=sE(k,g,1);w=1,N=re?0:N||pc(fi(g-k)/aG,lG),y=z,v=Vc(N,A,gt(P,k,g,I),1),s(hl),n(Qh),v.start()}function A(){s(Ts),y&&y(),n(Vs)}function P(g,N,V,z){var I=l(),k=g+(N-g)*H(z),j=(k-I)*w;p(I+j),f&&!V&&c()&&(w*=sG,fi(j)<nG&&O(u(c(!0)),oG,!1,y,!0))}function L(){v&&v.cancel()}function x(){v&&!v.isPaused()&&(L(),A())}function H(g){var N=e.easingFunc;return N?N(g):1-Math.pow(1-g,4)}return{mount:b,destroy:L,scroll:O,cancel:x}}var Zo={passive:!1,capture:!0};function cG(o,t,e){var i=St(o),r=i.on,n=i.emit,s=i.bind,a=i.unbind,l=o.state,u=t.Move,c=t.Scroll,p=t.Controller,f=t.Elements.track,v=t.Media.reduce,y=t.Direction,w=y.resolve,b=y.orient,O=u.getPosition,A=u.exceededLimit,P,L,x,H,g,N=!1,V,z,I;function k(){s(f,Fp,Tf,Zo),s(f,Mp,Tf,Zo),s(f,AE,X,Zo),s(f,"click",ae,{capture:!0}),s(f,"dragstart",Br),r([Lo,vi],j)}function j(){var de=e.drag;wt(!de),H=de==="free"}function X(de){if(V=!1,!z){var be=qe(de);Ue(de.target)&&(be||!de.button)&&(p.isBusy()?Br(de,!0):(I=be?f:window,g=l.is([Hs,hl]),x=null,s(I,Fp,re,Zo),s(I,Mp,ge,Zo),u.cancel(),c.cancel(),ve(de)))}}function re(de){if(l.is(Lu)||(l.set(Lu),n(mN)),de.cancelable)if(g){u.translate(P+Ve(Ge(de)));var be=st(de)>om,dt=N!==(N=A());(be||dt)&&ve(de),V=!0,n(CN),Br(de)}else ye(de)&&(g=ne(de),Br(de))}function ge(de){l.is(Lu)&&(l.set(Ts),n(wN)),g&&(pe(de),Br(de)),a(I,Fp,re),a(I,Mp,ge),g=!1}function ae(de){!z&&V&&Br(de,!0)}function ve(de){x=L,L=de,P=O()}function pe(de){var be=Pe(de),dt=Se(be),te=e.rewind&&e.rewindByDrag;v(!1),H?p.scroll(dt,0,e.snap):o.is(El)?p.go(b(Af(be))<0?te?"<":"-":te?">":"+"):o.is(Rs)&&N&&te?p.go(A(!0)?">":"<"):p.go(p.toDest(dt),!0),v(!0)}function ne(de){var be=e.dragMinThreshold,dt=Ja(be),te=dt&&be.mouse||0,ue=(dt?be.touch:+be)||10;return fi(Ge(de))>(qe(de)?ue:te)}function ye(de){return fi(Ge(de))>fi(Ge(de,!0))}
vendor: 5,866 bytes, line 1048
1048function Pe(de){if(o.is(ks)||!N){var be=st(de);if(be&&be<om)return Ge(de)/be}return 0}function Se(de){return O()+Af(de)*Fn(fi(de)*(e.flickPower||600),H?1/0:t.Layout.listSize()*(e.flickMaxPages||1))}function Ge(de,be){return xe(de,be)-xe(ce(de),be)}function st(de){return Rf(de)-Rf(ce(de))}function ce(de){return L===de&&x||L}function xe(de,be){return(qe(de)?de.changedTouches[0]:de)["page"+w(be?"Y":"X")]}function Ve(de){return de/(N&&o.is(Rs)?WN:1)}function Ue(de){var be=e.noDrag;return!Za(de,"."+_E+", ."+zc)&&(!be||!Za(de,be))}function qe(de){return typeof TouchEvent<"u"&&de instanceof TouchEvent}function Ht(){return g}function wt(de){z=de}return{mount:k,disable:wt,isDragging:Ht}}var dG={Spacebar:" ",Right:jc,Left:Bc,Up:gE,Down:yE};function iv(o){return o=Ln(o)?o:o.key,dG[o]||o}var sm="keydown";function pG(o,t,e){var i=St(o),r=i.on,n=i.bind,s=i.unbind,a=o.root,l=t.Direction.resolve,u,c;function p(){f(),r(vi,v),r(vi,f),r(Mn,w)}function f(){var O=e.keyboard;O&&(u=O==="global"?window:a,n(u,sm,b))}function v(){s(u,sm)}function y(O){c=O}function w(){var O=c;c=!0,ZS(function(){c=O})}function b(O){if(!c){var A=iv(O);A===l(Bc)?o.go("<"):A===l(jc)&&o.go(">")}}return{mount:p,destroy:v,disable:y}}var Ga=Yh+"-lazy",Iu=Ga+"-srcset",fG="["+Ga+"], ["+Iu+"]";function hG(o,t,e){var i=St(o),r=i.on,n=i.off,s=i.bind,a=i.emit,l=e.lazyLoad==="sequential",u=[wl,Vs],c=[];function p(){e.lazyLoad&&(f(),r(xt,f))}function f(){Zr(c),v(),l?O():(n(u),r(u,y),y())}function v(){t.Slides.forEach(function(A){Kh(A.slide,fG).forEach(function(P){var L=ir(P,Ga),x=ir(P,Iu);if(L!==P.src||x!==P.srcset){var H=e.classes.spinner,g=P.parentElement,N=ml(g,"."+H)||ys("span",H,g);c.push([P,A,N]),P.src||il(P,"none")}})})}function y(){c=c.filter(function(A){var P=e.perPage*((e.preloadPages||1)+1)-1;return A[1].isWithin(o.index,P)?w(A):!0}),c.length||n(u)}function w(A){var P=A[0];Lr(A[1].slide,Lf),s(P,"load error",gt(b,A)),Ye(P,"src",ir(P,Ga)),Ye(P,"srcset",ir(P,Iu)),Fr(P,Ga),Fr(P,Iu)}function b(A,P){var L=A[0],x=A[1];Ur(x.slide,Lf),P.type!=="error"&&(_o(A[2]),il(L,""),a(fE,L,x),a(nl)),l&&O()}function O(){c.length&&w(c.shift())}return{mount:p,destroy:gt(Zr,c),check:y}}function vG(o,t,e){var i=St(o),r=i.on,n=i.emit,s=i.bind,a=t.Slides,l=t.Elements,u=t.Controller,c=u.hasFocus,p=u.getIndex,f=u.go,v=t.Direction.resolve,y=l.pagination,w=[],b,O;function A(){P(),r([vi,xt,hc],A);var z=e.pagination;y&&il(y,z?"":"none"),z&&(r([Mn,Qh,Vs],V),L(),V(),n(ON,{list:b,items:w},N(o.index)))}function P(){b&&(_o(y?kn(b.children):b),Ur(b,O),Zr(w),b=null),i.destroy()}function L(){var z=o.length,I=e.classes,k=e.i18n,j=e.perPage,X=c()?u.getEnd()+1:rl(z/j);b=y||ys("ul",I.pagination,l.track.parentElement),Lr(b,O=$c+"--"+g()),Ye(b,$r,"tablist"),Ye(b,Vi,k.select),Ye(b,Zh,g()===Wc?"vertical":"");for(var re=0;re<X;re++){var ge=ys("li",null,b),ae=ys("button",{class:I.page,type:"button"},ge),ve=a.getIn(re).map(function(ne){return ne.slide.id}),pe=!c()&&j>1?k.pageX:k.slideX;s(ae,"click",gt(x,re)),e.paginationKeyboard&&s(ae,"keydown",gt(H,re)),Ye(ge,$r,"presentation"),Ye(ae,$r,"tab"),Ye(ae,Sl,ve.join(" ")),Ye(ae,Vi,Pf(pe,re+1)),Ye(ae,ms,-1),w.push({li:ge,button:ae,page:re})}}function x(z){f(">"+z,!0)}function H(z,I){var k=w.length,j=iv(I),X=g(),re=-1;j===v(jc,!1,X)?re=++z%k:j===v(Bc,!1,X)?re=(--z+k)%k:j==="Home"?re=0:j==="End"&&(re=k-1);var ge=w[re];ge&&(rE(ge.button),f(">"+re),Br(I,!0))}function g(){return e.paginationDirection||e.direction}function N(z){return w[u.toPage(z)]}function V(){var z=N(p(!0)),I=N(p());if(z){var k=z.button;Ur(k,Oo),Fr(k,em),Ye(k,ms,-1)}if(I){var j=I.button;Lr(j,Oo),Ye(j,em,!0),Ye(j,ms,"")}n(bN,{list:b,items:w},z,I)}return{items:w,mount:A,destroy:P,getAt:N,update:V}}var gG=[" ","Enter"];function yG(o,t,e){var i=e.isNavigation,r=e.slideFocus,n=[];function s(){o.splides.forEach(function(y){y.isParent||(u(o,y.splide),u(y.splide,o))}),i&&c()}function a(){n.forEach(function(y){y.destroy()}),Zr(n)}function l(){a(),s()}function u(y,w){var b=St(y);b.on(Mn,function(O,A,P){w.go(w.is(ks)?P:O)}),n.push(b)}function c(){var y=St(o),w=y.on;w(lE,f),w(hE,v),w([Lo,vi],p),n.push(y),y.emit(cE,o.splides)}function p(){Ye(t.Elements.list,Zh,e.direction===Wc?"vertical":"")}function f(y){o.go(y.index)}function v(y,w){zh(gG,iv(w))&&(f(y),Br(w))}return{setup:gt(t.Media.set,{slideFocus:vl(r)?i:r},!0),mount:s,destroy:a,remount:l}}function mG(o,t,e){var i=St(o),r=i.bind,n=0;function s(){e.wheel&&r(t.Elements.track,"wheel",a,Zo)}function a(u){if(u.cancelable){var c=u.deltaY,p=c<0,f=Rf(u),v=e.wheelMinThreshold||0,y=e.wheelSleep||0;fi(c)>v&&f-n>y&&(o.go(p?"<":">"),n=f),l(p)&&Br(u)}}function l(u){return!e.releaseWheel||o.state.is(Hs)||t.Controller.getAdjacent(u)!==-1}return{mount:s}}var CG=90;function wG(o,t,e){var i=St(o),r=i.on,n=t.Elements.track,s=e.live&&!e.isNavigation,a=ys("span",HN),l=Vc(CG,gt(c,!1));function u(){s&&(f(!t.Autoplay.isPaused()),Ye(n,rm,!0),a.textContent="â¦",r(dE,gt(f,!0)),r(pE,gt(f,!1)),r([wl,Vs],gt(c,!0)))}function c(v){Ye(n,im,v),v?(yl(n,a),l.start()):(_o(a),l.cancel())}function p(){Fr(n,[tm,rm,im]),_o(a)}function f(v){s&&Ye(n,tm,v?"off":"polite")}return{mount:u,disable:f,destroy:p}}var SG=Object.freeze({__proto__:null,Media:PN,Direction:DN,Elements:UN,Slides:$N,Layout:KN,Clones:qN,Move:XN,Controller:QN,Arrows:eG,Autoplay:iG,Cover:rG,Scroll:uG,Drag:cG,Keyboard:pG,LazyLoad:hG,Pagination:vG,Sync:yG,Wheel:mG,Live:wG}),EG={prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},_G={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace
vendor: 2,115 bytes, line 1048
1048:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:BN,i18n:EG,reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function OG(o,t,e){var i=t.Slides;function r(){St(o).on([Lo,xt],n)}function n(){i.forEach(function(a){a.style("transform","translateX(-"+100*a.index+"%)")})}function s(a,l){i.style("transition","opacity "+e.speed+"ms "+e.easing),ZS(l)}return{mount:r,start:s,cancel:Tf}}function bG(o,t,e){var i=t.Move,r=t.Controller,n=t.Scroll,s=t.Elements.list,a=gt(er,s,"transition"),l;function u(){St(o).bind(s,"transitionend",function(v){v.target===s&&l&&(p(),l())})}function c(v,y){var w=i.toPosition(v,!0),b=i.getPosition(),O=f(v);fi(w-b)>=1&&O>=1?e.useScroll?n.scroll(w,O,!1,y):(a("transform "+O+"ms "+e.easing),i.translate(w,!0),l=y):(i.jump(v),y())}function p(){a(""),n.cancel()}function f(v){var y=e.rewindSpeed;if(o.is(Rs)&&y){var w=r.getIndex(!0),b=r.getEnd();if(w===0&&v>=b||w>=b&&v===0)return y}return e.speed}return{mount:u,start:c,cancel:p}}var TG=function(){function o(e,i){this.event=St(),this.Components={},this.state=RN(cs),this.splides=[],this._o={},this._E={};var r=Ln(e)?oE(document,e):e;Na(r,r+" is invalid."),this.root=r,i=bn({label:ir(r,Vi)||"",labelledby:ir(r,Jh)||""},_G,o.defaults,i||{});try{bn(i,JSON.parse(ir(r,Yh)))}catch{Na(!1,"Invalid JSON")}this._o=Object.create(bn({},i))}var t=o.prototype;return t.mount=function(i,r){var n=this,s=this.state,a=this.Components;Na(s.is([cs,dc]),"Already mounted!"),s.set(cs),this._C=a,this._T=r||this._T||(this.is(El)?OG:bG),this._E=i||this._E;var l=tl({},SG,this._E,{Transition:this._T});return mo(l,function(u,c){var p=u(n,a,n._o);a[c]=p,p.setup&&p.setup()}),mo(a,function(u){u.mount&&u.mount()}),this.emit(Lo),Lr(this.root,VN),s.set(Ts),this.emit(Jy),this},t.sync=function(i){return this.splides.push({splide:i}),i.splides.push({splide:this,isParent:!0}),this.state.is(Ts)&&(this._C.Sync.remount(),i.Components.Sync.remount()),this},t.go=function(i){return this._C.Controller.go(i),this},t.on=function(i,r){return this.event.on(i,r),this},t.off=function(i){return this.event.off(i),this},t.emit=function(i){var r;
vendor: 4,402 bytes, lines 1048-1053
1048return(r=this.event).emit.apply(r,[i].concat(kn(arguments,1))),this},t.add=function(i,r){return this._C.Slides.add(i,r),this},t.remove=function(i){return this._C.Slides.remove(i),this},t.is=function(i){return this._o.type===i},t.refresh=function(){return this.emit(xt),this},t.destroy=function(i){i===void 0&&(i=!0);var r=this.event,n=this.state;return n.is(cs)?St(this).on(Jy,this.destroy.bind(this,i)):(mo(this._C,function(s){s.destroy&&s.destroy(i)},!0),r.emit(uE),r.destroy(),i&&Zr(this.splides),n.set(dc)),this},cN(o,[{key:"options",get:function(){return this._o},set:function(i){this._C.Media.set(i,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}]),o}(),xi=TG;xi.defaults={};xi.STATES=pN;/*! 1049 * @splidejs/splide-extension-auto-scroll 1050 * Version : 0.5.3 1051 * License : MIT 1052 * Copyright: 2022 Naotoshi Fujita 1053 */function RG(o){o.length=0}function rv(o,t,e){return Array.prototype.slice.call(o,t,e)}function Kc(o){return o.bind.apply(o,[null].concat(rv(arguments,1)))}function am(o){return requestAnimationFrame(o)}function nv(o,t){return typeof t===o}var PE=Array.isArray;Kc(nv,"function");Kc(nv,"string");Kc(nv,"undefined");function DE(o){return PE(o)?o:[o]}function lm(o,t){DE(o).forEach(t)}var AG=Object.keys;function PG(o,t,e){if(o){var i=AG(o);i=e?i.reverse():i;for(var r=0;r<i.length;r++){var n=i[r];if(n!=="__proto__"&&t(o[n],n)===!1)break}}return o}function DG(o){return rv(arguments,1).forEach(function(t){PG(t,function(e,i){o[i]=t[i]})}),o}var LG=Math.min;function FG(){var o=[];function t(s,a,l,u){r(s,a,function(c,p,f){var v="addEventListener"in c,y=v?c.removeEventListener.bind(c,p,l,u):c.removeListener.bind(c,l);v?c.addEventListener(p,l,u):c.addListener(l),o.push([c,p,f,l,y])})}function e(s,a,l){r(s,a,function(u,c,p){o=o.filter(function(f){return f[0]===u&&f[1]===c&&f[2]===p&&(!l||f[3]===l)?(f[4](),!1):!0})})}function i(s,a,l){var u,c=!0;return typeof CustomEvent=="function"?u=new CustomEvent(a,{bubbles:c,detail:l}):(u=document.createEvent("CustomEvent"),u.initCustomEvent(a,c,!1,l)),s.dispatchEvent(u),u}function r(s,a,l){lm(s,function(u){u&&lm(a,function(c){c.split(" ").forEach(function(p){var f=p.split(".");l(u,f[0],f[1])})})})}function n(){o.forEach(function(s){s[4]()}),RG(o)}return{bind:t,unbind:e,dispatch:i,destroy:n}}var um="move",cm="moved",MG="updated",dm="drag",IG="dragged",pm="scroll",fm="scrolled",xG="destroy";function NG(o){var t=o?o.event.bus:document.createDocumentFragment(),e=FG();function i(n,s){e.bind(t,DE(n).join(" "),function(a){s.apply(s,PE(a.detail)?a.detail:[])})}function r(n){e.dispatch(t,n,rv(arguments,1))}return o&&o.event.on(xG,e.destroy),DG(e,{bus:t,on:i,off:Kc(e.unbind,t),emit:r})}function LE(o,t,e,i){var r=Date.now,n,s=0,a,l=!0,u=0;function c(){if(!l){if(s=o?LG((r()-n)/o,1):1,e&&e(s),s>=1&&(t(),n=r(),i&&++u>=i))return f();am(c)}}function p(O){!O&&y(),n=r()-(O?s*o:0),l=!1,am(c)}function f(){l=!0}function v(){n=r(),s=0,e&&e(s)}function y(){a&&cancelAnimationFrame(a),s=0,a=0,l=!0}function w(O){o=O}function b(){return l}return{start:p,rewind:v,pause:f,cancel:y,set:w,isPaused:b}}function GG(o,t){var e;function i(){e||(e=LE(t||0,function(){o(),e=null},null,1),e.start())}return i}var HG="is-active",VG="slide",kG="fade";function FE(o,t,e){return Array.prototype.slice.call(o,t,e)}function ov(o){return o.bind(null,...FE(arguments,1))}function Yc(o,t){return typeof t===o}function Ff(o){return!ME(o)&&Yc("object",o)}const BG=Array.isArray;ov(Yc,"function");ov(Yc,"string");const jG=ov(Yc,"undefined");function ME(o){return o===null}function WG(o){return BG(o)?o:[o]}function vc(o,t){WG(o).forEach(t)}function UG(o,t,e){o&&vc(t,i=>{i&&o.classList[e?"add":"remove"](i)})}const zG=Object.keys;function IE(o,t,e){if(o){let i=zG(o);i=e?i.reverse():i;for(let r=0;r<i.length;r++){const n=i[r];if(n!=="__proto__"&&t(o[n],n)===!1)break}}return o}function hm(o){return FE(arguments,1).forEach(t=>{IE(t,(e,i)=>{o[i]=t[i]})}),o}function $G(o,t){vc(o,e=>{vc(t,i=>{e&&e.removeAttribute(i)})})}function xE(o,t,e){Ff(t)?IE(t,(i,r)=>{xE(o,r,i)}):vc(o,i=>{ME(e)||e===""?$G(i,t):i.setAttribute(t,String(e))})}const{min:vm,max:gm,floor:Z2,ceil:eB,abs:tB}=Math;function KG(o,t,e){const i=vm(t,e),r=gm(t,e);return vm(gm(i,o),r)}const YG={speed:1,autoStart:!0,pauseOnHover:!0,pauseOnFocus:!0},qG={startScroll:"Start auto scroll",pauseScroll:"Pause auto scroll"};
1053function XG(o,t,e){const{on:i,off:r,bind:n,unbind:s}=NG(o),{translate:a,getPosition:l,toIndex:u,getLimit:c}=t.Move,{setIndex:p,getIndex:f}=t.Controller,{orient:v}=t.Direction,{toggle:y}=t.Elements,{Live:w}=t,{root:b}=o,O=GG(t.Arrows.update,500);let A={},P,L,x,H,g,N;function V(){const{autoScroll:Se}=e;A=hm({},YG,Ff(Se)?Se:{})}function z(){o.is(kG)||!P&&e.autoScroll!==!1&&(P=LE(0,ve),k(),X())}function I(){P&&(P.cancel(),P=null,N=void 0,r([um,dm,pm,cm,fm]),s(b,"mouseenter mouseleave focusin focusout"),s(y,"click"))}function k(){A.pauseOnHover&&n(b,"mouseenter mouseleave",Se=>{x=Se.type==="mouseenter",ae()}),A.pauseOnFocus&&n(b,"focusin focusout",Se=>{H=Se.type==="focusin",ae()}),A.useToggleButton&&n(y,"click",()=>{L?re():ge()}),i(MG,j),i([um,dm,pm],()=>{g=!0,ge(!1)}),i([cm,IG,fm],()=>{g=!1,ae()})}function j(){const{autoScroll:Se}=e;Se!==!1?(A=hm({},A,Ff(Se)?Se:{}),z()):I(),P&&!jG(N)&&a(N)}function X(){A.autoStart&&(document.readyState==="complete"?re():n(window,"load",re))}function re(){Pe()&&(P.start(!0),w.disable(!0),H=x=L=!1,ye())}function ge(Se=!0){L||(L=Se,ye(),Pe()||(P.pause(),w.disable(!1)))}function ae(){L||(x||H||g?ge(!1):re())}function ve(){const Se=l(),Ge=pe(Se);Se!==Ge?(a(Ge),ne(N=l())):(ge(!1),A.rewind&&o.go(A.speed>0?0:t.Controller.getEnd())),O()}function pe(Se){const Ge=A.speed||1;return Se+=v(Ge),o.is(VG)&&(Se=KG(Se,c(!1),c(!0))),Se}function ne(Se){const{length:Ge}=o,st=(u(Se)+Ge)%Ge;st!==f()&&(p(st),t.Slides.update(),t.Pagination.update(),e.lazyLoad==="nearby"&&t.LazyLoad.check())}function ye(){if(y){const Se=L?"startScroll":"pauseScroll";UG(y,HG,!L),xE(y,"aria-label",e.i18n[Se]||qG[Se])}}function Pe(){return!P||P.isPaused()}return{setup:V,mount:z,destroy:I,play:re,pause:ge,isPaused:Pe}}var Yt="top",Ri="bottom",Ai="right",qt="left",qc="auto",Bs=[Yt,Ri,Ai,qt],bo="start",As="end",NE="clippingParents",sv="viewport",es="popper",GE="reference",Mf=Bs.reduce(function(o,t){return o.concat([t+"-"+bo,t+"-"+As])},[]),av=[].concat(Bs,[qc]).reduce(function(o,t){return o.concat([t,t+"-"+bo,t+"-"+As])},[]),HE="beforeRead",VE="read",kE="afterRead",BE="beforeMain",jE="main",WE="afterMain",UE="beforeWrite",zE="write",$E="afterWrite",KE=[HE,VE,kE,BE,jE,WE,UE,zE,$E];function Mr(o){return o?(o.nodeName||"").toLowerCase():null}function Pi(o){if(o==null)return window;if(o.toString()!=="[object Window]"){var t=o.ownerDocument;return t&&t.defaultView||window}return o}function To(o){var t=Pi(o).Element;return o instanceof t||o instanceof Element}function ji(o){var t=Pi(o).HTMLElement;return o instanceof t||o instanceof HTMLElement}function lv(o){if(typeof ShadowRoot>"u")return!1;var t=Pi(o).ShadowRoot;return o instanceof t||o instanceof ShadowRoot}function QG(o){var t=o.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},r=t.attributes[e]||{},n=t.elements[e];!ji(n)||!Mr(n)||(Object.assign(n.style,i),Object.keys(r).forEach(function(s){var a=r[s];a===!1?n.removeAttribute(s):n.setAttribute(s,a===!0?"":a)}))})}function JG(o){var t=o.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(i){var r=t.elements[i],n=t.attributes[i]||{},s=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:e[i]),a=s.reduce(function(l,u){return l[u]="",l},{});!ji(r)||!Mr(r)||(Object.assign(r.style,a),Object.keys(n).forEach(function(l){r.removeAttribute(l)}))})}}const uv={name:"applyStyles",enabled:!0,phase:"write",fn:QG,effect:JG,requires:["computeStyles"]};function Pr(o){return o.split("-")[0]}var Co=Math.max,gc=Math.min,Ps=Math.round;function If(){var o=navigator.userAgentData;return o!=null&&o.brands&&Array.isArray(o.brands)?o.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function YE(){return!/^((?!chrome|android).)*safari/i.test(If())}function Ds(o,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var i=o.getBoundingClientRect(),r=1,n=1;t&&ji(o)&&(r=o.offsetWidth>0&&Ps(i.width)/o.offsetWidth||1,n=o.offsetHeight>0&&Ps(i.height)/o.offsetHeight||1);
vendor: 15,264 bytes, line 1053
1053var s=To(o)?Pi(o):window,a=s.visualViewport,l=!YE()&&e,u=(i.left+(l&&a?a.offsetLeft:0))/r,c=(i.top+(l&&a?a.offsetTop:0))/n,p=i.width/r,f=i.height/n;return{width:p,height:f,top:c,right:u+p,bottom:c+f,left:u,x:u,y:c}}function cv(o){var t=Ds(o),e=o.offsetWidth,i=o.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:o.offsetLeft,y:o.offsetTop,width:e,height:i}}function qE(o,t){var e=t.getRootNode&&t.getRootNode();if(o.contains(t))return!0;if(e&&lv(e)){var i=t;do{if(i&&o.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function en(o){return Pi(o).getComputedStyle(o)}function ZG(o){return["table","td","th"].indexOf(Mr(o))>=0}function jn(o){return((To(o)?o.ownerDocument:o.document)||window.document).documentElement}function Xc(o){return Mr(o)==="html"?o:o.assignedSlot||o.parentNode||(lv(o)?o.host:null)||jn(o)}function ym(o){return!ji(o)||en(o).position==="fixed"?null:o.offsetParent}function e1(o){var t=/firefox/i.test(If()),e=/Trident/i.test(If());if(e&&ji(o)){var i=en(o);if(i.position==="fixed")return null}var r=Xc(o);for(lv(r)&&(r=r.host);ji(r)&&["html","body"].indexOf(Mr(r))<0;){var n=en(r);if(n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].indexOf(n.willChange)!==-1||t&&n.willChange==="filter"||t&&n.filter&&n.filter!=="none")return r;r=r.parentNode}return null}function _l(o){for(var t=Pi(o),e=ym(o);e&&ZG(e)&&en(e).position==="static";)e=ym(e);return e&&(Mr(e)==="html"||Mr(e)==="body"&&en(e).position==="static")?t:e||e1(o)||t}function dv(o){return["top","bottom"].indexOf(o)>=0?"x":"y"}function Ha(o,t,e){return Co(o,gc(t,e))}function t1(o,t,e){var i=Ha(o,t,e);return i>e?e:i}function XE(){return{top:0,right:0,bottom:0,left:0}}function QE(o){return Object.assign({},XE(),o)}function JE(o,t){return t.reduce(function(e,i){return e[i]=o,e},{})}var i1=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,QE(typeof t!="number"?t:JE(t,Bs))};function r1(o){var t,e=o.state,i=o.name,r=o.options,n=e.elements.arrow,s=e.modifiersData.popperOffsets,a=Pr(e.placement),l=dv(a),u=[qt,Ai].indexOf(a)>=0,c=u?"height":"width";if(!(!n||!s)){var p=i1(r.padding,e),f=cv(n),v=l==="y"?Yt:qt,y=l==="y"?Ri:Ai,w=e.rects.reference[c]+e.rects.reference[l]-s[l]-e.rects.popper[c],b=s[l]-e.rects.reference[l],O=_l(n),A=O?l==="y"?O.clientHeight||0:O.clientWidth||0:0,P=w/2-b/2,L=p[v],x=A-f[c]-p[y],H=A/2-f[c]/2+P,g=Ha(L,H,x),N=l;e.modifiersData[i]=(t={},t[N]=g,t.centerOffset=g-H,t)}}function n1(o){var t=o.state,e=o.options,i=e.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||qE(t.elements.popper,r)&&(t.elements.arrow=r))}const ZE={name:"arrow",enabled:!0,phase:"main",fn:r1,effect:n1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ls(o){return o.split("-")[1]}var o1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function s1(o,t){var e=o.x,i=o.y,r=t.devicePixelRatio||1;return{x:Ps(e*r)/r||0,y:Ps(i*r)/r||0}}function mm(o){var t,e=o.popper,i=o.popperRect,r=o.placement,n=o.variation,s=o.offsets,a=o.position,l=o.gpuAcceleration,u=o.adaptive,c=o.roundOffsets,p=o.isFixed,f=s.x,v=f===void 0?0:f,y=s.y,w=y===void 0?0:y,b=typeof c=="function"?c({x:v,y:w}):{x:v,y:w};v=b.x,w=b.y;var O=s.hasOwnProperty("x"),A=s.hasOwnProperty("y"),P=qt,L=Yt,x=window;if(u){var H=_l(e),g="clientHeight",N="clientWidth";if(H===Pi(e)&&(H=jn(e),en(H).position!=="static"&&a==="absolute"&&(g="scrollHeight",N="scrollWidth")),H=H,r===Yt||(r===qt||r===Ai)&&n===As){L=Ri;var V=p&&H===x&&x.visualViewport?x.visualViewport.height:H[g];w-=V-i.height,w*=l?1:-1}if(r===qt||(r===Yt||r===Ri)&&n===As){P=Ai;var z=p&&H===x&&x.visualViewport?x.visualViewport.width:H[N];v-=z-i.width,v*=l?1:-1}}var I=Object.assign({position:a},u&&o1),k=c===!0?s1({x:v,y:w},Pi(e)):{x:v,y:w};if(v=k.x,w=k.y,l){var j;return Object.assign({},I,(j={},j[L]=A?"0":"",j[P]=O?"0":"",j.transform=(x.devicePixelRatio||1)<=1?"translate("+v+"px, "+w+"px)":"translate3d("+v+"px, "+w+"px, 0)",j))}return Object.assign({},I,(t={},t[L]=A?w+"px":"",t[P]=O?v+"px":"",t.transform="",t))}function a1(o){var t=o.state,e=o.options,i=e.gpuAcceleration,r=i===void 0?!0:i,n=e.adaptive,s=n===void 0?!0:n,a=e.roundOffsets,l=a===void 0?!0:a,u={placement:Pr(t.placement),variation:Ls(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,mm(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,mm(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const pv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:a1,data:{}};var Eu={passive:!0};function l1(o){var t=o.state,e=o.instance,i=o.options,r=i.scroll,n=r===void 0?!0:r,s=i.resize,a=s===void 0?!0:s,l=Pi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return n&&u.forEach(function(c){c.addEventListener("scroll",e.update,Eu)}),a&&l.addEventListener("resize",e.update,Eu),function(){n&&u.forEach(function(c){c.removeEventListener("scroll",e.update,Eu)}),a&&l.removeEventListener("resize",e.update,Eu)}}const fv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:l1,data:{}};var u1={left:"right",right:"left",bottom:"top",top:"bottom"};function xu(o){return o.replace(/left|right|bottom|top/g,function(t){return u1[t]})}var c1={start:"end",end:"start"};function Cm(o){return o.replace(/start|end/g,function(t){return c1[t]})}function hv(o){var t=Pi(o),e=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:e,scrollTop:i}}function vv(o){return Ds(jn(o)).left+hv(o).scrollLeft}function d1(o,t){var e=Pi(o),i=jn(o),r=e.visualViewport,n=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){n=r.width,s=r.height;var u=YE();(u||!u&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:a+vv(o),y:l}}function p1(o){var t,e=jn(o),i=hv(o),r=(t=o.ownerDocument)==null?void 0:t.body,n=Co(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Co(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+vv(o),l=-i.scrollTop;return en(r||e).direction==="rtl"&&(a+=Co(e.clientWidth,r?r.clientWidth:0)-n),{width:n,height:s,x:a,y:l}}function gv(o){var t=en(o),e=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+r+i)}function e_(o){return["html","body","#document"].indexOf(Mr(o))>=0?o.ownerDocument.body:ji(o)&&gv(o)?o:e_(Xc(o))}function Va(o,t){var e;t===void 0&&(t=[]);var i=e_(o),r=i===((e=o.ownerDocument)==null?void 0:e.body),n=Pi(i),s=r?[n].concat(n.visualViewport||[],gv(i)?i:[]):i,a=t.concat(s);return r?a:a.concat(Va(Xc(s)))}function xf(o){return Object.assign({},o,{left:o.x,top:o.y,right:o.x+o.width,bottom:o.y+o.height})}function f1(o,t){var e=Ds(o,!1,t==="fixed");return e.top=e.top+o.clientTop,e.left=e.left+o.clientLeft,e.bottom=e.top+o.clientHeight,e.right=e.left+o.clientWidth,e.width=o.clientWidth,e.height=o.clientHeight,e.x=e.left,e.y=e.top,e}function wm(o,t,e){return t===sv?xf(d1(o,e)):To(t)?f1(t,e):xf(p1(jn(o)))}function h1(o){var t=Va(Xc(o)),e=["absolute","fixed"].indexOf(en(o).position)>=0,i=e&&ji(o)?_l(o):o;return To(i)?t.filter(function(r){return To(r)&&qE(r,i)&&Mr(r)!=="body"}):[]}function v1(o,t,e,i){var r=t==="clippingParents"?h1(o):[].concat(t),n=[].concat(r,[e]),s=n[0],a=n.reduce(function(l,u){var c=wm(o,u,i);return l.top=Co(c.top,l.top),l.right=gc(c.right,l.right),l.bottom=gc(c.bottom,l.bottom),l.left=Co(c.left,l.left),l},wm(o,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function t_(o){var t=o.reference,e=o.element,i=o.placement,r=i?Pr(i):null,n=i?Ls(i):null,s=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,l;switch(r){case Yt:l={x:s,y:t.y-e.height};break;case Ri:l={x:s,y:t.y+t.height};break;case Ai:l={x:t.x+t.width,y:a};break;case qt:l={x:t.x-e.width,y:a};break;default:l={x:t.x,y:t.y}}var u=r?dv(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(n){case bo:l[u]=l[u]-(t[c]/2-e[c]/2);break;case As:l[u]=l[u]+(t[c]/2-e[c]/2);break}}return l}function Fs(o,t){t===void 0&&(t={});var e=t,i=e.placement,r=i===void 0?o.placement:i,n=e.strategy,s=n===void 0?o.strategy:n,a=e.boundary,l=a===void 0?NE:a,u=e.rootBoundary,c=u===void 0?sv:u,p=e.elementContext,f=p===void 0?es:p,v=e.altBoundary,y=v===void 0?!1:v,w=e.padding,b=w===void 0?0:w,O=QE(typeof b!="number"?b:JE(b,Bs)),A=f===es?GE:es,P=o.rects.popper,L=o.elements[y?A:f],x=v1(To(L)?L:L.contextElement||jn(o.elements.popper),l,c,s),H=Ds(o.elements.reference),g=t_({reference:H,element:P,strategy:"absolute",placement:r}),N=xf(Object.assign({},P,g)),V=f===es?N:H,z={top:x.top-V.top+O.top,bottom:V.bottom-x.bottom+O.bottom,left:x.left-V.left+O.left,right:V.right-x.right+O.right},I=o.modifiersData.offset;if(f===es&&I){var k=I[r];Object.keys(z).forEach(function(j){var X=[Ai,Ri].indexOf(j)>=0?1:-1,re=[Yt,Ri].indexOf(j)>=0?"y":"x";z[j]+=k[re]*X})}return z}function g1(o,t){t===void 0&&(t={});var e=t,i=e.placement,r=e.boundary,n=e.rootBoundary,s=e.padding,a=e.flipVariations,l=e.allowedAutoPlacements,u=l===void 0?av:l,c=Ls(i),p=c?a?Mf:Mf.filter(function(y){return Ls(y)===c}):Bs,f=p.filter(function(y){return u.indexOf(y)>=0});f.length===0&&(f=p);var v=f.reduce(function(y,w){return y[w]=Fs(o,{placement:w,boundary:r,rootBoundary:n,padding:s})[Pr(w)],y},{});return Object.keys(v).sort(function(y,w){return v[y]-v[w]})}function y1(o){if(Pr(o)===qc)return[];var t=xu(o);return[Cm(o),t,Cm(t)]}function m1(o){var t=o.state,e=o.options,i=o.name;if(!t.modifiersData[i]._skip){for(var r=e.mainAxis,n=r===void 0?!0:r,s=e.altAxis,a=s===void 0?!0:s,l=e.fallbackPlacements,u=e.padding,c=e.boundary,p=e.rootBoundary,f=e.altBoundary,v=e.flipVariations,y=v===void 0?!0:v,w=e.allowedAutoPlacements,b=t.options.placement,O=Pr(b),A=O===b,P=l||(A||!y?[xu(b)]:y1(b)),L=[b].concat(P).reduce(function(Ge,st){return Ge.concat(Pr(st)===qc?g1(t,{placement:st,boundary:c,rootBoundary:p,padding:u,flipVariations:y,allowedAutoPlacements:w}):st)},[]),x=t.rects.reference,H=t.rects.popper,g=new Map,N=!0,V=L[0],z=0;z<L.length;z++){var I=L[z],k=Pr(I),j=Ls(I)===bo,X=[Yt,Ri].indexOf(k)>=0,re=X?"width":"height",ge=Fs(t,{placement:I,boundary:c,rootBoundary:p,altBoundary:f,padding:u}),ae=X?j?Ai:qt:j?Ri:Yt;x[re]>H[re]&&(ae=xu(ae));var ve=xu(ae),pe=[];if(n&&pe.push(ge[k]<=0),a&&pe.push(ge[ae]<=0,ge[ve]<=0),pe.every(function(Ge){return Ge})){V=I,N=!1;break}g.set(I,pe)}if(N)for(var ne=y?3:1,ye=function(st){var ce=L.find(function(xe){var Ve=g.get(xe);if(Ve)return Ve.slice(0,st).every(function(Ue){return Ue})});if(ce)return V=ce,"break"},Pe=ne;Pe>0;Pe--){var Se=ye(Pe);if(Se==="break")break}t.placement!==V&&(t.modifiersData[i]._skip=!0,t.placement=V,t.reset=!0)}}const i_={name:"flip",enabled:!0,phase:"main",fn:m1,requiresIfExists:["offset"],data:{_skip:!1}};function Sm(o,t,e){return e===void 0&&(e={x:0,y:0}),{top:o.top-t.height-e.y,right:o.right-t.width+e.x,bottom:o.bottom-t.height+e.y,left:o.left-t.width-e.x}}function Em(o){return[Yt,Ai,Ri,qt].some(function(t){return o[t]>=0})}function C1(o){var t=o.state,e=o.name,i=t.rects.reference,r=t.rects.popper,n=t.modifiersData.preventOverflow,s=Fs(t,{elementContext:"reference"}),a=Fs(t,{altBoundary:!0}),l=Sm(s,i),u=Sm(a,r,n),c=Em(l),p=Em(u);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}const r_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:C1};function w1(o,t,e){var i=Pr(o),r=[qt,Yt].indexOf(i)>=0?-1:1,n=typeof e=="function"?e(Object.assign({},t,{placement:o})):e,s=n[0],a=n[1];return s=s||0,a=(a||0)*r,[qt,Ai].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}function S1(o){var t=o.state,e=o.options,i=o.name,r=e.offset,n=r===void 0?[0,0]:r,s=av.reduce(function(c,p){return c[p]=w1(p,t.rects,n),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[i]=s}const n_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:S1};function E1(o){var t=o.state,e=o.name;t.modifiersData[e]=t_({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const yv={name:"popperOffsets",enabled:!0,phase:"read",fn:E1,data:{}};function _1(o){return o==="x"?"y":"x"}function O1(o){var t=o.state,e=o.options,i=o.name,r=e.mainAxis,n=r===void 0?!0:r,s=e.altAxis,a=s===void 0?!1:s,l=e.boundary,u=e.rootBoundary,c=e.altBoundary,p=e.padding,f=e.tether,v=f===void 0?!0:f,y=e.tetherOffset,w=y===void 0?0:y,b=Fs(t,{boundary:l,rootBoundary:u,padding:p,altBoundary:c}),O=Pr(t.placement),A=Ls(t.placement),P=!A,L=dv(O),x=_1(L),H=t.modifiersData.popperOffsets,g=t.rects.reference,N=t.rects.popper,V=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,z=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(H){if(n){var j,X=L==="y"?Yt:qt,re=L==="y"?Ri:Ai,ge=L==="y"?"height":"width",ae=H[L],ve=ae+b[X],pe=ae-b[re],ne=v?-N[ge]/2:0,ye=A===bo?g[ge]:N[ge],Pe=A===bo?-N[ge]:-g[ge],Se=t.elements.arrow,Ge=v&&Se?cv(Se):{width:0,height:0},st=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:XE(),ce=st[X],xe=st[re],Ve=Ha(0,g[ge],Ge[ge]),Ue=P?g[ge]/2-ne-Ve-ce-z.mainAxis:ye-Ve-ce-z.mainAxis,qe=P?-g[ge]/2+ne+Ve+xe+z.mainAxis:Pe+Ve+xe+z.mainAxis,Ht=t.elements.arrow&&_l(t.elements.arrow),wt=Ht?L==="y"?Ht.clientTop||0:Ht.clientLeft||0:0,de=(j=I==null?void 0:I[L])!=null?j:0,be=ae+Ue-de-wt,dt=ae+qe-de,te=Ha(v?gc(ve,be):ve,ae,v?Co(pe,dt):pe);H[L]=te,k[L]=te-ae}if(a){var ue,Ee=L==="x"?Yt:qt,De=L==="x"?Ri:Ai,He=H[x],Ae=x==="y"?"height":"width",Fe=He+b[Ee],Ze=He-b[De],at=[Yt,qt].indexOf(O)!==-1,we=(ue=I==null?void 0:I[x])!=null?ue:0,ht=at?Fe:He-g[Ae]-N[Ae]-we+z.altAxis,xr=at?He+g[Ae]+N[Ae]-we-z.altAxis:Ze,qi=v&&at?t1(ht,He,xr):Ha(v?ht:Fe,He,v?xr:Ze);H[x]=qi,k[x]=qi-He}t.modifiersData[i]=k}}const o_={name:"preventOverflow",enabled:!0,phase:"main",fn:O1,requiresIfExists:["offset"]};function b1(o){return{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}}function T1(o){return o===Pi(o)||!ji(o)?hv(o):b1(o)}function R1(o){var t=o.getBoundingClientRect(),e=Ps(t.width)/o.offsetWidth||1,i=Ps(t.height)/o.offsetHeight||1;return e!==1||i!==1}function A1(o,t,e){e===void 0&&(e=!1);var i=ji(t),r=ji(t)&&R1(t),n=jn(t),s=Ds(o,r,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&((Mr(t)!=="body"||gv(n))&&(a=T1(t)),ji(t)?(l=Ds(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):n&&(l.x=vv(n))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function P1(o){var t=new Map,e=new Set,i=[];o.forEach(function(n){t.set(n.name,n)});function r(n){e.add(n.name);var s=[].concat(n.requires||[],n.requiresIfExists||[]);
vendor: 4,570 bytes, lines 1053-1057
1053s.forEach(function(a){if(!e.has(a)){var l=t.get(a);l&&r(l)}}),i.push(n)}return o.forEach(function(n){e.has(n.name)||r(n)}),i}function D1(o){var t=P1(o);return KE.reduce(function(e,i){return e.concat(t.filter(function(r){return r.phase===i}))},[])}function L1(o){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(o())})})),t}}function F1(o){var t=o.reduce(function(e,i){var r=e[i.name];return e[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,e},{});return Object.keys(t).map(function(e){return t[e]})}var _m={placement:"bottom",modifiers:[],strategy:"absolute"};function Om(){for(var o=arguments.length,t=new Array(o),e=0;e<o;e++)t[e]=arguments[e];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Qc(o){o===void 0&&(o={});var t=o,e=t.defaultModifiers,i=e===void 0?[]:e,r=t.defaultOptions,n=r===void 0?_m:r;return function(a,l,u){u===void 0&&(u=n);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},_m,n),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],f=!1,v={state:c,setOptions:function(O){var A=typeof O=="function"?O(c.options):O;w(),c.options=Object.assign({},n,c.options,A),c.scrollParents={reference:To(a)?Va(a):a.contextElement?Va(a.contextElement):[],popper:Va(l)};var P=D1(F1([].concat(i,c.options.modifiers)));return c.orderedModifiers=P.filter(function(L){return L.enabled}),y(),v.update()},forceUpdate:function(){if(!f){var O=c.elements,A=O.reference,P=O.popper;if(Om(A,P)){c.rects={reference:A1(A,_l(P),c.options.strategy==="fixed"),popper:cv(P)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(z){return c.modifiersData[z.name]=Object.assign({},z.data)});for(var L=0;L<c.orderedModifiers.length;L++){if(c.reset===!0){c.reset=!1,L=-1;continue}var x=c.orderedModifiers[L],H=x.fn,g=x.options,N=g===void 0?{}:g,V=x.name;typeof H=="function"&&(c=H({state:c,options:N,name:V,instance:v})||c)}}}},update:L1(function(){return new Promise(function(b){v.forceUpdate(),b(c)})}),destroy:function(){w(),f=!0}};if(!Om(a,l))return v;v.setOptions(u).then(function(b){!f&&u.onFirstUpdate&&u.onFirstUpdate(b)});function y(){c.orderedModifiers.forEach(function(b){var O=b.name,A=b.options,P=A===void 0?{}:A,L=b.effect;if(typeof L=="function"){var x=L({state:c,name:O,instance:v,options:P}),H=function(){};p.push(x||H)}})}function w(){p.forEach(function(b){return b()}),p=[]}return v}}var M1=Qc(),I1=[fv,yv,pv,uv],x1=Qc({defaultModifiers:I1}),N1=[fv,yv,pv,uv,n_,i_,o_,ZE,r_],mv=Qc({defaultModifiers:N1});const s_=Object.freeze(Object.defineProperty({__proto__:null,afterMain:WE,afterRead:kE,afterWrite:$E,applyStyles:uv,arrow:ZE,auto:qc,basePlacements:Bs,beforeMain:BE,beforeRead:HE,beforeWrite:UE,bottom:Ri,clippingParents:NE,computeStyles:pv,createPopper:mv,createPopperBase:M1,createPopperLite:x1,detectOverflow:Fs,end:As,eventListeners:fv,flip:i_,hide:r_,left:qt,main:jE,modifierPhases:KE,offset:n_,placements:av,popper:es,popperGenerator:Qc,popperOffsets:yv,preventOverflow:o_,read:VE,reference:GE,right:Ai,start:bo,top:Yt,variationPlacements:Mf,viewport:sv,write:zE},Symbol.toStringTag,{value:"Module"}));/*! 1054 * Bootstrap v5.3.1 (https://getbootstrap.com/) 1055 * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 1056 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 1057 */const wn=new Map,Ip={set(o,t,e){wn.has(o)||wn.set(o,new Map);const i=wn.get(o);if(!i.has(t)&&i.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`);return}i.set(t,e)},get(o,t){return wn.has(o)&&wn.get(o).get(t)||null},remove(o,t){if(!wn.has(o))return;const e=wn.get(o);e.delete(t),e.size===0&&wn.delete(o)}},G1=1e6,H1=1e3,Nf="transitionend",a_=o=>(o&&window.CSS&&window.CSS.escape&&(o=o.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),o),V1=o=>o==null?`${o}`:Object.prototype.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase(),k1=o=>{do o+=Math.floor(Math.random()*G1);while(document.getElementById(o));return o},B1=o=>{if(!o)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(o);const i=Number.parseFloat(t),r=Number.parseFloat(e);return!i&&!r?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*H1)},l_=o=>{o.dispatchEvent(new Event(Nf))},Kr=o=>!o||typeof o!="object"?!1:(typeof o.jquery<"u"&&(o=o[0]),typeof o.nodeType<"u"),In=o=>
vendor: 22,781 bytes, line 1057
1057Kr(o)?o.jquery?o[0]:o:typeof o=="string"&&o.length>0?document.querySelector(a_(o)):null,js=o=>{if(!Kr(o)||o.getClientRects().length===0)return!1;const t=getComputedStyle(o).getPropertyValue("visibility")==="visible",e=o.closest("details:not([open])");if(!e)return t;if(e!==o){const i=o.closest("summary");if(i&&i.parentNode!==e||i===null)return!1}return t},xn=o=>!o||o.nodeType!==Node.ELEMENT_NODE||o.classList.contains("disabled")?!0:typeof o.disabled<"u"?o.disabled:o.hasAttribute("disabled")&&o.getAttribute("disabled")!=="false",u_=o=>{if(!document.documentElement.attachShadow)return null;if(typeof o.getRootNode=="function"){const t=o.getRootNode();return t instanceof ShadowRoot?t:null}return o instanceof ShadowRoot?o:o.parentNode?u_(o.parentNode):null},yc=()=>{},Ol=o=>{o.offsetHeight},c_=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,xp=[],j1=o=>{document.readyState==="loading"?(xp.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of xp)t()}),xp.push(o)):o()},Ui=()=>document.documentElement.dir==="rtl",Yi=o=>{j1(()=>{const t=c_();if(t){const e=o.NAME,i=t.fn[e];t.fn[e]=o.jQueryInterface,t.fn[e].Constructor=o,t.fn[e].noConflict=()=>(t.fn[e]=i,o.jQueryInterface)}})},ci=(o,t=[],e=o)=>typeof o=="function"?o(...t):e,d_=(o,t,e=!0)=>{if(!e){ci(o);return}const i=5,r=B1(t)+i;let n=!1;const s=({target:a})=>{a===t&&(n=!0,t.removeEventListener(Nf,s),ci(o))};t.addEventListener(Nf,s),setTimeout(()=>{n||l_(t)},r)},Cv=(o,t,e,i)=>{const r=o.length;let n=o.indexOf(t);return n===-1?!e&&i?o[r-1]:o[0]:(n+=e?1:-1,i&&(n=(n+r)%r),o[Math.max(0,Math.min(n,r-1))])},W1=/[^.]*(?=\..*)\.|.*/,U1=/\..*/,z1=/::\d+$/,Np={};let bm=1;const p_={mouseenter:"mouseover",mouseleave:"mouseout"},$1=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function f_(o,t){return t&&`${t}::${bm++}`||o.uidEvent||bm++}function h_(o){const t=f_(o);return o.uidEvent=t,Np[t]=Np[t]||{},Np[t]}function K1(o,t){return function e(i){return wv(i,{delegateTarget:o}),e.oneOff&&oe.off(o,i.type,t),t.apply(o,[i])}}function Y1(o,t,e){return function i(r){const n=o.querySelectorAll(t);for(let{target:s}=r;s&&s!==this;s=s.parentNode)for(const a of n)if(a===s)return wv(r,{delegateTarget:s}),i.oneOff&&oe.off(o,r.type,t,e),e.apply(s,[r])}}function v_(o,t,e=null){return Object.values(o).find(i=>i.callable===t&&i.delegationSelector===e)}function g_(o,t,e){const i=typeof t=="string",r=i?e:t||e;let n=y_(o);return $1.has(n)||(n=o),[i,r,n]}function Tm(o,t,e,i,r){if(typeof t!="string"||!o)return;let[n,s,a]=g_(t,e,i);t in p_&&(s=(y=>function(w){if(!w.relatedTarget||w.relatedTarget!==w.delegateTarget&&!w.delegateTarget.contains(w.relatedTarget))return y.call(this,w)})(s));const l=h_(o),u=l[a]||(l[a]={}),c=v_(u,s,n?e:null);if(c){c.oneOff=c.oneOff&&r;return}const p=f_(s,t.replace(W1,"")),f=n?Y1(o,e,s):K1(o,s);f.delegationSelector=n?e:null,f.callable=s,f.oneOff=r,f.uidEvent=p,u[p]=f,o.addEventListener(a,f,n)}function Gf(o,t,e,i,r){const n=v_(t[e],i,r);n&&(o.removeEventListener(e,n,!!r),delete t[e][n.uidEvent])}function q1(o,t,e,i){const r=t[e]||{};for(const[n,s]of Object.entries(r))n.includes(i)&&Gf(o,t,e,s.callable,s.delegationSelector)}function y_(o){return o=o.replace(U1,""),p_[o]||o}const oe={on(o,t,e,i){Tm(o,t,e,i,!1)},one(o,t,e,i){Tm(o,t,e,i,!0)},off(o,t,e,i){if(typeof t!="string"||!o)return;const[r,n,s]=g_(t,e,i),a=s!==t,l=h_(o),u=l[s]||{},c=t.startsWith(".");if(typeof n<"u"){if(!Object.keys(u).length)return;Gf(o,l,s,n,r?e:null);return}if(c)for(const p of Object.keys(l))q1(o,l,p,t.slice(1));for(const[p,f]of Object.entries(u)){const v=p.replace(z1,"");(!a||t.includes(v))&&Gf(o,l,s,f.callable,f.delegationSelector)}},trigger(o,t,e){if(typeof t!="string"||!o)return null;const i=c_(),r=y_(t),n=t!==r;let s=null,a=!0,l=!0,u=!1;n&&i&&(s=i.Event(t,e),i(o).trigger(s),a=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());const c=wv(new Event(t,{bubbles:a,cancelable:!0}),e);return u&&c.preventDefault(),l&&o.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function wv(o,t={}){for(const[e,i]of Object.entries(t))try{o[e]=i}catch{Object.defineProperty(o,e,{configurable:!0,get(){return i}})}return o}function Rm(o){if(o==="true")return!0;if(o==="false")return!1;if(o===Number(o).toString())return Number(o);if(o===""||o==="null")return null;if(typeof o!="string")return o;try{return JSON.parse(decodeURIComponent(o))}catch{return o}}function Gp(o){return o.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const Yr={setDataAttribute(o,t,e){o.setAttribute(`data-bs-${Gp(t)}`,e)},removeDataAttribute(o,t){o.removeAttribute(`data-bs-${Gp(t)}`)},getDataAttributes(o){if(!o)return{};const t={},e=Object.keys(o.dataset).filter(i=>i.startsWith("bs")&&!i.startsWith("bsConfig"));for(const i of e){let r=i.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),t[r]=Rm(o.dataset[i])}return t},getDataAttribute(o,t){return Rm(o.getAttribute(`data-bs-${Gp(t)}`))}};class bl{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=Kr(e)?Yr.getDataAttribute(e,"config"):{};return{...this.constructor.Default,...typeof i=="object"?i:{},...Kr(e)?Yr.getDataAttributes(e):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[i,r]of Object.entries(e)){const n=t[i],s=Kr(n)?"element":V1(n);if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${s}" but expected type "${r}".`)}}}const X1="5.3.1";class lr extends bl{constructor(t,e){super(),t=In(t),t&&(this._element=t,this._config=this._getConfig(e),Ip.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ip.remove(this._element,this.constructor.DATA_KEY),oe.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){d_(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Ip.get(In(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return X1}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Hp=o=>{let t=o.getAttribute("data-bs-target");if(!t||t==="#"){let e=o.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null}return a_(t)},Ie={find(o,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,o))},findOne(o,t=document.documentElement){return Element.prototype.querySelector.call(t,o)},children(o,t){return[].concat(...o.children).filter(e=>e.matches(t))},parents(o,t){const e=[];let i=o.parentNode.closest(t);for(;i;)e.push(i),i=i.parentNode.closest(t);return e},prev(o,t){let e=o.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(o,t){let e=o.nextElementSibling;for(;e;){if(e.matches(t))return[e];e=e.nextElementSibling}return[]},focusableChildren(o){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,o).filter(e=>!xn(e)&&js(e))},getSelectorFromElement(o){const t=Hp(o);return t&&Ie.findOne(t)?t:null},getElementFromSelector(o){const t=Hp(o);return t?Ie.findOne(t):null},getMultipleElementsFromSelector(o){const t=Hp(o);return t?Ie.find(t):[]}},Jc=(o,t="hide")=>{const e=`click.dismiss${o.EVENT_KEY}`,i=o.NAME;oe.on(document,e,`[data-bs-dismiss="${i}"]`,function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),xn(this))return;const n=Ie.getElementFromSelector(this)||this.closest(`.${i}`);o.getOrCreateInstance(n)[t]()})},Q1="alert",J1="bs.alert",m_=`.${J1}`,Z1=`close${m_}`,eH=`closed${m_}`,tH="fade",iH="show";class Zc extends lr{static get NAME(){return Q1}close(){if(oe.trigger(this._element,Z1).defaultPrevented)return;this._element.classList.remove(iH);const e=this._element.classList.contains(tH);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),oe.trigger(this._element,eH),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=Zc.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}Jc(Zc,"close");Yi(Zc);const rH="button",nH="bs.button",oH=`.${nH}`,sH=".data-api",aH="active",Am='[data-bs-toggle="button"]',lH=`click${oH}${sH}`;class ed extends lr{static get NAME(){return rH}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(aH))}static jQueryInterface(t){return this.each(function(){const e=ed.getOrCreateInstance(this);t==="toggle"&&e[t]()})}}oe.on(document,lH,Am,o=>{o.preventDefault();const t=o.target.closest(Am);ed.getOrCreateInstance(t).toggle()});Yi(ed);const uH="swipe",Ws=".bs.swipe",cH=`touchstart${Ws}`,dH=`touchmove${Ws}`,pH=`touchend${Ws}`,fH=`pointerdown${Ws}`,hH=`pointerup${Ws}`,vH="touch",gH="pen",yH="pointer-event",mH=40,CH={endCallback:null,leftCallback:null,rightCallback:null},wH={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class mc extends bl{constructor(t,e){super(),this._element=t,!(!t||!mc.isSupported())&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return CH}static get DefaultType(){return wH}static get NAME(){return uH}dispose(){oe.off(this._element,Ws)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),ci(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=mH)return;const e=t/this._deltaX;this._deltaX=0,e&&ci(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(oe.on(this._element,fH,t=>this._start(t)),oe.on(this._element,hH,t=>this._end(t)),this._element.classList.add(yH)):(oe.on(this._element,cH,t=>this._start(t)),oe.on(this._element,dH,t=>this._move(t)),oe.on(this._element,pH,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===gH||t.pointerType===vH)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const SH="carousel",EH="bs.carousel",Wn=`.${EH}`,C_=".data-api",_H="ArrowLeft",OH="ArrowRight",bH=500,Ra="next",Xo="prev",ts="left",Nu="right",TH=`slide${Wn}`,Vp=`slid${Wn}`,RH=`keydown${Wn}`,AH=`mouseenter${Wn}`,PH=`mouseleave${Wn}`,DH=`dragstart${Wn}`,LH=`load${Wn}${C_}`,FH=`click${Wn}${C_}`,w_="carousel",_u="active",MH="slide",IH="carousel-item-end",xH="carousel-item-start",NH="carousel-item-next",GH="carousel-item-prev",S_=".active",E_=".carousel-item",HH=S_+E_,VH=".carousel-item img",kH=".carousel-indicators",BH="[data-bs-slide], [data-bs-slide-to]",jH='[data-bs-ride="carousel"]',WH={[_H]:Nu,[OH]:ts},UH={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},zH={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Tl extends lr{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Ie.findOne(kH,this._element),this._addEventListeners(),this._config.ride===w_&&this.cycle()}static get Default(){return UH}static get DefaultType(){return zH}static get NAME(){return SH}next(){this._slide(Ra)}nextWhenVisible(){!document.hidden&&js(this._element)&&this.next()}prev(){this._slide(Xo)}pause(){this._isSliding&&l_(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){oe.one(this._element,Vp,()=>this.cycle());return}this.cycle()}}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding){oe.one(this._element,Vp,()=>this.to(t));return}const i=this._getItemIndex(this._getActive());if(i===t)return;const r=t>i?Ra:Xo;this._slide(r,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&oe.on(this._element,RH,t=>this._keydown(t)),this._config.pause==="hover"&&(oe.on(this._element,AH,()=>this.pause()),oe.on(this._element,PH,()=>this._maybeEnableCycle())),this._config.touch&&mc.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const i of Ie.find(VH,this._element))oe.on(i,DH,r=>r.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(ts)),rightCallback:()=>this._slide(this._directionToOrder(Nu)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),bH+this._config.interval))}};this._swipeHelper=new mc(this._element,e)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=WH[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=Ie.findOne(S_,this._indicatorsElement);e.classList.remove(_u),e.removeAttribute("aria-current");const i=Ie.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(_u),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),r=t===Ra,n=e||Cv(this._getItems(),i,r,this._config.wrap);if(n===i)return;const s=this._getItemIndex(n),a=v=>oe.trigger(this._element,v,{relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:s});if(a(TH).defaultPrevented||!i||!n)return;const u=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=n;const c=r?xH:IH,p=r?NH:GH;n.classList.add(p),Ol(n),i.classList.add(c),n.classList.add(c);const f=()=>{n.classList.remove(c,p),n.classList.add(_u),i.classList.remove(_u,p,c),this._isSliding=!1,a(Vp)};this._queueCallback(f,i,this._isAnimated()),u&&this.cycle()}_isAnimated(){return this._element.classList.contains(MH)}_getActive(){return Ie.findOne(HH,this._element)}_getItems(){return Ie.find(E_,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Ui()?t===ts?Xo:Ra:t===ts?Ra:Xo}_orderToDirection(t){return Ui()?t===Xo?ts:Nu:t===Xo?Nu:ts}static jQueryInterface(t){return this.each(function(){const e=Tl.getOrCreateInstance(this,t);if(typeof t=="number"){e.to(t);return}if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}oe.on(document,FH,BH,function(o){const t=Ie.getElementFromSelector(this);if(!t||!t.classList.contains(w_))return;o.preventDefault();const e=Tl.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");if(i){e.to(i),e._maybeEnableCycle();return}if(Yr.getDataAttribute(this,"slide")==="next"){e.next(),e._maybeEnableCycle();return}e.prev(),e._maybeEnableCycle()});oe.on(window,LH,()=>{const o=Ie.find(jH);for(const t of o)Tl.getOrCreateInstance(t)});Yi(Tl);const $H="collapse",KH="bs.collapse",Rl=`.${KH}`,YH=".data-api",qH=`show${Rl}`,XH=`shown${Rl}`,QH=`hide${Rl}`,JH=`hidden${Rl}`,ZH=`click${Rl}${YH}`,kp="show",ds="collapse",Ou="collapsing",eV="collapsed",tV=`:scope .${ds} .${ds}`,iV="collapse-horizontal",rV="width",nV="height",oV=".collapse.show, .collapse.collapsing",Hf='[data-bs-toggle="collapse"]',sV={parent:null,toggle:!0},aV={parent:"(null|element)",toggle:"boolean"};class Ms extends lr{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=Ie.find(Hf);for(const r of i){const n=Ie.getSelectorFromElement(r),s=Ie.find(n).filter(a=>a===this._element);n!==null&&s.length&&this._triggerArray.push(r)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return sV}static get DefaultType(){return aV}static get NAME(){return $H}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(oV).filter(a=>a!==this._element).map(a=>Ms.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||oe.trigger(this._element,qH).defaultPrevented)return;for(const a of t)a.hide();const i=this._getDimension();this._element.classList.remove(ds),this._element.classList.add(Ou),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(Ou),this._element.classList.add(ds,kp),this._element.style[i]="",oe.trigger(this._element,XH)},s=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[i]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||oe.trigger(this._element,QH).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Ol(this._element),this._element.classList.add(Ou),this._element.classList.remove(ds,kp);for(const r of this._triggerArray){const n=Ie.getElementFromSelector(r);n&&!this._isShown(n)&&this._addAriaAndCollapsedClass([r],!1)}this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(Ou),this._element.classList.add(ds),oe.trigger(this._element,JH)};this._element.style[e]="",this._queueCallback(i,this._element,!0)}_isShown(t=this._element){return t.classList.contains(kp)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=In(t.parent),t}_getDimension(){return this._element.classList.contains(iV)?rV:nV}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Hf);for(const e of t){const i=Ie.getElementFromSelector(e);i&&this._addAriaAndCollapsedClass([e],this._isShown(i))}}_getFirstLevelChildren(t){const e=Ie.find(tV,this._config.parent);return Ie.find(t,this._config.parent).filter(i=>!e.includes(i))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle(eV,!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const i=Ms.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t]()}})}}oe.on(document,ZH,Hf,function(o){(o.target.tagName==="A"||o.delegateTarget&&o.delegateTarget.tagName==="A")&&o.preventDefault();for(const t of Ie.getMultipleElementsFromSelector(this))Ms.getOrCreateInstance(t,{toggle:!1}).toggle()});Yi(Ms);const Pm="dropdown",lV="bs.dropdown",Fo=`.${lV}`,Sv=".data-api",uV="Escape",Dm="Tab",cV="ArrowUp",Lm="ArrowDown",dV=2,pV=`hide${Fo}`,fV=`hidden${Fo}`,hV=`show${Fo}`,vV=`shown${Fo}`,__=`click${Fo}${Sv}`,O_=`keydown${Fo}${Sv}`,gV=`keyup${Fo}${Sv}`,is="show",yV="dropup",mV="dropend",CV="dropstart",wV="dropup-center",SV="dropdown-center",lo='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',EV=`${lo}.${is}`,Gu=".dropdown-menu",_V=".navbar",OV=".navbar-nav",bV=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",TV=Ui()?"top-end":"top-start",RV=Ui()?"top-start":"top-end",AV=Ui()?"bottom-end":"bottom-start",PV=Ui()?"bottom-start":"bottom-end",DV=Ui()?"left-start":"right-start",LV=Ui()?"right-start":"left-start",FV="top",MV="bottom",IV={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},xV={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class or extends lr{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=Ie.next(this._element,Gu)[0]||Ie.prev(this._element,Gu)[0]||Ie.findOne(Gu,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return IV}static get DefaultType(){return xV}static get NAME(){return Pm}toggle(){return this._isShown()?this.hide():this.show()}show(){if(xn(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!oe.trigger(this._element,hV,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(OV))for(const i of[].concat(...document.body.children))oe.on(i,"mouseover",yc);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(is),this._element.classList.add(is),oe.trigger(this._element,vV,t)}}hide(){if(xn(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!oe.trigger(this._element,pV,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))oe.off(i,"mouseover",yc);this._popper&&this._popper.destroy(),this._menu.classList.remove(is),this._element.classList.remove(is),this._element.setAttribute("aria-expanded","fal
1057se"),Yr.removeDataAttribute(this._menu,"popper"),oe.trigger(this._element,fV,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!Kr(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Pm.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof s_>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:Kr(this._config.reference)?t=In(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=mv(t,this._menu,e)}_isShown(){return this._menu.classList.contains(is)}_getPlacement(){const t=this._parent;if(t.classList.contains(mV))return DV;if(t.classList.contains(CV))return LV;if(t.classList.contains(wV))return FV;if(t.classList.contains(SV))return MV;const e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(yV)?e?RV:TV:e?PV:AV}_detectNavbar(){return this._element.closest(_V)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Yr.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...ci(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const i=Ie.find(bV,this._menu).filter(r=>js(r));i.length&&Cv(i,e,t===Lm,!i.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=or.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===dV||t.type==="keyup"&&t.key!==Dm)return;const e=Ie.find(EV);for(const i of e){const r=or.getInstance(i);if(!r||r._config.autoClose===!1)continue;const n=t.composedPath(),s=n.includes(r._menu);if(n.includes(r._element)||r._config.autoClose==="inside"&&!s||r._config.autoClose==="outside"&&s||r._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Dm||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const a={relatedTarget:r._element};t.type==="click"&&(a.clickEvent=t),r._completeHide(a)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i=t.key===uV,r=[cV,Lm].includes(t.key);if(!r&&!i||e&&!i)return;t.preventDefault();const n=this.matches(lo)?this:Ie.prev(this,lo)[0]||Ie.next(this,lo)[0]||Ie.findOne(lo,t.delegateTarget.parentNode),s=or.getOrCreateInstance(n);if(r){t.stopPropagation(),s.show(),s._selectMenuItem(t);return}s._isShown()&&(t.stopPropagation(),s.hide(),n.focus())}}oe.on(document,O_,lo,or.dataApiKeydownHandler);oe.on(document,O_,Gu,or.dataApiKeydownHandler);oe.on(document,__,or.clearMenus);oe.on(document,gV,or.clearMenus);oe.on(document,__,lo,function(o){o.preventDefault(),or.getOrCreateInstance(this).toggle()});Yi(or);const b_="backdrop",NV="fade",Fm="show",Mm=`mousedown.bs.${b_}`,GV={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},HV={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class T_ extends bl{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return GV}static get DefaultType(){return HV}static get NAME(){return b_}show(t){if(!this._config.isVisible){ci(t);return}this._append();const e=this._getElement();this._config.isAnimated&&Ol(e),e.classList.add(Fm),this._emulateAnimation(()=>{ci(t)})}hide(t){if(!this._config.isVisible){ci(t);return}this._getElement().classList.remove(Fm),this._emulateAnimation(()=>{this.dispose(),ci(t)})}dispose(){this._isAppended&&(oe.off(this._element,Mm),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(NV),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=In(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),oe.on(t,Mm,()=>{ci(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){d_(t,this._getElement(),this._config.isAnimated)}}const VV="focustrap",kV="bs.focustrap",Cc=`.${kV}`,BV=`focusin${Cc}`,jV=`keydown.tab${Cc}`,WV="Tab",UV="forward",Im="backward",zV={autofocus:!0,trapElement:null},$V={autofocus:"boolean",trapElement:"element"};class R_ extends bl{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return zV}static get DefaultType(){return $V}static get NAME(){return VV}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),oe.off(document,Cc),oe.on(document,BV,t=>this._handleFocusin(t)),oe.on(document,jV,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,oe.off(document,Cc))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;
vendor: 25,218 bytes, line 1057
1057const i=Ie.focusableChildren(e);i.length===0?e.focus():this._lastTabNavDirection===Im?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){t.key===WV&&(this._lastTabNavDirection=t.shiftKey?Im:UV)}}const xm=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Nm=".sticky-top",bu="padding-right",Gm="margin-right";class Vf{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,bu,e=>e+t),this._setElementAttributes(xm,bu,e=>e+t),this._setElementAttributes(Nm,Gm,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,bu),this._resetElementAttributes(xm,bu),this._resetElementAttributes(Nm,Gm)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const r=this.getWidth(),n=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+r)return;this._saveInitialAttribute(s,e);const a=window.getComputedStyle(s).getPropertyValue(e);s.style.setProperty(e,`${i(Number.parseFloat(a))}px`)};this._applyManipulationCallback(t,n)}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&Yr.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){const i=r=>{const n=Yr.getDataAttribute(r,e);if(n===null){r.style.removeProperty(e);return}Yr.removeDataAttribute(r,e),r.style.setProperty(e,n)};this._applyManipulationCallback(t,i)}_applyManipulationCallback(t,e){if(Kr(t)){e(t);return}for(const i of Ie.find(t,this._element))e(i)}}const KV="modal",YV="bs.modal",zi=`.${YV}`,qV=".data-api",XV="Escape",QV=`hide${zi}`,JV=`hidePrevented${zi}`,A_=`hidden${zi}`,P_=`show${zi}`,ZV=`shown${zi}`,ek=`resize${zi}`,tk=`click.dismiss${zi}`,ik=`mousedown.dismiss${zi}`,rk=`keydown.dismiss${zi}`,nk=`click${zi}${qV}`,Hm="modal-open",ok="fade",Vm="show",Bp="modal-static",sk=".modal.show",ak=".modal-dialog",lk=".modal-body",uk='[data-bs-toggle="modal"]',ck={backdrop:!0,focus:!0,keyboard:!0},dk={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Is extends lr{constructor(t,e){super(t,e),this._dialog=Ie.findOne(ak,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Vf,this._addEventListeners()}static get Default(){return ck}static get DefaultType(){return dk}static get NAME(){return KV}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||oe.trigger(this._element,P_,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Hm),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||oe.trigger(this._element,QV).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Vm),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){oe.off(window,zi),oe.off(this._dialog,zi),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new T_({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new R_({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=Ie.findOne(lk,this._dialog);e&&(e.scrollTop=0),Ol(this._element),this._element.classList.add(Vm);const i=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,oe.trigger(this._element,ZV,{relatedTarget:t})};this._queueCallback(i,this._dialog,this._isAnimated())}_addEventListeners(){oe.on(this._element,rk,t=>{if(t.key===XV){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),oe.on(window,ek,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),oe.on(this._element,ik,t=>{oe.one(this._element,tk,e=>{if(!(this._element!==t.target||this._element!==e.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Hm),this._resetAdjustments(),this._scrollBar.reset(),oe.trigger(this._element,A_)})}_isAnimated(){return this._element.classList.contains(ok)}_triggerBackdropTransition(){if(oe.trigger(this._element,JV).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;i==="hidden"||this._element.classList.contains(Bp)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Bp),this._queueCallback(()=>{this._element.classList.remove(Bp),this._queueCallback(()=>{this._element.style.overflowY=i},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const r=Ui()?"paddingLeft":"paddingRight";this._element.style[r]=`${e}px`}if(!i&&t){const r=Ui()?"paddingRight":"paddingLeft";this._element.style[r]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const i=Is.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t](e)}})}}oe.on(document,nk,uk,function(o){const t=Ie.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&o.preventDefault(),oe.one(t,P_,r=>{r.defaultPrevented||oe.one(t,A_,()=>{js(this)&&this.focus()})});const e=Ie.findOne(sk);e&&Is.getInstance(e).hide(),Is.getOrCreateInstance(t).toggle(this)});Jc(Is);Yi(Is);const pk="offcanvas",fk="bs.offcanvas",nn=`.${fk}`,D_=".data-api",hk=`load${nn}${D_}`,vk="Escape",km="show",Bm="showing",jm="hiding",gk="offcanvas-backdrop",L_=".offcanvas.show",yk=`show${nn}`,mk=`shown${nn}`,Ck=`hide${nn}`,Wm=`hidePrevented${nn}`,F_=`hidden${nn}`,wk=`resize${nn}`,Sk=`click${nn}${D_}`,Ek=`keydown.dismiss${nn}`,_k='[data-bs-toggle="offcanvas"]',Ok={backdrop:!0,keyboard:!0,scroll:!1},bk={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Nn extends lr{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Ok}static get DefaultType(){return bk}static get NAME(){return pk}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||oe.trigger(this._element,yk,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Vf().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Bm);const i=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(km),this._element.classList.remove(Bm),oe.trigger(this._element,mk,{relatedTarget:t})};this._queueCallback(i,this._element,!0)}hide(){if(!this._isShown||oe.trigger(this._element,Ck).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(jm),this._backdrop.hide();const e=()=>{this._element.classList.remove(km,jm),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Vf().reset(),oe.trigger(this._element,F_)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){oe.trigger(this._element,Wm);return}this.hide()},e=!!this._config.backdrop;return new T_({className:gk,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new R_({trapElement:this._element})}_addEventListeners(){oe.on(this._element,Ek,t=>{if(t.key===vk){if(this._config.keyboard){this.hide();return}oe.trigger(this._element,Wm)}})}static jQueryInterface(t){return this.each(function(){const e=Nn.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}oe.on(document,Sk,_k,function(o){const t=Ie.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),xn(this))return;oe.one(t,F_,()=>{js(this)&&this.focus()});const e=Ie.findOne(L_);e&&e!==t&&Nn.getInstance(e).hide(),Nn.getOrCreateInstance(t).toggle(this)});oe.on(window,hk,()=>{for(const o of Ie.find(L_))Nn.getOrCreateInstance(o).show()});oe.on(window,wk,()=>{for(const o of Ie.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(o).position!=="fixed"&&Nn.getOrCreateInstance(o).hide()});Jc(Nn);Yi(Nn);const Tk=/^aria-[\w-]*$/i,M_={"*":["class","dir","id","lang","role",Tk],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Rk=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ak=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Pk=(o,t)=>{const e=o.nodeName.toLowerCase();return t.includes(e)?Rk.has(e)?!!Ak.test(o.nodeValue):!0:t.filter(i=>i instanceof RegExp).some(i=>i.test(e))};function Dk(o,t,e){if(!o.length)return o;if(e&&typeof e=="function")return e(o);const r=new window.DOMParser().parseFromString(o,"text/html"),n=[].concat(...r.body.querySelectorAll("*"));for(const s of n){const a=s.nodeName.toLowerCase();if(!Object.keys(t).includes(a)){s.remove();continue}const l=[].concat(...s.attributes),u=[].concat(t["*"]||[],t[a]||[]);for(const c of l)Pk(c,u)||s.removeAttribute(c.nodeName)}return r.body.innerHTML}const Lk="TemplateFactory",Fk={allowList:M_,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Mk={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Ik={entry:"(string|element|function|null)",selector:"(string|element)"};class xk extends bl{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Fk}static get DefaultType(){return Mk}static get NAME(){return Lk}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[r,n]of Object.entries(this._config.content))this._setContent(t,n,r);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},Ik)}_setContent(t,e,i){const r=Ie.findOne(i,t);if(r){if(e=this._resolvePossibleFunction(e),!e){r.remove();return}if(Kr(e)){this._putElementInTemplate(In(e),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(e);return}r.textContent=e}}_maybeSanitize(t){return this._config.sanitize?Dk(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return ci(t,[this])}_putElementInTemplate(t,e){if(this._config.html){e.innerHTML="",e.append(t);return}e.textContent=t.textContent}}const Nk="tooltip",Gk=new Set(["sanitize","allowList","sanitizeFn"]),jp="fade",Hk="modal",Tu="show",Vk=".tooltip-inner",Um=`.${Hk}`,zm="hide.bs.modal",Aa="hover",Wp="focus",kk="click",Bk="manual",jk="hide",Wk="hidden",Uk="show",zk="shown",$k="inserted",Kk="click",Yk="focusin",qk="focusout",Xk="mouseenter",Qk="mouseleave",Jk={AUTO:"auto",TOP:"top",RIGHT:Ui()?"left":"right",BOTTOM:"bottom",LEFT:Ui()?"right":"left"},Zk={allowList:M_,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},e2={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Un extends lr{constructor(t,e){if(typeof s_>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Zk}static get DefaultType(){return e2}static get NAME(){return Nk}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),oe.off(this._element.closest(Um),zm,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=oe.trigger(this._element,this.constructor.eventName(Uk)),i=(u_(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!i)return;this._disposePopper();const r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(r),oe.trigger(this._element,this.constructor.eventName($k))),this._popper=this._createPopper(r),r.classList.add(Tu),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))oe.on(a,"mouseover",yc);const s=()=>{oe.trigger(this._element,this.constructor.eventName(zk)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||oe.trigger(this._element,this.constructor.eventName(jk)).defaultPrevented)return;if(this._getTipElement().classList.remove(Tu),"ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))oe.off(r,"mouseover",yc);this._activeTrigger[kk]=!1,this._activeTrigger[Wp]=!1,this._activeTrigger[Aa]=!1,this._isHovered=null;const i=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),oe.trigger(this._element,this.constructor.eventName(Wk)))};this._queueCallback(i,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(jp,Tu),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=k1(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(jp),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new xk({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Vk]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(jp)}_isShown(){return this.tip&&this.tip.classList.contains(Tu)}_createPopper(t){const e=ci(this._config.placement,[this,t,this._element]),i=Jk[e.toUpperCase()];return mv(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_resolvePossibleFunction(t){return ci(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:i=>{this._getTipElement().setAttribute("data-popper-placement",i.state.placement)}}]};return{...e,...ci(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if(e==="click")oe.on(this._element,this.constructor.eventName(Kk),this._config.selector,i=>{this._initializeOnDelegatedTarget(i).toggle()});else if(e!==Bk){const i=e===Aa?this.constructor.eventName(Xk):this.constructor.eventName(Yk),r=e===Aa?this.constructor.eventName(Qk):this.constructor.eventName(qk);oe.on(this._element,i,this._config.selector,n=>{const s=this._initializeOnDelegatedTarget(n);s._activeTrigger[n.type==="focusin"?Wp:Aa]=!0,s._enter()}),oe.on(this._element,r,this._config.selector,n=>{const s=this._initializeOnDelegatedTarget(n);s._activeTrigger[n.type==="focusout"?Wp:Aa]=s._element.contains(n.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},oe.on(this._element.closest(Um),zm,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=Yr.getDataAttributes(this._element);for(const i of Object.keys(e))Gk.has(i)&&delete e[i];return t={...e,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:In(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,i]of Object.entries(this._config))this.constructor.Default[e]!==i&&(t[e]=i);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=Un.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}Yi(Un);const t2="popover",i2=".popover-header",r2=".popover-body",n2={...Un.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},o2={...Un.DefaultType,content:"(null|string|element|function)"};class Ev extends Un{static get Default(){return n2}static get DefaultType(){return o2}static get NAME(){return t2}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[i2]:this._getTitle(),[r2]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=Ev.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}Yi(Ev);const s2="scrollspy",a2="bs.scrollspy",_v=`.${a2}`,l2=".data-api",u2=`activate${_v}`,$m=`click${_v}`,c2=`load${_v}${l2}`,d2="dropdown-item",Qo="active",p2='[data-bs-spy="scroll"]',Up="[href]",f2=".nav, .list-group",Km=".nav-link",h2=".nav-item",v2=".list-group-item",g2=`${Km}, ${h2} > ${Km}, ${v2}`,y2=".dropdown",m2=".dropdown-toggle",C2={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},w2={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class td extends lr{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return C2}static get DefaultType(){return w2}static get NAME(){return s2}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=In(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(e=>Number.parseFloat(e))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(oe.off(this._config.target,$m),oe.on(this._config.target,$m,Up,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,r=e.offsetTop-this._element.offsetTop;if(i.scrollTo){i.scrollTo({top:r,behavior:"smooth"});return}i.scrollTop=r}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),t)}_observerCallback(t){const e=s=>this._targetLinks.get(`#${s.target.id}`),i=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(e(s))},r=(this._rootElement||document.documentElement).scrollTop,n=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const s of t){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(s));continue}const a=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&a){if(i(s),!r)return;continue}!n&&!a&&i(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=Ie.find(Up,this._config.target);for(const e of t){if(!e.hash||xn(e))continue;const i=Ie.findOne(decodeURI(e.hash),this._element);js(i)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,i))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Qo),this._activateParents(t),oe.trigger(this._element,u2,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(d2)){Ie.findOne(m2,t.closest(y2)).classList.add(Qo);return}for(const e of Ie.parents(t,f2))for(const i of Ie.prev(e,g2))i.classList.add(Qo)}_clearActiveClass(t){t.classList.remove(Qo);const e=Ie.find(`${Up}.${Qo}`,t);for(const i of e)i.classList.remove(Qo)}static jQueryInterface(t){return this.each(function(){const e=td.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method n
1057amed "${t}"`);e[t]()}})}}oe.on(window,c2,()=>{for(const o of Ie.find(p2))td.getOrCreateInstance(o)});Yi(td);const S2="tab",E2="bs.tab",Mo=`.${E2}`,_2=`hide${Mo}`,O2=`hidden${Mo}`,b2=`show${Mo}`,T2=`shown${Mo}`,R2=`click${Mo}`,A2=`keydown${Mo}`,P2=`load${Mo}`,D2="ArrowLeft",Ym="ArrowRight",L2="ArrowUp",qm="ArrowDown",zp="Home",Xm="End",uo="active",Qm="fade",$p="show",F2="dropdown",M2=".dropdown-toggle",I2=".dropdown-menu",Kp=":not(.dropdown-toggle)",x2='.list-group, .nav, [role="tablist"]',N2=".nav-item, .list-group-item",G2=`.nav-link${Kp}, .list-group-item${Kp}, [role="tab"]${Kp}`,I_='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Yp=`${G2}, ${I_}`,H2=`.${uo}[data-bs-toggle="tab"], .${uo}[data-bs-toggle="pill"], .${uo}[data-bs-toggle="list"]`;class xs extends lr{constructor(t){super(t),this._parent=this._element.closest(x2),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),oe.on(this._element,A2,e=>this._keydown(e)))}static get NAME(){return S2}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?oe.trigger(e,_2,{relatedTarget:t}):null;oe.trigger(t,b2,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(uo),this._activate(Ie.getElementFromSelector(t));const i=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add($p);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),oe.trigger(t,T2,{relatedTarget:e})};this._queueCallback(i,t,t.classList.contains(Qm))}_deactivate(t,e){if(!t)return;t.classList.remove(uo),t.blur(),this._deactivate(Ie.getElementFromSelector(t));const i=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove($p);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),oe.trigger(t,O2,{relatedTarget:e})};this._queueCallback(i,t,t.classList.contains(Qm))}_keydown(t){if(![D2,Ym,L2,qm,zp,Xm].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter(r=>!xn(r));let i;if([zp,Xm].includes(t.key))i=e[t.key===zp?0:e.length-1];else{const r=[Ym,qm].includes(t.key);i=Cv(e,t.target,r,!0)}i&&(i.focus({preventScroll:!0}),xs.getOrCreateInstance(i).show())}_getChildren(){return Ie.find(Yp,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const i of e)this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=Ie.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains(F2))return;const r=(n,s)=>{const a=Ie.findOne(n,i);a&&a.classList.toggle(s,e)};r(M2,uo),r(I2,$p),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(uo)}_getInnerElement(t){return t.matches(Yp)?t:Ie.findOne(Yp,t)}_getOuterElement(t){return t.closest(N2)||t}static jQueryInterface(t){return this.each(function(){const e=xs.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}oe.on(document,R2,I_,function(o){["A","AREA"].includes(this.tagName)&&o.preventDefault(),!xn(this)&&xs.getOrCreateInstance(this).show()});oe.on(window,P2,()=>{for(const o of Ie.find(H2))xs.getOrCreateInstance(o)});Yi(xs);const V2="toast",k2="bs.toast",zn=`.${k2}`,B2=`mouseover${zn}`,j2=`mouseout${zn}`,W2=`focusin${zn}`,U2=`focusout${zn}`,z2=`hide${zn}`,$2=`hidden${zn}`,K2=`show${zn}`,Y2=`shown${zn}`,q2="fade",Jm="hide",Ru="show",Au="showing",X2={animation:"boolean",autohide:"boolean",delay:"number"},Q2={animation:!0,autohide:!0,delay:5e3};class id extends lr{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Q2}static get DefaultType(){return X2}static get NAME(){return V2}show(){if(oe.trigger(this._element,K2).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(q2);const e=()=>{this._element.classList.remove(Au),oe.trigger(this._element,Y2),this._maybeScheduleHide()};this._element.classList.remove(Jm),Ol(this._element),this._element.classList.add(Ru,Au),this._queueCallback(e,this._element,this._config.animation)}
1057hide(){if(!this.isShown()||oe.trigger(this._element,z2).defaultPrevented)return;const e=()=>{this._element.classList.add(Jm),this._element.classList.remove(Au,Ru),oe.trigger(this._element,$2)};this._element.classList.add(Au),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Ru),super.dispose()}isShown(){return this._element.classList.contains(Ru)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=e;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=e;break}}if(e){this._clearTimeout();return}const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){oe.on(this._element,B2,t=>this._onInteraction(t,!0)),oe.on(this._element,j2,t=>this._onInteraction(t,!1)),oe.on(this._element,W2,t=>this._onInteraction(t,!0)),oe.on(this._element,U2,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=id.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}Jc(id);Yi(id);const J2=document.querySelectorAll('[data-bs-toggle="tooltip"]');[...J2].map(o=>new Un(o));document.addEventListener("DOMContentLoaded",()=>{const o=document.body,t=48,e=document.querySelectorAll(".mobile-nav__toggle--js"),i=document.querySelectorAll(".overlay-search__toggle--js"),r=document.querySelector(".language-switch--js"),n=document.querySelector(".language-switch__close--js"),s=document.querySelectorAll(".language-switch__item--js"),a=document.querySelector(".language-switch__button--js"),l=document.querySelector(".language-switch__selector-inner--js"),u=te=>{a.setAttribute("href",te)};n&&n.addEventListener("click",function(){r.classList.toggle("language-switch--hide")}),s.length>0&&s.forEach(te=>{te.addEventListener("click",function(){l.innerHTML=te.innerHTML,u(te.dataset.href)})}),window.showLang=function(){r.classList.toggle("language-switch--hide")};const c=document.querySelector(".main-nav .main-nav__l1-item--our-sites");if(c){const te=c.querySelector('[data-bs-toggle="dropdown"]'),ue=or.getOrCreateInstance(te);c.addEventListener("mouseenter",()=>ue.show()),c.addEventListener("mouseleave",()=>ue.hide())}window.showLoadingLayer=function(){const te=document.querySelector(".loader-layer");te&&te.classList.toggle("hide")},AO.init({once:!0,offset:200,duration:400}),e.forEach(te=>{te.addEventListener("click",()=>{e.forEach(ue=>{ue.classList.toggle("toggle--active")}),o.classList.toggle("body--mobile-nav-visible"),o.classList.remove("body--overlay-nav-visible","body--overlay-search-visible"),i.forEach(ue=>{ue.classList.remove("toggle--active")})})}
1057),i.forEach(te=>{te.addEventListener("click",()=>{i.forEach(ue=>{ue.classList.toggle("toggle--active")}),o.classList.toggle("body--overlay-search-visible"),o.classList.remove("body--mobile-nav-visible","body--overlay-nav-visible"),e.forEach(ue=>{ue.classList.remove("toggle--active")})})});const p=document.querySelectorAll(".main-nav__l2-wrapper--js"),f=()=>{p.forEach(te=>{te.style.display="block",te.style.top="-100vh";let ue=0;const Ee=te.querySelectorAll(".main-nav__l3-item-title--js");Ee.forEach(Ae=>{const Fe=Ae.offsetHeight;ue=Fe>ue?Fe:ue}),Ee.forEach(Ae=>{Ae.style.minHeight=ue+"px"});let De=0;const He=te.querySelectorAll(".main-nav__l3-item-content--js");He.forEach(Ae=>{const Fe=Ae.offsetHeight;De=Fe>De?Fe:De}),He.forEach(Ae=>{Ae.style.minHeight=De+"px"}),te.removeAttribute("style")})};f();let v;if(window.onresize=function(){clearTimeout(v),v=setTimeout(f(),1e3)},window.location.search.includes("landingPage")||window.location.search.includes("category")){const te=document.querySelector(".overview-page__filters--js");te&&te.scrollIntoView()}const y=document.querySelectorAll(".brands-slider--js");y&&y.forEach(te=>{new xi(te,{type:"loop",pagination:!1,mediaQuery:"min",perPage:1,perMove:1,breakpoints:{991:{perPage:3},767:{perPage:2}}}).mount()});const w=document.querySelectorAll(".content-case-pp__cases--js");w&&w.forEach(te=>{new xi(te,{type:"loop",pagination:!1}).mount()});const b=document.querySelector(".webinars__history-slider--js");b&&new xi(b,{type:"loop",pagination:!1}).mount();const O=document.querySelectorAll(".logo-pp__slider--js");O&&O.forEach(te=>{const ue=te.dataset.columns,Ee=te.dataset.smooth;let De=null;Ee?(De=new xi(te,{pauseOnHover:!0,type:"loop",pagination:!1,mediaQuery:"min",perPage:2,perMove:2,autoScroll:{speed:.5},breakpoints:{991:{perPage:ue,perMove:ue},767:{perPage:Math.ceil(ue/2),perMove:Math.ceil(ue/2)}}}),De.mount({AutoScroll:XG})):(De=new xi(te,{autoplay:!0,pauseOnHover:!0,type:"loop",pagination:!1,mediaQuery:"min",perPage:2,perMove:2,breakpoints:{991:{perPage:ue,perMove:ue},767:{perPage:Math.ceil(ue/2),perMove:Math.ceil(ue/2)}}}),De.mount())});const A=document.querySelectorAll(".infographic-pp__slider--js");A&&A.forEach(te=>{new xi(te,{type:"loop",gap:"1rem"}).mount()});let P={useGrouping:!1,separator:"",decimal:".",duration:5};const L=document.querySelectorAll('[data-countUp="true"]');L&&L.forEach(te=>{const ue=te.id,Ee=te.dataset.countupValue,De=te.dataset.countupDecimalPlaces;De&&(P.decimalPlaces=De);const He=new TO(ue,Ee,P);He.error||He.start()});const x=document.querySelectorAll("form.form-recaptcha");x&&x.forEach(te=>{te.addEventListener("submit",ue=>{window.formRecaptcha=te,ue.preventDefault(),grecaptcha.execute()})});const H=document.querySelector(".header-slider--js");H&&new xi(H,{type:"loop",autoplay:!0,pauseOnHover:!0}).mount();const g=document.querySelectorAll(".content-media-pp--js");g&&g.forEach(te=>{const ue=te.querySelector(".content-media-pp__video-overlay--js");if(ue!==null){const Ee=ue.dataset.bsTarget,De=document.querySelector(Ee),He=ue.dataset.src,Ae=He+"?autoplay=1&modestbranding=1&showinfo=0";De&&(De.addEventListener("shown.bs.modal",()=>{De.querySelector(".video-modal__iframe--js").src=Ae}),De.addEventListener("hide.bs.modal",()=>{De.querySelector(".video-modal__iframe--js").src=He}))}});const N=document.querySelectorAll(".feature-pp--js");
1057N&&N.forEach(te=>{const ue=te.querySelectorAll(".product-feature-sub-item--js");ue&&ue.forEach(Ee=>{const De=Ee.querySelector(".product-feature-sub-item__content-wrapper--js"),He=Ee.querySelector(".product-feature-sub-item__content--js"),Ae=De.offsetHeight,Fe=He.offsetHeight;Ee.addEventListener("click",()=>{ue.forEach(at=>{const we=at.querySelector(".product-feature-sub-item__content-wrapper--js");at.classList.remove("product-feature-sub-item--active"),we.style.height=Ae+"px"}),Ee.classList.add("product-feature-sub-item--active");const Ze=Ee.querySelector(".product-feature-sub-item__content-wrapper--js");Ze.style.height=Fe+"px"})})});const V=document.querySelector(".call-to-action-form-pp__form--js");if(V){const te=V.querySelectorAll(".contact-field"),ue=V.querySelectorAll("div[data-condition]"),Ee=V.elements;let De=[];const He=()=>{De=[];for(let Ae=0;Ae<Ee.length;Ae++){let Fe=null;if(Ee[Ae].type=="radio"&&Ee[Ae].checked){Fe=Ee[Ae].value;const Ze=Ae===0?0:1,at=+!Ae;te[Ze].classList.remove("form-control--hidden"),te[at].classList.add("form-control--hidden")}Fe!==null&&De.push(Fe)}ue.forEach(Ae=>{Ae.style.display="none"}),De.forEach(Ae=>{ue&&ue.forEach(Fe=>{Fe.dataset.condition==Ae&&(Fe.style.display="block")})})};for(let Ae=0;Ae<Ee.length;Ae++)Ee[Ae].addEventListener("change",()=>{He()})}const z=document.querySelector("main :first-child"),I=document.querySelector(".sticky-header--js");let k=null;I&&z&&(k=z.getBoundingClientRect().top+window.scrollY+z.offsetHeight);function j(){k!=null&&(window.scrollY>k?o.classList.add("body--show-sticky-header"):o.classList.remove("body--show-sticky-header"))}I&&window.addEventListener("scroll",()=>{j()});const X=document.getElementById("partner-show-branches-form--js"),re=document.getElementById("partner-show-branches-checkbox--js");X&&re&&re.addEventListener("change",()=>{X.submit()});let ge;const ae=document.querySelector(".career-page-filters__form--js"),ve=document.querySelector(".career-list--js");if(ae&&ve){const te=ae.querySelectorAll(".career-page-filters__input--js");te&&te.forEach(ue=>{ue.addEventListener("change",()=>{let Ee=null,De=null,He=null;ue.hasAttribute("data-collapse")&&(De=new Ms(ue.dataset.collapse,{toggle:!1})),ue.hasAttribute("data-children")&&(Ee=ue.dataset.children),Ee!==null&&(He=ae.querySelectorAll('.career-page-filters__input--js[data-country="'+Ee+'"]')),ue.checked&&He!==null&&De!==null?(He.forEach(Ae=>{Ae.checked=!0}),De.show()):He!==null&&De!==null&&(He.forEach(Ae=>{Ae.checked=!1}),De.hide()),clearTimeout(ge),ge=setTimeout(function(){ae.submit()},2500)}),ue.checked&&ve.scrollIntoView()})}const pe=document.querySelectorAll(".video-wrapper--js"),ne=()=>{pe.forEach(te=>{const ue=te.querySelector(".video--js"),Ee=te.offsetHeight+100,De=te.offsetWidth+100;let He=null,Ae=null;Ee<De*.5625?(He=De,Ae=De*.5625):(He=Ee*1.7778,Ae=Ee),ue.style.height=Ae+"px",ue.style.width=He+"px"})};ne(),window.addEventListener("resize",()=>{ne()});const ye=document.querySelectorAll(".testimonial-pp__slider--js");ye&&ye.forEach(te=>{new xi(te,{autoplay:!0,pauseOnHover:!0,type:"loop",pagination:!1,mediaQuery:"min",perPage:1,perMove:1,breakpoints:{767:{perPage:2}}}).mount()});const Pe=document.querySelectorAll(".product-usp-pp--js");Pe&&Pe.forEach(te=>{const ue=te.querySelector(".product-usp-pp__slider--js"),Ee=te.querySelectorAll(".product-usp-pp__nav-item--js");if(ue&&Ee){const De=new xi(ue,{type:"fade",arrows:!1}
1057);De.mount(),De.on("moved",function(He){Ee.forEach(Ae=>{Ae.classList.remove("product-usp-pp__nav-item--active")}),Ee[He].classList.add("product-usp-pp__nav-item--active")}),Ee.forEach(He=>{He.addEventListener("click",()=>{const Ae=parseInt(He.dataset.slideIndex);De.go(Ae)})})}});const Se=document.querySelectorAll(".content-with-slider-pp__slider--js");Se&&Se.forEach(te=>{new xi(te,{type:"loop",perPage:1,perMove:1,gap:"2rem"}).mount()});const Ge=()=>{window.scrollY>t?document.body.classList.add("body--scrolled"):document.body.classList.remove("body--scrolled")};window.addEventListener("scroll",()=>{Ge()}),Ge(),document.querySelectorAll(".image-gallery-pp--js").forEach(te=>{new uN({elements:te.querySelectorAll("a")})}),document.querySelectorAll(".sip-provider-products-pp--js").forEach(te=>{const ue=te.querySelector(".sip-provider-products-pp__grid"),Ee=JSON.parse(ue.dataset.gridColumnDefs),De=JSON.parse(ue.dataset.gridRowData),{translations:He}=JSON.parse(ue.dataset.gridTranslations);Ee.forEach(Fe=>{Fe.field==="availability"&&(Fe.sort="asc",Fe.initialSortIndex=1),Fe.field==="provider"&&(Fe.sort="asc",Fe.initialSortIndex=2,Fe.valueGetter=Ze=>Ze.data.provider,Fe.cellRenderer=Ze=>{if(Ze.value.type==="name")return Ze.value.filterValue;if(Ze.value.type==="logo")return` 1058 <div> 1059 <img src="${Ze.value.value}" alt="${Ze.value.filterValue}"> 1060 </div> 1061 `},Fe.comparator=(Ze,at)=>Ze.filterValue===at.filterValue?0:Ze.filterValue.toLowerCase().localeCompare(at.filterValue.toLowerCase()),Fe.filterParams.filterOptions=[{displayKey:"contain",displayName:He.contains,predicate:([Ze],at)=>at.filterValue.toLowerCase().includes(Ze.toLowerCase())}]),Fe.field==="platforms"&&(Fe.cellRenderer=Ze=>{if(Ze.value.length>0){const at=document.createElement("div"),we=document.createElement("p");if(we.textContent=Ze.value[0],we.classList.add("mb-0","lh-lg"),at.appendChild(we),Ze.value.length===2){const ht=document.createElement("button");ht.classList.add("ag-grid__tooltip-button"),ht.textContent="SwyxON",ht.setAttribute("data-bs-toggle","tooltip"),ht.setAttribute("data-bs-placement","top"),ht.setAttribute("data-bs-custom","custom-tooltip"),ht.setAttribute("data-bs-title",Ze.value[1]),at.appendChild(ht),Un.getOrCreateInstance(ht)}return at}else return""}),Fe.field==="reference"&&(Fe.cellRenderer=Ze=>` 1062 <a href="${Ze.value}" class="btn btn-text mb-0" target="_blank">${Fe.linkTitle}</a> 1063 `)}),hy(ue,{rowHeight:80,columnDefs:Ee,rowData:De,getRowStyle:Fe=>{if(Fe.node.rowIndex%2===0)return{background:"#dedef0"}},localeText:He,animateRows:!1})}),document.querySelectorAll(".product-manuals__results--js").forEach(te=>{const ue=te.querySelector(".product-manuals__grid"),Ee=JSON.parse(ue.dataset.gridColumnDefs),De=JSON.parse(ue.dataset.grid
1063RowData),{translations:He}=JSON.parse(ue.dataset.gridTranslations);Ee.forEach(Fe=>{Fe.field==="type"&&(Fe.cellRenderer=Ze=>{const at=[],we=[];return Ze.value.forEach(xr=>{let qi="globe",Us="Online";xr.includes(".pdf")?(qi="file-pdf",Us="PDF"):xr.includes(".doc")&&(qi="file-word",Us="Word"),at.push(qi),we.push(Us)}),Ze.value.map((xr,qi)=>`<a href="${xr}" class="btn btn-text mb-0" target="_blank"><i class="fas fa-fw fa-${at[qi]}"></i> ${we[qi]}</a>`).join(" / ")})}),hy(ue,{rowHeight:40,domLayout:"autoHeight",columnDefs:Ee,rowData:De,getRowStyle:Fe=>{if(Fe.node.rowIndex%2===0)return{background:"#dedef0"}},localeText:He})});const Ve=te=>{const ue=te.offsetHeight,Ee=te.offsetWidth;let De=null,He=null;const Ae=te.querySelector(".video-wrapper--js");ue<Ee*.5625?(De=Ee,He=Ee*.5625):(De=ue*1.7778,He=ue),Ae.style.width=`${De}px`,Ae.style.height=`${He}px`},Ue=document.querySelectorAll(".video--js");document.addEventListener("DOMContentLoaded",function(){Ue.forEach(function(te){te.classList.remove("d-none"),Ve(te)})}),document.addEventListener("lazybeforeunveil",function(te){Ue.forEach(function(ue){Ve(ue)})});let qe;window.addEventListener("resize",function(){clearTimeout(qe),qe=setTimeout(function(){Ue.forEach(function(te){Ve(te)})},250)}),document.querySelectorAll(".content-media-tabbed-pp--js").forEach(te=>{te.querySelectorAll(".content-media-tabbed-pp-tabs__tab--js").forEach(Ee=>{Ee.addEventListener("click",()=>{const De=Ee.dataset.tab,He=te.querySelectorAll(".content-media-tabbed-pp-tabs__tab--active"),Ae=te.querySelectorAll(".content-media-tabbed-pp-tabs-content__content--active");He.forEach(at=>{at.classList.remove("content-media-tabbed-pp-tabs__tab--active")}),Ae.forEach(at=>{at.classList.remove("content-media-tabbed-pp-tabs-content__content--active")});const Fe=te.querySelectorAll('.content-media-tabbed-pp-tabs__tab--js[data-tab="'+De+'"]'),Ze=te.querySelectorAll('.content-media-tabbed-pp-tabs-content__content--js[data-tab="'+De+'"]');Fe.forEach(at=>{at.classList.add("content-media-tabbed-pp-tabs__tab--active")}),Ze.forEach(at=>{at.classList.add("content-media-tabbed-pp-tabs-content__content--active")}),Ee.scrollIntoView({behavior:"smooth"})})})});function wt(){const te=document.cookie.match("(?:^|; )hubspotutk=([^;]*)");return te?decodeURIComponent(te[1]):null}function de(te,ue){const Ee=[];return te&&Ee.push(`gclid_${te}`),ue&&Ee.push(`hutk_${ue}`),Ee.length?Ee.join("__"):null}const be=document.querySelectorAll('a[href*="https://outlook.office.com/book"], a[href*="https://outlook.office365.com/book"]');be.forEach(te=>{te.dataset.initialHref||(te.dataset.initialHref=te.href)});function dt(){const ue=new URLSearchParams(window.location.search).get("gclid"),Ee=wt();be.forEach(De=>{const He=De.dataset.initialHref,Ae=new URL(He),Fe=de(ue,Ee);Fe?(Ae.searchParams.set("RefId",Fe),De.href=Ae.toString()):(Ae.searchParams.delete("RefId"),De.href=Ae.toString())})}setTimeout(function(){dt()},1e3),dt(),window.addEventListener("CookiebotOnConsentReady",()=>{setTimeout(()=>{dt()},1e3)})});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.