@vyr/cli 0.0.25 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.bin/default/index.js +4 -0
- package/.bin/install/index.js +2 -0
- package/.entry/app.js +362 -362
- package/build/css/{9786.6bfee4ca.css → 2357.20584c43.css} +1 -1
- package/build/css/{6151.e4de2b69.css → 4011.fc069ae3.css} +1 -1
- package/build/css/{6881.972ad8f8.css → 6881.c7cb44c0.css} +1 -1
- package/build/css/768.6c925006.css +1 -0
- package/build/css/{3745.5e7a01f4.css → 9160.6a744205.css} +1 -1
- package/build/css/{4537.9b4ae552.css → 918.1da69a00.css} +2 -2
- package/build/css/login.c49ecb09.css +1 -0
- package/build/fonts/iconfont.0d8d5af4.woff +0 -0
- package/build/fonts/{iconfont.10345b2b.ttf → iconfont.49814d77.ttf} +0 -0
- package/build/index.html +1 -1
- package/build/js/1015.6b930e6b.js +1 -0
- package/build/js/1018.feb3213b.js +1 -0
- package/build/js/150.2368d63c.js +1 -0
- package/build/js/1508.ad60597c.js +1 -0
- package/build/js/{4582.71b3bbe1.js → 1541.ab4dcc45.js} +100 -100
- package/build/js/2132.d99fd402.js +1 -0
- package/build/js/215.0003a521.js +1 -0
- package/build/js/2357.990ebfbc.js +1 -0
- package/build/js/{2546.9fd3dc42.js → 2546.3383e2b7.js} +1 -1
- package/build/js/2596.6b885678.js +1 -0
- package/build/js/288.deb7db30.js +1 -0
- package/build/js/3312.be721fac.js +1 -0
- package/build/js/344.f9b8faec.js +1 -0
- package/build/js/3553.5a3a5f4c.js +1 -0
- package/build/js/4011.4f960789.js +1 -0
- package/build/js/4939.c2476b74.js +1 -0
- package/build/js/5547.b25a8b2e.js +1 -0
- package/build/js/677.fbdce394.js +1 -0
- package/build/js/6881.52ca7073.js +1 -0
- package/build/js/7320.9345566b.js +1 -0
- package/build/js/768.cf51599f.js +1 -0
- package/build/js/7769.95421d48.js +1 -0
- package/build/js/7907.8ff46377.js +1 -0
- package/build/js/7928.6c142786.js +1 -0
- package/build/js/7963.33f8605d.js +1 -0
- package/build/js/8637.348bcf40.js +1 -0
- package/build/js/9127.9dbc1ccb.js +1 -0
- package/build/js/9160.294ecd13.js +1 -0
- package/build/js/918.164497d1.js +3 -0
- package/build/js/931.f5b2dd0e.js +1 -0
- package/build/js/9751.1c059f35.js +1 -0
- package/build/js/chunk-vendors.94bb9e3c.js +300 -0
- package/build/js/index.49e6e2f0.js +1 -0
- package/build/js/login.0e6f1e5f.js +1 -0
- package/build/js/preview.c1d85328.js +1 -0
- package/build/login.html +1 -1
- package/build/preview.html +1 -1
- package/output/auto-provider-plugin/loader.js +2 -1
- package/output/auto-provider-plugin/package.json +1 -1
- package/output/builtin/build/component/CodeEditor.vue.d.ts +1 -0
- package/output/builtin/build/component/DatasetItem.vue.d.ts +2 -1
- package/output/builtin/build/component/HeaderSearch.vue.d.ts +13 -0
- package/output/builtin/build/component/index.d.ts +2 -1
- package/output/builtin/build/locale/LanguageProvider.d.ts +34 -32
- package/output/builtin/build/option/index.d.ts +9 -1
- package/output/builtin/build/service/footer/action/AddDirAction.d.ts +0 -1
- package/output/builtin/package.json +1 -1
- package/output/class-wrapper-plugin/package.json +1 -1
- package/output/declare/package.json +2 -2
- package/output/design/package.json +5 -3
- package/output/design/src/components/Dialog.vue +2 -2
- package/output/design/src/components/DynamicDialog.vue +35 -29
- package/output/design/src/components/Scroll.vue +1 -1
- package/output/design/src/components/Select.vue +9 -1
- package/output/design/src/components/composables/useSearch.ts +1 -0
- package/output/design/src/components/utils/Confirm.ts +1 -1
- package/output/design/src/components/utils/DynamicDialog.ts +12 -2
- package/output/design/src/font/demo_index.html +26 -3
- package/output/design/src/font/iconfont.css +7 -3
- package/output/design/src/font/iconfont.js +1 -1
- package/output/design/src/font/iconfont.json +7 -0
- package/output/design/src/font/iconfont.ttf +0 -0
- package/output/design/src/font/iconfont.woff +0 -0
- package/output/design/src/font/iconfont.woff2 +0 -0
- package/output/design/src/index.ts +6 -0
- package/output/design/src/theme/global.less +6 -0
- package/output/engine/package.json +2 -2
- package/output/engine/src/Engine.ts +2 -2
- package/output/engine/src/asset/Asset.ts +2 -2
- package/output/engine/src/descriptor/Descriptor.ts +1 -1
- package/output/engine/src/graphics/Graphics.ts +1 -1
- package/output/engine/src/interpreter/Interpreter.ts +1 -1
- package/output/engine/src/utils/http.ts +8 -1
- package/output/locale/package.json +1 -1
- package/output/remote/package.json +1 -1
- package/output/rollup-config-plugin/package.json +1 -1
- package/output/runtime/build/data/global.d.ts +6 -0
- package/output/runtime/build/data/header.d.ts +4 -0
- package/output/runtime/package.json +1 -1
- package/output/service/package.json +1 -1
- package/output/service-asset/package.json +1 -1
- package/output/service-asset/src/AssetService.ts +2 -3
- package/output/service-example/package.json +1 -1
- package/output/service-example/src/ExampleService.ts +3 -4
- package/output/service-graph/package.json +1 -1
- package/output/service-rpc/package.json +5 -3
- package/output/service-rpc/src/RpcService.ts +9 -9
- package/output/service-rpc/src/asset/add.ts +1 -1
- package/output/service-rpc/src/asset/close.ts +1 -1
- package/output/service-rpc/src/asset/copy.ts +1 -1
- package/output/service-rpc/src/asset/create.ts +1 -1
- package/output/service-rpc/src/asset/cut.ts +1 -1
- package/output/service-rpc/src/asset/delete.ts +1 -1
- package/output/service-rpc/src/asset/dragdrap.ts +1 -1
- package/output/service-rpc/src/asset/initialize.ts +1 -1
- package/output/service-rpc/src/asset/open.ts +1 -1
- package/output/service-rpc/src/asset/remove.ts +1 -1
- package/output/service-rpc/src/asset/rename.ts +1 -1
- package/output/service-rpc/src/asset/select.ts +1 -1
- package/output/service-rpc/src/asset/update.ts +1 -1
- package/output/service-rpc/src/dep/add.ts +1 -1
- package/output/service-rpc/src/dep/create.ts +1 -1
- package/output/service-rpc/src/dep/delete.ts +1 -1
- package/output/service-rpc/src/dep/remove.ts +1 -1
- package/output/service-rpc/src/dep/update.ts +1 -1
- package/output/service-rpc/src/domain/Entity.ts +7 -0
- package/output/service-rpc/src/example/apply.ts +1 -1
- package/output/service-rpc/src/example/create.ts +1 -1
- package/output/service-rpc/src/example/delete.ts +1 -1
- package/output/service-rpc/src/example/initialize.ts +1 -1
- package/output/service-rpc/src/example/list.ts +1 -1
- package/output/service-rpc/src/index.ts +1 -1
- package/output/service-rpc/src/locale/LanguageProvider.ts +5 -1
- package/output/service-rpc/src/request/index.ts +50 -0
- package/output/service-rpc/src/rpc/confirm.ts +1 -1
- package/output/service-rpc/src/rpc/connection.ts +1 -1
- package/output/service-rpc/src/rpc/disconnect.ts +1 -1
- package/output/service-rpc/src/rpc/getUser.ts +1 -1
- package/output/service-rpc/src/rpc/login.ts +1 -1
- package/output/service-rpc/src/rpc/logout.ts +1 -1
- package/output/service-rpc/src/rpc/redo.ts +1 -1
- package/output/service-rpc/src/rpc/undo.ts +1 -1
- package/output/service-rpc/src/scene/add.ts +1 -1
- package/output/service-rpc/src/scene/create.ts +1 -1
- package/output/service-rpc/src/scene/delete.ts +1 -1
- package/output/service-rpc/src/scene/download.ts +1 -1
- package/output/service-rpc/src/scene/dragdrap.ts +1 -1
- package/output/service-rpc/src/scene/initialize.ts +1 -1
- package/output/service-rpc/src/scene/record.ts +1 -1
- package/output/service-rpc/src/scene/remove.ts +1 -1
- package/output/service-rpc/src/scene/switch.ts +1 -1
- package/output/service-rpc/src/scene/update.ts +1 -1
- package/output/service-rpc/src/sidebar/switch.ts +1 -1
- package/output/service-scene/package.json +1 -1
- package/output/service-scene/src/SceneService.ts +2 -3
- package/output/var-rename-plugin/package.json +1 -1
- package/package.json +80 -1
- package/patches/knex+2.5.1.patch +26 -0
- package/build/css/1111.e408e6d4.css +0 -1
- package/build/css/login.b74658d1.css +0 -1
- package/build/fonts/iconfont.4a13a979.woff +0 -0
- package/build/js/1018.41064c0f.js +0 -1
- package/build/js/1111.be6e2c40.js +0 -1
- package/build/js/1124.74dc01cf.js +0 -1
- package/build/js/150.e7f9045d.js +0 -1
- package/build/js/1780.599a4f56.js +0 -1
- package/build/js/2132.0f13c789.js +0 -1
- package/build/js/2328.91f4fab2.js +0 -1
- package/build/js/3553.c58039ca.js +0 -1
- package/build/js/3745.4b658c7d.js +0 -1
- package/build/js/3785.0e5bac50.js +0 -1
- package/build/js/4537.0c0b1621.js +0 -3
- package/build/js/5547.e7e03105.js +0 -1
- package/build/js/6151.73bf0dca.js +0 -1
- package/build/js/6166.a11b6605.js +0 -1
- package/build/js/677.1be417ae.js +0 -1
- package/build/js/6881.110a38eb.js +0 -1
- package/build/js/7713.7dac62b2.js +0 -1
- package/build/js/7769.da192016.js +0 -1
- package/build/js/7928.00d662e4.js +0 -1
- package/build/js/8637.8a669454.js +0 -1
- package/build/js/8743.ae6b01fb.js +0 -1
- package/build/js/931.b906c8b3.js +0 -1
- package/build/js/9399.6f01e6fb.js +0 -1
- package/build/js/94.043c5ab1.js +0 -1
- package/build/js/9751.062a0ec7.js +0 -1
- package/build/js/9786.e8445259.js +0 -1
- package/build/js/9947.e172d61d.js +0 -1
- package/build/js/chunk-vendors.3148df9e.js +0 -300
- package/build/js/index.ab116b9c.js +0 -1
- package/build/js/login.2480f0b4.js +0 -1
- package/build/js/preview.191ab535.js +0 -1
- /package/build/css/{1124.b91daf98.css → 215.b91daf98.css} +0 -0
- /package/build/css/{8743.b91daf98.css → 2596.b91daf98.css} +0 -0
- /package/build/js/{110.e2819667.js → 110.132cb06d.js} +0 -0
- /package/build/js/{1349.5011b482.js → 1349.581acd13.js} +0 -0
- /package/build/js/{1402.e4936bfb.js → 1402.41e93cca.js} +0 -0
- /package/build/js/{1877.f14acfa1.js → 1877.f7dfcbbb.js} +0 -0
- /package/build/js/{2318.441a2db7.js → 2318.aa9ea4c9.js} +0 -0
- /package/build/js/{250.4513f7c1.js → 250.ee102b58.js} +0 -0
- /package/build/js/{3085.42a6da4f.js → 3085.89eae237.js} +0 -0
- /package/build/js/{4263.f1987228.js → 4263.33a52188.js} +0 -0
- /package/build/js/{4530.2a2c0560.js → 4530.46216301.js} +0 -0
- /package/build/js/{5639.a09657c9.js → 5639.fd7fc4f3.js} +0 -0
- /package/build/js/{6357.fc8796e2.js → 6357.92e3bda6.js} +0 -0
- /package/build/js/{7195.e082572c.js → 7195.20386308.js} +0 -0
- /package/build/js/{8657.f0bd7f1f.js → 8657.0480062d.js} +0 -0
- /package/build/js/{9044.f58e5368.js → 9044.a0d33e3e.js} +0 -0
- /package/build/js/{9170.4182d4a8.js → 9170.00c77288.js} +0 -0
- /package/build/js/{9620.ce105b9b.js → 9620.edd4c694.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[]).push([[768],{908:function(e,t,o){o.d(t,{H:function(){return n},r:function(){return i}});const i={label(e){return e.label},value(e){return e.value},disabled(e){return e.disabled},children(e){var t;return null!=(t=e.children)?t:[]},arrow(e){return!0}},n=e=>void 0===e?i:Object.assign({},i,e.getter)},1307:function(e,t,o){o.d(t,{Lq:function(){return i.L},Rh:function(){return i.R},lJ:function(){return s.l},me:function(){return n.m},r3:function(){return r.r}});var i=o(78507),n=o(33490),s=o(98119),r=o(4167)},1662:function(e,t,o){var i=o(67227),n=o(89035),s=o(14291),r=o(2858),a=o(29255),l=o(43554);const d={class:"vyr-checked-group"};t.A=(0,i.pM)({__name:"CheckedGroup",props:{modelValue:{default:[]},data:{default(){return[]}},multiple:{default:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const o=e,c=t,u=e=>{let t;o.multiple?(t=[...o.modelValue],a.lv.auto(t,e)):t=e,c("update:modelValue",t)},h=e=>o.multiple?o.modelValue.includes(e):o.modelValue===e;return(0,r.Vo)((0,s.KR)({change:u,checked:h})),(t,o)=>((0,i.uX)(),(0,i.CE)("div",d,[(0,i.RG)(t.$slots,"default",{},()=>[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.data,(e,t)=>((0,i.uX)(),(0,i.Wv)(l.A,{key:t,value:e.value},{default:(0,i.k6)(()=>[(0,i.eW)((0,n.v_)(e.label),1)]),_:2},1032,["value"]))),128))])]))}})},2157:function(e,t,o){function i(e,t){return t.reduce(function(t,o){return t[o]=e,t},{})}o.d(t,{A:function(){return i}})},2727:function(e,t,o){function i(e){return e.split("-")[1]}o.d(t,{A:function(){return i}})},2858:function(e,t,o){o.d(t,{Ar:function(){return H},Bl:function(){return _},Dz:function(){return m},Gq:function(){return j},Qj:function(){return B},Qr:function(){return N},RQ:function(){return y},Tr:function(){return D},Vo:function(){return x},Z:function(){return I},ZO:function(){return E},_s:function(){return K},cD:function(){return T},dV:function(){return U},f9:function(){return C},kb:function(){return G},sD:function(){return O},to:function(){return S},v1:function(){return k}});var i=o(14291),n=o(67227),s=Object.defineProperty,r=Object.defineProperties,a=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=(e,t,o)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,h=(e,t)=>{for(var o in t||(t={}))d.call(t,o)&&u(e,o,t[o]);if(l)for(var o of l(t))c.call(t,o)&&u(e,o,t[o]);return e},g=(e,t)=>r(e,a(t));const p=Symbol(),f=(0,i.KR)({clearable:!1,readonly:!1,readonlyClearable:!1,disabled:!1,input:{width:"100%",draggable:!1,dragkey:""},label:{width:60,align:"left"},row:{gutter:10,margin:"0,0,24,0"},card:{margin:"0,0,0,0"}}),m=()=>(0,n.WQ)(p,f),v=(e,t)=>{const o=h({},e),i=Object.keys(t);for(const n of i){let i=t[n];null!==i&&void 0!==i&&(o[n]="object"===typeof i?v(e[n],i):i)}return o},C=e=>{const t=(0,n.WQ)(p,f),o=(0,n.EW)(()=>v(t.value,e.value));(0,n.Gt)(p,o)},w=Symbol(),b=(0,i.KR)({gutter:10,count:0}),y=e=>(0,n.Gt)(w,e),S=()=>(0,n.WQ)(w,b),R=Symbol(),x=e=>(0,n.Gt)(R,e),E=()=>(0,n.WQ)(R,null),F=Symbol(),P=(0,i.KR)({getPopoverLayout(e){},getInputValue(e,t,o){for(const i of t)if(o.value(i)===e)return o.label(i);return e},searchOptions:[],getSearchOptions(e,t,o){const i=[];for(const n of t)!0!==o.disabled(n)&&-1!==o.label(n).indexOf(e)&&i.push(n);return i}}),D=e=>(0,n.Gt)(F,e),k=()=>(0,n.WQ)(F,(0,i.KR)(g(h({},P.value),{searchOptions:[]}))),M=Symbol(),A=(0,i.KR)({handleClick(e,t){},handleModify(e,t){},handleRightClick(e,t){},handleChange(){},handleExpand(e){},getAdjacencies(e,t,o){return 0}}),T=e=>(0,n.Gt)(M,e),I=()=>(0,n.WQ)(M,A),L=Symbol(),B=(0,i.KR)({autoClose:!0,useFlexLayout:!1,appendToTooltip:!0}),O=e=>(0,n.Gt)(L,e),H=()=>(0,n.WQ)(L,B),V=Symbol(),G=e=>(0,n.Gt)(V,e),N=()=>(0,n.WQ)(V,null),z=Symbol(),W=(0,i.KR)({options:{tips:!0,icon:!0},rules:[],validateCollection:{},addRule(e){},removeRule(e){},validateItem(e,t){}}),_=e=>(0,n.Gt)(z,e),U=()=>(0,n.WQ)(z,W),$=Symbol(),q=(0,i.KR)({validate(e){}}),j=e=>(0,n.Gt)($,e),K=()=>(0,n.WQ)($,q)},4167:function(e,t,o){o.d(t,{r:function(){return r}});var i=o(77409),n=o(93623),s=o(77526);const r=(e={})=>{const t=(0,i.Ef)(s.A),o=new Promise(o=>{const i=(0,n.MX)(e,n=>{i.value.visible=!1,t.unmount(),e.value=i.value.value,e.success=n,o(e)});t.provide(n.SE,i),t.mount(document.createElement("div")),i.value.visible=!0});return o}},4547:function(){},4615:function(e,t,o){o.d(t,{T:function(){return r}});var i=Object.defineProperty,n=(e,t,o)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,s=(e,t,o)=>n(e,"symbol"!==typeof t?t+"":t,o);class r{constructor(){s(this,"registry",new WeakMap),s(this,"debounce",!1),s(this,"observer"),s(this,"handler",e=>{!0!==this.debounce&&(this.debounce=!0,setTimeout(()=>this.callback(e),0))}),s(this,"callback",e=>{this.debounce=!1;for(const t of e)this.trigger(t.target)}),this.observer=new ResizeObserver(this.handler)}trigger(e){const t=this.registry.get(e);if(void 0===t)return;const o={rect:e.getBoundingClientRect(),target:e};t(o)}listen(e,t){return this.registry.set(e,t),this.observer.observe(e),()=>this.trigger(e)}unlisten(e){this.registry.delete(e),this.observer.unobserve(e)}dispose(){this.observer.disconnect()}}},4652:function(e,t,o){o.d(t,{A:function(){return n}});var i=o(96207);function n(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&(0,i.Ng)(o)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}},5765:function(e,t,o){var i=o(67227),n=o(14291),s=o(77409),r=o(89035),a=o(10582),l=o(2858),d=o(93623),c=o(7931),u=Object.defineProperty,h=Object.defineProperties,g=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,v=(e,t,o)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,C=(e,t)=>{for(var o in t||(t={}))f.call(t,o)&&v(e,o,t[o]);if(p)for(var o of p(t))m.call(t,o)&&v(e,o,t[o]);return e},w=(e,t)=>h(e,g(t));const b="data-vyr-popper-hidden";t.A=(0,i.pM)({__name:"Popover",props:w(C({},a.G9),{popoverCard:{default:!0},popoverWidth:{default:"auto"},modelValue:{default:!1},trigger:{default:"click"},disabled:{default:!1}}),emits:["update:modelValue","show","close","triggerChange"],setup(e,{expose:t,emit:o}){const a=e;let u=null;const h=o,g=(0,i.rk)("refPopover"),p=(e,t)=>{e&&f(e),h("triggerChange",e,t)},f=e=>{u&&u.destroy(),g.value&&(u=(0,d.n4)(e,g.value,(0,d.$E)(a)))},m=()=>{S(),u.destroy()};(0,i.xo)(m);const v=e=>{!0!==D.value.visible&&e.target===g.value&&"opacity"===e.propertyName&&u.setOptions((0,d.$E)(a,!1))},C=()=>u.update(),w=e=>{!1!==D.value.visible&&!1!==E.value.autoClose&&(e.target instanceof Node&&(0,d.c5)(e.target,[g.value,u.state.elements.reference])||x(!1))},y=e=>{"Escape"===e.code&&w(e)},S=()=>{window.removeEventListener("click",w),window.removeEventListener("keyup",y),null!==F&&F.listener.unlisten("move",C)},R=()=>{window.addEventListener("click",w),window.addEventListener("keyup",y),null!==F&&F.listener.listen("move",C)},x=e=>{var t,o;if(D.value.visible===e)return;h("update:modelValue",e),D.value.visible=e;const i=(0,d.$E)(a,e);e?(R(),u.setOptions(i),null==(t=g.value)||t.removeAttribute(b),h("show")):(S(),null==(o=g.value)||o.setAttribute(b,""),h("close"))},E=(0,l.Ar)(),F=(0,l.Qr)(),P=(0,i.EW)(()=>{var e;const t=999;return null===F?t:(null!=(e=F.layer.value)?e:0)+1}),D=(0,n.KR)({visible:!1,needClose:!1,delayCount:0,needOpen:!1}),k=()=>{!0!==a.disabled&&"click"===a.trigger&&x(!D.value.visible)},M=()=>{!0!==D.value.needClose&&x(!0)},A=()=>{D.value.delayCount--,0===D.value.delayCount&&!0===D.value.needOpen&&M()},T=()=>{!0!==a.disabled&&"hover"===a.trigger&&!1!==D.value.needOpen&&(D.value.delayCount++,setTimeout(A,200))},I=()=>{!0!==a.disabled&&"hover"===a.trigger&&(D.value.needOpen=!0,T())},L=()=>{!1!==D.value.needClose&&(D.value.needClose=!1,x(!1))},B=()=>{!0!==a.disabled&&"hover"===a.trigger&&(D.value.needOpen=!1,!0!==D.value.needClose&&(D.value.needClose=!0,setTimeout(L,300)))},O=()=>{D.value.needOpen=!1,B()};(0,i.wB)(()=>a.modelValue,x),(0,i.wB)(()=>[a.placement,a.arrow],()=>u.setOptions((0,d.$E)(a)));const H={update:()=>u.update(),position:()=>u.state.placement.split("-")};return t(H),(t,o)=>((0,i.uX)(),(0,i.CE)(i.FK,null,["click"===e.trigger?((0,i.uX)(),(0,i.Wv)(c.A,{key:0,onSlotChange:p,onClick:k,onContextmenu:O},{default:(0,i.k6)(()=>[(0,i.RG)(t.$slots,"trigger")]),_:3})):((0,i.uX)(),(0,i.Wv)(c.A,{key:1,onSlotChange:p,onMouseenter:I,onMouseleave:B,onMousemove:T},{default:(0,i.k6)(()=>[(0,i.RG)(t.$slots,"trigger")]),_:3})),((0,i.uX)(),(0,i.Wv)(i.Im,{to:(0,n.R1)(d.YL).wrapper,disabled:!1===(0,n.R1)(E).appendToTooltip},[(0,i.Lk)("div",{class:(0,r.C4)(["vyr-popover",{card:e.popoverCard,[t.popoverClass]:!0}]),ref_key:"refPopover",ref:g,"data-vyr-popper-hidden":"",style:(0,r.Tr)({width:e.popoverWidth,zIndex:P.value}),onMouseenter:o[0]||(o[0]=e=>D.value.needClose=!1),onMouseleave:B,onContextmenu:o[1]||(o[1]=(0,s.D$)(()=>{},["prevent","stop"])),onTransitionend:v},[(0,i.Lk)("div",{class:"popover-arrow","data-popper-arrow":"",style:(0,r.Tr)("opacity:"+(t.arrow?1:0))},null,4),(0,i.Lk)("div",{class:(0,r.C4)(["popover-wrapper",{flex:(0,n.R1)(E).useFlexLayout}])},[(0,i.RG)(t.$slots,"default")],2)],38)],8,["to","disabled"]))],64))}})},6546:function(e,t,o){o.d(t,{$E:function(){return g},YL:function(){return f},c5:function(){return p},n4:function(){return u}});var i=o(31565),n=o(23404),s=o(70808),r=o(7323),a=o(66148),l=o(37406),d=o(43646),c=o(55928);const u=(0,n.UD)({defaultModifiers:[...i.oB,a.A,l.A,r.A,s.A,c.A,d.A]}),h=(e,t,o)=>({name:"offset",options:{offset:[0,e?t:0]},enabled:o}),g=(e,t=!1)=>{const o=[{name:"arrow",options:{padding:e.arrow?5:0},enabled:t},{name:"preventOverflow",options:{padding:0},enabled:t}];return{placement:e.placement,modifiers:[h(e.arrow,e.offset,t),...o,{name:"eventListeners",enabled:t},{name:"applyStyles",enabled:t}]}},p=(e,t)=>{if(void 0===e)return!1;for(const o of t)if(o.contains(e))return!0;return!1},f={wrapper:document.createElement("div"),setup(){this.wrapper.setAttribute("class","tooltip"),this.wrapper.setAttribute("id","tooltip"),this.wrapper.style.display="contents",document.body.appendChild(this.wrapper)}};f.setup()},6921:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(77738)},7091:function(){},7135:function(e,t,o){o.d(t,{B:function(){return n.B},t:function(){return i.t}});var i=o(28100),n=o(65761)},7323:function(e,t,o){var i=o(49720),n=o(76061);function s(e,t,o){return void 0===o&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function r(e){return[i.Mn,i.pG,i.sQ,i.kb].some(function(t){return e[t]>=0})}function a(e){var t=e.state,o=e.name,i=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,d=(0,n.A)(t,{elementContext:"reference"}),c=(0,n.A)(t,{altBoundary:!0}),u=s(d,i),h=s(c,a,l),g=r(u),p=r(h);t.modifiersData[o]={referenceClippingOffsets:u,popperEscapeOffsets:h,isReferenceHidden:g,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":p})}t.A={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:a}},7480:function(e,t,o){o(25791)},7931:function(e,t,o){var i=o(99021);const n=i.A;t.A=n},8030:function(e,t,o){var i=o(67227),n=o(93623);t.A=(0,i.pM)({__name:"Slot",emits:["slotChange"],setup(e,{emit:t}){const o=(0,i.OA)(),s=t,r=(0,i.Ht)(),a=(0,n.e8)(s),l=()=>{var e,t;const i=null!=(t=null==(e=r.default)?void 0:e.call(r))?t:[],s=(0,n.RB)(i),l=(0,n.ZO)(s,o,a);return l};return(e,t)=>((0,i.uX)(),(0,i.Wv)(l))}})},8715:function(e,t,o){var i=o(20041),n=(o(9841),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-57e8018c"]]);t.A=s},9756:function(e,t,o){o(43539)},9841:function(e,t,o){o(36720)},9961:function(e,t,o){var i=o(67227),n=o(77409),s=o(89035),r=o(14291),a=o(93623),l=o(2858),d=o(29255),c=o(32946),u=o(67079),h=Object.defineProperty,g=Object.defineProperties,p=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,C=(e,t,o)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,w=(e,t)=>{for(var o in t||(t={}))m.call(t,o)&&C(e,o,t[o]);if(f)for(var o of f(t))v.call(t,o)&&C(e,o,t[o]);return e},b=(e,t)=>g(e,p(t));t.A=(0,i.pM)({__name:"RightMenu",setup(e,{expose:t}){(0,l.sD)((0,r.KR)(b(w({},l.Qj.value),{appendToTooltip:!1,autoClose:!0})));const o=(0,i.rk)("refCascader"),h=(0,r.KR)(new a.Eo(0,0,[])),g=(0,i.EW)(()=>`position:absolute;left:${h.value.position.x}px;top:${h.value.position.y}px;`),p=(0,r.KR)({id:(0,a.pi)(),width:240,maxCount:5,enabled:!0,transform:!1}),f=e=>{let t=0;for(const o of e)!0===R(o)&&t++;return t},m=()=>{if(!1===h.value.visible||!o.value)return;const e=f(h.value.group),t=c.S.config.inputHeight.value+2*c.S.config.optionsScrollMargin.value,i=.75*window.innerHeight,n=Math.min(Math.floor(i/t),10);p.value.maxCount=e>n?n:e,o.value.show()};(0,i.wB)(()=>h.value.visible,m,{});const v=(0,i.EW)(()=>(0,a.mo)(p.value.id)),C=(0,i.EW)(()=>(0,a.tg)(p.value.id,v.value)),y={listener:new d.rZ,layer:C};(0,l.kb)(y);const S=(0,i.EW)(()=>-1===C.value?"":`z-index${C.value};`),R=e=>e.show,x=e=>{var t;!0!==p.value.transform&&(null==(t=o.value)||t.close(),h.value.change(e))},E=()=>{var e;!0!==p.value.transform&&(null==(e=o.value)||e.close(),h.value.cancel())};(0,i.sV)(()=>window.addEventListener("resize",D)),(0,i.xo)(()=>window.removeEventListener("resize",D));const F=()=>{D(),p.value.enabled=!1,requestAnimationFrame(()=>p.value.enabled=!0)};(0,i.sV)(()=>window.addEventListener("resize",F)),(0,i.xo)(()=>window.addEventListener("resize",F));const P=e=>{h.value=e},D=()=>{h.value.visible=!1};return t({show:P,close:D}),(e,t)=>((0,i.uX)(),(0,i.Wv)(i.Im,{to:"body"},[p.value.enabled?((0,i.uX)(),(0,i.Wv)(n.eB,{key:0,name:"vyr-transition",onBeforeEnter:t[4]||(t[4]=e=>p.value.transform=!0),onAfterEnter:t[5]||(t[5]=e=>p.value.transform=!1)},{default:(0,i.k6)(()=>[(0,i.bo)((0,i.Lk)("div",{class:(0,s.C4)(["vyr-right-menu",{transform:p.value.transform}]),style:(0,s.Tr)(S.value),onContextmenu:t[3]||(t[3]=(0,n.D$)(()=>{},["prevent","stop"])),onClick:(0,n.D$)(E,["prevent","stop"])},[(0,i.bF)(u.A,{ref_key:"refCascader",ref:o,placement:"bottom-start",data:h.value.group,"max-count":p.value.maxCount,"min-count":p.value.maxCount,arrow:!1,visible:R,"popover-width":`${p.value.width}px`,onChange:x,onClick:t[1]||(t[1]=(0,n.D$)(()=>{},["stop"])),onClose:t[2]||(t[2]=e=>h.value.visible=!1)},{trigger:(0,i.k6)(()=>[(0,i.Lk)("span",{style:(0,s.Tr)(g.value),onClick:t[0]||(t[0]=(0,n.D$)(()=>{},["stop"]))},null,4)]),_:1},8,["data","max-count","min-count","popover-width"])],38),[[n.aG,h.value.visible]])]),_:1})):(0,i.Q3)("",!0)]))}})},10205:function(){},10238:function(e,t,o){o(30837)},10276:function(e,t,o){o(75659)},10582:function(e,t,o){o.d(t,{Ft:function(){return y},G9:function(){return D},It:function(){return E},LH:function(){return P},OV:function(){return v},ZE:function(){return k},f1:function(){return A},n7:function(){return x},o0:function(){return S},pS:function(){return I},pe:function(){return b},ry:function(){return w},vh:function(){return C},wF:function(){return T},wq:function(){return m},xG:function(){return R},zB:function(){return F}});var i=o(67227),n=o(14291),s=o(2858),r=o(7135),a=Object.defineProperty,l=Object.defineProperties,d=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,g=(e,t,o)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,p=(e,t)=>{for(var o in t||(t={}))u.call(t,o)&&g(e,o,t[o]);if(c)for(var o of c(t))h.call(t,o)&&g(e,o,t[o]);return e},f=(e,t)=>l(e,d(t));const m={getter:{default:()=>({})}},v={modelValue:{default:!1},value:{default:!0}},C={clearable:{default:null},readonly:{default:null},readonlyClearable:{default:null}},w={gutter:{default:null},margin:{default:null}},b={width:{default:null},align:{default:null}},y={width:{default:null},draggable:{default:!1},dragkey:{default:""}},S={modelValue:{default:""},placeholder:{default:r.B.get("input.placeholder")}},R={modelValue:{default:""},placeholder:{default:r.B.get("select.placeholder")}},x={data:{default(){return[]}},modify:{default:"close"},modifyValue:{default:""},draggable:{default:!1},visible:{default(){return e=>!0}},warning:{default(){return e=>!1}},multiple:{default:!1}},E={margin:{default:0},padding:{default:0}},F={mask:{default:!0},visible:{default:!1}},P={mask:{default:!1},header:{default:60},footer:{default:55},width:{default:"860px"},height:{default:"auto"},maxHeight:{default:"60%"},margin:{default:10},padding:{default:10}},D={placement:{default:"bottom"},popoverClass:{default:""},arrow:{default:!0},offset:{default:6}},k=f(p({},C),{input:{default:null},label:{default:null},row:{default:null}}),M=(e,t,o,i)=>void 0!==i&&null!==i&&""!==i&&((!1===t||!!o)&&e),A=e=>{const t=(0,s.Dz)(),o=(0,i.EW)(()=>null===e.readonly?t.value.readonly:e.readonly),n=(0,i.EW)(()=>null===e.clearable?t.value.clearable:e.clearable),r=(0,i.EW)(()=>null===e.readonlyClearable?t.value.readonlyClearable:e.readonlyClearable);return{curReadonly:o,curClearable:n,curReadonlyClearable:r,showClear:M}},T=e=>{const t=(0,s.Dz)(),o=(0,n.KR)({mouseInInput:!1}),r=()=>o.value.mouseInInput=!0,a=()=>o.value.mouseInInput=!1,l=(0,i.EW)(()=>null===e.readonly?t.value.readonly:e.readonly),d=(0,i.EW)(()=>!1!==o.value.mouseInInput&&(null===e.clearable?t.value.clearable:e.clearable)),c=(0,i.EW)(()=>null===e.readonlyClearable?t.value.readonlyClearable:e.readonlyClearable);return{curReadonly:l,curClearable:d,curReadonlyClearable:c,enterInput:r,leaveInput:a,showClear:M}},I=e=>{const t=(0,s.Dz)(),o=(0,i.EW)(()=>null===e.width?t.value.input.width:e.width);return{curInputWidth:o}}},10741:function(e,t,o){o.d(t,{l:function(){return i}});class i{static insert(e,t){const o=e.indexOf(t);-1===o&&e.push(t)}static remove(e,t){const o=e.indexOf(t);o>-1&&e.splice(o,1)}static auto(e,t){const o=e.indexOf(t);-1===o?e.push(t):e.splice(o,1)}static insertByKey(e,t,o){const i=e.length;for(let n=0;n<i;n++)if(e[n][t]===o[t])return;e.push(o)}static removeByKey(e,t,o){const i=e.length;for(let n=0;n<i;n++){const i=e[n];if(i[t]===o)return void e.splice(n,1)}}}},10857:function(e,t,o){o.d(t,{P:function(){return s},u:function(){return n}});var i=o(94696);function n(e,t,o){return(0,i.T9)(e,(0,i.jk)(t,o))}function s(e,t,o){var i=n(e,t,o);return i>o?o:i}},11037:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(87464)},12012:function(e,t,o){o(22323)},12100:function(e,t,o){var i=o(67227),n=o(89035),s=o(14291),r=o(2858),a=o(50428),l=o(10582);t.A=(0,i.pM)({__name:"Row",props:l.ry,setup(e){const t=e,o=(0,r.Dz)(),l=(0,i.EW)(()=>null===t.gutter?o.value.row.gutter:t.gutter),d=(0,s.KR)({gutter:l,count:0});(0,r.RQ)(d);const c=(0,i.EW)(()=>{const e=null===t.margin?o.value.row.margin:t.margin,i=(0,a.NO)(e),n=0===d.value.count?0:-l.value;return i[1]=n,i[3]=n,(0,a.QD)(i,"margin")});return(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:"vyr-row",style:(0,n.Tr)(c.value)},[(0,i.RG)(e.$slots,"default")],4))}})},12140:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(50507)},12153:function(e,t,o){o.d(t,{A:function(){return a}});var i=o(45930),n=o(2727),s=o(57469),r=o(49720);function a(e){var t,o=e.reference,a=e.element,l=e.placement,d=l?(0,i.A)(l):null,c=l?(0,n.A)(l):null,u=o.x+o.width/2-a.width/2,h=o.y+o.height/2-a.height/2;switch(d){case r.Mn:t={x:u,y:o.y-a.height};break;case r.sQ:t={x:u,y:o.y+o.height};break;case r.pG:t={x:o.x+o.width,y:h};break;case r.kb:t={x:o.x-a.width,y:h};break;default:t={x:o.x,y:o.y}}var g=d?(0,s.A)(d):null;if(null!=g){var p="y"===g?"height":"width";switch(c){case r.ni:t[g]=t[g]-(o[p]/2-a[p]/2);break;case r._N:t[g]=t[g]+(o[p]/2-a[p]/2);break;default:}}return t}},12710:function(e,t,o){o(36047)},13184:function(e,t,o){o.d(t,{A:function(){return n}});var i=o(88573);function n(e){var t=(0,i.A)(e),o=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:o,scrollTop:n}}},13382:function(){},13809:function(e,t,o){var i=o(67227),n=o(14291),s=o(89035),r=o(93623),a=o(7135),l=o(8715),d=o(62687),c=o(75465),u=o(18985),h=o(55522),g=o(62263),p=o(67079),f=o(38430),m=Object.defineProperty,v=Object.defineProperties,C=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,S=(e,t,o)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,R=(e,t)=>{for(var o in t||(t={}))b.call(t,o)&&S(e,o,t[o]);if(w)for(var o of w(t))y.call(t,o)&&S(e,o,t[o]);return e},x=(e,t)=>v(e,C(t));const E={key:0,class:"vyrfont vyr-warning tips-type"},F={class:"item-label"};t.A=(0,i.pM)(x(R({},{inheritAttrs:!1}),{__name:"DynamicDialog",setup(e){var t;const o=(0,r.pA)(),m=(0,n.KR)({data:null!=(t=o.value.value)?t:{},flag:!1}),v=e=>void 0===e.componentData?[]:Array.isArray(e.componentData)?e.componentData:e.componentData(m.value.data),C=()=>{m.value.flag=!0,o.value.visible=!1},w=()=>{m.value.flag=!1,o.value.visible=!1},b=()=>{var e;o.value.value=null!=(e=m.value.data)?e:{},o.value.close(m.value.flag)};return(e,t)=>((0,i.uX)(),(0,i.Wv)(l.A,{modelValue:(0,n.R1)(o).visible,"onUpdate:modelValue":t[0]||(t[0]=e=>(0,n.R1)(o).visible=e),mask:(0,n.R1)(o).mask,draggable:!0,width:(0,n.R1)(o).width,maxHeight:(0,n.R1)(o).maxHeight,onClose:b},(0,i.eX)({title:(0,i.k6)(()=>["warning"===(0,n.R1)(o).type?((0,i.uX)(),(0,i.CE)("i",E)):(0,i.Q3)("",!0),(0,i.eW)((0,s.v_)((0,n.R1)(o).title),1)]),default:(0,i.k6)(()=>[(0,n.R1)(o).component?((0,i.uX)(),(0,i.Wv)((0,i.$y)((0,n.R1)(o).component),(0,s._B)((0,i.v6)({key:0},(0,n.R1)(o).props)),null,16)):((0,i.uX)(),(0,i.Wv)(c.A,{key:1},{default:(0,i.k6)(()=>[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)((0,n.R1)(o).options,(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:"dynamic-item",key:t},[(0,i.Lk)("div",F,(0,s.v_)(e.label),1),"image"===e.componentType?((0,i.uX)(),(0,i.CE)("img",(0,i.v6)({key:0,class:"image"},{ref_for:!0},e.componentProps),null,16)):(0,i.Q3)("",!0),"input"===e.componentType?((0,i.uX)(),(0,i.Wv)(u.A,(0,i.v6)({key:1,modelValue:m.value.data[e.name],"onUpdate:modelValue":t=>m.value.data[e.name]=t},{ref_for:!0},e.componentProps),null,16,["modelValue","onUpdate:modelValue"])):(0,i.Q3)("",!0),"number"===e.componentType?((0,i.uX)(),(0,i.Wv)(h.A,(0,i.v6)({key:2,modelValue:m.value.data[e.name],"onUpdate:modelValue":t=>m.value.data[e.name]=t},{ref_for:!0},e.componentProps,{data:v(e)}),null,16,["modelValue","onUpdate:modelValue","data"])):(0,i.Q3)("",!0),"select"===e.componentType?((0,i.uX)(),(0,i.Wv)(g.A,(0,i.v6)({key:3,modelValue:m.value.data[e.name],"onUpdate:modelValue":t=>m.value.data[e.name]=t},{ref_for:!0},e.componentProps,{data:v(e),searchable:!0}),null,16,["modelValue","onUpdate:modelValue","data"])):(0,i.Q3)("",!0),"cascader"===e.componentType?((0,i.uX)(),(0,i.Wv)(p.A,(0,i.v6)({key:4,modelValue:m.value.data[e.name],"onUpdate:modelValue":t=>m.value.data[e.name]=t},{ref_for:!0},e.componentProps,{data:v(e),searchable:!0}),null,16,["modelValue","onUpdate:modelValue","data"])):(0,i.Q3)("",!0),"color"===e.componentType?((0,i.uX)(),(0,i.Wv)(f.A,(0,i.v6)({key:5,modelValue:m.value.data[e.name],"onUpdate:modelValue":t=>m.value.data[e.name]=t},{ref_for:!0},e.componentProps),null,16,["modelValue","onUpdate:modelValue"])):(0,i.Q3)("",!0)]))),128))]),_:1}))]),_:2},[(0,n.R1)(o).component?void 0:{name:"footer",fn:(0,i.k6)(()=>[(0,i.bF)(d.A,{onClick:C},{default:(0,i.k6)(()=>[(0,i.eW)((0,s.v_)((0,n.R1)(a.B).get("dialog.button.submit")),1)]),_:1}),(0,i.bF)(d.A,{onClick:w},{default:(0,i.k6)(()=>[(0,i.eW)((0,s.v_)((0,n.R1)(a.B).get("dialog.button.cancel")),1)]),_:1})]),key:"0"}]),1032,["modelValue","mask","width","maxHeight"]))}}))},14572:function(){},14626:function(e,t,o){var i=o(67227),n=o(14291),s=o(77409),r=o(89035),a=o(2858),l=o(10582),d=Object.defineProperty,c=Object.defineProperties,u=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,f=(e,t,o)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,m=(e,t)=>{for(var o in t||(t={}))g.call(t,o)&&f(e,o,t[o]);if(h)for(var o of h(t))p.call(t,o)&&f(e,o,t[o]);return e},v=(e,t)=>c(e,u(t));const C={class:"vyr-label"},w={key:0,class:"label-error"};t.A=(0,i.pM)({__name:"Label",props:v(m({},l.pe),{label:{default:""},rule:{default:""},verticalAlign:{default:""}}),setup(e){const t=e,o=(0,a.Dz)(),l=(0,i.EW)(()=>{const e=null===t.width?o.value.label.width:t.width;return e>1?`${e}px`:100*e+"%"}),d=(0,i.EW)(()=>null===t.align?o.value.label.align:t.align),c=(0,a.dV)(),u=(e,t)=>{void 0!==t&&c.value.removeRule(t),""!==e&&c.value.addRule(e)};(0,i.wB)(()=>t.rule,u,{immediate:!0});const h=(0,i.EW)(()=>{const e=c.value.validateCollection[t.rule];return void 0!==e&&e}),g=(0,i.EW)(()=>!1!==h.value),p=e=>{""!==t.rule&&c.value.validateItem(t.rule,e)};return(0,a.Gq)((0,n.KR)({validate:p})),(t,o)=>((0,i.uX)(),(0,i.CE)("div",C,["0%"!==l.value?((0,i.uX)(),(0,i.CE)("div",{key:0,class:(0,r.C4)(["label-header",d.value]),style:(0,r.Tr)(`width:${l.value};`)},[(0,n.R1)(c).rules.length&&(0,n.R1)(c).options.icon?((0,i.uX)(),(0,i.CE)("i",{key:0,class:"vyrfont vyr-bitian",style:(0,r.Tr)("opacity:"+(e.rule&&(0,n.R1)(c).options.icon?"1":"0"))},null,4)):(0,i.Q3)("",!0),(0,i.eW)(" "+(0,r.v_)(e.label),1)],6)):(0,i.Q3)("",!0),(0,i.Lk)("div",{class:(0,r.C4)(["label-body",{error:g.value}]),style:(0,r.Tr)(`width:calc(100% - ${l.value});${"center"===e.verticalAlign?"display:flex;":""}`)},[(0,i.RG)(t.$slots,"default"),(0,i.bF)(s.eB,{name:"vyr-transition"},{default:(0,i.k6)(()=>[g.value&&(0,n.R1)(c).options.tips?((0,i.uX)(),(0,i.CE)("div",w,(0,r.v_)(h.value),1)):(0,i.Q3)("",!0)]),_:1})],6)]))}})},15077:function(e,t,o){o.d(t,{A:function(){return r}});var i=o(53234),n=o(96766),s=o(96207);function r(e){return"html"===(0,i.A)(e)?e:e.assignedSlot||e.parentNode||((0,s.Ng)(e)?e.host:null)||(0,n.A)(e)}},15080:function(e,t,o){o(93273)},15260:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(69707)},15288:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(31575)},15313:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(44250)},15687:function(e,t,o){var i=o(55287),n=(o(35929),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-6148a250"]]);t.A=s},16878:function(e,t,o){o.d(t,{L:function(){return n}});var i=o(14291);const n=(e,t)=>{const o={tick:0,count:0,stopWheel:!1},n=(0,i.KR)(0),s=()=>{o.tick=requestAnimationFrame(s),e()},r=()=>{cancelAnimationFrame(o.tick),o.tick=0},a=()=>{o.count--,o.count>0||r()},l=e=>{!0===o.stopWheel&&e.preventDefault(),0===o.tick&&s(),o.count++,setTimeout(a,300)},d=()=>{n.value=.75},c=()=>{r(),n.value=0};return{opacity:n,layout:l,move:d,leave:c}}},17395:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(24994)},18584:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(5765)},18985:function(e,t,o){var i=o(84117),n=(o(12012),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-9c681fda"]]);t.A=s},19073:function(){},19562:function(e,t,o){o.d(t,{MX:function(){return a},SE:function(){return r},pA:function(){return l}});var i=o(14291),n=o(67227),s=o(7135);const r=Symbol("vyr-dialog"),a=(e,t=e=>{})=>{var o,n,s,r,a;return(0,i.KR)({visible:!1,title:e.title,type:e.type,options:null!=(o=e.options)?o:[],value:e.value,width:null!=(n=e.width)?n:"720px",maxHeight:null!=(s=e.maxHeight)?s:"70%",component:e.component?(0,i.IG)(e.component):void 0,props:null!=(r=e.props)?r:{},mask:null!=(a=e.mask)&&a,success:!1,close:t})},l=()=>{const e=(0,n.WQ)(r,()=>{throw new Error(s.B.get("dialog.state.notFound"))});return e}},20041:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(77614)},20167:function(e,t,o){o.d(t,{RB:function(){return s},ZO:function(){return l},e8:function(){return n}});var i=o(67227);const n=e=>{let t=null;const o={mounted(o){e("slotChange",o,t),t=o},beforeUnmount(){e("slotChange",null,t),t=null}};return o},s=e=>{for(const t of e)if(t.type!==Comment)return t;return null},r=e=>e.type!==i.FK||!1===Array.isArray(e.children)?0:e.children.length,a=e=>"string"===typeof e.children?e.children:"",l=(e,t,o)=>{if(null!==e){let n=null,l=e;const d=r(e);if(d>0)while(l.type===i.FK){if(n=s(l.children),null===n)break;if(l=n,0===r(n))break;n=l}if(null!==n){let e;if(n.type===i.EY){const o=a(n);e=(0,i.h)("span",t,o)}else e=(0,i.h)(n,t);const s=(0,i.bo)(e,[[o]]);return l.children={default:()=>[s]},s}}const n=(0,i.h)("span",t);return(0,i.bo)(n,[[o]])}},20234:function(){},20676:function(e,t,o){o.d(t,{Q:function(){return n}});var i=o(78366);const n=i.A},20952:function(e,t,o){var i=o(67227),n=o(89035),s=o(14291),r=o(32946),a=o(60460);const l={class:"header-title"},d={key:1,class:"title-text"},c={key:0,class:"vyrfont vyr-arrow-down-bold"},u={key:0,class:"card-tool"};t.A=(0,i.pM)({__name:"Card",props:{title:{default:""},arrow:{default:!1},scroll:{default:!1}},setup(e){const t=e,o=(0,i.rk)("refBody"),h=(0,i.rk)("refWrapper"),g=(0,s.KR)({visible:!0,style:"",showing:!1}),p=()=>{g.value.showing=!1,g.value.style=""},f=()=>{if(!h.value)return;let e=h.value.clientHeight;g.value.style=`height:${e}px;overflow:hidden;`,setTimeout(p,r.S.config.animationTime.value)},m=()=>{g.value.showing=!1,g.value.style="display:none;"},v=()=>{o.value&&(g.value.style=`height:${o.value.clientHeight}px;overflow:hidden;`,requestAnimationFrame(()=>g.value.style="height:0px;overflow:hidden;"),setTimeout(m,r.S.config.animationTime.value))},C=()=>{g.value.showing=!0,!0===g.value.visible?(g.value.style="height:0px;overflow:hidden;",requestAnimationFrame(f)):v()};(0,i.wB)(()=>g.value.visible,C);const w=(0,i.EW)(()=>t.scroll?"height:100%;":""),b=()=>{!1!==t.arrow&&!0!==g.value.showing&&(g.value.visible=!g.value.visible)};return(t,s)=>((0,i.uX)(),(0,i.CE)("div",{class:"vyr-card",style:(0,n.Tr)(w.value)},[(0,i.Lk)("div",{class:(0,n.C4)(["card-header",{handle:e.arrow}]),onClick:b},[(0,i.Lk)("div",l,[t.$slots.title?(0,i.RG)(t.$slots,"title",{key:0}):((0,i.uX)(),(0,i.CE)("div",d,(0,n.v_)(e.title),1))]),(0,i.Lk)("div",{class:(0,n.C4)(["header-icon",{expand:g.value.visible}])},[(0,i.RG)(t.$slots,"icon",{},()=>[e.arrow?((0,i.uX)(),(0,i.CE)("i",c)):(0,i.Q3)("",!0)])],2)],2),(0,i.Lk)("div",{class:(0,n.C4)(["card-body",{scroll:e.scroll}]),ref_key:"refBody",ref:o,style:(0,n.Tr)(g.value.style)},[e.scroll?((0,i.uX)(),(0,i.Wv)(a.A,{key:0,margin:8,padding:8},{default:(0,i.k6)(()=>[(0,i.RG)(t.$slots,"default")]),_:3})):((0,i.uX)(),(0,i.CE)("div",{key:1,class:"body-wrapper",ref_key:"refWrapper",ref:h},[(0,i.RG)(t.$slots,"default")],512))],6),t.$slots.tool?((0,i.uX)(),(0,i.CE)("div",u,[(0,i.RG)(t.$slots,"tool")])):(0,i.Q3)("",!0)],4))}})},22052:function(e,t,o){o.d(t,{Cn:function(){return d},gV:function(){return c},iF:function(){return r},mo:function(){return u},pi:function(){return a},r4:function(){return l},tg:function(){return h}});var i=o(14291),n=o(29255);let s=1;const r=(0,i.KR)({queue:[],active:-1}),a=()=>s++,l=e=>{n.lv.insert(r.value.queue,e)},d=e=>{n.lv.remove(r.value.queue,e)},c=e=>{d(e),l(e),r.value.active=e},u=e=>r.value.active===e,h=(e,t=!1)=>{const o=r.value.queue.indexOf(e);if(-1===o)return o;const i=t?r.value.queue.length:o;return 2*i+1e3}},22323:function(){},22752:function(e,t,o){o(44595)},23404:function(e,t,o){o.d(t,{UD:function(){return F}});var i=o(92720),n=o(13184),s=o(88573),r=o(96207);function a(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function l(e){return e!==(0,s.A)(e)&&(0,r.sb)(e)?a(e):(0,n.A)(e)}var d=o(53234),c=o(98315),u=o(96766),h=o(88484),g=o(94696);function p(e){var t=e.getBoundingClientRect(),o=(0,g.LI)(t.width)/e.offsetWidth||1,i=(0,g.LI)(t.height)/e.offsetHeight||1;return 1!==o||1!==i}function f(e,t,o){void 0===o&&(o=!1);var n=(0,r.sb)(t),s=(0,r.sb)(t)&&p(t),a=(0,u.A)(t),g=(0,i.A)(e,s,o),f={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(n||!n&&!o)&&(("body"!==(0,d.A)(t)||(0,h.A)(a))&&(f=l(t)),(0,r.sb)(t)?(m=(0,i.A)(t,!0),m.x+=t.clientLeft,m.y+=t.clientTop):a&&(m.x=(0,c.A)(a))),{x:g.left+f.scrollLeft-m.x,y:g.top+f.scrollTop-m.y,width:g.width,height:g.height}}var m=o(74449),v=o(48934),C=o(41019),w=o(49720);function b(e){var t=new Map,o=new Set,i=[];function n(e){o.add(e.name);var s=[].concat(e.requires||[],e.requiresIfExists||[]);s.forEach(function(e){if(!o.has(e)){var i=t.get(e);i&&n(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){o.has(e.name)||n(e)}),i}function y(e){var t=b(e);return w.GM.reduce(function(e,o){return e.concat(t.filter(function(e){return e.phase===o}))},[])}function S(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function R(e){var t=e.reduce(function(e,t){var o=e[t.name];return e[t.name]=o?Object.assign({},o,t,{options:Object.assign({},o.options,t.options),data:Object.assign({},o.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var x={placement:"bottom",modifiers:[],strategy:"absolute"};function E(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(e){return!(e&&"function"===typeof e.getBoundingClientRect)})}function F(e){void 0===e&&(e={});var t=e,o=t.defaultModifiers,i=void 0===o?[]:o,n=t.defaultOptions,s=void 0===n?x:n;return function(e,t,o){void 0===o&&(o=s);var n={placement:"bottom",orderedModifiers:[],options:Object.assign({},x,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,d={state:n,setOptions:function(o){var a="function"===typeof o?o(n.options):o;u(),n.options=Object.assign({},s,n.options,a),n.scrollParents={reference:(0,r.vq)(e)?(0,v.A)(e):e.contextElement?(0,v.A)(e.contextElement):[],popper:(0,v.A)(t)};var l=y(R([].concat(i,n.options.modifiers)));return n.orderedModifiers=l.filter(function(e){return e.enabled}),c(),d.update()},forceUpdate:function(){if(!l){var e=n.elements,t=e.reference,o=e.popper;if(E(t,o)){n.rects={reference:f(t,(0,C.A)(o),"fixed"===n.options.strategy),popper:(0,m.A)(o)},n.reset=!1,n.placement=n.options.placement,n.orderedModifiers.forEach(function(e){return n.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<n.orderedModifiers.length;i++)if(!0!==n.reset){var s=n.orderedModifiers[i],r=s.fn,a=s.options,c=void 0===a?{}:a,u=s.name;"function"===typeof r&&(n=r({state:n,options:c,name:u,instance:d})||n)}else n.reset=!1,i=-1}}},update:S(function(){return new Promise(function(e){d.forceUpdate(),e(n)})}),destroy:function(){u(),l=!0}};if(!E(e,t))return d;function c(){n.orderedModifiers.forEach(function(e){var t=e.name,o=e.options,i=void 0===o?{}:o,s=e.effect;if("function"===typeof s){var r=s({state:n,name:t,instance:d,options:i}),l=function(){};a.push(r||l)}})}function u(){a.forEach(function(e){return e()}),a=[]}return d.setOptions(o).then(function(e){!l&&o.onFirstUpdate&&o.onFirstUpdate(e)}),d}}},24110:function(e,t,o){o.d(t,{L:function(){return i}});const i=(e,t,...o)=>window.setTimeout(e,t,...o)},24805:function(e,t,o){var i=o(11037),n=(o(7480),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-494aa7e1"]]);t.A=s},24994:function(e,t,o){var i=o(67227),n=o(14291),s=o(89035),r=o(77132),a=o(908),l=o(10582),d=o(2858),c=o(81320),u=o(18985),h=Object.defineProperty,g=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,m=(e,t,o)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,v=(e,t)=>{for(var o in t||(t={}))p.call(t,o)&&m(e,o,t[o]);if(g)for(var o of g(t))f.call(t,o)&&m(e,o,t[o]);return e};const C={key:0,class:"tree-label"},w={key:1,class:"tree-label"},b={class:"label-text"},y={class:"tree-label"};t.A=(0,i.pM)({__name:"SubTree",props:v({layer:{default:0},line:{default:!1},expand:{default(){return[]}},checked:{default(){return[]}},icon:{default:"vyr-arrow-down-bold"},getter:{default:()=>a.r}},l.n7),setup(e){const t=(0,d.Z)(),o=e,a=(0,i.EW)(()=>{const e=[];for(const t of o.data)o.visible(t)&&e.push(t);return e}),{drag:l,mousedown:h,mouseup:g,mouseenter:p,mouseleave:f}=(0,r.P)(o,t),m=e=>{const t={"modify-tree-item":S(e),draggable:l.value.value===o.getter.value(e),"after-draggable":"insertAfter"===l.value.type,"before-draggable":"insertBefore"===l.value.type};return t},v=e=>!1!==o.visible(e)&&("close"!==o.modify&&o.modifyValue===o.getter.value(e)||!!(o.expand.includes(o.getter.value(e))&&o.getter.children(e).length>0)),S=e=>"edit"===o.modify&&o.modifyValue===o.getter.value(e),R=e=>"add"===o.modify&&o.modifyValue===o.getter.value(e),x=(e,i)=>{if(!0===o.multiple&&!0===i.shiftKey&&o.checked.length>0){const i=o.checked[0];let n=a.value.find(e=>o.getter.value(e)===i);if(n){const o=a.value.indexOf(n),i=a.value.indexOf(e),s=Math.min(o,i),r=Math.max(o,i),l=[];for(let e=s;e<=r;e++)l.push(a.value[e]);return void t.value.handleChange(l)}}t.value.handleClick(e,i)};return(o,r)=>{const l=(0,i.g2)("sub-tree",!0);return(0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(a.value,(r,a)=>((0,i.uX)(),(0,i.CE)("div",{key:a,class:"vyr-sub-tree"},[r?((0,i.uX)(),(0,i.Wv)(c.A,{key:0,"data-vyr-tree":e.getter.value(r),class:(0,s.C4)(m(r)),label:e.getter.label(r),value:e.getter.value(r),disabled:e.getter.disabled(r),warning:o.warning(r),checked:e.checked.includes(e.getter.value(r)),onClick:e=>x(r,e),onMousedown:e=>(0,n.R1)(h)(r,e),onMouseup:e=>(0,n.R1)(g)(r,e),onMouseenter:e=>(0,n.R1)(p)(r,e),onMouseleave:e=>(0,n.R1)(f)(r,e),onRightClick:e=>(0,n.R1)(t).handleRightClick(r,e)},{default:(0,i.k6)(()=>[(0,i.Lk)("div",{class:"sub-tree-item",style:(0,s.Tr)(`padding-left:${10*e.layer}px;`)},[(0,i.Lk)("div",{class:(0,s.C4)(["tree-arrow",{active:e.expand.includes(e.getter.value(r))}])},[e.getter.arrow(r)?((0,i.uX)(),(0,i.CE)("i",{key:0,class:(0,s.C4)(["vyrfont",`${e.icon}`])},null,2)):(0,i.Q3)("",!0)],2),S(r)?((0,i.uX)(),(0,i.CE)("div",C,[(0,i.bF)(u.A,{class:"modify","model-value":e.getter.label(r),autofocus:!0,onBlur:e=>(0,n.R1)(t).handleModify(e,r)},null,8,["model-value","onBlur"])])):((0,i.uX)(),(0,i.CE)("div",w,[(0,i.RG)(o.$slots,"default",{item:r,active:e.expand.includes(e.getter.value(r))},()=>[(0,i.Lk)("div",b,(0,s.v_)(e.getter.label(r)),1)])]))],4)]),_:2},1032,["data-vyr-tree","class","label","value","disabled","warning","checked","onClick","onMousedown","onMouseup","onMouseenter","onMouseleave","onRightClick"])):(0,i.Q3)("",!0),R(r)?((0,i.uX)(),(0,i.Wv)(c.A,{key:1,class:"modify-tree-item","data-vyr-tree":e.getter.value(r)},{default:(0,i.k6)(()=>[(0,i.Lk)("div",{class:"sub-tree-item",style:(0,s.Tr)(`padding-left:${10*(e.layer+1)}px;`)},[(0,i.Lk)("div",{class:(0,s.C4)(["tree-arrow",{active:e.expand.includes(e.getter.value(r))}])},null,2),(0,i.Lk)("div",y,[(0,i.bF)(u.A,{class:"modify",autofocus:!0,onBlur:e=>(0,n.R1)(t).handleModify(e,r)},null,8,["onBlur"])])],4)]),_:2},1032,["data-vyr-tree"])):(0,i.Q3)("",!0),v(r)?((0,i.uX)(),(0,i.Wv)(l,{key:2,data:e.getter.children(r),multiple:o.multiple,getter:e.getter,layer:e.layer+1,expand:e.expand,draggable:o.draggable,modify:o.modify,"modify-value":o.modifyValue,checked:e.checked,line:e.checked.includes(e.getter.value(r)),visible:o.visible,warning:o.warning},{default:(0,i.k6)(({item:e,active:t})=>[(0,i.RG)(o.$slots,"default",{item:e,active:t})]),_:2},1032,["data","multiple","getter","layer","expand","draggable","modify","modify-value","checked","line","visible","warning"])):(0,i.Q3)("",!0)]))),128)}}})},25791:function(){},26812:function(e,t,o){var i=o(67227),n=o(14291),s=o(77409),r=o(89035),a=o(10582),l=o(2858),d=o(57744),c=Object.defineProperty,u=Object.defineProperties,h=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,m=(e,t,o)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,v=(e,t)=>{for(var o in t||(t={}))p.call(t,o)&&m(e,o,t[o]);if(g)for(var o of g(t))f.call(t,o)&&m(e,o,t[o]);return e},C=(e,t)=>u(e,h(t));const w=["type","placeholder","value","readonly"],b={class:"icon-wrapper"};t.A=(0,i.pM)({__name:"Input",props:C(v(v(v({},a.vh),a.Ft),a.o0),{type:{default:"text"},trigger:{default:"input"},autofocus:{default:!1}}),emits:["update:modelValue","focus","blur","click","clear"],setup(e,{expose:t,emit:o}){const c=e,u={mounted(e,t){!0===t.value&&e.focus()}},h=(0,n.KR)(""),g=()=>h.value=c.modelValue;(0,i.wB)(()=>c.modelValue,g,{immediate:!0});const p=(0,i.rk)("refInput"),f=o,{curReadonly:m,curClearable:v,curReadonlyClearable:C,enterInput:y,leaveInput:S,showClear:R}=(0,a.wF)(c),{curInputWidth:x}=(0,a.pS)(c),E=(0,n.KR)(!1),F=(0,n.KR)(!1),P=e=>{"Escape"===e.code&&G.blur()},D=()=>{E.value=!0},k=e=>{!1!==E.value&&(E.value=!1,A())},M=()=>{!0!==m.value&&(f("focus"),window.addEventListener("keydown",P),F.value=!0)},A=()=>{var e,t;!0!==E.value&&(h.value=null!=(t=null==(e=p.value)?void 0:e.value)?t:"","input"===c.trigger&&f("update:modelValue",h.value))},T=(0,l._s)(),I=()=>{var e,t;E.value=!1,!0!==m.value&&(h.value=null!=(t=null==(e=p.value)?void 0:e.value)?t:"","blur"===c.trigger&&f("update:modelValue",h.value),f("blur",h.value),T.value.validate(h.value),F.value=!1,window.removeEventListener("keydown",P))},L=e=>{f("update:modelValue",""),f("clear",e),!1===F.value&&T.value.validate("")},B=(0,n.Kh)({enabled:!1,draggable:!1}),O=e=>{!0!==E.value&&(y(),!0!==m.value&&(B.enabled=d.g.enabled,!1!==d.g.enabled&&!1!==c.draggable&&(B.draggable=d.g.enter({key:c.dragkey,value:h.value},c.draggable))))},H=e=>{!0!==E.value&&(S(),B.enabled=!1,!1!==d.g.enabled&&!1!==c.draggable&&(B.draggable=!1))},V=e=>{!0!==m.value&&(B.enabled=!1,!1!==d.g.enabled&&!1!==c.draggable&&(d.g.end({key:c.dragkey,value:h.value},c.draggable,"insert"),B.draggable=!1))},G={isFocus:F,focus(){p.value&&p.value.focus()},blur(){p.value&&p.value.blur()},setValue(e){p.value&&(p.value.value=e,h.value=e)}};return t(G),(t,o)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,r.C4)(["vyr-input",{clearable:(0,n.R1)(v),icon:t.$slots.icon}]),style:(0,r.Tr)(`width:${(0,n.R1)(x)};`),onClick:o[0]||(o[0]=e=>f("click",e)),onMouseenter:O,onMouseleave:H,onMouseup:V},[(0,i.bo)((0,i.Lk)("input",{ref_key:"refInput",ref:p,class:(0,r.C4)(["input-wrapper",{readonly:(0,n.R1)(m),icon:(0,n.R1)(v),draggable:B.draggable}]),tabindex:"-1",type:e.type,placeholder:t.placeholder,value:h.value,readonly:(0,n.R1)(m),onInput:A,onFocus:M,onBlur:I,onCompositionstart:D,onCompositionend:k},null,42,w),[[u,!(0,n.R1)(m)&&e.autofocus]]),(0,i.Lk)("div",b,[(0,i.RG)(t.$slots,"icon",{clearable:(0,n.R1)(v)},()=>[(0,i.bF)(s.eB,{name:"vyr-transition"},{default:(0,i.k6)(()=>[(0,n.R1)(R)((0,n.R1)(v),(0,n.R1)(m),(0,n.R1)(C),h.value)&&!1===B.enabled?((0,i.uX)(),(0,i.CE)("i",{key:0,class:"vyrfont vyr-shanchu vyr-input-icon",onClick:(0,s.D$)(L,["stop"])})):(0,i.Q3)("",!0)]),_:1})])])],38))}})},27215:function(e,t,o){var i=o(17395);o(10276);const n=i.A;t.A=n},27832:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(13809)},28100:function(e,t,o){o.d(t,{t:function(){return i}});const i={id:"zh_CN",name:"@vyr/design","input.placeholder":"请输入内容","select.placeholder":"请选择","notify.send.notMessage":"消息已被忽略,缺少提示信息!","confirm.title.default":"系统提示","confirm.state.notFound":"未初始化确认框的状态","confirm.button.submit":"确 认","confirm.button.cancel":"取 消","dialog.state.notFound":"未初始化确认框的状态","dialog.button.submit":"确 认","dialog.button.cancel":"取 消","options.tips.notData":"暂无数据","options.tips.notFound":"无匹配数据","scroll.listen.error":"无法计算滚动属性!"}},29255:function(e,t,o){o.d(t,{Q1:function(){return n.Q},lv:function(){return i.l},rZ:function(){return s.r}});var i=o(10741),n=o(20676),s=o(99615)},29419:function(e,t,o){o.d(t,{Ds:function(){return s},pN:function(){return n},y5:function(){return i}});const i=(e,t,o)=>{for(const n of t){if(o.value(n)===e)return o.label(n);const t=o.children(n);if(0===t.length)continue;const s=i(e,t,o);if(s)return o.label(n)+" / "+s}return""},n=(e,t,o,i=[])=>{for(const s of e){if(o.value(s)===t)return i.push(s),i;const e=o.children(s);if(e.length>0&&n(e,t,o,i),i.length>0)return i.push(s),i}return i},s=(e,t,o)=>{const i=[];for(const n of t){const t=o.children(n);if(t.length>0)i.push(...s(e,t,o));else{if(!0===o.disabled(n))continue;o.label(n).indexOf(e)>-1&&i.push(n)}}return i}},29663:function(e,t,o){o.d(t,{K:function(){return r},S:function(){return a}});var i=o(14291),n=o(32946),s=o(24110);const r={searchable:{default:!1}},a=(e,t,o)=>{const r=(0,i.KR)({status:0,timeout:0,forcedPrompt:!1,count:0,content:""}),a=()=>{clearTimeout(r.value.timeout),r.value.status=1,t.value.searchOptions=[]},l=()=>{if(r.value.count--,!(r.value.count>0||!1===e.searchable))if(r.value.forcedPrompt=!1,""===r.value.content)r.value.status=1,t.value.searchOptions=[];else{r.value.status=3;const i=!0===e.searchable?t.value.getSearchOptions(r.value.content,e.data,o):e.searchable(r.value.content,e.data);0===i.length&&(r.value.forcedPrompt=!0,i.push({label:"",value:"",disabled:!0})),t.value.searchOptions=i}},d=t=>{!1!==e.searchable&&(r.value.count++,r.value.status=2,r.value.content=t,r.value.timeout=(0,s.L)(l,200))},c=()=>{r.value.status=0,r.value.content="",r.value.forcedPrompt=!1,t.value.searchOptions=[]},u=()=>{clearTimeout(r.value.timeout),r.value.status=4,r.value.timeout=(0,s.L)(c,n.S.config.animationTime.value)};return{searchState:r,startSearch:a,updateSearch:d,clearSearch:u}}},30837:function(){},31565:function(e,t,o){o.d(t,{oB:function(){return E}});o(23404);var i=o(43646),n=o(12153);function s(e){var t=e.state,o=e.name;t.modifiersData[o]=(0,n.A)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var r={name:"popperOffsets",enabled:!0,phase:"read",fn:s,data:{}},a=o(49720),l=o(41019),d=o(88573),c=o(96766),u=o(64865),h=o(45930),g=o(2727),p=o(94696),f={top:"auto",right:"auto",bottom:"auto",left:"auto"};function m(e,t){var o=e.x,i=e.y,n=t.devicePixelRatio||1;return{x:(0,p.LI)(o*n)/n||0,y:(0,p.LI)(i*n)/n||0}}function v(e){var t,o=e.popper,i=e.popperRect,n=e.placement,s=e.variation,r=e.offsets,h=e.position,g=e.gpuAcceleration,p=e.adaptive,v=e.roundOffsets,C=e.isFixed,w=r.x,b=void 0===w?0:w,y=r.y,S=void 0===y?0:y,R="function"===typeof v?v({x:b,y:S}):{x:b,y:S};b=R.x,S=R.y;var x=r.hasOwnProperty("x"),E=r.hasOwnProperty("y"),F=a.kb,P=a.Mn,D=window;if(p){var k=(0,l.A)(o),M="clientHeight",A="clientWidth";if(k===(0,d.A)(o)&&(k=(0,c.A)(o),"static"!==(0,u.A)(k).position&&"absolute"===h&&(M="scrollHeight",A="scrollWidth")),n===a.Mn||(n===a.kb||n===a.pG)&&s===a._N){P=a.sQ;var T=C&&k===D&&D.visualViewport?D.visualViewport.height:k[M];S-=T-i.height,S*=g?1:-1}if(n===a.kb||(n===a.Mn||n===a.sQ)&&s===a._N){F=a.pG;var I=C&&k===D&&D.visualViewport?D.visualViewport.width:k[A];b-=I-i.width,b*=g?1:-1}}var L,B=Object.assign({position:h},p&&f),O=!0===v?m({x:b,y:S},(0,d.A)(o)):{x:b,y:S};return b=O.x,S=O.y,g?Object.assign({},B,(L={},L[P]=E?"0":"",L[F]=x?"0":"",L.transform=(D.devicePixelRatio||1)<=1?"translate("+b+"px, "+S+"px)":"translate3d("+b+"px, "+S+"px, 0)",L)):Object.assign({},B,(t={},t[P]=E?S+"px":"",t[F]=x?b+"px":"",t.transform="",t))}function C(e){var t=e.state,o=e.options,i=o.gpuAcceleration,n=void 0===i||i,s=o.adaptive,r=void 0===s||s,a=o.roundOffsets,l=void 0===a||a,d={placement:(0,h.A)(t.placement),variation:(0,g.A)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,v(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,v(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var w={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:C,data:{}},b=o(53234),y=o(96207);function S(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var o=t.styles[e]||{},i=t.attributes[e]||{},n=t.elements[e];(0,y.sb)(n)&&(0,b.A)(n)&&(Object.assign(n.style,o),Object.keys(i).forEach(function(e){var t=i[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)}))})}function R(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],n=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:o[e]),r=s.reduce(function(e,t){return e[t]="",e},{});(0,y.sb)(i)&&(0,b.A)(i)&&(Object.assign(i.style,r),Object.keys(n).forEach(function(e){i.removeAttribute(e)}))})}}var x={name:"applyStyles",enabled:!0,phase:"write",fn:S,effect:R,requires:["computeStyles"]},E=[i.A,r,w,x]},31575:function(e,t,o){var i=o(67227),n=o(14291),s=o(89035),r=o(10582),a=o(2858),l=o(55382),d=o(908),c=o(67698),u=o(54963),h=Object.defineProperty,g=Object.defineProperties,p=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,C=(e,t,o)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,w=(e,t)=>{for(var o in t||(t={}))m.call(t,o)&&C(e,o,t[o]);if(f)for(var o of f(t))v.call(t,o)&&C(e,o,t[o]);return e},b=(e,t)=>g(e,p(t));const y={class:"vyr-dropdown"},S={key:1,class:"vyr-dropdown-trigger"},R={class:"trigger-label"},x={key:0,class:"trigger-arrow"};t.A=(0,i.pM)({__name:"Dropdown",props:b(w(w(w(w(w({},r.vh),r.xG),r.G9),r.Ft),r.wq),{disabled:{default:!1},popoverCard:{default:!1},popoverWidth:{default:"auto"},custom:{default:!1},removable:{default:!1},data:{default(){return[]}}}),emits:["update:modelValue","change","remove","show","close"],setup(e,{emit:t}){const o=e;(0,a.Gq)((0,n.KR)({validate(){}}));const r=(0,i.rk)("refPopover"),h=t,{state:g,slotWidth:p,resize:f}=(0,l.f)(o,r),m=(0,d.H)(o),v={bind:!1,cur:null,triggerResize:()=>{}},C=e=>{v.bind?(b(),v.cur=e,w()):v.cur=e},w=()=>{v.bind=!0,v.cur&&(v.triggerResize=l.P.listen(v.cur,f))},b=()=>{v.bind=!1,v.cur&&l.P.unlisten(v.cur),v.triggerResize=()=>{}},E=e=>{g.value.visible=e,e?(h("show"),w()):(b(),h("close"))},F=()=>{g.value.visible=!1},P=(e,t)=>{const i=m.value(e);o.modelValue!==i&&(h("update:modelValue",i),h("change",i)),t.stopPropagation(),F()};return(t,o)=>((0,i.uX)(),(0,i.CE)("div",y,[(0,i.bF)(c.A,{ref_key:"refPopover",ref:r,"model-value":(0,n.R1)(g).visible,placement:t.placement,"popover-class":`vyr-dropdown-popover ${t.popoverClass}`,disabled:e.disabled,"popover-card":e.popoverCard,arrow:t.arrow,offset:t.offset,"onUpdate:modelValue":E,onTriggerChange:C},{trigger:(0,i.k6)(()=>[e.custom?(0,i.RG)(t.$slots,"default",{key:0,visible:(0,n.R1)(g).visible}):((0,i.uX)(),(0,i.CE)("div",S,[(0,i.Lk)("div",R,[(0,i.RG)(t.$slots,"default",{visible:(0,n.R1)(g).visible})]),!1===e.disabled?((0,i.uX)(),(0,i.CE)("div",x,[(0,i.Lk)("i",{class:(0,s.C4)(["vyrfont vyr-arrow-down-bold",{active:(0,n.R1)(g).visible}])},null,2)])):(0,i.Q3)("",!0)]))]),default:(0,i.k6)(()=>[(0,i.RG)(t.$slots,"popover",{width:(0,n.R1)(p)},()=>[(0,i.bF)(u.A,{data:e.data,getter:(0,n.R1)(m),checked:[t.modelValue],width:(0,n.R1)(p),removable:e.removable,onClick:P,onRemove:o[0]||(o[0]=e=>h("remove",e))},{default:(0,i.k6)(({option:e,emit:o})=>[(0,i.RG)(t.$slots,"option",{option:e,emit:o,close:F})]),_:3},8,["data","getter","checked","width","removable"])])]),_:3},8,["model-value","placement","popover-class","disabled","popover-card","arrow","offset"])]))}})},32172:function(e,t,o){o(57771)},32318:function(){},32942:function(e,t,o){o(87503)},32946:function(e,t,o){o.d(t,{S:function(){return l}});var i=o(14291),n=Object.defineProperty,s=(e,t,o)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,r=(e,t,o)=>s(e,"symbol"!==typeof t?t+"":t,o);const a=(e,t,o)=>{const i=e.split(t),n=[];for(const s of i)n.push(s.replace(o,"$1-").toLowerCase());return"--vyr-"+n.join("-")};class l{static update(e){const t=Object.keys(e),o=document.documentElement.style,i=/(?=[A-Z])/,n=/(.)(?=[A-Z])/g;for(const s of t){const t=e[s],r="object"===typeof t?t.value+t.unit:t,l=a(s,i,n);o.setProperty(l,r)}Object.assign(this.config,e)}}r(l,"config",(0,i.Kh)({whiteColor:"rgba(255, 255, 255, 1)",blackColor:"rgba(0, 0, 0, 1)",blueColor:"rgba(27, 143, 223, 1)",greenColor:"rgba(106, 210, 54, 1)",yellowColor:"rgba(230, 162, 60, 1)",redColor:"rgba(245, 108, 108, 1)",successColor:"rgba(106, 210, 54, 1)",warningColor:"rgba(230, 162, 60, 1)",dangerColor:"rgba(245, 108, 108, 1)",topicColor:"rgba(30, 30, 30, 1)",activeTopicColor:"rgba(27, 143, 223, 0.8)",fontColor:"rgba(255, 255, 255, 1)",titleColor:"rgba(255, 255, 255, 1)",borderColor:"rgba(46, 46, 46, 1)",helperColor:"rgba(113, 113, 113, 1)",disabledColor:"rgba(175, 175, 175, 1)",draggableColor:"rgba(27, 143, 223, 0.3)",flashingDraggableColor:"rgba(27, 143, 223, 0.8)",fontSize:{unit:"px",value:12},titleSize:{unit:"px",value:14},borderSize:{unit:"px",value:1},radiusSize:{unit:"px",value:2},zIndex:999,animationTime:{unit:"ms",value:500},scrollBarColor:"rgba(46, 46, 46, 1)",inputFontSize:{unit:"px",value:12},inputHeight:{unit:"px",value:30},inputRadius:{unit:"px",value:2},inputLRPadding:{unit:"px",value:10},inputIconSize:{unit:"px",value:20},inputBorderSize:{unit:"px",value:1},inputFontColor:"rgba(255, 255, 255, 1)",inputBorderColor:"rgba(77, 77, 77, 1)",inputPlaceholderColor:"rgba(113, 113, 113, 1)",inputBackgroundColor:"rgba(42, 42, 42, 1)",optionMargin:{unit:"px",value:2},optionArrowSize:{unit:"px",value:18},optionBackgroundColor:"rgba(30, 30, 30, 1)",optionHoverBackgroundColor:"rgba(55, 55, 61, 1)",optionExpandBackgroundColor:"rgba(55, 55, 61, 1)",optionDisabledBackgroundColor:"rgba(77, 77, 77, 1)",optionsScrollMargin:{unit:"px",value:6},optionsBorderColor:"rgba(77, 77, 77, 1)",optionsBackgroundColor:"rgba(30, 30, 30, 1)",dialogHeaderBackgroundColor:"rgba(30, 30, 30, 0.9)",popoverBackgroundColor:"rgba(30, 30, 30, 1)",notifyZIndex:2e3,loadingZIndex:1e4})),l.update(l.config)},33490:function(e,t,o){o.d(t,{m:function(){return l}});var i=o(77409),n=o(93623),s=o(7135),r=o(63656);class a{send(e,t,o){const a="string"===typeof e?{message:e}:e;if(""===a.message)return console.warn(s.B.get("notify.send.notMessage"));const l=(0,i.Ef)(r.A),d=l.mount(document.createElement("div"));let c;"string"===typeof t?c=t:o=t;const u=()=>l.unmount(),h=new n.G8(e,c,o,u);d.show(h)}setOffset(e){n.G8.offset=e}}const l=new a},33918:function(e,t,o){o(10205)},33947:function(e,t,o){var i=o(47593),n=(o(62536),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-5a615ef9"]]);t.A=s},34400:function(e,t,o){function i(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}o.d(t,{A:function(){return i}})},34736:function(e,t,o){o(85509)},35378:function(){},35929:function(e,t,o){o(35378)},36047:function(){},36720:function(){},37155:function(e,t,o){var i=o(67227),n=o(89035),s=o(14291),r=o(81320);t.A=(0,i.pM)({__name:"Draggable",setup(e,{expose:t}){const o=(0,s.KR)({visible:!1,label:"",x:0,y:0}),a=(e,t)=>{o.value.x=e,o.value.y=t},l=e=>{document.body.classList.add("vyr-drag-mouse"),o.value.visible=!0,o.value.label=e},d=()=>{document.body.classList.remove("vyr-drag-mouse"),o.value.visible=!1,o.value.label=""};return t({show:l,hide:d,update:a}),(e,t)=>o.value.visible?((0,i.uX)(),(0,i.CE)("div",{key:0,class:"vyr-drag",style:(0,n.Tr)(`left:${o.value.x}px;top:${o.value.y}px;`)},[(0,i.bF)(r.A,{label:o.value.label,arrow:!1},null,8,["label"])],4)):(0,i.Q3)("",!0)}})},37406:function(e,t,o){var i=o(45930),n=o(74449),s=o(4652),r=o(41019),a=o(57469),l=o(10857),d=o(67124),c=o(2157),u=o(49720),h=function(e,t){return e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,d.A)("number"!==typeof e?e:(0,c.A)(e,u.OM))};function g(e){var t,o=e.state,s=e.name,d=e.options,c=o.elements.arrow,g=o.modifiersData.popperOffsets,p=(0,i.A)(o.placement),f=(0,a.A)(p),m=[u.kb,u.pG].indexOf(p)>=0,v=m?"height":"width";if(c&&g){var C=h(d.padding,o),w=(0,n.A)(c),b="y"===f?u.Mn:u.kb,y="y"===f?u.sQ:u.pG,S=o.rects.reference[v]+o.rects.reference[f]-g[f]-o.rects.popper[v],R=g[f]-o.rects.reference[f],x=(0,r.A)(c),E=x?"y"===f?x.clientHeight||0:x.clientWidth||0:0,F=S/2-R/2,P=C[b],D=E-w[v]-C[y],k=E/2-w[v]/2+F,M=(0,l.u)(P,k,D),A=f;o.modifiersData[s]=(t={},t[A]=M,t.centerOffset=M-k,t)}}function p(e){var t=e.state,o=e.options,i=o.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!==typeof n||(n=t.elements.popper.querySelector(n),n))&&(0,s.A)(t.elements.popper,n)&&(t.elements.arrow=n)}t.A={name:"arrow",enabled:!0,phase:"main",fn:g,effect:p,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},37787:function(e,t,o){o.d(t,{GR:function(){return r},V2:function(){return l},Wz:function(){return a}});var i=o(14291),n=o(67227),s=o(7135);const r=Symbol("vyr-confirm"),a=(e,t=e=>{})=>{var o,n;return(0,i.KR)({visible:!1,title:null!=(o=e.title)?o:s.B.get("confirm.title.default"),type:e.type,options:null!=(n=e.options)?n:[],message:e.message,mode:e.mode,value:e.value,placeholder:e.placeholder,success:!1,close:t})},l=()=>{const e=(0,n.WQ)(r,()=>{throw new Error(s.B.get("confirm.state.notFound"))});return e}},38430:function(e,t,o){var i=o(50552),n=(o(56476),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-7fed5fd6"]]);t.A=s},38896:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(9961)},39004:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(72171)},39434:function(e,t,o){var i=o(67227),n=o(89035),s=o(2858);t.A=(0,i.pM)({__name:"Col",props:{span:{default:24,validator(e){return e>0&&e<=24}},offset:{default:0}},setup(e){const t=(0,s.to)(),o=(0,i.EW)(()=>`padding:0 ${t.value.gutter}px;`);return(0,i.sV)(()=>t.value.count++),(0,i.xo)(()=>t.value.count--),(t,s)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,n.C4)(["vyr-col",[`vyr-col-${e.span}`,e.offset>0?`vyr-col-offset-${e.offset}`:""]]),style:(0,n.Tr)(o.value)},[(0,i.RG)(t.$slots,"default")],6))}})},39880:function(e,t,o){o(56055)},41019:function(e,t,o){o.d(t,{A:function(){return h}});var i=o(88573),n=o(53234),s=o(64865),r=o(96207);function a(e){return["table","td","th"].indexOf((0,n.A)(e))>=0}var l=o(15077),d=o(34400);function c(e){return(0,r.sb)(e)&&"fixed"!==(0,s.A)(e).position?e.offsetParent:null}function u(e){var t=/firefox/i.test((0,d.A)()),o=/Trident/i.test((0,d.A)());if(o&&(0,r.sb)(e)){var i=(0,s.A)(e);if("fixed"===i.position)return null}var a=(0,l.A)(e);(0,r.Ng)(a)&&(a=a.host);while((0,r.sb)(a)&&["html","body"].indexOf((0,n.A)(a))<0){var c=(0,s.A)(a);if("none"!==c.transform||"none"!==c.perspective||"paint"===c.contain||-1!==["transform","perspective"].indexOf(c.willChange)||t&&"filter"===c.willChange||t&&c.filter&&"none"!==c.filter)return a;a=a.parentNode}return null}function h(e){var t=(0,i.A)(e),o=c(e);while(o&&a(o)&&"static"===(0,s.A)(o).position)o=c(o);return o&&("html"===(0,n.A)(o)||"body"===(0,n.A)(o)&&"static"===(0,s.A)(o).position)?t:o||u(e)||t}},41030:function(e,t,o){var i=o(54340),n=(o(9756),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-7f60a57e"]]);t.A=s},41469:function(e,t,o){o(20234)},43539:function(){},43554:function(e,t,o){var i=o(57212),n=(o(32172),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-9a057b0c"]]);t.A=s},43646:function(e,t,o){var i=o(88573),n={passive:!0};function s(e){var t=e.state,o=e.instance,s=e.options,r=s.scroll,a=void 0===r||r,l=s.resize,d=void 0===l||l,c=(0,i.A)(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(e){e.addEventListener("scroll",o.update,n)}),d&&c.addEventListener("resize",o.update,n),function(){a&&u.forEach(function(e){e.removeEventListener("scroll",o.update,n)}),d&&c.removeEventListener("resize",o.update,n)}}t.A={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:s,data:{}}},44233:function(e,t,o){o(32318)},44250:function(e,t,o){var i=o(67227),n=o(14291),s=o(77409),r=o(89035),a=o(10582),l=o(2858),d=o(29663),c=o(55382),u=o(908),h=o(67698),g=o(18985),p=o(54963),f=Object.defineProperty,m=Object.defineProperties,v=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,y=(e,t,o)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,S=(e,t)=>{for(var o in t||(t={}))w.call(t,o)&&y(e,o,t[o]);if(C)for(var o of C(t))b.call(t,o)&&y(e,o,t[o]);return e},R=(e,t)=>m(e,v(t));const x={class:"select-wrapper"};t.A=(0,i.pM)({__name:"Select",props:R(S(S(S(S(S(S({},a.vh),a.xG),a.G9),a.Ft),d.K),a.wq),{addable:{default:!1},removable:{default:!1},editable:{default:!1},popoverCard:{default:!1},popoverWidth:{default:"auto"},data:{default(){return[]}}}),emits:["update:modelValue","change","show","close","clear","add","remove","edit"],setup(e,{expose:t,emit:o}){const f=(0,l._s)();(0,l.Gq)((0,n.KR)({validate(){}}));const m=(0,i.rk)("refPopover"),v=o,C=e,w=(0,u.H)(C),{curInputWidth:b}=(0,a.pS)(C),{state:y,slotWidth:S,resize:R,cascaderProvider:E}=(0,c.f)(C,m),{curReadonly:F,curClearable:P,curReadonlyClearable:D,showClear:k}=(0,a.f1)(C),{searchState:M,startSearch:A,updateSearch:T,clearSearch:I}=(0,d.S)(C,E,w),L=(0,i.EW)(()=>!1===F.value&&!1===C.draggable||F.value),B={bind:!1,cur:null,triggerResize:()=>{}},O=e=>{B.bind?(V(),B.cur=e,H()):B.cur=e},H=()=>{B.bind=!0,B.cur&&(B.triggerResize=c.P.listen(B.cur,R))},V=()=>{B.bind=!1,B.cur&&c.P.unlisten(B.cur),B.triggerResize=()=>{}},G=e=>{y.value.visible=e,e?(v("show"),H()):(V(),v("close")),f.value.validate(C.modelValue)},N=e=>{!0===y.value.visible&&e.stopPropagation()},z=(0,i.EW)(()=>E.value.getInputValue(C.modelValue,C.data,w)),W=(0,i.EW)(()=>!1===C.searchable||0===E.value.searchOptions.length?C.data:E.value.searchOptions),_=(0,i.EW)(()=>!1===C.searchable||[0].includes(M.value.status)?z.value:M.value.content),U=(0,i.EW)(()=>!1===C.searchable||0===M.value.status||""===z.value?C.placeholder:z.value),$=(...e)=>{v("add",...e)},q=(...e)=>{v("edit",...e)},j=(...e)=>{v("remove",...e)},K=()=>{if(!0===F.value)return y.value.visible=!1;y.value.visible=!0},Q=()=>{y.value.visible=!1},X=(e,t)=>{const o=w.value(e);C.modelValue!==o&&(v("update:modelValue",o),v("change",o,e)),t.stopPropagation(),Q()},Y=()=>{v("update:modelValue",""),v("change",""),v("clear",""),Q(),!1===y.value.visible&&f.value.validate("")};return t({show:K,close:Q,resize:()=>B.triggerResize()}),(t,o)=>((0,i.uX)(),(0,i.CE)("div",{class:"vyr-select",style:(0,r.Tr)(`width:${(0,n.R1)(b)};`)},[(0,i.bF)(h.A,{ref_key:"refPopover",ref:m,"model-value":(0,n.R1)(y).visible,placement:t.placement,"popover-class":`vyr-select-popover ${t.popoverClass}`,disabled:(0,n.R1)(F),"popover-card":e.popoverCard,arrow:t.arrow,offset:t.offset,"onUpdate:modelValue":G,onTriggerChange:O},{trigger:(0,i.k6)(()=>[(0,i.RG)(t.$slots,"trigger",{},()=>[(0,i.Lk)("div",x,[(0,i.bF)(g.A,{"model-value":_.value,readonly:L.value,clearable:(0,n.R1)(P),"readonly-clearable":(0,n.R1)(D),placeholder:U.value,width:"100%",draggable:t.draggable,dragkey:t.dragkey,onFocus:(0,n.R1)(A),onBlur:(0,n.R1)(I),"onUpdate:modelValue":(0,n.R1)(T),onClick:N,onClear:(0,s.D$)(Y,["stop"])},{icon:(0,i.k6)(e=>[(0,n.R1)(k)(e.clearable,(0,n.R1)(F),(0,n.R1)(D),_.value)?((0,i.uX)(),(0,i.CE)("i",{key:0,class:"vyrfont vyr-shanchu vyr-input-icon",onClick:(0,s.D$)(Y,["stop"])})):((0,i.uX)(),(0,i.CE)("i",{key:1,class:(0,r.C4)(["vyrfont vyr-arrow-down-bold vyr-input-icon",{active:(0,n.R1)(y).visible}])},null,2))]),_:1},8,["model-value","readonly","clearable","readonly-clearable","placeholder","draggable","dragkey","onFocus","onBlur","onUpdate:modelValue"])])])]),default:(0,i.k6)(()=>[(0,i.RG)(t.$slots,"default",{width:(0,n.R1)(S),forcedPrompt:(0,n.R1)(M).forcedPrompt},()=>[(0,i.bF)(p.A,{data:W.value,getter:(0,n.R1)(w),addable:e.addable,removable:e.removable,editable:e.editable,"forced-prompt":(0,n.R1)(M).forcedPrompt,checked:[t.modelValue],width:(0,n.R1)(S),onClick:X,onAdd:$,onRemove:j,onEdit:q},null,8,["data","getter","addable","removable","editable","forced-prompt","checked","width"])])]),_:3},8,["model-value","placement","popover-class","disabled","popover-card","arrow","offset"])],4))}})},44595:function(){},44694:function(e,t,o){function i(){return{top:0,right:0,bottom:0,left:0}}o.d(t,{A:function(){return i}})},44796:function(e,t,o){var i=o(67227),n=o(14291),s=o(96408),r=o(2858),a=o(29255),l=Object.defineProperty,d=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,h=(e,t,o)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,g=(e,t)=>{for(var o in t||(t={}))c.call(t,o)&&h(e,o,t[o]);if(d)for(var o of d(t))u.call(t,o)&&h(e,o,t[o]);return e},p=(e,t,o)=>new Promise((i,n)=>{var s=e=>{try{a(o.next(e))}catch(t){n(t)}},r=e=>{try{a(o.throw(e))}catch(t){n(t)}},a=e=>e.done?i(e.value):Promise.resolve(e.value).then(s,r);a((o=o.apply(e,t)).next())});const f={class:"vyr-form"};t.A=(0,i.pM)({__name:"Form",props:{data:{default(){return{}}},rules:{default(){return[]}},rulesOptions:{default(){return{tips:!0,icon:!0}}}},setup(e,{expose:t}){const o=e,l=e=>{a.lv.insert(h.value.rules,e)},d=e=>{a.lv.remove(h.value.rules,e)},c=(e,...t)=>p(null,[e,...t],function*(e,t=o.data,i){let n=!0;const r=new s.A(e);return yield r.validate(t,i).catch(({fields:e})=>{m(e),n=!1}),n}),u=(e,t)=>p(null,null,function*(){const i={[e]:o.rules[e]||{}},n={[e]:t},s=yield c(i,n);return!0===s&&delete h.value.validateCollection[e],s}),h=(0,n.KR)({rules:[],validateCollection:{},options:g(g({},{tips:!0,icon:!0}),o.rulesOptions),addRule:l,removeRule:d,validateItem:u});(0,r.Bl)(h);const m=e=>{for(const t of Object.keys(e))h.value.validateCollection[t]=e[t][0].message},v=e=>p(null,null,function*(){let t=0;const i={};for(const e of h.value.rules){const n=o.rules[e]||{};void 0!==e&&(i[e]=n,t++)}if(0===t)return!0;const n=yield c(i,o.data,e);return!0===n&&(h.value.validateCollection={}),n}),C=()=>h.value.validateCollection={};return t({validator:v,reset:C}),(e,t)=>((0,i.uX)(),(0,i.CE)("div",f,[(0,i.RG)(e.$slots,"default")]))}})},45319:function(){},45904:function(e,t){t.A=(e,t)=>{const o=e.__vccOpts||e;for(const[i,n]of t)o[i]=n;return o}},45930:function(e,t,o){function i(e){return e.split("-")[0]}o.d(t,{A:function(){return i}})},47237:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(96466)},47593:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(1662)},48558:function(e,t,o){var i=o(67227),n=o(14291),s=o(89035),r=o(908),a=o(10582),l=o(2858),d=o(29255),c=o(27215),u=Object.defineProperty,h=Object.defineProperties,g=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,v=(e,t,o)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,C=(e,t)=>{for(var o in t||(t={}))f.call(t,o)&&v(e,o,t[o]);if(p)for(var o of p(t))m.call(t,o)&&v(e,o,t[o]);return e},w=(e,t)=>h(e,g(t));t.A=(0,i.pM)({__name:"Tree",props:w(C({},a.n7),{getter:{default:()=>r.r},defaultChecked:{default:()=>[]}}),emits:["change","rightClick","modify"],setup(e,{expose:t,emit:o}){const a=e,u=(0,n.KR)({expand:[],checked:[]}),h=(0,r.H)(a),g=o,p=(e,t)=>{g("modify",a.modify,e,t),u.value.checked=[h.value(t)],g("change",[t])},f=(e,t,o=[])=>{for(const i of e){const e=h.value(i);if(h.value(i)===h.value(t))return o.push("__"),o;if(!1!==Array.isArray(i.children)&&(f(i.children,t,o),o.length>0))return o.push(e),o}return o},m=e=>{0===u.value.checked.length&&0===e.length||(u.value.checked=e.map(e=>h.value(e)),g("change",e))},v=(e,t)=>{m([e]),C(e)},C=(e,t)=>{!0===t?d.lv.insert(u.value.expand,h.value(e)):!1===t?d.lv.remove(u.value.expand,h.value(e)):d.lv.auto(u.value.expand,h.value(e))},w=(e,t)=>{g("rightClick",e,t)},b=(e,t,o=a.data)=>{for(let i=0;i<o.length;i++){const n=o[i];if(h.value(n)===h.value(e)){const e=o.indexOf(t);if(-1===e)return 0;const n=e-i;return 1===Math.abs(n)?n:0}const s=b(e,t,h.children(n));if(null!==s)return s}return null};(0,l.cD)((0,n.KR)({handleClick:v,handleChange:m,handleModify:p,handleRightClick:w,handleExpand:C,getAdjacencies:b}));const y=e=>{if(!e||0===e.length)return u.value.expand=[],void(u.value.checked=[]);for(const t of e){if(!t)continue;const e=h.value(t);u.value.checked=[e];const o=f(a.data,t);for(const t of o)d.lv.insert(u.value.expand,t)}};return(0,i.wB)(()=>a.defaultChecked,y,{immediate:!0}),t({change:m,expand:C}),(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,s.C4)(["vyr-tree",{"modify-tree":"close"!==e.modify}])},[(0,i.bF)(c.A,{data:e.data,getter:(0,n.R1)(h),expand:u.value.expand,checked:u.value.checked,draggable:e.draggable,modify:e.modify,multiple:e.multiple,"modify-value":e.modifyValue,visible:e.visible,warning:e.warning},{default:(0,i.k6)(t=>[(0,i.RG)(e.$slots,"default",(0,s._B)((0,i.Ng)(t)))]),_:3},8,["data","getter","expand","checked","draggable","modify","multiple","modify-value","visible","warning"])],2))}})},48842:function(e,t,o){o.d(t,{b:function(){return w}});var i=o(67227),n=o(77409),s=o(14291),r=o(80346),a=Object.defineProperty,l=(e,t,o)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,d=(e,t,o)=>l(e,"symbol"!=typeof t?t+"":t,o);class c{static getComponentDefinition(e,t){let o;return o="string"==typeof e?this.searchForComponentInstance(t,e):{extends:(0,i.pM)({...e})},o||(0,r._error)(114,{component:e}),o.extends?(o.extends.setup&&(o.setup=o.extends.setup),o.extends.props=this.addParamsToProps(o.extends.props)):o.props=this.addParamsToProps(o.props),o}static addParamsToProps(e){return!e||Array.isArray(e)&&-1===e.indexOf("params")?e=["params",...e||[]]:"object"==typeof e&&!e.params&&(e.params={type:Object}),e}static createAndMountComponent(e,t,o,i){const n=c.getComponentDefinition(e,o);if(!n)return;const{vNode:s,destroy:r,el:a}=this.mount(n,{params:Object.freeze(t)},o,i||{});return{componentInstance:s.component.proxy,element:a,destroy:r}}static mount(e,t,o,s){let r=(0,i.bF)(e,t);r.appContext={...o.appContext,provides:s};let a=document.createDocumentFragment();return(0,n.XX)(r,a),{vNode:r,destroy:()=>{a&&(0,n.XX)(null,a),a=null,r=null},el:a}}static searchForComponentInstance(e,t,o=10,i=!1){let n=null,s=0,a=e.parent;for(;!n&&a&&a.components&&++s<o;)a.components&&a.components[t]&&(n=a.components[t]),a=a.parent;for(s=0,a=e.parent;!n&&a&&a.$options&&++s<o;){const e=a;e.$options&&e.$options.components&&e.$options.components[t]?n=e.$options.components[t]:e[t]&&(n=e[t]),a=a.parent}for(s=0,a=e.parent;!n&&a&&++s<o;){if(a.exposed){const e=a;e.exposed&&e.exposed[t]?n=e.exposed[t]:e[t]&&(n=e[t])}a=a.parent}if(!n){const o=e.appContext.components;o&&o[t]&&(n=o[t])}return n||i?n:((0,r._error)(114,{component:t}),null)}}class u extends r.BaseComponentWrapper{constructor(e,t){super(),d(this,"parent"),d(this,"provides"),this.parent=e,this.provides=t}createWrapper(e){const t=this;class o extends h{init(e){super.init(e)}hasMethod(e){var t,o;const n=i.getFrameworkComponentInstance();return!!n[e]||(null!=(null==(t=n.$.exposed)?void 0:t[e])||null!=(null==(o=n.exposed)?void 0:o[e])||null!=n.$.setupState[e])}callMethod(e,t){var o,n;const s=this.getFrameworkComponentInstance(),r=i.getFrameworkComponentInstance();if(r[e])return r[e].apply(s,t);{const i=(null==(o=s.$.exposed)?void 0:o[e])||(null==(n=s.exposed)?void 0:n[e])||s.$.setupState[e];return null==i?void 0:i.apply(s,t)}}addMethod(e,t){i[e]=t}processMethod(e,t){return"refresh"===e&&(this.getFrameworkComponentInstance().params=t[0]),this.hasMethod(e)?this.callMethod(e,t):"refresh"===e}createComponent(o){return t.createComponent(e,o)}}const i=new o;return i}createComponent(e,t){return c.createAndMountComponent(e,t,this.parent,this.provides)}createMethodProxy(e,t,o){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(o&&(0,r._warn)(233,{methodName:t}),null)}}destroy(){this.parent=null}}class h{constructor(){d(this,"componentInstance"),d(this,"element"),d(this,"unmount")}getGui(){return this.element}destroy(){this.getFrameworkComponentInstance()&&"function"==typeof this.getFrameworkComponentInstance().destroy&&this.getFrameworkComponentInstance().destroy(),this.unmount()}getFrameworkComponentInstance(){return this.componentInstance}init(e){const{componentInstance:t,element:o,destroy:i}=this.createComponent(e);this.componentInstance=t,this.unmount=i,this.element=o.firstElementChild??o}}class g extends r.VanillaFrameworkOverrides{constructor(e){super("vue"),d(this,"parent"),this.parent=e}frameworkComponent(e,t){let o=c.searchForComponentInstance(this.parent,e,10,!0)?e:null;if(!o&&t&&t[e]){const i=t[e];o=c.searchForComponentInstance(this.parent,i,10,!0)?i:null}return o}isFrameworkComponent(e){return"object"==typeof e}}function p(){return{gridOptions:{},modules:[],statusBar:void 0,sideBar:void 0,suppressContextMenu:void 0,preventDefaultOnContextMenu:void 0,allowContextMenuWithControlKey:void 0,columnMenu:void 0,suppressMenuHide:void 0,enableBrowserTooltips:void 0,tooltipTrigger:void 0,tooltipShowDelay:void 0,tooltipHideDelay:void 0,tooltipMouseTrack:void 0,tooltipShowMode:void 0,tooltipInteraction:void 0,popupParent:void 0,copyHeadersToClipboard:void 0,copyGroupHeadersToClipboard:void 0,clipboardDelimiter:void 0,suppressCopyRowsToClipboard:void 0,suppressCopySingleCellRanges:void 0,suppressLastEmptyLineOnPaste:void 0,suppressClipboardPaste:void 0,suppressClipboardApi:void 0,suppressCutToClipboard:void 0,columnDefs:void 0,defaultColDef:void 0,defaultColGroupDef:void 0,columnTypes:void 0,dataTypeDefinitions:void 0,maintainColumnOrder:void 0,enableStrictPivotColumnOrder:void 0,suppressFieldDotNotation:void 0,headerHeight:void 0,groupHeaderHeight:void 0,floatingFiltersHeight:void 0,pivotHeaderHeight:void 0,pivotGroupHeaderHeight:void 0,hidePaddedHeaderRows:void 0,allowDragFromColumnsToolPanel:void 0,suppressMovableColumns:void 0,suppressColumnMoveAnimation:void 0,suppressMoveWhenColumnDragging:void 0,suppressDragLeaveHidesColumns:void 0,suppressGroupChangesColumnVisibility:void 0,suppressMakeColumnVisibleAfterUnGroup:void 0,suppressRowGroupHidesColumns:void 0,colResizeDefault:void 0,suppressAutoSize:void 0,autoSizePadding:void 0,skipHeaderOnAutoSize:void 0,autoSizeStrategy:void 0,animateColumnResizing:void 0,components:void 0,editType:void 0,suppressStartEditOnTab:void 0,getFullRowEditValidationErrors:void 0,invalidEditValueMode:void 0,singleClickEdit:void 0,suppressClickEdit:void 0,readOnlyEdit:void 0,stopEditingWhenCellsLoseFocus:void 0,enterNavigatesVertically:void 0,enterNavigatesVerticallyAfterEdit:void 0,enableCellEditingOnBackspace:void 0,undoRedoCellEditing:void 0,undoRedoCellEditingLimit:void 0,defaultCsvExportParams:void 0,suppressCsvExport:void 0,defaultExcelExportParams:void 0,suppressExcelExport:void 0,excelStyles:void 0,findSearchValue:void 0,findOptions:void 0,quickFilterText:void 0,cacheQuickFilter:void 0,includeHiddenColumnsInQuickFilter:void 0,quickFilterParser:void 0,quickFilterMatcher:void 0,applyQuickFilterBeforePivotOrAgg:void 0,excludeChildrenWhenTreeDataFiltering:void 0,enableAdvancedFilter:void 0,alwaysPassFilter:void 0,includeHiddenColumnsInAdvancedFilter:void 0,advancedFilterParent:void 0,advancedFilterBuilderParams:void 0,advancedFilterParams:void 0,suppressAdvancedFilterEval:void 0,suppressSetFilterByDefault:void 0,enableFilterHandlers:void 0,filterHandlers:void 0,enableCharts:void 0,chartThemes:void 0,customChartThemes:void 0,chartThemeOverrides:void 0,chartToolPanelsDef:void 0,chartMenuItems:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,localeText:void 0,masterDetail:void 0,keepDetailRows:void 0,keepDetailRowsCount:void 0,detailCellRenderer:void 0,detailCellRendererParams:void 0,detailRowHeight:void 0,detailRowAutoHeight:void 0,context:void 0,alignedGrids:void 0,tabIndex:void 0,rowBuffer:void 0,valueCache:void 0,valueCacheNeverExpires:void 0,enableCellExpressions:void 0,suppressTouch:void 0,suppressFocusAfterRefresh:void 0,suppressBrowserResizeObserver:void 0,suppressPropertyNamesCheck:void 0,suppressChangeDetection:void 0,debug:void 0,loading:void 0,overlayLoadingTemplate:void 0,loadingOverlayComponent:void 0,loadingOverlayComponentParams:void 0,suppressLoadingOverlay:void 0,overlayNoRowsTemplate:void 0,noRowsOverlayComponent:void 0,noRowsOverlayComponentParams:void 0,suppressNoRowsOverlay:void 0,suppressOverlays:void 0,overlayComponent:void 0,overlayComponentParams:void 0,overlayComponentSelector:void 0,activeOverlay:void 0,activeOverlayParams:void 0,pagination:void 0,paginationPageSize:void 0,paginationPageSizeSelector:void 0,paginationAutoPageSize:void 0,paginateChildRows:void 0,suppressPaginationPanel:void 0,pivotMode:void 0,pivotPanelShow:void 0,pivotMaxGeneratedColumns:void 0,pivotDefaultExpanded:void 0,pivotColumnGroupTotals:void 0,pivotRowTotals:void 0,pivotSuppressAutoColumn:void 0,suppressExpandablePivotGroups:void 0,functionsReadOnly:void 0,aggFuncs:void 0,formulaDataSource:void 0,formulaFuncs:void 0,suppressAggFuncInHeader:void 0,alwaysAggregateAtRootLevel:void 0,aggregateOnlyChangedColumns:void 0,suppressAggFilteredOnly:void 0,removePivotHeaderRowWhenSingleValueColumn:void 0,animateRows:void 0,cellFlashDuration:void 0,cellFadeDuration:void 0,allowShowChangeAfterFilter:void 0,domLayout:void 0,ensureDomOrder:void 0,enableCellSpan:void 0,enableRtl:void 0,suppressColumnVirtualisation:void 0,suppressMaxRenderedRowRestriction:void 0,suppressRowVirtualisation:void 0,rowDragManaged:void 0,refreshAfterGroupEdit:void 0,rowDragInsertDelay:void 0,suppressRowDrag:void 0,suppressMoveWhenRowDragging:void 0,rowDragEntireRow:void 0,rowDragMultiRow:void 0,rowDragText:void 0,dragAndDropImageComponent:void 0,dragAndDropImageComponentParams:void 0,fullWidthCellRenderer:void 0,fullWidthCellRendererParams:void 0,embedFullWidthRows:void 0,groupDisplayType:void 0,groupDefaultExpanded:void 0,autoGroupColumnDef:void 0,groupMaintainOrder:void 0,groupSelectsChildren:void 0,groupLockGroupColumns:void 0,groupAggFiltering:void 0,groupTotalRow:void 0,grandTotalRow:void 0,suppressStickyTotalRow:void 0,groupSuppressBlankHeader:void 0,groupSelectsFiltered:void 0,showOpenedGroup:void 0,groupHideParentOfSingleChild:void 0,groupRemoveSingleChildren:void 0,groupRemoveLowestSingleChildren:void 0,groupHideOpenParents:void 0,groupAllowUnbalanced:void 0,rowGroupPanelShow:void 0,groupRowRenderer:void 0,groupRowRendererParams:void 0,treeData:void 0,treeDataChildrenField:void 0,treeDataParentIdField:void 0,rowGroupPanelSuppressSort:void 0,suppressGroupRowsSticky:void 0,groupHierarchyConfig:void 0,pinnedTopRowData:void 0,pinnedBottomRowData:void 0,enableRowPinning:void 0,isRowPinnable:void 0,isRowPinned:void 0,rowModelType:void 0,rowData:void 0,asyncTransactionWaitMillis:void 0,suppressModelUpdateAfterUpdateTransaction:void 0,datasource:void 0,cacheOverflowSize:void 0,infiniteInitialRowCount:void 0,serverSideInitialRowCount:void 0,suppressServerSideFullWidthLoadingRow:void 0,cacheBlockSize:void 0,maxBlocksInCache:void 0,maxConcurrentDatasourceRequests:void 0,blockLoadDebounceMillis:void 0,purgeClosedRowNodes:void 0,serverSideDatasource:void 0,serverSideSortAllLevels:void 0,serverSideEnableClientSideSort:void 0,serverSideOnlyRefreshFilteredGroups:void 0,serverSidePivotResultFieldSeparator:void 0,viewportDatasource:void 0,viewportRowModelPageSize:void 0,viewportRowModelBufferSize:void 0,alwaysShowHorizontalScroll:void 0,alwaysShowVerticalScroll:void 0,debounceVerticalScrollbar:void 0,suppressHorizontalScroll:void 0,suppressScrollOnNewData:void 0,suppressScrollWhenPopupsAreOpen:void 0,suppressAnimationFrame:void 0,suppressMiddleClickScrolls:void 0,suppressPreventDefaultOnMouseWheel:void 0,scrollbarWidth:void 0,rowSelection:void 0,cellSelection:void 0,rowMultiSelectWithClick:void 0,suppressRowDeselection:void 0,suppressRowClickSelection:void 0,suppressCellFocus:void 0,suppressHeaderFocus:void 0,selectionColumnDef:void 0,rowNumbers:void 0,suppressMultiRangeSelection:void 0,enableCellTextSelection:void 0,enableRangeSelection:void 0,enableRangeHandle:void 0,enableFillHandle:void 0,fillHandleDirection:void 0,suppressClearOnFillReduction:void 0,sortingOrder:void 0,accentedSort:void 0,unSortIcon:void 0,suppressMultiSort:void 0,alwaysMultiSort:void 0,multiSortKey:void 0,suppressMaintainUnsortedOrder:void 0,icons:void 0,rowHeight:void 0,rowStyle:void 0,rowClass:void 0,rowClassRules:void 0,suppressRowHoverHighlight:void 0,suppressRowTransform:void 0,columnHoverHighlight:void 0,gridId:void 0,deltaSort:void 0,treeDataDisplayType:void 0,enableGroupEdit:void 0,initialState:void 0,theme:void 0,loadThemeGoogleFonts:void 0,themeCssLayer:void 0,styleNonce:void 0,themeStyleContainer:void 0,getContextMenuItems:void 0,getMainMenuItems:void 0,postProcessPopup:void 0,processUnpinnedColumns:void 0,processCellForClipboard:void 0,processHeaderForClipboard:void 0,processGroupHeaderForClipboard:void 0,processCellFromClipboard:void 0,sendToClipboard:void 0,processDataFromClipboard:void 0,isExternalFilterPresent:void 0,doesExternalFilterPass:void 0,getChartToolbarItems:void 0,createChartContainer:void 0,focusGridInnerElement:void 0,navigateToNextHeader:void 0,tabToNextHeader:void 0,navigateToNextCell:void 0,tabToNextCell:void 0,getLocaleText:void 0,getDocument:void 0,paginationNumberFormatter:void 0,getGroupRowAgg:void 0,isGroupOpenByDefault:void 0,ssrmExpandAllAffectsAllRows:void 0,initialGroupOrderComparator:void 0,processPivotResultColDef:void 0,processPivotResultColGroupDef:void 0,getDataPath:void 0,getChildCount:void 0,getServerSideGroupLevelParams:void 0,isServerSideGroupOpenByDefault:void 0,isApplyServerSideTransaction:void 0,isServerSideGroup:void 0,getServerSideGroupKey:void 0,getBusinessKeyForNode:void 0,getRowId:void 0,resetRowDataOnUpdate:void 0,processRowPostCreate:void 0,isRowSelectable:void 0,isRowMaster:void 0,fillOperation:void 0,postSortRows:void 0,getRowStyle:void 0,getRowClass:void 0,getRowHeight:void 0,isFullWidthRow:void 0,isRowValidDropPosition:void 0,"onColumn-everything-changed":void 0,"onNew-columns-loaded":void 0,"onColumn-pivot-mode-changed":void 0,"onPivot-max-columns-exceeded":void 0,"onColumn-row-group-changed":void 0,"onExpand-or-collapse-all":void 0,"onColumn-pivot-changed":void 0,"onGrid-columns-changed":void 0,"onColumn-value-changed":void 0,"onColumn-moved":void 0,"onColumn-visible":void 0,"onColumn-pinned":void 0,"onColumn-group-opened":void 0,"onColumn-resized":void 0,"onDisplayed-columns-changed":void 0,"onVirtual-columns-changed":void 0,"onColumn-header-mouse-over":void 0,"onColumn-header-mouse-leave":void 0,"onColumn-header-clicked":void 0,"onColumn-header-context-menu":void 0,"onAsync-transactions-flushed":void 0,"onRow-group-opened":void 0,"onRow-data-updated":void 0,"onPinned-row-data-changed":void 0,"onPinned-rows-changed":void 0,"onRange-selection-changed":void 0,"onCell-selection-changed":void 0,"onChart-created":void 0,"onChart-range-selection-changed":void 0,"onChart-options-changed":void 0,"onChart-destroyed":void 0,"onTool-panel-visible-changed":void 0,"onTool-panel-size-changed":void 0,"onModel-updated":void 0,"onCut-start":void 0,"onCut-end":void 0,"onPaste-start":void 0,"onPaste-end":void 0,"onFill-start":void 0,"onFill-end":void 0,"onCell-selection-delete-start":void 0,"onCell-selection-delete-end":void 0,"onRange-delete-start":void 0,"onRange-delete-end":void 0,"onUndo-started":void 0,"onUndo-ended":void 0,"onRedo-started":void 0,"onRedo-ended":void 0,"onCell-clicked":void 0,"onCell-double-clicked":void 0,"onCell-mouse-down":void 0,"onCell-context-menu":void 0,"onCell-value-changed":void 0,"onCell-edit-request":void 0,"onRow-value-changed":void 0,"onHeader-focused":void 0,"onCell-focused":void 0,"onRow-selected":void 0,"onSelection-changed":void 0,"onTooltip-show":void 0,"onTooltip-hide":void 0,"onCell-key-down":void 0,"onCell-mouse-over":void 0,"onCell-mouse-out":void 0,"onFilter-changed":void 0,"onFilter-modified":void 0,"onFilter-ui-changed":void 0,"onFilter-opened":void 0,"onFloating-filter-ui-changed":void 0,"onAdvanced-filter-builder-visible-changed":void 0,"onSort-changed":void 0,"onVirtual-row-removed":void 0,"onRow-clicked":void 0,"onRow-double-clicked":void 0,"onGrid-ready":void 0,"onGrid-pre-destroyed":void 0,"onGrid-size-changed":void 0,"onViewport-changed":void 0,"onFirst-data-rendered":void 0,"onDrag-started":void 0,"onDrag-stopped":void 0,"onDrag-cancelled":void 0,"onRow-editing-started":void 0,"onRow-editing-stopped":void 0,"onCell-editing-started":void 0,"onCell-editing-stopped":void 0,"onBody-scroll":void 0,"onBody-scroll-end":void 0,"onPagination-changed":void 0,"onComponent-state-changed":void 0,"onStore-refreshed":void 0,"onState-updated":void 0,"onColumn-menu-visible-changed":void 0,"onContext-menu-visible-changed":void 0,"onRow-drag-enter":void 0,"onRow-drag-move":void 0,"onRow-drag-leave":void 0,"onRow-drag-end":void 0,"onRow-drag-cancel":void 0,"onFind-changed":void 0,"onRow-resize-started":void 0,"onRow-resize-ended":void 0,"onColumns-reset":void 0,"onBulk-editing-started":void 0,"onBulk-editing-stopped":void 0,"onBatch-editing-started":void 0,"onBatch-editing-stopped":void 0}}const f=(e,t)=>{let o;return()=>{const i=function(){e()};window.clearTimeout(o),o=window.setTimeout(i,t)}};function m(e){return e&&e.constructor&&"class"===e.constructor.toString().substring(0,5)}function v(e){const t=e=>m(e)?(0,s.ux)(e):Array.isArray(e)?e.map(e=>t(e)):(0,s.i9)(e)||(0,s.g8)(e)||(0,s.ju)(e)?t((0,s.ux)(e)):e;return t(e)}const C={ref:"root"},w=(0,i.pM)({__name:"AgGridVue",props:(0,i.zz)((0,i.HF)({gridOptions:{},modules:{},statusBar:{},sideBar:{type:[Object,String,Array,Boolean,null]},suppressContextMenu:{type:Boolean},preventDefaultOnContextMenu:{type:Boolean},allowContextMenuWithControlKey:{type:Boolean},columnMenu:{},suppressMenuHide:{type:Boolean},enableBrowserTooltips:{type:Boolean},tooltipTrigger:{},tooltipShowDelay:{},tooltipHideDelay:{},tooltipMouseTrack:{type:Boolean},tooltipShowMode:{},tooltipInteraction:{type:Boolean},popupParent:{},copyHeadersToClipboard:{type:Boolean},copyGroupHeadersToClipboard:{type:Boolean},clipboardDelimiter:{},suppressCopyRowsToClipboard:{type:Boolean},suppressCopySingleCellRanges:{type:Boolean},suppressLastEmptyLineOnPaste:{type:Boolean},suppressClipboardPaste:{type:Boolean},suppressClipboardApi:{type:Boolean},suppressCutToClipboard:{type:Boolean},columnDefs:{},defaultColDef:{},defaultColGroupDef:{},columnTypes:{},dataTypeDefinitions:{},maintainColumnOrder:{type:Boolean},enableStrictPivotColumnOrder:{type:Boolean},suppressFieldDotNotation:{type:Boolean},headerHeight:{},groupHeaderHeight:{},floatingFiltersHeight:{},pivotHeaderHeight:{},pivotGroupHeaderHeight:{},hidePaddedHeaderRows:{type:Boolean},allowDragFromColumnsToolPanel:{type:Boolean},suppressMovableColumns:{type:Boolean},suppressColumnMoveAnimation:{type:Boolean},suppressMoveWhenColumnDragging:{type:Boolean},suppressDragLeaveHidesColumns:{type:Boolean},suppressGroupChangesColumnVisibility:{type:[Boolean,String]},suppressMakeColumnVisibleAfterUnGroup:{type:Boolean},suppressRowGroupHidesColumns:{type:Boolean},colResizeDefault:{},suppressAutoSize:{type:Boolean},autoSizePadding:{},skipHeaderOnAutoSize:{type:Boolean},autoSizeStrategy:{},animateColumnResizing:{type:Boolean},components:{},editType:{},suppressStartEditOnTab:{type:Boolean},getFullRowEditValidationErrors:{type:Function},invalidEditValueMode:{},singleClickEdit:{type:Boolean},suppressClickEdit:{type:Boolean},readOnlyEdit:{type:Boolean},stopEditingWhenCellsLoseFocus:{type:Boolean},enterNavigatesVertically:{type:Boolean},enterNavigatesVerticallyAfterEdit:{type:Boolean},enableCellEditingOnBackspace:{type:Boolean},undoRedoCellEditing:{type:Boolean},undoRedoCellEditingLimit:{},defaultCsvExportParams:{},suppressCsvExport:{type:Boolean},defaultExcelExportParams:{},suppressExcelExport:{type:Boolean},excelStyles:{},findSearchValue:{},findOptions:{},quickFilterText:{},cacheQuickFilter:{type:Boolean},includeHiddenColumnsInQuickFilter:{type:Boolean},quickFilterParser:{type:Function},quickFilterMatcher:{type:Function},applyQuickFilterBeforePivotOrAgg:{type:Boolean},excludeChildrenWhenTreeDataFiltering:{type:Boolean},enableAdvancedFilter:{type:Boolean},alwaysPassFilter:{type:Function},includeHiddenColumnsInAdvancedFilter:{type:Boolean},advancedFilterParent:{},advancedFilterBuilderParams:{},advancedFilterParams:{},suppressAdvancedFilterEval:{type:Boolean},suppressSetFilterByDefault:{type:Boolean},enableFilterHandlers:{type:Boolean},filterHandlers:{},enableCharts:{type:Boolean},chartThemes:{},customChartThemes:{},chartThemeOverrides:{},chartToolPanelsDef:{},chartMenuItems:{type:[Array,Function]},loadingCellRenderer:{},loadingCellRendererParams:{},loadingCellRendererSelector:{type:Function},localeText:{},masterDetail:{type:Boolean},keepDetailRows:{type:Boolean},keepDetailRowsCount:{},detailCellRenderer:{},detailCellRendererParams:{},detailRowHeight:{},detailRowAutoHeight:{type:Boolean},context:{},alignedGrids:{type:[Array,Function]},tabIndex:{},rowBuffer:{},valueCache:{type:Boolean},valueCacheNeverExpires:{type:Boolean},enableCellExpressions:{type:Boolean},suppressTouch:{type:Boolean},suppressFocusAfterRefresh:{type:Boolean},suppressBrowserResizeObserver:{type:Boolean},suppressPropertyNamesCheck:{type:Boolean},suppressChangeDetection:{type:Boolean},debug:{type:Boolean},loading:{type:Boolean},overlayLoadingTemplate:{},loadingOverlayComponent:{},loadingOverlayComponentParams:{},suppressLoadingOverlay:{type:Boolean},overlayNoRowsTemplate:{},noRowsOverlayComponent:{},noRowsOverlayComponentParams:{},suppressNoRowsOverlay:{type:Boolean},suppressOverlays:{},overlayComponent:{},overlayComponentParams:{},overlayComponentSelector:{type:Function},activeOverlay:{},activeOverlayParams:{},pagination:{type:Boolean},paginationPageSize:{},paginationPageSizeSelector:{type:[Array,Boolean]},paginationAutoPageSize:{type:Boolean},paginateChildRows:{type:Boolean},suppressPaginationPanel:{type:Boolean},pivotMode:{type:Boolean},pivotPanelShow:{},pivotMaxGeneratedColumns:{},pivotDefaultExpanded:{},pivotColumnGroupTotals:{},pivotRowTotals:{},pivotSuppressAutoColumn:{type:Boolean},suppressExpandablePivotGroups:{type:Boolean},functionsReadOnly:{type:Boolean},aggFuncs:{},formulaDataSource:{},formulaFuncs:{},suppressAggFuncInHeader:{type:Boolean},alwaysAggregateAtRootLevel:{type:Boolean},aggregateOnlyChangedColumns:{type:Boolean},suppressAggFilteredOnly:{type:Boolean},removePivotHeaderRowWhenSingleValueColumn:{type:Boolean},animateRows:{type:Boolean},cellFlashDuration:{},cellFadeDuration:{},allowShowChangeAfterFilter:{type:Boolean},domLayout:{},ensureDomOrder:{type:Boolean},enableCellSpan:{type:Boolean},enableRtl:{type:Boolean},suppressColumnVirtualisation:{type:Boolean},suppressMaxRenderedRowRestriction:{type:Boolean},suppressRowVirtualisation:{type:Boolean},rowDragManaged:{type:Boolean},refreshAfterGroupEdit:{type:Boolean},rowDragInsertDelay:{},suppressRowDrag:{type:Boolean},suppressMoveWhenRowDragging:{type:Boolean},rowDragEntireRow:{type:Boolean},rowDragMultiRow:{type:Boolean},rowDragText:{type:Function},dragAndDropImageComponent:{},dragAndDropImageComponentParams:{},fullWidthCellRenderer:{},fullWidthCellRendererParams:{},embedFullWidthRows:{type:Boolean},groupDisplayType:{},groupDefaultExpanded:{},autoGroupColumnDef:{},groupMaintainOrder:{type:Boolean},groupSelectsChildren:{type:Boolean},groupLockGroupColumns:{},groupAggFiltering:{type:[Boolean,Function]},groupTotalRow:{type:[String,Function]},grandTotalRow:{},suppressStickyTotalRow:{type:[Boolean,String]},groupSuppressBlankHeader:{type:Boolean},groupSelectsFiltered:{type:Boolean},showOpenedGroup:{type:Boolean},groupHideParentOfSingleChild:{type:[Boolean,String]},groupRemoveSingleChildren:{type:Boolean},groupRemoveLowestSingleChildren:{type:Boolean},groupHideOpenParents:{type:Boolean},groupAllowUnbalanced:{type:Boolean},rowGroupPanelShow:{},groupRowRenderer:{},groupRowRendererParams:{},treeData:{type:Boolean},treeDataChildrenField:{},treeDataParentIdField:{},rowGroupPanelSuppressSort:{type:Boolean},suppressGroupRowsSticky:{type:Boolean},groupHierarchyConfig:{},pinnedTopRowData:{},pinnedBottomRowData:{},enableRowPinning:{type:[Boolean,String]},isRowPinnable:{type:Function},isRowPinned:{type:Function},rowModelType:{},rowData:{},asyncTransactionWaitMillis:{},suppressModelUpdateAfterUpdateTransaction:{type:Boolean},datasource:{},cacheOverflowSize:{},infiniteInitialRowCount:{},serverSideInitialRowCount:{},suppressServerSideFullWidthLoadingRow:{type:Boolean},cacheBlockSize:{},maxBlocksInCache:{},maxConcurrentDatasourceRequests:{},blockLoadDebounceMillis:{},purgeClosedRowNodes:{type:Boolean},serverSideDatasource:{},serverSideSortAllLevels:{type:Boolean},serverSideEnableClientSideSort:{type:Boolean},serverSideOnlyRefreshFilteredGroups:{type:Boolean},serverSidePivotResultFieldSeparator:{},viewportDatasource:{},viewportRowModelPageSize:{},viewportRowModelBufferSize:{},alwaysShowHorizontalScroll:{type:Boolean},alwaysShowVerticalScroll:{type:Boolean},debounceVerticalScrollbar:{type:Boolean},suppressHorizontalScroll:{type:Boolean},suppressScrollOnNewData:{type:Boolean},suppressScrollWhenPopupsAreOpen:{type:Boolean},suppressAnimationFrame:{type:Boolean},suppressMiddleClickScrolls:{type:Boolean},suppressPreventDefaultOnMouseWheel:{type:Boolean},scrollbarWidth:{},rowSelection:{},cellSelection:{type:[Boolean,Object]},rowMultiSelectWithClick:{type:Boolean},suppressRowDeselection:{type:Boolean},suppressRowClickSelection:{type:Boolean},suppressCellFocus:{type:Boolean},suppressHeaderFocus:{type:Boolean},selectionColumnDef:{},rowNumbers:{type:[Boolean,Object]},suppressMultiRangeSelection:{type:Boolean},enableCellTextSelection:{type:Boolean},enableRangeSelection:{type:Boolean},enableRangeHandle:{type:Boolean},enableFillHandle:{type:Boolean},fillHandleDirection:{},suppressClearOnFillReduction:{type:Boolean},sortingOrder:{},accentedSort:{type:Boolean},unSortIcon:{type:Boolean},suppressMultiSort:{type:Boolean},alwaysMultiSort:{type:Boolean},multiSortKey:{},suppressMaintainUnsortedOrder:{type:Boolean},icons:{},rowHeight:{},rowStyle:{},rowClass:{},rowClassRules:{},suppressRowHoverHighlight:{type:Boolean},suppressRowTransform:{type:Boolean},columnHoverHighlight:{type:Boolean},gridId:{},deltaSort:{type:Boolean},treeDataDisplayType:{},enableGroupEdit:{type:Boolean},initialState:{},theme:{},loadThemeGoogleFonts:{type:Boolean},themeCssLayer:{},styleNonce:{},themeStyleContainer:{type:Function},getContextMenuItems:{type:Function},getMainMenuItems:{type:Function},postProcessPopup:{type:Function},processUnpinnedColumns:{type:Function},processCellForClipboard:{type:Function},processHeaderForClipboard:{type:Function},processGroupHeaderForClipboard:{type:Function},processCellFromClipboard:{type:Function},sendToClipboard:{type:Function},processDataFromClipboard:{type:Function},isExternalFilterPresent:{type:Function},doesExternalFilterPass:{type:Function},getChartToolbarItems:{type:Function},createChartContainer:{type:Function},focusGridInnerElement:{type:Function},navigateToNextHeader:{type:Function},tabToNextHeader:{type:Function},navigateToNextCell:{type:Function},tabToNextCell:{type:Function},getLocaleText:{type:Function},getDocument:{type:Function},paginationNumberFormatter:{type:Function},getGroupRowAgg:{type:Function},isGroupOpenByDefault:{type:Function},ssrmExpandAllAffectsAllRows:{type:Boolean},initialGroupOrderComparator:{type:Function},processPivotResultColDef:{type:Function},processPivotResultColGroupDef:{type:Function},getDataPath:{type:Function},getChildCount:{type:Function},getServerSideGroupLevelParams:{type:Function},isServerSideGroupOpenByDefault:{type:Function},isApplyServerSideTransaction:{type:Function},isServerSideGroup:{type:Function},getServerSideGroupKey:{type:Function},getBusinessKeyForNode:{type:Function},getRowId:{type:Function},resetRowDataOnUpdate:{type:Boolean},processRowPostCreate:{type:Function},isRowSelectable:{type:Function},isRowMaster:{type:Function},fillOperation:{type:Function},postSortRows:{type:Function},getRowStyle:{type:Function},getRowClass:{type:Function},getRowHeight:{type:Function},isFullWidthRow:{type:Function},isRowValidDropPosition:{type:Function},"onTool-panel-visible-changed":{},"onTool-panel-size-changed":{},"onColumn-menu-visible-changed":{},"onContext-menu-visible-changed":{},"onCut-start":{},"onCut-end":{},"onPaste-start":{},"onPaste-end":{},"onColumn-visible":{},"onColumn-pinned":{},"onColumn-resized":{},"onColumn-moved":{},"onColumn-value-changed":{},"onColumn-pivot-mode-changed":{},"onColumn-pivot-changed":{},"onColumn-group-opened":{},"onNew-columns-loaded":{},"onGrid-columns-changed":{},"onDisplayed-columns-changed":{},"onVirtual-columns-changed":{},"onColumn-everything-changed":{},"onColumns-reset":{},"onColumn-header-mouse-over":{},"onColumn-header-mouse-leave":{},"onColumn-header-clicked":{},"onColumn-header-context-menu":{},"onComponent-state-changed":{},"onCell-value-changed":{},"onCell-edit-request":{},"onRow-value-changed":{},"onCell-editing-started":{},"onCell-editing-stopped":{},"onRow-editing-started":{},"onRow-editing-stopped":{},"onBulk-editing-started":{},"onBulk-editing-stopped":{},"onBatch-editing-started":{},"onBatch-editing-stopped":{},"onUndo-started":{},"onUndo-ended":{},"onRedo-started":{},"onRedo-ended":{},"onCell-selection-delete-start":{},"onCell-selection-delete-end":{},"onRange-delete-start":{},"onRange-delete-end":{},"onFill-start":{},"onFill-end":{},"onFilter-opened":{},"onFilter-changed":{},"onFilter-modified":{},"onFilter-ui-changed":{},"onFloating-filter-ui-changed":{},"onAdvanced-filter-builder-visible-changed":{},"onFind-changed":{},"onChart-created":{},"onChart-range-selection-changed":{},"onChart-options-changed":{},"onChart-destroyed":{},"onCell-key-down":{},"onGrid-ready":{},"onGrid-pre-destroyed":{},"onFirst-data-rendered":{},"onGrid-size-changed":{},"onModel-updated":{},"onVirtual-row-removed":{},"onViewport-changed":{},"onBody-scroll":{},"onBody-scroll-end":{},"onDrag-started":{},"onDrag-stopped":{},"onDrag-cancelled":{},"onState-updated":{},"onPagination-changed":{},"onRow-drag-enter":{},"onRow-drag-move":{},"onRow-drag-leave":{},"onRow-drag-end":{},"onRow-drag-cancel":{},"onRow-resize-started":{},"onRow-resize-ended":{},"onColumn-row-group-changed":{},"onRow-group-opened":{},"onExpand-or-collapse-all":{},"onPivot-max-columns-exceeded":{},"onPinned-row-data-changed":{},"onPinned-rows-changed":{},"onRow-data-updated":{},"onAsync-transactions-flushed":{},"onStore-refreshed":{},"onHeader-focused":{},"onCell-clicked":{},"onCell-double-clicked":{},"onCell-focused":{},"onCell-mouse-over":{},"onCell-mouse-out":{},"onCell-mouse-down":{},"onRow-clicked":{},"onRow-double-clicked":{},"onRow-selected":{},"onSelection-changed":{},"onCell-context-menu":{},"onRange-selection-changed":{},"onCell-selection-changed":{},"onTooltip-show":{},"onTooltip-hide":{},"onSort-changed":{}},p()),{modelValue:{},modelModifiers:{}}),emits:(0,i.zz)(["update:modelValue"],["update:modelValue"]),setup(e,{expose:t,emit:o}){const n=e,a=(0,i.rk)("root"),l=(0,s.KR)(void 0),d=(0,s.KR)(!1),c=(0,s.KR)(!1),h=(0,s.KR)(!1),p=(0,s.KR)({}),m=(0,s.KR)(null),w=(0,s.QW)(n);(0,r._GET_ALL_GRID_OPTIONS)().filter(e=>"gridOptions"!=e).forEach(e=>{(0,i.wB)(()=>w[e],(t,o)=>{("rowData"===e&&!R.value||"rowData"!==e)&&A(e,t),R.value=!1},{deep:!0})});const b=new Set(["rowDataUpdated","cellValueChanged","rowValueChanged"]),y=(0,i.fn)(e,"modelValue"),S=(0,s.KR)(!1),R=(0,s.KR)(!1),x=o;(0,i.wB)(y,(e,t)=>{d.value&&(R.value||(S.value=!0,A("rowData",v(e),v(t))),R.value=!1)},{deep:!0});const E=f(()=>{R.value=!0,x("update:modelValue",k())},10),F=(0,i.nI)(),P=e=>{var t,o;h.value&&b.has(e)&&null!=(o=null==(t=null==F?void 0:F.vnode)?void 0:t.props)&&o["onUpdate:modelValue"]&&E()},D=()=>y.value||n.rowData||n.gridOptions.rowData,k=()=>{const e=[];return null==l||l.value.forEachLeafNode(t=>{e.push(t.data)}),e},M=e=>t=>{if(c.value)return;"gridReady"===t&&(h.value=!0);const o=r.ALWAYS_SYNC_GLOBAL_EVENTS.has(t);o&&!e||!o&&e||b.has(t)&&(S.value||P(t),S.value=!1)},A=(e,t,o)=>{if(d.value){let o=t.value||t;"rowData"===e&&null!=o&&(o=v(o)),p.value[e]=o,null==m.value&&(m.value=window.setTimeout(()=>{m.value=null,(0,r._processOnChange)(p.value,l.value),p.value={}},0))}},T=()=>Object.create((0,i.nI)().provides);return(0,i.sV)(()=>{(0,r._registerModule)(r.RowApiModule,void 0,!0);const e=new u((0,i.nI)(),T()),t={globalListener:M(),globalSyncListener:M(!0),frameworkOverrides:new g((0,i.nI)()),providedBeanInstances:{frameworkCompWrapper:e},modules:n.modules},o=(0,s.IG)((0,r._combineAttributesAndGridOptions)(v(n.gridOptions),n,[...(0,r._GET_ALL_GRID_OPTIONS)(),...Object.values(r._PUBLIC_EVENT_HANDLERS_MAP)])),c=D();void 0!==c&&(o.rowData=v(c)),l.value=(0,r.createGrid)(a.value,o,t),d.value=!0}),(0,i.hi)(()=>{var e;d.value&&(null==(e=null==l?void 0:l.value)||e.destroy(),c.value=!0)}),t({api:l}),(e,t)=>((0,i.uX)(),(0,i.CE)("div",C,null,512))}})},48934:function(e,t,o){o.d(t,{A:function(){return d}});var i=o(15077),n=o(88484),s=o(53234),r=o(96207);function a(e){return["html","body","#document"].indexOf((0,s.A)(e))>=0?e.ownerDocument.body:(0,r.sb)(e)&&(0,n.A)(e)?e:a((0,i.A)(e))}var l=o(88573);function d(e,t){var o;void 0===t&&(t=[]);var s=a(e),r=s===(null==(o=e.ownerDocument)?void 0:o.body),c=(0,l.A)(s),u=r?[c].concat(c.visualViewport||[],(0,n.A)(s)?s:[]):s,h=t.concat(u);return r?h:h.concat(d((0,i.A)(u)))}},49173:function(e,t,o){var i=o(76817),n=(o(39880),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-2455233f"]]);t.A=s},49685:function(e,t,o){var i=o(67227),n=o(14291),s=o(89035),r=o(93623),a=o(10582),l=o(18985),d=Object.defineProperty,c=Object.defineProperties,u=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,f=(e,t,o)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,m=(e,t)=>{for(var o in t||(t={}))g.call(t,o)&&f(e,o,t[o]);if(h)for(var o of h(t))p.call(t,o)&&f(e,o,t[o]);return e},v=(e,t)=>c(e,u(t));t.A=(0,i.pM)({__name:"InputNumber",props:v(m(m(m({},a.vh),a.Ft),a.o0),{autofocus:{default:!1},step:{default:"auto"},min:{default:null},max:{default:null},allowNull:{default:!0},defaultValue:{default:0}}),emits:["update:modelValue","blur"],setup(e,{emit:t}){const o=e,d=(0,i.rk)("refInput"),c=(0,n.KR)({input:""}),u=t,{curReadonly:h,curClearable:g}=(0,a.f1)(o),{curInputWidth:p}=(0,a.pS)(o),f=e=>{const t=e.match(r.ap);return null===t?"":t[0]},m=e=>{const t=parseFloat(e);return isNaN(t)?0:t},v=()=>{var e;if(""===o.modelValue)c.value.input="";else{const t=null!=(e=o.modelValue)?e:"";c.value.input=m(f(t.toString())),u("update:modelValue",c.value.input)}};(0,i.wB)(()=>o.modelValue,v,{immediate:!0});const C=e=>{var t;const o=f(e);null==(t=d.value)||t.setValue(o),c.value.input=o},w=e=>{u("update:modelValue",e),u("blur",e)},b=()=>{var e;if(""===c.value.input){if(!0===o.allowNull)return w("");c.value.input=o.defaultValue}let t=m(c.value.input.toString());if("auto"!==o.step){const e=Math.round(t/o.step);t=e*o.step}null!==o.max&&(t=Math.min(o.max,t)),null!==o.min&&(t=Math.max(o.min,t)),null==(e=d.value)||e.setValue(t.toString()),w(t)},y=()=>{u("update:modelValue","")};return(t,o)=>((0,i.uX)(),(0,i.CE)("div",{class:"vyr-input-number",style:(0,s.Tr)(`width:${(0,n.R1)(p)};`)},[(0,i.bF)(l.A,{ref_key:"refInput",ref:d,"model-value":c.value.input,placeholder:t.placeholder,autofocus:e.autofocus,readonly:(0,n.R1)(h),clearable:(0,n.R1)(g),width:(0,n.R1)(p),"onUpdate:modelValue":C,onBlur:b,onClear:y},null,8,["model-value","placeholder","autofocus","readonly","clearable","width"])],4))}})},49720:function(e,t,o){o.d(t,{DD:function(){return m},GM:function(){return F},Mn:function(){return i},OM:function(){return l},Ol:function(){return f},R9:function(){return h},WY:function(){return u},_N:function(){return c},ir:function(){return p},kb:function(){return r},ni:function(){return d},pG:function(){return s},qZ:function(){return a},sQ:function(){return n},xf:function(){return g}});var i="top",n="bottom",s="right",r="left",a="auto",l=[i,n,s,r],d="start",c="end",u="clippingParents",h="viewport",g="popper",p="reference",f=l.reduce(function(e,t){return e.concat([t+"-"+d,t+"-"+c])},[]),m=[].concat(l,[a]).reduce(function(e,t){return e.concat([t,t+"-"+d,t+"-"+c])},[]),v="beforeRead",C="read",w="afterRead",b="beforeMain",y="main",S="afterMain",R="beforeWrite",x="write",E="afterWrite",F=[v,C,w,b,y,S,R,x,E]},50428:function(e,t,o){o.d(t,{NO:function(){return r},QD:function(){return s},T4:function(){return a}});var i=o(67227);const n=e=>{const t=e.split(","),o=[];for(const i of t){const e=parseInt(i);isNaN(e)||o.push(e)}if(0===o.length)return[0,0,0,0];if(1===o.length){const e=o[0];return[e,e,e,e]}if(2===o.length){const e=o[0],t=o[1];return[e,t,e,t]}if(3===o.length){const e=o[1];return[o[0],e,o[2],e]}return[o[0],o[1],o[2],o[3]]},s=(e,t="padding")=>`${t}:${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px;`,r=e=>"string"===typeof e?n(e):[e,e,e,e],a=e=>{const t=(0,i.EW)(()=>s(r(e.margin))),o=(0,i.EW)(()=>s(r(e.padding)));return{marginStyle:t,paddingStyle:o}}},50507:function(e,t,o){var i=o(67227),n=o(77409),s=o(14291),r=o(89035),a=o(93623),l=o(29255),d=o(32946);const c={class:"notify-icon"},u={class:"notify-body"};t.A=(0,i.pM)({__name:"Notify",setup(e,{expose:t}){const o=(0,s.KR)(new a.G8("")),h=(0,i.EW)(()=>{const e=a.G8.collection.value.indexOf(o.value);return-1===e?0:e}),g=()=>{l.lv.remove(a.G8.collection.value,o.value)},p=()=>{setTimeout(g,d.S.config.animationTime.value),o.value.visible=!1},f=e=>{a.G8.collection.value.push(e),o.value=e,o.value.visible=!0,e.duration!==1/0&&setTimeout(p,e.duration)};return t({show:f}),(e,t)=>((0,i.uX)(),(0,i.Wv)(i.Im,{to:"body"},[(0,i.bF)(n.eB,{name:"vyr-notify-transform",onAfterLeave:o.value.close},{default:(0,i.k6)(()=>[o.value.visible?((0,i.uX)(),(0,i.CE)("div",{key:0,class:(0,r.C4)(["vyr-notify",`${o.value.type}`]),style:(0,r.Tr)(`top:${20+(0,s.R1)(a.G8).offset+50*h.value}px;`)},[(0,i.Lk)("div",c,[(0,i.Lk)("i",{class:(0,r.C4)(["vyrfont",`vyr-${o.value.icon}`])},null,2)]),(0,i.Lk)("div",u,(0,r.v_)(o.value.message),1)],6)):(0,i.Q3)("",!0)]),_:1},8,["onAfterLeave"])]))}})},50552:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(50817)},50817:function(e,t,o){var i=o(67227),n=o(77409),s=o(89035),r=o(14291),a=o(2858),l=o(29255),d=o(67698),c=Object.defineProperty,u=Object.defineProperties,h=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,m=(e,t,o)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,v=(e,t)=>{for(var o in t||(t={}))p.call(t,o)&&m(e,o,t[o]);if(g)for(var o of g(t))f.call(t,o)&&m(e,o,t[o]);return e},C=(e,t)=>u(e,h(t));const w={class:"vyr-picker-border"},b={class:"color-picker"};t.A=(0,i.pM)(C(v({},{inheritAttrs:!1}),{__name:"ColorPicker",props:{modelValue:{default:""},readonly:{default:null},width:{default:"auto"},opacity:{default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const o=e,c=(0,a.Dz)(),u=(0,i.EW)(()=>null===o.readonly?c.value.readonly:o.readonly),h=t,g=(0,r.KR)({color:"",event:new MouseEvent(""),width:280,height:180,panel:{top:0,left:0,saturation:0,value:0,started:!1,xStart:0,xEnd:0,yStart:0,yEnd:0},hue:{left:0,value:0,started:!1,start:0,end:0},opacity:1,next:!1}),p=()=>{if(!o.modelValue||o.modelValue===g.value.color)return;g.value.color=o.modelValue;const e=new l.Q1(o.modelValue).toHsv();g.value.hue.left=Math.round(e.h/360*g.value.width),g.value.hue.value=e.h,g.value.panel.saturation=e.s,g.value.panel.left=Math.round(e.s*g.value.width),g.value.panel.value=e.v,g.value.panel.top=Math.round((1-e.v)*g.value.height)};(0,i.wB)(()=>o.modelValue,p,{immediate:!0});const f=()=>{const e=new l.Q1({h:g.value.hue.value,s:g.value.panel.saturation,v:g.value.panel.value}).toHexString();g.value.color=e,h("update:modelValue",e)},m=e=>{!0!==u.value&&(v(e),C(e))},v=e=>{if(!0===u.value)return;g.value.hue.started=!1,g.value.panel.started=!0;const t=e.target.parentElement,o=null==t?void 0:t.getBoundingClientRect();g.value.panel.xStart=o.left,g.value.panel.xEnd=o.right,g.value.panel.yStart=o.top,g.value.panel.yEnd=o.bottom},C=e=>{let t=Math.min(e.clientX,g.value.panel.xEnd);t=Math.max(g.value.panel.xStart,t),g.value.panel.left=t-g.value.panel.xStart;let o=Math.min(e.clientY,g.value.panel.yEnd);o=Math.max(g.value.panel.yStart,o),g.value.panel.top=o-g.value.panel.yStart,y()},y=()=>{g.value.panel.saturation=g.value.panel.left/g.value.width,g.value.panel.value=1-g.value.panel.top/g.value.height,f()},S=e=>{!0!==u.value&&(R(e),x(e))},R=e=>{if(!0===u.value)return;g.value.panel.started=!1,g.value.hue.started=!0;const t=e.target.parentElement,o=null==t?void 0:t.getBoundingClientRect();g.value.hue.start=o.left,g.value.hue.end=o.right},x=e=>{let t=Math.min(e.clientX,g.value.hue.end);t=Math.max(g.value.hue.start,t),g.value.hue.left=t-g.value.hue.start,E()},E=()=>{g.value.hue.value=Math.round(g.value.hue.left/g.value.width*360),f()},F=e=>{g.value.panel.started=!1,g.value.hue.started=!1},P=e=>{g.value.event=e,!0!==g.value.next&&(g.value.next=!0,requestAnimationFrame(()=>{!0===g.value.hue.started&&x(g.value.event),!0===g.value.panel.started&&C(g.value.event),g.value.next=!1}))};window.addEventListener("mousemove",P),window.addEventListener("mouseup",F),window.addEventListener("mouseleave",F);const D=()=>{window.removeEventListener("mousemove",P),window.removeEventListener("mouseup",F),window.removeEventListener("mouseleave",F)};return(0,i.xo)(D),(t,o)=>((0,i.uX)(),(0,i.Wv)(d.A,{"popover-class":"color-picker-popover",trigger:"click",disabled:u.value},{trigger:(0,i.k6)(()=>[(0,i.Lk)("div",(0,i.v6)({class:["vyr-color-picker",[e.width]]},t.$attrs),[(0,i.Lk)("div",w,[(0,i.Lk)("div",{class:"color-value",style:(0,s.Tr)(g.value.color?`background:${g.value.color};`:"")},null,4)])],16)]),default:(0,i.k6)(()=>[(0,i.Lk)("div",b,[(0,i.Lk)("div",{class:"picker-wrapper",style:(0,s.Tr)(`width:${g.value.width}px;`)},[(0,i.Lk)("div",{class:(0,s.C4)(["picker-panel",{active:g.value.panel.started}]),style:(0,s.Tr)(`height:${g.value.height}px;background:hsl(${g.value.hue.value},100%,50%);`),onMousedown:(0,n.D$)(m,["prevent"])},[o[0]||(o[0]=(0,i.Lk)("div",{class:"picker-panel-white"},null,-1)),o[1]||(o[1]=(0,i.Lk)("div",{class:"picker-panel-black"},null,-1)),(0,i.Lk)("div",{class:"picker-cursor",style:(0,s.Tr)(`top:${g.value.panel.top}px;left:${g.value.panel.left}px;`),onMousedown:v},null,36)],38),(0,i.Lk)("div",{class:(0,s.C4)(["picker-bar",{active:g.value.hue.started}]),onMousedown:(0,n.D$)(S,["prevent"])},[(0,i.Lk)("div",{class:"picker-hue",style:(0,s.Tr)(`left:${g.value.hue.left}px;`),onMousedown:R},null,36)],34)],4)])]),_:1},8,["disabled"]))}}))},51669:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(12100)},53227:function(e,t,o){o(60678)},53234:function(e,t,o){function i(e){return e?(e.nodeName||"").toLowerCase():null}o.d(t,{A:function(){return i}})},53374:function(e,t,o){o.d(t,{G:function(){return l}});var i=o(14291),n=Object.defineProperty,s=(e,t,o)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,r=(e,t,o)=>s(e,"symbol"!==typeof t?t+"":t,o);const a=class e{constructor(t,o="danger",i=3e3,n=()=>{}){r(this,"type"),r(this,"message"),r(this,"duration"),r(this,"icon"),r(this,"close"),r(this,"visible",!1),this.type=o,this.message=t,this.duration=i,this.icon=e.map[o],this.close=n}};r(a,"map",{success:"success",warning:"warning",danger:"shanchu"}),r(a,"collection",(0,i.KR)([])),r(a,"offset",0);let l=a},53391:function(e,t,o){var i=o(67227),n=o(14291),s=o(89035),r=o(10582),a=o(50428),l=o(16878),d=o(73354),c=o(7135);t.A=(0,i.pM)({__name:"Scroll",props:r.It,emits:["resize"],setup(e,{emit:t}){const o=e,{marginStyle:r,paddingStyle:u}=(0,a.T4)(o),h=t,g=(0,i.rk)("refWrapper"),p=(0,i.rk)("refBody"),f=(0,n.KR)({hide:!0,top:0,height:0}),m={wrapper:0,body:0},v=()=>{g.value&&(f.value.top=g.value.scrollTop/m.body*100)},C=()=>{var e,t,o,i;m.wrapper=Math.floor(null!=(t=null==(e=g.value)?void 0:e.getBoundingClientRect().height)?t:0),m.body=null!=(i=null==(o=p.value)?void 0:o.scrollHeight)?i:0,f.value.height=m.wrapper/m.body*100,f.value.hide=!(m.body-m.wrapper>1),v(),h("resize")},w=()=>{if(!p.value||!g.value)throw new Error(c.B.get("scroll.listen.error"));d.P.listen(g.value,C),d.P.listen(p.value,C)},b=()=>{d.P.unlisten(g.value),d.P.unlisten(p.value)};(0,i.sV)(w),(0,i.xo)(b);const{opacity:y,layout:S,move:R,leave:x}=(0,l.L)(v,g);return(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:"vyr-scroll",style:(0,s.Tr)(`${(0,n.R1)(r)}`),onWheelPassive:t[0]||(t[0]=(...e)=>(0,n.R1)(S)&&(0,n.R1)(S)(...e)),onMousemove:t[1]||(t[1]=(...e)=>(0,n.R1)(R)&&(0,n.R1)(R)(...e)),onMouseleave:t[2]||(t[2]=(...e)=>(0,n.R1)(x)&&(0,n.R1)(x)(...e))},[(0,i.Lk)("div",{class:"scroll-wrapper scrollbar",ref_key:"refWrapper",ref:g},[(0,i.Lk)("div",{class:"scroll-body",style:(0,s.Tr)(`${(0,n.R1)(u)}`),ref_key:"refBody",ref:p},[(0,i.RG)(e.$slots,"default")],4)],512),(0,i.Lk)("div",{class:"scroll-bar",style:(0,s.Tr)(`display:${f.value.hide?"none":"display"};opacity:${(0,n.R1)(y)};top:${f.value.top}%;height:${f.value.height}%;`)},null,4)],36))}})},53753:function(e,t,o){var i=o(67227),n=o(89035);const s={class:"divider"},r={class:"line"},a={class:"text"};t.A=(0,i.pM)({__name:"Divider",props:{text:{}},setup(e){return(t,o)=>((0,i.uX)(),(0,i.CE)("div",s,[(0,i.Lk)("div",r,[(0,i.Lk)("div",a,(0,n.v_)(e.text),1)])]))}})},54340:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(53753)},54496:function(e,t,o){var i=o(67227),n=o(14291),s=o(89035),r=o(93623),a=o(7135),l=o(8715),d=o(62687),c=o(18985),u=o(33947),h=o(62263),g=Object.defineProperty,p=Object.defineProperties,f=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,w=(e,t,o)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,b=(e,t)=>{for(var o in t||(t={}))v.call(t,o)&&w(e,o,t[o]);if(m)for(var o of m(t))C.call(t,o)&&w(e,o,t[o]);return e},y=(e,t)=>p(e,f(t));const S={key:0,class:"vyrfont vyr-warning tips-type"},R={key:0,class:"message"},x={key:1,class:"content"},E={key:0,class:"content"},F={key:1,class:"content"},P={key:2,class:"content"};t.A=(0,i.pM)(y(b({},{inheritAttrs:!1}),{__name:"Confirm",setup(e){var t;const o=(0,r.V2)(),g=(0,n.KR)({checked:null!=(t=o.value.value)?t:"",flag:!1}),p=()=>{g.value.flag=!0,o.value.visible=!1},f=()=>{g.value.flag=!1,o.value.visible=!1},m=()=>{var e;o.value.value=null!=(e=g.value.checked)?e:"",o.value.close(g.value.flag)};return(e,t)=>((0,i.uX)(),(0,i.Wv)(l.A,{modelValue:(0,n.R1)(o).visible,"onUpdate:modelValue":t[3]||(t[3]=e=>(0,n.R1)(o).visible=e),mask:!0,draggable:!1,width:"450px",maxHeight:"240px",onClose:m},{title:(0,i.k6)(()=>["warning"===(0,n.R1)(o).type?((0,i.uX)(),(0,i.CE)("i",S)):(0,i.Q3)("",!0),(0,i.eW)((0,s.v_)((0,n.R1)(o).title),1)]),footer:(0,i.k6)(()=>[(0,i.bF)(d.A,{onClick:p},{default:(0,i.k6)(()=>[(0,i.eW)((0,s.v_)((0,n.R1)(a.B).get("confirm.button.submit")),1)]),_:1}),(0,i.bF)(d.A,{onClick:f},{default:(0,i.k6)(()=>[(0,i.eW)((0,s.v_)((0,n.R1)(a.B).get("confirm.button.cancel")),1)]),_:1})]),default:(0,i.k6)(()=>[(0,n.R1)(o).message?((0,i.uX)(),(0,i.CE)("div",R,(0,s.v_)((0,n.R1)(o).message),1)):(0,i.Q3)("",!0),"input"===(0,n.R1)(o).mode?((0,i.uX)(),(0,i.CE)("div",x,[(0,i.bF)(c.A,{modelValue:g.value.checked,"onUpdate:modelValue":t[0]||(t[0]=e=>g.value.checked=e),clearable:!0},null,8,["modelValue"])])):(0,i.Q3)("",!0),(0,n.R1)(o).options.length?((0,i.uX)(),(0,i.CE)(i.FK,{key:2},[(0,n.R1)(o).mode?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("div",E,[(0,i.bF)(u.A,{modelValue:g.value.checked,"onUpdate:modelValue":t[1]||(t[1]=e=>g.value.checked=e),data:(0,n.R1)(o).options,multiple:!1},null,8,["modelValue","data"])])),"list"===(0,n.R1)(o).mode?((0,i.uX)(),(0,i.CE)("div",F,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)((0,n.R1)(o).options,(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:"li",key:t},(0,s.v_)(e.label),1))),128))])):(0,i.Q3)("",!0),"select"===(0,n.R1)(o).mode?((0,i.uX)(),(0,i.CE)("div",P,[(0,i.bF)(h.A,{modelValue:g.value.checked,"onUpdate:modelValue":t[2]||(t[2]=e=>g.value.checked=e),data:(0,n.R1)(o).options,searchable:!0,placeholder:(0,n.R1)(o).placeholder},null,8,["modelValue","data","placeholder"])])):(0,i.Q3)("",!0)],64)):(0,i.Q3)("",!0)]),_:1},8,["modelValue"]))}}))},54710:function(e,t,o){o.d(t,{E:function(){return r}});var i=Object.defineProperty,n=(e,t,o)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,s=(e,t,o)=>n(e,"symbol"!==typeof t?t+"":t,o);class r{constructor(e,t,o,i=()=>{},n=()=>{},r=!1){s(this,"visible"),s(this,"group"),s(this,"viewport"),s(this,"position"),s(this,"change"),s(this,"cancel"),this.viewport={width:window.innerWidth,height:window.innerHeight},this.position={x:e,y:t},this.group=o,this.change=i,this.cancel=n,this.visible=r}}},54841:function(e,t,o){o(56530)},54963:function(e,t,o){var i=o(39004),n=(o(44233),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-2948f956"]]);t.A=s},55009:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(79620)},55287:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(39434)},55382:function(e,t,o){o.d(t,{P:function(){return a},f:function(){return l}});var i=o(14291),n=o(67227),s=o(4615),r=o(2858);const a=new s.T,l=(e,t)=>{const o=(0,r.v1)(),s=(0,i.KR)({visible:!1,width:"auto"}),a=(0,n.EW)(()=>"auto"===e.popoverWidth?s.value.width:e.popoverWidth),l=i=>{t.value&&("auto"===e.popoverWidth&&(s.value.width=i.rect.width+"px"),t.value.update().then(()=>{var e,i;const n=null!=(i=null==(e=t.value)?void 0:e.position())?i:["bottom","start"];o.value.getPopoverLayout({position:n,width:a.value})}))};return{state:s,slotWidth:a,cascaderProvider:o,resize:l}}},55522:function(e,t,o){var i=o(57984),n=(o(41469),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-b77213b2"]]);t.A=s},55928:function(e,t,o){o.d(t,{A:function(){return f}});var i=o(49720),n=o(45930),s=o(57469);function r(e){return"x"===e?"y":"x"}var a=o(10857),l=o(74449),d=o(41019),c=o(76061),u=o(2727),h=o(44694),g=o(94696);function p(e){var t=e.state,o=e.options,p=e.name,f=o.mainAxis,m=void 0===f||f,v=o.altAxis,C=void 0!==v&&v,w=o.boundary,b=o.rootBoundary,y=o.altBoundary,S=o.padding,R=o.tether,x=void 0===R||R,E=o.tetherOffset,F=void 0===E?0:E,P=(0,c.A)(t,{boundary:w,rootBoundary:b,padding:S,altBoundary:y}),D=(0,n.A)(t.placement),k=(0,u.A)(t.placement),M=!k,A=(0,s.A)(D),T=r(A),I=t.modifiersData.popperOffsets,L=t.rects.reference,B=t.rects.popper,O="function"===typeof F?F(Object.assign({},t.rects,{placement:t.placement})):F,H="number"===typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,G={x:0,y:0};if(I){if(m){var N,z="y"===A?i.Mn:i.kb,W="y"===A?i.sQ:i.pG,_="y"===A?"height":"width",U=I[A],$=U+P[z],q=U-P[W],j=x?-B[_]/2:0,K=k===i.ni?L[_]:B[_],Q=k===i.ni?-B[_]:-L[_],X=t.elements.arrow,Y=x&&X?(0,l.A)(X):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,h.A)(),J=Z[z],ee=Z[W],te=(0,a.u)(0,L[_],Y[_]),oe=M?L[_]/2-j-te-J-H.mainAxis:K-te-J-H.mainAxis,ie=M?-L[_]/2+j+te+ee+H.mainAxis:Q+te+ee+H.mainAxis,ne=t.elements.arrow&&(0,d.A)(t.elements.arrow),se=ne?"y"===A?ne.clientTop||0:ne.clientLeft||0:0,re=null!=(N=null==V?void 0:V[A])?N:0,ae=U+oe-re-se,le=U+ie-re,de=(0,a.u)(x?(0,g.jk)($,ae):$,U,x?(0,g.T9)(q,le):q);I[A]=de,G[A]=de-U}if(C){var ce,ue="x"===A?i.Mn:i.kb,he="x"===A?i.sQ:i.pG,ge=I[T],pe="y"===T?"height":"width",fe=ge+P[ue],me=ge-P[he],ve=-1!==[i.Mn,i.kb].indexOf(D),Ce=null!=(ce=null==V?void 0:V[T])?ce:0,we=ve?fe:ge-L[pe]-B[pe]-Ce+H.altAxis,be=ve?ge+L[pe]+B[pe]-Ce-H.altAxis:me,ye=x&&ve?(0,a.P)(we,ge,be):(0,a.u)(x?we:fe,ge,x?be:me);I[T]=ye,G[T]=ye-ge}t.modifiersData[p]=G}}var f={name:"preventOverflow",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"]}},56055:function(){},56476:function(e,t,o){o(7091)},56530:function(){},57212:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(59285)},57469:function(e,t,o){function i(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}o.d(t,{A:function(){return i}})},57744:function(e,t,o){o.d(t,{g:function(){return u}});var i=o(77409),n=o(66384),s=Object.defineProperty,r=(e,t,o)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,a=(e,t,o)=>r(e,"symbol"!==typeof t?t+"":t,o);const l=(0,i.Ef)(n.A),d=l.mount(document.createElement("div"));document.body.appendChild(d.$el);const c=class{};a(c,"label",""),a(c,"id",""),a(c,"needMove",!1),a(c,"enabled",!1),a(c,"executed",!1),a(c,"dragData",null),a(c,"viewer",d),a(c,"mouse",{x:0,y:0}),a(c,"mouseStartDistance",2),a(c,"tick"),a(c,"start",(e,t,o,i)=>{!1!==t.starter(e)&&(window.addEventListener("mousemove",c.move),window.addEventListener("mouseup",c.cancel),c.needMove=!0,c.mouse.x=i.clientX,c.mouse.y=i.clientY,c.dragData=e,c.label=o,c.id=t.id)}),a(c,"enter",(e,t,o,i)=>!1!==c.enabled&&null!==c.dragData&&(void 0!==o&&(c.tick=o,void 0!==i&&o(i)),t.validator({id:c.id,data:c.dragData},{id:t.id,data:e}))),a(c,"leave",(e,t)=>{!1!==c.enabled&&null!==c.dragData&&(c.tick=void 0)}),a(c,"move",e=>{if(!0!==c.executed){if(c.executed=!0,requestAnimationFrame(()=>c.executed=!1),!0===c.needMove){const t=Math.abs(e.clientX-c.mouse.x),o=Math.abs(e.clientY-c.mouse.y),i=Math.min(t,o,c.mouseStartDistance);if(i<c.mouseStartDistance)return;c.needMove=!1,c.enabled=!0,c.viewer.show(c.label)}void 0!==c.tick&&c.tick(e),c.viewer.update(e.clientX,e.clientY)}}),a(c,"end",(e,t,o="insert")=>{if(!0===c.enabled&&null!==c.dragData){const i={id:c.id,data:c.dragData},n={id:t.id,data:e};!0===t.validator(i,n)&&t.finished(i,n,o)}c.cancel()}),a(c,"limit",(e,t,o="insert")=>{if(!0===c.enabled&&null!==c.dragData){const i={id:c.id,data:c.dragData},n={id:t.id,data:e};return t.limit(i,n,o)}return o}),a(c,"cancel",()=>{window.removeEventListener("mouseup",c.cancel),window.removeEventListener("mousemove",c.move),c.id="",c.needMove=!1,c.enabled=!1,c.executed=!1,c.dragData=null,c.tick=void 0,c.viewer.hide()});let u=c},57771:function(){},57984:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(49685)},59285:function(e,t,o){var i=o(67227),n=o(89035),s=o(10582),r=o(2858),a=Object.defineProperty,l=Object.defineProperties,d=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,g=(e,t,o)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,p=(e,t)=>{for(var o in t||(t={}))u.call(t,o)&&g(e,o,t[o]);if(c)for(var o of c(t))h.call(t,o)&&g(e,o,t[o]);return e},f=(e,t)=>l(e,d(t));const m={class:"checked-box"},v={key:0,class:"vyrfont vyr-checked-multiple"},C={key:0,class:"vyrfont vyr-checked-all"},w={key:0,class:"checked-body"};t.A=(0,i.pM)({__name:"Checked",props:f(p({},s.OV),{readonly:{default:null},disabled:{default:!1},multiple:{default:!1}}),emits:["update:modelValue","change"],setup(e,{emit:t}){const o=e,s=t,a=(0,r.Dz)(),l=(0,i.EW)(()=>null===o.readonly?a.value.readonly:o.readonly),d=(0,r.ZO)(),c=(0,i.EW)(()=>null===d?o.modelValue===o.value:d.value.checked(o.value)),u=()=>{if(!0!==l.value){if(null===d){const e=!o.modelValue;return s("update:modelValue",e),void s("change",e)}d.value.change(o.value)}};return(t,o)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,n.C4)(["vyr-checked",{disabled:e.disabled}]),onClick:u},[(0,i.Lk)("div",m,[(0,i.Lk)("i",{class:(0,n.C4)(["vyrfont vyr-checked-no",{active:e.multiple||c.value}])},null,2),e.multiple?((0,i.uX)(),(0,i.CE)("i",v)):((0,i.uX)(),(0,i.CE)(i.FK,{key:1},[c.value?((0,i.uX)(),(0,i.CE)("i",C)):(0,i.Q3)("",!0)],64))]),t.$slots.default?((0,i.uX)(),(0,i.CE)("div",w,[(0,i.RG)(t.$slots,"default")])):(0,i.Q3)("",!0)],2))}})},60369:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(48558)},60460:function(e,t,o){var i=o(83492),n=(o(73054),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-b98c70cc"]]);t.A=s},60651:function(e,t,o){var i=o(60369),n=(o(32942),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-1137c73a"]]);t.A=s},60678:function(){},62263:function(e,t,o){var i=o(15313),n=(o(75933),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-ad783f80"]]);t.A=s},62517:function(e,t,o){var i=o(70771),n=(o(34736),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-49795cc6"]]);t.A=s},62536:function(e,t,o){o(19073)},62687:function(e,t,o){var i=o(47237),n=(o(73443),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-1c3f00f6"]]);t.A=s},63049:function(e,t,o){o(87716)},63656:function(e,t,o){var i=o(12140),n=(o(63049),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-227ca706"]]);t.A=s},63764:function(){},64865:function(e,t,o){o.d(t,{A:function(){return n}});var i=o(88573);function n(e){return(0,i.A)(e).getComputedStyle(e)}},65761:function(e,t,o){o.d(t,{B:function(){return s}});var i=o(75133),n=o(28100);i.Locale.register(n.t);const s=i.Locale.getLanguage(n.t.name)},66148:function(e,t,o){var i=o(45930),n=o(49720);function s(e,t,o){var s=(0,i.A)(e),r=[n.kb,n.Mn].indexOf(s)>=0?-1:1,a="function"===typeof o?o(Object.assign({},t,{placement:e})):o,l=a[0],d=a[1];return l=l||0,d=(d||0)*r,[n.kb,n.pG].indexOf(s)>=0?{x:d,y:l}:{x:l,y:d}}function r(e){var t=e.state,o=e.options,i=e.name,r=o.offset,a=void 0===r?[0,0]:r,l=n.DD.reduce(function(e,o){return e[o]=s(o,t.rects,a),e},{}),d=l[t.placement],c=d.x,u=d.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[i]=l}t.A={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:r}},66384:function(e,t,o){var i=o(71370),n=(o(98188),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-98075b9c"]]);t.A=s},67079:function(e,t,o){var i=o(6921),n=(o(12710),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-62045c9e"]]);t.A=s},67124:function(e,t,o){o.d(t,{A:function(){return n}});var i=o(44694);function n(e){return Object.assign({},(0,i.A)(),e)}},67698:function(e,t,o){var i=o(18584),n=(o(54841),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-3763114c"]]);t.A=s},68676:function(e,t,o){var i=o(15288),n=(o(15080),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-3c741144"]]);t.A=s},69089:function(e,t,o){o(14572)},69133:function(e,t,o){o.d(t,{A:function(){return n}});var i=o(34400);function n(){return!/^((?!chrome|android).)*safari/i.test((0,i.A)())}},69707:function(e,t,o){var i=o(67227),n=o(89035);const s=["title"],r={class:"option-arrow"},a={key:0,class:"vyrfont vyr-right-arrow"},l=["title"];t.A=(0,i.pM)({__name:"Option",props:{label:{default:""},value:{default:""},left:{default:!0},arrow:{default:!1},checked:{default:!1},expand:{default:!1},disabled:{default:!1},warning:{default:!1}},emits:["click","mousedown","mouseup","rightClick","mouseenter","mouseleave"],setup(e,{emit:t}){const o=e,d=t,c=(e,t)=>{if(!1===o.disabled)return d(e,t);t.stopPropagation(),t.preventDefault()};return(t,o)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,n.C4)(["vyr-option",{active:e.checked,expand:e.expand,justify:!1===e.left,warning:e.warning,disabled:e.disabled}]),onClick:o[0]||(o[0]=e=>c("click",e)),onMousedown:o[1]||(o[1]=e=>c("mousedown",e)),onMouseup:o[2]||(o[2]=e=>c("mouseup",e)),onMouseenter:o[3]||(o[3]=e=>c("mouseenter",e)),onMouseleave:o[4]||(o[4]=e=>c("mouseleave",e)),onContextmenu:o[5]||(o[5]=e=>c("rightClick",e))},[e.left?(0,i.RG)(t.$slots,"default",{key:0},()=>[(0,i.Lk)("div",{class:"option-label",title:e.label},[(0,i.RG)(t.$slots,"label",{},()=>[(0,i.eW)((0,n.v_)(e.label),1)])],8,s)]):(0,i.Q3)("",!0),(0,i.Lk)("div",r,[(0,i.RG)(t.$slots,"icon",{},()=>[e.arrow?((0,i.uX)(),(0,i.CE)("i",a)):(0,i.Q3)("",!0)])]),!1===e.left?(0,i.RG)(t.$slots,"default",{key:1},()=>[(0,i.Lk)("div",{class:"option-label",title:e.label},[(0,i.RG)(t.$slots,"label",{},()=>[(0,i.eW)((0,n.v_)(e.label),1)])],8,l)]):(0,i.Q3)("",!0)],34))}})},70771:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(20952)},70808:function(e,t,o){o.d(t,{A:function(){return p}});var i={left:"right",right:"left",bottom:"top",top:"bottom"};function n(e){return e.replace(/left|right|bottom|top/g,function(e){return i[e]})}var s=o(45930),r={start:"end",end:"start"};function a(e){return e.replace(/start|end/g,function(e){return r[e]})}var l=o(76061),d=o(2727),c=o(49720);function u(e,t){void 0===t&&(t={});var o=t,i=o.placement,n=o.boundary,r=o.rootBoundary,a=o.padding,u=o.flipVariations,h=o.allowedAutoPlacements,g=void 0===h?c.DD:h,p=(0,d.A)(i),f=p?u?c.Ol:c.Ol.filter(function(e){return(0,d.A)(e)===p}):c.OM,m=f.filter(function(e){return g.indexOf(e)>=0});0===m.length&&(m=f);var v=m.reduce(function(t,o){return t[o]=(0,l.A)(e,{placement:o,boundary:n,rootBoundary:r,padding:a})[(0,s.A)(o)],t},{});return Object.keys(v).sort(function(e,t){return v[e]-v[t]})}function h(e){if((0,s.A)(e)===c.qZ)return[];var t=n(e);return[a(e),t,a(t)]}function g(e){var t=e.state,o=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=o.mainAxis,a=void 0===r||r,g=o.altAxis,p=void 0===g||g,f=o.fallbackPlacements,m=o.padding,v=o.boundary,C=o.rootBoundary,w=o.altBoundary,b=o.flipVariations,y=void 0===b||b,S=o.allowedAutoPlacements,R=t.options.placement,x=(0,s.A)(R),E=x===R,F=f||(E||!y?[n(R)]:h(R)),P=[R].concat(F).reduce(function(e,o){return e.concat((0,s.A)(o)===c.qZ?u(t,{placement:o,boundary:v,rootBoundary:C,padding:m,flipVariations:y,allowedAutoPlacements:S}):o)},[]),D=t.rects.reference,k=t.rects.popper,M=new Map,A=!0,T=P[0],I=0;I<P.length;I++){var L=P[I],B=(0,s.A)(L),O=(0,d.A)(L)===c.ni,H=[c.Mn,c.sQ].indexOf(B)>=0,V=H?"width":"height",G=(0,l.A)(t,{placement:L,boundary:v,rootBoundary:C,altBoundary:w,padding:m}),N=H?O?c.pG:c.kb:O?c.sQ:c.Mn;D[V]>k[V]&&(N=n(N));var z=n(N),W=[];if(a&&W.push(G[B]<=0),p&&W.push(G[N]<=0,G[z]<=0),W.every(function(e){return e})){T=L,A=!1;break}M.set(L,W)}if(A)for(var _=y?3:1,U=function(e){var t=P.find(function(t){var o=M.get(t);if(o)return o.slice(0,e).every(function(e){return e})});if(t)return T=t,"break"},$=_;$>0;$--){var q=U($);if("break"===q)break}t.placement!==T&&(t.modifiersData[i]._skip=!0,t.placement=T,t.reset=!0)}}var p={name:"flip",enabled:!0,phase:"main",fn:g,requiresIfExists:["offset"],data:{_skip:!1}}},71370:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(37155)},72171:function(e,t,o){var i=o(67227),n=o(14291),s=o(77409),r=o(89035),a=o(32946),l=o(7135),d=o(908),c=o(60460),u=o(81320),h=o(18985);const g=["onClick"],p=["onClick"];t.A=(0,i.pM)({__name:"Options",props:{width:{default:""},left:{default:!0},arrow:{default:!0},maxCount:{default:5},minCount:{default:0},data:{default(){return[]}},getter:{default(){return d.r}},checked:{default(){return[]}},expand:{default(){return[]}},visible:{default(){return e=>!0}},forcedPrompt:{default:!1},addable:{default:!1},removable:{default:!1},editable:{default:!1}},emits:["click","mouseenter","mouseleave","add","remove","edit"],setup(e,{emit:t}){const o=e,d=t,f=(0,n.KR)({currentEditIndex:-1,currentEditValue:""}),m=(0,i.EW)(()=>{const e=[];for(const t of o.data)!0===o.visible(t)&&e.push(t);return e}),v=(0,i.EW)(()=>{let e=o.width?`width:${o.width};`:"";const t=2*a.S.config.optionsScrollMargin.value+2*a.S.config.borderSize.value-a.S.config.optionMargin.value,i=a.S.config.optionMargin.value+a.S.config.inputHeight.value;return e+=`min-height:${o.minCount*i+t}px;`,o.data.length>o.maxCount&&(e+=`height:${o.maxCount*i+t}px;`),e}),C=e=>{if(!1===o.arrow)return!1;const t=o.getter.children(e);return t.length>0},w=(e,t)=>{f.value.currentEditIndex=e,f.value.currentEditValue=o.getter.label(t)},b=()=>{f.value.currentEditIndex=-1,f.value.currentEditValue=""},y=()=>{d("edit",f.value.currentEditIndex,f.value.currentEditValue),b()};return(t,o)=>((0,i.uX)(),(0,i.CE)("div",{class:"vyr-options",style:(0,r.Tr)(v.value)},[(0,i.bF)(c.A,{margin:(0,n.R1)(a.S).config.optionsScrollMargin.value},{default:(0,i.k6)(()=>[0!==m.value.length&&!e.forcedPrompt||!1!==e.addable?((0,i.uX)(),(0,i.CE)(i.FK,{key:1},[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(m.value,(n,r)=>(0,i.RG)(t.$slots,"default",{key:r,option:n,index:r,left:e.left,emit:d},()=>[r===f.value.currentEditIndex?((0,i.uX)(),(0,i.Wv)(u.A,{key:0,class:"custom-option"},{icon:(0,i.k6)(()=>[(0,i.Lk)("div",{class:"custom-wrapper",onClick:o[1]||(o[1]=(0,s.D$)(()=>{},["stop"]))},[(0,i.Lk)("i",{class:"vyrfont vyr-queren",onClick:y}),(0,i.Lk)("i",{class:"vyrfont vyr-quxiao",onClick:b})])]),default:(0,i.k6)(()=>[(0,i.bF)(h.A,{modelValue:f.value.currentEditValue,"onUpdate:modelValue":o[0]||(o[0]=e=>f.value.currentEditValue=e),autofocus:!0},null,8,["modelValue"])]),_:1})):((0,i.uX)(),(0,i.Wv)(u.A,{key:1,label:e.getter.label(n),value:e.getter.value(n),left:e.left,arrow:C(n),checked:e.checked.includes(e.getter.value(n)),expand:e.expand.includes(e.getter.value(n)),disabled:e.getter.disabled(n),onClick:e=>d("click",n,e),onMouseenter:e=>d("mouseenter",n),onMouseleave:e=>d("mouseleave",n)},(0,i.eX)({_:2},[e.editable||e.removable?{name:"icon",fn:(0,i.k6)(()=>[(0,i.Lk)("div",{class:"custom-wrapper",onClick:o[2]||(o[2]=(0,s.D$)(()=>{},["stop"]))},[e.editable?((0,i.uX)(),(0,i.CE)("i",{key:0,class:"vyrfont vyr-bianji",onClick:e=>w(r,n)},null,8,g)):(0,i.Q3)("",!0),e.removable?((0,i.uX)(),(0,i.CE)("i",{key:1,class:"vyrfont vyr-remove",onClick:e=>d("remove",r)},null,8,p)):(0,i.Q3)("",!0)])]),key:"0"}:void 0]),1032,["label","value","left","arrow","checked","expand","disabled","onClick","onMouseenter","onMouseleave"]))])),128)),e.addable?((0,i.uX)(),(0,i.Wv)(u.A,{key:0,value:-1,left:e.left},{default:(0,i.k6)(()=>[(0,i.Lk)("div",{class:"custom-add",onClick:o[3]||(o[3]=(0,s.D$)(e=>d("add"),["stop"]))},[...o[4]||(o[4]=[(0,i.Lk)("i",{class:"vyrfont vyr-add"},null,-1)])])]),_:1},8,["left"])):(0,i.Q3)("",!0)],64)):((0,i.uX)(),(0,i.Wv)(u.A,{key:0,label:`${(0,n.R1)(l.B).get(e.forcedPrompt?"options.tips.notFound":"options.tips.notData")}`,value:"",disabled:!0},null,8,["label"]))]),_:3},8,["margin"])],4))}})},72756:function(e,t,o){var i=o(77272);const n=i.A;t.A=n},73054:function(e,t,o){o(45319)},73354:function(e,t,o){o.d(t,{P:function(){return n}});var i=o(4615);const n=new i.T},73443:function(e,t,o){o(13382)},73923:function(e,t,o){var i=o(80097),n=(o(53227),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-1253957e"]]);t.A=s},74449:function(e,t,o){o.d(t,{A:function(){return n}});var i=o(92720);function n(e){var t=(0,i.A)(e),o=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:n}}},75059:function(){},75465:function(e,t,o){var i=o(93387),n=(o(69089),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-146ecc23"]]);t.A=s},75659:function(){},75933:function(e,t,o){o(63764)},76061:function(e,t,o){o.d(t,{A:function(){return D}});var i=o(49720),n=o(88573),s=o(96766),r=o(98315),a=o(69133);function l(e,t){var o=(0,n.A)(e),i=(0,s.A)(e),l=o.visualViewport,d=i.clientWidth,c=i.clientHeight,u=0,h=0;if(l){d=l.width,c=l.height;var g=(0,a.A)();(g||!g&&"fixed"===t)&&(u=l.offsetLeft,h=l.offsetTop)}return{width:d,height:c,x:u+(0,r.A)(e),y:h}}var d=o(64865),c=o(13184),u=o(94696);function h(e){var t,o=(0,s.A)(e),i=(0,c.A)(e),n=null==(t=e.ownerDocument)?void 0:t.body,a=(0,u.T9)(o.scrollWidth,o.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),l=(0,u.T9)(o.scrollHeight,o.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),h=-i.scrollLeft+(0,r.A)(e),g=-i.scrollTop;return"rtl"===(0,d.A)(n||o).direction&&(h+=(0,u.T9)(o.clientWidth,n?n.clientWidth:0)-a),{width:a,height:l,x:h,y:g}}var g=o(48934),p=o(41019),f=o(96207),m=o(92720),v=o(15077),C=o(4652),w=o(53234);function b(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function y(e,t){var o=(0,m.A)(e,!1,"fixed"===t);return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}function S(e,t,o){return t===i.R9?b(l(e,o)):(0,f.vq)(t)?y(t,o):b(h((0,s.A)(e)))}function R(e){var t=(0,g.A)((0,v.A)(e)),o=["absolute","fixed"].indexOf((0,d.A)(e).position)>=0,i=o&&(0,f.sb)(e)?(0,p.A)(e):e;return(0,f.vq)(i)?t.filter(function(e){return(0,f.vq)(e)&&(0,C.A)(e,i)&&"body"!==(0,w.A)(e)}):[]}function x(e,t,o,i){var n="clippingParents"===t?R(e):[].concat(t),s=[].concat(n,[o]),r=s[0],a=s.reduce(function(t,o){var n=S(e,o,i);return t.top=(0,u.T9)(n.top,t.top),t.right=(0,u.jk)(n.right,t.right),t.bottom=(0,u.jk)(n.bottom,t.bottom),t.left=(0,u.T9)(n.left,t.left),t},S(e,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}var E=o(12153),F=o(67124),P=o(2157);function D(e,t){void 0===t&&(t={});var o=t,n=o.placement,r=void 0===n?e.placement:n,a=o.strategy,l=void 0===a?e.strategy:a,d=o.boundary,c=void 0===d?i.WY:d,u=o.rootBoundary,h=void 0===u?i.R9:u,g=o.elementContext,p=void 0===g?i.xf:g,v=o.altBoundary,C=void 0!==v&&v,w=o.padding,y=void 0===w?0:w,S=(0,F.A)("number"!==typeof y?y:(0,P.A)(y,i.OM)),R=p===i.xf?i.ir:i.xf,D=e.rects.popper,k=e.elements[C?R:p],M=x((0,f.vq)(k)?k:k.contextElement||(0,s.A)(e.elements.popper),c,h,l),A=(0,m.A)(e.elements.reference),T=(0,E.A)({reference:A,element:D,strategy:"absolute",placement:r}),I=b(Object.assign({},D,T)),L=p===i.xf?I:A,B={top:M.top-L.top+S.top,bottom:L.bottom-M.bottom+S.bottom,left:M.left-L.left+S.left,right:L.right-M.right+S.right},O=e.modifiersData.offset;if(p===i.xf&&O){var H=O[r];Object.keys(B).forEach(function(e){var t=[i.pG,i.sQ].indexOf(e)>=0?1:-1,o=[i.Mn,i.sQ].indexOf(e)>=0?"y":"x";B[e]+=H[o]*t})}return B}},76817:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(54496)},77132:function(e,t,o){o.d(t,{P:function(){return r}});var i=o(14291),n=o(57744),s=o(24110);const r=(e,t)=>{const o=(0,i.KR)({id:0,value:"",type:"insert"}),r=()=>{o.value.value="",o.value.type="insert"},a=(t,o)=>{!1!==e.draggable&&0===o.button&&n.g.start(t,e.draggable,e.getter.label(t),o)},l=(t,i)=>{!1!==n.g.enabled&&!1!==e.draggable&&(clearTimeout(o.value.id),n.g.end(t,e.draggable,o.value.type),r())},d=(i,r)=>{if(!1===n.g.enabled||!1===e.draggable)return;o.value.id=(0,s.L)(()=>t.value.handleExpand(i),1e3);const a=e.draggable,l=e=>{var s;if(!(r.target instanceof Element)||!n.g.dragData)return;const l=r.target.getBoundingClientRect(),d=e.clientY-l.top,c=d/l.height,u=null!=(s=t.value.getAdjacencies(n.g.dragData,i))?s:0;o.value.type=c<.3?1===u?"insert":"insertBefore":c>.7?-1===u?"insert":"insertAfter":"insert",o.value.type=n.g.limit(i,a,o.value.type)};o.value.value=n.g.enter(i,a,l,r)?e.getter.value(i):""},c=(t,i)=>{!1!==n.g.enabled&&!1!==e.draggable&&(clearTimeout(o.value.id),n.g.leave(t,e.draggable),r())};return{drag:o,mousedown:a,mouseup:l,mouseenter:d,mouseleave:c}}},77272:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(86151)},77526:function(e,t,o){var i=o(27832),n=(o(22752),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-be2d210a"]]);t.A=s},77614:function(e,t,o){var i=o(67227),n=o(77409),s=o(89035),r=o(14291),a=o(93623),l=o(2858),d=o(10582),c=o(29255),u=o(73923),h=o(60460),g=Object.defineProperty,p=Object.defineProperties,f=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,w=(e,t,o)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,b=(e,t)=>{for(var o in t||(t={}))v.call(t,o)&&w(e,o,t[o]);if(m)for(var o of m(t))C.call(t,o)&&w(e,o,t[o]);return e},y=(e,t)=>p(e,f(t));const S={class:"header-title"};t.A=(0,i.pM)(y(b({},{inheritAttrs:!1}),{__name:"Dialog",props:b({modelValue:{default:!1},title:{default:""},draggable:{default:!0},closeable:{default:!0},position:{default(){return{left:"50%",top:"50%"}}}},d.LH),emits:["update:modelValue","active","close"],setup(e,{emit:t}){const o=e,d=t,g=(0,i.rk)("refDialog"),p=()=>{f.value.position=`left:${o.position.left};top:${o.position.top};`},f=(0,r.KR)({id:(0,a.pi)(),activeDialog:!1,offset:{x:0,y:0},height:o.height,position:"",moving:!1}),m=(0,i.EW)(()=>(0,a.mo)(f.value.id)),v=(0,i.EW)(()=>(0,a.tg)(f.value.id,m.value)),C=(0,i.EW)(()=>{const e=`\n width:${o.width};\n height:${f.value.height};\n max-height:${o.maxHeight};\n ${f.value.position};\n `;return e}),w={listener:new c.rZ,layer:v};(0,l.kb)(w);const b=()=>{d("update:modelValue",!1)},y=()=>{(0,a.gV)(f.value.id),d("active")},R=e=>{if(!1===o.draggable)return;if(!g.value)return;const t=g.value.getBoundingClientRect();f.value.offset.x=e.clientX-t.left-t.width/2,f.value.offset.y=e.clientY-t.top-t.height/2,f.value.activeDialog=!0},x=e=>{!1!==f.value.activeDialog&&!0!==f.value.moving&&(f.value.moving=!0,requestAnimationFrame(()=>{const t=e.clientX-f.value.offset.x,o=e.clientY-f.value.offset.y;f.value.position=`left:${t}px;top:${o}px;`,f.value.moving=!1,w.listener.trigger("move",{})}))},E=()=>{f.value.activeDialog=!1},F=e=>{"Escape"===e.code&&m.value&&b()},P=()=>{!0===o.modelValue?(a.g_.addEventListener("mousemove",x),a.g_.addEventListener("mouseup",E,!1),a.g_.addEventListener("mouseleave",E),window.addEventListener("keydown",F),""===f.value.position&&(0,i.dY)(p),y()):(a.g_.removeEventListener("mousemove",x),a.g_.removeEventListener("mouseup",E),a.g_.removeEventListener("mouseleave",E),window.removeEventListener("keydown",F))};(0,i.wB)(()=>o.modelValue,P,{immediate:!0});const D=(0,i.EW)(()=>(0,a.YZ)(o.maxHeight)),k=()=>{if(!g.value)return;const e=(0,a.Ub)(g.value);f.value.height=e>=D.value?D.value+"px":o.height};return(t,o)=>((0,i.uX)(),(0,i.Wv)(u.A,{"mask-id":f.value.id,layer:v.value,visible:e.modelValue,mask:t.mask,onClose:o[2]||(o[2]=e=>d("close"))},{default:(0,i.k6)(({layer:r})=>[(0,i.Lk)("div",{ref_key:"refDialog",ref:g,class:"vyr-dialog",style:(0,s.Tr)(`${C.value};${r}`),onContextmenu:o[1]||(o[1]=(0,n.D$)(()=>{},["prevent","stop"])),onMousedown:y},[(0,i.Lk)("div",{class:"dialog-header",style:(0,s.Tr)(`height:${t.header}px;`),onMousedown:R},[(0,i.Lk)("div",S,[(0,i.RG)(t.$slots,"title",{},()=>[(0,i.eW)((0,s.v_)(e.title),1)])]),e.closeable?((0,i.uX)(),(0,i.CE)("i",{key:0,class:"vyrfont vyr-close header-close",onClick:b,onMousedown:o[0]||(o[0]=(0,n.D$)(()=>{},["stop"]))},null,32)):(0,i.Q3)("",!0)],36),(0,i.Lk)("div",{class:"dialog-body",style:(0,s.Tr)(`height:calc(100% - ${t.$slots.footer?t.header+t.footer:t.header}px);`)},[(0,i.RG)(t.$slots,"scroll",{margin:t.margin,padding:t.padding},()=>[(0,i.bF)(h.A,{margin:t.margin,padding:t.padding,onResize:k},{default:(0,i.k6)(()=>[(0,i.RG)(t.$slots,"default")]),_:3},8,["margin","padding"])])],4),t.$slots.footer?((0,i.uX)(),(0,i.CE)("div",{key:0,class:"dialog-footer",style:(0,s.Tr)(`height:${t.footer}px;`)},[(0,i.RG)(t.$slots,"footer")],4)):(0,i.Q3)("",!0),(0,i.RG)(t.$slots,"dialog")],36)]),_:3},8,["mask-id","layer","visible","mask"]))}}))},77738:function(e,t,o){var i=o(67227),n=o(14291),s=o(89035),r=o(10582),a=o(2858),l=o(29663),d=o(908),c=o(93623),u=o(62263),h=o(54963),g=Object.defineProperty,p=Object.defineProperties,f=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,w=(e,t,o)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,b=(e,t)=>{for(var o in t||(t={}))v.call(t,o)&&w(e,o,t[o]);if(m)for(var o of m(t))C.call(t,o)&&w(e,o,t[o]);return e},y=(e,t)=>p(e,f(t));t.A=(0,i.pM)({__name:"Cascader",props:y(b(b(b(b(b(b({},r.vh),r.G9),l.K),r.Ft),r.xG),r.wq),{popoverWidth:{default:"auto"},maxCount:{default:5},minCount:{default:1},data:{default(){return[]}},visible:{default(){return e=>!0}}}),emits:["update:modelValue","change","show","close"],setup(e,{expose:t,emit:o}){const l=e=>{w.value.left="end"!==e.position[1]},g=(0,n.KR)({getInputValue:c.y5,getPopoverLayout:l,getSearchOptions:c.Ds,searchOptions:[]});(0,a.Tr)(g);const p=(0,a.Ar)();(0,a.sD)((0,n.KR)(y(b({},p.value),{useFlexLayout:!0})));const f=e,m=(0,d.H)(f),v=(0,i.rk)("refSelector"),C=o,w=(0,n.KR)({renderOption:"",checkedOption:"",left:!0}),{curReadonly:S,curClearable:R,curReadonlyClearable:x}=(0,r.f1)(f),{curInputWidth:E}=(0,r.pS)(f),F=(0,i.EW)(()=>{const e=[],t=(0,c.pN)(f.data,w.value.checkedOption,m);for(const o of t)e.push(m.value(o));return e}),P=(0,i.EW)(()=>{const e=[],t=(0,c.pN)(f.data,w.value.renderOption,m);for(const o of t){const t=m.children(o);0!==t.length&&e.push(t)}return e.push(f.data),e}),D=(0,i.EW)(()=>{const e=[...P.value];return w.value.left?e.reverse():e}),k=(0,i.EW)(()=>0===g.value.searchOptions.length?D.value:[g.value.searchOptions]),M=(0,i.EW)(()=>{let e=f.minCount;for(const t of k.value)e=Math.max(t.length,e);return Math.min(e,f.maxCount)});(0,i.wB)(k,()=>{var e;return null==(e=v.value)?void 0:e.resize()});const A=()=>{w.value.renderOption=f.modelValue,w.value.checkedOption=f.modelValue,C("show")},T=(e,t)=>{t.stopPropagation();const o=m.children(e),i=0===o.length;i?L(e,t):I(e,t)},I=(e,t)=>{const o=m.value(e);w.value.renderOption=o,w.value.checkedOption=o},L=(e,t)=>{var o;if(f.readonly)return;null==(o=v.value)||o.close();const i=m.value(e);f.modelValue!==i&&(C("update:modelValue",i),C("change",e,t))},B={show:()=>{var e;return null==(e=v.value)?void 0:e.show()},close:()=>{var e;return null==(e=v.value)?void 0:e.close()}};return t(B),(t,o)=>((0,i.uX)(),(0,i.CE)("div",{class:"vyr-cascader",style:(0,s.Tr)(`width:${(0,n.R1)(E)};`)},[(0,i.bF)(u.A,{ref_key:"refSelector",ref:v,"popover-class":"vyr-cascader-popover","popover-card":!1,placement:t.placement,"model-value":t.modelValue,placeholder:t.placeholder,data:e.data,getter:(0,n.R1)(m),arrow:t.arrow,offset:t.offset,readonly:(0,n.R1)(S),clearable:(0,n.R1)(R),"readonly-clearable":(0,n.R1)(x),searchable:t.searchable,width:"100%","popover-width":e.popoverWidth,onShow:A,onClose:o[0]||(o[0]=e=>C("close")),onClear:o[1]||(o[1]=e=>C("update:modelValue",""))},{trigger:(0,i.k6)(()=>[(0,i.RG)(t.$slots,"trigger")]),default:(0,i.k6)(t=>[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(k.value,(o,s)=>((0,i.uX)(),(0,i.Wv)(h.A,{key:s,data:o,getter:(0,n.R1)(m),"forced-prompt":t.forcedPrompt,width:t.width,"max-count":e.maxCount,"min-count":M.value,checked:F.value,left:w.value.left,visible:e.visible,onClick:T},null,8,["data","getter","forced-prompt","width","max-count","min-count","checked","left","visible"]))),128))]),_:3},8,["placement","model-value","placeholder","data","getter","arrow","offset","readonly","clearable","readonly-clearable","searchable","popover-width"])],4))}})},78507:function(e,t,o){o.d(t,{L:function(){return d},R:function(){return l}});var i=o(77409),n=o(24805),s=Object.defineProperty,r=(e,t,o)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,a=(e,t,o)=>r(e,"symbol"!==typeof t?t+"":t,o);class l{constructor(){a(this,"count",0),a(this,"vm");const e=(0,i.Ef)(n.A);this.vm=e.mount(document.createElement("div"))}static show(){}static close(){}show(){0===this.count&&(this.vm.setVisible(!0),l.show()),this.count++}close(){this.count--,this.count>0||(this.vm.setVisible(!1),this.count=0,l.close())}}const d=new l},78966:function(e,t,o){var i=o(38896),n=(o(10238),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-1da43d3a"]]);t.A=s},79382:function(e,t,o){var i=o(67227),n=o(77409),s=o(14291),r=o(89035),a=o(10582),l=o(22052),d=Object.defineProperty,c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,g=(e,t,o)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,p=(e,t)=>{for(var o in t||(t={}))u.call(t,o)&&g(e,o,t[o]);if(c)for(var o of c(t))h.call(t,o)&&g(e,o,t[o]);return e};t.A=(0,i.pM)({__name:"Mask",props:p({maskId:{},layer:{default:-1}},a.zB),emits:["close"],setup(e,{emit:t}){const o=e,a=(0,i.EW)(()=>-1===o.layer?"":`z-index:${o.layer};`),d=t,c=()=>{(0,l.Cn)(o.maskId),d("close")};return(t,o)=>((0,i.uX)(),(0,i.Wv)(i.Im,{to:"body"},[(0,i.bF)(n.eB,{name:"vyr-transition",onBeforeEnter:o[1]||(o[1]=t=>(0,s.R1)(l.r4)(e.maskId)),onAfterLeave:c},{default:(0,i.k6)(()=>[t.visible?((0,i.uX)(),(0,i.CE)(i.FK,{key:0},[t.mask?((0,i.uX)(),(0,i.CE)("div",{key:0,class:"vyr-mask",style:(0,r.Tr)(a.value),onContextmenu:o[0]||(o[0]=(0,n.D$)(()=>{},["prevent","stop"]))},[(0,i.RG)(t.$slots,"default",{layer:a.value})],36)):(0,i.RG)(t.$slots,"default",{key:1,layer:a.value})],64)):(0,i.Q3)("",!0)]),_:3})]))}})},79620:function(e,t,o){var i=o(67227),n=o(77409),s=o(89035),r=o(14291),a=o(93623);t.A=(0,i.pM)({__name:"DynamicLayouter",props:{modelValue:{default:0},mode:{default:"horizontal"},sidebar:{default:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const o=e,l=t,d=(0,i.rk)("refLayouter"),c=(0,r.KR)({needUpdate:!1,enable:!1,size:0,start:new MouseEvent("vyr"),event:new MouseEvent("vyr"),class:[]});(0,i.wB)(()=>o.modelValue,()=>c.value.size=o.modelValue,{immediate:!0});const u=(0,i.EW)(()=>{const e="horizontal"===o.mode?"height":"width",t=o.sidebar?`${e}:${c.value.size}px;`:`${e}:calc(100% - ${c.value.size}px);`;return t}),h=(0,i.EW)(()=>{const e="horizontal"===o.mode?"height":"width",t=o.sidebar?`${e}:calc( 100% - ${c.value.size}px);`:`${e}:${c.value.size}px;`;return t}),g=()=>{c.value.needUpdate=!1,c.value.size=Math.max(0,c.value.size+m.size()),c.value.start=c.value.event,l("update:modelValue",c.value.size)},p=()=>{const e=Math.max(m.rect.left,Math.min(c.value.event.clientX,m.rect.right)),t=Math.max(m.rect.left,Math.min(c.value.start.clientX,m.rect.right)),i=e-t;return o.sidebar?i:-i},f=()=>{const e=Math.max(m.rect.top,Math.min(c.value.event.clientY,m.rect.bottom)),t=Math.max(m.rect.top,Math.min(c.value.start.clientY,m.rect.bottom)),i=e-t;return o.sidebar?i:-i},m={rect:{left:0,right:0,top:0,bottom:0},size:f},v=e=>{d.value&&(c.value.enable=!0,c.value.start=e,m.rect=d.value.getBoundingClientRect(),"vertical"===o.mode?m.size=p:m.size=f,y(),b())},C=e=>{e.preventDefault(),!1!==c.value.enable&&!0!==c.value.needUpdate&&(c.value.needUpdate=!0,c.value.event=e,window.dispatchEvent(new Event("resize")),requestAnimationFrame(g))},w=()=>{y(),c.value.enable=!1},b=()=>{a.CG.length=0,a.CG.push(C,w),window.addEventListener("mousemove",C),window.addEventListener("mouseup",w)},y=()=>{window.removeEventListener("mousemove",a.CG[0]),window.removeEventListener("mouseup",a.CG[1]),a.CG.length=0};return(t,o)=>((0,i.uX)(),(0,i.CE)("div",{ref_key:"refLayouter",ref:d,class:(0,s.C4)(["vyr-dynamic-layouter",`${e.mode} ${c.value.enable?"enable":""}`])},[(0,i.Lk)("div",{class:"dynamic-wrapper",style:(0,s.Tr)(u.value)},[(0,i.RG)(t.$slots,"default")],4),(0,i.Lk)("div",{class:"dynamic-sidebar",style:(0,s.Tr)(h.value)},[(0,i.Lk)("div",{class:(0,s.C4)(`vyr-${e.mode}-bar ${c.value.enable?"enable":""}`),onMousedown:(0,n.D$)(v,["stop","prevent"])},null,34),(0,i.RG)(t.$slots,"sidebar")],4)],2))}})},80097:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(79382)},80346:function(e,t,o){o.r(t),o.d(t,{ALWAYS_SYNC_GLOBAL_EVENTS:function(){return sw},AgAbstractCellEditor:function(){return zh},AgAbstractInputField:function(){return Ra},AgAbstractLabel:function(){return ma},AgCheckbox:function(){return xa},AgCheckboxSelector:function(){return Ea},AgColumn:function(){return zi},AgColumnGroup:function(){return Ld},AgFilterButtonSelector:function(){return tc},AgInputDateField:function(){return Ha},AgInputNumberField:function(){return Ba},AgInputNumberFieldSelector:function(){return Oa},AgInputTextArea:function(){return Ia},AgInputTextField:function(){return Aa},AgInputTextFieldSelector:function(){return Ta},AgPickerField:function(){return qa},AgPopupComponent:function(){return Rr},AgPromise:function(){return Cs},AgProvidedColumnGroup:function(){return Xi},AgRadioButton:function(){return Fa},AgRadioButtonSelector:function(){return Pa},AgSelect:function(){return Ka},AgSelectSelector:function(){return Qa},AgToggleButton:function(){return ka},AgToggleButtonSelector:function(){return Ma},AlignedGridsModule:function(){return aP},AllCommunityModule:function(){return _k},AutoScrollService:function(){return Kr},BaseColsService:function(){return ss},BaseComponentWrapper:function(){return zS},BaseCreator:function(){return $S},BaseGridSerializingSession:function(){return qS},BaseSelectionService:function(){return Vg},BeanStub:function(){return Ct},CellApiModule:function(){return sS},CellRangeType:function(){return qg},CellSpanModule:function(){return xk},CellStyleModule:function(){return Pk},ChangedPath:function(){return Wp},CheckboxEditorModule:function(){return PF},ClientSideRowModelApiModule:function(){return IP},ClientSideRowModelModule:function(){return TP},ColumnApiModule:function(){return qm},ColumnAutoSizeModule:function(){return ck},ColumnHoverModule:function(){return Ik},ColumnKeyCreator:function(){return Ji},Component:function(){return ps},CssClassManager:function(){return us},CsvExportModule:function(){return zP},CustomEditorModule:function(){return MF},CustomFilterModule:function(){return jx},DateEditorModule:function(){return FF},DateFilterModule:function(){return Xx},Direction:function(){return Xa},DragAndDropModule:function(){return Jp},DragSourceType:function(){return Md},EventApiModule:function(){return Gk},ExternalFilterModule:function(){return Jx},FakeHScrollComp:function(){return Au},FakeVScrollComp:function(){return Lu},FilterButtonComp:function(){return ec},FilterComp:function(){return dc},FilterWrapperComp:function(){return ac},GROUP_AUTO_COLUMN_ID:function(){return dn},GROUP_HIERARCHY_COLUMN_ID_PREFIX:function(){return hn},GridBodyCtrl:function(){return Fu},GridCoreCreator:function(){return DS},GridCtrl:function(){return fp},GridHeaderCtrl:function(){return bh},GridStateModule:function(){return pD},GroupInstanceIdCreator:function(){return rs},HeaderRowContainerCtrl:function(){return Hh},HighlightChangesModule:function(){return aD},InfiniteRowModelModule:function(){return YP},KeyCode:function(){return lr},LargeTextEditorModule:function(){return kF},LocalEventService:function(){return i},LocaleModule:function(){return Nk},LocaleService:function(){return OS},ManagedFocusFeature:function(){return Ec},ModuleRegistry:function(){return so},NumberEditorModule:function(){return EF},NumberFilterModule:function(){return Qx},PaginationModule:function(){return LD},PinnedRowModel:function(){return Eg},PinnedRowModule:function(){return vk},PositionableFeature:function(){return bc},ProvidedFilter:function(){return Fc},QuickFilterModule:function(){return Zx},ROW_NUMBERS_COLUMN_ID:function(){return un},RefPlaceholder:function(){return ds},RenderApiModule:function(){return ek},RowApiModule:function(){return $D},RowAutoHeightModule:function(){return Wk},RowContainerCtrl:function(){return Su},RowDragModule:function(){return tf},RowNode:function(){return Gd},RowSelectionModule:function(){return QF},RowStyleModule:function(){return Dk},SELECTION_COLUMN_ID:function(){return cn},STRUCTURED_SCHEMA_FEATURES:function(){return kc},ScrollApiModule:function(){return qD},SelectEditorModule:function(){return DF},ServerSideTransactionResultStatus:function(){return kg},TabGuardClassNames:function(){return qr},TabGuardComp:function(){return Gg},TabGuardCtrl:function(){return Ng},TabGuardFeature:function(){return zg},TextEditorModule:function(){return xF},TextFilterModule:function(){return Kx},TooltipModule:function(){return nE},TouchListener:function(){return $g},UndoRedoEditModule:function(){return RF},ValidationModule:function(){return lR},ValueCacheModule:function(){return oS},VanillaFrameworkOverrides:function(){return jg},_AgBeanStub:function(){return ft},_AgComponentStub:function(){return gs},_AgContext:function(){return Xl},_AgPositionableFeature:function(){return Zr},_AgTabGuardComp:function(){return kd},_AgTabGuardFeature:function(){return Dd},_AgTooltipComponent:function(){return pd},_AgTooltipFeature:function(){return nd},_BOOLEAN_MIXED_GRID_OPTIONS:function(){return Rw},_BaseDragAndDropService:function(){return Pd},_BaseDragService:function(){return Rd},_BaseEnvironment:function(){return Jl},_BaseEventService:function(){return id},_BasePopupService:function(){return gd},_BaseRegistry:function(){return od},_BaseTooltipStateManager:function(){return dd},_ChangedRowNodes:function(){return Dg},_ColumnFilterModule:function(){return qx},_ColumnGroupModule:function(){return rm},_ColumnMoveModule:function(){return If},_CsrmSsrmSharedApiModule:function(){return iP},_DragModule:function(){return Zp},_EditCoreModule:function(){return SF},_EmptyArray:function(){return en},_EmptyBean:function(){return as},_FOCUS_MANAGED_CLASS:function(){return Ur},_FilterCoreModule:function(){return Ux},_FilterValueModule:function(){return $x},_GET_ALL_EVENTS:function(){return lw},_GET_ALL_GRID_OPTIONS:function(){return Fw},_HeaderComp:function(){return Gw},_HorizontalResizeModule:function(){return of},_KeyboardNavigationModule:function(){return ty},_MONTHS:function(){return ra},_PUBLIC_EVENTS:function(){return rw},_PUBLIC_EVENT_HANDLERS_MAP:function(){return dw},_PopupModule:function(){return mR},_ROW_ID_PREFIX_BOTTOM_PINNED:function(){return Hd},_ROW_ID_PREFIX_ROW_GROUP:function(){return Bd},_ROW_ID_PREFIX_TOP_PINNED:function(){return Od},_RowModelSharedApiModule:function(){return nP},_STOP_PROPAGATION_CALLBACKS:function(){return xc},_SharedDragAndDropModule:function(){return ef},_SharedExportModule:function(){return BP},_SharedMenuModule:function(){return pR},_SharedRowSelectionModule:function(){return KF},_SortModule:function(){return Ky},_SsrmInfiniteSharedApiModule:function(){return sP},_addAdditionalCss:function(){return QC},_addColumnDefaultAndTypes:function(){return Hn},_addFocusableContainerListener:function(){return ih},_addGridCommonParams:function(){return Ti},_anchorElementToMouseMoveEvent:function(){return rt},_applyColumnState:function(){return Qn},_areCellsEqual:function(){return Uu},_areColIdsEqual:function(){return yn},_areEqual:function(){return on},_areSortDefsEqual:function(){return qi},_asThemeImpl:function(){return Nl},_attemptToRestoreCellFocus:function(){return lh},_batchCall:function(){return Rt},_canSkipShowingRowGroup:function(){return ti},_clearElement:function(){return xe},_columnsMatch:function(){return xn},_combineAttributesAndGridOptions:function(){return Mi},_convertColumnEventSourceType:function(){return Rn},_createAgElement:function(){return je},_createCellId:function(){return _u},_createColumnTree:function(){return Mn},_createColumnTreeWithIds:function(){return kn},_createElement:function(){return Zd},_createGlobalRowEvent:function(){return Nd},_createIcon:function(){return _h},_createIconNoSpan:function(){return Uh},_createRowNodeSibling:function(){return Wd},_csrmFirstLeaf:function(){return Fg},_csrmReorderAllLeafs:function(){return Pg},_debounce:function(){return xt},_defaultComparator:function(){return d},_destroyColumnTree:function(){return fn},_doOnce:function(){return bt},_downloadFile:function(){return jS},_errMsg:function(){return ko},_error:function(){return Eo},_escapeString:function(){return g},_exists:function(){return s},_findFocusableElements:function(){return Nr},_findNextFocusableElement:function(){return Wr},_findTabbableParent:function(){return _r},_flatten:function(){return ln},_focusGridInnerElement:function(){return nh},_focusInto:function(){return zr},_focusNextGridCoreContainer:function(){return ah},_formatNumberCommas:function(){return US},_fuzzySuggestions:function(){return ha},_getAbsoluteHeight:function(){return we},_getAbsoluteRowIndex:function(){return Ju},_getAbsoluteWidth:function(){return be},_getActiveDomElement:function(){return m},_getAriaPosInSet:function(){return k},_getCallbackForEvent:function(){return ki},_getCellByPosition:function(){return Xu},_getCellCtrlForEventTarget:function(){return $c},_getCellPositionForEvent:function(){return Pu},_getCellRendererDetails:function(){return Xs},_getCheckboxLocation:function(){return ri},_getCheckboxes:function(){return ni},_getClientSideRowModel:function(){return TS},_getColumnState:function(){return Zn},_getColumnStateFromColDef:function(){return Fn},_getColumnsFromTree:function(){return gn},_getDateParts:function(){return na},_getDefaultFloatingFilterType:function(){return Dc},_getDefaultSimpleFilter:function(){return wc},_getDocument:function(){return v},_getEditorRendererDetails:function(){return Ys},_getEnableColumnSelection:function(){return gi},_getFillHandle:function(){return hi},_getFilterDetails:function(){return er},_getFilterModel:function(){return Yd},_getFilterParamsForDataType:function(){return mc},_getFirstRow:function(){return ju},_getFloatingFilterCompDetails:function(){return ir},_getFloatingFiltersHeight:function(){return fh},_getGlobalGridOption:function(){return Lt},_getGrandTotalRow:function(){return Qo},_getGridOption:function(){return Ii},_getGridRegisteredModules:function(){return to},_getGroupAggFiltering:function(){return Ko},_getGroupSelection:function(){return yi},_getGroupSelectsDescendants:function(){return xi},_getGroupTotalRowCallback:function(){return Xo},_getHeaderCheckbox:function(){return si},_getHeaderClassesFromColDef:function(){return Vu},_getHeaderRowCount:function(){return dh},_getInnerCellRendererDetails:function(){return zs},_getInnerHeight:function(){return ve},_getInnerWidth:function(){return Ce},_getIsRowSelectable:function(){return vi},_getLastRow:function(){return Ku},_getLocaleTextFromFunc:function(){return gt},_getLocaleTextFromMap:function(){return pt},_getLocaleTextFunc:function(){return ut},_getMaxConcurrentDatasourceRequests:function(){return oi},_getNormalisedMousePosition:function(){return Du},_getPageBody:function(){return b},_getParamType:function(){return xl},_getRootNode:function(){return f},_getRowAbove:function(){return Zu},_getRowBelow:function(){return eh},_getRowContainerClass:function(){return lu},_getRowContainerOptions:function(){return cu},_getRowCtrlForEventTarget:function(){return jc},_getRowHeightAsNumber:function(){return zo},_getRowHeightForNode:function(){return Go},_getRowIdCallback:function(){return ei},_getRowNode:function(){return Qu},_getRowSelectionMode:function(){return Ci},_getRowSpanContainerClass:function(){return du},_getRowViewportClass:function(){return au},_getServerSideRowModel:function(){return LS},_getShouldDisplayTooltip:function(){return _S},_getSortDefFromColDef:function(){return Pn},_getSortDefFromInput:function(){return Wi},_getSuppressMultiRanges:function(){return ci},_getToolPanelClassesFromColDef:function(){return Gu},_getViewportRowModel:function(){return BS},_interpretAsRightClick:function(){return Li},_isAnimateRows:function(){return $o},_isBrowserFirefox:function(){return Er},_isBrowserSafari:function(){return xr},_isCellSelectionEnabled:function(){return ui},_isClientSideRowModel:function(){return To},_isColumnMenuAnchoringEnabled:function(){return Di},_isColumnsSortingCoupledToGroup:function(){return jo},_isComponent:function(){return cs},_isDomLayout:function(){return Lo},_isElementInEventPath:function(){return Ze},_isElementOverflowingCallback:function(){return Ie},_isEventFromPrintableCharacter:function(){return pa},_isExpressionString:function(){return p},_isFullWidthGroupRow:function(){return Jo},_isGetRowHeightFunction:function(){return Oo},_isGroupMultiAutoColumn:function(){return Yo},_isGroupRowsSticky:function(){return qo},_isGroupUseEntireRow:function(){return Zo},_isIOSUserAgent:function(){return Pr},_isKeyboardMode:function(){return Gr},_isLegacyMenuEnabled:function(){return Pi},_isMultiRowSelection:function(){return wi},_isNodeOrElement:function(){return Ne},_isNothingFocused:function(){return C},_isPromise:function(){return ms},_isRowBefore:function(){return $u},_isRowNumbers:function(){return Vo},_isRowSelection:function(){return Bo},_isSameRow:function(){return qu},_isServerSideRowModel:function(){return Io},_isSetFilterByDefault:function(){return Fi},_isShowTooltipWhenTruncated:function(){return WS},_isSortDirectionValid:function(){return _i},_isSortTypeValid:function(){return Ui},_isStopPropagationForAgGrid:function(){return Rc},_isUseApplyButton:function(){return sc},_isUsingNewCellSelectionAPI:function(){return di},_isUsingNewRowSelectionAPI:function(){return li},_isVisible:function(){return Pe},_jsonEquals:function(){return l},_last:function(){return tn},_loadTemplate:function(){return De},_logPreInitWarn:function(){return Po},_makeNull:function(){return n},_mergeDeep:function(){return kt},_missing:function(){return r},_normalizeSortDirection:function(){return ji},_normalizeSortType:function(){return Ki},_observeResize:function(){return We},_paramToVariableName:function(){return cl},_paramValueToCss:function(){return Gl},_parseDateTimeFromString:function(){return ua},_preInitErrMsg:function(){return Mo},_prevOrNextDisplayedRow:function(){return _d},_processOnChange:function(){return Ai},_radioCssClass:function(){return le},_refreshFilterUi:function(){return Kd},_refreshHandlerAndUi:function(){return jd},_registerModule:function(){return Qt},_removeAllFromArray:function(){return rn},_removeAriaExpanded:function(){return _},_removeAriaSort:function(){return ee},_removeFromArray:function(){return sn},_removeFromParent:function(){return Ee},_requestAnimationFrame:function(){return _e},_resetColumnState:function(){return Xn},_selectAllCells:function(){return Qc},_serialiseDate:function(){return ia},_setAriaActiveDescendant:function(){return z},_setAriaChecked:function(){return oe},_setAriaColCount:function(){return X},_setAriaColIndex:function(){return Y},_setAriaColSpan:function(){return Z},_setAriaControls:function(){return ie},_setAriaControlsAndLabel:function(){return ne},_setAriaDescribedBy:function(){return I},_setAriaDisabled:function(){return G},_setAriaExpanded:function(){return W},_setAriaHasPopup:function(){return re},_setAriaHidden:function(){return N},_setAriaInvalid:function(){return H},_setAriaLabel:function(){return A},_setAriaLabelledBy:function(){return T},_setAriaLevel:function(){return V},_setAriaPosInSet:function(){return $},_setAriaRole:function(){return P},_setAriaRowCount:function(){return j},_setAriaRowIndex:function(){return K},_setAriaSelected:function(){return te},_setAriaSetSize:function(){return U},_setAriaSort:function(){return J},_setColMenuVisible:function(){return Gh},_setDisabled:function(){return pe},_setDisplayed:function(){return he},_setFixedWidth:function(){return He},_setUmd:function(){return no},_setVisible:function(){return ge},_shouldUpdateColVisibilityAfterGroup:function(){return ii},_stopPropagationForAgGrid:function(){return Sc},_suppressCellMouseEvent:function(){return Nc},_toString:function(){return h},_toStringOrNull:function(){return a},_translate:function(){return ht},_translateForFilter:function(){return ic},_unwrapUserComp:function(){return rr},_updateColsMap:function(){return Sn},_updateColumnState:function(){return Bn},_updateFilterModel:function(){return Xd},_waitUntil:function(){return Ft},_warn:function(){return xo},_warnOnce:function(){return Vt},agTestIdFor:function(){return $k},buttonStyleAlpine:function(){return mv},buttonStyleBalham:function(){return Cv},buttonStyleBase:function(){return hv},buttonStyleQuartz:function(){return pv},checkboxStyleDefault:function(){return kv},colorSchemeDark:function(){return Vv},colorSchemeDarkBlue:function(){return _v},colorSchemeDarkWarm:function(){return zv},colorSchemeLight:function(){return Av},colorSchemeLightCold:function(){return Bv},colorSchemeLightWarm:function(){return Iv},colorSchemeVariable:function(){return $v},columnDropStyleBordered:function(){return Sv},columnDropStylePlain:function(){return xv},convertColumnGroupState:function(){return NS},convertColumnState:function(){return HS},createGrid:function(){return FS},createPart:function(){return sl},createTheme:function(){return Fv},getGridApi:function(){return MS},getGridElement:function(){return AS},iconOverrides:function(){return Zv},iconSetAlpine:function(){return Qv},iconSetMaterial:function(){return Yv},iconSetQuartz:function(){return nC},iconSetQuartzBold:function(){return aC},iconSetQuartzLight:function(){return sC},iconSetQuartzRegular:function(){return rC},inputStyleBase:function(){return gC},inputStyleBordered:function(){return fC},inputStyleUnderlined:function(){return vC},isColumn:function(){return Vi},isColumnGroup:function(){return Id},isColumnGroupAutoCol:function(){return mn},isColumnSelectionCol:function(){return vn},isCombinedFilterModel:function(){return Pc},isProvidedColumnGroup:function(){return Qi},isRowNumberCol:function(){return Cn},isSpecialCol:function(){return wn},onRowHeightChanged:function(){return ZF},provideGlobalGridOptions:function(){return It},resetRowHeights:function(){return JF},setupAgTestIds:function(){return Zk},styleMaterial:function(){return GC},tabStyleAlpine:function(){return DC},tabStyleBase:function(){return SC},tabStyleMaterial:function(){return FC},tabStyleQuartz:function(){return xC},tabStyleRolodex:function(){return MC},themeAlpine:function(){return BC},themeBalham:function(){return HC},themeMaterial:function(){return zC},themeQuartz:function(){return IC},wrapAgTestIdFor:function(){return qk}});var i=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,o){const i=t?this.allAsyncListeners:this.allSyncListeners;let n=i.get(e);return!n&&o&&(n=new Set,i.set(e,n)),n}noRegisteredListenersExist(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size}addEventListener(e,t,o=!1){this.getListeners(e,o,!0).add(t)}removeEventListener(e,t,o=!1){const i=this.getListeners(e,o,!1);i&&(i.delete(t),0===i.size&&(o?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){this.getGlobalListeners(t).add(e)}removeGlobalListener(e,t=!1){this.getGlobalListeners(t).delete(e)}dispatchEvent(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const o=e.type;if(t&&"event"in e){const t=e.event;t instanceof Event&&(e.eventPath=t.composedPath())}const{frameworkOverrides:i}=this,n=e=>{const o=i?()=>i.wrapIncoming(e):e;t?this.dispatchAsync(o):o()},s=this.getListeners(o,t,!1);if((s?.size??0)>0){const t=new Set(s);for(const o of t)s?.has(o)&&n(()=>o(e))}const r=this.getGlobalListeners(t);if(r.size>0){const t=new Set(r);for(const i of t)n(()=>i(o,e))}}getGlobalListeners(e){return e?this.globalAsyncListeners:this.globalSyncListeners}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const e=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(e):e(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[];for(const t of e)t()}};function n(e){return null==e||""===e?null:e}function s(e){return null!=e&&""!==e}function r(e){return!s(e)}function a(e){return null!=e&&"function"===typeof e.toString?e.toString():null}function l(e,t){const o=e?JSON.stringify(e):null,i=t?JSON.stringify(t):null;return o===i}function d(e,t,o={}){o.transform&&(e=o.transform(e),t=o.transform(t));const i=null==e,n=null==t;if(e?.toNumber&&(e=e.toNumber()),t?.toNumber&&(t=t.toNumber()),i&&n)return 0;if(i)return-1;if(n)return 1;function s(e,t){return e>t?1:e<t?-1:0}if("string"!==typeof e)return s(e,t);if(!o.accentedCompare)return s(e,t);try{return e.localeCompare(t)}catch(r){return s(e,t)}}var c=/[&<>"']/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"};function h(e){return e?.toString().toString()??null}function g(e){return h(e)?.replace(c,e=>u[e])??null}function p(e){return"string"===typeof e&&e.startsWith("=")&&e.length>1}function f(e){return e.eRootDiv.getRootNode()}function m(e){return f(e).activeElement}function v(e){const{gos:t,eRootDiv:o}=e;let i=null;const n=t.get("getDocument");return n&&s(n)?i=n():o&&(i=o.ownerDocument),i&&s(i)?i:document}function C(e){const t=m(e);return null===t||t===v(e).body}function w(e){const t=v(e);return t.defaultView||window}function b(e){let t=null,o=null;try{t=v(e).fullscreenElement}catch(i){}finally{t||(t=f(e));const i=t.querySelector("body");o=i||(t instanceof ShadowRoot?t:t instanceof Document?t?.documentElement:t)}return o}function y(e){const t=b(e);return t?.clientWidth??(window.innerWidth||-1)}function S(e){const t=b(e);return t?.clientHeight??(window.innerHeight||-1)}function R(e,t,o){null==o||"string"===typeof o&&""==o?E(e,t):x(e,t,o)}function x(e,t,o){e.setAttribute(F(t),o.toString())}function E(e,t){e.removeAttribute(F(t))}function F(e){return`aria-${e}`}function P(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function D(e){const t=e?.direction;return"asc"===t?"ascending":"desc"===t?"descending":"mixed"===t?"other":"none"}function k(e){return Number.parseInt(e.getAttribute("aria-posinset"),10)}function M(e){return e.getAttribute("aria-label")}function A(e,t){R(e,"label",t)}function T(e,t){R(e,"labelledby",t)}function I(e,t){R(e,"describedby",t)}function L(e,t){R(e,"live",t)}function B(e,t){R(e,"atomic",t)}function O(e,t){R(e,"relevant",t)}function H(e,t){R(e,"invalid",t)}function V(e,t){R(e,"level",t)}function G(e,t){R(e,"disabled",t)}function N(e,t){R(e,"hidden",t)}function z(e,t){R(e,"activedescendant",t)}function W(e,t){x(e,"expanded",t)}function _(e){E(e,"expanded")}function U(e,t){x(e,"setsize",t)}function $(e,t){x(e,"posinset",t)}function q(e,t){x(e,"multiselectable",t)}function j(e,t){x(e,"rowcount",t)}function K(e,t){x(e,"rowindex",t)}function Q(e,t){x(e,"rowspan",t)}function X(e,t){x(e,"colcount",t)}function Y(e,t){x(e,"colindex",t)}function Z(e,t){x(e,"colspan",t)}function J(e,t){x(e,"sort",t)}function ee(e){E(e,"sort")}function te(e,t){R(e,"selected",t)}function oe(e,t){x(e,"checked",void 0===t?"mixed":t)}function ie(e,t){R(e,"controls",t)}function ne(e,t){ie(e,t.id),T(t,e.id)}function se(e,t){R(e,"owns",t)}function re(e,t){R(e,"haspopup",!1===t?null:t)}function ae(e,t){return void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}function le(e,t,o){const i=e.parentElement;let n=i&&i.firstChild;while(n)t&&n.classList.toggle(t,n===e),o&&n.classList.toggle(o,n!==e),n=n.nextSibling}var de="[tabindex], input, select, button, textarea, [href]",ce="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function ue(e){if(!e)return!1;const t=e.matches("input, select, button, textarea");if(!t)return!1;const o=e.matches(ce);return!!o&&Pe(e)}function he(e,t,o={}){const{skipAriaHidden:i}=o;e.classList.toggle("ag-hidden",!t),i||N(e,!t)}function ge(e,t,o={}){const{skipAriaHidden:i}=o;e.classList.toggle("ag-invisible",!t),i||N(e,!t)}function pe(e,t){const o="disabled",i=t?e=>e.setAttribute(o,""):e=>e.removeAttribute(o);i(e);const n=e.querySelectorAll("input")??[];for(const s of n)i(s)}function fe(e,t,o){let i=0;while(e){if(e.classList.contains(t))return!0;if(e=e.parentElement,"number"==typeof o){if(++i>o)break}else if(e===o)break}return!1}function me(e){const{height:t,width:o,borderTopWidth:i,borderRightWidth:n,borderBottomWidth:s,borderLeftWidth:r,paddingTop:a,paddingRight:l,paddingBottom:d,paddingLeft:c,marginTop:u,marginRight:h,marginBottom:g,marginLeft:p,boxSizing:f}=window.getComputedStyle(e),m=Number.parseFloat;return{height:m(t||"0"),width:m(o||"0"),borderTopWidth:m(i||"0"),borderRightWidth:m(n||"0"),borderBottomWidth:m(s||"0"),borderLeftWidth:m(r||"0"),paddingTop:m(a||"0"),paddingRight:m(l||"0"),paddingBottom:m(d||"0"),paddingLeft:m(c||"0"),marginTop:m(u||"0"),marginRight:m(h||"0"),marginBottom:m(g||"0"),marginLeft:m(p||"0"),boxSizing:f}}function ve(e){const t=me(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom-t.borderTopWidth-t.borderBottomWidth:t.height}function Ce(e){const t=me(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight-t.borderLeftWidth-t.borderRightWidth:t.width}function we(e){const{height:t,marginBottom:o,marginTop:i}=me(e);return Math.floor(t+o+i)}function be(e){const{width:t,marginLeft:o,marginRight:i}=me(e);return Math.floor(t+o+i)}function ye(e){const t=e.getBoundingClientRect(),{borderTopWidth:o,borderLeftWidth:i,borderRightWidth:n,borderBottomWidth:s}=me(e);return{top:t.top+(o||0),left:t.left+(i||0),right:t.right+(n||0),bottom:t.bottom+(s||0)}}function Se(e,t){let o=e.scrollLeft;return t&&(o=Math.abs(o)),o}function Re(e,t,o){o&&(t*=-1),e.scrollLeft=t}function xe(e){while(e?.firstChild)e.firstChild.remove()}function Ee(e){e?.parentNode&&e.remove()}function Fe(e){return!!e.offsetParent}function Pe(e){if(e.checkVisibility)return e.checkVisibility({checkVisibilityCSS:!0});const t=!Fe(e)||"visible"!==window.getComputedStyle(e).visibility;return!t}function De(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function ke(e,t,o){o&&o.nextSibling===t||(e.firstChild?o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t):e.appendChild(t))}function Me(e,t){for(let o=0;o<t.length;o++){const i=t[o],n=e.children[o];n!==i&&e.insertBefore(i,n)}}function Ae(e){return e.replace(/[A-Z]/g,e=>`-${e.toLocaleLowerCase()}`)}function Te(e,t){if(t)for(const o of Object.keys(t)){const i=t[o];if(!o?.length||null==i)continue;const n=Ae(o),s=i.toString(),r=s.replace(/\s*!important/g,""),a=r.length!=s.length?"important":void 0;e.style.setProperty(n,r,a)}}function Ie(e){return()=>{const t=e();return!t||(Le(t)||Be(t))}}function Le(e){return e.clientWidth<e.scrollWidth}function Be(e){return e.clientHeight<e.scrollHeight}function Oe(e,t){"flex"===t?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):He(e,t)}function He(e,t){t=Ge(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function Ve(e,t){t=Ge(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function Ge(e){return"number"===typeof e?`${e}px`:e}function Ne(e){return e instanceof Node||e instanceof HTMLElement}function ze(e,t,o){null==o||""===o?e.removeAttribute(t):e.setAttribute(t,o.toString())}function We(e,t,o){const i=w(e),n=i.ResizeObserver,s=n?new n(o):null;return s?.observe(t),()=>s?.disconnect()}function _e(e,t){const o=w(e);o.requestAnimationFrame?o.requestAnimationFrame(t):o.webkitRequestAnimationFrame?o.webkitRequestAnimationFrame(t):o.setTimeout(t,0)}var Ue,$e="data-ref";function qe(){return Ue??(Ue=document.createTextNode(" ")),Ue.cloneNode()}function je(e){const{attrs:t,children:o,cls:i,ref:n,role:s,tag:r}=e,a=document.createElement(r);if(i&&(a.className=i),n&&a.setAttribute($e,n),s&&a.setAttribute("role",s),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(o)if("string"===typeof o)a.textContent=o;else{let e=!0;for(const t of o)t&&("string"===typeof t?(a.appendChild(document.createTextNode(t)),e=!1):"function"===typeof t?a.appendChild(t()):(e&&(a.appendChild(qe()),e=!1),a.append(je(t)),a.appendChild(qe())))}return a}var Ke=["touchstart","touchend","touchmove","touchcancel","scroll"],Qe=["wheel"],Xe={},Ye=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},t=t=>{if("boolean"===typeof Xe[t])return Xe[t];const o=document.createElement(e[t]||"div");return t="on"+t,Xe[t]=t in o};return t})();function Ze(e,t){return!(!t||!e)&&et(t).indexOf(e)>=0}function Je(e){const t=[];let o=e.target;while(o)t.push(o),o=o.parentElement;return t}function et(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():Je(t)}function tt(e,t,o){const i=ot(t);let n;null!=i&&(n={passive:i}),e.addEventListener(t,o,n)}var ot=e=>{const t=Ke.includes(e),o=Qe.includes(e);return!!t||!o&&void 0};function it(e,t,o){if(0===o)return!1;const i=Math.abs(e.clientX-t.clientX),n=Math.abs(e.clientY-t.clientY);return Math.max(i,n)<=o}var nt=(e,t)=>{const o=e.identifier;for(let i=0,n=t.length;i<n;++i){const e=t[i];if(e.identifier===o)return e}return null};function st(e,t){return e.gos.isElementInThisInstance(t.target)}function rt(e,t,o){const i=e.getBoundingClientRect(),n=i.height,s=y(o)-2,r=S(o)-2,a=e.offsetParent;if(!a)return;const l=ye(e.offsetParent),{clientY:d,clientX:c}=t;let u=d-l.top-n/2,h=c-l.left-10;const g=v(o),p=g.defaultView||window,f=p.pageYOffset||g.documentElement.scrollTop,m=p.pageXOffset||g.documentElement.scrollLeft;s>0&&h+e.clientWidth>s+m&&(h=s+m-e.clientWidth),h<0&&(h=0),r>0&&u+e.clientHeight>r+f&&(u=r+f-e.clientHeight),u<0&&(u=0),e.style.left=`${h}px`,e.style.top=`${u}px`}var at=(e,...t)=>{for(const o of t){const[t,i,n,s]=o;t.addEventListener(i,n,s),e.push(o)}},lt=e=>{if(e){for(const[t,o,i,n]of e)t.removeEventListener(o,i,n);e.length=0}},dt=e=>{e.cancelable&&e.preventDefault()};function ct(e,t){return t}function ut(e){return e?.getLocaleTextFunc()??ct}function ht(e,t,o,i){const n=t[o];return e.getLocaleTextFunc()(o,"function"===typeof n?n(i):n,i)}function gt(e){return(t,o,i)=>e({key:t,defaultValue:o,variableValues:i})}function pt(e){return(t,o,i)=>{let n=e?.[t];if(n&&i?.length){let e=0;while(1){if(e>=i.length)break;const t=n.indexOf("${variable}");if(-1===t)break;n=n.replace("${variable}",i[e++])}}return n??o}}var ft=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){const{destroyFunctions:e}=this;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,t,o){this.localEventService||(this.localEventService=new i),this.localEventService.addEventListener(e,t,o)}removeEventListener(e,t,o){this.localEventService?.removeEventListener(e,t,o)}dispatchLocalEvent(e){this.localEventService?.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventSvc,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){const o=[];for(const i of Object.keys(t)){const n=t[i];n&&o.push(this._setupListener(e,i,n))}return o}_setupListener(e,t,o){if(this.destroyed)return()=>null;let i;if(mt(e))e.__addEventListener(t,o),i=()=>(e.__removeEventListener(t,o),null);else{const n=vt(e);e instanceof HTMLElement?tt(e,t,o):n?e.addListener(t,o):e.addEventListener(t,o),i=n?()=>(e.removeListener(t,o),null):()=>(e.removeEventListener(t,o),null)}return this.destroyFunctions.push(i),()=>(i(),this.destroyFunctions=this.destroyFunctions.filter(e=>e!==i),null)}setupPropertyListener(e,t){const{gos:o}=this;o.addPropertyEventListener(e,t);const i=()=>(o.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(i),()=>(i(),this.destroyFunctions=this.destroyFunctions.filter(e=>e!==i),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupPropertyListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const o=e.join("-")+this.propertyListenerId++,i=e=>{if(e.changeSet){if(e.changeSet&&e.changeSet.id===this.lastChangeSetIdLookup[o])return;this.lastChangeSetIdLookup[o]=e.changeSet.id}const i={type:"propertyChanged",changeSet:e.changeSet,source:e.source};t(i)};for(const n of e)this.setupPropertyListener(n,i)}getLocaleTextFunc(){return ut(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){const o=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),o}createBean(e,t,o){return(t||this.stubContext).createBean(e,o)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function mt(e){return void 0!==e.__addEventListener}function vt(e){return"global"===e.eventServiceType}var Ct=class extends ft{},wt=new Set,bt=(e,t)=>{wt.has(t)||(wt.add(t),e())};bt._set=wt;var yt={pending:!1,funcs:[]},St={pending:!1,funcs:[]};function Rt(e,t="setTimeout",o){const i="raf"===t?St:yt;if(i.funcs.push(e),i.pending)return;i.pending=!0;const n=()=>{const e=i.funcs.slice();i.funcs.length=0,i.pending=!1;for(const t of e)t()};"raf"===t?_e(o,n):window.setTimeout(n,0)}function xt(e,t,o){let i;return function(...n){const s=this;return window.clearTimeout(i),i=window.setTimeout(function(){e.isAlive()&&t.apply(s,n)},o),i}}function Et(e,t){let o=0;return function(...i){const n=this,s=Date.now();s-o<t||(o=s,e.apply(n,i))}}function Ft(e,t,o,i=100){const n=Date.now();let s=null,r=!1;const a=()=>{null!=s&&(window.clearInterval(s),s=null)};e.addDestroyFunc(a);const l=()=>{const e=Date.now()-n>i;(t()||e)&&(o(),r=!0,a())};l(),r||(s=window.setInterval(l,10))}var Pt=new Set(["__proto__","constructor","prototype"]);function Dt(e,t){if(null!=e)if(Array.isArray(e))for(let o=0;o<e.length;o++)t(o.toString(),e[o]);else for(const o of Object.keys(e).filter(e=>!Pt.has(e)))t(o,e[o])}function kt(e,t,o=!0,i=!1){s(t)&&Dt(t,(t,n)=>{let s=e[t];if(s!==n){if(i){const o=null==s&&null!=n;if(o){const o="object"===typeof n&&n.constructor===Object;o&&(s={},e[t]=s)}}Mt(n)&&Mt(s)&&!Array.isArray(s)?kt(s,n,o,i):(o||void 0!==n)&&(e[t]=n)}})}function Mt(e){return"object"===typeof e&&null!==e}var At=class e{static applyGlobalGridOptions(t){if(!e.gridOptions)return{...t};let o={};return kt(o,e.gridOptions,!0,!0),"deep"===e.mergeStrategy?kt(o,t,!0,!0):o={...o,...t},e.gridOptions.context&&(o.context=e.gridOptions.context),t.context&&("deep"===e.mergeStrategy&&o.context&&kt(t.context,o.context,!0,!0),o.context=t.context),o}static applyGlobalGridOption(t,o){if("deep"===e.mergeStrategy){const i=Lt(t);if(i&&"object"===typeof i&&"object"===typeof o)return e.applyGlobalGridOptions({[t]:o})[t]}return o}};At.gridOptions=void 0,At.mergeStrategy="shallow";var Tt=At;function It(e,t="shallow"){Tt.gridOptions=e,Tt.mergeStrategy=t}function Lt(e){return Tt.gridOptions?.[e]}var Bt={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:"\t",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,cellFlashDuration:500,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,refreshAfterGroupEdit:!1,rowDragInsertDelay:500,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:"never",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:"clientSide",asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSidePivotResultFieldSeparator:"_",viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:"xy",suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1,columnMenu:"new",reactiveCustomComponents:!0,suppressSetFilterByDefault:!1,enableFilterHandlers:!1},Ot="https://www.ag-grid.com";function Ht(e,t,...o){e.get("debug")&&console.log("AG Grid: "+t,...o)}function Vt(e,...t){bt(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function Gt(e,...t){bt(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var Nt,zt=new Set,Wt={},_t={},Ut=!1,$t=!1,qt=!1;function jt(e){const[t,o]=e.version.split(".")||[],[i,n]=Nt.split(".")||[];return t===i&&o===n}function Kt(e){Nt||(Nt=e.version);const t=e=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${e} Please update all modules to the same version.`;e.version?jt(e)||Gt(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${Nt}.`)):Gt(t(`'${e.moduleName}' is incompatible.`));const o=e.validate?.();o&&!o.isValid&&Gt(`${o.message}`)}function Qt(e,t,o=!1){o||(Ut=!0),Kt(e);const i=e.rowModels??["all"];let n;zt.add(e),void 0!==t?($t=!0,void 0===_t[t]&&(_t[t]={}),n=_t[t]):n=Wt;for(const s of i)void 0===n[s]&&(n[s]={}),n[s][e.moduleName]=e;if(e.dependsOn)for(const s of e.dependsOn)Qt(s,t,o)}function Xt(e){delete _t[e]}function Yt(e,t,o){const i=o=>!!Wt[o]?.[e]||!!_t[t]?.[o]?.[e];return i(o)||i("all")}function Zt(){return $t}function Jt(e,t){const o=_t[e]??{};return[...Object.values(Wt["all"]??{}),...Object.values(o["all"]??{}),...Object.values(Wt[t]??{}),...Object.values(o[t]??{})]}function eo(){return new Set(zt)}function to(e,t){const o=_t[e]??{};return[...Object.values(o["all"]??{}),...Object.values(o[t]??{})]}function oo(){return Ut}function io(){return qt}function no(){qt=!0}var so=class{static register(e){Qt(e,void 0)}static registerModules(e){for(const t of e)Qt(t,void 0)}},ro="35.0.0",ao=2e3,lo=100,co="_version_",uo=null,ho=`${Ot}/javascript-data-grid`;function go(e){uo=e}function po(e){ho=e}function fo(e,t,o){return uo?.(e,t)??[Ro(e,t,o)]}function mo(e,t,o,i,n){e(`${i?"warning":"error"} #${t}`,...fo(t,o,n))}function vo(e){if(!e)return String(e);const t={};for(const o of Object.keys(e))"object"!==typeof e[o]&&"function"!==typeof e[o]&&(t[o]=e[o]);return JSON.stringify(t)}function Co(e){let t=e;return e instanceof Error?t=e.toString():"object"===typeof e&&(t=vo(e)),t}function wo(e){return void 0===e?"undefined":null===e?"null":e}function bo(e,t){return`${e}?${t.toString()}`}function yo(e,t,o){const i=Array.from(t.entries()).sort((e,t)=>t[1].length-e[1].length);let n=bo(e,t);for(const[s,r]of i){if(s===co)continue;const i=n.length-o;if(i<=0)break;const a="...",l=i+a.length,d=r.length-l>lo?r.slice(0,r.length-l)+a:r.slice(0,lo)+a;t.set(s,d),n=bo(e,t)}return n}function So(e,t){const o=new URLSearchParams;if(o.append(co,ro),t)for(const s of Object.keys(t))o.append(s,Co(t[s]));const i=`${ho}/errors/${e}`,n=bo(i,o);return n.length<=ao?n:yo(i,o,ao)}var Ro=(e,t,o)=>{const i=So(e,t),n=`${o?o+" \n":""}Visit ${i}`;return io()?n:`${n}${o?"":" \n Alternatively register the ValidationModule to see the full message in the console."}`};function xo(...e){mo(Vt,e[0],e[1],!0)}function Eo(...e){mo(Gt,e[0],e[1],!1)}function Fo(e,t,o){mo(Gt,e,t,!1,o)}function Po(e,t,o){mo(Vt,e,t,!0,o)}function Do(e,t){const o=t[0];return`error #${o} `+fo(o,t[1],e).join(" ")}function ko(...e){return Do(void 0,e)}function Mo(...e){return Do("\n",e)}function Ao(e,t){return e.get("rowModelType")===t}function To(e,t){return Ao(e,"clientSide")}function Io(e,t){return Ao(e,"serverSide")}function Lo(e,t){return e.get("domLayout")===t}function Bo(e){return void 0!==Ci(e)}function Oo(e){return"function"===typeof e.get("getRowHeight")}function Ho(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function Vo({gos:e,formula:t}){const o=e.get("rowNumbers");return o||!!t?.active&&!1!==o}function Go(e,t,o=!1,i){const{gos:n,environment:s}=e;if(null==i&&(i=s.getDefaultRowHeight()),Oo(n)){if(o)return{height:i,estimated:!0};const e={node:t,data:t.data},s=n.getCallback("getRowHeight")(e);if(Wo(s))return 0===s&&xo(23),{height:Math.max(1,s),estimated:!1}}if(t.detail&&n.get("masterDetail"))return No(n);const r=n.get("rowHeight"),a=r&&Wo(r)?r:i;return{height:a,estimated:!1}}function No(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return Wo(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function zo(e){const{environment:t,gos:o}=e,i=o.get("rowHeight");if(!i||r(i))return t.getDefaultRowHeight();const n=t.refreshRowHeightVariable();return-1!==n?n:(xo(24),t.getDefaultRowHeight())}function Wo(e){return!isNaN(e)&&"number"===typeof e&&isFinite(e)}function _o(e,t,o){const i=t[e.getDomDataKey()];return i?i[o]:void 0}function Uo(e,t,o,i){const n=e.getDomDataKey();let s=t[n];r(s)&&(s={},t[n]=s),s[o]=i}function $o(e){return!e.get("ensureDomOrder")&&e.get("animateRows")}function qo(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||Lo(e,"print"))}function jo(e){const t=e.get("autoGroupColumnDef");return!t?.comparator&&!e.get("treeData")}function Ko(e){const t=e.get("groupAggFiltering");return"function"===typeof t?e.getCallback("groupAggFiltering"):!0===t?()=>!0:void 0}function Qo(e){return e.get("grandTotalRow")}function Xo(e){const t=e.get("groupTotalRow");return"function"===typeof t?e.getCallback("groupTotalRow"):()=>t??void 0}function Yo(e){const t=!!e.get("groupHideOpenParents");return!!t||"multipleColumns"===e.get("groupDisplayType")}function Zo(e,t){return!t&&"groupRows"===e.get("groupDisplayType")}function Jo(e,t,o){return!!t.group&&!t.footer&&Zo(e,o)}function ei(e){const t=e.getCallback("getRowId");return void 0===t?t:e=>{let o=t(e);return"string"!==typeof o&&(bt(()=>xo(25,{id:o}),"getRowIdString"),o=String(o)),o}}function ti(e,t){const o=e.get("groupHideParentOfSingleChild");return!0===o||(!("leafGroupsOnly"!==o||!t.leafGroup)||(!!e.get("groupRemoveSingleChildren")||!(!e.get("groupRemoveLowestSingleChildren")||!t.leafGroup)))}function oi(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}function ii(e,t){const o=e.get("suppressGroupChangesColumnVisibility");if(!0===o)return!1;if(t&&"suppressHideOnGroup"===o)return!1;if(!t&&"suppressShowOnUngroup"===o)return!1;const i=e.get("suppressRowGroupHidesColumns");if(t&&!0===i)return!1;const n=e.get("suppressMakeColumnVisibleAfterUnGroup");return!(!t&&!0===n)}function ni(e){return e?.checkboxes??!0}function si(e){return"multiRow"===e?.mode&&(e.headerCheckbox??!0)}function ri(e){if("object"===typeof e)return e.checkboxLocation??"selectionColumn"}function ai(e){return e?.hideDisabledCheckboxes??!1}function li(e){const t=e.get("rowSelection");return"string"!==typeof t}function di(e){return void 0!==e.get("cellSelection")}function ci(e){const t=e.get("cellSelection"),o=void 0!==t;return o?"boolean"!==typeof t&&(t?.suppressMultiRanges??!1):e.get("suppressMultiRangeSelection")}function ui(e){const t=e.get("cellSelection"),o=void 0!==t;return o?!!t:e.get("enableRangeSelection")}function hi(e){const t=e.get("cellSelection"),o=void 0!==t;return o?"boolean"!==typeof t&&"fill"===t.handle?.mode?t.handle:void 0:{mode:"fill",setFillValue:e.get("fillOperation"),direction:e.get("fillHandleDirection"),suppressClearOnFillReduction:e.get("suppressClearOnFillReduction")}}function gi(e){const t=e.get("cellSelection")??!1;return("object"===typeof t&&t.enableColumnSelection)??!1}function pi(e){const t=e.get("rowSelection")??"single";if("string"===typeof t){const t=e.get("suppressRowClickSelection"),o=e.get("suppressRowDeselection");return(!t||!o)&&(t?"enableDeselection":!o||"enableSelection")}return("singleRow"===t.mode||"multiRow"===t.mode)&&(t.enableClickSelection??!1)}function fi(e){const t=pi(e);return!0===t||"enableSelection"===t}function mi(e){const t=pi(e);return!0===t||"enableDeselection"===t}function vi(e){const t=e.get("rowSelection");return"string"===typeof t?e.get("isRowSelectable"):t?.isRowSelectable}function Ci(e){const t="beanName"in e&&"gos"===e.beanName?e.get("rowSelection"):e.rowSelection;if("string"===typeof t)switch(t){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(t?.mode){case"multiRow":case"singleRow":return t.mode;default:return}}function wi(e){const t=Ci(e);return"multiRow"===t}function bi(e){const t=e.get("rowSelection");return"string"===typeof t?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??!1}function yi(e){const t=e.get("rowSelection");if("string"===typeof t){const t=e.get("groupSelectsChildren"),o=e.get("groupSelectsFiltered");return t&&o?"filteredDescendants":t?"descendants":"self"}return"multiRow"===t?.mode?t.groupSelects:void 0}function Si(e,t=!0){const o=e.get("rowSelection");return"object"!==typeof o?t?"all":void 0:"multiRow"===o.mode?o.selectAll:"all"}function Ri(e){const t=e.get("rowSelection");return"string"!==typeof t&&("multiRow"===t?.mode&&(t.ctrlASelectsRows??!1))}function xi(e){const t=yi(e);return"descendants"===t||"filteredDescendants"===t}function Ei(e){const t=e.get("rowSelection");return"object"===typeof t&&t.masterSelects||"self"}function Fi(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function Pi(e){return"legacy"===e.get("columnMenu")}function Di(e){return!Pi(e)}function ki(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function Mi(e,t,o){"object"!==typeof e&&(e={});const i={...e};for(const n of o){const e=t[n];"undefined"!==typeof e&&(i[n]=e)}return i}function Ai(e,t){if(!e)return;const o={};let i=!1;for(const r of Object.keys(e))o[r]=e[r],i=!0;if(!i)return;const n={type:"gridOptionsChanged",options:o};t.dispatchEvent(n);const s={type:"componentStateChanged",...o};t.dispatchEvent(s)}function Ti(e,t){return e.addCommon(t)}function Ii(e,t){return e[t]??e["gridOptions"]?.[t]??Lt(t)??Bt[t]}function Li({gos:e},t){return 2===t.button||t.ctrlKey&&e.get("allowContextMenuWithControlKey")}var Bi={resizable:!0,sortable:!0},Oi=0;function Hi(){return Oi++}function Vi(e){return e instanceof zi}var Gi=["asc","desc",null],Ni=[{type:"absolute",direction:"asc"},{type:"absolute",direction:"desc"},null],zi=class extends Ct{constructor(e,t,o,n){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=o,this.primary=n,this.isColumn=!0,this.instanceId=Hi(),this.autoHeaderHeight=null,this.sortDef=Wi(),this._wasSortExplicitlyRemoved=!1,this.moving=!1,this.resizing=!1,this.menuVisible=!1,this.formulaRef=null,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new i,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=g(o)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}initState(){const{colDef:e,beans:{sortSvc:t,pinnedCols:o,colFlex:i}}=this;t?.initCol(this);const n=e.hide;this.visible=void 0!==n?!n:!e.initialHide,o?.initCol(this),i?.initCol(this)}setColDef(e,t,o){const i=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),i&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent("colDefChanged",o)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.initState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip(),this.initRowSpan(),this.addPivotListener()}initDotNotation(){const{gos:e,colDef:{field:t,tooltipField:o}}=this,i=e.get("suppressFieldDotNotation");this.fieldContainsDots=s(t)&&t.includes(".")&&!i,this.tooltipFieldContainsDots=s(o)&&o.includes(".")&&!i}initMinAndMaxWidths(){const e=this.colDef;this.minWidth=e.minWidth??this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??Number.MAX_SAFE_INTEGER}initTooltip(){this.beans.tooltipSvc?.initCol(this)}initRowSpan(){this.colDef.spanRows&&this.beans.rowSpanSvc?.register(this)}addPivotListener(){const e=this.beans.pivotColDefSvc,t=this.colDef.pivotValueColumn;e&&t&&this.addManagedListeners(t,{colDefChanged:t=>{const o=e.recreateColDef(this.colDef);this.setColDef(o,o,t.source)}})}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){let t;const o=e.width,i=e.initialWidth;return t=null!=o?o:null!=i?i:200,Math.max(Math.min(t,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){return this.beans.showRowGroupCols?.isRowGroupDisplayed(this,e)??!1}isPrimary(){return this.primary}isFilterAllowed(){const e=!!this.colDef.filter;return e}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}__addEventListener(e,t){this.colEventSvc.addEventListener(e,t)}__removeEventListener(e,t){this.colEventSvc.removeEventListener(e,t)}addEventListener(e,t){this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.colEventSvc);const o=this.frameworkEventListenerService?.wrap(e,t)??t;this.colEventSvc.addEventListener(e,o)}removeEventListener(e,t){const o=this.frameworkEventListenerService?.unwrap(e,t)??t;this.colEventSvc.removeEventListener(e,o)}createColumnFunctionCallbackParams(e){return Ti(this.gos,{node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){return this.beans.cellNavigation?.isSuppressNavigable(this,e)??!1}isCellEditable(e){return this.beans.editSvc?.isCellEditable({rowNode:e,column:this})??!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){return this.beans.selectionSvc?.isCellCheckboxSelection(this,e)??!1}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?.suppressPaste??null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){return this.colDef[e]??Bi[e]}isColumnFunc(e,t){if("boolean"===typeof t)return t;if("function"===typeof t){const o=this.createColumnFunctionCallbackParams(e),i=t;return i(o)}return!1}createColumnEvent(e,t){return Ti(this.gos,{type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sortDef.direction}getSortDef(){return this.sortDef.direction?this.sortDef:null}getColDefAllowedSortTypes(){const e=[],{sort:t,initialSort:o}=this.colDef,i=null===t?t:Ki(t?.type),n=null===o?o:Ki(o?.type);return i&&e.push(i),n&&e.push(n),e}getSortingOrder(){const e=this.getColDefAllowedSortTypes().includes("absolute")?Ni:Gi;return(this.colDef.sortingOrder??this.gos.get("sortingOrder")??e).map(e=>Wi(e))}getAvailableSortTypes(){const e=this.getSortingOrder().reduce((e,t)=>(t.direction&&e.push(t.type),e),this.getColDefAllowedSortTypes());return new Set(e)}get wasSortExplicitlyRemoved(){return this._wasSortExplicitlyRemoved}setSortDef(e,t=!1){t||(this._wasSortExplicitlyRemoved=!e.direction),this.sortDef=e}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return"asc"===this.getSort()}isSortDescending(){return"desc"===this.getSort()}isSortNone(){return r(this.getSort())}isSorting(){return s(this.getSort())}getSortIndex(){return this.sortIndex}isMenuVisible(){return this.menuVisible}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,t){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchColEvent("leftChanged",t))}isFilterActive(){return this.filterActive}isHovered(){return xo(261),!!this.beans.colHover?.isHovered(this)}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.dispatchColEvent("firstRightPinnedChanged",t))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.dispatchColEvent("lastLeftPinnedChanged",t))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return"left"===this.pinned||"right"===this.pinned}isPinnedLeft(){return"left"===this.pinned}isPinnedRight(){return"right"===this.pinned}getPinned(){return this.pinned}setVisible(e,t){const o=!0===e;this.visible!==o&&(this.visible=o,this.dispatchColEvent("visibleChanged",t)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){const e=this.getColDef();return!e.suppressSpanHeaderHeight}getFirstRealParent(){let e=this.getOriginalParent();while(e?.isPadding())e=e.getOriginalParent();return e}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e?.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let o=!0;while(e){if(!e.isPadding()){o=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:o}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){const t=Ti(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this});return t}getColSpan(e){if(r(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),o=this.colDef.colSpan(t);return Math.max(o,1)}getRowSpan(e){if(r(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),o=this.colDef.rowSpan(t);return Math.max(o,1)}setActualWidth(e,t,o=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,null!=this.flex&&"flex"!==t&&"gridInitializing"!==t&&(this.flex=null),o||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.dispatchColEvent("widthChanged",e)}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return!0===this.colDef.enablePivot}isAllowValue(){return!0===this.colDef.enableValue}isAllowRowGroup(){return!0===this.colDef.enableRowGroup}isAllowFormula(){return!0===this.colDef.allowFormula}dispatchColEvent(e,t,o){const i=this.createColumnEvent(e,t);o&&kt(i,o),this.colEventSvc.dispatchEvent(i)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function Wi(e){return $i(e)?{direction:e.direction,type:e.type}:{direction:ji(e),type:Ki(e)}}function _i(e){return"asc"===e||"desc"===e||null===e}function Ui(e){return"default"===e||"absolute"===e}function $i(e){if(!e||"object"!==typeof e)return!1;const t=e;return Ui(t.type)&&_i(t.direction)}function qi(e,t){return e?t?e.type===t.type&&e.direction===t.direction:!e||null===e.direction:!t||null===t.direction}function ji(e){return _i(e)?e:null}function Ki(e){return Ui(e)?e:"default"}function Qi(e){return e instanceof Xi}var Xi=class extends Ct{constructor(e,t,o,i){super(),this.colGroupDef=e,this.groupId=t,this.padding=o,this.level=i,this.isColumn=!1,this.expandable=!1,this.instanceId=Hi(),this.expandableListenerRemoveCallback=null,this.expanded=!!e?.openByDefault}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return!!this.children&&this.children.some(e=>e.isVisible())}isPadding(){return this.padding}setExpanded(e){this.expanded=void 0!==e&&e,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}forEachLeafColumn(e){if(this.children)for(const t of this.children)Vi(t)?e(t):Qi(t)&&t.forEachLeafColumn(e)}addLeafColumns(e){if(this.children)for(const t of this.children)Vi(t)?e.push(t):Qi(t)&&t.addLeafColumns(e)}getColumnGroupShow(){const e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const e=this.onColumnVisibilityChanged.bind(this);for(const t of this.getLeafColumns())t.__addEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=()=>{for(const t of this.getLeafColumns())t.__removeEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,o=!1;const i=this.findChildrenRemovingPadding();for(let s=0,r=i.length;s<r;s++){const n=i[s];if(!n.isVisible())continue;const r=n.getColumnGroupShow();"open"===r?(e=!0,o=!0):"closed"===r?(t=!0,o=!0):(e=!0,t=!0)}const n=e&&t&&o;this.expandable!==n&&(this.expandable=n,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){const e=[],t=o=>{for(const i of o){const o=Qi(i)&&i.isPadding();o?t(i.children):e.push(i)}};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},Yi={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function Zi(e,t,o){const i={},n=e.gos;return Object.assign(i,n.get("defaultColGroupDef")),Object.assign(i,t),n.validateColDef(i,o),i}var Ji=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=a(e);let o=0;while(1){let i=e??t;if(i?0!==o&&(i+="_"+o):i=o,!this.existingKeys[i]){const t=String(i);return e&&o>0&&xo(273,{providedId:e,usedId:t}),this.existingKeys[t]=!0,t}o++}}},en=Object.freeze([]);function tn(e){if(e?.length)return e[e.length-1]}function on(e,t,o){if(e===t)return!0;if(!e||!t)return null==e&&null==t;const i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n]&&!o?.(e[n],t[n]))return!1;return!0}function nn(e,t){if(e)for(const o of e)if(t(o))return!0}function sn(e,t){const o=e.indexOf(t);o>=0&&e.splice(o,1)}function rn(e,t){let o=0,i=0;for(;o<e.length;o++)t.includes(e[o])||(e[i]=e[o],i++);while(i<e.length)e.pop()}function an(e,t,o){for(let i=0;i<t.length;i++)sn(e,t[i]);for(let i=t.length-1;i>=0;i--)e.splice(o,0,t[i])}function ln(e){return[].concat.apply([],e)}var dn="ag-Grid-AutoColumn",cn="ag-Grid-SelectionColumn",un="ag-Grid-RowNumbersColumn",hn="ag-Grid-HierarchyColumn";function gn(e){const t=[],o=e=>{for(let i=0;i<e.length;i++){const n=e[i];Vi(n)?t.push(n):Qi(n)&&o(n.getChildren())}};return o(e),t}function pn(e){return e.reduce((e,t)=>e+t.getActualWidth(),0)}function fn(e,t,o){const i={};if(!t)return;zn(null,t,e=>{i[e.getInstanceId()]=e}),o&&zn(null,o,e=>{i[e.getInstanceId()]=null});const n=Object.values(i).filter(e=>null!=e);e.context.destroyBeans(n)}function mn(e){const t=e.getId();return t.startsWith(dn)}function vn(e){const t="string"===typeof e?e:"getColId"in e?e.getColId():e.colId;return t?.startsWith(cn)??!1}function Cn(e){const t="string"===typeof e?e:"getColId"in e?e.getColId():e.colId;return t?.startsWith(un)??!1}function wn(e){return vn(e)||Cn(e)}function bn(e){let t=[];return e instanceof Array?t=e:"string"===typeof e&&(t=e.split(",")),t}function yn(e,t){return on(e,t,(e,t)=>e.getColId()===t.getColId())}function Sn(e){e.map={};for(const t of e.list)e.map[t.getId()]=t}function Rn(e){return"optionsUpdated"===e?"gridOptionsChanged":e}function xn(e,t){const o=e===t,i=e.getColDef()===t,n=e.getColId()==t;return o||i||n}var En=(e,t)=>(o,i)=>{const n={value1:void 0,value2:void 0};let r=!1;return e&&(void 0!==e[o]&&(n.value1=e[o],r=!0),s(i)&&void 0!==e[i]&&(n.value2=e[i],r=!0)),!r&&t&&(void 0!==t[o]&&(n.value1=t[o]),s(i)&&void 0!==t[i]&&(n.value2=t[i])),n};function Fn(e,t){const o={...e,sort:void 0,colId:t},i=Pn(e);return i&&(o.sort=i.direction,o.sortType=i.type),o}function Pn(e){const{sort:t,initialSort:o}=e,i=$i(t)||_i(t),n=$i(o)||_i(o);return i?Wi(t):n?Wi(o):null}var Dn=(e,t)=>{Qi(e)&&e.setupExpandable(),e.originalParent=t};function kn(e,t=null,o,i,n){const{existingCols:s,existingGroups:r}=An(i),a=new Map(s.map(e=>[e.getId(),e])),l=new Map(r.map(e=>[e.getId(),e]));let d=0;const c=(t,i)=>{if(d=Math.max(d,i),Nn(t)){if(!e.colGroupSvc)return null;const o=t.groupId,n=l.get(o),s=Zi(e,t,o),r=new Xi(s,o,!1,i);return e.context.createBean(r),n&&r.setExpanded(n.isExpanded()),r.setChildren(t.children.map(e=>c(e,i+1))),r}const s=t.colId;let r=a.get(s);const u=Hn(e,t,r?.getColId()??s);return r?(r.setColDef(u,t,n),Bn(e,r,u,n)):(r=new zi(u,t,s,o),e.context.createBean(r)),e.dataTypeSvc?.addColumnListeners(r),r},u=t?.map(e=>c(e,0))??[];let h=0;const g={getUniqueKey:(e,t)=>String(++h)},p=e.colGroupSvc?e.colGroupSvc.balanceColumnTree(u,0,d,g):u;return zn(null,p,Dn),{columnTree:p,treeDepth:d}}function Mn(e,t=null,o,i,n){const s=new Ji,{existingCols:r,existingGroups:a,existingColKeys:l}=An(i);s.addExistingKeys(l);const d=Tn(e,t,0,o,r,s,a,n),{colGroupSvc:c}=e,u=c?.findMaxDepth(d,0)??0,h=c?c.balanceColumnTree(d,0,u,s):d;return zn(null,h,Dn),{columnTree:h,treeDepth:u}}function An(e){const t=[],o=[],i=[];return e&&zn(null,e,e=>{if(Qi(e)){const t=e;o.push(t)}else{const o=e;i.push(o.getId()),t.push(o)}}),{existingCols:t,existingGroups:o,existingColKeys:i}}function Tn(e,t,o,i,n,s,r,a){if(!t)return[];const{colGroupSvc:l}=e,d=new Array(t.length);for(let c=0;c<d.length;c++){const u=t[c];l&&Nn(u)?d[c]=l.createProvidedColumnGroup(i,u,o,n,s,r,a):d[c]=In(e,i,u,n,s,a)}return d}function In(e,t,o,i,n,s){const r=On(o,i);r&&i?.splice(r.idx,1);let a=r?.column;if(a){const t=Hn(e,o,a.getColId());a.setColDef(t,o,s),Bn(e,a,t,s)}else{const i=n.getUniqueKey(o.colId,o.field),s=Hn(e,o,i);a=new zi(s,o,i,t),e.context.createBean(a)}return e.dataTypeSvc?.addColumnListeners(a),a}function Ln(e,t,o,i,n,s,r,a){const{sortSvc:l,pinnedCols:d,colFlex:c}=e;void 0!==o&&t.setVisible(!o,a),l&&(l.updateColSort(t,i,a),void 0!==n&&l.setColSortIndex(t,n)),void 0!==s&&d?.setColPinned(t,s),void 0!==r&&c?.setColFlex(t,r)}function Bn(e,t,o,i){Ln(e,t,o.hide,o.sort,o.sortIndex,o.pinned,o.flex,i);const n=t.getFlex();if(!(null!=n&&n>0))if(null!=o.width)t.setActualWidth(o.width,i);else{const e=t.getActualWidth();t.setActualWidth(e,i)}}function On(e,t){if(t)for(let o=0;o<t.length;o++){const i=t[o].getUserProvidedColDef();if(!i)continue;const n=null!=e.colId;if(n){if(t[o].getId()===e.colId)return{idx:o,column:t[o]};continue}const s=null!=e.field;if(s){if(i.field===e.field)return{idx:o,column:t[o]}}else if(i===e)return{idx:o,column:t[o]}}}function Hn(e,t,o,i){const{gos:n,dataTypeSvc:s}=e,r={},a=n.get("defaultColDef");kt(r,a,!1,!0);const l=Vn(e,r,t,o);l&&Gn(e,l,r);const d=r.cellDataType;kt(r,t,!1,!0),void 0!==d&&(r.cellDataType=d);const c=n.get("autoGroupColumnDef"),u=jo(n);return t.rowGroup&&c&&u&&kt(r,{sort:c.sort,initialSort:c.initialSort},!1,!0),s?.postProcess(r),s?.validateColDef(r),n.validateColDef(r,o,i),r}function Vn(e,t,o,i){const n=e.dataTypeSvc?.updateColDefAndGetColumnType(t,o,i),s=o.type??n??t.type;return t.type=s,s?bn(s):void 0}function Gn(e,t,o){if(!t.length)return;const i=Object.assign({},Yi),n=e.gos.get("columnTypes")||{};for(const s of Object.keys(n)){const e=n[s];if(s in i)xo(34,{key:s});else{const t=e;t.type&&xo(35),i[s]=e}}for(const s of t){const e=i[s.trim()];e?kt(o,e,!1,!0):xo(36,{t:s})}}function Nn(e){return void 0!==e.children}function zn(e,t,o){if(t)for(let i=0;i<t.length;i++){const n=t[i];Qi(n)&&zn(n,n.getChildren(),o),o(n,e)}}function Wn(e,t){const o=[],i=[],n=[];e.forEach(e=>{const t=e.getColDef().lockPosition;"right"===t?n.push(e):"left"===t||!0===t?o.push(e):i.push(e)});const s=t.get("enableRtl");return s?[...n,...i,...o]:[...o,...i,...n]}function _n(e,t){let o=!0;return zn(null,t,t=>{if(!Qi(t))return;const i=t,n=i.getColGroupDef(),s=n?.marryChildren;if(!s)return;const r=[];for(const o of i.getLeafColumns()){const t=e.indexOf(o);r.push(t)}const a=Math.max.apply(Math,r),l=Math.min.apply(Math,r),d=a-l,c=i.getLeafColumns().length-1;d>c&&(o=!1)}),o}function Un(e,t){if(!e||0==e.length)return;const o=t(e[0]);for(let i=1;i<e.length;i++)if(o!==t(e[i]))return;return o}function $n(e,t,o){if(!t.length)return;const i=1===t.length?t[0]:null,n=Un(t,e=>e.getPinned());e.dispatchEvent({type:"columnPinned",pinned:null!=n?n:null,columns:t,column:i,source:o})}function qn(e,t,o){if(!t.length)return;const i=1===t.length?t[0]:null,n=Un(t,e=>e.isVisible());e.dispatchEvent({type:"columnVisible",visible:n,columns:t,column:i,source:o})}function jn(e,t,o,i){e.dispatchEvent({type:t,columns:o,column:o&&1==o.length?o[0]:null,source:i})}function Kn(e,t,o,i,n=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:1===t.length?t[0]:null,flexColumns:n,finished:o,source:i})}function Qn(e,t,o){const{colModel:i,rowGroupColsSvc:n,pivotColsSvc:r,autoColSvc:a,selectionColSvc:l,colAnimation:d,visibleCols:c,pivotResultCols:u,environment:h,valueColsSvc:g,eventSvc:p,gos:f}=e,m=i.getColDefCols()??[],v=l?.getColumns();if(!m.length&&!v?.length)return!1;if(t?.state&&!t.state.forEach)return xo(32),!1;const C=(i,s,a,l,d)=>{if(!i)return;const c=En(s,t.defaultState),u=c("flex").value1,p=c("sort").value1,f=c("sortType").value1,m=_i(p)||Ui(f),v=Ki(f),C=ji(p),w=m?{type:v,direction:C}:void 0;if(Ln(e,i,c("hide").value1,w,c("sortIndex").value1,c("pinned").value1,u,o),null==u){const e=c("width").value1;if(null!=e){const t=i.getColDef().minWidth??h.getDefaultColumnMinWidth();null!=t&&e>=t&&i.setActualWidth(e,o)}}!d&&i.isPrimary()&&(g?.syncColumnWithState(i,o,c),n?.syncColumnWithState(i,o,c,a),r?.syncColumnWithState(i,o,c,l))},w=(s,d,u)=>{const h=Yn(e,o),g=d.slice(),m={},v={},w=[],b=[],y=[];let S=0;const R=n?.columns.slice()??[],x=r?.columns.slice()??[];for(const e of s){const t=e.colId,o=t.startsWith(dn);if(o){w.push(e),y.push(e);continue}if(vn(t)){b.push(e),y.push(e);continue}const i=u(t);i?(C(i,e,m,v,!1),sn(g,i)):(y.push(e),S+=1)}const E=e=>C(e,null,m,v,!1);g.forEach(E),n?.sortColumns(is.bind(n,m,R)),r?.sortColumns(is.bind(r,v,x)),i.refreshCols(!1,o);const F=(e,t,o=[])=>{for(const i of t){const t=e(i.colId);sn(o,t),C(t,i,null,null,!0)}o.forEach(E)};return F(e=>a?.getColumn(e)??null,w,a?.getColumns()?.slice()),F(e=>l?.getColumn(e)??null,b,l?.getColumns()?.slice()),es(t,i,f),c.refresh(o),p.dispatchEvent({type:"columnEverythingChanged",source:o}),h(),{unmatchedAndAutoStates:y,unmatchedCount:S}};d?.start();let{unmatchedAndAutoStates:b,unmatchedCount:y}=w(t.state||[],m,e=>i.getColDefCol(e));if(b.length>0||s(t.defaultState)){const e=u?.getPivotResultCols()?.list??[];y=w(b,e,e=>u?.getPivotResultCol(e)??null).unmatchedCount}return d?.finish(),0===y}function Xn(e,t){const{colModel:o,autoColSvc:i,selectionColSvc:n,eventSvc:s,gos:a}=e,l=o.getColDefCols();if(!l?.length)return;const d=o.getColDefColTree(),c=gn(d),u=[];let h=1e3,g=1e3;const p=e=>{const t=Jn(e);r(t.rowGroupIndex)&&t.rowGroup&&(t.rowGroupIndex=h++),r(t.pivotIndex)&&t.pivot&&(t.pivotIndex=g++),u.push(t)};i?.getColumns()?.forEach(p),n?.getColumns()?.forEach(p),c?.forEach(p),Qn(e,{state:u},t);const f=i?.getColumns()??[],m=n?.getColumns()??[],v=[...m,...f,...l],C=v.map(e=>({colId:e.colId}));Qn(e,{state:C,applyOrder:!0},t),s.dispatchEvent(Ti(a,{type:"columnsReset",source:t}))}function Yn(e,t){const{rowGroupColsSvc:o,pivotColsSvc:i,valueColsSvc:n,colModel:s,sortSvc:r,eventSvc:a}=e,l={rowGroupColumns:o?.columns.slice()??[],pivotColumns:i?.columns.slice()??[],valueColumns:n?.columns.slice()??[]},d=Zn(e),c={};for(const u of d)c[u.colId]=u;return()=>{const n=(e,o,i,n)=>{const s=o.map(n),r=i.map(n),l=on(s,r);if(l)return;const d=new Set(o);for(const t of i)d.delete(t)||d.add(t);const c=[...d];a.dispatchEvent({type:e,columns:c,column:1===c.length?c[0]:null,source:t})},u=e=>{const t=[];return s.forAllCols(o=>{const i=c[o.getColId()];i&&e(i,o)&&t.push(o)}),t},h=e=>e.getColId();n("columnRowGroupChanged",l.rowGroupColumns,o?.columns??[],h),n("columnPivotChanged",l.pivotColumns,i?.columns??[],h);const g=(e,t)=>{const o=null!=e.aggFunc,i=o!=t.isValueActive(),n=o&&e.aggFunc!=t.getAggFunc();return i||n},p=u(g);p.length>0&&jn(a,"columnValueChanged",p,t);const f=(e,t)=>e.width!=t.getActualWidth();Kn(a,u(f),!0,t);const m=(e,t)=>e.pinned!=t.getPinned();$n(a,u(m),t);const v=(e,t)=>e.hide==t.isVisible();qn(a,u(v),t);const C=(e,t)=>!qi(t.getSortDef(),{type:Ki(e.sortType),direction:ji(e.sort)})||e.sortIndex!=t.getSortIndex(),w=u(C);w.length>0&&r?.dispatchSortChangedEvents(t,w);const b=Zn(e);os(d,b,t,s,a)}}function Zn(e){const{colModel:t,rowGroupColsSvc:o,pivotColsSvc:i}=e,n=t.getColDefCols();if(r(n)||!t.isAlive())return[];const s=o?.columns,a=i?.columns,l=[],d=e=>{const t=e.isRowGroupActive()&&s?s.indexOf(e):null,o=e.isPivotActive()&&a?a.indexOf(e):null,i=e.isValueActive()?e.getAggFunc():null,n=null!=e.getSortIndex()?e.getSortIndex():null;l.push({colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:e.getSort(),sortType:e.getSortDef()?.type,sortIndex:n,aggFunc:i,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:o,flex:e.getFlex()??null})};t.forAllCols(e=>d(e));const c=new Map(t.getCols().map((e,t)=>[e.getColId(),t]));return l.sort((e,t)=>{const o=c.has(e.colId)?c.get(e.colId):-1,i=c.has(t.colId)?c.get(t.colId):-1;return o-i}),l}function Jn(e){const t=(e,t)=>null!=e?e:null!=t?t:null,o=e.getColDef(),i=Wi(t(o.sort,o.initialSort)),n=i.direction,s=i.type,r=t(o.sortIndex,o.initialSortIndex),a=t(o.hide,o.initialHide),l=t(o.pinned,o.initialPinned),d=t(o.width,o.initialWidth),c=t(o.flex,o.initialFlex);let u=t(o.rowGroupIndex,o.initialRowGroupIndex),h=t(o.rowGroup,o.initialRowGroup);null!=u||h||(u=null,h=null);let g=t(o.pivotIndex,o.initialPivotIndex),p=t(o.pivot,o.initialPivot);null!=g||p||(g=null,p=null);const f=t(o.aggFunc,o.initialAggFunc);return{colId:e.getColId(),sort:n,sortType:s,sortIndex:r,hide:a,pinned:l,width:d,flex:c,rowGroup:h,rowGroupIndex:u,pivot:p,pivotIndex:g,aggFunc:f}}function es(e,t,o){if(!e.applyOrder||!e.state)return;const i=[];for(const n of e.state)null!=n.colId&&i.push(n.colId);ts(t.cols,i,t,o)}function ts(e,t,o,i){if(null==e)return;let n=[];const s={};for(const a of t){if(s[a])continue;const t=e.map[a];t&&(n.push(t),s[a]=!0)}let r=0;for(const a of e.list){const e=a.getColId(),t=null!=s[e];if(t)continue;const o=e.startsWith(dn);o?n.splice(r++,0,a):n.push(a)}n=Wn(n,i),_n(n,o.getColTree())?e.list=n:xo(39)}function os(e,t,o,i,n){const s={};for(const c of t)s[c.colId]=c;const r={};for(const c of e)s[c.colId]&&(r[c.colId]=!0);const a=e.filter(e=>r[e.colId]),l=t.filter(e=>r[e.colId]),d=[];l.forEach((e,t)=>{const o=a?.[t];if(o&&o.colId!==e.colId){const e=i.getCol(o.colId);e&&d.push(e)}}),d.length&&n.dispatchEvent({type:"columnMoved",columns:d,column:1===d.length?d[0]:null,finished:!0,source:o})}var is=(e,t,o,i)=>{const n=e[o.getId()],s=e[i.getId()],r=null!=n,a=null!=s;if(r&&a)return n-s;if(r)return-1;if(a)return 1;const l=t.indexOf(o),d=t.indexOf(i),c=l>=0,u=d>=0;return c&&u?l-d:c?-1:1},ns=class extends Ct{constructor(){super(...arguments),this.beanName="colModel",this.pivotMode=!1,this.ready=!1,this.changeEventsDispatching=!1}postConstruct(){this.pivotMode=this.gos.get("pivotMode"),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents","rowNumbers","hidePaddedHeaderRows"],e=>this.refreshAll(Rn(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],this.recreateColumnDefs.bind(this)),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),Rn(e.source)))}createColsFromColDefs(e){const{beans:t}=this,{valueCache:o,colAutosize:i,rowGroupColsSvc:n,pivotColsSvc:s,valueColsSvc:r,visibleCols:a,eventSvc:l,groupHierarchyColSvc:d}=t,c=this.colDefs?Yn(t,e):void 0;o?.expire();const u=this.colDefCols?.list,h=this.colDefCols?.tree,g=Mn(t,this.colDefs,!0,h,e);fn(t,this.colDefCols?.tree,g.columnTree);const p=g.columnTree,f=g.treeDepth,m=gn(p),v={};for(const C of m)v[C.getId()]=C;this.colDefCols={tree:p,treeDepth:f,list:m,map:v},this.createColumnsForService([d],this.colDefCols,e),n?.extractCols(e,u),s?.extractCols(e,u),r?.extractCols(e,u),this.ready=!0,this.changeEventsDispatching=!0,this.refreshCols(!0,e),this.changeEventsDispatching=!1,a.refresh(e),l.dispatchEvent({type:"columnEverythingChanged",source:e}),c&&(this.changeEventsDispatching=!0,c(),this.changeEventsDispatching=!1),l.dispatchEvent({type:"newColumnsLoaded",source:e}),"gridInitializing"===e&&i?.applyAutosizeStrategy()}refreshCols(e,t){if(!this.colDefCols)return;const o=this.cols?.tree;this.saveColOrder();const{autoColSvc:i,selectionColSvc:n,rowNumbersSvc:s,quickFilter:r,pivotResultCols:a,showRowGroupCols:l,rowAutoHeight:d,visibleCols:c,colViewport:u,eventSvc:h,formula:g}=this.beans,p=this.selectCols(a,this.colDefCols);g?.setFormulasActive(p),this.createColumnsForService([i,n,s],p,t);const f=Ho(this.gos,this.showingPivotResult);e&&!f||this.restoreColOrder(p),this.positionLockedCols(p),l?.refresh(),r?.refreshCols(),this.setColSpanActive(),d?.setAutoHeightActive(p),c.clear(),u.clear(),on(o,this.cols.tree)||h.dispatchEvent({type:"gridColumnsChanged"})}createColumnsForService(e,t,o){for(const i of e)i&&(i.createColumns(t,e=>{this.lastOrder=e(this.lastOrder),this.lastPivotOrder=e(this.lastPivotOrder)},o),i.addColumns(t))}selectCols(e,t){const o=e?.getPivotResultCols()??null;this.showingPivotResult=null!=o;const{map:i,list:n,tree:s,treeDepth:r}=o??t;if(this.cols={list:n.slice(),map:{...i},tree:s.slice(),treeDepth:r},o){const e=o.list.some(e=>void 0!==this.cols?.map[e.getColId()]);e||(this.lastPivotOrder=null)}return this.cols}getColsToShow(){if(!this.cols)return[];const{beans:e,showingPivotResult:t,cols:o}=this,{valueColsSvc:i,selectionColSvc:n}=e,s=this.isPivotMode()&&!t,r=n?.isSelectionColumnEnabled(),a=Vo(e),l=i?.columns,d=o.list.filter(e=>{const t=mn(e);if(s){const o=l?.includes(e);return t||o||r&&vn(e)||a&&Cn(e)}return t||e.isVisible()});return d}refreshAll(e){this.ready&&(this.refreshCols(!1,e),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,o){Qn(this.beans,{state:e.map(e=>({colId:"string"===typeof e?e:e.getColId(),hide:!t}))},o)}restoreColOrder(e){const t=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!t)return;const o=t.filter(t=>null!=e.map[t.getId()]);if(0===o.length)return;if(o.length===e.list.length)return void(e.list=o);const i=e=>{const t=e.getOriginalParent();if(!t)return!1;const o=t.getChildren();return o.length>1||i(t)};if(!o.some(e=>i(e))){const t=new Set(o);for(const i of e.list)t.has(i)||o.push(i);return void(e.list=o)}const n=new Map;for(let u=0;u<o.length;u++){const e=o[u];n.set(e,u)}const s=e.list.filter(e=>!n.has(e));if(0===s.length)return void(e.list=o);const r=(e,t)=>{const o=t?t.getOriginalParent():e.getOriginalParent();if(!o)return null;let i=null,s=null;for(const r of o.getChildren())if(r!==t&&r!==e){if(r instanceof zi){const e=n.get(r);if(null==e)continue;(null==i||i<e)&&(i=e,s=r);continue}r.forEachLeafColumn(e=>{const t=n.get(e);null!=t&&(null==i||i<t)&&(i=t,s=e)})}return null==s?r(e,o):s},a=[],l=new Map;for(const u of s){const e=r(u,null);if(null==e){a.push(u);continue}const t=l.get(e);void 0===t?l.set(e,u):Array.isArray(t)?t.push(u):l.set(e,[t,u])}const d=new Array(e.list.length);let c=d.length-1;for(let u=a.length-1;u>=0;u--)d[c--]=a[u];for(let u=o.length-1;u>=0;u--){const e=o[u],t=l.get(e);if(t)if(Array.isArray(t))for(let o=t.length-1;o>=0;o--){const e=t[o];d[c--]=e}else d[c--]=t;d[c--]=e}e.list=d}positionLockedCols(e){e.list=Wn(e.list,this.gos)}saveColOrder(){this.showingPivotResult?this.lastPivotOrder=this.cols?.list??null:this.lastOrder=this.cols?.list??null}getColumnDefs(e){return this.colDefCols&&this.beans.colDefFactory?.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,this.cols?.list??[],e)}setColSpanActive(){this.colSpanActive=!!this.cols?.list.some(e=>null!=e.getColDef().colSpan)}isPivotMode(){return this.pivotMode}setPivotMode(e,t){if(e===this.pivotMode)return;if(this.pivotMode=e,!this.ready)return;this.refreshCols(!1,t);const{visibleCols:o,eventSvc:i}=this.beans;o.refresh(t),i.dispatchEvent({type:"columnPivotModeChanged"})}isPivotActive(){const e=this.beans.pivotColsSvc?.columns;return this.pivotMode&&!!e?.length}recreateColumnDefs(e){if(!this.cols)return;this.beans.autoColSvc?.updateColumns(e);const t=Rn(e.source);this.createColsFromColDefs(t)}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){fn(this.beans,this.colDefCols?.tree),super.destroy()}getColTree(){return this.cols?.tree??[]}getColDefColTree(){return this.colDefCols?.tree??[]}getColDefCols(){return this.colDefCols?.list??null}getCols(){return this.cols?.list??[]}forAllCols(e){const{pivotResultCols:t,autoColSvc:o,selectionColSvc:i,groupHierarchyColSvc:n}=this.beans;nn(this.colDefCols?.list,e)||nn(o?.columns?.list,e)||nn(i?.columns?.list,e)||nn(n?.columns?.list,e)||nn(t?.getPivotResultCols()?.list,e)}getColsForKeys(e){return e?e.map(e=>this.getCol(e)).filter(e=>null!=e):[]}getColDefCol(e){return this.colDefCols?.list?this.getColFromCollection(e,this.colDefCols):null}getCol(e){return null==e?null:this.getColFromCollection(e,this.cols)}getColById(e){return this.cols?.map[e]??null}getColFromCollection(e,t){if(null==t)return null;const{map:o,list:i}=t;if("string"==typeof e&&o[e])return o[e];for(let a=0;a<i.length;a++)if(xn(i[a],e))return i[a];const{autoColSvc:n,selectionColSvc:s,groupHierarchyColSvc:r}=this.beans;return n?.getColumn(e)??s?.getColumn(e)??r?.getColumn(e)??null}},ss=class extends Ct{constructor(){super(...arguments),this.dispatchColumnChangedEvent=jn,this.columns=[],this.columnIndexMap={},this.updateIndexMap=()=>{this.columnIndexMap={},this.columns.forEach((e,t)=>this.columnIndexMap[e.getId()]=t)}}wireBeans(e){this.colModel=e.colModel,this.aggFuncSvc=e.aggFuncSvc,this.visibleCols=e.visibleCols,this.groupHierarchCols=e.groupHierarchyColSvc}sortColumns(e){const{groupHierarchCols:t}=this;this.columns.sort((o,i)=>t?.compareVirtualColumns(o,i)??e(o,i)),this.updateIndexMap()}setColumns(e,t){this.setColList(e,this.columns,this.eventName,!0,!0,this.columnProcessors.set,t)}addColumns(e,t){this.updateColList(e,this.columns,!0,!0,this.columnProcessors.add,this.eventName,t)}removeColumns(e,t){this.updateColList(e,this.columns,!1,!0,this.columnProcessors.remove,this.eventName,t)}getColumnIndex(e){return this.columnIndexMap[e]}setColList(e=[],t,o,i,n,s,r){const a=this.colModel.getCols();if(!a||0===a.length)return;const l=new Map;t.forEach((e,t)=>l.set(e,t)),t.length=0;for(const c of e){const e=this.colModel.getColDefCol(c);e&&t.push(e)}t.forEach((e,t)=>{const o=l.get(e);void 0!==o?i&&o!==t||l.delete(e):l.set(e,0)}),this.updateIndexMap();const d=this.colModel.getColDefCols();for(const c of d??[]){const e=t.indexOf(c)>=0;s(c,e,r)}n&&this.colModel.refreshCols(!1,r),this.visibleCols.refresh(r),this.dispatchColumnChangedEvent(this.eventSvc,o,[...l.keys()],r)}updateColList(e=[],t,o,i,n,s,r){if(!e||0===e.length)return;let a=!1;const l=new Set;for(const c of e){if(!c)continue;const e=this.colModel.getColDefCol(c);if(e){if(l.add(e),o){if(t.indexOf(e)>=0)continue;t.push(e)}else{const o=t.indexOf(e);if(o<0)continue;for(let e=o+1;e<t.length;e++)l.add(t[e]);sn(t,e)}n(e,o,r),a=!0}}if(!a)return;this.updateIndexMap(),i&&this.colModel.refreshCols(!1,r),this.visibleCols.refresh(r);const d=Array.from(l);this.eventSvc.dispatchEvent({type:s,columns:d,column:1===d.length?d[0]:null,source:r})}extractCols(e,t=[]){const o=this.columns,i=[],n=[],{setFlagFunc:s,getIndexFunc:r,getInitialIndexFunc:a,getValueFunc:l,getInitialValueFunc:d}=this.columnExtractors,c=this.colModel.getColDefCols();for(const f of c??[]){const e=!t.includes(f),s=f.getColDef(),c=l(s),u=d(s),h=r(s),g=a(s);let p;const m=void 0!==c,v=void 0!==h,C=void 0!==u,w=void 0!==g;if(p=m?c:v?null!==h&&h>=0:e?C?u:!!w&&(null!=g&&g>=0):o.indexOf(f)>=0,p){const t=e?null!=h||null!=g:null!=h;t?i.push(f):n.push(f)}}const u=e=>{const t=e.getColDef();return r(t)??a(t)};i.sort((e,t)=>u(e)-u(t));const h=[],g=this.groupHierarchCols,p=e=>{g?g.expandColumnInto(h,e):h.push(e)};i.forEach(p);for(const f of o)n.indexOf(f)>=0&&p(f);for(const f of n)h.indexOf(f)<0&&p(f);for(const f of o)h.indexOf(f)<0&&s(f,!1,e);for(const f of h)o.indexOf(f)<0&&s(f,!0,e);return this.columns=h,this.updateIndexMap(),this.columns}restoreColumnOrder(e,t){const o=this.columns,i=this.colModel.getColDefCols();if(!o.length||!i)return e;const n=Object.keys(t),s=new Set(n),r=new Set(n),a=new Set(o.map(e=>{const t=e.getColId();return r.delete(t),t}).concat(n)),l=[],d={};let c=0;for(let w=0;w<i.length;w++){const e=i[w].getColId();a.has(e)&&(l.push(e),d[e]=c++)}let u=1e3,h=!1,g=0;const p=this.columnOrdering.enableProp,f=this.columnOrdering.initialEnableProp,m=this.columnOrdering.indexProp,v=this.columnOrdering.initialIndexProp,C=e=>{const o=d[e];for(let i=g;i<o;i++){const e=l[i];r.has(e)&&(t[e][m]=u++,r.delete(e))}g=o};for(const w of o){const o=w.getColId();if(s.has(o))C(o),t[o][m]=u++;else{const i=w.getColDef(),n=null===i[m]||void 0===i[m]&&null==i[v];if(n){if(!h){const e=i[p]||void 0===i[p]&&i[f];if(e)C(o);else{for(const e of r)t[e][m]=u+d[e];u+=l.length,h=!0}}e[o]||(e[o]={colId:o}),e[o][m]=u++}}}return e}},rs=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let o;return o="number"!==typeof t?0:t+1,this.existingIds[e]=o,o}},as=class extends Ct{};function ls(e,t,o){return o&&e.addDestroyFunc(()=>t.destroyBean(o)),o??e}var ds=null;function cs(e){return"function"===typeof e?.getGui}var us=class{constructor(e){this.cssClassStates={},this.getGui=e}toggleCss(e,t){if(!e)return;if(e.includes(" ")){const o=(e||"").split(" ");if(o.length>1){for(const e of o)this.toggleCss(e,t);return}}const o=this.cssClassStates[e]!==t;o&&e.length&&(this.getGui()?.classList.toggle(e,t),this.cssClassStates[e]=t)}},hs=0,gs=class extends ft{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=hs++,this.cssManager=new us(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(e=>[e.selector,e])),e&&this.setTemplate(e)}preConstruct(){this.wireTemplate(this.getGui());const e="component-"+Object.getPrototypeOf(this)?.constructor?.name;for(const t of this.css??[])this.beans.environment.addGlobalCSS(t,e)}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute($e):null}applyElementsToComponent(e,t,o,i=null){if(void 0===t&&(t=this.getDataRefAttribute(e)),t){const n=this[t];if(n===ds)this[t]=i??e;else{const e=o?.[t];if(!this.suppressDataRefValidation&&!e)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${n}`)}}}createChildComponentsFromTags(e,t){const o=[];for(const i of e.childNodes??[])o.push(i);for(const i of o){if(!(i instanceof HTMLElement))continue;const o=this.createComponentFromElement(i,e=>{const t=e.getGui();if(t)for(const o of i.attributes??[])t.setAttribute(o.name,o.value)},t);if(o){if(o.addItems&&i.children.length){this.createChildComponentsFromTags(i,t);const e=Array.prototype.slice.call(i.children);o.addItems(e)}this.swapComponentForNode(o,e,i)}else i.childNodes&&this.createChildComponentsFromTags(i,t)}}createComponentFromElement(e,t,o){const i=e.nodeName,n=this.getDataRefAttribute(e),s=0===i.indexOf("AG-"),r=s?this.componentSelectors.get(i):null;let a=null;if(r){const e=o&&n?o[n]:void 0;a=new r.component(e),a.setParentComponent(this),this.createBean(a,null,t)}else if(s)throw new Error(`selector: ${i}`);return this.applyElementsToComponent(e,n,o,a),a}swapComponentForNode(e,t,o){const i=e.getGui();t.replaceChild(i,o),t.insertBefore(document.createComment(o.nodeName),i),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e,t){const o=t??this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui());for(const i of e)i.setAttribute("tabindex",o.toString())}setTemplate(e,t,o){let i;i="string"===typeof e||null==e?De(e):je(e),this.setTemplateFromElement(i,t,o)}setTemplateFromElement(e,t,o,i=!1){if(this.eGui=e,this.suppressDataRefValidation=i,t)for(let n=0;n<t.length;n++){const e=t[n];this.componentSelectors.set(e.selector,e)}this.wireTemplate(e,o)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(e){this.parentComponent=e}getParentComponent(){return this.parentComponent}setGui(e){this.eGui=e}queryForHtmlElement(e){return this.eGui.querySelector(e)}getContainerAndElement(e,t){let o=t;return null==e?null:(o||(o=this.eGui),Ne(e)?{element:e,parent:o}:{element:e.getGui(),parent:o})}prependChild(e,t){const{element:o,parent:i}=this.getContainerAndElement(e,t)||{};o&&i&&i.insertAdjacentElement("afterbegin",o)}appendChild(e,t){const{element:o,parent:i}=this.getContainerAndElement(e,t)||{};o&&i&&i.appendChild(o)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:o}=t;ge(this.eGui,e,{skipAriaHidden:o})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:o}=t;he(this.eGui,e,{skipAriaHidden:o});const i={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(i)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(e,t,o){this.eGui.addEventListener(e,t,o),this.addDestroyFunc(()=>this.eGui.removeEventListener(e,t))}addCss(e){this.cssManager.toggleCss(e,!0)}removeCss(e){this.cssManager.toggleCss(e,!1)}toggleCss(e,t){this.cssManager.toggleCss(e,t)}registerCSS(e){this.css||(this.css=[]),this.css.push(e)}},ps=class extends gs{};function fs(e){return"object"===typeof e&&!!e.component}function ms(e){return"function"===typeof e.then}function vs(e,t){return new Cs(o=>{o(window.setInterval(e,t))})}var Cs=class e{constructor(e){this.status=0,this.resolution=null,this.waiters=[],e(e=>this.onDone(e),e=>this.onReject(e))}static all(t){return t.length?new e(e=>{let o=t.length;const i=new Array(o);t.forEach((t,n)=>{t.then(t=>{i[n]=t,o--,0===o&&e(i)})})}):e.resolve()}static resolve(t=null){return new e(e=>e(t))}then(t){return new e(e=>{1===this.status?e(t(this.resolution)):this.waiters.push(o=>e(t(o)))})}onDone(e){this.status=1,this.resolution=e;for(const t of this.waiters)t(e)}onReject(e){}};function ws(e){return!!e&&(e.prototype&&"getGui"in e.prototype)}function bs(e,t,o,i){const{name:n}=o;let s,r,a,l,d,c;if(t){const o=t,u=o[n+"Selector"],h=u?u(i):null,g=t=>{if("string"===typeof t)s=t;else if(null!=t&&!0!==t){const o=e.isFrameworkComponent(t);o?a=t:r=t}};h?(g(h.component),l=h.params,d=h.popup,c=h.popupPosition):g(o[n])}return{compName:s,jsComp:r,fwComp:a,paramsFromSelector:l,popupFromSelector:d,popupPositionFromSelector:c}}var ys=class extends Ct{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(e){this.agCompUtils=e.agCompUtils,this.registry=e.registry,this.frameworkCompWrapper=e.frameworkCompWrapper,this.gridOptions=e.gridOptions}getCompDetailsFromGridOptions(e,t,o,i=!1){return this.getCompDetails(this.gridOptions,e,t,o,i)}getCompDetails(e,t,o,i,n=!1){const{name:s,cellRenderer:r}=t;let a,l,{compName:d,jsComp:c,fwComp:u,paramsFromSelector:h,popupFromSelector:g,popupPositionFromSelector:p}=bs(this.beans.frameworkOverrides,e,t,i);const f=e=>{const t=this.registry.getUserComponent(s,e);t&&(c=t.componentFromFramework?void 0:t.component,u=t.componentFromFramework?t.component:void 0,a=t.params,l=t.processParams)};if(null!=d&&f(d),null==c&&null==u&&null!=o&&f(o),c&&r&&!ws(c)&&(c=this.agCompUtils?.adaptFunction(t,c)),!c&&!u){const{validation:e}=this.beans;return void(!n||d===o&&o?o&&!e&&Eo(146,{comp:o}):d?e?.isProvidedUserComp(d)||Eo(50,{compName:d}):o?e||Eo(260,{...this.gos.getModuleErrorParams(),propName:s,compName:o}):Eo(216,{name:s}))}const m=this.mergeParams(e,t,i,h,a,l),v=null==c,C=c??u;return{componentFromFramework:v,componentClass:C,params:m,type:t,popupFromSelector:g,popupPositionFromSelector:p,newAgStackInstance:()=>this.newAgStackInstance(C,v,m,t)}}newAgStackInstance(e,t,o,i){const n=!t;let s;s=n?new e:this.frameworkCompWrapper.wrap(e,i.mandatoryMethods,i.optionalMethods,i),this.createBean(s);const r=s.init?.(o);return null==r?Cs.resolve(s):r.then(()=>s)}mergeParams(e,t,o,i=null,n,s){const r={...o,...n},a=e,l=a?.[t.name+"Params"];if("function"===typeof l){const e=l(o);kt(r,e)}else"object"===typeof l&&kt(r,l);return kt(r,i),s?s(r):r}},Ss={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},Rs={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},xs={name:"headerComponent",optionalMethods:["refresh"]},Es={name:"innerHeaderComponent"},Fs={name:"innerHeaderGroupComponent"},Ps={name:"headerGroupComponent"},Ds={name:"innerRenderer",cellRenderer:!0,optionalMethods:["afterGuiAttached"]},ks={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},Ms={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"]},As={name:"loadingCellRenderer",cellRenderer:!0},Ts={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},Is={name:"tooltipComponent"},Ls={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},Bs={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},Os={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},Hs={name:"loadingCellRenderer",cellRenderer:!0},Vs={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},Gs={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function Ns(e,t){return e.getCompDetailsFromGridOptions(Rs,"agDragAndDropImage",t,!0)}function zs(e,t,o){return e.getCompDetails(t,Ds,void 0,o)}function Ws(e,t,o){return e.getCompDetails(t,xs,"agColumnHeader",o)}function _s(e,t,o){return e.getCompDetails(t,Es,void 0,o)}function Us(e,t){const o=t.columnGroup.getColGroupDef();return e.getCompDetails(o,Ps,"agColumnGroupHeader",t)}function $s(e,t,o){return e.getCompDetails(t,Fs,void 0,o)}function qs(e,t){return e.getCompDetailsFromGridOptions(Os,void 0,t,!0)}function js(e,t){return e.getCompDetailsFromGridOptions(Hs,"agLoadingCellRenderer",t,!0)}function Ks(e,t){return e.getCompDetailsFromGridOptions(Vs,"agGroupRowRenderer",t,!0)}function Qs(e,t){return e.getCompDetailsFromGridOptions(Gs,"agDetailCellRenderer",t,!0)}function Xs(e,t,o){return e.getCompDetails(t,ks,void 0,o)}function Ys(e,t,o){return e.getCompDetails(t,Ms,void 0,o)}function Zs(e,t,o){return e.getCompDetails(t,As,"agSkeletonCellRenderer",o,!0)}function Js(e,t,o){return e.getCompDetails(t,Ts,"agCellEditor",o,!0)}function er(e,t,o,i){const n=t.filter;return fs(n)&&(t={filter:n.component,filterParams:t.filterParams}),e.getCompDetails(t,Ls,i,o,!0)}function tr(e,t,o){return e.getCompDetails(t,Ss,"agDateInput",o,!0)}function or(e,t){return e.getCompDetails(t.colDef,Is,"agTooltipComponent",t,!0)}function ir(e,t,o,i){return e.getCompDetails(t,Bs,i,o)}function nr(e,t){return bs(e,t,Ls)}function sr(e,t,o){return e.mergeParams(t,Ls,o)}function rr(e){const t=e,o=null!=t?.getFrameworkComponentInstance;return o?t.getFrameworkComponentInstance():e}function ar(e){return"object"===typeof e&&!!e.getComp}var lr={BACKSPACE:"Backspace",TAB:"Tab",ENTER:"Enter",ESCAPE:"Escape",SPACE:" ",LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown",DELETE:"Delete",F2:"F2",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",PAGE_HOME:"Home",PAGE_END:"End",A:"KeyA",C:"KeyC",D:"KeyD",V:"KeyV",X:"KeyX",Y:"KeyY",Z:"KeyZ"},dr=65,cr=67,ur=86,hr=68,gr=90,pr=89;function fr(e){const{keyCode:t}=e;let o;switch(t){case dr:o=lr.A;break;case cr:o=lr.C;break;case ur:o=lr.V;break;case hr:o=lr.D;break;case gr:o=lr.Z;break;case pr:o=lr.Y;break;default:o=e.code}return o}var mr,vr,Cr,wr,br,yr,Sr,Rr=class extends gs{isPopup(){return!0}setParentComponent(e){e.addCss("ag-has-popup"),super.setParentComponent(e)}destroy(){const e=this.parentComponent,t=e?.isAlive();t&&e.getGui().classList.remove("ag-has-popup"),super.destroy()}};function xr(){return void 0===mr&&(mr=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),mr}function Er(){return void 0===vr&&(vr=/(firefox)/i.test(navigator.userAgent)),vr}function Fr(){return void 0===Cr&&(Cr=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Cr}function Pr(){return void 0===wr&&(wr=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1),wr}function Dr(e){if(!e)return null;const t=e.tabIndex,o=e.getAttribute("tabIndex");return-1!==t||null!==o&&(""!==o||Er())?t.toString():null}function kr(){if(void 0!==Sr)return Sr;if(!document.body)return-1;let e=1e6;const t=Er()?6e6:1e9,o=document.createElement("div");document.body.appendChild(o);while(1){const i=2*e;if(o.style.height=i+"px",i>t||o.clientHeight!==i)break;e=i}return o.remove(),Sr=e,e}function Mr(){return null==yr&&Ar(),yr}function Ar(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let o=t.offsetWidth-t.clientWidth;0===o&&0===t.clientWidth&&(o=null),t.parentNode&&t.remove(),null!=o&&(yr=o,br=0===o)}function Tr(){return null==br&&Ar(),br}var Ir=!1,Lr=0;function Br(e){Lr>0||(e.addEventListener("keydown",Hr),e.addEventListener("mousedown",Hr))}function Or(e){Lr>0||(e.removeEventListener("keydown",Hr),e.removeEventListener("mousedown",Hr))}function Hr(e){const t=Ir,o="keydown"===e.type;o&&(e.ctrlKey||e.metaKey||e.altKey)||t!==o&&(Ir=o)}function Vr(e){const t=v(e);return Br(t),Lr++,()=>{Lr--,Or(t)}}function Gr(){return Ir}function Nr(e,t,o=!1){const i=de;let n=ce;t&&(n+=", "+t),o&&(n+=', [tabindex="-1"]');const s=Array.prototype.slice.apply(e.querySelectorAll(i)).filter(e=>Pe(e)),r=Array.prototype.slice.apply(e.querySelectorAll(n));if(!r.length)return s;const a=(e,t)=>e.filter(e=>-1===t.indexOf(e));return a(s,r)}function zr(e,t=!1,o=!1,i=!1){const n=Nr(e,i?".ag-tab-guard":null,o),s=t?tn(n):n[0];return!!s&&(s.focus({preventScroll:!0}),!0)}function Wr(e,t,o,i){const n=Nr(t,o?':not([tabindex="-1"])':null),s=m(e);let r;r=o?n.findIndex(e=>e.contains(s)):n.indexOf(s);const a=r+(i?-1:1);return a<0||a>=n.length?null:n[a]}function _r(e,t=5){let o=0;while(e&&null===Dr(e)&&++o<=t)e=e.parentElement;return null===Dr(e)?null:e}var Ur="ag-focus-managed",$r=class extends ft{constructor(e,t={isStopPropagation:()=>!1,stopPropagation:()=>{}},o={}){super(),this.eFocusable=e,this.stopPropagationCallbacks=t,this.callbacks=o,this.callbacks={shouldStopEventPropagation:()=>!1,onTabKeyDown:e=>{if(e.defaultPrevented)return;const t=Wr(this.beans,this.eFocusable,!1,e.shiftKey);t&&(t.focus(),e.preventDefault())},...o}}postConstruct(){const{eFocusable:e,callbacks:{onFocusIn:t,onFocusOut:o}}=this;e.classList.add(Ur),this.addKeyDownListeners(e),t&&this.addManagedElementListeners(e,{focusin:t}),o&&this.addManagedElementListeners(e,{focusout:o})}addKeyDownListeners(e){this.addManagedElementListeners(e,{keydown:e=>{if(e.defaultPrevented||this.stopPropagationCallbacks.isStopPropagation(e))return;const{callbacks:t}=this;t.shouldStopEventPropagation(e)?this.stopPropagationCallbacks.stopPropagation(e):e.key===lr.TAB?t.onTabKeyDown(e):t.handleKeyDown&&t.handleKeyDown(e)}})}},qr={TAB_GUARD:"ag-tab-guard",TAB_GUARD_TOP:"ag-tab-guard-top",TAB_GUARD_BOTTOM:"ag-tab-guard-bottom"},jr=class extends ft{constructor(e,t){super(),this.stopPropagationCallbacks=t,this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;const{comp:o,eTopGuard:i,eBottomGuard:n,focusTrapActive:s,forceFocusOutWhenTabGuardsAreEmpty:r,isFocusableContainer:a,focusInnerElement:l,onFocusIn:d,onFocusOut:c,shouldStopEventPropagation:u,onTabKeyDown:h,handleKeyDown:g,isEmpty:p,eFocusableElement:f}=e;this.comp=o,this.eTopGuard=i,this.eBottomGuard=n,this.providedFocusInnerElement=l,this.eFocusableElement=f,this.focusTrapActive=!!s,this.forceFocusOutWhenTabGuardsAreEmpty=!!r,this.isFocusableContainer=!!a,this.providedFocusIn=d,this.providedFocusOut=c,this.providedShouldStopEventPropagation=u,this.providedOnTabKeyDown=h,this.providedHandleKeyDown=g,this.providedIsEmpty=p}postConstruct(){this.createManagedBean(new $r(this.eFocusableElement,this.stopPropagationCallbacks,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e),onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e)})),this.activateTabGuards();for(const e of[this.eTopGuard,this.eBottomGuard])this.addManagedElementListeners(e,{focus:this.onFocus.bind(this)})}handleKeyDown(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()}activateTabGuards(){if(this.forcingFocusOut)return;const e=this.gos.get("tabIndex");this.comp.setTabIndex(e.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(e){if(this.isFocusableContainer&&!this.eFocusableElement.contains(e.relatedTarget)&&!this.allowFocus)return void this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);if(this.skipTabGuardFocus)return void(this.skipTabGuardFocus=!1);if(this.forceFocusOutWhenTabGuardsAreEmpty){const t=this.providedIsEmpty?this.providedIsEmpty():0===Nr(this.eFocusableElement,".ag-tab-guard").length;if(t)return void this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard)}if(this.isFocusableContainer&&this.eFocusableElement.contains(e.relatedTarget))return;const t=e.target===this.eBottomGuard,o=this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t);!o&&this.forceFocusOutWhenTabGuardsAreEmpty&&this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard)}findNextElementOutsideAndFocus(e){const t=v(this.beans),o=Nr(t.body,null,!0),i=o.indexOf(e?this.eTopGuard:this.eBottomGuard);if(-1===i)return;let n,s;e?(n=0,s=i):(n=i+1,s=o.length);const r=o.slice(n,s),a=this.gos.get("tabIndex");r.sort((e,t)=>{const o=Number.parseInt(e.getAttribute("tabindex")||"0"),i=Number.parseInt(t.getAttribute("tabindex")||"0");return i===a?1:o===a?-1:0===o?1:0===i?-1:o-i}),r[e?r.length-1:0]?.focus()}onFocusIn(e){this.focusTrapActive||this.forcingFocusOut||(this.providedFocusIn&&this.providedFocusIn(e),this.isFocusableContainer||this.deactivateTabGuards())}onFocusOut(e){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(e),this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards())}onTabKeyDown(e){if(this.providedOnTabKeyDown)return void this.providedOnTabKeyDown(e);if(this.focusTrapActive)return;if(e.defaultPrevented)return;const t=this.tabGuardsAreActive();t&&this.deactivateTabGuards();const o=this.getNextFocusableElement(e.shiftKey);t&&setTimeout(()=>this.activateTabGuards(),0),o&&(o.focus(),e.preventDefault())}focusInnerElement(e=!1){const t=Nr(this.eFocusableElement);return this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(-1,1)),!!t.length&&(t[e?t.length-1:0].focus({preventScroll:!0}),!0)}getNextFocusableElement(e){return Wr(this.beans,this.eFocusableElement,!1,e)}forceFocusOutOfContainer(e=!1){if(this.forcingFocusOut)return;const t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,t.focus(),window.setTimeout(()=>{this.forcingFocusOut=!1,this.activateTabGuards()})}isTabGuard(e,t){return e===this.eTopGuard&&!t||e===this.eBottomGuard&&(t??!0)}setAllowFocus(e){this.allowFocus=e}},Kr=class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=e.scrollAxis.includes("x"),this.scrollVertically=e.scrollAxis.includes("y"),this.scrollByTick=e.scrollByTick??20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||(()=>!1)}get scrolling(){return null!==this.tickingInterval}check(e,t=!1){const o=t||this.shouldSkipVerticalScroll();if(o&&this.shouldSkipHorizontalScroll())return;const i=this.scrollContainer.getBoundingClientRect(),n=this.scrollByTick;this.tickLeft=e.clientX<i.left+n,this.tickRight=e.clientX>i.right-n,this.tickUp=e.clientY<i.top+n&&!o,this.tickDown=e.clientY>i.bottom-n&&!o,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;const e=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){const t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){const t=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(t-e),this.tickRight&&this.setHorizontalPosition(t+e)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}},Qr="ag-resizer-wrapper",Xr=(e,t)=>({tag:"div",ref:`${e}Resizer`,cls:`ag-resizer ag-resizer-${t}`}),Yr={tag:"div",cls:Qr,children:[Xr("eTopLeft","topLeft"),Xr("eTop","top"),Xr("eTopRight","topRight"),Xr("eRight","right"),Xr("eBottomRight","bottomRight"),Xr("eBottom","bottom"),Xr("eBottomLeft","bottomLeft"),Xr("eLeft","left")]},Zr=class extends ft{constructor(e,t){super(),this.element=e,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0},this.lastSize={width:-1,height:-1},this.positioned=!1,this.resizersAdded=!1,this.resizeListeners=[],this.boundaryEl=null,this.isResizing=!1,this.isMoving=!1,this.resizable={},this.movable=!1,this.currentResizer=null,this.config={popup:!1,...t}}wireBeans(e){this.popupSvc=e.popupSvc,this.dragSvc=e.dragSvc}center(e){const{clientHeight:t,clientWidth:o}=this.offsetParent,i=o/2-this.getWidth()/2,n=t/2-this.getHeight()/2;this.offsetElement(i,n,e)}initialisePosition(e){if(this.positioned)return;const{centered:t,forcePopupParentAsOffsetParent:o,minWidth:i,width:n,minHeight:s,height:r,x:a,y:l}=this.config;this.offsetParent||this.setOffsetParent();let d=0,c=0;const u=Pe(this.element);if(u){const e=this.findBoundaryElement(),t=window.getComputedStyle(e);if(null!=t.minWidth){const o=e.offsetWidth-this.element.offsetWidth;c=Number.parseInt(t.minWidth,10)-o}if(null!=t.minHeight){const o=e.offsetHeight-this.element.offsetHeight;d=Number.parseInt(t.minHeight,10)-o}}if(this.minHeight=s||d,this.minWidth=i||c,n&&this.setWidth(n),r&&this.setHeight(r),n&&r||this.refreshSize(),t)this.center(e);else if(a||l)this.offsetElement(a,l,e);else if(u&&o){let t=this.boundaryEl,o=!0;if(t||(t=this.findBoundaryElement(),o=!1),t){const i=Number.parseFloat(t.style.top),n=Number.parseFloat(t.style.left);o?this.offsetElement(Number.isNaN(n)?0:n,Number.isNaN(i)?0:i,e):this.setPosition(n,i)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(e,t){if(!this.config.popup||e===this.movable)return;this.movable=e;const o=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragSvc?.addDragSource(o),this.moveElementDragListener=o):(this.dragSvc?.removeDragSource(o),this.moveElementDragListener=void 0)}setResizable(e){if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),"boolean"===typeof e){if(!1===e)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}for(const t of Object.keys(e)){const o=!!e[t],i=this.getResizerElement(t),n={dragStartPixels:0,eElement:i,onDragStart:e=>this.onResizeStart(e,t),onDragging:this.onResize.bind(this),onDragStop:e=>this.onResizeEnd(e,t)};(o||!this.isAlive()&&!o)&&(o?(this.dragSvc?.addDragSource(n),this.resizeListeners.push(n),i.style.pointerEvents="all"):i.style.pointerEvents="none",this.resizable[t]=o)}}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";const{height:e,width:t}=this.lastSize;-1!==t&&(this.element.style.width=`${t}px`),-1!==e&&(this.element.style.height=`${e}px`)}getHeight(){return this.element.offsetHeight}setHeight(e){const{popup:t}=this.config,o=this.element;let i=!1;if("string"===typeof e&&e.includes("%"))Ve(o,e),e=we(o),i=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const t=this.getAvailableHeight();t&&e>t&&(e=t)}this.getHeight()!==e&&(i?(o.style.maxHeight="unset",o.style.minHeight="unset"):t?Ve(o,e):(o.style.height=`${e}px`,o.style.flex="0 0 auto",this.lastSize.height="number"===typeof e?e:Number.parseFloat(e)))}getAvailableHeight(){const{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();const{clientHeight:o}=this.offsetParent;if(!o)return null;const i=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),s=e?this.position.y:i.top,r=e?0:n.top;let a=0;if(t){const e=this.element.parentElement;if(e){const{bottom:t}=e.getBoundingClientRect();a=t-i.bottom}}const l=o+r-s-a;return l}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element,{popup:o}=this.config;let i=!1;if("string"===typeof e&&e.includes("%"))He(t,e),e=be(t),i=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{clientWidth:t}=this.offsetParent,i=o?this.position.x:this.element.getBoundingClientRect().left;t&&e+i>t&&(e=t-i)}this.getWidth()!==e&&(i?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?He(t,e):(t.style.width=`${e}px`,t.style.flex=" unset",this.lastSize.width="number"===typeof e?e:Number.parseFloat(e)))}offsetElement(e=0,t=0,o){const{forcePopupParentAsOffsetParent:i}=this.config,n=i?this.boundaryEl:this.element;n&&(this.popupSvc?.positionPopup({ePopup:n,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t}),postProcessCallback:o}),this.setPosition(Number.parseFloat(n.style.left),Number.parseFloat(n.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;const t=()=>{const e=this.getAvailableHeight();this.element.style.setProperty("max-height",`${e}px`)};e&&this.popupSvc?(this.resizeObserverSubscriber?.(),this.resizeObserverSubscriber=We(this.beans,this.popupSvc?.getPopupParent(),t)):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(e,t){this.position.x=e,this.position.y=t}updateDragStartPosition(e,t){this.dragStartPosition={x:e,y:t}}calculateMouseMovement(e){const{e:t,isLeft:o,isTop:i,anywhereWithin:n,topBuffer:s}=e,r=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y,l=this.shouldSkipX(t,!!o,!!n,r)?0:r,d=this.shouldSkipY(t,!!i,s,a)?0:a;return{movementX:l,movementY:d}}shouldSkipX(e,t,o,i){const n=this.element.getBoundingClientRect(),s=this.offsetParent.getBoundingClientRect(),r=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:n.left;let l=a<=0&&s.left>=e.clientX||s.right<=e.clientX&&s.right<=r.right;return!!l||(l=t?i<0&&e.clientX>a+s.left||i>0&&e.clientX<a+s.left:o?i<0&&e.clientX>r.right||i>0&&e.clientX<a+s.left:i<0&&e.clientX>r.right||i>0&&e.clientX<r.right,l)}shouldSkipY(e,t,o=0,i){const n=this.element.getBoundingClientRect(),s=this.offsetParent.getBoundingClientRect(),r=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:n.top;let l=a<=0&&s.top>=e.clientY||s.bottom<=e.clientY&&s.bottom<=r.bottom;return!!l||(l=t?i<0&&e.clientY>a+s.top+o||i>0&&e.clientY<a+s.top:i<0&&e.clientY>r.bottom||i>0&&e.clientY<r.bottom,l)}createResizeMap(){const e=e=>({element:this.element.querySelector(`[data-ref=${e}Resizer]`)});this.resizerMap={topLeft:e("eTopLeft"),top:e("eTop"),topRight:e("eTopRight"),right:e("eRight"),bottomRight:e("eBottomRight"),bottom:e("eBottom"),bottomLeft:e("eBottomLeft"),left:e("eLeft")}}addResizers(){if(this.resizersAdded)return;const e=this.element;e&&(e.appendChild(je(Yr)),this.createResizeMap(),this.resizersAdded=!0)}removeResizers(){this.resizerMap=void 0;const e=this.element.querySelector(`.${Qr}`);e?.remove(),this.resizersAdded=!1}getResizerElement(e){return this.resizerMap[e].element}onResizeStart(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");const{popup:o,forcePopupParentAsOffsetParent:i}=this.config;o||i||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)}getSiblings(){const e=this.element,t=e.parentElement;return t?Array.prototype.slice.call(t.children).filter(e=>!e.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,o=0;for(const i of e){const e=!!i.style.flex&&"0 0 auto"!==i.style.flex;if(i===this.element)continue;let n=this.minHeight||0,s=this.minWidth||0;if(e){const e=window.getComputedStyle(i);e.minHeight&&(n=Number.parseInt(e.minHeight,10)),e.minWidth&&(s=Number.parseInt(e.minWidth,10))}else n=i.offsetHeight,s=i.offsetWidth;t+=n,o+=s}return{height:t,width:o}}applySizeToSiblings(e){let t=null;const o=this.getSiblings();if(o){for(let i=0;i<o.length;i++){const n=o[i];n!==t&&(e?n.style.height=`${n.offsetHeight}px`:n.style.width=`${n.offsetWidth}px`,n.style.flex="0 0 auto",n===this.element&&(t=o[i+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}}isResizable(){return Object.values(this.resizable).some(e=>e)}onResize(e){if(!this.isResizing||!this.currentResizer)return;const{popup:t,forcePopupParentAsOffsetParent:o}=this.config,{isTop:i,isRight:n,isBottom:s,isLeft:r}=this.currentResizer,a=n||r,l=s||i,{movementX:d,movementY:c}=this.calculateMouseMovement({e:e,isLeft:r,isTop:i}),u=this.position.x,h=this.position.y;let g=0,p=0;if(a&&d){const e=r?-1:1,t=this.getWidth(),o=t+d*e;let i=!1;r&&(g=t-o,(u+g<=0||o<=this.minWidth)&&(i=!0,g=0)),i||this.setWidth(o)}if(l&&c){const e=i?-1:1,t=this.getHeight(),o=t+c*e;let n=!1;i?(p=t-o,(h+p<=0||o<=this.minHeight)&&(n=!0,p=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&t<o&&this.getMinSizeOfSiblings().height+o>this.element.parentElement.offsetHeight&&(n=!0),n||this.setHeight(o)}this.updateDragStartPosition(e.clientX,e.clientY),((t||o)&&g||p)&&this.offsetElement(u+g,h+p)}onResizeEnd(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){const e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))}onMoveStart(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)}onMove(e){if(!this.isMoving)return;const{x:t,y:o}=this.position;let i;this.config.calculateTopBuffer&&(i=this.config.calculateTopBuffer());const{movementX:n,movementY:s}=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:i});this.offsetElement(t+n,o+s),this.updateDragStartPosition(e.clientX,e.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent&&this.popupSvc?this.offsetParent=this.popupSvc.getPopupParent():this.offsetParent=this.element.offsetParent}findBoundaryElement(){let e=this.element;while(e){if("static"!==window.getComputedStyle(e).position)return e;e=e.parentElement}return this.element}clearResizeListeners(){while(this.resizeListeners.length){const e=this.resizeListeners.pop();this.dragSvc?.removeDragSource(e)}}destroy(){super.destroy(),this.moveElementDragListener&&this.dragSvc?.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}},Jr="T",ea=new RegExp(`[${Jr} ]`),ta=new RegExp(`^\\d{4}-\\d{2}-\\d{2}(${Jr}\\d{2}:\\d{2}:\\d{2}\\D?)?`);function oa(e,t){return e.toString().padStart(t,"0")}function ia(e,t=!0,o=Jr){if(!e)return null;let i=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(e=>oa(e,2)).join("-");return t&&(i+=o+[e.getHours(),e.getMinutes(),e.getSeconds()].map(e=>oa(e,2)).join(":")),i}function na(e,t=!0){return e?t?[String(e.getFullYear()),String(e.getMonth()+1),oa(e.getDate(),2),oa(e.getHours(),2),`:${oa(e.getMinutes(),2)}`,`:${oa(e.getSeconds(),2)}`]:[e.getFullYear(),e.getMonth()+1,oa(e.getDate(),2)].map(String):null}var sa=e=>{if(e>3&&e<21)return"th";const t=e%10;switch(t){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},ra=["January","February","March","April","May","June","July","August","September","October","November","December"],aa=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function la(e,t){if(null==t)return ia(e,!1);const o=oa(e.getFullYear(),4),i={YYYY:()=>o.slice(o.length-4,o.length),YY:()=>o.slice(o.length-2,o.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>ra[e.getMonth()],MMM:()=>ra[e.getMonth()].slice(0,3),MM:()=>oa(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${sa(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${sa(e.getDate())}`,DD:()=>oa(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>aa[e.getDay()],ddd:()=>aa[e.getDay()].slice(0,3),dd:()=>aa[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${sa(e.getDay())}`,d:()=>`${e.getDay()}`},n=new RegExp(Object.keys(i).join("|"),"g");return t.replace(n,e=>e in i?i[e]():e)}function da(e,t=!1){return!!ua(e,t)}function ca(e){return da(e,!0)}function ua(e,t=!1,o){if(!e)return null;if(!o&&!ta.test(e))return null;const[i,n]=e.split(ea);if(!i)return null;const s=i.split("-").map(e=>Number.parseInt(e,10));if(3!==s.filter(e=>!isNaN(e)).length)return null;const[r,a,l]=s,d=new Date(r,a-1,l);if(d.getFullYear()!==r||d.getMonth()!==a-1||d.getDate()!==l)return null;if(!n&&t)return null;if(!n||"00:00:00"===n)return d;const[c,u,h]=n.split(":").map(e=>Number.parseInt(e,10));if(c>=0&&c<24)d.setHours(c);else if(t)return null;if(u>=0&&u<60)d.setMinutes(u);else if(t)return null;if(h>=0&&h<60)d.setSeconds(h);else if(t)return null;return d}function ha(e){const{inputValue:t,allSuggestions:o,hideIrrelevant:i,filterByPercentageOfBestMatch:n}=e;let s=(o??[]).map((e,o)=>({value:e,relevance:ga(t,e),idx:o}));if(s.sort((e,t)=>e.relevance-t.relevance),i&&(s=s.filter(e=>e.relevance<Math.max(e.value.length,t.length))),s.length>0&&n&&n>0){const e=s[0].relevance,t=e*n;s=s.filter(e=>t-e.relevance<0)}const r=[],a=[];for(const l of s)r.push(l.value),a.push(l.idx);return{values:r,indices:a}}function ga(e,t){const o=e.length,i=t.length;if(0===i)return o||0;let n,s=e.toLocaleLowerCase(),r=t.toLocaleLowerCase();e.length<t.length&&(n=r,r=s,s=n,n=t,t=e,e=n);let a=new Uint16Array(i+1),l=new Uint16Array(i+1);for(let u=0;u<=i;u++)a[u]=u;let d=0;const c=o/2-10;for(let u=1;u<=o;u++){const o=e[u-1],h=s[u-1];l[0]=u;for(let n=1;n<=i;n++){const i=t[n-1],g=r[n-1];if(h!==g){const e=l[n-1],t=a[n],o=a[n-1];let i=e<t?e:t;o<i&&(i=o),l[n]=i+1|0;continue}if(d++,o===i&&d++,u>1&&n>1){const o=e[u-2],i=s[u-2],a=t[n-2],l=r[n-2];i===l&&(d++,o===a&&d++)}u<c&&d++,l[n]=a[n-1]}n=a,a=l,l=n}return a[i]/(d+1)}function pa(e){if(e.altKey||e.ctrlKey||e.metaKey)return!1;const t=1===e.key?.length;return t}var fa=".ag-label{white-space:nowrap}:where(.ag-ltr) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-label-align-right) .ag-label{order:1}:where(.ag-ltr) :where(.ag-label-align-right) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) :where(.ag-label-align-right) .ag-label{margin-right:var(--ag-spacing)}.ag-label-align-right>*{flex:none}.ag-label-align-top{align-items:flex-start;flex-direction:column;>*{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-label-align-top) .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}",ma=class extends gs{constructor(e,t,o){super(t,o),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{},this.registerCSS(fa)}postConstruct(){this.addCss("ag-labeled"),this.eLabel.classList.add("ag-label");const{labelSeparator:e,label:t,labelWidth:o,labelAlignment:i,disabled:n,labelEllipsis:s}=this.config;null!=n&&this.setDisabled(n),null!=e&&this.setLabelSeparator(e),null!=t&&this.setLabel(t),null!=o&&this.setLabelWidth(o),null!=s&&this.setLabelEllipsis(s),this.setLabelAlignment(i||this.labelAlignment),this.refreshLabel()}refreshLabel(){const{label:e,eLabel:t}=this;xe(t),"string"===typeof e?t.innerText=e+this.labelSeparator:e&&t.appendChild(e),""===e?(he(t,!1),P(t,"presentation")):(he(t,!0),P(t,null))}setLabelSeparator(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this}getLabelId(){const e=this.eLabel;return e.id=e.id||`ag-${this.getCompId()}-label`,e.id}getLabel(){return this.label}setLabel(e){return this.label===e||(this.label=e,this.refreshLabel()),this}setLabelAlignment(e){const t=this.getGui(),o=t.classList;return o.toggle("ag-label-align-left","left"===e),o.toggle("ag-label-align-right","right"===e),o.toggle("ag-label-align-top","top"===e),this}setLabelEllipsis(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this}setLabelWidth(e){return null==this.label||Oe(this.eLabel,e),this}setDisabled(e){e=!!e;const t=this.getGui();return pe(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},va=class extends ma{constructor(e,t,o,i){super(e,t,o),this.className=i}postConstruct(){super.postConstruct();const{width:e,value:t,onValueChange:o,ariaLabel:i}=this.config;null!=e&&this.setWidth(e),null!=t&&this.setValue(t),null!=o&&this.onValueChange(o),null!=i&&this.setAriaLabel(i),this.className&&this.addCss(this.className),this.refreshAriaLabelledBy()}setLabel(e){return super.setLabel(e),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){const e=this.getAriaElement(),t=this.getLabelId(),o=this.getLabel();null==o||""==o||null!==M(e)?T(e,""):T(e,t??"")}setAriaLabel(e){return A(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this}onValueChange(e){return this.addManagedListeners(this,{fieldValueChanged:()=>e(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(e){return He(this.getGui(),e),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(e,t){return this.value===e||(this.previousValue=this.value,this.value=e,t||this.dispatchLocalEvent({type:"fieldValueChanged"})),this}};function Ca(e){return{tag:"div",role:"presentation",children:[{tag:"div",ref:"eLabel",cls:"ag-input-field-label"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-input-wrapper",role:"presentation",children:[{tag:e,ref:"eInput",cls:"ag-input-field-input"}]}]}}var wa,ba,ya,Sa,Ra=class extends va{constructor(e,t,o="text",i="input"){super(e,e?.template??Ca(i),[],t),this.inputType=o,this.displayFieldTag=i,this.eLabel=ds,this.eWrapper=ds,this.eInput=ds}postConstruct(){super.postConstruct(),this.setInputType(this.inputType);const{eLabel:e,eWrapper:t,eInput:o,className:i}=this;e.classList.add(`${i}-label`),t.classList.add(`${i}-input-wrapper`),o.classList.add(`${i}-input`),this.addCss("ag-input-field"),o.id=o.id||`ag-${this.getCompId()}-input`;const{inputName:n,inputWidth:s,inputPlaceholder:r,autoComplete:a,tabIndex:l}=this.config;null!=n&&this.setInputName(n),null!=s&&this.setInputWidth(s),null!=r&&this.setInputPlaceholder(r),null!=a&&this.setAutoComplete(a),this.addInputListeners(),this.activateTabIndex([o],l)}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>this.setValue(e.target.value)})}setInputType(e){"input"===this.displayFieldTag&&(this.inputType=e,ze(this.eInput,"type",e))}getInputElement(){return this.eInput}getWrapperElement(){return this.eWrapper}setInputWidth(e){return Oe(this.eWrapper,e),this}setInputName(e){return this.getInputElement().setAttribute("name",e),this}getFocusableElement(){return this.eInput}setMaxLength(e){const t=this.eInput;return t.maxLength=e,this}setInputPlaceholder(e){return ze(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return A(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return pe(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(!0===e)ze(this.eInput,"autocomplete",null);else{const t="string"===typeof e?e:"off";ze(this.eInput,"autocomplete",t)}return this}},xa=class extends Ra{constructor(e,t="ag-checkbox",o="checkbox"){super(e,t,o),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();const{readOnly:e,passive:t,name:o}=this.config;"boolean"===typeof e&&this.setReadOnly(e),"boolean"===typeof t&&this.setPassive(t),null!=o&&this.setName(o)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return void 0===this.selected||!this.selected}setPassive(e){this.passive=e}isReadOnly(){return this.readOnly}setReadOnly(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e}setDisabled(e){return this.eWrapper.classList.toggle("ag-disabled",e),super.setDisabled(e)}toggle(){if(this.eInput.disabled)return;const e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}getValue(){return this.isSelected()}setValue(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this}setName(e){const t=this.getInputElement();return t.name=e,this}isSelected(){return this.selected}setSelected(e,t){if(this.isSelected()===e)return;this.previousValue=this.isSelected(),e=this.selected="boolean"===typeof e?e:void 0;const o=this.eInput;o.checked=e,o.indeterminate=void 0===e,t||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(e,t,o){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:t,event:o});const i=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:i.id,name:i.name,selected:e,previousValue:t})}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;const t=this.isSelected(),o=this.selected=e.target.checked;this.refreshSelectedClass(o),this.dispatchChange(o,t,e)}refreshSelectedClass(e){const t=this.eWrapper.classList;t.toggle("ag-checked",!0===e),t.toggle("ag-indeterminate",null==e)}},Ea={selector:"AG-CHECKBOX",component:xa},Fa=class extends xa{constructor(e){super(e,"ag-radio-button","radio")}isSelected(){return this.eInput.checked}toggle(){this.eInput.disabled||this.isSelected()||this.setValue(!0)}addInputListeners(){super.addInputListeners(),this.addManagedEventListeners({checkboxChanged:this.onChange.bind(this)})}onChange(e){const t=this.eInput;e.selected&&e.name&&t.name&&t.name===e.name&&e.id&&t.id!==e.id&&this.setValue(!1,!0)}},Pa={selector:"AG-RADIO-BUTTON",component:Fa},Da='.ag-toggle-button{flex:none;min-width:unset;width:unset}.ag-toggle-button-input-wrapper{background-color:var(--ag-toggle-button-off-background-color);border-radius:calc(var(--ag-toggle-button-height)*.5);flex:none;height:var(--ag-toggle-button-height);max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);position:relative;transition:background-color .1s;:where(.ag-toggle-button-input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-toggle-button-height);margin:0;max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);opacity:0}&:before{background-color:var(--ag-toggle-button-switch-background-color);border-radius:100%;content:"";display:block;height:calc(var(--ag-toggle-button-height) - var(--ag-toggle-button-switch-inset)*2);left:var(--ag-toggle-button-switch-inset);pointer-events:none;position:absolute;top:var(--ag-toggle-button-switch-inset);transition:left .1s;width:calc(var(--ag-toggle-button-height) - var(--ag-toggle-button-switch-inset)*2)}&.ag-checked{background-color:var(--ag-toggle-button-on-background-color);&:before{left:calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-switch-inset))}}&:focus-within{box-shadow:var(--ag-focus-shadow)}&.ag-disabled{opacity:.5}}',ka=class extends xa{constructor(e){super(e,"ag-toggle-button"),this.registerCSS(Da)}setValue(e,t){return super.setValue(e,t),this.toggleCss("ag-selected",this.getValue()),this}},Ma={selector:"AG-TOGGLE-BUTTON",component:ka},Aa=class extends Ra{constructor(e,t="ag-text-field",o="text"){super(e,t,o)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,t){const o=this.eInput;return o.value!==e&&(o.value=s(e)?e:""),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}setCustomValidity(e){const t=this.eInput,o=e.length>0;t.setCustomValidity(e),o&&t.reportValidity(),H(t,o)}preventDisallowedCharacters(){const e=new RegExp(`[${this.config.allowedCharPattern}]`),t=t=>{pa(t)&&t.key&&!e.test(t.key)&&t.preventDefault()};this.addManagedListeners(this.eInput,{keydown:t,paste:t=>{const o=t.clipboardData?.getData("text");o?.split("").some(t=>!e.test(t))&&t.preventDefault()}})}},Ta={selector:"AG-INPUT-TEXT-FIELD",component:Aa},Ia=class extends Ra{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,t){const o=super.setValue(e,t);return this.eInput.value=e,o}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}},La={selector:"AG-INPUT-TEXT-AREA",component:Ia},Ba=class extends Aa{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct();const e=this.eInput;this.addManagedListeners(e,{blur:()=>{const t=Number.parseFloat(e.value),o=isNaN(t)?"":this.normalizeValue(t.toString());this.value!==o&&this.setValue(o)},wheel:this.onWheel.bind(this)}),e.step="any";const{precision:t,min:o,max:i,step:n}=this.config;"number"===typeof t&&this.setPrecision(t),"number"===typeof o&&this.setMin(o),"number"===typeof i&&this.setMax(i),"number"===typeof n&&this.setStep(n)}onWheel(e){m(this.beans)===this.eInput&&e.preventDefault()}normalizeValue(e){return""===e?"":(null!=this.precision&&(e=this.adjustPrecision(e)),e)}adjustPrecision(e,t){const o=this.precision;if(null==o)return e;if(t){const t=Number.parseFloat(e).toFixed(o);return Number.parseFloat(t).toString()}const i=String(e).split(".");if(i.length>1){if(i[1].length<=o)return e;if(o>0)return`${i[0]}.${i[1].slice(0,o)}`}return i[0]}setMin(e){return this.min===e||(this.min=e,ze(this.eInput,"min",e)),this}setMax(e){return this.max===e||(this.max=e,ze(this.eInput,"max",e)),this}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e||(this.step=e,ze(this.eInput,"step",e)),this}setValue(e,t){return this.setValueOrInputValue(e=>super.setValue(e,t),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(e=>super.setValue(e,!0),e=>{this.eInput.value=e},e)}setValueOrInputValue(e,t,o){if(s(o)){let i=this.isScientificNotation(o);if(i&&this.eInput.validity.valid)return e(o);if(!i){o=this.adjustPrecision(o);const e=this.normalizeValue(o);i=o!=e}if(i)return t(o)}return e(o)}getValue(e=!1){const t=this.eInput;if(!t.validity.valid&&!e)return;const o=t.value;return this.isScientificNotation(o)?this.adjustPrecision(o,!0):super.getValue()}isScientificNotation(e){return"string"===typeof e&&e.includes("e")}},Oa={selector:"AG-INPUT-NUMBER-FIELD",component:Ba},Ha=class extends Aa{constructor(e){super(e,"ag-date-field","date")}postConstruct(){super.postConstruct();const e=xr();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){m(this.beans)===this.eInput&&e.preventDefault()}setMin(e){const t=e instanceof Date?ia(e??null,!!this.includeTime)??void 0:e;return this.min===t||(this.min=t,ze(this.eInput,"min",t)),this}setMax(e){const t=e instanceof Date?ia(e??null,!!this.includeTime)??void 0:e;return this.max===t||(this.max=t,ze(this.eInput,"max",t)),this}setStep(e){return this.step===e||(this.step=e,ze(this.eInput,"step",e)),this}setIncludeTime(e){return this.includeTime===e||(this.includeTime=e,super.setInputType(e?"datetime-local":"date"),e&&this.setStep(1)),this}getDate(){if(this.eInput.validity.valid)return ua(this.getValue())??void 0}setDate(e,t){this.setValue(ia(e??null,this.includeTime),t)}},Va={selector:"AG-INPUT-DATE-FIELD",component:Ha},Ga=".ag-list-item{align-items:center;display:flex;height:var(--ag-list-item-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.ag-active-item{background-color:var(--ag-row-hover-color)}}",Na="ag-active-item",za=(e,t)=>({tag:"div",cls:`ag-list-item ag-${e}-list-item`,attrs:{role:"option"},children:[{tag:"span",ref:"eText",children:t}]}),Wa=class extends gs{constructor(e,t,o){super(za(e,t)),this.label=t,this.value=o,this.eText=ds}postConstruct(){this.createTooltip(),this.addEventListeners()}setHighlighted(e){const t=this.getGui();t.classList.toggle(Na,e),te(t,e),this.dispatchLocalEvent({type:"itemHighlighted",highlighted:e})}getHeight(){return this.getGui().clientHeight}setIndex(e,t){const o=this.getGui();$(o,e),U(o,t)}createTooltip(){const e={getTooltipValue:()=>this.label,getGui:()=>this.getGui(),getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>Le(this.eText)},t=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("highlightTooltipFeature",!1,e,this));t&&(this.tooltipFeature=t)}addEventListeners(){const e=this.getParentComponent();e&&(this.addGuiEventListener("mouseover",()=>{e.highlightItem(this)}),this.addGuiEventListener("mousedown",t=>{t.preventDefault(),t.stopPropagation(),e.setValue(this.value)}))}},_a=class extends gs{constructor(e="default"){super({tag:"div",cls:`ag-list ag-${e}-list`}),this.cssIdentifier=e,this.options=[],this.listItems=[],this.highlightedItem=null,this.registerCSS(Ga)}postConstruct(){const e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()})}handleKeyDown(e){const t=e.key;switch(t){case lr.ENTER:if(this.highlightedItem){const e=this.listItems.indexOf(this.highlightedItem);this.setValueByIndex(e)}else this.setValue(this.getValue());break;case lr.DOWN:case lr.UP:e.preventDefault(),this.navigate(t);break;case lr.PAGE_DOWN:case lr.PAGE_UP:case lr.PAGE_HOME:case lr.PAGE_END:e.preventDefault(),this.navigateToPage(t);break}}addOptions(e){for(const t of e)this.addOption(t);return this}addOption(e){const{value:t,text:o}=e,i=o??t;return this.options.push({value:t,text:i}),this.renderOption(t,i),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0);for(const e of this.listItems)e.destroy();xe(this.getGui()),this.listItems=[],this.refreshAriaRole()}updateOptions(e){const t=this.options!==e;return t&&(this.clearOptions(),this.addOptions(e)),t}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(t),this;const o=this.options.findIndex(t=>t.value===e);if(-1!==o){const e=this.options[o];this.value=e.value,this.displayValue=e.text,this.highlightItem(this.listItems[o]),t||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();const e=this.options.findIndex(e=>e.value===this.value);-1!==e&&this.highlightItem(this.listItems[e])}highlightItem(e){const t=e.getGui();if(!Pe(t))return;this.clearHighlighted(),e.setHighlighted(!0),this.highlightedItem=e;const o=this.getGui(),{scrollTop:i,clientHeight:n}=o,{offsetTop:s,offsetHeight:r}=t;(s+r>i+n||s<i)&&t.scrollIntoView({block:"nearest"})}hideItemTooltip(){this.highlightedItem?.tooltipFeature?.attemptToHideTooltip()}destroy(){this.hideItemTooltip(),super.destroy()}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}clearHighlighted(){this.highlightedItem?.setHighlighted(!1),this.highlightedItem=null}renderOption(e,t){const o=new Wa(this.cssIdentifier,t,e);o.setParentComponent(this);const i=this.createManagedBean(o);this.listItems.push(i),this.getGui().appendChild(i.getGui())}navigate(e){const t=e===lr.DOWN;let o;const{listItems:i,highlightedItem:n}=this;if(n){const e=i.indexOf(n);let s=e+(t?1:-1);s=Math.min(Math.max(s,0),i.length-1),o=i[s]}else o=t?i[0]:tn(i);this.highlightItem(o)}navigateToPage(e){const{listItems:t,highlightedItem:o}=this;if(!o||0===t.length)return;const i=t.indexOf(o),n=this.options.length-1,s=t[0].getHeight(),r=Math.floor(this.getGui().clientHeight/s);let a=-1;e===lr.PAGE_HOME?a=0:e===lr.PAGE_END?a=n:e===lr.PAGE_DOWN?a=Math.min(i+r,n):e===lr.PAGE_UP&&(a=Math.max(i-r,0)),-1!==a&&this.highlightItem(t[a])}refreshAriaRole(){P(this.getGui(),0===this.options.length?"presentation":"listbox")}updateIndices(){this.refreshAriaRole();const e=this.listItems,t=e.length;e.forEach((e,o)=>{e.setIndex(o+1,t)})}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},Ua=".ag-picker-field-display{flex:1 1 auto}.ag-picker-field{align-items:center;display:flex}.ag-picker-field-icon{border:0;cursor:pointer;display:flex;margin:0;padding:0}.ag-picker-field-wrapper{background-color:var(--ag-picker-button-background-color);border:var(--ag-picker-button-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:where(.ag-picker-has-focus),&:where(:focus-within){background-color:var(--ag-picker-button-focus-background-color);border:var(--ag-picker-button-focus-border);box-shadow:var(--ag-focus-shadow);&:where(.invalid){box-shadow:var(--ag-focus-error-shadow)}}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:disabled{opacity:.5}}",$a={tag:"div",cls:"ag-picker-field",role:"presentation",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-picker-field-wrapper ag-picker-collapsed",children:[{tag:"div",ref:"eDisplayField",cls:"ag-picker-field-display"},{tag:"div",ref:"eIcon",cls:"ag-picker-field-icon",attrs:{"aria-hidden":"true"}}]}]},qa=class extends va{constructor(e){if(super(e,e?.template||$a,e?.agComponents||[],e?.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=ds,this.eWrapper=ds,this.eDisplayField=ds,this.eIcon=ds,this.registerCSS(Ua),this.ariaRole=e?.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:o,variableWidth:i,minPickerWidth:n,maxPickerWidth:s}=e;null!=t&&(this.pickerGap=t),this.variableWidth=!!i,null!=o&&this.setPickerMaxHeight(o),null!=n&&this.setPickerMinWidth(n),null!=s&&this.setPickerMaxWidth(s)}postConstruct(){super.postConstruct(),this.setupAria();const e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",e);const t=this.getAriaElement();this.addManagedElementListeners(t,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});const{pickerIcon:o,inputWidth:i}=this.config;if(o){const e=this.beans.iconSvc.createIconNoSpan(o);e&&this.eIcon.appendChild(e)}null!=i&&this.setInputWidth(i)}setupAria(){const e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),W(e,!1),this.ariaRole&&P(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){const t=this.getFocusableElement();if(t!==this.eWrapper&&e?.target===t)return;e.preventDefault(),this.getFocusableElement().focus()}this.skipClick?this.skipClick=!1:this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case lr.UP:case lr.DOWN:case lr.ENTER:case lr.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case lr.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());const e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){const e=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));const t=this.getLocaleTextFunc(),{config:{pickerAriaLabelKey:o,pickerAriaLabelValue:i,modalPicker:n=!0},maxPickerHeight:s,minPickerWidth:r,maxPickerWidth:a,variableWidth:l,beans:d,eWrapper:c}=this,u={modal:n,eChild:e,closeOnEsc:!0,closedCallback:()=>{const e=C(d);this.beforeHidePicker(),e&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(o,i),anchorToElement:c};e.style.position="absolute";const h=d.popupSvc,g=h.addPopup(u);l?(r&&(e.style.minWidth=r),e.style.width=Ge(be(c)),a&&(e.style.maxWidth=a)):Oe(e,a??be(c));const p=s??`${ve(h.getPopupParent())}px`;return e.style.setProperty("max-height",p),this.alignPickerToComponent(),g.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerGap:e,config:{pickerType:t},beans:{popupSvc:o,gos:i},eWrapper:n,pickerComponent:s}=this,r=i.get("enableRtl")?"right":"left";o.positionPopupByComponent({type:t,eventSource:n,ePopup:s.getGui(),position:"under",alignSide:r,keepWithinBounds:!0,nudgeY:e})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);const e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(e){if(!this.isAlive())return;const t=this.getAriaElement();W(t,e);const o=this.eWrapper.classList;o.toggle("ag-picker-expanded",e),o.toggle("ag-picker-collapsed",!e)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){this.pickerComponent?.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)}hidePicker(){this.hideCurrentPicker&&(this.hideCurrentPicker(),this.dispatchLocalEvent({type:"pickerHidden"}))}setInputWidth(e){return Oe(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return"number"===typeof e&&(e=`${e}px`),this.minPickerWidth=null==e?void 0:e,this}setPickerMaxWidth(e){return"number"===typeof e&&(e=`${e}px`),this.maxPickerWidth=null==e?void 0:e,this}setPickerMaxHeight(e){return"number"===typeof e&&(e=`${e}px`),this.maxPickerHeight=null==e?void 0:e,this}destroy(){this.hidePicker(),super.destroy()}},ja=".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}:where(.ag-select){.ag-picker-field-wrapper{cursor:default}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}&:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}:where(.ag-ltr) :where(.ag-select){.ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding)/2);padding-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-select){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-cell-horizontal-padding)/2)}}.ag-select-list{background-color:var(--ag-picker-list-background-color);border:var(--ag-picker-list-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow:hidden auto}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;:where(span){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}:where(.ag-ltr) .ag-select-list-item{padding-left:calc(var(--ag-cell-horizontal-padding)/2)}:where(.ag-rtl) .ag-select-list-item{padding-right:calc(var(--ag-cell-horizontal-padding)/2)}",Ka=class extends qa{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox",...e}),this.registerCSS(ja)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:Ie(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{options:e,value:t,placeholder:o}=this.config;null!=e&&this.addOptions(e),null!=t&&this.setValue(t,!0),o&&null==t&&(this.eDisplayField.textContent=o),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){const e=this.createBean(new _a("select"));this.listComponent=e,e.setParentComponent(this);const t=e.getAriaElement(),o=`ag-select-list-${e.getCompId()}`;t.setAttribute("id",o),ne(this.getAriaElement(),t),e.addManagedElementListeners(e.getGui(),{mousedown:e=>{e?.preventDefault()}}),e.addManagedListeners(e,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})},fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}beforeHidePicker(){this.listComponent?.hideItemTooltip(),super.beforeHidePicker()}onKeyDown(e){const{key:t}=e;switch(t===lr.TAB&&this.hidePicker(),t){case lr.ENTER:case lr.UP:case lr.DOWN:case lr.PAGE_UP:case lr.PAGE_DOWN:case lr.PAGE_HOME:case lr.PAGE_END:e.preventDefault(),this.isPickerDisplayed?this.listComponent?.handleKeyDown(e):super.onKeyDown(e);break;case lr.ESCAPE:super.onKeyDown(e);break;case lr.SPACE:this.isPickerDisplayed?e.preventDefault():super.onKeyDown(e);break}}showPicker(){const e=this.listComponent;e&&(super.showPicker(),e.refreshHighlighted())}addOptions(e){for(const t of e)this.addOption(t);return this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){return this.listComponent?.clearOptions(),this.setValue(void 0,!0),this}updateOptions(e){return this.listComponent?.updateOptions(e)&&this.setValue(void 0,!0),this}setValue(e,t,o){const{listComponent:i,config:{placeholder:n},eDisplayField:s,tooltipFeature:r}=this;if(this.value===e||!i)return this;o||i.setValue(e,!0);const a=i.getValue();if(a===this.getValue())return this;let l=i.getDisplayValue();return null==l&&n&&(l=n),s.textContent=l,r?.setTooltipAndRefresh(l??null),super.setValue(e,t)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},Qa={selector:"AG-SELECT",component:Ka},Xa=(e=>(e[e["Vertical"]=0]="Vertical",e[e["Horizontal"]=1]="Horizontal",e))(Xa||{}),Ya=':where(.ag-root-wrapper,.ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart),:where(.ag-root-wrapper,.ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]){box-sizing:border-box;&:after,&:before{box-sizing:border-box}&:where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:none;&:where(.invalid){box-shadow:inset var(--ag-focus-error-shadow)}}&:where(button){color:inherit}}:where(.ag-root-wrapper,ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]) ::-ms-clear{display:none}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-tab-guard{display:block;height:0;position:absolute;width:0}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-measurement-container{height:0;overflow:hidden;visibility:hidden;width:0}.ag-measurement-element-border{display:inline-block;&:before{border-left:var(--ag-internal-measurement-border);content:"";display:block}}.ag-popup-child{top:0;z-index:5;&:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}.ag-input-field-input:where(:not([type=checkbox],[type=radio])){flex:1 1 auto;min-width:0;width:100%}.ag-chart,.ag-dnd-ghost,.ag-external,.ag-popup,.ag-root-wrapper{cursor:default;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;background-color:var(--ag-background-color);color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);--ag-indentation-level:0}:where(.ag-icon):before{align-items:center;background-color:currentcolor;color:inherit;content:"";display:flex;font-family:inherit;font-size:var(--ag-icon-size);font-style:normal;font-variant:normal;height:var(--ag-icon-size);justify-content:center;line-height:var(--ag-icon-size);-webkit-mask-size:contain;mask-size:contain;text-transform:none;width:var(--ag-icon-size)}.ag-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;color:var(--ag-icon-color);display:block;height:var(--ag-icon-size);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}.ag-disabled,[disabled]{.ag-icon{opacity:.5}&.ag-icon-grip{opacity:.35}}.ag-resizer{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}:where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize;height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{cursor:nesw-resize;height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;cursor:nwse-resize;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;cursor:nesw-resize;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}',Za="object"!==typeof window||!window?.document?.fonts?.forEach,Ja=!1,el=(e,t,o,i,n,s)=>{if(Za)return;if(Ja)return;i&&(e=`@layer ${CSS.escape(i).replaceAll("\\.",".")} { ${e} }`);let r=nl.map.get(t);if(r||(r=[],nl.map.set(t,r)),r.some(t=>t.css===e))return;const a=document.createElement("style");s&&a.setAttribute("nonce",s),a.dataset.agGlobalCss=o,a.textContent=e;const l={css:e,el:a,priority:n};let d;for(const c of r){if(c.priority>n)break;d=c}if(d){d.el.insertAdjacentElement("afterend",a);const e=r.indexOf(d);r.splice(e+1,0,l)}else t.insertBefore(a,t.querySelector(":not(title, meta)")),r.push(l)},tl=(e,t,o,i)=>{el(Ya,e,"shared",t,0,o),i?.forEach((i,n)=>i.forEach(i=>el(i,e,n,t,0,o)))},ol=e=>{nl.grids.add(e)},il=e=>{if(nl.grids.delete(e),0===nl.grids.size){nl.map=new WeakMap;for(const e of document.head.querySelectorAll("style[data-ag-global-css]"))e.remove()}},nl=(wa="object"===typeof window?window:{}).agStyleInjectionState??(wa.agStyleInjectionState={map:new WeakMap,grids:new Set}),sl=e=>new ll(e),rl="$default",al=0,ll=class{constructor({feature:e,params:t,modeParams:o={},css:i,cssImports:n}){this.feature=e,this.css=i,this.cssImports=n,this.modeParams={[rl]:{...o[rl]??{},...t??{}},...o}}use(e,t,o){let i=this._inject;if(null==i){let{css:e}=this;if(e){const t=`ag-theme-${this.feature??"part"}-${++al}`;"function"===typeof e&&(e=e()),e=`:where(.${t}) {\n${e}\n}\n`;for(const o of this.cssImports??[])e=`@import url(${JSON.stringify(o)});\n${e}`;i={css:e,class:t}}else i=!1;this._inject=i}return i&&e&&el(i.css,e,i.class,t,1,o),!!i&&i.class}},dl=e=>e.replace(/[A-Z]/g,e=>`-${e}`).toLowerCase(),cl=e=>`--ag-${dl(e)}`,ul=e=>`var(${cl(e)})`,hl=(e,t,o)=>Math.max(t,Math.min(o,e)),gl=e=>{const t=new Map;return o=>{const i=o;return t.has(i)||t.set(i,e(o)),t.get(i)}},pl=e=>({ref:"accentColor",mix:e}),fl=e=>({ref:"foregroundColor",mix:e}),ml=e=>({ref:"foregroundColor",mix:e,onto:"backgroundColor"}),vl=e=>({ref:"foregroundColor",mix:e,onto:"headerBackgroundColor"}),Cl={ref:"backgroundColor"},wl={ref:"foregroundColor"},bl={ref:"accentColor"},yl={backgroundColor:"#fff",foregroundColor:"#181d1f",borderColor:fl(.15),chromeBackgroundColor:ml(.02),browserColorScheme:"light"},Sl={...yl,textColor:wl,accentColor:"#2196f3",invalidColor:"#e02525",fontFamily:["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],subtleTextColor:{ref:"textColor",mix:.5},borderWidth:1,borderRadius:4,spacing:8,fontSize:14,focusShadow:{spread:3,color:pl(.5)},focusErrorShadow:{spread:3,color:{ref:"invalidColor",onto:"backgroundColor",mix:.5}},popupShadow:"0 0 16px #00000026",cardShadow:"0 1px 4px 1px #00000018",dropdownShadow:{ref:"cardShadow"},listItemHeight:{calc:"max(iconSize, dataFontSize) + widgetVerticalSpacing"},dragAndDropImageBackgroundColor:Cl,dragAndDropImageBorder:!0,dragAndDropImageNotAllowedBorder:{color:{ref:"invalidColor",onto:"dragAndDropImageBackgroundColor",mix:.5}},dragAndDropImageShadow:{ref:"popupShadow"},iconSize:16,iconColor:"inherit",toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonOnBackgroundColor:bl,toggleButtonOffBackgroundColor:ml(.3),toggleButtonSwitchBackgroundColor:Cl,toggleButtonSwitchInset:2,tooltipBackgroundColor:{ref:"chromeBackgroundColor"},tooltipErrorBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.1},tooltipTextColor:{ref:"textColor"},tooltipErrorTextColor:{ref:"invalidColor"},tooltipBorder:!0,tooltipErrorBorder:{color:{ref:"invalidColor",onto:"backgroundColor",mix:.25}}},Rl=["colorScheme","color","length","scale","borderStyle","border","shadow","image","fontFamily","fontWeight","duration"],xl=gl(e=>(e=e.toLowerCase(),Rl.find(t=>e.endsWith(t.toLowerCase()))??"length")),El=e=>"object"===typeof e&&e?.ref?ul(e.ref):"string"===typeof e?e:"number"===typeof e&&String(e),Fl=e=>{if("string"===typeof e)return e;if(e&&"ref"in e){const t=ul(e.ref);if(null==e.mix)return t;const o=e.onto?ul(e.onto):"transparent";return`color-mix(in srgb, ${o}, ${t} ${hl(100*e.mix,0,100)}%)`}return!1},Pl=El,Dl=e=>{if("string"===typeof e)return e;if("number"===typeof e)return`${e}px`;if(e&&"calc"in e){const t=e.calc.replace(/ ?[*/+] ?/g," $& ");return`calc(${t.replace(/-?\b[a-z][a-z0-9]*\b(?![-(])/gi,e=>"-"===e[0]?e:" "+ul(e)+" ")})`}return!(!e||!("ref"in e))&&ul(e.ref)},kl=El,Ml=(e,t)=>"string"===typeof e?e:!0===e?Ml({},t):!1===e?"columnBorder"===t?Ml({color:"transparent"},t):"none":e&&"ref"in e?ul(e.ref):Tl(e.style??"solid")+" "+Dl(e.width??{ref:"borderWidth"})+" "+Fl(e.color??{ref:"borderColor"}),Al=e=>"string"===typeof e?e:!1===e?"none":e&&"ref"in e?ul(e.ref):[Dl(e.offsetX??0),Dl(e.offsetY??0),Dl(e.radius??0),Dl(e.spread??0),Fl(e.color??{ref:"foregroundColor"})].join(" "),Tl=El,Il=e=>"string"===typeof e?e.includes(",")?e:Ll(e):e&&"googleFont"in e?Il(e.googleFont):e&&"ref"in e?ul(e.ref):!!Array.isArray(e)&&e.map(e=>("object"===typeof e&&"googleFont"in e&&(e=e.googleFont),Ll(e))).join(", "),Ll=e=>/^[\w-]+$|\w\(/.test(e)?e:JSON.stringify(e),Bl=El,Ol=e=>"string"===typeof e?e:e&&"url"in e?`url(${JSON.stringify(e.url)})`:e&&"svg"in e?Ol({url:`data:image/svg+xml,${encodeURIComponent(e.svg)}`}):!(!e||!("ref"in e))&&ul(e.ref),Hl=(e,t,o)=>"string"===typeof e?e:"number"===typeof e?(e>=10&&o.warn(104,{value:e,param:t}),`${e}s`):!(!e||!("ref"in e))&&ul(e.ref),Vl={color:Fl,colorScheme:Pl,length:Dl,scale:kl,border:Ml,borderStyle:Tl,shadow:Al,image:Ol,fontFamily:Il,fontWeight:Bl,duration:Hl},Gl=(e,t,o)=>{const i=xl(e);return Vl[i](t,e,o)},Nl=e=>{if(!(e instanceof Wl))throw new Error("theme is not an object created by createTheme");return e},zl=e=>new Wl(e),Wl=class e{constructor(e,t=[]){this.themeLogger=e,this.parts=t}withPart(t){return"function"===typeof t&&(t=t()),t instanceof ll?new e(this.themeLogger,[...this.parts,t]):(this.themeLogger.preInitErr(259,"Invalid part",{part:t}),this)}withoutPart(e){return this.withPart(sl({feature:e}))}withParams(e,t=rl){return this.withPart(sl({modeParams:{[t]:e}}))}_startUse({styleContainer:e,cssLayer:t,nonce:o,loadThemeGoogleFonts:i,moduleCss:n}){if(Za)return;if(Ja)return;ql(),tl(e,t,o,n);const s=Ul(this);if(s.length>0)for(const r of s)i&&jl(r,o);for(const r of this.parts)r.use(e,t,o)}_getCssClass(){return Ja?"ag-theme-quartz":this._cssClassCache??(this._cssClassCache=_l(this.parts).map(e=>e.use(void 0,void 0,void 0)).filter(Boolean).join(" "))}_getModeParams(){let e=this._paramsCache;if(!e){const t={[rl]:{...Sl}};for(const e of _l(this.parts))for(const o of Object.keys(e.modeParams)){const i=e.modeParams[o];if(i){const e=t[o]??(t[o]={}),n=new Set;for(const t of Object.keys(i)){const o=i[t];void 0!==o&&(e[t]=o,n.add(t))}if(o===rl)for(const o of Object.keys(t)){const e=t[o];if(o!==rl)for(const t of n)delete e[t]}}}this._paramsCache=e=t}return e}_getPerInstanceCss(e){const t="##SELECTOR##";let o=this._paramsCssCache;if(!o){let e="",i="";const n=this._getModeParams();for(const t of Object.keys(n)){const o=n[t];if(t!==rl){const o="object"===typeof CSS?CSS.escape(t):t,n=`:where([data-ag-theme-mode="${o}"]) & {\n`;e+=n,i+=n}for(const t of Object.keys(o).sort()){const n=o[t],s=Gl(t,n,this.themeLogger);if(!1===s)this.themeLogger.error(107,{key:t,value:n});else{const o=cl(t),n=o.replace("--ag-","--ag-inherited-");e+=`\t${o}: var(${n}, ${s});\n`,i+=`\t${n}: var(${o});\n`}}t!==rl&&(e+="}\n",i+="}\n")}let s=`${t} {\n${e}}\n`;s+=`:has(> ${t}):not(${t}) {\n${i}}\n`,this._paramsCssCache=o=s}return o.replaceAll(t,`:where(.${e})`)}},_l=e=>{const t=new Map;for(const i of e)t.set(i.feature,i);const o=[];for(const i of e)i.feature&&t.get(i.feature)!==i||o.push(i);return o},Ul=e=>{const t=new Set,o=e=>{if(Array.isArray(e))e.forEach(o);else{const o=e?.googleFont;"string"===typeof o&&t.add(o)}},i=Object.values(e._getModeParams()),n=i.flatMap(e=>Object.values(e));return n.forEach(o),Array.from(t).sort()},$l=!1,ql=()=>{if(!$l){$l=!0;for(const e of Array.from(document.head.querySelectorAll('style[data-ag-scope="legacy"]')))e.remove()}},jl=async(e,t)=>{const o=`@import url('https://${Kl}/css2?family=${encodeURIComponent(e)}:wght@100;200;300;400;500;600;700;800;900&display=swap');\n`;el(o,document.head,`googleFont:${e}`,void 0,0,t)},Kl="fonts.googleapis.com",Ql=1,Xl=class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,this.instanceId=Ql++,e?.beanClasses&&(this.beanDestroyComparator=e.beanDestroyComparator,this.init(e))}init(e){this.id=e.id,this.beans.context=this,this.destroyCallback=e.destroyCallback;for(const t of Object.keys(e.providedBeanInstances))this.beans[t]=e.providedBeanInstances[t];for(const t of e.beanClasses){const e=new t;e.beanName?this.beans[e.beanName]=e:console.error(`Bean ${t.name} is missing beanName`),this.createdBeans.push(e)}for(const t of e.derivedBeans??[]){const{beanName:e,bean:o}=t(this);this.beans[e]=o,this.createdBeans.push(o)}e.beanInitComparator&&this.createdBeans.sort(e.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(e,t){return this.initBeans([e],t),e}initBeans(e,t){const o=this.beans;for(const i of e)i.preWireBeans?.(o),i.wireBeans?.(o);for(const i of e)i.preConstruct?.();t&&e.forEach(t);for(const i of e)i.postConstruct?.()}getBeans(){return this.beans}getBean(e){return this.beans[e]}getId(){return this.id}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this.getBeanInstances();this.beanDestroyComparator&&e.sort(this.beanDestroyComparator),this.destroyBeans(e),this.beans={},this.createdBeans=[],this.destroyCallback?.()}destroyBean(e){e?.destroy?.()}destroyBeans(e){if(e)for(let t=0;t<e.length;t++)this.destroyBean(e[t]);return[]}isDestroyed(){return this.destroyed}},Yl=0,Zl={cssName:"--ag-list-item-height",changeKey:"listItemHeightChanged",defaultValue:24},Jl=class extends ft{constructor(){super(...arguments),this.beanName="environment",this.sizeEls=new Map,this.lastKnownValues=new Map,this.sizesMeasured=!1,this.paramsClass="ag-theme-params-"+ ++Yl,this.globalCSS=[]}wireBeans(e){this.eRootDiv=e.eRootDiv}postConstruct(){const{gos:e,eRootDiv:t}=this;e.setInstanceDomData(t);const o=e.get("themeStyleContainer"),i="undefined"!==typeof ShadowRoot,n=i&&t.getRootNode()instanceof ShadowRoot;this.eStyleContainer=("function"===typeof o?o():o)??(n?t:document.head),o||n||!i||td(t,this.shadowRootError.bind(this),this.addDestroyFunc.bind(this)),this.cssLayer=e.get("themeCssLayer"),this.styleNonce=e.get("styleNonce"),this.addManagedPropertyListener("theme",()=>this.handleThemeChange()),this.handleThemeChange(),this.getSizeEl(Zl),this.initVariables(),this.addDestroyFunc(()=>il(this)),this.mutationObserver=new MutationObserver(()=>{this.fireStylesChangedEvent("themeChanged")}),this.addDestroyFunc(()=>this.mutationObserver.disconnect())}applyThemeClasses(e,t=[]){const{theme:o}=this;let i;i=o?`${this.paramsClass} ${o._getCssClass()}`:this.applyLegacyThemeClasses();for(const n of Array.from(e.classList))n.startsWith("ag-theme-")&&e.classList.remove(n);if(i){const o=e.className;e.className=`${o}${o?" ":""}${i}${t?.length?" "+t.join(" "):""}`}}applyLegacyThemeClasses(){let e="";this.mutationObserver.disconnect();let t=this.eRootDiv;while(t){let o=!1;for(const i of Array.from(t.classList))i.startsWith("ag-theme-")&&(o=!0,e=e?`${e} ${i}`:i);o&&this.mutationObserver.observe(t,{attributes:!0,attributeFilter:["class"]}),t=t.parentElement}return e}addGlobalCSS(e,t){this.theme?el(e,this.eStyleContainer,t,this.cssLayer,0,this.styleNonce):this.globalCSS.push([e,t])}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(Zl)}getCSSVariablePixelValue(e){const t=this.lastKnownValues.get(e);if(null!=t)return t;const o=this.measureSizeEl(e);return"detached"===o||"no-styles"===o?(e.cacheDefault&&this.lastKnownValues.set(e,e.defaultValue),e.defaultValue):(this.lastKnownValues.set(e,o),o)}measureSizeEl(e){const t=this.getSizeEl(e);if(null==t.offsetParent)return"detached";const o=t.offsetWidth;return o===ed?"no-styles":(this.sizesMeasured=!0,o)}getMeasurementContainer(){let e=this.eMeasurementContainer;return e||(e=this.eMeasurementContainer=je({tag:"div",cls:"ag-measurement-container"}),this.eRootDiv.appendChild(e)),e}getSizeEl(e){let t=this.sizeEls.get(e);if(t)return t;const o=this.getMeasurementContainer();t=je({tag:"div"});const{border:i,noWarn:n}=e;i?(t.className="ag-measurement-element-border",t.style.setProperty("--ag-internal-measurement-border",`var(${e.cssName}, solid ${ed}px)`)):t.style.width=`var(${e.cssName}, ${ed}px)`,o.appendChild(t),this.sizeEls.set(e,t);let s=this.measureSizeEl(e);"no-styles"!==s||n||this.varError(e);const r=We(this.beans,t,()=>{const t=this.measureSizeEl(e);"detached"!==t&&"no-styles"!==t&&(this.lastKnownValues.set(e,t),t!==s&&(s=t,this.fireStylesChangedEvent(e.changeKey)))});return this.addDestroyFunc(()=>r()),t}handleThemeChange(){const{gos:e,theme:t}=this,o=e.get("theme");let i;if("legacy"===o)i=void 0;else{const e=o??this.getDefaultTheme();e instanceof Wl?i=e:this.themeError(e)}i!==t&&this.handleNewTheme(i),this.postProcessThemeChange(i,o)}handleNewTheme(e){const{gos:t,eRootDiv:o,globalCSS:i}=this,n=this.getAdditionalCss();if(e){ol(this),tl(this.eStyleContainer,this.cssLayer,this.styleNonce,n);for(const[e,t]of i)el(e,this.eStyleContainer,t,this.cssLayer,0,this.styleNonce);i.length=0}this.theme=e,e?._startUse({loadThemeGoogleFonts:t.get("loadThemeGoogleFonts"),styleContainer:this.eStyleContainer,cssLayer:this.cssLayer,nonce:this.styleNonce,moduleCss:n});let s=this.eParamsStyle;if(!s){s=this.eParamsStyle=je({tag:"style"});const e=t.get("styleNonce");e&&s.setAttribute("nonce",e),o.appendChild(s)}Za||(s.textContent=e?._getPerInstanceCss(this.paramsClass)||""),this.applyThemeClasses(o),this.fireStylesChangedEvent("themeChanged")}fireStylesChangedEvent(e){this.eventSvc.dispatchEvent({type:"stylesChanged",[e]:!0})}},ed=15538,td=(e,t,o)=>{let i=60;const n=setInterval(()=>{"undefined"!==typeof ShadowRoot&&e.getRootNode()instanceof ShadowRoot&&(t(),clearInterval(n)),(Fe(e)||--i<0)&&clearInterval(n)},1e3);o(()=>clearInterval(n))},od=class extends ft{constructor(){super(...arguments),this.beanName="registry"}registerDynamicBeans(e){if(e){this.dynamicBeans??(this.dynamicBeans={});for(const t of Object.keys(e))this.dynamicBeans[t]=e[t]}}createDynamicBean(e,t,...o){if(!this.dynamicBeans)throw new Error(this.getDynamicError(e,!0));const i=this.dynamicBeans[e];if(null!=i)return new i(...o);if(t)throw new Error(this.getDynamicError(e,!1))}},id=class extends ft{constructor(){super(...arguments),this.beanName="eventSvc",this.eventServiceType="global",this.globalSvc=new i}addListener(e,t,o){this.globalSvc.addEventListener(e,t,o)}removeListener(e,t,o){this.globalSvc.removeEventListener(e,t,o)}addGlobalListener(e,t=!1){this.globalSvc.addGlobalListener(e,t)}removeGlobalListener(e,t=!1){this.globalSvc.removeGlobalListener(e,t)}dispatchEvent(e){this.globalSvc.dispatchEvent(this.gos.addCommon(e))}dispatchEventOnce(e){this.globalSvc.dispatchEventOnce(this.gos.addCommon(e))}},nd=class extends ft{constructor(e,t){super(),this.ctrl=e,t&&(this.beans=t)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(e,t){const o="title",i=this.ctrl.getGui();i&&(null==e||""==e&&!t?i.removeAttribute(o):i.setAttribute(o,e))}updateTooltipText(){const{getTooltipValue:e}=this.ctrl;e&&(this.tooltip=e())}createTooltipFeatureIfNeeded(){if(null==this.tooltipManager){const e=this.beans.registry.createDynamicBean("tooltipStateManager",!0,this.ctrl,()=>this.tooltip);e&&(this.tooltipManager=this.createBean(e,this.beans.context))}}attemptToShowTooltip(){this.tooltipManager?.prepareToShowTooltip()}attemptToHideTooltip(){this.tooltipManager?.hideTooltip()}setTooltipAndRefresh(e){this.tooltip=e,this.refreshTooltip()}refreshTooltip(e){this.browserTooltips=this.beans.gos.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)):(this.setBrowserTooltip(e?"":null,e),this.createTooltipFeatureIfNeeded())}destroy(){this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context),super.destroy()}},sd=1e3,rd=1e3,ad=100,ld=!1,dd=class extends ft{constructor(e,t){super(),this.tooltipCtrl=e,this.getTooltipValue=t,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}wireBeans(e){this.popupSvc=e.popupSvc}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");const e=this.tooltipCtrl.getGui();0===this.tooltipTrigger&&this.addManagedListeners(e,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),1===this.tooltipTrigger&&this.addManagedListeners(e,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(e,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(e,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(e){const t=this.gos.get(e);return Math.max(200,t)}getTooltipDelay(e){return"show"===e?this.tooltipCtrl.getTooltipShowDelayOverride?.()??this.getGridOptionsTooltipDelay("tooltipShowDelay"):this.tooltipCtrl.getTooltipHideDelayOverride?.()??this.getGridOptionsTooltipDelay("tooltipHideDelay")}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){const e=this.gos.get("tooltipTrigger");return e&&"hover"!==e?1:0}onMouseEnter(e){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),Pr()||(ld?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(e)},ad):this.prepareToShowTooltip(e))}onMouseMove(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&2===this.state&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(e){const t=e.relatedTarget,o=this.tooltipCtrl.getGui(),i=this.tooltipComp?.getGui();this.isInteractingWithTooltip||o.contains(t)||this.interactionEnabled&&i?.contains(t)||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(e){if(0!=this.state||ld)return;let t=0;e&&(t=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.state=1}isLastTooltipHiddenRecently(){const e=Date.now(),t=ba;return e-t<sd}setToDoNothing(e){e||2!==this.state||this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.clearEventHandlers(),this.onDocumentKeyDownCallback&&(this.onDocumentKeyDownCallback(),this.onDocumentKeyDownCallback=void 0),this.clearTimeouts(),this.state=0,this.lastMouseEvent=null}showTooltip(){const e=this.getTooltipValue(),t=this.tooltipCtrl;if(!s(e)||t.shouldDisplayTooltip&&!t.shouldDisplayTooltip())return void this.setToDoNothing();const o=this.gos.addCommon({location:t.getLocation?.()??"UNKNOWN",value:e,hideTooltipCallback:()=>this.hideTooltip(!0),...t.getAdditionalParams?.()});this.state=2,this.tooltipInstanceCount++;const i=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.createTooltipComp(o,i)}hideTooltip(e){!e&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),ba=Date.now()),this.eventSvc.dispatchEvent({type:"tooltipHide",parentGui:this.tooltipCtrl.getGui()}),e&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(e,t){const o=2!==this.state||this.tooltipInstanceCount!==e;if(o)return void this.destroyBean(t);const i=t.getGui();this.tooltipComp=t,i.classList.contains("ag-tooltip")||i.classList.add("ag-tooltip-custom"),0===this.tooltipTrigger&&i.classList.add("ag-tooltip-animate"),this.interactionEnabled&&i.classList.add("ag-tooltip-interactive");const n=this.getLocaleTextFunc(),s=this.popupSvc?.addPopup({eChild:i,ariaLabel:n("ariaLabelTooltip","Tooltip")});if(s&&(this.tooltipPopupDestroyFunc=s.hideFunc),this.positionTooltip(),1===this.tooltipTrigger){const e=()=>this.setToDoNothing();[this.onBodyScrollEventCallback]=this.addManagedEventListeners({bodyScroll:e}),this.setEventHandlers(e)}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(i,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(v(this.beans),{keydown:e=>{i.contains(e?.target)||this.onKeyDown()}}),1===this.tooltipTrigger&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(i,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:i,parentGui:this.tooltipCtrl.getGui()}),this.startHideTimeout()}onTooltipMouseEnter(){this.isInteractingWithTooltip=!0,this.unlockService()}onTooltipMouseLeave(){this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,this.lockService())}onTooltipFocusIn(){this.isInteractingWithTooltip=!0}isTooltipFocused(){const e=this.tooltipComp?.getGui(),t=m(this.beans);return!!e&&e.contains(t)}onTooltipFocusOut(e){const t=this.tooltipCtrl.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,t.contains(e.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){const e={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupSvc?.positionPopupUnderMouseEvent({...e,mouseEvent:this.lastMouseEvent}):this.popupSvc?.positionPopupByComponent({...e,eventSource:this.tooltipCtrl.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5})}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");const e=this.tooltipPopupDestroyFunc,t=this.tooltipComp,o=0===this.tooltipTrigger?rd:0;window.setTimeout(()=>{e(),this.destroyBean(t)},o),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){for(const e of[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener])e&&e();this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){ld=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},ad)}unlockService(){ld=!1,this.clearInteractiveTimeout()}startHideTimeout(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay("hide"))}clearShowTimeout(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)}clearHideTimeout(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)}clearInteractiveTimeout(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()}},cd=class extends nd{constructor(e,t,o){super(e,o),this.highlightTracker=t,this.onHighlight=this.onHighlight.bind(this)}postConstruct(){super.postConstruct(),this.wireHighlightListeners()}wireHighlightListeners(){this.addManagedPropertyListener("tooltipTrigger",({currentValue:e})=>{this.setTooltipMode(e)}),this.setTooltipMode(this.gos.get("tooltipTrigger")),this.highlightTracker.addEventListener("itemHighlighted",this.onHighlight)}onHighlight(e){1===this.tooltipMode&&(e.highlighted?this.attemptToShowTooltip():this.attemptToHideTooltip())}setTooltipMode(e="focus"){this.tooltipMode="focus"===e?1:0}destroy(){this.highlightTracker.removeEventListener("itemHighlighted",this.onHighlight),super.destroy()}},ud=0,hd=200,gd=class extends ft{constructor(){super(...arguments),this.beanName="popupSvc",this.popupList=[]}postConstruct(){this.addManagedEventListeners({stylesChanged:this.handleThemeChange.bind(this)})}getPopupParent(){const e=this.gos.get("popupParent");return e||this.getDefaultPopupParent()}positionPopupUnderMouseEvent(e){const{ePopup:t,nudgeX:o,nudgeY:i,skipObserver:n}=e;this.positionPopup({ePopup:t,nudgeX:o,nudgeY:i,keepWithinBounds:!0,skipObserver:n,updatePosition:()=>this.calculatePointerAlign(e.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,e.type,e.ePopup,null,e.mouseEvent)})}calculatePointerAlign(e){const t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}positionPopupByComponent(e){const{ePopup:t,nudgeX:o,nudgeY:i,keepWithinBounds:n,eventSource:s,alignSide:r="left",position:a="over",type:l}=e,d=s.getBoundingClientRect(),c=this.getParentRect();this.setAlignedTo(s,t);const u=()=>{let o,n=d.left-c.left;if("right"===r&&(n-=t.offsetWidth-d.width),"over"===a)o=d.top-c.top,this.setAlignedStyles(t,"over");else{this.setAlignedStyles(t,"under");const n=this.shouldRenderUnderOrAbove(t,d,c,e.nudgeY||0);o="under"===n?d.top-c.top+d.height:d.top-t.offsetHeight-2*(i||0)-c.top}return{x:n,y:o}};this.positionPopup({ePopup:t,nudgeX:o,nudgeY:i,keepWithinBounds:n,updatePosition:u,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,l,t,s,null)})}positionPopupForMenu(e){const{eventSource:t,ePopup:o,event:i}=e,n=t.getBoundingClientRect(),s=this.getParentRect();this.setAlignedTo(t,o);let r=!1;const a=()=>{const e=this.keepXYWithinBounds(o,n.top-s.top,0),t=o.clientWidth>0?o.clientWidth:200;r||(o.style.minWidth=`${t}px`,r=!0);const i=s.right-s.left,a=i-t;let l;return this.gos.get("enableRtl")?(l=c(),l<0&&(l=d(),this.setAlignedStyles(o,"left")),l>a&&(l=0,this.setAlignedStyles(o,"right"))):(l=d(),l>a&&(l=c(),this.setAlignedStyles(o,"right")),l<0&&(l=0,this.setAlignedStyles(o,"left"))),{x:l,y:e};function d(){return n.right-s.left-2}function c(){return n.left-s.left-t}};this.positionPopup({ePopup:o,keepWithinBounds:!0,updatePosition:a,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,"subMenu",o,t,i instanceof MouseEvent?i:void 0)})}shouldRenderUnderOrAbove(e,t,o,i){const n=o.bottom-t.bottom,s=t.top-o.top,r=e.offsetHeight+i;return n>r?"under":s>r||s>n?"above":"under"}setAlignedStyles(e,t){const o=this.getPopupIndex(e);if(-1===o)return;const i=this.popupList[o],{alignedToElement:n}=i;if(!n)return;const s=["right","left","over","above","under"];for(const r of s)n.classList.remove(`ag-has-popup-positioned-${r}`),e.classList.remove(`ag-popup-positioned-${r}`);t&&(n.classList.add(`ag-has-popup-positioned-${t}`),e.classList.add(`ag-popup-positioned-${t}`))}setAlignedTo(e,t){const o=this.getPopupIndex(t);if(-1!==o){const t=this.popupList[o];t.alignedToElement=e}}positionPopup(e){const{ePopup:t,keepWithinBounds:o,nudgeX:i,nudgeY:n,skipObserver:s,updatePosition:r}=e,a={width:0,height:0},l=(s=!1)=>{let{x:l,y:d}=r();s&&t.clientWidth===a.width&&t.clientHeight===a.height||(a.width=t.clientWidth,a.height=t.clientHeight,i&&(l+=i),n&&(d+=n),o&&(l=this.keepXYWithinBounds(t,l,1),d=this.keepXYWithinBounds(t,d,0)),t.style.left=`${l}px`,t.style.top=`${d}px`,e.postProcessCallback&&e.postProcessCallback())};if(l(),!s){const e=We(this.beans,t,()=>l(!0));setTimeout(()=>e(),hd)}}getParentRect(){const e=v(this.beans);let t=this.getPopupParent();return t===e.body?t=e.documentElement:"static"===getComputedStyle(t).position&&(t=t.offsetParent),ye(t)}keepXYWithinBounds(e,t,o){const i=0===o,n=i?"clientHeight":"clientWidth",s=i?"top":"left",r=i?"height":"width",a=i?"scrollTop":"scrollLeft",l=v(this.beans),d=l.documentElement,c=this.getPopupParent(),u=e.getBoundingClientRect(),h=c.getBoundingClientRect(),g=l.documentElement.getBoundingClientRect(),p=c===l.body,f=Math.ceil(u[r]),m=i?we:be;let C=p?m(d)+d[a]:c[n];p&&(C-=Math.abs(g[s]-h[s]));const w=C-f;return Math.min(Math.max(t,0),Math.max(w,0))}addPopup(e){const{eChild:t,ariaLabel:o,ariaOwns:i,alwaysOnTop:n,positionCallback:s,anchorToElement:r}=e,a=this.getPopupIndex(t);if(-1!==a){const e=this.popupList[a];return{hideFunc:e.hideFunc}}this.initialisePopupPosition(t);const l=this.createPopupWrapper(t,!!n,o,i),d=this.addEventListenersToPopup({...e,wrapperEl:l});return s&&s(),this.addPopupToPopupList(t,l,d,r),{hideFunc:d}}initialisePopupPosition(e){const t=this.getPopupParent(),o=t.getBoundingClientRect();s(e.style.top)||(e.style.top=-1*o.top+"px"),s(e.style.left)||(e.style.left=-1*o.left+"px")}createPopupWrapper(e,t,o,i){const n=this.getPopupParent(),{environment:s,gos:r}=this.beans,a=je({tag:"div"});return s.applyThemeClasses(a),a.classList.add("ag-popup"),e.classList.add(r.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),e.hasAttribute("role")||P(e,"dialog"),o?A(e,o):i&&(e.id||(e.id=`popup-component-${ud}`),se(i,e.id)),a.appendChild(e),n.appendChild(a),t?this.setAlwaysOnTop(e,!0):this.bringPopupToFront(e),a}addEventListenersToPopup(e){const t=this.beans,o=v(t),{wrapperEl:i,eChild:n,closedCallback:s,afterGuiAttached:r,closeOnEsc:a,modal:l,ariaOwns:d}=e;let c=!1;const u=e=>{if(!i.contains(m(t)))return;const o=e.key;o!==lr.ESCAPE||this.isStopPropagation(e)||p({keyboardEvent:e})},h=e=>p({mouseEvent:e}),g=e=>p({touchEvent:e}),p=(e={})=>{const{mouseEvent:t,touchEvent:r,keyboardEvent:a,forceHide:l}=e;(l||!this.isEventFromCurrentPopup({mouseEvent:t,touchEvent:r},n)&&!c)&&(c=!0,i.remove(),o.removeEventListener("keydown",u),o.removeEventListener("mousedown",h),o.removeEventListener("touchstart",g),o.removeEventListener("contextmenu",h),this.eventSvc.removeListener("dragStarted",h),s&&s(t||r||a),this.removePopupFromPopupList(n,d))};return r&&r({hidePopup:p}),window.setTimeout(()=>{a&&o.addEventListener("keydown",u),l&&(o.addEventListener("mousedown",h),this.eventSvc.addListener("dragStarted",h),o.addEventListener("touchstart",g),o.addEventListener("contextmenu",h))},0),p}addPopupToPopupList(e,t,o,i){this.popupList.push({element:e,wrapper:t,hideFunc:o,instanceId:ud,isAnchored:!!i}),i&&this.setPopupPositionRelatedToElement(e,i),ud+=1}getPopupIndex(e){return this.popupList.findIndex(t=>t.element===e)}setPopupPositionRelatedToElement(e,t){const o=this.getPopupIndex(e);if(-1===o)return;const i=this.popupList[o];if(i.stopAnchoringPromise&&i.stopAnchoringPromise.then(e=>e&&e()),i.stopAnchoringPromise=void 0,i.isAnchored=!1,!t)return;const n=this.keepPopupPositionedRelativeTo({element:t,ePopup:e,hidePopup:i.hideFunc});return i.stopAnchoringPromise=n,i.isAnchored=!0,n}removePopupFromPopupList(e,t){this.setAlignedStyles(e,null),this.setPopupPositionRelatedToElement(e,null),t&&se(t,null),this.popupList=this.popupList.filter(t=>t.element!==e)}keepPopupPositionedRelativeTo(e){const t=this.getPopupParent(),o=t.getBoundingClientRect(),{element:i,ePopup:n}=e,s=i.getBoundingClientRect(),r=e=>Number.parseInt(e.substring(0,e.length-1),10),a=(e,t)=>{const i=o[e]-s[e],a=r(n.style[e]);return{initialDiff:i,lastDiff:i,initial:a,last:a,direction:t}},l=a("top",0),d=a("left",1),c=this.beans.frameworkOverrides;return new Cs(o=>{c.wrapIncoming(()=>{vs(()=>{const o=t.getBoundingClientRect(),s=i.getBoundingClientRect(),a=0==s.top&&0==s.left&&0==s.height&&0==s.width;if(a)return void e.hidePopup();const c=(e,t)=>{const i=r(n.style[t]);e.last!==i&&(e.initial=i,e.last=i);const a=o[t]-s[t];if(a!=e.lastDiff){const o=this.keepXYWithinBounds(n,e.initial+e.initialDiff-a,e.direction);n.style[t]=`${o}px`,e.last=o}e.lastDiff=a};c(l,"top"),c(d,"left")},200).then(e=>{const t=()=>{null!=e&&window.clearInterval(e)};o(t)})},"popupPositioning")})}isEventFromCurrentPopup(e,t){const{mouseEvent:o,touchEvent:i}=e,n=o||i;if(!n)return!1;const s=this.getPopupIndex(t);if(-1===s)return!1;for(let r=s;r<this.popupList.length;r++){const e=this.popupList[r];if(Ze(e.element,n))return!0}return this.isElementWithinCustomPopup(n.target)}isElementWithinCustomPopup(e){const t=v(this.beans);while(e&&e!==t.body){if(e.classList.contains("ag-custom-component-popup")||null===e.parentElement)return!0;e=e.parentElement}return!1}getWrapper(e){while(!e.classList.contains("ag-popup")&&e.parentElement)e=e.parentElement;return e.classList.contains("ag-popup")?e:null}setAlwaysOnTop(e,t){const o=this.getWrapper(e);o&&(o.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(o))}bringPopupToFront(e){const t=this.getPopupParent(),o=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),i=o.length,n=this.getWrapper(e);if(!n||i<=1||!t.contains(e))return;const s=[],r=[];for(const h of o)h!==n&&(h.classList.contains("ag-always-on-top")?r.push(h):s.push(h));const a=[],l=r.length,d=n.classList.contains("ag-always-on-top"),c=d||!l,u=c?[...s,...r,n]:[...s,n,...r];for(let h=0;h<=i;h++){const e=u[h];if(o[h]===u[h]||e===n)continue;const i=e.querySelectorAll("div");for(const t of i)0!==t.scrollTop&&a.push([t,t.scrollTop]);0===h?t.insertAdjacentElement("afterbegin",e):u[h-1].insertAdjacentElement("afterend",e)}while(a.length){const e=a.pop();e[0].scrollTop=e[1]}}handleThemeChange(e){if(e.themeChanged){const e=this.beans.environment;for(const t of this.popupList)e.applyThemeClasses(t.wrapper)}}},pd=class extends Rr{constructor(){super({tag:"div",cls:"ag-tooltip"})}init(e){const{value:t}=e,o=this.getGui();o.textContent=h(t);const i=e.location.replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase();o.classList.add(`ag-${i}-tooltip`)}},fd=(e,t)=>{if(null!=t&&e?.setPointerCapture)try{return e.setPointerCapture(t),e.hasPointerCapture(t)}catch{}return!1},md=(e,t)=>{if("undefined"===typeof PointerEvent||!(t instanceof PointerEvent))return null;const o=t.pointerId;if(!fd(e,o))return null;const i={eElement:e,pointerId:o,onLost(e){wd(i,e)}};return e.addEventListener("lostpointercapture",i.onLost),i},vd=e=>{if(!e)return;Cd(e);const{eElement:t,pointerId:o}=e;if(t){try{t.releasePointerCapture(o)}catch{}e.eElement=null}},Cd=e=>{const{eElement:t,onLost:o}=e;t&&o&&(t.removeEventListener("lostpointercapture",o),e.onLost=null)},wd=(e,t)=>{Cd(e);const{eElement:o,pointerId:i}=e;o&&t.pointerId===i&&fd(o,i)},bd={passive:!0},yd={passive:!1},Sd=e=>{if(Sa){if(Sa.has(e))return!1}else Sa=new WeakSet;return Sa.add(e),!0},Rd=class extends ft{constructor(){super(...arguments),this.beanName="dragSvc",this.dragging=!1,this.drag=null,this.dragSources=[]}get startTarget(){return this.drag?.start.target??null}isPointer(){return!!ya?.has(f(this.beans))}hasPointerCapture(){const e=this.drag?.pointerCapture;return!(!e||!this.beans.eRootDiv.hasPointerCapture?.(e.pointerId))}destroy(){this.drag&&this.cancelDrag();const e=this.dragSources;for(const t of e)xd(t);e.length=0,super.destroy()}removeDragSource(e){const t=this.dragSources;for(let o=0,i=t.length;o<i;++o){const i=t[o];if(i.params===e){t.splice(o,1),xd(i);break}}}addDragSource(e){if(!this.isAlive())return;const{eElement:t,includeTouch:o}=e,i=[];let n;if(o){const e=t.style;e&&(n=e.touchAction,e.touchAction="none")}const s={handlers:i,params:e,oldTouchAction:n};this.dragSources.push(s);const r=t=>this.onPointerDown(e,t),a=t=>this.onMouseDown(e,t);at(i,[t,"pointerdown",r,yd],[t,"mousedown",a]);const l=this.gos.get("suppressTouch");if(o&&!l){const o=t=>this.onTouchStart(e,t);at(i,[t,"touchstart",o,yd])}}cancelDrag(e){const t=this.drag;e??(e=t?.eElement),e&&this.eventSvc.dispatchEvent({type:"dragCancelled",target:e}),t?.params.onDragCancel?.(),this.destroyDrag()}shouldPreventMouseEvent(e){const t=e.type,o="mousemove"===t||"pointermove"===t;return o&&e.cancelable&&st(this.beans,e)&&!ue(Fd(e))}initDrag(e,...t){this.drag=e;const o=this.beans,i=e=>this.onScroll(e),n=e=>this.onKeyDown(e),s=f(o),r=v(o);at(e.handlers,[s,"contextmenu",dt],[s,"keydown",n],[r,"scroll",i,{capture:!0}],[r.defaultView||window,"scroll",i],...t)}destroyDrag(){this.dragging=!1;const e=this.drag;if(e){const t=e.rootEl;ya?.get(t)===e&&ya.delete(t),this.drag=null,vd(e.pointerCapture),lt(e.handlers)}}onPointerDown(e,t){if(this.isPointer())return;const o=this.beans;if(Sa?.has(t))return;const i=t.pointerType;if("touch"===i){if(o.gos.get("suppressTouch")||!e.includeTouch)return;if(e.stopPropagationForTouch&&t.stopPropagation(),ue(Fd(t)))return}if(!t.isPrimary)return;if("mouse"===i&&0!==t.button)return;this.destroyDrag();const n=f(o),s=e.eElement,r=t.pointerId,a=new Ed(n,e,t,r);ya??(ya=new WeakMap),ya.set(n,a);const l=e=>{e.pointerId===r&&this.onMouseOrPointerMove(e)},d=e=>{e.pointerId===r&&this.onMouseOrPointerUp(e)},c=e=>{e.pointerId===r&&Sd(e)&&this.cancelDrag()},u=e=>this.draggingPreventDefault(e);this.initDrag(a,[n,"pointerup",d],[n,"pointercancel",c],[n,"pointermove",l,yd],[n,"touchmove",u,yd],[s,"mousemove",u,yd]),0===e.dragStartPixels?this.onMouseOrPointerMove(t):Sd(t)}onTouchStart(e,t){const o=this.gos.get("suppressTouch");if(o||!e.includeTouch)return;if(!Sd(t))return;if(ue(Fd(t)))return;if(e.stopPropagationForTouch&&t.stopPropagation(),this.isPointer())return void(this.dragging&&dt(t));this.destroyDrag();const i=this.beans,n=f(i),s=new Ed(n,e,t.touches[0]),r=e=>this.onTouchMove(e),a=e=>this.onTouchUp(e),l=e=>this.onTouchCancel(e),d=e=>this.draggingPreventDefault(e),c=f(i),u=t.target??e.eElement;this.initDrag(s,[u,"touchmove",r,bd],[u,"touchend",a,bd],[u,"touchcancel",l,bd],[c,"touchmove",d,yd],[c,"touchend",a,yd],[c,"touchcancel",l,yd]),0===e.dragStartPixels&&this.onMove(s.start)}draggingPreventDefault(e){this.dragging&&dt(e)}onMouseDown(e,t){if(0!==t.button)return;if(Sa?.has(t))return;if(this.isPointer())return;const o=this.beans;this.destroyDrag();const i=new Ed(f(o),e,t),n=e=>this.onMouseOrPointerMove(e),s=e=>this.onMouseOrPointerUp(e),r=f(o);this.initDrag(i,[r,"mousemove",n],[r,"mouseup",s]),0===e.dragStartPixels?this.onMouseOrPointerMove(t):Sd(t)}onScroll(e){if(!Sd(e))return;const t=this.drag,o=t?.lastDrag;o&&this.dragging&&t.params?.onDragging?.(o)}onMouseOrPointerMove(e){Sd(e)&&(xr()&&v(this.beans).getSelection()?.removeAllRanges(),this.shouldPreventMouseEvent(e)&&dt(e),this.onMove(e))}onTouchCancel(e){const t=this.drag;t&&Sd(e)&&nt(t.start,e.changedTouches)&&this.cancelDrag()}onTouchMove(e){const t=this.drag;if(!t||!Sd(e))return;const o=nt(t.start,e.touches);o&&(this.onMove(o),this.draggingPreventDefault(e))}onMove(e){const t=this.drag;if(!t)return;t.lastDrag=e;const o=t.params;if(!this.dragging){const i=t.start,n=o.dragStartPixels,s=n??4;if(it(e,i,s))return;if(this.dragging=!0,o.capturePointer&&(t.pointerCapture=md(this.beans.eRootDiv,e)),this.eventSvc.dispatchEvent({type:"dragStarted",target:o.eElement}),o.onDragStart?.(i),this.drag!==t)return;if(o.onDragging?.(i),this.drag!==t)return}o.onDragging?.(e)}onTouchUp(e){const t=this.drag;t&&Sd(e)&&this.onUp(nt(t.start,e.changedTouches))}onMouseOrPointerUp(e){Sd(e)&&this.onUp(e)}onUp(e){const t=this.drag;t&&(e||(e=t.lastDrag),e&&this.dragging&&(this.dragging=!1,t.params.onDragStop?.(e),this.eventSvc.dispatchEvent({type:"dragStopped",target:t.params.eElement})),this.destroyDrag())}onKeyDown(e){e.key===lr.ESCAPE&&this.cancelDrag()}},xd=e=>{lt(e.handlers);const t=e.oldTouchAction;if(null!=t){const o=e.params.eElement.style;o&&(o.touchAction=t)}},Ed=class{constructor(e,t,o,i=null){this.rootEl=e,this.params=t,this.start=o,this.pointerId=i,this.handlers=[],this.lastDrag=null,this.pointerCapture=null,this.eElement=t.eElement}},Fd=e=>{const t=e.target;return t instanceof Element?t:null},Pd=class extends ft{constructor(){super(...arguments),this.beanName="dragAndDrop",this.dragSourceAndParamsList=[],this.dragItem=null,this.dragInitialSourcePointerOffsetX=0,this.dragInitialSourcePointerOffsetY=0,this.lastMouseEvent=null,this.lastDraggingEvent=null,this.dragSource=null,this.dragImageCompPromise=null,this.dragImageComp=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0,this.dropTargets=[],this.externalDropZoneCount=0,this.lastDropTarget=null}addDragSource(e,t=!1){const o={capturePointer:!0,dragSource:e,eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:t=>this.onDragStart(e,t),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push(o),this.beans.dragSvc.addDragSource(o)}setDragImageCompIcon(e,t=!1){const o=this.dragImageComp;o&&(t||this.dragImageLastIcon!==e)&&(this.dragImageLastIcon=e,o.setIcon(e,t))}removeDragSource(e){const{dragSourceAndParamsList:t,beans:o}=this;for(let i=0,n=t.length;i<n;i++)if(t[i].dragSource===e){const e=t[i];o.dragSvc?.removeDragSource(e),t.splice(i,1);break}}destroy(){const{dragSourceAndParamsList:e,dropTargets:t,beans:o}=this,i=o.dragSvc;for(const n of e)i?.removeDragSource(n);e.length=0,t.length=0,this.externalDropZoneCount=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){const e=this.lastMouseEvent;e&&this.onDragging(e,!0)}onDragStart(e,t){this.lastMouseEvent=t,this.dragSource=e,this.dragItem=e.getDragItem();const o=e.eElement.getBoundingClientRect();this.dragInitialSourcePointerOffsetX=t.clientX-o.left,this.dragInitialSourcePointerOffsetY=t.clientY-o.top,e.onDragStarted?.(),this.createAndUpdateDragImageComp(e)}onDragStop(e){const{dragSource:t,lastDropTarget:o}=this;if(t?.onDragStopped?.(),o){const t=this.dropTargetEvent(o,e,!1);o.onDragStop?.(t)}this.clearDragAndDropProperties()}onDragCancel(){const{dragSource:e,lastDropTarget:t,lastMouseEvent:o}=this;if(e?.onDragCancelled?.(),t&&o){const e=this.dropTargetEvent(t,o,!1);t.onDragCancel?.(e)}this.clearDragAndDropProperties()}onDragging(e,t=!1){this.positionDragImageComp(e);const o=this.findCurrentDropTarget(e),{lastDropTarget:i,dragSource:n,dragItem:s}=this;let r=!1;if(o!==i){if(r=!0,i){const o=this.dropTargetEvent(i,e,t);i.onDragLeave?.(o)}if(null===i||o?null===i&&o&&this.handleEnter(n,s):this.handleExit(n,s),o){const i=this.dropTargetEvent(o,e,t);o.onDragEnter?.(i)}this.lastDropTarget=o}else if(o){const i=this.dropTargetEvent(o,e,t);o.onDragging?.(i),i?.changed&&(r=!0)}this.lastMouseEvent=e,r&&this.updateDragImageComp()}clearDragAndDropProperties(){this.removeDragImageComp(this.dragImageComp),this.dragImageCompPromise=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0,this.lastMouseEvent=null,this.lastDraggingEvent=null,this.lastDropTarget=null,this.dragItem=null,this.dragInitialSourcePointerOffsetX=0,this.dragInitialSourcePointerOffsetY=0,this.dragSource=null}getAllContainersFromDropTarget(e){const t=e.getContainer(),o=e.getSecondaryContainers?.(),i=o?.length;if(!i)return[[t]];const n=new Array(i+1);n[0]=[t];for(let s=0;s<i;++s)n[s+1]=o[s];return n}isMouseOnDropTarget(e,t){const o=this.getAllContainersFromDropTarget(t);let i=!1;const n=(e,t)=>{for(const o of t){const{width:t,height:i,left:n,right:s,top:r,bottom:a}=o.getBoundingClientRect();if(0===t||0===i)return!1;const l=e.clientX>=n&&e.clientX<s,d=e.clientY>=r&&e.clientY<a;if(!l||!d)return!1}return!0};for(const a of o)if(n(e,a)){i=!0;break}const{eElement:s,type:r}=this.dragSource;return!(t.targetContainsSource&&!t.getContainer().contains(s))&&(i&&t.isInterestedIn(r,s))}findCurrentDropTarget(e){const t=[],o=this.dropTargets;for(let r=0,a=o.length;r<a;++r){const i=o[r];this.isMouseOnDropTarget(e,i)&&t.push(i)}const i=t.length;if(0===i)return null;if(1===i)return t[0];const n=f(this.beans),s=n.elementsFromPoint(e.clientX,e.clientY);for(let r=0,a=s.length;r<a;++r){const e=s[r];for(let o=0,i=t.length;o<i;o++){const i=t[o],n=this.getAllContainersFromDropTarget(i);let s=!1;for(let t=0,o=n.length;t<o&&!s;t++){const o=n[t];for(let t=0,i=o.length;t<i;t++)if(o[t]===e){s=!0;break}}if(s)return i}}return null}addDropTarget(e){this.dropTargets.push(e),e.external&&this.externalDropZoneCount++}removeDropTarget(e){const t=e.getContainer(),o=this.dropTargets;let i=0;for(let n=0,s=o.length;n<s;++n){const e=o[n];e.getContainer()!==t?(i!==n&&(o[i]=e),++i):e.external&&--this.externalDropZoneCount}o.length=i}hasExternalDropZones(){return this.externalDropZoneCount>0}findExternalZone(e){const t=this.dropTargets;for(let o=0,i=t.length;o<i;++o){const i=t[o];if(i.external&&i.getContainer()===e)return i}return null}dropTargetEvent(e,t,o){const{dragSource:i,dragItem:n,lastDraggingEvent:s,lastMouseEvent:r,dragInitialSourcePointerOffsetX:a,dragInitialSourcePointerOffsetY:l}=this,d=e.getContainer(),c=d.getBoundingClientRect(),{clientX:u,clientY:h}=t,g=u-(r?.clientX||0),p=h-(r?.clientY||0),f=this.createEvent({event:t,x:u-c.left,y:h-c.top,vDirection:p>0?"down":p<0?"up":null,hDirection:g<0?"left":g>0?"right":null,initialSourcePointerOffsetX:a,initialSourcePointerOffsetY:l,dragSource:i,fromNudge:o,dragItem:n,dropZoneTarget:d,dropTarget:s?.dropTarget??null,changed:!!s?.changed});return this.lastDraggingEvent=f,f}positionDragImageComp(e){const t=this.dragImageComp?.getGui();t&&rt(t,e,this.beans)}removeDragImageComp(e){this.dragImageComp===e&&(this.dragImageComp=null),e&&(e.getGui()?.remove(),this.destroyBean(e))}createAndUpdateDragImageComp(e){const t=this.createDragImageComp(e)??null;this.dragImageCompPromise=t,t?.then(e=>{if(t!==this.dragImageCompPromise||!this.lastMouseEvent||!this.isAlive())return void this.destroyBean(e);this.dragImageCompPromise=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0;const o=this.dragImageComp;o!==e&&(this.dragImageComp=e,this.removeDragImageComp(o)),e&&(this.appendDragImageComp(e),this.updateDragImageComp())})}appendDragImageComp(e){const t=e.getGui(),o=t.style;o.position="absolute",o.zIndex="9999",this.beans.dragSvc?.hasPointerCapture()&&(o.pointerEvents="none"),this.gos.setInstanceDomData(t),this.beans.environment.applyThemeClasses(t),o.top="20px",o.left="20px";const i=b(this.beans);i?i.appendChild(t):this.warnNoBody()}updateDragImageComp(){const{dragImageComp:e,dragSource:t,lastDropTarget:o,lastDraggingEvent:i,dragImageLastLabel:n}=this;if(!e)return;this.setDragImageCompIcon(o?.getIconName?.(i)??null);let s=t?.dragItemName;"function"===typeof s&&(s=s(i)),s||(s=""),n!==s&&(this.dragImageLastLabel=s,e.setLabel(s))}},Dd=class extends ft{constructor(e,t){super(),this.comp=e,this.stopPropagationCallbacks=t}initialiseTabGuard(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.comp.getFocusableElement();const{eTopGuard:t,eBottomGuard:o,eFocusableElement:i,stopPropagationCallbacks:n}=this,s=[t,o],r={setTabIndex:e=>{for(const t of s)null==e?t.removeAttribute("tabindex"):t.setAttribute("tabindex",e)}};this.addTabGuards(t,o);const{focusTrapActive:a=!1,onFocusIn:l,onFocusOut:d,focusInnerElement:c,handleKeyDown:u,onTabKeyDown:h,shouldStopEventPropagation:g,isEmpty:p,forceFocusOutWhenTabGuardsAreEmpty:f,isFocusableContainer:m}=e;this.tabGuardCtrl=this.createManagedBean(new jr({comp:r,focusTrapActive:a,eTopGuard:t,eBottomGuard:o,eFocusableElement:i,onFocusIn:l,onFocusOut:d,focusInnerElement:c,handleKeyDown:u,onTabKeyDown:h,shouldStopEventPropagation:g,isEmpty:p,forceFocusOutWhenTabGuardsAreEmpty:f,isFocusableContainer:m},n))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(e){const t=v(this.beans).createElement("div"),o="top"===e?qr.TAB_GUARD_TOP:qr.TAB_GUARD_BOTTOM;return t.classList.add(qr.TAB_GUARD,o),P(t,"presentation"),t}addTabGuards(e,t){const o=this.eFocusableElement;o.prepend(e),o.append(t)}removeAllChildrenExceptTabGuards(){const e=[this.eTopGuard,this.eBottomGuard];xe(this.comp.getFocusableElement()),this.addTabGuards(...e)}forceFocusOutOfContainer(e=!1){this.tabGuardCtrl.forceFocusOutOfContainer(e)}appendChild(e,t,o){Ne(t)||(t=t.getGui());const{eBottomGuard:i}=this;i?i.before(t):e(t,o)}destroy(){const{eTopGuard:e,eBottomGuard:t}=this;Ee(e),Ee(t),super.destroy()}},kd=class extends gs{initialiseTabGuard(e,t){this.tabGuardFeature=this.createManagedBean(new Dd(this,t)),this.tabGuardFeature.initialiseTabGuard(e)}forceFocusOutOfContainer(e=!1){this.tabGuardFeature.forceFocusOutOfContainer(e)}appendChild(e,t){this.tabGuardFeature.appendChild(super.appendChild.bind(this),e,t)}},Md=(e=>(e[e["ToolPanel"]=0]="ToolPanel",e[e["HeaderCell"]=1]="HeaderCell",e[e["RowDrag"]=2]="RowDrag",e[e["ChartPanel"]=3]="ChartPanel",e[e["AdvancedFilterBuilder"]=4]="AdvancedFilterBuilder",e))(Md||{}),Ad=class extends Pd{createEvent(e){return Ti(this.gos,e)}createDragImageComp(e){const{gos:t,beans:o}=this,i=Ns(o.userCompFactory,Ti(t,{dragSource:e}));return i?.newAgStackInstance()}handleEnter(e,t){e?.onGridEnter?.(t)}handleExit(e,t){e?.onGridExit?.(t)}warnNoBody(){xo(54)}isDropZoneWithinThisGrid(e){return this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody.contains(e.dropZoneTarget)}registerGridDropTarget(e,t){const o={getContainer:e,isInterestedIn:e=>1===e||0===e,getIconName:()=>"notAllowed"};this.addDropTarget(o),t.addDestroyFunc(()=>this.removeDropTarget(o))}};function Td(e,t){return e+"_"+t}function Id(e){return e instanceof Ld}var Ld=class extends Ct{constructor(e,t,o,i){super(),this.providedColumnGroup=e,this.groupId=t,this.partId=o,this.pinned=i,this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null,this.colIdSanitised=g(this.getUniqueId())}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}getUniqueId(){return Td(this.groupId,this.partId)}isEmptyGroup(){return 0===this.displayedChildren.length}isMoving(){const e=this.getProvidedColumnGroup().getLeafColumns();return!(!e||0===e.length)&&e.every(e=>e.isMoving())}checkLeft(){for(const e of this.displayedChildren)Id(e)&&e.checkLeft();if(this.displayedChildren.length>0)if(this.gos.get("enableRtl")){const e=tn(this.displayedChildren),t=e.getLeft();this.setLeft(t)}else{const e=this.displayedChildren[0].getLeft();this.setLeft(e)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(e){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){let e=0;for(const t of this.displayedChildren??[])e+=t.getActualWidth();return e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;for(const t of this.displayedChildren)t.isResizable()&&(e=!0);return e}getMinWidth(){let e=0;for(const t of this.displayedChildren)e+=t.getMinWidth();return e}addChild(e){this.children||(this.children=[]),this.children.push(e)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){const e=[];return this.addDisplayedLeafColumns(e),e}getDefinition(){return this.providedColumnGroup.getColGroupDef()}getColGroupDef(){return this.providedColumnGroup.getColGroupDef()}isPadding(){return this.providedColumnGroup.isPadding()}isExpandable(){return this.providedColumnGroup.isExpandable()}isExpanded(){return this.providedColumnGroup.isExpanded()}setExpanded(e){this.providedColumnGroup.setExpanded(e)}isAutoHeaderHeight(){return!!this.getColGroupDef()?.autoHeaderHeight}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}addDisplayedLeafColumns(e){for(const t of this.displayedChildren??[])Vi(t)?e.push(t):Id(t)&&t.addDisplayedLeafColumns(e)}addLeafColumns(e){for(const t of this.children??[])Vi(t)?e.push(t):Id(t)&&t.addLeafColumns(e)}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){const e=this.getParent();return this.isPadding()&&e?.isPadding()?1+e.getPaddingLevel():0}calculateDisplayedColumns(){this.displayedChildren=[];let e=this;while(e?.isPadding())e=e.getParent();const t=!!e&&e.getProvidedColumnGroup().isExpandable();if(!t)return this.displayedChildren=this.children,void this.dispatchLocalEvent({type:"displayedChildrenChanged"});for(const o of this.children??[]){const t=Id(o)&&!o.displayedChildren?.length;if(t)continue;const i=o.getColumnGroupShow();switch(i){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(o);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(o);break;default:this.displayedChildren.push(o);break}}this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},Bd="row-group-",Od="t-",Hd="b-",Vd=0,Gd=class{constructor(e){this.id=void 0,this.destroyed=!1,this._groupData=void 0,this.master=!1,this.detail=void 0,this.rowIndex=null,this.field=null,this.rowGroupColumn=null,this.key=null,this.sourceRowIndex=-1,this._leafs=void 0,this.childrenMapped=null,this.treeParent=null,this.treeNodeFlags=0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=Vd++,this.alreadyRendered=!1,this.formulaRowIndex=null,this.hovered=!1,this.__selected=!1,this.beans=e}get groupData(){const e=this._groupData;return void 0!==e?e:this.footer?this.sibling?.groupData:this.beans.groupStage?.loadGroupData(this)??null}set groupData(e){this._groupData=e}get allLeafChildren(){const e=this._leafs;return void 0===e?this.beans.groupStage?.loadLeafs?.(this)??null:e}set allLeafChildren(e){this._leafs=e}setData(e){this.setDataCommon(e,!1)}updateData(e){this.setDataCommon(e,!0)}setDataCommon(e,t){const{valueCache:o,eventSvc:i}=this.beans,n=this.data;this.data=e,o?.onDataChanged(),this.updateDataOnDetailNode(),this.resetQuickFilterAggregateText();const s=this.createDataChangedEvent(e,n,t);if(this.__localEventService?.dispatchEvent(s),this.sibling){this.sibling.data=e;const o=this.sibling.createDataChangedEvent(e,n,t);this.sibling.__localEventService?.dispatchEvent(o)}i.dispatchEvent({type:"rowNodeDataChanged",node:this});const r=this.pinnedSibling;r&&(r.data=e,r.__localEventService?.dispatchEvent(r.createDataChangedEvent(e,n,t)),i.dispatchEvent({type:"rowNodeDataChanged",node:r}))}updateDataOnDetailNode(){const e=this.detailNode;e&&(e.data=this.data)}createDataChangedEvent(e,t,o){return{type:"dataChanged",node:this,oldData:t,newData:e,update:o}}getRowIndexString(){return null==this.rowIndex?(Eo(13),null):"top"===this.rowPinned?Od+this.rowIndex:"bottom"===this.rowPinned?Hd+this.rowIndex:this.rowIndex.toString()}setDataAndId(e,t){const{selectionSvc:o}=this.beans,i=o?.createDaemonNode?.(this),n=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),o&&(o.updateRowSelectable(this),o.syncInRowNode(this,i));const s=this.createDataChangedEvent(e,n,!1);this.__localEventService?.dispatchEvent(s)}setId(e){const t=ei(this.beans.gos);if(t)if(this.data){const e=this.parent?.getRoute()??[];this.id=t({data:this.data,parentKeys:e.length>0?e:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(Bd)&&Eo(14,{groupPrefix:Bd})}else this.id=void 0;else this.id=e}setRowTop(e){if(this.oldRowTop=this.rowTop,this.rowTop===e)return;this.rowTop=e,this.dispatchRowEvent("topChanged");const t=null!==e;this.displayed!==t&&(this.displayed=t,this.dispatchRowEvent("displayedChanged"))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(e){this.hovered=e}isHovered(){return this.hovered}setRowHeight(e,t=!1){this.rowHeight=e,this.rowHeightEstimated=t,this.dispatchRowEvent("heightChanged")}setExpanded(e,t,o){this.beans.expansionSvc?.setExpanded(this,e,t,o)}setDataValue(e,t,o){const{colModel:i,valueSvc:n,gos:s,editSvc:r}=this.beans,a="string"!==typeof e?e:i.getCol(e)??i.getColDefCol(e);if(!a)return!1;const l=n.getValueForDisplay({column:a,node:this,source:"api"}).value;if(s.get("readOnlyEdit")){const{beans:{eventSvc:e},data:i,rowIndex:n,rowPinned:s}=this;return e.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:n,rowPinned:s,column:a,colDef:a.colDef,data:i,node:this,oldValue:l,newValue:t,value:t,source:o}),!1}if(r&&!r.committing){const e=r.setDataValue({rowNode:this,column:a},t,o);if(null!=e)return e}const d=n.setValue(this,a,t,o);return this.dispatchCellChangedEvent(a,t,l),d&&this.pinnedSibling?.dispatchCellChangedEvent(a,t,l),d}updateHasChildren(){let e=this.group&&!this.footer||!!this.childrenAfterGroup?.length;const{rowChildrenSvc:t}=this.beans;t&&(e=t.getHasChildrenValue(this)),e!==this.__hasChildren&&(this.__hasChildren=!!e,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(e,t,o){const i={type:"cellChanged",node:this,column:e,newValue:t,oldValue:o};this.__localEventService?.dispatchEvent(i)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){return this.beans.expansionSvc?.isExpandable(this)??!1}isSelected(){if(this.footer)return this.sibling.isSelected();const e=this.rowPinned&&this.pinnedSibling;return e?e.isSelected():this.__selected}depthFirstSearch(e){const t=this.childrenAfterGroup;if(t)for(let o=0,i=t.length;o<i;++o)t[o].depthFirstSearch(e);e(this)}dispatchRowEvent(e){this.__localEventService?.dispatchEvent({type:e,node:this})}setSelected(e,t=!1,o="api"){this.beans.selectionSvc?.setNodesSelected({nodes:[this],newValue:e,clearSelection:t,source:o})}isRowPinned(){return!!this.rowPinned}__addEventListener(e,t){const o=this.__localEventService??(this.__localEventService=new i);o.addEventListener(e,t)}__removeEventListener(e,t){this.removeLocalListener(e,t)}addEventListener(e,t){this.beans.validation?.checkRowEvents(e);const o=this.__localEventService??(this.__localEventService=new i);this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,o);const n=this.frameworkEventListenerService?.wrap(e,t)??t;o.addEventListener(e,n)}removeEventListener(e,t){const o=this.frameworkEventListenerService?.unwrap(e,t)??t;this.removeLocalListener(e,o)}removeLocalListener(e,t){const o=this.__localEventService;o&&(o.removeEventListener(e,t),o.noRegisteredListenersExist()&&(this.__localEventService=null))}isFullWidthCell(){if(xo(61),this.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return!!e&&e({rowNode:this})}getRoute(){if(-1===this.level)return[];if(null==this.key)return;const e=[];let t=this;while(null!=t?.key)e.push(t.key),t=t.parent;return e.reverse()}setRowIndex(e){this.rowIndex!==e&&(this.rowIndex=e,this.dispatchRowEvent("rowIndexChanged"))}setAllChildrenCount(e){this.allChildrenCount!==e&&(this.allChildrenCount=e,this.dispatchRowEvent("allChildrenCountChanged"))}setUiLevel(e){this.uiLevel!==e&&(this.uiLevel=e,this.dispatchRowEvent("uiLevelChanged"))}getFirstChild(){const e=this.childStore;return e?e.getFirstNode():this.childrenAfterSort?.[0]??null}_destroy(e){if(this.destroyed)return!1;if(this.destroyed=!0,e?this.clearRowTopAndRowIndex():(this.setRowTop(null),this.setRowIndex(null)),!this.footer){const t=this.detailNode;t&&t._destroy(e);const o=this.sibling;o&&o._destroy(e)}return!0}};function Nd(e,t,o){return Ti(t,{type:o,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned})}var zd=new Set(["__autoHeights","__checkAutoHeightsDebounced","__localEventService","__objectId","_groupData","_leafs","childStore","groupValue","oldRowTop","sticky","treeNodeFlags","treeParent"]),Wd=(e,t)=>{const o=new Gd(t);for(const i of Object.keys(e))zd.has(i)||(o[i]=e[i]);return o.oldRowTop=null,o},_d=(e,t,o)=>{if(!o)return;let i=o.rowIndex;if(null==i)return;i+=t;const n=e.getRowCount();while(i>=0&&i<n){const o=e.getRow(i);if(!o||!o.footer&&!o.detail)return o;i+=t}},Ud={agSetColumnFilter:"agSetColumnFilterHandler",agMultiColumnFilter:"agMultiColumnFilterHandler",agGroupColumnFilter:"agGroupColumnFilterHandler",agNumberColumnFilter:"agNumberColumnFilterHandler",agDateColumnFilter:"agDateColumnFilterHandler",agTextColumnFilter:"agTextColumnFilterHandler"},$d=new Set(Object.values(Ud));function qd(e,t){const o=e.filterUi;if(!o)return null;if(o.created)return o.promise;if(t)return null;const i=o.create(o.refreshed),n=o;return n.created=!0,n.promise=i,i}function jd(e,t,o,i,n,s,r){return t.refresh?.({...o,model:i,source:s,additionalEventAttributes:r}),e().then(e=>{if(e){const{filter:t,filterParams:o}=e;Kd(t,o,i,n,s,r)}})}function Kd(e,t,o,i,n,s){e?.refresh?.({...t,model:o,state:i,source:n,additionalEventAttributes:s})}function Qd(e,t,o,i){const n=e();n?.created&&n.promise.then(e=>{const s=t();Kd(e,n.filterParams,s,o()??{model:s},"ui",i)})}function Xd(e){let t,o,i=!1;const{action:n,filterParams:s,getFilterUi:r,getModel:a,getState:l,updateState:d,updateModel:c,processModelToApply:u}=e;switch(n){case"apply":{const e=l();o=e?.model??null,u&&(o=u(o)),t={state:e?.state,model:o},i=!0;break}case"clear":t={model:null},s?.buttons?.includes("apply")||(i=!0,o=null);break;case"reset":t={model:null},i=!0,o=null;break;case"cancel":t={model:a()};break}d(t),i?c(o):Qd(r,a,l,{fromAction:n})}function Yd(e,t){return e[t]??null}function Zd(e){return je(e)}function Jd(e){return{tag:"div",cls:e}}var ec=class extends ps{constructor(e){const{className:t="ag-filter-apply-panel"}=e??{};super(Jd(t)),this.listeners=[],this.validationMessage=null,this.className=t}updateButtons(e,t){const o=this.buttons;if(this.buttons=e,o===e)return;const i=this.getGui();let n;xe(i),this.destroyListeners();const s=document.createDocumentFragment(),r=this.className,a=({type:e,label:o})=>{const i=t=>{this.dispatchLocalEvent({type:e,event:t})};["apply","clear","reset","cancel"].includes(e)||xo(75);const a="apply"===e,l=a&&t?"submit":"button",d=Zd({tag:"button",attrs:{type:l},ref:`${e}FilterButton`,cls:`ag-button ag-standard-button ${r}-button${a?" "+r+"-apply-button":""}`,children:o});this.activateTabIndex([d]),a&&(n=d);const c=e=>{e.key===lr.ENTER&&(e.preventDefault(),i(e))},u=this.listeners;d.addEventListener("click",i),u.push(()=>d.removeEventListener("click",i)),d.addEventListener("keydown",c),u.push(()=>d.removeEventListener("keydown",c)),s.append(d)};for(const d of e)a(d);this.eApply=n;const l=this.validationTooltipFeature;n&&!l?this.validationTooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eApply,getLocation:()=>"advancedFilter",getTooltipShowDelayOverride:()=>1e3})):!n&&l&&(this.validationTooltipFeature=this.destroyBean(l)),i.append(s)}getApplyButton(){return this.eApply}updateValidity(e,t=null){const o=this.eApply;o&&(pe(o,!e),this.validationMessage=t,this.validationTooltipFeature?.setTooltipAndRefresh(this.validationMessage))}destroyListeners(){for(const e of this.listeners)e();this.listeners=[]}destroy(){this.destroyListeners(),super.destroy()}},tc={selector:"AG-FILTER-BUTTON",component:ec},oc={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",filterSummaryInactive:"is (All)",filterSummaryContains:"contains",filterSummaryNotContains:"does not contain",filterSummaryTextEquals:"equals",filterSummaryTextNotEqual:"does not equal",filterSummaryStartsWith:"begins with",filterSummaryEndsWith:"ends with",filterSummaryBlank:"is blank",filterSummaryNotBlank:"is not blank",filterSummaryEquals:"=",filterSummaryNotEqual:"!=",filterSummaryGreaterThan:">",filterSummaryGreaterThanOrEqual:">=",filterSummaryLessThan:"<",filterSummaryLessThanOrEqual:"<=",filterSummaryInRange:"between",filterSummaryInRangeValues:e=>`(${e[0]}, ${e[1]})`,filterSummaryTextQuote:e=>`"${e[0]}"`,minDateValidation:e=>`Date must be after ${e[0]}`,maxDateValidation:e=>`Date must be before ${e[0]}`,strictMinValueValidation:e=>`Must be greater than ${e[0]}`,strictMaxValueValidation:e=>`Must be less than ${e[0]}`};function ic(e,t,o){return ht(e,oc,t,o)}function nc(e,t){const{debounceMs:o}=e;return sc(e)?(null!=o&&xo(71),0):o??t}function sc(e){return(e.buttons?.indexOf("apply")??-1)>=0}function rc(e,t,o,i){let n=ic(e,o);if("function"===typeof t){const o=ic(e,i);n=t({filterOptionKey:i,filterOption:o,placeholder:n})}else"string"===typeof t&&(n=t);return n}var ac=class extends ps{constructor(e,t,o,i,n,s){super(),this.column=e,this.wrapper=t,this.eventParent=o,this.updateModel=i,this.isGlobalButtons=n,this.enableGlobalButtonCheck=s,this.hidePopup=null,this.applyActive=!1}postConstruct(){const{comp:e,params:t}=this.wrapper,o=t,i=o.useForm,n=i?"form":"div";this.setTemplate({tag:n,cls:"ag-filter-wrapper"}),i&&this.addManagedElementListeners(this.getGui(),{submit:e=>{e?.preventDefault()},keydown:this.handleKeyDown.bind(this)}),this.appendChild(e.getGui()),this.params=o,this.resetButtonsPanel(o),this.addManagedListeners(this.eventParent,{filterParamsChanged:({column:e,params:t})=>{e===this.column&&this.resetButtonsPanel(t,this.params)},filterStateChanged:({column:e,state:t})=>{e===this.column&&this.eButtons?.updateValidity(!1!==t.valid)},filterAction:({column:e,action:t,event:o})=>{e===this.column&&this.afterAction(t,o)},...this.enableGlobalButtonCheck?{filterGlobalButtons:({isGlobal:e})=>{if(e!==this.isGlobalButtons){this.isGlobalButtons=e;const t=this.params;this.resetButtonsPanel(t,t,!0)}}}:void 0})}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup)}resetButtonsPanel(e,t,o){const{buttons:i,readOnly:n}=t??{},{buttons:s,readOnly:r,useForm:a}=e;if(!o&&n===r&&l(i,s))return;const d=s&&s.length>0&&!e.readOnly&&!this.isGlobalButtons;let c=this.eButtons;if(d){const e=s.map(e=>{const t=`${e}Filter`;return{type:e,label:ic(this,t)}});if(this.applyActive=sc(this.params),!c){c=this.createBean(new ec),this.appendChild(c.getGui());const e=this.column,t=t=>({event:o})=>{this.updateModel(e,t,{fromButtons:!0}),this.afterAction(t,o)};c?.addManagedListeners(c,{apply:t("apply"),clear:t("clear"),reset:t("reset"),cancel:t("cancel")}),this.eButtons=c}c.updateButtons(e,a)}else this.applyActive=!1,c&&(Ee(c.getGui()),this.eButtons=this.destroyBean(c))}close(e){const t=this.hidePopup;if(!t)return;const o=e,i=o?.key;let n;i!==lr.ENTER&&i!==lr.SPACE||(n={keyboardEvent:o}),t(n),this.hidePopup=null}afterAction(e,t){const{params:o,applyActive:i}=this,n=o?.closeOnApply;switch(e){case"apply":t?.preventDefault(),n&&i&&this.close(t);break;case"reset":n&&i&&this.close();break;case"cancel":n&&this.close(t);break}}handleKeyDown(e){!e.defaultPrevented&&e.key===lr.ENTER&&this.applyActive&&(this.updateModel(this.column,"apply",{fromButtons:!0}),this.afterAction("apply",e))}destroy(){this.hidePopup=null,this.eButtons=this.destroyBean(this.eButtons)}},lc={tag:"div",cls:"ag-filter"},dc=class extends ps{constructor(e,t,o){super(lc),this.column=e,this.source=t,this.enableGlobalButtonCheck=o,this.wrapper=null}postConstruct(){this.beans.colFilter?.activeFilterComps.add(this),this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return null!=this.wrapper}getFilter(){return this.wrapper?.then(e=>e.comp)??null}afterInit(){return this.wrapper?.then(()=>{})??Cs.resolve()}afterGuiAttached(e){this.afterGuiAttachedParams=e,this.wrapper?.then(t=>{this.comp?.afterGuiAttached(e),t?.comp?.afterGuiAttached?.(e)})}afterGuiDetached(){this.wrapper?.then(e=>{e?.comp?.afterGuiDetached?.()})}createFilter(e){const{column:t,source:o,beans:{colFilter:i}}=this,n=i.getFilterUiForDisplay(t)??null;this.wrapper=n,n?.then(n=>{if(!n)return;const{isHandler:r,comp:a}=n;let l;if(r){const e=!!this.enableGlobalButtonCheck,o=this.createBean(new ac(t,n,i,i.updateModel.bind(i),e&&i.isGlobalButtons,e));this.comp=o,l=o.getGui()}else l=a.getGui(),s(l)||xo(69,{guiFromFilter:l});this.appendChild(l),e?this.eventSvc.dispatchEvent({type:"filterOpened",column:t,source:o,eGui:this.getGui()}):a.afterGuiAttached?.(this.afterGuiAttachedParams)})}onFilterDestroyed(e){const{source:t,column:o}=e;"api"!==t&&"paramsUpdated"!==t||o.getId()!==this.column.getId()||!this.beans.colModel.getColDefCol(this.column)||(xe(this.getGui()),this.comp=this.destroyBean(this.comp),this.createFilter())}destroy(){this.beans.colFilter?.activeFilterComps.delete(this),this.eventSvc.dispatchEvent({type:"filterClosed",column:this.column}),this.wrapper=null,this.comp=this.destroyBean(this.comp),this.afterGuiAttachedParams=void 0,super.destroy()}},cc={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},uc=["january","february","march","april","may","june","july","august","september","october","november","december"];function hc(e,t){return null==e?-1:null==t?1:Number.parseFloat(e)-Number.parseFloat(t)}function gc(e){return e instanceof Date&&!isNaN(e.getTime())}var pc={number:()=>{},boolean:()=>({maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:(e,t)=>t,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(e,t)=>!1===t,numberOfInputs:0}]}),date:()=>({isValidDate:gc}),dateString:({dataTypeDefinition:e})=>({comparator:(t,o)=>{const i=e.dateParser(o);return null==o||i<t?-1:i>t?1:0},isValidDate:t=>"string"===typeof t&&gc(e.dateParser(t))}),dateTime:e=>pc.date(e),dateTimeString:e=>pc.dateString(e),object:()=>{},text:()=>{}},fc={number:()=>({comparator:hc}),boolean:({t:e})=>({valueFormatter:t=>s(t.value)?e(String(t.value),t.value?"True":"False"):e("blanks","(Blanks)")}),date:({formatValue:e,t:t})=>({valueFormatter:o=>{const i=e(o);return s(i)?i:t("blanks","(Blanks)")},treeList:!0,treeListFormatter:(e,o)=>{if("NaN"===e)return t("invalidDate","Invalid Date");if(1===o&&null!=e){const o=uc[Number(e)-1];return t(o,cc[o])}return e??t("blanks","(Blanks)")},treeListPathGetter:e=>na(e,!1)}),dateString:({formatValue:e,dataTypeDefinition:t,t:o})=>({valueFormatter:t=>{const i=e(t);return s(i)?i:o("blanks","(Blanks)")},treeList:!0,treeListPathGetter:e=>na(t.dateParser(e??void 0),!1),treeListFormatter:(e,t)=>{if(1===t&&null!=e){const t=uc[Number(e)-1];return o(t,cc[t])}return e??o("blanks","(Blanks)")}}),dateTime:e=>{const t=fc.date(e);return t.treeListPathGetter=na,t},dateTimeString(e){const t=e.dataTypeDefinition.dateParser,o=fc.dateString(e);return o.treeListPathGetter=e=>na(t(e??void 0)),o},object:({formatValue:e,t:t})=>({valueFormatter:o=>{const i=e(o);return s(i)?i:t("blanks","(Blanks)")}}),text:()=>{}};function mc(e,t,o,i,n,s,r){let a=t,l=o;const d="agSetColumnFilter"===e;l||"object"!==i.baseDataType||d||(l=({column:e,node:t})=>n({column:e,node:t,value:s.valueSvc.getValue(e,t)}));const c=d?fc:pc,u=c[i.baseDataType],h=u({dataTypeDefinition:i,formatValue:n,t:r});return a="object"===typeof t?{...h,...t}:h,{filterParams:a,filterValueGetter:l}}var vc={boolean:"agTextColumnFilter",date:"agDateColumnFilter",dateString:"agDateColumnFilter",dateTime:"agDateColumnFilter",dateTimeString:"agDateColumnFilter",number:"agNumberColumnFilter",object:"agTextColumnFilter",text:"agTextColumnFilter"},Cc={boolean:"agTextColumnFloatingFilter",date:"agDateColumnFloatingFilter",dateString:"agDateColumnFloatingFilter",dateTime:"agDateColumnFloatingFilter",dateTimeString:"agDateColumnFloatingFilter",number:"agNumberColumnFloatingFilter",object:"agTextColumnFloatingFilter",text:"agTextColumnFloatingFilter"};function wc(e,t=!1){const o=t?Cc:vc;return o[e??"text"]}var bc=class extends Zr{},yc="__ag_Grid_Stop_Propagation";function Sc(e){e[yc]=!0}function Rc(e){return!0===e[yc]}var xc={isStopPropagation:Rc,stopPropagation:Sc},Ec=class extends $r{constructor(e,t){super(e,xc,t)}},Fc=class extends ps{constructor(e,t){super(),this.filterNameKey=e,this.cssIdentifier=t,this.applyActive=!1,this.debouncePending=!1,this.defaultDebounceMs=0}postConstruct(){const e={tag:"div",cls:`ag-filter-body-wrapper ag-${this.cssIdentifier}-body-wrapper`,children:[this.createBodyTemplate()]};this.setTemplate(e,this.getAgComponents()),this.createManagedBean(new Ec(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=this.createBean(new bc(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}))}handleKeyDown(e){}init(e){const t=e;this.setParams(t),this.setModelIntoUi(t.state.model,!0).then(()=>this.updateUiVisibility())}areStatesEqual(e,t){return e===t}refresh(e){const t=e,o=this.params;this.params=t;const{source:i,state:n,additionalEventAttributes:s}=t;"colDef"===i&&this.updateParams(t,o);const r=this.state;this.state=n;const a=s?.fromAction;return(a&&"apply"!==a||n.model!==r.model||!this.areStatesEqual(n.state,r.state))&&this.setModelIntoUi(n.model),!0}setParams(e){this.params=e,this.state=e.state,this.commonUpdateParams(e)}updateParams(e,t){this.commonUpdateParams(e,t)}commonUpdateParams(e,t){this.applyActive=sc(e),this.setupApplyDebounced()}doesFilterPass(e){xo(283);const{getHandler:t,model:o,column:i}=this.params;return t().doesFilterPass({...e,model:o,handlerParams:this.beans.colFilter.getHandlerParams(i)})}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return xo(284),null!=this.params.model}setupApplyDebounced(){const e=nc(this.params,this.defaultDebounceMs),t=xt(this,this.checkApplyDebounce.bind(this),e);this.applyDebounced=()=>{this.debouncePending=!0,t()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.doApplyModel())}getModel(){return xo(285),this.params.model}setModel(e){xo(286);const{beans:t,params:o}=this;return t.colFilter.setModelForColumnLegacy(o.column,e)}applyModel(e="api"){return this.doApplyModel()}canApply(e){return!0}doApplyModel(e){const{params:t,state:{valid:o=!0,model:i}}=this;if(!o)return!1;const n=!this.areModelsEqual(t.model,i);return n&&t.onAction("apply",e),n}onNewRowsLoaded(){}onUiChanged(e,t=!1){this.updateUiVisibility();const o=this.getModelFromUi(),i={model:o,state:this.getState(),valid:this.canApply(o)};this.state=i;const{params:n,gos:s,eventSvc:r,applyActive:a}=this;n.onStateChange(i),n.onUiChange(this.getUiChangeEventParams()),s.get("enableFilterHandlers")||r.dispatchEvent({type:"filterModified",column:n.column,filterInstance:this}),i.valid&&(e??(e=a?void 0:"debounce"),"immediately"===e?this.doApplyModel({afterFloatingFilter:t,afterDataChange:!1}):"debounce"===e&&this.applyDebounced())}getState(){}getUiChangeEventParams(){}afterGuiAttached(e){this.lastContainerType=e?.container,this.refreshFilterResizer(e?.container)}refreshFilterResizer(e){const{positionableFeature:t,gos:o}=this;if(!t)return;const i="floatingFilter"===e||"columnFilter"===e;i?(t.restoreLastSize(),t.setResizable(o.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(t.removeSizeFromEl(),t.setResizable(!1)),t.constrainSizeToAvailableHeight(i)}afterGuiDetached(){this.checkApplyDebounce(),this.positionableFeature?.constrainSizeToAvailableHeight(!1)}destroy(){this.positionableFeature=this.destroyBean(this.positionableFeature),super.destroy()}translate(e,t){return ic(this,e,t)}getPositionableElement(){return this.getGui()}areModelsEqual(e,t){return e===t||null==e&&null==t||null!=e&&null!=t&&this.areNonNullModelsEqual(e,t)}};function Pc(e){return!!e.operator}function Dc(e,t,o){if(null==t)return null;let i=null;const{compName:n,jsComp:s,fwComp:r}=nr(e,t);if(n){const e={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"};i=e[n]}else{const e=null==s&&null==r&&!0===t.filter;e&&(i=o())}return i}var kc=["aggregation","filter","sort","pivot","columnVisibility","columnSizing","rowGroup"],Mc={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"},Ac=class extends Ct{constructor(e){super(),this.view=e}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){const e=this.gos.get("domLayout"),t={autoHeight:"autoHeight"===e,normal:"normal"===e,print:"print"===e},o=t.autoHeight?Mc.AUTO_HEIGHT:t.print?Mc.PRINT:Mc.NORMAL;this.view.updateLayoutClasses(o,t)}},Tc="Viewport",Ic="fakeVScrollComp",Lc=["fakeHScrollComp","centerHeader","topCenter","bottomCenter","stickyTopCenter","stickyBottomCenter"],Bc=100,Oc=150,Hc=class extends Ct{constructor(e){super(),this.clearRetryListenerFncs=[],this.lastScrollSource=[null,null],this.scrollLeft=-1,this.nextScrollTop=-1,this.scrollTop=-1,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.lastIsHorizontalScrollShowing=!1,this.scrollTimer=0,this.isScrollActive=!1,this.isVerticalPositionInvalidated=!0,this.isHorizontalPositionInvalidated=!0,this.eBodyViewport=e,this.resetLastHScrollDebounced=xt(this,()=>this.lastScrollSource[1]=null,Oc),this.resetLastVScrollDebounced=xt(this,()=>this.lastScrollSource[0]=null,Oc)}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.animationFrameSvc=e.animationFrameSvc,this.visibleCols=e.visibleCols}destroy(){super.destroy(),this.clearRetryListenerFncs=[],window.clearTimeout(this.scrollTimer)}postConstruct(){this.enableRtl=this.gos.get("enableRtl");const e=this.invalidateVerticalScroll.bind(this),t=this.invalidateHorizontalScroll.bind(this);this.addManagedEventListeners({displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this),bodyHeightChanged:e,scrollGapChanged:t}),this.addManagedElementListeners(this.eBodyViewport,{scroll:e}),this.ctrlsSvc.whenReady(this,e=>{this.centerRowsCtrl=e.center,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()})}invalidateHorizontalScroll(){this.isHorizontalPositionInvalidated=!0}invalidateVerticalScroll(){this.isVerticalPositionInvalidated=!0}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.centerRowsCtrl.eViewport,{scroll:this.onHScroll.bind(this,Tc)});for(const e of Lc){const t=this.ctrlsSvc.get(e);this.registerScrollPartner(t,this.onHScroll.bind(this,e))}}addVerticalScrollListeners(){const e=this.ctrlsSvc.get("fakeVScrollComp"),t=this.gos.get("debounceVerticalScrollbar"),o=t?xt(this,this.onVScroll.bind(this,Tc),Bc):this.onVScroll.bind(this,Tc),i=t?xt(this,this.onVScroll.bind(this,Ic),Bc):this.onVScroll.bind(this,Ic);this.addManagedElementListeners(this.eBodyViewport,{scroll:o}),this.registerScrollPartner(e,i)}registerScrollPartner(e,t){e.onScrollCallback(t)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(e){const t=null==this.centerRowsCtrl;t||(void 0===e&&(e=this.centerRowsCtrl.getCenterViewportScrollLeft()),this.setScrollLeftForAllContainersExceptCurrent(Math.abs(e)))}setScrollLeftForAllContainersExceptCurrent(e){for(const t of[...Lc,Tc]){if(this.lastScrollSource[1]===t)continue;const o=this.getViewportForSource(t);Re(o,e,this.enableRtl)}}getViewportForSource(e){return e===Tc?this.centerRowsCtrl.eViewport:this.ctrlsSvc.get(e).eViewport}isControllingScroll(e,t){return null==this.lastScrollSource[t]?(0===t?this.lastScrollSource[0]=e:this.lastScrollSource[1]=e,!0):this.lastScrollSource[t]===e}onHScroll(e){if(!this.isControllingScroll(e,1))return;const t=this.centerRowsCtrl.eViewport,{scrollLeft:o}=t;if(this.shouldBlockScrollUpdate(1,o,!0))return;const i=Se(this.getViewportForSource(e),this.enableRtl);this.doHorizontalScroll(i),this.resetLastHScrollDebounced()}onVScroll(e){if(!this.isControllingScroll(e,0))return;let t;if(t=e===Tc?this.eBodyViewport.scrollTop:this.ctrlsSvc.get("fakeVScrollComp").getScrollPosition(),this.shouldBlockScrollUpdate(0,t,!0))return;const{animationFrameSvc:o}=this;o?.setScrollTop(t),this.nextScrollTop=t,e===Tc?this.ctrlsSvc.get("fakeVScrollComp").setScrollPosition(t):this.eBodyViewport.scrollTop=t,o?.active?o.schedule():this.scrollGridIfNeeded(!0),this.resetLastVScrollDebounced()}doHorizontalScroll(e){const t=this.ctrlsSvc.get("fakeHScrollComp").getScrollPosition();this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}isScrolling(){return this.isScrollActive}fireScrollEvent(e){const t={type:"bodyScroll",direction:1===e?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.isScrollActive=!0,this.eventSvc.dispatchEvent(t),window.clearTimeout(this.scrollTimer),this.scrollTimer=window.setTimeout(()=>{this.scrollTimer=0,this.isScrollActive=!1,this.eventSvc.dispatchEvent({...t,type:"bodyScrollEnd"})},Oc)}shouldBlockScrollUpdate(e,t,o=!1){return!(o&&!Pr())&&(0===e?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t))}shouldBlockVerticalScroll(e){const t=ve(this.eBodyViewport),{scrollHeight:o}=this.eBodyViewport;return!!(e<0||e+t>o)}shouldBlockHorizontalScroll(e){const t=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:o}=this.centerRowsCtrl.eViewport;if(this.enableRtl){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>o}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){const e=this.scrollLeft;let t=!1;for(const o of Lc){const i=this.getViewportForSource(o);if(i.scrollLeft!==e){t=!0;break}}t&&this.onHScroll(Tc)}scrollGridIfNeeded(e=!1){const t=this.scrollTop!=this.nextScrollTop;return t&&(this.scrollTop=this.nextScrollTop,e&&this.invalidateVerticalScroll(),this.redrawRowsAfterScroll()),t}setHorizontalScrollPosition(e,t=!1){const o=0,i=this.centerRowsCtrl.eViewport.scrollWidth-this.centerRowsCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(1,e)&&(e=this.enableRtl?e>0?0:i:Math.min(Math.max(e,o),i)),Re(this.centerRowsCtrl.eViewport,Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)}setVerticalScrollPosition(e){this.invalidateVerticalScroll(),this.eBodyViewport.scrollTop=e}getVScrollPosition(){if(!this.isVerticalPositionInvalidated){const{lastOffsetHeight:e,lastScrollTop:t}=this;return{top:t,bottom:t+e}}this.isVerticalPositionInvalidated=!1;const{scrollTop:e,offsetHeight:t}=this.eBodyViewport;return this.lastScrollTop=e,this.lastOffsetHeight=t,{top:e,bottom:e+t}}getApproximateVScollPosition(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()}getHScrollPosition(){return this.centerRowsCtrl.getHScrollPosition()}isHorizontalScrollShowing(){return this.isHorizontalPositionInvalidated&&(this.lastIsHorizontalScrollShowing=this.centerRowsCtrl.isHorizontalScrollShowing(),this.isHorizontalPositionInvalidated=!1),this.lastIsHorizontalScrollShowing}scrollHorizontally(e){const t=this.centerRowsCtrl.eViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowsCtrl.eViewport.scrollLeft-t}scrollToTop(){this.eBodyViewport.scrollTop=0}ensureNodeVisible(e,t=null){const{rowModel:o}=this.beans,i=o.getRowCount();let n=-1;for(let s=0;s<i;s++){const t=o.getRow(s);if("function"===typeof e){const o=e;if(t&&o(t)){n=s;break}}else if(e===t||e===t.data){n=s;break}}n>=0&&this.ensureIndexVisible(n,t)}ensureIndexVisible(e,t,o=0){if(Lo(this.gos,"print"))return;const{rowModel:i}=this.beans,n=i.getRowCount();if("number"!==typeof e||e<0||e>=n)return void xo(88,{index:e});this.clearRetryListeners();const{frameworkOverrides:s,pageBounds:r,rowContainerHeight:a,rowRenderer:l}=this.beans;s.wrapIncoming(()=>{const n=this.ctrlsSvc.getGridBodyCtrl(),s=i.getRow(e);let d,c,u=0;this.invalidateVerticalScroll();do{const{stickyTopHeight:e,stickyBottomHeight:o}=n,i=s.rowTop,h=s.rowHeight,g=r.getPixelOffset(),p=s.rowTop-g,f=p+s.rowHeight,m=this.getVScrollPosition(),v=a.divStretchOffset,C=m.top+v,w=m.bottom+v,b=w-C,y=a.getScrollPositionForPixel(p),S=a.getScrollPositionForPixel(f-b),R=Math.min((y+S)/2,p),x=C+e>p,E=w-o<f;let F=null;"top"===t?F=y-e:"bottom"===t?F=S+o:"middle"===t?F=R:x?F=y-e:E&&(F=S-y>b?y-e:S+o),null!==F&&(this.setVerticalScrollPosition(F),l.redraw({afterScroll:!0})),d=i!==s.rowTop||h!==s.rowHeight,c=e!==n.stickyTopHeight||o!==n.stickyBottomHeight,u++}while((d||c)&&u<10);if(this.animationFrameSvc?.flushAllFrames(),o<10&&(s?.stub||!this.beans.rowAutoHeight?.areRowsMeasured())){const n=this.getVScrollPosition().top;this.clearRetryListenerFncs=this.addManagedEventListeners({bodyScroll:()=>{const e=this.getVScrollPosition().top;n!==e&&this.clearRetryListeners()},modelUpdated:()=>{this.clearRetryListeners(),e>=i.getRowCount()||this.ensureIndexVisible(e,t,o+1)}})}})}clearRetryListeners(){for(const e of this.clearRetryListenerFncs)e();this.clearRetryListenerFncs=[]}ensureColumnVisible(e,t="auto"){const{colModel:o,frameworkOverrides:i}=this.beans,n=o.getCol(e);if(!n)return;if(n.isPinned())return;if(!this.visibleCols.isColDisplayed(n))return;const s=this.getPositionedHorizontalScroll(n,t);i.wrapIncoming(()=>{null!==s&&this.centerRowsCtrl.setCenterViewportScrollLeft(s),this.centerRowsCtrl.onHorizontalViewportChanged(),this.animationFrameSvc?.flushAllFrames()})}getPositionedHorizontalScroll(e,t){const{columnBeforeStart:o,columnAfterEnd:i}=this.isColumnOutsideViewport(e),n=this.centerRowsCtrl.getCenterWidth()<e.getActualWidth(),s=this.centerRowsCtrl.getCenterWidth(),r=this.enableRtl;let a=(r?o:i)||n,l=r?i:o;"auto"!==t&&(a="start"===t,l="end"===t);const d="middle"===t;if(a||l||d){const{colLeft:t,colMiddle:o,colRight:i}=this.getColumnBounds(e);return d?o-s/2:a?r?i:t:r?t-s:i-s}return null}isColumnOutsideViewport(e){const{start:t,end:o}=this.getViewportBounds(),{colLeft:i,colRight:n}=this.getColumnBounds(e),s=this.enableRtl,r=s?t>n:o<n,a=s?o<i:t>i;return{columnBeforeStart:r,columnAfterEnd:a}}getColumnBounds(e){const t=this.enableRtl,o=this.visibleCols.bodyWidth,i=e.getActualWidth(),n=e.getLeft(),s=t?-1:1,r=t?o-n:n,a=r+i*s,l=r+i/2*s;return{colLeft:r,colMiddle:l,colRight:a}}getViewportBounds(){const e=this.centerRowsCtrl.getCenterWidth(),t=this.centerRowsCtrl.getCenterViewportScrollLeft(),o=t,i=e+t;return{start:o,end:i,width:e}}},Vc=class extends Ct{constructor(e,t=!1){super(),this.callback=e,this.addSpacer=t}postConstruct(){const e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedEventListeners({columnContainerWidthChanged:e,displayedColumnsChanged:e,leftPinnedWidthChanged:e}),this.addSpacer&&this.addManagedEventListeners({rightPinnedWidthChanged:e,scrollVisibilityChanged:e,scrollbarWidthChanged:e}),this.setWidth()}setWidth(){const e=Lo(this.gos,"print"),{visibleCols:t,scrollVisibleSvc:o}=this.beans,i=t.bodyWidth,n=t.getColsLeftWidth(),s=t.getDisplayedColumnsRightWidth();let r;if(e)r=i+n+s;else if(r=i,this.addSpacer){const e=this.gos.get("enableRtl")?n:s;0===e&&o.verticalScrollShowing&&(r+=o.getScrollbarWidth())}this.callback(r)}},Gc=class extends Ct{constructor(e){super(),this.centerContainerCtrl=e}wireBeans(e){this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.listenForResize()}),this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this)}),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],()=>{this.checkViewportAndScrolls()})}listenForResize(){const{beans:e,centerContainerCtrl:t,gridBodyCtrl:o}=this,i=()=>{_e(e,()=>{this.onCenterViewportResized()})};t.registerViewportResizeListener(i),o.registerBodyViewportResizeListener(i)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleSvc.updateScrollGap(),this.centerContainerCtrl.isViewportInTheDOMTree()){const{pinnedCols:e,colFlex:t}=this.beans;e?.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();const o=this.centerContainerCtrl.getCenterWidth();o!==this.centerWidth&&(this.centerWidth=o,t?.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0}checkViewportAndScrolls(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.scrollFeature.checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(){const e=this.gridBodyCtrl.eBodyViewport,t=ve(e);this.bodyHeight!==t&&(this.bodyHeight=t,this.eventSvc.dispatchEvent({type:"bodyHeightChanged"}))}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){if(!this.isAlive())return;const e={horizontalScrollShowing:this.centerContainerCtrl.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleSvc.setScrollsVisible(e)}onHorizontalViewportChanged(){const e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.beans.colViewport.setScrollPosition(e,t)}};function Nc(e,t,o,i){const n=t.getColDef().cellRendererParams?.suppressMouseEventHandling;return Wc(e,t,o,i,n)}function zc(e,t,o,i){const n=t?.suppressMouseEventHandling;return Wc(e,void 0,o,i,n)}function Wc(e,t,o,i,n){return!!n&&n(Ti(e,{column:t,node:o,event:i}))}function _c(e,t,o){let i=t;while(i){const t=_o(e,i,o);if(t)return t;i=i.parentElement}return null}var Uc="cellCtrl";function $c(e,t){return _c(e,t,Uc)}var qc="renderedRow";function jc(e,t){return _c(e,t,qc)}function Kc(e,t,o,i,n){const s=i?i.getColDef().suppressKeyboardEvent:void 0;if(!s)return!1;const r=Ti(e,{event:t,editing:n,column:i,node:o,data:o.data,colDef:i.getColDef()});if(s){const e=s(r);if(e)return!0}return!1}function Qc(e){const{pinnedRowModel:t,rowModel:o,rangeSvc:i,visibleCols:n}=e;if(!i||0===n.allCols.length)return;const s=t?.isEmpty("top")??!0,r=t?.isEmpty("bottom")??!0,a=s?null:"top";let l,d;r?(l=null,d=o.getRowCount()-1):(l="bottom",d=t?.getPinnedBottomRowCount()??-1),i.setCellRange({rowStartIndex:0,rowStartPinned:a,rowEndIndex:d,rowEndPinned:l})}var Xc=class extends Ct{constructor(e){super(),this.element=e}postConstruct(){this.addKeyboardListeners(),this.addMouseListeners(),this.beans.touchSvc?.mockRowContextMenu(this),this.editSvc=this.beans.editSvc}addKeyboardListeners(){const e="keydown",t=this.processKeyboardEvent.bind(this,e);this.addManagedElementListeners(this.element,{[e]:t})}addMouseListeners(){const e=Ye("touchstart")?"touchstart":"mousedown",t=["dblclick","contextmenu","mouseover","mouseout","click",e];for(const o of t){const e=this.processMouseEvent.bind(this,o);this.addManagedElementListeners(this.element,{[o]:e})}}processMouseEvent(e,t){if(!st(this.beans,t)||Rc(t))return;const{cellCtrl:o,rowCtrl:i}=this.getControlsForEventTarget(t.target);"contextmenu"===e?(o?.column&&o.dispatchCellContextMenuEvent(t),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(t,void 0,i,o)):(o&&o.onMouseEvent(e,t),i&&i.onMouseEvent(e,t))}getControlsForEventTarget(e){const{gos:t}=this;return{cellCtrl:$c(t,e),rowCtrl:jc(t,e)}}processKeyboardEvent(e,t){const{cellCtrl:o,rowCtrl:i}=this.getControlsForEventTarget(t.target);t.defaultPrevented||(o?this.processCellKeyboardEvent(o,e,t):i?.isFullWidth()&&this.processFullWidthRowKeyboardEvent(i,e,t))}processCellKeyboardEvent(e,t,o){const i=this.editSvc?.isEditing(e,{withOpenEditor:!0})??!1,n=!Kc(this.gos,o,e.rowNode,e.column,i);if(n&&"keydown"===t){const t=!i&&this.beans.navigation?.handlePageScrollingKey(o);t||e.onKeyDown(o),this.doGridOperations(o,i),pa(o)&&e.processCharacter(o)}"keydown"===t&&this.eventSvc.dispatchEvent(e.createEvent(o,"cellKeyDown"))}processFullWidthRowKeyboardEvent(e,t,o){const{rowNode:i}=e,{focusSvc:n,navigation:s}=this.beans,r=n.getFocusedCell(),a=r?.column,l=!Kc(this.gos,o,i,a,!1);if(l){const i=o.key;if("keydown"===t)switch(i){case lr.PAGE_HOME:case lr.PAGE_END:case lr.PAGE_UP:case lr.PAGE_DOWN:s?.handlePageScrollingKey(o,!0);break;case lr.LEFT:case lr.RIGHT:if(!this.gos.get("embedFullWidthRows"))break;case lr.UP:case lr.DOWN:e.onKeyboardNavigate(o);break;case lr.TAB:e.onTabKeyDown(o);break;default:}}"keydown"===t&&this.eventSvc.dispatchEvent(e.createRowEvent("cellKeyDown",o))}doGridOperations(e,t){if(!e.ctrlKey&&!e.metaKey)return;if(t)return;if(!st(this.beans,e))return;const o=fr(e),{clipboardSvc:i,undoRedo:n}=this.beans;return o===lr.A?this.onCtrlAndA(e):o===lr.C?this.onCtrlAndC(i,e):o===lr.D?this.onCtrlAndD(i,e):o===lr.V?this.onCtrlAndV(i,e):o===lr.X?this.onCtrlAndX(i,e):o===lr.Y?this.onCtrlAndY(n):o===lr.Z?this.onCtrlAndZ(n,e):void 0}onCtrlAndA(e){const{beans:{rowModel:t,rangeSvc:o,selectionSvc:i},gos:n}=this;o&&ui(n)&&!Ri(n)&&t.isRowsToRender()?Qc(this.beans):i&&i.selectAllRowNodes({source:"keyboardSelectAll",selectAll:Si(n)}),e.preventDefault()}onCtrlAndC(e,t){if(!e||this.gos.get("enableCellTextSelection"))return;const{cellCtrl:o}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(o,{withOpenEditor:!0})||(t.preventDefault(),e.copyToClipboard())}onCtrlAndX(e,t){if(!e||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;const{cellCtrl:o}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(o,{withOpenEditor:!0})||(t.preventDefault(),e.cutToClipboard(void 0,"ui"))}onCtrlAndV(e,t){const{cellCtrl:o}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(o,{withOpenEditor:!0})||e&&!this.gos.get("suppressClipboardPaste")&&e.pasteFromClipboard()}onCtrlAndD(e,t){e&&!this.gos.get("suppressClipboardPaste")&&e.copyRangeDown(),t.preventDefault()}onCtrlAndZ(e,t){this.gos.get("undoRedoCellEditing")&&e&&(t.preventDefault(),t.shiftKey?e.redo("ui"):e.undo("ui"))}onCtrlAndY(e){e?.redo("ui")}},Yc=class extends Ct{constructor(e,t){super(),this.eContainer=e,this.eViewport=t}postConstruct(){this.addManagedEventListeners({rowContainerHeightChanged:this.onHeightChanged.bind(this,this.beans.rowContainerHeight)})}onHeightChanged(e){const t=e.uiContainerHeight,o=null!=t?`${t}px`:"";this.eContainer.style.height=o,this.eViewport&&(this.eViewport.style.height=o)}},Zc=e=>e.topRowCtrls,Jc=e=>e.getStickyTopRowCtrls(),eu=e=>e.getStickyBottomRowCtrls(),tu=e=>e.bottomRowCtrls,ou=e=>e.allRowCtrls,iu=e=>e.getCtrls("top"),nu=e=>e.getCtrls("center"),su=e=>e.getCtrls("bottom"),ru={center:{type:"center",name:"center-cols",getRowCtrls:ou,getSpannedRowCtrls:nu},left:{type:"left",name:"pinned-left-cols",pinnedType:"left",getRowCtrls:ou,getSpannedRowCtrls:nu},right:{type:"right",name:"pinned-right-cols",pinnedType:"right",getRowCtrls:ou,getSpannedRowCtrls:nu},fullWidth:{type:"fullWidth",name:"full-width",fullWidth:!0,getRowCtrls:ou},topCenter:{type:"center",name:"floating-top",getRowCtrls:Zc,getSpannedRowCtrls:iu},topLeft:{type:"left",name:"pinned-left-floating",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:Zc,getSpannedRowCtrls:iu},topRight:{type:"right",name:"pinned-right-floating",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:Zc,getSpannedRowCtrls:iu},topFullWidth:{type:"fullWidth",name:"floating-top-full-width",fullWidth:!0,getRowCtrls:Zc},stickyTopCenter:{type:"center",name:"sticky-top",getRowCtrls:Jc},stickyTopLeft:{type:"left",name:"pinned-left-sticky-top",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:Jc},stickyTopRight:{type:"right",name:"pinned-right-sticky-top",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:Jc},stickyTopFullWidth:{type:"fullWidth",name:"sticky-top-full-width",fullWidth:!0,getRowCtrls:Jc},stickyBottomCenter:{type:"center",name:"sticky-bottom",getRowCtrls:eu},stickyBottomLeft:{type:"left",name:"pinned-left-sticky-bottom",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:eu},stickyBottomRight:{type:"right",name:"pinned-right-sticky-bottom",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:eu},stickyBottomFullWidth:{type:"fullWidth",name:"sticky-bottom-full-width",fullWidth:!0,getRowCtrls:eu},bottomCenter:{type:"center",name:"floating-bottom",getRowCtrls:tu,getSpannedRowCtrls:su},bottomLeft:{type:"left",name:"pinned-left-floating-bottom",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:tu,getSpannedRowCtrls:su},bottomRight:{type:"right",name:"pinned-right-floating-bottom",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:tu,getSpannedRowCtrls:su},bottomFullWidth:{type:"fullWidth",name:"floating-bottom-full-width",fullWidth:!0,getRowCtrls:tu}};function au(e){const t=cu(e);return`ag-${t.name}-viewport`}function lu(e){const t=cu(e);return t.container??`ag-${t.name}-container`}function du(e){const t=cu(e);return`ag-${t.name}-spanned-cells-container`}function cu(e){return ru[e]}var uu=["topCenter","topLeft","topRight"],hu=["bottomCenter","bottomLeft","bottomRight"],gu=["center","left","right"],pu=["center","left","right","fullWidth"],fu=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],mu=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],vu=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],Cu=["stickyTopCenter","stickyTopLeft","stickyTopRight"],wu=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],bu=[...Cu,"stickyTopFullWidth",...wu,"stickyBottomFullWidth"],yu=[...uu,...hu,...gu,...Cu,...wu],Su=class extends Ct{constructor(e){super(),this.name=e,this.visible=!0,this.EMPTY_CTRLS=[],this.options=cu(e)}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],()=>{this.viewportSizeFeature=this.createManagedBean(new Gc(this)),this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)})})}onStickyTopOffsetChanged(e){this.comp.setOffsetTop(`${e.offset}px`)}registerWithCtrlsService(){this.options.fullWidth||this.beans.ctrlsSvc.register(this.name,this)}forContainers(e,t){e.indexOf(this.name)>=0&&t()}setComp(e,t,o,i){this.comp=e,this.eContainer=t,this.eSpannedContainer=o,this.eViewport=i,this.createManagedBean(new Xc(this.eViewport??this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();const{pinnedCols:n,rangeSvc:s}=this.beans,r=()=>this.onPinnedWidthChanged();this.forContainers(mu,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(n?.createPinnedWidthFeature(!0,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({leftPinnedWidthChanged:r})}),this.forContainers(vu,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(n?.createPinnedWidthFeature(!1,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({rightPinnedWidthChanged:r})}),this.forContainers(pu,()=>this.createManagedBean(new Yc(this.eContainer,"center"===this.name?i:void 0))),s&&this.forContainers(yu,()=>this.createManagedBean(s.createDragListenerFeature(this.eContainer))),this.forContainers(fu,()=>this.createManagedBean(new Vc(e=>this.comp.setContainerWidth(`${e}px`)))),this.visible=this.isContainerVisible(),this.addListeners(),this.registerWithCtrlsService()}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}addListeners(){const{spannedRowRenderer:e,gos:t}=this.beans,o=this.onDisplayedColumnsChanged.bind(this);this.addManagedEventListeners({displayedColumnsChanged:o,displayedColumnsWidthChanged:o,displayedRowsChanged:e=>this.onDisplayedRowsChanged(e.afterScroll)}),o(),this.onDisplayedRowsChanged(),e&&this.options.getSpannedRowCtrls&&t.get("enableCellSpan")&&this.addManagedListeners(e,{spannedRowsUpdated:()=>{const t=this.options.getSpannedRowCtrls(e);t&&this.comp.setSpannedRowCtrls(t,!1)}})}listenOnDomOrder(){const e=bu.indexOf(this.name)>=0;if(e)return void this.comp.setDomOrder(!0);const t=()=>{const e=this.gos.get("ensureDomOrder"),t=Lo(this.gos,"print");this.comp.setDomOrder(e||t)};this.addManagedPropertyListener("domLayout",t),t()}onDisplayedColumnsChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}addPreventScrollWhileDragging(){const{dragSvc:e}=this.beans;if(!e)return;const t=t=>{e.dragging&&t.cancelable&&t.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc(()=>this.eContainer.removeEventListener("touchmove",t))}onHorizontalViewportChanged(e=!1){const t=this.getCenterWidth(),o=this.getCenterViewportScrollLeft();this.beans.colViewport.setScrollPosition(t,o,e)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return Ce(this.eViewport)}getCenterViewportScrollLeft(){return Se(this.eViewport,this.enableRtl)}registerViewportResizeListener(e){const t=We(this.beans,this.eViewport,e);this.addDestroyFunc(()=>t())}isViewportInTheDOMTree(){return Fe(this.eViewport)}getViewportScrollLeft(){return Se(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){const e=this.gos.get("alwaysShowHorizontalScroll");return e||Le(this.eViewport)}setHorizontalScroll(e){this.comp.setHorizontalScroll(e)}getHScrollPosition(){const e={left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth};return e}setCenterViewportScrollLeft(e){Re(this.eViewport,e,this.enableRtl)}isContainerVisible(){const e=null!=this.options.pinnedType;return!e||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){const e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(e=!1){const t=this.options.getRowCtrls(this.beans.rowRenderer);if(!this.visible||0===t.length)return void this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});const o=Lo(this.gos,"print"),i=this.gos.get("embedFullWidthRows"),n=i||o,s=t.filter(e=>{const t=e.isFullWidth(),o=this.options.fullWidth?!n&&t:n||!t;return o});this.comp.setRowCtrls({rowCtrls:s,useFlushSync:e})}},Ru="ag-force-vertical-scroll",xu="ag-selectable",Eu="ag-column-moving",Fu=class extends Ct{constructor(){super(...arguments),this.stickyTopHeight=0,this.stickyBottomHeight=0}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colModel=e.colModel,this.scrollVisibleSvc=e.scrollVisibleSvc,this.pinnedRowModel=e.pinnedRowModel,this.filterManager=e.filterManager,this.rowGroupColsSvc=e.rowGroupColsSvc}setComp(e,t,o,i,n,s,r){this.comp=e,this.eGridBody=t,this.eBodyViewport=o,this.eTop=i,this.eBottom=n,this.eStickyTop=s,this.eStickyBottom=r,this.eCenterColsViewport=o.querySelector(`.${au("center")}`),this.eFullWidthContainer=o.querySelector(`.${lu("fullWidth")}`),this.eStickyTopFullWidthContainer=s.querySelector(`.${lu("stickyTopFullWidth")}`),this.eStickyBottomFullWidthContainer=r.querySelector(`.${lu("stickyBottomFullWidth")}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",e=>this.setCellTextSelection(e.currentValue)),this.createManagedBean(new Ac(this.comp)),this.scrollFeature=this.createManagedBean(new Hc(o)),this.beans.rowDragSvc?.setupRowDrag(o,this),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([i,o,n,s,r]),this.setGridRootRole(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),this.filterManager?.setupAdvFilterHeaderComp(i),this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){const e=this.setFloatingHeights.bind(this),t=this.setGridRootRole.bind(this),o=this.toggleRowResizeStyles.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollGapChanged:this.updateScrollingClasses.bind(this),pinnedRowDataChanged:e,pinnedHeightChanged:e,pinnedRowsChanged:e,headerHeightChanged:this.setStickyTopOffsetTop.bind(this),columnRowGroupChanged:t,columnPivotChanged:t,rowResizeStarted:o,rowResizeEnded:o}),this.addManagedPropertyListener("treeData",t)}toggleRowResizeStyles(e){const t="rowResizeStarted"===e.type;this.eBodyViewport.classList.toggle("ag-prevent-animation",t)}onGridColumnsChanged(){const e=this.beans.colModel.getCols();this.comp.setColumnCount(e.length)}onScrollVisibilityChanged(){const{scrollVisibleSvc:e}=this,t=e.verticalScrollShowing;this.setVerticalScrollPaddingVisible(t),this.setStickyWidth(t),this.setStickyBottomOffsetBottom();const o=t&&e.getScrollbarWidth()||0,i=Tr()?16:0,n=`calc(100% + ${o+i}px)`;_e(this.beans,()=>this.comp.setBodyViewportWidth(n)),this.updateScrollingClasses()}setGridRootRole(){const{rowGroupColsSvc:e,colModel:t,gos:o}=this;let i=o.get("treeData");if(!i){const o=t.isPivotMode(),n=e?e.columns.length:0,s=o?2:1;i=n>=s}this.comp.setGridRootRole(i?"treegrid":"grid")}addFocusListeners(e){for(const t of e)this.addManagedElementListeners(t,{focusin:e=>{const{target:o}=e,i=fe(o,"ag-root",t);t.classList.toggle("ag-has-focus",!i)},focusout:e=>{const{target:o,relatedTarget:i}=e,n=t.contains(i),s=fe(i,"ag-root",t),r=fe(o,"ag-root",t);r||n&&!s||t.classList.remove("ag-has-focus")}})}setColumnMovingCss(e){this.comp.setColumnMovingCss(Eu,e)}setCellTextSelection(e=!1){this.comp.setCellSelectableCss(xu,e)}updateScrollingClasses(){const{eGridBody:{classList:e},scrollVisibleSvc:t}=this;e.toggle("ag-body-vertical-content-no-gap",!t.verticalScrollGap),e.toggle("ag-body-horizontal-content-no-gap",!t.horizontalScrollGap)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:e=>{if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}})}addStopEditingWhenGridLosesFocus(){this.beans.editSvc?.addStopEditingWhenGridLosesFocus([this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom])}updateRowCount(){const e=(this.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.filterManager?.getHeaderRowCount()??0),{rowModel:t}=this.beans,o=t.isLastRowIndexKnown()?t.getRowCount():-1,i=-1===o?-1:e+o;this.comp.setRowCount(i)}registerBodyViewportResizeListener(e){this.comp.registerBodyViewportResizeListener(e)}setVerticalScrollPaddingVisible(e){const t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)}isVerticalScrollShowing(){const e=this.gos.get("alwaysShowVerticalScroll"),t=e?Ru:null,o=Lo(this.gos,"normal");return this.comp.setAlwaysVerticalScrollClass(t,e),e||o&&Be(this.eBodyViewport)}setupRowAnimationCssClass(){const{rowContainerHeight:e,environment:t}=this.beans;let o=t.sizesMeasured;const i=()=>{const t=o&&$o(this.gos)&&!e.stretching,i=t?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(i,t)};i(),this.addManagedEventListeners({heightScaleChanged:i}),this.addManagedPropertyListener("animateRows",i),this.addManagedEventListeners({stylesChanged:()=>{!o&&t.sizesMeasured&&(o=!0,i())}})}addBodyViewportListener(){const{eBodyViewport:e,eStickyTop:t,eStickyBottom:o,eTop:i,eBottom:n,beans:{popupSvc:s,touchSvc:r}}=this,a=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(e,{contextmenu:a}),r?.mockBodyContextMenu(this,a),this.addManagedElementListeners(e,{wheel:this.onBodyViewportWheel.bind(this,s)});const l=this.onStickyWheel.bind(this);for(const c of[t,o,i,n])this.addManagedElementListeners(c,{wheel:l});const d=this.onHorizontalWheel.bind(this);for(const c of["left","right","topLeft","topRight","bottomLeft","bottomRight"])this.addManagedElementListeners(this.ctrlsSvc.get(c).eContainer,{wheel:d});this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:e=>this.onFullWidthContainerWheel(e)})}onFullWidthContainerWheel(e){const{deltaX:t,deltaY:o,shiftKey:i}=e,n=i||Math.abs(t)>Math.abs(o);n&&st(this.beans,e)&&this.scrollGridBodyToMatchEvent(e)}onStickyWheel(e){const{deltaY:t}=e,o=this.scrollVertically(t);o>0&&e.preventDefault()}onHorizontalWheel(e){const{deltaX:t,deltaY:o,shiftKey:i}=e,n=i||Math.abs(t)>Math.abs(o);n&&this.scrollGridBodyToMatchEvent(e)}scrollGridBodyToMatchEvent(e){const{deltaX:t,deltaY:o}=e;e.preventDefault(),this.eCenterColsViewport.scrollBy({left:t||o})}onBodyViewportContextMenu(e,t,o){if(!e&&!o)return;if(this.gos.get("preventDefaultOnContextMenu")){const t=e||o;t.preventDefault()}const{target:i}=e||t;i!==this.eBodyViewport&&i!==this.ctrlsSvc.get("center").eViewport||this.beans.contextMenuSvc?.showContextMenu({mouseEvent:e,touchEvent:o,value:null,anchorToElement:this.eGridBody,source:"ui"})}onBodyViewportWheel(e,t){this.gos.get("suppressScrollWhenPopupsAreOpen")&&e?.hasAnchoredPopup()&&t.preventDefault()}scrollVertically(e){const t=this.eBodyViewport.scrollTop;return this.scrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t}setFloatingHeights(){const{pinnedRowModel:e,beans:{environment:t}}=this,o=e?.getPinnedTopTotalHeight(),i=e?.getPinnedBottomTotalHeight(),n=t.getPinnedRowBorderWidth(),s=t.getRowBorderWidth(),r=n-s,a=o?r+o:0,l=i?r+i:0;this.comp.setTopHeight(a),this.comp.setBottomHeight(l),this.comp.setTopInvisible(a<=0),this.comp.setBottomInvisible(l<=0),this.setStickyTopOffsetTop(),this.setStickyBottomOffsetBottom()}setStickyTopHeight(e=0){this.comp.setStickyTopHeight(`${e}px`),this.stickyTopHeight=e}setStickyBottomHeight(e=0){this.comp.setStickyBottomHeight(`${e}px`),this.stickyBottomHeight=e}setStickyWidth(e){if(e){const e=this.scrollVisibleSvc.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${e}px)`),this.comp.setStickyBottomWidth(`calc(100% - ${e}px)`)}else this.comp.setStickyTopWidth("100%"),this.comp.setStickyBottomWidth("100%")}setStickyTopOffsetTop(){const e=this.ctrlsSvc.get("gridHeaderCtrl"),t=e.headerHeight+(this.filterManager?.getHeaderHeight()??0),o=this.pinnedRowModel?.getPinnedTopTotalHeight()??0;let i=0;t>0&&(i+=t),o>0&&(i+=o),i>0&&(i+=1),this.comp.setStickyTopTop(`${i}px`)}setStickyBottomOffsetBottom(){const{pinnedRowModel:e,scrollVisibleSvc:t,comp:o}=this,i=e?.getPinnedBottomTotalHeight()??0,n=t.horizontalScrollShowing,s=n&&t.getScrollbarWidth()||0,r=i+s;o.setStickyBottomBottom(`${r}px`)}};function Pu(e,t){return $c(e,t.target)?.getFocusedCellPosition()??null}function Du(e,t){const o=Lo(e.gos,"normal"),i=t;let n,s;null!=i.clientX||null!=i.clientY?(n=i.clientX,s=i.clientY):(n=i.x,s=i.y);const{pageFirstPixel:r}=e.pageBounds.getCurrentPagePixelRange();if(s+=r,o){const t=e.ctrlsSvc.getScrollFeature(),o=t.getVScrollPosition(),i=t.getHScrollPosition();n+=i.left,s+=o.top}return{x:n,y:s}}var ku=class extends ps{constructor(e,t){super(),this.direction=t,this.eViewport=ds,this.eContainer=ds,this.hideTimeout=0,this.setTemplate(e)}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.toggleCss("ag-apple-scrollbar",Fr()||Pr())}destroy(){super.destroy(),window.clearTimeout(this.hideTimeout)}initialiseInvisibleScrollbar(){void 0===this.invisibleScrollbar&&(this.invisibleScrollbar=Tr(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){const e=this.getGui(),t=()=>this.toggleCss("ag-scrollbar-active",!0),o=()=>this.toggleCss("ag-scrollbar-active",!1);this.addManagedListeners(e,{mouseenter:t,mousedown:t,touchstart:t,mouseleave:o,touchend:o})}onScrollVisibilityChanged(){void 0===this.invisibleScrollbar&&this.initialiseInvisibleScrollbar(),_e(this.beans,()=>this.setScrollVisible())}hideAndShowInvisibleScrollAsNeeded(){this.addManagedEventListeners({bodyScroll:e=>{e.direction===this.direction&&(this.hideTimeout&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=0),this.toggleCss("ag-scrollbar-scrolling",!0))},bodyScrollEnd:()=>{this.hideTimeout=window.setTimeout(()=>{this.toggleCss("ag-scrollbar-scrolling",!1),this.hideTimeout=0},400)}})}attemptSettingScrollPosition(e){const t=this.eViewport;Ft(this,()=>Pe(t),()=>this.setScrollPosition(e),100)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}},Mu={tag:"div",cls:"ag-body-horizontal-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eLeftSpacer",cls:"ag-horizontal-left-spacer"},{tag:"div",ref:"eViewport",cls:"ag-body-horizontal-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-horizontal-scroll-container"}]},{tag:"div",ref:"eRightSpacer",cls:"ag-horizontal-right-spacer"}]},Au=class extends ku{constructor(){super(Mu,"horizontal"),this.eLeftSpacer=ds,this.eRightSpacer=ds,this.setScrollVisibleDebounce=0}wireBeans(e){this.visibleCols=e.visibleCols,this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){super.postConstruct();const e=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e,pinnedRowDataChanged:this.refreshCompBottom.bind(this)}),this.addManagedPropertyListener("domLayout",e),this.beans.ctrlsSvc.register("fakeHScrollComp",this),this.createManagedBean(new Vc(e=>this.eContainer.style.width=`${e}px`)),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}destroy(){window.clearTimeout(this.setScrollVisibleDebounce),super.destroy()}initialiseInvisibleScrollbar(){void 0===this.invisibleScrollbar&&(this.enableRtl=this.gos.get("enableRtl"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}refreshCompBottom(){if(!this.invisibleScrollbar)return;const e=this.beans.pinnedRowModel?.getPinnedBottomTotalHeight()??0;this.getGui().style.bottom=`${e}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){const e=this.scrollVisibleSvc.verticalScrollShowing;let t=this.visibleCols.getDisplayedColumnsRightWidth();const o=!this.enableRtl&&e,i=this.scrollVisibleSvc.getScrollbarWidth();o&&(t+=i),He(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=i);let n=this.visibleCols.getColsLeftWidth();const s=this.enableRtl&&e;s&&(n+=i),He(this.eLeftSpacer,n),this.eLeftSpacer.classList.toggle("ag-scroller-corner",n<=i)}setScrollVisible(){const e=this.scrollVisibleSvc.horizontalScrollShowing,t=this.invisibleScrollbar,o=this.gos.get("suppressHorizontalScroll"),i=e&&this.scrollVisibleSvc.getScrollbarWidth()||0,n=0===i&&t?16:i,s=o?0:n,r=()=>{this.setScrollVisibleDebounce=0,this.toggleCss("ag-scrollbar-invisible",t),Ve(this.getGui(),s),Ve(this.eViewport,s),Ve(this.eContainer,s),s||this.eContainer.style.setProperty("min-height","1px"),this.setVisible(e,{skipAriaHidden:!0})};window.clearTimeout(this.setScrollVisibleDebounce),e?this.setScrollVisibleDebounce=window.setTimeout(r,100):r()}getScrollPosition(){return Se(this.eViewport,this.enableRtl)}setScrollPosition(e){Pe(this.eViewport)||this.attemptSettingScrollPosition(e),Re(this.eViewport,e,this.enableRtl)}},Tu={selector:"AG-FAKE-HORIZONTAL-SCROLL",component:Au},Iu={tag:"div",cls:"ag-body-vertical-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eViewport",cls:"ag-body-vertical-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-vertical-scroll-container"}]}]},Lu=class extends ku{constructor(){super(Iu,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new Yc(this.eContainer));const{ctrlsSvc:e}=this.beans;e.register("fakeVScrollComp",this),this.addManagedEventListeners({rowContainerHeightChanged:this.onRowContainerHeightChanged.bind(this,e)})}setScrollVisible(){const{scrollVisibleSvc:e}=this.beans,t=e.verticalScrollShowing,o=this.invisibleScrollbar,i=t&&e.getScrollbarWidth()||0,n=0===i&&o?16:i;this.toggleCss("ag-scrollbar-invisible",o),He(this.getGui(),n),He(this.eViewport,n),He(this.eContainer,n),this.setDisplayed(t,{skipAriaHidden:!0})}onRowContainerHeightChanged(e){const t=e.getGridBodyCtrl(),o=t.eBodyViewport,i=this.getScrollPosition(),n=o.scrollTop;i!=n&&this.setScrollPosition(n,!0)}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(e,t){t||Pe(this.eViewport)||this.attemptSettingScrollPosition(e),this.eViewport.scrollTop=e}},Bu={selector:"AG-FAKE-VERTICAL-SCROLL",component:Lu},Ou="ag-column-first",Hu="ag-column-last";function Vu(e,t,o,i){return r(e)?[]:Wu(e.headerClass,e,t,o,i)}function Gu(e,t,o,i){return r(e)?[]:Wu(e.toolPanelClass,e,t,o,i)}function Nu(e,t,o){e.toggleCss(Ou,o.isColAtEdge(t,"first")),e.toggleCss(Hu,o.isColAtEdge(t,"last"))}function zu(e,t,o,i){return Ti(t,{colDef:e,column:o,columnGroup:i})}function Wu(e,t,o,i,n){if(r(e))return[];let s;if("function"===typeof e){const r=zu(t,o,i,n);s=e(r)}else s=e;return"string"===typeof s?[s]:Array.isArray(s)?[...s]:[]}function _u(e){const{rowIndex:t,rowPinned:o,column:i}=e;return`${t}.${null==o?"null":o}.${i.getId()}`}function Uu(e,t){const o=e.column===t.column,i=e.rowPinned===t.rowPinned,n=e.rowIndex===t.rowIndex;return o&&i&&n}function $u(e,t){switch(e.rowPinned){case"top":if("top"!==t.rowPinned)return!0;break;case"bottom":if("bottom"!==t.rowPinned)return!1;break;default:if(s(t.rowPinned))return"top"!==t.rowPinned;break}return e.rowIndex<t.rowIndex}function qu(e,t){return!e&&!t||!(!e||!t)&&(e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned)}function ju(e){let t,o=0;const{pinnedRowModel:i,rowModel:n,pageBounds:s}=e;return i?.getPinnedTopRowCount()?t="top":n.getRowCount()?(t=null,o=s.getFirstRow()):i?.getPinnedBottomRowCount()&&(t="bottom"),void 0===t?null:{rowIndex:o,rowPinned:t}}function Ku(e){let t,o=null;const{pinnedRowModel:i,pageBounds:n}=e,s=i?.getPinnedBottomRowCount(),r=i?.getPinnedTopRowCount();return s?(o="bottom",t=s-1):e.rowModel.getRowCount()?t=n.getLastRow():r&&(o="top",t=r-1),void 0===t?null:{rowIndex:t,rowPinned:o}}function Qu(e,t){switch(t.rowPinned){case"top":return e.pinnedRowModel?.getPinnedTopRow(t.rowIndex);case"bottom":return e.pinnedRowModel?.getPinnedBottomRow(t.rowIndex);default:return e.rowModel.getRow(t.rowIndex)}}function Xu(e,t){const o=e.spannedRowRenderer?.getCellByPosition(t);if(o)return o;const i=e.rowRenderer.getRowByPosition(t);return i?i.getCellCtrl(t.column):null}function Yu(e,t,o){const{rowModel:i,pinnedRowModel:n}=e;let s;return s??(s=i?.getRowNode(t)),o?s??(s=n?.getPinnedRowById(t,o)):(s??(s=n?.getPinnedRowById(t,"top")),s??(s=n?.getPinnedRowById(t,"bottom"))),s}function Zu(e,t,o=!1){const{rowIndex:i,rowPinned:n}=t,{pageBounds:s,pinnedRowModel:r,rowModel:a}=e;if(0===i)return"top"===n?null:"bottom"===n&&a.isRowsToRender()?{rowIndex:s.getLastRow(),rowPinned:null}:r?.isRowsToRender("top")?{rowIndex:r.getPinnedTopRowCount()-1,rowPinned:"top"}:null;if(o){const t=n?void 0:a.getRow(i);return th(e,t,!0)??{rowIndex:i-1,rowPinned:n}}return{rowIndex:i-1,rowPinned:n}}function Ju(e,t){const{pinnedRowModel:o,rowModel:i}=e,n=o?.getPinnedTopRowCount()??0,s=i.getRowCount(),{rowPinned:r,rowIndex:a}=t;return"top"===r?a:"bottom"===r?n+s+a:n+a}function eh(e,t,o=!1){const{rowIndex:i,rowPinned:n}=t,{pageBounds:s,pinnedRowModel:r,rowModel:a}=e;if(oh(e,t))return"bottom"===n?null:"top"===n&&a.isRowsToRender()?{rowIndex:s.getFirstRow(),rowPinned:null}:r?.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;if(o){const t=n?void 0:a.getRow(i);return th(e,t)??{rowIndex:i+1,rowPinned:n}}return{rowIndex:i+1,rowPinned:n}}function th(e,t,o=!1){const{gos:i,rowRenderer:n}=e;if(!t?.sticky||!qo(i))return;const s=n.getStickyTopRowCtrls(),r=n.getStickyBottomRowCtrls(),a=!r.some(e=>e.rowNode.rowIndex===t.rowIndex),l=a?s:r,d=(o?-1:1)*(a?-1:1);let c;for(let u=0;u<l.length;u++)if(l[u].rowNode.rowIndex===t.rowIndex){c=l[u+d];break}return c?{rowIndex:c.rowNode.rowIndex,rowPinned:null}:void 0}function oh(e,t){const{rowPinned:o,rowIndex:i}=t,{pinnedRowModel:n,pageBounds:s}=e;if("top"===o){const e=(n?.getPinnedTopRowCount()??0)-1;return e<=i}if("bottom"===o){const e=(n?.getPinnedBottomRowCount()??0)-1;return e<=i}const r=s.getLastRow();return r<=i}function ih(e,t,o){t.addManagedElementListeners(o,{keydown:t=>{if(!t.defaultPrevented&&t.key===lr.TAB){const i=t.shiftKey;Wr(e,o,!1,i)||ah(e,i)&&t.preventDefault()}}})}function nh(e,t){return e.ctrlsSvc.get("gridCtrl").focusInnerElement(t)}function sh(e){return e.gos.get("suppressHeaderFocus")||!!e.overlays?.exclusive}function rh(e){return e.gos.get("suppressCellFocus")||!!e.overlays?.exclusive}function ah(e,t,o=!1){const i=e.ctrlsSvc.get("gridCtrl");return!(o||!i.focusNextInnerContainer(t))||((o||!t&&!i.isDetailGrid())&&i.forceFocusOutOfContainer(t),!1)}function lh(e,t){const o=e.focusSvc,i=o.getFocusedCell();if(i&&t&&Uu(i,t)){const{rowIndex:i,rowPinned:n,column:s}=t;C(e)&&o.setFocusedCell({rowIndex:i,column:s,rowPinned:n,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!Gr()})}}function dh(e){return e.cols?e.cols.treeDepth+1:-1}function ch(e){return e.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0}function uh(e){const t=[],o=e.ctrlsSvc.getHeaderRowContainerCtrls();for(const i of o){if(!i)continue;const o=i.getGroupRowCount()||0;for(let n=0;n<o;n++){const o=i.getGroupRowCtrlAtIndex(n),s=t[n];if(o){const i=hh(e,o);(null==s||i>s)&&(t[n]=i)}}}return t}function hh(e,t){const o=e.colModel.isPivotMode()?Ch(e):mh(e);let i=o;const n=t.getHeaderCellCtrls();for(const s of n){const{column:e}=s,t=e.getAutoHeaderHeight();null!=t&&t>i&&e.isAutoHeaderHeight()&&(i=t)}return i}function gh(e){const t=e.colModel.isPivotMode()?vh(e):ph(e);let o=t;return e.colModel.forAllCols(e=>{const t=e.getAutoHeaderHeight();null!=t&&t>o&&e.isAutoHeaderHeight()&&(o=t)}),o}function ph(e){return e.gos.get("headerHeight")??e.environment.getDefaultHeaderHeight()}function fh(e){return e.gos.get("floatingFiltersHeight")??ph(e)}function mh(e){return e.gos.get("groupHeaderHeight")??ph(e)}function vh(e){return e.gos.get("pivotHeaderHeight")??ph(e)}function Ch(e){return e.gos.get("pivotGroupHeaderHeight")??mh(e)}function wh(e,t){return e.headerRowIndex===t.headerRowIndex&&e.column===t.column}var bh=class extends Ct{setComp(e,t,o){this.comp=e,this.eGui=t;const{beans:i}=this,{headerNavigation:n,touchSvc:s,ctrlsSvc:r}=i;n&&this.createManagedBean(new Ec(o,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,i),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,i)}),this.onPivotModeChanged(i),this.setupHeaderHeight();const a=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:a}),s?.mockHeaderContextMenu(this,a),r.register("gridHeaderCtrl",this)}setupHeaderHeight(){const e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],e),this.addManagedEventListeners({headerRowsChanged:e,columnHeaderHeightChanged:e,columnGroupHeaderHeightChanged:()=>_e(this.beans,()=>e()),stylesChanged:e,advancedFilterEnabledChanged:e})}setHeaderHeight(){const{beans:e}=this;let t=0;const o=uh(e).reduce((e,t)=>e+t,0),i=gh(e);if(e.filterManager?.hasFloatingFilters()&&(t+=fh(e)),t+=o,t+=i,this.headerHeight===t)return;this.headerHeight=t;const n=`${t+1}px`;this.comp.setHeightAndMinHeight(n),this.eventSvc.dispatchEvent({type:"headerHeightChanged"})}onPivotModeChanged(e){const t=e.colModel.isPivotMode();this.comp.toggleCss("ag-pivot-on",t),this.comp.toggleCss("ag-pivot-off",!t)}onDisplayedColumnsChanged(e){const t=e.visibleCols.allCols,o=t.some(e=>e.isSpanHeaderHeight());this.comp.toggleCss("ag-header-allow-overflow",o)}onTabKeyDown(e){const t=this.gos.get("enableRtl"),o=e.shiftKey,i=o!==t?"LEFT":"RIGHT",{beans:n}=this,{headerNavigation:s,focusSvc:r}=n;(s.navigateHorizontally(i,!0,e)||!o&&r.focusOverlay(!1)||ah(n,o,!0))&&e.preventDefault()}handleKeyDown(e){let t=null;const{headerNavigation:o}=this.beans;switch(e.key){case lr.LEFT:t="LEFT";case lr.RIGHT:s(t)||(t="RIGHT"),o.navigateHorizontally(t,!1,e)&&e.preventDefault();break;case lr.UP:t="UP";case lr.DOWN:s(t)||(t="DOWN"),o.navigateVertically(t,e)&&e.preventDefault();break;default:return}}onFocusOut(e){const{relatedTarget:t}=e,{eGui:o,beans:i}=this;!t&&o.contains(m(i))||o.contains(t)||(i.focusSvc.focusedHeader=null)}onHeaderContextMenu(e,t,o){const{menuSvc:i,ctrlsSvc:n}=this.beans;if(!e&&!o||!i?.isHeaderContextMenuEnabled())return;const{target:s}=e??t;s!==this.eGui&&s!==n.getHeaderRowContainerCtrl()?.eViewport||i.showHeaderContextMenu(void 0,e,o)}},yh=class extends ps{constructor(e,t){super(e),this.ctrl=t}getCtrl(){return this.ctrl}},Sh={tag:"div",cls:"ag-header-cell",role:"columnheader",children:[{tag:"div",ref:"eResize",cls:"ag-header-cell-resize",role:"presentation"},{tag:"div",ref:"eHeaderCompWrapper",cls:"ag-header-cell-comp-wrapper",role:"presentation"}]},Rh=class extends yh{constructor(e){super(Sh,e),this.eResize=ds,this.eHeaderCompWrapper=ds,this.headerCompVersion=0}postConstruct(){const e=this.getGui(),t=()=>{const e=this.ctrl.getSelectAllGui();e&&(this.eResize.insertAdjacentElement("afterend",e),this.addDestroyFunc(()=>e.remove()))},o={setWidth:t=>e.style.width=t,toggleCss:(e,t)=>this.toggleCss(e,t),setUserStyles:t=>Te(e,t),setAriaSort:t=>t?J(e,t):ee(e),setUserCompDetails:e=>this.setUserCompDetails(e),getUserCompInstance:()=>this.headerComp,refreshSelectAllGui:t,removeSelectAllGui:()=>this.ctrl.getSelectAllGui()?.remove()};this.ctrl.setComp(o,this.getGui(),this.eResize,this.eHeaderCompWrapper,void 0),t()}destroy(){this.destroyHeaderComp(),super.destroy()}destroyHeaderComp(){this.headerComp&&(this.headerCompGui?.remove(),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)}setUserCompDetails(e){this.headerCompVersion++;const t=this.headerCompVersion;e.newAgStackInstance().then(e=>this.afterCompCreated(t,e))}afterCompCreated(e,t){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(t)}},xh={tag:"div",cls:"ag-header-group-cell",role:"columnheader",children:[{tag:"div",ref:"eHeaderCompWrapper",cls:"ag-header-cell-comp-wrapper",role:"presentation"},{tag:"div",ref:"eResize",cls:"ag-header-cell-resize",role:"presentation"}]},Eh=class extends yh{constructor(e){super(xh,e),this.eResize=ds,this.eHeaderCompWrapper=ds}postConstruct(){const e=this.getGui(),t=(t,o)=>void 0!=o?e.setAttribute(t,o):e.removeAttribute(t),o={toggleCss:(e,t)=>this.toggleCss(e,t),setUserStyles:t=>Te(e,t),setHeaderWrapperHidden:e=>{e?this.eHeaderCompWrapper.style.setProperty("display","none"):this.eHeaderCompWrapper.style.removeProperty("display")},setHeaderWrapperMaxHeight:e=>{null!=e?this.eHeaderCompWrapper.style.setProperty("max-height",`${e}px`):this.eHeaderCompWrapper.style.removeProperty("max-height"),this.eHeaderCompWrapper.classList.toggle("ag-header-cell-comp-wrapper-limited-height",null!=e)},setResizableDisplayed:e=>he(this.eResize,e),setWidth:t=>e.style.width=t,setAriaExpanded:e=>t("aria-expanded",e),setUserCompDetails:e=>this.setUserCompDetails(e),getUserCompInstance:()=>this.headerGroupComp};this.ctrl.setComp(o,e,this.eResize,this.eHeaderCompWrapper,void 0)}setUserCompDetails(e){e.newAgStackInstance().then(e=>this.afterHeaderCompCreated(e))}afterHeaderCompCreated(e){const t=()=>this.destroyBean(e);if(!this.isAlive())return void t();const o=this.getGui(),i=e.getGui();this.eHeaderCompWrapper.appendChild(i),this.addDestroyFunc(t),this.headerGroupComp=e,this.ctrl.setDragSource(o)}},Fh={tag:"div",cls:"ag-header-cell ag-floating-filter",role:"gridcell",children:[{tag:"div",ref:"eFloatingFilterBody",role:"presentation"},{tag:"div",ref:"eButtonWrapper",cls:"ag-floating-filter-button ag-hidden",role:"presentation",children:[{tag:"button",ref:"eButtonShowMainFilter",cls:"ag-button ag-floating-filter-button-button",attrs:{type:"button",tabindex:"-1"}}]}]},Ph=class extends yh{constructor(e){super(Fh,e),this.eFloatingFilterBody=ds,this.eButtonWrapper=ds,this.eButtonShowMainFilter=ds}postConstruct(){const e=this.getGui(),t={toggleCss:(e,t)=>this.toggleCss(e,t),setUserStyles:t=>Te(e,t),addOrRemoveBodyCssClass:(e,t)=>this.eFloatingFilterBody.classList.toggle(e,t),setButtonWrapperDisplayed:e=>he(this.eButtonWrapper,e),setCompDetails:e=>this.setCompDetails(e),getFloatingFilterComp:()=>this.compPromise,setWidth:t=>e.style.width=t,setMenuIcon:e=>this.eButtonShowMainFilter.appendChild(e)};this.ctrl.setComp(t,e,this.eButtonShowMainFilter,this.eFloatingFilterBody,void 0)}setCompDetails(e){if(!e)return this.destroyFloatingFilterComp(),void(this.compPromise=null);this.compPromise=e.newAgStackInstance(),this.compPromise.then(e=>this.afterCompCreated(e))}destroy(){this.destroyFloatingFilterComp(),super.destroy()}destroyFloatingFilterComp(){this.floatingFilterComp?.getGui().remove(),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp)}afterCompCreated(e){e&&(this.isAlive()?(this.destroyFloatingFilterComp(),this.floatingFilterComp=e,this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached?.()):this.destroyBean(e))}},Dh=class extends ps{constructor(e){super({tag:"div",cls:e.headerRowClass,role:"row"}),this.ctrl=e,this.headerComps={}}postConstruct(){const e=this.getGui();e.setAttribute("tabindex",String(this.gos.get("tabIndex"))),K(this.getGui(),this.ctrl.getAriaRowIndex());const t={setHeight:e=>this.getGui().style.height=e,setTop:e=>this.getGui().style.top=e,setHeaderCtrls:(e,t)=>this.setHeaderCtrls(e,t),setWidth:e=>this.getGui().style.width=e,setRowIndex:e=>K(this.getGui(),e)};this.ctrl.setComp(t,void 0)}destroy(){this.setHeaderCtrls([],!1),super.destroy()}setHeaderCtrls(e,t){if(!this.isAlive())return;const o=this.headerComps;this.headerComps={};for(const i of e){const e=i.instanceId;let t=o[e];delete o[e],null==t&&(t=this.createHeaderComp(i),this.getGui().appendChild(t.getGui())),this.headerComps[e]=t}if(Object.values(o).forEach(e=>{e.getGui().remove(),this.destroyBean(e)}),t){const e=Object.values(this.headerComps);e.sort((e,t)=>{const o=e.getCtrl().column.getLeft(),i=t.getCtrl().column.getLeft();return o-i});const t=e.map(e=>e.getGui());Me(this.getGui(),t)}}createHeaderComp(e){let t;switch(this.ctrl.type){case"group":t=new Eh(e);break;case"filter":t=new Ph(e);break;default:t=new Rh(e);break}return this.createBean(t),t.setParentComponent(this),t}},kh=class extends Ct{constructor(e,t,o,i){super(),this.columnOrGroup=e,this.eCell=t,this.colsSpanning=i,this.columnOrGroup=e,this.ariaEl=t.querySelector("[role=columnheader]")||t,this.beans=o}setColsSpanning(e){this.colsSpanning=e,this.onLeftChanged()}getColumnOrGroup(){const{beans:e,colsSpanning:t}=this;return e.gos.get("enableRtl")&&t?tn(t):this.columnOrGroup}postConstruct(){const e=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:e}),this.setLeftFirstTime(),this.addManagedEventListeners({displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}setLeftFirstTime(){const{gos:e,colAnimation:t}=this.beans,o=e.get("suppressColumnMoveAnimation"),i=s(this.columnOrGroup.getOldLeft()),n=t?.isActive()&&i&&!o;n?this.animateInLeft():this.onLeftChanged()}animateInLeft(){const e=this.getColumnOrGroup(),t=this.modifyLeftForPrintLayout(e,e.getOldLeft()),o=this.modifyLeftForPrintLayout(e,e.getLeft());this.setLeft(t),this.actualLeft=o,this.beans.colAnimation.executeNextVMTurn(()=>{this.actualLeft===o&&this.setLeft(o)})}onLeftChanged(){const e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(e,t){const{gos:o,visibleCols:i}=this.beans,n=Lo(o,"print");if(!n)return t;if("left"===e.getPinned())return t;const s=i.getColsLeftWidth();if("right"===e.getPinned()){const e=i.bodyWidth;return s+e+t}return s+t}setLeft(e){if(s(e)&&(this.eCell.style.left=`${e}px`),Id(this.columnOrGroup)){const e=this.columnOrGroup.getLeafColumns();if(!e.length)return;e.length>1&&Z(this.ariaEl,e.length)}}},Mh=0,Ah="headerCtrl",Th=class extends Ct{constructor(e,t){super(),this.column=e,this.rowCtrl=t,this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.reAttemptToFocus=!1,this.instanceId=e.getUniqueId()+"-"+Mh++}postConstruct(){const e=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],e),this.addManagedEventListeners({overlayExclusiveChanged:e})}setComp(e,t,o,i,n){t.setAttribute("col-id",this.column.colIdSanitised),this.wireComp(e,t,o,i,n),this.reAttemptToFocus&&(this.reAttemptToFocus=!1,this.focus(this.lastFocusEvent??void 0))}shouldStopEventPropagation(e){const{headerRowIndex:t,column:o}=this.beans.focusSvc.focusedHeader,i=o.getDefinition(),n=i?.suppressHeaderKeyboardEvent;if(!s(n))return!1;const r=Ti(this.gos,{colDef:i,column:o,headerRowIndex:t,event:e});return!!n(r)}getWrapperHasFocus(){const e=m(this.beans);return e===this.eGui}setGui(e,t){this.eGui=e,this.addDomData(t),t.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),t.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)}),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}refreshHeaderStyles(){const e=this.column.getDefinition();if(!e)return;const{headerStyle:t}=e;let o;if("function"===typeof t){const e=this.getHeaderClassParams();o=t(e)}else o=t;o&&this.comp.setUserStyles(o)}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(e){const{wrapperElement:t,checkMeasuringCallback:o,compBean:i}=e,{beans:n}=this,s=e=>{if(!this.isAlive()||!i.isAlive())return;const{paddingTop:o,paddingBottom:r,borderBottomWidth:a,borderTopWidth:l}=me(this.eGui),d=o+r+a+l,c=t.offsetHeight,u=c+d;if(e<5){const o=v(n),i=!o?.contains(t),r=0==u;if(i||r)return void Rt(()=>s(e+1),"raf",n)}this.setColHeaderHeight(this.column,u)};let r,a=!1;const l=()=>{const e=this.column.isAutoHeaderHeight();e&&!a&&d(),!e&&a&&c()},d=()=>{a=!0,this.comp.toggleCss("ag-header-cell-auto-height",!0),s(0),r=We(this.beans,t,()=>s(0))},c=()=>{a=!1,r&&r(),this.comp.toggleCss("ag-header-cell-auto-height",!1),r=void 0};l(),i.addDestroyFunc(()=>c()),i.addManagedListeners(this.column,{widthChanged:()=>a&&s(0)}),i.addManagedEventListeners({sortChanged:()=>{a&&window.setTimeout(()=>s(0))}}),o&&o(l)}onDisplayedColumnsChanged(){const{comp:e,column:t,beans:o,eGui:i}=this;e&&t&&i&&(Nu(e,t,o.visibleCols),Y(i,o.visibleCols.getAriaColIndex(t)))}addResizeAndMoveKeyboardListeners(e){e.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){const e=sh(this.beans);this.eGui&&ze(this.eGui,"tabindex",e?null:"-1")}onGuiKeyDown(e){const t=m(this.beans),o=e.key===lr.LEFT||e.key===lr.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),t!==this.eGui||!e.shiftKey&&!e.altKey&&!e.ctrlKey&&!e.metaKey)return;(this.isResizing||o)&&(e.preventDefault(),e.stopImmediatePropagation());const i=(e.ctrlKey||e.metaKey)&&fr(e)===lr.C;if(i)return this.beans.clipboardSvc?.copyToClipboard();if(!o)return;const n=e.key===lr.LEFT!==this.gos.get("enableRtl"),s=n?"left":"right";if(e.altKey){this.isResizing=!0,this.resizeMultiplier+=1;const t=this.getViewportAdjustedResizeDiff(e);this.resizeHeader(t,e.shiftKey),this.resizeFeature?.toggleColumnResizing(!0)}else this.moveHeader(s)}moveHeader(e){this.beans.colMoves?.moveHeader(e,this.eGui,this.column,this.rowCtrl.pinned,this)}getViewportAdjustedResizeDiff(e){const t=this.getResizeDiff(e),{pinnedCols:o}=this.beans;return o?o.getHeaderResizeDiff(t,this.column):t}getResizeDiff(e){const{gos:t,column:o}=this;let i=e.key===lr.LEFT!==t.get("enableRtl");const n=o.getPinned(),s=t.get("enableRtl");return n&&s!==("right"===n)&&(i=!i),(i?-1:1)*this.resizeMultiplier}onGuiKeyUp(){this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=window.setTimeout(()=>{this.resizeFeature?.toggleColumnResizing(!1)},150))}handleKeyDown(e){const t=this.getWrapperHasFocus();switch(e.key){case lr.PAGE_DOWN:case lr.PAGE_UP:case lr.PAGE_HOME:case lr.PAGE_END:t&&e.preventDefault()}}addDomData(e){const t=Ah,{eGui:o,gos:i}=this;Uo(i,o,t,this),e.addDestroyFunc(()=>Uo(i,o,t,null))}focus(e){if(!this.isAlive())return!1;const{eGui:t}=this;return t?(this.lastFocusEvent=e||null,t.focus()):this.reAttemptToFocus=!0,!0}focusThis(){this.beans.focusSvc.focusedHeader={headerRowIndex:this.rowCtrl.rowIndex,column:this.column}}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop?.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(e,t,o){const i=e??t,{menuSvc:n,gos:s}=this.beans;s.get("preventDefaultOnContextMenu")&&i.preventDefault(),n?.isHeaderContextMenuEnabled(o)&&n.showHeaderContextMenu(o,e,t),this.dispatchColumnMouseEvent("columnHeaderContextMenu",o)}dispatchColumnMouseEvent(e,t){this.eventSvc.dispatchEvent({type:e,column:t})}setColHeaderHeight(e,t){if(!e.setAutoHeaderHeight(t))return;const{eventSvc:o}=this;e.isColumn?o.dispatchEvent({type:"columnHeaderHeightChanged",column:e,columns:[e],source:"autosizeColumnHeaderHeight"}):o.dispatchEvent({type:"columnGroupHeaderHeightChanged",columnGroup:e,source:"autosizeColumnGroupHeaderHeight"})}clearComponent(){this.removeDragSource(),this.resizeFeature=null,this.comp=null,this.eGui=null}destroy(){super.destroy(),this.column=null,this.lastFocusEvent=null,this.rowCtrl=null}},Ih=class extends Th{constructor(){super(...arguments),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map}wireComp(e,t,o,i,n){this.comp=e;const{rowCtrl:s,column:r,beans:a}=this,{colResize:l,context:d,colHover:c,rangeSvc:u}=a,h=ls(this,d,n);this.setGui(t,h),this.updateState(),this.setupWidth(h),this.setupMovingCss(h),this.setupMenuClass(h),this.setupSortableClass(h),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:i,checkMeasuringCallback:e=>this.setRefreshFunction("measuring",e),compBean:h}),this.addColumnHoverListener(h),this.setupFilterClass(h),this.setupStylesFromColDef(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(h),this.setupSelectAll(h),this.setupUserComp(),this.refreshAria(),l?this.resizeFeature=h.createManagedBean(l.createResizeFeature(s.pinned,r,o,e,this)):he(o,!1),c?.createHoverFeature(h,[r],t),u?.createRangeHighlightFeature(h,r,e),h.createManagedBean(new kh(r,t,a)),h.createManagedBean(new Ec(t,{shouldStopEventPropagation:e=>this.shouldStopEventPropagation(e),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(h),h.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader","enableAdvancedFilter"],()=>this.refresh()),h.addManagedListeners(r,{colDefChanged:()=>this.refresh(),formulaRefChanged:()=>this.refresh(),headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});const g=()=>this.checkDisplayName();h.addManagedEventListeners({columnValueChanged:g,columnRowGroupChanged:g,columnPivotChanged:g,headerHeightChanged:this.onHeaderHeightChanged.bind(this)}),h.addDestroyFunc(()=>{this.refreshFunctions={},this.selectAllFeature=null,this.dragSourceElement=void 0,this.userCompDetails=null,this.userHeaderClasses.clear(),this.ariaDescriptionProperties.clear(),this.clearComponent()})}resizeHeader(e,t){this.beans.colResize?.resizeHeader(this.column,e,t)}getHeaderClassParams(){const{column:e,beans:t}=this,o=e.colDef;return Ti(t.gos,{colDef:o,column:e,floatingFilter:!1})}setupUserComp(){const e=this.lookupUserCompDetails();e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)}lookupUserCompDetails(){const e=this.createParams(),t=this.column.getColDef();return Ws(this.beans.userCompFactory,t,e)}createParams(){const{menuSvc:e,sortSvc:t,colFilter:o,gos:i}=this.beans,n=Ti(i,{column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!e?.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!!o&&(!this.openFilterEnabled||Pi(this.gos)),showColumnMenu:(t,o)=>{e?.showColumnMenu({column:this.column,buttonElement:t,positionBy:"button",onClosedCallback:o})},showColumnMenuAfterMouseClick:(t,o)=>{e?.showColumnMenu({column:this.column,mouseEvent:t,positionBy:"mouse",onClosedCallback:o})},showFilter:t=>{e?.showFilterMenu({column:this.column,buttonElement:t,containerType:"columnFilter",positionBy:"button"})},progressSort:e=>{t?.progressSort(this.column,!!e,"uiColumnSorted")},setSort:(e,o)=>{t?.setSortForColumn(this.column,Wi(e),!!o,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(e,t)=>{i.assertModuleRegistered("Tooltip",3),this.setupTooltip(e,t)}});return n}setupSelectAll(e){const{selectionSvc:t}=this.beans;t&&(this.selectAllFeature=e.createOptionalManagedBean(t.createSelectAllFeature(this.column)),this.selectAllFeature?.setComp(this),e.addManagedPropertyListener("rowSelection",()=>{const o=t.createSelectAllFeature(this.column);o&&!this.selectAllFeature?(this.selectAllFeature=e.createManagedBean(o),this.selectAllFeature?.setComp(this),this.comp.refreshSelectAllGui()):this.selectAllFeature&&!o&&(this.comp.removeSelectAllGui(),this.selectAllFeature=this.destroyBean(this.selectAllFeature))}))}getSelectAllGui(){return this.selectAllFeature?.getCheckboxGui()}handleKeyDown(e){super.handleKeyDown(e),e.key===lr.SPACE?this.selectAllFeature?.onSpaceKeyDown(e):e.key===lr.ENTER?this.onEnterKeyDown(e):e.key===lr.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)}onEnterKeyDown(e){const{column:t,gos:o,sortable:i,beans:n}=this;let s=!1;(e.ctrlKey||e.metaKey)&&(s=this.showMenuOnKeyPress(e,!0)),s||(!e.altKey&&gi(o)?n.rangeSvc?.handleColumnSelection(t,e):i&&n.sortSvc?.progressSort(t,e.shiftKey,"uiColumnSorted"))}showMenuOnKeyPress(e,t){const o=this.comp.getUserCompInstance();return!!Lh(o)&&(!!o.onMenuKeyboardShortcut(t)&&(e.preventDefault(),!0))}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription()),Gr()&&this.setActiveHeader(!0)}onFocusOut(e){this.eGui.contains(e.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderTooltip(this.tooltipFeature,this,e,t)}setupStylesFromColDef(){this.setRefreshFunction("headerStyles",this.refreshHeaderStyles.bind(this)),this.refreshHeaderStyles()}setupClassesFromColDef(){const e=()=>{const e=this.column.getColDef(),t=Vu(e,this.gos,this.column,null),o=this.userHeaderClasses;this.userHeaderClasses=new Set(t);for(const i of t)o.has(i)?o.delete(i):this.comp.toggleCss(i,!0);for(const i of o)this.comp.toggleCss(i,!1)};this.setRefreshFunction("headerClasses",e),e()}setDragSource(e){this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null)}updateState(){const{menuSvc:e}=this.beans;this.menuEnabled=!!e?.isColumnMenuInHeaderEnabled(this.column),this.openFilterEnabled=!!e?.isFilterMenuInHeaderEnabled(this.column),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}setRefreshFunction(e,t){this.refreshFunctions[e]=t}refresh(){this.updateState(),this.refreshHeaderComp(),this.refreshAria();for(const e of Object.values(this.refreshFunctions))e()}refreshHeaderComp(){const e=this.lookupUserCompDetails();if(!e)return;const t=this.comp.getUserCompInstance(),o=null!=t&&this.userCompDetails.componentClass==e.componentClass,i=!!o&&this.attemptHeaderCompRefresh(e.params);i?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)}attemptHeaderCompRefresh(e){const t=this.comp.getUserCompInstance();if(!t)return!1;if(!t.refresh)return!1;const o=t.refresh(e);return o}calculateDisplayName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"header",!0)}checkDisplayName(){this.displayName!==this.calculateDisplayName()&&this.refresh()}workOutDraggable(){const e=this.column.getColDef(),t=this.gos.get("suppressMovableColumns"),o=!t&&!e.suppressMovable&&!e.lockPosition;return!!o||!!e.enableRowGroup||!!e.enablePivot}setupWidth(e){const t=()=>{const e=this.column.getActualWidth();this.comp.setWidth(`${e}px`)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupMovingCss(e){const t=()=>{this.comp.toggleCss("ag-header-cell-moving",this.column.isMoving())};e.addManagedListeners(this.column,{movingChanged:t}),t()}setupMenuClass(e){const t=()=>{this.comp?.toggleCss("ag-column-menu-visible",this.column.isMenuVisible())};e.addManagedListeners(this.column,{menuVisibleChanged:t}),t()}setupSortableClass(e){const t=()=>{this.comp.toggleCss("ag-header-cell-sortable",!!this.sortable)};t(),this.setRefreshFunction("updateSortable",t),e.addManagedEventListeners({sortChanged:this.refreshAriaSort.bind(this)})}setupFilterClass(e){const t=()=>{const e=this.column.isFilterActive();this.comp.toggleCss("ag-header-cell-filtered",e),this.refreshAria()};e.addManagedListeners(this.column,{filterActiveChanged:t}),t()}setupWrapTextClass(){const e=()=>{const e=!!this.column.getColDef().wrapHeaderText;this.comp.toggleCss("ag-header-cell-wrap-text",e)};e(),this.setRefreshFunction("wrapText",e)}onHeaderHighlightChanged(){const e=this.column.getHighlighted(),t=0===e,o=1===e;this.comp.toggleCss("ag-header-highlight-before",t),this.comp.toggleCss("ag-header-highlight-after",o)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){const{eGui:e,column:t,comp:o,beans:i}=this,n=uh(this.beans),s=0===n.reduce((e,t)=>e+t,0);if(o.toggleCss("ag-header-parent-hidden",s),!t.isSpanHeaderHeight())return e.style.removeProperty("top"),e.style.removeProperty("height"),o.toggleCss("ag-header-span-height",!1),void o.toggleCss("ag-header-span-total",!1);const{numberOfParents:r,isSpanningTotal:a}=this.column.getColumnGroupPaddingInfo();o.toggleCss("ag-header-span-height",r>0);const l=gh(i);if(0===r)return o.toggleCss("ag-header-span-total",!1),e.style.setProperty("top","0px"),void e.style.setProperty("height",`${l}px`);o.toggleCss("ag-header-span-total",a);const d=(this.column.getFirstRealParent()?.getLevel()??-1)+1,c=n.length-d;let u=0;for(let h=0;h<c;h++)u+=n[n.length-1-h];e.style.setProperty("top",-u+"px"),e.style.setProperty("height",`${l+u}px`)}refreshAriaSort(){let e=null;const{beans:t,column:o,comp:i,sortable:n}=this;if(n){const n=this.getLocaleTextFunc(),s=t.sortSvc?.getDisplaySortForColumn(o)??null;i.setAriaSort(D(s)),e=n("ariaSortableColumn","Press ENTER to sort")}else i.setAriaSort();this.setAriaDescriptionProperty("sort",e)}refreshAriaMenu(){let e=null;if(this.menuEnabled){const t=this.getLocaleTextFunc();e=t("ariaMenuColumn","Press ALT DOWN to open column menu")}this.setAriaDescriptionProperty("menu",e)}refreshAriaFilterButton(){let e=null;const{openFilterEnabled:t,gos:o}=this;if(t&&!Pi(o)){const t=this.getLocaleTextFunc();e=t("ariaFilterColumn","Press CTRL ENTER to open filter")}this.setAriaDescriptionProperty("filterButton",e)}refreshAriaFiltered(){let e=null;if(this.column.isFilterActive()){const t=this.getLocaleTextFunc();e=t("ariaColumnFiltered","Column Filtered")}this.setAriaDescriptionProperty("filter",e)}refreshAriaCellSelection(){let e=null;const{gos:t,column:o,beans:i}=this,n=gi(t);if(n){const t=this.getLocaleTextFunc(),n=i.rangeSvc?.isColumnInAnyRange(o);e=t("ariaColumnCellSelection",`Press CTRL+SPACE to ${n?"de":""}select all visible cells in this column`)}this.setAriaDescriptionProperty("cellSelection",e)}setAriaDescriptionProperty(e,t){const o=this.ariaDescriptionProperties;null!=t?o.set(e,t):o.delete(e)}announceAriaDescription(){const{beans:e,eGui:t,ariaDescriptionProperties:o}=this;if(!t.contains(m(e)))return;const i=Array.from(o.keys()).sort((e,t)=>"filter"===e?-1:t.charCodeAt(0)-e.charCodeAt(0)).map(e=>o.get(e)).join(". ");e.ariaAnnounce?.announceValue(i,"columnHeader")}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered(),this.refreshAriaCellSelection()}addColumnHoverListener(e){this.beans.colHover?.addHeaderColumnHoverListener(e,this.comp,this.column)}addActiveHeaderMouseListeners(e){const t=e=>this.handleMouseOverChange("mouseenter"===e.type),o=()=>{this.setActiveHeader(!0),this.dispatchColumnMouseEvent("columnHeaderClicked",this.column)},i=e=>this.handleContextMenuMouseEvent(e,void 0,this.column);e.addManagedListeners(this.eGui,{mouseenter:t,mouseleave:t,click:o,contextmenu:i})}handleMouseOverChange(e){this.setActiveHeader(e),this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column})}setActiveHeader(e){this.comp.toggleCss("ag-header-active",e)}getAnchorElementForMenu(e){const t=this.comp.getUserCompInstance();return Lh(t)?t.getAnchorElementForMenu(e):this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function Lh(e){return"function"===typeof e?.getAnchorElementForMenu&&"function"===typeof e.onMenuKeyboardShortcut}var Bh=0,Oh=class extends Ct{constructor(e,t,o){super(),this.rowIndex=e,this.pinned=t,this.type=o,this.instanceId=Bh++,this.comp=null,this.allCtrls=[];let i="ag-header-row-column";"group"===o?i="ag-header-row-group":"filter"===o&&(i="ag-header-row-filter"),this.headerRowClass=`ag-header-row ${i}`}setRowIndex(e){this.rowIndex=e,this.comp?.setRowIndex(this.getAriaRowIndex()),this.onRowHeightChanged()}postConstruct(){this.isPrintLayout=Lo(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return!!this.comp&&this.allCtrls.every(e=>null!=e.eGui)}setComp(e,t,o=!0){this.comp=e,t=ls(this,this.beans.context,t),o&&(this.setRowIndex(this.rowIndex),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(t)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(e){const t=this.onRowHeightChanged.bind(this),o=this.onDisplayedColumnsChanged.bind(this);e.addManagedEventListeners({columnResized:this.setWidth.bind(this),displayedColumnsChanged:o,virtualColumnsChanged:e=>this.onVirtualColumnsChanged(e.afterScroll),columnGroupHeaderHeightChanged:t,columnHeaderHeightChanged:t,stylesChanged:t,advancedFilterEnabledChanged:t}),e.addManagedPropertyListener("domLayout",o),e.addManagedPropertyListener("ensureDomOrder",e=>this.isEnsureDomOrder=e.currentValue),e.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],t)}onDisplayedColumnsChanged(){this.isPrintLayout=Lo(this.gos,"print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}setWidth(){if(!this.comp)return;const e=this.getWidthForRow();this.comp.setWidth(`${e}px`)}getWidthForRow(){const{visibleCols:e}=this.beans;if(this.isPrintLayout){const t=null!=this.pinned;return t?0:e.getContainerWidth("right")+e.getContainerWidth("left")+e.getContainerWidth(null)}return e.getContainerWidth(this.pinned)}onRowHeightChanged(){if(!this.comp)return;const{topOffset:e,rowHeight:t}=this.getTopAndHeight();this.comp.setTop(e+"px"),this.comp.setHeight(t+"px")}getTopAndHeight(){let e=0;const t=uh(this.beans);for(let n=0;n<t.length;n++){if(n===this.rowIndex&&"group"===this.type)return{topOffset:e,rowHeight:t[n]};e+=t[n]}const o=gh(this.beans);if("column"===this.type)return{topOffset:e,rowHeight:o};e+=o;const i=fh(this.beans);return{topOffset:e,rowHeight:i}}onVirtualColumnsChanged(e=!1){if(!this.comp)return;const t=this.getUpdatedHeaderCtrls(),o=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(t,o,e)}getUpdatedHeaderCtrls(){const e=this.ctrlsById;this.ctrlsById=new Map;const t=this.getColumnsInViewport();for(const i of t)this.recycleAndCreateHeaderCtrls(i,this.ctrlsById,e);const o=e=>{const{focusSvc:t,visibleCols:o}=this.beans,i=t.isHeaderWrapperFocused(e);if(!i)return!1;const n=o.isVisible(e.column);return n};if(e)for(const[i,n]of e){const e=o(n);e?this.ctrlsById.set(i,n):this.destroyBean(n)}return this.allCtrls=Array.from(this.ctrlsById.values()),this.allCtrls}getHeaderCellCtrls(){return this.allCtrls}recycleAndCreateHeaderCtrls(e,t,o){if(e.isEmptyGroup())return;const i=e.getUniqueId();let n;o&&(n=o.get(i),o.delete(i));const s=n&&n.column!=e;if(s&&(this.destroyBean(n),n=void 0),null==n)switch(this.type){case"filter":n=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",!0,e,this));break;case"group":n=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",!0,e,this));break;default:n=this.createBean(new Ih(e,this));break}t.set(i,n)}getColumnsInViewport(){if(!this.isPrintLayout)return this.getComponentsToRender();if(this.pinned)return[];const e=[];for(const t of["left",null,"right"])e.push(...this.getComponentsToRender(t));return e}getComponentsToRender(e=this.pinned){return"group"===this.type?this.beans.colViewport.getHeadersToRender(e,this.rowIndex):this.beans.colViewport.getColumnHeadersToRender(e)}focusHeader(e,t){const o=this.allCtrls.find(t=>t.column==e);if(!o)return!1;const i=o.focus(t);return i}destroy(){this.allCtrls=this.destroyBeans(this.allCtrls),this.ctrlsById=void 0,this.comp=null,super.destroy()}},Hh=class extends Ct{constructor(e){super(),this.pinned=e,this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[]}setComp(e,t){this.comp=e,this.eViewport=t;const{pinnedCols:o,ctrlsSvc:i,colModel:n,colMoves:s}=this.beans;this.setupCenterWidth(),o?.setupHeaderPinnedWidth(this),this.setupDragAndDrop(s,this.eViewport);const r=this.refresh.bind(this,!0);this.addManagedEventListeners({displayedColumnsChanged:r,advancedFilterEnabledChanged:r});const a=`${"string"===typeof this.pinned?this.pinned:"center"}Header`;i.register(a,this),n.ready&&this.refresh()}getAllCtrls(){const e=[...this.groupsRowCtrls];return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e}refresh(e=!1){const{focusSvc:t,filterManager:o,visibleCols:i}=this.beans;let n=0;const s=t.getFocusHeaderToUseAfterRefresh(),r=()=>{const t=i.headerGroupRowCount;n=t,e||(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls));const o=this.groupsRowCtrls.length;if(o!==t)if(o>t){for(let e=t;e<o;e++)this.destroyBean(this.groupsRowCtrls[e]);this.groupsRowCtrls.length=t}else for(let e=o;e<t;e++){const t=this.createBean(new Oh(e,this.pinned,"group"));this.groupsRowCtrls.push(t)}},a=()=>{const t=n++;this.hidden?this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl):null!=this.columnsRowCtrl&&e?this.columnsRowCtrl.rowIndex!==t&&this.columnsRowCtrl.setRowIndex(t):(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.columnsRowCtrl=this.createBean(new Oh(t,this.pinned,"column")))},l=()=>{this.includeFloatingFilter=!!o?.hasFloatingFilters()&&!this.hidden;const t=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter)return void t();e||t();const i=n++;if(this.filtersRowCtrl){const e=this.filtersRowCtrl.rowIndex!==i;e&&this.filtersRowCtrl.setRowIndex(i)}else this.filtersRowCtrl=this.createBean(new Oh(i,this.pinned,"filter"))},d=this.getAllCtrls();r(),a(),l();const c=this.getAllCtrls();this.comp.setCtrls(c),this.restoreFocusOnHeader(t,s),d.length!==c.length&&this.beans.eventSvc.dispatchEvent({type:"headerRowsChanged"})}getHeaderCtrlForColumn(e){const t=t=>t?.getHeaderCellCtrls().find(t=>t.column===e);if(Vi(e))return t(this.columnsRowCtrl);if(0!==this.groupsRowCtrls.length)for(let o=0;o<this.groupsRowCtrls.length;o++){const e=t(this.groupsRowCtrls[o]);if(e)return e}}getHtmlElementForColumnHeader(e){return this.getHeaderCtrlForColumn(e)?.eGui??null}getRowType(e){return this.getAllCtrls()[e]?.type}focusHeader(e,t,o){const i=this.getAllCtrls(),n=i[e];return!!n&&n.focusHeader(t,o)}getGroupRowCount(){return this.groupsRowCtrls.length}getGroupRowCtrlAtIndex(e){return this.groupsRowCtrls[e]}getRowCount(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)}setHorizontalScroll(e){this.comp.setViewportScrollLeft(e)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}destroy(){this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl),this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls),super.destroy()}setupDragAndDrop(e,t){const o=e?.createBodyDropTarget(this.pinned,t);o&&this.createManagedBean(o)}restoreFocusOnHeader(e,t){if(!t)return;const{column:o}=t;o.getPinned()==this.pinned&&e.focusHeaderPosition({headerPosition:t,scroll:!1})}setupCenterWidth(){null==this.pinned&&this.createManagedBean(new Vc(e=>this.comp.setCenterWidth(`${e}px`),!0))}},Vh=class extends Ct{constructor(){super(...arguments),this.beanName="menuSvc"}postConstruct(){const{enterpriseMenuFactory:e,filterMenuFactory:t}=this.beans;this.activeMenuFactory=e??t}showColumnMenu(e){this.showColumnMenuCommon(this.activeMenuFactory,e,"columnMenu")}showFilterMenu(e){this.showColumnMenuCommon(Nh(this.beans),e,e.containerType,!0)}showHeaderContextMenu(e,t,o){this.activeMenuFactory?.showMenuAfterContextMenuEvent(e,t,o)}hidePopupMenu(){this.beans.contextMenuSvc?.hideActiveMenu(),this.activeMenuFactory?.hideActiveMenu()}hideFilterMenu(){Nh(this.beans)?.hideActiveMenu()}isColumnMenuInHeaderEnabled(e){const{suppressHeaderMenuButton:t}=e.getColDef();return!t&&!!this.activeMenuFactory?.isMenuEnabled(e)&&(Pi(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){return!e.getColDef().suppressHeaderFilterButton&&!!this.beans.filterManager?.isFilterAllowed(e)}isHeaderContextMenuEnabled(e){const t=e&&Vi(e)?e.getColDef():e?.getColGroupDef();return!t?.suppressHeaderContextMenu&&"new"===this.gos.get("columnMenu")}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){const e=!this.isSuppressMenuHide(),t=Pr()&&e;return!t}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!Pi(this.gos)&&!this.isFloatingFilterButtonDisplayed(e)}isFilterMenuItemEnabled(e){return!!this.beans.filterManager?.isFilterAllowed(e)&&!Pi(this.gos)&&!this.isFilterMenuInHeaderEnabled(e)&&!this.isFloatingFilterButtonDisplayed(e)}isFloatingFilterButtonEnabled(e){return!e.getColDef().suppressFloatingFilterButton}isFloatingFilterButtonDisplayed(e){return!!e.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(e)}isSuppressMenuHide(){const e=this.gos,t=e.get("suppressMenuHide");return Pi(e)?!!e.exists("suppressMenuHide")&&t:t}showColumnMenuCommon(e,t,o,i){const{positionBy:n,onClosedCallback:s}=t,r=t.column;if("button"===n){const{buttonElement:n}=t;e?.showMenuAfterButtonClick(r,n,o,s,i)}else if("mouse"===n){const{mouseEvent:n}=t;e?.showMenuAfterMouseEvent(r,n,o,s,i)}else if(r){const t=this.beans,n=t.ctrlsSvc;n.getScrollFeature().ensureColumnVisible(r,"auto"),_e(t,()=>{const t=n.getHeaderRowContainerCtrl(r.getPinned())?.getHeaderCtrlForColumn(r);t&&e?.showMenuAfterButtonClick(r,t.getAnchorElementForMenu(i),o,s,i)})}}};function Gh(e,t,o){e.menuVisible!==t&&(e.menuVisible=t,e.dispatchColEvent("menuVisibleChanged",o))}function Nh(e){const{enterpriseMenuFactory:t,filterMenuFactory:o,gos:i}=e;return t&&Pi(i)?t:o}var zh=class extends Rr{constructor(){super(...arguments),this.errorMessages=null}init(e){this.params=e,this.initialiseEditor(e),this.eEditor.onValueChange(()=>e.validate())}destroy(){this.errorMessages=null}},Wh=class extends ps{constructor(){super()}};function _h(e,t,o){const i=Uh(e,t,o);if(i){const{className:e}=i;if("string"===typeof e&&e.includes("ag-icon")||"object"===typeof e&&e["ag-icon"])return i}const n=Zd({tag:"span"});return n.appendChild(i),n}function Uh(e,t,o){let i=null;"smallDown"===e?xo(262):"smallLeft"===e?xo(263):"smallRight"===e&&xo(264);const n=o?.getColDef().icons;if(n&&(i=n[e]),t.gos&&!i){const o=t.gos.get("icons");o&&(i=o[e])}if(i){let t;if("function"===typeof i)t=i();else{if("string"!==typeof i)return void xo(38,{iconName:e});t=i}return"string"===typeof t?De(t):Ne(t)?t:void xo(133,{iconName:e})}{const o=t.registry.getIcon(e);return o||t.validation?.validateIcon(e),Zd({tag:"span",cls:`ag-icon ag-icon-${o??e}`,role:"presentation",attrs:{unselectable:"on"}})}}var $h={tag:"div",cls:"ag-overlay-loading-center",children:[{tag:"span",ref:"eLoadingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eLoadingText",cls:"ag-loading-text"}]},qh=class extends Wh{constructor(){super(...arguments),this.eLoadingIcon=ds,this.eLoadingText=ds}init(e){const{beans:t,gos:o}=this,i=n(o.get("overlayLoadingTemplate")?.trim());if(this.setTemplate(i??$h),!i){const o=Uh("overlayLoading",t,null);o&&this.eLoadingIcon.appendChild(o);const i=e.loading?.overlayText??this.getLocaleTextFunc()("loadingOoo","Loading...");this.eLoadingText.textContent=i,t.ariaAnnounce.announceValue(i,"overlay")}}},jh={tag:"div",cls:"ag-overlay-exporting-center",children:[{tag:"span",ref:"eExportingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eExportingText",cls:"ag-exporting-text"}]},Kh=class extends Wh{constructor(){super(...arguments),this.eExportingIcon=ds,this.eExportingText=ds}init(e){const{beans:t}=this;this.setTemplate(jh);const o=Uh("overlayExporting",t,null);o&&this.eExportingIcon.appendChild(o);const i=e.exporting?.overlayText??this.getLocaleTextFunc()("exportingOoo","Exporting...");this.eExportingText.textContent=i,t.ariaAnnounce.announceValue(i,"overlay")}},Qh={tag:"span",cls:"ag-overlay-no-rows-center"},Xh=class extends Wh{init(e){const{beans:t,gos:o}=this,i=n(o.get("overlayNoRowsTemplate")?.trim());if(this.setTemplate(i??Qh),!i){const o=e.noRows?.overlayText??this.getLocaleTextFunc()("noRowsToShow","No Rows To Show");this.getGui().textContent=o,t.ariaAnnounce.announceValue(o,"overlay")}}},Yh={tag:"span",cls:"ag-overlay-no-matching-rows-center"},Zh=class extends Wh{init(e){const{beans:t}=this;this.setTemplate(Yh);const o=e.noMatchingRows?.overlayText??this.getLocaleTextFunc()("noMatchingRows","No Matching Rows");this.getGui().textContent=o,t.ariaAnnounce.announceValue(o,"overlay")}},Jh=".ag-dnd-ghost{align-items:center;background-color:var(--ag-drag-and-drop-image-background-color);border:var(--ag-drag-and-drop-image-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-drag-and-drop-image-shadow);color:var(--ag-text-color);cursor:move;display:flex;font-weight:500;gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height);overflow:hidden;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);text-overflow:ellipsis;transform:translateY(calc(var(--ag-spacing)*2));white-space:nowrap}.ag-dnd-ghost-not-allowed{border:var(--ag-drag-and-drop-image-not-allowed-border)}",eg={tag:"div",children:[{tag:"div",ref:"eGhost",cls:"ag-dnd-ghost ag-unselectable",children:[{tag:"span",ref:"eIcon",cls:"ag-dnd-ghost-icon ag-shake-left-to-right"},{tag:"div",ref:"eLabel",cls:"ag-dnd-ghost-label"}]}]},tg=class extends ps{constructor(){super(),this.dragSource=null,this.eIcon=ds,this.eLabel=ds,this.eGhost=ds,this.registerCSS(Jh)}postConstruct(){const e=e=>_h(e,this.beans,null);this.dropIconMap={pinned:e("columnMovePin"),hide:e("columnMoveHide"),move:e("columnMoveMove"),left:e("columnMoveLeft"),right:e("columnMoveRight"),group:e("columnMoveGroup"),aggregate:e("columnMoveValue"),pivot:e("columnMovePivot"),notAllowed:e("dropNotAllowed")}}init(e){this.dragSource=e.dragSource,this.setTemplate(eg),this.beans.environment.applyThemeClasses(this.eGhost)}destroy(){this.dragSource=null,super.destroy()}setIcon(e,t){const{eGhost:o,eIcon:i,dragSource:n,dropIconMap:s,gos:r}=this;xe(i);let a=null;e||(e=n?.getDefaultIconName?n.getDefaultIconName():"notAllowed"),a=s[e],o.classList.toggle("ag-dnd-ghost-not-allowed","notAllowed"===e),i.classList.toggle("ag-shake-left-to-right",t),a===s["hide"]&&r.get("suppressDragLeaveHidesColumns")||a&&i.appendChild(a)}setLabel(e){this.eLabel.textContent=e}},og=".ag-checkbox-cell{height:100%}",ig={tag:"div",cls:"ag-cell-wrapper ag-checkbox-cell",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},ng=class extends ps{constructor(){super(ig,[Ea]),this.eCheckbox=ds,this.registerCSS(og)}init(e){this.refresh(e);const{eCheckbox:t,beans:o}=this,i=t.getInputElement();i.setAttribute("tabindex","-1"),L(i,"polite"),this.addManagedListeners(i,{click:e=>{if(Sc(e),t.isDisabled())return;const o=t.getValue();this.onCheckboxChanged(o)},dblclick:e=>{Sc(e)}}),this.addManagedElementListeners(e.eGridCell,{keydown:i=>{if(i.key===lr.SPACE&&!t.isDisabled()){e.eGridCell===m(o)&&t.toggle();const n=t.getValue();this.onCheckboxChanged(n),i.preventDefault()}}})}refresh(e){return this.params=e,this.updateCheckbox(e),!0}updateCheckbox(e){let t,o=!0;const{value:i,column:n,node:s}=e;if(s.group&&n)if("boolean"===typeof i)t=i;else{const e=n.getColId();e.startsWith(dn)?t=null==i||""===i?void 0:"true"===i:s.aggData&&void 0!==s.aggData[e]||s.sourceRowIndex>=0?t=i??void 0:o=!1}else t=i??void 0;const{eCheckbox:r}=this;if(!o)return void r.setDisplayed(!1);r.setValue(t);const a=e.disabled??!n?.isCellEditable(s);r.setDisabled(a);const l=this.getLocaleTextFunc(),d=ae(l,t),c=a?d:`${l("ariaToggleCellValue","Press SPACE to toggle cell value")} (${d})`;r.setInputAriaLabel(c)}onCheckboxChanged(e){const{params:t}=this,{column:o,node:i,value:n}=t,{editSvc:s}=this.beans;if(!o)return;const r={rowNode:i,column:o};s?.dispatchCellEvent(r,null,"cellEditingStarted",{value:n});const a=i.setDataValue(o,e,"ui");s?.dispatchCellEvent(r,null,"cellEditingStopped",{oldValue:n,newValue:e,valueChanged:a}),a||this.updateCheckbox(t)}},sg=class{constructor(e,t){this.beans=e,this.floating=t,this.all=new Set,this.visible=new Set,this.order=[],this.queued=new Set}size(){return this.visible.size}add(e){const{all:t,visible:o,order:i}=this;t.has(e)||(t.add(e),o.add(e),i.push(e),this.sort())}delete(e){this.all.delete(e),this.visible.delete(e),this.queued.delete(e.id),sn(this.order,e)}has(e){return this.visible.has(e)}forEach(e){this.order.forEach(e)}getByIndex(e){return this.order[e]}getById(e){for(const t of this.visible)if(t.id==e)return t}clear(){const{all:e,visible:t,order:o,queued:i}=this;e.clear(),i.clear(),t.clear(),o.length=0}sort(){const{sortSvc:e,rowNodeSorter:t,gos:o}=this.beans,i=e?.getSortOptions()??[],n=cg(this.order);if(this.order.sort((e,t)=>(e.pinnedSibling?.rowIndex??0)-(t.pinnedSibling?.rowIndex??0)),this.order=t?.doFullSort(this.order,i)??this.order,!n)return;const s=Qo(o);"bottom"===s||"pinnedBottom"===s?this.order.push(n):this.order.unshift(n)}hide(e){const{all:t,visible:o}=this,i=o.size;return t.forEach(t=>e(t)?o.delete(t):o.add(t)),this.order=Array.from(o),this.sort(),i!=o.size}queue(e){this.queued.add(e)}unqueue(e){this.queued.delete(e)}forEachQueued(e){this.queued.forEach(e)}};function rg(e){if(-1===e.level)return!0;const t=e.parent;return!!t?.childrenAfterSort?.some(t=>t==e)&&rg(t)}function ag(e,t){const{gos:o,rowModel:i,filterManager:n}=e;return Io(o,i)?!i.getRowNode(t.id):n?.isAnyFilterPresent()?!rg(t):!!o.get("pivotMode")&&!t.group}function lg(e){return!!e.footer&&-1===e.level}function dg(e){return!!e.pinnedSibling&&lg(e.pinnedSibling)}function cg(e){const t=e.findIndex(dg);if(t>-1)return e.splice(t,1)?.[0]}var ug=class extends Ct{postConstruct(){const{gos:e,beans:t}=this;this.top=new sg(t,"top"),this.bottom=new sg(t,"bottom");const o=e=>ag(t,e.pinnedSibling),i=()=>{const o=e.get("isRowPinned");o&&e.get("enableRowPinning")&&t.rowModel.forEachNode(e=>this.pinRow(e,o(e)),!0),this.refreshRowPositions(),this.dispatchRowPinnedEvents()};this.addManagedEventListeners({stylesChanged:this.onGridStylesChanges.bind(this),modelUpdated:({keepRenderedRows:e})=>{this.tryToEmptyQueues(),this.pinGrandTotalRow();let t=!1;this.forContainers(e=>{t||(t=e.hide(o))});const i=this.refreshRowPositions();(!e||i||t)&&this.dispatchRowPinnedEvents()},columnRowGroupChanged:()=>{this.forContainers(fg),this.refreshRowPositions()},rowNodeDataChanged:({node:t})=>{const o=e.get("isRowPinnable"),i=o?.(t)??!0;i||this.pinRow(t,null)},firstDataRendered:i}),this.addManagedPropertyListener("pivotMode",()=>{this.forContainers(e=>e.hide(o)),this.dispatchRowPinnedEvents()}),this.addManagedPropertyListener("grandTotalRow",({currentValue:e})=>{this._grandTotalPinned="pinnedBottom"===e?"bottom":"pinnedTop"===e?"top":null}),this.addManagedPropertyListener("isRowPinned",i)}destroy(){this.reset(!1),super.destroy()}reset(e=!0){this.forContainers(e=>{const t=[];e.forEach(e=>t.push(e)),t.forEach(e=>this.pinRow(e,null)),e.clear()}),e&&this.dispatchRowPinnedEvents()}pinRow(e,t,o){if(e.footer&&e.level>-1)return;if(e.footer&&-1===e.level)return this._grandTotalPinned=t,void Cg(this.beans);const i=e.rowPinned??e.pinnedSibling?.rowPinned,n=null!=i&&null!=t&&t!=i;if(n){const i=e.rowPinned?e:e.pinnedSibling,n=e.rowPinned?e.pinnedSibling:e;return this.pinRow(i,null,o),void this.pinRow(n,t,o)}const s=o&&mg(this.beans,e,o);if(s)s.forEach(e=>this.pinRow(e,t));else if(null==t){const o=e.rowPinned?e:e.pinnedSibling,i=this.findPinnedRowNode(o);if(!i)return;i.delete(o);const n=o.pinnedSibling;pg(o),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(n)}else{const o=gg(this.beans,e,t),i=this.getContainer(t);i.add(o),ag(this.beans,e)&&i.hide(e=>ag(this.beans,e.pinnedSibling)),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(e)}}isManual(){return!0}isEmpty(e){return 0===this.getContainer(e).size()}isRowsToRender(e){return!this.isEmpty(e)}ensureRowHeightsValid(){let e=!1,t=0;const o=o=>{if(o.rowHeightEstimated){const i=Go(this.beans,o);o.setRowTop(t),o.setRowHeight(i.height),t+=i.height,e=!0}};return this.bottom.forEach(o),t=0,this.top.forEach(o),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),e}getPinnedTopTotalHeight(){return vg(this.top)}getPinnedBottomTotalHeight(){return vg(this.bottom)}getPinnedTopRowCount(){return this.top.size()}getPinnedBottomRowCount(){return this.bottom.size()}getPinnedTopRow(e){return this.top.getByIndex(e)}getPinnedBottomRow(e){return this.bottom.getByIndex(e)}getPinnedRowById(e,t){return this.getContainer(t).getById(e)}forEachPinnedRow(e,t){this.getContainer(e).forEach(t)}getPinnedState(){const e=e=>{const t=[];return this.forEachPinnedRow(e,e=>t.push(e.pinnedSibling.id)),t};return{top:e("top"),bottom:e("bottom")}}setPinnedState(e){this.forContainers((t,o)=>{for(const i of e[o]){const e=this.beans.rowModel.getRowNode(i);e?this.pinRow(e,o):t.queue(i)}})}getGrandTotalPinned(){return this._grandTotalPinned}setGrandTotalPinned(e){this._grandTotalPinned=e}tryToEmptyQueues(){this.forContainers((e,t)=>{const o=new Set;e.forEachQueued(e=>{const t=this.beans.rowModel.getRowNode(e);t&&o.add(t)});for(const i of o)e.unqueue(i.id),this.pinRow(i,t)})}pinGrandTotalRow(){const{gos:e,beans:t,_grandTotalPinned:o}=this,i=t.rowModel;if(!To(e,i))return;const n=i.rootNode?.sibling;if(!n)return;const s=n.pinnedSibling,r=s&&this.findPinnedRowNode(s);if(o){if(r&&r.floating!==o&&(r.delete(s),pg(s)),!r||r.floating!==o){const e=gg(t,n,o);this.getContainer(o).add(e)}}else{if(!r)return;r.delete(s),pg(s)}}onGridStylesChanges(e){e.rowHeightChanged&&this.forContainers(e=>e.forEach(e=>e.setRowHeight(e.rowHeight,!0)))}getContainer(e){return"top"===e?this.top:this.bottom}findPinnedRowNode(e){return this.top.has(e)?this.top:this.bottom.has(e)?this.bottom:void 0}refreshRowPositions(e){const t=e=>hg(this.beans,e);if(e)return t(this.getContainer(e));let o=!1;return this.forContainers(e=>{const i=t(e);o||(o=i)}),o}forContainers(e){e(this.top,"top"),e(this.bottom,"bottom")}dispatchRowPinnedEvents(e){this.eventSvc.dispatchEvent({type:"pinnedRowsChanged"}),e?.dispatchRowEvent("rowPinned")}};function hg(e,t){let o=0,i=!1;return t.forEach((t,n)=>{if(i||(i=t.rowTop!==o),t.setRowTop(o),t.rowHeightEstimated||null==t.rowHeight){const o=Go(e,t).height;i||(i=t.rowHeight!==o),t.setRowHeight(o)}t.setRowIndex(n),o+=t.rowHeight}),i}function gg(e,t,o){if(t.pinnedSibling)return t.pinnedSibling;const i=Wd(t,e);i.setRowTop(null),i.setRowIndex(null),i.rowPinned=o;const n="top"===o?Od:Hd;return i.id=`${n}${o}-${t.id}`,i.pinnedSibling=t,t.pinnedSibling=i,i}function pg(e){if(!e.pinnedSibling)return;e.rowPinned=null,e._destroy(!1);const t=e.pinnedSibling;e.pinnedSibling=void 0,t&&(t.pinnedSibling=void 0,t.rowPinned=null)}function fg(e){const t=new Set;e.forEach(e=>{e.group&&t.add(e)}),t.forEach(t=>e.delete(t))}function mg(e,t,o){const{rowSpanSvc:i}=e,n=(o&&i?.isCellSpanning(o,t))??!1;if(o&&n)return i?.getCellSpan(o,t)?.spannedNodes}function vg(e){const t=e.size();if(0===t)return 0;const o=e.getByIndex(t-1);return void 0===o?0:o.rowTop+o.rowHeight}function Cg({gos:e,rowModel:t}){To(e,t)&&t.refreshModel({step:"map"})}var wg=class extends Ct{constructor(){super(...arguments),this.nextId=0,this.pinnedTopRows={cache:{},order:[]},this.pinnedBottomRows={cache:{},order:[]}}postConstruct(){const e=this.gos;this.setPinnedRowData(e.get("pinnedTopRowData"),"top"),this.setPinnedRowData(e.get("pinnedBottomRowData"),"bottom"),this.addManagedPropertyListener("pinnedTopRowData",e=>this.setPinnedRowData(e.currentValue,"top")),this.addManagedPropertyListener("pinnedBottomRowData",e=>this.setPinnedRowData(e.currentValue,"bottom")),this.addManagedEventListeners({stylesChanged:this.onGridStylesChanges.bind(this)})}reset(){}isEmpty(e){return 0===this.getCache(e).order.length}isRowsToRender(e){return!this.isEmpty(e)}isManual(){return!1}pinRow(e,t){}onGridStylesChanges(e){if(e.rowHeightChanged){const e=e=>{e.setRowHeight(e.rowHeight,!0)};Rg(this.pinnedBottomRows,e),Rg(this.pinnedTopRows,e)}}ensureRowHeightsValid(){let e=!1,t=0;const o=o=>{if(o.rowHeightEstimated){const i=Go(this.beans,o);o.setRowTop(t),o.setRowHeight(i.height),t+=i.height,e=!0}};return Rg(this.pinnedBottomRows,o),t=0,Rg(this.pinnedTopRows,o),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),e}setPinnedRowData(e,t){this.updateNodesFromRowData(e,t),this.eventSvc.dispatchEvent({type:"pinnedRowDataChanged"})}updateNodesFromRowData(e,t){const o=this.getCache(t);if(void 0===e)return o.order.length=0,void(o.cache={});const i=ei(this.gos),n="top"===t?Od:Hd,s=new Set(o.order),r=[],a=new Set;let l=0,d=-1;for(const c of e){const e=i?.({data:c,level:0,rowPinned:t})??n+this.nextId++;if(a.has(e)){xo(96,{id:e,data:c});continue}d++,a.add(e),r.push(e);const u=yg(o,e);if(void 0!==u)u.data!==c&&u.updateData(c),l+=this.setRowTopAndRowIndex(u,l,d),s.delete(e);else{const i=new Gd(this.beans);i.id=e,i.data=c,i.rowPinned=t,l+=this.setRowTopAndRowIndex(i,l,d),o.cache[e]=i,o.order.push(e)}}for(const c of s)yg(o,c)?.clearRowTopAndRowIndex(),delete o.cache[c];o.order=r}setRowTopAndRowIndex(e,t,o){return e.setRowTop(t),e.setRowHeight(Go(this.beans,e).height),e.setRowIndex(o),e.rowHeight}getPinnedTopTotalHeight(){return bg(this.pinnedTopRows)}getPinnedBottomTotalHeight(){return bg(this.pinnedBottomRows)}getPinnedTopRowCount(){return xg(this.pinnedTopRows)}getPinnedBottomRowCount(){return xg(this.pinnedBottomRows)}getPinnedTopRow(e){return Sg(this.pinnedTopRows,e)}getPinnedBottomRow(e){return Sg(this.pinnedBottomRows,e)}getPinnedRowById(e,t){return yg(this.getCache(t),e)}forEachPinnedRow(e,t){return Rg(this.getCache(e),t)}getCache(e){return"top"===e?this.pinnedTopRows:this.pinnedBottomRows}getPinnedState(){return{top:[],bottom:[]}}setPinnedState(){}getGrandTotalPinned(){}setGrandTotalPinned(){}};function bg(e){const t=xg(e);if(0===t)return 0;const o=Sg(e,t-1);return void 0===o?0:o.rowTop+o.rowHeight}function yg(e,t){return e.cache[t]}function Sg(e,t){return yg(e,e.order[t])}function Rg(e,t){e.order.forEach((o,i)=>{const n=yg(e,o);n&&t(n,i)})}function xg(e){return e.order.length}var Eg=class extends Ct{constructor(){super(...arguments),this.beanName="pinnedRowModel"}postConstruct(){const{gos:e}=this,t=()=>{const t=e.get("enableRowPinning"),o=Qo(e),i="pinnedBottom"===o||"pinnedTop"===o,n=!!t||i,s=n?this.inner instanceof wg:this.inner instanceof ug;this.inner&&s&&this.destroyBean(this.inner),!s&&this.inner||(this.inner=this.createManagedBean(n?new ug:new wg))};this.addManagedPropertyListeners(["enableRowPinning","grandTotalRow"],t),t()}reset(){return this.inner.reset()}isEmpty(e){return this.inner.isEmpty(e)}isManual(){return this.inner.isManual()}isRowsToRender(e){return this.inner.isRowsToRender(e)}pinRow(e,t,o){return this.inner.pinRow(e,t,o)}ensureRowHeightsValid(){return this.inner.ensureRowHeightsValid()}getPinnedRowById(e,t){return this.inner.getPinnedRowById(e,t)}getPinnedTopTotalHeight(){return this.inner.getPinnedTopTotalHeight()}getPinnedBottomTotalHeight(){return this.inner.getPinnedBottomTotalHeight()}getPinnedTopRowCount(){return this.inner.getPinnedTopRowCount()}getPinnedBottomRowCount(){return this.inner.getPinnedBottomRowCount()}getPinnedTopRow(e){return this.inner.getPinnedTopRow(e)}getPinnedBottomRow(e){return this.inner.getPinnedBottomRow(e)}forEachPinnedRow(e,t){return this.inner.forEachPinnedRow(e,t)}getPinnedState(){return this.inner.getPinnedState()}setPinnedState(e){return this.inner.setPinnedState(e)}setGrandTotalPinned(e){return this.inner.setGrandTotalPinned(e)}getGrandTotalPinned(){return this.inner.getGrandTotalPinned()}},Fg=e=>{let t=e.childrenAfterGroup;while(t?.length){const e=t[0];if(e.sourceRowIndex>=0)return e;t=e.childrenAfterGroup}},Pg=(e,t,o,i)=>{if(!t.size||!e)return!1;let n=!1;const s=e.length??0;let r=-1;o&&(r=o.sourceRowIndex,o=r<0?Fg(o):null,o&&(r=o.sourceRowIndex)),r<0||r>=s?r=s:i||++r;let a=r,l=Math.min(r,s-1);for(const u of t){const e=u.sourceRowIndex;e<a&&(a=e),e>l&&(l=e)}let d=a;for(let u=a;u<r;++u){const o=e[u];t.has(o)||(o.sourceRowIndex!==d&&(o.sourceRowIndex=d,e[d]=o,n=!0),++d)}let c=l;for(let u=l;u>=r;--u){const o=e[u];t.has(o)||(o.sourceRowIndex!==c&&(o.sourceRowIndex=c,e[c]=o,n=!0),--c)}for(const u of t)u.sourceRowIndex!==d&&(u.sourceRowIndex=d,e[d]=u,n=!0),++d;return n},Dg=class{constructor(){this.reordered=!1,this.removals=[],this.updates=new Set,this.adds=new Set}},kg=(e=>(e["Applied"]="Applied",e["StoreNotFound"]="StoreNotFound",e["StoreLoading"]="StoreLoading",e["StoreWaitingToLoad"]="StoreWaitingToLoad",e["StoreLoadingFailed"]="StoreLoadingFailed",e["StoreWrongType"]="StoreWrongType",e["Cancelled"]="Cancelled",e["StoreNotStarted"]="StoreNotStarted",e))(kg||{});function Mg(e){return!(!e.rowPinned||!e.pinnedSibling)}function Ag(e,t,o,i){const n="top"===t;if(!o)return Ag(e,t,n?e.getPinnedTopRow(0):e.getPinnedBottomRow(0),i);if(!i){const i=n?e.getPinnedTopRowCount():e.getPinnedBottomRowCount();return Ag(e,t,o,n?e.getPinnedTopRow(i-1):e.getPinnedBottomRow(i-1))}let s=!1,r=!1;const a=[];return e.forEachPinnedRow(t,e=>e!==o||s?s&&e===i?(r=!0,void a.push(e)):void(s&&!r&&a.push(e)):(s=!0,void a.push(e))),a}var Tg={tag:"div",cls:"ag-selection-checkbox",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},Ig=class extends ps{constructor(){super(Tg,[Ea]),this.eCheckbox=ds}postConstruct(){this.eCheckbox.setPassive(!0)}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){const e=this.getLocaleTextFunc(),{rowNode:t,eCheckbox:o}=this,i=t.isSelected(),n=ae(e,i),[s,r]=t.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],a=e(s,r);o.setValue(i,!0),o.setInputAriaLabel(`${a} (${n})`)}init(e){this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getWrapperElement(),{dblclick:Sc,click:e=>{Sc(e),this.eCheckbox.isDisabled()||this.beans.selectionSvc?.handleSelectionEvent(e,this.rowNode,"checkboxSelected")}}),this.addManagedListeners(this.rowNode,{rowSelected:this.onSelectionChanged.bind(this),dataChanged:this.onDataChanged.bind(this),selectableChanged:this.onSelectableChanged.bind(this)}),this.addManagedPropertyListener("rowSelection",({currentValue:e,previousValue:t})=>{const o="object"===typeof e?ai(e):void 0,i="object"===typeof t?ai(t):void 0;o!==i&&this.onSelectableChanged()});const t=vi(this.gos),o=t||"function"===typeof this.getIsVisible();if(o){const e=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e}),this.addManagedListeners(this.rowNode,{dataChanged:e,cellChanged:e}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}showOrHideSelect(){const{column:e,rowNode:t,overrides:o,gos:i}=this,n=t.selectable,s=this.getIsVisible();let r;if("function"===typeof s){const i=o?.callbackParams;if(e){const o=e.createColumnFunctionCallbackParams(t);r=s({...i,...o})}else r=s({...i,node:t,data:t.data})}else r=s??!1;const a=n&&!r||!n&&r,l=n||r,d=i.get("rowSelection"),c=d&&"string"!==typeof d?!ai(d):!!e?.getColDef().showDisabledCheckboxes;this.setVisible(l&&(!a||c)),this.setDisplayed(l&&(!a||c)),l&&this.eCheckbox.setDisabled(a),o?.removeHidden&&this.setDisplayed(l)}getIsVisible(){const e=this.overrides;if(e)return e.isVisible;const t=this.gos.get("rowSelection");return t&&"string"!==typeof t?ni(t):this.column?.getColDef()?.checkboxSelection}},Lg=class{constructor(e,t){this.rowModel=e,this.pinnedRowModel=t,this.selectAll=!1,this.rootId=null,this.endId=null,this.cachedRange=[]}reset(){this.rootId=null,this.endId=null,this.cachedRange.length=0}setRoot(e){this.rootId=e.id,this.endId=null,this.cachedRange.length=0}setEndRange(e){this.endId=e.id,this.cachedRange.length=0}getRange(){if(0===this.cachedRange.length){const e=this.getRoot(),t=this.getEnd();if(null==e||null==t)return this.cachedRange;this.cachedRange=this.getNodesInRange(e,t)??[]}return this.cachedRange}isInRange(e){return null!==this.rootId&&this.getRange().some(t=>t.id===e.id)}getRoot(e){return this.rootId?this.getRowNode(this.rootId):e?(this.setRoot(e),e):void 0}getEnd(){if(this.endId)return this.getRowNode(this.endId)}getRowNode(e){let t;const{rowModel:o,pinnedRowModel:i}=this;return t??(t=o.getRowNode(e)),i?.isManual()&&(t??(t=i.getPinnedRowById(e,"top")),t??(t=i.getPinnedRowById(e,"bottom"))),t}truncate(e){const t=this.getRange();if(0===t.length)return{keep:[],discard:[]};const o=t[0].id===this.rootId,i=t.findIndex(t=>t.id===e.id);if(i>-1){const n=t.slice(0,i),s=t.slice(i+1);return this.setEndRange(e),o?{keep:n,discard:s}:{keep:s,discard:n}}return{keep:t,discard:[]}}extend(e,t=!1){const o=this.getRoot();if(null==o){const o=this.getRange().slice();return t&&e.depthFirstSearch(e=>!e.group&&o.push(e)),o.push(e),this.setRoot(e),{keep:o,discard:[]}}const i=this.getNodesInRange(o,e);if(!i)return this.setRoot(e),{keep:[e],discard:[]};if(i.find(e=>e.id===this.endId))return this.setEndRange(e),{keep:this.getRange(),discard:[]};{const t=this.getRange().slice();return this.setEndRange(e),{keep:this.getRange(),discard:t}}}getNodesInRange(e,t){const{pinnedRowModel:o,rowModel:i}=this;if(!o?.isManual())return i.getNodesInRangeForSelection(e,t);if("top"===e.rowPinned&&!t.rowPinned){const n=Ag(o,"top",e,void 0);return n.concat(i.getNodesInRangeForSelection(i.getRow(0),t)??[])}if("bottom"===e.rowPinned&&!t.rowPinned){const n=Ag(o,"bottom",void 0,e),s=i.getRowCount(),r=i.getRow(s-1);return(i.getNodesInRangeForSelection(t,r)??[]).concat(n)}if(!e.rowPinned&&!t.rowPinned)return i.getNodesInRangeForSelection(e,t);if("top"===e.rowPinned&&"top"===t.rowPinned)return Ag(o,"top",e,t);if("bottom"===e.rowPinned&&"top"===t.rowPinned){const n=Ag(o,"top",t,void 0),s=Ag(o,"bottom",void 0,e),r=i.getRow(0),a=i.getRow(i.getRowCount()-1);return n.concat(i.getNodesInRangeForSelection(r,a)??[]).concat(s)}if(!e.rowPinned&&"top"===t.rowPinned){const n=Ag(o,"top",t,void 0);return n.concat(i.getNodesInRangeForSelection(i.getRow(0),e)??[])}if("top"===e.rowPinned&&"bottom"===t.rowPinned){const n=Ag(o,"top",e,void 0),s=Ag(o,"bottom",void 0,t),r=i.getRow(0),a=i.getRow(i.getRowCount()-1);return n.concat(i.getNodesInRangeForSelection(r,a)??[]).concat(s)}if("bottom"===e.rowPinned&&"bottom"===t.rowPinned)return Ag(o,"bottom",e,t);if(!e.rowPinned&&"bottom"===t.rowPinned){const n=Ag(o,"bottom",void 0,t),s=i.getRow(i.getRowCount());return(i.getNodesInRangeForSelection(e,s)??[]).concat(n)}return null}},Bg=class extends Ct{constructor(e){super(),this.column=e,this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1}onSpaceKeyDown(e){const t=this.cbSelectAll;t.isDisplayed()&&!t.getGui().contains(m(this.beans))&&(e.preventDefault(),t.setValue(!t.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(e){this.headerCellCtrl=e;const t=this.createManagedBean(new xa);this.cbSelectAll=t,t.addCss("ag-header-select-all"),P(t.getGui(),"presentation"),this.showOrHideSelectAll();const o=this.updateStateOfCheckbox.bind(this);this.addManagedEventListeners({newColumnsLoaded:()=>this.showOrHideSelectAll(),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:o,paginationChanged:o,modelUpdated:o}),this.addManagedPropertyListener("rowSelection",({currentValue:e,previousValue:t})=>{const o=e=>"string"!==typeof e&&e&&"singleRow"!==e.mode?e.selectAll:void 0;o(e)!==o(t)&&this.showOrHideSelectAll(),this.updateStateOfCheckbox()}),this.addManagedListeners(t,{fieldValueChanged:this.onCbSelectAll.bind(this)}),t.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onDisplayedColumnsChanged(e){this.isAlive()&&this.showOrHideSelectAll("uiColumnMoved"===e.source)}showOrHideSelectAll(e=!1){const t=this.isCheckboxSelection();this.cbSelectAllVisible=t,this.cbSelectAll.setDisplayed(t),t&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel(e)}updateStateOfCheckbox(){if(!this.cbSelectAllVisible||this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;const e=this.getSelectAllMode(),t=this.beans.selectionSvc,o=this.cbSelectAll,i=t.getSelectAllState(e);o.setValue(i);const n=t.hasNodesToSelect(e);o.setDisabled(!n),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(e=!1){const t=this.getLocaleTextFunc(),{headerCellCtrl:o,cbSelectAll:i,cbSelectAllVisible:n}=this,s=i.getValue(),r=ae(t,s),a=t("ariaRowSelectAll","Press Space to toggle all rows selection");o.setAriaDescriptionProperty("selectAll",n?`${a} (${r})`:null),i.setInputAriaLabel(t("ariaHeaderSelection","Column with Header Selection")),e||o.announceAriaDescription()}checkSelectionType(e){const t=wi(this.gos);return!!t||(xo(128,{feature:e}),!1)}checkRightRowModelType(e){const{gos:t,rowModel:o}=this.beans,i=To(t)||Io(t);return!!i||(xo(129,{feature:e,rowModel:o.getType()}),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox)return;if(!this.cbSelectAllVisible)return;const e=this.cbSelectAll.getValue(),t=this.getSelectAllMode();let o="uiSelectAll";"currentPage"===t?o="uiSelectAllCurrentPage":"filtered"===t&&(o="uiSelectAllFiltered");const i={source:o,selectAll:t},n=this.beans.selectionSvc;e?n.selectAllRowNodes(i):n.deselectAllRowNodes(i)}isCheckboxSelection(){const{column:e,gos:t,beans:o}=this,i=t.get("rowSelection"),n="object"===typeof i,s=n?"headerCheckbox":"headerCheckboxSelection";return Og(o,e)&&this.checkRightRowModelType(s)&&this.checkSelectionType(s)}getSelectAllMode(){const e=Si(this.gos,!1);if(e)return e;const{headerCheckboxSelectionCurrentPageOnly:t,headerCheckboxSelectionFilteredOnly:o}=this.column.getColDef();return t?"currentPage":o?"filtered":"all"}destroy(){super.destroy(),this.cbSelectAll=void 0,this.headerCellCtrl=void 0}};function Og({gos:e,selectionColSvc:t},o){const i=e.get("rowSelection"),n=o.getColDef(),{headerCheckboxSelection:s}=n;let r=!1;const a="object"===typeof i;if(a){const e=vn(o),n=mn(o),s=ri(i);("autoGroupColumn"===s&&n||e&&t?.isSelectionColumnEnabled())&&(r=si(i))}else r="function"===typeof s?s(Ti(e,{column:o,colDef:n})):!!s;return r}var Hg,Vg=class extends Ct{postConstruct(){const{gos:e,beans:t}=this;this.selectionCtx=new Lg(t.rowModel,t.pinnedRowModel),this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>{const t=vi(e);t!==this.isRowSelectable&&(this.isRowSelectable=t,this.updateSelectable())}),this.isRowSelectable=vi(e),this.addManagedEventListeners({cellValueChanged:e=>this.updateRowSelectable(e.node),rowNodeDataChanged:e=>this.updateRowSelectable(e.node)})}destroy(){super.destroy(),this.selectionCtx.reset()}createCheckboxSelectionComponent(){return new Ig}createSelectAllFeature(e){if(Og(this.beans,e))return new Bg(e)}isMultiSelect(){return wi(this.gos)}onRowCtrlSelected(e,t,o){const i=!!e.rowNode.isSelected();e.forEachGui(o,e=>{e.rowComp.toggleCss("ag-row-selected",i);const o=e.element;te(o,i);const n=o.contains(m(this.beans));n&&t(e)})}announceAriaRowSelection(e){if(this.isRowSelectionBlocked(e))return;const t=e.isSelected(),o=this.beans.editSvc?.isEditing({rowNode:e});if(!e.selectable||o)return;const i=this.getLocaleTextFunc(),n=i(t?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${t?"deselect":"select"} this row`);this.beans.ariaAnnounce?.announceValue(n,"rowSelection")}isRowSelectionBlocked(e){return!e.selectable||e.rowPinned&&!Mg(e)||!Bo(this.gos)}updateRowSelectable(e,t){const o=e.rowPinned&&e.pinnedSibling?e.pinnedSibling.selectable:this.isRowSelectable?.(e)??!0;return this.setRowSelectable(e,o,t),o}setRowSelectable(e,t,o){if(e.selectable!==t){if(e.selectable=t,e.dispatchRowEvent("selectableChanged"),o)return;const i=xi(this.gos);if(i){const t=this.calculateSelectedFromChildren(e);return void this.setNodesSelected({nodes:[e],newValue:t??!1,source:"selectableChanged"})}e.isSelected()&&!e.selectable&&this.setNodesSelected({nodes:[e],newValue:!1,source:"selectableChanged"})}}calculateSelectedFromChildren(e){let t=!1,o=!1;if(!e.childrenAfterGroup?.length)return e.selectable?e.__selected:null;for(let i=0;i<e.childrenAfterGroup.length;i++){const n=e.childrenAfterGroup[i];let s=n.isSelected();if(!n.selectable){const e=this.calculateSelectedFromChildren(n);if(null===e)continue;s=e}switch(s){case!0:t=!0;break;case!1:o=!0;break;default:return}}return t&&o?void 0:!!t||!o&&(e.selectable?e.__selected:null)}selectRowNode(e,t,o,i="api"){if(t&&e.destroyed)return!1;const n=!e.selectable&&t,s=e.__selected===t;if(n||s)return!1;e.__selected=t,e.dispatchRowEvent("rowSelected");const r=e.sibling;r&&r.footer&&r.__localEventService&&r.dispatchRowEvent("rowSelected");const a=e.pinnedSibling;return a?.rowPinned&&a.__localEventService&&a.dispatchRowEvent("rowSelected"),this.eventSvc.dispatchEvent({...Nd(e,this.gos,"rowSelected"),event:o||null,source:i}),!0}isCellCheckboxSelection(e,t){const o=this.gos.get("rowSelection");if(o&&"string"!==typeof o){const i=vn(e)&&ni(o);return e.isColumnFunc(t,i)}return e.isColumnFunc(t,e.colDef.checkboxSelection)}inferNodeSelections(e,t,o,i){const{gos:n,selectionCtx:s}=this,r=e.isSelected(),a=xi(n),l=fi(n),d=mi(n),c=this.isMultiSelect(),u="rowClicked"===i;if(u&&!l&&!d)return null;if(t&&o&&c){const t=s.getRoot();if(t){if(t.isSelected()){const t=s.isInRange(e)?s.truncate(e):s.extend(e,a);return{deselect:t.discard,select:t.keep,reset:!1}}{const t=s.extend(e,a);return{select:[],deselect:t.keep,reset:!1}}}return null}if(t&&c){const t=s.selectAll?this.beans.rowModel.getRow(0):void 0,o=s.getRoot(t),i=s.isInRange(e)?s.truncate(e):s.extend(e,a);return{select:i.keep,deselect:i.discard,reset:s.selectAll||!(!o||o.isSelected())}}if(o){if(u){const t=!r,o=t&&!l,i=!t&&!d;return o||i?null:(s.setRoot(e),{node:e,newValue:t,clearSelection:!1})}return s.setRoot(e),{node:e,newValue:!r,clearSelection:!c}}{s.setRoot(e);const t=bi(n),o="filteredDescendants"===yi(n),i=u&&(!t||!l);if(o&&void 0===r&&To(n))return{node:e,newValue:!1,checkFilteredNodes:!0,clearSelection:!c||i};if(u){const o=r?!t:l,n=o&&!l,s=!o&&!d,u=o===r&&!i;return u||n||s?null:{node:e,newValue:o,clearSelection:!c||i,keepDescendants:e.group&&a}}return{node:e,newValue:!r,clearSelection:!c||i}}}},Gg=class extends kd{initialiseTabGuard(e){super.initialiseTabGuard(e,xc)}},Ng=class extends jr{constructor(e){super(e,xc)}},zg=class extends Dd{constructor(e){super(e,xc)}},Wg=500,_g=550,Ug=e=>{if(Hg){if(Hg.has(e))return!1}else Hg=new WeakSet;return Hg.add(e),!0},$g=class{constructor(e,t=!1){this.eElement=e,this.preventClick=t,this.startListener=null,this.handlers=[],this.eventSvc=void 0,this.touchStart=null,this.lastTapTime=null,this.longPressTimer=0,this.moved=!1}addEventListener(e,t){let o=this.eventSvc;if(!o){if(null===o)return;this.eventSvc=o=new i;const e=this.onTouchStart.bind(this);this.startListener=e,this.eElement.addEventListener("touchstart",e,{passive:!0})}o.addEventListener(e,t)}removeEventListener(e,t){this.eventSvc?.removeEventListener(e,t)}onTouchStart(e){if(this.touchStart||!Ug(e))return;const t=e.touches[0];this.touchStart=t;const o=this.handlers;if(!o.length){const e=this.eElement,t=e.ownerDocument,i=this.onTouchMove.bind(this),n=this.onTouchEnd.bind(this),s=this.onTouchCancel.bind(this),r={passive:!0},a={passive:!1};at(o,[e,"touchmove",i,r],[t,"touchcancel",s,r],[t,"touchend",n,a],[t,"contextmenu",dt,a])}this.clearLongPress(),this.longPressTimer=window.setTimeout(()=>{this.longPressTimer=0,this.touchStart!==t||this.moved||(this.moved=!0,this.eventSvc?.dispatchEvent({type:"longTap",touchStart:t,touchEvent:e}))},_g)}onTouchMove(e){const{moved:t,touchStart:o}=this;if(!t&&o){const t=nt(o,e.touches),i=t&&!it(t,o,4);i&&(this.clearLongPress(),this.moved=!0)}}onTouchEnd(e){const t=this.touchStart;t&&nt(t,e.changedTouches)&&(this.moved||(this.eventSvc?.dispatchEvent({type:"tap",touchStart:t}),this.checkDoubleTap(t)),this.preventClick&&dt(e),this.cancel())}onTouchCancel(e){const t=this.touchStart;t&&nt(t,e.changedTouches)&&(this.lastTapTime=null,this.cancel())}checkDoubleTap(e){let t=Date.now();const o=this.lastTapTime;if(o){const i=t-o;i>Wg&&(this.eventSvc?.dispatchEvent({type:"doubleTap",touchStart:e}),t=null)}this.lastTapTime=t}cancel(){this.clearLongPress(),lt(this.handlers),this.touchStart=null}clearLongPress(){window.clearTimeout(this.longPressTimer),this.longPressTimer=0,this.moved=!1}destroy(){const e=this.startListener;e&&(this.startListener=null,this.eElement.removeEventListener("touchstart",e)),this.cancel(),this.eElement=null,this.eventSvc=null}},qg=(e=>(e[e["VALUE"]=0]="VALUE",e[e["DIMENSION"]=1]="DIMENSION",e))(qg||{}),jg=class{constructor(e="javascript"){this.frameworkName=e,this.renderingEngine="vanilla",this.batchFrameworkComps=!1,this.wrapIncoming=e=>e(),this.wrapOutgoing=e=>e(),this.baseDocLink=`${Ot}/${this.frameworkName}-data-grid`,po(this.baseDocLink)}frameworkComponent(e){return null}isFrameworkComponent(e){return!1}getDocLink(e){return this.baseDocLink+(e?"/"+e:"")}};function Kg(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionSvc").api}}var Qg=["licenseManager","environment","eventSvc","gos","paginationAutoPageSizeSvc","apiFunctionSvc","gridApi","registry","agCompUtils","userCompFactory","rowContainerHeight","horizontalResizeSvc","localeSvc","pinnedRowModel","dragSvc","colGroupSvc","visibleCols","popupSvc","selectionSvc","colFilter","quickFilter","filterManager","colModel","headerNavigation","pageBounds","pagination","pageBoundsListener","rowSpanSvc","stickyRowSvc","rowRenderer","expressionSvc","alignedGridsSvc","navigation","valueCache","valueSvc","autoWidthCalc","filterMenuFactory","dragAndDrop","focusSvc","cellNavigation","cellStyles","scrollVisibleSvc","sortSvc","colHover","colAnimation","autoColSvc","selectionColSvc","changeDetectionSvc","animationFrameSvc","undoRedo","colDefFactory","rowStyleSvc","rowNodeBlockLoader","rowNodeSorter","ctrlsSvc","pinnedCols","dataTypeSvc","syncSvc","overlays","stateSvc","expansionSvc","apiEventSvc","ariaAnnounce","menuSvc","colMoves","colAutosize","colFlex","colResize","pivotColsSvc","valueColsSvc","rowGroupColsSvc","colNames","colViewport","pivotResultCols","showRowGroupCols","validation"],Xg=Object.fromEntries(Qg.map((e,t)=>[e,t]));function Yg(e,t){const o=(e.beanName?Xg[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER,i=(t.beanName?Xg[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER;return o-i}function Zg(e,t){return"gridDestroySvc"===e?.beanName?-1:"gridDestroySvc"===t?.beanName?1:0}var Jg={tag:"div",cls:"ag-pinned-left-header",role:"rowgroup"},ep={tag:"div",cls:"ag-pinned-right-header",role:"rowgroup"},tp={tag:"div",cls:"ag-header-viewport",role:"rowgroup",attrs:{tabindex:"-1"},children:[{tag:"div",ref:"eCenterContainer",cls:"ag-header-container",role:"presentation"}]},op=class extends ps{constructor(e){super(),this.eCenterContainer=ds,this.headerRowComps={},this.rowCompsList=[],this.pinned=e}postConstruct(){this.selectAndSetTemplate();const e={setDisplayed:e=>this.setDisplayed(e),setCtrls:e=>this.setCtrls(e),setCenterWidth:e=>this.eCenterContainer.style.width=e,setViewportScrollLeft:e=>this.getGui().scrollLeft=e,setPinnedContainerWidth:e=>{const t=this.getGui();t.style.width=e,t.style.maxWidth=e,t.style.minWidth=e}},t=this.createManagedBean(new Hh(this.pinned));t.setComp(e,this.getGui())}selectAndSetTemplate(){const e="left"==this.pinned,t="right"==this.pinned,o=e?Jg:t?ep:tp;this.setTemplate(o),this.eRowContainer=this.eCenterContainer!==ds?this.eCenterContainer:this.getGui()}destroy(){this.setCtrls([]),super.destroy()}destroyRowComp(e){this.destroyBean(e),e.getGui().remove()}setCtrls(e){const t=this.headerRowComps;let o;this.headerRowComps={},this.rowCompsList=[];const i=e=>{const t=e.getGui(),i=t.parentElement!=this.eRowContainer;i&&this.eRowContainer.appendChild(t),o&&ke(this.eRowContainer,t,o),o=t};for(const n of e){const e=n.instanceId,o=t[e];delete t[e];const s=o||this.createBean(new Dh(n));this.headerRowComps[e]=s,this.rowCompsList.push(s),i(s)}for(const n of Object.values(t))this.destroyRowComp(n)}},ip={tag:"div",cls:"ag-header",role:"presentation"},np=class extends ps{constructor(){super(ip)}postConstruct(){const e={toggleCss:(e,t)=>this.toggleCss(e,t),setHeightAndMinHeight:e=>{this.getGui().style.height=e,this.getGui().style.minHeight=e}},t=this.createManagedBean(new bh);t.setComp(e,this.getGui(),this.getFocusableElement());const o=e=>{this.createManagedBean(e),this.appendChild(e)};o(new op("left")),o(new op(null)),o(new op("right"))}},sp={selector:"AG-HEADER-ROOT",component:np},rp=class extends ps{constructor(e,t,o,i,n){super(),this.cellCtrl=t,this.rendererVersion=0,this.editorVersion=0,this.beans=e,this.gos=e.gos,this.column=t.column,this.rowNode=t.rowNode,this.eRow=i;const s=Zd({tag:"div",role:t.getCellAriaRole(),attrs:{"comp-id":`${this.getCompId()}`,"col-id":t.column.colIdSanitised}});let r;this.eCell=s,t.isCellSpanning()?(r=Zd({tag:"div",cls:"ag-spanned-cell-wrapper",role:"presentation"}),r.appendChild(s),this.setTemplateFromElement(r)):this.setTemplateFromElement(s),this.cellCssManager=new us(()=>s),this.forceWrapper=t.isForceWrapper(),this.refreshWrapper(!1);const a={toggleCss:(e,t)=>this.cellCssManager.toggleCss(e,t),setUserStyles:e=>Te(s,e),getFocusableElement:()=>s,setIncludeSelection:e=>this.includeSelection=e,setIncludeRowDrag:e=>this.includeRowDrag=e,setIncludeDndSource:e=>this.includeDndSource=e,setRenderDetails:(e,t,o)=>this.setRenderDetails(e,t,o),setEditDetails:(e,t,o)=>this.setEditDetails(e,t,o),getCellEditor:()=>this.cellEditor||null,getCellRenderer:()=>this.cellRenderer||null,getParentOfValue:()=>this.getParentOfValue(),refreshEditStyles:(e,t)=>this.refreshEditStyles(e,t)};t.setComp(a,s,r,this.eCellWrapper,o,n,void 0)}getParentOfValue(){return this.eCellValue??this.eCellWrapper??this.eCell}setRenderDetails(e,t,o){const i=this.cellEditor&&!this.cellEditorPopupWrapper;if(i)return;this.firstRender=null==this.firstRender;const n=this.refreshWrapper(!1);if(this.refreshEditStyles(!1),e){const t=o||n,i=!t&&this.refreshCellRenderer(e);i||(this.destroyRenderer(),this.createCellRendererInstance(e))}else this.destroyRenderer(),this.insertValueWithoutCellRenderer(t);this.rowDraggingComp?.refreshVisibility()}setEditDetails(e,t,o){e?this.createCellEditorInstance(e,t,o):this.destroyEditor()}removeControls(){const e=this.beans.context;this.checkboxSelectionComp=e.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=e.destroyBean(this.dndSourceComp),this.rowDraggingComp=e.destroyBean(this.rowDraggingComp)}refreshWrapper(e){const t=this.includeRowDrag||this.includeDndSource||this.includeSelection,o=t||this.forceWrapper,i=o&&null==this.eCellWrapper;i&&(this.eCellWrapper=Zd({tag:"div",cls:"ag-cell-wrapper",role:"presentation"}),this.eCell.appendChild(this.eCellWrapper));const n=!o&&null!=this.eCellWrapper;n&&(Ee(this.eCellWrapper),this.eCellWrapper=void 0),this.cellCssManager.toggleCss("ag-cell-value",!o);const s=!e&&o,r=s&&null==this.eCellValue;if(r){const e=this.cellCtrl.getCellValueClass();this.eCellValue=Zd({tag:"span",cls:e,role:"presentation"}),this.eCellWrapper.appendChild(this.eCellValue)}const a=!s&&null!=this.eCellValue;a&&(Ee(this.eCellValue),this.eCellValue=void 0);const l=i||n||r||a;return l&&this.removeControls(),!e&&t&&this.addControls(),l}addControls(){const{cellCtrl:e,eCellWrapper:t,eCellValue:o,includeRowDrag:i,includeDndSource:n,includeSelection:s}=this,r=e=>{e&&t.insertBefore(e.getGui(),o)};i&&null==this.rowDraggingComp&&(this.rowDraggingComp=e.createRowDragComp(),r(this.rowDraggingComp)),n&&null==this.dndSourceComp&&(this.dndSourceComp=e.createDndSource(),r(this.dndSourceComp)),s&&null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=e.createSelectionCheckbox(),r(this.checkboxSelectionComp))}createCellEditorInstance(e,t,o){const i=this.editorVersion,n=e.newAgStackInstance(),{params:s}=e;n.then(e=>this.afterCellEditorCreated(i,e,s,t,o));const a=r(this.cellEditor);a&&s.cellStartedEdit&&this.cellCtrl.focusCell(!0)}insertValueWithoutCellRenderer(e){const t=this.getParentOfValue();xe(t);const o=h(e);null!=o&&(t.textContent=o)}destroyRenderer(){const{context:e}=this.beans;this.cellRenderer=e.destroyBean(this.cellRenderer),Ee(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++}destroyEditor(){const{context:e}=this.beans,t=this.cellEditorPopupWrapper?.getGui().contains(m(this.beans))||this.cellCtrl.hasBrowserFocus();t&&this.eCell.focus({preventScroll:!0}),this.hideEditorPopup?.(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),Ee(this.cellEditorGui),this.cellCtrl.disableEditorTooltipFeature(),this.cellEditorGui=null,this.editorVersion++}refreshCellRenderer(e){if(null==this.cellRenderer?.refresh)return!1;if(this.cellRendererClass!==e.componentClass)return!1;const t=this.cellRenderer.refresh(e.params);return!0===t||void 0===t}createCellRendererInstance(e){const t=this.rendererVersion,o=e=>o=>{const i=this.rendererVersion!==t||!this.isAlive();if(i)return;const n=e.newAgStackInstance(),s=this.afterCellRendererCreated.bind(this,t,e.componentClass);n?.then(s)},{animationFrameSvc:i}=this.beans;let n;if(n=i?.active&&this.firstRender?(e,t=!1)=>{i.createTask(o(e),this.rowNode.rowIndex,"p2",e.componentFromFramework,t)}:e=>o(e)(),e.params?.deferRender&&!this.cellCtrl.rowNode.group){const{loadingComp:t,onReady:o}=this.cellCtrl.getDeferLoadingCellRenderer();t&&(n(t),o.then(()=>n(e,!0)))}else n(e)}afterCellRendererCreated(e,t,o){const i=!this.isAlive()||e!==this.rendererVersion;if(i)return void this.beans.context.destroyBean(o);this.cellRenderer=o,this.cellRendererClass=t;const n=o.getGui();if(this.cellRendererGui=n,null!=n){const e=this.getParentOfValue();xe(e),e.appendChild(n)}}afterCellEditorCreated(e,t,o,i,n){const s=e!==this.editorVersion,{context:r}=this.beans;if(s)return void r.destroyBean(t);const a=t.isCancelBeforeStart?.();if(a)return r.destroyBean(t),void this.cellCtrl.stopEditing(!0);if(!t.getGui)return xo(97,{colId:this.column.getId()}),void r.destroyBean(t);this.cellEditor=t,this.cellEditorGui=t.getGui();const l=i||t.isPopup?.();l?this.addPopupCellEditor(o,n):this.addInCellEditor(),this.refreshEditStyles(!0,l),t.afterGuiAttached?.(),this.cellCtrl.enableEditorTooltipFeature(t),this.cellCtrl.cellEditorAttached()}refreshEditStyles(e,t){const{cellCssManager:o}=this;o.toggleCss("ag-cell-inline-editing",e&&!t),o.toggleCss("ag-cell-popup-editing",e&&!!t),o.toggleCss("ag-cell-not-inline-editing",!e||!!t)}addInCellEditor(){const{eCell:e}=this;if(e.contains(m(this.beans))&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),xe(this.getParentOfValue()),this.cellEditorGui){const e=this.getParentOfValue();e.appendChild(this.cellEditorGui)}}addPopupCellEditor(e,t){const{gos:o,context:i,popupSvc:n,editSvc:s}=this.beans;"fullRow"===o.get("editType")&&xo(98);const r=this.cellEditorPopupWrapper=i.createBean(s.createPopupEditorWrapper(e)),{cellEditor:a,cellEditorGui:l,eCell:d,rowNode:c,column:u,cellCtrl:h}=this,g=r.getGui();l&&g.appendChild(l);const p=o.get("stopEditingWhenCellsLoseFocus"),f=null!=t?t:a.getPopupPosition?.()??"over",m=o.get("enableRtl"),v={ePopup:g,additionalParams:{column:u,rowNode:c},type:"popupCellEditor",eventSource:d,position:f,alignSide:m?"right":"left",keepWithinBounds:!0},C=n.positionPopupByComponent.bind(n,v),w=n.addPopup({modal:p,eChild:g,closeOnEsc:!0,closedCallback:()=>{h.onPopupEditorClosed()},anchorToElement:d,positionCallback:C,ariaOwns:d});w&&(this.hideEditorPopup=w.hideFunc)}detach(){this.getGui().remove()}destroy(){this.destroyRenderer(),this.destroyEditor(),this.removeControls(),super.destroy()}},ap=class extends ps{constructor(e,t,o){super(),this.cellComps=new Map,this.beans=t,this.rowCtrl=e;const i=Zd({tag:"div",role:"row",attrs:{"comp-id":`${this.getCompId()}`}});this.setInitialStyle(i,o),this.setTemplateFromElement(i);const n=i.style;this.domOrder=this.rowCtrl.getDomOrder();const s={setDomOrder:e=>this.domOrder=e,setCellCtrls:e=>this.setCellCtrls(e),showFullWidth:e=>this.showFullWidth(e),getFullWidthCellRenderer:()=>this.fullWidthCellRenderer,getFullWidthCellRendererParams:()=>this.fullWidthCellRendererParams,toggleCss:(e,t)=>this.toggleCss(e,t),setUserStyles:e=>Te(i,e),setTop:e=>n.top=e,setTransform:e=>n.transform=e,setRowIndex:e=>i.setAttribute("row-index",e),setRowId:e=>i.setAttribute("row-id",e),setRowBusinessKey:e=>i.setAttribute("row-business-key",e),refreshFullWidth:e=>{const t=e();return this.fullWidthCellRendererParams=t,this.fullWidthCellRenderer?.refresh?.(t)??!1}};e.setComp(s,this.getGui(),o,void 0),this.addDestroyFunc(()=>{e.unsetComp(o)})}setInitialStyle(e,t){const o=this.rowCtrl.getInitialTransform(t);if(o)e.style.setProperty("transform",o);else{const o=this.rowCtrl.getInitialRowTop(t);o&&e.style.setProperty("top",o)}}showFullWidth(e){const t=t=>{if(this.isAlive()){const o=t.getGui();this.getGui().appendChild(o),this.rowCtrl.setupDetailRowAutoHeight(o),this.setFullWidthRowComp(t,e.params)}else this.beans.context.destroyBean(t)},o=e.newAgStackInstance();o.then(t)}setCellCtrls(e){const t=new Map(this.cellComps);for(const o of e){const e=o.instanceId;this.cellComps.has(e)?t.delete(e):this.newCellComp(o)}this.destroyCells(t),this.ensureDomOrder(e)}ensureDomOrder(e){if(!this.domOrder)return;const t=[];for(const o of e){const e=this.cellComps.get(o.instanceId);e&&t.push(e.getGui())}Me(this.getGui(),t)}newCellComp(e){const t=this.beans.editSvc?.isEditing(e,{withOpenEditor:!0})??!1,o=new rp(this.beans,e,this.rowCtrl.printLayout,this.getGui(),t);this.cellComps.set(e.instanceId,o),this.getGui().appendChild(o.getGui())}destroy(){super.destroy(),this.destroyCells(this.cellComps)}setFullWidthRowComp(e,t){this.fullWidthCellRenderer=e,this.fullWidthCellRendererParams=t,this.addDestroyFunc(()=>{this.fullWidthCellRenderer=this.beans.context.destroyBean(this.fullWidthCellRenderer),this.fullWidthCellRendererParams=void 0})}destroyCells(e){for(const t of e.values()){if(!t)return;const e=t.cellCtrl.instanceId;if(this.cellComps.get(e)!==t)return;t.detach(),t.destroy(),this.cellComps.delete(e)}}};function lp(e,t,o){const i=!!o.gos.get("enableCellSpan")&&!!t.getSpannedRowCtrls,n={tag:"div",ref:"eContainer",cls:lu(e),role:"rowgroup"};if("center"===t.type||i){const t={tag:"div",ref:"eSpannedContainer",cls:`ag-spanning-container ${du(e)}`,role:"presentation"};return n.role="presentation",{tag:"div",ref:"eViewport",cls:`ag-viewport ${au(e)}`,role:"rowgroup",children:[n,i?t:null]}}return n}var dp=class extends ps{constructor(e){super(),this.eViewport=ds,this.eContainer=ds,this.eSpannedContainer=ds,this.rowCompsNoSpan={},this.rowCompsWithSpan={},this.name=e?.name,this.options=cu(this.name)}postConstruct(){this.setTemplate(lp(this.name,this.options,this.beans));const e={setHorizontalScroll:e=>this.eViewport.scrollLeft=e,setViewportHeight:e=>this.eViewport.style.height=e,setRowCtrls:({rowCtrls:e})=>this.setRowCtrls(e),setSpannedRowCtrls:e=>this.setRowCtrls(e,!0),setDomOrder:e=>{this.domOrder=e},setContainerWidth:e=>{this.eContainer.style.width=e,this.eSpannedContainer&&(this.eSpannedContainer.style.width=e)},setOffsetTop:e=>{const t=`translateY(${e})`;this.eContainer.style.transform=t,this.eSpannedContainer&&(this.eSpannedContainer.style.transform=t)}},t=this.createManagedBean(new Su(this.name));t.setComp(e,this.eContainer,this.eSpannedContainer,this.eViewport)}destroy(){this.setRowCtrls([]),this.setRowCtrls([],!0),super.destroy(),this.lastPlacedElement=null}setRowCtrls(e,t){const{beans:o,options:i}=this,n=t?this.eSpannedContainer:this.eContainer,s=t?{...this.rowCompsWithSpan}:{...this.rowCompsNoSpan},r={};t?this.rowCompsWithSpan=r:this.rowCompsNoSpan=r,this.lastPlacedElement=null;const a=[];for(const l of e){const e=l.instanceId,t=s[e];let n;if(t)n=t,delete s[e];else{if(!l.rowNode.displayed)continue;n=new ap(l,o,i.type)}r[e]=n,a.push([n,!t])}this.removeOldRows(Object.values(s)),this.addRowNodes(a,n)}addRowNodes(e,t){const{domOrder:o}=this;for(const[i,n]of e){const e=i.getGui();o?this.ensureDomOrder(e,t):n&&t.appendChild(e)}}removeOldRows(e){for(const t of e)t.getGui().remove(),t.destroy()}ensureDomOrder(e,t){ke(t,e,this.lastPlacedElement),this.lastPlacedElement=e}},cp={selector:"AG-ROW-CONTAINER",component:dp};function up(e,t){return t.map(t=>{const o=`e${t[0].toUpperCase()+t.substring(1)}RowContainer`;return e[o]={name:t},{tag:"ag-row-container",ref:o,attrs:{name:t}}})}function hp(e){const t={},o={tag:"div",ref:"eGridRoot",cls:"ag-root ag-unselectable",children:[{tag:"ag-header-root"},{tag:"div",ref:"eTop",cls:"ag-floating-top",role:"presentation",children:up(t,["topLeft","topCenter","topRight","topFullWidth"])},{tag:"div",ref:"eBody",cls:"ag-body",role:"presentation",children:[{tag:"div",ref:"eBodyViewport",cls:"ag-body-viewport",role:"presentation",children:up(t,["left","center","right","fullWidth"])},{tag:"ag-fake-vertical-scroll"}]},{tag:"div",ref:"eStickyTop",cls:"ag-sticky-top",role:"presentation",children:up(t,["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"])},{tag:"div",ref:"eStickyBottom",cls:"ag-sticky-bottom",role:"presentation",children:up(t,["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"])},{tag:"div",ref:"eBottom",cls:"ag-floating-bottom",role:"presentation",children:up(t,["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"])},{tag:"ag-fake-horizontal-scroll"},e?{tag:"ag-overlay-wrapper"}:null]};return{paramsMap:t,elementParams:o}}var gp=class extends ps{constructor(){super(...arguments),this.eGridRoot=ds,this.eBodyViewport=ds,this.eStickyTop=ds,this.eStickyBottom=ds,this.eTop=ds,this.eBottom=ds,this.eBody=ds}postConstruct(){const{overlays:e,rangeSvc:t}=this.beans,o=e?.getOverlayWrapperSelector(),{paramsMap:i,elementParams:n}=hp(!!o);this.setTemplate(n,[...o?[o]:[],Tu,Bu,sp,cp],i);const s=(e,t)=>{const o=`${e}px`;t.style.minHeight=o,t.style.height=o},r={setRowAnimationCssOnBodyViewport:(e,t)=>this.setRowAnimationCssOnBodyViewport(e,t),setColumnCount:e=>X(this.getGui(),e),setRowCount:e=>j(this.getGui(),e),setTopHeight:e=>s(e,this.eTop),setBottomHeight:e=>s(e,this.eBottom),setTopInvisible:e=>this.eTop.classList.toggle("ag-invisible",e),setBottomInvisible:e=>this.eBottom.classList.toggle("ag-invisible",e),setStickyTopHeight:e=>this.eStickyTop.style.height=e,setStickyTopTop:e=>this.eStickyTop.style.top=e,setStickyTopWidth:e=>this.eStickyTop.style.width=e,setStickyBottomHeight:e=>{this.eStickyBottom.style.height=e,this.eStickyBottom.classList.toggle("ag-invisible","0px"===e)},setStickyBottomBottom:e=>this.eStickyBottom.style.bottom=e,setStickyBottomWidth:e=>this.eStickyBottom.style.width=e,setColumnMovingCss:(e,t)=>this.toggleCss(e,t),updateLayoutClasses:(e,t)=>{const o=[this.eBodyViewport.classList,this.eBody.classList];for(const i of o)i.toggle(Mc.AUTO_HEIGHT,t.autoHeight),i.toggle(Mc.NORMAL,t.normal),i.toggle(Mc.PRINT,t.print);this.toggleCss(Mc.AUTO_HEIGHT,t.autoHeight),this.toggleCss(Mc.NORMAL,t.normal),this.toggleCss(Mc.PRINT,t.print)},setAlwaysVerticalScrollClass:(e,t)=>this.eBodyViewport.classList.toggle(Ru,t),registerBodyViewportResizeListener:e=>{const t=We(this.beans,this.eBodyViewport,e);this.addDestroyFunc(()=>t())},setPinnedTopBottomOverflowY:e=>this.eTop.style.overflowY=this.eBottom.style.overflowY=e,setCellSelectableCss:(e,t)=>{for(const o of[this.eTop,this.eBodyViewport,this.eBottom])o.classList.toggle(e,t)},setBodyViewportWidth:e=>this.eBodyViewport.style.width=e,setGridRootRole:e=>P(this.eGridRoot,e)};this.ctrl=this.createManagedBean(new Fu),this.ctrl.setComp(r,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop,this.eStickyBottom),(t&&ui(this.gos)||wi(this.gos))&&q(this.getGui(),!0)}setRowAnimationCssOnBodyViewport(e,t){const o=this.eBodyViewport.classList;o.toggle("ag-row-animation",t),o.toggle("ag-row-no-animation",!t)}},pp={selector:"AG-GRID-BODY",component:gp},fp=class extends Ct{constructor(){super(...arguments),this.additionalFocusableContainers=new Set}setComp(e,t,o){this.view=e,this.eGridHostDiv=t,this.eGui=o,this.eGui.setAttribute("grid-id",this.beans.context.getId());const{dragAndDrop:i,ctrlsSvc:n}=this.beans;i?.registerGridDropTarget(()=>this.eGui,this),this.createManagedBean(new Ac(this.view)),this.view.setRtlClass(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr");const s=We(this.beans,this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(()=>s()),n.register("gridCtrl",this)}isDetailGrid(){const e=_r(this.getGui());return e?.getAttribute("row-id")?.startsWith("detail")||!1}getOptionalSelectors(){const e=this.beans;return{paginationSelector:e.pagination?.getPaginationSelector(),gridHeaderDropZonesSelector:e.registry?.getSelector("AG-GRID-HEADER-DROP-ZONES"),sideBarSelector:e.sideBar?.getSelector(),statusBarSelector:e.registry?.getSelector("AG-STATUS-BAR"),watermarkSelector:e.licenseManager?.getWatermarkSelector()}}onGridSizeChanged(){this.eventSvc.dispatchEvent({type:"gridSizeChanged",clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(e){const{view:t}=this;if(!1===e)t.setCursor(null);else{const o=1===e?"ew-resize":"ns-resize";t.setCursor(o)}}disableUserSelect(e){this.view.setUserSelect(e?"none":null)}focusNextInnerContainer(e){const t=this.getFocusableContainers(),{indexWithFocus:o,nextIndex:i}=this.getNextFocusableIndex(t,e);if(i<0||i>=t.length)return!1;if(0===i){if(o>0){const{visibleCols:e,focusSvc:t}=this.beans,o=e.allCols,i=tn(o);if(t.focusGridView({column:i,backwards:!0}))return!0}return!1}return this.focusContainer(t[i],e)}focusInnerElement(e){const t=this.gos.getCallback("focusGridInnerElement");if(t?.({fromBottom:!!e}))return!0;const o=this.getFocusableContainers(),{focusSvc:i,visibleCols:n}=this.beans,s=n.allCols;if(e){if(o.length>1)return this.focusContainer(tn(o),e);const t=tn(s);if(i.focusGridView({column:t,backwards:e}))return!0}if(0===this.gos.get("headerHeight")||sh(this.beans)){if(i.focusGridView({column:s[0],backwards:e}))return!0;for(let t=1;t<o.length;t++)if(zr(o[t].getGui(),e))return!0;return!1}return i.focusFirstHeader()}forceFocusOutOfContainer(e=!1){this.view.forceFocusOutOfContainer(e)}addFocusableContainer(e){this.additionalFocusableContainers.add(e)}removeFocusableContainer(e){this.additionalFocusableContainers.delete(e)}allowFocusForNextCoreContainer(e){const t=this.view.getFocusableContainers(),{nextIndex:o}=this.getNextFocusableIndex(t,e),i=t[o];i?this.focusContainer(i):this.forceFocusOutOfContainer(e)}isFocusable(){const e=this.beans;return!rh(e)||!sh(e)||!!e.sideBar?.comp?.isDisplayed()}getNextFocusableIndex(e,t){const o=m(this.beans),i=e.findIndex(e=>e.getGui().contains(o)),n=i+(t?-1:1);return{indexWithFocus:i,nextIndex:n}}focusContainer(e,t){e.setAllowFocus?.(!0);const o=zr(e.getGui(),t,!1,!0);return e.setAllowFocus?.(!1),o}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}destroy(){this.additionalFocusableContainers.clear(),super.destroy()}},mp=class extends Gg{constructor(e){super(),this.gridBody=ds,this.sideBar=ds,this.pagination=ds,this.rootWrapperBody=ds,this.eGridDiv=e}postConstruct(){const e={destroyGridUi:()=>this.destroyBean(this),setRtlClass:e=>this.addCss(e),forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:e=>{this.getGui().style.userSelect=null!=e?e:"",this.getGui().style.webkitUserSelect=null!=e?e:""},setCursor:e=>{this.getGui().style.cursor=null!=e?e:""}},t=this.createManagedBean(new fp),o=t.getOptionalSelectors(),i=this.createTemplate(o),n=[pp,...Object.values(o).filter(e=>!!e)];this.setTemplate(i,n),t.setComp(e,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:e=>t.focusInnerElement(e),forceFocusOutWhenTabGuardsAreEmpty:!0,isEmpty:()=>!t.isFocusable()})}insertGridIntoDom(){const e=this.getGui();this.eGridDiv.appendChild(e),this.addDestroyFunc(()=>{e.remove(),Ht(this.gos,"Grid removed from DOM")})}updateLayoutClasses(e,t){const o=this.rootWrapperBody.classList,{AUTO_HEIGHT:i,NORMAL:n,PRINT:s}=Mc,{autoHeight:r,normal:a,print:l}=t;o.toggle(i,r),o.toggle(n,a),o.toggle(s,l),this.toggleCss(i,r),this.toggleCss(n,a),this.toggleCss(s,l)}createTemplate(e){const t=e.gridHeaderDropZonesSelector?{tag:"ag-grid-header-drop-zones"}:null,o=e.sideBarSelector?{tag:"ag-side-bar",ref:"sideBar"}:null,i=e.statusBarSelector?{tag:"ag-status-bar"}:null,n=e.watermarkSelector?{tag:"ag-watermark"}:null,s=e.paginationSelector?{tag:"ag-pagination",ref:"pagination"}:null;return{tag:"div",cls:"ag-root-wrapper",role:"presentation",children:[t,{tag:"div",ref:"rootWrapperBody",cls:"ag-root-wrapper-body",role:"presentation",children:[{tag:"ag-grid-body",ref:"gridBody"},o]},i,s,n]}}getFocusableElement(){return this.rootWrapperBody}forceFocusOutOfContainer(e=!1){e||!this.pagination?.isDisplayed()?super.forceFocusOutOfContainer(e):this.pagination.forceFocusOutOfContainer(e)}getFocusableContainers(){const e=[this.gridBody];for(const t of[this.sideBar,this.pagination])t&&e.push(t);return e.filter(e=>Pe(e.getGui()))}},vp=(e,t)=>{for(const o of Object.keys(t))t[o]=e;return t},Cp={dispatchEvent:"CommunityCore",...vp("CommunityCore",{destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0,isModuleRegistered:0}),...vp("GridState",{getState:0,setState:0}),...vp("SharedRowSelection",{setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0}),...vp("RowApi",{redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRowIndex:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0}),...vp("ScrollApi",{getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0}),...vp("KeyboardNavigation",{getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0}),...vp("EventApi",{addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0}),...vp("ValueCache",{expireValueCache:0}),...vp("CellApi",{getCellValue:0}),...vp("SharedMenu",{showColumnMenu:0,hidePopupMenu:0}),...vp("Sort",{onSortChanged:0}),...vp("PinnedRow",{getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0,forEachPinnedRow:0}),...vp("Overlay",{showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0}),...vp("RenderApi",{setGridAriaProperty:0,refreshCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0}),...vp("HighlightChanges",{flashCells:0}),...vp("RowDrag",{addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0,getRowDropPositionIndicator:0,setRowDropPositionIndicator:0}),...vp("ColumnApi",{getColumnDefs:0,getColumnDef:0,getDisplayNameForColumn:0,getColumn:0,getColumns:0,applyColumnState:0,getColumnState:0,resetColumnState:0,isPinning:0,isPinningLeft:0,isPinningRight:0,getDisplayedColAfter:0,getDisplayedColBefore:0,setColumnsVisible:0,setColumnsPinned:0,getAllGridColumns:0,getDisplayedLeftColumns:0,getDisplayedCenterColumns:0,getDisplayedRightColumns:0,getAllDisplayedColumns:0,getAllDisplayedVirtualColumns:0}),...vp("ColumnAutoSize",{sizeColumnsToFit:0,autoSizeColumns:0,autoSizeAllColumns:0}),...vp("ColumnGroup",{setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumnGroup:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0}),...vp("ColumnMove",{moveColumnByIndex:0,moveColumns:0}),...vp("ColumnResize",{setColumnWidths:0}),...vp("ColumnHover",{isColumnHovered:0}),...vp("EditCore",{getCellEditorInstances:0,getEditingCells:0,getEditRowValues:0,stopEditing:0,startEditingCell:0,isEditing:0,validateEdit:0}),...vp("BatchEdit",{startBatchEdit:0,cancelBatchEdit:0,commitBatchEdit:0,isBatchEditing:0}),...vp("UndoRedoEdit",{undoCellEditing:0,redoCellEditing:0,getCurrentUndoSize:0,getCurrentRedoSize:0}),...vp("FilterCore",{isAnyFilterPresent:0,onFilterChanged:0}),...vp("ColumnFilter",{isColumnFilterPresent:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0,hideColumnFilter:0,getColumnFilterHandler:0,doFilterAction:0}),...vp("QuickFilter",{isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0}),...vp("Find",{findGetActiveMatch:0,findGetTotalMatches:0,findGoTo:0,findNext:0,findPrevious:0,findGetNumMatches:0,findGetParts:0,findClearActive:0,findRefresh:0}),...vp("Pagination",{paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0}),...vp("CsrmSsrmSharedApi",{expandAll:0,collapseAll:0}),...vp("SsrmInfiniteSharedApi",{setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0}),...vp("ClientSideRowModelApi",{onGroupExpandedOrCollapsed:0,refreshClientSideRowModel:0,isRowDataEmpty:0,forEachLeafNode:0,forEachNodeAfterFilter:0,forEachNodeAfterFilterAndSort:0,applyTransaction:0,applyTransactionAsync:0,flushAsyncTransactions:0,getBestCostNodeSelection:0,onRowHeightChanged:0,resetRowHeights:0}),...vp("CsvExport",{getDataAsCsv:0,exportDataAsCsv:0}),...vp("InfiniteRowModel",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0}),...vp("AdvancedFilter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0}),...vp("IntegratedCharts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0}),...vp("Clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0}),...vp("ExcelExport",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0}),...vp("SharedMasterDetail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0}),...vp("ContextMenu",{showContextMenu:0}),...vp("ColumnMenu",{showColumnChooser:0,hideColumnChooser:0}),...vp("CellSelection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0}),...vp("SharedRowGrouping",{setRowGroupColumns:0,removeRowGroupColumns:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0}),...vp("SharedAggregation",{addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0}),...vp("SharedPivot",{isPivotMode:0,getPivotResultColumn:0,setValueColumns:0,getValueColumns:0,removeValueColumns:0,addValueColumns:0,setPivotColumns:0,removePivotColumns:0,addPivotColumns:0,getPivotColumns:0,setPivotResultColumns:0,getPivotResultColumns:0}),...vp("ServerSideRowModelApi",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0,onRowHeightChanged:0,resetRowHeights:0}),...vp("SideBar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0}),...vp("StatusBar",{getStatusPanel:0}),...vp("AiToolkit",{getStructuredSchema:0})},wp={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},bp=(e,t)=>e.eventSvc.dispatchEvent(t),yp=class{};Reflect.defineProperty(yp,"name",{value:"GridApi"});var Sp=class extends Ct{constructor(){super(),this.beanName="apiFunctionSvc",this.api=new yp,this.fns={...wp,dispatchEvent:bp},this.preDestroyLink="";const{api:e}=this;for(const t of Object.keys(Cp))e[t]=this.makeApi(t)[t]}postConstruct(){this.preDestroyLink=this.beans.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(e,t){const{fns:o,beans:i}=this;o!==wp&&(o[e]=i?.validation?.validateApiFunction(e,t)??t)}makeApi(e){return{[e]:(...t)=>{const{beans:o,fns:{[e]:i}}=this;return i?i(o,...t):this.apiNotFound(e)}}}apiNotFound(e){const{beans:t,gos:o,preDestroyLink:i}=this;if(t){const t=Cp[e];o.assertModuleRegistered(t,`api.${e}`)&&xo(27,{fnName:e,module:t})}else xo(26,{fnName:e,preDestroyLink:i})}destroy(){super.destroy(),this.fns=wp,this.beans=null}};function Rp(e){return e.context.getId()}function xp(e){e.gridDestroySvc.destroy()}function Ep(e){return e.gridDestroySvc.destroyCalled}function Fp(e,t){return e.gos.get(t)}function Pp(e,t,o){Dp(e,{[t]:o})}function Dp(e,t){e.gos.updateGridOptions({options:t})}function kp(e,t){const o=t.replace(/Module$/,"");return e.gos.isModuleRegistered(o)}var Mp={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{draggable:"true"}},Ap=class extends ps{constructor(e,t,o){super(Mp),this.rowNode=e,this.column=t,this.eCell=o}postConstruct(){const e=this.getGui();e.appendChild(Uh("rowDrag",this.beans,null)),this.addGuiEventListener("mousedown",e=>{e.stopPropagation()}),this.addDragSource(),this.checkVisibility()}addDragSource(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))}onDragStart(e){const{rowNode:t,column:o,eCell:i,gos:n}=this,s=o.getColDef().dndSourceOnRowDrag,r=e.dataTransfer;if(r.setDragImage(i,0,0),s){const o=Ti(n,{rowNode:t,dragEvent:e});s(o)}else try{const e=JSON.stringify(t.data);r.setData("application/json",e),r.setData("text/plain",e)}catch(a){}}checkVisibility(){const e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)}};function Tp(e,t){e.rowDragSvc?.rowDragFeature?.addRowDropZone(t)}function Ip(e,t){const o=e.dragAndDrop?.findExternalZone(t.getContainer());o&&e.dragAndDrop?.removeDropTarget(o)}function Lp(e,t){return e.rowDragSvc?.rowDragFeature?.getRowDropZone(t)}function Bp(e){const t=e.rowDropHighlightSvc;return t?{row:t.row,dropIndicatorPosition:t.position}:{row:null,dropIndicatorPosition:"none"}}function Op(e,t){const o=e.rowDropHighlightSvc;if(!o)return;const i=t?.row;let n=t?.dropIndicatorPosition;"above"!==n&&"below"!==n&&"inside"!==n&&(n="none");const s=i?.rowIndex;null===s||void 0===s||"none"===n?o.clear():o.set(i,n)}var Hp=class extends Rd{shouldPreventMouseEvent(e){const t=this.gos.get("enableCellTextSelection");return t&&super.shouldPreventMouseEvent(e)}},Vp=class extends Ct{constructor(){super(...arguments),this.beanName="horizontalResizeSvc"}addResizeBar(e){const t={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e),onDragCancel:this.onDragStop.bind(this,e),includeTouch:!0,stopPropagationForTouch:!0},{dragSvc:o}=this.beans;o.addDragSource(t);const i=()=>o.removeDragSource(t);return i}onDragStart(e,t){this.dragStartX=t.clientX,this.setResizeIcons();const o=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(o)}setResizeIcons(){const e=this.beans.ctrlsSvc.get("gridCtrl");e.setResizeCursor(1),e.disableUserSelect(!0)}onDragStop(e){e.onResizeEnd(this.resizeAmount),this.resetIcons()}resetIcons(){const e=this.beans.ctrlsSvc.get("gridCtrl");e.setResizeCursor(!1),e.disableUserSelect(!1)}onDragging(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)}},Gp={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{"aria-hidden":"true"}},Np={skipAriaHidden:!0},zp=class extends ps{constructor(e,t,o,i,n,s=!1){super(),this.cellValueFn=e,this.rowNode=t,this.column=o,this.customGui=i,this.dragStartPixels=n,this.alwaysVisible=s,this.dragSource=null,this.disabled=!1}isCustomGui(){return null!=this.customGui}postConstruct(){const{beans:e,customGui:t}=this;t?this.setDragElement(t,this.dragStartPixels):(this.setTemplate(Gp),this.getGui().appendChild(Uh("rowDrag",e,null)),this.addDragSource()),this.alwaysVisible||this.initCellDrag()}initCellDrag(){const{beans:e,rowNode:t}=this,o=this.refreshVisibility.bind(this);this.addManagedListeners(e.eventSvc,{rowDragVisibilityChanged:o}),this.addManagedListeners(t,{dataChanged:o,cellChanged:o}),this.refreshVisibility()}setDragElement(e,t){this.setTemplateFromElement(e,void 0,void 0,!0),this.addDragSource(t)}refreshVisibility(){if(this.alwaysVisible)return;const{beans:e,column:t,rowNode:o}=this,{gos:i,dragAndDrop:n,rowDragSvc:s}=e,r=s?.visibility,a="suppress"===r||"hidden"===r&&!n?.hasExternalDropZones();let l=!a,d=l;if(l&&!this.isCustomGui()&&t){const e=t.getColDef().rowDrag;if(!1===e)l=!1;else{const i="function"===typeof e;d=t.isRowDrag(o),l=i||d}}l&&d&&o.footer&&i.get("rowDragManaged")&&(d=!1,l=!0),d&&(d=l),l||this.setDisplayed(l,Np),d||this.setVisible(d,Np),this.setDisabled(!d||"disabled"===r&&!n?.hasExternalDropZones()),l&&this.setDisplayed(l,Np),d&&this.setVisible(d,Np)}setDisabled(e){e!==this.disabled&&(this.disabled=e,this.getGui()?.classList?.toggle("ag-drag-handle-disabled",e))}getSelectedNodes(){const e=this.rowNode,t=this.gos.get("rowDragMultiRow");if(!t)return[e];const o=this.beans.selectionSvc?.getSelectedNodes()??[];return-1!==o.indexOf(e)?o:[e]}getDragItem(){const{column:e,rowNode:t}=this;return{rowNode:t,rowNodes:this.getSelectedNodes(),columns:e?[e]:void 0,defaultTextValue:this.cellValueFn()}}addDragSource(e=4){if(this.dragSource&&this.removeDragSource(),this.gos.get("rowDragManaged")&&this.rowNode.footer)return;const t=this.getGui();this.gos.get("enableCellTextSelection")&&(this.removeMouseDownListener(),this.mouseDownListener=this.addManagedElementListeners(t,{mousedown:e=>{e?.preventDefault()}})[0]);const o=this.getLocaleTextFunc();this.dragSource={type:2,eElement:t,dragItemName:e=>this.getDragItemName(e,o),getDragItem:()=>this.getDragItem(),dragStartPixels:e,dragSourceDomDataKey:this.gos.getDomDataKey()},this.beans.dragAndDrop.addDragSource(this.dragSource,!0)}getDragItemName(e,t){const o=e?.dragItem||this.getDragItem(),i=(e?.dropTarget?.rows.length??o.rowNodes?.length)||1,n=this.column?.getColDef()?.rowDragText??this.gos.get("rowDragText");if(n)return n(o,i);if(1!==i)return`${i} ${t("rowDragRows","rows")}`;const s=this.cellValueFn();return s||`1 ${t("rowDragRow","rows")}`}destroy(){this.removeDragSource(),this.removeMouseDownListener(),super.destroy()}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop.removeDragSource(this.dragSource),this.dragSource=null)}removeMouseDownListener(){this.mouseDownListener&&(this.mouseDownListener(),this.mouseDownListener=void 0)}},Wp=class{constructor(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}depthFirstSearchChangedPath(e,t){const{rowNode:o,children:i}=e;if(i)for(let n=0;n<i.length;++n)this.depthFirstSearchChangedPath(i[n],t);t(o)}depthFirstSearchEverything(e,t,o){const i=e.childrenAfterGroup;if(i)for(let n=0,s=i.length;n<s;++n){const e=i[n];e.childrenAfterGroup?this.depthFirstSearchEverything(e,t,o):o&&t(e)}t(e)}forEachChangedNodeDepthFirst(e,t=!1,o=!1){this.active&&!o?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)}executeFromRootNode(e){e(this.pathRoot.rowNode)}createPathItems(e){let t=e,o=0;while(!this.mapToItems[t.id]){const e={rowNode:t,children:null};this.mapToItems[t.id]=e,o++,t=t.parent}return o}populateColumnsMap(e,t){if(!this.keepingColumns||!t)return;let o=e;while(o){this.nodeIdsToColumns[o.id]||(this.nodeIdsToColumns[o.id]={});for(const e of t)this.nodeIdsToColumns[o.id][e.getId()]=!0;o=o.parent}}linkPathItems(e,t){let o=e;for(let i=0;i<t;i++){const e=this.mapToItems[o.id],t=this.mapToItems[o.parent.id];t.children||(t.children=[]),t.children.push(e),o=o.parent}}addParentNode(e,t){if(!e||e.isRowPinned())return;const o=this.createPathItems(e);this.linkPathItems(e,o),this.populateColumnsMap(e,t)}canSkip(e){return this.active&&!this.mapToItems[e.id]}getValueColumnsForNode(e,t){if(!this.keepingColumns)return t;const o=this.nodeIdsToColumns[e.id],i=t.filter(e=>o[e.getId()]);return i}getNotValueColumnsForNode(e,t){if(!this.keepingColumns)return null;const o=this.nodeIdsToColumns[e.id],i=t.filter(e=>!o[e.getId()]);return i}},_p=.25,Up=class extends Ct{constructor(e){super(),this.eContainer=e,this.lastDraggingEvent=null,this.autoScroll=null,this.autoScrollChanged=!1,this.autoScrollChanging=!1,this.autoScrollOldV=null}postConstruct(){const e=this.beans;e.ctrlsSvc.whenReady(this,t=>{const o=()=>t.gridBodyCtrl.scrollFeature.getVScrollPosition().top,i=new Kr({scrollContainer:t.gridBodyCtrl.eBodyViewport,scrollAxis:"y",getVerticalPosition:o,setVerticalPosition:e=>t.gridBodyCtrl.scrollFeature.setVerticalScrollPosition(e),onScrollCallback:()=>{const t=o();if(this.autoScrollOldV!==t)return this.autoScrollOldV=t,void(this.autoScrollChanging=!0);const i=this.autoScrollChanging;this.autoScrollChanged=i,this.autoScrollChanging=!1,i&&(e.dragAndDrop?.nudge(),this.autoScrollChanged=!1)}});this.autoScroll=i,this.clearAutoScroll()})}destroy(){super.destroy(),this.clearAutoScroll(),this.autoScroll=null,this.lastDraggingEvent=null,this.eContainer=null}getContainer(){return this.eContainer}isInterestedIn(e){return 2===e}getIconName(e){return!1===e?.dropTarget?.allowed||"visible"!==this.beans.rowDragSvc.visibility?"notAllowed":"move"}getRowNodes(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];const t=e.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){const e=this.beans.selectionSvc?.getSelectedNodes();if(e&&e.indexOf(t)>=0)return e.slice().sort(qp)}return[t]}onDragEnter(e){this.dragging(e,!0)}onDragging(e){this.dragging(e,!1)}dragging(e,t){const{lastDraggingEvent:o,beans:i}=this;if(t){const t=this.getRowNodes(e);e.dragItem.rowNodes=t,jp(t,!0)}this.lastDraggingEvent=e;const n=e.fromNudge,s=this.makeRowsDrop(o,e,n,!1);i.rowDropHighlightSvc?.fromDrag(e),t&&this.dispatchGridEvent("rowDragEnter",e),this.dispatchGridEvent("rowDragMove",e);const r=this.autoScroll;s?.rowDragManaged&&s.moved&&s.allowed&&s.sameGrid&&!s.suppressMoveWhenRowDragging&&(!n&&!r?.scrolling||this.autoScrollChanged)&&this.dropRows(s),r?.check(e.event)}isFromThisGrid(e){return e.dragSource.dragSourceDomDataKey===this.gos.getDomDataKey()}makeRowsDrop(e,t,o,i){const{beans:n,gos:s}=this,r=this.newRowsDrop(t,i),a=n.rowModel;if(t.dropTarget=r,t.changed=!1,!r)return null;let{sameGrid:l,rootNode:d,source:c,target:u}=r;u??(u=a.getRow(a.getRowCount()-1)??null);const h=this.beans.groupEditSvc,g=!!h?.canSetParent(r);let p=null;if(u?.footer){const e=_d(a,-1,u)??_d(a,1,u);g&&(p=u.sibling??d),u=e??null}u?.detail&&(u=u.parent),r.moved&&(r.moved=c!==u);let f=.5;if(u&&(f=l&&r.moved&&(p||!g)?c.rowIndex>u.rowIndex?-.5:.5:(r.y-u.rowTop-u.rowHeight/2)/u.rowHeight||0),!g&&l&&u&&r.moved&&To(s)){const e=Kp(a,r);e&&(f=c.rowIndex>e.rowIndex?-.5:.5,u=e,r.moved&&(r.moved=c!==u))}return r.target=u,r.newParent=p,r.pointerPos=Qp(u,r.y),r.yDelta=f,h?.fixRowsDrop(r,g,o,f),this.validateRowsDrop(r,g,i),t.changed||(t.changed=$p(e?.dropTarget,r)),r}newRowsDrop(e,t){const{beans:o,gos:i}=this,n=o.rowModel.rootNode,s=!!To(i)&&i.get("rowDragManaged"),r=i.get("suppressMoveWhenRowDragging"),a=this.isFromThisGrid(e);let{rowNode:l,rowNodes:d}=e.dragItem;if(d||(d=l?[l]:[]),l||(l=d[0]),!l||!n)return null;const c=this.beans.dragAndDrop.isDropZoneWithinThisGrid(e);let u=!0;!s||d.length&&"visible"===o.rowDragSvc.visibility&&(!r&&a||c)||(u=!1);const h=Du(o,e).y,g=this.getOverNode(h);return{api:o.gridApi,context:o.gridOptions.context,draggingEvent:e,rowDragManaged:s,suppressMoveWhenRowDragging:r,sameGrid:a,withinGrid:c,treeData:!1,rootNode:n,moved:l!==g,y:h,overNode:g,overIndex:g?.rowIndex??-1,pointerPos:"none",position:"none",source:l,target:g??null,newParent:null,rows:d,allowed:u,highlight:!t&&s&&r&&(c||!a),yDelta:0,inside:!1,droppedManaged:!1}}validateRowsDrop(e,t,o){const{source:i,target:n,yDelta:s,inside:r,moved:a,rowDragManaged:l,suppressMoveWhenRowDragging:d}=e;e.moved&&(e.moved=i!==n);const{position:c,fallbackPosition:u}=this.computeDropPosition(a,r,s);e.position=c,t||(e.newParent=null),this.enforceSuppressMoveWhenRowDragging(e,d,"initial");const h=(!l||e.allowed)&&this.gos.get("isRowValidDropPosition");h&&this.applyDropValidator(e,t,o,l,h),l&&(e.rows=this.filterRows(e)),this.beans.groupEditSvc?.clearNewSameParent(e,t),this.enforceSuppressMoveWhenRowDragging(e,d,"final"),"inside"!==e.position||e.allowed&&e.newParent||(e.position=u)}computeDropPosition(e,t,o){const i=o<0?"above":"below";return e?{position:t?"inside":i,fallbackPosition:i}:{position:"none",fallbackPosition:i}}enforceSuppressMoveWhenRowDragging(e,t,o){t&&("initial"!==o?e.rows.length&&"none"!==e.position||(e.allowed=!1):e.moved||(e.allowed=!1))}applyDropValidator(e,t,o,i,n){this.beans.groupEditSvc?.clearNewSameParent(e,t);const s=n(e);if(!s)return void(e.allowed=!1);if("object"!==typeof s)return;void 0!==s.rows&&(e.rows=s.rows??[]),t&&void 0!==s.newParent&&(e.newParent=s.newParent),void 0!==s.target&&(e.target=s.target),s.position&&(e.position=s.position),void 0!==s.allowed?e.allowed=s.allowed:i||(e.allowed=!0);const r=e.draggingEvent;s.changed&&r&&(r.changed=!0),o||void 0===s.highlight||(e.highlight=s.highlight)}addRowDropZone(e){if(!e.getContainer())return void xo(55);const t=this.beans.dragAndDrop;if(t.findExternalZone(e.getContainer()))return void xo(56);const o=e.fromGrid?e:{getContainer:e.getContainer,onDragEnter:e.onDragEnter&&(t=>e.onDragEnter(this.rowDragEvent("rowDragEnter",t))),onDragLeave:e.onDragLeave&&(t=>e.onDragLeave(this.rowDragEvent("rowDragLeave",t))),onDragging:e.onDragging&&(t=>e.onDragging(this.rowDragEvent("rowDragMove",t))),onDragStop:e.onDragStop&&(t=>e.onDragStop(this.rowDragEvent("rowDragEnd",t))),onDragCancel:e.onDragCancel&&(t=>e.onDragCancel(this.rowDragEvent("rowDragCancel",t)))},i={isInterestedIn:e=>2===e,getIconName:()=>"move",external:!0,...o};t.addDropTarget(i),this.addDestroyFunc(()=>t.removeDropTarget(i))}getRowDropZone(e){const t={getContainer:this.getContainer.bind(this),onDragEnter:t=>{this.onDragEnter(t),e?.onDragEnter?.(this.rowDragEvent("rowDragEnter",t))},onDragLeave:t=>{this.onDragLeave(t),e?.onDragLeave?.(this.rowDragEvent("rowDragLeave",t))},onDragging:t=>{this.onDragging(t),e?.onDragging?.(this.rowDragEvent("rowDragMove",t))},onDragStop:t=>{this.onDragStop(t),e?.onDragStop?.(this.rowDragEvent("rowDragEnd",t))},onDragCancel:t=>{this.onDragCancel(t),e?.onDragCancel?.(this.rowDragEvent("rowDragCancel",t))},fromGrid:!0};return t}getOverNode(e){const{pageBounds:t,rowModel:o}=this.beans,i=e>t.getCurrentPagePixelRange().pageLastPixel,n=i?-1:o.getRowIndexAtPixel(e);return n>=0?o.getRow(n):void 0}rowDragEvent(e,t){const o=this.beans,{dragItem:i,dropTarget:n,event:s,vDirection:r}=t,a=n?.rootNode===o.rowModel.rootNode,l=a?n.y:Du(o,t).y,d=a?n.overNode:this.getOverNode(l),c=a?n.overIndex:d?.rowIndex??-1;return{api:o.gridApi,context:o.gridOptions.context,type:e,event:s,node:i.rowNode,nodes:i.rowNodes,overIndex:c,overNode:d,y:l,vDirection:r,rowsDrop:n}}dispatchGridEvent(e,t){const o=this.rowDragEvent(e,t);this.eventSvc.dispatchEvent(o)}onDragLeave(e){this.dispatchGridEvent("rowDragLeave",e),this.stopDragging(e,!1)}onDragStop(e){const t=this.lastDraggingEvent?.dropTarget??null,o=this.makeRowsDrop(this.lastDraggingEvent,e,!1,!0);this.dispatchGridEvent("rowDragEnd",e),o?.allowed&&o.rowDragManaged&&(!t?.droppedManaged||$p(t,o))&&this.dropRows(o),this.stopDragging(e,!0)}onDragCancel(e){this.dispatchGridEvent("rowDragCancel",e),this.stopDragging(e,!0)}stopDragging(e,t){this.clearAutoScroll(),this.beans.groupEditSvc?.stopDragging(t),this.beans.rowDropHighlightSvc?.fromDrag(null),jp(e.dragItem.rowNodes,!1),this.lastDraggingEvent=null}clearAutoScroll(){this.autoScroll?.ensureCleared(),this.autoScrollChanged=!1,this.autoScrollChanging=!1,this.autoScrollOldV=null}dropRows(e){return e.droppedManaged=!0,e.sameGrid?this.csrmMoveRows(e):this.csrmAddRows(e)}csrmAddRows({position:e,target:t,rows:o}){const i=ei(this.gos),n=this.beans.rowModel,s=o.filter(({data:e,rowPinned:t})=>!n.getRowNode(i?.({data:e,level:0,rowPinned:t})??e.id)).map(({data:e})=>e);if(0===s.length)return!1;let r;if(t){const o=t.sourceRowIndex>=0?t:Fg(t);o&&(r=o.sourceRowIndex+("above"===e?0:1))}return n.updateRowData({add:s,addIndex:r}),!0}filterRows(e){const{groupEditSvc:t}=this.beans,{rows:o,sameGrid:i}=e;let n;for(let s=0,r=o.length;s<r;++s){let r=!0;const a=o[s];(!a||a.footer||i&&a.destroyed&&!a.group||!this.csrmGetLeaf(a))&&(r=!1),r&&t&&!t.canDropRow(a,e)&&(r=!1),r?n?.push(a):n??(n=o.slice(0,s))}return n??o}csrmMoveRows(e){const t=this.beans.groupEditSvc;return t?.isGroupingDrop(e)?t.dropGroupEdit(e):this.csrmMoveRowsReorder(e)}csrmMoveRowsReorder({position:e,target:t,rows:o,newParent:i,rootNode:n}){let s=!1;const r=new Set;for(const h of o){i&&h.parent!==i&&(h.treeParent=i,s=!0);const e=this.csrmGetLeaf(h);e&&r.add(e)}if(!s&&0===r.size)return!1;const a=this.beans.focusSvc,l=a.getFocusedCell(),d=l&&Xu(this.beans,l);if(r.size&&Pg(n._leafs,r,t,"above"===e)&&(s=!0),!s)return!1;const c=this.beans.rowModel,u=new Dg;return u.reordered=!0,c.refreshModel({step:"group",keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedPath:new Wp(!1,n),changedRowNodes:u}),d?d.focusCell():a.clearFocusedCell(),!0}csrmGetLeaf(e){if(e.sourceRowIndex>=0)return e.destroyed?void 0:e;const t=this.beans.groupEditSvc;return t?t.csrmFirstLeaf(e):Fg(e)}},$p=(e,t)=>e!==t&&(!e||e.sameGrid!==t.sameGrid||e.allowed!==t.allowed||e.position!==t.position||e.target!==t.target||e.source!==t.source||e.newParent!==t.newParent||!on(e.rows,t.rows)),qp=({rowIndex:e},{rowIndex:t})=>null!==e&&null!==t?e-t:0,jp=(e,t)=>{for(let o=0,i=e?.length||0;o<i;++o){const i=e[o];i.dragging!==t&&(i.dragging=t,i.dispatchRowEvent("draggingChanged"))}},Kp=(e,t)=>{let o=null,i=t.target;if(i&&t.rows.indexOf(i)<0)return null;const n=t.source;if(!i||!n)return null;let s=i.rowIndex-n.rowIndex;const r=s<0?-1:1;s=t.suppressMoveWhenRowDragging?Math.abs(s):1;const a=new Set(t.rows);do{const t=_d(e,r,i);if(!t)break;a.has(t)||(o=t,--s),i=t}while(s>0);return o},Qp=(e,t)=>{const o=e?.rowTop,i=e?.rowHeight??0;if(null==o||!i||i<=0)return"none";const n=t-o,s=i*_p;return n<=s?"above":n>=i-s?"below":"inside"},Xp=class extends Ct{constructor(){super(...arguments),this.beanName="rowDragSvc",this.rowDragFeature=null,this.visibility="suppress"}setupRowDrag(e,t){const o=t.createManagedBean(new Up(e)),i=this.beans.dragAndDrop;i.addDropTarget(o),t.addDestroyFunc(()=>i.removeDropTarget(o)),this.rowDragFeature=o;const n=()=>this.refreshVisibility();this.addManagedPropertyListeners(["rowDragManaged","suppressRowDrag","refreshAfterGroupEdit"],n),this.addManagedEventListeners({newColumnsLoaded:n,columnRowGroupChanged:n,columnPivotModeChanged:n,sortChanged:n,filterChanged:n}),this.visibility=this.computeVisibility()}createRowDragComp(e,t,o,i,n,s){return new zp(e,t,o,i,n,s)}createRowDragCompForRow(e,t){if(ui(this.gos))return;const o=this.getLocaleTextFunc();return this.createRowDragComp(()=>`1 ${o("rowDragRow","row")}`,e,void 0,t,void 0,!0)}createRowDragCompForCell(e,t,o,i,n,s){const r=this.gos;if(r.get("rowDragManaged")&&(!To(r)||r.get("pagination")))return;const a=this.createRowDragComp(o,e,t,i,n,s);return a}cancelRowDrag(){this.rowDragFeature?.lastDraggingEvent&&this.beans.dragSvc?.cancelDrag()}computeVisibility(){const e=this.beans,t=e.gos;if(t.get("suppressRowDrag"))return"suppress";const o=t.get("rowDragManaged");if(!o)return"visible";const i=e.colModel.isPivotMode();return!i&&!e.rowGroupColsSvc?.columns?.length||t.get("refreshAfterGroupEdit")?i||e.filterManager?.isAnyFilterPresent()||e.sortSvc?.isSortActive()?"disabled":"visible":"hidden"}refreshVisibility(){const e=this.visibility,t=this.computeVisibility();e!==t&&(this.visibility=t,this.eventSvc?.dispatchEvent({type:"rowDragVisibilityChanged"}))}},Yp=class extends Ct{constructor(){super(...arguments),this.beanName="rowDropHighlightSvc",this.uiLevel=0,this.dragging=!1,this.row=null,this.position="none"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this)})}onModelUpdated(){const e=this.row,t=this.dragging;e&&null!==e?.rowIndex&&"none"!==this.position?this.set(e,this.position):this.clear(),this.dragging=t}destroy(){this.clear(),super.destroy()}clear(){const e=this.row;this.dragging=!1,e&&(this.uiLevel=0,this.position="none",this.row=null,e.dispatchRowEvent("rowHighlightChanged"))}set(e,t){const o=e!==this.row,i=e.uiLevel,n=t!==this.position,s=i!==this.uiLevel;this.dragging=!1,(o||n||s)&&(o&&this.clear(),this.uiLevel=i,this.position=t,this.row=e,e.dispatchRowEvent("rowHighlightChanged"))}fromDrag(e){const t=e?.dropTarget;if(t){const{highlight:e,target:o,position:i}=t;if(e&&o&&"none"!==i)return this.set(o,i),void(this.dragging=!0)}this.dragging&&this.clear()}},Zp={moduleName:"Drag",version:ro,beans:[Hp]},Jp={moduleName:"DragAndDrop",version:ro,dynamicBeans:{dndSourceComp:Ap},icons:{rowDrag:"grip"}},ef={moduleName:"SharedDragAndDrop",version:ro,beans:[Ad],dependsOn:[Zp],userComponents:{agDragAndDropImage:tg},icons:{columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",rowDrag:"grip"}},tf={moduleName:"RowDrag",version:ro,beans:[Yp,Xp],apiFunctions:{addRowDropZone:Tp,removeRowDropZone:Ip,getRowDropZoneParams:Lp,getRowDropPositionIndicator:Bp,setRowDropPositionIndicator:Op},dependsOn:[ef]},of={moduleName:"HorizontalResize",version:ro,beans:[Vp],dependsOn:[Zp]},nf=":where(.ag-ltr) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:left .2s}.ag-header-group-cell{transition:left .2s,width .2s}}:where(.ag-rtl) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:right .2s}.ag-header-group-cell{transition:right .2s,width .2s}}",sf=class extends Ct{constructor(){super(...arguments),this.beanName="colAnimation",this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.activeNext=!1,this.suppressAnimation=!1,this.animationThreadCount=0}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>this.gridBodyCtrl=e.gridBodyCtrl)}isActive(){return this.active&&!this.suppressAnimation}setSuppressAnimation(e){this.suppressAnimation=e}start(){if(this.active)return;const{gos:e}=this;e.get("suppressColumnMoveAnimation")||e.get("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0,this.activeNext=!0)}finish(){this.active&&this.flush(()=>this.activeNext=!1,()=>this.active=!1)}executeNextVMTurn(e){this.activeNext?this.executeNextFuncs.push(e):e()}executeLaterVMTurn(e){this.active?this.executeLaterFuncs.push(e):e()}ensureAnimationCssClassPresent(){this.animationThreadCount++;const e=this.animationThreadCount,{gridBodyCtrl:t}=this;t.setColumnMovingCss(!0),this.executeLaterFuncs.push(()=>{this.animationThreadCount===e&&t.setColumnMovingCss(!1)})}flush(e,t){const{executeNextFuncs:o,executeLaterFuncs:i}=this;if(0===o.length&&0===i.length)return e(),void t();const n=e=>{while(e.length){const t=e.pop();t&&t()}};this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e(),n(o)},0),window.setTimeout(()=>{t(),n(i)},200)})}};function rf(e,t,o){e.colMoves?.moveColumnByIndex(t,o,"api")}function af(e,t,o){e.colMoves?.moveColumns(t,o,"api")}var lf=class extends Ct{constructor(e){super(),this.pinned=e,this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[]}onDragEnter(e){if(this.clearColumnsList(),this.gos.get("functionsReadOnly"))return;const t=e.dragItem.columns;if(t)for(const o of t)o.isPrimary()&&(o.isAnyFunctionActive()||(o.isAllowValue()?this.columnsToAggregate.push(o):o.isAllowRowGroup()?this.columnsToGroup.push(o):o.isAllowPivot()&&this.columnsToPivot.push(o)))}getIconName(){const e=this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length;return e>0?this.pinned?"pinned":"move":null}onDragLeave(e){this.clearColumnsList()}clearColumnsList(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0}onDragging(e){}onDragStop(e){const{valueColsSvc:t,rowGroupColsSvc:o,pivotColsSvc:i}=this.beans;this.columnsToAggregate.length>0&&t?.addColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&o?.addColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&i?.addColumns(this.columnsToPivot,"toolPanelDragAndDrop")}onDragCancel(){this.clearColumnsList()}};function df(e,t){if(!t||t.length<=1)return;const o=t.filter(t=>e.indexOf(t)<0).length>0;o||t.sort((t,o)=>{const i=e.indexOf(t),n=e.indexOf(o);return i-n})}function cf(e){const t=[...e];for(const o of e){let e=null,i=o.getParent();while(null!=i&&1===i.getDisplayedLeafColumns().length)e=i,i=i.getParent();if(null!=e){const o=!!e.getColGroupDef()?.marryChildren,i=o?e.getProvidedColumnGroup().getLeafColumns():e.getLeafColumns();for(const e of i)t.includes(e)||t.push(e)}}return t}function uf(e,t,o,i){const n=i.allCols;let s=null,r=null;for(let a=0;a<e.length;a++){const i=e[a],l=o.getProposedColumnOrder(t,i);if(!o.doesOrderPassRules(l))continue;const d=l.filter(e=>n.includes(e));if(null===r)r=d;else if(!on(d,r))break;const c=ff(l);(null===s||c<s.fragCount)&&(s={move:i,fragCount:c})}return s}function hf(e){const{isFromHeader:t,fromLeft:o,xPosition:i,fromEnter:n,fakeEvent:s,pinned:r,gos:a,colModel:l,colMoves:d,visibleCols:c}=e;let{allMovingColumns:u}=e;t&&(u=cf(u));const h=u.slice();df(l.getCols(),h);const g=vf({movingCols:h,draggingRight:o,xPosition:i,pinned:r,gos:a,colModel:l,visibleCols:c}),p=pf(h,l);if(0===g.length)return;const f=g[0],m=null!==p&&(t||!n);if(m&&!s){if(!o&&f>=p)return;if(o&&f<=p)return}const v=uf(g,h,d,c);if(!v)return;const C=v.move;return C>l.getCols().length-h.length?void 0:{columns:h,toIndex:C}}function gf(e){const{columns:t,toIndex:o}=hf(e)||{},{finished:i,colMoves:n}=e;return t&&null!=o?(n.moveColumns(t,o,"uiColumnMoved",i),i?null:{columns:t,toIndex:o}):null}function pf(e,t){const o=t.getCols(),i=e.map(e=>o.indexOf(e)).sort((e,t)=>e-t),n=i[0],s=tn(i),r=s-n,a=r!==i.length-1;return a?null:n}function ff(e){function t(e){const t=[];let o=e.getOriginalParent();while(null!=o)t.push(o),o=o.getOriginalParent();return t}let o=0;for(let i=0;i<e.length-1;i++){let n=t(e[i]),s=t(e[i+1]);[n,s]=n.length>s.length?[n,s]:[s,n];for(const e of n)-1===s.indexOf(e)&&o++}return o}function mf(e,t){switch(t){case"left":return e.leftCols;case"right":return e.rightCols;default:return e.centerCols}}function vf(e){const{movingCols:t,draggingRight:o,xPosition:i,pinned:n,gos:s,colModel:r,visibleCols:a}=e,l=s.get("suppressMovableColumns")||t.some(e=>e.getColDef().suppressMovable);if(l)return[];const d=mf(a,n),c=r.getCols(),u=d.filter(e=>t.includes(e)),h=d.filter(e=>!t.includes(e)),g=c.filter(e=>!t.includes(e));let p,f=0,m=i;if(o){let e=0;for(const t of u)e+=t.getActualWidth();m-=e}if(m>0){for(let e=0;e<h.length;e++){const t=h[e];if(m-=t.getActualWidth(),m<0)break;f++}o&&f++}if(f>0){const e=h[f-1];p=g.indexOf(e)+1}else p=g.indexOf(h[0]),-1===p&&(p=0);const v=[p],C=(e,t)=>e-t;if(o){let e=p+1;const t=c.length-1;while(e<=t)v.push(e),e++;v.sort(C)}else{let e=p;const t=c.length-1;let o=c[e];while(e<=t&&d.indexOf(o)<0)e++,v.push(e),o=c[e];e=p-1;const i=0;while(e>=i)v.push(e),e--;v.sort(C).reverse()}return v}function Cf(e){const{pinned:t,fromKeyboard:o,gos:i,ctrlsSvc:n,useHeaderRow:s,skipScrollPadding:r}=e;let a=n.getHeaderRowContainerCtrl(t)?.eViewport,{x:l}=e;return a?(o&&(l-=a.getBoundingClientRect().left),i.get("enableRtl")&&(s&&(a=a.querySelector(".ag-header-row")),l=a.clientWidth-l),null!=t||r||(l+=n.get("center").getCenterViewportScrollLeft()),l):0}function wf(e,t){for(const o of e)o.moving=t,o.dispatchColEvent("movingChanged","uiColumnMoved")}var bf=7,yf=100,Sf=yf/2,Rf=5,xf=100,Ef=class extends Ct{constructor(e){super(),this.pinned=e,this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.isCenterContainer=!s(e)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}getIconName(){const{pinned:e,lastDraggingEvent:t}=this,{dragItem:o}=t||{},i=o?.columns??[];for(const n of i){const t=n.getPinned();if(n.getColDef().lockPinned){if(t==e)return"move";continue}const i=o?.containerType;if(i===e||!e)return"move";if(e&&(!t||i!==e))return"pinned"}return"notAllowed"}onDragEnter(e){const t=e.dragItem,o=t.columns,i=0===e.dragSource.type;if(i)this.setColumnsVisible(o,!0,"uiColumnDragged");else{const e=t.visibleState,i=(o||[]).filter(t=>e[t.getId()]&&!t.isVisible());this.setColumnsVisible(i,!0,"uiColumnDragged")}this.gos.get("suppressMoveWhenColumnDragging")||this.attemptToPinColumns(o,this.pinned),this.onDragging(e,!0,!0)}onDragging(e=this.lastDraggingEvent,t=!1,o=!1,i=!1){const{gos:n,ctrlsSvc:s}=this.beans,a=n.get("suppressMoveWhenColumnDragging");if(i&&!a)return void this.finishColumnMoving();if(this.lastDraggingEvent=e,!e||!i&&r(e.hDirection))return;const l=Cf({x:e.x,pinned:this.pinned,gos:n,ctrlsSvc:s});t||this.checkCenterForScrolling(l),a?this.handleColumnDragWhileSuppressingMovement(e,t,o,l,i):this.handleColumnDragWhileAllowingMovement(e,t,o,l,i)}onDragLeave(){this.ensureIntervalCleared(),this.clearHighlighted(),this.updateDragItemContainerType(),this.lastMovedInfo=null}onDragStop(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null}onDragCancel(){this.clearHighlighted(),this.ensureIntervalCleared(),this.lastMovedInfo=null}setColumnsVisible(e,t,o){if(!e?.length)return;const i=e.filter(e=>!e.getColDef().lockVisible);i.length&&this.beans.colModel.setColsVisible(i,t,o)}finishColumnMoving(){this.clearHighlighted();const e=this.lastMovedInfo;if(!e)return;const{columns:t,toIndex:o}=e;this.beans.colMoves.moveColumns(t,o,"uiColumnMoved",!0)}updateDragItemContainerType(){const{lastDraggingEvent:e}=this;if(this.gos.get("suppressMoveWhenColumnDragging")||!e)return;const t=e.dragItem;t&&(t.containerType=this.pinned)}handleColumnDragWhileSuppressingMovement(e,t,o,i,n){const s=this.getAllMovingColumns(e,!0);if(n){const e=this.isAttemptingToPin(s);e&&this.attemptToPinColumns(s,void 0,!0);const{fromLeft:i,xPosition:n}=this.getNormalisedXPositionInfo(s,e)||{};if(null==i||null==n)return void this.finishColumnMoving();this.moveColumnsAfterHighlight({allMovingColumns:s,xPosition:n,fromEnter:t,fakeEvent:o,fromLeft:i})}else{if(!this.beans.dragAndDrop.isDropZoneWithinThisGrid(e))return;this.highlightHoveredColumn(s,i)}}handleColumnDragWhileAllowingMovement(e,t,o,i,n){const s=this.getAllMovingColumns(e),r="right"===this.normaliseDirection(e.hDirection),a=1===e.dragSource.type,l=this.getMoveColumnParams({allMovingColumns:s,isFromHeader:a,xPosition:i,fromLeft:r,fromEnter:t,fakeEvent:o}),d=gf({...l,finished:n});d&&(this.lastMovedInfo=d)}getAllMovingColumns(e,t=!1){const o=e.dragSource.getDragItem();let i=null;t?(i=o.columnsInSplit,i||(i=o.columns)):i=o.columns;const n=e=>!e.getColDef().lockPinned||e.getPinned()==this.pinned;return i?i.filter(n):[]}getMoveColumnParams(e){const{allMovingColumns:t,isFromHeader:o,xPosition:i,fromLeft:n,fromEnter:s,fakeEvent:r}=e,{gos:a,colModel:l,colMoves:d,visibleCols:c}=this.beans;return{allMovingColumns:t,isFromHeader:o,fromLeft:n,xPosition:i,pinned:this.pinned,fromEnter:s,fakeEvent:r,gos:a,colModel:l,colMoves:d,visibleCols:c}}highlightHoveredColumn(e,t){const{gos:o,colModel:i}=this.beans,n=o.get("enableRtl"),s=i.getCols().filter(e=>e.isVisible()&&e.getPinned()===this.pinned);let r,a=null,l=null,d=null;for(const c of s){if(l=c.getActualWidth(),a=this.getNormalisedColumnLeft(c,0,n),null!=a){const e=a+l;if(a<=t&&e>=t){d=c;break}}a=null,l=null}if(d)-1!==e.indexOf(d)&&(d=null);else{for(let e=s.length-1;e>=0;e--){const t=s[e],o=s[e].getParent();if(!o){d=t;break}const i=o?.getDisplayedLeafColumns();if(i.length){d=tn(i);break}}if(!d)return;a=this.getNormalisedColumnLeft(d,0,n),l=d.getActualWidth()}this.lastHighlightedColumn?.column!==d&&this.clearHighlighted(),null!=d&&null!=a&&null!=l&&(r=t-a<l/2?0:1,Ff(d,r),this.lastHighlightedColumn={column:d,position:r})}getNormalisedXPositionInfo(e,t){const{gos:o,visibleCols:i}=this.beans,n=o.get("enableRtl"),{firstMovingCol:s,column:r,position:a}=this.getColumnMoveAndTargetInfo(e,t,n);if(!s||!r||null==a)return;const l=i.allCols,d=l.indexOf(s),c=l.indexOf(r),u=0===a,h=d<c||d===c&&!u;let g=0;if(u?h&&(g-=1):h||(g+=1),c+g===d)return;const p=l[c+g];if(!p)return;const f=this.getNormalisedColumnLeft(p,20,n);return{fromLeft:h,xPosition:f}}getColumnMoveAndTargetInfo(e,t,o){const i=this.lastHighlightedColumn||{},{firstMovingCol:n,lastMovingCol:s}=Pf(e);if(!n||!s||i.column||!t)return{firstMovingCol:n,...i};const r=this.getPinDirection(),a="left"===r;return{firstMovingCol:n,position:a?1:0,column:a!==o?n:s}}normaliseDirection(e){if(this.gos.get("enableRtl"))switch(e){case"left":return"right";case"right":return"left"}return e}getNormalisedColumnLeft(e,t,o){const{gos:i,ctrlsSvc:n}=this.beans,s=e.getLeft();if(null==s)return null;const r=e.getActualWidth();return Cf({x:o?s+r-t:s+t,pinned:e.getPinned(),useHeaderRow:o,skipScrollPadding:!0,gos:i,ctrlsSvc:n})}isAttemptingToPin(e){const t=this.needToMoveLeft||this.needToMoveRight,o=this.failedMoveAttempts>bf;return t&&o||e.some(e=>e.getPinned()!==this.pinned)}moveColumnsAfterHighlight(e){const{allMovingColumns:t,xPosition:o,fromEnter:i,fakeEvent:n,fromLeft:s}=e,r=this.getMoveColumnParams({allMovingColumns:t,isFromHeader:!0,xPosition:o,fromLeft:s,fromEnter:i,fakeEvent:n}),{columns:a,toIndex:l}=hf(r)||{};a&&null!=l&&(this.lastMovedInfo={columns:a,toIndex:l}),this.finishColumnMoving()}clearHighlighted(){const{lastHighlightedColumn:e}=this;e&&(Ff(e.column,null),this.lastHighlightedColumn=null)}checkCenterForScrolling(e){if(!this.isCenterContainer)return;const t=this.beans.ctrlsSvc.get("center"),o=t.getCenterViewportScrollLeft(),i=o+t.getCenterWidth();let n,s;this.gos.get("enableRtl")?(n=e<o+Sf,s=e>i-Sf):(s=e<o+Sf,n=e>i-Sf),this.needToMoveRight=n,this.needToMoveLeft=s,s||n?this.ensureIntervalStarted():this.ensureIntervalCleared()}ensureIntervalStarted(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),xf),this.beans.dragAndDrop.setDragImageCompIcon(this.needToMoveLeft?"left":"right",!0))}ensureIntervalCleared(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.failedMoveAttempts=0,this.beans.dragAndDrop.setDragImageCompIcon(this.getIconName()))}moveInterval(){let e;this.intervalCount++,e=10+this.intervalCount*Rf,e>yf&&(e=yf);let t=null;const o=this.gridBodyCon.scrollFeature;if(this.needToMoveLeft?t=o.scrollHorizontally(-e):this.needToMoveRight&&(t=o.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;const{pinnedCols:e,dragAndDrop:t,gos:o}=this.beans;if(this.failedMoveAttempts<=bf+1||!e)return;if(t.setDragImageCompIcon("pinned"),!o.get("suppressMoveWhenColumnDragging")){const e=this.lastDraggingEvent?.dragItem.columns;this.attemptToPinColumns(e,void 0,!0)}}}getPinDirection(){return this.needToMoveLeft||"left"===this.pinned?"left":this.needToMoveRight||"right"===this.pinned?"right":void 0}attemptToPinColumns(e,t,o=!1){const i=(e||[]).filter(e=>!e.getColDef().lockPinned);if(!i.length)return 0;o&&(t=this.getPinDirection());const{pinnedCols:n,dragAndDrop:s}=this.beans;return n?.setColsPinned(i,t,"uiColumnDragged"),o&&s.nudge(),i.length}destroy(){super.destroy(),this.lastDraggingEvent=null,this.clearHighlighted(),this.lastMovedInfo=null}};function Ff(e,t){e.highlighted!==t&&(e.highlighted=t,e.dispatchColEvent("headerHighlightChanged","uiColumnMoved"))}function Pf(e){const t=e.length;let o,i;for(let n=0;n<t;n++){if(!o){const t=e[n];null!=t.getLeft()&&(o=t)}if(!i){const o=e[t-1-n];null!=o.getLeft()&&(i=o)}if(o&&i)break}return{firstMovingCol:o,lastMovingCol:i}}var Df=class extends Ct{constructor(e,t){super(),this.pinned=e,this.eContainer=t}postConstruct(){const{ctrlsSvc:e,dragAndDrop:t}=this.beans,o=this.pinned;e.whenReady(this,e=>{let t;const i=e.gridBodyCtrl.eBodyViewport;switch(o){case"left":t=[[i,e.left.eContainer],[e.bottomLeft.eContainer],[e.topLeft.eContainer]];break;case"right":t=[[i,e.right.eContainer],[e.bottomRight.eContainer],[e.topRight.eContainer]];break;default:t=[[i,e.center.eViewport],[e.bottomCenter.eViewport],[e.topCenter.eViewport]];break}this.eSecondaryContainers=t}),this.moveColumnFeature=this.createManagedBean(new Ef(o)),this.bodyDropPivotTarget=this.createManagedBean(new lf(o)),t.addDropTarget(this),this.addDestroyFunc(()=>t.removeDropTarget(this))}isInterestedIn(e){return 1===e||0===e&&this.gos.get("allowDragFromColumnsToolPanel")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}getIconName(){return this.currentDropListener.getIconName()}isDropColumnInPivotMode(e){return this.beans.colModel.isPivotMode()&&0===e.dragSource.type}onDragEnter(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)}onDragLeave(e){this.currentDropListener.onDragLeave(e)}onDragging(e){this.currentDropListener.onDragging(e)}onDragStop(e){this.currentDropListener.onDragStop(e)}onDragCancel(){this.currentDropListener.onDragCancel()}},kf=class extends Ct{constructor(){super(...arguments),this.beanName="colMoves"}moveColumnByIndex(e,t,o){const i=this.beans.colModel.getCols();if(!i)return;const n=i[e];this.moveColumns([n],t,o)}moveColumns(e,t,o,i=!0){const{colModel:n,colAnimation:s,visibleCols:r,eventSvc:a}=this.beans,l=n.getCols();if(!l)return;if(t>l.length-e.length)return void xo(30,{toIndex:t});s?.start();const d=n.getColsForKeys(e);this.doesMovePassRules(d,t)&&(an(n.getCols(),d,t),r.refresh(o),a.dispatchEvent({type:"columnMoved",columns:d,column:1===d.length?d[0]:null,toIndex:t,finished:i,source:o})),s?.finish()}doesMovePassRules(e,t){const o=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(o)}doesOrderPassRules(e){const{colModel:t,gos:o}=this.beans;if(!_n(e,t.getColTree()))return!1;const i=e=>{const t=e=>e?"left"===e||!0===e?-1:1:0,i=o.get("enableRtl");let n=i?1:-1,s=!0;for(const o of e){const e=t(o.getColDef().lockPosition);i?e>n&&(s=!1):e<n&&(s=!1),n=e}return s};return!!i(e)}getProposedColumnOrder(e,t){const o=this.beans.colModel.getCols(),i=o.slice();return an(i,e,t),i}createBodyDropTarget(e,t){return new Df(e,t)}moveHeader(e,t,o,i,n){const{ctrlsSvc:s,gos:r,colModel:a,visibleCols:l,focusSvc:d}=this.beans,c=t.getBoundingClientRect(),u=c.left,h=Id(o),g=h?c.width:o.getActualWidth(),p="left"===e!==r.get("enableRtl"),f=Cf({x:p?u-20:u+g+20,pinned:i,fromKeyboard:!0,gos:r,ctrlsSvc:s}),m=d.focusedHeader;let v;if(gf({allMovingColumns:h?o.getLeafColumns():[o],isFromHeader:!0,fromLeft:"right"===e,xPosition:f,pinned:i,fromEnter:!1,fakeEvent:!1,gos:r,colModel:a,colMoves:this,visibleCols:l,finished:!0}),h){const e=o.getDisplayedLeafColumns();v=p?e[0]:tn(e)}else v=o;if(s.getScrollFeature().ensureColumnVisible(v,"auto"),(!n.isAlive()||r.get("ensureDomOrder"))&&m){let e;if(h){const t=o.getGroupId(),i=o.getLeafColumns();if(!i.length)return;const n=i[0].getParent();if(!n)return;e=Mf(n,t)}else e=o;e&&d.focusHeaderPosition({headerPosition:{...m,column:e}})}}setDragSourceForHeader(e,t,o){const{gos:i,colModel:n,dragAndDrop:s,visibleCols:r}=this.beans;let a=!i.get("suppressDragLeaveHidesColumns");const l=Id(t),d=l?t.getProvidedColumnGroup().getLeafColumns():[t],c=l?()=>Tf(t,r.allCols):()=>Af(t),u={type:1,eElement:e,getDefaultIconName:()=>a?"hide":"notAllowed",getDragItem:c,dragItemName:o,onDragStarted:()=>{a=!i.get("suppressDragLeaveHidesColumns"),wf(d,!0)},onDragStopped:()=>wf(d,!1),onDragCancelled:()=>wf(d,!1),onGridEnter:e=>{if(a){const{columns:t=[],visibleState:o}=e??{},i=l?e=>!o||o[e.getColId()]:()=>!0,s=t.filter(e=>!e.getColDef().lockVisible&&i(e));n.setColsVisible(s,!0,"uiColumnMoved")}},onGridExit:e=>{if(a){const t=e?.columns?.filter(e=>!e.getColDef().lockVisible)||[];n.setColsVisible(t,!1,"uiColumnMoved")}}};return s.addDragSource(u,!0),u}};function Mf(e,t){while(e){if(e.getGroupId()===t)return e;e=e.getParent()}}function Af(e){const t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t,containerType:e.pinned}}function Tf(e,t){const o=e.getProvidedColumnGroup().getLeafColumns(),i={};for(const a of o)i[a.getId()]=a.isVisible();const n=[];for(const a of t)o.indexOf(a)>=0&&(n.push(a),sn(o,a));for(const a of o)n.push(a);const s=[],r=e.getLeafColumns();for(const a of n)-1!==r.indexOf(a)&&s.push(a);return{columns:n,columnsInSplit:s,visibleState:i,containerType:s[0]?.pinned}}var If={moduleName:"ColumnMove",version:ro,beans:[kf,sf],apiFunctions:{moveColumnByIndex:rf,moveColumns:af},dependsOn:[ef],css:[nf]},Lf=class extends Ct{constructor(){super(...arguments),this.beanName="autoWidthCalc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowContainerCtrl=e.center})}getPreferredWidthForColumn(e,t){const o=this.getHeaderCellForColumn(e);if(!o)return-1;const i=this.beans.rowRenderer.getAllCellsNotSpanningForColumn(e);return t||i.push(o),this.getPreferredWidthForElements(i)}getPreferredWidthForColumnGroup(e){const t=this.getHeaderCellForColumn(e);return t?this.getPreferredWidthForElements([t]):-1}getPreferredWidthForElements(e,t){const o=document.createElement("form");o.style.position="fixed";const i=this.centerRowContainerCtrl.eContainer;for(const s of e)this.cloneItemIntoDummy(s,o);i.appendChild(o);const n=o.offsetWidth;return o.remove(),t=t??this.gos.get("autoSizePadding"),n+t}getHeaderCellForColumn(e){let t=null;for(const o of this.beans.ctrlsSvc.getHeaderRowContainerCtrls()){const i=o.getHtmlElementForColumnHeader(e);null!=i&&(t=i)}return t}cloneItemIntoDummy(e,t){const o=e.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";const i=document.createElement("div"),n=i.classList,s=["ag-header-cell","ag-header-group-cell"].some(e=>o.classList.contains(e));s?(n.add("ag-header","ag-header-row"),i.style.position="static"):n.add("ag-row");let r=e.parentElement;while(r){const e=["ag-header-row","ag-row"].some(e=>r.classList.contains(e));if(e){for(let e=0;e<r.classList.length;e++){const t=r.classList[e];"ag-row-position-absolute"!=t&&n.add(t)}break}r=r.parentElement}i.appendChild(o),t.appendChild(i)}},Bf={moduleName:"AutoWidth",version:ro,beans:[Lf]};function Of(e,t,o=!0,i="api"){e.colResize?.setColumnWidths(t,!1,o,i)}var Hf=class extends Ct{constructor(e,t,o,i){super(),this.comp=e,this.eResize=t,this.pinned=o,this.columnGroup=i}postConstruct(){if(!this.columnGroup.isResizable())return void this.comp.setResizableDisplayed(!1);const{horizontalResizeSvc:e,gos:t,colAutosize:o}=this.beans,i=e.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(i),!t.get("suppressAutoSize")&&o&&this.addDestroyFunc(o.addColumnGroupResize(this.eResize,this.columnGroup,()=>this.resizeLeafColumnsToFit("uiColumnResized")))}onResizeStart(e){const{columnsToResize:t,resizeStartWidth:o,resizeRatios:i,groupAfterColumns:n,groupAfterStartWidth:s,groupAfterRatios:r}=this.getInitialValues(e);this.resizeCols=t,this.resizeStartWidth=o,this.resizeRatios=i,this.resizeTakeFromCols=n,this.resizeTakeFromStartWidth=s,this.resizeTakeFromRatios=r,this.toggleColumnResizing(!0)}onResizing(e,t,o="uiColumnResized"){const i=this.normaliseDragChange(t),n=this.resizeStartWidth+i;this.resizeColumnsFromLocalValues(n,o,e)}getInitialValues(e){const t=e=>e.reduce((e,t)=>e+t.getActualWidth(),0),o=(e,t)=>e.map(e=>e.getActualWidth()/t),i=this.getColumnsToResize(),n=t(i),s=o(i,n),r={columnsToResize:i,resizeStartWidth:n,resizeRatios:s};let a=null;if(e&&(a=this.beans.colGroupSvc?.getGroupAtDirection(this.columnGroup,"After")??null),a){const e=a.getDisplayedLeafColumns(),i=r.groupAfterColumns=e.filter(e=>e.isResizable()),n=r.groupAfterStartWidth=t(i);r.groupAfterRatios=o(i,n)}else r.groupAfterColumns=void 0,r.groupAfterStartWidth=void 0,r.groupAfterRatios=void 0;return r}resizeLeafColumnsToFit(e){const t=this.beans.autoWidthCalc.getPreferredWidthForColumnGroup(this.columnGroup),o=this.getInitialValues();t>o.resizeStartWidth&&this.resizeColumns(o,t,e,!0)}resizeColumnsFromLocalValues(e,t,o=!0){if(!this.resizeCols||!this.resizeRatios)return;const i={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:this.resizeTakeFromCols,groupAfterStartWidth:this.resizeTakeFromStartWidth,groupAfterRatios:this.resizeTakeFromRatios};this.resizeColumns(i,e,t,o)}resizeColumns(e,t,o,i=!0){const{columnsToResize:n,resizeStartWidth:s,resizeRatios:r,groupAfterColumns:a,groupAfterStartWidth:l,groupAfterRatios:d}=e,c=[];if(c.push({columns:n,ratios:r,width:t}),a){const e=t-s;c.push({columns:a,ratios:d,width:l-e})}this.beans.colResize?.resizeColumnSets({resizeSets:c,finished:i,source:o}),i&&this.toggleColumnResizing(!1)}toggleColumnResizing(e){this.comp.toggleCss("ag-column-resizing",e)}getColumnsToResize(){const e=this.columnGroup.getDisplayedLeafColumns();return e.filter(e=>e.isResizable())}normaliseDragChange(e){let t=e;return this.gos.get("enableRtl")?"left"!==this.pinned&&(t*=-1):"right"===this.pinned&&(t*=-1),t}destroy(){super.destroy(),this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0}},Vf=class extends Ct{constructor(e,t,o,i,n){super(),this.pinned=e,this.column=t,this.eResize=o,this.comp=i,this.ctrl=n}postConstruct(){const e=[];let t,o;const i=()=>{if(he(this.eResize,t),!t)return;const{horizontalResizeSvc:i,colAutosize:n}=this.beans,s=i.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});e.push(s),o&&n&&e.push(n.addColumnAutosizeListeners(this.eResize,this.column))},n=()=>{for(const t of e)t();e.length=0},s=()=>{const e=this.column.isResizable(),s=!this.gos.get("suppressAutoSize")&&!this.column.getColDef().suppressAutoSize,r=e!==t||s!==o;r&&(t=e,o=s,n(),i())};s(),this.addDestroyFunc(n),this.ctrl.setRefreshFunction("resize",s)}onResizing(e,t){const{column:o,lastResizeAmount:i,resizeStartWidth:n,beans:s}=this,r=this.normaliseResizeAmount(t),a=n+r,l=[{key:o,newWidth:a}],{pinnedCols:d,ctrlsSvc:c,colResize:u}=s;if(this.column.getPinned()){const e=d?.leftWidth??0,t=d?.rightWidth??0,o=Ce(c.getGridBodyCtrl().eBodyViewport)-50;if(e+t+(r-i)>o)return}this.lastResizeAmount=r,u?.setColumnWidths(l,this.resizeWithShiftKey,e,"uiColumnResized"),e&&this.toggleColumnResizing(!1)}onResizeStart(e){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=e,this.toggleColumnResizing(!0)}toggleColumnResizing(e){this.column.resizing=e,this.comp.toggleCss("ag-column-resizing",e)}normaliseResizeAmount(e){let t=e;const o="left"!==this.pinned,i="right"===this.pinned;return this.gos.get("enableRtl")?o&&(t*=-1):i&&(t*=-1),t}},Gf=class extends Ct{constructor(){super(...arguments),this.beanName="colResize"}setColumnWidths(e,t,o,i){const n=[],{colModel:s,gos:r,visibleCols:a}=this.beans;for(const l of e){const e=s.getColDefCol(l.key)||s.getCol(l.key);if(!e)continue;n.push({width:l.newWidth,ratios:[1],columns:[e]});const o="shift"===r.get("colResizeDefault");if(o&&(t=!t),t){const t=a.getColAfter(e);if(!t)continue;const o=e.getActualWidth()-l.newWidth,i=t.getActualWidth()+o;n.push({width:i,ratios:[1],columns:[t]})}}0!==n.length&&this.resizeColumnSets({resizeSets:n,finished:o,source:i})}resizeColumnSets(e){const{resizeSets:t,finished:o,source:i}=e,n=!t||t.every(e=>Nf(e));if(!n){if(o){const e=t&&t.length>0?t[0].columns:null;Kn(this.eventSvc,e,o,i)}return}const s=[],r=[];for(const c of t){const{width:e,columns:t,ratios:o}=c,n={},a={};for(const i of t)r.push(i);let l=!0,d=0;while(l){if(d++,d>1e3){Eo(31);break}l=!1;const i=[];let s=0,r=e;t.forEach((e,t)=>{const l=a[e.getId()];if(l)r-=n[e.getId()];else{i.push(e);const n=o[t];s+=n}});const c=1/s;i.forEach((t,s)=>{const d=s===i.length-1;let u;d?u=r:(u=Math.round(o[s]*e*c),r-=u);const h=t.getMinWidth(),g=t.getMaxWidth();u<h?(u=h,a[t.getId()]=!0,l=!0):g>0&&u>g&&(u=g,a[t.getId()]=!0,l=!0),n[t.getId()]=u})}for(const r of t){const e=n[r.getId()],t=r.getActualWidth();t!==e&&(r.setActualWidth(e,i),s.push(r))}}const a=s.length>0;let l=[];if(a){const{colFlex:e,visibleCols:t,colViewport:o}=this.beans;l=e?.refreshFlexedColumns({resizingCols:r,skipSetLeft:!0})??[],t.setLeftValues(i),t.updateBodyWidths(),o.checkViewportColumns()}const d=r.concat(l);(a||o)&&Kn(this.eventSvc,d,o,i,l)}resizeHeader(e,t,o){if(!e.isResizable())return;const i=e.getActualWidth(),n=e.getMinWidth(),s=e.getMaxWidth(),r=Math.min(Math.max(i+t,n),s);this.setColumnWidths([{key:e,newWidth:r}],o,!0,"uiColumnResized")}createResizeFeature(e,t,o,i,n){return new Vf(e,t,o,i,n)}createGroupResizeFeature(e,t,o,i){return new Hf(e,t,o,i)}};function Nf(e){const{columns:t,width:o}=e;let i=0,n=0,s=!0;for(const l of t){const e=l.getMinWidth();i+=e||0;const t=l.getMaxWidth();t>0?n+=t:s=!1}const r=o>=i,a=!s||o<=n;return r&&a}var zf={moduleName:"ColumnResize",version:ro,beans:[Gf],apiFunctions:{setColumnWidths:Of},dependsOn:[of,Bf]},Wf=class extends Ct{constructor(e,t){super(),this.removeChildListenersFuncs=[],this.columnGroup=t,this.comp=e}postConstruct(){this.addListenersToChildrenColumns(),this.addManagedListeners(this.columnGroup,{displayedChildrenChanged:this.onDisplayedChildrenChanged.bind(this)}),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))}addListenersToChildrenColumns(){this.removeListenersOnChildrenColumns();const e=this.onWidthChanged.bind(this);for(const t of this.columnGroup.getLeafColumns())t.__addEventListener("widthChanged",e),t.__addEventListener("visibleChanged",e),this.removeChildListenersFuncs.push(()=>{t.__removeEventListener("widthChanged",e),t.__removeEventListener("visibleChanged",e)})}removeListenersOnChildrenColumns(){for(const e of this.removeChildListenersFuncs)e();this.removeChildListenersFuncs=[]}onDisplayedChildrenChanged(){this.addListenersToChildrenColumns(),this.onWidthChanged()}onWidthChanged(){const e=this.columnGroup.getActualWidth();this.comp.setWidth(`${e}px`),this.comp.toggleCss("ag-hidden",0===e)}},_f=class extends Th{constructor(){super(...arguments),this.onSuppressColMoveChange=()=>{!this.isAlive()||this.isSuppressMoving()?this.removeDragSource():this.dragSource||this.setDragSource(this.eGui)}}wireComp(e,t,o,i,n){const{column:s,beans:r}=this,{context:a,colNames:l,colHover:d,rangeSvc:c,colResize:u}=r;this.comp=e,n=ls(this,a,n),this.setGui(t,n),this.displayName=l.getDisplayNameForColumnGroup(s,"header"),this.refreshHeaderStyles(),this.addClasses(),this.setupMovingCss(n),this.setupExpandable(n),this.setupTooltip(),this.refreshAnnouncement(),this.setupAutoHeight({wrapperElement:i,compBean:n}),this.setupUserComp(),this.addHeaderMouseListeners(n,i),this.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this)),this.refreshMaxHeaderHeight();const h=this.rowCtrl.pinned,g=s.getProvidedColumnGroup().getLeafColumns();d?.createHoverFeature(n,g,t),c?.createRangeHighlightFeature(n,s,e),n.createManagedBean(new kh(s,t,r)),n.createManagedBean(new Wf(e,s)),u?this.resizeFeature=n.createManagedBean(u.createGroupResizeFeature(e,o,h,s)):e.setResizableDisplayed(!1),n.createManagedBean(new Ec(t,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addHighlightListeners(n,g),this.addManagedEventListeners({cellSelectionChanged:()=>this.refreshAnnouncement()}),n.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners(n),n.addDestroyFunc(()=>this.clearComponent())}getHeaderClassParams(){const{column:e,beans:t}=this,o=e.getDefinition();return Ti(t.gos,{colDef:o,columnGroup:e,floatingFilter:!1})}refreshMaxHeaderHeight(){const{gos:e,comp:t}=this,o=e.get("groupHeaderHeight");null!=o?0===o?t.setHeaderWrapperHidden(!0):t.setHeaderWrapperMaxHeight(o):(t.setHeaderWrapperHidden(!1),t.setHeaderWrapperMaxHeight(null))}addHighlightListeners(e,t){if(this.beans.gos.get("suppressMoveWhenColumnDragging"))for(const o of t)e.addManagedListeners(o,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,o)})}onLeafColumnHighlightChanged(e){const t=this.column.getDisplayedLeafColumns(),o=t[0]===e,i=tn(t)===e;if(!o&&!i)return;const n=e.getHighlighted(),s=!!this.rowCtrl.getHeaderCellCtrls().find(e=>e.column.isMoving());let r=!1,a=!1;if(s){const e=this.beans.gos.get("enableRtl"),t=1===n,s=0===n;o&&(e?a=t:r=s),i&&(e?r=s:a=t)}this.comp.toggleCss("ag-header-highlight-before",r),this.comp.toggleCss("ag-header-highlight-after",a)}resizeHeader(e,t){const{resizeFeature:o}=this;if(!o)return;const i=o.getInitialValues(t);o.resizeColumns(i,i.resizeStartWidth+e,"uiColumnResized",!0)}resizeLeafColumnsToFit(e){this.resizeFeature?.resizeLeafColumnsToFit(e)}setupUserComp(){const{colGroupSvc:e,userCompFactory:t,gos:o,enterpriseMenuFactory:i}=this.beans,n=this.column,s=n.getProvidedColumnGroup(),r=Ti(o,{displayName:this.displayName,columnGroup:n,setExpanded:t=>{e.setColumnGroupOpened(s,t,"gridInitializing")},setTooltip:(e,t)=>{o.assertModuleRegistered("Tooltip",3),this.setupTooltip(e,t)},showColumnMenu:(e,t)=>i?.showMenuAfterButtonClick(s,e,"columnMenu",t),showColumnMenuAfterMouseClick:(e,t)=>i?.showMenuAfterMouseEvent(s,e,"columnMenu",t),eGridHeader:this.eGui}),a=Us(t,r);a&&this.comp.setUserCompDetails(a)}addHeaderMouseListeners(e,t){const{column:o,comp:i,beans:{rangeSvc:n},gos:s}=this,r=e=>this.handleMouseOverChange("mouseenter"===e.type),a=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",o.getProvidedColumnGroup()),l=e=>this.handleContextMenuMouseEvent(e,void 0,o.getProvidedColumnGroup());e.addManagedListeners(this.eGui,{mouseenter:r,mouseleave:r,click:a,contextmenu:l}),i.toggleCss("ag-header-group-cell-selectable",gi(s));const d=n?.createHeaderGroupCellMouseListenerFeature(this.column,t);d&&this.createManagedBean(d)}handleMouseOverChange(e){this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column.getProvidedColumnGroup()})}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderGroupTooltip(this.tooltipFeature,this,e,t)}setupExpandable(e){const t=this.column.getProvidedColumnGroup();this.refreshExpanded();const o=this.refreshExpanded.bind(this);e.addManagedListeners(t,{expandedChanged:o,expandableChanged:o})}refreshExpanded(){const{column:e}=this;this.expandable=e.isExpandable();const t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0),this.refreshHeaderStyles()}addClasses(){const{column:e}=this,t=e.getColGroupDef(),o=Vu(t,this.gos,null,e);if(e.isPadding()){o.push("ag-header-group-cell-no-group");const t=e.getLeafColumns();t.every(e=>e.isSpanHeaderHeight())&&o.push("ag-header-span-height")}else o.push("ag-header-group-cell-with-group"),t?.wrapHeaderText&&o.push("ag-header-cell-wrap-text");for(const i of o)this.comp.toggleCss(i,!0)}setupMovingCss(e){const{column:t}=this,o=t.getProvidedColumnGroup(),i=o.getLeafColumns(),n=()=>this.comp.toggleCss("ag-header-cell-moving",t.isMoving());for(const s of i)e.addManagedListeners(s,{movingChanged:n});n()}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription())}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();if(!t)return;const{column:o,expandable:i,gos:n,beans:s}=this,r=gi(n);if(e.key==lr.ENTER)if(r&&!e.altKey)s.rangeSvc?.handleColumnSelection(o,e);else if(i){const e=!o.isExpanded();s.colGroupSvc.setColumnGroupOpened(o.getProvidedColumnGroup(),e,"uiColumnExpanded")}}refreshAnnouncement(){let e;const{gos:t,column:o,beans:i}=this,n=gi(t);if(n){const t=this.getLocaleTextFunc(),n=i.rangeSvc?.isColumnInAnyRange(o);e=t("ariaColumnCellSelection",`Press CTRL+SPACE to ${n?"de":""}select all visible cells in this column group`)}this.ariaAnnouncement=e}announceAriaDescription(){const{beans:e,eGui:t,ariaAnnouncement:o}=this;o&&t.contains(m(e))&&e.ariaAnnounce?.announceValue(o,"columnHeader")}setDragSource(e){this.isAlive()&&!this.isSuppressMoving()&&(this.removeDragSource(),e&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null))}isSuppressMoving(){return this.gos.get("suppressMovableColumns")||this.column.getLeafColumns().some(e=>e.getColDef().suppressMovable||e.getColDef().lockPosition)}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function Uf(e,t,o){e.colGroupSvc?.setColumnGroupOpened(t,o,"api")}function $f(e,t,o){return e.colGroupSvc?.getColumnGroup(t,o)??null}function qf(e,t){return e.colGroupSvc?.getProvidedColGroup(t)??null}function jf(e,t,o){return e.colNames.getDisplayNameForColumnGroup(t,o)||""}function Kf(e){return e.colGroupSvc?.getColumnGroupState()??[]}function Qf(e,t){e.colGroupSvc?.setColumnGroupState(t,"api")}function Xf(e){e.colGroupSvc?.resetColumnGroupState("api")}function Yf(e){return e.visibleCols.treeLeft}function Zf(e){return e.visibleCols.treeCenter}function Jf(e){return e.visibleCols.treeRight}function em(e){return e.visibleCols.getAllTrees()}function tm(e,t){for(let o=0;o<t.length;o++){const i=e.indexOf(t[o]);i>=0&&(e[i]=e[e.length-1],e.pop())}}var om=class extends Ct{constructor(){super(...arguments),this.beanName="visibleCols",this.colsAndGroupsMap={},this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.headerGroupRowCount=0,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.isBodyWidthDirty=!0}refresh(e,t=!1){const{colFlex:o,colModel:i,colGroupSvc:n,colViewport:s,selectionColSvc:r}=this.beans;t||this.buildTrees(i,n),n?.updateOpenClosedVisibility(),this.leftCols=nm(this.treeLeft),this.centerCols=nm(this.treeCenter),this.rightCols=nm(this.treeRight),r?.refreshVisibility(this.leftCols,this.centerCols,this.rightCols),this.joinColsAriaOrder(i),this.joinCols(),this.headerGroupRowCount=this.getHeaderRowCount(),this.setLeftValues(e),this.autoHeightCols=this.allCols.filter(e=>e.isAutoHeight()),o?.refreshFlexedColumns(),this.updateBodyWidths(),this.setFirstRightAndLastLeftPinned(i,this.leftCols,this.rightCols,e),s.checkViewportColumns(!1),this.eventSvc.dispatchEvent({type:"displayedColumnsChanged",source:e})}getHeaderRowCount(){if(!this.gos.get("hidePaddedHeaderRows"))return this.beans.colModel.cols.treeDepth;let e=0;for(const t of this.allCols){let o=t.getParent();while(o){if(!o.isPadding()){const t=o.getProvidedColumnGroup().getLevel()+1;t>e&&(e=t);break}o=o.getParent()}}return e}updateBodyWidths(){const e=pn(this.centerCols),t=pn(this.leftCols),o=pn(this.rightCols);this.isBodyWidthDirty=this.bodyWidth!==e;const i=this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==o;i&&(this.bodyWidth=e,this.leftWidth=t,this.rightWidth=o,this.eventSvc.dispatchEvent({type:"columnContainerWidthChanged"}),this.eventSvc.dispatchEvent({type:"displayedColumnsWidthChanged"}))}setLeftValues(e){this.setLeftValuesOfCols(e),this.setLeftValuesOfGroups()}setFirstRightAndLastLeftPinned(e,t,o,i){let n,s;this.gos.get("enableRtl")?(n=t?t[0]:null,s=o?tn(o):null):(n=t?tn(t):null,s=o?o[0]:null);for(const r of e.getCols())r.setLastLeftPinned(r===n,i),r.setFirstRightPinned(r===s,i)}buildTrees(e,t){const o=e.getColsToShow(),i=o.filter(e=>"left"==e.getPinned()),n=o.filter(e=>"right"==e.getPinned()),s=o.filter(e=>"left"!=e.getPinned()&&"right"!=e.getPinned()),r=new rs,a=e=>t?t.createColumnGroups(e):e.columns;this.treeLeft=a({columns:i,idCreator:r,pinned:"left",oldDisplayedGroups:this.treeLeft}),this.treeRight=a({columns:n,idCreator:r,pinned:"right",oldDisplayedGroups:this.treeRight}),this.treeCenter=a({columns:s,idCreator:r,pinned:null,oldDisplayedGroups:this.treeCenter}),this.updateColsAndGroupsMap()}clear(){this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.ariaOrderColumns=[]}joinColsAriaOrder(e){const t=e.getCols(),o=[],i=[],n=[];for(const s of t){const e=s.getPinned();e?!0===e||"left"===e?o.push(s):n.push(s):i.push(s)}this.ariaOrderColumns=o.concat(i).concat(n)}getAriaColIndex(e){let t;return t=Id(e)?e.getLeafColumns()[0]:e,this.ariaOrderColumns.indexOf(t)+1}setLeftValuesOfGroups(){for(const e of[this.treeLeft,this.treeRight,this.treeCenter])for(const t of e)if(Id(t)){const e=t;e.checkLeft()}}setLeftValuesOfCols(e){const{colModel:t}=this.beans,o=t.getColDefCols();if(!o)return;const i=t.getCols().slice(0),n=this.gos.get("enableRtl");for(const s of[this.leftCols,this.rightCols,this.centerCols]){if(n){let t=pn(s);for(const o of s)t-=o.getActualWidth(),o.setLeft(t,e)}else{let t=0;for(const o of s)o.setLeft(t,e),t+=o.getActualWidth()}tm(i,s)}for(const s of i)s.setLeft(null,e)}joinCols(){this.gos.get("enableRtl")?this.allCols=this.rightCols.concat(this.centerCols).concat(this.leftCols):this.allCols=this.leftCols.concat(this.centerCols).concat(this.rightCols)}getAllTrees(){return this.treeLeft&&this.treeRight&&this.treeCenter?this.treeLeft.concat(this.treeCenter).concat(this.treeRight):null}isColDisplayed(e){return this.allCols.indexOf(e)>=0}getLeftColsForRow(e){const{leftCols:t,beans:{colModel:o}}=this,i=o.colSpanActive;return i?this.getColsForRow(e,t):t}getRightColsForRow(e){const{rightCols:t,beans:{colModel:o}}=this,i=o.colSpanActive;return i?this.getColsForRow(e,t):t}getColsForRow(e,t,o,i){const n=[];let s=null;for(let r=0;r<t.length;r++){const a=t[r],l=t.length-r,d=Math.min(a.getColSpan(e),l),c=[a];if(d>1){const e=d-1;for(let o=1;o<=e;o++)c.push(t[r+o]);r+=e}let u;if(o){u=!1;for(const e of c)o(e)&&(u=!0)}else u=!0;if(u){if(0===n.length&&s){const e=!!i&&i(a);e&&n.push(s)}n.push(a)}s=a}return n}getContainerWidth(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}getColBefore(e){const t=this.allCols,o=t.indexOf(e);return o>0?t[o-1]:null}isPinningLeft(){return this.leftCols.length>0}isPinningRight(){return this.rightCols.length>0}updateColsAndGroupsMap(){this.colsAndGroupsMap={};const e=e=>{this.colsAndGroupsMap[e.getUniqueId()]=e};im(this.treeCenter,!1,e),im(this.treeLeft,!1,e),im(this.treeRight,!1,e)}isVisible(e){const t=this.colsAndGroupsMap[e.getUniqueId()];return t===e}getFirstColumn(){const e=this.gos.get("enableRtl"),t=["leftCols","centerCols","rightCols"];e&&t.reverse();for(let o=0;o<t.length;o++){const i=this[t[o]];if(i.length)return e?tn(i):i[0]}return null}getColAfter(e){const t=this.allCols,o=t.indexOf(e);return o<t.length-1?t[o+1]:null}getColsLeftWidth(){return pn(this.leftCols)}getDisplayedColumnsRightWidth(){return pn(this.rightCols)}isColAtEdge(e,t){const o=this.allCols;if(!o.length)return!1;const i="first"===t;let n;if(Id(e)){const t=e.getDisplayedLeafColumns();if(!t.length)return!1;n=i?t[0]:tn(t)}else n=e;return(i?o[0]:tn(o))===n}};function im(e,t,o){if(e)for(let i=0;i<e.length;i++){const n=e[i];if(Id(n)){const e=t?n.getDisplayedChildren():n.getChildren();im(e,t,o)}o(n)}}function nm(e){const t=[];return im(e,!0,e=>{Vi(e)&&t.push(e)}),t}var sm=class extends Ct{constructor(){super(...arguments),this.beanName="colGroupSvc"}getColumnGroupState(){const e=[],t=this.beans.colModel.getColTree();return zn(null,t,t=>{Qi(t)&&e.push({groupId:t.getGroupId(),open:t.isExpanded()})}),e}resetColumnGroupState(e){const t=this.beans.colModel.getColDefColTree();if(!t)return;const o=[];zn(null,t,e=>{if(Qi(e)){const t=e.getColGroupDef(),i={groupId:e.getGroupId(),open:t?t.openByDefault:void 0};o.push(i)}}),this.setColumnGroupState(o,e)}setColumnGroupState(e,t){const{colModel:o,colAnimation:i,visibleCols:n,eventSvc:s}=this.beans,r=o.getColTree();if(!r.length)return;i?.start();const a=[];for(const l of e){const e=l.groupId,t=l.open,o=this.getProvidedColGroup(e);o&&(o.isExpanded()!==t&&(o.setExpanded(t),a.push(o)))}n.refresh(t,!0),a.length&&s.dispatchEvent({type:"columnGroupOpened",columnGroup:1===a.length?a[0]:void 0,columnGroups:a}),i?.finish()}setColumnGroupOpened(e,t,o){let i;i=Qi(e)?e.getId():e||"",this.setColumnGroupState([{groupId:i,open:t}],o)}getProvidedColGroup(e){let t=null;return zn(null,this.beans.colModel.getColTree(),o=>{Qi(o)&&o.getId()===e&&(t=o)}),t}getGroupAtDirection(e,t){const o=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),i=e.getDisplayedLeafColumns(),n="After"===t?tn(i):i[0],s=`getCol${t}`;while(1){const t=this.beans.visibleCols[s](n);if(!t)return null;const i=this.getColGroupAtLevel(t,o);if(i!==e)return i}}getColGroupAtLevel(e,t){let o,i,n=e.getParent();while(1){const e=n.getProvidedColumnGroup();if(o=e.getLevel(),i=n.getPaddingLevel(),o+i<=t)break;n=n.getParent()}return n}updateOpenClosedVisibility(){const e=this.beans.visibleCols.getAllTrees();im(e,!1,e=>{Id(e)&&e.calculateDisplayedColumns()})}getColumnGroup(e,t){if(!e)return null;if(Id(e))return e;const o=this.beans.visibleCols.getAllTrees(),i="number"===typeof t;let n=null;return im(o,!1,o=>{if(Id(o)){const s=o;let r;r=i?e===s.getGroupId()&&t===s.getPartId():e===s.getGroupId(),r&&(n=s)}}),n}createColumnGroups(e){const{columns:t,idCreator:o,pinned:i,oldDisplayedGroups:n,isStandaloneStructure:s}=e,r=this.mapOldGroupsById(n),a=[];let l=t;while(l.length){const e=l;l=[];let t=0;const n=n=>{const d=t;t=n;const c=e[d],u=Id(c)?c.getProvidedColumnGroup():c,h=u.getOriginalParent();if(null==h){for(let t=d;t<n;t++)a.push(e[t]);return}const g=this.createColumnGroup(h,o,r,i,s);for(let t=d;t<n;t++)g.addChild(e[t]);l.push(g)};for(let o=1;o<e.length;o++){const i=e[o],s=Id(i)?i.getProvidedColumnGroup():i,r=s.getOriginalParent(),a=e[t],l=Id(a)?a.getProvidedColumnGroup():a,d=l.getOriginalParent();r!==d&&n(o)}t<e.length&&n(e.length)}return s||this.setupParentsIntoCols(a,null),a}createProvidedColumnGroup(e,t,o,i,n,s,r){const a=n.getUniqueKey(t.groupId||null,null),l=Zi(this.beans,t,a),d=new Xi(l,a,!1,o);this.createBean(d);const c=this.findExistingGroup(t,s);c&&s.splice(c.idx,1);const u=c?.group;u&&d.setExpanded(u.isExpanded());const h=Tn(this.beans,l.children,o+1,e,i,n,s,r);return d.setChildren(h),d}balanceColumnTree(e,t,o,i){const n=[];for(let s=0;s<e.length;s++){const r=e[s];if(Qi(r)){const e=r,s=this.balanceColumnTree(e.getChildren(),t+1,o,i);e.setChildren(s),n.push(e)}else{let s,a;for(let e=t;e<o;e++){const t=i.getUniqueKey(null,null),o=Zi(this.beans,null,t),n=new Xi(o,t,!0,e);this.createBean(n),a&&a.setChildren([n]),a=n,s||(s=a)}if(s&&a){n.push(s);const t=e.some(e=>Qi(e));if(t){a.setChildren([r]);continue}a.setChildren(e);break}n.push(r)}}return n}findDepth(e){let t=0,o=e;while(o?.[0]&&Qi(o[0]))t++,o=o[0].getChildren();return t}findMaxDepth(e,t){let o=t;for(let i=0;i<e.length;i++){const n=e[i];if(Qi(n)){const e=n,i=this.findMaxDepth(e.getChildren(),t+1);o<i&&(o=i)}}return o}balanceTreeForAutoCols(e,t){const o=[];for(const i of e){let e=i;for(let o=t-1;o>=0;o--){const t=new Xi(null,`FAKE_PATH_${i.getId()}}_${o}`,!0,o);this.createBean(t),t.setChildren([e]),e.originalParent=t,e=t}0===t&&(i.originalParent=null),o.push(e)}return o}findExistingGroup(e,t){const o=null!=e.groupId;if(o)for(let i=0;i<t.length;i++){const o=t[i],n=o.getColGroupDef();if(n&&o.getId()===e.groupId)return{idx:i,group:o}}}createColumnGroup(e,t,o,i,n){const r=e.getGroupId(),a=t.getInstanceIdForKey(r),l=Td(r,a);let d=o[l];return d&&d.getProvidedColumnGroup()!==e&&(d=null),s(d)?d.reset():(d=new Ld(e,r,a,i),n||this.createBean(d)),d}mapOldGroupsById(e){const t={},o=e=>{for(const i of e)if(Id(i)){const e=i;t[i.getUniqueId()]=e,o(e.getChildren())}};return e&&o(e),t}setupParentsIntoCols(e,t){for(const o of e??[])if(o.parent!==t&&(this.beans.colViewport.colsWithinViewportHash=""),o.parent=t,Id(o)){const e=o;this.setupParentsIntoCols(e.getChildren(),e)}}},rm={moduleName:"ColumnGroup",version:ro,dynamicBeans:{headerGroupCellCtrl:_f},beans:[sm],apiFunctions:{getAllDisplayedColumnGroups:em,getCenterDisplayedColumnGroups:Zf,getColumnGroup:$f,getColumnGroupState:Kf,getDisplayNameForColumnGroup:jf,getLeftDisplayedColumnGroups:Yf,getProvidedColumnGroup:qf,getRightDisplayedColumnGroups:Jf,resetColumnGroupState:Xf,setColumnGroupOpened:Uf,setColumnGroupState:Qf}},am={tag:"div",cls:"ag-skeleton-container"},lm=class extends ps{constructor(){super(am)}init(e){const t=`ag-cell-skeleton-renderer-${this.getCompId()}`;this.getGui().setAttribute("id",t),this.addDestroyFunc(()=>T(e.eParentOfValue)),T(e.eParentOfValue,t),e.deferRender?this.setupLoading(e):e.node.failedLoad?this.setupFailed():this.setupLoading(e)}setupFailed(){const e=this.getLocaleTextFunc();this.getGui().textContent=e("loadingError","ERR");const t=e("ariaSkeletonCellLoadingFailed","Row failed to load");A(this.getGui(),t)}setupLoading(e){const t=Zd({tag:"div",cls:"ag-skeleton-effect"}),o=e.node.rowIndex;if(null!=o){const e=75+25*(o%2===0?Math.sin(o):Math.cos(o));t.style.width=`${e}%`}this.getGui().appendChild(t);const i=this.getLocaleTextFunc(),n=e.deferRender?i("ariaDeferSkeletonCellLoading","Cell is loading"):i("ariaSkeletonCellLoading","Row data is loading");A(this.getGui(),n)}refresh(e){return!1}},dm={moduleName:"CheckboxCellRenderer",version:ro,userComponents:{agCheckboxCellRenderer:ng}},cm={moduleName:"SkeletonCellRenderer",version:ro,userComponents:{agSkeletonCellRenderer:lm}};function um(e,t){const o=e.colModel.getColDefCol(t);return o?o.getColDef():null}function hm(e){return e.colModel.getColumnDefs(!0)}function gm(e,t,o){return e.colNames.getDisplayNameForColumn(t,o)||""}function pm(e,t){return e.colModel.getColDefCol(t)}function fm(e){return e.colModel.getColDefCols()}function mm(e,t){return Qn(e,t,"api")}function vm(e){return Zn(e)}function Cm(e){Xn(e,"api")}function wm(e){return e.visibleCols.isPinningLeft()||e.visibleCols.isPinningRight()}function bm(e){return e.visibleCols.isPinningLeft()}function ym(e){return e.visibleCols.isPinningRight()}function Sm(e,t){return e.visibleCols.getColAfter(t)}function Rm(e,t){return e.visibleCols.getColBefore(t)}function xm(e,t,o){e.colModel.setColsVisible(t,o,"api")}function Em(e,t,o){e.pinnedCols?.setColsPinned(t,o,"api")}function Fm(e){return e.colModel.getCols()}function Pm(e){return e.visibleCols.leftCols}function Dm(e){return e.visibleCols.centerCols}function km(e){return e.visibleCols.rightCols}function Mm(e){return e.visibleCols.allCols}function Am(e){return e.colViewport.getViewportColumns()}function Tm(e,t){if(!e)return;const o=e,i={};for(const n of Object.keys(o)){if(t&&t.indexOf(n)>=0||Pt.has(n))continue;const e=o[n],s="object"===typeof e&&null!==e&&e.constructor===Object;i[n]=s?Tm(e):e}return i}var Im=class extends Ct{constructor(){super(...arguments),this.beanName="colDefFactory"}wireBeans(e){this.rowGroupColsSvc=e.rowGroupColsSvc,this.pivotColsSvc=e.pivotColsSvc}getColumnDefs(e,t,o,i,n=!1){const s=e.slice();t?s.sort((e,t)=>o.indexOf(e)-o.indexOf(t)):(o||n)&&s.sort((e,t)=>i.indexOf(e)-i.indexOf(t));const r=this.rowGroupColsSvc?.columns,a=this.pivotColsSvc?.columns;return this.buildColumnDefs(s,r,a)}buildColumnDefs(e,t=[],o=[]){const i=[],n={};for(const s of e){const e=this.createDefFromColumn(s,t,o);let r=!0,a=e,l=s.getOriginalParent(),d=null;while(l){let e=null;if(l.isPadding()){l=l.getOriginalParent();continue}const t=n[l.getGroupId()];if(t){t.children.push(a),r=!1;break}if(e=this.createDefFromGroup(l),e&&(e.children=[a],n[e.groupId]=e,a=e,l=l.getOriginalParent()),null!=l&&d===l){r=!1;break}d=l}r&&i.push(a)}return i}createDefFromGroup(e){const t=Tm(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t}createDefFromColumn(e,t,o){const i=Tm(e.getColDef());return i.colId=e.getColId(),i.width=e.getActualWidth(),i.rowGroup=e.isRowGroupActive(),i.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,i.pivot=e.isPivotActive(),i.pivotIndex=e.isPivotActive()?o.indexOf(e):null,i.aggFunc=e.isValueActive()?e.getAggFunc():null,i.hide=!e.isVisible()||void 0,i.pinned=e.isPinned()?e.getPinned():null,i.sort=e.getSortDef(),i.sortIndex=null!=e.getSortIndex()?e.getSortIndex():null,i}},Lm=class extends Ct{constructor(){super(...arguments),this.beanName="colFlex",this.columnsHidden=!1}refreshFlexedColumns(e={}){const t=e.source??"flex";null!=e.viewportWidth&&(this.flexViewportWidth=e.viewportWidth);const o=this.flexViewportWidth,{visibleCols:i,colDelayRenderSvc:n}=this.beans,s=i.centerCols;let r=-1;if(e.resizingCols){const t=new Set(e.resizingCols);for(let e=s.length-1;e>=0;e--)if(t.has(s[e])){r=e;break}}let a=!1;const l=s.map((e,t)=>{const o=e.getFlex(),i=null!=o&&o>0&&t>r;return a||(a=i),{col:e,isFlex:i,flex:Math.max(0,o??0),initialSize:e.getActualWidth(),min:e.getMinWidth(),max:e.getMaxWidth(),targetSize:0}});if(a?(n?.hideColumns("colFlex"),this.columnsHidden=!0):this.columnsHidden&&this.revealColumns(n),!o||!a)return[];let d=l.length,c=l.reduce((e,t)=>e+t.flex,0),u=o;const h=(e,o)=>{e.frozenSize=o,e.col.setActualWidth(o,t),u-=o,c-=e.flex,d-=1},g=e=>null!=e.frozenSize;for(const f of l)f.isFlex||h(f,f.initialSize);while(d>0){const e=Math.round(c<1?u*c:u);let t,o=0,i=0;for(const r of l){if(g(r))continue;t=r,i+=e*(r.flex/c);const n=i-o,s=Math.round(n);r.targetSize=s,o+=s}t&&(t.targetSize+=e-o);let n=0;for(const r of l){if(g(r))continue;const e=r.targetSize,t=Math.min(Math.max(e,r.min),r.max);n+=t-e,r.violationType=t===e?void 0:t<e?"max":"min",r.targetSize=t}const s=0===n?"all":n>0?"min":"max";for(const r of l)g(r)||"all"!==s&&r.violationType!==s||h(r,r.targetSize)}e.skipSetLeft||i.setLeftValues(t),e.updateBodyWidths&&i.updateBodyWidths();const p=l.filter(e=>e.isFlex&&!e.violationType).map(e=>e.col);if(e.fireResizedEvent){const e=l.filter(e=>e.initialSize!==e.frozenSize).map(e=>e.col),o=l.filter(e=>e.flex).map(e=>e.col);Kn(this.eventSvc,e,!0,t,o)}return this.revealColumns(n),p}revealColumns(e){this.columnsHidden&&(e?.revealColumns("colFlex"),this.columnsHidden=!1)}initCol(e){const{flex:t,initialFlex:o}=e.colDef;void 0!==t?e.flex=t:void 0!==o&&(e.flex=o)}setColFlex(e,t){e.flex=t??null,e.dispatchStateUpdatedEvent("flex")}};function Bm(e,t,o){if(!t||!e)return;if(!o)return e[t];const i=t.split(".");let n=e;for(let s=0;s<i.length;s++){if(null==n)return;n=n[i[s]]}return n}var Om=["dateTimeString","dateString","text","number","boolean","date"],Hm=class extends Ct{constructor(){super(...arguments),this.beanName="dataTypeSvc",this.dataTypeDefinitions={},this.isPendingInference=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[],this.columnDefinitionPropsPerDataType={number(){return{cellEditor:"agNumberCellEditor"}},boolean(){return{cellEditor:"agCheckboxCellEditor",cellRenderer:"agCheckboxCellRenderer",getFindText:()=>null,suppressKeyboardEvent:e=>!!e.colDef.editable&&e.event.key===lr.SPACE}},date({formatValue:e}){return{cellEditor:"agDateCellEditor",keyCreator:e}},dateString({formatValue:e}){return{cellEditor:"agDateStringCellEditor",keyCreator:e}},dateTime(e){return this.date(e)},dateTimeString(e){return this.dateString(e)},object({formatValue:e,colModel:t,colId:o}){return{cellEditorParams:{useFormatter:!0},comparator:(i,n)=>{const s=t.getColDefCol(o),r=s?.getColDef();if(!s||!r)return 0;const a=null==i?"":e({column:s,node:null,value:i}),l=null==n?"":e({column:s,node:null,value:n});return a===l?0:a>l?1:-1},keyCreator:e}},text(){return{}}}}wireBeans(e){this.colModel=e.colModel}postConstruct(){this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",e=>{this.processDataTypeDefinitions(),this.colModel.recreateColumnDefs(e)})}processDataTypeDefinitions(){const e=this.getDefaultDataTypes(),t={},o={},i=e=>t=>{const{column:o,node:i,value:n}=t;let s=o.getColDef().valueFormatter;return s===e.groupSafeValueFormatter&&(s=e.valueFormatter),this.beans.valueSvc.formatValue(o,i,n,s)};for(const c of Object.keys(e)){const n=e[c],s={...n,groupSafeValueFormatter:Nm(n,this.gos)};t[c]=s,o[c]=i(s)}const n=this.gos.get("dataTypeDefinitions")??{},s={};for(const c of Object.keys(n)){const r=n[c],a=this.processDataTypeDefinition(r,n,[c],e);a&&(t[c]=a,r.dataTypeMatcher&&(s[c]=r.dataTypeMatcher),o[c]=i(a))}const{valueParser:r,valueFormatter:a}=e.object,{valueParser:l,valueFormatter:d}=t.object;this.hasObjectValueParser=l!==r,this.hasObjectValueFormatter=d!==a,this.formatValueFuncs=o,this.dataTypeDefinitions=t,this.dataTypeMatchers=this.sortKeysInMatchers(s,e)}sortKeysInMatchers(e,t){const o={...e};for(const i of Om)delete o[i],o[i]=e[i]??t[i].dataTypeMatcher;return o}processDataTypeDefinition(e,t,o,i){let n;const s=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){let o=i[s];const r=t[s];if(o&&r&&(o=r),!Gm(e,o,s))return;n=Vm(o,e)}else{if(o.includes(s))return void xo(44);const r=t[s];if(!Gm(e,r,s))return;const a=this.processDataTypeDefinition(r,t,[...o,s],i);if(!a)return;n=Vm(a,e)}return{...n,groupSafeValueFormatter:Nm(n,this.gos)}}updateColDefAndGetColumnType(e,t,o){let{cellDataType:i}=t;const{field:n}=t;if(void 0===i&&(i=e.cellDataType),null!=i&&!0!==i||(i=!!this.canInferCellDataType(e,t)&&this.inferCellDataType(n,o)),!i)return void(e.cellDataType=!1);const s=this.dataTypeDefinitions[i];if(s)return e.cellDataType=i,s.groupSafeValueFormatter&&(e.valueFormatter=s.groupSafeValueFormatter),s.valueParser&&(e.valueParser=s.valueParser),s.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,i,s,o),s.columnTypes;xo(47,{cellDataType:i})}addColumnListeners(e){if(!this.isPendingInference)return;const t=this.columnStateUpdatesPendingInference[e.getColId()];if(!t)return;const o=e=>{t.add(e.key)};e.__addEventListener("columnStateUpdated",o),this.columnStateUpdateListenerDestroyFuncs.push(()=>e.__removeEventListener("columnStateUpdated",o))}canInferCellDataType(e,t){const{gos:o}=this;if(!To(o))return!1;const i={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(Wm(t,i))return!1;const n=null===t.type?e.type:t.type;if(n){const e=o.get("columnTypes")??{},t=bn(n).some(t=>{const o=e[t.trim()];return o&&Wm(o,i)});if(t)return!1}return!Wm(e,i)}inferCellDataType(e,t){if(!e)return;let o;const i=this.getInitialData();if(i){const t=e.includes(".")&&!this.gos.get("suppressFieldDotNotation");o=Bm(i,e,t)}else this.initWaitForRowData(t);if(null==o)return;const n=Object.keys(this.dataTypeMatchers).find(e=>this.dataTypeMatchers[e](o));return n??"object"}getInitialData(){const e=this.gos.get("rowData");if(e?.length)return e[0];if(this.initialData)return this.initialData;{const e=this.beans.rowModel.rootNode?._leafs;if(e?.length)return e[0].data}return null}initWaitForRowData(e){if(this.columnStateUpdatesPendingInference[e]=new Set,this.isPendingInference)return;this.isPendingInference=!0;const t=this.isColumnTypeOverrideInDataTypeDefinitions,{colAutosize:o,eventSvc:i}=this.beans;t&&o&&(o.shouldQueueResizeOperations=!0);const[n]=this.addManagedEventListeners({rowDataUpdateStarted:e=>{const{firstRowData:s}=e;s&&(n?.(),this.isPendingInference=!1,this.processColumnsPendingInference(s,t),this.columnStateUpdatesPendingInference={},t&&o?.processResizeOperations(),i.dispatchEvent({type:"dataTypesInferred"}))}})}processColumnsPendingInference(e,t){this.initialData=e;const o=[];this.destroyColumnStateUpdateListeners();const i={},n={};for(const s of Object.keys(this.columnStateUpdatesPendingInference)){const e=this.columnStateUpdatesPendingInference[s],r=this.colModel.getCol(s);if(!r)return;const a=r.getColDef();if(!this.resetColDefIntoCol(r,"cellDataTypeInferred"))return;const l=r.getColDef();if(t&&l.type&&l.type!==a.type){const t=_m(r,e);t.rowGroup&&null==t.rowGroupIndex&&(i[s]=t),t.pivot&&null==t.pivotIndex&&(n[s]=t),o.push(t)}}t&&o.push(...this.generateColumnStateForRowGroupAndPivotIndexes(i,n)),o.length&&Qn(this.beans,{state:o},"cellDataTypeInferred"),this.initialData=null}generateColumnStateForRowGroupAndPivotIndexes(e,t){const o={},{rowGroupColsSvc:i,pivotColsSvc:n}=this.beans;return i?.restoreColumnOrder(o,e),n?.restoreColumnOrder(o,t),Object.values(o)}resetColDefIntoCol(e,t){const o=e.getUserProvidedColDef();if(!o)return!1;const i=Hn(this.beans,o,e.getColId());return e.setColDef(i,o,t),!0}getDateStringTypeDefinition(e){const{dateString:t}=this.dataTypeDefinitions;return e?this.getDataTypeDefinition(e)??t:t}getDateParserFunction(e){return this.getDateStringTypeDefinition(e).dateParser}getDateFormatterFunction(e){return this.getDateStringTypeDefinition(e).dateFormatter}getDateIncludesTimeFlag(e){return"dateTime"===e||"dateTimeString"===e}getDataTypeDefinition(e){const t=e.getColDef();if(t.cellDataType)return this.dataTypeDefinitions[t.cellDataType]}getBaseDataType(e){return this.getDataTypeDefinition(e)?.baseDataType}checkType(e,t){if(null==t)return!0;const o=this.getDataTypeDefinition(e)?.dataTypeMatcher;return!o||(!(!e.getColDef().allowFormula||!this.beans.formula?.isFormula(t))||o(t))}validateColDef(e){const t=e=>xo(48,{property:e});if("object"===e.cellDataType){const{object:o}=this.dataTypeDefinitions;e.valueFormatter!==o.groupSafeValueFormatter||this.hasObjectValueFormatter||t("Formatter"),e.editable&&e.valueParser===o.valueParser&&!this.hasObjectValueParser&&t("Parser")}}postProcess(e){const t=e.cellDataType;if(!t||"string"!==typeof t)return;const{dataTypeDefinitions:o,beans:i,formatValueFuncs:n}=this,s=o[t];s&&i.colFilter?.setColDefPropsForDataType(e,s,n[t])}getFormatValue(e){return this.formatValueFuncs[e]}isColPendingInference(e){return this.isPendingInference&&!!this.columnStateUpdatesPendingInference[e]}setColDefPropertiesForBaseDataType(e,t,o,i){const n=this.formatValueFuncs[t],s=this.columnDefinitionPropsPerDataType[o.baseDataType]({colDef:e,cellDataType:t,colModel:this.colModel,dataTypeDefinition:o,colId:i,formatValue:n});Object.assign(e,s)}getDateObjectTypeDef(e){const t=this.getLocaleTextFunc(),o=this.getDateIncludesTimeFlag(e);return{baseDataType:e,valueParser:e=>ua(e.newValue&&String(e.newValue)),valueFormatter:e=>null==e.value?"":e.value instanceof Date&&!isNaN(e.value.getTime())?ia(e.value,o)??"":t("invalidDate","Invalid Date"),dataTypeMatcher:e=>e instanceof Date}}getDateStringTypeDef(e){const t=this.getDateIncludesTimeFlag(e);return{baseDataType:e,dateParser:e=>ua(e)??void 0,dateFormatter:e=>ia(e??null,t)??void 0,valueParser:e=>da(String(e.newValue))?e.newValue:null,valueFormatter:e=>da(String(e.value))?String(e.value):"",dataTypeMatcher:e=>"string"===typeof e&&da(e)}}getDefaultDataTypes(){const e=this.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:e=>""===e.newValue?.trim?.()?null:Number(e.newValue),valueFormatter:t=>null==t.value?"":"number"!==typeof t.value||isNaN(t.value)?e("invalidNumber","Invalid Number"):String(t.value),dataTypeMatcher:e=>"number"===typeof e},text:{baseDataType:"text",valueParser:e=>""===e.newValue?null:a(e.newValue),dataTypeMatcher:e=>"string"===typeof e},boolean:{baseDataType:"boolean",valueParser:e=>null==e.newValue?e.newValue:""===e.newValue?.trim?.()?null:"true"===String(e.newValue).toLowerCase(),valueFormatter:e=>null==e.value?"":String(e.value),dataTypeMatcher:e=>"boolean"===typeof e},date:this.getDateObjectTypeDef("date"),dateString:this.getDateStringTypeDef("dateString"),dateTime:this.getDateObjectTypeDef("dateTime"),dateTimeString:{...this.getDateStringTypeDef("dateTimeString"),dataTypeMatcher:e=>"string"===typeof e&&ca(e)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:e=>a(e.value)??""}}}destroyColumnStateUpdateListeners(){for(const e of this.columnStateUpdateListenerDestroyFuncs)e();this.columnStateUpdateListenerDestroyFuncs=[]}destroy(){this.dataTypeDefinitions={},this.dataTypeMatchers={},this.formatValueFuncs={},this.columnStateUpdatesPendingInference={},this.destroyColumnStateUpdateListeners(),super.destroy()}};function Vm(e,t){const o={...e,...t};return e.columnTypes&&t.columnTypes&&t.appendColumnTypes&&(o.columnTypes=[...bn(e.columnTypes),...bn(t.columnTypes)]),o}function Gm(e,t,o){return t?t.baseDataType===e.baseDataType||(xo(46),!1):(xo(45,{parentCellDataType:o}),!1)}function Nm(e,t){if(e.valueFormatter)return o=>{if(o.node?.group){const t=(o.colDef.pivotValueColumn??o.column).getAggFunc();if(t){if("first"===t||"last"===t)return e.valueFormatter(o);if("number"===e.baseDataType&&"count"!==t){if("number"===typeof o.value)return e.valueFormatter(o);if("object"===typeof o.value){if(!o.value)return;if("toNumber"in o.value)return e.valueFormatter({...o,value:o.value.toNumber()});if("value"in o.value)return e.valueFormatter({...o,value:o.value.value})}}return}}else if(t.get("groupHideOpenParents")&&o.column.isRowGroupActive()&&"string"===typeof o.value&&!e.dataTypeMatcher?.(o.value))return;return e.valueFormatter(o)}}function zm(e,t,o,i){if(!t[o])return!1;const n=e[o];return null===n?(t[o]=!1,!1):void 0===i?!!n:n===i}function Wm(e,t){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(([o,i])=>zm(e,t,o,i))}function _m(e,t){const o=Jn(e);for(const i of t)delete o[i],"rowGroup"===i?delete o.rowGroupIndex:"pivot"===i&&delete o.pivotIndex;return o}var Um={moduleName:"DataType",version:ro,beans:[Hm],dependsOn:[dm]},$m={moduleName:"ColumnFlex",version:ro,beans:[Lm]},qm={moduleName:"ColumnApi",version:ro,beans:[Im],apiFunctions:{getColumnDef:um,getDisplayNameForColumn:gm,getColumn:pm,getColumns:fm,applyColumnState:mm,getColumnState:vm,resetColumnState:Cm,isPinning:wm,isPinningLeft:bm,isPinningRight:ym,getDisplayedColAfter:Sm,getDisplayedColBefore:Rm,setColumnsVisible:xm,setColumnsPinned:Em,getAllGridColumns:Fm,getDisplayedLeftColumns:Pm,getDisplayedCenterColumns:Dm,getDisplayedRightColumns:km,getAllDisplayedColumns:Mm,getAllDisplayedVirtualColumns:Am,getColumnDefs:hm}};function jm(e){if(!e||null==e)return null;const t=/([a-z])([A-Z])/g,o=/([A-Z]+)([A-Z])([a-z])/g,i=e.replace(t,"$1 $2").replace(o,"$1 $2$3").replace(/\./g," ").split(" ");return i.map(e=>e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")).join(" ")}var Km=class extends Ct{constructor(){super(...arguments),this.beanName="colNames"}getDisplayNameForColumn(e,t,o=!1){if(!e)return null;const i=this.getHeaderName(e.getColDef(),e,null,null,t),{aggColNameSvc:n}=this.beans;return o&&n?n.getHeaderName(e,i):i}getDisplayNameForProvidedColumnGroup(e,t,o){const i=t?.getColGroupDef();return i?this.getHeaderName(i,null,e,t,o):null}getDisplayNameForColumnGroup(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)}getHeaderName(e,t,o,i,n){const s=e.headerValueGetter;if(s){const r=Ti(this.gos,{colDef:e,column:t,columnGroup:o,providedColumnGroup:i,location:n});return"function"===typeof s?s(r):"string"===typeof s?this.beans.expressionSvc?.evaluate(s,r)??null:""}return null!=e.headerName?e.headerName:e.field?jm(e.field):""}},Qm=class extends Ct{constructor(){super(...arguments),this.beanName="colViewport",this.colsWithinViewport=[],this.headerColsWithinViewport=[],this.colsWithinViewportHash="",this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},this.columnsToRenderLeft=[],this.columnsToRenderRight=[],this.columnsToRenderCenter=[]}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel}postConstruct(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation")}setScrollPosition(e,t,o=!1){const{visibleCols:i}=this,n=i.isBodyWidthDirty,s=e===this.scrollWidth&&t===this.scrollPosition&&!n;if(!s){if(this.scrollWidth=e,this.scrollPosition=t,i.isBodyWidthDirty=!0,this.gos.get("enableRtl")){const o=i.bodyWidth;this.viewportLeft=o-t-e,this.viewportRight=o-t}else this.viewportLeft=t,this.viewportRight=e+t;this.colModel.ready&&this.checkViewportColumns(o)}}getColumnHeadersToRender(e){switch(e){case"left":return this.columnsToRenderLeft;case"right":return this.columnsToRenderRight;default:return this.columnsToRenderCenter}}getHeadersToRender(e,t){let o;switch(e){case"left":o=this.rowsOfHeadersToRenderLeft[t];break;case"right":o=this.rowsOfHeadersToRenderRight[t];break;default:o=this.rowsOfHeadersToRenderCenter[t];break}return o??[]}extractViewportColumns(){const e=this.visibleCols.centerCols;this.isColumnVirtualisationSuppressed()?(this.colsWithinViewport=e,this.headerColsWithinViewport=e):(this.colsWithinViewport=e.filter(this.isColumnInRowViewport.bind(this)),this.headerColsWithinViewport=e.filter(this.isColumnInHeaderViewport.bind(this)))}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||0===this.viewportRight}clear(){this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},this.colsWithinViewportHash=""}isColumnInHeaderViewport(e){return!(!e.isAutoHeaderHeight()&&!Xm(e))||this.isColumnInRowViewport(e)}isColumnInRowViewport(e){if(e.isAutoHeight())return!0;const t=e.getLeft()||0,o=t+e.getActualWidth(),i=this.viewportLeft-200,n=this.viewportRight+200,s=t<i&&o<i,r=t>n&&o>n;return!s&&!r}getViewportColumns(){const{leftCols:e,rightCols:t}=this.visibleCols,o=this.colsWithinViewport.concat(e).concat(t);return o}getColsWithinViewport(e){if(!this.colModel.colSpanActive)return this.colsWithinViewport;const t=e=>{const t=e.getLeft();return s(t)&&t>this.viewportLeft},o=this.isColumnVirtualisationSuppressed()?void 0:this.isColumnInRowViewport.bind(this),{visibleCols:i}=this,n=i.centerCols;return i.getColsForRow(e,n,o,t)}checkViewportColumns(e=!1){const t=this.extractViewport();t&&this.eventSvc.dispatchEvent({type:"virtualColumnsChanged",afterScroll:e})}calculateHeaderRows(){const{leftCols:e,rightCols:t}=this.visibleCols;this.columnsToRenderLeft=e,this.columnsToRenderRight=t,this.columnsToRenderCenter=this.colsWithinViewport;const o=e=>{const t=new Set,o={};for(const i of e){let e=i.getParent();const n=i.isSpanHeaderHeight();while(e){if(t.has(e))break;const i=n&&e.isPadding();if(i){e=e.getParent();continue}const s=e.getProvidedColumnGroup().getLevel();o[s]??(o[s]=[]),o[s].push(e),t.add(e),e=e.getParent()}}return o};this.rowsOfHeadersToRenderLeft=o(e),this.rowsOfHeadersToRenderRight=o(t),this.rowsOfHeadersToRenderCenter=o(this.headerColsWithinViewport)}extractViewport(){const e=e=>`${e.getId()}-${e.getPinned()||"normal"}`;this.extractViewportColumns();const t=this.getViewportColumns().map(e).join("#"),o=this.colsWithinViewportHash!==t;return o&&(this.colsWithinViewportHash=t,this.calculateHeaderRows()),o}};function Xm(e){while(e){if(e.isAutoHeaderHeight())return!0;e=e.getParent()}return!1}var Ym=class extends Ct{constructor(){super(...arguments),this.beanName="agCompUtils"}adaptFunction(e,t){if(!e.cellRenderer)return null;class o{refresh(){return!1}getGui(){return this.eGui}init(e){const o=t(e),i=typeof o;this.eGui="string"!==i&&"number"!==i&&"boolean"!==i?null!=o?o:Zd({tag:"span"}):De("<span>"+o+"</span>")}}return o}},Zm={moduleName:"CellRendererFunction",version:ro,beans:[Ym]},Jm=class extends od{constructor(){super(...arguments),this.agGridDefaults={},this.agGridDefaultOverrides={},this.jsComps={},this.selectors={},this.icons={}}postConstruct(){const e=this.gos.get("components");if(null!=e)for(const t of Object.keys(e))this.jsComps[t]=e[t]}registerModule(e){const{icons:t,userComponents:o,dynamicBeans:i,selectors:n}=e;if(o){const e=(e,t,o,i)=>{this.agGridDefaults[e]=t,(o||i)&&(this.agGridDefaultOverrides[e]={params:o,processParams:i})};for(const t of Object.keys(o)){let i=o[t];if(ar(i)&&(i=i.getComp(this.beans)),"object"===typeof i){const{classImp:o,params:n,processParams:s}=i;e(t,o,n,s)}else e(t,i)}}this.registerDynamicBeans(i);for(const s of n??[])this.selectors[s.selector]=s;if(t)for(const s of Object.keys(t))this.icons[s]=t[s]}getUserComponent(e,t){const o=(e,t,o,i)=>({componentFromFramework:t,component:e,params:o,processParams:i}),{frameworkOverrides:i}=this.beans,n=i.frameworkComponent(t,this.gos.get("components"));if(null!=n)return o(n,!0);const s=this.jsComps[t];if(s){const e=i.isFrameworkComponent(s);return o(s,e)}const r=this.agGridDefaults[t];if(r){const e=this.agGridDefaultOverrides[t];return o(r,!1,e?.params,e?.processParams)}return this.beans.validation?.missingUserComponent(e,t,this.agGridDefaults,this.jsComps),null}getSelector(e){return this.selectors[e]}getIcon(e){return this.icons[e]}getDynamicError(e,t){return t?ko(279,{name:e}):this.beans.validation?.missingDynamicBean(e)??ko(256)}},ev=23,tv=class extends Ct{constructor(){super(...arguments),this.beanName="ctrlsSvc",this.params={},this.ready=!1,this.readyCallbacks=[]}postConstruct(){this.addEventListener("ready",()=>{if(this.updateReady(),this.ready){for(const e of this.readyCallbacks)e(this.params);this.readyCallbacks.length=0}},this.beans.frameworkOverrides.runWhenReadyAsync?.()??!1)}updateReady(){const e=Object.values(this.params);this.ready=e.length===ev&&e.every(e=>e?.isAlive()??!1)}whenReady(e,t){this.ready?t(this.params):this.readyCallbacks.push(t),e.addDestroyFunc(()=>{const e=this.readyCallbacks.indexOf(t);e>=0&&this.readyCallbacks.splice(e,1)})}register(e,t){this.params[e]=t,this.updateReady(),this.ready&&this.dispatchLocalEvent({type:"ready"}),t.addDestroyFunc(()=>{this.updateReady()})}get(e){return this.params[e]}getGridBodyCtrl(){return this.params.gridBodyCtrl}getHeaderRowContainerCtrls(){const{leftHeader:e,centerHeader:t,rightHeader:o}=this.params;return[e,o,t]}getHeaderRowContainerCtrl(e){const t=this.params;switch(e){case"left":return t.leftHeader;case"right":return t.rightHeader;default:return t.centerHeader}}getScrollFeature(){return this.getGridBodyCtrl().scrollFeature}},ov='.ag-aria-description-container{border:0;z-index:9999;clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ag-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-selectable{-webkit-user-select:text;-moz-user-select:text;user-select:text}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{flex:1 1 auto;height:100%;min-width:0;overflow:hidden;position:relative}.ag-viewport{position:relative}.ag-spanning-container{position:absolute;top:0;z-index:1}.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{overflow-x:auto;-ms-overflow-style:none!important;scrollbar-width:none!important;&::-webkit-scrollbar{display:none!important}}.ag-body-viewport{display:flex;overflow-x:hidden;&:where(.ag-layout-normal){overflow-y:auto;-webkit-overflow-scrolling:touch}}.ag-floating-bottom-container,.ag-floating-top-container,.ag-sticky-bottom-container,.ag-sticky-top-container{min-height:1px}.ag-center-cols-viewport{min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-body-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-center-cols-container,.ag-floating-bottom-container,.ag-floating-bottom-full-width-container,.ag-floating-top-container,.ag-full-width-container,.ag-header-container,.ag-pinned-left-cols-container,.ag-pinned-right-cols-container,.ag-sticky-bottom-container,.ag-sticky-top-container{position:relative}.ag-floating-bottom-container,.ag-floating-top-container,.ag-header-container,.ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top,.ag-sticky-bottom-container,.ag-sticky-top-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container,.ag-full-width-container,.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{pointer-events:none;position:absolute;top:0}:where(.ag-ltr) .ag-floating-bottom-full-width-container,:where(.ag-ltr) .ag-floating-top-full-width-container,:where(.ag-ltr) .ag-full-width-container,:where(.ag-ltr) .ag-sticky-bottom-full-width-container,:where(.ag-ltr) .ag-sticky-top-full-width-container{left:0}:where(.ag-rtl) .ag-floating-bottom-full-width-container,:where(.ag-rtl) .ag-floating-top-full-width-container,:where(.ag-rtl) .ag-full-width-container,:where(.ag-rtl) .ag-sticky-bottom-full-width-container,:where(.ag-rtl) .ag-sticky-top-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;height:100%;overflow:hidden;width:100%}.ag-body{display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0;position:relative}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:flex;min-height:0;min-width:0;position:relative;&:where(.ag-scrollbar-invisible){bottom:0;position:absolute;&:where(.ag-apple-scrollbar){opacity:0;transition:opacity .4s;visibility:hidden;&:where(.ag-scrollbar-scrolling,.ag-scrollbar-active){opacity:1;visibility:visible}}}}.ag-body-horizontal-scroll{width:100%;&:where(.ag-scrollbar-invisible){left:0;right:0}}.ag-body-vertical-scroll{height:100%;&:where(.ag-scrollbar-invisible){top:0;z-index:10}}:where(.ag-ltr) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){right:0}}:where(.ag-rtl) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){left:0}}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll;&:where(.ag-scroller-corner){overflow-x:hidden}}:where(.ag-row-animation) .ag-row{transition:transform .4s,top .4s,opacity .2s;&:where(.ag-after-created){transition:transform .4s,top .4s,height .4s,opacity .2s}}:where(.ag-row-animation.ag-prevent-animation) .ag-row{transition:none!important;&:where(.ag-row.ag-after-created){transition:none!important}}:where(.ag-row-no-animation) .ag-row{transition:none}.ag-row-loading{align-items:center;display:flex}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{align-items:center;display:flex}.ag-cell{display:inline-block;height:100%;position:absolute;white-space:nowrap;&:focus-visible{box-shadow:none}}.ag-cell-value{flex:1 1 auto}.ag-cell-value:not(.ag-allow-overflow),.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-word}:where(.ag-cell) .ag-icon{display:inline-block;vertical-align:middle}.ag-floating-top{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-top:not(.ag-invisible)){border-bottom:var(--ag-pinned-row-border)}.ag-floating-bottom{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-bottom:not(.ag-invisible)){border-top:var(--ag-pinned-row-border)}.ag-sticky-bottom,.ag-sticky-top{background-color:var(--ag-data-background-color);display:flex;height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.ag-opacity-zero{opacity:0!important}.ag-cell-label-container{align-items:center;display:flex;flex-direction:row-reverse;height:100%;justify-content:space-between;width:100%}:where(.ag-right-aligned-header){.ag-cell-label-container{flex-direction:row}.ag-header-cell-text{text-align:end}}.ag-column-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr){direction:ltr;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row}}:where(.ag-rtl){direction:rtl;text-align:right;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row-reverse}.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{display:block}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(180deg)}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(-180deg)}}:where(.ag-ltr) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}:where(.ag-rtl) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}:where(.ag-ltr) .ag-row-group-leaf-indent{margin-left:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}:where(.ag-rtl) .ag-row-group-leaf-indent{margin-right:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-value-change-delta{padding:0 2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row,.ag-spanned-row{color:var(--ag-cell-text-color);font-family:var(--ag-cell-font-family);font-size:var(--ag-data-font-size);white-space:nowrap;--ag-internal-content-line-height:calc(min(var(--ag-row-height), var(--ag-line-height, 1000px)) - var(--ag-internal-row-border-width, 1px) - 2px)}.ag-row{background-color:var(--ag-data-background-color);border-bottom:var(--ag-row-border);height:var(--ag-row-height);width:100%;&.ag-row-editing-invalid{background-color:var(--ag-full-row-edit-invalid-background-color)}}:where(.ag-body-vertical-content-no-gap>div>div>div,.ag-body-vertical-content-no-gap>div>div>div>div)>.ag-row-last{border-bottom-color:transparent}.ag-sticky-bottom{border-top:var(--ag-row-border);box-sizing:content-box!important}.ag-group-contracted,.ag-group-expanded{cursor:pointer}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{border:1px solid transparent;line-height:var(--ag-internal-content-line-height);-webkit-font-smoothing:subpixel-antialiased}:where(.ag-ltr) .ag-cell{border-right:var(--ag-column-border)}:where(.ag-rtl) .ag-cell{border-left:var(--ag-column-border)}.ag-spanned-cell-wrapper{background-color:var(--ag-data-background-color);position:absolute}.ag-spanned-cell-wrapper>.ag-spanned-cell{display:block;position:relative}:where(.ag-ltr) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-right-color:transparent}:where(.ag-rtl) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-left-color:transparent}.ag-cell-wrapper{align-items:center;display:flex;>:where(:not(.ag-cell-value,.ag-group-value)){align-items:center;display:flex;height:var(--ag-internal-content-line-height)}&:where(.ag-row-group){align-items:flex-start}:where(.ag-full-width-row) &:where(.ag-row-group){align-items:center;height:100%}}:where(.ag-ltr) .ag-cell-wrapper{padding-left:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-rtl) .ag-cell-wrapper{padding-right:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-cell-wrap-text:not(.ag-cell-auto-height)) .ag-cell-wrapper{align-items:normal;height:100%;:where(.ag-cell-value){height:100%}}:where(.ag-ltr) .ag-row>.ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-row>.ag-cell-wrapper.ag-row-group{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-cell-range-single-cell,.ag-cell-range-single-cell.ag-cell-range-handle,.ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-context-menu-open .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,.ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}.ag-full-width-row.ag-row-focus:focus{box-shadow:none}:where(.ag-ltr) .ag-group-contracted,:where(.ag-ltr) .ag-group-expanded,:where(.ag-ltr) .ag-row-drag,:where(.ag-ltr) .ag-selection-checkbox{margin-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-group-contracted,:where(.ag-rtl) .ag-group-expanded,:where(.ag-rtl) .ag-row-drag,:where(.ag-rtl) .ag-selection-checkbox{margin-left:var(--ag-cell-widget-spacing)}.ag-drag-handle-disabled{opacity:.35;pointer-events:none}:where(.ag-ltr) .ag-group-child-count{margin-left:3px}:where(.ag-rtl) .ag-group-child-count{margin-right:3px}.ag-row-highlight-above:after,.ag-row-highlight-below:after,.ag-row-highlight-inside:after{background-color:var(--ag-row-drag-indicator-color);border-radius:calc(var(--ag-row-drag-indicator-width)/2);content:"";height:var(--ag-row-drag-indicator-width);pointer-events:none;position:absolute;width:calc(100% - 1px)}:where(.ag-ltr) .ag-row-highlight-above:after,:where(.ag-ltr) .ag-row-highlight-below:after,:where(.ag-ltr) .ag-row-highlight-inside:after{left:1px}:where(.ag-rtl) .ag-row-highlight-above:after,:where(.ag-rtl) .ag-row-highlight-below:after,:where(.ag-rtl) .ag-row-highlight-inside:after{right:1px}.ag-row-highlight-above:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-highlight-indent:after{display:block;width:auto}:where(.ag-ltr) .ag-row-highlight-indent:after{left:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size));right:1px}:where(.ag-rtl) .ag-row-highlight-indent:after{left:1px;right:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size))}.ag-row-highlight-inside:after{background-color:var(--ag-selected-row-background-color);border:1px solid var(--ag-range-selection-border-color);display:block;height:auto;inset:0;width:auto}.ag-body,.ag-floating-bottom,.ag-floating-top{background-color:var(--ag-data-background-color)}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-selected:before{background-color:var(--ag-selected-row-background-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-full-width-row.ag-row-group:before,.ag-row-hover:not(.ag-full-width-row):before{background-color:var(--ag-row-hover-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-row.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-header-range-highlight{background-color:var(--ag-range-header-highlight-color)}.ag-right-aligned-cell{font-variant-numeric:tabular-nums}:where(.ag-ltr) .ag-right-aligned-cell{text-align:right}:where(.ag-rtl) .ag-right-aligned-cell{text-align:left}.ag-right-aligned-cell .ag-cell-value,.ag-right-aligned-cell .ag-group-value{margin-left:auto}:where(.ag-ltr) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-ltr) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level));padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}:where(.ag-rtl) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-rtl) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-details-row{background-color:var(--ag-data-background-color);padding:calc(var(--ag-spacing)*3.75)}.ag-layout-auto-height,.ag-layout-print{.ag-center-cols-container,.ag-center-cols-viewport{min-height:150px}}.ag-overlay-exporting-wrapper,.ag-overlay-loading-wrapper,.ag-overlay-modal-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-skeleton-container{align-content:center;height:100%;width:100%}.ag-skeleton-effect{animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite;background-color:var(--ag-row-loading-skeleton-effect-color);border-radius:.25rem;height:1em;width:100%}:where(.ag-ltr) .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}:where(.ag-rtl) .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}@keyframes ag-skeleton-loading{0%{background-color:var(--ag-row-loading-skeleton-effect-color)}50%{background-color:color-mix(in srgb,transparent,var(--ag-row-loading-skeleton-effect-color) 40%)}to{background-color:var(--ag-row-loading-skeleton-effect-color)}}.ag-loading{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-ltr) .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-icon-loading{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ag-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);color:var(--ag-header-text-color);display:flex;font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight);overflow:hidden;white-space:nowrap;width:100%}.ag-header-row{height:var(--ag-header-height);position:absolute}.ag-floating-filter-button-button,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,:where(.ag-header-cell-sortable) .ag-header-cell-label,:where(.ag-header-group-cell-selectable) .ag-header-cell-comp-wrapper{cursor:pointer}:where(.ag-ltr) .ag-header-expand-icon{margin-left:4px}:where(.ag-rtl) .ag-header-expand-icon{margin-right:4px}.ag-header-row:where(:not(:first-child)){:where(.ag-header-cell:not(.ag-header-span-height.ag-header-span-total,.ag-header-parent-hidden),.ag-header-group-cell.ag-header-group-cell-with-group){border-top:var(--ag-header-row-border)}}.ag-header-row:where(:not(.ag-header-row-column-group)){overflow:hidden}:where(.ag-header.ag-header-allow-overflow) .ag-header-row{overflow:visible}.ag-header-cell{display:inline-flex;overflow:hidden}.ag-header-group-cell{contain:paint;display:flex}.ag-header-cell,.ag-header-group-cell{align-items:center;gap:var(--ag-cell-widget-spacing);height:100%;padding:0 var(--ag-cell-horizontal-padding);position:absolute}@property --ag-internal-moving-color{syntax:"<color>";inherits:false;initial-value:transparent}@property --ag-internal-hover-color{syntax:"<color>";inherits:false;initial-value:transparent}.ag-header-cell:where(:not(.ag-floating-filter)),.ag-header-group-cell{&:before{background-image:linear-gradient(var(--ag-internal-hover-color),var(--ag-internal-hover-color)),linear-gradient(var(--ag-internal-moving-color),var(--ag-internal-moving-color));content:"";inset:0;position:absolute;--ag-internal-moving-color:transparent;--ag-internal-hover-color:transparent;transition:--ag-internal-moving-color var(--ag-header-cell-background-transition-duration),--ag-internal-hover-color var(--ag-header-cell-background-transition-duration)}&:where(:hover):before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}&:where(.ag-header-cell-moving):before{--ag-internal-moving-color:var(--ag-header-cell-moving-background-color);--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}}:where(.ag-header-cell:not(.ag-floating-filter) *,.ag-header-group-cell *){position:relative;z-index:1}.ag-header-cell-menu-button:where(:not(.ag-header-menu-always-show)){opacity:0;transition:opacity .2s}.ag-header-cell-filter-button,:where(.ag-header-cell.ag-header-active) .ag-header-cell-menu-button{opacity:1}.ag-header-cell-label,.ag-header-group-cell-label{align-items:center;align-self:stretch;display:flex;flex:1 1 auto;overflow:hidden;padding:5px 0}:where(.ag-ltr) .ag-sort-indicator-icon{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-sort-indicator-icon{padding-right:var(--ag-spacing)}.ag-header-cell-label{text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{flex:none;max-width:100%;overflow:visible;position:sticky}:where(.ag-ltr) .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell-text,.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{word-break:break-word}.ag-header-cell-comp-wrapper{width:100%}:where(.ag-header-group-cell) .ag-header-cell-comp-wrapper{display:flex}:where(.ag-header-cell:not(.ag-header-cell-auto-height)) .ag-header-cell-comp-wrapper{align-items:center;display:flex;height:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-header-cell-comp-wrapper-limited-height>*{overflow:hidden}:where(.ag-right-aligned-header) .ag-header-cell-label{flex-direction:row-reverse}:where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{margin-right:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{margin-left:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{margin-left:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{margin-right:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}.ag-header-cell:after,.ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{content:"";height:var(--ag-header-column-border-height);position:absolute;top:calc(50% - var(--ag-header-column-border-height)*.5);z-index:1}:where(.ag-ltr) .ag-header-cell:after,:where(.ag-ltr) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-right:var(--ag-header-column-border);right:0}:where(.ag-rtl) .ag-header-cell:after,:where(.ag-rtl) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-left:var(--ag-header-column-border);left:0}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-column-drag-indicator-color);border-radius:calc(var(--ag-column-drag-indicator-width)/2);content:"";height:100%;position:absolute;top:0;width:var(--ag-column-drag-indicator-width)}:where(.ag-ltr) .ag-header-highlight-before:after{left:0}:where(.ag-rtl) .ag-header-highlight-before:after{right:0}:where(.ag-ltr) .ag-header-highlight-after:after{right:0;:where(.ag-pinned-left-header) &{right:1px}}:where(.ag-rtl) .ag-header-highlight-after:after{left:0;:where(.ag-pinned-left-header) &{left:1px}}.ag-header-cell-resize{align-items:center;cursor:ew-resize;display:flex;height:100%;position:absolute;top:0;width:8px;z-index:2;&:after{background-color:var(--ag-header-column-resize-handle-color);content:"";height:var(--ag-header-column-resize-handle-height);position:absolute;top:calc(50% - var(--ag-header-column-resize-handle-height)*.5);width:var(--ag-header-column-resize-handle-width);z-index:1}}:where(.ag-ltr) .ag-header-cell-resize{right:-3px;&:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-rtl) .ag-header-cell-resize{left:-3px;&:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-header-cell.ag-header-span-height) .ag-header-cell-resize:after{height:calc(100% - var(--ag-spacing)*4);top:calc(var(--ag-spacing)*2)}.ag-header-group-cell-no-group:where(.ag-header-span-height){display:none}.ag-sort-indicator-container{display:flex;gap:var(--ag-spacing)}.ag-layout-print{&.ag-body{display:block;height:unset}&.ag-root-wrapper{display:inline-block}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:none}&.ag-force-vertical-scroll{overflow-y:visible!important}}@media print{.ag-root-wrapper.ag-layout-print{display:table;.ag-body-horizontal-scroll-viewport,.ag-body-viewport,.ag-center-cols-container,.ag-center-cols-viewport,.ag-root,.ag-root-wrapper-body,.ag-virtual-list-viewport{display:block!important;height:auto!important;overflow:hidden!important}.ag-cell,.ag-row{-moz-column-break-inside:avoid;break-inside:avoid}}}ag-grid,ag-grid-angular{display:block}.ag-root-wrapper{border:var(--ag-wrapper-border);border-radius:var(--ag-wrapper-border-radius);display:flex;flex-direction:column;overflow:hidden;position:relative;&.ag-layout-normal{height:100%}}.ag-root-wrapper-body{display:flex;flex-direction:row;&.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}}.ag-root{display:flex;flex-direction:column;position:relative;&.ag-layout-auto-height,&.ag-layout-normal{flex:1 1 auto;overflow:hidden;width:0}&.ag-layout-normal{height:100%}}.ag-drag-handle{color:var(--ag-drag-handle-color);cursor:grab;:where(.ag-icon){color:var(--ag-drag-handle-color)}}.ag-chart-menu-icon,.ag-chart-settings-next,.ag-chart-settings-prev,.ag-column-group-icons,.ag-column-select-header-icon,.ag-filter-toolpanel-expand,.ag-floating-filter-button-button,.ag-group-title-bar-icon,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,.ag-panel-title-bar-button-icon,.ag-set-filter-group-icons,:where(.ag-group-contracted) .ag-icon,:where(.ag-group-expanded) .ag-icon{background-color:var(--ag-icon-button-background-color);border-radius:var(--ag-icon-button-border-radius);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-background-color);color:var(--ag-icon-button-color);&:hover{background-color:var(--ag-icon-button-hover-background-color);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-hover-background-color);color:var(--ag-icon-button-hover-color)}}:where(.ag-filter-active,.ag-filter-toolpanel-group-instance-header-icon,.ag-filter-toolpanel-instance-header-icon){position:relative;&:after{background-color:var(--ag-icon-button-active-indicator-color);border-radius:50%;content:"";height:6px;position:absolute;top:-1px;width:6px}}:where(.ag-ltr) :where(.ag-filter-active,.ag-filter-toolpanel-group-instance-header-icon,.ag-filter-toolpanel-instance-header-icon){&:after{right:-1px}}:where(.ag-rtl) :where(.ag-filter-active,.ag-filter-toolpanel-group-instance-header-icon,.ag-filter-toolpanel-instance-header-icon){&:after{left:-1px}}.ag-filter-active{background-image:linear-gradient(var(--ag-icon-button-active-background-color),var(--ag-icon-button-active-background-color));border-radius:1px;outline:solid var(--ag-icon-button-background-spread) var(--ag-icon-button-active-background-color);:where(.ag-icon-filter){clip-path:path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");color:var(--ag-icon-button-active-color)}}.ag-menu{background-color:var(--ag-menu-background-color);border:var(--ag-menu-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-menu-shadow);color:var(--ag-menu-text-color);max-height:100%;overflow-y:auto;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}',iv={wrapperBorder:!0,rowBorder:!0,headerRowBorder:!0,footerRowBorder:{ref:"rowBorder"},columnBorder:{style:"solid",width:1,color:"transparent"},headerColumnBorder:!1,headerColumnBorderHeight:"100%",pinnedColumnBorder:!0,pinnedRowBorder:!0,sidePanelBorder:!0,sideBarPanelWidth:250,sideBarBackgroundColor:{ref:"chromeBackgroundColor"},sideButtonBarBackgroundColor:{ref:"sideBarBackgroundColor"},sideButtonBarTopPadding:0,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineColor:"transparent",sideButtonSelectedUnderlineTransitionDuration:0,sideButtonBackgroundColor:"transparent",sideButtonTextColor:{ref:"textColor"},sideButtonHoverBackgroundColor:{ref:"sideButtonBackgroundColor"},sideButtonHoverTextColor:{ref:"sideButtonTextColor"},sideButtonSelectedBackgroundColor:Cl,sideButtonSelectedTextColor:{ref:"sideButtonTextColor"},sideButtonBorder:"solid 1px transparent",sideButtonSelectedBorder:!0,sideButtonLeftPadding:{ref:"spacing"},sideButtonRightPadding:{ref:"spacing"},sideButtonVerticalPadding:{calc:"spacing * 3"},headerBackgroundColor:{ref:"chromeBackgroundColor"},headerFontFamily:{ref:"fontFamily"},cellFontFamily:{ref:"fontFamily"},headerFontWeight:500,headerFontSize:{ref:"fontSize"},dataFontSize:{ref:"fontSize"},headerTextColor:{ref:"textColor"},headerCellHoverBackgroundColor:"transparent",headerCellMovingBackgroundColor:{ref:"headerCellHoverBackgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:bl,rangeSelectionBackgroundColor:pl(.2),rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:pl(.5),rangeHeaderHighlightColor:vl(.08),rowNumbersSelectedColor:pl(.5),rowHoverColor:pl(.08),columnHoverColor:pl(.05),selectedRowBackgroundColor:pl(.12),modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},dataBackgroundColor:Cl,oddRowBackgroundColor:{ref:"dataBackgroundColor"},wrapperBorderRadius:8,cellHorizontalPadding:{calc:"spacing * 2 * cellHorizontalPaddingScale"},cellWidgetSpacing:{calc:"spacing * 1.5"},cellHorizontalPaddingScale:1,rowGroupIndentSize:{calc:"cellWidgetSpacing + iconSize"},valueChangeDeltaUpColor:"#43a047",valueChangeDeltaDownColor:"#e53935",valueChangeValueHighlightBackgroundColor:"#16a08580",rowHeight:{calc:"max(iconSize, dataFontSize) + spacing * 3.25 * rowVerticalPaddingScale"},rowVerticalPaddingScale:1,headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4 * headerVerticalPaddingScale"},headerVerticalPaddingScale:1,paginationPanelHeight:{ref:"rowHeight",calc:"max(rowHeight, 22px)"},dragHandleColor:fl(.7),headerColumnResizeHandleHeight:"30%",headerColumnResizeHandleWidth:2,headerColumnResizeHandleColor:{ref:"borderColor"},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 1.5"},widgetHorizontalSpacing:{calc:"spacing * 1.5"},widgetVerticalSpacing:{ref:"spacing"},iconButtonColor:{ref:"iconColor"},iconButtonBackgroundColor:"transparent",iconButtonBackgroundSpread:4,iconButtonBorderRadius:1,iconButtonHoverColor:{ref:"iconButtonColor"},iconButtonHoverBackgroundColor:fl(.1),iconButtonActiveColor:bl,iconButtonActiveBackgroundColor:pl(.28),iconButtonActiveIndicatorColor:bl,menuBorder:{color:fl(.2)},menuBackgroundColor:ml(.03),menuTextColor:ml(.95),menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"},setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:fl(.8),dialogShadow:{ref:"popupShadow"},cellEditingBorder:{color:bl},cellEditingShadow:{ref:"cardShadow"},fullRowEditInvalidBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.25},dialogBorder:{color:fl(.2)},panelBackgroundColor:Cl,panelTitleBarHeight:{ref:"headerHeight"},panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarIconColor:{ref:"headerTextColor"},panelTitleBarTextColor:{ref:"headerTextColor"},panelTitleBarFontWeight:{ref:"headerFontWeight"},panelTitleBarBorder:!0,columnSelectIndentSize:{ref:"iconSize"},toolPanelSeparatorBorder:!0,columnDropCellBackgroundColor:fl(.07),columnDropCellTextColor:{ref:"textColor"},columnDropCellDragHandleColor:{ref:"textColor"},columnDropCellBorder:{color:fl(.13)},selectCellBackgroundColor:fl(.07),selectCellBorder:{color:fl(.13)},advancedFilterBuilderButtonBarBorder:!0,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",filterPanelApplyButtonColor:Cl,filterPanelApplyButtonBackgroundColor:bl,filterPanelCardSubtleColor:{ref:"textColor",mix:.7},filterPanelCardSubtleHoverColor:{ref:"textColor"},findMatchColor:wl,findMatchBackgroundColor:"#ffff00",findActiveMatchColor:wl,findActiveMatchBackgroundColor:"#ffa500",filterToolPanelGroupIndent:{ref:"spacing"},rowLoadingSkeletonEffectColor:fl(.15),statusBarLabelColor:wl,statusBarLabelFontWeight:500,statusBarValueColor:wl,statusBarValueFontWeight:500,pinnedSourceRowTextColor:{ref:"textColor"},pinnedSourceRowBackgroundColor:{ref:"dataBackgroundColor"},pinnedSourceRowFontWeight:600,pinnedRowFontWeight:600,pinnedRowBackgroundColor:{ref:"dataBackgroundColor"},pinnedRowTextColor:{ref:"textColor"},rowDragIndicatorColor:{ref:"rangeSelectionBorderColor"},rowDragIndicatorWidth:2,columnDragIndicatorColor:{ref:"accentColor"},columnDragIndicatorWidth:2},nv=".ag-cell-batch-edit{background-color:var(--ag-cell-batch-edit-background-color);color:var(--ag-cell-batch-edit-text-color);display:inherit}.ag-row-batch-edit{background-color:var(--ag-row-batch-edit-background-color);color:var(--ag-row-batch-edit-text-color)}",sv={cellBatchEditBackgroundColor:"rgba(220 181 139 / 16%)",cellBatchEditTextColor:"#422f00",rowBatchEditBackgroundColor:{ref:"cellBatchEditBackgroundColor"},rowBatchEditTextColor:{ref:"cellBatchEditTextColor"}},rv={...sv,cellBatchEditTextColor:"#f3d0b3"},av=()=>sl({feature:"batchEditStyle",params:sv,css:nv}),lv=av(),dv=":where(.ag-button){background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0;text-indent:inherit;text-shadow:inherit;text-transform:inherit;word-spacing:inherit;&:disabled{cursor:default}&:focus-visible{box-shadow:var(--ag-focus-shadow);outline:none}}.ag-standard-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--ag-button-background-color);border:var(--ag-button-border);border-radius:var(--ag-button-border-radius);color:var(--ag-button-text-color);cursor:pointer;font-weight:var(--ag-button-font-weight);padding:var(--ag-button-vertical-padding) var(--ag-button-horizontal-padding);&:hover{background-color:var(--ag-button-hover-background-color);border:var(--ag-button-hover-border);color:var(--ag-button-hover-text-color)}&:active{background-color:var(--ag-button-active-background-color);border:var(--ag-button-active-border);color:var(--ag-button-active-text-color)}&:disabled{background-color:var(--ag-button-disabled-background-color);border:var(--ag-button-disabled-border);color:var(--ag-button-disabled-text-color)}}",cv={buttonTextColor:"inherit",buttonFontWeight:"normal",buttonBackgroundColor:"transparent",buttonBorder:!1,buttonBorderRadius:{ref:"borderRadius"},buttonHorizontalPadding:{calc:"spacing * 2"},buttonVerticalPadding:{ref:"spacing"},buttonHoverTextColor:{ref:"buttonTextColor"},buttonHoverBackgroundColor:{ref:"buttonBackgroundColor"},buttonHoverBorder:{ref:"buttonBorder"},buttonActiveTextColor:{ref:"buttonHoverTextColor"},buttonActiveBackgroundColor:{ref:"buttonHoverBackgroundColor"},buttonActiveBorder:{ref:"buttonHoverBorder"},buttonDisabledTextColor:{ref:"inputDisabledTextColor"},buttonDisabledBackgroundColor:{ref:"inputDisabledBackgroundColor"},buttonDisabledBorder:{ref:"inputDisabledBorder"}},uv=()=>sl({feature:"buttonStyle",params:cv,css:dv}),hv=uv(),gv=()=>sl({feature:"buttonStyle",params:{...cv,buttonBackgroundColor:Cl,buttonBorder:!0,buttonHoverBackgroundColor:{ref:"rowHoverColor"},buttonActiveBorder:{color:bl}},css:dv}),pv=gv(),fv=()=>sl({feature:"buttonStyle",params:{...cv,buttonBackgroundColor:Cl,buttonBorder:{color:bl},buttonFontWeight:600,buttonTextColor:bl,buttonHoverBackgroundColor:{ref:"rowHoverColor"},buttonActiveBackgroundColor:bl,buttonActiveTextColor:Cl},css:dv}),mv=fv(),vv=()=>sl({feature:"buttonStyle",params:{...cv,buttonBorder:{color:wl,width:2,style:"outset"},buttonActiveBorder:{color:wl,width:2,style:"inset"},buttonBackgroundColor:ml(.07),buttonHoverBackgroundColor:Cl,buttonVerticalPadding:{calc:"spacing * 0.5"}},css:dv}),Cv=vv(),wv=".ag-column-drop-vertical-empty-message{align-items:center;border:dashed var(--ag-border-width);border-color:var(--ag-border-color);display:flex;inset:0;justify-content:center;margin:calc(var(--ag-spacing)*1.5) calc(var(--ag-spacing)*2);overflow:hidden;padding:calc(var(--ag-spacing)*2);position:absolute}",bv=".ag-column-drop-vertical-empty-message{color:var(--ag-subtle-text-color);font-size:calc(var(--ag-font-size) - 1px);font-weight:600;padding-top:var(--ag-spacing)}:where(.ag-ltr) .ag-column-drop-vertical-empty-message{padding-left:calc(var(--ag-icon-size) + var(--ag-spacing) + var(--ag-widget-horizontal-spacing));padding-right:var(--ag-spacing)}:where(.ag-rtl) .ag-column-drop-vertical-empty-message{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-icon-size) + var(--ag-spacing) + var(--ag-widget-horizontal-spacing))}",yv=()=>sl({feature:"columnDropStyle",css:wv}),Sv=yv(),Rv=()=>sl({feature:"columnDropStyle",css:bv}),xv=Rv(),Ev={warn:(...e)=>{xo(e[0],e[1])},error:(...e)=>{Eo(e[0],e[1])},preInitErr:(...e)=>{Fo(e[0],e[2],e[1])}},Fv=()=>zl(Ev).withParams(iv).withPart(pv).withPart(Sv).withPart(lv),Pv='.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{background-color:var(--ag-checkbox-unchecked-background-color);border:solid var(--ag-checkbox-border-width) var(--ag-checkbox-unchecked-border-color);flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);:where(input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-icon-size);margin:0;opacity:0;width:var(--ag-icon-size)}&:after{content:"";display:block;inset:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;pointer-events:none;position:absolute}&:where(.ag-checked){background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color);&:after{background-color:var(--ag-checkbox-checked-shape-color)}}&:where(:focus-within,:active){box-shadow:var(--ag-focus-shadow)}&:where(.ag-disabled){filter:grayscale();opacity:.5}}.ag-checkbox-input-wrapper{border-radius:var(--ag-checkbox-border-radius);&:where(.ag-checked):after{-webkit-mask-image:var(--ag-checkbox-checked-shape-image);mask-image:var(--ag-checkbox-checked-shape-image)}&:where(.ag-indeterminate){background-color:var(--ag-checkbox-indeterminate-background-color);border-color:var(--ag-checkbox-indeterminate-border-color);&:after{background-color:var(--ag-checkbox-indeterminate-shape-color);-webkit-mask-image:var(--ag-checkbox-indeterminate-shape-image);mask-image:var(--ag-checkbox-indeterminate-shape-image)}}}.ag-cell-editing-error .ag-checkbox-input-wrapper:focus-within{box-shadow:var(--ag-focus-error-shadow)}.ag-radio-button-input-wrapper{border-radius:100%;&:where(.ag-checked):after{-webkit-mask-image:var(--ag-radio-checked-shape-image);mask-image:var(--ag-radio-checked-shape-image)}}',Dv=()=>sl({feature:"checkboxStyle",params:{checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:Cl,checkboxUncheckedBorderColor:ml(.3),checkboxCheckedBackgroundColor:bl,checkboxCheckedBorderColor:{ref:"checkboxCheckedBackgroundColor"},checkboxCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="7" fill="none"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M1 3.5 3.5 6l5-5"/></svg>'},checkboxCheckedShapeColor:Cl,checkboxIndeterminateBackgroundColor:ml(.3),checkboxIndeterminateBorderColor:{ref:"checkboxIndeterminateBackgroundColor"},checkboxIndeterminateShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="2" fill="none"><rect width="10" height="2" fill="#000" rx="1"/></svg>'},checkboxIndeterminateShapeColor:Cl,radioCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" fill="none"><circle cx="3" cy="3" r="3" fill="#000"/></svg>'}},css:Pv}),kv=Dv(),Mv=()=>sl({feature:"colorScheme",params:yl}),Av=Mv(),Tv=()=>sl({feature:"colorScheme",params:{...yl,foregroundColor:"#000000de",borderColor:"#60300026",chromeBackgroundColor:"#60300005"}}),Iv=Tv(),Lv=()=>sl({feature:"colorScheme",params:{...yl,foregroundColor:"#000",chromeBackgroundColor:"#f3f8f8"}}),Bv=Lv(),Ov=()=>({...yl,...rv,backgroundColor:"hsl(217, 0%, 17%)",foregroundColor:"#FFF",chromeBackgroundColor:ml(.05),rowHoverColor:pl(.15),selectedRowBackgroundColor:pl(.2),menuBackgroundColor:ml(.1),browserColorScheme:"dark",popupShadow:"0 0px 20px #000A",cardShadow:"0 1px 4px 1px #000A",advancedFilterBuilderJoinPillColor:"#7a3a37",advancedFilterBuilderColumnPillColor:"#355f2d",advancedFilterBuilderOptionPillColor:"#5a3168",advancedFilterBuilderValuePillColor:"#374c86",filterPanelApplyButtonColor:wl,findMatchColor:Cl,findActiveMatchColor:Cl,checkboxUncheckedBorderColor:ml(.4),toggleButtonOffBackgroundColor:ml(.4),rowBatchEditBackgroundColor:ml(.1)}),Hv=()=>sl({feature:"colorScheme",params:Ov()}),Vv=Hv(),Gv=()=>sl({feature:"colorScheme",params:{backgroundColor:"hsl(29, 10%, 17%)",foregroundColor:"#FFF",browserColorScheme:"dark"}}),Nv=()=>({...Ov(),backgroundColor:"#1f2836"}),zv=Gv(),Wv=()=>sl({feature:"colorScheme",params:Nv()}),_v=Wv(),Uv=()=>sl({feature:"colorScheme",params:yl,modeParams:{light:yl,dark:Ov(),"dark-blue":Nv()}}),$v=Uv(),qv=".ag-icon-aggregation:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eaggregation%3C/title%3E%3Cpath d='M25.128 2.002c2.56.096 4.772 2.292 4.87 4.87a712 712 0 0 1 0 18.256c-.096 2.56-2.292 4.772-4.87 4.87a712 712 0 0 1-18.256 0c-2.558-.096-4.772-2.29-4.87-4.87a712 712 0 0 1 0-18.256c.096-2.56 2.292-4.772 4.87-4.87a712 712 0 0 1 18.256 0M7.006 4c-1.57.02-2.946 1.348-3.004 2.922-.078 6.078-.23 12.16.002 18.234.094 1.484 1.354 2.746 2.84 2.84 6.1.232 12.212.232 18.312 0 1.48-.094 2.746-1.35 2.84-2.84.232-6.1.232-12.212 0-18.312-.094-1.48-1.35-2.746-2.84-2.84C19.11 3.774 13.056 4 7.006 4M22 12h-2v-2h-8v.092c.056 1.352 3.426 2.598 4.472 4.404.682 1.174.438 2.754-.572 3.72C14.29 19.618 12 20.924 12 22h8v-2h2v4H10c0-1.586-.098-3.304 1.016-4.314 1.904-1.632 4.89-3.108 3.54-4.42-1.918-1.68-4.464-2.936-4.554-5.12L10 8h12z'/%3E%3C/svg%3E\")}.ag-icon-arrows:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Earrows%3C/title%3E%3Cpath d='m6.414 17 2.294 2.292-1.416 1.416L2.586 16l4.706-4.708 1.416 1.416L6.414 15H15V6.414l-2.292 2.294-1.416-1.416L16 2.586l4.708 4.706-1.416 1.416L17 6.414V15h8.586l-2.294-2.292 1.416-1.416L29.414 16l-4.706 4.708-1.416-1.416L25.586 17H17v8.586l2.292-2.294 1.416 1.416L16 29.414l-4.708-4.706 1.416-1.416L15 25.586V17z'/%3E%3C/svg%3E\")}.ag-icon-asc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m15 10.621-4.292 4.294-1.416-1.416L16 6.793l6.708 6.706-1.416 1.416L17 10.621v14.586h-2z'/%3E%3C/svg%3E\")}.ag-icon-aasc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M13.201 8.08q.65 0 1.135.222.487.222.759.618.27.396.279.919H14.19a.72.72 0 0 0-.293-.536q-.26-.191-.705-.192-.302.001-.51.086a.7.7 0 0 0-.32.23.56.56 0 0 0-.108.338.5.5 0 0 0 .065.273.7.7 0 0 0 .204.203q.127.083.295.146.168.06.36.102l.525.125q.382.086.701.229.32.143.554.35.234.21.362.49.131.284.134.648a1.6 1.6 0 0 1-.273.93q-.27.391-.777.608-.504.214-1.217.214-.708 0-1.232-.217a1.8 1.8 0 0 1-.816-.642q-.29-.428-.305-1.058h1.194q.02.294.17.49.15.195.402.294.253.097.573.097.313 0 .544-.09a.84.84 0 0 0 .362-.255.6.6 0 0 0 .129-.374q0-.195-.117-.33a.9.9 0 0 0-.337-.228 3.4 3.4 0 0 0-.54-.171l-.635-.16q-.738-.18-1.166-.562t-.426-1.03a1.53 1.53 0 0 1 .284-.927q.287-.396.79-.618a2.8 2.8 0 0 1 1.14-.223'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5.813 14H4.489l-.432-1.332H1.948L1.515 14H.19l2.017-5.84h1.592zm-3.551-2.296h1.481l-.718-2.21H2.98zM8.452 8.16q.645 0 1.075.19.43.191.648.531a1.4 1.4 0 0 1 .217.775q0 .343-.137.602-.137.256-.376.422a1.6 1.6 0 0 1-.542.231v.057q.333.015.624.188.294.175.476.489.183.31.183.74 0 .466-.231.831a1.56 1.56 0 0 1-.676.573Q9.265 14 8.609 14H6.114V8.16zM7.35 12.99h1.006q.517 0 .753-.196a.66.66 0 0 0 .237-.531.8.8 0 0 0-.116-.428.8.8 0 0 0-.334-.29 1.15 1.15 0 0 0-.511-.106H7.349zm0-2.386h.916q.254 0 .45-.09a.75.75 0 0 0 .313-.256.67.67 0 0 0 .118-.396.64.64 0 0 0-.226-.511q-.223-.195-.633-.194H7.35z' clip-rule='evenodd'/%3E%3Cpath fill='%23000' d='M7.166.377a.75.75 0 0 1 .919.066l3.333 3a.75.75 0 0 1-1.003 1.115L7.609 2.033 5.113 4.53a.75.75 0 0 1-1.06-1.06l3-3z'/%3E%3C/svg%3E\")}.ag-icon-cancel:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecancel%3C/title%3E%3Cpath d='M16 4C9.378 4 4 9.378 4 16s5.378 12 12 12 12-5.378 12-12S22.622 4 16 4m0 2c5.52 0 10 4.48 10 10s-4.48 10-10 10S6 21.52 6 16 10.48 6 16 6m0 8.586 5.292-5.294 1.416 1.416L17.414 16l5.294 5.292-1.416 1.416L16 17.414l-5.292 5.294-1.416-1.416L14.586 16l-5.294-5.292 1.416-1.416z'/%3E%3C/svg%3E\")}.ag-icon-chart:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Echart%3C/title%3E%3Cpath d='M6.667 12.267h4v13.067h-4zm7.466-5.6h3.733v18.667h-3.733zM21.6 17.333h3.733v8H21.6z'/%3E%3C/svg%3E\")}.ag-icon-color-picker:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolor-picker%3C/title%3E%3Cpath d='M23.907 17.587 10.574 4.254l-1.88 1.88 3.173 3.173-8.28 8.28 10.16 10.16zm-16.547 0 6.387-6.387 6.387 6.387H7.361zm18.387 2s-2.667 2.893-2.667 4.667c0 1.467 1.2 2.667 2.667 2.667s2.667-1.2 2.667-2.667c0-1.773-2.667-4.667-2.667-4.667'/%3E%3C/svg%3E\")}.ag-icon-columns:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolumns%3C/title%3E%3Cpath d='M14 25h-2V7h2zm6 0h-2V7h2zm6 0h-2V7h2zM8 25H6V7h2z'/%3E%3C/svg%3E\")}.ag-icon-contracted:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Econtracted%3C/title%3E%3Cpath d='m21.061 16-8.706 8.708-1.416-1.416L18.233 16l-7.294-7.292 1.416-1.416z'/%3E%3C/svg%3E\")}.ag-icon-copy:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecopy%3C/title%3E%3Cpath d='M21.929 27.999h-7.828a5.09 5.09 0 0 1-5.086-5.086v-9.812a5.087 5.087 0 0 1 5.086-5.086h7.828a5.09 5.09 0 0 1 5.086 5.086v9.812a5.087 5.087 0 0 1-5.086 5.086m.16-17.984h-8.088a2.94 2.94 0 0 0-2.938 2.938v10.132a2.94 2.94 0 0 0 2.938 2.938h8.088a2.94 2.94 0 0 0 2.936-2.938V12.953a2.94 2.94 0 0 0-2.936-2.938M7.041 26.013h-2.05a4 4 0 0 1-.006-.228V9.065a5.07 5.07 0 0 1 5.064-5.064h12.812q.069 0 .134.002v2.012H9.915a2.876 2.876 0 0 0-2.874 2.874z'/%3E%3C/svg%3E\")}.ag-icon-cross:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4 4 24 24'%3E%3Ctitle%3Ecross%3C/title%3E%3Cpath d='m16 14.586 5.292-5.294 1.416 1.416L17.414 16l5.294 5.292-1.416 1.416L16 17.414l-5.292 5.294-1.416-1.416L14.586 16l-5.294-5.292 1.416-1.416z'/%3E%3C/svg%3E\")}.ag-icon-csv:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='translate(3.934 -.054)scale(.06285)'/%3E%3Cpath d='M.688-.226a.2.2 0 0 1-.017.074.28.28 0 0 1-.145.14.412.412 0 0 1-.234.013.28.28 0 0 1-.202-.168.468.468 0 0 1-.04-.19q0-.086.025-.155a.319.319 0 0 1 .182-.191.4.4 0 0 1 .134-.025q.087 0 .155.035a.3.3 0 0 1 .104.085.17.17 0 0 1 .036.097.06.06 0 0 1-.018.044.06.06 0 0 1-.042.019.06.06 0 0 1-.042-.013.2.2 0 0 1-.031-.046.2.2 0 0 0-.066-.079.16.16 0 0 0-.095-.027.17.17 0 0 0-.142.068.3.3 0 0 0-.053.193.4.4 0 0 0 .023.139.2.2 0 0 0 .067.083.2.2 0 0 0 .1.027q.063 0 .106-.031a.2.2 0 0 0 .065-.091.2.2 0 0 1 .023-.046q.014-.018.044-.018a.06.06 0 0 1 .044.018.06.06 0 0 1 .019.045' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.622-.215a.2.2 0 0 1-.033.117.23.23 0 0 1-.098.081.4.4 0 0 1-.153.029.34.34 0 0 1-.175-.04.23.23 0 0 1-.079-.077.17.17 0 0 1-.031-.093q0-.027.019-.045a.06.06 0 0 1 .046-.019.06.06 0 0 1 .039.014.1.1 0 0 1 .027.044.3.3 0 0 0 .03.057q.015.023.044.038.03.015.076.015.065 0 .105-.03a.09.09 0 0 0 .04-.075.08.08 0 0 0-.022-.058.14.14 0 0 0-.056-.034 1 1 0 0 0-.092-.025.7.7 0 0 1-.129-.042.2.2 0 0 1-.083-.066.17.17 0 0 1-.03-.104q0-.058.032-.105a.2.2 0 0 1 .093-.07.4.4 0 0 1 .144-.025q.066 0 .114.016a.3.3 0 0 1 .08.044.2.2 0 0 1 .046.057q.015.03.015.058a.07.07 0 0 1-.018.046.06.06 0 0 1-.046.021q-.025 0-.038-.012a.2.2 0 0 1-.028-.041.2.2 0 0 0-.047-.063Q.387-.625.326-.625a.15.15 0 0 0-.09.025q-.035.024-.035.059 0 .021.012.037a.1.1 0 0 0 .032.027.4.4 0 0 0 .111.036q.06.015.11.031.048.018.083.042a.2.2 0 0 1 .054.062.2.2 0 0 1 .019.091' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='m.184-.633.162.48.163-.483q.013-.038.019-.053a.062.062 0 0 1 .061-.039q.018 0 .034.009a.1.1 0 0 1 .025.025q.009.015.009.031L.654-.64l-.007.025-.009.024-.173.468-.019.051a.2.2 0 0 1-.021.042.1.1 0 0 1-.033.03.1.1 0 0 1-.049.012.1.1 0 0 1-.05-.011A.1.1 0 0 1 .26-.03a.2.2 0 0 1-.021-.042L.22-.123.05-.587.041-.612.033-.638.03-.662q0-.025.02-.046a.07.07 0 0 1 .05-.02q.037 0 .053.023.015.023.031.072' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%3E%3C/svg%3E\")}.ag-icon-cut:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14.703 15.096 6.215 4.719a1 1 0 1 1 1.548-1.267l13.058 15.965A5.001 5.001 0 0 1 28 23.916a5 5 0 0 1-4.999 4.999 5 5 0 0 1-4.999-4.999 4.98 4.98 0 0 1 1.23-3.283l-3.238-3.958-3.272 4.001a4.98 4.98 0 0 1 1.265 3.323 5 5 0 0 1-4.999 4.999 5 5 0 0 1-4.999-4.999 5 5 0 0 1 7.13-4.522zM8.991 20.8a3.1 3.1 0 0 0-3.1 3.1c0 1.711 1.389 3.1 3.1 3.1s3.1-1.389 3.1-3.1-1.389-3.1-3.1-3.1M23 20.8a3.1 3.1 0 0 0-3.1 3.1c0 1.711 1.389 3.1 3.1 3.1s3.1-1.389 3.1-3.1-1.389-3.1-3.1-3.1m-5.723-8.852 1.292 1.579 7.205-8.808a1 1 0 0 0-1.548-1.267z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-desc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Edesc%3C/title%3E%3Cpath d='m17 21.379 4.292-4.294 1.416 1.416L16 25.207l-6.708-6.706 1.416-1.416L15 21.379V6.793h2z'/%3E%3C/svg%3E\")}.ag-icon-adesc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M10.387 11.47a.75.75 0 0 1 1.06 1.06l-3 3-.113.093a.75.75 0 0 1-.919-.065l-3.333-3a.75.75 0 0 1 1.003-1.116l2.806 2.525zM13.201 3.08q.65 0 1.135.222.487.223.759.619.27.396.279.918H14.19a.72.72 0 0 0-.293-.536q-.26-.192-.705-.192-.302.001-.51.086a.7.7 0 0 0-.32.23.56.56 0 0 0-.108.338.5.5 0 0 0 .065.273.7.7 0 0 0 .204.203q.127.083.295.146.168.06.36.102l.525.125a3.7 3.7 0 0 1 .701.229q.32.143.554.35.234.21.362.492.131.282.134.647a1.6 1.6 0 0 1-.273.93 1.74 1.74 0 0 1-.777.607q-.504.214-1.217.214-.708 0-1.232-.217a1.8 1.8 0 0 1-.816-.641q-.29-.429-.305-1.059h1.194q.02.294.17.49.15.195.402.294.253.098.573.098.313 0 .544-.092a.84.84 0 0 0 .362-.254.6.6 0 0 0 .129-.373.5.5 0 0 0-.117-.33.9.9 0 0 0-.337-.23 3.4 3.4 0 0 0-.54-.17l-.635-.16q-.738-.18-1.166-.562t-.426-1.03a1.53 1.53 0 0 1 .284-.926q.287-.396.79-.62a2.8 2.8 0 0 1 1.14-.222'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5.813 9H4.489l-.432-1.332H1.948L1.515 9H.19l2.017-5.84h1.592zM2.262 6.704h1.481l-.718-2.21H2.98zM8.452 3.16q.645 0 1.075.19.43.192.648.53a1.4 1.4 0 0 1 .217.776q0 .342-.137.602a1.2 1.2 0 0 1-.376.423 1.6 1.6 0 0 1-.542.23v.058q.333.014.624.187.294.175.476.489.183.31.183.74 0 .465-.231.83a1.56 1.56 0 0 1-.676.574Q9.265 9 8.609 9H6.114V3.16zM7.35 7.99h1.006q.517 0 .753-.196a.66.66 0 0 0 .237-.531.8.8 0 0 0-.116-.428.8.8 0 0 0-.334-.291 1.15 1.15 0 0 0-.511-.106H7.349zm0-2.386h.916q.254 0 .45-.09a.75.75 0 0 0 .313-.256.67.67 0 0 0 .118-.397.64.64 0 0 0-.226-.51q-.223-.194-.633-.194H7.35z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Edesc%3C/title%3E%3Cpath d='m17 21.379 4.292-4.294 1.416 1.416L16 25.207l-6.708-6.706 1.416-1.416L15 21.379V6.793h2z'/%3E%3C/svg%3E\")}.ag-icon-excel:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='translate(3.934 -.054)scale(.06285)'/%3E%3Cpath d='m.052-.139.16-.234-.135-.208a.4.4 0 0 1-.028-.052.1.1 0 0 1-.01-.042.05.05 0 0 1 .018-.037.07.07 0 0 1 .045-.016q.03 0 .047.018a1 1 0 0 1 .047.066l.107.174.115-.174.024-.038.019-.026.021-.015a.1.1 0 0 1 .027-.005.06.06 0 0 1 .044.016.05.05 0 0 1 .018.039q0 .033-.038.089l-.141.211.152.234a.3.3 0 0 1 .03.051.1.1 0 0 1 .009.038.1.1 0 0 1-.008.031.1.1 0 0 1-.024.023.1.1 0 0 1-.034.008.1.1 0 0 1-.035-.008.1.1 0 0 1-.023-.022L.427-.067.301-.265l-.134.204-.022.034-.016.019a.1.1 0 0 1-.022.015.1.1 0 0 1-.03.005.06.06 0 0 1-.044-.016.06.06 0 0 1-.017-.047q0-.036.036-.088' style='fill-rule:nonzero' transform='matrix(17.82892 0 0 16.50777 10.371 25.928)'/%3E%3C/svg%3E\")}.ag-icon-expanded:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eexpanded%3C/title%3E%3Cpath d='M21.061 8.708 13.767 16l7.294 7.292-1.416 1.416L10.939 16l8.706-8.708z'/%3E%3C/svg%3E\")}.ag-icon-eye-slash:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye-slash%3C/title%3E%3Cpath d='M9.304 7.89a15.2 15.2 0 0 1 6.404-1.638c.294-.002.292-.002.584 0 5.956.174 11.328 4.088 13.62 9.748 0 0-1.318 3.178-3.224 5.174a13.6 13.6 0 0 1-2.226 1.874L26.414 25 25 26.414l-2.336-2.336C17.866 26.396 11.776 26.15 7.36 22.96a14.9 14.9 0 0 1-4.168-4.612c-.41-.71-.694-1.336-1.104-2.348 0 0 .898-2.218 2.002-3.718a14.6 14.6 0 0 1 3.442-3.334L5.586 7 7 5.586zm-.3 2.528c-2.038 1.344-3.708 3.246-4.724 5.508L4.248 16c2.46 5.762 9.622 9.064 15.63 7.15q.688-.219 1.342-.516l-.912-.912a6.96 6.96 0 0 1-4.19 1.394c-3.862 0-7-3.136-7-7 0-1.57.52-3.022 1.394-4.19zm14.032 11.204a13.25 13.25 0 0 0 4.684-5.548l.032-.074c-1.984-4.646-6.834-7.798-12.006-7.748-1.712.05-3.386.458-4.922 1.158l1.102 1.102a6.97 6.97 0 0 1 4.192-1.396 7.003 7.003 0 0 1 5.606 11.192zm-11.09-8.262a5.003 5.003 0 0 0 6.928 6.928zm8.342 5.514a5.002 5.002 0 0 0-6.928-6.928z'/%3E%3C/svg%3E\")}.ag-icon-eye:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye%3C/title%3E%3Cpath d='M16.292 6.32c5.956.174 11.328 4.086 13.62 9.746 0 0-1.318 3.18-3.224 5.176-4.862 5.088-13.534 5.97-19.328 1.784a14.9 14.9 0 0 1-4.168-4.612c-.41-.71-.694-1.336-1.104-2.348 0 0 .898-2.216 2.002-3.716 2.678-3.64 7.03-5.896 11.618-6.03.294-.004.292-.004.584 0m-.546 2c-4.896.142-9.458 3.202-11.466 7.672l-.032.074c2.46 5.762 9.622 9.066 15.63 7.152 3.458-1.102 6.342-3.738 7.842-7.076l.032-.076C25.768 11.42 20.918 8.27 15.746 8.32m.254.946c3.754 0 6.8 3.048 6.8 6.8 0 3.754-3.046 6.8-6.8 6.8s-6.8-3.046-6.8-6.8c0-3.752 3.046-6.8 6.8-6.8m5 6.768V16c0-2.76-2.24-5-5-5s-5 2.24-5 5v.066c0 2.76 2.24 5 5 5s5-2.24 5-5z'/%3E%3C/svg%3E\")}.ag-icon-filter:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efilter%3C/title%3E%3Cpath d='M26 8.184c-.066 2.658-4.058 5.154-6.742 7.974a1.05 1.05 0 0 0-.258.682v3.66L13 25c0-2.74.066-5.482-.002-8.222a1.05 1.05 0 0 0-.256-.62C10.026 13.304 6.06 10.61 6 8.184V6h20zM8 8c0 .304.06.612.258.842 2.716 2.854 6.682 5.548 6.742 7.974V21l2-1.5v-2.684c.066-2.658 4.058-5.154 6.742-7.974.198-.23.258-.538.258-.842z'/%3E%3C/svg%3E\")}.ag-icon-first:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efirst%3C/title%3E%3Cpath d='M24.354 8.708 17.06 16l7.294 7.292-1.416 1.416L14.232 16l8.706-8.708zM9.646 8v16h-2V8z'/%3E%3C/svg%3E\")}.ag-icon-group:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egroup%3C/title%3E%3Cpath d='M25.128 2.002c2.56.096 4.772 2.292 4.87 4.87a712 712 0 0 1 0 18.256c-.096 2.56-2.292 4.772-4.87 4.87a712 712 0 0 1-18.256 0c-2.558-.096-4.772-2.29-4.87-4.87a712 712 0 0 1 0-18.256c.096-2.56 2.292-4.772 4.87-4.87a712 712 0 0 1 18.256 0M7.006 4c-1.57.02-2.946 1.348-3.004 2.922-.078 6.078-.23 12.16.002 18.234.094 1.484 1.354 2.746 2.84 2.84 6.1.232 12.212.232 18.312 0 1.48-.094 2.746-1.35 2.84-2.84.232-6.1.232-12.212 0-18.312-.094-1.48-1.35-2.746-2.84-2.84C19.11 3.774 13.056 4 7.006 4M14 21h-4v-2h4zm12 0H16v-2h10zm-12-4h-4v-2h4zm12 0H16v-2h10zm-16-4H6v-2h4zm16 0H12v-2h14z'/%3E%3C/svg%3E\")}.ag-icon-last:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elast%3C/title%3E%3Cpath d='m17.768 16-8.706 8.708-1.416-1.416L14.94 16 7.646 8.708l1.416-1.416zm6.586 8h-2V8h2z'/%3E%3C/svg%3E\")}.ag-icon-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eleft%3C/title%3E%3Cpath d='m17.621 11-2 2h12.586v6H15.621l2 2-4.414 4.414L3.793 16l9.414-9.414zm-11 5 6.586 6.586L14.793 21l-4-4h15.414v-2H10.793l4-4-1.586-1.586z'/%3E%3C/svg%3E\")}.ag-icon-linked:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elinked%3C/title%3E%3Cpath d='M17.138 13.418a1.03 1.03 0 0 0-.298.658s.125.096.226.178c1.372 1.114 2.033 3.039 1.582 4.796a4.7 4.7 0 0 1-1.205 2.123c-1.145 1.151-2.296 2.294-3.445 3.441-1.241 1.232-3.185 1.691-4.864 1.105-1.546-.54-2.756-1.938-3.048-3.572-.267-1.496.246-3.108 1.319-4.186l.578-.578-.03-.092a10.5 10.5 0 0 1-.452-2.3v-.005c-.776.775-1.621 1.489-2.275 2.396-1.817 2.522-1.643 6.323.706 8.669 1.813 1.811 4.708 2.462 7.171 1.517a6.75 6.75 0 0 0 2.336-1.518l3.427-3.424c1.939-1.954 2.533-5.126 1.294-7.674a6.8 6.8 0 0 0-2.071-2.481l-.003-.002zM21.265 4a6.8 6.8 0 0 0-4.734 1.964l-3.427 3.424c-1.961 1.977-2.52 5.092-1.32 7.619a6.8 6.8 0 0 0 2.098 2.537l.003.002c.32-.32.643-.637.96-.96.167-.172.27-.401.286-.64l-.204-.167c-1.603-1.287-2.215-3.68-1.316-5.616a4.7 4.7 0 0 1 .918-1.32c1.145-1.151 2.296-2.294 3.445-3.441 1.239-1.23 3.178-1.694 4.864-1.105 1.83.639 3.16 2.498 3.12 4.493a4.8 4.8 0 0 1-1.391 3.265l-.578.578.03.092c.235.743.387 1.519.452 2.3v.005c.732-.731 1.521-1.406 2.162-2.244 1.192-1.559 1.643-3.651 1.204-5.575a6.8 6.8 0 0 0-3.98-4.703 6.8 6.8 0 0 0-2.529-.506h-.061z'/%3E%3C/svg%3E\")}.ag-icon-loading:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eloading%3C/title%3E%3Cpath d='M17 29h-2v-8h2zm-3.586-9L7 26.414 5.586 25 12 18.586zm13 5L25 26.414 18.586 20 20 18.586zM29 17h-8v-2h8zm-18 0H3v-2h8zm2.414-5L12 13.414 5.586 7 7 5.586zm13-5L20 13.414 18.586 12 25 5.586zM17 11h-2V3h2z'/%3E%3C/svg%3E\")}.ag-icon-maximize:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='3 3 26 26'%3E%3Ctitle%3Emaximize%3C/title%3E%3Cpath d='m7.54 17.4.1 6.98 6.96.1-2.24-2.24L16 18.6 13.4 16l-3.64 3.64zm16.92-2.8-.1-6.98-6.96-.1 2.24 2.24L16 13.4l2.6 2.6 3.64-3.64z'/%3E%3C/svg%3E\")}.ag-icon-menu:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Emenu%3C/title%3E%3Cpath d='M26 23H6v-2h20zm0-6H6v-2h20zm0-6H6V9h20z'/%3E%3C/svg%3E\")}.ag-icon-menu-alt:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none'%3E%3Cpath fill='%23000' d='M16 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4m0-7a2 2 0 1 0 0-4 2 2 0 0 0 0 4m0 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4'/%3E%3C/svg%3E\")}.ag-icon-minimize:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='3 3 26 26'%3E%3Ctitle%3Eminimize%3C/title%3E%3Cpath d='m14.8 24.26-.1-6.96-6.96-.1 2.24 2.24-3.64 3.64 2.6 2.6 3.64-3.64zm2.4-16.52.1 6.96 6.96.1-2.24-2.24 3.64-3.64-2.6-2.6-3.64 3.64z'/%3E%3C/svg%3E\")}.ag-icon-minus:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.515 7.515c-4.683 4.682-4.683 12.288 0 16.97 4.682 4.683 12.288 4.683 16.97 0 4.683-4.682 4.683-12.288 0-16.97-4.682-4.683-12.288-4.683-16.97 0m1.414 1.414c3.903-3.903 10.239-3.903 14.142 0s3.903 10.239 0 14.142-10.239 3.903-14.142 0-3.903-10.239 0-14.142m-1.414 6.07h16.97v2.002H7.515z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-next:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enext%3C/title%3E%3Cpath d='m21.061 16-8.706 8.708-1.416-1.416L18.233 16l-7.294-7.292 1.416-1.416z'/%3E%3C/svg%3E\")}.ag-icon-none:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enone%3C/title%3E%3Cpath d='m10.044 21.258 4.478-4.198L16 18.444 9 25l-7-6.556 1.478-1.384 4.478 4.198V7h2.088zm14 3.742h-2.088V10.742l-4.478 4.198L16 13.556 23 7q3.5 3.28 7 6.556l-1.478 1.384-4.478-4.198z'/%3E%3C/svg%3E\")}.ag-icon-not-allowed:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enot-allowed%3C/title%3E%3Cpath d='M16.186 3.646c8.188.154 14.898 9.796 11.17 17.78-3.298 7.066-13.932 9.374-19.848 3.87-3.9-3.632-5.076-9.896-2.684-14.708 2.082-4.19 6.588-6.974 11.362-6.942m-.298 1.998c-6.922.132-12.578 8.308-9.33 15.052 3.342 6.934 15.246 7.646 18.932 0 3.076-6.386-1.988-15.1-9.602-15.052m7.596 6.422c2.864 5.33-1.744 13.186-8.306 12.536a8.6 8.6 0 0 1-3.232-.998l-1.266-.706L22.778 10.8q.351.633.706 1.266m-9.422 10.276c3.296 1.028 7.246-1.006 8.216-4.418a6.6 6.6 0 0 0-.056-3.742zm2.104-14.696a8.8 8.8 0 0 1 3.936 1.038l1.266.706L9.27 21.488c-3.018-5.41-.99-13.37 6.318-13.834q.289-.01.578-.008m-.31 2c-4.06.154-7.23 4.614-6.03 8.46l8.16-8.16a6.8 6.8 0 0 0-2.13-.3'/%3E%3C/svg%3E\")}.ag-icon-paste:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epaste%3C/title%3E%3Cpath d='M20 6.5c0-1-1-3-4-3s-4 2-4 3H8c-2.21 0-4 1.79-4 4v14c0 2.21 1.79 4 4 4h16c2.21 0 4-1.79 4-4v-14c0-2.21-1.79-4-4-4zm-4 .546c.734 0 1.334.572 1.334 1.272S16.734 9.59 16 9.59s-1.334-.572-1.334-1.272.6-1.272 1.334-1.272M24 26.5H8a2 2 0 0 1-2-2v-14a2 2 0 0 1 2-2h2v4h12v-4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2'/%3E%3C/svg%3E\")}.ag-icon-pin:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epin%3C/title%3E%3Cpath d='m10.78 19.777-4.668-4.666s.032-1 .67-1.87c1.366-1.86 4.052-1.96 6.056-1.572l3.158-3.108c-.7-2.342 3.352-5.046 3.352-5.046l9.166 9.168q-.334.447-.67.894c-1.074 1.426-2.538 2.63-4.272 2.338l-3.32 3.218c.046.344.042.03.118 1.152.144 2.13-.64 4.324-2.632 5.34l-.746.364-4.798-4.798-7.292 7.294-1.416-1.416zm8.24-13.672c-.688.568-1.416 1.45-1.024 2.072l.49.722-4.986 4.988c-1.988-.506-4.346-.636-5.156.614l9.02 9.032q.14-.099.272-.21c1.226-1.08.764-3.04.498-4.9l4.79-4.79s1.47.938 2.936-.776l-6.79-6.79q-.026.019-.05.038'/%3E%3C/svg%3E\")}.ag-icon-pivot:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epivot%3C/title%3E%3Cpath d='M25.128 2.002c2.56.096 4.772 2.292 4.87 4.87a712 712 0 0 1 0 18.256c-.096 2.56-2.292 4.772-4.87 4.87a712 712 0 0 1-18.256 0c-2.558-.096-4.772-2.29-4.87-4.87a712 712 0 0 1 0-18.256c.096-2.56 2.292-4.772 4.87-4.87a712 712 0 0 1 18.256 0m2.966 7.954H9.892v18.136c5.086.13 10.18.098 15.264-.096 1.48-.094 2.746-1.35 2.84-2.84.192-5.064.226-10.134.098-15.2M3.968 24.1q.015.528.036 1.056c.094 1.484 1.354 2.746 2.84 2.84l1.012.036V24.1zM22 15.414l-.292.294-1.416-1.416L23 11.586l2.708 2.706-1.416 1.416-.292-.294v3.592c-.032 2.604-2.246 4.892-4.872 4.992L15.414 24l.294.292-1.416 1.416L11.586 23l2.706-2.708 1.416 1.416-.322.32c3.372.03 6.578-.164 6.614-3.034zM3.88 18.038c.002 1.346.012 2.694.038 4.04h3.938v-4.04zm.05-6.062a681 681 0 0 0-.044 4.042h3.97v-4.042zm5.962-7.99Q8.449 3.999 7.006 4c-1.57.02-2.946 1.348-3.004 2.922q-.02 1.517-.042 3.034h3.896v-2.02h2.036zm14.244-.016v3.966h3.898q-.017-.546-.038-1.092c-.094-1.48-1.35-2.746-2.84-2.84q-.51-.019-1.02-.034m-8.14-.054q-2.035.022-4.07.048v3.972h4.07zm6.106.008c-1.358-.022-2.714-.026-4.07-.022v4.034h4.07z'/%3E%3C/svg%3E\")}.ag-icon-plus:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.515 7.515c-4.683 4.682-4.683 12.288 0 16.97 4.682 4.683 12.288 4.683 16.97 0 4.683-4.682 4.683-12.288 0-16.97-4.682-4.683-12.288-4.683-16.97 0m1.414 1.414c3.903-3.903 10.239-3.903 14.142 0s3.903 10.239 0 14.142-10.239 3.903-14.142 0-3.903-10.239 0-14.142M15 15l-.001-7.485h2.002L17 15l7.485-.001v2.002L17 17l.001 7.485h-2.002L15 17l-7.485.001v-2.002z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-previous:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eprevious%3C/title%3E%3Cpath d='M21.061 8.708 13.767 16l7.294 7.292-1.416 1.416L10.939 16l8.706-8.708z'/%3E%3C/svg%3E\")}.ag-icon-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eright%3C/title%3E%3Cpath d='m28.207 16-9.414 9.414L14.379 21l2-2H3.793v-6h12.586l-2-2 4.414-4.414zm-11-5 4 4H5.793v2h15.414l-4 4 1.586 1.586L25.379 16l-6.586-6.586z'/%3E%3C/svg%3E\")}.ag-icon-save:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esave%3C/title%3E%3Cpath d='M25.333 16v9.333H6.666V16H3.999v9.333C3.999 26.8 5.199 28 6.666 28h18.667C26.8 28 28 26.8 28 25.333V16zm-8 .893 3.453-3.44 1.88 1.88L15.999 22l-6.667-6.667 1.88-1.88 3.453 3.44V4h2.667v12.893z'/%3E%3C/svg%3E\")}.ag-icon-small-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-down%3C/title%3E%3Cpath d='M24.708 12.355 16 21.061l-8.708-8.706 1.416-1.416L16 18.233l7.292-7.294z'/%3E%3C/svg%3E\")}.ag-icon-small-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-left%3C/title%3E%3Cpath d='M21.061 8.708 13.767 16l7.294 7.292-1.416 1.416L10.939 16l8.706-8.708z'/%3E%3C/svg%3E\")}.ag-icon-small-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-right%3C/title%3E%3Cpath d='m21.061 16-8.706 8.708-1.416-1.416L18.233 16l-7.294-7.292 1.416-1.416z'/%3E%3C/svg%3E\")}.ag-icon-small-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-up%3C/title%3E%3Cpath d='m24.708 19.645-1.416 1.416L16 13.767l-7.292 7.294-1.416-1.416L16 10.939z'/%3E%3C/svg%3E\")}.ag-icon-tick:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etick%3C/title%3E%3Cpath d='M24.708 10.855 13 22.561l-5.708-5.706 1.416-1.416L13 19.733 23.292 9.439z'/%3E%3C/svg%3E\")}.ag-icon-tree-closed:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-closed%3C/title%3E%3Cpath d='m21.061 16-8.706 8.708-1.416-1.416L18.233 16l-7.294-7.292 1.416-1.416z'/%3E%3C/svg%3E\")}.ag-icon-tree-indeterminate:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-indeterminate%3C/title%3E%3Cpath d='M6 15h20v2H6z'/%3E%3C/svg%3E\")}.ag-icon-tree-open:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-open%3C/title%3E%3Cpath d='M24.708 12.355 16 21.061l-8.708-8.706 1.416-1.416L16 18.233l7.292-7.294z'/%3E%3C/svg%3E\")}.ag-icon-unlinked:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eunlinked%3C/title%3E%3Cpath d='M5.35 3.999a.2.2 0 0 0-.14.058c-.388.38-.768.768-1.152 1.152a.21.21 0 0 0-.002.288c7.459 7.506 14.965 14.965 22.447 22.447a.21.21 0 0 0 .288.002q.576-.574 1.151-1.151a.21.21 0 0 0 .002-.288C20.484 19.002 12.979 11.542 5.497 4.06a.2.2 0 0 0-.146-.061zm.611 12.548c-1.933 1.939-2.538 5.119-1.289 7.688a6.79 6.79 0 0 0 4.891 3.672 6.82 6.82 0 0 0 5.893-1.866l1.984-1.984-1.438-1.438-1.986 1.986c-1.486 1.476-3.993 1.81-5.834.629a4.73 4.73 0 0 1-2.024-2.853 4.76 4.76 0 0 1 1.241-4.393l1.986-1.986-1.438-1.438-1.984 1.984zM21.273 3.999a6.78 6.78 0 0 0-4.727 1.963l-1.984 1.984L16 9.384l1.985-1.985a4.74 4.74 0 0 1 2.776-1.338c1.974-.224 4.045.926 4.845 2.834.712 1.699.329 3.778-1.004 5.12L22.616 16l1.439 1.438q1-1 2-2c2.012-2.031 2.557-5.368 1.112-7.982-1.144-2.07-3.432-3.441-5.834-3.459h-.061z'/%3E%3C/svg%3E\")}.ag-icon-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m15 10.621-4.292 4.294-1.416-1.416L16 6.793l6.708 6.706-1.416 1.416L17 10.621v14.586h-2z'/%3E%3C/svg%3E\")}.ag-icon-grip:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egrip%3C/title%3E%3Cpath d='M8 24H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 18H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 12H6V8h2zm6 0h-2V8h2zm6 0h-2V8h2zm6 0h-2V8h2z'/%3E%3C/svg%3E\")}.ag-icon-settings:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3'/%3E%3C/svg%3E\")}.ag-icon-column-arrow:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11 4a1 1 0 0 1 1 1v22a1 1 0 1 1-2 0V5a1 1 0 0 1 1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 13a1 1 0 0 1 1-1h23.5a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 4h18v24H2zm2 2v20h14V6zM26.793 13 23 9.207l1.414-1.414L29.621 13l-5.207 5.207L23 16.793z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-un-pin:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='m6.112 15.111 3.272 3.271 1.436-1.402-2.476-2.479c.81-1.25 3.168-1.12 5.156-.614l4.986-4.988-.49-.722c-.392-.622.336-1.504 1.024-2.072l.008-.007.01-.006.032-.025 1.447 1.447 1.432-1.397-2.601-2.602s-4.052 2.704-3.352 5.046l-3.158 3.108c-2.004-.388-4.69-.288-6.056 1.572-.638.87-.67 1.87-.67 1.87m.581 11.582.014.014 5.502-5.501 4.783 4.783.746-.364c1.992-1.016 2.776-3.21 2.632-5.34-.055-.805-.068-.87-.088-.97-.008-.04-.017-.085-.03-.182l3.32-3.218c1.734.292 3.198-.912 4.272-2.338q.337-.447.67-.894l-.001-.001-.007-.007-.007-.007-.007-.007-3.87-3.87 1.585-1.584-1.414-1.414-14.381 14.38-1.237 1.209-5.69 5.687 1.417 1.416zM23.21 10.206l2.65 2.651c-1.465 1.714-2.935.776-2.935.776l-4.79 4.79q.041.291.087.583c.257 1.676.513 3.35-.585 4.317a4 4 0 0 1-.272.21l-3.739-3.744z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-pinned-top:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='m16.708 10.878 8.708 8.706L24 21l-6.292-6.294V27h-2V14.706L9.416 21 8 19.584q4.348-4.344 8.691-8.69zM25 6H8v2h17z'/%3E%3C/svg%3E\")}.ag-icon-pinned-bottom:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M16.708 22.122 8 13.416 9.416 12l6.292 6.294V6h2v12.294L24 12l1.416 1.416-8.691 8.69zM7.416 28h17v-2h-17z'/%3E%3C/svg%3E\")}.ag-icon-chevron-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M3.479 10.521a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1-1.06 1.06l-3.47-3.47-3.47 3.47a.75.75 0 0 1-1.06 0' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12.521 5.461a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 1.06-1.06l3.47 3.47 3.47-3.47a.75.75 0 0 1 1.06 0' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M10.53 12.512a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 1.06l-3.47 3.47 3.47 3.47a.75.75 0 0 1 0 1.06' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M5.47 3.47a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06-1.06L8.94 8 5.47 4.53a.75.75 0 0 1 0-1.06' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-filter-add:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M19.834 8H8c0 .304.06.612.258.842 2.716 2.854 6.682 5.548 6.742 7.974V21l2-1.5v-2.684c.056-2.267 2.968-4.417 5.49-6.75v3.087c-1.081.974-2.245 1.968-3.232 3.005a1.05 1.05 0 0 0-.258.682v3.66L13 25c0-2.74.066-5.482-.002-8.222a1.05 1.05 0 0 0-.256-.62C10.026 13.304 6.06 10.61 6 8.184V6h13.834z'/%3E%3Cpath fill='currentColor' d='M26 6h2.946v2.002H26v3.313h-2.002V8.002h-2.946V6h2.946V3.04H26z'/%3E%3C/svg%3E\")}.ag-icon-edit:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M23.182 5a3.82 3.82 0 0 1 2.83 6.383l-.131.137-2.09 2.088a1 1 0 0 1-.084.099 1 1 0 0 1-.098.084L12.533 24.869a3 3 0 0 1-1.245.746l-4.353 1.32-.003.002a1.5 1.5 0 0 1-1.87-1.867l.003-.004 1.32-4.352v-.003l.06-.174c.13-.344.321-.661.565-.936l.126-.135L18.209 8.39a1 1 0 0 1 .18-.181l2.092-2.09.137-.132A3.82 3.82 0 0 1 23.182 5M8.548 20.883a1 1 0 0 0-.25.415l-1.049 3.451 3.457-1.048.114-.042q.17-.076.301-.206l10.458-10.46-2.572-2.572zM23.182 7c-.482 0-.946.19-1.287.531v.001l-1.474 1.475 2.572 2.572 1.474-1.474.121-.133A1.82 1.82 0 0 0 23.182 7'/%3E%3C/svg%3E\")}",jv=sl({feature:"iconSet",css:qv}),Kv=".ag-icon-aggregation:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24 6H8v2l8 8-8 8v2h16v-2H11l8-8-8-8h13z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-arrows:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.515 11.171 2.687 16l4.828 4.829-1.414 1.414L-.142 16l6.243-6.243zm16.97 0 1.414-1.414L32.142 16l-6.243 6.243-1.414-1.414L29.313 16zM16.028 13.2l2.829 2.828-2.829 2.829-2.828-2.829zm-4.857 11.285L16 29.313l4.829-4.828 1.414 1.414L16 32.142l-6.243-6.243zm0-16.97L9.757 6.101 16-.142l6.243 6.243-1.414 1.414L16 2.687z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-asc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333 5.332 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-aasc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M13.201 8.08q.65 0 1.135.222.487.222.759.618.27.396.279.919H14.19a.72.72 0 0 0-.293-.536q-.26-.191-.705-.192-.302.001-.51.086a.7.7 0 0 0-.32.23.56.56 0 0 0-.108.338.5.5 0 0 0 .065.273.7.7 0 0 0 .204.203q.127.083.295.146.168.06.36.102l.525.125q.382.086.701.229.32.143.554.35.234.21.362.49.131.284.134.648a1.6 1.6 0 0 1-.273.93q-.27.391-.777.608-.504.214-1.217.214-.708 0-1.232-.217a1.8 1.8 0 0 1-.816-.642q-.29-.428-.305-1.058h1.194q.02.294.17.49.15.195.402.294.253.097.573.097.313 0 .544-.09a.84.84 0 0 0 .362-.255.6.6 0 0 0 .129-.374q0-.195-.117-.33a.9.9 0 0 0-.337-.228 3.4 3.4 0 0 0-.54-.171l-.635-.16q-.738-.18-1.166-.562t-.426-1.03a1.53 1.53 0 0 1 .284-.927q.287-.396.79-.618a2.8 2.8 0 0 1 1.14-.223'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5.813 14H4.489l-.432-1.332H1.948L1.515 14H.19l2.017-5.84h1.592zm-3.551-2.296h1.481l-.718-2.21H2.98zM8.452 8.16q.645 0 1.075.19.43.191.648.531a1.4 1.4 0 0 1 .217.775q0 .343-.137.602-.137.256-.376.422a1.6 1.6 0 0 1-.542.231v.057q.333.015.624.188.294.175.476.489.183.31.183.74 0 .466-.231.831a1.56 1.56 0 0 1-.676.573Q9.265 14 8.609 14H6.114V8.16zM7.35 12.99h1.006q.517 0 .753-.196a.66.66 0 0 0 .237-.531.8.8 0 0 0-.116-.428.8.8 0 0 0-.334-.29 1.15 1.15 0 0 0-.511-.106H7.349zm0-2.386h.916q.254 0 .45-.09a.75.75 0 0 0 .313-.256.67.67 0 0 0 .118-.396.64.64 0 0 0-.226-.511q-.223-.195-.633-.194H7.35z' clip-rule='evenodd'/%3E%3Cpath fill='%23000' d='M7.166.377a.75.75 0 0 1 .919.066l3.333 3a.75.75 0 0 1-1.003 1.115L7.609 2.033 5.113 4.53a.75.75 0 0 1-1.06-1.06l3-3z'/%3E%3C/svg%3E\")}.ag-icon-cancel:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16 2.667A13.32 13.32 0 0 0 2.667 16c0 7.373 5.96 13.333 13.333 13.333S29.333 23.373 29.333 16 23.373 2.667 16 2.667m6.667 18.12-1.88 1.88L16 17.88l-4.787 4.787-1.88-1.88L14.12 16l-4.787-4.787 1.88-1.88L16 14.12l4.787-4.787 1.88 1.88L17.88 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-chart:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Echart%3C/title%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cpath d='M14 7h4v18h-4zM8 17h4v8H8zM20 13h4v12h-4z'/%3E%3C/g%3E%3C/svg%3E\")}.ag-icon-color-picker:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M23.907 17.587 10.574 4.254l-1.88 1.88 3.173 3.173-8.28 8.28 10.16 10.16zm-16.547 0 6.387-6.387 6.387 6.387zm18.387 2s-2.667 2.893-2.667 4.667c0 1.467 1.2 2.667 2.667 2.667s2.667-1.2 2.667-2.667c0-1.773-2.667-4.667-2.667-4.667' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-columns:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M26 25H6V7h20zM12 11H8v12h4zm6 0h-4v12h4zm6 12V11h-4v12z' style='fill-rule:nonzero' transform='translate(0 -1)'/%3E%3C/svg%3E\")}.ag-icon-contracted:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m12 6 10 10-10 10-2-2 8-8-8-8z'/%3E%3C/svg%3E\")}.ag-icon-copy:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M22 1.333H6A2.675 2.675 0 0 0 3.333 4v18.667H6V4h16zm4 5.334H11.333a2.675 2.675 0 0 0-2.667 2.667v18.667c0 1.467 1.2 2.667 2.667 2.667H26c1.467 0 2.667-1.2 2.667-2.667V9.334c0-1.467-1.2-2.667-2.667-2.667M26 28H11.333V9.333H26z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-cross:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M15.984 13.894 27.05 2.828l2.122 2.122-11.066 11.066 11.066 11.066-2.122 2.12-11.066-11.066L4.918 29.202l-2.12-2.12 11.066-11.066L2.798 4.95l2.12-2.122z'/%3E%3C/svg%3E\")}.ag-icon-csv:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='translate(3.934 -.054)scale(.06285)'/%3E%3Cpath d='M.688-.226a.2.2 0 0 1-.017.074.28.28 0 0 1-.145.14.412.412 0 0 1-.234.013.28.28 0 0 1-.202-.168.468.468 0 0 1-.04-.19q0-.086.025-.155a.319.319 0 0 1 .182-.191.4.4 0 0 1 .134-.025q.087 0 .155.035a.3.3 0 0 1 .104.085.17.17 0 0 1 .036.097.06.06 0 0 1-.018.044.06.06 0 0 1-.042.019.06.06 0 0 1-.042-.013.2.2 0 0 1-.031-.046.2.2 0 0 0-.066-.079.16.16 0 0 0-.095-.027.17.17 0 0 0-.142.068.3.3 0 0 0-.053.193.4.4 0 0 0 .023.139.2.2 0 0 0 .067.083.2.2 0 0 0 .1.027q.063 0 .106-.031a.2.2 0 0 0 .065-.091.2.2 0 0 1 .023-.046q.014-.018.044-.018a.06.06 0 0 1 .044.018.06.06 0 0 1 .019.045' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.622-.215a.2.2 0 0 1-.033.117.23.23 0 0 1-.098.081.4.4 0 0 1-.153.029.34.34 0 0 1-.175-.04.23.23 0 0 1-.079-.077.17.17 0 0 1-.031-.093q0-.027.019-.045a.06.06 0 0 1 .046-.019.06.06 0 0 1 .039.014.1.1 0 0 1 .027.044.3.3 0 0 0 .03.057q.015.023.044.038.03.015.076.015.065 0 .105-.03a.09.09 0 0 0 .04-.075.08.08 0 0 0-.022-.058.14.14 0 0 0-.056-.034 1 1 0 0 0-.092-.025.7.7 0 0 1-.129-.042.2.2 0 0 1-.083-.066.17.17 0 0 1-.03-.104q0-.058.032-.105a.2.2 0 0 1 .093-.07.4.4 0 0 1 .144-.025q.066 0 .114.016a.3.3 0 0 1 .08.044.2.2 0 0 1 .046.057q.015.03.015.058a.07.07 0 0 1-.018.046.06.06 0 0 1-.046.021q-.025 0-.038-.012a.2.2 0 0 1-.028-.041.2.2 0 0 0-.047-.063Q.387-.625.326-.625a.15.15 0 0 0-.09.025q-.035.024-.035.059 0 .021.012.037a.1.1 0 0 0 .032.027.4.4 0 0 0 .111.036q.06.015.11.031.048.018.083.042a.2.2 0 0 1 .054.062.2.2 0 0 1 .019.091' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='m.184-.633.162.48.163-.483q.013-.038.019-.053a.062.062 0 0 1 .061-.039q.018 0 .034.009a.1.1 0 0 1 .025.025q.009.015.009.031L.654-.64l-.007.025-.009.024-.173.468-.019.051a.2.2 0 0 1-.021.042.1.1 0 0 1-.033.03.1.1 0 0 1-.049.012.1.1 0 0 1-.05-.011A.1.1 0 0 1 .26-.03a.2.2 0 0 1-.021-.042L.22-.123.05-.587.041-.612.033-.638.03-.662q0-.025.02-.046a.07.07 0 0 1 .05-.02q.037 0 .053.023.015.023.031.072' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%3E%3C/svg%3E\")}.ag-icon-cut:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M13.775 15.198 3.835 2.945a1.501 1.501 0 0 1 2.33-1.89l14.997 18.488A6.003 6.003 0 0 1 29.657 25c0 3.311-2.688 6-6 6s-6-2.689-6-6c0-1.335.437-2.569 1.176-3.566l-3.127-3.855-3.001 3.7A5.97 5.97 0 0 1 14 25c0 3.311-2.689 6-6 6s-6-2.689-6-6a6.003 6.003 0 0 1 8.315-5.536zm9.882 6.702a3.1 3.1 0 0 0-3.1 3.1c0 1.711 1.389 3.1 3.1 3.1s3.1-1.389 3.1-3.1-1.389-3.1-3.1-3.1M8 21.95a3.05 3.05 0 1 0 .001 6.101A3.05 3.05 0 0 0 8 21.95m9.63-11.505 1.932 2.381 8.015-9.881a1.5 1.5 0 0 0-2.329-1.89z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-desc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-adesc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M10.387 11.47a.75.75 0 0 1 1.06 1.06l-3 3-.113.093a.75.75 0 0 1-.919-.065l-3.333-3a.75.75 0 0 1 1.003-1.116l2.806 2.525zM13.201 3.08q.65 0 1.135.222.487.223.759.619.27.396.279.918H14.19a.72.72 0 0 0-.293-.536q-.26-.192-.705-.192-.302.001-.51.086a.7.7 0 0 0-.32.23.56.56 0 0 0-.108.338.5.5 0 0 0 .065.273.7.7 0 0 0 .204.203q.127.083.295.146.168.06.36.102l.525.125a3.7 3.7 0 0 1 .701.229q.32.143.554.35.234.21.362.492.131.282.134.647a1.6 1.6 0 0 1-.273.93 1.74 1.74 0 0 1-.777.607q-.504.214-1.217.214-.708 0-1.232-.217a1.8 1.8 0 0 1-.816-.641q-.29-.429-.305-1.059h1.194q.02.294.17.49.15.195.402.294.253.098.573.098.313 0 .544-.092a.84.84 0 0 0 .362-.254.6.6 0 0 0 .129-.373.5.5 0 0 0-.117-.33.9.9 0 0 0-.337-.23 3.4 3.4 0 0 0-.54-.17l-.635-.16q-.738-.18-1.166-.562t-.426-1.03a1.53 1.53 0 0 1 .284-.926q.287-.396.79-.62a2.8 2.8 0 0 1 1.14-.222'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5.813 9H4.489l-.432-1.332H1.948L1.515 9H.19l2.017-5.84h1.592zM2.262 6.704h1.481l-.718-2.21H2.98zM8.452 3.16q.645 0 1.075.19.43.192.648.53a1.4 1.4 0 0 1 .217.776q0 .342-.137.602a1.2 1.2 0 0 1-.376.423 1.6 1.6 0 0 1-.542.23v.058q.333.014.624.187.294.175.476.489.183.31.183.74 0 .465-.231.83a1.56 1.56 0 0 1-.676.574Q9.265 9 8.609 9H6.114V3.16zM7.35 7.99h1.006q.517 0 .753-.196a.66.66 0 0 0 .237-.531.8.8 0 0 0-.116-.428.8.8 0 0 0-.334-.291 1.15 1.15 0 0 0-.511-.106H7.349zm0-2.386h.916q.254 0 .45-.09a.75.75 0 0 0 .313-.256.67.67 0 0 0 .118-.397.64.64 0 0 0-.226-.51q-.223-.194-.633-.194H7.35z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-excel:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='translate(3.934 -.054)scale(.06285)'/%3E%3Cpath d='m.052-.139.16-.234-.135-.208a.4.4 0 0 1-.028-.052.1.1 0 0 1-.01-.042.05.05 0 0 1 .018-.037.07.07 0 0 1 .045-.016q.03 0 .047.018a1 1 0 0 1 .047.066l.107.174.115-.174.024-.038.019-.026.021-.015a.1.1 0 0 1 .027-.005.06.06 0 0 1 .044.016.05.05 0 0 1 .018.039q0 .033-.038.089l-.141.211.152.234a.3.3 0 0 1 .03.051.1.1 0 0 1 .009.038.1.1 0 0 1-.008.031.1.1 0 0 1-.024.023.1.1 0 0 1-.034.008.1.1 0 0 1-.035-.008.1.1 0 0 1-.023-.022L.427-.067.301-.265l-.134.204-.022.034-.016.019a.1.1 0 0 1-.022.015.1.1 0 0 1-.03.005.06.06 0 0 1-.044-.016.06.06 0 0 1-.017-.047q0-.036.036-.088' style='fill-rule:nonzero' transform='matrix(17.82892 0 0 16.50777 10.371 25.928)'/%3E%3C/svg%3E\")}.ag-icon-expanded:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M20 26 10 16 20 6l2 2-8 8 8 8z'/%3E%3C/svg%3E\")}.ag-icon-eye-slash:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye-slash%3C/title%3E%3Cpath fill='%23000' fill-rule='nonzero' d='M8.95 10.364 7 8.414 8.414 7l2.32 2.32A13.2 13.2 0 0 1 16.5 8c5.608 0 10.542 3.515 12.381 8.667L29 17l-.119.333a13 13 0 0 1-4.255 5.879l1.466 1.466-1.414 1.414-1.754-1.753A13.2 13.2 0 0 1 16.5 26c-5.608 0-10.542-3.515-12.381-8.667L4 17l.119-.333a13 13 0 0 1 4.83-6.303m1.445 1.445A11.02 11.02 0 0 0 6.148 17c1.646 4.177 5.728 7 10.352 7 1.76 0 3.441-.409 4.94-1.146l-1.878-1.878A5.06 5.06 0 0 1 16.5 22c-2.789 0-5.05-2.239-5.05-5 0-1.158.398-2.223 1.065-3.07zm1.855-.974 1.794 1.795A5.07 5.07 0 0 1 16.5 12c2.789 0 5.05 2.239 5.05 5 0 .9-.24 1.745-.661 2.474l2.305 2.306A11 11 0 0 0 26.852 17c-1.646-4.177-5.728-7-10.352-7-1.495 0-2.933.295-4.25.835'/%3E%3C/svg%3E\")}.ag-icon-eye:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16.5 23c4.624 0 8.706-2.823 10.352-7-1.646-4.177-5.728-7-10.352-7s-8.706 2.823-10.352 7c1.646 4.177 5.728 7 10.352 7M4.119 15.667C5.958 10.515 10.892 7 16.5 7s10.542 3.515 12.381 8.667L29 16l-.119.333C27.042 21.485 22.108 25 16.5 25S5.958 21.485 4.119 16.333L4 16zM16.5 21c2.789 0 5.049-2.239 5.049-5s-2.26-5-5.049-5-5.049 2.239-5.049 5 2.26 5 5.049 5' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-filter:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m28 8-8 8v5l-6 6V16L6 8V6h22zM9 8l7 7v7l2-2v-5l7-7z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-first:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24.273 22.12 18.153 16l6.12-6.12L22.393 8l-8 8 8 8zM7.727 8h2.667v16H7.727z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-group:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14 7v1H9V7zm0-3v1H5.001V4zm-7 7H5v-1h2zm0-3H5V7h2zM3 5H1V4h2zm11 5v1H9v-1zm-7 4H5v-1h2zm7-1v1H9v-1z' style='fill-rule:nonzero' transform='matrix(2 0 0 2 0 -2)'/%3E%3C/svg%3E\")}.ag-icon-last:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m7.727 9.88 6.12 6.12-6.12 6.12L9.607 24l8-8-8-8zM21.607 8h2.667v16h-2.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M26.667 14.667H10.44l7.453-7.453L16 5.334 5.333 16.001 16 26.668l1.88-1.88-7.44-7.453h16.227z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-linked:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M5.2 16a4.136 4.136 0 0 1 4.133-4.133h5.333V9.334H9.333a6.67 6.67 0 0 0-6.667 6.667 6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.333A4.136 4.136 0 0 1 5.2 16.002zm5.467 1.333h10.667v-2.667H10.667zm12-8h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133 4.136 4.136 0 0 1-4.133 4.133h-5.333v2.533h5.333a6.67 6.67 0 0 0 6.667-6.667 6.67 6.67 0 0 0-6.667-6.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-loading:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M17 29h-2v-8h2zm-3.586-9L7 26.414 5.586 25 12 18.586zm13 5L25 26.414 18.586 20 20 18.586zM29 17h-8v-2h8zm-18 0H3v-2h8zm2.414-5L12 13.414 5.586 7 7 5.586zm13-5L20 13.414 18.586 12 25 5.586zM17 11h-2V3h2z' style='fill-rule:nonzero' transform='translate(-3.692 -3.692)scale(1.23077)'/%3E%3C/svg%3E\")}.ag-icon-maximize:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14 30H2V18h2.828v7.05l8.254-8.252 2.12 2.12-8.252 8.254H14zm4-28h12v12h-2.828V6.95l-8.254 8.252-2.12-2.12 8.252-8.254H18z'/%3E%3C/svg%3E\")}.ag-icon-menu:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M20 13H0v-2h20zm0-6H0V5h20zm0-6H0v-2h20z' style='fill-rule:nonzero' transform='translate(6 9)'/%3E%3C/svg%3E\")}.ag-icon-menu-alt:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M16 19a3 3 0 1 0 0-6 3 3 0 0 0 0 6M16 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6M16 27a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E\")}.ag-icon-minimize:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M2 18h12v12h-2.828v-7.05l-8.254 8.252-2.12-2.12 8.252-8.254H2zm28-4H18V2h2.828v7.05L29.082.798l2.12 2.12-8.252 8.254H30z'/%3E%3C/svg%3E\")}.ag-icon-minus:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658H7.901v-2.658z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-next:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M10.94 6 9.06 7.88 17.167 16 9.06 24.12 10.94 26l10-10z' style='fill-rule:nonzero' transform='translate(1)'/%3E%3C/svg%3E\")}.ag-icon-none:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enone%3C/title%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cpath d='M23.708 14.645 16 6.939l-7.708 7.706 1.416 1.416L16 9.767l6.292 6.294zM23.708 20.355 16 28.061l-7.708-7.706 1.416-1.416L16 25.233l6.292-6.294z'/%3E%3C/g%3E%3C/svg%3E\")}.ag-icon-not-allowed:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667M5.333 16c0-5.893 4.773-10.667 10.667-10.667 2.467 0 4.733.84 6.533 2.253L7.586 22.533A10.54 10.54 0 0 1 5.333 16M16 26.667c-2.467 0-4.733-.84-6.533-2.253L24.414 9.467A10.54 10.54 0 0 1 26.667 16c0 5.893-4.773 10.667-10.667 10.667' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-paste:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M25.334 4H19.76C19.2 2.453 17.733 1.333 16 1.333S12.8 2.453 12.24 4H6.667A2.675 2.675 0 0 0 4 6.667V28c0 1.467 1.2 2.667 2.667 2.667h18.667c1.467 0 2.667-1.2 2.667-2.667V6.667C28.001 5.2 26.801 4 25.334 4M16 4c.733 0 1.333.6 1.333 1.333s-.6 1.333-1.333 1.333-1.333-.6-1.333-1.333S15.267 4 16 4m9.333 24H6.666V6.667h2.667v4h13.333v-4h2.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-pin:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m10.78 19.777-4.668-4.666s.032-1 .67-1.87c1.366-1.86 4.052-1.96 6.056-1.572l3.158-3.108c-.7-2.342 3.352-5.046 3.352-5.046l9.166 9.168q-.334.447-.67.894c-1.074 1.426-2.538 2.63-4.272 2.338l-3.32 3.218c.046.344.042.03.118 1.152.144 2.13-.64 4.324-2.632 5.34l-.746.364-4.798-4.798-7.292 7.294-1.416-1.416zm8.24-13.672c-.688.568-1.416 1.45-1.024 2.072l.49.722-4.986 4.988c-1.988-.506-4.346-.636-5.156.614l9.02 9.032q.14-.099.272-.21c1.226-1.08.764-3.04.498-4.9l4.79-4.79s1.47.938 2.936-.776l-6.79-6.79q-.026.019-.05.038' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-pivot:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M25.128 2.002c2.56.096 4.772 2.292 4.87 4.87a712 712 0 0 1 0 18.256c-.096 2.56-2.292 4.772-4.87 4.87a712 712 0 0 1-18.256 0c-2.558-.096-4.772-2.29-4.87-4.87a712 712 0 0 1 0-18.256c.096-2.56 2.292-4.772 4.87-4.87a712 712 0 0 1 18.256 0m2.966 7.954H9.892v18.136c5.086.13 10.18.098 15.264-.096 1.48-.094 2.746-1.35 2.84-2.84.192-5.064.226-10.134.098-15.2M3.968 24.1q.015.528.036 1.056c.094 1.484 1.354 2.746 2.84 2.84l1.012.036V24.1zM22 15.414l-.292.294-1.416-1.416L23 11.586l2.708 2.706-1.416 1.416-.292-.294v3.592c-.032 2.604-2.246 4.892-4.872 4.992L15.414 24l.294.292-1.416 1.416L11.586 23l2.706-2.708 1.416 1.416-.322.32c3.372.03 6.578-.164 6.614-3.034zM3.88 18.038c.002 1.346.012 2.694.038 4.04h3.938v-4.04zm.05-6.062a681 681 0 0 0-.044 4.042h3.97v-4.042zm5.962-7.99Q8.449 3.999 7.006 4c-1.57.02-2.946 1.348-3.004 2.922q-.02 1.517-.042 3.034h3.896v-2.02h2.036zm14.244-.016v3.966h3.898q-.017-.546-.038-1.092c-.094-1.48-1.35-2.746-2.84-2.84q-.51-.019-1.02-.034m-8.14-.054q-2.035.022-4.07.048v3.972h4.07zm6.106.008a213 213 0 0 0-4.07-.022v4.034h4.07z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-plus:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658h-6.77v6.77h-2.658v-6.77h-6.77v-2.658h6.77v-6.77h2.658v6.77z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-previous:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M21.94 7.88 20.06 6l-10 10 10 10 1.88-1.88L13.833 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m16 5.333-1.88 1.88 7.44 7.453H5.333v2.667H21.56l-7.44 7.453 1.88 1.88 10.667-10.667L16 5.332z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-save:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M15.708 2.355 8 10.061.292 2.355 1.708.939 8 7.233 14.292.939z' style='fill-rule:nonzero' transform='translate(8 14)'/%3E%3Cpath d='M5 26h22v2H5zM15 4h2v18h-2z'/%3E%3C/svg%3E\")}.ag-icon-small-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.334 10.667 16 21.334l8.667-10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-small-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M21.333 7.334 10.666 16l10.667 8.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-small-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M10.667 24.666 21.334 16 10.667 7.333z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-small-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.334 21.333 16 10.666l8.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-tick:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M11.586 22.96 27.718 6.828 29.84 8.95 11.586 27.202 2.4 18.016l2.12-2.122z'/%3E%3C/svg%3E\")}.ag-icon-tree-closed:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m11.94 6-1.88 1.88L18.167 16l-8.107 8.12L11.94 26l10-10z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-tree-indeterminate:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6 13.5h20v3H6z'/%3E%3C/svg%3E\")}.ag-icon-tree-open:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24.12 9.06 16 17.167 7.88 9.06 6 10.94l10 10 10-10z' style='fill-rule:nonzero' transform='translate(0 1)'/%3E%3C/svg%3E\")}.ag-icon-unlinked:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M22.667 9.333h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133c0 1.907-1.307 3.507-3.08 3.973l1.947 1.947c2.173-1.107 3.667-3.32 3.667-5.92a6.67 6.67 0 0 0-6.667-6.667zm-1.334 5.334h-2.92l2.667 2.667h.253zM2.667 5.693 6.814 9.84A6.65 6.65 0 0 0 2.667 16a6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.334a4.136 4.136 0 0 1-4.133-4.133c0-2.12 1.613-3.867 3.68-4.093l2.76 2.76h-.973v2.667h3.64l3.027 3.027v2.307h2.307l5.347 5.333 1.68-1.68L4.362 4.002 2.669 5.695z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333 5.332 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-grip:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M8 24H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 18H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 12H6V8h2zm6 0h-2V8h2zm6 0h-2V8h2zm6 0h-2V8h2z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-settings:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3'/%3E%3C/svg%3E\")}.ag-icon-column-arrow:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11 4a1 1 0 0 1 1 1v22a1 1 0 1 1-2 0V5a1 1 0 0 1 1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 13a1 1 0 0 1 1-1h23.5a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 4h18v24H2zm2 2v20h14V6zM26.793 13 23 9.207l1.414-1.414L29.621 13l-5.207 5.207L23 16.793z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-un-pin:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='m6.112 15.111 3.272 3.271 1.436-1.402-2.476-2.479c.81-1.25 3.168-1.12 5.156-.614l4.986-4.988-.49-.722c-.392-.622.336-1.504 1.024-2.072l.008-.007.01-.006.032-.025 1.447 1.447 1.432-1.397-2.601-2.602s-4.052 2.704-3.352 5.046l-3.158 3.108c-2.004-.388-4.69-.288-6.056 1.572-.638.87-.67 1.87-.67 1.87m.581 11.582.014.014 5.502-5.501 4.783 4.783.746-.364c1.992-1.016 2.776-3.21 2.632-5.34-.055-.805-.068-.87-.088-.97-.008-.04-.017-.085-.03-.182l3.32-3.218c1.734.292 3.198-.912 4.272-2.338q.337-.447.67-.894l-.001-.001-.007-.007-.007-.007-.007-.007-3.87-3.87 1.585-1.584-1.414-1.414-14.381 14.38-1.237 1.209-5.69 5.687 1.417 1.416zM23.21 10.206l2.65 2.651c-1.465 1.714-2.935.776-2.935.776l-4.79 4.79q.041.291.087.583c.257 1.676.513 3.35-.585 4.317a4 4 0 0 1-.272.21l-3.739-3.744z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-pinned-top:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='m16.708 10.878 8.708 8.706L24 21l-6.292-6.294V27h-2V14.706L9.416 21 8 19.584q4.348-4.344 8.691-8.69zM25 6H8v2h17z'/%3E%3C/svg%3E\")}.ag-icon-pinned-bottom:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M16.708 22.122 8 13.416 9.416 12l6.292 6.294V6h2v12.294L24 12l1.416 1.416-8.691 8.69zM7.416 28h17v-2h-17z'/%3E%3C/svg%3E\")}.ag-icon-chevron-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M3.479 10.521a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1-1.06 1.06l-3.47-3.47-3.47 3.47a.75.75 0 0 1-1.06 0' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12.521 5.461a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 1.06-1.06l3.47 3.47 3.47-3.47a.75.75 0 0 1 1.06 0' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M10.53 12.512a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 1.06l-3.47 3.47 3.47 3.47a.75.75 0 0 1 0 1.06' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M5.47 3.47a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06-1.06L8.94 8 5.47 4.53a.75.75 0 0 1 0-1.06' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-filter-add:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M19.834 8H8c0 .304.06.612.258.842 2.716 2.854 6.682 5.548 6.742 7.974V21l2-1.5v-2.684c.056-2.267 2.968-4.417 5.49-6.75v3.087c-1.081.974-2.245 1.968-3.232 3.005a1.05 1.05 0 0 0-.258.682v3.66L13 25c0-2.74.066-5.482-.002-8.222a1.05 1.05 0 0 0-.256-.62C10.026 13.304 6.06 10.61 6 8.184V6h13.834z'/%3E%3Cpath fill='currentColor' d='M26 6h2.946v2.002H26v3.313h-2.002V8.002h-2.946V6h2.946V3.04H26z'/%3E%3C/svg%3E\")}.ag-icon-edit:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M6.222 25.778h1.611l14.834-14.811-1.611-1.611-14.834 14.81zM4 28v-4.733L22.644 4.656a2.26 2.26 0 0 1 1.567-.634q.423 0 .833.167.412.166.734.478l1.589 1.6q.333.322.483.733t.15.822q0 .423-.161.839-.162.416-.472.728L8.733 28zm17.856-17.833-.8-.811 1.61 1.61z'/%3E%3C/svg%3E\")}",Qv=sl({feature:"iconSet",css:Kv}),Xv=".ag-icon-aggregation:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eaggregation%3C/title%3E%3Cpath d='M24 5.333H8V8l8.667 8L8 24v2.667h16v-4h-9.333L21.334 16l-6.667-6.667H24z'/%3E%3C/svg%3E\")}.ag-icon-arrows:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Earrows%3C/title%3E%3Cpath d='M13.333 11.556h5.333V8h3.556L16 1.778 9.778 8h3.556zm-1.777 1.777H8V9.777l-6.222 6.222L8 22.221v-3.556h3.556zM30.222 16 24 9.778v3.556h-3.556v5.333H24v3.556l6.222-6.222zm-11.555 4.444h-5.333V24H9.778L16 30.222 22.222 24h-3.556z'/%3E%3C/svg%3E\")}.ag-icon-asc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333z'/%3E%3C/svg%3E\")}.ag-icon-aasc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M13.201 8.08q.65 0 1.135.222.487.222.759.618.27.396.279.919H14.19a.72.72 0 0 0-.293-.536q-.26-.191-.705-.192-.302.001-.51.086a.7.7 0 0 0-.32.23.56.56 0 0 0-.108.338.5.5 0 0 0 .065.273.7.7 0 0 0 .204.203q.127.083.295.146.168.06.36.102l.525.125q.382.086.701.229.32.143.554.35.234.21.362.49.131.284.134.648a1.6 1.6 0 0 1-.273.93q-.27.391-.777.608-.504.214-1.217.214-.708 0-1.232-.217a1.8 1.8 0 0 1-.816-.642q-.29-.428-.305-1.058h1.194q.02.294.17.49.15.195.402.294.253.097.573.097.313 0 .544-.09a.84.84 0 0 0 .362-.255.6.6 0 0 0 .129-.374q0-.195-.117-.33a.9.9 0 0 0-.337-.228 3.4 3.4 0 0 0-.54-.171l-.635-.16q-.738-.18-1.166-.562t-.426-1.03a1.53 1.53 0 0 1 .284-.927q.287-.396.79-.618a2.8 2.8 0 0 1 1.14-.223'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5.813 14H4.489l-.432-1.332H1.948L1.515 14H.19l2.017-5.84h1.592zm-3.551-2.296h1.481l-.718-2.21H2.98zM8.452 8.16q.645 0 1.075.19.43.191.648.531a1.4 1.4 0 0 1 .217.775q0 .343-.137.602-.137.256-.376.422a1.6 1.6 0 0 1-.542.231v.057q.333.015.624.188.294.175.476.489.183.31.183.74 0 .466-.231.831a1.56 1.56 0 0 1-.676.573Q9.265 14 8.609 14H6.114V8.16zM7.35 12.99h1.006q.517 0 .753-.196a.66.66 0 0 0 .237-.531.8.8 0 0 0-.116-.428.8.8 0 0 0-.334-.29 1.15 1.15 0 0 0-.511-.106H7.349zm0-2.386h.916q.254 0 .45-.09a.75.75 0 0 0 .313-.256.67.67 0 0 0 .118-.396.64.64 0 0 0-.226-.511q-.223-.195-.633-.194H7.35z' clip-rule='evenodd'/%3E%3Cpath fill='%23000' d='M7.166.377a.75.75 0 0 1 .919.066l3.333 3a.75.75 0 0 1-1.003 1.115L7.609 2.033 5.113 4.53a.75.75 0 0 1-1.06-1.06l3-3z'/%3E%3C/svg%3E\")}.ag-icon-cancel:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecancel%3C/title%3E%3Cpath d='M16 2.667C8.627 2.667 2.667 8.627 2.667 16S8.627 29.333 16 29.333 29.333 23.373 29.333 16 23.373 2.667 16 2.667m6.667 18.12-1.88 1.88L16 17.88l-4.787 4.787-1.88-1.88L14.12 16l-4.787-4.787 1.88-1.88L16 14.12l4.787-4.787 1.88 1.88L17.88 16z'/%3E%3C/svg%3E\")}.ag-icon-chart:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Echart%3C/title%3E%3Cpath d='M6.667 12.267h4v13.067h-4zm7.466-5.6h3.733v18.667h-3.733zM21.6 17.333h3.733v8H21.6z'/%3E%3C/svg%3E\")}.ag-icon-color-picker:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolor-picker%3C/title%3E%3Cpath d='M23.907 17.587 10.574 4.254l-1.88 1.88 3.173 3.173-8.28 8.28 10.16 10.16zm-16.547 0 6.387-6.387 6.387 6.387H7.361zm18.387 2s-2.667 2.893-2.667 4.667c0 1.467 1.2 2.667 2.667 2.667s2.667-1.2 2.667-2.667c0-1.773-2.667-4.667-2.667-4.667'/%3E%3C/svg%3E\")}.ag-icon-columns:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolumns%3C/title%3E%3Cpath d='M5.333 10.667h5.333V5.334H5.333zm8 16h5.333v-5.333h-5.333zm-8 0h5.333v-5.333H5.333zm0-8h5.333v-5.333H5.333zm8 0h5.333v-5.333h-5.333zm8-13.334v5.333h5.333V5.333zm-8 5.334h5.333V5.334h-5.333zm8 8h5.333v-5.333h-5.333zm0 8h5.333v-5.333h-5.333z'/%3E%3C/svg%3E\")}.ag-icon-contracted:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Econtracted%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E\")}.ag-icon-copy:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecopy%3C/title%3E%3Cpath d='M22 1.333H6A2.675 2.675 0 0 0 3.333 4v18.667H6V4h16zm4 5.334H11.333a2.675 2.675 0 0 0-2.667 2.667v18.667c0 1.467 1.2 2.667 2.667 2.667H26c1.467 0 2.667-1.2 2.667-2.667V9.334c0-1.467-1.2-2.667-2.667-2.667M26 28H11.333V9.333H26z'/%3E%3C/svg%3E\")}.ag-icon-cross:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecross%3C/title%3E%3Cpath d='m25.333 8.547-1.88-1.88L16 14.12 8.547 6.667l-1.88 1.88L14.12 16l-7.453 7.453 1.88 1.88L16 17.88l7.453 7.453 1.88-1.88L17.88 16z'/%3E%3C/svg%3E\")}.ag-icon-csv:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='translate(3.934 -.054)scale(.06285)'/%3E%3Cpath d='M.688-.226a.2.2 0 0 1-.017.074.28.28 0 0 1-.145.14.412.412 0 0 1-.234.013.28.28 0 0 1-.202-.168.468.468 0 0 1-.04-.19q0-.086.025-.155a.319.319 0 0 1 .182-.191.4.4 0 0 1 .134-.025q.087 0 .155.035a.3.3 0 0 1 .104.085.17.17 0 0 1 .036.097.06.06 0 0 1-.018.044.06.06 0 0 1-.042.019.06.06 0 0 1-.042-.013.2.2 0 0 1-.031-.046.2.2 0 0 0-.066-.079.16.16 0 0 0-.095-.027.17.17 0 0 0-.142.068.3.3 0 0 0-.053.193.4.4 0 0 0 .023.139.2.2 0 0 0 .067.083.2.2 0 0 0 .1.027q.063 0 .106-.031a.2.2 0 0 0 .065-.091.2.2 0 0 1 .023-.046q.014-.018.044-.018a.06.06 0 0 1 .044.018.06.06 0 0 1 .019.045' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.622-.215a.2.2 0 0 1-.033.117.23.23 0 0 1-.098.081.4.4 0 0 1-.153.029.34.34 0 0 1-.175-.04.23.23 0 0 1-.079-.077.17.17 0 0 1-.031-.093q0-.027.019-.045a.06.06 0 0 1 .046-.019.06.06 0 0 1 .039.014.1.1 0 0 1 .027.044.3.3 0 0 0 .03.057q.015.023.044.038.03.015.076.015.065 0 .105-.03a.09.09 0 0 0 .04-.075.08.08 0 0 0-.022-.058.14.14 0 0 0-.056-.034 1 1 0 0 0-.092-.025.7.7 0 0 1-.129-.042.2.2 0 0 1-.083-.066.17.17 0 0 1-.03-.104q0-.058.032-.105a.2.2 0 0 1 .093-.07.4.4 0 0 1 .144-.025q.066 0 .114.016a.3.3 0 0 1 .08.044.2.2 0 0 1 .046.057q.015.03.015.058a.07.07 0 0 1-.018.046.06.06 0 0 1-.046.021q-.025 0-.038-.012a.2.2 0 0 1-.028-.041.2.2 0 0 0-.047-.063Q.387-.625.326-.625a.15.15 0 0 0-.09.025q-.035.024-.035.059 0 .021.012.037a.1.1 0 0 0 .032.027.4.4 0 0 0 .111.036q.06.015.11.031.048.018.083.042a.2.2 0 0 1 .054.062.2.2 0 0 1 .019.091' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='m.184-.633.162.48.163-.483q.013-.038.019-.053a.062.062 0 0 1 .061-.039q.018 0 .034.009a.1.1 0 0 1 .025.025q.009.015.009.031L.654-.64l-.007.025-.009.024-.173.468-.019.051a.2.2 0 0 1-.021.042.1.1 0 0 1-.033.03.1.1 0 0 1-.049.012.1.1 0 0 1-.05-.011A.1.1 0 0 1 .26-.03a.2.2 0 0 1-.021-.042L.22-.123.05-.587.041-.612.033-.638.03-.662q0-.025.02-.046a.07.07 0 0 1 .05-.02q.037 0 .053.023.015.023.031.072' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%3E%3C/svg%3E\")}.ag-icon-cut:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m19 3-6 6 2 2 7-7V3m-10 9.5a.503.503 0 0 1-.5-.5c0-.274.226-.5.5-.5s.5.226.5.5-.226.5-.5.5M6 20c-1.097 0-2-.903-2-2a2 2 0 0 1 2-2c1.097 0 2 .903 2 2a2 2 0 0 1-2 2M6 8c-1.097 0-2-.903-2-2a2 2 0 0 1 2-2c1.097 0 2 .903 2 2a2 2 0 0 1-2 2m3.64-.36c.23-.5.36-1.05.36-1.64 0-2.194-1.806-4-4-4S2 3.806 2 6s1.806 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.194 0-4 1.806-4 4s1.806 4 4 4 4-1.806 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1z' style='fill-rule:nonzero' transform='translate(4 4)'/%3E%3C/svg%3E\")}.ag-icon-desc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Edesc%3C/title%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667L26.668 16z'/%3E%3C/svg%3E\")}.ag-icon-adesc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M10.387 11.47a.75.75 0 0 1 1.06 1.06l-3 3-.113.093a.75.75 0 0 1-.919-.065l-3.333-3a.75.75 0 0 1 1.003-1.116l2.806 2.525zM13.201 3.08q.65 0 1.135.222.487.223.759.619.27.396.279.918H14.19a.72.72 0 0 0-.293-.536q-.26-.192-.705-.192-.302.001-.51.086a.7.7 0 0 0-.32.23.56.56 0 0 0-.108.338.5.5 0 0 0 .065.273.7.7 0 0 0 .204.203q.127.083.295.146.168.06.36.102l.525.125a3.7 3.7 0 0 1 .701.229q.32.143.554.35.234.21.362.492.131.282.134.647a1.6 1.6 0 0 1-.273.93 1.74 1.74 0 0 1-.777.607q-.504.214-1.217.214-.708 0-1.232-.217a1.8 1.8 0 0 1-.816-.641q-.29-.429-.305-1.059h1.194q.02.294.17.49.15.195.402.294.253.098.573.098.313 0 .544-.092a.84.84 0 0 0 .362-.254.6.6 0 0 0 .129-.373.5.5 0 0 0-.117-.33.9.9 0 0 0-.337-.23 3.4 3.4 0 0 0-.54-.17l-.635-.16q-.738-.18-1.166-.562t-.426-1.03a1.53 1.53 0 0 1 .284-.926q.287-.396.79-.62a2.8 2.8 0 0 1 1.14-.222'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5.813 9H4.489l-.432-1.332H1.948L1.515 9H.19l2.017-5.84h1.592zM2.262 6.704h1.481l-.718-2.21H2.98zM8.452 3.16q.645 0 1.075.19.43.192.648.53a1.4 1.4 0 0 1 .217.776q0 .342-.137.602a1.2 1.2 0 0 1-.376.423 1.6 1.6 0 0 1-.542.23v.058q.333.014.624.187.294.175.476.489.183.31.183.74 0 .465-.231.83a1.56 1.56 0 0 1-.676.574Q9.265 9 8.609 9H6.114V3.16zM7.35 7.99h1.006q.517 0 .753-.196a.66.66 0 0 0 .237-.531.8.8 0 0 0-.116-.428.8.8 0 0 0-.334-.291 1.15 1.15 0 0 0-.511-.106H7.349zm0-2.386h.916q.254 0 .45-.09a.75.75 0 0 0 .313-.256.67.67 0 0 0 .118-.397.64.64 0 0 0-.226-.51q-.223-.194-.633-.194H7.35z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Edesc%3C/title%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667L26.668 16z'/%3E%3C/svg%3E\")}.ag-icon-excel:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='translate(3.934 -.054)scale(.06285)'/%3E%3Cpath d='m.052-.139.16-.234-.135-.208a.4.4 0 0 1-.028-.052.1.1 0 0 1-.01-.042.05.05 0 0 1 .018-.037.07.07 0 0 1 .045-.016q.03 0 .047.018a1 1 0 0 1 .047.066l.107.174.115-.174.024-.038.019-.026.021-.015a.1.1 0 0 1 .027-.005.06.06 0 0 1 .044.016.05.05 0 0 1 .018.039q0 .033-.038.089l-.141.211.152.234a.3.3 0 0 1 .03.051.1.1 0 0 1 .009.038.1.1 0 0 1-.008.031.1.1 0 0 1-.024.023.1.1 0 0 1-.034.008.1.1 0 0 1-.035-.008.1.1 0 0 1-.023-.022L.427-.067.301-.265l-.134.204-.022.034-.016.019a.1.1 0 0 1-.022.015.1.1 0 0 1-.03.005.06.06 0 0 1-.044-.016.06.06 0 0 1-.017-.047q0-.036.036-.088' style='fill-rule:nonzero' transform='matrix(17.82892 0 0 16.50777 10.371 25.928)'/%3E%3C/svg%3E\")}.ag-icon-expanded:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eexpanded%3C/title%3E%3Cpath d='M20.94 9.88 19.06 8l-8 8 8 8 1.88-1.88L14.833 16z'/%3E%3C/svg%3E\")}.ag-icon-eye-slash:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye-slash%3C/title%3E%3Cpath d='M21.106 15.088A5.19 5.19 0 0 0 16 10.814a5.17 5.17 0 0 0-3.668 1.522L9.866 9.868a12.2 12.2 0 0 1 6.133-1.646c5.186 0 9.614 3.225 11.408 7.778a12.34 12.34 0 0 1-5.276 6.133l-2.468-2.466a5.17 5.17 0 0 0 1.449-2.802h-2.123c-.148.508-.42.964-.782 1.33l-1.33-1.33h-2.514l2.196 2.196q-.272.049-.56.05a3.11 3.11 0 0 1-2.99-2.245h-2.123a5.19 5.19 0 0 0 7.3 3.836l2.247 2.247a12.2 12.2 0 0 1-4.434.828c-5.186 0-9.614-3.225-11.408-7.778a12.3 12.3 0 0 1 3.781-5.111l2.924 2.924a5.1 5.1 0 0 0-.404 1.275h4.206l-1.296-1.296a3.1 3.1 0 0 1 2.196-.903c1.404 0 2.587.924 2.976 2.199h2.13z'/%3E%3C/svg%3E\")}.ag-icon-eye:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye%3C/title%3E%3Cpath d='M16 8.222c-5.186 0-9.614 3.225-11.408 7.778 1.794 4.553 6.222 7.778 11.408 7.778S25.614 20.553 27.408 16C25.614 11.447 21.186 8.222 16 8.222m0 12.964c-2.862 0-5.186-2.324-5.186-5.186s2.324-5.186 5.186-5.186 5.186 2.324 5.186 5.186-2.324 5.186-5.186 5.186m0-8.297c-1.721 0-3.111 1.39-3.111 3.111s1.39 3.111 3.111 3.111 3.111-1.39 3.111-3.111-1.39-3.111-3.111-3.111'/%3E%3C/svg%3E\")}.ag-icon-filter:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efilter%3C/title%3E%3Cpath d='M13.333 24h5.333v-2.667h-5.333zM4 8v2.667h24V8zm4 9.333h16v-2.667H8z'/%3E%3C/svg%3E\")}.ag-icon-first:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efirst%3C/title%3E%3Cpath d='M24.273 22.12 18.153 16l6.12-6.12L22.393 8l-8 8 8 8zM7.727 8h2.667v16H7.727z'/%3E%3C/svg%3E\")}.ag-icon-group:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egroup%3C/title%3E%3Cpath d='M18.667 21.333h8.889A3.555 3.555 0 0 1 24 24.889h-5.333zm8.888-7.111v3.556h-8.889v-3.556zM24 7.111a3.555 3.555 0 0 1 3.556 3.556h-16V7.111zm-8.889 17.778h-3.556v-3.556h3.556zm0-7.111h-3.556v-3.556h3.556zM8 10.667H4.444A3.555 3.555 0 0 1 8 7.111z'/%3E%3C/svg%3E\")}.ag-icon-last:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elast%3C/title%3E%3Cpath d='m7.727 9.88 6.12 6.12-6.12 6.12L9.607 24l8-8-8-8zM21.607 8h2.667v16h-2.667z'/%3E%3C/svg%3E\")}.ag-icon-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eleft%3C/title%3E%3Cpath d='M26.667 14.667H10.44l7.453-7.453L16 5.334 5.333 16.001 16 26.668l1.88-1.88-7.44-7.453h16.227v-2.667z'/%3E%3C/svg%3E\")}.ag-icon-linked:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elinked%3C/title%3E%3Cpath d='M5.2 16a4.136 4.136 0 0 1 4.133-4.133h5.333V9.334H9.333c-3.68 0-6.667 2.987-6.667 6.667s2.987 6.667 6.667 6.667h5.333v-2.533H9.333A4.136 4.136 0 0 1 5.2 16.002zm5.467 1.333h10.667v-2.667H10.667zm12-8h-5.333v2.533h5.333c2.28 0 4.133 1.853 4.133 4.133s-1.853 4.133-4.133 4.133h-5.333v2.533h5.333c3.68 0 6.667-2.987 6.667-6.667s-2.987-6.667-6.667-6.667z'/%3E%3C/svg%3E\")}.ag-icon-loading:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eloading%3C/title%3E%3Cpath d='m17.778 11.708 3.25-3.251 2.516 2.516-3.251 3.25h4.597v3.556h-4.597l3.251 3.25-2.516 2.516-3.25-3.251v4.597h-3.556v-4.597l-3.25 3.251-2.516-2.516 3.251-3.25H7.11v-3.556h4.597l-3.251-3.25 2.516-2.516 3.25 3.251V7.111h3.556zm-3.251 7.847h2.944l2.084-2.084v-2.944l-2.084-2.084h-2.944l-2.084 2.084v2.944z'/%3E%3C/svg%3E\")}.ag-icon-maximize:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Emaximize%3C/title%3E%3Cpath d='M4 4h24v2.667H4z'/%3E%3C/svg%3E\")}.ag-icon-menu:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Emenu%3C/title%3E%3Cpath d='M4 24h24v-2.667H4zm0-6.667h24v-2.667H4zM4 8v2.667h24V8z'/%3E%3C/svg%3E\")}.ag-icon-menu-alt:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M16 26.667a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 24q0-1.1.784-1.883A2.57 2.57 0 0 1 16 21.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784m0-8a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 16q0-1.1.784-1.883A2.57 2.57 0 0 1 16 13.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784m0-8a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 8q0-1.1.784-1.883A2.57 2.57 0 0 1 16 5.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784'/%3E%3C/svg%3E\")}.ag-icon-minimize:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eminimize%3C/title%3E%3Cpath d='M8 25.333h16V28H8z'/%3E%3C/svg%3E\")}.ag-icon-minus:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658H7.901v-2.658z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-next:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enext%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E\")}.ag-icon-none:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enone%3C/title%3E%3Cpath d='M4 24h16v-2.667H4zM4 8v2.667h24V8zm0 9.333h24v-2.667H4z'/%3E%3C/svg%3E\")}.ag-icon-not-allowed:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enot-allowed%3C/title%3E%3Cpath d='M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667M5.333 16c0-5.893 4.773-10.667 10.667-10.667 2.467 0 4.733.84 6.533 2.253L7.586 22.533A10.54 10.54 0 0 1 5.333 16M16 26.667c-2.467 0-4.733-.84-6.533-2.253L24.414 9.467A10.54 10.54 0 0 1 26.667 16c0 5.893-4.773 10.667-10.667 10.667'/%3E%3C/svg%3E\")}.ag-icon-paste:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epaste%3C/title%3E%3Cpath d='M25.333 4H19.76C19.2 2.453 17.733 1.333 16 1.333S12.8 2.453 12.24 4H6.667A2.675 2.675 0 0 0 4 6.667V28c0 1.467 1.2 2.667 2.667 2.667h18.667c1.467 0 2.667-1.2 2.667-2.667V6.667C28.001 5.2 26.801 4 25.334 4zM16 4c.733 0 1.333.6 1.333 1.333s-.6 1.333-1.333 1.333-1.333-.6-1.333-1.333S15.267 4 16 4m9.333 24H6.666V6.667h2.667v4h13.333v-4h2.667z'/%3E%3C/svg%3E\")}.ag-icon-pin:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epin%3C/title%3E%3Cpath d='m11.106 22.093-4.444 4.444-1.259-1.259 4.444-4.444zm5.872-16.63 9.618 9.62-.962.962-.962-.962-7.694 3.847 1.924 1.924-2.74 2.74-7.696-7.696 2.741-2.74 1.924 1.925 3.847-7.696-.962-.962z'/%3E%3C/svg%3E\")}.ag-icon-pivot:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epivot%3C/title%3E%3Cpath d='M26.667 30.223H5.334a3.556 3.556 0 0 1-3.556-3.556V5.334a3.556 3.556 0 0 1 3.556-3.556h21.333a3.556 3.556 0 0 1 3.556 3.556v21.333a3.556 3.556 0 0 1-3.556 3.556m-16-8.89H5.334v5.333h5.333zm16-7.11H12.444v12.444h14.223zm-9.15 6.85-2.039 2.037 2.039 2.039-1.257 1.257-3.295-3.296 3.295-3.295q.63.628 1.257 1.257zm-6.85-6.85H5.334v5.333h5.333zm15.74 3.816-1.257 1.256-2.039-2.037-2.037 2.037-1.257-1.256 3.295-3.296zM10.667 5.333H5.334v5.333h5.333zm8.889 0h-7.112v5.333h7.112zm7.111 0h-5.333v5.333h5.333z'/%3E%3C/svg%3E\")}.ag-icon-plus:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658h-6.77v6.77h-2.658v-6.77h-6.77v-2.658h6.77v-6.77h2.658v6.77z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-previous:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eprevious%3C/title%3E%3Cpath d='M20.94 9.88 19.06 8l-8 8 8 8 1.88-1.88L14.833 16z'/%3E%3C/svg%3E\")}.ag-icon-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eright%3C/title%3E%3Cpath d='m16 5.333-1.88 1.88 7.44 7.453H5.333v2.667H21.56l-7.44 7.453 1.88 1.88 10.667-10.667L16 5.332z'/%3E%3C/svg%3E\")}.ag-icon-save:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esave%3C/title%3E%3Cpath d='M25.333 16v9.333H6.666V16H3.999v9.333C3.999 26.8 5.199 28 6.666 28h18.667C26.8 28 28 26.8 28 25.333V16zm-8 .893 3.453-3.44 1.88 1.88L15.999 22l-6.667-6.667 1.88-1.88 3.453 3.44V4h2.667v12.893z'/%3E%3C/svg%3E\")}.ag-icon-small-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-down%3C/title%3E%3Cpath d='M9.333 12.667 16 19.334l6.667-6.667H9.334z'/%3E%3C/svg%3E\")}.ag-icon-small-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-left%3C/title%3E%3Cpath d='M19.333 9.333 12.666 16l6.667 6.667V9.334z'/%3E%3C/svg%3E\")}.ag-icon-small-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-right%3C/title%3E%3Cpath d='M12.667 22.667 19.334 16l-6.667-6.667v13.333z'/%3E%3C/svg%3E\")}.ag-icon-small-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-up%3C/title%3E%3Cpath d='M9.333 19.333 16 12.666l6.667 6.667H9.334z'/%3E%3C/svg%3E\")}.ag-icon-tick:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etick%3C/title%3E%3Cpath d='m11.727 21.167-5.56-5.56-1.893 1.88 7.453 7.453 16-16-1.88-1.88z'/%3E%3C/svg%3E\")}.ag-icon-tree-closed:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-closed%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E\")}.ag-icon-tree-indeterminate:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-indeterminate%3C/title%3E%3Cpath d='M6.667 14.667h18.667v2.667H6.667z'/%3E%3C/svg%3E\")}.ag-icon-tree-open:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-open%3C/title%3E%3Cpath d='M22.12 11.06 16 17.167 9.88 11.06 8 12.94l8 8 8-8z'/%3E%3C/svg%3E\")}.ag-icon-unlinked:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eunlinked%3C/title%3E%3Cpath d='M22.667 9.333h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133c0 1.907-1.307 3.507-3.08 3.973l1.947 1.947c2.173-1.107 3.667-3.32 3.667-5.92a6.67 6.67 0 0 0-6.667-6.667zm-1.334 5.334h-2.92l2.667 2.667h.253zM2.667 5.693 6.814 9.84A6.65 6.65 0 0 0 2.667 16a6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.334a4.136 4.136 0 0 1-4.133-4.133c0-2.12 1.613-3.867 3.68-4.093l2.76 2.76h-.973v2.667h3.64l3.027 3.027v2.307h2.307l5.347 5.333 1.68-1.68L4.362 4.002 2.669 5.695z'/%3E%3C/svg%3E\")}.ag-icon-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333z'/%3E%3C/svg%3E\")}.ag-icon-grip:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egrip%3C/title%3E%3Cpath d='M26.667 12H5.334v2.667h21.333zM5.333 20h21.333v-2.667H5.333z'/%3E%3C/svg%3E\")}.ag-icon-settings:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3'/%3E%3C/svg%3E\")}.ag-icon-column-arrow:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11 4a1 1 0 0 1 1 1v22a1 1 0 1 1-2 0V5a1 1 0 0 1 1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 13a1 1 0 0 1 1-1h23.5a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 4h18v24H2zm2 2v20h14V6zM26.793 13 23 9.207l1.414-1.414L29.621 13l-5.207 5.207L23 16.793z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-un-pin:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M8 11a.75.75 0 0 0-.75.75v3.333a.75.75 0 1 0 1.5 0V11.75A.75.75 0 0 0 8 11'/%3E%3Cpath fill='currentColor' d='M13.11 1.436a.75.75 0 0 0-1.22-.872l-10 14a.75.75 0 1 0 1.22.872L5.207 12.5h7.376a.75.75 0 0 0 .75-.75v-1.174a2.08 2.08 0 0 0-1.153-1.863l-1.185-.599-.005-.002a.58.58 0 0 1-.323-.522V5.165a2.083 2.083 0 0 0 1.854-2.904zm-3.943 5.52v.634a2.08 2.08 0 0 0 1.153 1.863l1.185.6.005.002a.58.58 0 0 1 .323.522V11H6.28zM9.277 1H5.25a2.084 2.084 0 0 0-.083 4.165v1.676l1.5-2.132v-.292a.75.75 0 0 0-.75-.75H5.25a.584.584 0 0 1 0-1.167h2.972z'/%3E%3C/svg%3E\")}.ag-icon-pinned-top:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M12.53 3.72A.75.75 0 0 1 12 5H4a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 .53.22M3.269 10.744a.75.75 0 0 1 .2-.524l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 1 1-1.06 1.06L8.75 8.56V14a.75.75 0 0 1-1.5 0V8.56l-2.72 2.72a.75.75 0 0 1-1.26-.536'/%3E%3C/svg%3E\")}.ag-icon-pinned-bottom:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M3.47 12.28A.75.75 0 0 1 4 11h8a.75.75 0 0 1 0 1.5H4a.75.75 0 0 1-.53-.22M12.731 5.256a.75.75 0 0 1-.2.524l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06l2.72 2.72V2a.75.75 0 0 1 1.5 0v5.44l2.72-2.72a.75.75 0 0 1 1.26.536'/%3E%3C/svg%3E\")}.ag-icon-chevron-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M3.479 10.521a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1-1.06 1.06l-3.47-3.47-3.47 3.47a.75.75 0 0 1-1.06 0' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12.521 5.461a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 1.06-1.06l3.47 3.47 3.47-3.47a.75.75 0 0 1 1.06 0' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M10.53 12.512a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 1.06l-3.47 3.47 3.47 3.47a.75.75 0 0 1 0 1.06' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M5.47 3.47a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06-1.06L8.94 8 5.47 4.53a.75.75 0 0 1 0-1.06' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-filter-add:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M18.666 24h-5.333v-2.667h5.333zM24 17.333H8v-2.667h16zm3.59-9.344h3.221v2.657h-3.22v3.22h-2.656v-3.22h-3.221V7.989h3.22V4.77h2.657zm-8.582 2.678H4V8h15.008z'/%3E%3C/svg%3E\")}.ag-icon-edit:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M6.222 25.778h1.611l14.834-14.811-1.611-1.611-14.834 14.81zM4 28v-4.733L22.644 4.656a2.26 2.26 0 0 1 1.567-.634q.423 0 .833.167.412.166.734.478l1.589 1.6q.333.322.483.733t.15.822q0 .423-.161.839-.162.416-.472.728L8.733 28zm17.856-17.833-.8-.811 1.61 1.61z'/%3E%3C/svg%3E\")}",Yv=sl({feature:"iconSet",css:Xv}),Zv=e=>{const t=[];if("image"===e.type){const{icons:o,mask:i}=e;for(const e of Object.keys(o)){const n=Ol(o[e]);i?t.push(`.ag-icon-${e}::before { mask-image: ${n}; }`):t.push(`.ag-icon-${e}::before { background-image: ${n}; ${Jv} }`)}}if("font"===e.type){const{family:o,weight:i,color:n,icons:s}=e;let r=Jv;o&&(r+=` font-family: ${Il(o)};`),i&&(r+=` font-weight: ${Bl(i)};`),n&&(r+=` color: ${Fl(n)};`);for(const e of Object.keys(s))t.push(`.ag-icon-${e}::before { content: ${JSON.stringify(s[e])}; ${r} }`)}return sl({css:t.join(";\n"),cssImports:e.cssImports})},Jv="background-color: unset; mask-image: unset; -webkit-mask-image: unset;",eC={aggregation:'<path d="M18 7V4H6l6 8-6 8h12v-3"/>',arrows:'<polyline points="5 9 2 12 5 15"/><polyline points="9 5 12 2 15 5"/><polyline points="15 19 12 22 9 19"/><polyline points="19 9 22 12 19 15"/><line x1="2" x2="22" y1="12" y2="12"/><line x1="12" x2="12" y1="2" y2="22"/>',asc:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',cancel:'<path d="m18 6-12 12"/><path d="m6 6 12 12"/>',chart:'<line x1="18" x2="18" y1="20" y2="10"/><line x1="12" x2="12" y1="20" y2="4"/><line x1="6" x2="6" y1="20" y2="14"/>',"color-picker":'<path d="m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z"/><path d="m5 2 5 5"/><path d="M2 13h15"/><path d="M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z"/>',columns:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"/>',contracted:'<path d="m9 18 6-6-6-6"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',cross:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',csv:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',cut:'<circle cx="6" cy="6" r="3"/><path d="M8.12 8.12 12 12"/><path d="M20 4 8.12 15.88"/><circle cx="6" cy="18" r="3"/><path d="M14.8 14.8 20 20"/>',desc:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',down:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',excel:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',expanded:'<path d="m15 18-6-6 6-6"/>',eye:'<path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>',"eye-slash":'<path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/>',filter:'<path d="M3 6h18"/><path d="M7 12h10"/><path d="M10 18h4"/>',first:'<path d="m17 18-6-6 6-6"/><path d="M7 6v12"/>',grip:'<circle cx="5" cy="8" r="0.5"/><circle cx="12" cy="8" r="0.5"/><circle cx="19" cy="8" r="0.5"/><circle cx="5" cy="16" r="0.5"/><circle cx="12" cy="16" r="0.5"/><circle cx="19" cy="16" r="0.5"/><g stroke="none" fill="currentColor"><circle cx="5" cy="8" r="1"/><circle cx="12" cy="8" r="1"/><circle cx="19" cy="8" r="1"/><circle cx="5" cy="16" r="1"/><circle cx="12" cy="16" r="1"/><circle cx="19" cy="16" r="1"/></g>',group:'<path d="M16 12H3"/><path d="M16 18H3"/><path d="M10 6H3"/><path d="M21 18V8a2 2 0 0 0-2-2h-5"/><path d="m16 8-2-2 2-2"/>',last:'<path d="m7 18 6-6-6-6"/><path d="M17 6v12"/>',left:'<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',linked:'<path d="M9 17H7A5 5 0 0 1 7 7h2"/><path d="M15 7h2a5 5 0 1 1 0 10h-2"/><line x1="8" x2="16" y1="12" y2="12"/>',loading:'<line x1="12" x2="12" y1="2" y2="6"/><line x1="12" x2="12" y1="18" y2="22"/><line x1="4.93" x2="7.76" y1="4.93" y2="7.76"/><line x1="16.24" x2="19.07" y1="16.24" y2="19.07"/><line x1="2" x2="6" y1="12" y2="12"/><line x1="18" x2="22" y1="12" y2="12"/><line x1="4.93" x2="7.76" y1="19.07" y2="16.24"/><line x1="16.24" x2="19.07" y1="7.76" y2="4.93"/>',maximize:'<polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/>',menu:'<line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="18" y2="18"/>',"menu-alt":'<circle cx="12" cy="5" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="12" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="19" r="0.75" fill="#D9D9D9"/>',minimize:'<polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/><line x1="14" x2="21" y1="10" y2="3"/><line x1="3" x2="10" y1="21" y2="14"/>',minus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/>',next:'<path d="m9 18 6-6-6-6"/>',none:'<path d="m7 15 5 5 5-5"/><path d="m7 9 5-5 5 5"/>',"not-allowed":'<circle cx="12" cy="12" r="10"/><path d="m4.9 4.9 14.2 14.2"/>',paste:'<path d="M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z"/><path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10"/><path d="m17 10 4 4-4 4"/>',pin:'<line x1="12" x2="12" y1="17" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"/>',pivot:'<path d="M15 3v18"/><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M21 9H3"/><path d="M21 15H3"/>',plus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/><path d="M12 8v8"/>',previous:'<path d="m15 18-6-6 6-6"/>',right:'<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',save:'<path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/>',settings:'<path d="M20 7h-9"/><path d="M14 17H5"/><circle cx="17" cy="17" r="3"/><circle cx="7" cy="7" r="3"/>',"small-left":'<path d="m15 18-6-6 6-6"/>',"small-right":'<path d="m9 18 6-6-6-6"/>',tick:'<path d="M20 6 9 17l-5-5"/>',"tree-closed":'<path d="m9 18 6-6-6-6"/>',"tree-indeterminate":'<path d="M5 12h14"/>',"tree-open":'<path d="m6 9 6 6 6-6"/>',unlinked:'<path d="M9 17H7A5 5 0 0 1 7 7"/><path d="M15 7h2a5 5 0 0 1 4 8"/><line x1="8" x2="12" y1="12" y2="12"/><line x1="2" x2="22" y1="2" y2="22"/>',up:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>'},tC={aasc:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.2012 8.07928C13.6346 8.0793 14.0128 8.15365 14.3359 8.30193C14.6609 8.45018 14.9141 8.65595 15.0947 8.9201C15.2754 9.18439 15.3683 9.49109 15.374 9.83904H14.1904C14.1676 9.60898 14.0695 9.4303 13.8965 9.30291C13.7235 9.1756 13.4889 9.1115 13.1924 9.1115C12.9909 9.1115 12.8204 9.1404 12.6816 9.19744C12.543 9.25255 12.4364 9.32917 12.3623 9.42791C12.2901 9.52678 12.2539 9.63933 12.2539 9.76482C12.2501 9.8692 12.272 9.9604 12.3193 10.0383C12.3688 10.1162 12.4369 10.1843 12.5225 10.2414C12.6079 10.2964 12.7064 10.3451 12.8184 10.3869C12.9304 10.4268 13.0505 10.4609 13.1777 10.4894L13.7031 10.6144C13.9578 10.6715 14.1914 10.7479 14.4043 10.8429C14.6173 10.938 14.8021 11.0547 14.958 11.1935C15.1138 11.3323 15.2348 11.4957 15.3203 11.6838C15.4077 11.8719 15.4522 12.088 15.4541 12.3312C15.4522 12.6885 15.3611 12.9986 15.1807 13.2609C15.0019 13.5214 14.7427 13.7248 14.4043 13.8693C14.0678 14.0118 13.6617 14.0832 13.1865 14.0832C12.7153 14.0832 12.3048 14.0107 11.9551 13.8664C11.6071 13.7219 11.3345 13.5071 11.1387 13.2238C10.9449 12.9387 10.8435 12.5862 10.834 12.1662H12.0283C12.0416 12.362 12.0984 12.5252 12.1973 12.6564C12.298 12.7857 12.4323 12.8838 12.5996 12.9504C12.7688 13.0149 12.96 13.047 13.1729 13.047C13.3817 13.047 13.563 13.0169 13.7168 12.9562C13.8727 12.8954 13.9935 12.8106 14.0791 12.7023C14.1647 12.5939 14.208 12.469 14.208 12.3283C14.2079 12.1974 14.1686 12.0875 14.0908 11.9982C14.0148 11.9089 13.9022 11.8324 13.7539 11.7697C13.6076 11.707 13.4276 11.6501 13.2148 11.5988L12.5791 11.4387C12.0869 11.3189 11.6982 11.1318 11.4131 10.8771C11.128 10.6224 10.9855 10.2793 10.9873 9.84783C10.9854 9.49418 11.0804 9.18439 11.2705 8.9201C11.4625 8.65603 11.7261 8.45015 12.0605 8.30193C12.3951 8.15369 12.7754 8.07928 13.2012 8.07928Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.8125 14.0002H4.48926L4.05664 12.6681H1.94824L1.51465 14.0002H0.19043L2.20703 8.15935H3.79883L5.8125 14.0002ZM2.26172 11.7043H3.74316L3.02539 9.49334H2.98047L2.26172 11.7043Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M8.45215 8.15935C8.88165 8.15935 9.24031 8.22251 9.52734 8.34978C9.81445 8.47717 10.0303 8.65477 10.1748 8.88103C10.3192 9.10536 10.3916 9.36368 10.3916 9.65642C10.3916 9.88452 10.3461 10.085 10.2549 10.258C10.1637 10.4289 10.0384 10.5696 9.87891 10.6799C9.72117 10.7882 9.54024 10.8657 9.33691 10.9113V10.9679C9.55917 10.9775 9.76716 11.0406 9.96094 11.1564C10.1568 11.2724 10.3158 11.4356 10.4375 11.6447C10.5591 11.8519 10.6201 12.099 10.6201 12.3859C10.6201 12.6958 10.5427 12.9727 10.3887 13.216C10.2366 13.4573 10.0113 13.6486 9.71289 13.7892C9.41443 13.9299 9.04655 14.0002 8.60938 14.0002H6.11426V8.15935H8.45215ZM7.34863 12.9904H8.35547C8.69943 12.9904 8.95057 12.9252 9.1084 12.7941C9.26621 12.661 9.34473 12.4834 9.34473 12.2629C9.34468 12.1014 9.30643 11.9587 9.22852 11.8351C9.15056 11.7116 9.03903 11.6145 8.89453 11.5441C8.75195 11.4738 8.58148 11.4387 8.38379 11.4387H7.34863V12.9904ZM7.34863 10.6037H8.26465C8.43369 10.6036 8.58376 10.5737 8.71484 10.5148C8.84793 10.454 8.95227 10.3683 9.02832 10.258C9.10628 10.1477 9.14551 10.0155 9.14551 9.8615C9.14546 9.65055 9.07008 9.48001 8.91992 9.35076C8.77165 9.22169 8.56064 9.15741 8.28711 9.1574H7.34863V10.6037Z" fill="black"/><path d="M7.16602 0.377127C7.44584 0.189493 7.82551 0.20905 8.08496 0.442557L11.418 3.44256C11.7257 3.71966 11.7507 4.19428 11.4736 4.50213C11.1966 4.80961 10.7228 4.83441 10.415 4.55779L7.60938 2.03338L5.11328 4.53045C4.82042 4.82326 4.34562 4.82322 4.05273 4.53045C3.75986 4.23757 3.75989 3.7628 4.05273 3.4699L7.05273 0.4699L7.16602 0.377127Z" fill="black"/></svg>',adesc:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.3867 11.4697C10.6796 11.1771 11.1544 11.1769 11.4473 11.4697C11.7399 11.7626 11.7399 12.2374 11.4473 12.5303L8.44727 15.5303L8.33398 15.623C8.05425 15.8106 7.67449 15.7909 7.41504 15.5576L4.08203 12.5576C3.77415 12.2805 3.74927 11.8059 4.02637 11.498C4.30342 11.1907 4.77722 11.1657 5.08496 11.4424L7.89062 13.9668L10.3867 11.4697Z" fill="black"/><path d="M13.2012 3.0791C13.6346 3.07912 14.0128 3.1535 14.3359 3.30176C14.6611 3.45006 14.9141 3.65661 15.0947 3.9209C15.2752 4.18513 15.3683 4.49104 15.374 4.83887H14.1904C14.1676 4.60882 14.0695 4.43012 13.8965 4.30273C13.7235 4.17546 13.4889 4.11133 13.1924 4.11133C12.9909 4.11133 12.8204 4.14023 12.6816 4.19727C12.5431 4.25236 12.4364 4.32902 12.3623 4.42773C12.2901 4.52659 12.2539 4.63919 12.2539 4.76465C12.2501 4.86901 12.272 4.96023 12.3193 5.03809C12.3688 5.11604 12.4369 5.18417 12.5225 5.24121C12.6079 5.29623 12.7064 5.34496 12.8184 5.38672C12.9304 5.42661 13.0505 5.46075 13.1777 5.48926L13.7031 5.61426C13.9578 5.67128 14.1914 5.74776 14.4043 5.84277C14.6172 5.93784 14.8021 6.05457 14.958 6.19336C15.1139 6.33216 15.2348 6.49633 15.3203 6.68457C15.4076 6.8727 15.4522 7.08885 15.4541 7.33203C15.4521 7.68929 15.3612 7.99944 15.1807 8.26172C15.0019 8.52216 14.7427 8.72465 14.4043 8.86914C14.0678 9.01165 13.6617 9.08301 13.1865 9.08301C12.7153 9.08299 12.3048 9.01057 11.9551 8.86621C11.6072 8.72173 11.3345 8.50786 11.1387 8.22461C10.9447 7.9394 10.8435 7.58622 10.834 7.16602H12.0283C12.0416 7.36176 12.0985 7.52509 12.1973 7.65625C12.298 7.78554 12.4323 7.88365 12.5996 7.9502C12.7688 8.01477 12.96 8.04785 13.1729 8.04785C13.3817 8.04781 13.5629 8.01678 13.7168 7.95605C13.8727 7.89522 13.9935 7.81051 14.0791 7.70215C14.1646 7.59387 14.2079 7.46965 14.208 7.3291C14.208 7.19796 14.1687 7.08739 14.0908 6.99805C14.0148 6.90868 13.9022 6.83228 13.7539 6.76953C13.6076 6.70685 13.4276 6.64993 13.2148 6.59863L12.5791 6.43848C12.0868 6.31871 11.6982 6.13163 11.4131 5.87695C11.1279 5.62221 10.9855 5.27916 10.9873 4.84766C10.9854 4.49404 11.0804 4.18517 11.2705 3.9209C11.4625 3.65661 11.7259 3.45006 12.0605 3.30176C12.3951 3.15353 12.7754 3.0791 13.2012 3.0791Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.8125 9H4.48926L4.05664 7.66797H1.94824L1.51465 9H0.19043L2.20703 3.15918H3.79883L5.8125 9ZM2.26172 6.7041H3.74316L3.02539 4.49414H2.98047L2.26172 6.7041Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M8.45215 3.15918C8.88181 3.15918 9.24025 3.22322 9.52734 3.35059C9.81445 3.47798 10.0303 3.6546 10.1748 3.88086C10.3193 4.10518 10.3916 4.36351 10.3916 4.65625C10.3916 4.88432 10.3461 5.08484 10.2549 5.25781C10.1636 5.4289 10.0386 5.57039 9.87891 5.68066C9.72118 5.78898 9.54022 5.86549 9.33691 5.91113V5.96875C9.55913 5.9783 9.76719 6.04044 9.96094 6.15625C10.1568 6.27223 10.3158 6.43538 10.4375 6.64453C10.5591 6.85173 10.6201 7.09875 10.6201 7.38574C10.6201 7.69567 10.5427 7.97245 10.3887 8.21582C10.2366 8.45719 10.0113 8.64841 9.71289 8.78906C9.41442 8.9297 9.04658 8.99999 8.60938 9H6.11426V3.15918H8.45215ZM7.34863 7.99023H8.35547C8.69948 7.99023 8.95057 7.92504 9.1084 7.79395C9.26621 7.66085 9.34473 7.48325 9.34473 7.2627C9.34466 7.10125 9.3064 6.95844 9.22852 6.83496C9.15056 6.71143 9.03899 6.61427 8.89453 6.54395C8.75196 6.47365 8.58145 6.43848 8.38379 6.43848H7.34863V7.99023ZM7.34863 5.60352H8.26465C8.43369 5.60347 8.58376 5.57354 8.71484 5.51465C8.84791 5.45381 8.95228 5.36807 9.02832 5.25781C9.10623 5.14755 9.14551 5.01529 9.14551 4.86133C9.14542 4.65046 9.07002 4.48078 8.91992 4.35156C8.77163 4.22228 8.56087 4.15724 8.28711 4.15723H7.34863V5.60352Z" fill="black"/></svg>',"chevron-down":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 6L8 10L4 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-left":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 12L6 8L10 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-right":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 12L10 8L6 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-up":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 10L8 6L12 10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"column-arrow":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" viewBox="0 0 32 32"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 26C0 28.2092 1.79086 30 4 30H14C16.2091 30 18 28.2092 18 26V15H25.8786L24.4394 16.4393C23.8536 17.0251 23.8536 17.9749 24.4394 18.5607C25.0252 19.1464 25.9748 19.1464 26.5606 18.5607L30.5606 14.5607C31.1464 13.9749 31.1464 13.0251 30.5606 12.4393L26.5606 8.43934C25.9748 7.85356 25.0252 7.85356 24.4394 8.43934C23.8536 9.02512 23.8536 9.97488 24.4394 10.5607L25.8786 12H18V6C18 3.79086 16.2091 2 14 2H4C1.79086 2 0 3.79086 0 6V26ZM14 5H10.5V12H15V6C15 5.44772 14.5523 5 14 5ZM4 5H7.5V12H3V6C3 5.44772 3.44772 5 4 5ZM10.5 15H15V26C15 26.5522 14.5523 27 14 27H10.5V15ZM4 27H7.5V15H3V26C3 26.5522 3.44772 27 4 27Z" fill="currentColor"/></svg>',edit:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 10.6262V12.5012H5.375L10.905 6.97122L9.03 5.09622L3.5 10.6262ZM12.355 5.52122C12.4014 5.47497 12.4381 5.42002 12.4632 5.35953C12.4883 5.29905 12.5012 5.23421 12.5012 5.16872C12.5012 5.10324 12.4883 5.0384 12.4632 4.97791C12.4381 4.91742 12.4014 4.86248 12.355 4.81622L11.185 3.64622C11.1387 3.59987 11.0838 3.5631 11.0233 3.53801C10.9628 3.51291 10.898 3.5 10.8325 3.5C10.767 3.5 10.7022 3.51291 10.6417 3.53801C10.5812 3.5631 10.5263 3.59987 10.48 3.64622L9.565 4.56122L11.44 6.43622L12.355 5.52122Z" fill="currentColor"/></svg>',"filter-add":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.12126 7.75L10.8517 7.75" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M6.65934 11.748L9.32778 11.748" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M12.2943 1.04872V6.19184M14.9886 3.74341H9.68478" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M8.25488 3C8.04799 3.18323 7.91706 3.45099 7.91699 3.74902C7.91713 4.04868 8.04988 4.31681 8.25879 4.5H2C1.58579 4.5 1.25 4.16421 1.25 3.75C1.25 3.33579 1.58579 3 2 3H8.25488Z" fill="currentColor"/></svg>',"pinned-bottom":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="ag-icon" viewBox="0 0 16 16"><path fill="currentColor" d="M3.47 12.28A.75.75 0 0 1 4 11h8a.75.75 0 0 1 0 1.5H4a.75.75 0 0 1-.53-.22ZM12.731 5.256a.75.75 0 0 1-.2.524l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06l2.72 2.72V2a.75.75 0 0 1 1.5 0v5.44l2.72-2.72a.75.75 0 0 1 1.26.536Z"/></svg>',"pinned-top":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.53 3.72A.75.75 0 0 1 12 5H4a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 .53.22ZM3.269 10.744a.75.75 0 0 1 .2-.524l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 1 1-1.06 1.06L8.75 8.56V14a.75.75 0 0 1-1.5 0V8.56l-2.72 2.72a.75.75 0 0 1-1.26-.536Z"/></svg>',"small-down":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 10.667 16 21.334l8.667-10.667H7.334Z"/></svg>',"small-up":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 21.333 16 10.666l8.667 10.667H7.334Z"/></svg>',"un-pin":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="ag-icon" viewBox="0 0 16 16"><path fill="currentColor" d="M8 11a.75.75 0 0 0-.75.75v3.333a.75.75 0 1 0 1.5 0V11.75A.75.75 0 0 0 8 11Z"/><path fill="currentColor" d="M13.11 1.436a.75.75 0 0 0-1.22-.872l-10 14a.75.75 0 1 0 1.22.872L5.207 12.5h7.376a.75.75 0 0 0 .75-.75v-1.174a2.08 2.08 0 0 0-1.153-1.863l-1.185-.599-.005-.002a.58.58 0 0 1-.323-.522V5.165a2.083 2.083 0 0 0 1.854-2.904l.589-.825Zm-3.943 5.52v.634a2.08 2.08 0 0 0 1.153 1.863l1.185.6.005.002a.58.58 0 0 1 .323.522V11H6.28l2.887-4.044ZM9.277 1H5.25a2.084 2.084 0 0 0-.083 4.165v1.676l1.5-2.132v-.292a.75.75 0 0 0-.75-.75H5.25a.584.584 0 0 1 0-1.167h2.972L9.277 1Z"/></svg>'},oC=(e={})=>{let t="";for(const o of[...Object.keys(eC),...Object.keys(tC)]){const i=iC(o,e.strokeWidth);t+=`.ag-icon-${o}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(i)}'); }\n`}return t},iC=(e,t=1.5)=>{const o=tC[e];if(o)return o;const i=eC[e];if(!i)throw new Error(`Missing icon data for ${e}`);return`<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${t}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>`+i+"</svg>"},nC=(e={})=>sl({feature:"iconSet",css:()=>oC(e)}),sC=nC({strokeWidth:1}),rC=nC(),aC=nC({strokeWidth:2}),lC=':where(.ag-input-field-input[type=number]:not(.ag-number-field-input-stepper)){-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}}.ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color);outline:none}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&::-moz-placeholder{color:var(--ag-input-placeholder-text-color)}&::placeholder{color:var(--ag-input-placeholder-text-color)}}:where(.ag-ltr) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-left:var(--ag-input-padding-start)}:where(.ag-rtl) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-right:var(--ag-input-padding-start)}:where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter,.ag-filter-add-select,.ag-floating-filter-search-icon){.ag-input-wrapper:before{background-color:currentcolor;color:var(--ag-input-icon-color);content:"";display:block;height:12px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;opacity:.5;position:absolute;width:12px}}:where(.ag-ltr) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter,.ag-filter-add-select,.ag-floating-filter-search-icon){.ag-input-wrapper:before{margin-left:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-left:calc(var(--ag-spacing)*1.5 + 12px)}}:where(.ag-rtl) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter,.ag-filter-add-select,.ag-floating-filter-search-icon){.ag-input-wrapper:before{margin-right:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-right:calc(var(--ag-spacing)*1.5 + 12px)}}',dC=".ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){&:focus{box-shadow:var(--ag-focus-shadow);&:where(.invalid),&:where(:invalid){box-shadow:var(--ag-focus-error-shadow)}}}",cC=".ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){border-left:none;border-right:none;border-top:none}",uC={inputBackgroundColor:"transparent",inputBorder:!1,inputBorderRadius:0,inputTextColor:{ref:"textColor"},inputPlaceholderTextColor:{ref:"inputTextColor",mix:.5},inputPaddingStart:0,inputHeight:{calc:"max(iconSize, fontSize) + spacing * 2"},inputFocusBackgroundColor:{ref:"inputBackgroundColor"},inputFocusBorder:{ref:"inputBorder"},inputFocusShadow:"none",inputFocusTextColor:{ref:"inputTextColor"},inputDisabledBackgroundColor:{ref:"inputBackgroundColor"},inputDisabledBorder:{ref:"inputBorder"},inputDisabledTextColor:{ref:"inputTextColor"},inputInvalidBackgroundColor:{ref:"inputBackgroundColor"},inputInvalidBorder:{ref:"inputBorder"},inputInvalidTextColor:{ref:"inputTextColor"},inputIconColor:{ref:"inputTextColor"},pickerButtonBorder:!1,pickerButtonFocusBorder:{ref:"inputFocusBorder"},pickerButtonBackgroundColor:{ref:"backgroundColor"},pickerButtonFocusBackgroundColor:{ref:"backgroundColor"},pickerListBorder:!1,pickerListBackgroundColor:{ref:"backgroundColor"},colorPickerThumbSize:18,colorPickerTrackSize:12,colorPickerThumbBorderWidth:3,colorPickerTrackBorderRadius:12,colorPickerColorBorderRadius:4},hC=()=>sl({feature:"inputStyle",params:uC,css:lC}),gC=hC(),pC=()=>sl({feature:"inputStyle",params:{...uC,inputBackgroundColor:Cl,inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:bl},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:ml(.06),inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}},pickerButtonBorder:!0,pickerListBorder:!0},css:()=>lC+dC}),fC=pC(),mC=()=>sl({feature:"inputStyle",params:{...uC,inputBackgroundColor:"transparent",inputBorder:{width:2,color:fl(.3)},inputPaddingStart:{ref:"spacing"},inputFocusBorder:"solid 2px var(--ag-accent-color)",inputDisabledTextColor:{ref:"textColor",mix:.5},inputDisabledBorder:"solid 1px var(--ag-border-color)",inputInvalidBorder:{width:2,color:{ref:"invalidColor",mix:.3}}},css:()=>lC+cC}),vC=mC(),CC='.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;flex:1;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex}.ag-tabs-close-button-wrapper{align-items:center;border:0;display:flex;padding:var(--ag-spacing)}:where(.ag-ltr) .ag-tabs-close-button-wrapper{border-right:solid var(--ag-border-width) var(--ag-border-color)}:where(.ag-rtl) .ag-tabs-close-button-wrapper{border-left:solid var(--ag-border-width) var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative;&:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}&.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}&:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}&.ag-tab-selected:after{opacity:1}}:where(.ag-ltr) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-left-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-right-color:var(--ag-tab-selected-border-color)}}}:where(.ag-rtl) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-right-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-left-color:var(--ag-tab-selected-border-color)}}}',wC=".ag-tab{border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;border-top:var(--ag-tab-selected-border-width) solid transparent;flex:none;&.ag-tab-selected{border-left-color:var(--ag-tab-selected-border-color);border-right-color:var(--ag-tab-selected-border-color);border-top-color:var(--ag-tab-selected-border-color);margin-bottom:-1px;padding-bottom:calc(var(--ag-tab-bottom-padding) + 1px)}}",bC={tabBarBackgroundColor:"transparent",tabBarHorizontalPadding:0,tabBarTopPadding:0,tabBackgroundColor:"transparent",tabTextColor:{ref:"textColor"},tabHorizontalPadding:{ref:"spacing"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:"0",tabHoverBackgroundColor:{ref:"tabBackgroundColor"},tabHoverTextColor:{ref:"tabTextColor"},tabSelectedBackgroundColor:{ref:"tabBackgroundColor"},tabSelectedTextColor:{ref:"tabTextColor"},tabSelectedBorderWidth:{ref:"borderWidth"},tabSelectedBorderColor:"transparent",tabSelectedUnderlineColor:"transparent",tabSelectedUnderlineWidth:0,tabSelectedUnderlineTransitionDuration:0,tabBarBorder:!1},yC=()=>sl({feature:"tabStyle",params:bC,css:CC}),SC=yC(),RC=()=>sl({feature:"tabStyle",params:{...bC,tabBarBorder:!0,tabBarBackgroundColor:fl(.05),tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:Cl},css:CC}),xC=RC(),EC=()=>sl({feature:"tabStyle",params:{...bC,tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabSelectedUnderlineColor:{ref:"primaryColor"},tabSelectedUnderlineWidth:2,tabSelectedUnderlineTransitionDuration:0},css:CC}),FC=EC(),PC=()=>sl({feature:"tabStyle",params:{...bC,tabBarBorder:!0,tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabHoverTextColor:bl,tabSelectedTextColor:bl,tabSelectedUnderlineColor:bl,tabSelectedUnderlineWidth:2,tabSelectedUnderlineTransitionDuration:"0.3s"},css:CC}),DC=PC(),kC=()=>sl({feature:"tabStyle",params:{...bC,tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabBarHorizontalPadding:{ref:"spacing"},tabBarTopPadding:{ref:"spacing"},tabBarBorder:!0,tabHorizontalPadding:{calc:"spacing * 2"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:{ref:"spacing"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:Cl},css:()=>CC+wC}),MC=kC(),AC=".ag-dnd-ghost,.ag-filter-toolpanel-header,.ag-filter-toolpanel-search,.ag-multi-filter-group-title-bar,.ag-panel-title-bar-title,.ag-status-bar{color:var(--ag-header-text-color);font-size:calc(var(--ag-font-size) - 1px);font-weight:600}.ag-column-drop-horizontal{background-color:color-mix(in srgb,var(--ag-background-color),var(--ag-foreground-color) 8%)}.ag-cell.ag-cell-inline-editing{background-color:var(--ag-background-color);background-image:linear-gradient(0deg,var(--ag-input-background-color),var(--ag-input-background-color));border:var(--ag-input-border)!important;border-width:1px!important;height:calc(var(--ag-row-height) + var(--ag-spacing)*3);padding:var(--ag-spacing);:where(.ag-row-last:not(.ag-row-first)) &{bottom:0}:where(.ag-has-focus) &{border:var(--ag-input-focus-border)!important;border-width:1px!important}}.ag-advanced-filter-builder-button,.ag-standard-button{text-transform:uppercase}.ag-status-bar{border:solid var(--ag-border-width) var(--ag-border-color)}.ag-list-item-hovered:after{background-color:var(--ag-primary-color)}.ag-pill-button:hover{color:var(--ag-primary-color)}.ag-filter-add-button,.ag-filter-add-button:hover{border-bottom:2px solid var(--ag-primary-color)}",TC=()=>Fv().withPart(kv).withPart($v).withPart(rC).withPart(xC).withPart(fC).withPart(Sv).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]}),IC=TC(),LC=()=>Fv().withPart(mv).withPart(kv).withPart($v).withPart(Qv).withPart(DC).withPart(fC).withPart(Sv).withParams({accentColor:"#2196f3",selectedRowBackgroundColor:pl(.3),inputFocusBorder:{color:pl(.4)},focusShadow:{radius:2,spread:1.6,color:pl(.4)},iconButtonHoverBackgroundColor:"transparent",iconButtonActiveBackgroundColor:"transparent",checkboxUncheckedBorderColor:ml(.45),checkboxIndeterminateBackgroundColor:ml(.45),checkboxIndeterminateBorderColor:ml(.45),checkboxBorderWidth:2,checkboxBorderRadius:2,fontSize:13,dataFontSize:14,headerFontWeight:700,borderRadius:3,wrapperBorderRadius:3,tabSelectedUnderlineColor:bl,tabSelectedBorderWidth:0,tabSelectedUnderlineTransitionDuration:.3,sideButtonSelectedUnderlineColor:bl,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineTransitionDuration:.3,sideButtonBorder:!1,sideButtonSelectedBorder:!1,sideButtonBarTopPadding:{calc:"spacing * 3"},sideButtonSelectedBackgroundColor:"transparent",sideButtonHoverTextColor:bl,iconButtonHoverColor:bl,toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonSwitchInset:1,toggleButtonOffBackgroundColor:ml(.45),colorPickerThumbSize:13,colorPickerTrackSize:11,colorPickerThumbBorderWidth:2,colorPickerTrackBorderRadius:2,colorPickerColorBorderRadius:2}),BC=LC(),OC=()=>Fv().withPart(Cv).withPart(kv).withPart($v).withPart(jv).withPart(MC).withPart(fC).withPart(xv).withParams({accentColor:"#0091ea",borderColor:fl(.2),spacing:4,widgetVerticalSpacing:{calc:"max(8px, spacing)"},borderRadius:2,wrapperBorderRadius:2,headerColumnResizeHandleColor:"transparent",headerColumnBorder:!0,headerColumnBorderHeight:"50%",oddRowBackgroundColor:{ref:"chromeBackgroundColor",mix:.5},checkboxBorderRadius:2,checkboxBorderWidth:1,checkboxUncheckedBackgroundColor:Cl,checkboxUncheckedBorderColor:ml(.5),checkboxCheckedBackgroundColor:Cl,checkboxCheckedBorderColor:bl,checkboxCheckedShapeColor:bl,checkboxIndeterminateBackgroundColor:Cl,checkboxIndeterminateBorderColor:ml(.5),checkboxIndeterminateShapeColor:ml(.5),focusShadow:{radius:2,spread:1,color:bl},headerTextColor:fl(.6),iconButtonHoverBackgroundColor:"transparent",iconButtonActiveBackgroundColor:"transparent",fontSize:12,tabSelectedBackgroundColor:Cl,headerFontWeight:"bold",toggleButtonWidth:32,toggleButtonHeight:16,toggleButtonSwitchInset:1,toggleButtonOffBackgroundColor:ml(.5),sideButtonBorder:!0,sideButtonBarTopPadding:{calc:"spacing * 4"},popupShadow:"5px 5px 10px rgba(0, 0, 0, 0.3)",statusBarLabelColor:fl(.54),statusBarLabelFontWeight:600,statusBarValueFontWeight:600,panelTitleBarIconColor:wl,colorPickerThumbSize:13,colorPickerTrackSize:11,colorPickerThumbBorderWidth:2,colorPickerTrackBorderRadius:2,colorPickerColorBorderRadius:2}),HC=OC(),VC=()=>{const e={tabSelectedUnderlineColor:{ref:"primaryColor"},sideButtonSelectedUnderlineColor:{ref:"primaryColor"},buttonTextColor:{ref:"primaryColor"},rangeSelectionBackgroundColor:{ref:"primaryColor",mix:.2},rangeSelectionBorderColor:{ref:"primaryColor"},rangeSelectionHighlightColor:{ref:"primaryColor",mix:.5},rangeHeaderHighlightColor:{ref:"foregroundColor",mix:.08},rowNumbersSelectedColor:{ref:"primaryColor",mix:.5},inputFocusBorder:{width:2,color:{ref:"primaryColor"}},pickerButtonFocusBorder:{width:1,color:{ref:"primaryColor"}},cellEditingBorder:{color:{ref:"primaryColor"}},menuBackgroundColor:{ref:"backgroundColor"},sideButtonBarBackgroundColor:Cl,sideButtonSelectedBackgroundColor:"transparent",sideButtonBarTopPadding:{calc:"spacing * 4"},headerColumnResizeHandleColor:"none",headerBackgroundColor:{ref:"backgroundColor"},rowHoverColor:fl(.08),columnHoverColor:fl(.08),headerCellHoverBackgroundColor:fl(.05),statusBarLabelColor:fl(.63),statusBarLabelFontWeight:600,statusBarValueFontWeight:600,valueChangeValueHighlightBackgroundColor:"#00acc1",panelTitleBarIconColor:wl,advancedFilterBuilderButtonBarBorder:!1,filterPanelApplyButtonColor:{ref:"buttonTextColor"},filterPanelApplyButtonBackgroundColor:{ref:"buttonBackgroundColor"},colorPickerThumbSize:13,colorPickerTrackSize:11,colorPickerThumbBorderWidth:2,colorPickerTrackBorderRadius:2,colorPickerColorBorderRadius:2,rowDragIndicatorColor:{ref:"primaryColor"},columnDragIndicatorColor:{ref:"primaryColor"}},t={...e,primaryColor:"#3f51b5",foregroundColor:"#000D",headerTextColor:"#0008",accentColor:"#ff4081",checkboxUncheckedBorderColor:wl,checkboxIndeterminateBackgroundColor:wl,toggleButtonOffBackgroundColor:wl,selectedRowBackgroundColor:"rgba(33, 150, 243, 0.3)"},o={...e,primaryColor:"#3f51b5",foregroundColor:"#fffD",headerTextColor:"#fff8",accentColor:"#bb86fc",checkboxUncheckedBorderColor:ml(.5),checkboxIndeterminateBackgroundColor:ml(.5),toggleButtonOffBackgroundColor:ml(.5),selectedRowBackgroundColor:"#bb86fc33"};return sl({feature:"styleMaterial",css:AC,params:t,modeParams:{light:t,dark:o,"dark-blue":o}})},GC=VC(),NC=()=>Fv().withPart(hv).withPart(kv).withPart($v).withPart(Yv).withPart(FC).withPart(vC).withPart(xv).withPart(GC).withParams({rowHeight:{calc:"max(iconSize, dataFontSize) + spacing * 3.75 * rowVerticalPaddingScale"},headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4.75 * headerVerticalPaddingScale"},widgetVerticalSpacing:{calc:"spacing * 1.75"},cellHorizontalPadding:{calc:"spacing * 3"},buttonHorizontalPadding:{ref:"spacing"},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 2"},fontSize:13,iconSize:18,borderRadius:0,wrapperBorderRadius:0,wrapperBorder:!1,menuBorder:!1,dialogBorder:!1,panelTitleBarBorder:!1,tabSelectedBorderWidth:0,tabSelectedUnderlineTransitionDuration:.3,sidePanelBorder:!1,sideButtonSelectedBorder:!1,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineTransitionDuration:.3,sideButtonBorder:!1,buttonBorder:!1,buttonDisabledBorder:!1,focusShadow:{spread:4,color:fl(.16)},fontFamily:[{googleFont:"Roboto"},"-apple-system","BlinkMacSystemFont","Segoe UI","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],inputHeight:{calc:"max(iconSize, fontSize) + spacing * 3"},pickerButtonBorder:{width:1,color:"transparent"},headerFontWeight:600,headerFontSize:{calc:"fontSize - 1px"},checkboxBorderWidth:2,checkboxBorderRadius:2,toggleButtonWidth:34,toggleButtonSwitchInset:1,cardShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",popupShadow:"5px 5px 10px rgba(0, 0, 0, 0.3)"}),zC=NC(),WC={cssName:"--ag-cell-horizontal-padding",changeKey:"cellHorizontalPaddingChanged",defaultValue:16},_C={cssName:"--ag-indentation-level",changeKey:"indentationLevelChanged",defaultValue:0,noWarn:!0,cacheDefault:!0},UC={cssName:"--ag-row-group-indent-size",changeKey:"rowGroupIndentSizeChanged",defaultValue:0},$C={cssName:"--ag-row-height",changeKey:"rowHeightChanged",defaultValue:42},qC={cssName:"--ag-header-height",changeKey:"headerHeightChanged",defaultValue:48},jC={cssName:"--ag-row-border",changeKey:"rowBorderWidthChanged",defaultValue:1,border:!0},KC={cssName:"--ag-pinned-row-border",changeKey:"pinnedRowBorderWidthChanged",defaultValue:1,border:!0};function QC(e,t){for(const o of t.sort((e,t)=>e.moduleName.localeCompare(t.moduleName))){const t=o.css;t&&e.set(`module-${o.moduleName}`,t)}}var XC=class extends Jl{initVariables(){this.addManagedPropertyListener("rowHeight",()=>this.refreshRowHeightVariable()),this.getSizeEl($C),this.getSizeEl(qC),this.getSizeEl(jC),this.getSizeEl(KC),this.refreshRowBorderWidthVariable()}getPinnedRowBorderWidth(){return this.getCSSVariablePixelValue(KC)}getRowBorderWidth(){return this.getCSSVariablePixelValue(jC)}getDefaultRowHeight(){return this.getCSSVariablePixelValue($C)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(qC)}getDefaultCellHorizontalPadding(){return this.getCSSVariablePixelValue(WC)}getCellPaddingLeft(){const e=this.getDefaultCellHorizontalPadding(),t=this.getCSSVariablePixelValue(_C),o=this.getCSSVariablePixelValue(UC);return e-1+o*t}getCellPadding(){const e=this.getDefaultCellHorizontalPadding()-1;return this.getCellPaddingLeft()+e}getDefaultColumnMinWidth(){return Math.min(36,this.getDefaultRowHeight())}refreshRowHeightVariable(){const{eRootDiv:e}=this,t=e.style.getPropertyValue("--ag-line-height").trim(),o=this.gos.get("rowHeight");if(null==o||isNaN(o)||!isFinite(o))return null!==t&&e.style.setProperty("--ag-line-height",null),-1;const i=`${o}px`;return t!=i?(e.style.setProperty("--ag-line-height",i),o):""!=t?Number.parseFloat(t):-1}fireStylesChangedEvent(e){"rowBorderWidthChanged"===e&&this.refreshRowBorderWidthVariable(),super.fireStylesChangedEvent(e)}refreshRowBorderWidthVariable(){const e=this.getCSSVariablePixelValue(jC);this.eRootDiv.style.setProperty("--ag-internal-row-border-width",`${e}px`)}postProcessThemeChange(e,t){e&&getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded")&&Eo(t?106:239)}getAdditionalCss(){const e=new Map;return e.set("core",[ov]),QC(e,Array.from(eo())),e}getDefaultTheme(){return IC}varError(e){xo(9,{variable:e})}themeError(e){Eo(240,{theme:e})}shadowRootError(){Eo(293)}},YC=class extends id{postConstruct(){const{globalListener:e,globalSyncListener:t}=this.beans;e&&this.addGlobalListener(e,!0),t&&this.addGlobalListener(t,!1)}};function ZC(e,t,o){const i=e.visibleCols.headerGroupRowCount;if(o>=i)return{column:t,headerRowIndex:o};let n=t.getParent();while(n&&n.getProvidedColumnGroup().getLevel()>o)n=n.getParent();const s=t.isSpanHeaderHeight();return!n||s&&n.isPadding()?{column:t,headerRowIndex:i}:{column:n,headerRowIndex:n.getProvidedColumnGroup().getLevel()}}var JC=class extends Ct{constructor(){super(...arguments),this.beanName="headerNavigation",this.currentHeaderRowWithoutSpan=-1}postConstruct(){const e=this.beans;e.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl});const t=v(e);this.addManagedElementListeners(t,{mousedown:()=>{this.currentHeaderRowWithoutSpan=-1}})}getHeaderPositionForColumn(e,t){let o;const{colModel:i,colGroupSvc:n,ctrlsSvc:s}=this.beans;if("string"===typeof e?(o=i.getCol(e),o||(o=n?.getColumnGroup(e)??null)):o=e,!o)return null;const r=s.getHeaderRowContainerCtrl(),a=r?.getAllCtrls(),l="filter"===tn(a||[]).type,d=ch(this.beans)-1;let c=-1,u=o;while(u)c++,u=u.getParent();let h=c;return t&&l&&h===d-1&&h++,-1===h?null:{headerRowIndex:h,column:o}}navigateVertically(e,t){const{focusSvc:o,visibleCols:i}=this.beans,{focusedHeader:n}=o;if(!n)return!1;const{headerRowIndex:s}=n,r=n.column,a=ch(this.beans),l=this.getHeaderRowType(s),d=i.headerGroupRowCount;let{headerRowIndex:c,column:u,headerRowIndexWithoutSpan:h}="UP"===e?ew(l,r,s):tw(r,s,d),g=!1;return c<0&&(c=0,u=r,g=!0),c>=a?(c=-1,this.currentHeaderRowWithoutSpan=-1):void 0!==h&&(this.currentHeaderRowWithoutSpan=h),!(!g&&!u)&&o.focusHeaderPosition({headerPosition:{headerRowIndex:c,column:u},allowUserOverride:!0,event:t})}navigateHorizontally(e,t=!1,o){const{focusSvc:i,gos:n}=this.beans,s={...i.focusedHeader};let r,a;-1!==this.currentHeaderRowWithoutSpan?s.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=s.headerRowIndex,"LEFT"===e!==n.get("enableRtl")?(a="Before",r=this.findHeader(s,a)):(a="After",r=this.findHeader(s,a));const l=n.getCallback("tabToNextHeader");if(t&&l){const e=i.focusHeaderPositionFromUserFunc({userFunc:l,headerPosition:r,direction:a});if(e){const{headerRowIndex:e}=i.focusedHeader||{};null!=e&&e!=s.headerRowIndex&&(this.currentHeaderRowWithoutSpan=e)}return e}return r||!t?i.focusHeaderPosition({headerPosition:r,direction:a,fromTab:t,allowUserOverride:!0,event:o}):this.focusNextHeaderRow(s,a,o)}focusNextHeaderRow(e,t,o){const i=this.beans,n=e.headerRowIndex;let s,r=null;const a=ch(i),l=this.beans.visibleCols.allCols;if("Before"===t){if(n<=0)return!1;r=tn(l),s=n-1,this.currentHeaderRowWithoutSpan-=1}else r=l[0],s=n+1,this.currentHeaderRowWithoutSpan<a?this.currentHeaderRowWithoutSpan+=1:this.currentHeaderRowWithoutSpan=-1;let{column:d,headerRowIndex:c}=ZC(this.beans,r,s);return c>=a&&(c=-1),i.focusSvc.focusHeaderPosition({headerPosition:{column:d,headerRowIndex:c},direction:t,fromTab:!0,allowUserOverride:!0,event:o})}scrollToColumn(e,t="After"){if(e.getPinned())return;let o;if(Id(e)){const i=e.getDisplayedLeafColumns();o="Before"===t?tn(i):i[0]}else o=e;this.gridBodyCon.scrollFeature.ensureColumnVisible(o)}findHeader(e,t){const{colGroupSvc:o,visibleCols:i}=this.beans;let n=e.column;if(n instanceof Ld){const e=n.getDisplayedLeafColumns();n="Before"===t?e[0]:e[e.length-1]}const s="Before"===t?i.getColBefore(n):i.getColAfter(n);if(!s)return;const r=i.headerGroupRowCount;if(e.headerRowIndex>=r)return{headerRowIndex:e.headerRowIndex,column:s};const a=o?.getColGroupAtLevel(s,e.headerRowIndex);if(!a){const t=s instanceof zi&&s.isSpanHeaderHeight();return{headerRowIndex:t?i.headerGroupRowCount:e.headerRowIndex,column:s}}return a.isPadding()&&s.isSpanHeaderHeight()?{headerRowIndex:i.headerGroupRowCount,column:s}:{headerRowIndex:e.headerRowIndex,column:a??s}}getHeaderRowType(e){const t=this.beans.ctrlsSvc.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)}};function ew(e,t,o){const i=o-1;if("filter"!==e){const e=t instanceof zi&&t.isSpanHeaderHeight();let o=t.getParent();while(o&&(o.getProvidedColumnGroup().getLevel()>i||e&&o.isPadding()))o=o.getParent();if(o)return e?{column:o,headerRowIndex:o.getProvidedColumnGroup().getLevel(),headerRowIndexWithoutSpan:i}:{column:o,headerRowIndex:i,headerRowIndexWithoutSpan:i}}return{column:t,headerRowIndex:i,headerRowIndexWithoutSpan:i}}function tw(e,t,o){const i=t+1,n={column:e,headerRowIndex:i,headerRowIndexWithoutSpan:i};if(e instanceof Ld){if(i>=o)return{column:e.getDisplayedLeafColumns()[0],headerRowIndex:o,headerRowIndexWithoutSpan:i};const t=e.getDisplayedChildren();let s=t[0];if(s instanceof Ld&&s.isPadding()){const e=s.getDisplayedLeafColumns()[0];e.isSpanHeaderHeight()&&(s=e)}n.column=s;const r=s instanceof zi&&s.isSpanHeaderHeight();r&&(n.headerRowIndex=o,n.headerRowIndexWithoutSpan=i)}return n}var ow=class extends Ct{constructor(){super(...arguments),this.beanName="focusSvc",this.focusFallbackTimeout=null,this.needsFocusRestored=!1}wireBeans(e){this.colModel=e.colModel,this.visibleCols=e.visibleCols,this.rowRenderer=e.rowRenderer,this.navigation=e.navigation,this.filterManager=e.filterManager,this.overlays=e.overlays}postConstruct(){const e=this.clearFocusedCell.bind(this);this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:this.onColumnEverythingChanged.bind(this),columnGroupOpened:e,columnRowGroupChanged:e}),this.addDestroyFunc(Vr(this.beans))}attemptToRecoverFocus(){this.needsFocusRestored=!0,null!=this.focusFallbackTimeout&&clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=window.setTimeout(this.setFocusRecovered.bind(this),100)}setFocusRecovered(){this.needsFocusRestored=!1,null!=this.focusFallbackTimeout&&(clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=null)}shouldTakeFocus(){return this.gos.get("suppressFocusAfterRefresh")?(this.setFocusRecovered(),!1):this.needsFocusRestored?(this.setFocusRecovered(),!0):this.doesRowOrCellHaveBrowserFocus()}onColumnEverythingChanged(){if(!this.focusedCell)return;const e=this.focusedCell.column,t=this.colModel.getCol(e.getId());e!==t&&this.clearFocusedCell()}getFocusCellToUseAfterRefresh(){const{gos:e,focusedCell:t}=this;return e.get("suppressFocusAfterRefresh")||e.get("suppressCellFocus")||!t?null:this.doesRowOrCellHaveBrowserFocus()?t:null}getFocusHeaderToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedHeader?null:this.isDomDataPresentInHierarchy(m(this.beans),Ah)?this.focusedHeader:null}doesRowOrCellHaveBrowserFocus(){const e=m(this.beans);return!!this.isDomDataPresentInHierarchy(e,Uc)||this.isDomDataPresentInHierarchy(e,qc)}isDomDataPresentInHierarchy(e,t){let o=e;while(o){const e=_o(this.gos,o,t);if(e)return!0;o=o.parentNode}return!1}getFocusedCell(){return this.focusedCell}getFocusEventParams(e){const{rowIndex:t,rowPinned:o,column:i}=e,n={rowIndex:t,rowPinned:o,column:i,isFullWidthCell:!1},s=this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:o});return s&&(n.isFullWidthCell=s.isFullWidth()),n}clearFocusedCell(){if(null==this.focusedCell)return;const e=this.getFocusEventParams(this.focusedCell);this.focusedCell=null,this.eventSvc.dispatchEvent({type:"cellFocusCleared",...e})}setFocusedCell(e){this.setFocusRecovered();const{column:t,rowIndex:o,rowPinned:i,forceBrowserFocus:s=!1,preventScrollOnBrowserFocus:r=!1,sourceEvent:a}=e,l=this.colModel.getCol(t);if(!l)return void(this.focusedCell=null);this.focusedCell={rowIndex:o,rowPinned:n(i),column:l};const d=this.getFocusEventParams(this.focusedCell);this.eventSvc.dispatchEvent({type:"cellFocused",...d,...this.previousCellFocusParams&&{previousParams:this.previousCellFocusParams},forceBrowserFocus:s,preventScrollOnBrowserFocus:r,sourceEvent:a}),this.previousCellFocusParams=d}isCellFocused(e){return null!=this.focusedCell&&Uu(e,this.focusedCell)}isHeaderWrapperFocused(e){if(null==this.focusedHeader)return!1;const{column:t,rowCtrl:{rowIndex:o,pinned:i}}=e,{column:n,headerRowIndex:s}=this.focusedHeader;return t===n&&o===s&&i==n.getPinned()}focusHeaderPosition(e){if(this.setFocusRecovered(),sh(this.beans))return!1;const{direction:t,fromTab:o,allowUserOverride:i,event:n,fromCell:s,rowWithoutSpanValue:r,scroll:a=!0}=e;let{headerPosition:l}=e;if(s&&this.filterManager?.isAdvFilterHeaderActive())return this.focusAdvancedFilter(l);if(i){const e=this.focusedHeader,i=ch(this.beans);if(o){const o=this.gos.getCallback("tabToNextHeader");o&&(l=this.getHeaderPositionFromUserFunc({userFunc:o,direction:t,currentPosition:e,headerPosition:l,headerRowCount:i}))}else{const t=this.gos.getCallback("navigateToNextHeader");if(t&&n){const o={key:n.key,previousHeaderPosition:e,nextHeaderPosition:l,headerRowCount:i,event:n};l=t(o)}}}return!!l&&this.focusProvidedHeaderPosition({headerPosition:l,direction:t,event:n,fromCell:s,rowWithoutSpanValue:r,scroll:a})}focusHeaderPositionFromUserFunc(e){if(sh(this.beans))return!1;const{userFunc:t,headerPosition:o,direction:i,event:n}=e,s=this.focusedHeader,r=ch(this.beans),a=this.getHeaderPositionFromUserFunc({userFunc:t,direction:i,currentPosition:s,headerPosition:o,headerRowCount:r});return!!a&&this.focusProvidedHeaderPosition({headerPosition:a,direction:i,event:n})}getHeaderPositionFromUserFunc(e){const{userFunc:t,direction:o,currentPosition:i,headerPosition:n,headerRowCount:s}=e,r={backwards:"Before"===o,previousHeaderPosition:i,nextHeaderPosition:n,headerRowCount:s},a=t(r);return!0===a?i:!1===a?null:a}focusProvidedHeaderPosition(e){const{headerPosition:t,direction:o,fromCell:i,rowWithoutSpanValue:n,event:s,scroll:r=!0}=e,{column:a,headerRowIndex:l}=t,{filterManager:d,ctrlsSvc:c,headerNavigation:u}=this.beans;if(this.focusedHeader&&wh(e.headerPosition,this.focusedHeader))return!1;if(-1===l)return d?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(t):this.focusGridView({column:a,event:s});r&&u?.scrollToColumn(a,o);const h=c.getHeaderRowContainerCtrl(a.getPinned()),g=h?.focusHeader(t.headerRowIndex,a,s)||!1;return u&&g&&(null!=n||i)&&(u.currentHeaderRowWithoutSpan=n??-1),g}focusFirstHeader(){if(this.overlays?.exclusive&&this.focusOverlay())return!0;const e=this.visibleCols.allCols[0];if(!e)return!1;const t=ZC(this.beans,e,0);return this.focusHeaderPosition({headerPosition:t,rowWithoutSpanValue:0})}focusLastHeader(e){if(this.overlays?.exclusive&&this.focusOverlay(!0))return!0;const t=ch(this.beans)-1,o=tn(this.visibleCols.allCols);return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:o},rowWithoutSpanValue:-1,event:e})}focusPreviousFromFirstCell(e){return this.filterManager?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(e)}isAnyCellFocused(){return!!this.focusedCell}isRowFocused(e,t){return null!=this.focusedCell&&(this.focusedCell.rowIndex===e&&this.focusedCell.rowPinned===n(t))}focusOverlay(e){const t=this.overlays?.isVisible()&&this.overlays.eWrapper?.getGui();return!!t&&zr(t,e)}focusGridView(e){const{backwards:t=!1,canFocusOverlay:o=!0,event:i}=e;if(this.overlays?.exclusive)return o&&this.focusOverlay(t);if(rh(this.beans))return t&&!sh(this.beans)?this.focusLastHeader():!(!o||!this.focusOverlay(t))||!t&&ah(this.beans,t);const s=t?Ku(this.beans):ju(this.beans);if(s){const o=e.column??this.focusedHeader?.column,{rowIndex:r,rowPinned:a}=s,l=Qu(this.beans,s);if(!o||!l||null==r)return!1;if(o.isSuppressNavigable(l)){const e=this.gos.get("enableRtl");let t;return t=i&&i.key!==lr.TAB?i.key:e?lr.LEFT:lr.RIGHT,this.beans.navigation?.navigateToNextCell(null,t,{rowIndex:r,column:o,rowPinned:a||null},!0),!0}if(this.navigation?.ensureCellVisible({rowIndex:r,column:o,rowPinned:a}),t){const e=this.rowRenderer.getRowByPosition(s);if(e?.isFullWidth()&&this.navigation?.tryToFocusFullWidthRow(s,t))return!0}return this.setFocusedCell({rowIndex:r,column:o,rowPinned:n(a),forceBrowserFocus:!0}),this.beans.rangeSvc?.setRangeToCell({rowIndex:r,rowPinned:a,column:o}),!0}return!(!o||!this.focusOverlay(t))||!(!t||!this.focusLastHeader())}focusAdvancedFilter(e){return this.advFilterFocusColumn=e?.column,this.beans.advancedFilter?.getCtrl().focusHeaderComp()??!1}focusNextFromAdvancedFilter(e,t){const o=(t?void 0:this.advFilterFocusColumn)??this.visibleCols.allCols?.[0];return e?this.focusHeaderPosition({headerPosition:{column:o,headerRowIndex:ch(this.beans)-1}}):this.focusGridView({column:o})}clearAdvancedFilterColumn(){this.advFilterFocusColumn=void 0}},iw=class extends Ct{constructor(){super(...arguments),this.beanName="scrollVisibleSvc"}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colAnimation=e.colAnimation}postConstruct(){this.horizontalScrollShowing=!0===this.gos.get("alwaysShowHorizontalScroll"),this.verticalScrollShowing=!0===this.gos.get("alwaysShowVerticalScroll"),this.getScrollbarWidth(),this.addManagedEventListeners({displayedColumnsChanged:this.updateScrollVisible.bind(this),displayedColumnsWidthChanged:this.updateScrollVisible.bind(this)})}updateScrollVisible(){const{colAnimation:e}=this;e?.isActive()?e.executeLaterVMTurn(()=>{e.executeLaterVMTurn(()=>this.updateScrollVisibleImpl())}):this.updateScrollVisibleImpl()}updateScrollVisibleImpl(){const e=this.ctrlsSvc.get("center");if(!e||this.colAnimation?.isActive())return;const t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.verticalScrollShowing};this.setScrollsVisible(t),this.updateScrollGap()}updateScrollGap(){const e=this.ctrlsSvc.get("center"),t=e.hasHorizontalScrollGap(),o=e.hasVerticalScrollGap(),i=this.horizontalScrollGap!==t||this.verticalScrollGap!==o;i&&(this.horizontalScrollGap=t,this.verticalScrollGap=o,this.eventSvc.dispatchEvent({type:"scrollGapChanged"}))}setScrollsVisible(e){const t=this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing;t&&(this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing,this.eventSvc.dispatchEvent({type:"scrollVisibilityChanged"}))}getScrollbarWidth(){if(null==this.scrollbarWidth){const e=this.gos.get("scrollbarWidth"),t="number"===typeof e&&e>=0,o=t?e:Mr();null!=o&&(this.scrollbarWidth=o,this.eventSvc.dispatchEvent({type:"scrollbarWidthChanged"}))}return this.scrollbarWidth}},nw=class extends Ct{constructor(){super(...arguments),this.beanName="gridDestroySvc",this.destroyCalled=!1}destroy(){if(this.destroyCalled)return;const{stateSvc:e,ctrlsSvc:t,context:o}=this.beans;this.eventSvc.dispatchEvent({type:"gridPreDestroyed",state:e?.getState()??{}}),this.destroyCalled=!0,t.get("gridCtrl")?.destroyGridUi(),o.destroy(),super.destroy()}},sw=new Set(["gridPreDestroyed","fillStart","pasteStart"]),rw=["columnEverythingChanged","newColumnsLoaded","columnPivotModeChanged","pivotMaxColumnsExceeded","columnRowGroupChanged","expandOrCollapseAll","columnPivotChanged","gridColumnsChanged","columnValueChanged","columnMoved","columnVisible","columnPinned","columnGroupOpened","columnResized","displayedColumnsChanged","virtualColumnsChanged","columnHeaderMouseOver","columnHeaderMouseLeave","columnHeaderClicked","columnHeaderContextMenu","asyncTransactionsFlushed","rowGroupOpened","rowDataUpdated","pinnedRowDataChanged","pinnedRowsChanged","rangeSelectionChanged","cellSelectionChanged","chartCreated","chartRangeSelectionChanged","chartOptionsChanged","chartDestroyed","toolPanelVisibleChanged","toolPanelSizeChanged","modelUpdated","cutStart","cutEnd","pasteStart","pasteEnd","fillStart","fillEnd","cellSelectionDeleteStart","cellSelectionDeleteEnd","rangeDeleteStart","rangeDeleteEnd","undoStarted","undoEnded","redoStarted","redoEnded","cellClicked","cellDoubleClicked","cellMouseDown","cellContextMenu","cellValueChanged","cellEditRequest","rowValueChanged","headerFocused","cellFocused","rowSelected","selectionChanged","tooltipShow","tooltipHide","cellKeyDown","cellMouseOver","cellMouseOut","filterChanged","filterModified","filterUiChanged","filterOpened","floatingFilterUiChanged","advancedFilterBuilderVisibleChanged","sortChanged","virtualRowRemoved","rowClicked","rowDoubleClicked","gridReady","gridPreDestroyed","gridSizeChanged","viewportChanged","firstDataRendered","dragStarted","dragStopped","dragCancelled","rowEditingStarted","rowEditingStopped","cellEditingStarted","cellEditingStopped","bodyScroll","bodyScrollEnd","paginationChanged","componentStateChanged","storeRefreshed","stateUpdated","columnMenuVisibleChanged","contextMenuVisibleChanged","rowDragEnter","rowDragMove","rowDragLeave","rowDragEnd","rowDragCancel","findChanged","rowResizeStarted","rowResizeEnded","columnsReset","bulkEditingStarted","bulkEditingStopped","batchEditingStarted","batchEditingStopped"],aw=["scrollbarWidthChanged","keyShortcutChangedCellStart","keyShortcutChangedCellEnd","pinnedHeightChanged","cellFocusCleared","fullWidthRowFocused","checkboxChanged","heightScaleChanged","suppressMovableColumns","suppressMenuHide","suppressFieldDotNotation","columnPanelItemDragStart","columnPanelItemDragEnd","bodyHeightChanged","columnContainerWidthChanged","displayedColumnsWidthChanged","scrollVisibilityChanged","scrollGapChanged","columnHoverChanged","flashCells","rowDragVisibilityChanged","paginationPixelOffsetChanged","displayedRowsChanged","leftPinnedWidthChanged","rightPinnedWidthChanged","rowContainerHeightChanged","headerHeightChanged","columnGroupHeaderHeightChanged","columnHeaderHeightChanged","stylesChanged","storeUpdated","filterDestroyed","filterHandlerDestroyed","rowDataUpdateStarted","rowCountReady","advancedFilterEnabledChanged","dataTypesInferred","fieldValueChanged","fieldPickerValueSelected","richSelectListRowSelected","sideBarUpdated","alignedGridScroll","alignedGridColumn","gridOptionsChanged","chartTitleEdit","recalculateRowBounds","stickyTopOffsetChanged","overlayExclusiveChanged","rowNodeDataChanged","cellEditValuesChanged","filterSwitched","filterClosed","headerRowsChanged","rowExpansionStateChanged","showRowGroupColsSetChanged"],lw=()=>[...rw,...aw],dw=rw.reduce((e,t)=>(e[t]=ki(t),e),{}),cw={agSetColumnFilter:"SetFilter",agSetColumnFloatingFilter:"SetFilter",agMultiColumnFilter:"MultiFilter",agMultiColumnFloatingFilter:"MultiFilter",agGroupColumnFilter:"GroupFilter",agGroupColumnFloatingFilter:"GroupFilter",agGroupCellRenderer:"GroupCellRenderer",agGroupRowRenderer:"GroupCellRenderer",agRichSelect:"RichSelect",agRichSelectCellEditor:"RichSelect",agDetailCellRenderer:"SharedMasterDetail",agSparklineCellRenderer:"Sparklines",agDragAndDropImage:"SharedDragAndDrop",agColumnHeader:"ColumnHeaderComp",agColumnGroupHeader:"ColumnGroupHeaderComp",agSortIndicator:"Sort",agAnimateShowChangeCellRenderer:"HighlightChanges",agAnimateSlideCellRenderer:"HighlightChanges",agLoadingCellRenderer:"LoadingCellRenderer",agSkeletonCellRenderer:"SkeletonCellRenderer",agCheckboxCellRenderer:"CheckboxCellRenderer",agLoadingOverlay:"Overlay",agExportingOverlay:"Overlay",agNoRowsOverlay:"Overlay",agNoMatchingRowsOverlay:"Overlay",agTooltipComponent:"Tooltip",agReadOnlyFloatingFilter:"CustomFilter",agTextColumnFilter:"TextFilter",agNumberColumnFilter:"NumberFilter",agDateColumnFilter:"DateFilter",agDateInput:"DateFilter",agTextColumnFloatingFilter:"TextFilter",agNumberColumnFloatingFilter:"NumberFilter",agDateColumnFloatingFilter:"DateFilter",agCellEditor:"TextEditor",agSelectCellEditor:"SelectEditor",agTextCellEditor:"TextEditor",agNumberCellEditor:"NumberEditor",agDateCellEditor:"DateEditor",agDateStringCellEditor:"DateEditor",agCheckboxCellEditor:"CheckboxEditor",agLargeTextCellEditor:"LargeTextEditor",agMenuItem:"MenuItem",agColumnsToolPanel:"ColumnsToolPanel",agFiltersToolPanel:"FiltersToolPanel",agNewFiltersToolPanel:"NewFiltersToolPanel",agAggregationComponent:"StatusBar",agSelectedRowCountComponent:"StatusBar",agTotalRowCountComponent:"StatusBar",agFilteredRowCountComponent:"StatusBar",agTotalAndFilteredRowCountComponent:"StatusBar",agFindCellRenderer:"Find"};function uw(e){return`"${e}"`}var hw=()=>({checkboxSelection:{version:"32.2",message:"Use `rowSelection.checkboxes` in `GridOptions` instead."},headerCheckboxSelection:{version:"32.2",message:"Use `rowSelection.headerCheckbox = true` in `GridOptions` instead."},headerCheckboxSelectionFilteredOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "filtered"` in `GridOptions` instead.'},headerCheckboxSelectionCurrentPageOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "currentPage"` in `GridOptions` instead.'},showDisabledCheckboxes:{version:"32.2",message:"Use `rowSelection.hideDisabledCheckboxes = true` in `GridOptions` instead."},rowGroupingHierarchy:{version:"34.3",message:"Use `colDef.groupHierarchy` instead."}}),gw={allowFormula:"Formula",aggFunc:"SharedAggregation",autoHeight:"RowAutoHeight",cellClass:"CellStyle",cellClassRules:"CellStyle",cellEditor:({cellEditor:e,editable:t})=>t?"string"===typeof e?cw[e]??"CustomEditor":"CustomEditor":null,cellRenderer:({cellRenderer:e})=>"string"!==typeof e?null:cw[e],cellStyle:"CellStyle",columnChooserParams:"ColumnMenu",contextMenuItems:"ContextMenu",dndSource:"DragAndDrop",dndSourceOnRowDrag:"DragAndDrop",editable:({editable:e,cellEditor:t})=>e&&!t?"TextEditor":null,enableCellChangeFlash:"HighlightChanges",enablePivot:"SharedPivot",enableRowGroup:"SharedRowGrouping",enableValue:"SharedAggregation",filter:({filter:e})=>e&&"string"!==typeof e&&"boolean"!==typeof e?"CustomFilter":"string"===typeof e?cw[e]??"ColumnFilter":"ColumnFilter",floatingFilter:"ColumnFilter",getQuickFilterText:"QuickFilter",headerTooltip:"Tooltip",headerTooltipValueGetter:"Tooltip",mainMenuItems:"ColumnMenu",menuTabs:e=>{const t=["columnsMenuTab","generalMenuTab"];return e.menuTabs?.some(e=>t.includes(e))?"ColumnMenu":null},pivot:"SharedPivot",pivotIndex:"SharedPivot",rowDrag:"RowDrag",rowGroup:"SharedRowGrouping",rowGroupIndex:"SharedRowGrouping",tooltipField:"Tooltip",tooltipValueGetter:"Tooltip",tooltipComponentSelector:"Tooltip",spanRows:"CellSpan",groupHierarchy:"SharedRowGrouping"},pw=()=>{const e={autoHeight:{supportedRowModels:["clientSide","serverSide"],validate:(e,{paginationAutoPageSize:t})=>t?"colDef.autoHeight is not supported with paginationAutoPageSize.":null},allowFormula:{supportedRowModels:["clientSide"]},cellRendererParams:{validate:e=>{const t=null!=e.rowGroup||null!=e.rowGroupIndex||"agGroupCellRenderer"===e.cellRenderer;return t&&"checkbox"in e.cellRendererParams?'Since v33.0, `cellRendererParams.checkbox` has been deprecated. Use `rowSelection.checkboxLocation = "autoGroupColumn"` instead.':null}},flex:{validate:(e,t)=>t.autoSizeStrategy?"colDef.flex is not supported with gridOptions.autoSizeStrategy":null},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(e,{rowSelection:t})=>"multiple"===t?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(e,{rowSelection:t})=>"multiple"===t?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(e,{rowSelection:t})=>"multiple"===t?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerValueGetter:{validate:e=>{const t=e.headerValueGetter;return"function"===typeof t||"string"===typeof t?null:"headerValueGetter must be a function or a valid string expression"}},icons:{validate:({icons:e})=>{if(e){if(e["smallDown"])return ko(262);if(e["smallLeft"])return ko(263);if(e["smallRight"])return ko(264)}return null}},sort:{validate:e=>$i(e.sort)||_i(e.sort)?null:`sort must be of type (SortDirection | SortDef), currently it is ${"object"===typeof e.sort?JSON.stringify(e.sort):wo(e.sort)}`},initialSort:{validate:e=>$i(e.initialSort)||_i(e.initialSort)?null:`initialSort must be of non-null type (SortDirection | SortDef), currently it is ${"object"===typeof e.initialSort?JSON.stringify(e.initialSort):wo(e.initialSort)}`},sortingOrder:{validate:e=>{const t=e.sortingOrder;if(Array.isArray(t)&&t.length>0){const e=t.filter(e=>!($i(e)||_i(e)));if(e.length>0)return`sortingOrder must be an array of type non-null (SortDirection | SortDef)[], incorrect items are: [${e.map(e=>"string"===typeof e||null==e?wo(e):JSON.stringify(e)).join(", ")}]`}else if(!Array.isArray(t)||!t.length)return`sortingOrder must be an array with at least one element, currently it is [${t}]`;return null}},type:{validate:e=>{const t=e.type;if(t instanceof Array){const e=t.some(e=>"string"!==typeof e);return e?"if colDef.type is supplied an array it should be of type 'string[]'":null}return"string"===typeof t?null:"colDef.type should be of type 'string' | 'string[]'"}},rowSpan:{validate:(e,{suppressRowTransform:t})=>t?null:"colDef.rowSpan requires suppressRowTransform to be enabled."},spanRows:{dependencies:{editable:{required:[!1,void 0]},rowDrag:{required:[!1,void 0]},colSpan:{required:[void 0]},rowSpan:{required:[void 0]}},validate:(e,{rowSelection:t,cellSelection:o,suppressRowTransform:i,enableCellSpan:n,rowDragEntireRow:s,enableCellTextSelection:r})=>"object"===typeof t&&"singleRow"===t?.mode&&t?.enableClickSelection?"colDef.spanRows is not supported with rowSelection.clickSelection":o?"colDef.spanRows is not supported with cellSelection.":i?"colDef.spanRows is not supported with suppressRowTransform.":n?s?"colDef.spanRows is not supported with rowDragEntireRow.":r?"colDef.spanRows is not supported with enableCellTextSelection.":null:"colDef.spanRows requires enableCellSpan to be enabled."},groupHierarchy:{validate(e,{groupHierarchyConfig:t={}},o){const i=new Set(["year","quarter","month","formattedMonth","day","hour","minute","second"]),n=[];for(const s of e.groupHierarchy??[])"object"!==typeof s?i.has(s)||s in t||n.push(uw(s)):o.validation?.validateColDef(s);if(n.length>0){const e=`The following parts of colDef.groupHierarchy are not recognised: ${n.join(", ")}.`,t=`Choose one of ${[...i].map(uw).join(", ")}, or define your own parts in gridOptions.groupHierarchyConfig.`;return`${e}\n${t}`}return null}}};return e},fw={headerName:void 0,columnGroupShow:void 0,headerStyle:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,headerTooltipValueGetter:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,spanRows:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,tooltipComponentSelector:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,context:void 0,dateComponent:void 0,dateComponentParams:void 0,getFindText:void 0,rowGroupingHierarchy:void 0,groupHierarchy:void 0,allowFormula:void 0},mw=()=>Object.keys(fw),vw=()=>({objectName:"colDef",allProperties:mw(),docsUrl:"column-properties/",deprecations:hw(),validations:pw()}),Cw=["overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","treeDataChildrenField","treeDataParentIdField","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator","columnMenu","tooltipShowMode","invalidEditValueMode","grandTotalRow","themeCssLayer","findSearchValue","styleNonce","renderingMode"],ww=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","dragAndDropImageComponentParams","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","overlayComponentParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","activeOverlayParams","popupParent","themeStyleContainer","statusBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterParent","advancedFilterBuilderParams","advancedFilterParams","formulaDataSource","formulaFuncs","initialState","autoSizeStrategy","selectionColumnDef","findOptions","filterHandlers","groupHierarchyConfig"],bw=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector","suppressOverlays"],yw=["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","cellFlashDuration","cellFadeDuration","tabIndex","pivotMaxGeneratedColumns","rowDragInsertDelay"],Sw=["theme","rowSelection"],Rw=["cellSelection","sideBar","rowNumbers","suppressGroupChangesColumnVisibility","groupAggFiltering","suppressStickyTotalRow","groupHideParentOfSingleChild","enableRowPinning"],xw=["loadThemeGoogleFonts","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressColumnMoveAnimation","suppressMoveWhenColumnDragging","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","allowContextMenuWithControlKey","suppressContextMenu","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressFocusAfterRefresh","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","enableCellSpan","suppressClickEdit","rowDragEntireRow","rowDragManaged","refreshAfterGroupEdit","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","reactiveCustomComponents","applyQuickFilterBeforePivotOrAgg","suppressServerSideFullWidthLoadingRow","suppressAdvancedFilterEval","loading","maintainColumnOrder","enableStrictPivotColumnOrder","suppressSetFilterByDefault","enableFilterHandlers","suppressStartEditOnTab","hidePaddedHeaderRows","ssrmExpandAllAffectsAllRows","animateColumnResizing"],Ew=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","overlayComponent","loadingOverlayComponent","noRowsOverlayComponent","overlayComponentSelector","activeOverlay","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getFullRowEditValidationErrors","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","sendToClipboard","focusGridInnerElement","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","chartMenuItems","groupTotalRow","alwaysPassFilter","isRowPinnable","isRowPinned","isRowValidDropPosition"],Fw=()=>[...bw,...ww,...Cw,...yw,...Ew,...xw,...Rw,...Sw],Pw=()=>({suppressLoadingOverlay:{version:"32",message:"Use `loading`=false instead."},enableFillHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeSelection:{version:"32.2",message:"Use `cellSelection = true` instead."},suppressMultiRangeSelection:{version:"32.2",message:"Use `cellSelection.suppressMultiRanges` instead."},suppressClearOnFillReduction:{version:"32.2",message:"Use `cellSelection.handle.suppressClearOnFillReduction` instead."},fillHandleDirection:{version:"32.2",message:"Use `cellSelection.handle.direction` instead."},fillOperation:{version:"32.2",message:"Use `cellSelection.handle.setFillValue` instead."},suppressRowClickSelection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},suppressRowDeselection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},rowMultiSelectWithClick:{version:"32.2",message:"Use `rowSelection.enableSelectionWithoutKeys` instead."},groupSelectsChildren:{version:"32.2",message:'Use `rowSelection.groupSelects = "descendants"` instead.'},groupSelectsFiltered:{version:"32.2",message:'Use `rowSelection.groupSelects = "filteredDescendants"` instead.'},isRowSelectable:{version:"32.2",message:"Use `selectionOptions.isRowSelectable` instead."},suppressCopySingleCellRanges:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},suppressCopyRowsToClipboard:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},onRangeSelectionChanged:{version:"32.2",message:"Use `onCellSelectionChanged` instead."},onRangeDeleteStart:{version:"32.2",message:"Use `onCellSelectionDeleteStart` instead."},onRangeDeleteEnd:{version:"32.2",message:"Use `onCellSelectionDeleteEnd` instead."},suppressBrowserResizeObserver:{version:"32.2",message:"The grid always uses the browser's ResizeObserver, this grid option has no effect."},onColumnEverythingChanged:{version:"32.2",message:"Either use `onDisplayedColumnsChanged` which is fired at the same time, or use one of the more specific column events."},groupRemoveSingleChildren:{version:"33",message:"Use `groupHideParentOfSingleChild` instead."},groupRemoveLowestSingleChildren:{version:"33",message:'Use `groupHideParentOfSingleChild: "leafGroupsOnly"` instead.'},suppressRowGroupHidesColumns:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressHideOnGroup"` instead.'},suppressMakeColumnVisibleAfterUnGroup:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressShowOnUngroup"` instead.'},unSortIcon:{version:"33",message:"Use `defaultColDef.unSortIcon` instead."},sortingOrder:{version:"33",message:"Use `defaultColDef.sortingOrder` instead."},suppressPropertyNamesCheck:{version:"33",message:"`gridOptions` and `columnDefs` both have a `context` property that should be used for arbitrary user data. This means that column definitions and gridOptions should only contain valid properties making this property redundant."},suppressAdvancedFilterEval:{version:"34",message:"Advanced filter no longer uses function evaluation, so this option has no effect."}});function Dw(e,t,o){return"number"===typeof t||null==t?null==t||t>=o?null:`${e}: value should be greater than or equal to ${o}`:`${e}: value should be a number`}var kw={alignedGrids:"AlignedGrids",allowContextMenuWithControlKey:"ContextMenu",autoSizeStrategy:"ColumnAutoSize",cellSelection:"CellSelection",columnHoverHighlight:"ColumnHover",datasource:"InfiniteRowModel",doesExternalFilterPass:"ExternalFilter",editType:"EditCore",invalidEditValueMode:"EditCore",enableAdvancedFilter:"AdvancedFilter",enableCellSpan:"CellSpan",enableCharts:"IntegratedCharts",enableRangeSelection:"CellSelection",enableRowPinning:"PinnedRow",findSearchValue:"Find",getFullRowEditValidationErrors:"EditCore",getContextMenuItems:"ContextMenu",getLocaleText:"Locale",getMainMenuItems:"ColumnMenu",getRowClass:"RowStyle",getRowStyle:"RowStyle",groupTotalRow:"SharedRowGrouping",grandTotalRow:"ClientSideRowModelHierarchy",initialState:"GridState",isExternalFilterPresent:"ExternalFilter",isRowPinnable:"PinnedRow",isRowPinned:"PinnedRow",localeText:"Locale",masterDetail:"SharedMasterDetail",pagination:"Pagination",pinnedBottomRowData:"PinnedRow",pinnedTopRowData:"PinnedRow",pivotMode:"SharedPivot",pivotPanelShow:"RowGroupingPanel",quickFilterText:"QuickFilter",rowClass:"RowStyle",rowClassRules:"RowStyle",rowData:"ClientSideRowModel",rowDragManaged:"RowDrag",refreshAfterGroupEdit:["RowGrouping","TreeData"],rowGroupPanelShow:"RowGroupingPanel",rowNumbers:"RowNumbers",rowSelection:"SharedRowSelection",rowStyle:"RowStyle",serverSideDatasource:"ServerSideRowModel",sideBar:"SideBar",statusBar:"StatusBar",treeData:"SharedTreeData",undoRedoCellEditing:"UndoRedoEdit",valueCache:"ValueCache",viewportDatasource:"ViewportRowModel"},Mw=()=>{const e={autoSizePadding:{validate({autoSizePadding:e}){return Dw("autoSizePadding",e,0)}},cacheBlockSize:{supportedRowModels:["serverSide","infinite"],validate({cacheBlockSize:e}){return Dw("cacheBlockSize",e,1)}},cacheOverflowSize:{validate({cacheOverflowSize:e}){return Dw("cacheOverflowSize",e,1)}},datasource:{supportedRowModels:["infinite"]},domLayout:{validate:e=>{const t=e.domLayout,o=["autoHeight","normal","print"];return t&&!o.includes(t)?`domLayout must be one of [${o.join()}], currently it's ${t}`:null}},enableFillHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeSelection:{dependencies:{rowDragEntireRow:{required:[!1,void 0]}}},enableRowPinning:{supportedRowModels:["clientSide"],validate({enableRowPinning:e,pinnedTopRowData:t,pinnedBottomRowData:o}){return e&&(t||o)?"Manual row pinning cannot be used together with pinned row data. Either set `enableRowPinning` to `false`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":null}},isRowPinnable:{supportedRowModels:["clientSide"],validate({enableRowPinning:e,isRowPinnable:t,pinnedTopRowData:o,pinnedBottomRowData:i}){return t&&(o||i)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinnable`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!e&&t?"`isRowPinnable` requires `enableRowPinning` to be set.":null}},isRowPinned:{supportedRowModels:["clientSide"],validate({enableRowPinning:e,isRowPinned:t,pinnedTopRowData:o,pinnedBottomRowData:i}){return t&&(o||i)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinned`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!e&&t?"`isRowPinned` requires `enableRowPinning` to be set.":null}},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupHideOpenParents:{supportedRowModels:["clientSide","serverSide"],dependencies:{groupTotalRow:{required:[void 0,"bottom"]},treeData:{required:[void 0,!1],reason:"Tree Data has values at the group level so it doesn't make sense to hide them."}}},groupHideParentOfSingleChild:{dependencies:{groupHideOpenParents:{required:[void 0,!1]}}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveSingleChildren:{required:[void 0,!1]}}},groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveLowestSingleChildren:{required:[void 0,!1]}}},groupSelectsChildren:{dependencies:{rowSelection:{required:["multiple"]}}},groupHierarchyConfig:{validate({groupHierarchyConfig:e={}},t,o){for(const i of Object.keys(e))o.validation?.validateColDef(e[i]);return null}},icons:{validate:({icons:e})=>{if(e){if(e["smallDown"])return ko(262);if(e["smallLeft"])return ko(263);if(e["smallRight"])return ko(264)}return null}},infiniteInitialRowCount:{validate({infiniteInitialRowCount:e}){return Dw("infiniteInitialRowCount",e,1)}},initialGroupOrderComparator:{supportedRowModels:["clientSide"]},ssrmExpandAllAffectsAllRows:{validate:e=>{if("boolean"===typeof e.ssrmExpandAllAffectsAllRows){if("serverSide"!==e.rowModelType)return"'ssrmExpandAllAffectsAllRows' is only supported with the Server Side Row Model.";if(e.ssrmExpandAllAffectsAllRows&&"function"!==typeof e.getRowId)return"'getRowId' callback must be provided for Server Side Row Model grouping to work correctly."}return null}},keepDetailRowsCount:{validate({keepDetailRowsCount:e}){return Dw("keepDetailRowsCount",e,1)}},paginationPageSize:{validate({paginationPageSize:e}){return Dw("paginationPageSize",e,1)}},paginationPageSizeSelector:{validate:e=>{const t=e.paginationPageSizeSelector;return"boolean"===typeof t||null==t||t.length?null:"'paginationPageSizeSelector' cannot be an empty array.\n If you want to hide the page size selector, set paginationPageSizeSelector to false."}},pivotMode:{dependencies:{treeData:{required:[!1,void 0],reason:"Pivot Mode is not supported with Tree Data."}}},quickFilterText:{supportedRowModels:["clientSide"]},rowBuffer:{validate({rowBuffer:e}){return Dw("rowBuffer",e,0)}},rowClass:{validate:e=>{const t=e.rowClass;return"function"===typeof t?"rowClass should not be a function, please use getRowClass instead":null}},rowData:{supportedRowModels:["clientSide"]},rowDragManaged:{supportedRowModels:["clientSide"],dependencies:{pagination:{required:[!1,void 0]}}},rowSelection:{validate({rowSelection:e}){return e&&"string"===typeof e?'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.':e&&"object"!==typeof e?"Expected `RowSelectionOptions` object for the `rowSelection` property.":e&&"multiRow"!==e.mode&&"singleRow"!==e.mode?`Selection mode "${e.mode}" is invalid. Use one of 'singleRow' or 'multiRow'.`:null}},rowStyle:{validate:e=>{const t=e.rowStyle;return t&&"function"===typeof t?"rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead":null}},serverSideDatasource:{supportedRowModels:["serverSide"]},serverSideInitialRowCount:{supportedRowModels:["serverSide"],validate({serverSideInitialRowCount:e}){return Dw("serverSideInitialRowCount",e,1)}},serverSideOnlyRefreshFilteredGroups:{supportedRowModels:["serverSide"]},serverSideSortAllLevels:{supportedRowModels:["serverSide"]},sortingOrder:{validate:e=>{const t=e.sortingOrder;if(Array.isArray(t)&&t.length>0){const e=t.filter(e=>!Wi(e));if(e.length>0)return`sortingOrder must be an array of type (SortDirection | SortDef)[], incorrect items are: ${e.map(e=>"string"===typeof e||null==e?wo(e):JSON.stringify(e))}]`}else if(!Array.isArray(t)||!t.length)return`sortingOrder must be an array with at least one element, currently it's ${t}`;return null}},tooltipHideDelay:{validate:e=>e.tooltipHideDelay&&e.tooltipHideDelay<0?"tooltipHideDelay should not be lower than 0":null},tooltipShowDelay:{validate:e=>e.tooltipShowDelay&&e.tooltipShowDelay<0?"tooltipShowDelay should not be lower than 0":null},treeData:{supportedRowModels:["clientSide","serverSide"],validate:e=>{const t=e.rowModelType??"clientSide";switch(t){case"clientSide":{const{treeDataChildrenField:t,treeDataParentIdField:o,getDataPath:i,getRowId:n}=e;if(!t&&!o&&!i)return"treeData requires either 'treeDataChildrenField' or 'treeDataParentIdField' or 'getDataPath' in the clientSide row model.";if(t){if(i)return"Cannot use both 'treeDataChildrenField' and 'getDataPath' at the same time.";if(o)return"Cannot use both 'treeDataChildrenField' and 'treeDataParentIdField' at the same time."}if(o){if(!n)return"getRowId callback not provided, tree data with parent id cannot be built.";if(i)return"Cannot use both 'treeDataParentIdField' and 'getDataPath' at the same time."}return null}case"serverSide":{const o=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${t} row model.`;return e.isServerSideGroup&&e.getServerSideGroupKey?null:o}}return null}},viewportDatasource:{supportedRowModels:["viewport"]},viewportRowModelBufferSize:{validate({viewportRowModelBufferSize:e}){return Dw("viewportRowModelBufferSize",e,0)}},viewportRowModelPageSize:{validate({viewportRowModelPageSize:e}){return Dw("viewportRowModelPageSize",e,1)}},rowDragEntireRow:{dependencies:{cellSelection:{required:[void 0]}}},autoGroupColumnDef:{validate({autoGroupColumnDef:e,showOpenedGroup:t}){return e?.field&&t?"autoGroupColumnDef.field and showOpenedGroup are not supported when used together.":e?.valueGetter&&t?"autoGroupColumnDef.valueGetter and showOpenedGroup are not supported when used together.":null}},renderingMode:{validate:e=>{const t=e.renderingMode,o=["default","legacy"];return t&&!o.includes(t)?`renderingMode must be one of [${o.join()}], currently it's ${t}`:null}},autoSizeStrategy:{validate:({autoSizeStrategy:e})=>{if(!e)return null;const t=["fitCellContents","fitGridWidth","fitProvidedWidth"],o=e.type;return"fitCellContents"!==o&&"fitGridWidth"!==o&&"fitProvidedWidth"!==o?`Invalid Auto-size strategy. \`autoSizeStrategy\` must be one of ${t.map(e=>'"'+e+'"').join(", ")}, currently it's ${o}`:"fitProvidedWidth"===o&&"number"!=typeof e.width?`When using the 'fitProvidedWidth' auto-size strategy, must provide a numeric \`width\`. You provided ${e.width}`:null}}},t={};for(const o of xw)t[o]={expectedType:"boolean"};for(const o of yw)t[o]={expectedType:"number"};return kt(t,e),t},Aw=()=>({objectName:"gridOptions",allProperties:[...Fw(),...Object.values(dw)],propertyExceptions:["api"],docsUrl:"grid-options/",deprecations:Pw(),validations:Mw()}),Tw=0,Iw=0,Lw="__ag_grid_instance",Bw=class extends Ct{constructor(){super(...arguments),this.beanName="gos",this.domDataKey="__AG_"+Math.random().toString(),this.instanceId=Iw++,this.gridReadyFired=!1,this.queueEvents=[],this.propEventSvc=new i,this.globalEventHandlerFactory=e=>(t,o)=>{if(!this.isAlive())return;const i=sw.has(t);if(i&&!e||!i&&e)return;if(!Ow(t))return;const n=(e,t)=>{const o=dw[e],i=this.gridOptions[o];"function"===typeof i&&this.beans.frameworkOverrides.wrapOutgoing(()=>i(t))};if(this.gridReadyFired)n(t,o);else if("gridReady"===t){n(t,o),this.gridReadyFired=!0;for(const e of this.queueEvents)n(e.eventName,e.event);this.queueEvents=[]}else this.queueEvents.push({eventName:t,event:o})}}wireBeans(e){this.gridOptions=e.gridOptions,this.validation=e.validation,this.api=e.gridApi,this.gridId=e.context.getId()}get gridOptionsContext(){return this.gridOptions["context"]}postConstruct(){this.validateGridOptions(this.gridOptions),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory().bind(this),!0),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.propEventSvc.setFrameworkOverrides(this.beans.frameworkOverrides),this.addManagedEventListeners({gridOptionsChanged:({options:e})=>{this.updateGridOptions({options:e,force:!0,source:"optionsUpdated"})}})}destroy(){super.destroy(),this.queueEvents=[]}get(e){return this.gridOptions[e]??Bt[e]}getCallback(e){return this.mergeGridCommonParams(this.gridOptions[e])}exists(e){return s(this.gridOptions[e])}mergeGridCommonParams(e){if(e){const t=t=>e(this.addCommon(t));return t}return e}updateGridOptions({options:e,force:t,source:o="api"}){const i={id:Tw++,properties:[]},n=[],{gridOptions:s,validation:r}=this;for(const a of Object.keys(e)){const l=Tt.applyGlobalGridOption(a,e[a]);r?.warnOnInitialPropertyUpdate(o,a);const d=t||"object"===typeof l&&"api"===o,c=s[a];if(d||c!==l){s[a]=l;const e={type:a,currentValue:l,previousValue:c,changeSet:i,source:o};n.push(e)}}this.validateGridOptions(this.gridOptions),i.properties=n.map(e=>e.type);for(const a of n)Ht(this,`Updated property ${a.type} from`,a.previousValue," to ",a.currentValue),this.propEventSvc.dispatchEvent(a)}addPropertyEventListener(e,t){this.propEventSvc.addEventListener(e,t)}removePropertyEventListener(e,t){this.propEventSvc.removeEventListener(e,t)}getDomDataKey(){return this.domDataKey}addCommon(e){return e.api=this.api,e.context=this.gridOptionsContext,e}validateOptions(e,t){for(const o of Object.keys(e)){const i=e[o];if(null==i||!1===i)continue;let n=t[o];"function"===typeof n&&(n=n(e,this.gridOptions,this.beans)),n&&this.assertModuleRegistered(n,o)}}validateGridOptions(e){this.validateOptions(e,kw),this.validation?.processGridOptions(e)}validateColDef(e,t,o){!o&&this.beans.dataTypeSvc?.isColPendingInference(t)||(this.validateOptions(e,gw),this.validation?.validateColDef(e))}assertModuleRegistered(e,t){const o=Array.isArray(e)?e.some(e=>this.isModuleRegistered(e)):this.isModuleRegistered(e);return o||Eo(200,{...this.getModuleErrorParams(),moduleName:e,reasonOrId:t}),o}getModuleErrorParams(){return{gridId:this.gridId,gridScoped:Zt(),rowModelType:this.get("rowModelType"),isUmd:io()}}isModuleRegistered(e){return Yt(e,this.gridId,this.get("rowModelType"))}setInstanceDomData(e){e[Lw]=this.instanceId}isElementInThisInstance(e){let t=e;while(t){const e=t[Lw];if(s(e)){const t=e===this.instanceId;return t}t=t.parentElement}return!1}};function Ow(e){return!!dw[e]}var Hw=class extends Ct{constructor(e,t){super(),this.column=e,this.eGui=t,this.lastMovingChanged=0}postConstruct(){this.addManagedElementListeners(this.eGui,{click:e=>e&&this.onClick(e)}),this.addManagedListeners(this.column,{movingChanged:()=>{this.lastMovingChanged=Date.now()}})}onClick(e){const{sortSvc:t,rangeSvc:o,gos:i}=this.beans,n=!gi(i)||e.altKey;if(n){if(this.column.isSortable()){const o=this.column.isMoving(),i=Date.now(),n=i-this.lastMovingChanged<50,s=o||n;s||t?.progressSortFromEvent(this.column,e)}}else o?.handleColumnSelection(this.column,e)}};function Vw(e,t){const o={"aria-hidden":"true"};return{tag:"div",cls:"ag-cell-label-container",role:"presentation",children:[{tag:"span",ref:"eMenu",cls:"ag-header-icon ag-header-cell-menu-button",attrs:o},{tag:"span",ref:"eFilterButton",cls:"ag-header-icon ag-header-cell-filter-button",attrs:o},{tag:"div",ref:"eLabel",cls:"ag-header-cell-label",role:"presentation",children:[e?{tag:"span",ref:"eColRef",cls:"ag-header-col-ref"}:null,{tag:"span",ref:"eText",cls:"ag-header-cell-text"},{tag:"span",ref:"eFilter",cls:"ag-header-icon ag-header-label-icon ag-filter-icon",attrs:o},t?{tag:"ag-sort-indicator",ref:"eSortIndicator"}:null]}]}}var Gw=class extends ps{constructor(){super(...arguments),this.eFilter=ds,this.eFilterButton=ds,this.eSortIndicator=ds,this.eMenu=ds,this.eLabel=ds,this.eText=ds,this.eColRef=ds,this.eSortOrder=ds,this.eSortAsc=ds,this.eSortDesc=ds,this.eSortMixed=ds,this.eSortNone=ds,this.eSortAbsoluteAsc=ds,this.eSortAbsoluteDesc=ds,this.isLoadingInnerComponent=!1}refresh(e){const t=this.params;if(this.params=e,this.workOutTemplate(e,!!this.beans?.sortSvc)!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||e.enableSorting!=this.currentSort||e.column.formulaRef!=this.currentRef||null!=this.currentSuppressMenuHide&&this.shouldSuppressMenuHide()!=this.currentSuppressMenuHide||t.enableFilterButton!=e.enableFilterButton||t.enableFilterIcon!=e.enableFilterIcon)return!1;if(this.innerHeaderComponent){const t={...e};kt(t,e.innerHeaderComponentParams),this.innerHeaderComponent.refresh?.(t)}else this.setDisplayName(e);return!0}workOutTemplate(e,t){const{formula:o}=this.beans,i=e.template;return i?i?.trim?i.trim():i:Vw(!!o?.active,t)}init(e){this.params=e;const{sortSvc:t,touchSvc:o,rowNumbersSvc:i,userCompFactory:n}=this.beans,s=t?.getSortIndicatorSelector();this.currentTemplate=this.workOutTemplate(e,!!s),this.setTemplate(this.currentTemplate,s?[s]:void 0),this.eLabel&&(this.mouseListener??(this.mouseListener=this.createManagedBean(new Hw(e.column,this.eLabel)))),o?.setupForHeader(this),this.setMenu(),this.setupSort(),this.setupColumnRefIndicator(),i?.setupForHeader(this),this.setupFilterIcon(),this.setupFilterButton(),this.workOutInnerHeaderComponent(n,e),this.setDisplayName(e)}workOutInnerHeaderComponent(e,t){const o=_s(e,t,t);o&&(this.isLoadingInnerComponent=!0,o.newAgStackInstance().then(e=>{this.isLoadingInnerComponent=!1,e&&(this.isAlive()?(this.innerHeaderComponent=e,this.eText&&this.eText.appendChild(e.getGui())):this.destroyBean(e))}))}setDisplayName(e){const{displayName:t}=e,o=this.currentDisplayName;this.currentDisplayName=t,!this.eText||o===t||this.innerHeaderComponent||this.isLoadingInnerComponent||(this.eText.textContent=h(t))}addInIcon(e,t,o){const i=Uh(e,this.beans,o);i&&t.appendChild(i)}workOutShowMenu(){return this.params.enableMenu&&!!this.beans.menuSvc?.isHeaderMenuButtonEnabled()}shouldSuppressMenuHide(){return!!this.beans.menuSvc?.isHeaderMenuButtonAlwaysShowEnabled()}setMenu(){if(!this.eMenu)return;if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu)return Ee(this.eMenu),void(this.eMenu=void 0);const{gos:e,eMenu:t,params:o}=this,i=Pi(e);this.addInIcon(i?"menu":"menuAlt",t,o.column),t.classList.toggle("ag-header-menu-icon",!i);const n=this.shouldSuppressMenuHide();this.currentSuppressMenuHide=n,this.addManagedElementListeners(t,{click:()=>this.showColumnMenu(this.eMenu)}),this.toggleMenuAlwaysShow(n)}toggleMenuAlwaysShow(e){this.eMenu?.classList.toggle("ag-header-menu-always-show",e)}showColumnMenu(e){const{currentSuppressMenuHide:t,params:o}=this;t||this.toggleMenuAlwaysShow(!0),o.showColumnMenu(e,()=>{t||this.toggleMenuAlwaysShow(!1)})}onMenuKeyboardShortcut(e){const{params:t,gos:o,beans:i,eMenu:n,eFilterButton:s}=this,r=t.column,a=Pi(o);if(e&&!a){if(i.menuSvc?.isFilterMenuInHeaderEnabled(r))return t.showFilter(s??n??this.getGui()),!0}else if(t.enableMenu)return this.showColumnMenu(n??s??this.getGui()),!0;return!1}setupSort(){const{sortSvc:e}=this.beans;if(!e)return;const{enableSorting:t,column:o}=this.params;if(this.currentSort=t,!this.eSortIndicator){this.eSortIndicator=this.createBean(e.createSortIndicator(!0));const{eSortIndicator:t,eSortOrder:o,eSortAsc:i,eSortDesc:n,eSortMixed:s,eSortNone:r,eSortAbsoluteAsc:a,eSortAbsoluteDesc:l}=this;t.attachCustomElements(o,i,n,s,r,a,l)}this.eSortIndicator.setupSort(o),this.currentSort&&e.setupHeader(this,o)}setupColumnRefIndicator(){const{eColRef:e,beans:{editModelSvc:t},params:o}=this;e&&(this.currentRef=o.column.formulaRef,e.textContent=this.currentRef,he(e,!1),this.addManagedEventListeners({cellEditingStarted:()=>{const o=t?.getEditPositions(),i=!!this.currentRef&&!!o?.some(e=>e.column.isAllowFormula());he(e,i)},cellEditingStopped:()=>{he(e,!1)}}))}setupFilterIcon(){const{eFilter:e,params:t}=this;if(!e)return;const o=()=>{const o=t.column.isFilterActive();he(e,o,{skipAriaHidden:!0})};this.configureFilter(t.enableFilterIcon,e,o,"filterActive")}setupFilterButton(){const{eFilterButton:e,params:t}=this;if(!e)return;const o=this.configureFilter(t.enableFilterButton,e,this.onFilterChangedButton.bind(this),"filter");o?this.addManagedElementListeners(e,{click:()=>t.showFilter(e)}):this.eFilterButton=void 0}configureFilter(e,t,o,i){if(!e)return Ee(t),!1;const n=this.params.column;return this.addInIcon(i,t,n),this.addManagedListeners(n,{filterChanged:o}),o(),!0}onFilterChangedButton(){const e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",e)}getAnchorElementForMenu(e){const{eFilterButton:t,eMenu:o}=this;return e?t??o??this.getGui():o??t??this.getGui()}destroy(){super.destroy(),this.innerHeaderComponent=this.destroyBean(this.innerHeaderComponent),this.mouseListener=this.destroyBean(this.mouseListener)}},Nw={tag:"div",cls:"ag-header-group-cell-label",role:"presentation",children:[{tag:"span",ref:"agLabel",cls:"ag-header-group-text",role:"presentation"},{tag:"span",ref:"agOpened",cls:"ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"},{tag:"span",ref:"agClosed",cls:"ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"}]},zw=class extends ps{constructor(){super(Nw),this.agOpened=ds,this.agClosed=ds,this.agLabel=ds,this.isLoadingInnerComponent=!1}init(e){const{userCompFactory:t,touchSvc:o}=this.beans;this.params=e,this.checkWarnings(),this.workOutInnerHeaderGroupComponent(t,e),this.setupLabel(e),this.addGroupExpandIcon(e),this.setupExpandIcons(),o?.setupForHeaderGroup(this)}checkWarnings(){const e=this.params;e.template&&xo(89)}workOutInnerHeaderGroupComponent(e,t){const o=$s(e,t,t);o&&(this.isLoadingInnerComponent=!0,o.newAgStackInstance().then(e=>{this.isLoadingInnerComponent=!1,e&&(this.isAlive()?(this.innerHeaderGroupComponent=e,this.agLabel.appendChild(e.getGui())):this.destroyBean(e))}))}setupExpandIcons(){const{agOpened:e,agClosed:t,params:{columnGroup:o},beans:{colGroupSvc:i}}=this;this.addInIcon("columnGroupOpened",e),this.addInIcon("columnGroupClosed",t);const n=e=>{if(Rc(e))return;const t=!o.isExpanded();i.setColumnGroupOpened(o.getProvidedColumnGroup(),t,"uiColumnExpanded")};this.addTouchAndClickListeners(t,n),this.addTouchAndClickListeners(e,n);const s=e=>{Sc(e)};this.addManagedElementListeners(t,{dblclick:s}),this.addManagedElementListeners(e,{dblclick:s}),this.addManagedElementListeners(this.getGui(),{dblclick:n}),this.updateIconVisibility();const r=o.getProvidedColumnGroup(),a=this.updateIconVisibility.bind(this);this.addManagedListeners(r,{expandedChanged:a,expandableChanged:a})}addTouchAndClickListeners(e,t){this.beans.touchSvc?.setupForHeaderGroupElement(this,e,t),this.addManagedElementListeners(e,{click:t})}updateIconVisibility(){const{agOpened:e,agClosed:t,params:{columnGroup:o}}=this;if(o.isExpandable()){const i=o.isExpanded();he(e,i),he(t,!i)}else he(e,!1),he(t,!1)}addInIcon(e,t){const o=Uh(e,this.beans,null);o&&t.appendChild(o)}addGroupExpandIcon(e){if(!e.columnGroup.isExpandable()){const{agOpened:e,agClosed:t}=this;he(e,!1),he(t,!1)}}setupLabel(e){const{displayName:t,columnGroup:o}=e,{innerHeaderGroupComponent:i,isLoadingInnerComponent:n}=this,r=i||n;s(t)&&!r&&(this.agLabel.textContent=h(t)),this.toggleCss("ag-sticky-label",!o.getColGroupDef()?.suppressStickyLabel)}destroy(){super.destroy(),this.innerHeaderGroupComponent&&(this.destroyBean(this.innerHeaderGroupComponent),this.innerHeaderGroupComponent=void 0)}},Ww={moduleName:"ColumnHeaderComp",version:ro,userComponents:{agColumnHeader:Gw},icons:{menu:"menu",menuAlt:"menu-alt"}},_w={moduleName:"ColumnGroupHeaderComp",version:ro,userComponents:{agColumnGroupHeader:zw},icons:{columnGroupOpened:"expanded",columnGroupClosed:"contracted"}},Uw=class extends Ct{constructor(){super(...arguments),this.beanName="animationFrameSvc",this.p1={list:[],sorted:!1},this.p2={list:[],sorted:!1},this.f1={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0,this.taskCount=0}setScrollTop(e){this.scrollGoingDown=e>=this.lastScrollTop,0===e&&(this.scrollGoingDown=!0),this.lastScrollTop=e}postConstruct(){this.active=!this.gos.get("suppressAnimationFrame"),this.batchFrameworkComps=this.beans.frameworkOverrides.batchFrameworkComps}verify(){!1===this.active&&xo(92)}createTask(e,t,o,i,n=!1){this.verify();let s=o;i&&this.batchFrameworkComps&&(s="f1");const r={task:e,index:t,createOrder:++this.taskCount,deferred:n};this.addTaskToList(this[s],r),this.schedule()}addTaskToList(e,t){e.list.push(t),e.sorted=!1}sortTaskList(e){if(e.sorted)return;const t=this.scrollGoingDown?1:-1;e.list.sort((e,o)=>e.deferred!==o.deferred?e.deferred?-1:1:e.index!==o.index?t*(o.index-e.index):o.createOrder-e.createOrder),e.sorted=!0}addDestroyTask(e){this.verify(),this.destroyTasks.push(e),this.schedule()}executeFrame(e){const{p1:t,p2:o,f1:i,destroyTasks:n,beans:s}=this,{ctrlsSvc:r,frameworkOverrides:a}=s,l=t.list,d=o.list,c=i.list,u=Date.now();let h=0;const g=e<=0,p=r.getScrollFeature();while(g||h<e){const s=p.scrollGridIfNeeded();if(!s){let s;if(l.length)this.sortTaskList(t),s=l.pop().task;else if(d.length)this.sortTaskList(o),s=d.pop().task;else if(c.length)a.wrapOutgoing(()=>{while(g||h<e){const e=p.scrollGridIfNeeded();if(e)break;if(!c.length)break;this.sortTaskList(i),s=c.pop().task,s(),h=Date.now()-u}}),s=()=>{};else{if(!n.length)break;s=n.pop()}s()}h=Date.now()-u}l.length||d.length||c.length||n.length?this.requestFrame():this.ticking=!1}flushAllFrames(){this.active&&this.executeFrame(-1)}schedule(){this.active&&(this.ticking||(this.ticking=!0,this.requestFrame()))}requestFrame(){const e=this.executeFrame.bind(this,60);_e(this.beans,e)}isQueueEmpty(){return!this.ticking}},$w={moduleName:"AnimationFrame",version:ro,beans:[Uw]},qw=class extends Ct{constructor(){super(...arguments),this.beanName="iconSvc"}createIconNoSpan(e,t){return Uh(e,this.beans,t?.column)}},jw=class extends Ct{constructor(){super(...arguments),this.beanName="touchSvc"}mockBodyContextMenu(e,t){this.mockContextMenu(e,e.eBodyViewport,t)}mockHeaderContextMenu(e,t){this.mockContextMenu(e,e.eGui,t)}mockRowContextMenu(e){if(!Pr())return;const t=(t,o,i)=>{const{rowCtrl:n,cellCtrl:s}=e.getControlsForEventTarget(i?.target??null);s?.column&&s.dispatchCellContextMenuEvent(i??null),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(void 0,i,n,s)};this.mockContextMenu(e,e.element,t)}handleCellDoubleClick(e,t){const o=()=>{if(!Pr()||Ye("dblclick"))return!1;const t=Date.now(),o=t-e.lastIPadMouseClickEvent<200;return e.lastIPadMouseClickEvent=t,o};return!!o()&&(e.onCellDoubleClicked(t),t.preventDefault(),!0)}setupForHeader(e){const{gos:t,sortSvc:o,menuSvc:i}=this.beans;if(t.get("suppressTouch"))return;const{params:n,eMenu:r,eFilterButton:a}=e,l=new $g(e.getGui(),!0);e.addDestroyFunc(()=>l.destroy());const d=e.shouldSuppressMenuHide(),c=d&&s(r)&&n.enableMenu;let u=l;if(c&&(u=new $g(r,!0),e.addDestroyFunc(()=>u.destroy())),n.enableMenu||i?.isHeaderContextMenuEnabled(n.column)){const t=c?"tap":"longTap",o=e=>n.showColumnMenuAfterMouseClick(e.touchStart);e.addManagedListeners(u,{[t]:o}),e.addManagedListeners(l,{longTap:o})}if(n.enableSorting){const t=e=>{const t=e.touchStart.target;d&&(r?.contains(t)||a?.contains(t))||o?.progressSort(n.column,!1,"uiColumnSorted")};e.addManagedListeners(l,{tap:t})}if(n.enableFilterButton&&a){const t=new $g(a,!0);e.addManagedListeners(t,{tap:()=>n.showFilter(a)}),e.addDestroyFunc(()=>t.destroy())}}setupForHeaderGroup(e){const t=e.params;if(this.beans.menuSvc?.isHeaderContextMenuEnabled(t.columnGroup.getProvidedColumnGroup())){const o=new $g(t.eGridHeader,!0),i=e=>t.showColumnMenuAfterMouseClick(e.touchStart);e.addManagedListeners(o,{longTap:i}),e.addDestroyFunc(()=>o.destroy())}}setupForHeaderGroupElement(e,t,o){const i=new $g(t,!0);e.addManagedListeners(i,{tap:o}),e.addDestroyFunc(()=>i.destroy())}mockContextMenu(e,t,o){if(!Pr())return;const i=new $g(t),n=e=>{st(this.beans,e.touchEvent)&&o(void 0,e.touchStart,e.touchEvent)};e.addManagedListeners(i,{longTap:n}),e.addDestroyFunc(()=>i.destroy())}},Kw={moduleName:"Touch",version:ro,beans:[jw]},Qw=class extends Ct{constructor(){super(...arguments),this.beanName="cellNavigation"}wireBeans(e){this.rowSpanSvc=e.rowSpanSvc}getNextCellToFocus(e,t,o=!1){return o?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)}getNextCellToFocusWithCtrlPressed(e,t){const o=e===lr.UP,i=e===lr.DOWN,n=e===lr.LEFT;let s,r;const{pageBounds:a,gos:l,visibleCols:d,pinnedRowModel:c}=this.beans,{rowPinned:u}=t;if(o||i)r=u&&c?o?0:"top"===u?c.getPinnedTopRowCount()-1:c.getPinnedBottomRowCount()-1:o?a.getFirstRow():a.getLastRow(),s=t.column;else{const e=l.get("enableRtl");r=t.rowIndex;const o=n!==e?d.allCols:[...d.allCols].reverse();s=o.find(e=>this.isCellGoodToFocusOn({rowIndex:r,rowPinned:null,column:e}))}return s?{rowIndex:r,rowPinned:u,column:s}:null}getNextCellToFocusWithoutCtrlPressed(e,t){let o=t,i=!1;while(!i){switch(e){case lr.UP:o=this.getCellAbove(o);break;case lr.DOWN:o=this.getCellBelow(o);break;case lr.RIGHT:o=this.gos.get("enableRtl")?this.getCellToLeft(o):this.getCellToRight(o);break;case lr.LEFT:o=this.gos.get("enableRtl")?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,xo(8,{key:e});break}i=!o||this.isCellGoodToFocusOn(o)}return o}isCellGoodToFocusOn(e){const t=e.column;let o;const{pinnedRowModel:i,rowModel:n}=this.beans;switch(e.rowPinned){case"top":o=i?.getPinnedTopRow(e.rowIndex);break;case"bottom":o=i?.getPinnedBottomRow(e.rowIndex);break;default:o=n.getRow(e.rowIndex);break}if(!o)return!1;const s=this.isSuppressNavigable(t,o);return!s}getCellToLeft(e){if(!e)return null;const t=this.beans.visibleCols.getColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellToRight(e){if(!e)return null;const t=this.beans.visibleCols.getColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellBelow(e){if(!e)return null;const t=this.rowSpanSvc?.getCellEnd(e)??e,o=eh(this.beans,t,!0);return o?{rowIndex:o.rowIndex,column:e.column,rowPinned:o.rowPinned}:null}getCellAbove(e){if(!e)return null;const t=this.rowSpanSvc?.getCellStart(e)??e,o=Zu(this.beans,{rowIndex:t.rowIndex,rowPinned:t.rowPinned},!0);return o?{rowIndex:o.rowIndex,column:e.column,rowPinned:o.rowPinned}:null}getNextTabbedCell(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)}getNextTabbedCellForwards(e){const{visibleCols:t,pagination:o}=this.beans,i=t.allCols;let n=e.rowIndex,s=e.rowPinned,a=t.getColAfter(e.column);if(!a){a=i[0];const t=eh(this.beans,e,!0);if(r(t))return null;if(!t.rowPinned&&!(o?.isRowInPage(t.rowIndex)??1))return null;n=t?t.rowIndex:null,s=t?t.rowPinned:null}return{rowIndex:n,column:a,rowPinned:s}}getNextTabbedCellBackwards(e){const{beans:t}=this,{visibleCols:o,pagination:i}=t,n=o.allCols;let s=e.rowIndex,a=e.rowPinned,l=o.getColBefore(e.column);if(!l){l=tn(n);const o=Zu(t,{rowIndex:e.rowIndex,rowPinned:e.rowPinned},!0);if(r(o))return null;if(!o.rowPinned&&!(i?.isRowInPage(o.rowIndex)??1))return null;s=o?o.rowIndex:null,a=o?o.rowPinned:null}return{rowIndex:s,column:l,rowPinned:a}}isSuppressNavigable(e,t){const{suppressNavigable:o}=e.colDef;if("boolean"===typeof o)return o;if("function"===typeof o){const i=e.createColumnFunctionCallbackParams(t),n=o;return n(i)}return!1}};function Xw(e){return e.focusSvc.getFocusedCell()}function Yw(e){return e.focusSvc.clearFocusedCell()}function Zw(e,t,o,i){e.focusSvc.setFocusedCell({rowIndex:t,column:o,rowPinned:i,forceBrowserFocus:!0})}function Jw(e,t){return e.navigation?.tabToNextCell(!1,t)??!1}function eb(e,t){return e.navigation?.tabToNextCell(!0,t)??!1}function tb(e,t,o=!1){const i=e.headerNavigation?.getHeaderPositionForColumn(t,o);i&&e.focusSvc.focusHeaderPosition({headerPosition:i})}var ob=class extends Ct{constructor(){super(...arguments),this.beanName="editModelSvc",this.edits=new Map,this.cellValidations=new ib,this.rowValidations=new nb,this.suspendEdits=!1}suspend(e){this.suspendEdits=e}removeEdits({rowNode:e,column:t}){if(!this.hasEdits({rowNode:e})||!e)return;const o=this.getEditRow(e);t?o.delete(t):o.clear(),0===o.size&&this.edits.delete(e)}getEditRow(e,t={}){if(this.suspendEdits)return;if(0===this.edits.size)return;const o=e&&this.edits.get(e);if(o)return o;if(t.checkSiblings){const t=e.pinnedSibling;if(t)return this.getEditRow(t)}}getEditRowDataValue(e,{checkSiblings:t}={}){if(!e||0===this.edits.size)return;const o=this.getEditRow(e),i=e.pinnedSibling,n=t&&i&&this.getEditRow(i);if(!o&&!n)return;const s=Object.assign({},e.data),r=(e,t)=>e.forEach(({pendingValue:e},o)=>{e!==cb&&(t[o.getColId()]=e)});return o&&r(o,s),n&&r(n,s),s}getEdit(e,t){const o=this._getEdit(e);return t&&o?{...o}:o}_getEdit(e){if(!this.suspendEdits&&0!==this.edits.size)return e.rowNode&&e.column&&this.getEditRow(e.rowNode)?.get(e.column)}getEditMap(e=!0){if(this.suspendEdits||0===this.edits.size)return new Map;if(!e)return this.edits;const t=new Map;return this.edits.forEach((e,o)=>{const i=new Map;e.forEach(({editorState:e,...t},o)=>i.set(o,{...t})),t.set(o,i)}),t}setEditMap(e){this.edits.clear(),e.forEach((e,t)=>{const o=new Map;e.forEach((e,t)=>o.set(t,{...e})),this.edits.set(t,o)})}setEdit(e,t){(0===this.edits.size||!this.edits.has(e.rowNode))&&this.edits.set(e.rowNode,new Map);const o=this._getEdit(e),i=Object.assign({editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0},...o,...t});return this.getEditRow(e.rowNode).set(e.column,i),i}clearEditValue(e){const{rowNode:t,column:o}=e;if(t)if(o){const t=this._getEdit(e);t&&(t.editorValue=void 0,t.pendingValue=t.sourceValue,t.state="changed")}else this.getEditRow(t)?.forEach(e=>{e.editorValue=void 0,e.pendingValue=e.sourceValue,e.state="changed"})}getState(e){if(!this.suspendEdits)return this.getEdit(e)?.state}getEditPositions(e){if(this.suspendEdits||0===(e??this.edits).size)return[];const t=[];return(e??this.edits).forEach((e,o)=>{for(const i of e.keys()){const{editorState:n,...s}=e.get(i);t.push({rowNode:o,column:i,...s})}}),t}hasRowEdits(e,t){if(this.suspendEdits)return!1;if(0===this.edits.size)return!1;const o=this.getEditRow(e,t);return!!o}hasEdits(e={},t={}){if(this.suspendEdits)return!1;if(0===this.edits.size)return!1;const{rowNode:o,column:i}=e,{withOpenEditor:n}=t;if(o){const s=this.getEditRow(o,t);return!!s&&(i?n?"editing"===this.getEdit(e)?.state:s.has(i)??!1:0!==s.size&&(!n||Array.from(s.values()).some(({state:e})=>"editing"===e)))}return n?this.getEditPositions().some(({state:e})=>"editing"===e):this.edits.size>0}start(e){const t=this.getEditRow(e.rowNode)??new Map,{rowNode:o,column:i}=e;i&&!t.has(i)&&t.set(i,{editorValue:void 0,pendingValue:cb,sourceValue:this.beans.valueSvc.getValue(i,o,!1,"api"),state:"editing",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}}),this.edits.set(o,t)}stop(e){this.hasEdits(e)&&(e?this.removeEdits(e):this.clear())}clear(){for(const e of this.edits.values())e.clear();this.edits.clear()}getCellValidationModel(){return this.cellValidations}getRowValidationModel(){return this.rowValidations}setCellValidationModel(e){this.cellValidations=e}setRowValidationModel(e){this.rowValidations=e}destroy(){super.destroy(),this.clear()}},ib=class{constructor(){this.cellValidations=new Map}getCellValidation(e){const{rowNode:t,column:o}=e||{};return this.cellValidations?.get(t)?.get(o)}hasCellValidation(e){return e?.rowNode&&e.column?!!this.getCellValidation(e):this.cellValidations.size>0}setCellValidation(e,t){const{rowNode:o,column:i}=e;this.cellValidations.has(o)||this.cellValidations.set(o,new Map),this.cellValidations.get(o).set(i,t)}clearCellValidation(e){const{rowNode:t,column:o}=e;this.cellValidations.get(t)?.delete(o)}setCellValidationMap(e){this.cellValidations=e}getCellValidationMap(){return this.cellValidations}clearCellValidationMap(){this.cellValidations.clear()}},nb=class{constructor(){this.rowValidations=new Map}getRowValidation(e){const{rowNode:t}=e||{};return this.rowValidations.get(t)}hasRowValidation(e){return e?.rowNode?!!this.getRowValidation(e):this.rowValidations.size>0}setRowValidation({rowNode:e},t){this.rowValidations.set(e,t)}clearRowValidation({rowNode:e}){this.rowValidations.delete(e)}setRowValidationMap(e){this.rowValidations=e}getRowValidationMap(){return this.rowValidations}clearRowValidationMap(){this.rowValidations.clear()}};function sb(e,t={}){const{rowIndex:o,rowId:i,rowCtrl:n,rowPinned:s}=t;if(n)return n;const{rowModel:r,rowRenderer:a}=e;let{rowNode:l}=t;return l||(i?l=Yu(e,i,s):null!=o&&(l=r.getRow(o))),a.getRowCtrls(l?[l]:[])?.[0]}function rb(e,t={}){const{cellCtrl:o,colId:i,columnId:n,column:s}=t;if(o)return o;const r=e.colModel.getCol(i??n??db(s)),a=t.rowCtrl??sb(e,t),l=a?.getCellCtrl(r)??void 0;if(l)return l;const d=t.rowNode??a?.rowNode;return d?e.rowRenderer.getCellCtrls([d],[r])?.[0]:void 0}function ab(e){const{editSvc:t}=e;t?.isBatchEditing()?(yb(e,{persist:!0}),Eb(e)):t?.stopEditing(void 0,{source:"api"})}function lb(e,t,o){const{gos:i,popupSvc:n}=t;if(!i.get("stopEditingWhenCellsLoseFocus"))return;const s=e=>{const s=e.relatedTarget;if(null===Dr(s))return void ab(t);let r=o.some(e=>e.contains(s))&&i.isElementInThisInstance(s);r||(r=!!n&&(n.getActivePopups().some(e=>e.contains(s))||n.isElementWithinCustomPopup(s))),r||ab(t)};for(const r of o)e.addManagedElementListeners(r,{focusout:s})}function db(e){if(e)return"string"===typeof e?e:e.getColId()}var cb=Symbol("unedited");function ub(e,t={}){const o=[],i=e.rowRenderer.getCellCtrls(t.rowNodes,t.columns);for(const n of i){const e=n.comp?.getCellEditor();e&&o.push({ctrl:n,editor:rr(e)})}return o}var hb=(e,t={})=>ub(e,t).map(e=>e.editor);function gb(e,t,o,i,n,s){0===t.length&&o?.rowNode&&o?.column&&fb(e,o,{key:i,event:n,cellStartedEdit:s});const{valueSvc:r,editSvc:a,editModelSvc:l}=e,{rowNode:d,column:c}=o??{};for(const u of t){const{rowNode:t,column:h}=u,g=rb(e,u);if(!g){if(t&&h){const n=r.getValue(h,t,void 0,"api"),s=o?.rowNode===t&&o?.column===h,d=s&&i||void 0,c=d??a?.getCellDataValue(u,!1)??r.getValueForDisplay({column:h,node:t})?.value??n??cb;l?.setEdit(u,{pendingValue:Rb(e,c,!1,h),sourceValue:n,state:"editing"})}continue}const p=s&&d===g.rowNode&&g.column===c;fb(e,{rowNode:d,column:g.column},{key:p?i:null,event:p?n:null,cellStartedEdit:p&&s})}}function pb({pendingValue:e,sourceValue:t}){return e===cb&&(e=t),e!==t}function fb(e,t,o){const{key:i,event:n,cellStartedEdit:s,silent:r}=o??{},{editModelSvc:a,editSvc:l,gos:d,userCompFactory:c}=e,u=rb(e,t),h=u?.comp?.getCellEditor(),g=vb(e,t,i,s&&!r),p=t.column.isAllowFormula(),f=a?.getEdit(t),m=g.value??f?.sourceValue;if(h)return a?.setEdit(t,{editorValue:Rb(e,m,!0,t.column),state:"editing"}),void h.refresh?.(g);const v=t.column.getColDef(),C=Js(c,p?{...v,cellEditor:"agTextCellEditor"}:v,g);if(!C)return;const{popupFromSelector:w,popupPositionFromSelector:b}=C,y=w??!!v.cellEditorPopup,S=b??v.cellEditorPopupPosition;if(bb(C.params,n),!u)return;const{rangeFeature:R,rowCtrl:x,comp:E,onEditorAttachedFuncs:F}=u;a?.setEdit(t,{editorValue:Rb(e,m,!0,t.column),state:"editing"}),u.editCompDetails=C,F.push(()=>R?.unsetComp()),E?.setEditDetails(C,y,S,d.get("reactiveCustomComponents")),x?.refreshRow({suppressFlash:!0});const P=a?.getEdit(t,!0);r||P?.editorState?.cellStartedEditing||(l?.dispatchCellEvent(t,n,"cellEditingStarted",{value:m}),a?.setEdit(t,{editorState:{cellStartedEditing:!0}}))}function mb(e,t,o){const i={editorValueExists:!1};if(kb(e)){const e=t.getValidationErrors?.();if((e?.length??0)>0)return i}if(o?.isCancelling)return i;if(o?.isStopping){const e=t?.isCancelAfterEnd?.();if(e)return{...i,isCancelAfterEnd:e}}const n=t.getValue();return{editorValue:n,editorValueExists:!0}}function vb(e,t,o,i){const{valueSvc:n,gos:s,editSvc:r}=e,a=e.gos.get("enableGroupEdit"),l=rb(e,t),d=t.rowNode?.rowIndex??void 0,c=r?.isBatchEditing(),u=e.colModel.getCol(t.column.getId()),{rowNode:h,column:g}=t,p=l.comp?.getCellEditor(),f=r?.getCellDataValue(t,!1),m=void 0===f?p?mb(e,p)?.editorValue:void 0:f,v=m===cb?n.getValueForDisplay({column:u,node:h})?.value:m;let C=a?m:v;return g.isAllowFormula()&&e.formula?.isFormula(C)&&(C=e.formula?.normaliseFormula(C,!0)??C),Ti(s,{value:C,eventKey:o??null,column:g,colDef:g.getColDef(),rowIndex:d,node:h,data:h.data,cellStartedEdit:i??!1,onKeyDown:l?.onKeyDown.bind(l),stopEditing:o=>{r.stopEditing(t,{source:c?"ui":"api",suppressNavigateAfterEdit:o}),Fb(e,t)},eGridCell:l?.eGui,parseValue:e=>n.parseValue(u,h,e,l?.value),formatValue:l?.formatValue.bind(l),validate:()=>{r?.validateEdit()}})}function Cb(e,t){const{editModelSvc:o}=e;o?.getEditMap().forEach((e,i)=>{e.forEach((e,n)=>{(t||"editing"!==e.state&&e.pendingValue!==cb)&&(pb(e)||"editing"===e.state&&!t||o?.removeEdits({rowNode:i,column:n}))})})}function wb(e,t){const o=t.comp?.getCellEditor();if(!o?.refresh)return;const{eventKey:i,cellStartedEdit:n}=t.editCompDetails.params,{column:s}=t,r=vb(e,t,i,n),a=s.getColDef(),l=Js(e.userCompFactory,a,r);o.refresh(bb(l.params,i))}function bb(e,t){return t instanceof KeyboardEvent&&"agNumberCellEditor"===e.column.getColDef().cellEditor?e.suppressPreventDefault=["-","+",".","e"].includes(t?.key??"")||e.suppressPreventDefault:t?.preventDefault?.(),e}function yb(e,t){for(const o of e.editModelSvc?.getEditPositions()??[]){const i=rb(e,o);if(!i)continue;const n=i.comp?.getCellEditor();if(!n)continue;const{editorValue:s,editorValueExists:r,isCancelAfterEnd:a}=mb(e,n,t);a&&e.editModelSvc?.setEdit(o,{editorState:{isCancelAfterEnd:a}}),Sb(e,o,s,void 0,!r,t)}}function Sb(e,t,o,i,n,s){const{editModelSvc:r,valueSvc:a}=e;if(!r)return;const{rowNode:l,column:d}=t;if(!l||!d)return;let c=r.getEdit(t,!0);if(!c?.sourceValue){const o={sourceValue:a.getValue(d,l,void 0,"api"),pendingValue:c?Rb(e,c.editorValue,!1,d):cb};s?.persist&&(o.state="changed"),c=r.setEdit(t,o)}r.setEdit(t,{editorValue:n?Rb(e,c.sourceValue,!0,d):o}),s?.persist&&xb(e,t)}function Rb(e,t,o,i){const{formula:n}=e;return i.isAllowFormula()&&n?.isFormula(t)?n?.normaliseFormula(t,o)??t:t}function xb(e,t){const{editModelSvc:o}=e,i=o?.getEdit(t,!0);o?.setEdit(t,{pendingValue:Rb(e,i?.editorValue,!1,t.column)})}function Eb(e,t,o){t||(t=e.editModelSvc?.getEditPositions());for(const i of t??[])Fb(e,i,o)}function Fb(e,t,o){const i=e.gos.get("enableGroupEdit"),{editModelSvc:n}=e,s=rb(e,t),r=n?.getEdit(t,!0);if(!s)return void(r&&n?.setEdit(t,{state:"changed"}));const{comp:a}=s;if(a&&!a.getCellEditor()){if(s?.refreshCell(),r){n?.setEdit(t,{state:"changed"});const s=i?Pb(o,r):{valueChanged:!1,newValue:void 0,oldValue:r.sourceValue};Db(e,t,s,o)}return}if(kb(e)){const e=a?.getCellEditor()?.getValidationErrors?.(),o=n?.getCellValidationModel();e?.length?o?.setCellValidation(t,{errorMessages:e}):o?.clearCellValidation(t)}n?.setEdit(t,{state:"changed"}),a?.setEditDetails(),a?.refreshEditStyles(!1,!1),s?.refreshCell({force:!0,suppressFlash:!0});const l=n?.getEdit(t);if(l&&"changed"===l.state){const n=i?Pb(o,l):{valueChanged:pb(l)&&!o?.cancel,newValue:o?.cancel||l.editorState.isCancelAfterEnd?void 0:l?.editorValue??r?.pendingValue,oldValue:l?.sourceValue};Db(e,t,n,o)}}function Pb(e,t){return e?.cancel?{valueChanged:!1,oldValue:t.sourceValue,newValue:void 0,value:t.sourceValue}:{valueChanged:pb(t),oldValue:t.sourceValue,newValue:t.pendingValue,value:t.sourceValue}}function Db(e,t,o,{silent:i,event:n}={}){const{editSvc:s,editModelSvc:r}=e,a=r?.getEdit(t),{editorState:l}=a||{},{isCancelBeforeStart:d}=l||{};i||d||(s?.dispatchCellEvent(t,n,"cellEditingStopped",o),r?.setEdit(t,{editorState:{cellStoppedEditing:!0}}))}function kb(e){const{gos:t,colModel:o}=e,i=!!t.get("getFullRowEditValidationErrors"),n=o.getColumnDefs()?.filter(e=>e.editable).some(({cellEditorParams:e})=>{const{minLength:t,maxLength:o,getValidationErrors:i,min:n,max:s}=e||{};return void 0!==t||void 0!==o||void 0!==i||void 0!==n||void 0!==s}),s=e.gridApi.getCellEditorInstances().some(e=>e.getValidationElement||e.getValidationErrors);return n||i||s}function Mb(e,t){if(!t&&!kb(e))return;const o=ub(e),i=new ib,{ariaAnnounce:n,localeSvc:s,editModelSvc:r,gos:a}=e,l="fullRow"===a.get("editType"),d=ut(s),c=d("ariaValidationErrorPrefix","Cell Editor Validation");for(const h of o){const{ctrl:e,editor:t}=h,{rowNode:o,column:s}=e,r=t.getValidationErrors?.()??[],a=t.getValidationElement?.(!1)||!t.isPopup?.()&&e.eGui;if(a){const e=null!=r&&r.length>0,t=e?r.join(". "):"";H(a,e),e&&n.announceValue(`${c} ${r}`,"editorValidation"),a instanceof HTMLInputElement?a.setCustomValidity(t):a.classList.toggle("invalid",e)}r?.length>0&&i.setCellValidation({rowNode:o,column:s},{errorMessages:r})}yb(e,{persist:!1}),r?.setCellValidationModel(i);const u=new Set;for(const{ctrl:h}of o)u.add(h.rowCtrl);if(l){const t=Ab(e);r?.setRowValidationModel(t)}for(const h of u.values()){h.rowEditStyleFeature?.applyRowStyles();for(const e of h.getAllCellCtrls())e.tooltipFeature?.refreshTooltip(!0),e.editorTooltipFeature?.refreshTooltip(!0),e.editStyleFeature?.applyCellStyles?.()}}var Ab=e=>{const t=new nb,o=e.gos.get("getFullRowEditValidationErrors"),i=e.editModelSvc?.getEditMap();if(!i)return t;for(const n of i.keys()){const e=i.get(n);if(!e)continue;const s=[],{rowIndex:r,rowPinned:a}=n;for(const t of e.keys()){const o=e.get(t);if(!o)continue;const{editorValue:i,pendingValue:n,sourceValue:l}=o,d=i??(n===cb?void 0:n)??l;s.push({column:t,colId:t.getColId(),rowIndex:r,rowPinned:a,oldValue:l,newValue:d})}const l=o?.({editorsState:s})??[];l.length>0&&t.setRowValidation({rowNode:n},{errorMessages:l})}return t};function Tb(e){Mb(e,!0);const t=e.editModelSvc?.getCellValidationModel().getCellValidationMap();if(!t)return null;const o=[];return t.forEach((e,t)=>{e.forEach(({errorMessages:e},i)=>{o.push({column:i,rowIndex:t.rowIndex,rowPinned:t.rowPinned,messages:e??null})})}),o}function Ib(e,t,o,{rowNode:i,column:n},s){const r=Ti(e.gos,{type:o,node:i,data:i.data,value:s,column:n,colDef:n.getColDef(),rowPinned:i.rowPinned,event:t,rowIndex:i.rowIndex});return r}function Lb(e,t=!1){return e===lr.DELETE||!t&&e===lr.BACKSPACE&&Fr()}var Bb=class extends Ct{constructor(e,t,o,i){super(),this.cellCtrl=e,this.rowNode=o,this.rowCtrl=i,this.beans=t}init(){this.eGui=this.cellCtrl.eGui}onKeyDown(e){const t=e.key;switch(t){case lr.ENTER:this.onEnterKeyDown(e);break;case lr.F2:this.onF2KeyDown(e);break;case lr.ESCAPE:this.onEscapeKeyDown(e);break;case lr.TAB:this.onTabKeyDown(e);break;case lr.BACKSPACE:case lr.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case lr.DOWN:case lr.UP:case lr.RIGHT:case lr.LEFT:this.onNavigationKeyDown(e,t);break}}onNavigationKeyDown(e,t){const{cellCtrl:o,beans:i}=this;if(!i.editSvc?.isEditing(o,{withOpenEditor:!0})){if(e.shiftKey&&o.isRangeSelectionEnabled())this.onShiftRangeSelect(e);else{const n=o.getFocusedCellPosition();i.navigation?.navigateToNextCell(e,t,n,!0)}e.preventDefault()}}onShiftRangeSelect(e){const{rangeSvc:t,navigation:o}=this.beans;if(!t)return;const i=t.extendLatestRangeInDirection(e);i&&(e.key===lr.LEFT||e.key===lr.RIGHT?o?.ensureColumnVisible(i.column):o?.ensureRowVisible(i.rowIndex))}onTabKeyDown(e){this.beans.navigation?.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){const{cellCtrl:o,beans:i,rowNode:n}=this,{gos:s,rangeSvc:r,eventSvc:a,editSvc:l}=i;if(a.dispatchEvent({type:"keyShortcutChangedCellStart"}),Lb(e,s.get("enableCellEditingOnBackspace"))&&!l?.isEditing(o,{withOpenEditor:!0})){if(r&&ui(s))r.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(o.isCellEditable()){const{column:e}=o,t=this.beans.valueSvc.getDeleteValue(e,n);n.setDataValue(e,t,"cellClear")}}else l?.isEditing(o,{withOpenEditor:!0})||i.editSvc?.startEditing(o,{startedEdit:!0,event:t});a.dispatchEvent({type:"keyShortcutChangedCellEnd"})}onEnterKeyDown(e){const{cellCtrl:t,beans:o}=this,{editSvc:i,navigation:n}=o,s=i?.isEditing(t,{withOpenEditor:!0}),r=t.rowNode,a=i?.isRowEditing(r,{withOpenEditor:!0}),l=t=>{const o=i?.startEditing(t,{startedEdit:!0,event:e,source:"edit"});o&&e.preventDefault()};if(s||a){if(this.isCtrlEnter(e))return void i?.applyBulkEdit(t,o?.rangeSvc?.getCellRanges()||[]);if(Mb(o),"block-stop"===i?.checkNavWithValidation(void 0,e))return;i?.isEditing(t,{withOpenEditor:!0})?i?.stopEditing(t,{event:e,source:"edit"}):a&&!t.isCellEditable()?i?.stopEditing({rowNode:r},{event:e,source:"edit"}):l(t)}else if(o.gos.get("enterNavigatesVertically")){const o=e.shiftKey?lr.UP:lr.DOWN;n?.navigateToNextCell(null,o,t.cellPosition,!1)}else{if(i?.hasValidationErrors())return;i?.hasValidationErrors(t)&&i.revertSingleCellEdit(t,!0),l(t)}}isCtrlEnter(e){return(e.ctrlKey||e.metaKey)&&e.key===lr.ENTER}onF2KeyDown(e){const{cellCtrl:t,beans:{editSvc:o}}=this,i=o?.isEditing();i&&(Mb(this.beans),"block-stop"===o?.checkNavWithValidation(void 0,e))||o?.startEditing(t,{startedEdit:!0,event:e})}onEscapeKeyDown(e){const{cellCtrl:t,beans:{editSvc:o}}=this;"block-stop"===o?.checkNavWithValidation(t,e)&&o.revertSingleCellEdit(t),setTimeout(()=>{o?.stopEditing(t,{event:e,cancel:!0})})}processCharacter(e){const t=e.target,o=t!==this.eGui,{beans:{editSvc:i},cellCtrl:n}=this;if(o)return;if(i?.isEditing(n,{withOpenEditor:!0}))return;const s=e.key;if(s===lr.SPACE)this.onSpaceKeyDown(e);else if(i?.isCellEditable(n,"ui")){if(i?.hasValidationErrors()&&!i?.hasValidationErrors(n))return;i?.startEditing(n,{startedEdit:!0,event:e,source:"api"});const t=n.editCompDetails,o=!t?.params?.suppressPreventDefault;o&&e.preventDefault()}}onSpaceKeyDown(e){const{gos:t,editSvc:o}=this.beans,{rowNode:i}=this.cellCtrl;!o?.isEditing(this.cellCtrl,{withOpenEditor:!0})&&Bo(t)&&this.beans.selectionSvc?.handleSelectionEvent(e,i,"spaceKey"),e.preventDefault()}},Ob=class extends Ct{constructor(e,t,o){super(),this.cellCtrl=e,this.column=o,this.beans=t}onMouseEvent(e,t){if(!Rc(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t);break}}onCellClicked(e){if(this.beans.touchSvc?.handleCellDoubleClick(this,e))return;const{eventSvc:t,rangeSvc:o,editSvc:i,editModelSvc:n,frameworkOverrides:s,gos:r}=this.beans,a=e.ctrlKey||e.metaKey,{cellCtrl:l}=this,{column:d,cellPosition:c,rowNode:u}=l,h=Nc(r,d,u,e);o&&a&&!h&&o.getCellRangeCount(c)>1&&o.intersectLastRange(!0);const g=l.createEvent(e,"cellClicked");g.isEventHandlingSuppressed=h,t.dispatchEvent(g);const p=d.getColDef();if(p.onCellClicked&&window.setTimeout(()=>{s.wrapOutgoing(()=>{p.onCellClicked(g)})},0),!h&&"editing"!==n?.getState(l)){const t=i?.isEditing(),o=n?.getCellValidationModel().getCellValidationMap().size??0,s=n?.getRowValidationModel().getRowValidationMap().size??0;if(t&&(o>0||s>0))return;i?.shouldStartEditing(l,e)?i?.startEditing(l,{event:e}):i?.shouldStopEditing(l,e)&&("fullRow"===this.beans.gos.get("editType")?i?.stopEditing(l,{event:e,source:"edit"}):i?.stopEditing(void 0,{event:e,source:"edit"}))}}onCellDoubleClicked(e){const{column:t,beans:o,cellCtrl:i}=this,{eventSvc:n,frameworkOverrides:s,editSvc:r,editModelSvc:a,gos:l}=o,d=Nc(l,i.column,i.rowNode,e),c=t.getColDef(),u=i.createEvent(e,"cellDoubleClicked");if(u.isEventHandlingSuppressed=d,n.dispatchEvent(u),"function"===typeof c.onCellDoubleClicked&&window.setTimeout(()=>{s.wrapOutgoing(()=>{c.onCellDoubleClicked(u)})},0),!d&&r?.shouldStartEditing(i,e)&&"editing"!==a?.getState(i)){const t=r?.isEditing(),o=a?.getCellValidationModel().getCellValidationMap().size??0,n=a?.getRowValidationModel().getRowValidationMap().size??0;if(t&&(o>0||n>0))return;r?.startEditing(i,{event:e})}}onMouseDown(e){const{shiftKey:t}=e,o=e.target,{cellCtrl:i,beans:n}=this,{eventSvc:s,rangeSvc:r,rowNumbersSvc:a,focusSvc:l,gos:d,editSvc:c}=n,{column:u,rowNode:h,cellPosition:g}=i,p=Nc(d,u,h,e),f=()=>{const t=i.createEvent(e,"cellMouseDown");t.isEventHandlingSuppressed=p,s.dispatchEvent(t)};if(p)return void f();if(this.isRightClickInExistingRange(e))return;const m=r&&!r.isEmpty(),v=this.containsWidget(o),C=Cn(u);if(!a||!C||a.handleMouseDownOnCell(g,e)){if(!t||!m){const t=c?.isEditing(i),n=d.get("enableCellTextSelection"),s=n&&e.defaultPrevented,r=(xr()||s)&&!t&&!ue(o)&&!v;i.focusCell(r,e)}if(t&&m&&!l.isCellFocused(g)){e.preventDefault();const t=l.getFocusedCell();if(t){const{column:o,rowIndex:i,rowPinned:n}=t;c?.isEditing(t)&&c?.stopEditing(t),l.setFocusedCell({column:o,rowIndex:i,rowPinned:n,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,sourceEvent:e})}}v||(r?.handleCellMouseDown(e,g),f())}}isRightClickInExistingRange(e){const{rangeSvc:t}=this.beans;if(t){const o=t.isCellInAnyRange(this.cellCtrl.cellPosition),i=Li(this.beans,e);if(o&&i)return!0}return!1}containsWidget(e){return fe(e,"ag-selection-checkbox",3)||fe(e,"ag-drag-handle",3)}onMouseOut(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:o}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),o?.clearMouseOver()}onMouseOver(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:o}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),o?.setMouseOver([this.column])}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;const t=this.cellCtrl.eGui,o=t.contains(e.target),i=t.contains(e.relatedTarget);return o&&i}},Hb=class extends Ct{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.column=e.column,this.rowNode=e.rowNode}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}init(){this.eSetLeft=this.cellCtrl.getRootElement(),this.eContent=this.cellCtrl.eGui;const e=this.cellCtrl.getCellSpan();if(e||(this.setupColSpan(),this.setupRowSpan()),this.onLeftChanged(),this.onWidthChanged(),e||this._legacyApplyRowSpan(),e){const t=this.refreshSpanHeight.bind(this,e);t(),this.addManagedListeners(this.beans.eventSvc,{paginationChanged:t,recalculateRowBounds:t,pinnedHeightChanged:t})}}refreshSpanHeight(e){const t=e.getCellHeight();null!=t&&(this.eContent.style.height=`${t}px`)}onNewColumnsLoaded(){const e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this._legacyApplyRowSpan(!0))}onDisplayColumnsChanged(){const e=this.getColSpanningList();on(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eContent)return;const e=this.getCellWidth();this.eContent.style.width=`${e}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((e,t)=>e+t.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){const{column:e,rowNode:t}=this,o=e.getColSpan(t),i=[];if(1===o)i.push(e);else{let t=e;const n=e.getPinned();for(let e=0;t&&e<o;e++){if(i.push(t),t=this.beans.visibleCols.getColAfter(t),!t||r(t))break;if(n!==t.getPinned())break}}return i}onLeftChanged(){if(!this.eSetLeft)return;const e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eSetLeft.style.left=e+"px"}getCellLeft(){let e;return e=this.beans.gos.get("enableRtl")&&this.colsSpanning?tn(this.colsSpanning):this.column,e.getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.printLayout||"left"===this.column.getPinned())return e;const{visibleCols:t}=this.beans,o=t.getColsLeftWidth();if("right"===this.column.getPinned()){const i=t.bodyWidth;return o+i+(e||0)}return o+(e||0)}_legacyApplyRowSpan(e){if(1===this.rowSpan&&!e)return;const t=zo(this.beans),o=t*this.rowSpan;this.eContent.style.height=`${o}px`,this.eContent.style.zIndex="1"}destroy(){super.destroy()}},Vb="ag-cell",Gb="ag-cell-auto-height",Nb="ag-cell-normal-height",zb="ag-cell-focus",Wb="ag-cell-first-right-pinned",_b="ag-cell-last-left-pinned",Ub="ag-cell-not-inline-editing",$b="ag-cell-wrap-text",qb=0,jb=class extends Ct{constructor(e,t,o,i){super(),this.column=e,this.rowNode=t,this.rowCtrl=i,this.rangeFeature=void 0,this.rowResizeFeature=void 0,this.positionFeature=void 0,this.customStyleFeature=void 0,this.editStyleFeature=void 0,this.mouseListener=void 0,this.keyboardListener=void 0,this.suppressRefreshCell=!1,this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.focusEventWhileNotReady=null,this.hasBeenFocused=!1,this.hasEdit=!1,this.tooltipFeature=void 0,this.editorTooltipFeature=void 0,this.formulaTooltipFeature=void 0,this.beans=o,this.gos=o.gos,this.editSvc=o.editSvc,this.hasEdit=!!o.editSvc;const{colId:n}=e;this.instanceId=n+"-"+qb++,this.createCellPosition(),this.updateAndFormatValue(!1)}addFeatures(){const{beans:e}=this;this.positionFeature=new Hb(this,e),this.customStyleFeature=e.cellStyles?.createCellCustomStyleFeature(this),this.editStyleFeature=e.editSvc?.createCellStyleFeature(this),this.mouseListener=new Ob(this,e,this.column),this.keyboardListener=new Bb(this,e,this.rowNode,this.rowCtrl),this.enableTooltipFeature(),this.enableFormulaTooltipFeature();const{rangeSvc:t}=e,o=t&&ui(e.gos);o&&(this.rangeFeature=t.createCellRangeFeature(this)),Cn(this.column)&&(this.rowResizeFeature=this.beans.rowNumbersSvc.createRowNumbersRowResizerFeature(this))}isCellSpanning(){return!1}getCellSpan(){}removeFeatures(){const e=this.beans.context;this.positionFeature=e.destroyBean(this.positionFeature),this.editorTooltipFeature=e.destroyBean(this.editorTooltipFeature),this.customStyleFeature=e.destroyBean(this.customStyleFeature),this.editStyleFeature=e.destroyBean(this.editStyleFeature),this.mouseListener=e.destroyBean(this.mouseListener),this.keyboardListener=e.destroyBean(this.keyboardListener),this.rangeFeature=e.destroyBean(this.rangeFeature),this.rowResizeFeature=e.destroyBean(this.rowResizeFeature),this.disableTooltipFeature(),this.disableFormulaTooltipFeature()}enableTooltipFeature(e,t){this.tooltipFeature=this.beans.tooltipSvc?.enableCellTooltipFeature(this,e,t)}enableFormulaTooltipFeature(){this.formulaTooltipFeature=this.beans.tooltipSvc?.setupFormulaTooltip(this)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}disableFormulaTooltipFeature(){this.formulaTooltipFeature=this.beans.context.destroyBean(this.formulaTooltipFeature)}enableEditorTooltipFeature(e){this.editorTooltipFeature&&this.disableEditorTooltipFeature(),this.editorTooltipFeature=this.beans.tooltipSvc?.setupCellEditorTooltip(this,e),Mb(this.beans)}disableEditorTooltipFeature(){this.editorTooltipFeature=this.beans.context.destroyBean(this.editorTooltipFeature)}setComp(e,t,o,i,n,s,r){if(this.comp=e,this.eGui=t,this.printLayout=n,r??(r=this),this.addDomData(r),this.addFeatures(),r.addDestroyFunc(()=>this.removeFeatures()),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.setupFocus(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(i,r),this.refreshFirstAndLastStyles(),this.checkFormulaError(),this.refreshAriaColIndex(),this.positionFeature?.init(),this.customStyleFeature?.setComp(e),this.editStyleFeature?.setComp(e),this.tooltipFeature?.refreshTooltip(),this.keyboardListener?.init(),this.rangeFeature?.setComp(e),this.rowResizeFeature?.refreshRowResizer(),s&&this.isCellEditable()||this.hasEdit&&this.editSvc?.isEditing(this,{withOpenEditor:!0})?this.editSvc?.startEditing(this,{startedEdit:!1,source:"api",silent:!0,continueEditing:!0}):this.showValue(!1,!0),this.onCompAttachedFuncs.length){for(const e of this.onCompAttachedFuncs)e();this.onCompAttachedFuncs=[]}}checkFormulaError(){const e=!!this.beans.formula?.getFormulaError(this.column,this.rowNode);this.eGui.classList.toggle("formula-error",e),this.formulaTooltipFeature?.refreshTooltip(),e?this.disableTooltipFeature():this.enableTooltipFeature()}setupAutoHeight(e,t){this.isAutoHeight=this.beans.rowAutoHeight?.setupCellAutoHeight(this,e,t)??!1}getCellAriaRole(){return this.column.getColDef().cellAriaRole??"gridcell"}isCellRenderer(){const e=this.column.getColDef();return null!=e.cellRenderer||null!=e.cellRendererSelector}getValueToDisplay(){return this.valueFormatted??this.value}getDeferLoadingCellRenderer(){const{beans:e,column:t}=this,{userCompFactory:o,ctrlsSvc:i,eventSvc:n}=e,s=t.getColDef(),r=this.createCellRendererParams();r.deferRender=!0;const a=Zs(o,s,r);if(i.getGridBodyCtrl()?.scrollFeature?.isScrolling()){let e;const t=new Cs(t=>{e=t}),[o]=this.addManagedListeners(n,{bodyScrollEnd:()=>{e(),o()}});return{loadingComp:a,onReady:t}}return{loadingComp:a,onReady:Cs.resolve()}}showValue(e,t){const{beans:o,column:i,rowNode:n,rangeFeature:s}=this,{userCompFactory:r}=o;let a,l=this.getValueToDisplay();const d=n.stub&&null==n.groupData?.[i.getId()],c=i.getColDef();if(d||this.isCellRenderer()){const e=this.createCellRendererParams();a=!d||Cn(i)?Xs(r,c,e):Zs(r,c,e)}if(!a&&!d&&o.findSvc?.isMatch(n,i)){const e=this.createCellRendererParams();a=Xs(r,{...i.getColDef(),cellRenderer:"agFindCellRenderer"},e)}if(this.hasEdit&&this.editSvc.isBatchEditing()&&this.editSvc.isRowEditing(n,{checkSiblings:!0})){const e=this.editSvc.prepDetailsDuringBatch(this,{compDetails:a,valueToDisplay:l});e&&(e.compDetails?a=e.compDetails:e.valueToDisplay&&(l=e.valueToDisplay))}this.comp.setRenderDetails(a,l,e),this.customRowDragComp?.refreshVisibility(),!t&&s&&_e(o,()=>s?.refreshHandle()),this.rowResizeFeature?.refreshRowResizer()}setupControlComps(){const e=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(e),!0),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.comp.setIncludeSelection(this.includeSelection),this.comp.setIncludeDndSource(this.includeDndSource),this.comp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}getCellValueClass(){const e="ag-cell-value",t="agCheckboxCellRenderer"===this.column.getColDef().cellRenderer;let o="";return t&&(o=" ag-allow-overflow"),`${e}${o}`}isIncludeControl(e,t=!1){const o=null==this.rowNode.rowPinned;return(o||t&&Mg(this.rowNode))&&!!e}isCheckboxSelection(e){const{rowSelection:t,groupDisplayType:o}=this.beans.gridOptions,i=ri(t),n=vn(this.column);return("custom"!==o||"selectionColumn"===i||!n)&&(e.checkboxSelection||n&&"object"===typeof t&&ni(t))}refreshShouldDestroy(){const e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(e),!0),o=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),i=this.includeDndSource!=this.isIncludeControl(e.dndSource),n=this.isAutoHeight!=this.column.isAutoHeight();return t||o||i||n}onPopupEditorClosed(){const{editSvc:e}=this.beans;e?.isEditing(this,{withOpenEditor:!0})&&e?.stopEditing(this,{source:e?.isBatchEditing()?"ui":"api"})}stopEditing(e=!1){const{editSvc:t}=this.beans;return t?.stopEditing(this,{cancel:e,source:t?.isBatchEditing()?"ui":"api"})??!1}createCellRendererParams(){const{value:e,valueFormatted:t,column:o,rowNode:i,comp:n,eGui:s,beans:{valueSvc:r,gos:a,editSvc:l}}=this,d=Ti(a,{value:e,valueFormatted:t,getValue:()=>r.getValueForDisplay({column:o,node:i}).value,setValue:e=>l?.setDataValue({rowNode:i,column:o},e)||i.setDataValue(o,e),formatValue:this.formatValue.bind(this),data:i.data,node:i,pinned:o.getPinned(),colDef:o.getColDef(),column:o,refreshCell:this.refreshCell.bind(this),eGridCell:s,eParentOfValue:n.getParentOfValue(),registerRowDragger:(e,t,o,i)=>this.registerRowDragger(e,t,i),setTooltip:(e,t)=>{a.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(e,t),this.tooltipFeature?.refreshTooltip()}});return d}onCellChanged(e){const t=e.column===this.column;t&&this.refreshCell({})}refreshOrDestroyCell(e){if(this.refreshShouldDestroy()?this.rowCtrl?.recreateCell(this):this.refreshCell(e),this.hasEdit&&this.editCompDetails){const{editSvc:e,comp:t}=this;!t?.getCellEditor()&&e.isEditing(this,{withOpenEditor:!0})&&e.startEditing(this,{startedEdit:!1,source:"api",silent:!0})}}refreshCell({force:e,suppressFlash:t,newData:o}={}){const{editStyleFeature:i,customStyleFeature:n,rowCtrl:{rowEditStyleFeature:s},beans:{cellFlashSvc:r,filterManager:a},column:l,comp:d,suppressRefreshCell:c,tooltipFeature:u}=this;if(c)return;const{field:h,valueGetter:g,showRowGroup:p,enableCellChangeFlash:f}=l.getColDef(),m=null==h&&null==g&&null==p,v=e||m||o,C=!!d,w=this.updateAndFormatValue(C),b=v||w;if(C){if(b){this.showValue(!!o,!1);const e=a?.isSuppressFlashingCellsBecauseFiltering(),l=!t&&!e&&f;l&&r?.flashCell(this),i?.applyCellStyles?.(),n?.applyUserStyles(),n?.applyClassesFromColDef(),s?.applyRowStyles(),this.checkFormulaError()}u?.refreshTooltip(),n?.applyCellClassRules()}}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(e){return this.callValueFormatter(e)??e}callValueFormatter(e){return this.beans.valueSvc.formatValue(this.column,this.rowNode,e)}updateAndFormatValue(e){const t=this.value,o=this.valueFormatted,{value:i,valueFormatted:n}=this.beans.valueSvc.getValueForDisplay({column:this.column,node:this.rowNode,includeValueFormatted:!0});return this.value=i,this.valueFormatted=n,!e||(!this.valuesAreEqual(t,this.value)||this.valueFormatted!=o)}valuesAreEqual(e,t){const o=this.column.getColDef();return o.equals?o.equals(e,t):e===t}addDomData(e){const t=this.eGui;Uo(this.beans.gos,t,Uc,this),e.addDestroyFunc(()=>Uo(this.beans.gos,t,Uc,null))}createEvent(e,t){const{rowNode:o,column:i,value:n,beans:s}=this;return Ib(s,e,t,{rowNode:o,column:i},n)}processCharacter(e){this.keyboardListener?.processCharacter(e)}onKeyDown(e){this.keyboardListener?.onKeyDown(e)}onMouseEvent(e,t){this.mouseListener?.onMouseEvent(e,t)}getColSpanningList(){return this.positionFeature?.getColSpanningList()??[]}onLeftChanged(){this.comp&&this.positionFeature?.onLeftChanged()}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){const{comp:e,column:t,beans:o}=this;Nu(e,t,o.visibleCols)}refreshAriaColIndex(){const e=this.beans.visibleCols.getAriaColIndex(this.column);Y(this.eGui,e)}onWidthChanged(){return this.positionFeature?.onWidthChanged()}getRowPosition(){const{rowIndex:e,rowPinned:t}=this.cellPosition;return{rowIndex:e,rowPinned:t}}updateRangeBordersIfRangeCount(){this.comp&&this.rangeFeature?.updateRangeBordersIfRangeCount()}onCellSelectionChanged(){this.comp&&this.rangeFeature?.onCellSelectionChanged()}isRangeSelectionEnabled(){return null!=this.rangeFeature}focusCell(e=!1,t){const o=this.editSvc?.allowedFocusTargetOnValidation(this);o&&o!==this||this.beans.focusSvc.setFocusedCell({...this.getFocusedCellPosition(),forceBrowserFocus:e,sourceEvent:t})}restoreFocus(e=!1){const{beans:{editSvc:t,focusSvc:o},comp:i}=this;if(!i||t?.isEditing(this)||!this.isCellFocused()||!o.shouldTakeFocus())return;const n=()=>{if(!this.isAlive())return;const e=i.getFocusableElement();this.isCellFocused()&&e.focus({preventScroll:!0})};e?setTimeout(n,0):n()}onRowIndexChanged(){this.createCellPosition(),this.onCellFocused(),this.restoreFocus(),this.rangeFeature?.onCellSelectionChanged(),this.rowResizeFeature?.refreshRowResizer()}onSuppressCellFocusChanged(e){const t=this.eGui;t&&(Cn(this.column)&&(e=!0),ze(t,"tabindex",e?void 0:-1))}onFirstRightPinnedChanged(){if(!this.comp)return;const e=this.column.isFirstRightPinned();this.comp.toggleCss(Wb,e)}onLastLeftPinnedChanged(){if(!this.comp)return;const e=this.column.isLastLeftPinned();this.comp.toggleCss(_b,e)}checkCellFocused(){return this.beans.focusSvc.isCellFocused(this.cellPosition)}isCellFocused(){const e=this.checkCellFocused();return this.hasBeenFocused||(this.hasBeenFocused=e),e}setupFocus(){this.restoreFocus(!0),this.onCellFocused(this.focusEventWhileNotReady??void 0)}onCellFocused(e){const{beans:t}=this;if(rh(t))return;if(!this.comp)return void(e&&(this.focusEventWhileNotReady=e));const o=this.isCellFocused(),i=t.editSvc?.isEditing(this)??!1;if(this.comp.toggleCss(zb,o),o&&e?.forceBrowserFocus){let t=this.comp.getFocusableElement();if(i){const e=Nr(t,null,!0);e.length&&(t=e[0])}t.focus({preventScroll:!!e.preventScrollOnBrowserFocus})}o&&e&&this.rowCtrl.announceDescription()}createCellPosition(){const{rowIndex:e,rowPinned:t}=this.rowNode;this.cellPosition={rowIndex:e,rowPinned:n(t),column:this.column}}applyStaticCssClasses(){const{comp:e}=this;e.toggleCss(Vb,!0),e.toggleCss(Ub,!0);const t=1==this.column.isAutoHeight();e.toggleCss(Gb,t),e.toggleCss(Nb,!t)}onColumnHover(){this.beans.colHover?.onCellColumnHover(this.column,this.comp)}onColDefChanged(){this.comp&&(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editSvc?.isEditing(this)?this.editSvc?.handleColDefChanged(this):this.refreshOrDestroyCell({force:!0,suppressFlash:!0}))}setWrapText(){const e=1==this.column.getColDef().wrapText;this.comp.toggleCss($b,e)}dispatchCellContextMenuEvent(e){const t=this.column.getColDef(),o=this.createEvent(e,"cellContextMenu"),{beans:i}=this;i.eventSvc.dispatchEvent(o),t.onCellContextMenu&&window.setTimeout(()=>{i.frameworkOverrides.wrapOutgoing(()=>{t.onCellContextMenu(o)})},0)}getCellRenderer(){return this.comp?.getCellRenderer()??null}destroy(){this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.isCellFocused()&&this.hasBrowserFocus()&&this.beans.focusSvc.attemptToRecoverFocus(),super.destroy()}hasBrowserFocus(){return this.eGui?.contains(m(this.beans))??!1}createSelectionCheckbox(){const e=this.beans.selectionSvc?.createCheckboxSelectionComponent();if(e)return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e}createDndSource(){const e=this.beans.registry.createDynamicBean("dndSourceComp",!1,this.rowNode,this.column,this.eGui);return e&&this.beans.context.createBean(e),e}registerRowDragger(e,t,o){if(this.customRowDragComp)return void this.customRowDragComp.setDragElement(e,t);const i=this.createRowDragComp(e,t,o);i&&(this.customRowDragComp=i,this.addDestroyFunc(()=>{this.beans.context.destroyBean(i),this.customRowDragComp=null}),i.refreshVisibility())}createRowDragComp(e,t,o){const i=this.beans.rowDragSvc?.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,e,t,o);if(i)return this.beans.context.createBean(i),i}cellEditorAttached(){for(const e of this.onEditorAttachedFuncs)e();this.onEditorAttachedFuncs=[]}setFocusedCellPosition(e){}getFocusedCellPosition(){return this.cellPosition}refreshAriaRowIndex(){}getRootElement(){return this.eGui}};function Kb(e,t,o,i,n,s){if(null==o&&null==t)return;const r={},a={},l=(e,t)=>{for(const o of e.split(" "))""!=o.trim()&&t(o)};if(o){const t=Object.keys(o);for(let n=0;n<t.length;n++){const s=t[n],d=o[s];let c;"string"===typeof d?c=!e||e.evaluate(d,i):"function"===typeof d&&(c=d(i)),l(s,e=>{c?r[e]=!0:a[e]=!0})}}if(t&&s)for(const d of Object.keys(t))l(d,e=>{r[e]||(a[e]=!0)});s&&Object.keys(a).forEach(s),Object.keys(r).forEach(n)}function Qb(e){if(e.group)return e.level;const t=e.parent;return t?t.level+1:0}var Xb=class extends Ct{constructor(){super(...arguments),this.beanName="rowStyleSvc"}processClassesFromGridOptions(e,t){const o=this.gos,i=t=>{if("string"===typeof t)e.push(t);else if(Array.isArray(t))for(const o of t)e.push(o)},n=o.get("rowClass");n&&i(n);const s=o.getCallback("getRowClass");if(s){const e={data:t.data,node:t,rowIndex:t.rowIndex},o=s(e);i(o)}}preProcessRowClassRules(e,t){this.processRowClassRules(t,t=>{e.push(t)},()=>{})}processRowClassRules(e,t,o){const{gos:i,expressionSvc:n}=this.beans,s=Ti(i,{data:e.data,node:e,rowIndex:e.rowIndex});Kb(n,void 0,i.get("rowClassRules"),s,t,o)}processStylesFromGridOptions(e){const t=this.gos,o=t.get("rowStyle"),i=t.getCallback("getRowStyle");let n;if(i){const t={data:e.data,node:e,rowIndex:e.rowIndex};n=i(t)}if(n||o)return Object.assign({},o,n)}},Yb=0,Zb=class extends Ct{constructor(e,t,o,i,n){super(),this.rowNode=e,this.useAnimationFrameForCreate=i,this.printLayout=n,this.allRowGuis=[],this.active=!0,this.centerCellCtrls={list:[],map:{}},this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}},this.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.rowDragComps=[],this.lastMouseDownOnDragger=!1,this.emptyStyle={},this.updateColumnListsPending=!1,this.rowId=null,this.businessKey=null,this.beans=t,this.gos=t.gos,this.paginationPage=t.pagination?.getCurrentPage()??0,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=e.id+"-"+Yb++,this.rowId=g(e.id),this.initRowBusinessKey(),this.rowFocused=t.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=Qb(this.rowNode),this.setRowType(),this.setAnimateFlags(o),this.rowStyles=this.processStylesFromGridOptions(),this.rowEditStyleFeature=t.editSvc?.createRowStyleFeature(this),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if("function"!==typeof this.businessKeyForNodeFunc)return;const e=this.businessKeyForNodeFunc(this.rowNode);this.businessKey=g(e)}updateGui(e,t){"left"===e?this.leftGui=t:"right"===e?this.rightGui=t:"fullWidth"===e?this.fullWidthGui=t:this.centerGui=t}setComp(e,t,o,i){const{context:n,focusSvc:s}=this.beans;i=ls(this,n,i);const r={rowComp:e,element:t,containerType:o,compBean:i};this.allRowGuis.push(r),this.updateGui(o,r),this.initialiseRowComp(r);const a=this.rowNode,l="FullWidthLoading"===this.rowType||a.stub,d=!a.data&&"infinite"===this.beans.rowModel.getType();l||d||a.rowPinned||this.beans.rowRenderer.dispatchFirstDataRenderedEvent();const c=this.fullWidthGui?.element;if(c){const e=this.beans.editSvc?.isEditing(this);!e&&s.isRowFocused(a.rowIndex,a.rowPinned)&&s.shouldTakeFocus()&&setTimeout(()=>c.focus({preventScroll:!0}),0)}}unsetComp(e){this.allRowGuis=this.allRowGuis.filter(t=>t.containerType!==e),this.updateGui(e,void 0)}isCacheable(){return"FullWidthDetail"===this.rowType&&this.gos.get("keepDetailRows")}setCached(e){const t=e?"none":"";for(const o of this.allRowGuis)o.element.style.display=t}initialiseRowComp(e){const t=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.listenOnDomOrder(e),this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(!1,e),Bo(t)&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);const o=e.rowComp,i=this.getInitialRowClasses(e.containerType);for(const n of i)o.toggleCss(n,!0);this.executeSlideAndFadeAnimations(e),this.rowNode.group&&W(e.element,1==this.rowNode.expanded),this.setRowCompRowId(o),this.setRowCompRowBusinessKey(o),Uo(t,e.element,qc,this),e.compBean.addDestroyFunc(()=>Uo(t,e.element,qc,null)),this.useAnimationFrameForCreate?this.beans.animationFrameSvc.createTask(this.addHoverFunctionality.bind(this,e),this.rowNode.rowIndex,"p2",!1):this.addHoverFunctionality(e),this.isFullWidth()&&this.setupFullWidth(e),t.get("rowDragEntireRow")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameSvc.addDestroyTask(()=>{this.isAlive()&&e.rowComp.toggleCss("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(e){null!=this.businessKey&&e.setRowBusinessKey(this.businessKey)}setRowCompRowId(e){const t=g(this.rowNode.id);this.rowId=t,null!=t&&e.setRowId(t)}executeSlideAndFadeAnimations(e){const{containerType:t}=e,o=this.slideInAnimation[t];o&&(Rt(()=>{this.onTopChanged()}),this.slideInAnimation[t]=!1);const i=this.fadeInAnimation[t];i&&(Rt(()=>{e.rowComp.toggleCss("ag-opacity-zero",!1)}),this.fadeInAnimation[t]=!1)}addRowDraggerToRow(e){const t=this.beans.rowDragSvc?.createRowDragCompForRow(this.rowNode,e.element);if(!t)return;const o=this.createBean(t,this.beans.context);this.rowDragComps.push(o),e.compBean.addDestroyFunc(()=>{this.rowDragComps=this.rowDragComps.filter(e=>e!==o),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,this.beans.context),this.destroyBean(o,this.beans.context)})}setupFullWidth(e){const t=this.getPinnedForContainer(e.containerType),o=this.createFullWidthCompDetails(e.element,t);e.rowComp.showFullWidth(o)}getFullWidthCellRenderers(){return this.gos.get("embedFullWidthRows")?this.allRowGuis.map(e=>e?.rowComp?.getFullWidthCellRenderer()):[this.fullWidthGui?.rowComp?.getFullWidthCellRenderer()]}executeProcessRowPostCreateFunc(){const e=this.gos.getCallback("processRowPostCreate");if(!e||!this.areAllContainersReady())return;const t={eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)};e(t)}areAllContainersReady(){const{leftGui:e,centerGui:t,rightGui:o,beans:{visibleCols:i}}=this,n=!!e||!i.isPinningLeft(),s=!!t,r=!!o||!i.isPinningRight();return n&&s&&r}isNodeFullWidthCell(){if(this.rowNode.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return!!e&&e({rowNode:this.rowNode})}setRowType(){const{rowNode:e,gos:t,beans:{colModel:o}}=this,i=e.stub&&!t.get("suppressServerSideFullWidthLoadingRow")&&!t.get("groupHideOpenParents"),n=this.isNodeFullWidthCell(),s=t.get("masterDetail")&&e.detail,r=o.isPivotMode(),a=Jo(t,e,r);this.rowType=i?"FullWidthLoading":s?"FullWidthDetail":n?"FullWidth":a?"FullWidthGroup":"Normal"}updateColumnLists(e=!1,t=!1){if(this.isFullWidth())return;const{animationFrameSvc:o}=this.beans,i=!o?.active||e||this.printLayout;i?this.updateColumnListsImpl(t):this.updateColumnListsPending||(o.createTask(()=>{this.active&&this.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"p1",!1),this.updateColumnListsPending=!0)}getNewCellCtrl(e){const t=this.beans.rowSpanSvc?.isCellSpanning(e,this.rowNode);if(!t)return new jb(e,this.rowNode,this.beans,this)}isCorrectCtrlForSpan(e){return!this.beans.rowSpanSvc?.isCellSpanning(e.column,this.rowNode)}createCellCtrls(e,t,o=null){const i={list:[],map:{}},n=(e,t,o)=>{null!=o?i.list.splice(o,0,t):i.list.push(t),i.map[e]=t},s=[];for(const d of t){const t=d.getInstanceId();let o=e.map[t];o&&!this.isCorrectCtrlForSpan(o)&&(o.destroy(),o=void 0),o||(o=this.getNewCellCtrl(d)),o&&n(t,o)}for(const d of e.list){const e=d.column.getInstanceId(),t=null!=i.map[e];if(t)continue;const n=!this.isCellEligibleToBeRemoved(d,o);n?s.push([e,d]):d.destroy()}if(s.length)for(const[d,c]of s){const e=i.list.findIndex(e=>e.column.getLeft()>c.column.getLeft()),t=-1===e?void 0:Math.max(e-1,0);n(d,c,t)}const{focusSvc:r,visibleCols:a}=this.beans,l=r.getFocusedCell();if(l&&l.column.getPinned()==o){const e=l.column.getInstanceId(),t=i.map[e];if(!t&&a.allCols.includes(l.column)){const t=this.createFocusedCellCtrl();if(t){const o=i.list.findIndex(e=>e.column.getLeft()>t.column.getLeft()),s=-1===o?void 0:Math.max(o-1,0);n(e,t,s)}}}return i}createFocusedCellCtrl(){const{focusSvc:e,rowSpanSvc:t}=this.beans,o=e.getFocusedCell();if(!o)return;const i=t?.getCellSpan(o.column,this.rowNode);if(i){if(i.firstNode!==this.rowNode||!i.doesSpanContain(o))return}else if(!e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned))return;return this.getNewCellCtrl(o.column)}updateColumnListsImpl(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(e)}setCellCtrls(e){for(const t of this.allRowGuis){const o=this.getCellCtrlsForContainer(t.containerType);t.rowComp.setCellCtrls(o,e)}}getCellCtrlsForContainer(e){switch(e){case"left":return this.leftCellCtrls.list;case"right":return this.rightCellCtrls.list;case"fullWidth":return[];case"center":return this.centerCellCtrls.list}}createAllCellCtrls(){const e=this.beans.colViewport,t=this.beans.visibleCols;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,t.allCols),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{const o=e.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,o);const i=t.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,i,"left");const n=t.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,n,"right")}}isCellEligibleToBeRemoved(e,t){const o=!0,i=!1,{column:n}=e;if(n.getPinned()!=t)return o;if(!this.isCorrectCtrlForSpan(e))return o;const{visibleCols:s,editSvc:r}=this.beans,a=r?.isEditing(e),l=e.isCellFocused(),d=a||l;if(d){const e=s.allCols,t=e.indexOf(n)>=0;return t?i:o}return o}getDomOrder(){const e=this.gos.get("ensureDomOrder");return e||Lo(this.gos,"print")}listenOnDomOrder(e){const t=()=>{e.rowComp.setDomOrder(this.getDomOrder())};e.compBean.addManagedPropertyListeners(["domLayout","ensureDomOrder"],t)}setAnimateFlags(e){if(this.rowNode.sticky||!e)return;const t=s(this.rowNode.oldRowTop),{visibleCols:o}=this.beans,i=o.isPinningLeft(),n=o.isPinningRight();if(t){const{slideInAnimation:e}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows"))return void(e.fullWidth=!0);e.center=!0,e.left=i,e.right=n}else{const{fadeInAnimation:e}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows"))return void(e.fullWidth=!0);e.center=!0,e.left=i,e.right=n}}isFullWidth(){return"Normal"!==this.rowType}refreshFullWidth(){const e=(e,t)=>!e||e.rowComp.refreshFullWidth(()=>{const o=this.createFullWidthCompDetails(e.element,t);return o.params}),t=e(this.fullWidthGui,null),o=e(this.centerGui,null),i=e(this.leftGui,"left"),n=e(this.rightGui,"right"),s=t&&o&&i&&n;return s}addListeners(){const{beans:e,gos:t,rowNode:o}=this,{expansionSvc:i,eventSvc:n,context:s,rowSpanSvc:r}=e;this.addManagedListeners(this.rowNode,{heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this),...i?.getRowExpandedListeners(this)??{}}),o.detail&&this.addManagedListeners(o.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(o,{dataChanged:this.onRowNodeDataChanged.bind(this),cellChanged:this.postProcessCss.bind(this),rowHighlightChanged:this.onRowNodeHighlightChanged.bind(this),draggingChanged:this.postProcessRowDragging.bind(this),uiLevelChanged:this.onUiLevelChanged.bind(this),rowPinned:this.onRowPinned.bind(this)}),this.addManagedListeners(n,{paginationPixelOffsetChanged:this.onPaginationPixelOffsetChanged.bind(this),heightScaleChanged:this.onTopChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:this.onVirtualColumnsChanged.bind(this),cellFocused:this.onCellFocusChanged.bind(this),cellFocusCleared:this.onCellFocusChanged.bind(this),paginationChanged:this.onPaginationChanged.bind(this),modelUpdated:this.refreshFirstAndLastRowStyles.bind(this),columnMoved:()=>this.updateColumnLists()}),r&&this.addManagedListeners(r,{spannedCellsUpdated:({pinned:e})=>{e&&!o.rowPinned||this.updateColumnLists()}}),this.addDestroyFunc(()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,s),this.tooltipFeature=this.destroyBean(this.tooltipFeature,s),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,s)}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{const e=t.get("rowDragEntireRow");if(e)for(const t of this.allRowGuis)this.addRowDraggerToRow(t);else this.rowDragComps=this.destroyBeans(this.rowDragComps,s)}),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListeners(this.rowNode,{rowIndexChanged:()=>{for(const e of this.getAllCellCtrls())e.onRowIndexChanged()},cellChanged:e=>{for(const t of this.getAllCellCtrls())t.onCellChanged(e)}})}onRowPinned(){for(const e of this.allRowGuis)e.rowComp.toggleCss("ag-row-pinned-source",!!this.rowNode.pinnedSibling)}onRowNodeDataChanged(e){this.refreshRow({suppressFlash:!e.update,newData:!e.update})}refreshRow(e){const t=this.isFullWidth()!==!!this.isNodeFullWidthCell();if(t)this.beans.rowRenderer.redrawRow(this.rowNode);else{if(this.isFullWidth()){const e=this.refreshFullWidth();return void(e||this.beans.rowRenderer.redrawRow(this.rowNode))}for(const t of this.getAllCellCtrls())t.refreshCell(e);for(const e of this.allRowGuis)this.setRowCompRowId(e.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(e.rowComp);this.onRowSelected(),this.postProcessCss()}}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.rowEditStyleFeature?.applyRowStyles(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){const e=this.beans.rowDropHighlightSvc,t=e?.row===this.rowNode?e.position:"none",o="above"===t,i="inside"===t,n="below"===t,s="none"!==t,r=o||n,a=this.rowNode.uiLevel,l=r&&a>0,d=l?a.toString():"0";for(const c of this.allRowGuis){const e=c.rowComp;e.toggleCss("ag-row-highlight-above",o),e.toggleCss("ag-row-highlight-inside",i),e.toggleCss("ag-row-highlight-below",n),e.toggleCss("ag-row-highlight-indent",l),s?c.element.style.setProperty("--ag-row-highlight-level",d):c.element.style.removeProperty("--ag-row-highlight-level")}}postProcessRowDragging(){const e=this.rowNode.dragging;for(const t of this.allRowGuis)t.rowComp.toggleCss("ag-row-dragging",e)}onDisplayedColumnsChanged(){this.updateColumnLists(!0),this.beans.rowAutoHeight?.requestCheckAutoHeight()}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0)}getRowPosition(){return{rowPinned:n(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}onKeyboardNavigate(e){const t=this.findFullWidthInfoForEvent(e);if(!t)return;const{rowGui:o,column:i}=t,n=o.element,s=n===e.target;if(!s)return;const r=this.rowNode,{focusSvc:a,navigation:l}=this.beans,d=a.getFocusedCell(),c={rowIndex:r.rowIndex,rowPinned:r.rowPinned,column:d?.column??i};l?.navigateToNextCell(e,e.key,c,!0),e.preventDefault()}onTabKeyDown(e){if(e.defaultPrevented||Rc(e))return;const t=this.allRowGuis.find(t=>t.element.contains(e.target)),o=t?t.element:null,i=o===e.target,n=m(this.beans);let s=!1;o&&n&&(s=o.contains(n)&&n.classList.contains("ag-cell"));let r=null;i||s||(r=Wr(this.beans,o,!1,e.shiftKey)),(this.isFullWidth()&&i||!r)&&this.beans.navigation?.onTabKeyDown(this,e)}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){const e=this.allRowGuis.find(e=>Pe(e.element))?.element;return e?e.getBoundingClientRect().top:0}onSuppressCellFocusChanged(e){const t=this.isFullWidth()&&e?void 0:this.gos.get("tabIndex");for(const o of this.allRowGuis)ze(o.element,"tabindex",t)}onFullWidthRowFocused(e){const t=this.rowNode,o=!!e&&(this.isFullWidth()&&e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned);let i;if(this.fullWidthGui)i=this.fullWidthGui.element;else{const t=this.beans.colModel.getCol(e?.column),o=t?.pinned;i=o?"right"===o?this.rightGui?.element:this.leftGui?.element:this.centerGui?.element}i&&(i.classList.toggle("ag-full-width-focus",o),o&&e?.forceBrowserFocus&&i.focus({preventScroll:!0}))}recreateCell(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),e.destroy(),this.updateColumnLists()}removeCellCtrl(e,t){const o={list:[],map:{}};for(const i of e.list)i!==t&&(o.list.push(i),o.map[i.column.getInstanceId()]=i);return o}onMouseEvent(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t);break}}createRowEvent(e,t){const{rowNode:o}=this;return Ti(this.gos,{type:e,node:o,data:o.data,rowIndex:o.rowIndex,rowPinned:o.rowPinned,event:t})}createRowEventWithSource(e,t){const o=this.createRowEvent(e,t);return o.source=this,o}onRowDblClick(e){if(Rc(e))return;const t=this.createRowEventWithSource("rowDoubleClicked",e);t.isEventHandlingSuppressed=this.isSuppressMouseEvent(e),this.beans.eventSvc.dispatchEvent(t)}findFullWidthInfoForEvent(e){if(!e)return;const t=this.findFullWidthRowGui(e.target),o=this.getColumnForFullWidth(t);return t&&o?{rowGui:t,column:o}:void 0}findFullWidthRowGui(e){return this.allRowGuis.find(t=>t.element.contains(e))}getColumnForFullWidth(e){const{visibleCols:t}=this.beans;switch(e?.containerType){case"center":return t.centerCols[0];case"left":return t.leftCols[0];case"right":return t.rightCols[0];default:return t.allCols[0]}}onRowMouseDown(e){if(this.lastMouseDownOnDragger=fe(e.target,"ag-row-drag",3),!this.isFullWidth()||this.isSuppressMouseEvent(e))return;const{rangeSvc:t,focusSvc:o}=this.beans;t?.removeAllCellRanges();const i=this.findFullWidthInfoForEvent(e);if(!i)return;const{rowGui:n,column:s}=i,r=n.element,a=e.target,l=this.rowNode;let d=e.defaultPrevented||xr();r&&r.contains(a)&&ue(a)&&(d=!1),o.setFocusedCell({rowIndex:l.rowIndex,column:s,rowPinned:l.rowPinned,forceBrowserFocus:d})}isSuppressMouseEvent(e){const{gos:t,rowNode:o}=this;if(this.isFullWidth()){const i=this.findFullWidthRowGui(e.target);return zc(t,i?.rowComp.getFullWidthCellRendererParams(),o,e)}const i=$c(t,e.target);return null!=i&&Nc(t,i.column,o,e)}onRowClick(e){const t=Rc(e)||this.lastMouseDownOnDragger;if(t)return;const o=this.isSuppressMouseEvent(e),{eventSvc:i,selectionSvc:n}=this.beans,s=this.createRowEventWithSource("rowClicked",e);s.isEventHandlingSuppressed=o,i.dispatchEvent(s),o||n?.handleSelectionEvent(e,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(e){"FullWidthDetail"===this.rowType&&this.beans.masterDetailSvc?.setupDetailRowAutoHeight(this,e)}createFullWidthCompDetails(e,t){const{gos:o,rowNode:i}=this,n=Ti(o,{fullWidth:!0,data:i.data,node:i,value:i.key,valueFormatted:i.key,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(e,t,o,i)=>this.addFullWidthRowDragging(e,t,o,i),setTooltip:(e,t)=>{o.assertModuleRegistered("Tooltip",3),this.setupFullWidthRowTooltip(e,t)}}),s=this.beans.userCompFactory;switch(this.rowType){case"FullWidthDetail":return Qs(s,n);case"FullWidthGroup":{const{value:e,valueFormatted:t}=this.beans.valueSvc.getValueForDisplay({node:this.rowNode,includeValueFormatted:!0});return n.value=e,n.valueFormatted=t,Ks(s,n)}case"FullWidthLoading":return js(s,n);default:return qs(s,n)}}setupFullWidthRowTooltip(e,t){this.fullWidthGui&&(this.tooltipFeature=this.beans.tooltipSvc?.setupFullWidthRowTooltip(this.tooltipFeature,this,e,t))}addFullWidthRowDragging(e,t,o="",i){const{rowDragSvc:n,context:s}=this.beans;if(!n||!this.isFullWidth())return;const r=n.createRowDragComp(()=>o,this.rowNode,void 0,e,t,i);this.createBean(r,s),this.addDestroyFunc(()=>{this.destroyBean(r,s)})}onUiLevelChanged(){const e=Qb(this.rowNode);if(this.rowLevel!=e){const t="ag-row-level-"+e,o="ag-row-level-"+this.rowLevel;for(const e of this.allRowGuis)e.rowComp.toggleCss(t,!0),e.rowComp.toggleCss(o,!1)}this.rowLevel=e}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getLastRow()}refreshFirstAndLastRowStyles(){const e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();if(this.firstRowOnPage!==e){this.firstRowOnPage=e;for(const t of this.allRowGuis)t.rowComp.toggleCss("ag-row-first",e)}if(this.lastRowOnPage!==t){this.lastRowOnPage=t;for(const e of this.allRowGuis)e.rowComp.toggleCss("ag-row-last",t)}}getAllCellCtrls(){if(0===this.leftCellCtrls.list.length&&0===this.rightCellCtrls.list.length)return this.centerCellCtrls.list;const e=[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list];return e}postProcessClassesFromGridOptions(){const e=[];if(this.beans.rowStyleSvc?.processClassesFromGridOptions(e,this.rowNode),e.length)for(const t of e)for(const e of this.allRowGuis)e.rowComp.toggleCss(t,!0)}postProcessRowClassRules(){this.beans.rowStyleSvc?.processRowClassRules(this.rowNode,e=>{for(const t of this.allRowGuis)t.rowComp.toggleCss(e,!0)},e=>{for(const t of this.allRowGuis)t.rowComp.toggleCss(e,!1)})}setStylesFromGridOptions(e,t){e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(t,e=>e.rowComp.setUserStyles(this.rowStyles))}getPinnedForContainer(e){return"left"===e||"right"===e?e:null}getInitialRowClasses(e){const t=this.getPinnedForContainer(e),o=this.isFullWidth(),{rowNode:i,beans:n}=this,s=[];s.push("ag-row"),s.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeInAnimation[e]&&s.push("ag-opacity-zero"),s.push(i.rowIndex%2===0?"ag-row-even":"ag-row-odd"),i.isRowPinned()&&(s.push("ag-row-pinned"),n.pinnedRowModel?.isManual()&&s.push("ag-row-pinned-manual")),!i.isRowPinned()&&i.pinnedSibling&&s.push("ag-row-pinned-source"),i.isSelected()&&s.push("ag-row-selected"),i.footer&&s.push("ag-row-footer"),s.push("ag-row-level-"+this.rowLevel),i.stub&&s.push("ag-row-loading"),o&&s.push("ag-full-width-row"),n.expansionSvc?.addExpandedCss(s,i),i.dragging&&s.push("ag-row-dragging");const{rowStyleSvc:r}=n;return r&&(r.processClassesFromGridOptions(s,i),r.preProcessRowClassRules(s,i)),s.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.isFirstRowOnPage()&&s.push("ag-row-first"),this.isLastRowOnPage()&&s.push("ag-row-last"),o&&("left"===t&&s.push("ag-cell-last-left-pinned"),"right"===t&&s.push("ag-cell-first-right-pinned")),s}processStylesFromGridOptions(){return this.beans.rowStyleSvc?.processStylesFromGridOptions(this.rowNode)??this.emptyStyle}onRowSelected(e){this.beans.selectionSvc?.onRowCtrlSelected(this,e=>{e!==this.centerGui&&e!==this.fullWidthGui||this.announceDescription()},e)}announceDescription(){this.beans.selectionSvc?.announceAriaRowSelection(this.rowNode)}addHoverFunctionality(e){if(!this.active)return;const{element:t,compBean:o}=e,{rowNode:i,beans:n,gos:s}=this;o.addManagedListeners(t,{pointerenter:e=>{"mouse"===e.pointerType&&i.dispatchRowEvent("mouseEnter")},pointerleave:e=>{"mouse"===e.pointerType&&i.dispatchRowEvent("mouseLeave")}}),o.addManagedListeners(i,{mouseEnter:()=>{n.dragSvc?.dragging||s.get("suppressRowHoverHighlight")||(t.classList.add("ag-row-hover"),i.setHovered(!0))},mouseLeave:()=>{this.resetHoveredStatus(t)}})}resetHoveredStatus(e){const t=e?[e]:this.allRowGuis.map(e=>e.element);for(const o of t)o.classList.remove("ag-row-hover");this.rowNode.setHovered(!1)}roundRowTopToBounds(e){const t=this.beans.ctrlsSvc.getScrollFeature().getApproximateVScollPosition(),o=this.applyPaginationOffset(t.top,!0)-100,i=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(o,e),i)}forEachGui(e,t){if(e)t(e);else for(const o of this.allRowGuis)t(o)}isRowRendered(){return this.allRowGuis.length>0}onRowHeightChanged(e){if(null==this.rowNode.rowHeight)return;const t=this.rowNode.rowHeight,o=this.beans.environment.getDefaultRowHeight(),i=Oo(this.gos),n=i?Go(this.beans,this.rowNode).height:void 0,s=n?Math.min(o,n)-2+"px":void 0;this.forEachGui(e,e=>{e.element.style.height=`${t}px`,s&&e.element.style.setProperty("--ag-line-height",s)})}destroyFirstPass(e=!1){this.active=!1;const{rowNode:t}=this;if(!e&&$o(this.gos)&&!t.sticky){const e=null!=t.rowTop;if(e){const e=this.roundRowTopToBounds(t.rowTop);this.setRowTop(e)}else for(const t of this.allRowGuis)t.rowComp.toggleCss("ag-opacity-zero",!0)}this.fullWidthGui?.element.contains(m(this.beans))&&this.beans.focusSvc.attemptToRecoverFocus(),t.setHovered(!1);const o=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(o),this.beans.eventSvc.dispatchEvent(o),super.destroy()}destroySecondPass(){this.allRowGuis.length=0;const e=e=>{for(const t of e.list)t.destroy();return{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)}setFocusedClasses(e){this.forEachGui(e,e=>{e.rowComp.toggleCss("ag-row-focus",this.rowFocused),e.rowComp.toggleCss("ag-row-no-focus",!this.rowFocused)})}onCellFocusChanged(){const{focusSvc:e}=this.beans,t=e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);t!==this.rowFocused&&(this.rowFocused=t,this.setFocusedClasses())}onPaginationChanged(){const e=this.beans.pagination?.getCurrentPage()??0;this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(e,t=!1){if(this.rowNode.isRowPinned()||this.rowNode.sticky)return e;const o=this.beans.pageBounds.getPixelOffset(),i=t?1:-1;return e+o*i}setRowTop(e){if(!this.printLayout&&s(e)){const t=this.applyPaginationOffset(e),o=this.rowNode.isRowPinned()||this.rowNode.sticky,i=o?t:this.beans.rowContainerHeight.getRealPixelPosition(t),n=`${i}px`;this.setRowTopStyle(n)}}getInitialRowTop(e){return this.suppressRowTransform?this.getInitialRowTopShared(e):void 0}getInitialTransform(e){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(e)})`}getInitialRowTopShared(e){if(this.printLayout)return"";const t=this.rowNode;let o;if(t.sticky)o=t.stickyRowTop;else{const i=this.slideInAnimation[e]?this.roundRowTopToBounds(t.oldRowTop):t.rowTop,n=this.applyPaginationOffset(i);o=t.isRowPinned()?n:this.beans.rowContainerHeight.getRealPixelPosition(n)}return o+"px"}setRowTopStyle(e){for(const t of this.allRowGuis)this.suppressRowTransform?t.rowComp.setTop(e):t.rowComp.setTransform(`translateY(${e})`)}getCellCtrl(e,t=!1){let o=null;for(const i of this.getAllCellCtrls())i.column==e&&(o=i);if(null!=o||t)return o;for(const i of this.getAllCellCtrls())i?.getColSpanningList().indexOf(e)>=0&&(o=i);return o}onRowIndexChanged(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}updateRowIndexes(e){const t=this.rowNode.getRowIndexString();if(null===t)return;const o=(this.beans.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.beans.filterManager?.getHeaderRowCount()??0),i=this.rowNode.rowIndex%2===0,n=o+this.rowNode.rowIndex+1;this.forEachGui(e,e=>{e.rowComp.setRowIndex(t),e.rowComp.toggleCss("ag-row-even",i),e.rowComp.toggleCss("ag-row-odd",!i),K(e.element,n)})}},Jb=class extends Ct{constructor(){super(),this.beanName="navigation",this.onPageDown=Et(this.onPageDown,100),this.onPageUp=Et(this.onPageUp,100)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}handlePageScrollingKey(e,t=!1){const o=e.key,i=e.altKey,n=e.ctrlKey||e.metaKey,s=!!this.beans.rangeSvc&&e.shiftKey,r=Pu(this.gos,e);let a=!1;switch(o){case lr.PAGE_HOME:case lr.PAGE_END:n||i||(this.onHomeOrEndKey(o),a=!0);break;case lr.LEFT:case lr.RIGHT:case lr.UP:case lr.DOWN:if(!r)return!1;!n||i||s||(this.onCtrlUpDownLeftRight(o,r),a=!0);break;case lr.PAGE_DOWN:case lr.PAGE_UP:n||i||(a=this.handlePageUpDown(o,r,t));break}return a&&e.preventDefault(),a}handlePageUpDown(e,t,o){return o&&(t=this.beans.focusSvc.getFocusedCell()),!!t&&(e===lr.PAGE_UP?this.onPageUp(t):this.onPageDown(t),!0)}navigateTo({scrollIndex:e,scrollType:t,scrollColumn:o,focusIndex:i,focusColumn:n,isAsync:r,rowPinned:a}){const{scrollFeature:l}=this.gridBodyCon;s(o)&&!o.isPinned()&&l.ensureColumnVisible(o),s(e)&&l.ensureIndexVisible(e,t),r||l.ensureIndexVisible(i);const{focusSvc:d,rangeSvc:c}=this.beans;d.setFocusedCell({rowIndex:i,column:n,rowPinned:a,forceBrowserFocus:!0}),c?.setRangeToCell({rowIndex:i,rowPinned:a,column:n})}onPageDown(e){const t=this.beans,o=ey(t),i=this.getViewportHeight(),{pageBounds:n,rowModel:s,rowAutoHeight:r}=t,a=n.getPixelOffset(),l=o.top+i,d=s.getRowIndexAtPixel(l+a);r?.active?this.navigateToNextPageWithAutoHeight(e,d):this.navigateToNextPage(e,d)}onPageUp(e){const t=this.beans,o=ey(t),{pageBounds:i,rowModel:n,rowAutoHeight:s}=t,r=i.getPixelOffset(),a=o.top,l=n.getRowIndexAtPixel(a+r);s?.active?this.navigateToNextPageWithAutoHeight(e,l,!0):this.navigateToNextPage(e,l,!0)}navigateToNextPage(e,t,o=!1){const{pageBounds:i,rowModel:n}=this.beans,s=this.getViewportHeight(),r=i.getFirstRow(),a=i.getLastRow(),l=i.getPixelOffset(),d=n.getRow(e.rowIndex),c=o?d?.rowHeight-s-l:s-l,u=d?.rowTop+c;let h,g=n.getRowIndexAtPixel(u+l);if(g===e.rowIndex){const i=o?-1:1;t=g=e.rowIndex+i}o?(h="bottom",g<r&&(g=r),t<r&&(t=r)):(h="top",g>a&&(g=a),t>a&&(t=a)),this.isRowTallerThanView(n.getRow(g))&&(t=g,h="top"),this.navigateTo({scrollIndex:t,scrollType:h,scrollColumn:null,focusIndex:g,focusColumn:e.column})}navigateToNextPageWithAutoHeight(e,t,o=!1){this.navigateTo({scrollIndex:t,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout(()=>{const i=this.getNextFocusIndexForAutoHeight(e,o);this.navigateTo({scrollIndex:t,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:i,focusColumn:e.column,isAsync:!0})},50)}getNextFocusIndexForAutoHeight(e,t=!1){const o=t?-1:1,i=this.getViewportHeight(),{pageBounds:n,rowModel:s}=this.beans,r=n.getLastRow();let a=0,l=e.rowIndex;while(l>=0&&l<=r){const e=s.getRow(l);if(e){const t=e.rowHeight??0;if(a+t>i)break;a+=t}l+=o}return Math.max(0,Math.min(l,r))}getViewportHeight(){const e=this.beans,t=ey(e),o=this.beans.scrollVisibleSvc.getScrollbarWidth();let i=t.bottom-t.top;return e.ctrlsSvc.get("center").isHorizontalScrollShowing()&&(i-=o),i}isRowTallerThanView(e){if(!e)return!1;const t=e.rowHeight;return"number"===typeof t&&t>this.getViewportHeight()}onCtrlUpDownLeftRight(e,t){const o=this.beans.cellNavigation.getNextCellToFocus(e,t,!0),i=this.getNormalisedPosition(o),{rowIndex:n,rowPinned:s,column:r}=i??o,a=r;this.navigateTo({scrollIndex:n,scrollType:null,scrollColumn:a,focusIndex:n,focusColumn:a,rowPinned:s})}onHomeOrEndKey(e){const t=e===lr.PAGE_HOME,{visibleCols:o,pageBounds:i,rowModel:n}=this.beans,s=o.allCols,r=t?i.getFirstRow():i.getLastRow(),a=n.getRow(r);if(!a)return;const l=(t?s:[...s].reverse()).find(e=>!e.isSuppressNavigable(a));l&&this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:l,focusIndex:r,focusColumn:l})}onTabKeyDown(e,t){const o=t.shiftKey,i=this.tabToNextCellCommon(e,o,t),n=this.beans,{ctrlsSvc:s,pageBounds:r,focusSvc:a,gos:l}=n;if(!1===i)if(o){const{rowIndex:o,rowPinned:i}=e.getRowPosition(),s=i?0===o:o===r.getFirstRow();s&&(0===l.get("headerHeight")||sh(n)?ah(n,!0,!0):(t.preventDefault(),a.focusPreviousFromFirstCell(t)))}else e instanceof jb&&e.focusCell(!0),(a.focusOverlay(!1)||ah(n,o))&&t.preventDefault();else i?t.preventDefault():null===i&&s.get("gridCtrl").allowFocusForNextCoreContainer(o)}tabToNextCell(e,t){const o=this.beans,{focusSvc:i,rowRenderer:n}=o,s=i.getFocusedCell();if(!s)return!1;let r=Xu(o,s);return!(!r&&(r=n.getRowByPosition(s),!r?.isFullWidth()))&&!!this.tabToNextCellCommon(r,e,t,"api")}tabToNextCellCommon(e,t,o,i="ui"){const{editSvc:n,focusSvc:s}=this.beans;let r;const a=e instanceof jb?e:e.getAllCellCtrls()?.[0];return r=n?.isEditing()?n?.moveToNextCell(a,t,o,i):this.moveToNextCellNotEditing(e,t,o),null===r?r:r||!!s.focusedHeader}moveToNextCellNotEditing(e,t,o){const i=this.beans.visibleCols.allCols;let n;if(e instanceof Zb){if(n={...e.getRowPosition(),column:t?i[0]:tn(i)},this.gos.get("embedFullWidthRows")&&o){const t=e.findFullWidthInfoForEvent(o);t&&(n.column=t.column)}}else n=e.getFocusedCellPosition();const r=this.findNextCellToFocusOn(n,{backwards:t,startEditing:!1});if(!1===r)return null;if(r instanceof jb)r.focusCell(!0);else if(r)return this.tryToFocusFullWidthRow(r,t);return s(r)}findNextCellToFocusOn(e,{backwards:t,startEditing:o,skipToNextEditableCell:i}){let n=e;const r=this.beans,{cellNavigation:a,gos:l,focusSvc:d,rowRenderer:c,rangeSvc:u}=r;while(1){e!==n&&(e=n),t||(n=this.getLastCellOfColSpan(n)),n=a.getNextTabbedCell(n,t);const h=l.getCallback("tabToNextCell");if(s(h)){const i={backwards:t,editing:o,previousCellPosition:e,nextCellPosition:n||null},s=h(i);if(!0===s)n=e;else{if(!1===s)return!1;n={rowIndex:s.rowIndex,column:s.column,rowPinned:s.rowPinned}}}if(!n)return null;if(n.rowIndex<0){const e=ch(r);return d.focusHeaderPosition({headerPosition:{headerRowIndex:e+n.rowIndex,column:n.column},fromCell:!0}),null}const g="fullRow"===l.get("editType");if(o&&(!g||i)){const e=this.isCellEditable(n);if(!e)continue}this.ensureCellVisible(n);const p=Xu(r,n);if(!p){const e=c.getRowByPosition(n);if(!e||!e.isFullWidth()||o)continue;return{...e.getRowPosition(),column:n?.column}}if(!a.isSuppressNavigable(p.column,p.rowNode))return p.setFocusedCellPosition(n),u?.setRangeToCell(n),p}}isCellEditable(e){const t=this.lookupRowNodeForCell(e);return!!t&&e.column.isCellEditable(t)}lookupRowNodeForCell({rowIndex:e,rowPinned:t}){const{pinnedRowModel:o,rowModel:i}=this.beans;return"top"===t?o?.getPinnedTopRow(e):"bottom"===t?o?.getPinnedBottomRow(e):i.getRow(e)}navigateToNextCell(e,t,o,i){let n=o,a=!1;const l=this.beans,{cellNavigation:d,focusSvc:c,gos:u}=l;while(n&&(n===o||!this.isValidNavigateCell(n)))u.get("enableRtl")?t===lr.LEFT&&(n=this.getLastCellOfColSpan(n)):t===lr.RIGHT&&(n=this.getLastCellOfColSpan(n)),n=d.getNextCellToFocus(t,n),a=r(n);if(a&&e&&e.key===lr.UP&&(n={rowIndex:-1,rowPinned:null,column:o.column}),i){const i=u.getCallback("navigateToNextCell");if(s(i)){const r={key:t,previousCellPosition:o,nextCellPosition:n||null,event:e},a=i(r);n=s(a)?{rowPinned:a.rowPinned,rowIndex:a.rowIndex,column:a.column}:null}}if(!n)return;if(n.rowIndex<0){const t=ch(l);return void c.focusHeaderPosition({headerPosition:{headerRowIndex:t+n.rowIndex,column:o.column},event:e||void 0,fromCell:!0})}const h=this.getNormalisedPosition(n);h?this.focusPosition(h):this.tryToFocusFullWidthRow(n)}getNormalisedPosition(e){const t=!!this.beans.spannedRowRenderer?.getCellByPosition(e);if(t)return e;this.ensureCellVisible(e);const o=Xu(this.beans,e);return o?(e=o.getFocusedCellPosition(),this.ensureCellVisible(e),e):null}tryToFocusFullWidthRow(e,t){const{visibleCols:o,rowRenderer:i,focusSvc:n,eventSvc:s}=this.beans,r=o.allCols,a=i.getRowByPosition(e);if(!a?.isFullWidth())return!1;const l=n.getFocusedCell(),d={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?tn(r):r[0])};this.focusPosition(d);const c=null==t?null!=l&&$u(d,l):t;return s.dispatchEvent({type:"fullWidthRowFocused",rowIndex:d.rowIndex,rowPinned:d.rowPinned,column:d.column,isFullWidthCell:!0,fromBelow:c}),!0}focusPosition(e){const{focusSvc:t,rangeSvc:o}=this.beans;t.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),o?.setRangeToCell(e)}isValidNavigateCell(e){const t=Qu(this.beans,e);return!!t}getLastCellOfColSpan(e){const t=Xu(this.beans,e);if(!t)return e;const o=t.getColSpanningList();return 1===o.length?e:{rowIndex:e.rowIndex,column:tn(o),rowPinned:e.rowPinned}}ensureCellVisible(e){const t=qo(this.gos),o=this.beans.rowModel.getRow(e.rowIndex),i=t&&o?.sticky,{scrollFeature:n}=this.gridBodyCon;!i&&r(e.rowPinned)&&n.ensureIndexVisible(e.rowIndex),e.column.isPinned()||n.ensureColumnVisible(e.column)}ensureColumnVisible(e){const t=this.gridBodyCon.scrollFeature;e.isPinned()||t.ensureColumnVisible(e)}ensureRowVisible(e){const t=this.gridBodyCon.scrollFeature;t.ensureIndexVisible(e)}};function ey(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}var ty={moduleName:"KeyboardNavigation",version:ro,beans:[Jb,Qw,JC],apiFunctions:{getFocusedCell:Xw,clearFocusedCell:Yw,setFocusedCell:Zw,setFocusedHeader:tb,tabToNextCell:Jw,tabToPreviousCell:eb}},oy=class extends Ct{constructor(){super(...arguments),this.beanName="pageBoundsListener"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this),recalculateRowBounds:this.calculatePages.bind(this)}),this.onModelUpdated()}onModelUpdated(e){this.calculatePages(),this.eventSvc.dispatchEvent({type:"paginationChanged",animate:e?.animate??!1,newData:e?.newData??!1,newPage:e?.newPage??!1,newPageSize:e?.newPageSize??!1,keepRenderedRows:e?.keepRenderedRows??!1})}calculatePages(){const{pageBounds:e,pagination:t,rowModel:o}=this.beans;t?t.calculatePages():e.calculateBounds(0,o.getRowCount()-1)}},iy=class extends Ct{constructor(){super(...arguments),this.beanName="pageBounds",this.pixelOffset=0}getFirstRow(){return this.topRowBounds?.rowIndex??-1}getLastRow(){return this.bottomRowBounds?.rowIndex??-1}getCurrentPageHeight(){const{topRowBounds:e,bottomRowBounds:t}=this;return e&&t?Math.max(t.rowTop+t.rowHeight-e.rowTop,0):0}getCurrentPagePixelRange(){const{topRowBounds:e,bottomRowBounds:t}=this,o=e?.rowTop??0,i=t?t.rowTop+t.rowHeight:0;return{pageFirstPixel:o,pageLastPixel:i}}calculateBounds(e,t){const{rowModel:o}=this.beans,i=o.getRowBounds(e);i&&(i.rowIndex=e),this.topRowBounds=i;const n=o.getRowBounds(t);n&&(n.rowIndex=t),this.bottomRowBounds=n,this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){const e=this.topRowBounds?.rowTop??0;this.pixelOffset!==e&&(this.pixelOffset=e,this.eventSvc.dispatchEvent({type:"paginationPixelOffsetChanged"}))}},ny=".ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top{min-width:0;overflow:hidden;position:relative}.ag-pinned-left-sticky-top,.ag-pinned-right-sticky-top{height:100%;overflow:hidden;position:relative}.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{height:100%;overflow:hidden;width:100%}.ag-pinned-left-header,.ag-pinned-right-header{display:inline-block;height:100%;overflow:hidden;position:relative}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible){.ag-horizontal-left-spacer:not(.ag-scroller-corner){border-right:var(--ag-pinned-column-border)}.ag-horizontal-right-spacer:not(.ag-scroller-corner){border-left:var(--ag-pinned-column-border)}}.ag-pinned-right-header{border-left:var(--ag-pinned-column-border)}.ag-pinned-left-header{border-right:var(--ag-pinned-column-border)}.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-left:var(--ag-pinned-column-border)}.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-right:var(--ag-pinned-column-border)}.ag-pinned-left-header .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-right-header .ag-header-cell-resize:after{left:50%}.ag-pinned-left-header .ag-header-cell-resize{right:-3px}.ag-pinned-right-header .ag-header-cell-resize{left:-3px}",sy=class extends Ct{constructor(e,t){super(),this.isLeft=e,this.elements=t,this.getWidth=e?()=>this.beans.pinnedCols.leftWidth:()=>this.beans.pinnedCols.rightWidth}postConstruct(){this.addManagedEventListeners({[(this.isLeft?"left":"right")+"PinnedWidthChanged"]:this.onPinnedWidthChanged.bind(this)})}onPinnedWidthChanged(){const e=this.getWidth(),t=e>0;for(const o of this.elements)o&&(he(o,t),He(o,e))}},ry=class extends Ct{constructor(){super(...arguments),this.beanName="pinnedCols"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl});const e=this.checkContainerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}checkContainerWidths(){const{gos:e,visibleCols:t,eventSvc:o}=this.beans,i=Lo(e,"print"),n=i?0:t.getColsLeftWidth(),s=i?0:t.getDisplayedColumnsRightWidth();n!=this.leftWidth&&(this.leftWidth=n,o.dispatchEvent({type:"leftPinnedWidthChanged"})),s!=this.rightWidth&&(this.rightWidth=s,o.dispatchEvent({type:"rightPinnedWidthChanged"}))}keepPinnedColumnsNarrowerThanViewport(){const e=this.gridBodyCtrl.eBodyViewport,t=Ce(e);if(t<=50)return;const o=this.getPinnedColumnsOverflowingViewport(t-50),i=this.gos.getCallback("processUnpinnedColumns"),{columns:n,hasLockedPinned:s}=o;let r=n;if(r.length||s){if(i){const e={columns:r,viewportWidth:t};r=i(e)}r?.length&&(r=r.filter(e=>!Cn(e)),this.setColsPinned(r,null,"viewportSizeFeature"))}}createPinnedWidthFeature(e,...t){return new sy(e,t)}setColsPinned(e,t,o){const{colModel:i,colAnimation:n,visibleCols:s,gos:r}=this.beans;if(!i.cols)return;if(!e?.length)return;if(Lo(r,"print"))return void xo(37);let a;n?.start(),a=!0===t||"left"===t?"left":"right"===t?"right":null;const l=[];for(const d of e){if(!d)continue;const e=i.getCol(d);e&&(e.getPinned()!==a&&(this.setColPinned(e,a),l.push(e)))}l.length&&(s.refresh(o),$n(this.eventSvc,l,o)),n?.finish()}initCol(e){const{pinned:t,initialPinned:o}=e.colDef;void 0!==t?this.setColPinned(e,t):this.setColPinned(e,o)}setColPinned(e,t){e.pinned=!0===t||"left"===t?"left":"right"===t?"right":null,e.dispatchStateUpdatedEvent("pinned")}setupHeaderPinnedWidth(e){const{scrollVisibleSvc:t}=this.beans;if(null==e.pinned)return;const o="left"===e.pinned,i="right"===e.pinned;e.hidden=!0;const n=()=>{const n=o?this.leftWidth:this.rightWidth;if(null==n)return;const s=0==n,r=e.hidden!==s,a=this.gos.get("enableRtl"),l=t.getScrollbarWidth(),d=t.verticalScrollShowing&&(a&&o||!a&&i),c=d?n+l:n;e.comp.setPinnedContainerWidth(`${c}px`),e.comp.setDisplayed(!s),r&&(e.hidden=s,e.refresh())};e.addManagedEventListeners({leftPinnedWidthChanged:n,rightPinnedWidthChanged:n,scrollVisibilityChanged:n,scrollbarWidthChanged:n})}getHeaderResizeDiff(e,t){const o=t.getPinned();if(o){const{leftWidth:t,rightWidth:o}=this,i=Ce(this.beans.ctrlsSvc.getGridBodyCtrl().eBodyViewport)-50;if(t+o+e>i){if(!(i>t+o))return 0;e=i-t-o}}return e}getPinnedColumnsOverflowingViewport(e){const t=this.rightWidth??0,o=this.leftWidth??0,i=t+o;let n=!1;if(i<e)return{columns:[],hasLockedPinned:n};const{visibleCols:s}=this.beans,r=[...s.leftCols],a=[...s.rightCols];let l=0,d=0;const c=0,u=[];let h=i-c-e;while((d<r.length||l<a.length)&&h>0){if(l<a.length){const e=a[l++];if(e.colDef.lockPinned){n=!0;continue}h-=e.getActualWidth(),u.push(e)}if(d<r.length&&h>0){const e=r[d++];if(e.colDef.lockPinned){n=!0;continue}h-=e.getActualWidth(),u.push(e)}}return{columns:u,hasLockedPinned:n}}},ay={moduleName:"PinnedColumn",version:ro,beans:[ry],css:[ny]},ly=class extends ft{constructor(){super(),this.beanName="ariaAnnounce",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.lastAnnouncement="",this.updateAnnouncement=xt(this,this.updateAnnouncement.bind(this),200)}postConstruct(){const e=this.beans,t=v(e),o=this.descriptionContainer=t.createElement("div");o.classList.add("ag-aria-description-container"),L(o,"polite"),O(o,"additions text"),B(o,!0),e.eRootDiv.appendChild(o)}announceValue(e,t){this.pendingAnnouncements.set(t,e),this.updateAnnouncement()}updateAnnouncement(){if(!this.descriptionContainer)return;const e=Array.from(this.pendingAnnouncements.values()).join(". ");this.pendingAnnouncements.clear(),this.descriptionContainer.textContent="",setTimeout(()=>{this.handleAnnouncementUpdate(e)},50)}handleAnnouncementUpdate(e){if(!this.isAlive()||!this.descriptionContainer)return;let t=e;null!=t&&""!=t.replace(/[ .]/g,"")?(this.lastAnnouncement===t&&(t=`${t}`),this.lastAnnouncement=t,this.descriptionContainer.textContent=t):this.lastAnnouncement=""}destroy(){super.destroy();const{descriptionContainer:e}=this;e&&(xe(e),e.remove()),this.descriptionContainer=null,this.pendingAnnouncements.clear()}},dy=class extends ly{},cy={moduleName:"Aria",version:ro,beans:[dy]},uy=":where(.ag-delay-render){.ag-cell,.ag-header-cell,.ag-header-group-cell,.ag-row,.ag-spanned-cell-wrapper{visibility:hidden}}",hy="ag-delay-render",gy=class extends Ct{constructor(){super(...arguments),this.beanName="colDelayRenderSvc",this.hideRequested=!1,this.alreadyRevealed=!1,this.timesRetried=0,this.requesters=new Set}hideColumns(e){this.alreadyRevealed||this.requesters.has(e)||(this.requesters.add(e),this.hideRequested||(this.beans.ctrlsSvc.whenReady(this,e=>{e.gridBodyCtrl.eGridBody.classList.add(hy)}),this.hideRequested=!0))}revealColumns(e){if(this.alreadyRevealed||!this.isAlive())return;if(this.requesters.delete(e),this.requesters.size>0)return;const{renderStatus:t,ctrlsSvc:o}=this.beans;if(t){if(!t.areHeaderCellsRendered()&&this.timesRetried<5)return this.timesRetried++,void setTimeout(()=>this.revealColumns(e));this.timesRetried=0}o.getGridBodyCtrl().eGridBody.classList.remove(hy),this.alreadyRevealed=!0}},py={moduleName:"ColumnDelayRender",version:ro,beans:[gy],css:[uy]};function fy(e){e.overlays?.showLoadingOverlay()}function my(e){e.overlays?.showNoRowsOverlay()}function vy(e){e.overlays?.hideOverlay()}var Cy=".ag-overlay{inset:0;pointer-events:none;position:absolute;z-index:2}.ag-overlay-panel,.ag-overlay-wrapper{display:flex;height:100%;width:100%}.ag-overlay-wrapper{align-items:center;flex:none;justify-content:center;text-align:center}.ag-overlay-exporting-wrapper,.ag-overlay-loading-wrapper,.ag-overlay-modal-wrapper{pointer-events:all}.ag-overlay-exporting-center,.ag-overlay-loading-center{background:var(--ag-background-color);border:solid var(--ag-border-width) var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-popup-shadow);display:flex;padding:var(--ag-spacing)}",wy={tag:"div",cls:"ag-overlay",role:"presentation",children:[{tag:"div",cls:"ag-overlay-panel",role:"presentation",children:[{tag:"div",ref:"eOverlayWrapper",cls:"ag-overlay-wrapper",role:"presentation"}]}]},by=class extends ps{constructor(){super(wy),this.eOverlayWrapper=ds,this.activeOverlay=null,this.activePromise=null,this.activeCssClass=null,this.elToFocusAfter=null,this.overlayExclusive=!1,this.oldWrapperPadding=null,this.registerCSS(Cy)}handleKeyDown(e){if(e.key!==lr.TAB||e.defaultPrevented||Rc(e))return;const{beans:t,eOverlayWrapper:o}=this,i=o&&Wr(t,o,!1,e.shiftKey);if(i)return;let n=!1;n=e.shiftKey?t.focusSvc.focusGridView({column:tn(t.visibleCols.allCols),backwards:!0,canFocusOverlay:!1}):ah(t,!1),n&&e.preventDefault()}updateLayoutClasses(e,t){const o=this.eOverlayWrapper;if(!o)return;const i=o.classList,{AUTO_HEIGHT:n,NORMAL:s,PRINT:r}=Mc;i.toggle(n,t.autoHeight),i.toggle(s,t.normal),i.toggle(r,t.print)}postConstruct(){this.createManagedBean(new Ac(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.beans.overlays.setWrapperComp(this,!1),this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)}),this.addManagedEventListeners({gridSizeChanged:this.refreshWrapperPadding.bind(this)})}setWrapperTypeClass(e){const t=this.eOverlayWrapper?.classList;t?(this.activeCssClass&&t.toggle(this.activeCssClass,!1),this.activeCssClass=e,t.toggle(e,!0)):this.activeCssClass=null}showOverlay(e,t,o){if(this.destroyActiveOverlay(),this.elToFocusAfter=null,this.activePromise=e,this.overlayExclusive=o,!e)return this.refreshWrapperPadding(),Cs.resolve();if(this.setWrapperTypeClass(t),this.setDisplayed(!0,{skipAriaHidden:!0}),this.refreshWrapperPadding(),o&&this.isGridFocused()){const e=m(this.beans);e&&!C(this.beans)&&(this.elToFocusAfter=e)}return e.then(t=>{const i=this.eOverlayWrapper;i?this.activePromise===e?(this.activePromise=null,t&&(this.activeOverlay!==t&&(i.appendChild(t.getGui()),this.activeOverlay=t),o&&this.isGridFocused()&&zr(i))):this.activeOverlay!==t&&(this.destroyBean(t),t=null):this.destroyBean(t)}),e}refreshWrapperPadding(){if(!this.eOverlayWrapper)return void(this.oldWrapperPadding=null);const e=!!this.activeOverlay||!!this.activePromise;let t=0;e&&!this.overlayExclusive&&(t=this.beans.ctrlsSvc.get("gridHeaderCtrl")?.headerHeight||0),t!==this.oldWrapperPadding&&(this.oldWrapperPadding=t,this.eOverlayWrapper.style.setProperty("padding-top",`${t}px`))}destroyActiveOverlay(){this.activePromise=null;const e=this.activeOverlay;if(!e)return this.overlayExclusive=!1,this.elToFocusAfter=null,void this.refreshWrapperPadding();let t=this.elToFocusAfter;this.elToFocusAfter=null,this.activeOverlay=null,this.overlayExclusive=!1,t&&!this.isGridFocused()&&(t=null),this.destroyBean(e);const o=this.eOverlayWrapper;o&&xe(o),t?.focus?.({preventScroll:!0}),this.refreshWrapperPadding()}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}isGridFocused(){const e=m(this.beans);return!!e&&this.beans.eGridDiv.contains(e)}destroy(){this.elToFocusAfter=null,this.destroyActiveOverlay(),this.beans.overlays.setWrapperComp(this,!0),super.destroy(),this.eOverlayWrapper=null}},yy={selector:"AG-OVERLAY-WRAPPER",component:by},Sy=["refresh"],Ry=e=>({name:e,optionalMethods:Sy}),xy={id:"agLoadingOverlay",overlayType:"loading",comp:Ry("loadingOverlayComponent"),wrapperCls:"ag-overlay-loading-wrapper",exclusive:!0,compKey:"loadingOverlayComponent",paramsKey:"loadingOverlayComponentParams",isSuppressed:e=>{const t=e.get("loading");return!1===t||!0===e.get("suppressLoadingOverlay")&&!0!==t}},Ey={id:"agNoRowsOverlay",overlayType:"noRows",comp:Ry("noRowsOverlayComponent"),wrapperCls:"ag-overlay-no-rows-wrapper",compKey:"noRowsOverlayComponent",paramsKey:"noRowsOverlayComponentParams",isSuppressed:e=>e.get("suppressNoRowsOverlay")},Fy={id:"agNoMatchingRowsOverlay",overlayType:"noMatchingRows",comp:Ry("noMatchingRowsOverlayComponent"),wrapperCls:"ag-overlay-no-matching-rows-wrapper"},Py={id:"agExportingOverlay",overlayType:"exporting",comp:Ry("exportingOverlayComponent"),wrapperCls:"ag-overlay-exporting-wrapper",exclusive:!0},Dy={id:"activeOverlay",comp:Ry("activeOverlay"),wrapperCls:"ag-overlay-modal-wrapper",exclusive:!0},ky=e=>e?{agLoadingOverlay:xy,agNoRowsOverlay:Ey,agNoMatchingRowsOverlay:Fy,agExportingOverlay:Py}[e]??Dy:null,My=e=>e?{loading:xy,noRows:Ey,noMatchingRows:Fy,exporting:Py}[e]:null,Ay=class extends Ct{constructor(){super(...arguments),this.beanName="overlays",this.eWrapper=void 0,this.exclusive=!1,this.oldExclusive=!1,this.currentDef=null,this.showInitialOverlay=!0,this.userForcedNoRows=!1,this.exportsInProgress=0,this.newColumnsLoadedCleanup=null}postConstruct(){const e=this.gos;this.showInitialOverlay=To(e);const t=()=>{this.userForcedNoRows||this.updateOverlay(!1)},[o,i,n,s]=this.addManagedEventListeners({newColumnsLoaded:t,rowCountReady:()=>{this.disableInitialOverlay(),t(),i()},rowDataUpdated:t,modelUpdated:t});this.newColumnsLoadedCleanup=o,this.addManagedPropertyListeners(["loading","activeOverlay","activeOverlayParams","overlayComponentParams","loadingOverlayComponentParams","noRowsOverlayComponentParams"],e=>this.onPropChange(new Set(e.changeSet?.properties)))}destroy(){this.doHideOverlay(),super.destroy(),this.eWrapper=void 0}setWrapperComp(e,t){this.isAlive()&&(t?this.eWrapper===e&&(this.eWrapper=void 0):this.eWrapper=e,this.updateOverlay(!1))}isVisible(){return!!this.currentDef}showLoadingOverlay(){this.showInitialOverlay=!1;const e=this.gos;if(!this.eWrapper||e.get("activeOverlay"))return;if(this.isDisabled(xy))return;const t=e.get("loading");(t||void 0===t)&&this.doShowOverlay(xy)}showNoRowsOverlay(){this.showInitialOverlay=!1;const e=this.gos;!this.eWrapper||e.get("activeOverlay")||e.get("loading")||this.isDisabled(Ey)||(this.userForcedNoRows=!0,this.doShowOverlay(Ey))}async showExportOverlay(e){const{gos:t,beans:o}=this;if(!this.eWrapper||t.get("activeOverlay")||t.get("loading")||this.isDisabled(Py)||this.userForcedNoRows&&this.currentDef===Ey)return void e();const i=this.getDesiredDefWithOverride(Py);if(!i)return void e();this.exportsInProgress++,this.focusedCell=o.focusSvc.getFocusedCell(),await this.doShowOverlay(i),await new Promise(e=>setTimeout(()=>e()));const n=Date.now();try{e()}finally{const e=Date.now()-n,t=Math.max(0,300-e),i=()=>{this.exportsInProgress--,0===this.exportsInProgress&&(this.updateOverlay(!1),lh(o,this.focusedCell),this.focusedCell=null)};t>0?setTimeout(()=>i(),t):i()}}hideOverlay(){const e=this.gos;this.showInitialOverlay=!1;const t=this.userForcedNoRows;this.userForcedNoRows=!1,e.get("loading")?xo(99):e.get("activeOverlay")?xo(296):this.currentDef!==Fy?(this.doHideOverlay(),t&&this.getOverlayDef()!==Ey&&this.updateOverlay(!1)):xo(297)}getOverlayWrapperSelector(){return yy}getOverlayWrapperCompClass(){return by}onPropChange(e){const t=e.has("activeOverlay");if((t||e.has("loading"))&&this.updateOverlay(t))return;const o=this.currentDef,i=this.eWrapper?.activeOverlay;if(i&&o){const t=e.has("activeOverlayParams");if(o===Dy)t&&i.refresh?.(this.makeCompParams(!0));else{const t=o.paramsKey;(e.has("overlayComponentParams")||t&&e.has(t))&&i.refresh?.(this.makeCompParams(!1,t,o.overlayType))}}}updateOverlay(e){const t=this.eWrapper;if(!t)return this.currentDef=null,!1;const o=this.getDesiredDefWithOverride(),i=this.currentDef,n=o===Dy&&e;return o!==i?o?(this.doShowOverlay(o),!0):(this.disableInitialOverlay(),this.doHideOverlay()):n&&o?(t.hideOverlay(),this.doShowOverlay(o),!0):(o||this.disableInitialOverlay(),!1)}getDesiredDefWithOverride(e){const{gos:t}=this;let o=ky(t.get("activeOverlay"));return o||(o=e??this.getOverlayDef(),o&&this.isDisabled(o)&&(o=null)),o}getOverlayDef(){const{gos:e,beans:t}=this,{colModel:o,rowModel:i}=t,n=e.get("loading"),s=void 0!==n;if(s){if(this.disableInitialOverlay(),n)return xy}else if(this.showInitialOverlay){if(!this.isDisabled(xy)&&(!e.get("columnDefs")||!o.ready||!e.get("rowData")))return xy;this.disableInitialOverlay()}else this.disableInitialOverlay();const r=i.getOverlayType();return My(r)}disableInitialOverlay(){this.showInitialOverlay=!1,this.newColumnsLoadedCleanup?.(),this.newColumnsLoadedCleanup=null}doShowOverlay(e){const{gos:t,beans:o}=this,{userCompFactory:i}=o;this.currentDef=e;const n=e!==Dy,s=!!e.exclusive;let r,a;this.exclusive=s,(e.paramsKey&&t.get(e.paramsKey)||e.compKey&&t.get(e.compKey))&&(r=e.paramsKey),n&&(t.get("overlayComponent")||t.get("overlayComponentSelector"))&&(a=i.getCompDetailsFromGridOptions({name:"overlayComponent",optionalMethods:["refresh"]},void 0,this.makeCompParams(!1,e.paramsKey,e.overlayType))),a??(a=i.getCompDetailsFromGridOptions(e.comp,n?e.id:void 0,this.makeCompParams(!n,r,e.overlayType),!1));const l=a?.newAgStackInstance()??null,d=this.eWrapper?this.eWrapper.showOverlay(l,e.wrapperCls,s):Cs.resolve();return this.eWrapper?.refreshWrapperPadding(),this.setExclusive(s),d}makeCompParams(e,t,o){const{gos:i}=this,n=e?i.get("activeOverlayParams"):{...i.get("overlayComponentParams"),...t&&i.get(t)||null,overlayType:o};return Ti(i,n??{})}doHideOverlay(){let e=!1;this.currentDef&&(this.currentDef=null,e=!0),this.exclusive=!1;const t=this.eWrapper;return t&&(t.hideOverlay(),t.refreshWrapperPadding(),this.setExclusive(!1)),e}setExclusive(e){this.oldExclusive!==e&&(this.oldExclusive=e,this.eventSvc.dispatchEvent({type:"overlayExclusiveChanged"}))}isDisabled(e){const{gos:t}=this;return e.overlayType&&t.get("suppressOverlays")?.includes(e.overlayType)||!0===e.isSuppressed?.(t)}},Ty={moduleName:"Overlay",version:ro,userComponents:{agLoadingOverlay:qh,agNoRowsOverlay:Xh,agNoMatchingRowsOverlay:Zh,agExportingOverlay:Kh},apiFunctions:{showLoadingOverlay:fy,showNoRowsOverlay:my,hideOverlay:vy},icons:{overlayLoading:"loading",overlayExporting:"loading"},beans:[Ay]},Iy=class extends Ct{constructor(){super(...arguments),this.beanName="rowContainerHeight",this.scrollY=0,this.uiBodyHeight=0}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)}),this.maxDivHeight=kr(),Ht(this.gos,"RowContainerHeightService - maxDivHeight = "+this.maxDivHeight)}updateOffset(){if(!this.stretching)return;const e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight(),o=e!==this.scrollY||t!==this.uiBodyHeight;o&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}calculateOffset(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;const e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;Ht(this.gos,`RowContainerHeightService - Div Stretch Offset = ${t} (${this.pixelsToShave} * ${e})`),this.setDivStretchOffset(t)}setUiContainerHeight(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventSvc.dispatchEvent({type:"rowContainerHeightChanged"}))}clearOffset(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)}setDivStretchOffset(e){const t="number"===typeof e?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventSvc.dispatchEvent({type:"heightScaleChanged"}))}setModelHeight(e){this.modelHeight=e,this.stretching=null!=e&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()}getRealPixelPosition(e){return e-this.divStretchOffset}getUiBodyHeight(){const e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition();return e.bottom-e.top}getScrollPositionForPixel(e){if(this.pixelsToShave<=0)return e;const t=this.modelHeight-this.getUiBodyHeight(),o=e/t,i=this.maxScrollY*o;return i}},Ly=400,By=class extends Ct{constructor(){super(...arguments),this.beanName="rowRenderer",this.destroyFuncsForColumnListeners=[],this.rowCtrlsByRowIndex={},this.zombieRowCtrls={},this.allRowCtrls=[],this.topRowCtrls=[],this.bottomRowCtrls=[],this.refreshInProgress=!1,this.dataFirstRenderedFired=!1,this.setupRangeSelectionListeners=()=>{const e=()=>{for(const e of this.getAllCellCtrls())e.onCellSelectionChanged()},t=()=>{for(const e of this.getAllCellCtrls())e.updateRangeBordersIfRangeCount()},o=()=>{this.eventSvc.addListener("cellSelectionChanged",e),this.eventSvc.addListener("columnMoved",t),this.eventSvc.addListener("columnPinned",t),this.eventSvc.addListener("columnVisible",t)},i=()=>{this.eventSvc.removeListener("cellSelectionChanged",e),this.eventSvc.removeListener("columnMoved",t),this.eventSvc.removeListener("columnPinned",t),this.eventSvc.removeListener("columnVisible",t)};this.addDestroyFunc(()=>i()),this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{const e=ui(this.gos);e?o():i()});const n=ui(this.gos);n&&o()}}wireBeans(e){this.pageBounds=e.pageBounds,this.colModel=e.colModel,this.pinnedRowModel=e.pinnedRowModel,this.rowModel=e.rowModel,this.focusSvc=e.focusSvc,this.rowContainerHeight=e.rowContainerHeight,this.ctrlsSvc=e.ctrlsSvc,this.editSvc=e.editSvc}postConstruct(){this.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.initialise()})}initialise(){this.addManagedEventListeners({paginationChanged:this.onPageLoaded.bind(this),pinnedRowDataChanged:this.onPinnedRowDataChanged.bind(this),pinnedRowsChanged:this.onPinnedRowsChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),bodyScroll:this.onBodyScroll.bind(this),bodyHeightChanged:this.redraw.bind(this,{})}),this.addManagedPropertyListeners(["domLayout","embedFullWidthRows"],()=>this.onDomLayoutChanged()),this.addManagedPropertyListeners(["suppressMaxRenderedRowRestriction","rowBuffer"],()=>this.redraw()),this.addManagedPropertyListener("suppressCellFocus",e=>this.onSuppressCellFocusChanged(e.currentValue)),this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],()=>this.redrawRows()),this.addManagedPropertyListener("cellSelection",({currentValue:e,previousValue:t})=>{(!t&&e||t&&!e)&&this.redrawRows()});const{stickyRowSvc:e,gos:t,showRowGroupCols:o}=this.beans;if(o&&this.addManagedPropertyListener("showOpenedGroup",()=>{const e=o.columns;e.length&&this.refreshCells({columns:e,force:!0})}),e)this.stickyRowFeature=e.createStickyRowFeature(this,this.createRowCon.bind(this),this.destroyRowCtrls.bind(this));else{const e=this.gridBodyCtrl;e.setStickyTopHeight(0),e.setStickyBottomHeight(0)}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=Lo(t,"print"),this.embedFullWidthRows=this.printLayout||t.get("embedFullWidthRows"),this.redrawAfterModelUpdate()}initialiseCache(){if(this.gos.get("keepDetailRows")){const e=this.getKeepDetailRowsCount(),t=null!=e?e:3;this.cachedRowCtrls=new Oy(t)}}getKeepDetailRowsCount(){return this.gos.get("keepDetailRowsCount")}getStickyTopRowCtrls(){return this.stickyRowFeature?.stickyTopRowCtrls??[]}getStickyBottomRowCtrls(){return this.stickyRowFeature?.stickyBottomRowCtrls??[]}updateAllRowCtrls(){const e=Object.values(this.rowCtrlsByRowIndex),t=Object.values(this.zombieRowCtrls),o=this.cachedRowCtrls?.getEntries()??[];t.length>0||o.length>0?this.allRowCtrls=[...e,...t,...o]:this.allRowCtrls=e}isCellBeingRendered(e,t){const o=this.rowCtrlsByRowIndex[e];if(!t||!o)return!!o;if(o.isFullWidth())return!0;const i=this.beans.spannedRowRenderer?.getCellByPosition({rowIndex:e,column:t,rowPinned:null});return!!i||!!o.getCellCtrl(t)||!o.isRowRendered()}updateCellFocus(e){for(const t of this.getAllCellCtrls())t.onCellFocused(e);for(const t of this.getFullWidthRowCtrls())t.onFullWidthRowFocused(e)}onCellFocusChanged(e){if(null!=e?.rowIndex&&!e.rowPinned){const t=this.beans.colModel.getCol(e.column)??void 0;this.isCellBeingRendered(e.rowIndex,t)||this.redraw()}this.updateCellFocus(e)}onSuppressCellFocusChanged(e){for(const t of this.getAllCellCtrls())t.onSuppressCellFocusChanged(e);for(const t of this.getFullWidthRowCtrls())t.onSuppressCellFocusChanged(e)}registerCellEventListeners(){this.addManagedEventListeners({cellFocused:e=>this.onCellFocusChanged(e),cellFocusCleared:()=>this.updateCellFocus(),flashCells:e=>{const{cellFlashSvc:t}=this.beans;if(t)for(const o of this.getAllCellCtrls())t.onFlashCells(o,e)},columnHoverChanged:()=>{for(const e of this.getAllCellCtrls())e.onColumnHover()},displayedColumnsChanged:()=>{for(const e of this.getAllCellCtrls())e.onDisplayedColumnsChanged()},displayedColumnsWidthChanged:()=>{if(this.printLayout)for(const e of this.getAllCellCtrls())e.onLeftChanged()}}),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedEventListeners({gridColumnsChanged:this.refreshListenersToColumnsForCellComps.bind(this)}),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){for(const e of this.destroyFuncsForColumnListeners)e();this.destroyFuncsForColumnListeners.length=0}refreshListenersToColumnsForCellComps(){this.removeGridColumnListeners();const e=this.colModel.getCols();for(const t of e){const e=e=>{for(const o of this.getAllCellCtrls())o.column===t&&e(o)},o=()=>{e(e=>e.onLeftChanged())},i=()=>{e(e=>e.onWidthChanged())},n=()=>{e(e=>e.onFirstRightPinnedChanged())},s=()=>{e(e=>e.onLastLeftPinnedChanged())},r=()=>{e(e=>e.onColDefChanged())};t.__addEventListener("leftChanged",o),t.__addEventListener("widthChanged",i),t.__addEventListener("firstRightPinnedChanged",n),t.__addEventListener("lastLeftPinnedChanged",s),t.__addEventListener("colDefChanged",r),this.destroyFuncsForColumnListeners.push(()=>{t.__removeEventListener("leftChanged",o),t.__removeEventListener("widthChanged",i),t.__removeEventListener("firstRightPinnedChanged",n),t.__removeEventListener("lastLeftPinnedChanged",s),t.__removeEventListener("colDefChanged",r)})}}onDomLayoutChanged(){const e=Lo(this.gos,"print"),t=e||this.gos.get("embedFullWidthRows"),o=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,o&&this.redrawAfterModelUpdate({domLayoutChanged:!0})}datasourceChanged(){this.firstRenderedRow=0,this.lastRenderedRow=-1;const e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)}onPageLoaded(e){const t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)}getAllCellsNotSpanningForColumn(e){const t=[];for(const o of this.getAllRowCtrls()){const i=o.getCellCtrl(e,!0)?.eGui;i&&t.push(i)}return t}refreshFloatingRowComps(e=!0){this.refreshFloatingRows(this.topRowCtrls,"top",e),this.refreshFloatingRows(this.bottomRowCtrls,"bottom",e)}refreshFloatingRows(e,t,o){const{pinnedRowModel:i,beans:n,printLayout:s}=this,r=Object.fromEntries(e.map(e=>[e.rowNode.id,e]));i?.forEachPinnedRow(t,(a,l)=>{const d=e[l],c=d&&void 0===i.getPinnedRowById(d.rowNode.id,t);c&&(d.destroyFirstPass(),d.destroySecondPass()),a.id in r&&o?(e[l]=r[a.id],delete r[a.id]):e[l]=new Zb(a,n,!1,!1,s)});const a=("top"===t?i?.getPinnedTopRowCount():i?.getPinnedBottomRowCount())??0;e.length=a}onPinnedRowDataChanged(){const e={recycleRows:!0};this.redrawAfterModelUpdate(e)}onPinnedRowsChanged(){this.redrawAfterModelUpdate({recycleRows:!0})}redrawRow(e,t=!1){if(e.sticky)this.stickyRowFeature?.refreshStickyNode(e);else{if(this.cachedRowCtrls?.has(e))return void this.cachedRowCtrls.removeRow(e);{const t=t=>{const o=t[e.rowIndex];o&&o.rowNode===e&&(o.destroyFirstPass(),o.destroySecondPass(),t[e.rowIndex]=this.createRowCon(e,!1,!1))};switch(e.rowPinned){case"top":t(this.topRowCtrls);break;case"bottom":t(this.bottomRowCtrls);break;default:t(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}}t||this.dispatchDisplayedRowsChanged(!1)}redrawRows(e){const{editSvc:t}=this.beans;t?.isEditing()&&(t.isBatchEditing()?t.cleanupEditors():t.stopEditing(void 0,{source:"api"}));const o=null!=e;if(o){for(const t of e??[])this.redrawRow(t,!0);this.dispatchDisplayedRowsChanged(!1)}else this.redrawAfterModelUpdate()}redrawAfterModelUpdate(e={}){this.getLockOnRefresh();const t=this.beans.focusSvc?.getFocusCellToUseAfterRefresh();this.updateContainerHeights(),this.scrollToTopIfNewData(e);const o=!e.domLayoutChanged&&!!e.recycleRows,i=e.animate&&$o(this.gos),n=o?this.getRowsToRecycle():null;o||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender();const{stickyRowFeature:s,gos:r}=this;if(s){s.checkStickyRows();const e=s.extraTopHeight+s.extraBottomHeight;e&&this.updateContainerHeights(e)}this.recycleRows(n,i),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(r.get("enableRowPinning")?o:void 0),this.dispatchDisplayedRowsChanged(),null!=t&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()}scrollToTopIfNewData(e){const t=e.newData||e.newPage,o=this.gos.get("suppressScrollOnNewData");t&&!o&&(this.gridBodyCtrl.scrollFeature.scrollToTop(),this.stickyRowFeature?.resetOffsets())}updateContainerHeights(e=0){const{rowContainerHeight:t}=this;if(this.printLayout)return void t.setModelHeight(null);let o=this.pageBounds.getCurrentPageHeight();0===o&&(o=1),t.setModelHeight(o+e)}getLockOnRefresh(){if(this.refreshInProgress)throw new Error(ko(252));this.refreshInProgress=!0,this.beans.frameworkOverrides.getLockOnRefresh?.()}releaseLockOnRefresh(){this.refreshInProgress=!1,this.beans.frameworkOverrides.releaseLockOnRefresh?.()}isRefreshInProgress(){return this.refreshInProgress}restoreFocusedCell(e){if(!e)return;const t=this.beans.focusSvc,o=this.findPositionToFocus(e);o?e.rowIndex===o.rowIndex&&e.rowPinned==o.rowPinned?t.doesRowOrCellHaveBrowserFocus()||this.updateCellFocus(Ti(this.gos,{...o,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"cellFocused"})):t.setFocusedCell({...o,preventScrollOnBrowserFocus:!0,forceBrowserFocus:!0}):t.focusHeaderPosition({headerPosition:{headerRowIndex:ch(this.beans)-1,column:e.column}})}findPositionToFocus(e){const{pagination:t,pageBounds:o}=this.beans;let i=e;null==i.rowPinned&&t&&o&&!t.isRowInPage(i.rowIndex)&&(i={rowPinned:null,rowIndex:o.getFirstRow()});while(i){if(null==i.rowPinned&&o)if(i.rowIndex<o.getFirstRow()){if(i=Zu(this.beans,{rowPinned:null,rowIndex:0}),!i)return null}else i.rowIndex>o.getLastRow()&&(i={rowPinned:null,rowIndex:o.getLastRow()});const t=this.getRowByPosition(i);if(t?.isAlive())return{...t.getRowPosition(),column:e.column};i=Zu(this.beans,i)}return null}getAllCellCtrls(){const e=[],t=this.getAllRowCtrls(),o=t.length;for(let i=0;i<o;i++){const o=t[i].getAllCellCtrls(),n=o.length;for(let t=0;t<n;t++)e.push(o[t])}return e}getAllRowCtrls(){const{spannedRowRenderer:e}=this.beans,t=this.getStickyTopRowCtrls(),o=this.getStickyBottomRowCtrls(),i=[...this.topRowCtrls,...this.bottomRowCtrls,...t,...o,...e?.getCtrls("top")??[],...e?.getCtrls("bottom")??[],...e?.getCtrls("center")??[],...Object.values(this.rowCtrlsByRowIndex)];return i}addRenderedRowListener(e,t,o){const i=this.rowCtrlsByRowIndex[t];i&&i.addEventListener(e,o)}refreshCells({rowNodes:e,columns:t,force:o,suppressFlash:i}={}){const n={force:o,newData:!1,suppressFlash:i};for(const s of this.getCellCtrls(e,t))s.refreshOrDestroyCell(n);this.refreshFullWidth(e)}refreshRows(e={}){for(const t of this.getRowCtrls(e.rowNodes))t.refreshRow(e);this.refreshFullWidth(e.rowNodes)}refreshFullWidth(e){if(!e)return;let t=!1;for(const o of this.getRowCtrls(e)){if(!o.isFullWidth())continue;const e=o.refreshFullWidth();e||(t=!0,this.redrawRow(o.rowNode,!0))}t&&this.dispatchDisplayedRowsChanged(!1)}getRowCtrls(e){const t=Hy(e),o=this.getAllRowCtrls();return e&&t?o.filter(e=>{const o=e.rowNode;return Vy(o,t)}):o}getCellCtrls(e,t){let o;s(t)&&(o={},t.forEach(e=>{const t=this.colModel.getCol(e);s(t)&&(o[t.getId()]=!0)}));const i=[];for(const n of this.getRowCtrls(e))for(const e of n.getAllCellCtrls()){const t=e.column.getId(),n=o&&!o[t];n||i.push(e)}return i}destroy(){this.removeAllRowComps(!0),super.destroy()}removeAllRowComps(e=!1){const t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t,e),this.stickyRowFeature?.destroyStickyCtrls()}getRowsToRecycle(){const e=[];for(const o of Object.keys(this.rowCtrlsByRowIndex)){const t=this.rowCtrlsByRowIndex[o],i=null==t.rowNode.id;i&&e.push(o)}this.removeRowCtrls(e);const t={};for(const o of Object.values(this.rowCtrlsByRowIndex)){const e=o.rowNode;t[e.id]=o}return this.rowCtrlsByRowIndex={},t}removeRowCtrls(e,t=!1){for(const o of e){const e=this.rowCtrlsByRowIndex[o];e&&(e.destroyFirstPass(t),e.destroySecondPass()),delete this.rowCtrlsByRowIndex[o]}}onBodyScroll(e){"vertical"===e.direction&&this.redraw({afterScroll:!0})}redraw(e={}){const{focusSvc:t,animationFrameSvc:o}=this.beans,{afterScroll:i}=e;let n;const s=this.stickyRowFeature;s&&(n=t?.getFocusCellToUseAfterRefresh()||void 0);const r=this.firstRenderedRow,a=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let l=!1;if(s){l=s.checkStickyRows();const e=s.extraTopHeight+s.extraBottomHeight;e&&this.updateContainerHeights(e)}const d=this.firstRenderedRow!==r||this.lastRenderedRow!==a;if((!i||l||d)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,i),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(i&&!l),null!=n)){const e=t?.getFocusCellToUseAfterRefresh();null!=n&&null==e&&(o?.flushAllFrames(),this.restoreFocusedCell(n))}}removeRowCompsNotToDraw(e,t){const o={};for(const s of e)o[s]=!0;const i=Object.keys(this.rowCtrlsByRowIndex),n=i.filter(e=>!o[e]);this.removeRowCtrls(n,t)}calculateIndexesToDraw(e){const t=[];for(let r=this.firstRenderedRow;r<=this.lastRenderedRow;r++)t.push(r);const o=this.beans.pagination,i=this.beans.focusSvc?.getFocusedCell()?.rowIndex;null!=i&&(i<this.firstRenderedRow||i>this.lastRenderedRow)&&(!o||o.isRowInPage(i))&&i<this.rowModel.getRowCount()&&t.push(i);const n=e=>{const o=e.rowNode.rowIndex;null!=o&&o!==i&&(o<this.firstRenderedRow||o>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(e)&&t.push(o)};for(const r of Object.values(this.rowCtrlsByRowIndex))n(r);if(e)for(const r of Object.values(e))n(r);t.sort((e,t)=>e-t);const s=[];for(let r=0;r<t.length;r++){const e=t[r],o=this.rowModel.getRow(e);o&&!o.sticky&&s.push(e)}return s}recycleRows(e,t=!1,o=!1){const i=this.calculateIndexesToDraw(e);(this.printLayout||o)&&(t=!1),this.removeRowCompsNotToDraw(i,!t);for(const n of i)this.createOrUpdateRowCtrl(n,e,t,o);if(e){const{animationFrameSvc:i}=this.beans,n=i?.active&&o&&!this.printLayout;n?i.addDestroyTask(()=>{this.destroyRowCtrls(e,t),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(e,t)}this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(e=!1){this.eventSvc.dispatchEvent({type:"displayedRowsChanged",afterScroll:e})}onDisplayedColumnsChanged(){const{visibleCols:e}=this.beans,t=e.isPinningLeft(),o=e.isPinningRight(),i=this.pinningLeft!==t||o!==this.pinningRight;i&&(this.pinningLeft=t,this.pinningRight=o,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){const e=[];for(const t of this.getFullWidthRowCtrls()){const o=t.rowNode.rowIndex;e.push(o.toString())}this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(e){const t=Hy(e);return this.getAllRowCtrls().filter(e=>{if(!e.isFullWidth())return!1;const o=e.rowNode;return!(null!=t&&!Vy(o,t))})}createOrUpdateRowCtrl(e,t,o,i){let n,r=this.rowCtrlsByRowIndex[e];r||(n=this.rowModel.getRow(e),s(n)&&s(t)&&t[n.id]&&n.alreadyRendered&&(r=t[n.id],t[n.id]=null));const a=!r;if(a){if(n||(n=this.rowModel.getRow(e)),!s(n))return;r=this.createRowCon(n,o,i)}n&&(n.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=r}destroyRowCtrls(e,t){const o=[];if(e)for(const i of Object.values(e))if(i)if(this.cachedRowCtrls&&i.isCacheable())this.cachedRowCtrls.addRow(i);else if(i.destroyFirstPass(!t),t){const e=i.instanceId;this.zombieRowCtrls[e]=i,o.push(()=>{i.destroySecondPass(),delete this.zombieRowCtrls[e]})}else i.destroySecondPass();t&&(o.push(()=>{this.isAlive()&&(this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged())}),window.setTimeout(()=>{for(const e of o)e()},Ly))}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){const e=this.getRowBuffer(),t=zo(this.beans);return e*t}workOutFirstAndLastRowsToRender(){const{rowContainerHeight:e,pageBounds:t,rowModel:o}=this;let i,n;if(e.updateOffset(),o.isRowsToRender())if(this.printLayout)this.beans.environment.refreshRowHeightVariable(),i=t.getFirstRow(),n=t.getLastRow();else{const s=this.getRowBufferInPixels(),r=this.ctrlsSvc.getScrollFeature(),a=this.gos.get("suppressRowVirtualisation");let l,d,c=!1;do{const o=t.getPixelOffset(),{pageFirstPixel:i,pageLastPixel:n}=t.getCurrentPagePixelRange(),u=e.divStretchOffset,h=r.getVScrollPosition(),g=h.top,p=h.bottom;a?(l=i+u,d=n+u):(l=Math.max(g+o-s,i)+u,d=Math.min(p+o+s,n)+u),this.firstVisibleVPixel=Math.max(g+o,i)+u,this.lastVisibleVPixel=Math.min(p+o,n)+u,c=this.ensureAllRowsInRangeHaveHeightsCalculated(l,d)}while(c);let u=o.getRowIndexAtPixel(l),h=o.getRowIndexAtPixel(d);const g=t.getFirstRow(),p=t.getLastRow();u<g&&(u=g),h>p&&(h=p),i=u,n=h}else i=0,n=-1;const s=Lo(this.gos,"normal"),r=this.gos.get("suppressMaxRenderedRowRestriction"),a=Math.max(this.getRowBuffer(),500);s&&!r&&n-i>a&&(n=i+a);const l=i!==this.firstRenderedRow,d=n!==this.lastRenderedRow;(l||d)&&(this.firstRenderedRow=i,this.lastRenderedRow=n,this.eventSvc.dispatchEvent({type:"viewportChanged",firstRow:i,lastRow:n}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,_e(this.beans,()=>{this.beans.eventSvc.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(e,t){const o=this.pinnedRowModel?.ensureRowHeightsValid(),i=this.stickyRowFeature?.ensureRowHeightsValid(),{pageBounds:n,rowModel:s}=this,r=s.ensureRowHeightsValid(e,t,n.getFirstRow(),n.getLastRow());return(r||i)&&this.eventSvc.dispatchEvent({type:"recalculateRowBounds"}),!!(i||r||o)&&(this.updateContainerHeights(),!0)}doNotUnVirtualiseRow(e){const t=!1,o=!0,i=e.rowNode,n=this.focusSvc.isRowFocused(i.rowIndex,i.rowPinned),s=this.editSvc?.isEditing(e),r=i.detail,a=n||s||r;if(!a)return t;const l=this.isRowPresent(i);return l?o:t}isRowPresent(e){return!!this.rowModel.isRowPresent(e)&&(this.beans.pagination?.isRowInPage(e.rowIndex)??!0)}createRowCon(e,t,o){const i=this.cachedRowCtrls?.getRow(e)??null;if(i)return i;const n=o&&!this.printLayout&&!!this.beans.animationFrameSvc?.active,s=new Zb(e,this.beans,t,n,this.printLayout);return s}getRenderedNodes(){const e=Object.values(this.rowCtrlsByRowIndex).map(e=>e.rowNode),t=this.getStickyTopRowCtrls().map(e=>e.rowNode),o=this.getStickyBottomRowCtrls().map(e=>e.rowNode);return[...t,...e,...o]}getRowByPosition(e){let t;const{rowIndex:o}=e;switch(e.rowPinned){case"top":t=this.topRowCtrls[o];break;case"bottom":t=this.bottomRowCtrls[o];break;default:t=this.rowCtrlsByRowIndex[o],t||(t=this.getStickyTopRowCtrls().find(e=>e.rowNode.rowIndex===o)||null,t||(t=this.getStickyBottomRowCtrls().find(e=>e.rowNode.rowIndex===o)||null));break}return t}isRangeInRenderedViewport(e,t){const o=null==e||null==t;if(o)return!1;const i=e>this.lastRenderedRow,n=t<this.firstRenderedRow,s=!n&&!i;return s}},Oy=class{constructor(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}addRow(e){if(this.entriesMap[e.rowNode.id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){const e=this.entriesList[0];e.destroyFirstPass(),e.destroySecondPass(),this.removeFromCache(e)}}getRow(e){if(null==e?.id)return null;const t=this.entriesMap[e.id];if(!t)return null;this.removeFromCache(t),t.setCached(!1);const o=t.rowNode!=e;return o?null:t}has(e){return null!=this.entriesMap[e.id]}removeRow(e){const t=e.id,o=this.entriesMap[t];delete this.entriesMap[t],sn(this.entriesList,o)}removeFromCache(e){const t=e.rowNode.id;delete this.entriesMap[t],sn(this.entriesList,e)}getEntries(){return this.entriesList}};function Hy(e){if(!e)return;const t={top:{},bottom:{},normal:{}};for(const o of e){const e=o.id;switch(o.rowPinned){case"top":t.top[e]=o;break;case"bottom":t.bottom[e]=o;break;default:t.normal[e]=o;break}}return t}function Vy(e,t){const o=e.id,i=e.rowPinned;switch(i){case"top":return null!=t.top[o];case"bottom":return null!=t.bottom[o];default:return null!=t.normal[o]}}var Gy=class extends Ct{constructor(){super(...arguments),this.beanName="rowNodeSorter"}postConstruct(){const{gos:e}=this;this.isAccentedSort=e.get("accentedSort"),this.primaryColumnsSortGroups=jo(e),this.firstLeaf=To(e)?Fg:Ny,this.addManagedPropertyListener("accentedSort",e=>this.isAccentedSort=e.currentValue),this.addManagedPropertyListener("autoGroupColumnDef",()=>this.primaryColumnsSortGroups=jo(e))}doFullSort(e,t){const o=e.map((e,t)=>({currentPos:t,rowNode:e}));return o.sort(this.compareRowNodes.bind(this,t)),o.map(e=>e.rowNode)}compareRowNodes(e,t,o){const i=t.rowNode,n=o.rowNode;for(let s=0,r=e.length;s<r;s++){const t=e[s],o="desc"===t.sort,r=this.getValue(i,t.column),a=this.getValue(n,t.column);let l;const c=this.getComparator(t,i);if(c)l=c(r,a,i,n,o);else{const e={accentedCompare:this.isAccentedSort};"absolute"===t.type&&(e.transform=zy),l=d(r,a,e)}const u=!isNaN(l);if(u&&0!==l)return"asc"===t.sort?l:-1*l}return t.currentPos-o.currentPos}getComparator(e,t){const o=e.column.getColDef(),i=this.getComparatorFromColDef(o,e);if(i)return i;if(!o.showRowGroup)return;const n=!t.group&&o.field;if(!n)return;const s=this.beans.colModel.getColDefCol(n);return s?this.getComparatorFromColDef(s.getColDef(),e):void 0}getComparatorFromColDef(e,t){const o=e.comparator;if(null!=o)return"object"===typeof o?o[Ki(t.type)]:o}getValue(e,t){if(this.primaryColumnsSortGroups&&e.rowGroupColumn===t)return this.getGroupDataValue(e,t);if(e.group&&t.getColDef().showRowGroup)return;const{valueSvc:o,formula:i}=this.beans,n=o.getValue(t,e,!1);return t.isAllowFormula()&&i?.isFormula(n)?i.resolveValue(t,e):n}getGroupDataValue(e,t){const{gos:o,valueSvc:i,colModel:n,showRowGroupCols:s}=this.beans,r=Zo(o,n.isPivotActive());if(r){const o=this.firstLeaf(e);return o&&i.getValue(t,o,!1)}const a=s?.getShowRowGroupCol(t.getId());if(a)return e.groupData?.[a.getId()]}},Ny=e=>{if(e.data)return e;let t=e.childrenAfterGroup;while(t?.length){const e=t[0];if(e.data)return e;t=e.childrenAfterGroup}};function zy(e){if(!e)return e;const t=Number(e);return isNaN(t)?e:Math.abs(t)}function Wy(e){e.sortSvc?.onSortChanged("api")}var _y=(e,t)=>({tag:"span",ref:`eSort${e}`,cls:`ag-sort-indicator-icon ag-sort-${t} ag-hidden`,attrs:{"aria-hidden":"true"}}),Uy={tag:"span",cls:"ag-sort-indicator-container",children:[_y("Order","order"),_y("Asc","ascending-icon"),_y("Desc","descending-icon"),_y("Mixed","mixed-icon"),_y("AbsoluteAsc","absolute-ascending-icon"),_y("AbsoluteDesc","absolute-descending-icon"),_y("None","none-icon")]},$y=class extends ps{constructor(e){super(),this.eSortOrder=ds,this.eSortAsc=ds,this.eSortDesc=ds,this.eSortMixed=ds,this.eSortNone=ds,this.eSortAbsoluteAsc=ds,this.eSortAbsoluteDesc=ds,e||this.setTemplate(Uy)}attachCustomElements(e,t,o,i,n,s,r){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=o,this.eSortMixed=i,this.eSortNone=n,this.eSortAbsoluteAsc=s,this.eSortAbsoluteDesc=r}setupSort(e,t=!1){if(this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),!e.isSortable()&&!e.getColDef().showRowGroup)return;this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("sortAbsoluteAscending",this.eSortAbsoluteAsc,e),this.addInIcon("sortAbsoluteDescending",this.eSortAbsoluteDesc,e);const o=this.updateIcons.bind(this),i=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",o),this.addManagedEventListeners({newColumnsLoaded:o,sortChanged:i,columnRowGroupChanged:i}),this.onSortChanged()}addInIcon(e,t,o){if(null==t)return;const i=Uh(e,this.beans,o);i&&t.appendChild(i)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){const{eSortAsc:e,eSortDesc:t,eSortAbsoluteAsc:o,eSortAbsoluteDesc:i,eSortNone:n,column:s,gos:r,beans:a}=this,l=a.sortSvc.getDisplaySortForColumn(s),d=Ki(l?.type),c=ji(l?.direction),u=s.getAvailableSortTypes(),h=u.has("default"),g=u.has("absolute"),p="absolute"===d,f="default"===d,m="asc"===c,v="desc"===c;if(e&&he(e,m&&f&&h,{skipAriaHidden:!0}),t&&he(t,v&&f&&h,{skipAriaHidden:!0}),n){const e=!s.getColDef().unSortIcon&&!r.get("unSortIcon");he(n,!e&&!c,{skipAriaHidden:!0})}o&&he(o,m&&p&&g,{skipAriaHidden:!0}),i&&he(i,v&&p&&g,{skipAriaHidden:!0})}setupMultiSortIndicator(){const{eSortMixed:e,column:t,gos:o}=this;this.addInIcon("sortUnSort",e,t);const i=t.getColDef().showRowGroup,n=jo(o);n&&i&&(this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)}),this.updateMultiSortIndicator())}updateMultiSortIndicator(){const{eSortMixed:e,beans:t,column:o}=this;if(e){const i="mixed"===t.sortSvc.getDisplaySortForColumn(o)?.direction;he(e,i,{skipAriaHidden:!0})}}updateSortOrder(){const{eSortOrder:e,column:t,beans:{sortSvc:o}}=this;if(!e)return;const i=o.getColumnsWithSortingOrdered(),n=o.getDisplaySortIndexForColumn(t)??-1,s=i.some(e=>o.getDisplaySortIndexForColumn(e)??!1),r=n>=0&&s;he(e,r,{skipAriaHidden:!0}),n>=0?e.textContent=(n+1).toString():xe(e)}},qy={selector:"AG-SORT-INDICATOR",component:$y},jy=class extends Ct{constructor(){super(...arguments),this.beanName="sortSvc"}progressSort(e,t,o){const i=this.getNextSortDirection(e);this.setSortForColumn(e,i,t,o)}progressSortFromEvent(e,t){const o="ctrl"===this.gos.get("multiSortKey"),i=o?t.ctrlKey||t.metaKey:t.shiftKey;this.progressSort(e,i,"uiColumnSorted")}setSortForColumn(e,t,o,i){const{gos:n,showRowGroupCols:s}=this.beans,r=jo(n);let a=[e];if(r&&e.getColDef().showRowGroup){const t=s?.getSourceColumnsForGroupColumn?.(e),o=t?.filter(e=>e.isSortable());o&&(a=[e,...o])}for(const c of a)this.setColSort(c,t,i);const l=(o||n.get("alwaysMultiSort"))&&!n.get("suppressMultiSort"),d=[];if(!l){const e=this.clearSortBarTheseColumns(a,i);d.push(...e)}this.updateSortIndex(e),d.push(...a),this.dispatchSortChangedEvents(i,d)}updateSortIndex(e){const{gos:t,colModel:o,showRowGroupCols:i}=this.beans,n=jo(t),s=i?.getShowRowGroupCol(e.getId()),r=n&&s||e,a=this.getColumnsWithSortingOrdered();o.forAllCols(e=>this.setColSortIndex(e,null));const l=a.filter(e=>(!n||!e.getColDef().showRowGroup)&&e!==r),d=r.getSortDef()?[...l,r]:l;d.forEach((e,t)=>this.setColSortIndex(e,t))}onSortChanged(e,t){this.dispatchSortChangedEvents(e,t)}isSortActive(){let e=!1;return this.beans.colModel.forAllCols(t=>{if(t.getSortDef())return e=!0,!0}),e}dispatchSortChangedEvents(e,t){const o={type:"sortChanged",source:e};t&&(o.columns=t),this.eventSvc.dispatchEvent(o)}clearSortBarTheseColumns(e,t){const o=[];return this.beans.colModel.forAllCols(i=>{e.includes(i)||(i.getSortDef()&&o.push(i),this.setColSort(i,void 0,t))}),o}getNextSortDirection(e){const t=e.getSortingOrder(),o=e.getSortDef(),i=t.findIndex(e=>qi(e,o));let n=i+1;return n>=t.length&&(n=0),Wi(t[n])}getIndexedSortMap(){const{gos:e,colModel:t,showRowGroupCols:o,rowGroupColsSvc:i}=this.beans;let n=[];if(t.forAllCols(e=>{e.getSortDef()&&n.push(e)}),t.isPivotMode()){const t=jo(e);n=n.filter(e=>{const i=!!e.getAggFunc(),n=!e.isPrimary(),s=t?o?.getShowRowGroupCol(e.getId()):e.getColDef().showRowGroup;return i||n||s})}const s=i?.columns.filter(e=>!!e.getSortDef())??[],r={};n.forEach((e,t)=>r[e.getId()]=t),n.sort((e,t)=>{const o=e.getSortIndex(),i=t.getSortIndex();if(null!=o&&null!=i)return o-i;if(null==o&&null==i){const o=r[e.getId()],i=r[t.getId()];return o>i?1:-1}return null==i?-1:1});const a=jo(e)&&!!s.length;a&&(n=[...new Set(n.map(e=>o?.getShowRowGroupCol(e.getId())??e))]);const l=new Map;if(n.forEach((e,t)=>l.set(e,t)),a)for(const d of s){const e=o.getShowRowGroupCol(d.getId());l.set(d,l.get(e))}return l}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort(([,e],[,t])=>e-t).map(([e])=>e)}collectSortItems(e=!1){const t=[],o=this.getColumnsWithSortingOrdered();for(const i of o){const o=i.getSortDef()?.direction;if(!o)continue;const n=Ki(i.getSortDef()?.type),s={sort:o,type:n};e?s.colId=i.getId():s.column=i,t.push(s)}return t}getSortModel(){return this.collectSortItems(!0)}getSortOptions(){return this.collectSortItems()}canColumnDisplayMixedSort(e){const t=jo(this.gos),o=!!e.getColDef().showRowGroup;return t&&o}getDisplaySortForColumn(e){const t=this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!t?.length)return e.getSortDef();const o=null!=e.getColDef().field||!!e.getColDef().valueGetter,i=o?[e,...t]:t,n=i[0].getSortDef(),s=i.every(e=>qi(e.getSortDef(),n));return s?n:{type:Ki(e.getSortDef()?.type),direction:"mixed"}}getDisplaySortIndexForColumn(e){return this.getIndexedSortMap().get(e)}setupHeader(e,t){const o=()=>{const{type:o,direction:i}=Wi(t.getSortDef());if(e.toggleCss("ag-header-cell-sorted-asc","asc"===i),e.toggleCss("ag-header-cell-sorted-desc","desc"===i),e.toggleCss("ag-header-cell-sorted-abs-asc","absolute"===o&&"asc"===i),e.toggleCss("ag-header-cell-sorted-abs-desc","absolute"===o&&"desc"===i),e.toggleCss("ag-header-cell-sorted-none",!i),t.getColDef().showRowGroup){const o=this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(t),n=o?.every(e=>i==e.getSortDef()?.direction),s=!n;e.toggleCss("ag-header-cell-sorted-mixed",s)}};e.addManagedEventListeners({sortChanged:o,columnRowGroupChanged:o})}initCol(e){const{sortIndex:t,initialSortIndex:o}=e.colDef,i=Pn(e.colDef);i&&e.setSortDef(i,!0),void 0!==t?null!==t&&(e.sortIndex=t):null!==o&&(e.sortIndex=o)}updateColSort(e,t,o){void 0!==t&&this.setColSort(e,Wi(t),o)}setColSort(e,t,o){qi(e.getSortDef(),t)||(e.setSortDef(Wi(t),void 0===t),e.dispatchColEvent("sortChanged",o)),e.dispatchStateUpdatedEvent("sort")}setColSortIndex(e,t){e.sortIndex=t,e.dispatchStateUpdatedEvent("sortIndex")}createSortIndicator(e){return new $y(e)}getSortIndicatorSelector(){return qy}},Ky={moduleName:"Sort",version:ro,beans:[jy,Gy],apiFunctions:{onSortChanged:Wy},userComponents:{agSortIndicator:$y},icons:{sortAscending:"asc",sortDescending:"desc",sortUnSort:"none",sortAbsoluteAscending:"aasc",sortAbsoluteDescending:"adesc"}},Qy=class extends Ct{constructor(){super(...arguments),this.beanName="syncSvc",this.waitingForColumns=!1}postConstruct(){this.addManagedPropertyListener("columnDefs",e=>this.setColumnDefs(e))}start(){this.beans.ctrlsSvc.whenReady(this,()=>{const e=this.gos.get("columnDefs");e?this.setColumnsAndData(e):this.waitingForColumns=!0,this.gridReady()})}setColumnsAndData(e){const{colModel:t,rowModel:o}=this.beans;t.setColumnDefs(e??[],"gridInitializing"),o.start()}gridReady(){const{eventSvc:e,gos:t}=this;e.dispatchEvent({type:"gridReady"}),Ht(t,`initialised successfully, enterprise = ${t.isModuleRegistered("EnterpriseCore")}`)}setColumnDefs(e){const t=this.gos.get("columnDefs");if(t)return this.waitingForColumns?(this.waitingForColumns=!1,void this.setColumnsAndData(t)):void this.beans.colModel.setColumnDefs(t,Rn(e.source))}};function Xy(e){e.valueCache?.expire()}function Yy(e,t){const{colKey:o,rowNode:i,useFormatter:n}=t,s=e.colModel.getColDefCol(o)??e.colModel.getCol(o);if(r(s))return null;const a=e.valueSvc.getValueForDisplay({column:s,node:i,includeValueFormatted:n});return n?a.valueFormatted??h(a.value):a.value}var Zy="paste",Jy=class extends Ct{constructor(){super(...arguments),this.beanName="changeDetectionSvc",this.clientSideRowModel=null}postConstruct(){const{gos:e,rowModel:t}=this.beans;To(e,t)&&(this.clientSideRowModel=t),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}onCellValueChanged(e){const{gos:t,rowRenderer:o}=this.beans;if(e.source===Zy||t.get("suppressChangeDetection"))return;const i=e.node,n=[i],s=this.clientSideRowModel,r=s?.rootNode;if(r&&!i.isRowPinned()){const o=t.get("aggregateOnlyChangedColumns"),a=new Wp(o,r);a.addParentNode(i.parent,[e.column]),s.doAggregate(a),a.forEachChangedNodeDepthFirst(e=>{n.push(e),e.sibling&&n.push(e.sibling)})}o.refreshCells({rowNodes:n})}},eS=class extends Ct{constructor(){super(...arguments),this.beanName="expressionSvc",this.cache={}}evaluate(e,t){if("string"===typeof e)return this.evaluateExpression(e,t);Eo(15,{expression:e})}evaluateExpression(e,t){try{const o=this.createExpressionFunction(e),i=o(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.getValue,t.column,t.columnGroup);return i}catch(o){return Eo(16,{expression:e,params:t,e:o}),null}}createExpressionFunction(e){const t=this.cache;if(t[e])return t[e];const o=this.createFunctionBody(e),i=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",o);return t[e]=i,i}createFunctionBody(e){return e.includes("return")?e:"return "+e+";"}},tS=class extends Ct{constructor(){super(...arguments),this.beanName="valueCache",this.cacheVersion=0}postConstruct(){const e=this.gos;this.active=e.get("valueCache"),this.neverExpires=e.get("valueCacheNeverExpires")}onDataChanged(){this.neverExpires||this.expire()}expire(){this.cacheVersion++}setValue(e,t,o){if(this.active){const i=this.cacheVersion;e.__cacheVersion!==i&&(e.__cacheVersion=i,e.__cacheData={}),e.__cacheData[t]=o}}getValue(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]}},oS={moduleName:"ValueCache",version:ro,beans:[tS],apiFunctions:{expireValueCache:Xy}},iS={moduleName:"Expression",version:ro,beans:[eS]},nS={moduleName:"ChangeDetection",version:ro,beans:[Jy]},sS={moduleName:"CellApi",version:ro,apiFunctions:{getCellValue:Yy}},rS=class extends Ct{constructor(){super(...arguments),this.beanName="valueSvc",this.hasEditSvc=!1,this.initialised=!1,this.isSsrm=!1}wireBeans(e){this.expressionSvc=e.expressionSvc,this.colModel=e.colModel,this.valueCache=e.valueCache,this.dataTypeSvc=e.dataTypeSvc,this.editSvc=e.editSvc,this.hasEditSvc=!!e.editSvc,this.formulaDataSvc=e.formulaDataSvc}postConstruct(){this.initialised||this.init()}init(){const{gos:e,valueCache:t}=this;this.executeValueGetter=t?this.executeValueGetterWithValueCache.bind(this):this.executeValueGetterWithoutValueCache.bind(this),this.isSsrm=Io(e),this.cellExpressions=e.get("enableCellExpressions"),this.isTreeData=e.get("treeData"),this.initialised=!0;const o=e=>this.callColumnCellValueChangedHandler(e);this.eventSvc.addListener("cellValueChanged",o,!0),this.addDestroyFunc(()=>this.eventSvc.removeListener("cellValueChanged",o,!0)),this.addManagedPropertyListener("treeData",e=>this.isTreeData=e.currentValue)}getValueForDisplay(e){const{column:t,node:o,includeValueFormatted:i,useRawFormula:n,exporting:s,source:r="ui"}=e,{showRowGroupColValueSvc:a}=this.beans,l=!t&&o.group,d=t?.colDef.showRowGroup,c=!this.isTreeData||o.footer;if(a&&c&&(l||d)){const e=a.getGroupValue(o,t);if(null==e)return{value:null,valueFormatted:null};if(!i)return{value:e.value,valueFormatted:null};const n=a.formatAndPrefixGroupColValue(e,t,s);return{value:e.value,valueFormatted:n}}if(!t)return{value:o.key,valueFormatted:null};const u=o.leafGroup&&this.colModel.isPivotMode(),h=o.group&&o.expanded&&!o.footer&&!u,g=this.gos.get("groupSuppressBlankHeader")||!o.sibling,p=h&&!g;let f=this.getValue(t,o,p,r),m=f;const{formula:v}=this.beans,C=i&&!(s&&!1===t.colDef.useValueFormatterForExport);return t.isAllowFormula()&&v?.isFormula(f)&&(n?(f=v.normaliseFormula(f,!0),m=v.resolveValue(t,o)):(f=v.resolveValue(t,o),m=f)),{value:f,valueFormatted:C?this.formatValue(t,o,m):null}}getValue(e,t,o=!1,i="ui"){if(this.initialised||this.init(),!t)return;if(this.hasEditSvc&&"ui"===i){const o=this.editSvc;if(o.isEditing()){const i=o.getCellDataValue({rowNode:t,column:e},!0);if(void 0!==i)return i}}const n=e.getColDef(),s=n.showRowGroup;if("string"===typeof s){const e=this.beans.rowGroupColsSvc?.getColumnIndex(s)??-1;if(e>t.level)return null}let r=this.resolveValue(e,t,o);if(this.cellExpressions&&p(r)){const o=r.substring(1);r=this.executeValueGetter(o,t.data,e,t)}return r}getFormulaFromDataSource(e,t){const o=this.formulaDataSvc;if(!o?.hasDataSource()||!e.isAllowFormula())return;const i=o.getFormula({column:e,rowNode:t});return p(i)?i:void 0}resolveValue(e,t,o){const i=e.getColDef(),n=e.getColId(),s=this.isTreeData,r=this.getFormulaFromDataSource(e,t);if(void 0!==r)return r;const a=!o&&t.aggData&&void 0!==t.aggData[n];if(s&&a)return t.aggData[n];const l=t.data,d=i.field;if(s&&i.valueGetter)return this.executeValueGetter(i.valueGetter,l,e,t);if(s&&d&&l)return Bm(l,d,e.isFieldContainsDots());const c=t.groupData,u=c&&n in c;if(u)return t.groupData[n];if(a)return t.aggData[n];const h=i.showRowGroup,g="string"!==typeof h||!t.group,p=this.isSsrm&&o&&!!i.aggFunc,f=this.isSsrm&&t.footer&&t.field&&(!0===h||h===t.field);if(i.valueGetter&&!p){if(!g)return;return this.executeValueGetter(i.valueGetter,l,e,t)}if(f)return Bm(l,t.field,e.isFieldContainsDots());if(d&&l&&!p){if(!g)return;return Bm(l,d,e.isFieldContainsDots())}}parseValue(e,t,o,i){const n=e.getColDef();if(n.allowFormula&&this.beans.formula?.isFormula(o))return o;const r=n.valueParser;if(s(r)){const s=Ti(this.gos,{node:t,data:t?.data,oldValue:i,newValue:o,colDef:n,column:e});return"function"===typeof r?r(s):this.expressionSvc?.evaluate(r,s)}return o}getDeleteValue(e,t){return s(e.getColDef().valueParser)?this.parseValue(e,t,"",this.getValueForDisplay({column:e,node:t}).value)??null:null}formatValue(e,t,o,i,n=!0){const{expressionSvc:s}=this.beans;let r,a=null;const l=e.getColDef();if(i?r=i:n&&(r=l.valueFormatter),r){const i=t?t.data:null,n=Ti(this.gos,{value:o,node:t,data:i,colDef:l,column:e});a="function"===typeof r?r(n):s?s.evaluate(r,n):null}else if(l.refData)return l.refData[o]||"";return null==a&&Array.isArray(o)&&(a=o.join(", ")),a}setValue(e,t,o,i){const n=this.colModel.getColDefCol(t);if(!e||!n)return!1;this.ensureRowData(e);const s=n.getColDef();if(!this.isSetValueSupported({column:n,newValue:o,colDef:s}))return!1;const r=Ti(this.gos,{node:e,data:e.data,oldValue:this.getValue(n,e,void 0,i),newValue:o,colDef:s,column:n});r.newValue=o;const a=this.handleExternalFormulaChange({column:n,eventSource:i,newValue:o,setterParams:r,rowNode:e});if(null!==a)return a;let l=this.computeValueChange({column:n,newValue:o,params:r,rowData:e.data,valueSetter:s.valueSetter,field:s.field});return void 0===l&&(l=!0),!!l&&this.finishValueChange(e,n,r,i)}finishValueChange(e,t,o,i){e.resetQuickFilterAggregateText(),this.valueCache?.onDataChanged();const n=this.getValue(t,e);return this.dispatchCellValueChangedEvent(e,o,n,i),e.pinnedSibling&&this.dispatchCellValueChangedEvent(e.pinnedSibling,o,n,i),!0}ensureRowData(e){r(e.data)&&(e.data={})}isSetValueSupported(e){const{column:t,newValue:o,colDef:i}=e,{field:n,valueSetter:s}=i,a=this.beans.formula,l=t.isAllowFormula()&&a?.isFormula(o),d=!!this.formulaDataSvc?.hasDataSource();return!r(n)||!r(s)||d&&l?!(this.dataTypeSvc&&!this.dataTypeSvc.checkType(t,o))||(xo(135),!1):(xo(17),!1)}handleExternalFormulaChange(e){const{column:t,rowNode:o,newValue:i,eventSource:n,setterParams:a}=e,l=this.beans.formula,d=this.formulaDataSvc;if(!d?.hasDataSource()||!t.isAllowFormula())return null;const c=l?.isFormula(i),u=d.getFormula({column:t,rowNode:o});if(c){const e=u!==i;if(!e)return!1;d.setFormula({column:t,rowNode:o,formula:i});const c=l?.resolveValue(t,o),h=t.getColDef();if(s(h.valueSetter)||!r(h.field)){const e={...a,newValue:c};this.computeValueChange({column:t,newValue:c,params:e,rowData:o.data,valueSetter:h.valueSetter,field:h.field})}return this.finishValueChange(o,t,a,n)}return void 0!==u&&d.setFormula({column:t,rowNode:o,formula:void 0}),null}computeValueChange(e){const{valueSetter:t,params:o,rowData:i,field:n,column:r,newValue:a}=e;return s(t)?"function"===typeof t?t(o):this.expressionSvc?.evaluate(t,o):this.setValueUsingField(i,n,a,r.isFieldContainsDots())}dispatchCellValueChangedEvent(e,t,o,i){this.eventSvc.dispatchEvent({type:"cellValueChanged",event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:t.column,colDef:t.colDef,data:e.data,node:e,oldValue:t.oldValue,newValue:o,value:o,source:i})}callColumnCellValueChangedHandler(e){const t=e.colDef.onCellValueChanged;"function"===typeof t&&this.beans.frameworkOverrides.wrapOutgoing(()=>{t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,context:e.context})})}setValueUsingField(e,t,o,i){if(!t)return!1;let n=!1;if(i){const i=t.split(".");let s=e;while(i.length>0&&s){const e=i.shift();0===i.length?(n=s[e]===o,n||(s[e]=o)):s=s[e]}}else n=e[t]===o,n||(e[t]=o);return!n}executeValueGetterWithValueCache(e,t,o,i){const n=o.getColId(),s=this.valueCache.getValue(i,n);if(void 0!==s)return s;const r=this.executeValueGetterWithoutValueCache(e,t,o,i);return this.valueCache.setValue(i,n,r),r}executeValueGetterWithoutValueCache(e,t,o,i){const n=Ti(this.gos,{data:t,node:i,column:o,colDef:o.getColDef(),getValue:this.getValueCallback.bind(this,i)});let s;return s="function"===typeof e?e(n):this.expressionSvc?.evaluate(e,n),s}getValueCallback(e,t){const o=this.colModel.getColDefCol(t);return o?this.getValue(o,e):null}getKeyForNode(e,t){const o=this.getValue(e,t),i=e.getColDef().keyCreator;let n=o;if(i){const s=Ti(this.gos,{value:o,colDef:e.getColDef(),column:e,node:t,data:t.data});n=i(s)}return"string"===typeof n||null==n||(n=String(n),"[object Object]"===n&&xo(121)),n}},aS={moduleName:"CommunityCore",version:ro,beans:[nw,Sp,Jm,ys,Iy,om,YC,Bw,ns,iy,oy,By,rS,ow,XC,iw,tv,Qy,Km,Qm,qw],icons:{selectOpen:"small-down",smallDown:"small-down",colorPicker:"color-picker",smallUp:"small-up",checkboxChecked:"small-up",checkboxIndeterminate:"checkbox-indeterminate",checkboxUnchecked:"checkbox-unchecked",radioButtonOn:"radio-button-on",radioButtonOff:"radio-button-off",smallLeft:"small-left",smallRight:"small-right"},apiFunctions:{getGridId:Rp,destroy:xp,isDestroyed:Ep,getGridOption:Fp,setGridOption:Pp,updateGridOptions:Dp,isModuleRegistered:kp},dependsOn:[Um,If,zf,Ky,Ww,rm,_w,Ty,nS,$w,ty,ay,cy,Kw,Zm,$m,iS,cm,py]},lS={AdvancedFilter:1,AiToolkit:1,AllEnterprise:1,BatchEdit:1,CellSelection:1,Clipboard:1,ColumnMenu:1,ColumnsToolPanel:1,ContextMenu:1,ExcelExport:1,FiltersToolPanel:1,Find:1,GridCharts:1,IntegratedCharts:1,GroupFilter:1,MasterDetail:1,Menu:1,MultiFilter:1,NewFiltersToolPanel:1,Pivot:1,RangeSelection:1,RichSelect:1,RowNumbers:1,RowGrouping:1,RowGroupingPanel:1,ServerSideRowModelApi:1,ServerSideRowModel:1,SetFilter:1,SideBar:1,Sparklines:1,StatusBar:1,TreeData:1,ViewportRowModel:1,Formula:1},dS=["TextFilter","NumberFilter","DateFilter","SetFilter","MultiFilter","GroupFilter","CustomFilter"],cS={EditCore:["TextEditor","NumberEditor","DateEditor","CheckboxEditor","LargeTextEditor","SelectEditor","RichSelect","CustomEditor"],CheckboxCellRenderer:["AllCommunity"],ClientSideRowModelHierarchy:["RowGrouping","Pivot","TreeData"],ColumnFilter:dS,ColumnGroupHeaderComp:["AllCommunity"],ColumnGroup:["AllCommunity"],ColumnHeaderComp:["AllCommunity"],ColumnMove:["AllCommunity"],ColumnResize:["AllCommunity"],CommunityCore:["AllCommunity"],CsrmSsrmSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],RowModelSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],EnterpriseCore:["AllEnterprise"],FilterCore:[...dS,"QuickFilter","ExternalFilter","AdvancedFilter"],GroupCellRenderer:["RowGrouping","Pivot","TreeData","MasterDetail","ServerSideRowModel"],KeyboardNavigation:["AllCommunity"],LoadingCellRenderer:["ServerSideRowModel"],MenuCore:["ColumnMenu","ContextMenu"],MenuItem:["ColumnMenu","ContextMenu","MultiFilter","IntegratedCharts","ColumnsToolPanel"],Overlay:["AllCommunity"],PinnedColumn:["AllCommunity"],SharedAggregation:["RowGrouping","Pivot","TreeData","ServerSideRowModel"],SharedDragAndDrop:["AllCommunity"],SharedMasterDetail:["MasterDetail","ServerSideRowModel"],SharedMenu:[...dS,"ColumnMenu","ContextMenu"],SharedPivot:["Pivot","ServerSideRowModel"],SharedRowGrouping:["RowGrouping","ServerSideRowModel"],SharedRowSelection:["RowSelection","ServerSideRowModel"],SkeletonCellRenderer:["ServerSideRowModel"],Sort:["AllCommunity"],SsrmInfiniteSharedApi:["InfiniteRowModel","ServerSideRowModelApi"],SharedTreeData:["TreeData","ServerSideRowModel"]},uS={InfiniteRowModel:"infinite",ClientSideRowModelApi:"clientSide",ClientSideRowModel:"clientSide",ServerSideRowModelApi:"serverSide",ServerSideRowModel:"serverSide",ViewportRowModel:"viewport"};function hS(e,t){const o=[];for(const i of Array.isArray(e)?e:[e]){const e=cS[i];if(e)for(const i of e){const e=uS[i];e&&e!==t||o.push(i)}else o.push(i)}return o}var gS=()=>"No AG Grid modules are registered! It is recommended to start with all Community features via the AllCommunityModule:\n \n import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community';\n \n ModuleRegistry.registerModules([ AllCommunityModule ]);\n ",pS=e=>{const t=e.map(e=>`import { ${fS(e)} } from '${lS[e]?"ag-grid-enterprise":"ag-grid-community"}';`),o=e.some(e=>"IntegratedCharts"===e||"Sparklines"===e);if(o){const e="import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';";t.push(e)}return`import { ModuleRegistry } from 'ag-grid-community'; \n${t.join(" \n")} \n\nModuleRegistry.registerModules([ ${e.map(e=>fS(e,!0)).join(", ")} ]); \n\nFor more info see: ${ho}/modules/`};function fS(e,t=!1){return!t||"IntegratedCharts"!==e&&"Sparklines"!==e?`${e}Module`:`${e}Module.with(AgChartsEnterpriseModule)`}function mS(e,t){const o=t.filter(e=>"IntegratedCharts"===e||"Sparklines"===e);let i="";const n=globalThis?.agCharts;return!n&&o.length>0?i=`Unable to use ${e} as either the ag-charts-community or ag-charts-enterprise script needs to be included alongside ag-grid-enterprise.\n`:t.some(e=>lS[e])&&(i+=`Unable to use ${e} as that requires the ag-grid-enterprise script to be included.\n`),i}function vS({moduleName:e,rowModelType:t}){return`To use the ${e}Module you must set the gridOption "rowModelType='${t}'"`}var CS=({reasonOrId:e,moduleName:t,gridScoped:o,gridId:i,rowModelType:n,additionalText:s,isUmd:r})=>{const a=hS(t,n),l="string"===typeof e?e:RS[e];if(r)return mS(l,a);const d=a.filter(e=>"IntegratedCharts"===e||"Sparklines"===e),c=d.length>0?`${d.map(e=>fS(e)).join()} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.`:"",u=`Unable to use ${l} as ${a.length>1?"one of "+a.map(e=>fS(e)).join(", "):fS(a[0])} is not registered${o?" for gridId: "+i:""}. ${c} Check if you have registered the module:\n`;return`${u}\n${pS(a)}`+(s?` \n\n${s}`:"")},wS=e=>`${e} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.\n\nimport { AgChartsEnterpriseModule } from 'ag-charts-enterprise';\nimport { ModuleRegistry } from 'ag-grid-community';\nimport { ${e} } from 'ag-grid-enterprise';\n \nModuleRegistry.registerModules([${e}.with(AgChartsEnterpriseModule)]);\n `,bS=e=>`AG Grid: Unable to use the Clipboard API (navigator.clipboard.${e}()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.`,yS={1:()=>"`rowData` must be an array",2:({nodeId:e})=>`Duplicate node id '${e}' detected from getRowId callback, this could cause issues in your grid.`,3:()=>"Calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.",4:({id:e})=>`Could not find row id=${e}, data item was not found for this id`,5:({data:e})=>["Could not find data item as object was not found.",e," Consider using getRowId to help the Grid find matching row data"],6:()=>"'groupHideOpenParents' only works when specifying specific columns for 'colDef.showRowGroup'",7:()=>"Pivoting is not supported with aligned grids as it may produce different columns in each grid.",8:({key:e})=>`Unknown key for navigation ${e}`,9:({variable:e})=>`No value for ${e?.cssName}. This usually means that the grid has been initialised before styles have been loaded. The default value of ${e?.defaultValue} will be used and updated when styles load.`,10:({eventType:e})=>`As of v33, the '${e}' event is deprecated. Use the global 'modelUpdated' event to determine when row children have changed.`,11:()=>"No gridOptions provided to createGrid",12:({colKey:e})=>["column ",e," not found"],13:()=>"Could not find rowIndex, this means tasks are being executed on a rowNode that has been removed from the grid.",14:({groupPrefix:e})=>`Row IDs cannot start with ${e}, this is a reserved prefix for AG Grid's row grouping feature.`,15:({expression:e})=>["value should be either a string or a function",e],16:({expression:e,params:t,e:o})=>["Processing of the expression failed","Expression = ",e,"Params = ",t,"Exception = ",o],17:()=>"you need either field or valueSetter set on colDef for editing to work",18:()=>"alignedGrids contains an undefined option.",19:()=>"alignedGrids - No api found on the linked grid.",20:()=>'You may want to configure via a callback to avoid setup race conditions:\n "alignedGrids: () => [linkedGrid]"',21:()=>"pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.",22:({key:e})=>`${e} is an initial property and cannot be updated.`,23:()=>"The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.",24:()=>"row height must be a number if not using standard row model",25:({id:e})=>["The getRowId callback must return a string. The ID ",e," is being cast to a string."],26:({fnName:e,preDestroyLink:t})=>`Grid API function ${e}() cannot be called as the grid has been destroyed.\n Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.\n To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${t}`,27:({fnName:e,module:t})=>`API function '${e}' not registered to module '${t}'`,28:()=>"setRowCount cannot be used while using row grouping.",29:()=>"tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?",30:({toIndex:e})=>["tried to insert columns in invalid location, toIndex = ",e,"remember that you should not count the moving columns when calculating the new index"],31:()=>"infinite loop in resizeColumnSets",32:()=>"applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state.",33:()=>"stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON.",34:({key:e})=>`the column type '${e}' is a default column type and cannot be overridden.`,35:()=>"Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type.",36:({t:e})=>"colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes",37:()=>"Changing the column pinning status is not allowed with domLayout='print'",38:({iconName:e})=>`provided icon '${e}' needs to be a string or a function`,39:()=>"Applying column order broke a group where columns should be married together. Applying new order has been discarded.",40:({e:e,method:t})=>`${e}\n${bS(t)}`,41:()=>"Browser did not allow document.execCommand('copy'). Ensure 'api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons.",42:()=>"Browser does not support document.execCommand('copy') for clipboard operations",43:({iconName:e})=>`As of v33, icon '${e}' is deprecated. Use the icon CSS name instead.`,44:()=>'Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.',45:({parentCellDataType:e})=>`The data type definition ${e} does not exist.`,46:()=>'The "baseDataType" property of a data type definition must match that of its parent.',47:({cellDataType:e})=>`Missing data type definition - "${e}"`,48:({property:e})=>`Cell data type is "object" but no Value ${e} has been provided. Please either provide an object data type definition with a Value ${e}, or set "colDef.value${e}"`,49:({methodName:e})=>`Framework component is missing the method ${e}()`,50:({compName:e})=>`Could not find component ${e}, did you forget to configure this component?`,51:()=>"Export cancelled. Export is not allowed as per your configuration.",52:()=>"There is no `window` associated with the current `document`",53:()=>"unknown value type during csv conversion",54:()=>"Could not find document body, it is needed for drag and drop and context menu.",55:()=>"addRowDropZone - A container target needs to be provided",56:()=>"addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.",57:()=>"unable to show popup filter, filter instantiation failed",58:()=>"no values found for select cellEditor",59:()=>"cannot select pinned rows",60:()=>"cannot select node until it has finished loading",61:()=>"since version v32.2.0, rowNode.isFullWidthCell() has been deprecated. Instead check `rowNode.detail` followed by the user provided `isFullWidthRow` grid option.",62:({colId:e})=>`setFilterModel() - no column found for colId: ${e}`,63:({colId:e})=>`setFilterModel() - unable to fully apply model, filtering disabled for colId: ${e}`,64:({colId:e})=>`setFilterModel() - unable to fully apply model, unable to create filter for colId: ${e}`,65:()=>"filter missing setModel method, which is needed for setFilterModel",66:()=>"filter API missing getModel method, which is needed for getFilterModel",67:()=>"Filter is missing isFilterActive() method",68:()=>"Column Filter API methods have been disabled as Advanced Filters are enabled.",69:({guiFromFilter:e})=>`getGui method from filter returned ${e}; it should be a DOM element.`,70:({newFilter:e})=>"Grid option quickFilterText only supports string inputs, received: "+typeof e,71:()=>"debounceMs is ignored when apply button is present",72:({keys:e})=>["ignoring FilterOptionDef as it doesn't contain one of ",e],73:()=>"invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'",74:()=>"no filter options for filter",75:()=>"Unknown button type specified",76:({filterModelType:e})=>['Unexpected type of filter "',e,'", it looks like the filter was configured with incorrect Filter Options'],77:()=>"Filter model is missing 'conditions'",78:()=>'Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.',79:()=>'"filterParams.maxNumConditions" must be greater than or equal to zero.',80:()=>'"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.',81:()=>'"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".',82:({param:e})=>`DateFilter ${e} is not a number`,83:()=>"DateFilter minValidYear should be <= maxValidYear",84:()=>"DateFilter minValidDate should be <= maxValidDate",85:()=>"DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored.",86:()=>"DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored.",87:()=>"DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.",88:({index:e})=>`Invalid row index for ensureIndexVisible: ${e}`,89:()=>"A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)",90:()=>"datasource is missing getRows method",91:()=>"Filter is missing method doesFilterPass",92:()=>"AnimationFrameService called but animation frames are off",93:()=>"cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`",94:({paginationPageSizeOption:e,pageSizeSet:t,pageSizesSet:o,pageSizeOptions:i})=>`'paginationPageSize=${e}'${t?"":" (default value)"}, but ${e} is not included in${o?"":" the default"} paginationPageSizeSelector=[${i?.join(", ")}].`,95:({paginationPageSizeOption:e,paginationPageSizeSelector:t})=>`Either set '${t}' to an array that includes ${e} or to 'false' to disable the page size selector.`,96:({id:e,data:t})=>["Duplicate ID",e,"found for pinned row with data",t,"When `getRowId` is defined, it must return unique IDs for all pinned rows. Use the `rowPinned` parameter."],97:({colId:e})=>`cellEditor for column ${e} is missing getGui() method`,98:()=>"popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.",99:()=>"Since v32, `api.hideOverlay()` does not hide the loading overlay when `loading=true`. Set `loading=false` instead.",101:({propertyName:e,componentName:t,agGridDefaults:o,jsComps:i})=>{const n=[],s=[...Object.keys(o??[]).filter(e=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(e)),...Object.keys(i??[]).filter(e=>!!i[e])],r=ha({inputValue:t,allSuggestions:s,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return n.push(`Could not find '${t}' component. It was configured as "${e}: '${t}'" but it wasn't found in the list of registered components.\n`),r.length>0&&n.push(` Did you mean: [${r.slice(0,3)}]?\n`),n.push("If using a custom component check it has been registered correctly."),n},102:()=>"selectAll: 'filtered' only works when gridOptions.rowModelType='clientSide'",103:()=>"Invalid selection state. When using client-side row model, the state must conform to `string[]`.",104:({value:e,param:t})=>`Numeric value ${e} passed to ${t} param will be interpreted as ${e} seconds. If this is intentional use "${e}s" to silence this warning.`,105:({e:e})=>["chart rendering failed",e],106:()=>`Theming API and Legacy Themes are both used in the same page. A Theming API theme has been provided to the 'theme' grid option, but the file (ag-grid.css) is also included and will cause styling issues. Remove ag-grid.css from the page. See the migration guide: ${ho}/theming-migration/`,107:({key:e,value:t})=>`Invalid value for theme param ${e} - ${t}`,108:({e:e})=>["chart update failed",e],109:({inputValue:e,allSuggestions:t})=>{const o=ha({inputValue:e,allSuggestions:t,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return[`Could not find '${e}' aggregate function. It was configured as "aggFunc: '${e}'" but it wasn't found in the list of registered aggregations.`,o.length>0?` Did you mean: [${o.slice(0,3)}]?`:"","If using a custom aggregation function check it has been registered correctly."].join("\n")},110:()=>"groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup",111:()=>"Invalid selection state. When `groupSelects` is enabled, the state must conform to `IServerSideGroupSelectionState`.",113:()=>"Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values",114:({component:e})=>`Could not find component with name of ${e}. Is it in Vue.components?`,116:()=>"Invalid selection state. The state must conform to `IServerSideSelectionState`.",117:()=>"selectAll must be of boolean type.",118:()=>"Infinite scrolling must be enabled in order to set the row count.",119:()=>"Unable to instantiate filter",120:()=>"MultiFloatingFilterComp expects MultiFilter as its parent",121:()=>"a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (see AG Grid docs) or b) to toString() on the object to return a key",122:()=>"could not find the document, document is empty",123:()=>"Advanced Filter is only supported with the Client-Side Row Model or Server-Side Row Model.",124:()=>"No active charts to update.",125:({chartId:e})=>`Unable to update chart. No active chart found with ID: ${e}.`,126:()=>"unable to restore chart as no chart model is provided",127:({allRange:e})=>`unable to create chart as ${e?"there are no columns in the grid":"no range is selected"}.`,128:({feature:e})=>`${e} is only available if using 'multiRow' selection mode.`,129:({feature:e,rowModel:t})=>`${e} is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ${t}.`,130:()=>'cannot multi select unless selection mode is "multiRow"',132:()=>"Row selection features are not available unless `rowSelection` is enabled.",133:({iconName:e})=>`icon '${e}' function should return back a string or a dom object`,134:({iconName:e})=>`Did not find icon '${e}'`,135:()=>"Data type of the new value does not match the cell data type of the column",136:()=>"Unable to update chart as the 'type' is missing. It must be either 'rangeChartUpdate', 'pivotChartUpdate', or 'crossFilterChartUpdate'.",137:({type:e,currentChartType:t})=>`Unable to update chart as a '${e}' update type is not permitted on a ${t}.`,138:({chartType:e})=>`invalid chart type supplied: ${e}`,139:({customThemeName:e})=>`a custom chart theme with the name ${e} has been supplied but not added to the 'chartThemes' list`,140:({name:e})=>`no stock theme exists with the name '${e}' and no custom chart theme with that name was supplied to 'customChartThemes'`,141:()=>"cross filtering with row grouping is not supported.",142:()=>"cross filtering is only supported in the client side row model.",143:({panel:e})=>`'${e}' is not a valid Chart Tool Panel name`,144:({type:e})=>`Invalid charts data panel group name supplied: '${e}'`,145:({group:e})=>`As of v32, only one charts customize panel group can be expanded at a time. '${e}' will not be expanded.`,146:({comp:e})=>`Unable to instantiate component '${e}' as its module hasn't been loaded. Add 'ValidationModule' to see which module is required.`,147:({group:e})=>`Invalid charts customize panel group name supplied: '${e}'`,148:({group:e})=>`invalid chartGroupsDef config '${e}'`,149:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,150:()=>"'seriesChartTypes' are required when the 'customCombo' chart type is specified.",151:({chartType:e})=>`invalid chartType '${e}' supplied in 'seriesChartTypes', converting to 'line' instead.`,152:({colId:e})=>`no 'seriesChartType' found for colId = '${e}', defaulting to 'line'.`,153:({chartDataType:e})=>`unexpected chartDataType value '${e}' supplied, instead use 'category', 'series' or 'excluded'`,154:({colId:e})=>`cross filtering requires a 'agSetColumnFilter' or 'agMultiColumnFilter' to be defined on the column with id: ${e}`,155:({option:e})=>`'${e}' is not a valid Chart Toolbar Option`,156:({panel:e})=>`Invalid panel in chartToolPanelsDef.panels: '${e}'`,157:({unrecognisedGroupIds:e})=>["unable to find group(s) for supplied groupIds:",e],158:()=>"can not expand a column item that does not represent a column group header",159:()=>"Invalid params supplied to createExcelFileForExcel() - `ExcelExportParams.data` is empty.",160:()=>"Export cancelled. Export is not allowed as per your configuration.",161:()=>"The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'",162:({id:e,dataType:t})=>`Unrecognized data type for excel export [${e}.dataType=${t}]`,163:({featureName:e})=>`Excel table export does not work with ${e}. The exported Excel file will not contain any Excel tables.\n Please turn off ${e} to enable Excel table exports.`,164:()=>"Unable to add data table to Excel sheet: A table already exists.",165:()=>"Unable to add data table to Excel sheet: Missing required parameters.",166:({unrecognisedGroupIds:e})=>["unable to find groups for these supplied groupIds:",e],167:({unrecognisedColIds:e})=>["unable to find columns for these supplied colIds:",e],168:()=>"detailCellRendererParams.template should be function or string",169:()=>'Reference to eDetailGrid was missing from the details template. Please add data-ref="eDetailGrid" to the template.',170:({providedStrategy:e})=>`invalid cellRendererParams.refreshStrategy = ${e} supplied, defaulting to refreshStrategy = 'rows'.`,171:()=>"could not find detail grid options for master detail, please set gridOptions.detailCellRendererParams.detailGridOptions",172:()=>"could not find getDetailRowData for master / detail, please set gridOptions.detailCellRendererParams.getDetailRowData",173:({group:e})=>`invalid chartGroupsDef config '${e}'`,174:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,175:({menuTabName:e,itemsToConsider:t})=>[`Trying to render an invalid menu item '${e}'. Check that your 'menuTabs' contains one of `,t],176:({key:e})=>`unknown menu item type ${e}`,177:()=>"valid values for cellSelection.handle.direction are 'x', 'y' and 'xy'. Default to 'xy'.",178:({colId:e})=>`column ${e} is not visible`,179:()=>"totalValueGetter should be either a function or a string (expression)",180:()=>"agRichSelectCellEditor requires cellEditorParams.values to be set",181:()=>"agRichSelectCellEditor cannot have `multiSelect` and `allowTyping` set to `true`. AllowTyping has been turned off.",182:()=>'you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data',183:()=>"Group Column Filter only works on group columns. Please use a different filter.",184:({parentGroupData:e,childNodeData:t})=>["duplicate group keys for row data, keys should be unique",[e,t]],185:({data:e})=>["getDataPath() should not return an empty path",[e]],186:({rowId:e,rowData:t,duplicateRowsData:o})=>["duplicate group keys for row data, keys should be unique",e,t,...o??[]],187:({rowId:e,firstData:t,secondData:o})=>[`Duplicate node id ${e}. Row IDs are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.`,"first instance",t,"second instance",o],188:e=>`getRowId callback must be provided for Server Side Row Model ${e?.feature||"selection"} to work correctly.`,189:({startRow:e})=>`invalid value ${e} for startRow, the value should be >= 0`,190:({rowGroupId:e,data:t})=>["null and undefined values are not allowed for server side row model keys",e?`column = ${e}`:"","data is ",t],194:({method:e})=>`calling gridApi.${e}() is only possible when using rowModelType=\`clientSide\`.`,195:({justCurrentPage:e})=>`selecting just ${e?"current page":"filtered"} only works when gridOptions.rowModelType='clientSide'`,196:({key:e})=>`Provided ids must be of string type. Invalid id provided: ${e}`,197:()=>"`toggledNodes` must be an array of string ids.",199:()=>"getSelectedNodes and getSelectedRows functions cannot be used with select all functionality with the server-side row model. Use `api.getServerSideSelectionState()` instead.",200:CS,201:({rowModelType:e})=>`Could not find row model for rowModelType = ${e}`,202:()=>"`getSelectedNodes` and `getSelectedRows` functions cannot be used with `groupSelectsChildren` and the server-side row model. Use `api.getServerSideSelectionState()` instead.",203:()=>"Server Side Row Model does not support Dynamic Row Height and Cache Purging. Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.",204:()=>"Server Side Row Model does not support Auto Row Height and Cache Purging. Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.",205:({duplicateIdText:e})=>`Unable to display rows as duplicate row ids (${e}) were returned by the getRowId callback. Please modify the getRowId callback to provide unique ids.`,206:()=>"getRowId callback must be implemented for transactions to work. Transaction was ignored.",207:()=>'The Set Filter Parameter "defaultToNothingSelected" value was ignored because it does not work when "excelMode" is used.',208:()=>"Set Filter Value Formatter must return string values. Please ensure the Set Filter Value Formatter returns string values for complex objects.",209:()=>`Set Filter Key Creator is returning null for provided values and provided values are primitives. Please provide complex objects. See ${ho}/filter-set-filter-list/#filter-value-types`,210:()=>"Set Filter has a Key Creator, but provided values are primitives. Did you mean to provide complex objects?",211:()=>"property treeList=true for Set Filter params, but you did not provide a treeListPathGetter or values of type Date.",212:()=>"please review all your toolPanel components, it seems like at least one of them doesn't have an id",213:()=>"Advanced Filter does not work with Filters Tool Panel. Filters Tool Panel has been disabled.",214:({key:e})=>`unable to lookup Tool Panel as invalid key supplied: ${e}`,215:({key:e,defaultByKey:t})=>`the key ${e} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(t??{}).join(",")}`,216:({name:e})=>`Missing component for '${e}'`,217:({invalidColIds:e})=>["unable to find grid columns for the supplied colDef(s):",e],218:({property:e,defaultOffset:t})=>`${e} must be a number, the value you provided is not a valid number. Using the default of ${t}px.`,219:({property:e})=>`Property ${e} does not exist on the target object.`,220:({lineDash:e})=>`'${e}' is not a valid 'lineDash' option.`,221:()=>"agAggregationComponent should only be used with the client and server side row model.",222:()=>"agFilteredRowCountComponent should only be used with the client side row model.",223:()=>"agSelectedRowCountComponent should only be used with the client and server side row model.",224:()=>"agTotalAndFilteredRowCountComponent should only be used with the client side row model.",225:()=>"agTotalRowCountComponent should only be used with the client side row model.",226:()=>"viewport is missing init method.",227:()=>"menu item icon must be DOM node or string",228:({menuItemOrString:e})=>`unrecognised menu item ${e}`,230:()=>"detailCellRendererParams.template is not supported by AG Grid React. To change the template, provide a Custom Detail Cell Renderer. See https://www.ag-grid.com/react-data-grid/master-detail-custom-detail/",231:()=>"As of v32, using custom components with `reactiveCustomComponents = false` is deprecated.",232:()=>"Using both rowData and v-model. rowData will be ignored.",233:({methodName:e})=>`Framework component is missing the method ${e}()`,234:()=>'Group Column Filter does not work with the colDef property "field". This property will be ignored.',235:()=>'Group Column Filter does not work with the colDef property "filterValueGetter". This property will be ignored.',236:()=>'Group Column Filter does not work with the colDef property "filterParams". This property will be ignored.',237:()=>"Group Column Filter does not work with Tree Data enabled. Please disable Tree Data, or use a different filter.",238:()=>"setRowCount can only accept a positive row count.",239:()=>'Theming API and CSS File Themes are both used in the same page. In v33 we released the Theming API as the new default method of styling the grid. See the migration docs https://www.ag-grid.com/react-data-grid/theming-migration/. Because no value was provided to the `theme` grid option it defaulted to themeQuartz. But the file (ag-grid.css) is also included and will cause styling issues. Either pass the string "legacy" to the theme grid option to use v32 style themes, or remove ag-grid.css from the page to use Theming API.',240:({theme:e})=>`theme grid option must be a Theming API theme object or the string "legacy", received: ${e}`,243:()=>"Failed to deserialize state - each provided state object must be an object.",244:()=>"Failed to deserialize state - `selectAllChildren` must be a boolean value or undefined.",245:()=>"Failed to deserialize state - `toggledNodes` must be an array.",246:()=>"Failed to deserialize state - Every `toggledNode` requires an associated string id.",247:()=>"Row selection state could not be parsed due to invalid data. Ensure all child state has toggledNodes or does not conform with the parent rule. \nPlease rebuild the selection state and reapply it.",248:()=>"SetFloatingFilter expects SetFilter as its parent",249:()=>"Must supply a Value Formatter in Set Filter params when using a Key Creator",250:()=>"Must supply a Key Creator in Set Filter params when `treeList = true` on a group column, and Tree Data or Row Grouping is enabled.",251:({chartType:e})=>`AG Grid: Unable to create chart as an invalid chartType = '${e}' was supplied.`,252:()=>"cannot get grid to draw rows when it is in the middle of drawing rows. \nYour code probably called a grid API method while the grid was in the render stage. \nTo overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). \nTo see what part of your code that caused the refresh check this stacktrace.",253:({version:e})=>["Illegal version string: ",e],254:()=>"Cannot create chart: no chart themes available.",255:({point:e})=>`Lone surrogate U+${e?.toString(16).toUpperCase()} is not a scalar value`,256:()=>"Unable to initialise. See validation error, or load ValidationModule if missing.",257:()=>wS("IntegratedChartsModule"),258:()=>wS("SparklinesModule"),259:({part:e})=>`the argument to theme.withPart must be a Theming API part object, received: ${e}`,260:({propName:e,compName:t,gridScoped:o,gridId:i,rowModelType:n})=>CS({reasonOrId:`AG Grid '${e}' component: ${t}`,moduleName:cw[t],gridId:i,gridScoped:o,rowModelType:n}),261:()=>"As of v33, `column.isHovered()` is deprecated. Use `api.isColumnHovered(column)` instead.",262:()=>'As of v33, icon key "smallDown" is deprecated. Use "advancedFilterBuilderSelect" for Advanced Filter Builder dropdown, "selectOpen" for Select cell editor and dropdowns (e.g. Integrated Charts menu), "richSelectOpen" for Rich Select cell editor.',263:()=>'As of v33, icon key "smallLeft" is deprecated. Use "panelDelimiterRtl" for Row Group Panel / Pivot Panel, "subMenuOpenRtl" for sub-menus.',264:()=>'As of v33, icon key "smallRight" is deprecated. Use "panelDelimiter" for Row Group Panel / Pivot Panel, "subMenuOpen" for sub-menus.',265:({colId:e})=>`Unable to infer chart data type for column '${e}' if first data entry is null. Please specify "chartDataType", or a "cellDataType" in the column definition. For more information, see ${ho}/integrated-charts-range-chart#coldefchartdatatype .`,266:()=>'As of v33.1, using "keyCreator" with the Rich Select Editor has been deprecated. It now requires the "formatValue" callback to convert complex data to strings.',267:()=>"Detail grids can not use a different theme to the master grid, the `theme` detail grid option will be ignored.",268:()=>"Transactions aren't supported with tree data when using treeDataChildrenField",269:()=>"When `masterSelects: 'detail'`, detail grids must be configured with multi-row selection",270:({id:e,parentId:t})=>`Cycle detected for row with id='${e}' and parent id='${t}'. Resetting the parent for row with id='${e}' and showing it as a root-level node.`,271:({id:e,parentId:t})=>`Parent row not found for row with id='${e}' and parent id='${t}'. Showing row with id='${e}' as a root-level node.`,272:()=>gS(),273:({providedId:e,usedId:t})=>`Provided column id '${e}' was already in use, ensure all column and group ids are unique. Using '${t}' instead.`,274:({prop:e})=>{let t=`Since v33, ${e} has been deprecated.`;switch(e){case"maxComponentCreationTimeMs":t+=" This property is no longer required and so will be removed in a future version.";break;case"setGridApi":t+=" This method is not called by AG Grid. To access the GridApi see: https://ag-grid.com/react-data-grid/grid-interface/#grid-api ";break;case"children":t+=" For multiple versions AgGridReact does not support children.";break}return t},275:vS,276:()=>"Row Numbers Row Resizer cannot be used when Grid Columns have `autoHeight` enabled.",277:({colId:e})=>`'enableFilterHandlers' is set to true, but column '${e}' does not have 'filter.doesFilterPass' or 'filter.handler' set.`,278:({colId:e})=>`Unable to create filter handler for column '${e}'`,279:e=>{},280:({colId:e})=>`'name' must be provided for custom filter components for column '${e}`,281:({colId:e})=>`Filter for column '${e}' does not have 'filterParams.buttons', but the new Filters Tool Panel has buttons configured. Either configure buttons for the filter, or disable buttons on the Filters Tool Panel.`,282:()=>"New filter tool panel requires `enableFilterHandlers: true`.",283:()=>"As of v34, use the same method on the filter handler (`api.getColumnFilterHandler(colKey)`) instead.",284:()=>"As of v34, filters are active when they have a model. Use `api.getColumnFilterModel()` instead.",285:()=>"As of v34, use (`api.getColumnFilterModel()`) instead.",286:()=>"As of v34, use (`api.setColumnFilterModel()`) instead.",287:()=>"`api.doFilterAction()` requires `enableFilterHandlers = true",288:()=>"`api.getColumnFilterModel(key, true)` requires `enableFilterHandlers = true",289:({rowModelType:e})=>`Row Model '${e}' is not supported with Batch Editing`,290:({rowIndex:e,rowPinned:t})=>`Row with index '${e}' and pinned state '${t}' not found`,291:()=>"License Key being set multiple times with different values. This can result in an incorrect license key being used,",292:({colId:e})=>`The Multi Filter for column '${e}' has buttons configured against the child filters. When 'enableFilterHandlers=true', buttons must instead be provided against the parent Multi Filter params. The child filter buttons will be ignored.`,293:()=>"The grid was initialised detached from the DOM and was then inserted into a Shadow Root. Theme styles are probably broken. Pass the themeStyleContainer grid option to let the grid know where in the document to insert theme CSS.",294:()=>"When using the `agRichSelectCellEditor` setting `filterListAsync = true` requires `allowTyping = true` and the `values()` callback must return a Promise of filtered values.",295:({blockedService:e})=>`colDef.allowFormula is not supported with ${e}. Formulas has been turned off.`,296:()=>"Since v35, `api.hideOverlay()` does not hide the overlay when `activeOverlay` is set. Set `activeOverlay=null` instead.",297:()=>'`api.hideOverlay()` does not hide the no matching rows overlay as it is only controlled by grid state. Set `suppressOverlays=["noMatchingRows"] to not show it.'};function SS(e,t){const o=yS[e];if(!o)return[`Missing error text for error id ${e}!`];const i=o(t),n=So(e,t),s=`\nSee ${n}`;return Array.isArray(i)?i.concat(s):[i,s]}var RS={1:"Charting Aggregation",2:"pivotResultFields",3:"setTooltip"},xS=new WeakMap,ES=new WeakMap;function FS(e,t,o){if(!t)return Eo(11),{};const i=o;let n;if(!i?.setThemeOnGridDiv){const t=Zd({tag:"div"});t.style.height="100%",e.appendChild(t),e=t,n=()=>e.remove()}const s=(new DS).create(e,t,t=>{const o=new mp(e);t.createBean(o)},void 0,o,n);return s}var PS=1,DS=class{create(e,t,o,i,n,s){const r=Tt.applyGlobalGridOptions(t),a=r.gridId??String(PS++),l=this.getRegisteredModules(n,a,r.rowModelType),d=this.createBeansList(r.rowModelType,l,a),c=this.createProvidedBeans(e,r,n);if(!d)return;const u=()=>{ES.delete(p),xS.delete(e),Xt(a),s?.()},h={providedBeanInstances:c,beanClasses:d,id:a,beanInitComparator:Yg,beanDestroyComparator:Zg,derivedBeans:[Kg],destroyCallback:u},g=new Xl(h);this.registerModuleFeatures(g,l),o(g),g.getBean("syncSvc").start(),i?.(g);const p=g.getBean("gridApi");return xS.set(e,p),ES.set(p,e),p}getRegisteredModules(e,t,o){return Qt(aS,void 0,!0),e?.modules?.forEach(e=>Qt(e,t)),Jt(t,kS(o))}registerModuleFeatures(e,t){const o=e.getBean("registry"),i=e.getBean("apiFunctionSvc");for(const n of t){o.registerModule(n);const e=n.apiFunctions;if(e){const t=Object.keys(e);for(const o of t)i?.addFunction(o,e[o])}}}createProvidedBeans(e,t,o){let i=o?o.frameworkOverrides:null;r(i)&&(i=new jg);const n={gridOptions:t,eGridDiv:e,eRootDiv:e,globalListener:o?o.globalListener:null,globalSyncListener:o?o.globalSyncListener:null,frameworkOverrides:i};return o?.providedBeanInstances&&Object.assign(n,o.providedBeanInstances),n}createBeansList(e,t,o){const i={clientSide:"ClientSideRowModel",infinite:"InfiniteRowModel",serverSide:"ServerSideRowModel",viewport:"ViewportRowModel"},n=kS(e),s=i[n];if(!s)return void Fo(201,{rowModelType:n},`Unknown rowModelType ${n}.`);if(!oo())return void Fo(272,void 0,gS());if(!e){const e=Object.entries(i).filter(([e,t])=>Yt(t,o,e));if(1==e.length){const[t,o]=e[0];if(t!==n){const e={moduleName:o,rowModelType:t};return void Fo(275,e,vS(e))}}}if(!Yt(s,o,n)){const e=io(),t=`rowModelType = '${n}'`,i=e?`Unable to use ${t} as that requires the ag-grid-enterprise script to be included.\n`:`Missing module ${s}Module for rowModelType ${n}.`;return void Fo(200,{reasonOrId:t,moduleName:s,gridScoped:Zt(),gridId:o,rowModelType:n,isUmd:e},i)}const r=new Set;for(const a of t)for(const e of a.beans??[])r.add(e);return Array.from(r)}};function kS(e){return e??"clientSide"}function MS(e){if("string"===typeof e)try{e=document.querySelector(`[grid-id="${e}"]`)?.parentElement??document.querySelector(e)?.firstElementChild??document.getElementById(e)?.firstElementChild}catch{e=null}return e?xS.get(e):void 0}function AS(e){return ES.get(e)}function TS(e){const t=e.rowModel;return"clientSide"===t.getType()?t:void 0}function IS(e){const t=e.rowModel;return"infinite"===t.getType()?t:void 0}function LS(e){const t=e.rowModel;return"serverSide"===t.getType()?t:void 0}function BS(e){const t=e.rowModel;return"viewport"===t.getType()?t:void 0}var OS=class extends Ct{constructor(){super(...arguments),this.beanName="localeSvc"}getLocaleTextFunc(){const e=this.gos,t=e.getCallback("getLocaleText");return t?gt(t):pt(e.get("localeText"))}};function HS(e,t=!1){const o=[],i=[],n=[],s=[],r=[],a=[],l=[],d=[],c=[];let u=0;for(let h=0;h<e.length;h++){const{colId:t,sort:g,sortType:p,sortIndex:f,rowGroup:m,rowGroupIndex:v,aggFunc:C,pivot:w,pivotIndex:b,pinned:y,hide:S,width:R,flex:x}=e[h];c.push(t),g&&(o[f??u++]={colId:t,sort:g,type:p}),m&&(i[v??0]=t),"string"===typeof C&&n.push({colId:t,aggFunc:C}),w&&(s[b??0]=t),y&&("right"===y?a:r).push(t),S&&l.push(t),(null!=x||R)&&d.push({colId:t,flex:x??void 0,width:null===R?void 0:R})}return{sort:o.length?{sortModel:VS(o)}:void 0,rowGroup:i.length?{groupColIds:VS(i)}:void 0,aggregation:n.length?{aggregationModel:n}:void 0,pivot:s.length||t?{pivotMode:t,pivotColIds:VS(s)}:void 0,columnPinning:r.length||a.length?{leftColIds:r,rightColIds:a}:void 0,columnVisibility:l.length?{hiddenColIds:l}:void 0,columnSizing:d.length?{columnSizingModel:d}:void 0,columnOrder:c.length?{orderedColIds:c}:void 0}}function VS(e){return e.filter(e=>void 0!=e)}function GS(e){const t=[];for(const{groupId:o,open:i}of e)i&&t.push(o);return t.length?{openColumnGroupIds:t}:void 0}function NS(e){return{columnGroup:GS(e)}}var zS=class{wrap(e,t,o,i){const n=this.createWrapper(e,i);for(const s of t??[])this.createMethod(n,s,!0);for(const s of o??[])this.createMethod(n,s,!1);return n}createMethod(e,t,o){e.addMethod(t,this.createMethodProxy(e,t,o))}createMethodProxy(e,t,o){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(o&&xo(49,{methodName:t}),null)}}};function WS(e){return"whenTruncated"===e.get("tooltipShowMode")}function _S(e,t){return WS(e)?Ie(t):void 0}function US(e,t){if("number"!==typeof e)return"";const o=t(),i=o("thousandSeparator",","),n=o("decimalSeparator",".");return e.toString().replace(".",n).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${i}`)}var $S=class extends Ct{getFileName(e){const t=this.getDefaultFileExtension();return e?.length||(e=this.getDefaultFileName()),e.includes(".")?e:`${e}.${t}`}getData(e){return this.beans.gridSerializer.serialize(this.createSerializingSession(e),e)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}},qS=class{constructor(e){const{colModel:t,rowGroupColsSvc:o,colNames:i,valueSvc:n,gos:s,processCellCallback:r,processHeaderCallback:a,processGroupHeaderCallback:l,processRowGroupCallback:d}=e;this.colModel=t,this.rowGroupColsSvc=o,this.colNames=i,this.valueSvc=n,this.gos=s,this.processCellCallback=r,this.processHeaderCallback=a,this.processGroupHeaderCallback=l,this.processRowGroupCallback=d}prepare(e){}extractHeaderValue(e){const t=this.getHeaderName(this.processHeaderCallback,e);return t??""}extractRowCellValue(e){const{column:t,node:o,currentColumnIndex:i,accumulatedRowIndex:n,type:s,useRawFormula:r}=e,a=0===i&&Jo(this.gos,o,this.colModel.isPivotMode());if(this.processRowGroupCallback&&(this.gos.get("treeData")||o.group)&&(t.isRowGroupDisplayed(o.rowGroupColumn?.getColId()??"")||a))return{value:this.processRowGroupCallback(Ti(this.gos,{column:t,node:o}))??""};if(this.processCellCallback)return{value:this.processCellCallback(Ti(this.gos,{accumulatedRowIndex:n,column:t,node:o,value:this.valueSvc.getValueForDisplay({column:t,node:o}).value,type:s,parseValue:e=>this.valueSvc.parseValue(t,o,e,this.valueSvc.getValue(t,o,void 0)),formatValue:e=>this.valueSvc.formatValue(t,o,e)??e}))??""};const l=this.gos.get("treeData"),d=this.valueSvc,c=-1===o.level&&o.footer,u=!0===t.colDef.showRowGroup&&(o.group||l);if(!c&&(a||u)){let e="",i=o;while(i&&-1!==i.level){const{value:o,valueFormatted:n}=d.getValueForDisplay({column:a?void 0:t,node:i,includeValueFormatted:!0,exporting:!0});e=` -> ${n??o??""}${e}`,i=i.parent}return{value:e,valueFormatted:e}}const{value:h,valueFormatted:g}=d.getValueForDisplay({column:t,node:o,includeValueFormatted:!0,exporting:!0,useRawFormula:r});return{value:h??"",valueFormatted:g}}getHeaderName(e,t){return e?e(Ti(this.gos,{column:t})):this.colNames.getDisplayNameForColumn(t,"csv",!0)}};function jS(e,t){const o=document.defaultView||window;if(!o)return void xo(52);const i=document.createElement("a"),n=o.URL.createObjectURL(t);i.setAttribute("href",n),i.setAttribute("download",e),i.style.display="none",document.body.appendChild(i),i.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:o})),i.remove(),o.setTimeout(()=>{o.URL.revokeObjectURL(n)},0)}var KS={enableBrowserTooltips:!0,tooltipTrigger:!0,tooltipMouseTrack:!0,tooltipShowMode:!0,tooltipInteraction:!0,defaultColGroupDef:!0,suppressAutoSize:!0,skipHeaderOnAutoSize:!0,autoSizeStrategy:!0,components:!0,stopEditingWhenCellsLoseFocus:!0,undoRedoCellEditing:!0,undoRedoCellEditingLimit:!0,excelStyles:!0,cacheQuickFilter:!0,customChartThemes:!0,chartThemeOverrides:!0,chartToolPanelsDef:!0,loadingCellRendererSelector:!0,localeText:!0,keepDetailRows:!0,keepDetailRowsCount:!0,detailRowHeight:!0,detailRowAutoHeight:!0,tabIndex:!0,valueCache:!0,valueCacheNeverExpires:!0,enableCellExpressions:!0,suppressTouch:!0,suppressBrowserResizeObserver:!0,suppressPropertyNamesCheck:!0,debug:!0,dragAndDropImageComponent:!0,overlayComponent:!0,suppressOverlays:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!0,paginationPageSizeSelector:!0,paginateChildRows:!0,pivotPanelShow:!0,pivotSuppressAutoColumn:!0,suppressExpandablePivotGroups:!0,aggFuncs:!0,allowShowChangeAfterFilter:!0,ensureDomOrder:!0,enableRtl:!0,suppressColumnVirtualisation:!0,suppressMaxRenderedRowRestriction:!0,suppressRowVirtualisation:!0,rowDragText:!0,groupLockGroupColumns:!0,suppressGroupRowsSticky:!0,rowModelType:!0,cacheOverflowSize:!0,infiniteInitialRowCount:!0,serverSideInitialRowCount:!0,maxBlocksInCache:!0,maxConcurrentDatasourceRequests:!0,blockLoadDebounceMillis:!0,serverSideOnlyRefreshFilteredGroups:!0,serverSidePivotResultFieldSeparator:!0,viewportRowModelPageSize:!0,viewportRowModelBufferSize:!0,debounceVerticalScrollbar:!0,suppressAnimationFrame:!0,suppressPreventDefaultOnMouseWheel:!0,scrollbarWidth:!0,icons:!0,suppressRowTransform:!0,gridId:!0,enableGroupEdit:!0,initialState:!0,processUnpinnedColumns:!0,createChartContainer:!0,getLocaleText:!0,getRowId:!0,reactiveCustomComponents:!0,renderingMode:!0,columnMenu:!0,suppressSetFilterByDefault:!0,getDataPath:!0,enableCellSpan:!0,enableFilterHandlers:!0,filterHandlers:!0},QS="clientSide",XS="serverSide",YS="infinite",ZS={onGroupExpandedOrCollapsed:[QS],refreshClientSideRowModel:[QS],isRowDataEmpty:[QS],forEachLeafNode:[QS],forEachNodeAfterFilter:[QS],forEachNodeAfterFilterAndSort:[QS],resetRowHeights:[QS,XS],applyTransaction:[QS],applyTransactionAsync:[QS],flushAsyncTransactions:[QS],getBestCostNodeSelection:[QS],getServerSideSelectionState:[XS],setServerSideSelectionState:[XS],applyServerSideTransaction:[XS],applyServerSideTransactionAsync:[XS],applyServerSideRowData:[XS],retryServerSideLoads:[XS],flushServerSideAsyncTransactions:[XS],refreshServerSide:[XS],getServerSideGroupLevelState:[XS],refreshInfiniteCache:[YS],purgeInfiniteCache:[YS],getInfiniteRowCount:[YS],isLastRowIndexKnown:[YS,XS],expandAll:[QS,XS],collapseAll:[QS,XS],onRowHeightChanged:[QS,XS],setRowCount:[YS,XS],getCacheBlockState:[YS,XS]},JS={showLoadingOverlay:{version:"v32",message:'`showLoadingOverlay` is deprecated. Use the grid option "loading"=true instead or setGridOption("loading", true).'},clearRangeSelection:{version:"v32.2",message:"Use `clearCellSelection` instead."},getInfiniteRowCount:{version:"v32.2",old:"getInfiniteRowCount()",new:"getDisplayedRowCount()"},selectAllFiltered:{version:"v33",old:"selectAllFiltered()",new:'selectAll("filtered")'},deselectAllFiltered:{version:"v33",old:"deselectAllFiltered()",new:'deselectAll("filtered")'},selectAllOnCurrentPage:{version:"v33",old:"selectAllOnCurrentPage()",new:'selectAll("currentPage")'},deselectAllOnCurrentPage:{version:"v33",old:"deselectAllOnCurrentPage()",new:'deselectAll("currentPage")'}};function eR(e,t,o){const i=JS[e];if(i){const{version:o,new:n,old:s,message:r}=i,a=s??e;return(...e)=>{const i=n?`Please use ${n} instead. `:"";return Vt(`Since ${o} api.${a} is deprecated. ${i}${r??""}`),t.apply(t,e)}}const n=ZS[e];return n?(...i)=>{const s=o.rowModel.getType();if(n.includes(s))return t.apply(t,i);Gt(`api.${e} can only be called when gridOptions.rowModelType is ${n.join(" or ")}`)}:t}var tR={detailCellRendererCtrl:"SharedMasterDetail",dndSourceComp:"DragAndDrop",fillHandle:"CellSelection",groupCellRendererCtrl:"GroupCellRenderer",headerFilterCellCtrl:"ColumnFilter",headerGroupCellCtrl:"ColumnGroup",rangeHandle:"CellSelection",tooltipFeature:"Tooltip",highlightTooltipFeature:"Tooltip",tooltipStateManager:"Tooltip",groupStrategy:"RowGrouping",treeGroupStrategy:"TreeData",rowNumberRowResizer:"RowNumbers",singleCell:"EditCore",fullRow:"EditCore",agSetColumnFilterHandler:"SetFilter",agMultiColumnFilterHandler:"MultiFilter",agGroupColumnFilterHandler:"GroupFilter",agNumberColumnFilterHandler:"NumberFilter",agDateColumnFilterHandler:"DateFilter",agTextColumnFilterHandler:"TextFilter"},oR={expanded:1,contracted:1,"tree-closed":1,"tree-open":1,"tree-indeterminate":1,pin:1,"eye-slash":1,arrows:1,left:1,right:1,group:1,aggregation:1,pivot:1,"not-allowed":1,chart:1,cross:1,cancel:1,tick:1,first:1,previous:1,next:1,last:1,linked:1,unlinked:1,"color-picker":1,loading:1,menu:1,"menu-alt":1,filter:1,"filter-add":1,columns:1,maximize:1,minimize:1,copy:1,cut:1,paste:1,grip:1,save:1,csv:1,excel:1,"small-down":1,"small-left":1,"small-right":1,"small-up":1,asc:1,desc:1,aasc:1,adesc:1,none:1,up:1,down:1,plus:1,minus:1,settings:1,"checkbox-checked":1,"checkbox-indeterminate":1,"checkbox-unchecked":1,"radio-button-on":1,"radio-button-off":1,eye:1,"column-arrow":1,"un-pin":1,"pinned-top":1,"pinned-bottom":1,"chevron-up":1,"chevron-down":1,"chevron-left":1,"chevron-right":1,edit:1},iR={chart:"MenuCore",cancel:"EnterpriseCore",first:"Pagination",previous:"Pagination",next:"Pagination",last:"Pagination",linked:"IntegratedCharts",loadingMenuItems:"MenuCore",unlinked:"IntegratedCharts",menu:"ColumnHeaderComp",legacyMenu:"ColumnMenu",filter:"ColumnFilter",filterActive:"ColumnFilter",filterAdd:"NewFiltersToolPanel",filterCardCollapse:"NewFiltersToolPanel",filterCardExpand:"NewFiltersToolPanel",filterCardEditing:"NewFiltersToolPanel",filterTab:"ColumnMenu",filtersToolPanel:"FiltersToolPanel",columns:["MenuCore"],columnsToolPanel:["ColumnsToolPanel"],maximize:"EnterpriseCore",minimize:"EnterpriseCore",save:"MenuCore",columnGroupOpened:"ColumnGroupHeaderComp",columnGroupClosed:"ColumnGroupHeaderComp",accordionOpen:"EnterpriseCore",accordionClosed:"EnterpriseCore",accordionIndeterminate:"EnterpriseCore",columnSelectClosed:["ColumnsToolPanel","ColumnMenu"],columnSelectOpen:["ColumnsToolPanel","ColumnMenu"],columnSelectIndeterminate:["ColumnsToolPanel","ColumnMenu"],columnMovePin:"SharedDragAndDrop",columnMoveHide:"SharedDragAndDrop",columnMoveMove:"SharedDragAndDrop",columnMoveLeft:"SharedDragAndDrop",columnMoveRight:"SharedDragAndDrop",columnMoveGroup:"SharedDragAndDrop",columnMoveValue:"SharedDragAndDrop",columnMovePivot:"SharedDragAndDrop",dropNotAllowed:"SharedDragAndDrop",ensureColumnVisible:["ColumnsToolPanel","ColumnMenu"],groupContracted:"GroupCellRenderer",groupExpanded:"GroupCellRenderer",setFilterGroupClosed:"SetFilter",setFilterGroupOpen:"SetFilter",setFilterGroupIndeterminate:"SetFilter",setFilterLoading:"SetFilter",close:"EnterpriseCore",check:"MenuItem",colorPicker:"CommunityCore",groupLoading:"LoadingCellRenderer",overlayLoading:"Overlay",overlayExporting:"Overlay",menuAlt:"ColumnHeaderComp",menuPin:"MenuCore",menuValue:"MenuCore",menuAddRowGroup:["MenuCore","ColumnsToolPanel"],menuRemoveRowGroup:["MenuCore","ColumnsToolPanel"],clipboardCopy:"MenuCore",clipboardCut:"MenuCore",clipboardPaste:"MenuCore",pivotPanel:["ColumnsToolPanel","RowGroupingPanel"],rowGroupPanel:["ColumnsToolPanel","RowGroupingPanel"],valuePanel:"ColumnsToolPanel",columnDrag:"EnterpriseCore",rowDrag:["RowDrag","DragAndDrop"],csvExport:"MenuCore",excelExport:"MenuCore",smallDown:"CommunityCore",selectOpen:"CommunityCore",richSelectOpen:"RichSelect",richSelectRemove:"RichSelect",richSelectLoading:"RichSelect",smallLeft:"CommunityCore",smallRight:"CommunityCore",subMenuOpen:"MenuItem",subMenuOpenRtl:"MenuItem",panelDelimiter:"RowGroupingPanel",panelDelimiterRtl:"RowGroupingPanel",smallUp:"CommunityCore",sortAscending:["MenuCore","Sort"],sortDescending:["MenuCore","Sort"],sortAbsoluteAscending:["MenuCore","Sort"],sortAbsoluteDescending:["MenuCore","Sort"],sortUnSort:["MenuCore","Sort"],advancedFilterBuilder:"AdvancedFilter",advancedFilterBuilderDrag:"AdvancedFilter",advancedFilterBuilderInvalid:"AdvancedFilter",advancedFilterBuilderMoveUp:"AdvancedFilter",advancedFilterBuilderMoveDown:"AdvancedFilter",advancedFilterBuilderAdd:"AdvancedFilter",advancedFilterBuilderRemove:"AdvancedFilter",advancedFilterBuilderSelectOpen:"AdvancedFilter",chartsMenu:"IntegratedCharts",chartsMenuEdit:"IntegratedCharts",chartsMenuAdvancedSettings:"IntegratedCharts",chartsMenuAdd:"IntegratedCharts",chartsColorPicker:"IntegratedCharts",chartsThemePrevious:"IntegratedCharts",chartsThemeNext:"IntegratedCharts",chartsDownload:"IntegratedCharts",checkboxChecked:"CommunityCore",checkboxIndeterminate:"CommunityCore",checkboxUnchecked:"CommunityCore",radioButtonOn:"CommunityCore",radioButtonOff:"CommunityCore",rowPin:"PinnedRow",rowUnpin:"PinnedRow",rowPinBottom:"PinnedRow",rowPinTop:"PinnedRow"},nR=new Set(["colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallDown","smallLeft","smallRight"]),sR=class extends Ct{constructor(){super(...arguments),this.beanName="validation"}wireBeans(e){this.gridOptions=e.gridOptions,go(SS)}warnOnInitialPropertyUpdate(e,t){"api"===e&&KS[t]&&xo(22,{key:t})}processGridOptions(e){this.processOptions(e,Aw())}validateApiFunction(e,t){return eR(e,t,this.beans)}missingUserComponent(e,t,o,i){const n=cw[t];n?this.gos.assertModuleRegistered(n,`AG Grid '${e}' component: ${t}`):xo(101,{propertyName:e,componentName:t,agGridDefaults:o,jsComps:i})}missingDynamicBean(e){const t=tR[e];return t?ko(200,{...this.gos.getModuleErrorParams(),moduleName:t,reasonOrId:e}):void 0}checkRowEvents(e){aR.has(e)&&xo(10,{eventType:e})}validateIcon(e){if(nR.has(e)&&xo(43,{iconName:e}),oR[e])return;const t=iR[e];t?Eo(200,{reasonOrId:`icon '${e}'`,moduleName:t,gridScoped:Zt(),gridId:this.beans.context.getId(),rowModelType:this.gos.get("rowModelType"),additionalText:"Alternatively, use the CSS icon name directly."}):xo(134,{iconName:e})}isProvidedUserComp(e){return!!cw[e]}validateColDef(e){this.processOptions(e,vw())}processOptions(e,t){const{validations:o,deprecations:i,allProperties:n,propertyExceptions:s,objectName:r,docsUrl:a}=t;n&&!0!==this.gridOptions.suppressPropertyNamesCheck&&this.checkProperties(e,[...s??[],...Object.keys(i)],n,r,a);const l=new Set,d=Object.keys(e);if(d.forEach(t=>{const n=i[t];if(n){const{message:e,version:o}=n;l.add(`As of v${o}, ${String(t)} is deprecated. ${e??""}`)}const s=e[t];if(null==s||!1===s)return;const r=o[t];if(!r)return;const{dependencies:a,validate:d,supportedRowModels:c,expectedType:u}=r;if(u){const e=typeof s;if(e!==u)return void l.add(`${String(t)} should be of type '${u}' but received '${e}' (${s}).`)}if(c){const e=this.gridOptions.rowModelType??"clientSide";if(!c.includes(e))return void l.add(`${String(t)} is not supported with the '${e}' row model. It is only valid with: ${c.join(", ")}.`)}if(a){const o=this.checkForRequiredDependencies(t,a,e);if(o)return void l.add(o)}if(d){const t=d(e,this.gridOptions,this.beans);if(t)return void l.add(t)}}),l.size>0)for(const c of l)Vt(c)}checkForRequiredDependencies(e,t,o){const i=Object.entries(t),n=i.filter(([e,t])=>{const i=o[e];return!t.required.includes(i)});return 0===n.length?null:n.map(([t,o])=>`'${String(e)}' requires '${t}' to be one of [${o.required.map(e=>null===e?"null":void 0===e?"undefined":e).join(", ")}]. ${o.reason??""}`).join("\n ")}checkProperties(e,t,o,i,n){const s=["__ob__","__v_skip","__metadata__"],r=rR(Object.getOwnPropertyNames(e),[...s,...t,...o],o),a=Object.keys(r);for(const l of a){const e=r[l];let t=`invalid ${i} property '${l}' did you mean any of these: ${e.slice(0,8).join(", ")}.`;o.includes("context")&&(t+=`\nIf you are trying to annotate ${i} with application data, use the '${i}.context' property instead.`),Vt(t)}if(a.length>0&&n){const e=this.beans.frameworkOverrides.getDocLink(n);Vt(`to see all the valid ${i} properties please check: ${e}`)}}};function rR(e,t,o){const i={},n=e.filter(e=>!t.some(t=>t===e));if(n.length>0)for(const s of n)i[s]=ha({inputValue:s,allSuggestions:o}).values;return i}var aR=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"]),lR={moduleName:"Validation",version:ro,beans:[sR]};function dR(e){const t=e.sibling;t&&(t.childrenAfterFilter=e.childrenAfterFilter)}var cR=class extends Ct{constructor(){super(...arguments),this.beanName="filterStage",this.step="filter",this.refreshProps=["excludeChildrenWhenTreeDataFiltering"]}wireBeans(e){this.filterManager=e.filterManager}execute(e){const t=!!this.filterManager?.isChildFilterPresent();this.beans.formula?.active?this.softFilter(t,e):this.filterNodes(t,e)}filterNodes(e,t){const o=(t,o)=>{t.hasChildren()?t.childrenAfterFilter=e&&!o?t.childrenAfterGroup.filter(e=>{const t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,o=e.data&&this.filterManager.doesRowPassFilter({rowNode:e});return t||o}):t.childrenAfterGroup:t.childrenAfterFilter=t.childrenAfterGroup,dR(t)};if(this.doingTreeDataFiltering()){const e=(t,i)=>{if(t.childrenAfterGroup)for(let n=0;n<t.childrenAfterGroup.length;n++){const s=t.childrenAfterGroup[n],r=i||this.filterManager.doesRowPassFilter({rowNode:s});s.childrenAfterGroup?e(t.childrenAfterGroup[n],r):o(s,r)}o(t,i)},i=t=>e(t,!1);t.executeFromRootNode(i)}else{const e=e=>o(e,!1);t.forEachChangedNodeDepthFirst(e,!0)}}softFilter(e,t){const o=t=>{if(t.childrenAfterFilter=t.childrenAfterGroup,t.hasChildren())for(const o of t.childrenAfterGroup)o.softFiltered=e&&!(o.data&&this.filterManager.doesRowPassFilter({rowNode:o}));dR(t)};t.forEachChangedNodeDepthFirst(o,!0)}doingTreeDataFiltering(){const{gos:e}=this;return e.get("treeData")&&!e.get("excludeChildrenWhenTreeDataFiltering")}},uR=class extends Th{constructor(){super(...arguments),this.iconCreated=!1}wireComp(e,t,o,i,n){this.comp=e;const s=ls(this,this.beans.context,n);this.eButtonShowMainFilter=o,this.eFloatingFilterBody=i,this.setGui(t,s),this.setupActive(),this.refreshHeaderStyles(),this.setupWidth(s),this.setupLeft(s),this.setupHover(s),this.setupFocus(s),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(s),this.setupUi(),s.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(s);const r=()=>this.onColDefChanged(s);s.addManagedListeners(this.column,{colDefChanged:r}),s.addManagedEventListeners({filterSwitched:({column:e})=>{e===this.column&&r()}}),s.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}getHeaderClassParams(){const{column:e,beans:t}=this,o=e.colDef;return Ti(t.gos,{colDef:o,column:e,floatingFilter:!0})}setupActive(){const e=this.column.getColDef(),t=!!e.filter,o=!!e.floatingFilter;this.active=t&&o}setupUi(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!this.active||this.iconCreated)return;const e=Uh("filter",this.beans,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(e){e.createManagedBean(new Ec(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){const e=this.getLocaleTextFunc();A(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(e){const{beans:t}=this,o=m(t),i=o===this.eGui;if(i)return;const n=Wr(t,this.eGui,null,e.shiftKey);if(n)return t.headerNavigation?.scrollToColumn(this.column),e.preventDefault(),void n.focus();const s=this.findNextColumnWithFloatingFilter(e.shiftKey);s&&t.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:s},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){const t=this.beans.visibleCols;let o=this.column;do{if(o=e?t.getColBefore(o):t.getColAfter(o),!o)break}while(!o.getColDef().filter||!o.getColDef().floatingFilter);return o}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();switch(e.key){case lr.UP:case lr.DOWN:case lr.LEFT:case lr.RIGHT:if(t)return;Sc(e);case lr.ENTER:t&&zr(this.eGui)&&e.preventDefault();break;case lr.ESCAPE:t||this.eGui.focus()}}onFocusIn(e){const t=this.eGui.contains(e.relatedTarget);if(t)return;const o=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),i=!!e.relatedTarget&&fe(e.relatedTarget,"ag-floating-filter");if(o&&i&&e.target===this.eGui){const e=this.lastFocusEvent,t=!(!e||e.key!==lr.TAB);if(e&&t){const t=e.shiftKey;zr(this.eGui,t)}}this.focusThis()}setupHover(e){this.beans.colHover?.addHeaderFilterColumnHoverListener(e,this.comp,this.column,this.eGui)}setupLeft(e){const t=new kh(this.column,this.eGui,this.beans);e.createManagedBean(t)}setupFilterButton(){this.suppressFilterButton=!this.beans.menuSvc?.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!Pi(this.gos)}setupUserComp(){if(!this.active)return;const e=this.beans.colFilter?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setCompDetails(e)}showParentFilter(){const e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.beans.menuSvc?.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(e){if(!this.active)return;const{beans:{colFilter:t},column:o,gos:i}=this,n=e=>{if("filterDestroyed"===e?.source&&(!this.isAlive()||!t?.isAlive()))return;const n=this.comp.getFloatingFilterComp();n&&n.then(n=>{if(n){if(i.get("enableFilterHandlers")){const t=e;let o="filter";return t?.afterFloatingFilter?o="ui":t?.afterDataChange?o="dataChanged":"api"===e?.source&&(o="api"),void this.updateFloatingFilterParams(this.userCompDetails,o)}const s=t?.getCurrentFloatingFilterParentModel(o),r=e?{...e,columns:e.columns??[],source:"api"===e.source?"api":"columnFilter"}:null;n.onParentModelChanged(s,r)}})};[this.destroySyncListener]=e.addManagedListeners(o,{filterChanged:n}),t?.isFilterActive(o)&&n(null)}setupWidth(e){const t=()=>{const e=`${this.column.getActualWidth()}px`;this.comp.setWidth(e)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupFilterChangedListener(e){this.active&&([this.destroyFilterChangedListener]=e.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){if(!this.suppressFilterButton&&this.comp){const e=!!this.beans.filterManager?.isFilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(e){const t=this.active;this.setupActive();const o=!t&&this.active;t&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());const i=this.beans.colFilter,n=this.active?i?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,s=this.comp.getFloatingFilterComp();s&&n?s.then(t=>{!t||i?.areFilterCompsDifferent(this.userCompDetails??null,n)?this.updateCompDetails(e,n,o):this.updateFloatingFilterParams(n,"colDef")}):this.updateCompDetails(e,n,o)}updateCompDetails(e,t,o){this.isAlive()&&(this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),o&&(this.setupSyncWithFilter(e),this.setupFilterChangedListener(e)))}updateFloatingFilterParams(e,t){if(!e)return;let o=e.params;this.comp.getFloatingFilterComp()?.then(e=>{"function"===typeof e?.refresh&&(this.gos.get("enableFilterHandlers")&&(o={...o,model:Yd(this.beans.colFilter?.model??{},this.column.getColId()),source:t}),e.refresh(o))})}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}};function hR(e,t){const o=e.colModel.getCol(t);o?e.menuSvc?.showColumnMenu({column:o,positionBy:"auto"}):Eo(12,{colKey:t})}function gR(e){e.menuSvc?.hidePopupMenu()}var pR={moduleName:"SharedMenu",version:ro,beans:[Vh],apiFunctions:{showColumnMenu:hR,hidePopupMenu:gR}},fR=class extends gd{getDefaultPopupParent(){return this.beans.ctrlsSvc.get("gridCtrl").getGui()}callPostProcessPopup(e,t,o,i,n){const s=this.gos.getCallback("postProcessPopup");if(s){const{column:r,rowNode:a}=e??{},l={column:r,rowNode:a,ePopup:o,type:t,eventSource:i,mouseEvent:n};s(l)}}getActivePopups(){return this.popupList.map(e=>e.element)}hasAnchoredPopup(){return this.popupList.some(e=>e.isAnchored)}isStopPropagation(e){return Rc(e)}},mR={moduleName:"Popup",version:ro,beans:[fR]},vR=".ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}:where(.ag-rtl) .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr) .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-body-wrapper{display:flex;flex-direction:column}:where(.ag-menu:not(.ag-tabs) .ag-filter) .ag-filter-body-wrapper,:where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}:where(.ag-floating-filter-full-body)>div{flex:1 1 auto}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}:where(.ag-input-field-input[type=date]),:where(.ag-input-field-input[type=datetime-local]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-date-floating-filter-wrapper{display:flex}.ag-set-floating-filter-input :where(input)[disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{align-items:unset;background-color:var(--ag-chrome-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;:where(.ag-menu) &{background-color:var(--ag-menu-background-color)}}.ag-filter-separator{border-top:solid var(--ag-border-width) var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-filter-menu) .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));&>*{margin-bottom:var(--ag-widget-vertical-spacing)}:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}";function CR(e){const t=e.filterManager;return!!t?.isColumnFilterPresent()||!!t?.isAggregateFilterPresent()}function wR(e,t){return e.filterManager?.getColumnFilterInstance(t)??Promise.resolve(void 0)}function bR(e,t){const o=e.colModel.getColDefCol(t);if(o)return e.colFilter?.destroyFilter(o,"api")}function yR(e,t){e.frameworkOverrides.wrapIncoming(()=>e.filterManager?.setFilterModel(t))}function SR(e){return e.filterManager?.getFilterModel()??{}}function RR(e,t,o){const{gos:i,colModel:n,colFilter:s}=e;o&&!i.get("enableFilterHandlers")&&(xo(288),o=!1);const r=n.getColDefCol(t);return r?s?.getModelForColumn(r,o)??null:null}function xR(e,t,o){return e.filterManager?.setColumnFilterModel(t,o)??Promise.resolve()}function ER(e,t){const o=e.colModel.getCol(t);o?e.menuSvc?.showFilterMenu({column:o,containerType:"columnFilter",positionBy:"auto"}):Eo(12,{colKey:t})}function FR(e){e.menuSvc?.hideFilterMenu()}function PR(e,t){const o=e.colModel.getCol(t);if(o)return e.colFilter?.getHandler(o,!0);Eo(12,{colKey:t})}function DR(e,t){const{colModel:o,colFilter:i,gos:n}=e;if(!n.get("enableFilterHandlers"))return void xo(287);const{colId:s,action:r}=t;if(s){const e=o.getColById(s);e&&i?.updateModel(e,r)}else i?.updateAllModels(r)}var kR={filterHandler:()=>({doesFilterPass:()=>!0})},MR=class extends Ct{constructor(){super(...arguments),this.beanName="colFilter",this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.modelUpdates=[],this.columnModelUpdates=[],this.state=new Map,this.handlerMap={...Ud},this.isGlobalButtons=!1,this.activeFilterComps=new Set}postConstruct(){this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)});const e=this.gos,t={...e.get("initialState")?.filter?.filterModel??{}};this.initialModel=t,this.model={...t},e.get("enableFilterHandlers")||delete this.handlerMap["agMultiColumnFilter"]}refreshModel(){this.onNewRowsLoaded("rowDataUpdated")}setModel(e,t="api",o){const{colModel:i,dataTypeSvc:n,filterManager:s}=this.beans;if(n?.isPendingInference)return void this.modelUpdates.push({model:e,source:t});const r=[],a=this.getModel(!0);if(e){const t=new Set(Object.keys(e));this.allColumnFilters.forEach((o,i)=>{const n=e[i];r.push(this.setModelOnFilterWrapper(o,n)),t.delete(i)}),t.forEach(t=>{const o=i.getColDefCol(t)||i.getCol(t);if(!o)return void xo(62,{colId:t});if(!o.isFilterAllowed())return void xo(63,{colId:t});const n=this.getOrCreateFilterWrapper(o,!0);n?r.push(this.setModelOnFilterWrapper(n,e[t],!0)):xo(64,{colId:t})})}else this.model={},this.allColumnFilters.forEach(e=>{r.push(this.setModelOnFilterWrapper(e,null))});Cs.all(r).then(()=>{const e=this.getModel(!0),i=[];this.allColumnFilters.forEach((t,o)=>{const n=a?a[o]:null,s=e?e[o]:null;l(n,s)||i.push(t.column)}),i.length>0?s?.onFilterChanged({columns:i,source:t}):o&&this.updateActive("filterChanged")})}getModel(e){const t={},{allColumnFilters:o,initialModel:i,beans:{colModel:n}}=this;if(o.forEach((e,o)=>{const i=this.getModelFromFilterWrapper(e);s(i)&&(t[o]=i)}),!e)for(const r of Object.keys(i)){const e=i[r];s(e)&&!o.has(r)&&n.getCol(r)?.isFilterAllowed()&&(t[r]=e)}return t}setState(e,t,o="api"){if(this.state.clear(),t)for(const i of Object.keys(t)){const e=t[i];this.state.set(i,{model:Yd(this.model,i),state:e})}this.setModel(e,o,!0)}getState(){const e=this.state;if(!e.size)return;const t={};let o=!1;return e.forEach((e,i)=>{const n=e.state;null!=n&&(o=!0,t[i]=n)}),o?t:void 0}getModelFromFilterWrapper(e){const t=e.column,o=t.getColId();if(e.isHandler)return Yd(this.model,o);const i=e.filter;return i?"function"!==typeof i.getModel?(xo(66),null):i.getModel():Yd(this.initialModel,o)}isFilterPresent(){return this.activeColumnFilters.length>0}isAggFilterPresent(){return!!this.activeAggregateFilters.length}disableFilters(){this.initialModel={};const{allColumnFilters:e}=this;return!!e.size&&(e.forEach(e=>this.disposeFilterWrapper(e,"advancedFilterEnabled")),!0)}updateActiveFilters(){const e=e=>!!e&&(e.isFilterActive?e.isFilterActive():(xo(67),!1)),{colModel:t,gos:o}=this.beans,i=!!Ko(o),n=e=>{const o=!e.isPrimary();if(o)return!0;const n=!t.isPivotActive(),s=e.isValueActive();return!(!s||!n)&&(!!t.isPivotMode()||i)},s=[],r=[],a=(e,t,o)=>{t&&(n(e)?s.push(o):r.push(o))},l=[];return this.allColumnFilters.forEach(t=>{const o=t.column,i=o.getColId();if(t.isHandler)l.push(Cs.resolve().then(()=>{a(o,this.isHandlerActive(o),{colId:i,isHandler:!0,handler:t.handler,handlerParams:t.handlerParams})}));else{const n=qd(t);n&&l.push(n.then(t=>{a(o,e(t),{colId:i,isHandler:!1,comp:t})}))}}),Cs.all(l).then(()=>{this.activeAggregateFilters=s,this.activeColumnFilters=r})}updateFilterFlagInColumns(e,t){const o=[];return this.allColumnFilters.forEach(i=>{const n=i.column;if(i.isHandler)o.push(Cs.resolve().then(()=>{this.setColFilterActive(n,this.isHandlerActive(n),e,t)}));else{const s=qd(i);s&&o.push(s.then(o=>{this.setColFilterActive(n,o.isFilterActive(),e,t)}))}}),this.beans.groupFilter?.updateFilterFlags(e,t),Cs.all(o)}doFiltersPass(e,t,o){const{data:i,aggData:n}=e,s=o?this.activeAggregateFilters:this.activeColumnFilters,r=o?n:i,a=this.model;for(let l=0;l<s.length;l++){const o=s[l],{colId:i,isHandler:n}=o;if(i!==t)if(n){const{handler:t,handlerParams:n}=o;if(!t.doesFilterPass({node:e,data:r,model:Yd(a,i),handlerParams:n}))return!1}else{const t=o.comp;if("function"!==typeof t.doesFilterPass){Eo(91);continue}if(!t.doesFilterPass({node:e,data:r}))return!1}}return!0}getHandlerParams(e){const t=this.allColumnFilters.get(e.getColId());return t?.isHandler?t.handlerParams:void 0}callOnFilterChangedOutsideRenderCycle(e){const{rowRenderer:t,filterManager:o}=this.beans,i=()=>{this.isAlive()&&o?.onFilterChanged(e)};t.isRefreshInProgress()?setTimeout(i,0):i()}updateBeforeFilterChanged(e={}){const{column:t,additionalEventAttributes:o}=e,i=t?.getColId();return this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",o).then(()=>{this.allColumnFilters.forEach(e=>{const{column:t,isHandler:o}=e;i!==t.getColId()&&(o&&e.handler.onAnyFilterChanged?.(),qd(e,o)?.then(e=>{"function"===typeof e?.onAnyFilterChanged&&e.onAnyFilterChanged()}))}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){const e=this.gos.get("allowShowChangeAfterFilter")??!1;return!e&&this.processingFilterChange}onNewRowsLoaded(e){const t=[];this.allColumnFilters.forEach(e=>{const o=e.isHandler;o&&e.handler.onNewRowsLoaded?.();const i=qd(e,o);i&&t.push(i.then(e=>{e.onNewRowsLoaded?.()}))}),Cs.all(t).then(()=>this.updateActive(e,{afterDataChange:!0}))}updateActive(e,t){this.updateFilterFlagInColumns(e,t).then(()=>this.updateActiveFilters())}createGetValue(e,t){const{filterValueSvc:o,colModel:i}=this.beans;return(n,s)=>{const r=s?i.getCol(s):e;return r?o.getValue(r,n,t):void 0}}isFilterActive(e){const t=this.cachedFilter(e);if(t?.isHandler)return this.isHandlerActive(e);const o=t?.filter;return o?o.isFilterActive():null!=Yd(this.initialModel,e.getColId())}isHandlerActive(e){const t=s(Yd(this.model,e.getColId()));if(t)return t;const o=this.beans.groupFilter;return!!o?.isGroupFilter(e)&&o.isFilterActive(e)}getOrCreateFilterUi(e){const t=this.getOrCreateFilterWrapper(e,!0);return t?qd(t):null}getFilterUiForDisplay(e){const t=this.getOrCreateFilterWrapper(e,!0);if(!t)return null;const o=qd(t);return o?o.then(e=>({comp:e,params:t.filterUi.filterParams,isHandler:t.isHandler})):null}getHandler(e,t){const o=this.getOrCreateFilterWrapper(e,t);return o?.isHandler?o.handler:void 0}getOrCreateFilterWrapper(e,t){if(!e.isFilterAllowed())return;let o=this.cachedFilter(e);return!o&&t&&(o=this.createFilterWrapper(e),this.setColumnFilterWrapper(e,o)),o}cachedFilter(e){return this.allColumnFilters.get(e.getColId())}getDefaultFilter(e,t=!1){return this.getDefaultFilterFromDataType(()=>this.beans.dataTypeSvc?.getBaseDataType(e),t)}getDefaultFilterFromDataType(e,t=!1){return Fi(this.gos)?t?"agSetColumnFloatingFilter":"agSetColumnFilter":wc(e(),t)}getDefaultFloatingFilter(e){return this.getDefaultFilter(e,!0)}createFilterComp(e,t,o,i,n,s){const r=()=>{const r=this.createFilterCompParams(e,n,s),a=i(r,n);return er(this.beans.userCompFactory,t,a,o)},a=r();if(!a)return null;const l=e=>(e?r():a).newAgStackInstance();return{compDetails:a,createFilterUi:l}}createFilterInstance(e,t,o,i){const n=this.beans.selectableFilter;n?.isSelectable(t)&&(t=n.getFilterDef(e,t));const{handler:s,handlerParams:r,handlerGenerator:a}=this.createHandler(e,t,o)??{},l=this.createFilterComp(e,t,o,i,!!s,"init");if(!l)return{compDetails:null,createFilterUi:null,handler:s,handlerGenerator:a,handlerParams:r};const{compDetails:d,createFilterUi:c}=l;if(this.isGlobalButtons){const t=!!d.params?.buttons?.length;t||xo(281,{colId:e.getColId()})}return{compDetails:d,handler:s,handlerGenerator:a,handlerParams:r,createFilterUi:c}}createBaseFilterParams(e,t){const{filterManager:o,rowModel:i}=this.beans;return Ti(this.gos,{column:e,colDef:e.getColDef(),getValue:this.createGetValue(e),doesRowPassOtherFilter:t?()=>!0:t=>o?.doesRowPassOtherFilters(e.getColId(),t)??!0,rowModel:i})}createFilterCompParams(e,t,o,i){const n=this.filterChangedCallbackFactory(e),s=this.createBaseFilterParams(e,i);if(s.filterChangedCallback=n,s.filterModifiedCallback=i?()=>{}:t=>this.filterModified(e,t),t){const t=s,i=e.getColId(),r=Yd(this.model,i);t.model=r,t.state=this.state.get(i)??{model:r},t.onModelChange=(t,o)=>{this.updateStoredModel(i,t),this.refreshHandlerAndUi(e,t,"ui",!1,o).then(()=>{n({...o,source:"columnFilter"})})},t.onStateChange=t=>{this.updateState(e,t),this.updateOrRefreshFilterUi(e)},t.onAction=(t,o,i)=>{this.updateModel(e,t,o),this.dispatchLocalEvent({type:"filterAction",column:e,action:t,event:i})},t.getHandler=()=>this.getHandler(e,!0),t.onUiChange=t=>this.filterUiChanged(e,t),t.source=o}return s}createFilterUiForHandler(e,t){return t?{created:!1,create:t,filterParams:e.params,compDetails:e}:null}createFilterUiLegacy(e,t,o){const i=t(),n={created:!0,create:t,filterParams:e.params,compDetails:e,promise:i};return i.then(o),n}createFilterWrapper(e){const{compDetails:t,handler:o,handlerGenerator:i,handlerParams:n,createFilterUi:s}=this.createFilterInstance(e,e.getColDef(),this.getDefaultFilter(e),e=>e),r=e.getColId();if(o)return delete this.initialModel[r],o.init?.({...n,source:"init",model:Yd(this.model,r)}),{column:e,isHandler:!0,handler:o,handlerGenerator:i,handlerParams:n,filterUi:this.createFilterUiForHandler(t,s)};if(s){const o={column:e,filterUi:null,isHandler:!1};return o.filterUi=this.createFilterUiLegacy(t,s,e=>{o.filter=e??void 0}),o}return{column:e,filterUi:null,isHandler:!1}}createHandlerFunc(e,t,o){const{gos:i,frameworkOverrides:n,registry:s}=this.beans;let r;const a=e=>{const t=e.filter;if(fs(t)){const e=t.handler;return e||(r=t.doesFilterPass,r?()=>({doesFilterPass:r}):void 0)}return"string"===typeof t?t:void 0},l=i.get("enableFilterHandlers"),d=l?a(t):void 0,c=e=>()=>this.createBean(s.createDynamicBean(e,!0));let u,h;if("string"===typeof d){const e=i.get("filterHandlers")?.[d];null!=e?u=e:$d.has(d)&&(u=c(d),h=d)}else u=d;if(!u){let e;const{compName:i,jsComp:s,fwComp:r}=nr(n,t);if(i)e=i;else{const i=null==s&&null==r&&!0===t.filter;i&&(e=o)}h=this.handlerMap[e],h&&(u=c(h))}if(!u){if(!l)return;return To(i)&&xo(277,{colId:e.getColId()}),kR}return{filterHandler:u,handlerNameOrCallback:r??h}}createHandler(e,t,o){const i=this.createHandlerFunc(e,t,o);if(!i)return;const n=sr(this.beans.userCompFactory,t,this.createFilterCompParams(e,!0,"init")),{handlerNameOrCallback:s,filterHandler:r}=i,{handler:a,handlerParams:l}=this.createHandlerFromFunc(e,r,n);return{handler:a,handlerParams:l,handlerGenerator:s??r}}createHandlerFromFunc(e,t,o){const i=e.getColDef(),n=t(Ti(this.gos,{column:e,colDef:i})),s=this.createHandlerParams(e,o);return{handler:n,handlerParams:s}}createHandlerParams(e,t){const o=e.getColDef(),i=e.getColId(),n=this.filterChangedCallbackFactory(e);return Ti(this.gos,{colDef:o,column:e,getValue:this.createGetValue(e),doesRowPassOtherFilter:e=>this.beans.filterManager?.doesRowPassOtherFilters(i,e)??!0,onModelChange:(t,o)=>{this.updateStoredModel(i,t),this.refreshHandlerAndUi(e,t,"handler",!1,o).then(()=>{n({...o,source:"columnFilter"})})},filterParams:t})}onColumnsChanged(){const e=[],{colModel:t,filterManager:o,groupFilter:i}=this.beans;this.allColumnFilters.forEach((o,i)=>{let n;n=o.column.isPrimary()?t.getColDefCol(i):t.getCol(i),n&&n===o.column||(e.push(o.column),this.disposeFilterWrapper(o,"columnChanged"),this.disposeColumnListener(i))});const n=i&&e.every(e=>i.isGroupFilter(e));e.length>0&&!n&&o?.onFilterChanged({columns:e,source:"api"})}isFilterAllowed(e){const t=e.isFilterAllowed();if(!t)return!1;const o=this.beans.groupFilter;return!o?.isGroupFilter(e)||o.isFilterAllowed(e)}getFloatingFilterCompDetails(e,t){const{userCompFactory:o,frameworkOverrides:i,selectableFilter:n,gos:s}=this.beans,r=t=>{const o=this.getOrCreateFilterUi(e);o?.then(e=>{t(rr(e))})},a=e.getColDef(),l=n?.isSelectable(a)?n.getFilterDef(e,a):a,d=Dc(i,l,()=>this.getDefaultFloatingFilter(e))??"agReadOnlyFloatingFilter",c=s.get("enableFilterHandlers"),u=sr(o,l,this.createFilterCompParams(e,c,"init",!0)),h=Ti(s,{column:e,filterParams:u,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:r,showParentFilter:t});if(c){const t=h,o=e.getColId(),i=this.filterChangedCallbackFactory(e);t.onUiChange=t=>this.floatingFilterUiChanged(e,t),t.model=Yd(this.model,o),t.onModelChange=(t,n)=>{this.updateStoredModel(o,t),this.refreshHandlerAndUi(e,t,"floating",!0,n).then(()=>{i({...n,source:"columnFilter"})})},t.getHandler=()=>this.getHandler(e,!0),t.source="init"}return ir(o,a,h,d)}getCurrentFloatingFilterParentModel(e){return this.getModelFromFilterWrapper(this.cachedFilter(e)??{column:e})}destroyFilterUi(e,t,o,i){const n="paramsUpdated";if(e.isHandler){const s=t.getColId();delete this.initialModel[s],this.state.delete(s);const r=e.filterUi,a=this.createFilterUiForHandler(o,i);e.filterUi=a;const l=this.eventSvc;r?.created?r.promise.then(e=>{this.destroyBean(e),l.dispatchEvent({type:"filterDestroyed",source:n,column:t})}):l.dispatchEvent({type:"filterHandlerDestroyed",source:n,column:t})}else this.destroyFilter(t,n)}destroyFilter(e,t="api"){const o=e.getColId(),i=this.allColumnFilters.get(o);this.disposeColumnListener(o),delete this.initialModel[o],i&&this.disposeFilterWrapper(i,t).then(t=>{t&&this.isAlive()&&this.beans.filterManager?.onFilterChanged({columns:[e],source:"api"})})}disposeColumnListener(e){const t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())}disposeFilterWrapper(e,t){let o=!1;const{column:i,isHandler:n,filterUi:s}=e,r=i.getColId();n&&(o=this.isHandlerActive(i),this.destroyBean(e.handler),delete this.model[r],this.state.delete(r));const a=()=>{this.setColFilterActive(i,!1,"filterDestroyed"),this.allColumnFilters.delete(r),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:t,column:i})};if(s){if(s.created)return s.promise.then(e=>(o=n?o:!!e?.isFilterActive(),this.destroyBean(e),a(),o));a()}return Cs.resolve(o)}filterChangedCallbackFactory(e){return t=>{this.callOnFilterChangedOutsideRenderCycle({additionalEventAttributes:t,columns:[e],column:e,source:t?.source??"columnFilter"})}}filterParamsChanged(e,t="api"){const o=this.allColumnFilters.get(e);if(!o)return;const i=this.beans,n=o.column,s=n.getColDef(),r=n.isFilterAllowed(),a=this.getDefaultFilter(n),l=i.selectableFilter,d=l?.isSelectable(s)?l.getFilterDef(n,s):s,c=r?this.createHandlerFunc(n,d,this.getDefaultFilter(n)):void 0,u=!!c,h=o.isHandler;if(h!=u)return void this.destroyFilter(n,"paramsUpdated");const{compDetails:g,createFilterUi:p}=(r?this.createFilterComp(n,d,a,e=>e,u,"colDef"):null)??{compDetails:null,createFilterUi:null},f=g?.params??sr(i.userCompFactory,d,this.createFilterCompParams(n,u,"colDef"));if(h){const i=c?.handlerNameOrCallback??c?.filterHandler,s=Yd(this.model,e);if(o.handlerGenerator!=i){const r=o.handler,{handler:a,handlerParams:l}=this.createHandlerFromFunc(n,c.filterHandler,f);o.handler=a,o.handlerParams=l,o.handlerGenerator=i,delete this.model[e],a.init?.({...l,source:"init",model:null}),this.destroyBean(r),null!=s&&this.beans.filterManager?.onFilterChanged({columns:[n],source:t})}else{const e=this.createHandlerParams(n,g?.params);o.handlerParams=e,o.handler.refresh?.({...e,source:"colDef",model:s})}}!this.areFilterCompsDifferent(o.filterUi?.compDetails??null,g)&&o.filterUi&&g?(o.filterUi.filterParams=f,qd(o,h)?.then(e=>{const t=!e?.refresh||e.refresh(f);!1===t?this.destroyFilterUi(o,n,g,p):this.dispatchLocalEvent({type:"filterParamsChanged",column:n,params:f})})):this.destroyFilterUi(o,n,g,p)}refreshHandlerAndUi(e,t,o,i,n){const s=this.cachedFilter(e);if(!s)return i&&this.getOrCreateFilterWrapper(e,!0),Cs.resolve();if(!s.isHandler)return Cs.resolve();const{filterUi:r,handler:a,handlerParams:l}=s;return jd(()=>{if(r){const{created:e,filterParams:t}=r;if(e)return r.promise.then(e=>e?{filter:e,filterParams:t}:void 0);r.refreshed=!0}return Cs.resolve(void 0)},a,l,t,this.state.get(e.getColId())??{model:t},o,n)}setColumnFilterWrapper(e,t){const o=e.getColId();this.allColumnFilters.set(o,t),this.allColumnListeners.set(o,this.addManagedListeners(e,{colDefChanged:()=>this.filterParamsChanged(o)})[0])}areFilterCompsDifferent(e,t){if(!t||!e)return!0;const{componentClass:o}=e,{componentClass:i}=t,n=o===i||o?.render&&i?.render&&o.render===i.render;return!n}hasFloatingFilters(){const e=this.beans.colModel.getCols();return e.some(e=>e.getColDef().floatingFilter)}getFilterInstance(e){const t=this.beans.colModel.getColDefCol(e);if(!t)return Promise.resolve(void 0);const o=this.getOrCreateFilterUi(t);return o?new Promise(e=>{o.then(t=>{e(rr(t))})}):Promise.resolve(null)}processFilterModelUpdateQueue(){this.modelUpdates.forEach(({model:e,source:t})=>this.setModel(e,t)),this.modelUpdates=[],this.columnModelUpdates.forEach(({key:e,model:t,resolve:o})=>{this.setModelForColumn(e,t).then(()=>o())}),this.columnModelUpdates=[]}getModelForColumn(e,t){if(t){const{state:t,model:o}=this,i=e.getColId(),n=t.get(i);return n?n.model??null:Yd(o,i)}const o=this.cachedFilter(e);return o?this.getModelFromFilterWrapper(o):null}setModelForColumn(e,t){if(this.beans.dataTypeSvc?.isPendingInference){let o=()=>{};const i=new Promise(e=>{o=e});return this.columnModelUpdates.push({key:e,model:t,resolve:o}),i}return new Promise(o=>{this.setModelForColumnLegacy(e,t).then(e=>o(e))})}getStateForColumn(e){return this.state.get(e)??{model:Yd(this.model,e)}}setModelForColumnLegacy(e,t){const o=this.beans.colModel.getColDefCol(e),i=o?this.getOrCreateFilterWrapper(o,!0):null;return i?this.setModelOnFilterWrapper(i,t):Cs.resolve()}setColDefPropsForDataType(e,t,o){const i=e.filter,n=!0===i?this.getDefaultFilterFromDataType(()=>t.baseDataType):i;if("string"!==typeof n)return;let s,r;const a=this.beans,{filterParams:l,filterValueGetter:d}=e;({filterParams:s,filterValueGetter:r}="agMultiColumnFilter"===n?a.multiFilter?.getParamsForDataType(l,d,t,o)??{}:mc(n,l,d,t,o,a,this.getLocaleTextFunc())),e.filterParams=s,r&&(e.filterValueGetter=r)}setColFilterActive(e,t,o,i){e.filterActive!==t&&(e.filterActive=t,e.dispatchColEvent("filterActiveChanged",o)),e.dispatchColEvent("filterChanged",o,i)}setModelOnFilterWrapper(e,t,o){return new Cs(i=>{if(e.isHandler){const n=e.column,s=n.getColId(),r=this.model[s];return this.updateStoredModel(s,t),o&&t===r?void i():void this.refreshHandlerAndUi(n,t,"api").then(()=>i())}const n=qd(e);n?n.then(e=>{if("function"!==typeof e?.setModel)return xo(65),void i();(e.setModel(t)||Cs.resolve()).then(()=>i())}):i()})}updateStoredModel(e,t){s(t)?this.model[e]=t:delete this.model[e];const o=this.state.get(e),i={model:t,state:o?.state};this.state.set(e,i)}filterModified(e,t){this.getOrCreateFilterUi(e)?.then(o=>{this.eventSvc.dispatchEvent({type:"filterModified",column:e,filterInstance:o,...t})})}filterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"filterUiChanged",column:e,...t})}floatingFilterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"floatingFilterUiChanged",column:e,...t})}updateModel(e,t,o){const i=e.getColId(),n=this.cachedFilter(e),s=()=>n?.filterUi;Xd({action:t,filterParams:n?.filterUi?.filterParams,getFilterUi:s,getModel:()=>Yd(this.model,i),getState:()=>this.state.get(i),updateState:t=>this.updateState(e,t),updateModel:e=>s()?.filterParams?.onModelChange(e,{...o,fromAction:t}),processModelToApply:n?.isHandler?n.handler.processModelToApply?.bind(n.handler):void 0})}updateAllModels(e,t){const o=[];this.allColumnFilters.forEach((t,i)=>{const n=this.beans.colModel.getColDefCol(i);n&&Xd({action:e,filterParams:t.filterUi?.filterParams,getFilterUi:()=>t.filterUi,getModel:()=>Yd(this.model,i),getState:()=>this.state.get(i),updateState:e=>this.updateState(n,e),updateModel:t=>{this.updateStoredModel(i,t),this.dispatchLocalEvent({type:"filterAction",column:n,action:e}),o.push(this.refreshHandlerAndUi(n,t,"ui"))},processModelToApply:t?.isHandler?t.handler.processModelToApply?.bind(t.handler):void 0})}),o.length&&Cs.all(o).then(()=>{this.callOnFilterChangedOutsideRenderCycle({source:"columnFilter",additionalEventAttributes:t,columns:[]})})}updateOrRefreshFilterUi(e){const t=e.getColId();Qd(()=>this.cachedFilter(e)?.filterUi,()=>Yd(this.model,t),()=>this.state.get(t))}updateState(e,t){this.state.set(e.getColId(),t),this.dispatchLocalEvent({type:"filterStateChanged",column:e,state:t})}canApplyAll(){const{state:e,model:t,activeFilterComps:o}=this;for(const n of o)if("COLUMN_MENU"===n.source)return!1;let i=!1;for(const n of e.keys()){const o=e.get(n);if(!1===o.valid)return!1;(o.model??null)!==Yd(t,n)&&(i=!0)}return i}hasUnappliedModel(e){const{model:t,state:o}=this;return(o.get(e)?.model??null)!==Yd(t,e)}setGlobalButtons(e){this.isGlobalButtons=e,this.dispatchLocalEvent({type:"filterGlobalButtons",isGlobal:e})}shouldKeepStateOnDetach(e,t){if("newFiltersToolPanel"===t)return!0;const o=this.beans.filterPanelSvc;return!!o?.isActive&&!!o.getState(e.getColId())}destroy(){super.destroy(),this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"gridDestroyed")),this.allColumnListeners.clear(),this.state.clear(),this.activeFilterComps.clear()}};function AR(e){return!!e.filterManager?.isAnyFilterPresent()}function TR(e,t="api"){e.filterManager?.onFilterChanged({source:t})}var IR=class extends Ct{constructor(){super(...arguments),this.beanName="filterManager",this.advFilterModelUpdateQueue=[]}wireBeans(e){this.quickFilter=e.quickFilter,this.advancedFilter=e.advancedFilter,this.colFilter=e.colFilter}postConstruct(){const e=this.refreshFiltersForAggregations.bind(this),t=this.updateAdvFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:e,columnPivotChanged:e,columnPivotModeChanged:e,newColumnsLoaded:t,columnVisible:t,advancedFilterEnabledChanged:({enabled:e})=>this.onAdvFilterEnabledChanged(e),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],()=>{this.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",()=>{this.updateAggFiltering(),this.onFilterChanged()}),this.quickFilter&&this.addManagedListeners(this.quickFilter,{quickFilterChanged:()=>this.onFilterChanged({source:"quickFilter"})});const{gos:o}=this;this.alwaysPassFilter=o.get("alwaysPassFilter"),this.addManagedPropertyListener("alwaysPassFilter",()=>{this.alwaysPassFilter=o.get("alwaysPassFilter"),this.onFilterChanged({source:"api"})})}isExternalFilterPresentCallback(){const e=this.gos.getCallback("isExternalFilterPresent");return"function"===typeof e&&e({})}doesExternalFilterPass(e){const t=this.gos.get("doesExternalFilterPass");return"function"===typeof t&&t(e)}setFilterState(e,t,o="api"){this.isAdvFilterEnabled()||this.colFilter?.setState(e,t,o)}setFilterModel(e,t="api",o){this.isAdvFilterEnabled()?o||this.warnAdvFilters():this.colFilter?.setModel(e,t)}getFilterModel(){return this.colFilter?.getModel()??{}}getFilterState(){return this.colFilter?.getState()}isColumnFilterPresent(){return!!this.colFilter?.isFilterPresent()}isAggregateFilterPresent(){return!!this.colFilter?.isAggFilterPresent()}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.externalFilterPresent||this.isAdvFilterPresent()}isAnyFilterPresent(){return this.isChildFilterPresent()||this.isAggregateFilterPresent()}isAdvFilterPresent(){return this.isAdvFilterEnabled()&&this.advancedFilter.isFilterPresent()}onAdvFilterEnabledChanged(e){e?this.colFilter?.disableFilters()&&this.onFilterChanged({source:"advancedFilter"}):this.advancedFilter?.isFilterPresent()&&(this.advancedFilter.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvFilterEnabled(){return!!this.advancedFilter?.isEnabled()}isAdvFilterHeaderActive(){return this.isAdvFilterEnabled()&&this.advancedFilter.isHeaderActive()}refreshFiltersForAggregations(){Ko(this.gos)&&this.isAnyFilterPresent()&&this.onFilterChanged()}onFilterChanged(e={}){const{source:t,additionalEventAttributes:o,columns:i=[]}=e;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(e):Cs.resolve()).then(()=>{const e={source:t,type:"filterChanged",columns:i};o&&kt(e,o),this.eventSvc.dispatchEvent(e),this.colFilter?.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){return!!this.colFilter?.isSuppressFlashingCellsBecauseFiltering()}isQuickFilterPresent(){return!!this.quickFilter?.isFilterPresent()}updateAggFiltering(){this.aggFiltering=!!Ko(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.beans.colModel.isPivotMode())&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassOtherFilters(e,t){return this.doesRowPassFilter({rowNode:t,colIdToSkip:e})}doesRowPassAggregateFilters(e){const{rowNode:t}=e;return!!this.alwaysPassFilter?.(t)||!(this.isAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t))&&!(this.isAggregateFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip,!0))}doesRowPassFilter(e){const{rowNode:t}=e;return!!this.alwaysPassFilter?.(t)||!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t))&&(!(this.externalFilterPresent&&!this.doesExternalFilterPass(t))&&(!(this.isColumnFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip))&&!(this.isAdvFilterPresent()&&!this.advancedFilter.doesFilterPass(t))))}isFilterAllowed(e){return!this.isAdvFilterEnabled()&&!!this.colFilter?.isFilterAllowed(e)}getAdvFilterModel(){return this.isAdvFilterEnabled()?this.advancedFilter.getModel():null}setAdvFilterModel(e,t="api"){this.isAdvFilterEnabled()&&(this.beans.dataTypeSvc?.isPendingInference?this.advFilterModelUpdateQueue.push(e):(this.advancedFilter.setModel(e??null),this.onFilterChanged({source:t})))}toggleAdvFilterBuilder(e,t){this.isAdvFilterEnabled()&&this.advancedFilter.getCtrl().toggleFilterBuilder({source:t,force:e})}updateAdvFilterColumns(){this.isAdvFilterEnabled()&&this.advancedFilter.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){return!this.isAdvFilterEnabled()&&!!this.colFilter?.hasFloatingFilters()}getColumnFilterInstance(e){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve(void 0)):this.colFilter?.getFilterInstance(e)??Promise.resolve(void 0)}warnAdvFilters(){xo(68)}setupAdvFilterHeaderComp(e){this.advancedFilter?.getCtrl().setupHeaderComp(e)}getHeaderRowCount(){return this.isAdvFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvFilterHeaderActive()?this.advancedFilter.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){for(const e of this.advFilterModelUpdateQueue)this.setAdvFilterModel(e);this.advFilterModelUpdateQueue=[]}setColumnFilterModel(e,t){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve()):this.colFilter?.setModelForColumn(e,t)??Promise.resolve()}},LR=class extends Ct{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(e){this.popupSvc=e.popupSvc}hideActiveMenu(){this.hidePopup?.()}showMenuAfterMouseEvent(e,t,o,i){e&&!e.isColumn||this.showPopup(e,i=>{this.popupSvc?.positionPopupUnderMouseEvent({additionalParams:{column:e},type:o,mouseEvent:t,ePopup:i})},o,t.target,Pi(this.gos),i)}showMenuAfterButtonClick(e,t,o,i){if(e&&!e.isColumn)return;let n=-1,s="left";const r=Pi(this.gos);!r&&this.gos.get("enableRtl")&&(n=1,s="right");const a=r?void 0:4*n,l=r?void 0:4;this.showPopup(e,i=>{this.popupSvc?.positionPopupByComponent({type:o,eventSource:t,ePopup:i,nudgeX:a,nudgeY:l,alignSide:s,keepWithinBounds:!0,position:"under",additionalParams:{column:e}})},o,t,r,i)}showPopup(e,t,o,i,n,s){const r=e?this.createBean(new dc(e,"COLUMN_MENU")):void 0;if(this.activeMenu=r,!r?.hasFilter()||!e)return void Eo(57);const a=Zd({tag:"div",cls:"ag-menu"+(n?"":" ag-filter-menu"),role:"presentation"});let l;[this.tabListener]=this.addManagedElementListeners(a,{keydown:e=>this.trapFocusWithin(e,a)}),a.appendChild(r?.getGui());const d=()=>r?.afterGuiDetached(),c=Di(this.gos)?i??this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,u=t=>{Gh(e,!1,"contextMenu");const n=t instanceof KeyboardEvent;if(this.tabListener&&(this.tabListener=this.tabListener()),n&&i&&Pe(i)){const e=_r(i);e?.focus({preventScroll:!0})}d(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,o,e),s?.()},h=this.getLocaleTextFunc(),g=n&&"columnFilter"!==o?h("ariaLabelColumnMenu","Column Menu"):h("ariaLabelColumnFilter","Column Filter"),p=this.popupSvc?.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:u,positionCallback:()=>t(a),anchorToElement:c,ariaLabel:g});p&&(this.hidePopup=l=p.hideFunc),r.afterInit().then(()=>{t(a),r.afterGuiAttached({container:o,hidePopup:l})}),Gh(e,!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,o,e)}trapFocusWithin(e,t){e.key!==lr.TAB||e.defaultPrevented||Wr(this.beans,t,!1,e.shiftKey)||(e.preventDefault(),zr(t,e.shiftKey))}dispatchVisibleChangedEvent(e,t,o){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:t,column:o??null,columnGroup:null})}isMenuEnabled(e){return e.isFilterAllowed()&&(e.getColDef().menuTabs??["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}},BR=class extends Ct{constructor(){super(...arguments),this.beanName="filterValueSvc"}getValue(e,t,o){if(!t)return;const i=e.getColDef(),{selectableFilter:n,valueSvc:s,formula:r}=this.beans,a=o??n?.getFilterValueGetter(e.getColId())??i.filterValueGetter;if(a)return this.executeFilterValueGetter(a,t.data,e,t,i);const l=s.getValue(e,t);return e.isAllowFormula()&&r?.isFormula(l)?r.resolveValue(e,t):l}executeFilterValueGetter(e,t,o,i,n){const{expressionSvc:s,valueSvc:r}=this.beans,a=Ti(this.gos,{data:t,node:i,column:o,colDef:n,getValue:r.getValueCallback.bind(r,i)});return"function"===typeof e?e(a):s?.evaluate(e,a)}},OR={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eFloatingFilterText"}]},HR=class extends ps{constructor(){super(OR,[Ta]),this.eFloatingFilterText=ds}init(e){this.params=e;const t=this.beans.colNames.getDisplayNameForColumn(e.column,"header",!0);if(this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${t} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`),this.gos.get("enableFilterHandlers")){const t=e,o=t.getHandler();if(o.getModelAsString){const e=o.getModelAsString(t.model);this.eFloatingFilterText.setValue(e)}}}onParentModelChanged(e){null!=e?this.params.parentFilterInstance(t=>{if(t.getModelAsString){const o=t.getModelAsString(e);this.eFloatingFilterText.setValue(o)}}):this.eFloatingFilterText.setValue("")}refresh(e){this.init(e)}},VR=class{constructor(){this.customFilterOptions={}}init(e,t){this.filterOptions=e.filterOptions??t,this.mapCustomOptions(),this.defaultOption=this.getDefaultItem(e.defaultOption)}refresh(e,t){const o=e.filterOptions??t;this.filterOptions!==o&&(this.filterOptions=o,this.customFilterOptions={},this.mapCustomOptions()),this.defaultOption=this.getDefaultItem(e.defaultOption)}mapCustomOptions(){const{filterOptions:e}=this;if(e)for(const t of e){if("string"===typeof t)continue;const o=[["displayKey"],["displayName"],["predicate","test"]],i=e=>!!e.some(e=>null!=t[e])||(xo(72,{keys:e}),!1);o.every(i)?this.customFilterOptions[t.displayKey]=t:this.filterOptions=e.filter(e=>e===t)||[]}}getDefaultItem(e){const{filterOptions:t}=this;if(e)return e;if(t.length>=1){const e=t[0];if("string"===typeof e)return e;if(e.displayKey)return e.displayKey;xo(73)}else xo(74)}getCustomOption(e){return this.customFilterOptions[e]}};function GR(e,t,o){return null==o?e.splice(t):e.splice(t,o)}function NR(e){return null==e||"string"===typeof e&&0===e.trim().length}function zR(e){return"AND"===e||"OR"===e?e:"AND"}function WR(e,t,o){if(null==e)return;const{predicate:i}=e;return null==i||t.some(e=>null==e)?void 0:i(t,o)}function _R(e,t){let o=e.length;return o>t&&(e.splice(t),xo(78),o=t),o}function UR(e,t){const o=t.getCustomOption(e);if(o){const{numberOfInputs:e}=o;return null!=e?e:1}const i=["empty","notBlank","blank"];return e&&i.indexOf(e)>=0?0:"inRange"===e?2:1}var $R=class extends Fc{constructor(e,t,o){super(e,"simple-filter"),this.mapValuesFromModel=t,this.defaultOptions=o,this.eTypes=[],this.eJoinPanels=[],this.eJoinAnds=[],this.eJoinOrs=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}setParams(e){super.setParams(e);const t=new VR;this.optionsFactory=t,t.init(e,this.defaultOptions),this.commonUpdateSimpleParams(e),this.createOption(),this.createMissingConditionsAndOperators()}updateParams(e,t){this.optionsFactory.refresh(e,this.defaultOptions),super.updateParams(e,t),this.commonUpdateSimpleParams(e)}commonUpdateSimpleParams(e){this.setNumConditions(e),this.defaultJoinOperator=zR(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.createFilterListOptions(),ze(this.getGui(),"tabindex",this.isReadOnly()?"-1":null)}onFloatingFilterChanged(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged("immediately",!0)}setTypeFromFloatingFilter(e){this.eTypes.forEach((t,o)=>{const i=0===o?e:this.optionsFactory.defaultOption;t.setValue(i,!0)})}getModelFromUi(){const e=this.getUiCompleteConditions();return 0===e.length?null:this.maxNumConditions>1&&e.length>1?{filterType:this.filterType,operator:this.getJoinOperator(),conditions:e}:e[0]}getConditionTypes(){return this.eTypes.map(e=>e.getValue())}getConditionType(e){return this.eTypes[e].getValue()}getJoinOperator(){const{eJoinOrs:e,defaultJoinOperator:t}=this;return 0===e.length?t:!0===e[0].getValue()?"OR":"AND"}areNonNullModelsEqual(e,t){const o=!e.operator,i=!t.operator,n=!o&&i||o&&!i;if(n)return!1;let s;if(o){const o=e,i=t;s=this.areSimpleModelsEqual(o,i)}else{const o=e,i=t;s=o.operator===i.operator&&on(o.conditions,i.conditions,(e,t)=>this.areSimpleModelsEqual(e,t))}return s}setModelIntoUi(e,t){if(null==e)return this.resetUiToDefaults(t),Cs.resolve();const o=e.operator;if(o){const t=e;let o=t.conditions;null==o&&(o=[],xo(77));const i=_R(o,this.maxNumConditions),n=this.getNumConditions();if(i<n)this.removeConditionsAndOperators(i);else if(i>n)for(let e=n;e<i;e++)this.createJoinOperatorPanel(),this.createOption();const s="OR"===t.operator;this.eJoinAnds.forEach(e=>e.setValue(!s,!0)),this.eJoinOrs.forEach(e=>e.setValue(s,!0)),o.forEach((e,t)=>{this.eTypes[t].setValue(e.type,!0),this.setConditionIntoUi(e,t)})}else{const t=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(t.type,!0),this.setConditionIntoUi(t,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.updateUiVisibility(),t||this.params.onUiChange(this.getUiChangeEventParams()),Cs.resolve()}setNumConditions(e){let t=e.maxNumConditions??2;t<1&&(xo(79),t=1),this.maxNumConditions=t;let o=e.numAlwaysVisibleConditions??1;o<1&&(xo(80),o=1),o>t&&(xo(81),o=t),this.numAlwaysVisibleConditions=o}createOption(){const e=this.getGui(),t=this.createManagedBean(new Ka);this.eTypes.push(t),t.addCss("ag-filter-select"),e.appendChild(t.getGui());const o=this.createEValue();this.eConditionBodies.push(o),e.appendChild(o),this.putOptionsIntoDropdown(t),this.resetType(t);const i=this.getNumConditions()-1;this.forEachPositionInput(i,e=>this.resetInput(e)),this.addChangedListeners(t,i)}createJoinOperatorPanel(){const e=Zd({tag:"div",cls:"ag-filter-condition"});this.eJoinPanels.push(e);const t=this.createJoinOperator(this.eJoinAnds,e,"and"),o=this.createJoinOperator(this.eJoinOrs,e,"or");this.getGui().appendChild(e);const i=this.eJoinPanels.length-1,n=this.joinOperatorId++;this.resetJoinOperatorAnd(t,i,n),this.resetJoinOperatorOr(o,i,n),this.isReadOnly()||(t.onValueChange(this.listener),o.onValueChange(this.listener))}createJoinOperator(e,t,o){const i=this.createManagedBean(new Fa);e.push(i);const n="ag-filter-condition-operator";return i.addCss(n),i.addCss(`${n}-${o}`),t.appendChild(i.getGui()),i}createFilterListOptions(){this.filterListOptions=this.optionsFactory.filterOptions.map(e=>"string"===typeof e?this.createBoilerplateListOption(e):this.createCustomListOption(e))}putOptionsIntoDropdown(e){const{filterListOptions:t}=this;for(const o of t)e.addOption(o);e.setDisabled(t.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){const{displayKey:t}=e,o=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:o?this.getLocaleTextFunc()(o.displayKey,o.displayName):this.translate(t)}}createBodyTemplate(){return null}getAgComponents(){return[]}updateUiVisibility(){const e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)}updateNumConditions(){let e=-1,t=!0;for(let o=0;o<this.getNumConditions();o++)this.isConditionUiComplete(o)?e=o:t=!1;if(this.shouldAddNewConditionAtEnd(t))this.createJoinOperatorPanel(),this.createOption();else{const t=this.lastUiCompletePosition??this.getNumConditions()-2;if(e<t){this.removeConditionsAndOperators(t+1);const o=e+1,i=t-o;i>0&&this.removeConditionsAndOperators(o,i),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e}updateConditionStatusesAndValues(e,t){this.eTypes.forEach((t,o)=>{const i=this.isConditionDisabled(o,e);t.setDisabled(i||this.filterListOptions.length<=1),1===o&&(pe(this.eJoinPanels[0],i),this.eJoinAnds[0].setDisabled(i),this.eJoinOrs[0].setDisabled(i))}),this.eConditionBodies.forEach((e,t)=>{he(e,this.isConditionBodyVisible(t))});const o="OR"===(t??this.getJoinOperator());for(const i of this.eJoinAnds)i.setValue(!o,!0);for(const i of this.eJoinOrs)i.setValue(o,!0);this.forEachInput((t,o,i,n)=>{this.setElementDisplayed(t,o<n),this.setElementDisabled(t,this.isConditionDisabled(i,e))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,t){if(e>=this.getNumConditions())return;const{eTypes:o,eConditionBodies:i,eJoinPanels:n,eJoinAnds:s,eJoinOrs:r}=this;this.removeComponents(o,e,t),this.removeElements(i,e,t),this.removeEValues(e,t);const a=Math.max(e-1,0);this.removeElements(n,a,t),this.removeComponents(s,a,t),this.removeComponents(r,a,t)}removeElements(e,t,o){const i=GR(e,t,o);for(const n of i)Ee(n)}removeComponents(e,t,o){const i=GR(e,t,o);for(const n of i)Ee(n.getGui()),this.destroyBean(n)}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!e?.suppressFocus){let e;if(!this.isReadOnly()){const t=this.getInputs(0)[0];e=t instanceof Ra&&this.isConditionBodyVisible(0)?t.getInputElement():this.eTypes[0]?.getFocusableElement()}(e??this.getGui()).focus({preventScroll:!0})}}shouldKeepInvalidInputState(){return!1}afterGuiDetached(){super.afterGuiDetached();const e=this.params;if(this.beans.colFilter?.shouldKeepStateOnDetach(e.column)||this.shouldKeepInvalidInputState())return;e.onStateChange({model:e.model});let t=-1,o=-1,i=!1;const n=this.getJoinOperator();for(let r=this.getNumConditions()-1;r>=0;r--)if(this.isConditionUiComplete(r))-1===t&&(t=r,o=r);else{const e=r>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(r-1),n=r<t;(e||n)&&(this.removeConditionsAndOperators(r,1),i=!0,n&&o--)}let s=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),s=!0),this.shouldAddNewConditionAtEnd(o===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),s=!0),s&&this.updateConditionStatusesAndValues(o,n),i&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=o}getModelAsString(e){return this.params.getHandler()?.getModelAsString?.(e)??""}resetPlaceholder(){const e=this.getLocaleTextFunc(),{filterPlaceholder:t,eTypes:o}=this;this.forEachInput((i,n,s,r)=>{if(!(i instanceof Ra))return;const a=0===n&&r>1?"inRangeStart":0===n?"filterOoo":"inRangeEnd",l=0===n&&r>1?e("ariaFilterFromValue","Filter from value"):0===n?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value"),d=o[s].getValue(),c=rc(this,t,a,d);i.setInputPlaceholder(c),i.setInputAriaLabel(l)})}setElementValue(e,t,o){e instanceof Ra&&e.setValue(null!=t?String(t):null,!0)}setElementDisplayed(e,t){cs(e)&&he(e.getGui(),t)}setElementDisabled(e,t){cs(e)&&pe(e.getGui(),t)}attachElementOnChange(e,t){e instanceof Ra&&e.onValueChange(t)}forEachInput(e){this.getConditionTypes().forEach((t,o)=>{this.forEachPositionTypeInput(o,t,e)})}forEachPositionInput(e,t){const o=this.getConditionType(e);this.forEachPositionTypeInput(e,o,t)}forEachPositionTypeInput(e,t,o){const i=UR(t,this.optionsFactory),n=this.getInputs(e);for(let s=0;s<n.length;s++){const t=n[s];null!=t&&o(t,s,e,i)}}isConditionDisabled(e,t){return!!this.isReadOnly()||0!==e&&e>t+1}isConditionBodyVisible(e){const t=this.getConditionType(e),o=UR(t,this.optionsFactory);return o>0}isConditionUiComplete(e){if(e>=this.getNumConditions())return!1;const t=this.getConditionType(e);return"empty"!==t&&(!this.getValues(e).some(e=>null==e)&&!this.positionHasInvalidInputs(e))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){const e=[];for(let t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(e){this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(e=>this.resetType(e)),this.eJoinAnds.forEach((e,t)=>this.resetJoinOperatorAnd(e,t,this.joinOperatorId+t)),this.eJoinOrs.forEach((e,t)=>this.resetJoinOperatorOr(e,t,this.joinOperatorId+t)),this.joinOperatorId++,this.forEachInput(e=>this.resetInput(e)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,this.updateUiVisibility(),e||this.params.onUiChange(this.getUiChangeEventParams())}resetType(e){const t=this.getLocaleTextFunc(),o=t("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(o).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,o){this.resetJoinOperator(e,t,"AND"===this.defaultJoinOperator,this.translate("andCondition"),o)}resetJoinOperatorOr(e,t,o){this.resetJoinOperator(e,t,"OR"===this.defaultJoinOperator,this.translate("orCondition"),o)}resetJoinOperator(e,t,o,i,n){this.updateJoinOperatorDisabled(e.setValue(o,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${n}`).setLabel(i),t)}updateJoinOperatorsDisabled(){const e=(e,t)=>this.updateJoinOperatorDisabled(e,t);this.eJoinAnds.forEach(e),this.eJoinOrs.forEach(e)}updateJoinOperatorDisabled(e,t){e.setDisabled(this.isReadOnly()||t>0)}resetInput(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())}setConditionIntoUi(e,t){const o=this.mapValuesFromModel(e,this.optionsFactory);this.forEachInput((e,i,n)=>{n===t&&this.setElementValue(e,null!=o[i]?o[i]:null)})}setValueFromFloatingFilter(e){this.forEachInput((t,o,i)=>{this.setElementValue(t,0===o&&0===i?e:null,!0)})}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,e=>{this.attachElementOnChange(e,this.listener)}))}hasInvalidInputs(){return!1}positionHasInvalidInputs(e){return!1}isReadOnly(){return!!this.params.readOnly}},qR=".ag-input-field-input",jR=class{constructor(e,t,o,i,n,s){this.context=e,this.eParent=n,this.alive=!0,this.debouncedReport=xt({isAlive:()=>this.alive},KR,500),this.timeoutHandle=null;const r=tr(t,o,i);r?.newAgStackInstance().then(t=>{if(!this.alive)return void e.destroyBean(t);if(this.dateComp=t,!t)return;n.appendChild(t.getGui()),t?.afterGuiAttached?.();const{tempValue:o,disabled:i}=this;o&&t.setDate(o),null!=i&&t.setDisabled?.(i),s?.(this)})}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(e){const t=this.dateComp;t?t.setDate(e):this.tempValue=e}setDisabled(e){const t=this.dateComp;t?t.setDisabled?.(e):this.disabled=e}setDisplayed(e){he(this.eParent,e)}setInputPlaceholder(e){this.dateComp?.setInputPlaceholder?.(e)}setInputAriaLabel(e){this.dateComp?.setInputAriaLabel?.(e)}afterGuiAttached(e){this.dateComp?.afterGuiAttached?.(e)}updateParams(e){this.dateComp?.refresh?.(e)}setCustomValidity(e,t=!1){const o=this.dateComp?.getGui().querySelector(qR);if(o&&"setCustomValidity"in o){const i=e.length>0;o.setCustomValidity(e),i?t?this.timeoutHandle=this.debouncedReport(o):KR(o):this.timeoutHandle&&window.clearTimeout(this.timeoutHandle),H(o,i)}}getValidity(){return this.dateComp?.getGui().querySelector(qR)?.validity}};function KR(e){e.reportValidity()}var QR=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"];function XR(e,t){const{dateFrom:o,dateTo:i,type:n}=e||{};return[o&&ua(o,void 0,!0)||null,i&&ua(i,void 0,!0)||null].slice(0,UR(n,t))}var YR=1e3,ZR=1/0,JR=class extends $R{constructor(){super("dateFilter",XR,QR),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=YR,this.maxValidYear=ZR,this.minValidDate=null,this.maxValidDate=null,this.filterType="date"}afterGuiAttached(e){super.afterGuiAttached(e),this.dateConditionFromComps[0].afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!Er()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}commonUpdateSimpleParams(e){super.commonUpdateSimpleParams(e);const t=(t,o)=>{const i=e[t];if(null!=i){if(!isNaN(i))return null==i?o:Number(i);xo(82,{param:t})}return o},o=t("minValidYear",YR),i=t("maxValidYear",ZR);this.minValidYear=o,this.maxValidYear=i,o>i&&xo(83);const{minValidDate:n,maxValidDate:s}=e,r=n instanceof Date?n:ua(n);this.minValidDate=r;const a=s instanceof Date?s:ua(s);this.maxValidDate=a,r&&a&&r>a&&xo(84)}refreshInputValidation(){for(let e=0;e<this.dateConditionFromComps.length;e++)this.refreshInputPairValidation(e,!1,!0)}refreshInputPairValidation(e,t=!1,o=!1){const{dateConditionFromComps:i,dateConditionToComps:n,beans:s}=this,r=i[e],a=n[e],l=r.getDate(),d=a.getDate(),c=ex(l,d,t),u=c?this.translate(c,[String(t?d:l)]):"",h=!Er()&&!o;(t?r:a).setCustomValidity(u,h),(t?a:r).setCustomValidity("",h),u.length>0&&s.ariaAnnounce.announceValue(u,"dateFilter")}createDateCompWrapper(e,t,o){const{beans:{userCompFactory:i,context:n,gos:s},params:r}=this,a="from"===o,l=new jR(n,i,r.colDef,Ti(s,{onDateChanged:()=>{this.refreshInputPairValidation(t,a),this.onUiChanged()},onFocusIn:()=>this.refreshInputPairValidation(t,a),filterParams:r,location:"filter"}),e);return this.addDestroyFunc(()=>l.destroy()),l}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}setElementValue(e,t){e.setDate(t),t||e.setCustomValidity("")}setElementDisplayed(e,t){e.setDisplayed(t)}setElementDisabled(e,t){e.setDisabled(t)}createEValue(){const e=Zd({tag:"div",cls:"ag-filter-body"});return this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e}createFromToElement(e,t,o,i){const n=Zd({tag:"div",cls:`ag-filter-${i} ag-filter-date-${i}`});t.push(n),e.appendChild(n),o.push(this.createDateCompWrapper(n,t.length-1,i))}removeEValues(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),GR(this.eConditionPanelsFrom,e,t),GR(this.eConditionPanelsTo,e,t)}removeDateComps(e,t,o){const i=GR(e,t,o);for(const n of i)n.destroy()}isValidDateValue(e){if(null===e)return!1;const{minValidDate:t,maxValidDate:o,minValidYear:i,maxValidYear:n}=this;if(t){if(e<t)return!1}else if(e.getUTCFullYear()<i)return!1;if(o){if(e>o)return!1}else if(e.getUTCFullYear()>n)return!1;return!0}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>e||(e=null!=t.getDate()&&!(t.getValidity()?.valid??1))),e}positionHasInvalidInputs(e){let t=!1;return this.forEachPositionInput(e,e=>t||(t=!(e.getValidity()?.valid??1))),t}canApply(e){return!this.hasInvalidInputs()}isConditionUiComplete(e){if(!super.isConditionUiComplete(e))return!1;let t=!0;return this.forEachPositionInput(e,(e,o,i,n)=>{!t||o>=n||t&&(t=this.isValidDateValue(e.getDate()))}),t}areSimpleModelsEqual(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),o={},i=this.getValues(e),n=this.params.useIsoSeparator?"T":" ";return i.length>0&&(o.dateFrom=ia(i[0],!0,n)),i.length>1&&(o.dateTo=ia(i[1],!0,n)),{dateFrom:null,dateTo:null,filterType:this.filterType,type:t,...o}}removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}resetPlaceholder(){const e=this.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),o=e("ariaFilterValue","Filter Value");this.forEachInput(e=>{e.setInputPlaceholder(t),e.setInputAriaLabel(o)})}getInputs(e){const{dateConditionFromComps:t,dateConditionToComps:o}=this;return e>=t.length?[null,null]:[t[e],o[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(e,o,i,n)=>{o<n&&t.push(e.getDate())}),t}translate(e,t){let o=e;return"lessThan"===e?o="before":"greaterThan"===e&&(o="after"),super.translate(o,t)}};function ex(e,t,o){const i=null!=e&&null!=t&&e>=t;return i?(o?"max":"min")+"DateValidation":null}var tx=class extends Ct{constructor(e,t){super(),this.mapValuesFromModel=e,this.defaultOptions=t}init(e){const t=e.filterParams,o=new VR;this.optionsFactory=o,o.init(t,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(o,t)),this.updateParams(e),this.validateModel(e)}refresh(e){if("colDef"===e.source){const t=e.filterParams,o=this.optionsFactory;o.refresh(t,this.defaultOptions),this.filterModelFormatter.updateParams({optionsFactory:o,filterParams:t}),this.updateParams(e)}this.validateModel(e)}updateParams(e){this.params=e}doesFilterPass(e){const t=e.model;if(null==t)return!0;const{operator:o}=t,i=[];if(o){const e=t;i.push(...e.conditions??[])}else i.push(t);const n=o&&"OR"===o?"some":"every",s=this.params.getValue(e.node);return i[n](t=>this.individualConditionPasses(e,t,s))}getModelAsString(e,t){return this.filterModelFormatter.getModelAsString(e,t)??""}validateModel(e){const{model:t,filterParams:{filterOptions:o,maxNumConditions:i}}=e;if(null==t)return;const n=Pc(t);let s=n?t.conditions:[t];const r=o?.map(e=>"string"===typeof e?e:e.displayKey)??this.defaultOptions,a=!s||s.every(e=>void 0!==r.find(t=>t===e.type));if(!a)return this.params={...e,model:null},void e.onModelChange(null);let l=!1;const d=this.filterType;if((s&&!s.every(e=>e.filterType===d)||t.filterType!==d)&&(s=s.map(e=>({...e,filterType:d})),l=!0),"number"===typeof i&&s&&s.length>i&&(s=s.slice(0,i),l=!0),l){const o=s.length>1?{...t,filterType:d,conditions:s}:{...s[0],filterType:d};this.params={...e,model:o},e.onModelChange(o)}}individualConditionPasses(e,t,o){const i=this.optionsFactory,n=this.mapValuesFromModel(t,i),s=i.getCustomOption(t.type),r=WR(s,n,o);return null!=r?r:null==o?this.evaluateNullValue(t.type):this.evaluateNonNullValue(n,o,t,e)}},ox=class extends tx{evaluateNullValue(e){const{includeBlanksInEquals:t,includeBlanksInNotEqual:o,includeBlanksInGreaterThan:i,includeBlanksInLessThan:n,includeBlanksInRange:s}=this.params.filterParams;switch(e){case"equals":if(t)return!0;break;case"notEqual":if(o)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(i)return!0;break;case"lessThan":case"lessThanOrEqual":if(n)return!0;break;case"inRange":if(s)return!0;break;case"blank":return!0;case"notBlank":return!1}return!1}evaluateNonNullValue(e,t,o){const i=o.type;if(!this.isValid(t))return"notEqual"===i||"notBlank"===i;const n=this.comparator(),s=null!=e[0]?n(e[0],t):0;switch(i){case"equals":return 0===s;case"notEqual":return 0!==s;case"greaterThan":return s>0;case"greaterThanOrEqual":return s>=0;case"lessThan":return s<0;case"lessThanOrEqual":return s<=0;case"inRange":{const o=n(e[1],t);return this.params.filterParams.inRangeInclusive?s>=0&&o<=0:s>0&&o<0}case"blank":return NR(t);case"notBlank":return!NR(t);default:return xo(76,{filterModelType:i}),!0}}},ix={equals:"Equals",notEqual:"NotEqual",greaterThan:"GreaterThan",greaterThanOrEqual:"GreaterThanOrEqual",lessThan:"LessThan",lessThanOrEqual:"LessThanOrEqual",inRange:"InRange"},nx={contains:"Contains",notContains:"NotContains",equals:"TextEquals",notEqual:"TextNotEqual",startsWith:"StartsWith",endsWith:"EndsWith",inRange:"InRange"},sx=class extends Ct{constructor(e,t,o){super(),this.optionsFactory=e,this.filterParams=t,this.valueFormatter=o}getModelAsString(e,t){const o=this.getLocaleTextFunc(),i="filterToolPanel"===t;if(!e)return i?ic(this,"filterSummaryInactive"):null;const n=null!=e.operator;if(n){const o=e,i=o.conditions??[],n=i.map(e=>this.getModelAsString(e,t)),s="AND"===o.operator?"andCondition":"orCondition";return n.join(` ${ic(this,s)} `)}if("blank"===e.type||"notBlank"===e.type)return i?ic(this,"blank"===e.type?"filterSummaryBlank":"filterSummaryNotBlank"):o(e.type,e.type);{const t=e,n=this.optionsFactory.getCustomOption(t.type),{displayKey:s,displayName:r,numberOfInputs:a}=n||{};return s&&r&&0===a?o(s,r):this.conditionToString(t,i,"inRange"===t.type||2===a,s,r)}}updateParams(e){const{optionsFactory:t,filterParams:o}=e;this.optionsFactory=t,this.filterParams=o}conditionForToolPanel(e,t,o,i,n,s){let r;const a=this.getTypeKey(e);return a&&(r=ic(this,a)),n&&s&&(r=this.getLocaleTextFunc()(n,s)),null!=r?t?`${r} ${ic(this,"filterSummaryInRangeValues",[o(),i()])}`:`${r} ${o()}`:null}getTypeKey(e){const t=this.filterTypeKeys[e];return t?`filterSummary${t}`:null}formatValue(e){const t=this.valueFormatter;return t?t(e??null)??"":String(e)}},rx=class extends sx{constructor(e,t){super(e,t,e=>{const{dataTypeSvc:o,valueSvc:i}=this.beans,n=t.column,s=o?.getDateFormatterFunction(n),r=s?s(e??void 0):e;return i.formatValue(n,null,r)}),this.filterTypeKeys=ix}conditionToString(e,t,o,i,n){const{type:s}=e,r=ua(e.dateFrom),a=ua(e.dateTo),l=this.filterParams.inRangeFloatingFilterDateFormat,d=t?this.formatValue.bind(this):e=>la(e,l),c=()=>null!==r?d(r):"null",u=()=>null!==a?d(a):"null";if(t){const e=this.conditionForToolPanel(s,o,c,u,i,n);if(null!=e)return e}return o?`${c()}-${u()}`:null!=r?d(r):`${s}`}};function ax(e,t){const o=t;return o<e?-1:o>e?1:0}var lx=class extends ox{constructor(){super(XR,QR),this.filterType="date",this.FilterModelFormatterClass=rx}comparator(){return this.params.filterParams.comparator??ax}isValid(e){const t=this.params.filterParams.isValidDate;return!t||t(e)}},dx=class extends ps{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(e){if(!e)return void(this.lastType=this.optionsFactory.defaultOption);const t=e.operator;let o;if(t){const t=e;o=t.conditions[0]}else o=e;this.lastType=o.type}canWeEditAfterModelFromParentFilter(e){if(!e)return this.isTypeEditable(this.lastType);const t=e.operator;if(t)return!1;const o=e;return this.isTypeEditable(o.type)}init(e){this.params=e;const t=this.gos.get("enableFilterHandlers");if(this.reactive=t,this.setParams(e),t){const t=e;this.onModelUpdated(t.model)}}setParams(e){const t=new VR;this.optionsFactory=t,t.init(e.filterParams,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(t,e.filterParams)),this.setSimpleParams(e,!1)}setSimpleParams(e,t=!0){const o=this.optionsFactory.defaultOption;t||(this.lastType=o),this.readOnly=!!e.filterParams.readOnly;const i=this.isTypeEditable(o);this.setEditable(i)}refresh(e){this.params=e;const t=e,o=this.reactive;if(o&&"colDef"!==t.source||this.updateParams(e),o){const{source:e,model:o}=t;if("dataChanged"===e||"ui"===e)return;this.onModelUpdated(o)}}updateParams(e){const t=this.optionsFactory;t.refresh(e.filterParams,this.defaultOptions),this.setSimpleParams(e),this.filterModelFormatter.updateParams({optionsFactory:t,filterParams:e.filterParams})}onParentModelChanged(e,t){t?.afterFloatingFilter||t?.afterDataChange||this.onModelUpdated(e)}hasSingleInput(e){const t=this.optionsFactory.getCustomOption(e)?.numberOfInputs;return null==t||1==t}isTypeEditable(e){const t=["inRange","empty","blank","notBlank"];return!!e&&!this.readOnly&&this.hasSingleInput(e)&&t.indexOf(e)<0}getAriaLabel(e){const t=this.beans.colNames.getDisplayNameForColumn(e,"header",!0);return`${t} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}},cx={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eReadOnlyText"},{tag:"div",ref:"eDateWrapper",cls:"ag-date-floating-filter-wrapper"}]},ux=class extends dx{constructor(){super(cx,[Ta]),this.eReadOnlyText=ds,this.eDateWrapper=ds,this.FilterModelFormatterClass=rx,this.filterType="date",this.defaultOptions=QR}setParams(e){super.setParams(e),this.createDateComponent();const t=this.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(t("ariaDateFilterInput","Date Filter Input"))}updateParams(e){super.updateParams(e),this.dateComp.updateParams(this.getDateComponentParams()),this.updateCompOnModelChange(e.currentParentModel())}updateCompOnModelChange(e){const t=!this.readOnly&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(t),t){const t=e?ua(e.dateFrom):null;this.dateComp.setDate(t),this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}setEditable(e){he(this.eDateWrapper,e),he(this.eReadOnlyText.getGui(),!e)}onModelUpdated(e){super.setLastTypeFromModel(e),this.updateCompOnModelChange(e)}onDateChanged(){const e=this.dateComp.getDate();if(this.reactive){const t=this.params;t.onUiChange();const o=t.model,i=ia(e),n=null==i?null:{...o??{filterType:this.filterType,type:this.lastType??this.optionsFactory.defaultOption},dateFrom:i};t.onModelChange(n,{afterFloatingFilter:!0})}else this.params.parentFilterInstance(t=>{t?.onFloatingFilterChanged(this.lastType||null,e)})}getDateComponentParams(){const{filterParams:e}=this.params,t=nc(e,this.defaultDebounceMs);return Ti(this.gos,{onDateChanged:xt(this,this.onDateChanged.bind(this),t),filterParams:e,location:"floatingFilter"})}createDateComponent(){const{beans:{context:e,userCompFactory:t},eDateWrapper:o,params:{column:i}}=this;this.dateComp=new jR(e,t,i.getColDef(),this.getDateComponentParams(),o,e=>{e.setInputAriaLabel(this.getAriaLabel(i))}),this.addDestroyFunc(()=>this.dateComp.destroy())}},hx={tag:"div",cls:"ag-filter-filter",children:[{tag:"ag-input-text-field",ref:"eDateInput",cls:"ag-date-filter"}]},gx=class extends ps{constructor(){super(hx,[Ta]),this.eDateInput=ds,this.isApply=!1,this.applyOnFocusOut=!1}init(e){this.params=e,this.setParams(e);const t=this.eDateInput.getInputElement();this.addManagedListeners(t,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||t.focus({preventScroll:!0})},input:this.handleInput.bind(this,!1),change:this.handleInput.bind(this,!0),focusout:this.handleFocusOut.bind(this),focusin:this.handleFocusIn.bind(this)})}handleInput(e){if(!this.eDateInput.isDisabled())return this.isApply?(this.applyOnFocusOut=!e,void(e&&this.params.onDateChanged())):void(e||this.params.onDateChanged())}handleFocusOut(){this.applyOnFocusOut&&(this.applyOnFocusOut=!1,this.params.onDateChanged())}handleFocusIn(){this.params.onFocusIn?.()}setParams(e){const t=this.eDateInput.getInputElement(),o=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=o&&xr();const{minValidYear:i,maxValidYear:n,minValidDate:s,maxValidDate:r,buttons:a,includeTime:l,colDef:d}=e.filterParams||{},c=this.beans.dataTypeSvc,u=l??c?.getDateIncludesTimeFlag?.(d.cellDataType)??!1;if(o?u?(t.type="datetime-local",t.step="1"):t.type="date":t.type="text",s&&i&&xo(85),r&&n&&xo(86),s&&r){const[e,t]=[s,r].map(e=>e instanceof Date?e:ua(e));e&&t&&e.getTime()>t.getTime()&&xo(87)}s?s instanceof Date?t.min=la(s):t.min=s:i&&(t.min=`${i}-01-01`),r?r instanceof Date?t.max=la(r):t.max=r:n&&(t.max=`${n}-12-31`),this.isApply="floatingFilter"===e.location&&!!a?.includes("apply")}refresh(e){this.params=e,this.setParams(e)}getDate(){return ua(this.eDateInput.getValue())}setDate(e){const t=this.params.filterParams.colDef.cellDataType,o=this.beans.dataTypeSvc?.getDateIncludesTimeFlag(t)??!1;this.eDateInput.setValue(ia(e,o))}setInputPlaceholder(e){this.eDateInput.setInputPlaceholder(e)}setInputAriaLabel(e){this.eDateInput.setAriaLabel(e)}setDisabled(e){this.eDateInput.setDisabled(e)}afterGuiAttached(e){e?.suppressFocus||this.eDateInput.getInputElement().focus({preventScroll:!0})}shouldUseBrowserDatePicker(e){return e?.filterParams?.browserDatePicker??!0}},px=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"];function fx(e){return e?.allowedCharPattern??null}function mx(e){return null==e||isNaN(e)?null:e}function vx(e,t){const{filter:o,filterTo:i,type:n}=e||{};return[mx(o),mx(i)].slice(0,UR(n,t))}var Cx=class extends $R{constructor(){super("numberFilter",vx,px),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="number",this.defaultDebounceMs=500}afterGuiAttached(e){super.afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!Er()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}refreshInputValidation(){for(let e=0;e<this.eValuesFrom.length;e++){const t=this.eValuesFrom[e],o=this.eValuesTo[e];this.refreshInputPairValidation(t,o)}}refreshInputPairValidation(e,t,o=!1){const i=this.params.numberParser,n=bx(i,e),s=bx(i,t),r=yx(n,s,o),a=r?this.translate(r,[String(o?s:n)]):"";(o?e:t).setCustomValidity(a),(o?t:e).setCustomValidity(""),a.length>0&&this.beans.ariaAnnounce.announceValue(a,"dateFilter")}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}refresh(e){const t=super.refresh(e),{state:o,additionalEventAttributes:i}=e,n=this.state,s=i?.fromAction,r=s&&"apply"!=s;return!r&&o.model===n.model&&this.areStatesEqual(o.state,n.state)||this.refreshInputValidation(),t}setElementValue(e,t,o){const{numberFormatter:i}=this.params,n=!o&&i?i(t??null):t;super.setElementValue(e,n),null===n&&e.setCustomValidity("")}createEValue(){const{params:e,eValuesFrom:t,eValuesTo:o}=this,i=fx(e),n=Zd({tag:"div",cls:"ag-filter-body",role:"presentation"}),s=this.createFromToElement(n,t,"from",i),r=this.createFromToElement(n,o,"to",i),a=(e,t,o)=>()=>this.refreshInputPairValidation(e,t,o),l=a(s,r,!0);s.onValueChange(l),s.addGuiEventListener("focusin",l);const d=a(s,r,!1);return r.onValueChange(d),r.addGuiEventListener("focusin",d),n}createFromToElement(e,t,o,i){const n=this.createManagedBean(i?new Aa({allowedCharPattern:i}):new Ba);return n.addCss(`ag-filter-${o}`),n.addCss("ag-filter-filter"),t.push(n),e.appendChild(n.getGui()),n}removeEValues(e,t){const o=o=>this.removeComponents(o,e,t);o(this.eValuesFrom),o(this.eValuesTo)}getValues(e){const t=[];return this.forEachPositionInput(e,(e,o,i,n)=>{o<n&&t.push(mx(wx(this.params.numberParser,e.getValue())))}),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),o={filterType:this.filterType,type:t},i=this.getValues(e);return i.length>0&&(o.filter=i[0]),i.length>1&&(o.filterTo=i[1]),o}removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}getInputs(e){const{eValuesFrom:t,eValuesTo:o}=this;return e>=t.length?[null,null]:[t[e],o[e]]}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>e||(e=!t.getInputElement().validity.valid)),e}positionHasInvalidInputs(e){let t=!1;return this.forEachPositionInput(e,e=>t||(t=!e.getInputElement().validity.valid)),t}canApply(e){return!this.hasInvalidInputs()}};function wx(e,t){if("number"===typeof t)return t;let o=n(t);return null!=o&&""===o.trim()&&(o=null),e?e(o):null==o||"-"===o.trim()?null:Number.parseFloat(o)}function bx(e,t){return mx(wx(e,t.getValue(!0)))}function yx(e,t,o){const i=null!=e&&null!=t&&e>=t;return i?`strict${o?"Max":"Min"}ValueValidation`:null}var Sx=class extends sx{constructor(e,t){super(e,t,t.numberFormatter),this.filterTypeKeys=ix}conditionToString(e,t,o,i,n){const{filter:s,filterTo:r,type:a}=e,l=this.formatValue.bind(this);if(t){const e=this.conditionForToolPanel(a,o,()=>l(s),()=>l(r),i,n);if(null!=e)return e}return o?`${l(s)}-${l(r)}`:null!=s?l(s):`${a}`}},Rx=class extends ox{constructor(){super(vx,px),this.filterType="number",this.FilterModelFormatterClass=Sx}comparator(){return(e,t)=>e===t?0:e<t?1:-1}isValid(e){return!isNaN(e)}},xx=class extends Ct{constructor(e){super(),this.params=e,this.eInput=ds,this.onValueChanged=()=>{}}setupGui(e){this.eInput=this.createManagedBean(new Aa(this.params?.config));const t=this.eInput.getGui();e.appendChild(t);const o=e=>this.onValueChanged(e);this.addManagedListeners(t,{input:o,keydown:o})}setEditable(e){this.eInput.setDisabled(!e)}getValue(){return this.eInput.getValue()}setValue(e,t){this.eInput.setValue(e,t)}setValueChangedListener(e){this.onValueChanged=e}setParams({ariaLabel:e,autoComplete:t,placeholder:o}){const{eInput:i}=this;i.setInputAriaLabel(e),void 0!==t&&i.setAutoComplete(t),i.toggleCss("ag-floating-filter-search-icon",!!o),i.setInputPlaceholder(o)}};function Ex(e){const t=e?.trim();return""===t?e:t}function Fx(e,t){const{filter:o,filterTo:i,type:n}=e||{};return[o||null,i||null].slice(0,UR(n,t))}var Px={tag:"div",ref:"eFloatingFilterInputContainer",cls:"ag-floating-filter-input",role:"presentation"},Dx=class extends dx{constructor(){super(...arguments),this.eFloatingFilterInputContainer=ds,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(Px)}onModelUpdated(e){this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.inputSvc.setValue(this.filterModelFormatter.getModelAsString(e))}setParams(e){this.setupFloatingFilterInputService(e),super.setParams(e),this.setTextInputParams(e)}setupFloatingFilterInputService(e){this.inputSvc=this.createFloatingFilterInputService(e),this.inputSvc.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(e){const{inputSvc:t,defaultDebounceMs:o,readOnly:i}=this,{filterPlaceholder:n,column:s,browserAutoComplete:r,filterParams:a}=e,l=this.lastType??this.optionsFactory.defaultOption,d=e.filterParams.filterPlaceholder,c=!0===n?rc(this,d,"filterOoo",l):n||void 0;if(t.setParams({ariaLabel:this.getAriaLabel(s),autoComplete:r??!1,placeholder:c}),this.applyActive=sc(a),!i){const e=nc(a,o);t.setValueChangedListener(xt(this,this.syncUpWithParentFilter.bind(this),e))}}updateParams(e){super.updateParams(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){const{inputSvc:t}=this,o=t.getValue();xe(this.eFloatingFilterInputContainer),this.destroyBean(t),this.setupFloatingFilterInputService(e),t.setValue(o,!0)}syncUpWithParentFilter(e){const t=e.key===lr.ENTER,o=this.reactive;if(o){const e=this.params;e.onUiChange()}if(this.applyActive&&!t)return;const{inputSvc:i,params:n,lastType:s}=this;let r=i.getValue();if(n.filterParams.trimInput&&(r=Ex(r),i.setValue(r,!0)),o){const e=n,t=e.model,o=this.convertValue(r),i=null==o?null:{...t??{filterType:this.filterType,type:s??this.optionsFactory.defaultOption},filter:o};e.onModelChange(i,{afterFloatingFilter:!0})}else n.parentFilterInstance(e=>{e?.onFloatingFilterChanged(s||null,r||null)})}convertValue(e){return e||null}setEditable(e){this.inputSvc.setEditable(e)}},kx=class extends Ct{constructor(){super(...arguments),this.onValueChanged=()=>{},this.numberInputActive=!0}setupGui(e){this.eNumberInput=this.createManagedBean(new Ba),this.eTextInput=this.createManagedBean(new Aa),this.eTextInput.setDisabled(!0);const t=this.eNumberInput.getGui(),o=this.eTextInput.getGui();e.appendChild(t),e.appendChild(o),this.setupListeners(t,e=>this.onValueChanged(e)),this.setupListeners(o,e=>this.onValueChanged(e))}setEditable(e){this.numberInputActive=e,this.eNumberInput.setDisplayed(this.numberInputActive),this.eTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(e){this.eNumberInput.setAutoComplete(e),this.eTextInput.setAutoComplete(e)}getValue(){return this.getActiveInputElement().getValue()}setValue(e,t){this.getActiveInputElement().setValue(e,t)}getActiveInputElement(){return this.numberInputActive?this.eNumberInput:this.eTextInput}setValueChangedListener(e){this.onValueChanged=e}setupListeners(e,t){this.addManagedListeners(e,{input:t,keydown:t})}setParams({ariaLabel:e,autoComplete:t,placeholder:o}){this.setAriaLabel(e),void 0!==t&&this.setAutoComplete(t),this.setPlaceholder(this.eNumberInput,o),this.setPlaceholder(this.eTextInput,o)}setPlaceholder(e,t){e.toggleCss("ag-floating-filter-search-icon",!!t),e.setInputPlaceholder(t)}setAriaLabel(e){this.eNumberInput.setInputAriaLabel(e),this.eTextInput.setInputAriaLabel(e)}},Mx=class extends Dx{constructor(){super(...arguments),this.FilterModelFormatterClass=Sx,this.filterType="number",this.defaultOptions=px}updateParams(e){const t=fx(e.filterParams);t!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),super.updateParams(e)}createFloatingFilterInputService(e){return this.allowedCharPattern=fx(e.filterParams),this.allowedCharPattern?this.createManagedBean(new xx({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new kx)}convertValue(e){return e?Number(e):null}},Ax=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],Tx=class extends $R{constructor(){super("textFilter",Fx,Ax),this.filterType="text",this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}createCondition(e){const t=this.getConditionType(e),o={filterType:this.filterType,type:t},i=this.getValues(e);return i.length>0&&(o.filter=i[0]),i.length>1&&(o.filterTo=i[1]),o}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){const{eValuesFrom:t,eValuesTo:o}=this;return e>=t.length?[null,null]:[t[e],o[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(e,o,i,s)=>{o<s&&t.push(n(e.getValue()))}),t}createEValue(){const e=Zd({tag:"div",cls:"ag-filter-body",role:"presentation"}),{eValuesFrom:t,eValuesTo:o}=this;return this.createFromToElement(e,t,"from"),this.createFromToElement(e,o,"to"),e}createFromToElement(e,t,o){const i=this.createManagedBean(new Aa);i.addCss(`ag-filter-${o}`),i.addCss("ag-filter-filter"),t.push(i),e.appendChild(i.getGui())}removeEValues(e,t){const o=o=>this.removeComponents(o,e,t),{eValuesFrom:i,eValuesTo:n}=this;o(i),o(n)}},Ix=class extends sx{constructor(){super(...arguments),this.filterTypeKeys=nx}conditionToString(e,t,o,i,n){const{filter:s,filterTo:r,type:a}=e;if(t){const e=e=>()=>ic(this,"filterSummaryTextQuote",[e]),t=this.conditionForToolPanel(a,o,e(s),e(r),i,n);if(null!=t)return t}return o?`${s}-${r}`:null!=s?`${s}`:`${a}`}},Lx=({filterOption:e,value:t,filterText:o})=>{if(null==o)return!1;switch(e){case"contains":return t.includes(o);case"notContains":return!t.includes(o);case"equals":return t===o;case"notEqual":return t!=o;case"startsWith":return 0===t.indexOf(o);case"endsWith":{const e=t.lastIndexOf(o);return e>=0&&e===t.length-o.length}default:return!1}},Bx=e=>e,Ox=e=>null==e?null:e.toString().toLowerCase(),Hx=class extends tx{constructor(){super(Fx,Ax),this.filterType="text",this.FilterModelFormatterClass=Ix}updateParams(e){super.updateParams(e);const t=e.filterParams;this.matcher=t.textMatcher??Lx,this.formatter=t.textFormatter??(t.caseSensitive?Bx:Ox)}evaluateNullValue(e){const t=["notEqual","notContains","blank"];return!!e&&t.indexOf(e)>=0}evaluateNonNullValue(e,t,o,i){const n=e.map(e=>this.formatter(e))||[],s=this.formatter(t),{api:r,colDef:a,column:l,context:d,filterParams:{textFormatter:c}}=this.params;if("blank"===o.type)return NR(t);if("notBlank"===o.type)return!NR(t);const u={api:r,colDef:a,column:l,context:d,node:i.node,data:i.data,filterOption:o.type,value:s,textFormatter:c};return n.some(e=>this.matcher({...u,filterText:e}))}processModelToApply(e){if(e&&this.params.filterParams.trimInput){const t=e=>{const t={...e},{filter:o,filterTo:i}=e;return o&&(t.filter=Ex(o)??null),i&&(t.filterTo=Ex(i)??null),t};return Pc(e)?{...e,conditions:e.conditions.map(t)}:t(e)}return e}},Vx=class extends Dx{constructor(){super(...arguments),this.FilterModelFormatterClass=Ix,this.filterType="text",this.defaultOptions=Ax}createFloatingFilterInputService(){return this.createManagedBean(new xx)}};function Gx(e){return!!e.quickFilter?.isFilterPresent()}function Nx(e){return e.quickFilter?.getText()}function zx(e){e.quickFilter?.resetCache()}var Wx=class extends Ct{constructor(){super(...arguments),this.beanName="quickFilter",this.quickFilter=null,this.quickFilterParts=null}postConstruct(){const e=this.resetCache.bind(this),t=this.gos;this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:e,columnRowGroupChanged:e,columnVisible:()=>{t.get("includeHiddenColumnsInQuickFilter")||this.resetCache()}}),this.addManagedPropertyListener("quickFilterText",e=>this.setFilter(e.currentValue)),this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],()=>this.onColumnConfigChanged()),this.quickFilter=this.parseFilter(t.get("quickFilterText")),this.parser=t.get("quickFilterParser"),this.matcher=t.get("quickFilterMatcher"),this.setFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],()=>this.setParserAndMatcher())}refreshCols(){const{autoColSvc:e,colModel:t,gos:o,pivotResultCols:i}=this.beans,n=t.isPivotMode(),s=e?.getColumns(),r=t.getColDefCols();let a=(n&&!o.get("applyQuickFilterBeforePivotOrAgg")?i?.getPivotResultCols()?.list:r)??[];s&&(a=a.concat(s)),this.colsToUse=o.get("includeHiddenColumnsInQuickFilter")?a:a.filter(e=>e.isVisible()||e.isRowGroupActive())}isFilterPresent(){return null!==this.quickFilter}doesRowPass(e){const t=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassMatcher(t,e):this.quickFilterParts.every(o=>t?this.doesRowPassCache(e,o):this.doesRowPassNoCache(e,o))}resetCache(){this.beans.rowModel.forEachNode(e=>e.quickFilterAggregateText=null)}getText(){return this.gos.get("quickFilterText")}setFilterParts(){const{quickFilter:e,parser:t}=this;this.quickFilterParts=e?t?t(e):e.split(" "):null}parseFilter(e){return s(e)?e.toUpperCase():null}setFilter(e){if(null!=e&&"string"!==typeof e)return void xo(70,{newFilter:e});const t=this.parseFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}setParserAndMatcher(){const e=this.gos.get("quickFilterParser"),t=this.gos.get("quickFilterMatcher"),o=e!==this.parser||t!==this.matcher;this.parser=e,this.matcher=t,o&&(this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onColumnConfigChanged(){this.refreshCols(),this.resetCache(),this.isFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassNoCache(e,t){return this.colsToUse.some(o=>{const i=this.getTextForColumn(o,e);return s(i)&&i.includes(t)})}doesRowPassCache(e,t){return this.checkGenerateAggText(e),e.quickFilterAggregateText.includes(t)}doesRowPassMatcher(e,t){let o;e?(this.checkGenerateAggText(t),o=t.quickFilterAggregateText):o=this.getAggText(t);const{quickFilterParts:i,matcher:n}=this;return n(i,o)}checkGenerateAggText(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getAggText(e))}getTextForColumn(e,t){let o=this.beans.filterValueSvc.getValue(e,t);const i=e.getColDef();if(i.getQuickFilterText){const n=Ti(this.gos,{value:o,node:t,data:t.data,column:e,colDef:i});o=i.getQuickFilterText(n)}return s(o)?o.toString().toUpperCase():null}getAggText(e){const t=[];for(const o of this.colsToUse){const i=this.getTextForColumn(o,e);s(i)&&t.push(i)}return t.join("\n")}},_x={moduleName:"ClientSideRowModelFilter",version:ro,rowModels:["clientSide"],beans:[cR]},Ux={moduleName:"FilterCore",version:ro,beans:[IR],apiFunctions:{isAnyFilterPresent:AR,onFilterChanged:TR},css:[vR],dependsOn:[_x]},$x={moduleName:"FilterValue",version:ro,beans:[BR]},qx={moduleName:"ColumnFilter",version:ro,beans:[MR,LR],dynamicBeans:{headerFilterCellCtrl:uR},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:CR,getColumnFilterInstance:wR,destroyFilter:bR,setFilterModel:yR,getFilterModel:SR,getColumnFilterModel:RR,setColumnFilterModel:xR,showColumnFilter:ER,hideColumnFilter:FR,getColumnFilterHandler:PR,doFilterAction:DR},dependsOn:[Ux,mR,$x,pR]},jx={moduleName:"CustomFilter",version:ro,userComponents:{agReadOnlyFloatingFilter:HR},dependsOn:[qx]},Kx={moduleName:"TextFilter",version:ro,dependsOn:[qx],userComponents:{agTextColumnFilter:{classImp:Tx,params:{useForm:!0}},agTextColumnFloatingFilter:Vx},dynamicBeans:{agTextColumnFilterHandler:Hx}},Qx={moduleName:"NumberFilter",version:ro,dependsOn:[qx],userComponents:{agNumberColumnFilter:{classImp:Cx,params:{useForm:!0}},agNumberColumnFloatingFilter:Mx},dynamicBeans:{agNumberColumnFilterHandler:Rx}},Xx={moduleName:"DateFilter",version:ro,dependsOn:[qx],userComponents:{agDateColumnFilter:{classImp:JR,params:{useForm:!0}},agDateInput:gx,agDateColumnFloatingFilter:ux},dynamicBeans:{agDateColumnFilterHandler:lx}},Yx={moduleName:"QuickFilterCore",version:ro,rowModels:["clientSide"],beans:[Wx],dependsOn:[Ux,$x]},Zx={moduleName:"QuickFilter",version:ro,apiFunctions:{isQuickFilterPresent:Gx,getQuickFilter:Nx,resetQuickFilter:zx},dependsOn:[Yx]},Jx={moduleName:"ExternalFilter",version:ro,dependsOn:[Ux]},eE=".ag-tooltip{background-color:var(--ag-tooltip-background-color);border:var(--ag-tooltip-border);border-radius:var(--ag-border-radius);color:var(--ag-tooltip-text-color);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;white-space:normal;z-index:99999;&:where(.ag-cell-editor-tooltip),&:where(.ag-cell-formula-tooltip){background-color:var(--ag-tooltip-error-background-color);border:var(--ag-tooltip-error-border);color:var(--ag-tooltip-error-text-color);font-weight:500}}.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip-custom:where(:not(.ag-tooltip-interactive)),.ag-tooltip:where(:not(.ag-tooltip-interactive)){pointer-events:none}.ag-tooltip-animate{transition:opacity 1s;&:where(.ag-tooltip-hiding){opacity:0}}",tE=(e,t,o)=>{const{editModelSvc:i}=e,n=i?.getCellValidationModel()?.getCellValidation(t)?.errorMessages,s=i?.getRowValidationModel().getRowValidation(t)?.errorMessages,r=n||s;return r?.length?r.join(o("tooltipValidationErrorSeparator",". ")):void 0},oE=class extends Ct{constructor(){super(...arguments),this.beanName="tooltipSvc"}setupHeaderTooltip(e,t,o,i){e&&t.destroyBean(e);const n=this.gos,s=WS(n),{column:r,eGui:a}=t,l=r.getColDef();i||!s||l.headerComponent||(i=Ie(()=>a.querySelector(".ag-header-cell-text")));const d="header",c="header",u=this.beans.colNames.getDisplayNameForColumn(r,c,!0),h=o??u,g={getGui:()=>a,getLocation:()=>d,getTooltipValue:()=>o??l?.headerTooltipValueGetter?.(Ti(n,{location:d,colDef:l,column:r,value:h,valueFormatted:u}))??l?.headerTooltip,shouldDisplayTooltip:i,getAdditionalParams:()=>({column:r,colDef:r.getColDef()})};let p=this.createTooltipFeature(g);return p&&(p=t.createBean(p),t.setRefreshFunction("tooltip",()=>p.refreshTooltip())),p}setupHeaderGroupTooltip(e,t,o,i){e&&t.destroyBean(e);const n=this.gos,s=WS(n),{column:r,eGui:a}=t,l=r.getColGroupDef();i||!s||l?.headerGroupComponent||(i=Ie(()=>a.querySelector(".ag-header-group-text")));const d="headerGroup",c="header",u=this.beans.colNames.getDisplayNameForColumnGroup(r,c),h=o??u,g={getGui:()=>a,getLocation:()=>d,getTooltipValue:()=>o??l?.headerTooltipValueGetter?.(Ti(n,{location:d,colDef:l,column:r,value:h,valueFormatted:u}))??l?.headerTooltip,shouldDisplayTooltip:i,getAdditionalParams:()=>{const e={column:r};return l&&(e.colDef=l),e}},p=this.createTooltipFeature(g);return p?t.createBean(p):p}enableCellTooltipFeature(e,t,o){const{beans:i}=this,{gos:n,editSvc:r}=i,{column:a,rowNode:l}=e;let d="cell";const c=()=>{const t=!!r?.isEditing(e),o=!t&&tE(i,e,this.getLocaleTextFunc());if(o)return d="cellEditor",o;d="cell";const c=a.getColDef(),u=l.data;if(c.tooltipField&&s(u))return Bm(u,c.tooltipField,a.isTooltipFieldContainsDots());const h=c.tooltipValueGetter;return h?h(Ti(n,{location:"cell",colDef:a.getColDef(),column:a,rowIndex:e.cellPosition.rowIndex,node:l,data:l.data,value:e.value,valueFormatted:e.valueFormatted})):null},u=WS(n);o||(o=u&&!e.isCellRenderer()?()=>{const t=!!r?.isEditing(e),o=!t&&tE(i,e,this.getLocaleTextFunc());if(o)return!0;const n=a.isTooltipEnabled();if(!n)return!1;const s=Ie(()=>{const t=e.eGui;return 0===t.children.length?t:t.querySelector(".ag-cell-value")});return!t&&s()}:()=>!r?.isEditing(e));const h={getGui:()=>e.eGui,getLocation:()=>d,getTooltipValue:null!=t?()=>t:c,shouldDisplayTooltip:o,getAdditionalParams:()=>({column:a,colDef:a.getColDef(),rowIndex:e.cellPosition.rowIndex,node:l,data:l.data,valueFormatted:e.valueFormatted})};return this.createTooltipFeature(h,i)}setupFullWidthRowTooltip(e,t,o,i){const n={getGui:()=>t.getFullWidthElement(),getTooltipValue:()=>o,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:i},s=this.beans,r=s.context;e&&t.destroyBean(e,r);const a=this.createTooltipFeature(n,s);if(a)return t.createBean(a,r)}setupFormulaTooltip(e){const{beans:t}=this,{context:o,formula:i}=t;if(!this.beans.formula?.active||!e.column.isAllowFormula())return;const n={getGui:()=>e.eGui,getTooltipValue:()=>{const t=i?.getFormulaError(e.column,e.rowNode);return t?t.message:void 0},getLocation:()=>"cellFormula",shouldDisplayTooltip:()=>{const t=i?.getFormulaError(e.column,e.rowNode);return!!t}},s=this.createTooltipFeature(n,t);return s?e.createBean(s,o):void 0}setupCellEditorTooltip(e,t){const{beans:o}=this,{context:i}=o,n=t.getValidationElement?.(!0)||!t.isPopup?.()&&e.eGui;if(!n)return;const s={getGui:()=>n,getTooltipValue:()=>tE(o,e,this.getLocaleTextFunc()),getLocation:()=>"cellEditor",shouldDisplayTooltip:()=>{const{editModelSvc:e}=o,t=e?.getRowValidationModel()?.getRowValidationMap(),i=e?.getCellValidationModel()?.getCellValidationMap(),n=!!t&&t.size>0,s=!!i&&i.size>0;return n||s}},r=this.createTooltipFeature(s,o);return r?e.createBean(r,i):void 0}initCol(e){const{colDef:t}=e;e.tooltipEnabled=s(t.tooltipField)||s(t.tooltipValueGetter)||s(t.tooltipComponent)}createTooltipFeature(e,t){return this.beans.registry.createDynamicBean("tooltipFeature",!1,e,t)}},iE=class extends dd{createTooltipComp(e,t){const o=or(this.beans.userCompFactory,e);o?.newAgStackInstance().then(t)}setEventHandlers(e){[this.onColumnMovedEventCallback]=this.addManagedEventListeners({columnMoved:e})}clearEventHandlers(){this.onColumnMovedEventCallback?.(),this.onColumnMovedEventCallback=void 0}},nE={moduleName:"Tooltip",version:ro,beans:[oE],dynamicBeans:{tooltipFeature:nd,highlightTooltipFeature:cd,tooltipStateManager:iE},userComponents:{agTooltipComponent:pd},dependsOn:[mR],css:[eE]},sE=class{constructor(e){this.cellValueChanges=e}},rE=class extends sE{constructor(e,t,o,i){super(e),this.initialRange=t,this.finalRange=o,this.ranges=i}},aE=10,lE=class{constructor(e){this.actionStack=[],this.maxStackSize=e||aE,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(e){const t=e.cellValueChanges&&e.cellValueChanges.length>0;t&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}},dE=class extends Ct{constructor(){super(...arguments),this.beanName="undoRedo",this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.batchEditing=!1,this.bulkEditing=!1,this.onCellValueChanged=e=>{const t={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},o=null!==this.activeCellEdit&&Uu(this.activeCellEdit,t),i=null!==this.activeRowEdit&&qu(this.activeRowEdit,t),n=o||i||this.isPasting||this.isRangeInAction;if(!n)return;const{rowPinned:s,rowIndex:r,column:a,oldValue:l,value:d}=e,c={rowPinned:s,rowIndex:r,columnId:a.getColId(),newValue:d,oldValue:l};this.cellValueChanges.push(c)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}postConstruct(){const{gos:e,ctrlsSvc:t}=this.beans;if(!e.get("undoRedoCellEditing"))return;const o=e.get("undoRedoCellEditingLimit");if(o<=0)return;this.undoStack=new lE(o),this.redoStack=new lE(o),this.addListeners();const i=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:e=>{e.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:i,newColumnsLoaded:i,columnGroupOpened:i,columnRowGroupChanged:i,columnMoved:i,columnPinned:i,columnVisible:i,rowDragEnd:i}),t.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl})}getCurrentUndoStackSize(){return this.undoStack?.getCurrentStackSize()??0}getCurrentRedoStackSize(){return this.redoStack?.getCurrentStackSize()??0}undo(e){const{eventSvc:t,undoStack:o,redoStack:i}=this;t.dispatchEvent({type:"undoStarted",source:e});const n=this.undoRedo(o,i,"initialRange","oldValue","undo");t.dispatchEvent({type:"undoEnded",source:e,operationPerformed:n})}redo(e){const{eventSvc:t,undoStack:o,redoStack:i}=this;t.dispatchEvent({type:"redoStarted",source:e});const n=this.undoRedo(i,o,"finalRange","newValue","redo");t.dispatchEvent({type:"redoEnded",source:e,operationPerformed:n})}undoRedo(e,t,o,i,n){if(!e)return!1;const s=e.pop();return!!s?.cellValueChanges&&(this.processAction(s,e=>e[i],n),s instanceof rE?this.processRange(s.ranges||[s[o]]):this.processCell(s.cellValueChanges),t.push(s),!0)}processAction(e,t,o){for(const i of e.cellValueChanges){const{rowIndex:e,rowPinned:n,columnId:s}=i,r={rowIndex:e,rowPinned:n},a=Qu(this.beans,r);a.displayed&&a.setDataValue(s,t(i),o)}}processRange(e){let t;const o=this.beans.rangeSvc;o.removeAllCellRanges(!0),e.forEach((i,n)=>{if(!i)return;const s=i.startRow,r=i.endRow;n===e.length-1&&(t={rowPinned:s.rowPinned,rowIndex:s.rowIndex,columnId:i.startColumn.getColId()},this.setLastFocusedCell(t));const a={rowStartIndex:s.rowIndex,rowStartPinned:s.rowPinned,rowEndIndex:r.rowIndex,rowEndPinned:r.rowPinned,columnStart:i.startColumn,columns:i.columns};o.addCellRange(a)})}processCell(e){const t=e[0],{rowIndex:o,rowPinned:i}=t,n={rowIndex:o,rowPinned:i},s=Qu(this.beans,n),r={rowPinned:t.rowPinned,rowIndex:s.rowIndex,columnId:t.columnId};this.setLastFocusedCell(r)}setLastFocusedCell(e){const{rowIndex:t,columnId:o,rowPinned:i}=e,{colModel:n,focusSvc:s,rangeSvc:r}=this.beans,a=n.getCol(o);if(!a)return;const{scrollFeature:l}=this.gridBodyCtrl;l.ensureIndexVisible(t),l.ensureColumnVisible(a);const d={rowIndex:t,column:a,rowPinned:i};s.setFocusedCell({...d,forceBrowserFocus:!0}),r?.setRangeToCell(d)}addListeners(){this.addManagedEventListeners({rowEditingStarted:e=>{this.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}},rowEditingStopped:()=>{const e=new sE(this.cellValueChanges);this.pushActionsToUndoStack(e),this.activeRowEdit=null},cellEditingStarted:e=>{this.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}},cellEditingStopped:e=>{this.activeCellEdit=null;const t=e.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction;if(t){const e=new sE(this.cellValueChanges);this.pushActionsToUndoStack(e)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{const e=new sE(this.cellValueChanges);this.pushActionsToUndoStack(e),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:e=>{const t=new rE(this.cellValueChanges,e.initialRange,e.finalRange);this.pushActionsToUndoStack(t),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let e;const{rangeSvc:t,gos:o}=this.beans;e=t&&ui(o)?new rE(this.cellValueChanges,void 0,void 0,[...t.getCellRanges()]):new sE(this.cellValueChanges),this.pushActionsToUndoStack(e),this.isRangeInAction=!1},batchEditingStarted:()=>this.startBigChange("batchEditing"),batchEditingStopped:({changes:e})=>this.stopBigChange("batchEditing",e),bulkEditingStarted:()=>this.startBigChange("bulkEditing"),bulkEditingStopped:({changes:e})=>this.stopBigChange("bulkEditing",e)})}startBigChange(e){this.updateBigChange(e,!0)}updateBigChange(e,t){"bulkEditing"===e?this.bulkEditing=t:this.batchEditing=t}stopBigChange(e,t){if("bulkEditing"===e&&!this.bulkEditing||"batchEditing"===e&&!this.batchEditing)return;if(this.updateBigChange(e,!1),0===t?.length)return;const o=new sE(t??[]);this.pushActionsToUndoStack(o),this.cellValueChanges=[]}pushActionsToUndoStack(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()}},cE=".ag-cell-inline-editing{border:var(--ag-cell-editing-border)!important;border-radius:var(--ag-border-radius);box-shadow:var(--ag-cell-editing-shadow);padding:0;z-index:1;.ag-cell-edit-wrapper,.ag-cell-editor,.ag-cell-wrapper,:where(.ag-cell-editor) .ag-input-field-input,:where(.ag-cell-editor) .ag-wrapper{height:100%;line-height:normal;min-height:100%;width:100%}&.ag-cell-editing-error{border-color:var(--ag-invalid-color)!important}}:where(.ag-popup-editor) .ag-large-text{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0}.ag-large-text-input{display:block;height:auto;padding:var(--ag-cell-horizontal-padding)}:where(.ag-rtl .ag-large-text-input) textarea{resize:none}:where(.ag-ltr) .ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-checkbox-edit{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-row.ag-row-editing-invalid .ag-cell-inline-editing){opacity:.8}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}",uE={tag:"div",cls:"ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit",children:[{tag:"ag-checkbox",ref:"eEditor",role:"presentation"}]},hE=class extends zh{constructor(){super(uE,[Ea]),this.eEditor=ds}initialiseEditor(e){const t=e.value??void 0,o=this.eEditor;o.setValue(t);const i=o.getInputElement();i.setAttribute("tabindex","-1"),this.setAriaLabel(t),this.addManagedListeners(o,{fieldValueChanged:e=>this.setAriaLabel(e.selected)})}getValue(){return this.eEditor.getValue()}focusIn(){this.eEditor.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){const t=this.getLocaleTextFunc(),o=ae(t,e),i=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eEditor.setInputAriaLabel(`${i} (${o})`)}getValidationElement(e){return e?this.params.eGridCell:this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{getValidationErrors:t}=e,o=this.getValue();return t?t({value:o,internalErrors:null,cellEditorParams:e}):null}},gE=class extends zh{constructor(e){super(),this.cellEditorInput=e,this.eEditor=ds}initialiseEditor(e){const{cellEditorInput:t}=this;this.setTemplate({tag:"div",cls:"ag-cell-edit-wrapper",children:[t.getTemplate()]},t.getAgComponents());const{eEditor:o}=this,{cellStartedEdit:i,eventKey:n,suppressPreventDefault:s}=e;let r;o.getInputElement().setAttribute("title",""),t.init(o,e);let a=!0;i?(this.focusAfterAttached=!0,n===lr.BACKSPACE||n===lr.DELETE?r="":n&&1===n.length?s?a=!1:r=n:(r=t.getStartValue(),n!==lr.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,r=t.getStartValue()),a&&null!=r&&o.setStartValue(r),this.addGuiEventListener("keydown",e=>{const{key:t}=e;t!==lr.PAGE_UP&&t!==lr.PAGE_DOWN||e.preventDefault()})}afterGuiAttached(){const e=this.getLocaleTextFunc(),t=this.eEditor;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;xr()||t.getFocusableElement().focus();const o=t.getInputElement();this.highlightAllOnFocus?o.select():this.cellEditorInput.setCaret?.()}focusIn(){const{eEditor:e}=this,t=e.getFocusableElement(),o=e.getInputElement();t.focus(),o.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){return this.cellEditorInput.getValidationErrors()}},pE={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},fE=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return pE}getAgComponents(){return[Va]}init(e,t){this.eEditor=e,this.params=t;const{min:o,max:i,step:n,colDef:s}=t;null!=o&&e.setMin(o),null!=i&&e.setMax(i),null!=n&&e.setStep(n),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(s.cellDataType),null!=this.includeTime&&e.setIncludeTime(this.includeTime)}getValidationErrors(){const e=this.eEditor.getInputElement(),t=e.valueAsDate,{params:o}=this,{min:i,max:n,getValidationErrors:s}=o;let r=[];const a=this.getLocaleTextFunc();if(t instanceof Date&&!isNaN(t.getTime())){if(i){const e=i instanceof Date?i:new Date(i);if(t<e){const t=e.toLocaleDateString();r.push(a("minDateValidation",`Date must be after ${t}`,[t]))}}if(n){const e=n instanceof Date?n:new Date(n);if(t>e){const t=e.toLocaleDateString();r.push(a("maxDateValidation",`Date must be before ${t}`,[t]))}}}return r.length||(r=null),s?s({value:t,cellEditorParams:o,internalErrors:r}):r}getValue(){const{eEditor:e,params:t}=this,o=e.getDate();return s(o)||s(t.value)?o??null:t.value}getStartValue(){const{value:e}=this.params;if(e instanceof Date)return ia(e,this.includeTime??!1)}},mE=class extends gE{constructor(){super(new fE(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}},vE={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},CE=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return vE}getAgComponents(){return[Va]}init(e,t){this.eEditor=e,this.params=t;const{min:o,max:i,step:n,colDef:s}=t;null!=o&&e.setMin(o),null!=i&&e.setMax(i),null!=n&&e.setStep(n),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(s.cellDataType),null!=this.includeTime&&e.setIncludeTime(this.includeTime)}getValidationErrors(){const{eEditor:e,params:t}=this,o=e.getInputElement().value,i=this.formatDate(this.parseDate(o??void 0)),{min:n,max:s,getValidationErrors:r}=t;let a=[];if(i){const e=new Date(i),t=this.getLocaleTextFunc();if(n){const o=new Date(n);if(e<o){const e=o.toLocaleDateString();a.push(t("minDateValidation",`Date must be after ${e}`,[e]))}}if(s){const o=new Date(s);if(e>o){const e=o.toLocaleDateString();a.push(t("maxDateValidation",`Date must be before ${e}`,[e]))}}}return a.length||(a=null),r?r({value:this.getValue(),cellEditorParams:t,internalErrors:a}):a}getValue(){const{params:e,eEditor:t}=this,o=this.formatDate(t.getDate());return s(o)||s(e.value)?e.parseValue(o??""):e.value}getStartValue(){return ia(this.parseDate(this.params.value??void 0)??null,this.includeTime??!1)}parseDate(e){const t=this.getDataTypeService();return t?t.getDateParserFunction(this.params.column)(e):ua(e)??void 0}formatDate(e){const t=this.getDataTypeService();return t?t.getDateFormatterFunction(this.params.column)(e):ia(e??null,this.includeTime??!1)??void 0}},wE=class extends gE{constructor(){super(new CE(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}},bE={tag:"div",cls:"ag-large-text",children:[{tag:"ag-input-text-area",ref:"eEditor",cls:"ag-large-text-input"}]},yE=class extends zh{constructor(){super(bE,[La]),this.eEditor=ds}initialiseEditor(e){const{eEditor:t}=this,{cellStartedEdit:o,eventKey:i,maxLength:n,cols:s,rows:r}=e;let a;this.focusAfterAttached=o,t.getInputElement().setAttribute("title",""),t.setMaxLength(n||200).setCols(s||60).setRows(r||10),o?(this.focusAfterAttached=!0,i===lr.BACKSPACE||i===lr.DELETE?a="":i&&1===i.length?a=i:(a=this.getStartValue(e),i!==lr.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,a=this.getStartValue(e)),null!=a&&t.setValue(a,!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}getStartValue(e){const{value:t}=e;return t?.toString()??t}onKeyDown(e){const t=e.key;(t===lr.LEFT||t===lr.UP||t===lr.RIGHT||t===lr.DOWN||e.shiftKey&&t===lr.ENTER)&&e.stopPropagation()}afterGuiAttached(){const{eEditor:e,focusAfterAttached:t,highlightAllOnFocus:o}=this,i=this.getLocaleTextFunc();e.setInputAriaLabel(i("ariaInputEditor","Input Editor")),t&&(e.getFocusableElement().focus(),o&&e.getInputElement().select())}getValue(){const{eEditor:e,params:t}=this,{value:o}=t,i=e.getValue();return s(i)||s(o)?t.parseValue(i):o}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{maxLength:t,getValidationErrors:o}=e,i=this.getLocaleTextFunc(),n=this.getValue();let s=[];return"string"===typeof n&&null!=t&&n.length>t&&s.push(i("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),s.length||(s=null),o?o({value:n,internalErrors:s,cellEditorParams:e}):s}},SE={tag:"ag-input-number-field",ref:"eEditor",cls:"ag-cell-editor"},RE=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return SE}getAgComponents(){return[Oa]}init(e,t){this.eEditor=e,this.params=t;const{max:o,min:i,precision:n,step:s}=t;null!=o&&e.setMax(o),null!=i&&e.setMin(i),null!=n&&e.setPrecision(n),null!=s&&e.setStep(s);const r=e.getInputElement();t.preventStepping?e.addManagedElementListeners(r,{keydown:this.preventStepping}):t.showStepperButtons&&r.classList.add("ag-number-field-input-stepper")}getValidationErrors(){const{params:e}=this,{min:t,max:o,getValidationErrors:i}=e,n=this.eEditor.getInputElement(),s=n.valueAsNumber,r=this.getLocaleTextFunc();let a=[];return"number"===typeof s&&(null!=t&&s<t&&a.push(r("minValueValidation",`Must be greater than or equal to ${t}.`,[String(t)])),null!=o&&s>o&&a.push(r("maxValueValidation",`Must be less than or equal to ${o}.`,[String(o)]))),a.length||(a=null),i?i({value:s,cellEditorParams:e,internalErrors:a}):a}preventStepping(e){e.key!==lr.UP&&e.key!==lr.DOWN||e.preventDefault()}getValue(){const{eEditor:e,params:t}=this,o=e.getValue();if(!s(o)&&!s(t.value))return t.value;let i=t.parseValue(o);if(null==i)return i;if("string"===typeof i){if(""===i)return null;i=Number(i)}return isNaN(i)?null:i}getStartValue(){return this.params.value}setCaret(){xr()&&this.eEditor.getInputElement().focus({preventScroll:!0})}},xE=class extends gE{constructor(){super(new RE(()=>this.getLocaleTextFunc()))}},EE={tag:"div",cls:"ag-cell-edit-wrapper",children:[{tag:"ag-select",ref:"eEditor",cls:"ag-cell-editor"}]},FE=class extends zh{constructor(){super(EE,[Qa]),this.eEditor=ds,this.startedByEnter=!1}wireBeans(e){this.valueSvc=e.valueSvc}initialiseEditor(e){this.focusAfterAttached=e.cellStartedEdit;const{eEditor:t,valueSvc:o,gos:i}=this,{values:n,value:s,eventKey:a}=e;if(r(n))return void xo(58);this.startedByEnter=null!=a&&a===lr.ENTER;let l=!1;n.forEach(i=>{const n={value:i},r=o.formatValue(e.column,null,i),a=null!==r&&void 0!==r;n.text=a?r:i,t.addOption(n),l=l||s===i}),l?t.setValue(e.value,!0):e.values.length&&t.setValue(e.values[0],!0);const{valueListGap:d,valueListMaxWidth:c,valueListMaxHeight:u}=e;null!=d&&t.setPickerGap(d),null!=u&&t.setPickerMaxHeight(u),null!=c&&t.setPickerMaxWidth(c),"fullRow"!==i.get("editType")&&this.addManagedListeners(this.eEditor,{selectedItem:()=>e.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eEditor.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eEditor.showPicker()})}focusIn(){this.eEditor.getFocusableElement().focus()}getValue(){return this.eEditor.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getAriaElement()}getValidationErrors(){const{params:e}=this,{values:t,getValidationErrors:o}=e,i=this.getValue();let n=[];if(t&&!t.includes(i)){const e=this.getLocaleTextFunc();n.push(e("invalidSelectionValidation","Invalid selection."))}else n=null;return o?o({value:i,internalErrors:n,cellEditorParams:e}):n}},PE={tag:"ag-input-text-field",ref:"eEditor",cls:"ag-cell-editor"},DE=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return PE}getAgComponents(){return[Ta]}init(e,t){this.eEditor=e,this.params=t;const o=t.maxLength;null!=o&&e.setMaxLength(o)}getValidationErrors(){const{params:e}=this,{maxLength:t,getValidationErrors:o}=e,i=this.getValue(),n=this.getLocaleTextFunc();let s=[];return null!=t&&"string"===typeof i&&i.length>t&&s.push(n("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),s.length||(s=null),o?o({value:i,cellEditorParams:e,internalErrors:s}):s}getValue(){const{eEditor:e,params:t}=this,o=e.getValue();return s(o)||s(t.value)?t.parseValue(o):t.value}getStartValue(){const e=this.params,t=e.useFormatter||e.column.getColDef().refData;return t?e.formatValue(e.value):e.value}setCaret(){xr()&&this.eEditor.getInputElement().focus({preventScroll:!0});const e=this.eEditor,t=e.getValue(),o=s(t)&&t.length||0;o&&e.getInputElement().setSelectionRange(o,o)}},kE=class extends gE{constructor(){super(new DE(()=>this.getLocaleTextFunc()))}};function ME(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}function AE(e){return e.ctrlsSvc.getScrollFeature().getHScrollPosition()}function TE(e,t,o="auto"){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureColumnVisible(t,o),"ensureVisible")}function IE(e,t,o){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureIndexVisible(t,o),"ensureVisible")}function LE(e,t,o=null){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureNodeVisible(t,o),"ensureVisible")}function BE(e){e.undoRedo?.undo("api")}function OE(e){e.undoRedo?.redo("api")}function HE(e,t){return e.editModelSvc?.getEditRowDataValue(t,{checkSiblings:!0})}function VE(e){const t=e.editModelSvc?.getEditMap(),o=[];return t?.forEach((e,t)=>{const{rowIndex:i,rowPinned:n}=t;e.forEach((e,t)=>{const{editorValue:s,pendingValue:r,sourceValue:a,state:l}=e,d=pb(e);let c=s??r;c===cb&&(c=void 0);const u={newValue:c,oldValue:a,state:l,column:t,colId:t.getColId(),colKey:t.getColId(),rowIndex:i,rowPinned:n},h="changed"===l&&d,g="editing"===l;(g||h)&&o.push(u)})}),o}function GE(e,t=!1){const{editSvc:o}=e;if(o?.isBatchEditing()){if(t)for(const t of e.editModelSvc?.getEditPositions()??[])"editing"===t.state&&o.revertSingleCellEdit(t);else yb(e,{persist:!0});Eb(e,void 0,{cancel:t})}else o?.stopEditing(void 0,{cancel:t,source:"edit",forceStop:!t,forceCancel:t})}function NE(e,t){const o=rb(e,t);return e.editSvc?.isEditing(o)??!1}function zE(e,t){const{key:o,colKey:i,rowIndex:n,rowPinned:s}=t,{editSvc:r,colModel:a}=e,l=a.getCol(i);if(!l)return void xo(12,{colKey:i});const d={rowIndex:n,rowPinned:s||null,column:l},c=Qu(e,d);if(!c)return void xo(290,{rowIndex:n,rowPinned:s});if(!r?.isCellEditable({rowNode:c,column:l},"api"))return;const u=null==s;u&&IE(e,n),TE(e,i),r?.startEditing({rowNode:c,column:l},{event:o?new KeyboardEvent("keydown",{key:o}):void 0,source:"api"})}function WE(e){return e.editSvc?.validateEdit()||null}function _E(e){return e.undoRedo?.getCurrentUndoStackSize()??0}function UE(e){return e.undoRedo?.getCurrentRedoStackSize()??0}var $E={tag:"div",cls:"ag-popup-editor",attrs:{tabindex:"-1"}},qE=class extends Rr{constructor(e){super($E),this.params=e}postConstruct(){Uo(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){const e=this.getGui(),t=this.params,o=e=>{Kc(this.gos,e,t.node,t.column,!0)||t.onKeyDown(e)};this.addManagedElementListeners(e,{keydown:o})}};function jE(e,{column:t},o,i,n="ui"){if(o instanceof KeyboardEvent&&(o.key===lr.TAB||o.key===lr.ENTER||o.key===lr.F2||o.key===lr.BACKSPACE&&i))return!0;const s=o?.shiftKey&&0!=e.rangeSvc?.getCellRanges().length;if(s)return!1;const r=t?.getColDef(),a=KE(e.gos,r),l=o?.type;return"click"===l&&1===o?.detail&&1===a||("dblclick"===l&&2===o?.detail&&2===a||"api"===n&&(i??!1))}function KE(e,t){return!0===e.get("suppressClickEdit")?0:!0===e.get("singleClickEdit")||t?.singleClickEdit?1:2}function QE(e,{rowNode:t,column:o},i="ui"){const n=o.getColDef().editable,s=e.editModelSvc;return o.isColumnFunc(t,n)||!!s&&s.hasEdits({rowNode:t,column:o},{withOpenEditor:!0})}function XE(e,t,o="ui"){const i=QE(e,t,o);if(!0===i||"ui"===o)return i;const n=e.colModel.getCols();return n.some(i=>QE(e,{rowNode:t.rowNode,column:i},o))}var YE=(e,t=!1)=>{if(void 0!==e)return pb(e)||t&&"editing"===e.state};function ZE(e,t,o=!1){return YE(e.editModelSvc?.getEdit(t),o)}var JE=(e,t,o)=>{if(e)for(let i=0,n=e.length;i<n;++i){const n=e[i];if(n.data){const e=YE(t?.getEdit({rowNode:n,column:o}))||YE(t?.getEdit({rowNode:n.pinnedSibling,column:o}));if(e)return!0}if(JE(n.childrenAfterGroup,t,o))return!0}};function eF(e,t){const{column:o,rowNode:i}=t;return!(e.gos.get("groupTotalRow")&&!i?.footer)&&JE(i?.childrenAfterGroup,e.editModelSvc,o)}function tF(e,{rowNode:t,column:o}){if(t=t.pinnedSibling,t)return YE(e.editModelSvc?.getEdit({rowNode:t,column:o}))}var oF=class extends Ct{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}setComp(e){this.cellComp=e,this.applyCellStyles()}applyCellStyles(){const{cellCtrl:e,editSvc:t,beans:o}=this;if(t?.isBatchEditing()&&t.isEditing()){const t=ZE(o,e)||eF(o,e)||tF(o,e);this.applyBatchingStyle(t)}else this.applyBatchingStyle(!1);const i=!!this.editModelSvc?.getCellValidationModel().hasCellValidation(this.cellCtrl);this.cellComp.toggleCss("ag-cell-editing-error",i)}applyBatchingStyle(e){this.cellComp.toggleCss("ag-cell-editing",e??!1),this.cellComp.toggleCss("ag-cell-batch-edit",(e&&this.editSvc?.isBatchEditing())??!1)}},iF=class extends Ct{constructor(e,t){super(),this.rowCtrl=e,this.beans=t,this.gos=t.gos,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}applyRowStyles(){const{rowCtrl:e,editModelSvc:t,beans:o}=this;let i=e.rowNode,n=t?.getEditRow(i);const s=this.editModelSvc?.getRowValidationModel().hasRowValidation({rowNode:i});if(!n&&i.pinnedSibling&&(i=i.pinnedSibling,n=t?.getEditRow(i)),n){const e=Array.from(n.keys()).some(e=>{const t={rowNode:i,column:e};return ZE(o,t,!0)||eF(o,t)||tF(o,t)});return void this.applyStyle(s,e)}this.applyStyle(s)}applyStyle(e=!1,t=!1){const o=this.editSvc?.isBatchEditing()??!1,i="fullRow"===this.gos.get("editType");this.rowCtrl?.forEachGui(void 0,({rowComp:n})=>{n.toggleCss("ag-row-editing",i&&t),n.toggleCss("ag-row-batch-edit",i&&t&&o),n.toggleCss("ag-row-inline-editing",t),n.toggleCss("ag-row-not-inline-editing",!t),n.toggleCss("ag-row-editing-invalid",i&&t&&e)})}},nF=({rowModel:e,pinnedRowModel:t,editModelSvc:o},i)=>{const n=new Set;e.forEachNode(e=>i.has(e)&&n.add(e)),t?.forEachPinnedRow("top",e=>i.has(e)&&n.add(e)),t?.forEachPinnedRow("bottom",e=>i.has(e)&&n.add(e));for(const s of i)n.has(s)||o.removeEdits({rowNode:s});return n},sF=({editModelSvc:e},t,o)=>{for(const i of t)e?.getEditRow(i)?.forEach((t,n)=>!o.has(n)&&e.removeEdits({rowNode:i,column:n}))},rF=e=>()=>{const t=new Set(e.colModel.getCols()),o=e.editModelSvc.getEditMap(!0),i=new Set(o.keys());sF(e,nF(e,i),t)},aF=new Set(["undo","redo","paste","bulk","rangeSvc"]),lF=new Set(["ui","api"]),dF={paste:"api",rangeSvc:"api",fillHandle:"api",cellClear:"api",bulk:"api"},cF=new Set(Object.keys(dF)),uF=new Set(["paste","rangeSvc","cellClear","redo","undo"]),hF={cancel:!0,source:"api"},gF={cancel:!1,source:"api"},pF={checkSiblings:!0},fF={force:!0,suppressFlash:!0},mF=class extends Ct{constructor(){super(...arguments),this.beanName="editSvc",this.batch=!1,this.stopping=!1,this.committing=!1}postConstruct(){const{beans:e}=this;this.model=e.editModelSvc,this.valueSvc=e.valueSvc,this.rangeSvc=e.rangeSvc,this.addManagedPropertyListener("editType",({currentValue:e})=>{this.stopEditing(void 0,hF),this.createStrategy(e)});const t=rF(e),o=()=>{const t=this.model.getCellValidationModel().getCellValidationMap().size>0,o=this.model.getRowValidationModel().getRowValidationMap().size>0;return t||o?this.stopEditing(void 0,hF):this.isEditing()&&(this.batch?Eb(e,this.model.getEditPositions()):this.stopEditing(void 0,gF)),!1};this.addManagedEventListeners({columnPinned:t,columnVisible:t,columnRowGroupChanged:t,rowExpansionStateChanged:t,pinnedRowsChanged:t,displayedRowsChanged:t,sortChanged:o,filterChanged:o,cellFocused:this.onCellFocused.bind(this)})}isBatchEditing(){return this.batch}setBatchEditing(e){e?(this.batch=!0,this.stopEditing(void 0,hF)):(this.stopEditing(void 0,hF),this.batch=!1)}createStrategy(e){const{beans:t,gos:o,strategy:i}=this,n=CF(o,e);if(i){if(i.beanName===n)return i;this.destroyStrategy()}return this.strategy=this.createOptionalManagedBean(t.registry.createDynamicBean(n,!0))}destroyStrategy(){this.strategy&&(this.strategy.destroy(),this.strategy=this.destroyBean(this.strategy))}shouldStartEditing(e,t,o,i="ui"){const n=jE(this.beans,e,t,o,i);return n&&(this.strategy??(this.strategy=this.createStrategy())),n}shouldStopEditing(e,t,o="ui"){return this.strategy?.shouldStop(e,t,o)??null}shouldCancelEditing(e,t,o="ui"){return this.strategy?.shouldCancel(e,t,o)??null}validateEdit(){return Tb(this.beans)}isEditing(e,t){return this.model.hasEdits(e,t??pF)}isRowEditing(e,t){return(e&&this.model.hasRowEdits(e,t))??!1}startEditing(e,t){const{startedEdit:o=!0,event:i=null,source:n="ui",ignoreEventKey:s=!1,silent:r}=t;if(this.strategy??(this.strategy=this.createStrategy()),!this.isCellEditable(e,"api"))return;const a=rb(this.beans,e);if(a&&!a.comp)return void a.onCompAttachedFuncs.push(()=>this.startEditing(e,t));const l=this.shouldStartEditing(e,i,o,n);!1!==l||"api"===n?(this.batch||!this.shouldStopEditing(e,void 0,n)||t.continueEditing||this.stopEditing(void 0,{source:n}),l&&this.batch&&this.dispatchBatchEvent("batchEditingStarted",new Map),this.strategy.start({position:e,event:i,source:n,ignoreEventKey:s,startedEdit:o,silent:r})):this.isEditing(e)&&this.stopEditing()}stopEditing(e,t){const o=this.prepareStopContext(e,t);if(!o)return!1;this.stopping=!0;let i=!1,{edits:n}=o;try{const s=this.processStopRequest(o);return i||(i=s.res),n=s.edits,this.finishStopEditing({...o,edits:n,params:t,position:e,res:i}),i}finally{this.stopping=!1}}prepareStopContext(e,t){const{event:o,cancel:i,source:n="ui",forceCancel:s,forceStop:r}=t||{};if(cF.has(n)&&this.batch)return this.bulkRefresh(e),null;const a=this.committing?dF[n]:n,l=this.committing||this.isEditing(e)||this.batch&&this.model.hasEdits(e,pF);if(!l||!this.strategy||this.stopping)return null;const d=rb(this.beans,e);d&&(d.onEditorAttachedFuncs=[]);const c=!i&&(!!this.shouldStopEditing(e,o,a)||(this.committing||"paste"===n)&&!this.batch)||(r??!1),u=i&&!!this.shouldCancelEditing(e,o,a)||(s??!1);return{cancel:i,cellCtrl:d??void 0,edits:this.model.getEditMap(!0),event:o,forceCancel:s,forceStop:r,position:e,source:n,treatAsSource:a,willCancel:u,willStop:c}}processStopRequest(e){const{event:t,position:o,willCancel:i,willStop:n}=e;return n||i?this.handleStopOrCancel(e):this.shouldHandleMidBatchKey(t,o)?{res:!1,edits:this.handleMidBatchKey(t,o,e)}:(yb(this.beans,{persist:!0}),this.batch&&this.strategy?.cleanupEditors(o),{res:!1,edits:this.model.getEditMap()})}handleStopOrCancel(e){const{beans:t,model:o}=this,{cancel:i,edits:n,event:s,source:r,willCancel:a,willStop:l}=e;yb(t,{persist:!0,isCancelling:a||i,isStopping:l});const d=o.getEditMap(),c=this.processEdits(d,i,r);this.strategy?.stop(i,s),this.clearValidationIfNoOpenEditors();for(const u of c)o.clearEditValue(u);this.bulkRefresh(void 0,n);for(const u of o.getEditPositions(d)){const e=rb(t,u),o=pb(u);e?.refreshCell({force:!0,suppressFlash:!o})}return{res:l,edits:d}}shouldHandleMidBatchKey(e,t){return e instanceof KeyboardEvent&&this.batch&&!!this.strategy?.midBatchInputsAllowed(t)&&this.isEditing(t,{withOpenEditor:!0})}handleMidBatchKey(e,t,o){const{beans:i,model:n}=this,{cellCtrl:s,edits:r}=o,{key:a}=e,l=a===lr.ENTER,d=a===lr.ESCAPE,c=a===lr.TAB;return l||c||d?(l||c?yb(i,{persist:!0}):d&&this.revertSingleCellEdit(s),this.batch?this.strategy?.cleanupEditors():Eb(i,n.getEditPositions(),{event:e,cancel:d}),e.preventDefault(),this.bulkRefresh(t,r,{suppressFlash:!0}),n.getEditMap()):r}finishStopEditing({cellCtrl:e,edits:t,params:o,position:i,res:n,willCancel:s,willStop:r}){const a=this.beans;n&&i&&this.model.removeEdits(i),this.navigateAfterEdit(o,e?.cellPosition),Cb(a),this.clearValidationIfNoOpenEditors(),this.bulkRefresh();const{rowRenderer:l,formula:d}=a;s&&l.refreshRows({rowNodes:Array.from(t.keys())}),this.batch&&(d?d.refreshFormulas(!0):l.refreshRows({suppressFlash:!0,force:!0}),n&&r&&this.dispatchBatchEvent("batchEditingStopped",t))}clearValidationIfNoOpenEditors(){const e=this.model.hasEdits(void 0,{withOpenEditor:!0});e||(this.model.getCellValidationModel().clearCellValidationMap(),this.model.getRowValidationModel().clearRowValidationMap())}navigateAfterEdit(e,t){if(!e||!t)return;const{event:o,suppressNavigateAfterEdit:i}=e,n=o instanceof KeyboardEvent;if(!n||i)return;const{key:s,shiftKey:r}=o,a=this.gos.get("enterNavigatesVerticallyAfterEdit");if(s!==lr.ENTER||!a)return;const l=r?lr.UP:lr.DOWN;this.beans.navigation?.navigateToNextCell(null,l,t,!1)}processEdits(e,t=!1,o){const i=Array.from(e.keys()),n=this.model.getCellValidationModel().getCellValidationMap().size>0||this.model.getRowValidationModel().getRowValidationMap().size>0,s=[];for(const r of i){const i=e.get(r);for(const e of i.keys()){const a=i.get(e),l={rowNode:r,column:e},d=pb(a);if(!t&&d&&!n){const t=this.setNodeDataValue(r,e,a.pendingValue,void 0,o);t||s.push(l)}}}return s}setNodeDataValue(e,t,o,i,n="edit"){const{beans:s}=this,r=rb(s,{rowNode:e,column:t}),a=lF.has(n)?"edit":n;r&&(r.suppressRefreshCell=!0),this.committing=!0;const l=e.setDataValue(t,o,a);return this.committing=!1,r&&(r.suppressRefreshCell=!1),i&&r?.refreshCell(fF),l}setEditMap(e,t){this.strategy??(this.strategy=this.createStrategy()),this.strategy?.setEditMap(e,t),this.bulkRefresh();let o=fF;t?.forceRefreshOfEditCellsOnly&&(o={...vF(e),...fF}),this.beans.rowRenderer.refreshCells(o)}dispatchEditValuesChanged({rowNode:e,column:t},o={}){if(!e||!t||!o)return;const{pendingValue:i,sourceValue:n}=o,{rowIndex:s,rowPinned:r,data:a}=e;this.beans.eventSvc.dispatchEvent({type:"cellEditValuesChanged",node:e,rowIndex:s,rowPinned:r,column:t,source:"api",data:a,newValue:i,oldValue:n,value:i,colDef:t.getColDef()})}bulkRefresh(e={},t,o={}){const{beans:i,gos:n}=this,{editModelSvc:s,rowModel:r}=i;To(n,r)&&(e.rowNode&&e.column?this.refCell(e,this.model.getEdit(e),o):t&&s?.getEditMap(!1)?.forEach((e,t)=>{for(const i of e.keys())this.refCell({rowNode:t,column:i},e.get(i),o)}))}refCell({rowNode:e,column:t},o,i={}){const{beans:n,gos:s}=this,r=new Set([e]),a=new Set,l=e.pinnedSibling;l&&r.add(l);const d=e.sibling;d&&a.add(d);let c=e.parent;while(c)c.sibling?.footer&&s.get("groupTotalRow")||!c.parent&&c.sibling&&s.get("grandTotalRow")?a.add(c.sibling):a.add(c),c=c.parent;for(const u of r)this.dispatchEditValuesChanged({rowNode:u,column:t},o);for(const u of r)rb(n,{rowNode:u,column:t})?.refreshCell(i);for(const u of a)rb(n,{rowNode:u,column:t})?.refreshCell(i)}stopAllEditing(e=!1,t="ui"){this.isEditing()&&this.stopEditing(void 0,{cancel:e,source:t})}isCellEditable(e,t="ui"){const{rowNode:o}=e,{gos:i,beans:n}=this;if(o.group)if(i.get("treeData")){if(!o.data&&!i.get("enableGroupEdit"))return!1}else if(!i.get("enableGroupEdit"))return!1;const s="fullRow"===CF(i)?XE(n,e,t):QE(n,e,t);return s&&(this.strategy??(this.strategy=this.createStrategy())),s}cellEditingInvalidCommitBlocks(){return"block"===this.gos.get("invalidEditValueMode")}checkNavWithValidation(e,t,o=!0){if(this.hasValidationErrors(e)){const i=rb(this.beans,e);return this.cellEditingInvalidCommitBlocks()?(t?.preventDefault?.(),o&&(!i?.hasBrowserFocus()&&i?.focusCell(),i?.comp?.getCellEditor()?.focusIn?.()),"block-stop"):(i&&this.revertSingleCellEdit(i),"revert-continue")}return"continue"}revertSingleCellEdit(e,t=!1){const o=rb(this.beans,e);o?.comp?.getCellEditor()&&(Eb(this.beans,[e],{silent:!0}),this.model.clearEditValue(e),fb(this.beans,e,{silent:!0}),Mb(this.beans),o?.refreshCell(fF),t&&(o?.focusCell(),o?.comp?.getCellEditor()?.focusIn?.()))}hasValidationErrors(e){Mb(this.beans);const t=rb(this.beans,e);t&&(t.refreshCell(fF),t.rowCtrl.rowEditStyleFeature?.applyRowStyles());let o=!1;return e?.rowNode?(o||(o=this.model.getRowValidationModel().hasRowValidation({rowNode:e.rowNode})),e.column&&(o||(o=this.model.getCellValidationModel().hasCellValidation({rowNode:e.rowNode,column:e.column})))):(o||(o=this.model.getCellValidationModel().getCellValidationMap().size>0),o||(o=this.model.getRowValidationModel().getRowValidationMap().size>0)),o}moveToNextCell(e,t,o,i="ui"){let n;const s=this.isEditing(),r=s&&"block-stop"===this.checkNavWithValidation(void 0,o);return e instanceof jb&&s&&(n=this.strategy?.moveToNextEditingCell(e,t,o,i,r)),null===n||(n=n||!!this.beans.focusSvc.focusedHeader,!1!==n||r||this.stopEditing()),n}getCellDataValue({rowNode:e,column:t},o=!0){if(!e||!t)return;let i=this.model.getEdit({rowNode:e,column:t});const n=e.pinnedSibling;if(n){const e=this.model.getEdit({rowNode:n,column:t});e&&(i=e)}const s=o?i?.editorValue??i?.pendingValue:i?.pendingValue;return s!==cb&&i?s:i?.sourceValue??this.valueSvc.getValue(t,e,!1,"api")}addStopEditingWhenGridLosesFocus(e){lb(this,this.beans,e)}createPopupEditorWrapper(e){return new qE(e)}setDataValue(e,t,o){try{if((!this.isEditing()||this.committing)&&!uF.has(o))return;const{beans:i}=this;this.strategy??(this.strategy=this.createStrategy());const n=this.batch?"ui":this.committing?o??"api":"api";if(!o||aF.has(o))return Sb(i,e,t,o,void 0,{persist:!0}),this.batch?(this.cleanupEditors(),Cb(i),this.bulkRefresh(),!0):this.setNodeDataValue(e.rowNode,e.column,t,!0,o);const s=this.model.getEdit(e);if(s){if(s.pendingValue===t)return!1;if(s.sourceValue!==t)return Sb(i,e,t,o,void 0,{persist:!0}),this.stopEditing(e,{source:n,suppressNavigateAfterEdit:!0}),!0;if(s.sourceValue===t)return i.editModelSvc?.removeEdits(e),this.dispatchEditValuesChanged(e,{...s,pendingValue:t}),!0}return Sb(i,e,t,o,void 0,{persist:!0}),this.stopEditing(e,{source:n,suppressNavigateAfterEdit:!0}),!0}finally{this.committing=!1}}handleColDefChanged(e){wb(this.beans,e)}destroy(){this.model.clear(),this.destroyStrategy(),super.destroy()}prepDetailsDuringBatch(e,t){const{model:o}=this;if(!this.batch)return;const i=o.hasRowEdits(e.rowNode,pF);if(!i)return;const{rowNode:n}=e,{compDetails:s,valueToDisplay:r}=t;if(s){const{params:e}=s;return e.data=o.getEditRowDataValue(n,pF),{compDetails:s}}return{valueToDisplay:r}}cleanupEditors(){this.strategy?.cleanupEditors()}dispatchCellEvent(e,t,o,i){this.strategy?.dispatchCellEvent(e,t,o,i)}dispatchBatchEvent(e,t){this.eventSvc.dispatchEvent(this.createBatchEditEvent(e,t))}createBatchEditEvent(e,t){return Ti(this.gos,{type:e,..."batchEditingStopped"===e?{changes:this.toEventChangeList(t)}:{}})}toEventChangeList(e){return this.model.getEditPositions(e).map(e=>({rowIndex:e.rowNode.rowIndex,rowPinned:e.rowNode.rowPinned,columnId:e.column.getColId(),newValue:e.pendingValue,oldValue:e.sourceValue}))}applyBulkEdit({rowNode:e,column:t},o){if(!o||0===o.length)return;const{beans:i,rangeSvc:n,valueSvc:s}=this,{formula:r}=i;yb(i,{persist:!0});const a=this.model.getEditMap(!0);let l=a.get(e)?.get(t)?.pendingValue;this.batch||this.eventSvc.dispatchEvent({type:"bulkEditingStarted"});const d=r?.isFormula(l)??!1;o.forEach(e=>{const t=e.columns.some(e=>e?.isAllowFormula());if(n?.forEachRowInRange(e,o=>{const n=Qu(i,o);if(void 0===n)return;const c=a.get(n)??new Map;let u=l;for(const t of e.columns){if(!t)continue;const e=!!d&&t.isAllowFormula();if(this.isCellEditable({rowNode:n,column:t},"api")){const e=s.getValue(t,n,!0,"api");let o=s.parseValue(t,n??null,u,e);Number.isNaN(o)&&(o=null),c.set(t,{editorValue:void 0,pendingValue:o,sourceValue:e,state:"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}e&&(u=r?.updateFormulaByOffset({value:u,columnDelta:1}))}c.size>0&&a.set(n,c),d&&t&&(l=r?.updateFormulaByOffset({value:l,rowDelta:1}))}),this.setEditMap(a),this.batch)return this.cleanupEditors(),Cb(i),void this.bulkRefresh();this.committing=!0,this.stopEditing(void 0,{source:"bulk"}),this.committing=!1,this.eventSvc.dispatchEvent({type:"bulkEditingStopped",changes:this.toEventChangeList(a)})}),this.bulkRefresh();const c=rb(i,{rowNode:e,column:t});c&&c.focusCell(!0)}createCellStyleFeature(e){return new oF(e,this.beans)}createRowStyleFeature(e){return new iF(e,this.beans)}setEditingCells(e,t){const{beans:o}=this,{colModel:i,valueSvc:n}=o,s=new Map;for(let{colId:r,column:a,colKey:l,rowIndex:d,rowPinned:c,newValue:u,state:h}of e){const e=r?i.getCol(r):l?i.getCol(l):a;if(!e)continue;const g=Qu(o,{rowIndex:d,rowPinned:c});if(!g)continue;const p=n.getValue(e,g,!0,"api");if(!t?.forceRefreshOfEditCellsOnly&&!pb({pendingValue:u,sourceValue:p})&&"editing"!==h)continue;let f=s.get(g);f||(f=new Map,s.set(g,f)),void 0===u&&(u=cb),f.set(e,{editorValue:void 0,pendingValue:u,sourceValue:p,state:h??"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}this.setEditMap(s,t)}onCellFocused(e){const t=rb(this.beans,e);if(!t||!this.isEditing(t,pF))return;const o=this.model.getEdit(t);if(!o||!pb(o))return;const i=this.getLocaleTextFunc(),n=i("ariaPendingChange","Pending Change");this.beans.ariaAnnounce?.announceValue(n,"pendingChange")}allowedFocusTargetOnValidation(e){return rb(this.beans,e)}};function vF(e){return{rowNodes:e?Array.from(e.keys()):void 0,columns:e?[...new Set(Array.from(e.values()).flatMap(e=>Array.from(e.keys())))]:void 0}}function CF(e,t){return t??e.get("editType")??"singleCell"}var wF=class extends Ct{postConstruct(){this.model=this.beans.editModelSvc,this.editSvc=this.beans.editSvc,this.addManagedEventListeners({cellFocused:this.onCellFocusChanged?.bind(this),cellFocusCleared:this.onCellFocusChanged?.bind(this)})}clearEdits(e){this.model.clearEditValue(e)}onCellFocusChanged(e){let t;const o=e["previousParams"],{editSvc:i,beans:n}=this,s="cellFocused"===e.type?e.sourceEvent:null;o&&(t=rb(n,o));const{gos:r,editModelSvc:a}=n,l="cellFocusCleared"===e.type;if(i.isEditing(void 0,{withOpenEditor:!0})){const{column:t,rowIndex:d,rowPinned:c}=e,u={column:t,rowNode:Qu(n,{rowIndex:d,rowPinned:c})},h="block"===r.get("invalidEditValueMode");if(h)return;const g=!h,p=!!a?.getCellValidationModel().hasCellValidation(u),f=g&&p,m=!o&&!l||i.stopEditing(void 0,{cancel:f,source:l&&g?"api":void 0,event:s});m||(i.isBatchEditing()?i.cleanupEditors():i.stopEditing(void 0,{source:"api"}))}t?.refreshCell({suppressFlash:!0,force:!0})}stop(e,t){const o=this.model.getEditPositions(),i={all:[],pass:[],fail:[]};for(const n of o){i.all.push(n);const e=this.model.getCellValidationModel().getCellValidation(n);(e?.errorMessages?.length??0)>0?i.fail.push(n):i.pass.push(n)}if(e)for(const n of o)Fb(this.beans,n,{cancel:e}),this.model.stop(n);else{const o=this.processValidationResults(i);if(o.destroy.length>0)for(const i of o.destroy)Fb(this.beans,i,{event:t,cancel:e}),this.model.stop(i);if(o.keep.length>0)for(const e of o.keep){const t=rb(this.beans,e);this.editSvc?.cellEditingInvalidCommitBlocks()||t&&this.editSvc.revertSingleCellEdit(t)}}return!0}cleanupEditors({rowNode:e}={},t){yb(this.beans,{persist:!1});const o=this.model.getEditPositions(),i=[];if(e)for(const n of o)n.rowNode!==e&&i.push(n);else for(const n of o)i.push(n);Eb(this.beans,i),Cb(this.beans,t)}setFocusOutOnEditor(e){e.comp?.getCellEditor()?.focusOut?.()}setFocusInOnEditor(e){const t=e.comp,o=t?.getCellEditor();if(o?.focusIn)o.focusIn();else{const o="fullRow"===this.beans.gos.get("editType");e.focusCell(o),e.onEditorAttachedFuncs.push(()=>t?.getCellEditor()?.focusIn?.())}}setupEditors(e){const{event:t,ignoreEventKey:o=!1,startedEdit:i,position:n,cells:s=this.model.getEditPositions()}=e,r=t instanceof KeyboardEvent&&!o&&t.key||void 0;gb(this.beans,s,n,r,t,i)}dispatchCellEvent(e,t,o,i){const n=rb(this.beans,e);n&&this.eventSvc.dispatchEvent({...n.createEvent(t??null,o),...i})}dispatchRowEvent(e,t,o){if(o)return;const i=sb(this.beans,e);i&&this.eventSvc.dispatchEvent(i.createRowEvent(t))}shouldStop(e,t,o="ui"){const i=this.editSvc.isBatchEditing();return!(!i||"api"!==o)||(!i||"ui"!==o&&"edit"!==o)&&("api"===o||(t instanceof KeyboardEvent&&!i?t.key===lr.ENTER:null))}shouldCancel(e,t,o="ui"){const i=this.editSvc.isBatchEditing();if(t instanceof KeyboardEvent&&!i){const e=t.key===lr.ESCAPE;if(e)return!0}return!(!i||"api"!==o)||"api"===o}setEditMap(e,t){t?.update||this.editSvc.stopEditing(void 0,{cancel:!0,source:"api"});const o=[];if(e.forEach((e,t)=>{e.forEach((e,i)=>{"editing"===e.state&&o.push({...e,rowNode:t,column:i})})}),t?.update&&(e=new Map([...this.model.getEditMap(),...e])),this.model?.setEditMap(e),o.length>0){const e=o.at(-1),t=e.pendingValue===cb?void 0:e.pendingValue;this.start({position:e,event:new KeyboardEvent("keydown",{key:t}),source:"api"});const i=rb(this.beans,e);i&&this.setFocusInOnEditor(i)}}destroy(){this.cleanupEditors(),super.destroy()}},bF=class extends wF{constructor(){super(...arguments),this.beanName="fullRow",this.startedRows=[]}shouldStop(e,t,o="ui"){const{rowNode:i}=e||{},n=sb(this.beans,{rowNode:this.rowNode});if(!n)return!0;const s=super.shouldStop({rowNode:this.rowNode},t,o);return null!==s?s:!!this.rowNode&&i!==this.rowNode}midBatchInputsAllowed({rowNode:e}){return!!e&&this.model.hasEdits({rowNode:e})}clearEdits(e){this.model.clearEditValue(e)}start(e){const{position:t,silent:o,startedEdit:i,event:n,ignoreEventKey:s}=e,{rowNode:r}=t;this.rowNode!==r&&super.cleanupEditors(t);const a=this.beans.visibleCols.allCols,l=[],d=[];for(const c of a)c.isCellEditable(r)&&d.push(c);if(0!=d.length){this.dispatchRowEvent({rowNode:r},"rowEditingStarted",o),this.startedRows.push(r);for(const e of d){const t={rowNode:r,column:e};l.push(t),this.model.hasEdits(t)||this.model.start(t)}this.rowNode=r,this.setupEditors({cells:l,position:t,startedEdit:i,event:n,ignoreEventKey:s})}}processValidationResults(e){const t=e.fail.length>0;return t&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stop(e,t){const{rowNode:o}=this;if(o&&!this.model.hasRowEdits(o))return!1;const i=[];if(e||this.model.getEditMap().forEach((e,t)=>{if(e&&0!==e.size)for(const o of e.values())if(pb(o)){i.push(t);break}}),Mb(this.beans),!e&&"block-stop"===this.editSvc?.checkNavWithValidation({rowNode:o}))return!1;super.stop(e,t);for(const n of i)this.dispatchRowEvent({rowNode:n},"rowValueChanged");return this.cleanupEditors({rowNode:o},!0),this.rowNode=void 0,!0}onCellFocusChanged(e){const{rowIndex:t}=e,o=e["previousParams"];if(o?.rowIndex===t||e.sourceEvent instanceof KeyboardEvent)return;const i=rb(this.beans,o),n="block"===this.gos.get("invalidEditValueMode");n&&i&&(this.model.getCellValidationModel().getCellValidation(i)||this.model.getRowValidationModel().getRowValidation(i))||super.onCellFocusChanged(e)}cleanupEditors(e={},t){super.cleanupEditors(e,t);for(const o of this.startedRows)this.dispatchRowEvent({rowNode:o},"rowEditingStopped");this.startedRows.length=0}moveToNextEditingCell(e,t,o,i="ui",n=!1){const s=e.cellPosition;let r;this.model.suspend(!0);try{r=this.beans.navigation?.findNextCellToFocusOn(s,{backwards:t,startEditing:!0,skipToNextEditableCell:!1})}finally{this.model.suspend(!1)}if(!1===r)return null;if(null==r)return!1;const a=r.cellPosition,l=e.isCellEditable(),d=r.isCellEditable(),c=a&&s.rowIndex===a.rowIndex&&s.rowPinned===a.rowPinned;l&&this.setFocusOutOnEditor(e),this.restoreEditors();const u=this.gos.get("suppressStartEditOnTab");return d&&!n?u?r.focusCell(!0,o):(r.comp?.getCellEditor()||fb(this.beans,r,{event:o,cellStartedEdit:!0}),this.setFocusInOnEditor(r),r.focusCell(!1,o)):(d&&n&&this.setFocusInOnEditor(r),r.focusCell(!0,o)),c||n||(this.editSvc?.stopEditing({rowNode:e.rowNode},{event:o}),this.cleanupEditors(r,!0),u?r.focusCell(!0,o):this.editSvc.startEditing(r,{startedEdit:!0,event:o,source:i,ignoreEventKey:!0})),e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}restoreEditors(){this.model.getEditMap().forEach((e,t)=>e.forEach(({state:e},o)=>{if("editing"!==e)return;const i=rb(this.beans,{rowNode:t,column:o});i&&!i.comp?.getCellEditor()&&fb(this.beans,i,{silent:!0})}))}destroy(){super.destroy(),this.rowNode=void 0,this.startedRows.length=0}},yF=class extends wF{constructor(){super(...arguments),this.beanName="singleCell"}shouldStop(e,t,o="ui"){const i=super.shouldStop(e,t,o);if(null!==i)return i;const{rowNode:n,column:s}=e||{};return this.rowNode&&this.column||!n||!s?this.rowNode!==n||this.column!==s:null}midBatchInputsAllowed(e){return this.model.hasEdits(e)}start(e){const{position:t,startedEdit:o,event:i,ignoreEventKey:n}=e;this.rowNode===t.rowNode&&this.column===t.column||super.cleanupEditors(),this.rowNode=t.rowNode,this.column=t.column,this.model.start(t),this.setupEditors({cells:[t],position:t,startedEdit:o,event:i,ignoreEventKey:n})}dispatchRowEvent(e,t,o){}processValidationResults(e){const t=e.fail.length>0;return t&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stop(e,t){return super.stop(e,t),this.rowNode=void 0,this.column=void 0,!0}onCellFocusChanged(e){const{colModel:t,editSvc:o}=this.beans,{rowIndex:i,column:n,rowPinned:s}=e,r=Qu(this.beans,{rowIndex:i,rowPinned:s}),a=db(n),l=t.getCol(a),d=e["previousParams"];if(d){const e=db(d.column);if(d?.rowIndex===i&&e===a&&d?.rowPinned===s)return}o?.isEditing({rowNode:r,column:l},{withOpenEditor:!0})&&"cellFocused"===e.type||super.onCellFocusChanged(e)}moveToNextEditingCell(e,t,o,i="ui",n=!1){const s=this.beans.focusSvc.getFocusedCell();s&&(e=Xu(this.beans,s)??e);const r=e.cellPosition;let a;const l="fullRow"===this.beans.gos.get("editType");l&&this.model.suspend(!0),n||(e.eGui.focus(),this.editSvc?.stopEditing(e,{source:this.editSvc?.isBatchEditing()?"ui":"api",event:o}));try{a=this.beans.navigation?.findNextCellToFocusOn(r,{backwards:t,startEditing:!0})}finally{l&&this.model.suspend(!1)}if(!1===a)return null;if(null==a)return!1;const d=a.cellPosition,c=e.isCellEditable(),u=a.isCellEditable(),h=d&&r.rowIndex===d.rowIndex&&r.rowPinned===d.rowPinned;c&&!n&&this.setFocusOutOnEditor(e);const g=this.gos.get("suppressStartEditOnTab");if(h||n||(super.cleanupEditors(a,!0),g?a.focusCell(!0,o):this.editSvc.startEditing(a,{startedEdit:!0,event:o,source:i,ignoreEventKey:!0})),u&&!n){if(a.focusCell(!1,o),g)a.focusCell(!0,o);else if(!a.comp?.getCellEditor()){const e=this.editSvc?.isEditing(a,{withOpenEditor:!0});fb(this.beans,a,{event:o,cellStartedEdit:!0,silent:e}),this.setFocusInOnEditor(a),this.cleanupEditors(a)}}else u&&n&&this.setFocusInOnEditor(a),a.focusCell(!0,o);return e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}destroy(){super.destroy(),this.rowNode=void 0,this.column=void 0}},SF={moduleName:"EditCore",version:ro,beans:[ob,mF],apiFunctions:{getEditingCells:VE,getEditRowValues:HE,getCellEditorInstances:hb,startEditingCell:zE,stopEditing:GE,isEditing:NE,validateEdit:WE},dynamicBeans:{singleCell:yF,fullRow:bF},dependsOn:[mR,nE],css:[cE]},RF={moduleName:"UndoRedoEdit",version:ro,beans:[dE],apiFunctions:{undoCellEditing:BE,redoCellEditing:OE,getCurrentUndoSize:_E,getCurrentRedoSize:UE},dependsOn:[SF]},xF={moduleName:"TextEditor",version:ro,userComponents:{agCellEditor:kE,agTextCellEditor:kE},dependsOn:[SF]},EF={moduleName:"NumberEditor",version:ro,userComponents:{agNumberCellEditor:{classImp:xE}},dependsOn:[SF]},FF={moduleName:"DateEditor",version:ro,userComponents:{agDateCellEditor:mE,agDateStringCellEditor:wE},dependsOn:[SF]},PF={moduleName:"CheckboxEditor",version:ro,userComponents:{agCheckboxCellEditor:hE},dependsOn:[SF]},DF={moduleName:"SelectEditor",version:ro,userComponents:{agSelectCellEditor:FE},dependsOn:[SF]},kF={moduleName:"LargeTextEditor",version:ro,userComponents:{agLargeTextCellEditor:yE},dependsOn:[SF]},MF={moduleName:"CustomEditor",version:ro,dependsOn:[SF]},AF=class extends Ct{constructor(){super(...arguments),this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",e=>{this.onSelectionOptionsChanged(e.currentValue,e.previousValue,Rn(e.source))}),this.addManagedPropertyListener("selectionColumnDef",this.updateColumns.bind(this))}addColumns(e){const t=this.columns;null!=t&&(e.list=t.list.concat(e.list),e.tree=t.tree.concat(e.tree),Sn(e))}createColumns(e,t){const o=()=>{fn(this.beans,this.columns?.tree),this.columns=null},i=e.treeDepth,n=this.columns?.treeDepth??-1,s=n==i,r=this.generateSelectionCols(),a=yn(r,this.columns?.list??[]);if(a&&s)return;o();const{colGroupSvc:l}=this.beans,d=l?.findDepth(e.tree)??0,c=l?.balanceTreeForAutoCols(r,d)??[];this.columns={list:r,tree:c,treeDepth:d,map:{}};const u=e=>{if(!e)return null;const t=e.filter(e=>!vn(e));return[...r,...t]};t(u)}updateColumns(e){const t=Rn(e.source),{beans:o}=this;for(const i of this.columns?.list??[]){const n=this.createSelectionColDef(e.currentValue);i.setColDef(n,null,t),Qn(o,{state:[Fn(n,i.colId)]},t)}}getColumn(e){return this.columns?.list.find(t=>xn(t,e))??null}getColumns(){return this.columns?.list??null}isSelectionColumnEnabled(){const{gos:e,beans:t}=this,o=e.get("rowSelection");if("object"!==typeof o||!Bo(e))return!1;const i=(t.autoColSvc?.getColumns()?.length??0)>0;if("autoGroupColumn"===o.checkboxLocation&&i)return!1;const n=!!ni(o),s=si(o);return n||s}createSelectionColDef(e){const{gos:t}=this,o=e??t.get("selectionColumnDef"),i=t.get("enableRtl"),{rowSpan:n,spanRows:s,...r}=o??{};return{width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:i?"right":"left",comparator(e,t,o,i){const n=o.isSelected(),s=i.isSelected();return n===s?0:n?1:-1},editable:!1,suppressFillHandle:!0,suppressAutoSize:!0,pinned:null,...r,colId:cn,chartDataType:"excluded"}}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];const e=this.createSelectionColDef(),t=e.colId;this.gos.validateColDef(e,t,!0);const o=new zi(e,null,t,!1);return this.createBean(o),[o]}onSelectionOptionsChanged(e,t,o){const i=t&&"string"!==typeof t?ni(t):void 0,n=e&&"string"!==typeof e?ni(e):void 0,s=i!==n,r=t&&"string"!==typeof t?si(t):void 0,a=e&&"string"!==typeof e?si(e):void 0,l=r!==a,d=ri(e),c=ri(t),u=d!==c;(s||l||u)&&this.beans.colModel.refreshAll(o)}destroy(){fn(this.beans,this.columns?.tree),super.destroy()}refreshVisibility(e,t,o){if(!this.columns?.list.length)return;const i=e.length+t.length+o.length;if(0===i)return;const n=this.columns.list[0];if(!n.isVisible())return;const s=()=>{let i;switch(n.pinned){case"left":case!0:i=e;break;case"right":i=o;break;default:i=t}i&&sn(i,n)},r=this.beans.rowNumbersSvc?.getColumn(un),a=r?2:1;a===i&&s()}},TF=':where(.ag-selection-checkbox) .ag-checkbox-input-wrapper{&:before{content:"";cursor:pointer;inset:-8px;position:absolute}}';function IF(e,t){const o=t.nodes.every(e=>e.rowPinned&&!Mg(e)?(xo(59),!1):void 0!==e.id||(xo(60),!1));if(!o)return;const{nodes:i,source:n,newValue:s}=t;e.selectionSvc?.setNodesSelected({nodes:i,source:n??"api",newValue:s})}function LF(e,t,o="apiSelectAll"){e.selectionSvc?.selectAllRowNodes({source:o,selectAll:t})}function BF(e,t,o="apiSelectAll"){e.selectionSvc?.deselectAllRowNodes({source:o,selectAll:t})}function OF(e,t="apiSelectAllFiltered"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"filtered"})}function HF(e,t="apiSelectAllFiltered"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"filtered"})}function VF(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"currentPage"})}function GF(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"currentPage"})}function NF(e){return e.selectionSvc?.getSelectedNodes()??[]}function zF(e){return e.selectionSvc?.getSelectedRows()??[]}var WF=class extends Vg{constructor(){super(...arguments),this.beanName="selectionSvc",this.selectedNodes=new Map,this.detailSelection=new Map,this.masterSelectsDetail=!1}postConstruct(){super.postConstruct();const{gos:e}=this;this.mode=Ci(e),this.groupSelectsDescendants=xi(e),this.groupSelectsFiltered="filteredDescendants"===yi(e),this.masterSelectsDetail="detail"===Ei(e),this.addManagedPropertyListeners(["groupSelectsChildren","groupSelectsFiltered","rowSelection"],()=>{const t=xi(e),o=Ci(e),i="filteredDescendants"===yi(e);this.masterSelectsDetail="detail"===Ei(e),t===this.groupSelectsDescendants&&i===this.groupSelectsFiltered&&o===this.mode||(this.deselectAllRowNodes({source:"api"}),this.groupSelectsDescendants=t,this.groupSelectsFiltered=i,this.mode=o)}),this.addManagedEventListeners({rowSelected:this.onRowSelected.bind(this)})}destroy(){super.destroy(),this.resetNodes()}handleSelectionEvent(e,t,o){if(this.isRowSelectionBlocked(t))return 0;const i=this.inferNodeSelections(t,e.shiftKey,e.metaKey||e.ctrlKey,o);if(null==i)return 0;if(this.selectionCtx.selectAll=!1,"select"in i)return i.reset?this.resetNodes():this.selectRange(i.deselect,!1,o),this.selectRange(i.select,!0,o);{const t=i.checkFilteredNodes?jF(i.node):i.newValue;return this.setNodesSelected({nodes:[i.node],newValue:t,clearSelection:i.clearSelection,keepDescendants:i.keepDescendants,event:e,source:o})}}setNodesSelected({newValue:e,clearSelection:t,suppressFinishActions:o,nodes:i,event:n,source:s,keepDescendants:r=!1}){if(0===i.length)return 0;const{gos:a}=this;if(!Bo(a)&&e)return xo(132),0;if(i.length>1&&!this.isMultiSelect())return xo(130),0;let l=0;for(let d=0;d<i.length;d++){const t=i[d],o=_F(t);if(o.rowPinned&&!Mg(o)){xo(59);continue}if(void 0===o.id){xo(60);continue}if(e&&t.destroyed)continue;const r=this.groupSelectsFiltered&&o.group&&!a.get("treeData");if(!r){const t=this.selectRowNode(o,e,n,s);t&&(this.detailSelection.delete(o.id),l++)}this.groupSelectsDescendants&&o.childrenAfterGroup?.length&&(l+=this.selectChildren(o,e,s))}if(!o){1===i.length&&"api"===s&&this.selectionCtx.setRoot(_F(i[0]));const o=e&&(t||!this.isMultiSelect());o&&(l+=this.clearOtherNodes(_F(i[0]),r,s)),l>0&&(this.updateGroupsFromChildrenSelections(s),this.dispatchSelectionChanged(s))}return l}selectRange(e,t,o){let i=0;return e.forEach(e=>{const n=_F(e);if(n.group&&this.groupSelectsDescendants)return;const s=this.selectRowNode(n,t,void 0,o);s&&i++}),i>0&&(this.updateGroupsFromChildrenSelections(o),this.dispatchSelectionChanged(o)),i}selectChildren(e,t,o){const i=this.groupSelectsFiltered?e.childrenAfterAggFilter:e.childrenAfterGroup;return i?this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,source:o,nodes:i}):0}getSelectedNodes(){return Array.from(this.selectedNodes.values())}getSelectedRows(){const e=[];return this.selectedNodes.forEach(t=>t.data&&e.push(t.data)),e}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(e){const t=new Map;this.selectedNodes.forEach((o,i)=>{e(o)&&t.set(i,o)}),this.selectedNodes=t}updateGroupsFromChildrenSelections(e,t){if(!this.groupSelectsDescendants)return!1;const{gos:o,rowModel:i}=this.beans;if(!To(o,i))return!1;const n=i.rootNode;if(!n)return!1;t||(t=new Wp(!0,n),t.active=!1);let s=!1;return t.forEachChangedNodeDepthFirst(t=>{if(t!==n){const o=this.calculateSelectedFromChildren(t);s=this.selectRowNode(t,null!==o&&o,void 0,e)||s}}),s}clearOtherNodes(e,t,o){const i=new Map;let n=0;return this.selectedNodes.forEach(s=>{const r=s.id==e.id,a=!t||!qF(e,s);if(a&&!r){const e=this.selectedNodes.get(s.id);n+=this.setNodesSelected({nodes:[e],newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:o}),this.groupSelectsDescendants&&s.parent&&i.set(s.parent.id,s.parent)}}),i.forEach(e=>{const t=this.calculateSelectedFromChildren(e);this.selectRowNode(e,null!==t&&t,void 0,o)}),n}onRowSelected(e){const t=e.node;this.groupSelectsDescendants&&t.group||(t.isSelected()?this.selectedNodes.set(t.id,t):this.selectedNodes.delete(t.id))}syncInRowNode(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)}createDaemonNode(e){if(!e.id)return;const t=new Gd(this.beans);return t.id=e.id,t.data=e.data,t.__selected=e.__selected,t.level=e.level,t}syncInOldRowNode(e,t){if(t&&e.id!==t.id){const o=this.selectedNodes.get(t.id)==e;o&&this.selectedNodes.set(t.id,t)}}syncInNewRowNode(e){this.selectedNodes.has(e.id)?(e.__selected=!0,this.selectedNodes.set(e.id,e)):e.__selected=!1}reset(e){const t=this.getSelectionCount();this.resetNodes(),t&&this.dispatchSelectionChanged(e)}resetNodes(){this.selectedNodes.forEach(e=>{this.selectRowNode(e,!1)}),this.selectedNodes.clear()}getBestCostNodeSelection(){const{gos:e,rowModel:t}=this.beans;if(!To(e,t))return;const o=t.getTopLevelNodes();if(null===o)return;const i=[];function n(e){for(let t=0,o=e.length;t<o;t++){const o=e[t];o.isSelected()?i.push(o):o.group&&o.childrenAfterGroup&&n(o.childrenAfterGroup)}}return n(o),i}isEmpty(){return 0===this.getSelectionCount()}deselectAllRowNodes({source:e,selectAll:t}){const o=To(this.gos);let i=!1;const n=t=>{const o=this.selectRowNode(_F(t),!1,void 0,e);i||(i=o)};if("currentPage"===t||"filtered"===t){if(!o)return void Eo(102);this.getNodesToSelect(t).forEach(n)}else this.selectedNodes.forEach(n),this.reset(e);if(this.selectionCtx.selectAll=!1,o&&this.groupSelectsDescendants){const t=this.updateGroupsFromChildrenSelections(e);i||(i=t)}i&&this.dispatchSelectionChanged(e)}getSelectedCounts(e){let t=0,o=0;return this.getNodesToSelect(e).forEach(e=>{this.groupSelectsDescendants&&e.group||(e.isSelected()?t++:e.selectable&&o++)}),{selectedCount:t,notSelectedCount:o}}getSelectAllState(e){const{selectedCount:t,notSelectedCount:o}=this.getSelectedCounts(e);return $F(t,o)??null}hasNodesToSelect(e){return this.getNodesToSelect(e).filter(e=>e.selectable).length>0}getNodesToSelect(e){if(!this.canSelectAll())return[];const t=[],o=e=>t.push(e);if("currentPage"===e)return this.forEachNodeOnPage(e=>{if(e.group){if(!e.expanded&&!e.footer){const t=e=>{o(e),e.childrenAfterFilter?.forEach(t)};return void t(e)}this.groupSelectsDescendants||o(e)}else o(e)}),t;const i=this.beans.rowModel;return"filtered"===e?(i.forEachNodeAfterFilter(o),t):(i.forEachNode(o),t)}forEachNodeOnPage(e){const{pageBounds:t,rowModel:o}=this.beans,i=t.getFirstRow(),n=t.getLastRow();for(let s=i;s<=n;s++){const t=o.getRow(s);t&&e(t)}}selectAllRowNodes(e){const{gos:t,selectionCtx:o}=this;if(!Bo(t))return void xo(132);if(li(t)&&!wi(t))return void xo(130);if(!this.canSelectAll())return;const{source:i,selectAll:n}=e;let s=!1;if(this.getNodesToSelect(n).forEach(e=>{const t=this.selectRowNode(_F(e),!0,void 0,i);s||(s=t)}),o.selectAll=!0,To(t)&&this.groupSelectsDescendants){const e=this.updateGroupsFromChildrenSelections(i);s||(s=e)}s&&this.dispatchSelectionChanged(i)}getSelectionState(){return this.isEmpty()?null:Array.from(this.selectedNodes.keys())}setSelectionState(e,t,o){if(e||(e=[]),!Array.isArray(e))return void Eo(103);const i=new Set(e),n=[];this.beans.rowModel.forEachNode(e=>{i.has(e.id)&&n.push(e)}),o&&this.resetNodes(),this.setNodesSelected({newValue:!0,nodes:n,source:t})}canSelectAll(){return To(this.beans.gos)}updateSelectable(e){const{gos:t,rowModel:o}=this.beans;if(!Bo(t))return;const i="selectableChanged",n=void 0!==e,s=To(t)&&this.groupSelectsDescendants,r=[],a=e=>{if(n&&!e.group)return;if(s&&e.group){const t=e.childrenAfterGroup?.some(e=>e.selectable)??!1;return void this.setRowSelectable(e,t,!0)}const t=this.updateRowSelectable(e,!0);!t&&e.isSelected()&&r.push(e)};if(s){if(void 0===e){const t=o.rootNode;e=t?new Wp(!1,t):void 0}e?.forEachChangedNodeDepthFirst(a,!n,!n)}else o.forEachNode(a);r.length&&this.setNodesSelected({nodes:r,newValue:!1,source:i}),!n&&s&&this.updateGroupsFromChildrenSelections?.(i)}updateSelectableAfterGrouping(e){if(this.updateSelectable(e),this.groupSelectsDescendants){const t=this.updateGroupsFromChildrenSelections?.("rowGroupChanged",e);t&&this.dispatchSelectionChanged("rowGroupChanged")}}refreshMasterNodeState(e,t){if(!this.masterSelectsDetail)return;const o=e.detailNode?.detailGridInfo?.api;if(!o)return;const i=UF(o),n=e.isSelected();if(n!==i){const o=this.selectRowNode(e,i,t,"masterDetail");o&&this.dispatchSelectionChanged("masterDetail")}if(!i){const t=this.detailSelection.get(e.id)??new Set;for(const e of o.getSelectedNodes())t.add(e.id);this.detailSelection.set(e.id,t)}}setDetailSelectionState(e,t,o){if(this.masterSelectsDetail)if(wi(t))switch(e.isSelected()){case!0:o.selectAll();break;case!1:o.deselectAll();break;case void 0:{const t=this.detailSelection.get(e.id);if(t){const e=[];for(const i of t){const t=o.getRowNode(i);t&&e.push(t)}o.setNodesSelected({nodes:e,newValue:!0,source:"masterDetail"})}break}default:break}else xo(269)}dispatchSelectionChanged(e){this.eventSvc.dispatchEvent({type:"selectionChanged",source:e,selectedNodes:this.getSelectedNodes(),serverSideState:null})}};function _F(e){return Mg(e)?e.pinnedSibling:e.footer?e.sibling:e}function UF(e){let t=0,o=0;return e.forEachNode(e=>{e.isSelected()?t++:e.selectable&&o++}),$F(t,o)}function $F(e,t){return(0!==e||0!==t)&&(e>0&&t>0?void 0:e>0)}function qF(e,t){let o=t.parent;while(o){if(o===e)return!0;o=o.parent}return!1}function jF(e){const t=!1===e.isSelected(),o=e.childrenAfterFilter?.some(jF)??!1;return t||o}var KF={moduleName:"SharedRowSelection",version:ro,beans:[AF],css:[TF],apiFunctions:{setNodesSelected:IF,selectAll:LF,deselectAll:BF,selectAllFiltered:OF,deselectAllFiltered:HF,selectAllOnCurrentPage:VF,deselectAllOnCurrentPage:GF,getSelectedNodes:NF,getSelectedRows:zF}},QF={moduleName:"RowSelection",version:ro,rowModels:["clientSide","infinite","viewport"],beans:[WF],dependsOn:[KF]};function XF(e){e.expansionSvc?.expandAll(!0)}function YF(e){e.expansionSvc?.expandAll(!1)}function ZF(e){e.rowModel?.onRowHeightChanged()}function JF(e){e.rowAutoHeight?.active?xo(3):e.rowModel?.resetRowHeights()}function eP(e,t,o){const i=LS(e);if(i)return 0===e.rowGroupColsSvc?.columns.length?t<0?void Eo(238):void i.setRowCount(t,o):void Eo(28);IS(e)?.setRowCount(t,o)}function tP(e){if(Io(e.gos)){const t=e.rowModel;return t.getBlockStates()}return e.rowNodeBlockLoader?.getBlockState()??{}}function oP(e){return e.rowModel.isLastRowIndexKnown()}var iP={moduleName:"CsrmSsrmSharedApi",version:ro,apiFunctions:{expandAll:XF,collapseAll:YF}},nP={moduleName:"RowModelSharedApi",version:ro,apiFunctions:{onRowHeightChanged:ZF,resetRowHeights:JF}},sP={moduleName:"SsrmInfiniteSharedApi",version:ro,apiFunctions:{setRowCount:eP,getCacheBlockState:tP,isLastRowIndexKnown:oP}},rP=class extends Ct{constructor(){super(...arguments),this.beanName="alignedGridsSvc",this.consuming=!1}getAlignedGridApis(){let e=this.gos.get("alignedGrids")??[];const t="function"===typeof e;"function"===typeof e&&(e=e());const o=e.map(e=>{if(!e)return Eo(18),void(t||Eo(20));if(this.isGridApi(e))return e;const o=e;return"current"in o?o.current?.api:(o.api||Eo(19),o.api)}).filter(e=>!!e&&!e.isDestroyed());return o}isGridApi(e){return!!e&&!!e.dispatchEvent}postConstruct(){const e=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:e,columnVisible:e,columnPinned:e,columnGroupOpened:e,columnResized:e,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:e})=>this.onColumnEvent(e),alignedGridScroll:({event:e})=>this.onScrollEvent(e)})}fireEvent(e){if(!this.consuming)for(const t of this.getAlignedGridApis())t.isDestroyed()||t.dispatchEvent(e)}onEvent(e){this.consuming=!0,e(),this.consuming=!1}fireColumnEvent(e){this.fireEvent({type:"alignedGridColumn",event:e})}fireScrollEvent(e){"horizontal"===e.direction&&this.fireEvent({type:"alignedGridScroll",event:e})}onScrollEvent(e){this.onEvent(()=>{this.beans.ctrlsSvc.getScrollFeature().setHorizontalScrollPosition(e.left,!0)})}extractDataFromEvent(e,t){const o=[];return e.columns?e.columns.forEach(e=>{o.push(t(e))}):e.column&&o.push(t(e.column)),o}getMasterColumns(e){return this.extractDataFromEvent(e,e=>e)}getColumnIds(e){return this.extractDataFromEvent(e,e=>e.getColId())}onColumnEvent(e){this.onEvent(()=>{switch(e.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":this.processColumnEvent(e);break;case"columnGroupOpened":this.processGroupOpenedEvent(e);break;case"columnPivotChanged":xo(21);break}})}processGroupOpenedEvent(e){const{colGroupSvc:t}=this.beans;if(t)for(const o of e.columnGroups){let e=null;o&&(e=t.getProvidedColGroup(o.getGroupId())),o&&!e||t.setColumnGroupOpened(e,o.isExpanded(),"alignedGridChanged")}}processColumnEvent(e){const t=e.column;let o=null;const i=this.beans,{colResize:n,ctrlsSvc:s,colModel:r}=i;if(t&&(o=r.getColDefCol(t.getColId())),t&&!o)return;const a=this.getMasterColumns(e);switch(e.type){case"columnMoved":{const t=e.api.getColumnState(),o=t.map(e=>({colId:e.colId}));Qn(i,{state:o,applyOrder:!0},"alignedGridChanged")}break;case"columnVisible":{const t=e.api.getColumnState(),o=t.map(e=>({colId:e.colId,hide:e.hide}));Qn(i,{state:o},"alignedGridChanged")}break;case"columnPinned":{const t=e.api.getColumnState(),o=t.map(e=>({colId:e.colId,pinned:e.pinned}));Qn(i,{state:o},"alignedGridChanged")}break;case"columnResized":{const t=e,o={};for(const e of a)o[e.getId()]={key:e.getColId(),newWidth:e.getActualWidth()};for(const e of t.flexColumns??[])o[e.getId()]&&delete o[e.getId()];n?.setColumnWidths(Object.values(o),!1,t.finished,"alignedGridChanged");break}}const l=s.getGridBodyCtrl(),d=l.isVerticalScrollShowing();for(const c of this.getAlignedGridApis())c.setGridOption("alwaysShowVerticalScroll",d)}},aP={moduleName:"AlignedGrids",version:ro,beans:[rP],dependsOn:[qm]},lP=class extends Ct{constructor(e){super(),this.rootNode=e,this.nextId=0,this.allNodesMap={},cP(e)}getRowNode(e){return this.allNodesMap[e]}setNewRowData(e){this.dispatchRowDataUpdateStarted(e),this.destroyAllNodes();const t=cP(this.rootNode),o=new Array(e.length);t._leafs=o;let i=0;const n=this.beans.groupStage?.getNestedDataGetter(),s=n?new Set:null,r=(e,t)=>{const a=e.level+1;for(let l=0,d=t.length;l<d;++l){const d=t[l];if(!d)continue;const c=this.createRowNode(d,a);if(c.sourceRowIndex=i,o[i++]=c,s&&!s.has(d)){s.add(d),c.treeParent=e;const t=n(d);t&&r(c,t)}}};r(t,e),o.length=i}destroyAllNodes(){const{selectionSvc:e,pinnedRowModel:t,groupStage:o}=this.beans;e?.reset("rowDataChanged"),t?.isManual()&&t.reset(),o?.clearNonLeafs();const i=this.rootNode._leafs;if(i)for(let n=0,s=i.length;n<s;++n)i[n]._destroy(!1);this.allNodesMap=Object.create(null),this.nextId=0}setImmutableRowData(e,t){const{rootNode:o,gos:i}=this;this.dispatchRowDataUpdateStarted(t);const n=ei(i),s=e.changedRowNodes,{adds:r,updates:a}=s,l=new Set,d=[],c=this.beans.groupStage?.getNestedDataGetter();let u=!!i.get("suppressMaintainUnsortedOrder")&&void 0,h=-1,g=!1;const p=(e,t)=>{if(!u&&void 0!==u){const t=e.sourceRowIndex;u=t<=h,h=t}e.data!==t&&(e.updateData(t),r.has(e)||a.add(e),!e.selectable&&e.isSelected()&&d.push(e))},f=(e,t,o)=>{for(let i=0,s=t.length;i<s;++i){const s=t[i];if(!s)continue;let a=this.getRowNode(n({data:s,level:o}));if(a?(p(a,s),g||(g=!!c&&a.treeParent!==e)):(a=this.createRowNode(s,o),r.add(a)),!c||l.has(a)){l.add(a);continue}l.add(a),a.treeParent=e;const d=c(s);d&&f(a,d,o+1)}};f(o,t,0);const m=this.deleteUnusedNodes(l,s,d,!!e.animate)||u||r.size>0;if(m){const e=o._leafs??(o._leafs=[]);void 0===u?pP(e,l,s):gP(e,l)&&(s.reordered=!0)}(m||g||a.size)&&(e.rowDataUpdated=!0,this.deselect(d))}deleteUnusedNodes(e,{removals:t},o,i){const n=this.rootNode._leafs;for(let s=0,r=n.length;s<r;s++){const r=n[s];e.has(r)||this.destroyNode(r,i)&&(t.push(r),r.isSelected()&&o.push(r))}return t.length>0}updateRowData(e,t,o){if(this.dispatchRowDataUpdateStarted(e.add),this.beans.groupStage?.getNestedDataGetter())return xo(268),{remove:[],update:[],add:[]};const i=[],n=ei(this.gos),s=this.executeRemove(n,e,t,i,o),r=this.executeUpdate(n,e,t,i),a=this.executeAdd(e,t);return this.deselect(i),{remove:s,update:r,add:a}}executeRemove(e,{remove:t},{adds:o,updates:i,removals:n},s,r){const a=this.rootNode._leafs,l=a?.length,d=t?.length;if(!d||!l)return[];let c=0,u=l,h=0;const g=new Array(d);for(let p=0;p<d;++p){const a=this.lookupNode(e,t[p]);if(!a)continue;const l=a.sourceRowIndex;l<u&&(u=l),l>h&&(h=l),g[c++]=a,this.destroyNode(a,r)&&(a.isSelected()&&s.push(a),o.delete(a)||(i.delete(a),n.push(a)))}return g.length=c,c&&hP(a,u,h),g}executeUpdate(e,{update:t},{adds:o,updates:i},n){const s=t?.length;if(!s)return[];const r=new Array(s);let a=0;for(let l=0;l<s;l++){const s=t[l],d=this.lookupNode(e,s);d&&(d.updateData(s),!d.selectable&&d.isSelected()&&n.push(d),r[a++]=d,o.has(d)||i.add(d))}return r.length=a,r}executeAdd(e,t){var o;const i=(o=this.rootNode)._leafs??(o._leafs=[]),n=i.length,s=e.add,r=s?.length;if(!r)return[];const a=n+r;let l=this.sanitizeAddIndex(i,e.addIndex);if(l<n){for(let e=n-1,t=a-1;e>=l;--e){const o=i[e];o.sourceRowIndex=t,i[t--]=o}t.reordered=!0}i.length=a;const d=new Array(r),c=t.adds;for(let u=0;u<r;u++){const e=this.createRowNode(s[u],0);c.add(e),e.sourceRowIndex=l,i[l]=e,d[u]=e,l++}return d}dispatchRowDataUpdateStarted(e){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:e?.length?e[0]:null})}deselect(e){const t="rowDataChanged",o=this.beans.selectionSvc;e.length&&o?.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),o?.updateGroupsFromChildrenSelections?.(t),e.length&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:t,selectedNodes:o?.getSelectedNodes()??null,serverSideState:null})}createRowNode(e,t){const o=new Gd(this.beans);o.parent=this.rootNode,o.level=t,o.group=!1,o.expanded=!1,o.setDataAndId(e,String(this.nextId++));const i=o.id,n=this.allNodesMap;return n[i]&&xo(2,{nodeId:i}),n[i]=o,o}destroyNode(e,t){if(!e._destroy(t))return!1;const o=e.id,i=this.allNodesMap;i[o]===e&&delete i[o];const n=e.pinnedSibling;return n&&this.beans.pinnedRowModel?.pinRow(n,null),!0}lookupNode(e,t){if(!e)return uP(this.rootNode._leafs,t);const o=e({data:t,level:0}),i=this.allNodesMap[o];return i||(Eo(4,{id:o}),null)}sanitizeAddIndex(e,t){const o=e.length;if("number"!==typeof t)return o;if(t<0||t>=o||Number.isNaN(t))return o;t=Math.ceil(t);const i=this.gos;return t>0&&i.get("treeData")&&i.get("getDataPath")&&(t=dP(e,t)),t}},dP=(e,t)=>{for(let o=0,i=e.length;o<i;o++){const i=e[o];if(i?.rowIndex==t-1)return o+1}return t},cP=e=>{e.group=!0,e.level=-1,e.id="ROOT_NODE_ID",0!==e._leafs?.length&&(e._leafs=[]);const t=[],o=[],i=[],n=[];e.childrenAfterGroup=t,e.childrenAfterSort=o,e.childrenAfterAggFilter=i,e.childrenAfterFilter=n;const s=e.sibling;return s&&(s.childrenAfterGroup=t,s.childrenAfterSort=o,s.childrenAfterAggFilter=i,s.childrenAfterFilter=n,s.childrenMapped=e.childrenMapped),e.updateHasChildren(),e},uP=(e,t)=>{if(e)for(let o=0,i=e.length;o<i;o++){const i=e[o];if(i.data===t)return i}return Eo(5,{data:t}),null},hP=(e,t,o)=>{t=Math.max(0,t);for(let i=t,n=e.length;i<n;++i){const n=e[i];i<=o&&n.destroyed||(n.sourceRowIndex=t,e[t++]=n)}e.length=t},gP=(e,t)=>{const o=t.size;e.length=o;let i=0,n=!1,s=!1;for(const r of t){const t=r.sourceRowIndex;t===i?s||(s=n):(t>=0?s=!0:n=!0,r.sourceRowIndex=i,e[i]=r),++i}return s},pP=(e,t,{adds:o})=>{const i=e.length,n=t.size;n>i&&(e.length=n);let s=0;for(let r=0;r<i;++r){const t=e[r];t.destroyed||(s!==r&&(t.sourceRowIndex=s,e[s]=t),++s)}for(const r of o)r.sourceRowIndex<0&&(r.sourceRowIndex=s,e[s++]=r);e.length=s},fP=e=>{const t=e.childrenAfterSort,o=e.sibling;if(o&&(o.childrenAfterSort=t),t)for(let i=0,n=t.length-1;i<=n;i++){const e=t[i],o=0===i,s=i===n;e.firstChild!==o&&(e.firstChild=o,e.dispatchRowEvent("firstChildChanged")),e.lastChild!==s&&(e.lastChild=s,e.dispatchRowEvent("lastChildChanged")),e.childIndex!==i&&(e.childIndex=i,e.dispatchRowEvent("childIndexChanged"))}},mP=class extends Ct{constructor(){super(...arguments),this.beanName="sortStage",this.step="sort",this.refreshProps=["postSortRows","groupDisplayType","accentedSort"]}execute(e,t){const o=this.beans.sortSvc.getSortOptions(),i=o.length>0&&!!t&&this.gos.get("deltaSort"),{gos:n,colModel:s,rowGroupColsSvc:r,rowNodeSorter:a,rowRenderer:l,showRowGroupCols:d}=this.beans,c=n.get("groupMaintainOrder"),u=s.getCols().some(e=>e.isRowGroupActive()),h=r?.columns,g=s.isPivotMode(),p=n.getCallback("postSortRows");let f,m=!1;const v=n=>{const s=g&&n.leafGroup;let r=c&&u&&!n.leafGroup;r&&(f??(f=this.shouldSortContainsGroupCols(o)),r&&(r=!f));let l=null;if(r){let e=!1;if(h){const t=n.level+1;t<h.length&&(e=h[t].wasSortExplicitlyRemoved)}e||(l=wP(n))}else!o.length||s||(l=i&&t?vP(a,n,t,e,o):a.doFullSort(n.childrenAfterAggFilter,o));if(l||(l=n.childrenAfterAggFilter?.slice(0)??[]),m||(m=n.childrenAfterSort?.[0]!==l[0]),n.childrenAfterSort=l,fP(n),p){const e={nodes:n.childrenAfterSort};p(e)}};if(e?.forEachChangedNodeDepthFirst(v),m&&n.get("groupHideOpenParents")){const e=d?.columns;e?.length&&l.refreshCells({columns:e,force:!0})}}shouldSortContainsGroupCols(e){const t=e.length;if(!t)return!1;if(jo(this.gos)){for(let o=0;o<t;++o){const t=e[o].column;if(t.isPrimary()&&t.isRowGroupActive())return!0}return!1}for(let o=0;o<t;++o)if(e[o].column.getColDef().showRowGroup)return!0;return!1}},vP=(e,t,o,i,n)=>{const s=t.childrenAfterAggFilter,r=t.childrenAfterSort;if(!r)return e.doFullSort(s,n);const a=new Set,l=[],{updates:d,adds:c}=o;for(let h=0,g=s.length;h<g;++h){const e=s[h];d.has(e)||c.has(e)||i&&!i.canSkip(e)?l.push({currentPos:l.length,rowNode:e}):a.add(e)}const u=r.filter(e=>a.has(e)).map((e,t)=>({currentPos:t,rowNode:e}));return l.sort((t,o)=>e.compareRowNodes(n,t,o)),CP(e,n,l,u)},CP=(e,t,o,i)=>{let n=0,s=0;const r=o.length,a=i.length,l=new Array(r+a);let d=0;while(n<r&&s<a){const r=o[n],a=i[s];e.compareRowNodes(t,r,a)<0?(l[d++]=r.rowNode,++n):(l[d++]=a.rowNode,++s)}while(n<r)l[d++]=o[n++].rowNode;while(s<a)l[d++]=i[s++].rowNode;return l},wP=e=>{const t=e.childrenAfterSort,o=e.childrenAfterAggFilter,i=t?.length,n=o?.length;if(!i||!n)return null;const s=new Array(n),r=new Set;for(let l=0;l<n;++l)r.add(o[l]);let a=0;for(let l=0;l<i;++l){const e=t[l];r.delete(e)&&(s[a++]=e)}if(0===r.size&&a===i)return t;for(const l of r)s[a++]=l;return s.length=a,s},bP=class extends Ct{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.rowCountReady=!1,this.nodeManager=void 0,this.rowsToDisplay=[],this.formulaRows=[],this.rowDataUpdatedPending=!1,this.asyncTransactions=null,this.asyncTransactionsTimer=0,this.started=!1,this.refreshingModel=!1,this.rowNodesCountReady=!1,this.stages=null,this.stagesRefreshProps=new Map,this.onRowHeightChanged_debounced=xt(this,this.onRowHeightChanged.bind(this),100)}postConstruct(){const e=this.beans,t=new Gd(e);this.rootNode=t,this.nodeManager=this.createBean(new lP(t));const o=()=>{this.beans.groupStage?.invalidateGroupCols(),this.refreshModel({step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame")})};this.addManagedEventListeners({newColumnsLoaded:o,columnRowGroupChanged:o,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:()=>this.refreshModel({step:"pivot"}),columnPivotModeChanged:()=>this.refreshModel({step:"group"}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),stylesChanged:this.onGridStylesChanges.bind(this),gridReady:this.onGridReady.bind(this),rowExpansionStateChanged:this.onRowGroupOpened.bind(this)}),this.addPropertyListeners()}addPropertyListeners(){const{beans:e,stagesRefreshProps:t}=this,o=[e.groupStage,e.filterStage,e.pivotStage,e.aggStage,e.sortStage,e.filterAggStage,e.flattenStage].filter(e=>!!e);this.stages=o;for(let i=o.length-1;i>=0;--i){const e=o[i];for(const o of e.refreshProps)t.set(o,i)}this.addManagedPropertyListeners([...t.keys(),"rowData"],e=>{const t=e.changeSet?.properties;t&&this.onPropChange(t)}),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights())}start(){this.started=!0,this.rowNodesCountReady?this.refreshModel({step:"group",rowDataUpdated:!0,newData:!0}):this.setInitialData()}setInitialData(){const e=this.gos.get("rowData");e&&this.onPropChange(["rowData"])}ensureRowHeightsValid(e,t,o,i){let n,s=!1;do{n=!1;const r=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(r,o),d=Math.min(a,i);for(let e=l;e<=d;e++){const t=this.getRow(e);if(t.rowHeightEstimated){const e=Go(this.beans,t);t.setRowHeight(e.height),n=!0,s=!0}}n&&this.setRowTopAndRowIndex()}while(n);return s}onPropChange(e){const{nodeManager:t,gos:o,beans:i}=this,n=i.groupStage;if(!t)return;const s=new Set(e),r=n?.onPropChange(s);let a;s.has("rowData")?a=o.get("rowData"):r&&(a=n?.extractData()),a&&!Array.isArray(a)&&(a=null,xo(1));const l={step:"nothing",changedProps:s};if(a){const e=!r&&!this.isEmpty()&&a.length>0&&o.exists("getRowId")&&!o.get("resetRowDataOnUpdate");e?(l.keepRenderedRows=!0,l.animate=!o.get("suppressAnimationFrame"),l.changedRowNodes=new Dg,t.setImmutableRowData(l,a)):(l.rowDataUpdated=!0,l.newData=!0,t.setNewRowData(a),this.rowNodesCountReady=!0)}const d=l.rowDataUpdated?"group":this.getRefreshedStage(e);d&&(l.step=d,this.refreshModel(l))}getRefreshedStage(e){const{stages:t,stagesRefreshProps:o}=this;if(!t)return null;const i=t.length;let n=i;for(let s=0,r=e.length;s<r&&n;++s)n=Math.min(n,o.get(e[s])??n);return n<i?t[n].step:null}setRowTopAndRowIndex(e){const{beans:t,rowsToDisplay:o}=this,i=t.environment.getDefaultRowHeight();let n=0;const s=Lo(this.gos,"normal");for(let r=0,a=o.length;r<a;++r){const a=o[r],l=a.id;if(null!=l&&e?.add(l),null==a.rowHeight){const e=Go(t,a,s,i);a.setRowHeight(e.height,e.estimated)}a.setRowTop(n),a.setRowIndex(r),n+=a.rowHeight}if(this.beans.formula?.active){const e=this.formulaRows;for(let t=0,o=e.length;t<o;++t){const o=e[t];o.formulaRowIndex=t}}}clearRowTopAndRowIndex(e,t){const o=e.active,i=e=>{null==e?.id||t.has(e.id)||e.clearRowTopAndRowIndex()},n=e=>{i(e),i(e.detailNode),i(e.sibling);const t=e.childrenAfterGroup;if(!e.hasChildren()||!t)return;const s=-1==e.level,r=o&&!s&&!e.expanded;if(!r)for(let o=0,i=t.length;o<i;++o)n(t[o])},s=this.rootNode;s&&n(s)}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay.length}getTopLevelRowCount(){const{rootNode:e,rowsToDisplay:t}=this;if(!e||!t.length)return 0;const o=t[0]===e;if(o)return 1;const i=e.sibling?.displayed?1:0;return(e.childrenAfterSort?.length??0)+i}getTopLevelRowDisplayedIndex(e){const{beans:t,rootNode:o,rowsToDisplay:i}=this,n=!o||!i.length||i[0]===o;if(n)return e;const s=o.childrenAfterSort,r=e=>{let t=s[e];if(this.gos.get("groupHideOpenParents"))while(t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0)t=t.childrenAfterSort[0];return t.rowIndex},a=t.footerSvc;return a?a?.getTopDisplayIndex(i,e,s,r):r(e)}getTopLevelIndexFromDisplayedIndex(e){const{rootNode:t,rowsToDisplay:o}=this,i=!t||!o.length||o[0]===t;if(i)return e;let n=this.getRow(e);n.footer&&(n=n.sibling);let s=n.parent;while(s&&s!==t)n=s,s=n.parent;const r=t.childrenAfterSort?.indexOf(n)??-1;return r>=0?r:e}getRowBounds(e){const t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null}onRowGroupOpened(){this.refreshModel({step:"map",keepRenderedRows:!0,animate:$o(this.gos)})}onFilterChanged({afterDataChange:e,columns:t}){if(!e){const e=0===t.length||t.some(e=>e.isPrimary()),o=e?"filter":"filter_aggregates";this.refreshModel({step:o,keepRenderedRows:!0,animate:$o(this.gos)})}}onSortChanged(){this.refreshModel({step:"sort",keepRenderedRows:!0,animate:$o(this.gos)})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.beans.colModel.isPivotActive()?"pivot":"aggregate"})}createChangePath(e){const t=new Wp(!1,this.rootNode);return t.active=e,t}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;const{changedRowNodes:t,newData:o,rowDataUpdated:i}=e;return!(!t||o||!i)&&(!t.removals.length&&!t.adds.size)}refreshModel(e){const{nodeManager:t,beans:o,eventSvc:i,started:n,refreshingModel:s}=this;if(!t)return;const r=!!e.rowDataUpdated,a=e.changedPath??(e.changedPath=this.createChangePath(!e.newData&&r));if(n&&r&&i.dispatchEvent({type:"rowDataUpdated"}),!n||s||o.colModel.changeEventsDispatching||this.isSuppressModelUpdateAfterUpdateTransaction(e))return void(this.rowDataUpdatedPending||(this.rowDataUpdatedPending=r));switch(this.rowDataUpdatedPending&&(this.rowDataUpdatedPending=!1,e.step="group"),this.refreshingModel=!0,o.masterDetailSvc?.refreshModel(e),r&&"group"!==e.step&&o.colFilter?.refreshModel(),e.step){case"group":this.doGrouping(e);case"filter":this.doFilter(a);case"pivot":this.doPivot(a);case"aggregate":this.doAggregate(a);case"filter_aggregates":this.doFilterAggregates(a);case"sort":this.doSort(a,e.changedRowNodes);case"map":this.doRowsToDisplay()}const l=new Set;this.setRowTopAndRowIndex(l),this.clearRowTopAndRowIndex(a,l),this.refreshingModel=!1,i.dispatchEvent({type:"modelUpdated",animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack})}isEmpty(){return!this.rootNode?._leafs?.length||!this.beans.colModel?.ready}isRowsToRender(){return this.rowsToDisplay.length>0}getOverlayType(){return this.isEmpty()?"noRows":this.beans.filterManager?.isAnyFilterPresent()&&0===this.getRowCount()?"noMatchingRows":null}getNodesInRangeForSelection(e,t){let o=!1,i=!1;const n=[],s=xi(this.gos);return this.forEachNodeAfterFilterAndSort(r=>{if(i)return;if(o&&(r===t||r===e)&&(i=!0,s&&r.group))return void yP(n,r);if(!o){if(r!==t&&r!==e)return;o=!0,t===e&&(i=!0)}const a=!r.group||!s;a&&n.push(r)}),n}getTopLevelNodes(){return this.rootNode?.childrenAfterGroup??null}getRow(e){return this.rowsToDisplay[e]}getFormulaRow(e){return this.formulaRows[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){const t=this.rowsToDisplay,o=t.length;if(this.isEmpty()||0===o)return-1;let i=0,n=o-1;if(e<=0)return 0;const s=t[n];if(s.rowTop<=e)return n;let r=-1,a=-1;while(1){const o=Math.floor((i+n)/2),s=t[o];if(this.isRowInPixel(s,e))return o;s.rowTop<e?i=o+1:s.rowTop>e&&(n=o-1);const l=r===i&&a===n;if(l)return o;r=i,a=n}}isRowInPixel(e,t){const o=e.rowTop,i=o+e.rowHeight;return o<=t&&i>t}forEachLeafNode(e){const t=this.rootNode?._leafs;if(t)for(let o=0,i=t.length;o<i;++o)e(t[o],o)}forEachNode(e,t=!1){this.depthFirstSearchRowNodes(e,t)}forEachDisplayedNode(e){const t=this.rowsToDisplay;for(let o=0,i=t.length;o<i;++o)e(t[o],o)}forEachNodeAfterFilter(e,t=!1){this.depthFirstSearchRowNodes(e,t,e=>e.childrenAfterAggFilter)}forEachNodeAfterFilterAndSort(e,t=!1){this.depthFirstSearchRowNodes(e,t,e=>e.childrenAfterSort)}forEachPivotNode(e,t,o){const{colModel:i,rowGroupColsSvc:n}=this.beans;if(!i.isPivotMode())return;if(!n?.columns.length)return void e(this.rootNode,0);const s=o?"childrenAfterSort":"childrenAfterGroup";this.depthFirstSearchRowNodes(e,t,e=>e.leafGroup?null:e[s])}depthFirstSearchRowNodes(e,t=!1,o=e=>e.childrenAfterGroup,i=this.rootNode,n=0){let s=n;if(!i)return s;const r=i===this.rootNode;if(r||e(i,s++),i.hasChildren()&&!i.footer){const n=o(i);if(n){const a=this.beans.footerSvc;s=a?.addTotalRows(s,i,e,t,r,"top")??s;for(const i of n)s=this.depthFirstSearchRowNodes(e,t,o,i,s);return a?.addTotalRows(s,i,e,t,r,"bottom")??s}}return s}doAggregate(e){const t=this.rootNode;t&&this.beans.aggStage?.execute(e)}doFilterAggregates(e){const t=this.rootNode,o=this.beans.filterAggStage;o?o.execute(e):t.childrenAfterAggFilter=t.childrenAfterFilter}doSort(e,t){const o=this.beans.sortStage;o?o.execute(e,t):e.forEachChangedNodeDepthFirst(e=>{e.childrenAfterSort=e.childrenAfterAggFilter.slice(0),fP(e)})}doGrouping(e){const t=this.rootNode;if(!t)return;const o=this.beans.groupStage,i=o?.execute(e);if(void 0===i){const e=t._leafs;t.childrenAfterGroup=e,t.updateHasChildren();const o=t.sibling;o&&(o.childrenAfterGroup=e)}(i||e.rowDataUpdated)&&this.beans.colFilter?.refreshModel(),!this.rowCountReady&&this.rowNodesCountReady&&(this.rowCountReady=!0,this.eventSvc.dispatchEventOnce({type:"rowCountReady"}))}doFilter(e){const t=this.beans.filterStage;t?t.execute(e):e.forEachChangedNodeDepthFirst(e=>{e.childrenAfterFilter=e.childrenAfterGroup,dR(e)},!0)}doPivot(e){this.beans.pivotStage?.execute(e)}getRowNode(e){const t=this.nodeManager?.getRowNode(e);return"object"===typeof t?t:this.beans.groupStage?.getNonLeaf(e)}batchUpdateRowData(e,t){if(!this.asyncTransactionsTimer){this.asyncTransactions=[];const e=this.gos.get("asyncTransactionWaitMillis");this.asyncTransactionsTimer=setTimeout(()=>this.executeBatchUpdateRowData(),e)}this.asyncTransactions.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){const e=this.asyncTransactionsTimer;e&&(clearTimeout(e),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){const{nodeManager:e,beans:t,eventSvc:o,asyncTransactions:i}=this;if(!e)return;t.valueCache?.onDataChanged();const n=[],s=[],r=new Dg,a=!this.gos.get("suppressAnimationFrame");for(const{rowDataTransaction:l,callback:d}of i??[]){this.rowNodesCountReady=!0;const t=e.updateRowData(l,r,a);n.push(t),d&&s.push(d.bind(null,t))}this.commitTransactions(r,a),s.length>0&&setTimeout(()=>{for(let e=0,t=s.length;e<t;e++)s[e]()},0),n.length>0&&o.dispatchEvent({type:"asyncTransactionsFlushed",results:n}),this.asyncTransactionsTimer=0,this.asyncTransactions=null}updateRowData(e){const t=this.nodeManager;if(!t)return null;this.beans.valueCache?.onDataChanged(),this.rowNodesCountReady=!0;const o=new Dg,i=!this.gos.get("suppressAnimationFrame"),n=t.updateRowData(e,o,i);return this.commitTransactions(o,i),n}commitTransactions(e,t){this.refreshModel({step:"group",rowDataUpdated:!0,keepRenderedRows:!0,animate:t,changedRowNodes:e,changedPath:this.createChangePath(!0)})}doRowsToDisplay(){const{rootNode:e,beans:t}=this;if(t.formula?.active){const t=e?.childrenAfterSort??[];this.formulaRows=t,this.rowsToDisplay=t.filter(e=>!e.softFiltered);for(const e of this.rowsToDisplay)e.setUiLevel(0);return}const o=t.flattenStage;if(o)return void(this.rowsToDisplay=o.execute());const i=this.rootNode.childrenAfterSort??[];for(const n of i)n.setUiLevel(0);this.rowsToDisplay=i}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:!0,keepUndoRedoStack:!0})}resetRowHeights(){const e=this.rootNode;if(!e)return;const t=this.resetRowHeightsForAllRowNodes();e.setRowHeight(e.rowHeight,!0);const o=e.sibling;o?.setRowHeight(o.rowHeight,!0),t&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(t=>{t.setRowHeight(t.rowHeight,!0);const o=t.detailNode;o?.setRowHeight(o.rowHeight,!0);const i=t.sibling;i?.setRowHeight(i.rowHeight,!0),e=!0}),e}onGridStylesChanges(e){e.rowHeightChanged&&!this.beans.rowAutoHeight?.active&&this.resetRowHeights()}onGridReady(){this.started||this.setInitialData()}destroy(){super.destroy(),this.nodeManager=this.destroyBean(this.nodeManager),this.started=!1,this.rootNode=null,this.rowsToDisplay=[],this.asyncTransactions=null,this.stages=null,this.stagesRefreshProps.clear(),clearTimeout(this.asyncTransactionsTimer)}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}},yP=(e,t)=>{const o=t.childrenAfterGroup;if(o)for(let i=0,n=o.length;i<n;++i){const t=o[i];t.data&&e.push(t),t.group&&yP(e,t)}};function SP(e){e.expansionSvc?.onGroupExpandedOrCollapsed()}function RP(e,t){const o=TS(e);o&&(t&&"everything"!==t||(t="group"),o.refreshModel({step:t,keepRenderedRows:!0,animate:!e.gos.get("suppressAnimationFrame")}))}function xP(e){return TS(e)?.isEmpty()??!0}function EP(e,t){TS(e)?.forEachLeafNode(t)}function FP(e,t){TS(e)?.forEachNodeAfterFilter(t)}function PP(e,t){TS(e)?.forEachNodeAfterFilterAndSort(t)}function DP(e,t){return e.frameworkOverrides.wrapIncoming(()=>TS(e)?.updateRowData(t))}function kP(e,t,o){e.frameworkOverrides.wrapIncoming(()=>TS(e)?.batchUpdateRowData(t,o))}function MP(e){e.frameworkOverrides.wrapIncoming(()=>TS(e)?.flushAsyncTransactions())}function AP(e){return e.selectionSvc?.getBestCostNodeSelection()}var TP={moduleName:"ClientSideRowModel",version:ro,rowModels:["clientSide"],beans:[bP,mP],dependsOn:[Ky]},IP={moduleName:"ClientSideRowModelApi",version:ro,apiFunctions:{onGroupExpandedOrCollapsed:SP,refreshClientSideRowModel:RP,isRowDataEmpty:xP,forEachLeafNode:EP,forEachNodeAfterFilter:FP,forEachNodeAfterFilterAndSort:PP,applyTransaction:DP,applyTransactionAsync:kP,flushAsyncTransactions:MP,getBestCostNodeSelection:AP,resetRowHeights:JF,onRowHeightChanged:ZF},dependsOn:[iP,nP]},LP=class extends Ct{constructor(){super(...arguments),this.beanName="gridSerializer"}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel,this.rowModel=e.rowModel,this.pinnedRowModel=e.pinnedRowModel}serialize(e,t={}){const{allColumns:o,columnKeys:i,skipRowGroups:n,exportRowNumbers:s}=t,r=this.getColumnsToExport({allColumns:o,skipRowGroups:n,columnKeys:i,exportRowNumbers:s});return[this.prepareSession(r),this.prependContent(t),this.exportColumnGroups(t,r),this.exportHeaders(t,r),this.processPinnedTopRows(t,r),this.processRows(t,r),this.processPinnedBottomRows(t,r),this.appendContent(t)].reduce((e,t)=>t(e),e).parse()}processRow(e,t,o,i){const n=t.shouldRowBeSkipped||(()=>!1),s=null!=t.rowPositions,r=s||!!t.onlySelected,a=this.gos.get("groupHideOpenParents")&&!r,l=this.colModel.isPivotMode()?i.leafGroup:!i.group,d=!!i.footer,c=1===i.allChildrenCount&&1===i.childrenAfterGroup?.length&&ti(this.gos,i);if(!l&&!d&&(t.skipRowGroups||c||a)||t.onlySelected&&!i.isSelected()||t.skipPinnedTop&&"top"===i.rowPinned||t.skipPinnedBottom&&"bottom"===i.rowPinned||i.stub)return;const u=-1===i.level;if(u&&!l&&!d)return;const h=n(Ti(this.gos,{node:i}));if(h)return;const g=e.onNewBodyRow(i);if(o.forEach((e,t)=>{g.onColumn(e,t,i)}),t.getCustomContentBelowRow){const o=t.getCustomContentBelowRow(Ti(this.gos,{node:i}));o&&e.addCustomContent(o)}}appendContent(e){return t=>{const o=e.appendContent;return o&&t.addCustomContent(o),t}}prependContent(e){return t=>{const o=e.prependContent;return o&&t.addCustomContent(o),t}}prepareSession(e){return t=>(t.prepare(e),t)}exportColumnGroups(e,t){return o=>{if(!e.skipColumnGroupHeaders){const i=new rs,{colGroupSvc:n}=this.beans,s=n?n.createColumnGroups({columns:t,idCreator:i,pinned:null,isStandaloneStructure:!0}):t;this.recursivelyAddHeaderGroups(s,o,e.processGroupHeaderCallback)}return o}}exportHeaders(e,t){return o=>{if(!e.skipColumnHeaders){const e=o.onNewHeaderRow();t.forEach((t,o)=>{e.onColumn(t,o,void 0)})}return o}}processPinnedTopRows(e,t){return o=>{const i=this.processRow.bind(this,o,e,t);return e.rowPositions?e.rowPositions.filter(e=>"top"===e.rowPinned).sort((e,t)=>e.rowIndex-t.rowIndex).map(e=>this.pinnedRowModel?.getPinnedTopRow(e.rowIndex)).forEach(i):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("top",i),o}}processRows(e,t){return o=>{const i=this.rowModel,n=To(this.gos,i),s=Io(this.gos,i),r=!n&&e.onlySelected,a=this.processRow.bind(this,o,e,t),{exportedRows:l="filteredAndSorted"}=e;if(e.rowPositions)e.rowPositions.filter(e=>null==e.rowPinned).sort((e,t)=>e.rowIndex-t.rowIndex).map(e=>i.getRow(e.rowIndex)).forEach(a);else if(this.colModel.isPivotMode())n?i.forEachPivotNode(a,!0,"filteredAndSorted"===l):s?i.forEachNodeAfterFilterAndSort(a,!0):i.forEachNode(a);else if(e.onlySelectedAllPages||r){const e=this.beans.selectionSvc?.getSelectedNodes()??[];this.replicateSortedOrder(e),e.forEach(a)}else"all"===l?i.forEachNode(a):n||s?i.forEachNodeAfterFilterAndSort(a,!0):i.forEachNode(a);return o}}replicateSortedOrder(e){const{sortSvc:t,rowNodeSorter:o}=this.beans;if(!t||!o)return;const i=t.getSortOptions(),n=(e,t)=>null!=e.rowIndex&&null!=t.rowIndex?e.rowIndex-t.rowIndex:e.level===t.level?e.parent?.id===t.parent?.id?o.compareRowNodes(i,{rowNode:e,currentPos:e.rowIndex??-1},{rowNode:t,currentPos:t.rowIndex??-1}):n(e.parent,t.parent):e.level>t.level?n(e.parent,t):n(e,t.parent);e.sort(n)}processPinnedBottomRows(e,t){return o=>{const i=this.processRow.bind(this,o,e,t);return e.rowPositions?e.rowPositions.filter(e=>"bottom"===e.rowPinned).sort((e,t)=>e.rowIndex-t.rowIndex).map(e=>this.pinnedRowModel?.getPinnedBottomRow(e.rowIndex)).forEach(i):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("bottom",i),o}}getColumnsToExport(e){const{allColumns:t=!1,skipRowGroups:o=!1,exportRowNumbers:i=!1,columnKeys:n}=e,{colModel:s,gos:r,visibleCols:a}=this,l=s.isPivotMode(),d=e=>!vn(e)&&(!Cn(e)||i);if(n?.length)return s.getColsForKeys(n).filter(d);const c=r.get("treeData");let u=[];return u=t&&!l?s.getCols():a.allCols,u=u.filter(e=>d(e)&&(!(o&&!c)||!mn(e))),u}recursivelyAddHeaderGroups(e,t,o){const i=[];for(const n of e){const e=n;if(e.getChildren)for(const t of e.getChildren()??[])i.push(t)}e.length>0&&Id(e[0])&&this.doAddHeaderHeader(t,e,o),i&&i.length>0&&this.recursivelyAddHeaderGroups(i,t,o)}doAddHeaderHeader(e,t,o){const i=e.onNewHeaderGroupingRow();let n=0;for(const s of t){const e=s;let t;t=o?o(Ti(this.gos,{columnGroup:e})):this.beans.colNames.getDisplayNameForColumnGroup(e,"header");const r=e.isExpandable()?e.getLeafColumns():[],a=r.reduce((e,t,o,i)=>{let n=tn(e);const s="open"===t.getColumnGroupShow();return s?n&&null==n[1]||(n=[o],e.push(n)):n&&null==n[1]&&(n[1]=o-1),o===i.length-1&&n&&null==n[1]&&(n[1]=o),e},[]);i.onColumn(e,t||"",n++,e.getLeafColumns().length-1,a)}}},BP={moduleName:"SharedExport",version:ro,beans:[LP]},OP="\r\n",HP=class extends qS{constructor(e){super(e),this.config=e,this.isFirstLine=!0,this.result="";const{suppressQuotes:t,columnSeparator:o}=e;this.suppressQuotes=t,this.columnSeparator=o}addCustomContent(e){e&&("string"===typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,OP),this.result+=e):e.forEach(e=>{this.beginNewLine(),e.forEach((e,t)=>{0!==t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e.data.value||""),e.mergeAcross&&this.appendEmptyCells(e.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(e,t,o,i){0!=o&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(i)}appendEmptyCells(e){for(let t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(e,t){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(e,t,o){0!=t&&(this.result+=this.columnSeparator);const i=this.extractRowCellValue({column:e,node:o,currentColumnIndex:t,accumulatedRowIndex:t,type:"csv",useRawFormula:!1});this.result+=this.putInQuotes(i.valueFormatted??i.value)}putInQuotes(e){if(this.suppressQuotes)return e;if(null===e||void 0===e)return'""';let t;"string"===typeof e?t=e:"function"===typeof e.toString?t=e.toString():(xo(53),t="");const o=t.replace(/"/g,'""');return'"'+o+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=OP),this.isFirstLine=!1}},VP=class extends $S{constructor(){super(...arguments),this.beanName="csvCreator"}getMergedParams(e){const t=this.gos.get("defaultCsvExportParams");return Object.assign({},t,e)}export(e){if(this.isExportSuppressed())return void xo(51);const t=()=>{const t=this.getMergedParams(e),o=this.getData(t),i=new Blob(["\ufeff",o],{type:"text/plain"}),n=t.fileName,s="function"===typeof n?n(Ti(this.gos,{})):n;jS(this.getFileName(s),i)},{overlays:o}=this.beans;o?o.showExportOverlay(t):t()}exportDataAsCsv(e){this.export(e)}getDataAsCsv(e,t=!1){const o=t?Object.assign({},e):this.getMergedParams(e);return this.getData(o)}getDefaultFileExtension(){return"csv"}createSerializingSession(e){const{colModel:t,colNames:o,rowGroupColsSvc:i,valueSvc:n,gos:s}=this.beans,{processCellCallback:r,processHeaderCallback:a,processGroupHeaderCallback:l,processRowGroupCallback:d,suppressQuotes:c,columnSeparator:u}=e;return new HP({colModel:t,colNames:o,valueSvc:n,gos:s,processCellCallback:r||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:d||void 0,suppressQuotes:c||!1,columnSeparator:u||",",rowGroupColsSvc:i})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}};function GP(e,t){return e.csvCreator?.getDataAsCsv(t)}function NP(e,t){e.csvCreator?.exportDataAsCsv(t)}var zP={moduleName:"CsvExport",version:ro,beans:[VP],apiFunctions:{getDataAsCsv:GP,exportDataAsCsv:NP},dependsOn:[BP]},WP=class extends Ct{constructor(e,t,o){super(),this.id=e,this.parentCache=t,this.params=o,this.state="needsLoading",this.version=0,this.startRow=e*o.blockSize,this.endRow=this.startRow+o.blockSize}load(){this.state="loading",this.loadFromDatasource()}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}pageLoadFailed(e){const t=this.isRequestMostRecentAndLive(e);t&&(this.state="failed"),this.dispatchLocalEvent({type:"loadComplete"})}pageLoaded(e,t,o){this.successCommon(e,{rowData:t,rowCount:o})}isRequestMostRecentAndLive(e){const t=e===this.version,o=this.isAlive();return t&&o}successCommon(e,t){this.dispatchLocalEvent({type:"loadComplete"});const o=this.isRequestMostRecentAndLive(e);o&&(this.state="loaded",this.processServerResult(t))}postConstruct(){this.rowNodes=[];const{params:{blockSize:e,rowHeight:t},startRow:o,beans:i,rowNodes:n}=this;for(let s=0;s<e;s++){const e=o+s,r=new Gd(i);r.setRowHeight(t),r.uiLevel=0,r.setRowIndex(e),r.setRowTop(t*e),n.push(r)}}getBlockStateJson(){const{id:e,startRow:t,endRow:o,state:i}=this;return{id:""+e,state:{blockNumber:e,startRow:t,endRow:o,pageStatus:i}}}setDataAndId(e,t,o){s(t)?e.setDataAndId(t,o.toString()):e.setDataAndId(void 0,void 0)}loadFromDatasource(){const e=this.createLoadParams();r(this.params.datasource.getRows)?xo(90):window.setTimeout(()=>{this.params.datasource.getRows(e)},0)}createLoadParams(){const{startRow:e,endRow:t,version:o,params:{sortModel:i,filterModel:n},gos:s}=this,r=Ti(s,{startRow:e,endRow:t,successCallback:this.pageLoaded.bind(this,o),failCallback:this.pageLoadFailed.bind(this,o),sortModel:i,filterModel:n});return r}forEachNode(e,t,o){this.rowNodes.forEach((i,n)=>{const s=this.startRow+n;s<o&&e(i,t.value++)})}getRow(e,t=!1){t||(this.lastAccessed=this.params.lastAccessedSequence.value++);const o=e-this.startRow;return this.rowNodes[o]}processServerResult(e){const{rowNodes:t,beans:o}=this;t.forEach((i,n)=>{const s=e.rowData?e.rowData[n]:void 0;!i.id&&i.alreadyRendered&&s&&(t[n]=new Gd(o),t[n].setRowIndex(i.rowIndex),t[n].setRowTop(i.rowTop),t[n].setRowHeight(i.rowHeight),i._destroy(!0)),this.setDataAndId(t[n],s,this.startRow+n)});const i=null!=e.rowCount&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,i)}destroy(){const e=this.rowNodes;for(let t=0,o=e.length;t<o;t++)e[t]._destroy(!1);e.length=0,super.destroy()}},_P=2,UP=class extends Ct{constructor(e){super(),this.params=e,this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=e.initialRowCount}getRow(e,t=!1){const o=Math.floor(e/this.params.blockSize);let i=this.blocks[o];if(!i){if(t)return;i=this.createBlock(o)}return i.getRow(e)}createBlock(e){const t=this.params,o=this.createBean(new WP(e,this,t));return this.blocks[o.id]=o,this.blockCount++,this.purgeBlocksIfNeeded(o),t.rowNodeBlockLoader.addBlock(o),o}refreshCache(){const e=0==this.blockCount;if(e)this.purgeCache();else{for(const e of this.getBlocksInOrder())e.setStateWaitingToLoad();this.params.rowNodeBlockLoader.checkBlockToLoad()}}destroy(){for(const e of this.getBlocksInOrder())this.destroyBlock(e);super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(e,t){this.isAlive()&&(Ht(this.gos,`InfiniteCache - onPageLoaded: page = ${e.id}, lastRow = ${t}`),this.checkRowCount(e,t),this.onCacheUpdated())}purgeBlocksIfNeeded(e){const t=this.getBlocksInOrder().filter(t=>t!=e),o=(e,t)=>t.lastAccessed-e.lastAccessed;t.sort(o);const i=this.params.maxBlocksInCache>0,n=i?this.params.maxBlocksInCache-1:null,s=_P-1;t.forEach((e,t)=>{const o="needsLoading"===e.state&&t>=s,r=!!i&&t>=n;if(o||r){if(this.isBlockCurrentlyDisplayed(e))return;if(this.isBlockFocused(e))return;this.removeBlockFromCache(e)}})}isBlockFocused(e){const t=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!t)return!1;if(null!=t.rowPinned)return!1;const{startRow:o,endRow:i}=e,n=t.rowIndex>=o&&t.rowIndex<i;return n}isBlockCurrentlyDisplayed(e){const{startRow:t,endRow:o}=e;return this.beans.rowRenderer.isRangeInRenderedViewport(t,o-1)}removeBlockFromCache(e){e&&this.destroyBlock(e)}checkRowCount(e,t){if("number"===typeof t&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){const{blockSize:t,overflowSize:o}=this.params,i=(e.id+1)*t,n=i+o;this.rowCount<n&&(this.rowCount=n)}}setRowCount(e,t){this.rowCount=e,s(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(e){const t={value:0};for(const o of this.getBlocksInOrder())o.forEachNode(e,t,this.rowCount)}getBlocksInOrder(){const e=(e,t)=>e.id-t.id,t=Object.values(this.blocks).sort(e);return t}destroyBlock(e){delete this.blocks[e.id],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)}onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventSvc.dispatchEvent({type:"storeUpdated"}))}destroyAllBlocksPastVirtualRowCount(){const e=[];for(const t of this.getBlocksInOrder()){const o=t.id*this.params.blockSize;o>=this.rowCount&&e.push(t)}if(e.length>0)for(const t of e)this.destroyBlock(t)}purgeCache(){for(const e of this.getBlocksInOrder())this.removeBlockFromCache(e);this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(e,t){const o=[];let i=-1,n=!1;const s={value:0};let r=!1;for(const l of this.getBlocksInOrder())r||(n&&i+1!==l.id?r=!0:(i=l.id,l.forEachNode(i=>{const s=i===e||i===t;(n||s)&&o.push(i),s&&(n=!n)},s,this.rowCount)));const a=r||n;return a?[]:o}},$P=class extends Ct{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null}getRowBounds(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}}ensureRowHeightsValid(){return!1}postConstruct(){if("infinite"!==this.gos.get("rowModelType"))return;const e=this.beans,t=new Gd(e);this.rootNode=t,t.level=-1,this.rowHeight=zo(e),this.addEventListeners(),this.addDestroyFunc(()=>this.destroyCache())}start(){this.setDatasource(this.gos.get("datasource"))}destroy(){this.destroyDatasource(),super.destroy(),this.rootNode=null}destroyDatasource(){this.datasource&&(this.destroyBean(this.datasource),this.beans.rowRenderer.datasourceChanged(),this.datasource=null)}addEventListeners(){this.addManagedEventListeners({filterChanged:this.reset.bind(this),sortChanged:this.reset.bind(this),newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.dispatchModelUpdatedEvent.bind(this)}),this.addManagedPropertyListener("datasource",()=>this.setDatasource(this.gos.get("datasource"))),this.addManagedPropertyListener("cacheBlockSize",()=>this.resetCache()),this.addManagedPropertyListener("rowHeight",()=>{this.rowHeight=zo(this.beans),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()})}onColumnEverything(){let e;e=!this.cacheParams||!l(this.cacheParams.sortModel,this.beans.sortSvc?.getSortModel()??[]),e&&this.reset()}getType(){return"infinite"}setDatasource(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getOverlayType(){const e=this.infiniteCache;return 0===e?.getRowCount()?this.beans.filterManager?.isAnyFilterPresent()?"noMatchingRows":"noRows":null}getNodesInRangeForSelection(e,t){return this.infiniteCache?.getRowNodesInRange(e,t)??[]}reset(){if(!this.datasource)return;const e=ei(this.gos),t=null!=e;t||this.beans.selectionSvc?.reset("rowDataChanged"),this.resetCache()}dispatchModelUpdatedEvent(){this.eventSvc.dispatchEvent({type:"modelUpdated",newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){this.destroyCache();const e=this.beans,{filterManager:t,sortSvc:o,rowNodeBlockLoader:i,eventSvc:n,gos:s}=e;this.cacheParams={datasource:this.datasource,filterModel:t?.getFilterModel()??{},sortModel:o?.getSortModel()??[],rowNodeBlockLoader:i,initialRowCount:s.get("infiniteInitialRowCount"),maxBlocksInCache:s.get("maxBlocksInCache"),rowHeight:zo(e),overflowSize:s.get("cacheOverflowSize"),blockSize:s.get("cacheBlockSize"),lastAccessedSequence:{value:0}},this.infiniteCache=this.createBean(new UP(this.cacheParams)),n.dispatchEventOnce({type:"rowCountReady"}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode(e=>{e.setRowHeight(this.rowHeight),e.setRowTop(this.rowHeight*e.rowIndex)}),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache=this.destroyBean(this.infiniteCache)}getRow(e){const t=this.infiniteCache;if(t&&!(e>=t.getRowCount()))return t.getRow(e)}getRowNode(e){let t;return this.forEachNode(o=>{o.id===e&&(t=o)}),t}forEachNode(e){this.infiniteCache?.forEachNodeDeep(e)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}getRowIndexAtPixel(e){if(0!==this.rowHeight){const t=Math.floor(e/this.rowHeight),o=this.getRowCount()-1;return t>o?o:t}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(e){return!!this.getRowNode(e.id)}refreshCache(){this.infiniteCache?.refreshCache()}purgeCache(){this.infiniteCache?.purgeCache()}isLastRowIndexKnown(){return this.infiniteCache?.isLastRowIndexKnown()??!1}setRowCount(e,t){this.infiniteCache?.setRowCount(e,t)}resetRowHeights(){}onRowHeightChanged(){}};function qP(e){IS(e)?.refreshCache()}function jP(e){IS(e)?.purgeCache()}function KP(e){return IS(e)?.getRowCount()}var QP=class extends Ct{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=oi(this.gos);const e=this.gos.get("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=xt(this,this.performCheckBlocksToLoad.bind(this),e))}addBlock(e){this.blocks.push(e),e.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){sn(this.blocks,e)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad()}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)return void Ht(this.gos,"RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");const e=null!=this.maxConcurrentRequests?this.maxConcurrentRequests-this.activeBlockLoadsCount:1,t=this.blocks.filter(e=>"needsLoading"===e.state).slice(0,e);this.activeBlockLoadsCount+=t.length;for(const o of t)o.load();this.printCacheStatus()}getBlockState(){const e={};return this.blocks.forEach(t=>{const{id:o,state:i}=t.getBlockStateJson();e[o]=i}),e}printCacheStatus(){Ht(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}},XP={moduleName:"InfiniteRowModelCore",version:ro,rowModels:["infinite"],beans:[$P,QP]},YP={moduleName:"InfiniteRowModel",version:ro,apiFunctions:{refreshInfiniteCache:qP,purgeInfiniteCache:jP,getInfiniteRowCount:KP},dependsOn:[XP,sP]},ZP="↑",JP="↓",eD={tag:"span",children:[{tag:"span",ref:"eDelta",cls:"ag-value-change-delta"},{tag:"span",ref:"eValue",cls:"ag-value-change-value"}]},tD=class extends ps{constructor(){super(eD),this.eValue=ds,this.eDelta=ds,this.refreshCount=0}init(e){this.refresh(e,!0)}showDelta(e,t){const o=Math.abs(t),i=e.formatValue(o),n=s(i)?i:o,r=t>=0,a=this.eDelta;a.textContent=r?ZP+n:JP+n,a.classList.toggle("ag-value-change-delta-up",r),a.classList.toggle("ag-value-change-delta-down",!r)}setTimerToRemoveDelta(){this.refreshCount++;const e=this.refreshCount;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.hideDeltaValue()},2e3)})}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight"),xe(this.eDelta)}refresh(e,t=!1){const{value:o,valueFormatted:i}=e,{eValue:n,lastValue:r,beans:a}=this;if(o===r)return!1;if(s(i)?n.textContent=i:s(o)?n.textContent=o:xe(n),a.filterManager?.isSuppressFlashingCellsBecauseFiltering())return!1;const l=o&&"object"===typeof o&&"toNumber"in o?o.toNumber():o,d=r&&"object"===typeof r&&"toNumber"in r?r.toNumber():r;if(l===d)return!1;if("number"===typeof l&&"number"===typeof d){const t=l-d;this.showDelta(e,t)}return r&&n.classList.add("ag-value-change-value-highlight"),t||this.setTimerToRemoveDelta(),this.lastValue=o,!0}},oD=".ag-value-slide-out{opacity:1}:where(.ag-ltr) .ag-value-slide-out{margin-right:5px;transition:opacity 3s,margin-right 3s}:where(.ag-rtl) .ag-value-slide-out{margin-left:5px;transition:opacity 3s,margin-left 3s}:where(.ag-ltr,.ag-rtl) .ag-value-slide-out{transition-timing-function:linear}.ag-value-slide-out-end{opacity:0}:where(.ag-ltr) .ag-value-slide-out-end{margin-right:10px}:where(.ag-rtl) .ag-value-slide-out-end{margin-left:10px}",iD={tag:"span",children:[{tag:"span",ref:"eCurrent",cls:"ag-value-slide-current"}]},nD=class extends ps{constructor(){super(iD),this.eCurrent=ds,this.refreshCount=0,this.registerCSS(oD)}init(e){this.refresh(e,!0)}addSlideAnimation(){this.refreshCount++;const e=this.refreshCount;this.ePrevious?.remove();const{beans:t,eCurrent:o}=this,i=Zd({tag:"span",cls:"ag-value-slide-previous ag-value-slide-out"});this.ePrevious=i,i.textContent=o.textContent,this.getGui().insertBefore(i,o),t.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(()=>{e===this.refreshCount&&(this.ePrevious?.remove(),this.ePrevious=null)},3e3)})}refresh(e,t=!1){let o=e.value;if(r(o)&&(o=""),o===this.lastValue)return!1;if(this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering())return!1;t||this.addSlideAnimation(),this.lastValue=o;const i=this.eCurrent;return s(e.valueFormatted)?i.textContent=e.valueFormatted:s(e.value)?i.textContent=o:xe(i),!0}},sD=class extends Ct{constructor(){super(...arguments),this.beanName="cellFlashSvc",this.nextAnimationTime=null,this.nextAnimationCycle=null,this.animations={highlight:new Map,"data-changed":new Map}}animateCell(e,t,o=this.beans.gos.get("cellFlashDuration"),i=this.beans.gos.get("cellFadeDuration")){const n=this.animations[t];n.delete(e);const s=Date.now(),r=s+o,a=s+o+i,l={phase:"flash",flashEndTime:r,fadeEndTime:a};n.set(e,l);const d=`ag-cell-${t}`,c=`${d}-animation`,{comp:u,eGui:{style:h}}=e;u.toggleCss(d,!0),u.toggleCss(c,!1),h.removeProperty("transition"),h.removeProperty("transition-delay"),this.nextAnimationTime&&r+15<this.nextAnimationTime&&(clearTimeout(this.nextAnimationCycle),this.nextAnimationCycle=null,this.nextAnimationTime=null),this.nextAnimationCycle||(this.beans.frameworkOverrides.wrapIncoming(()=>{this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),o)}),this.nextAnimationTime=r)}advanceAnimations(){const e=Date.now();let t=null;for(const o of Object.keys(this.animations)){const i=this.animations[o],n=`ag-cell-${o}`,s=`${n}-animation`;for(const[o,r]of i){if(!o.isAlive()||!o.comp){i.delete(o);continue}const{phase:a,flashEndTime:l,fadeEndTime:d}=r,c="flash"===a?l:d,u=e+15>=c;if(!u){t=Math.min(c,t??1/0);continue}const{comp:h,eGui:{style:g}}=o;switch(a){case"flash":h.toggleCss(n,!1),h.toggleCss(s,!0),g.transition=`background-color ${d-l}ms`,g.transitionDelay=l-e+"ms",t=Math.min(d,t??1/0),r.phase="fade";break;case"fade":h.toggleCss(n,!1),h.toggleCss(s,!1),g.removeProperty("transition"),g.removeProperty("transition-delay"),i.delete(o);break}}}null==t?(this.nextAnimationTime=null,this.nextAnimationCycle=null):t&&(this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),t-e),this.nextAnimationTime=t)}onFlashCells(e,t){if(!e.comp)return;const o=_u(e.cellPosition),i=t.cells[o];i&&this.animateCell(e,"highlight")}flashCell(e,t){this.animateCell(e,"data-changed",t?.flashDuration,t?.fadeDuration)}destroy(){for(const e of Object.keys(this.animations)){const t=this.animations[e];t.clear()}}};function rD(e,t={}){const{cellFlashSvc:o}=e;o&&e.frameworkOverrides.wrapIncoming(()=>{for(const i of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns))o.flashCell(i,t)})}var aD={moduleName:"HighlightChanges",version:ro,beans:[sD],userComponents:{agAnimateShowChangeCellRenderer:tD,agAnimateSlideCellRenderer:nD},apiFunctions:{flashCells:rD}};function lD(e){return e.stateSvc?.getState()??{}}function dD(e,t,o){return e.stateSvc?.setState(t,o)}function cD(e){return e={...e},e.version||(e.version="32.1.0"),"32.1.0"===e.version&&(e=uD(e)),e.version=ro,e}function uD(e){return e.cellSelection=hD(e,"rangeSelection"),e}function hD(e,t){if(e&&"object"===typeof e)return e[t]}var gD=class extends Ct{constructor(){super(...arguments),this.beanName="stateSvc",this.updateRowGroupExpansionStateTimer=0,this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=xt(this,()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=xt(this,()=>{this.beans.gos.get("ssrmExpandAllAffectsAllRows")?(this.updateCachedState("ssrmRowGroupExpansion",this.getRowGroupExpansionState()),this.updateCachedState("rowGroupExpansion",void 0)):(this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState()),this.updateCachedState("ssrmRowGroupExpansion",void 0))},0),this.onRowSelectedDebounced=xt(this,()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}postConstruct(){const{gos:e,ctrlsSvc:t,colDelayRenderSvc:o}=this.beans;this.isClientSideRowModel=To(e);const i=cD(e.get("initialState")??{}),n=i.partialColumnState;delete i.partialColumnState,this.cachedState=i;const s=this.suppressEventsAndDispatchInitEvent.bind(this);t.whenReady(this,()=>s(()=>this.setupStateOnGridReady(i))),(i.columnOrder||i.columnVisibility||i.columnSizing||i.columnPinning||i.columnGroup)&&o?.hideColumns("columnState");const[r,a,l]=this.addManagedEventListeners({newColumnsLoaded:({source:e})=>{"gridInitializing"===e&&(r(),s(()=>{this.setupStateOnColumnsInitialised(i,!!n),o?.revealColumns("columnState")}))},rowCountReady:()=>{a?.(),s(()=>this.setupStateOnRowCountReady(i))},firstDataRendered:()=>{l?.(),s(()=>this.setupStateOnFirstDataRendered(i))}})}destroy(){super.destroy(),clearTimeout(this.updateRowGroupExpansionStateTimer),this.queuedUpdateSources.clear()}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setState(e,t){const o=cD(e);delete o.partialColumnState,this.cachedState=o,this.startSuppressEvents();const i="api",n=t?new Set(t):void 0;this.setGridReadyState(o,i,n),this.setColumnsInitialisedState(o,i,!!n,n),this.setRowCountState(o,i,n),setTimeout(()=>{this.isAlive()&&this.setFirstDataRenderedState(o,i,n),this.stopSuppressEvents(i)})}setGridReadyState(e,t,o){"api"!==t||o?.has("sideBar")||this.beans.sideBar?.comp?.setState(e.sideBar),this.updateCachedState("sideBar",this.getSideBarState())}setupStateOnGridReady(e){this.setGridReadyState(e,"gridInitializing");const t=()=>this.updateCachedState("sideBar",this.getSideBarState());this.addManagedEventListeners({toolPanelVisibleChanged:t,sideBarUpdated:t})}updateColumnAndGroupState(){this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState())}setColumnsInitialisedState(e,t,o,i){this.setColumnState(e,t,o,i),this.setColumnGroupState(e,t,i),this.updateColumnAndGroupState()}setupStateOnColumnsInitialised(e,t){this.setColumnsInitialisedState(e,"gridInitializing",t);const o=e=>()=>this.updateColumnState([e]);this.addManagedEventListeners({columnValueChanged:o("aggregation"),columnMoved:o("columnOrder"),columnPinned:o("columnPinning"),columnResized:o("columnSizing"),columnVisible:o("columnVisibility"),columnPivotChanged:o("pivot"),columnPivotModeChanged:o("pivot"),columnRowGroupChanged:o("rowGroup"),sortChanged:o("sort"),newColumnsLoaded:this.updateColumnAndGroupState.bind(this),columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setRowCountState(e,t,o){const{filter:i,rowGroupExpansion:n,ssrmRowGroupExpansion:s,rowSelection:r,pagination:a,rowPinning:l}=e,d=(e,i)=>!o?.has(e)&&(i||"api"===t);d("filter",i)&&this.setFilterState(i),d("rowGroupExpansion",n)&&this.setRowGroupExpansionState(s,n,t),d("rowSelection",r)&&this.setRowSelectionState(r,t),d("pagination",a)&&this.setPaginationState(a,t),d("rowPinning",l)&&this.setRowPinningState(l);const c=this.updateCachedState.bind(this);c("filter",this.getFilterState()),this.beans.gos.get("ssrmExpandAllAffectsAllRows")?(c("ssrmRowGroupExpansion",this.getRowGroupExpansionState()),c("rowGroupExpansion",void 0)):(c("rowGroupExpansion",this.getRowGroupExpansionState()),c("ssrmRowGroupExpansion",void 0)),c("rowSelection",this.getRowSelectionState()),c("pagination",this.getPaginationState())}setupStateOnRowCountReady(e){this.setRowCountState(e,"gridInitializing");const t=this.updateCachedState.bind(this),o=()=>{this.updateRowGroupExpansionStateTimer=0,this.beans.gos.get("ssrmExpandAllAffectsAllRows")?(t("ssrmRowGroupExpansion",this.getRowGroupExpansionState()),t("rowGroupExpansion",void 0)):(t("rowGroupExpansion",this.getRowGroupExpansionState()),t("ssrmRowGroupExpansion",void 0))},i=()=>t("filter",this.getFilterState()),{gos:n,colFilter:s,selectableFilter:r}=this.beans;this.addManagedEventListeners({filterChanged:i,rowExpansionStateChanged:this.onRowGroupOpenedDebounced,expandOrCollapseAll:o,columnRowGroupChanged:o,rowDataUpdated:()=>{(0!==n.get("groupDefaultExpanded")||n.get("isGroupOpenByDefault"))&&(this.updateRowGroupExpansionStateTimer||(this.updateRowGroupExpansionStateTimer=setTimeout(o)))},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:e=>{(e.newPage||e.newPageSize)&&t("pagination",this.getPaginationState())},pinnedRowsChanged:()=>t("rowPinning",this.getRowPinningState())}),s&&this.addManagedListeners(s,{filterStateChanged:i}),r&&this.addManagedListeners(r,{selectedFilterChanged:i})}setFirstDataRenderedState(e,t,o){const{scroll:i,cellSelection:n,focusedCell:s,columnOrder:r}=e,a=(e,i)=>!o?.has(e)&&(i||"api"===t);a("focusedCell",s)&&this.setFocusedCellState(s),a("cellSelection",n)&&this.setCellSelectionState(n),a("scroll",i)&&this.setScrollState(i),this.setColumnPivotState(!!r?.orderedColIds,t);const l=this.updateCachedState.bind(this);l("sideBar",this.getSideBarState()),l("focusedCell",this.getFocusedCellState());const d=this.getRangeSelectionState();l("rangeSelection",d),l("cellSelection",d),l("scroll",this.getScrollState())}setupStateOnFirstDataRendered(e){this.setFirstDataRenderedState(e,"gridInitializing");const t=this.updateCachedState.bind(this),o=()=>t("focusedCell",this.getFocusedCellState());this.addManagedEventListeners({cellFocused:o,cellFocusCleared:o,cellSelectionChanged:e=>{if(e.finished){const e=this.getRangeSelectionState();t("rangeSelection",e),t("cellSelection",e)}},bodyScrollEnd:()=>t("scroll",this.getScrollState())})}getColumnState(){const e=this.beans;return HS(Zn(e),e.colModel.isPivotMode())}setColumnState(e,t,o,i){const{sort:n,rowGroup:s,aggregation:r,pivot:a,columnPinning:l,columnVisibility:d,columnSizing:c,columnOrder:u}=e;let h=!1;const g=(e,o)=>{const n=!i?.has(e)&&!(!o&&"api"!==t);return h||(h=n),n},p={},f=e=>{let t=p[e];return t||(t={colId:e},p[e]=t,t)},m={},v=g("sort",n);v&&n?.sortModel.forEach(({colId:e,sort:t},o)=>{const i=f(e);i.sort=t,i.sortIndex=o}),!v&&o||(m.sort=null,m.sortIndex=null);const C=g("rowGroup",s);C&&s?.groupColIds.forEach((e,t)=>{const o=f(e);o.rowGroup=!0,o.rowGroupIndex=t}),!C&&o||(m.rowGroup=null,m.rowGroupIndex=null);const w=g("aggregation",r);w&&r?.aggregationModel.forEach(({colId:e,aggFunc:t})=>{f(e).aggFunc=t}),!w&&o||(m.aggFunc=null);const b=g("pivot",a);b&&(a?.pivotColIds.forEach((e,t)=>{const o=f(e);o.pivot=!0,o.pivotIndex=t}),this.gos.updateGridOptions({options:{pivotMode:!!a?.pivotMode},source:t})),!b&&o||(m.pivot=null,m.pivotIndex=null);const y=g("columnPinning",l);if(y){for(const e of l?.leftColIds??[])f(e).pinned="left";for(const e of l?.rightColIds??[])f(e).pinned="right"}!y&&o||(m.pinned=null);const S=g("columnVisibility",d);if(S)for(const P of d?.hiddenColIds??[])f(P).hide=!0;!S&&o||(m.hide=null);const R=g("columnSizing",c);if(R)for(const{colId:P,flex:D,width:k}of c?.columnSizingModel??[]){const e=f(P);e.flex=D??null,e.width=k}!R&&o||(m.flex=null);const x=u?.orderedColIds,E=!!x?.length&&!i?.has("columnOrder"),F=E?x.map(e=>f(e)):Object.values(p);(F.length||h)&&(this.columnStates=F,Qn(this.beans,{state:F,applyOrder:E,defaultState:m},t))}setColumnPivotState(e,t){const o=this.columnStates;this.columnStates=void 0;const i=this.columnGroupStates;this.columnGroupStates=void 0;const n=this.beans,{pivotResultCols:s,colGroupSvc:r}=n;if(s?.isPivotResultColsPresent()){if(o){const i=[];for(const e of o)s.getPivotResultCol(e.colId)&&i.push(e);Qn(n,{state:i,applyOrder:e},t)}i&&r?.setColumnGroupState(i,t)}}getColumnGroupState(){const e=this.beans.colGroupSvc;if(!e)return;const t=e.getColumnGroupState();return GS(t)}setColumnGroupState(e,t,o){const i=this.beans.colGroupSvc;if(!i||o?.has("columnGroup")||"api"!==t&&!Object.prototype.hasOwnProperty.call(e,"columnGroup"))return;const n=new Set(e.columnGroup?.openColumnGroupIds),s=i.getColumnGroupState(),r=s.map(({groupId:e})=>{const t=n.has(e);return t&&n.delete(e),{groupId:e,open:t}});for(const a of n)r.push({groupId:a,open:!0});r.length&&(this.columnGroupStates=r),i.setColumnGroupState(r,t)}getFilterState(){const{filterManager:e,selectableFilter:t}=this.beans;let o=e?.getFilterModel();o&&0===Object.keys(o).length&&(o=void 0);const i=e?.getFilterState(),n=e?.getAdvFilterModel()??void 0,s=t?.getState();return o||n||i||s?{filterModel:o,columnFilterState:i,advancedFilterModel:n,selectableFilters:s}:void 0}setFilterState(e){const{filterManager:t,selectableFilter:o}=this.beans,{filterModel:i,columnFilterState:n,advancedFilterModel:s,selectableFilters:r}=e??{filterModel:null,columnFilterState:null,advancedFilterModel:null};void 0!==r&&o?.setState(r??{}),void 0===i&&void 0===n||t?.setFilterState(i??null,n??null,"columnFilter"),void 0!==s&&t?.setAdvFilterModel(s??null,"advancedFilter")}getRangeSelectionState(){const e=this.beans.rangeSvc?.getCellRanges().map(e=>{const{id:t,type:o,startRow:i,endRow:n,columns:s,startColumn:r}=e;return{id:t,type:o,startRow:i,endRow:n,colIds:s.map(e=>e.getColId()),startColId:r.getColId()}});return e?.length?{cellRanges:e}:void 0}setCellSelectionState(e){const{gos:t,rangeSvc:o,colModel:i,visibleCols:n}=this.beans;if(!ui(t)||!o)return;const s=[];for(const r of e?.cellRanges??[]){const e=[];for(const o of r.colIds){const t=i.getCol(o);t&&e.push(t)}if(!e.length)continue;let t=i.getCol(r.startColId);if(!t){const o=n.allCols,i=new Set(e);t=o.find(e=>i.has(e))}s.push({...r,columns:e,startColumn:t})}o.setCellRanges(s)}getScrollState(){if(!this.isClientSideRowModel)return;const e=this.beans.ctrlsSvc.getScrollFeature(),{left:t}=e?.getHScrollPosition()??{left:0},{top:o}=e?.getVScrollPosition()??{top:0};return o||t?{top:o,left:t}:void 0}setScrollState(e){if(!this.isClientSideRowModel)return;const{top:t,left:o}=e??{top:0,left:0},{frameworkOverrides:i,rowRenderer:n,animationFrameSvc:s,ctrlsSvc:r}=this.beans;i.wrapIncoming(()=>{r.get("center").setCenterViewportScrollLeft(o),r.getScrollFeature()?.setVerticalScrollPosition(t),n.redraw({afterScroll:!0}),s?.flushAllFrames()})}getSideBarState(){return this.beans.sideBar?.comp?.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;const e=this.beans.focusSvc.getFocusedCell();if(e){const{column:t,rowIndex:o,rowPinned:i}=e;return{colId:t.getColId(),rowIndex:o,rowPinned:i}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;const{focusSvc:t,colModel:o}=this.beans;if(!e)return void t.clearFocusedCell();const{colId:i,rowIndex:n,rowPinned:s}=e;t.setFocusedCell({column:o.getCol(i),rowIndex:n,rowPinned:s,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){const{pagination:e,gos:t}=this.beans;if(!e)return;const o=e.getCurrentPage(),i=t.get("paginationAutoPageSize")?void 0:e.getPageSize();return o||i?{page:o,pageSize:i}:void 0}setPaginationState(e,t){const{pagination:o,gos:i}=this.beans;if(!o)return;const{pageSize:n,page:s}=e??{page:0,pageSize:i.get("paginationPageSize")},r="gridInitializing"===t;n&&!i.get("paginationAutoPageSize")&&o.setPageSize(n,r?"initialState":"pageSizeSelector"),"number"===typeof s&&(r?o.setPage(s):o.goToPage(s))}getRowSelectionState(){const e=this.beans.selectionSvc;if(!e)return;const t=e.getSelectionState(),o=!t||!Array.isArray(t)&&(!1===t.selectAll||!1===t.selectAllChildren)&&!t?.toggledNodes?.length;return o?void 0:t}setRowSelectionState(e,t){this.beans.selectionSvc?.setSelectionState(e,t,"api"===t)}getRowGroupExpansionState(){const{expansionSvc:e}=this.beans;if(e)return e.getExpansionState()}getRowPinningState(){return this.beans.pinnedRowModel?.getPinnedState()}setRowPinningState(e){const t=this.beans.pinnedRowModel;e?t?.setPinnedState(e):t?.reset()}setRowGroupExpansionState(e,t,o){const i=this.beans.expansionSvc;if(!i)return;const n=t??{expandedRowGroupIds:[],collapsedRowGroupIds:[]};i.setExpansionState(n,o)}updateColumnState(e){const t=this.getColumnState();let o=!1;const i=this.cachedState;for(const n of Object.keys(t)){const e=t[n];l(e,i[n])||(o=!0)}this.cachedState={...i,...t},o&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,t){const o=this.cachedState[e];this.setCachedStateValue(e,t),l(t,o)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,t){this.cachedState={...this.cachedState,[e]:t}}refreshStaleState(){const e=this.staleStateKeys;for(const t of e)"rowSelection"===t&&this.setCachedStateValue(t,this.getRowSelectionState());e.clear()}dispatchStateUpdateEvent(e){if(!this.suppressEvents){for(const t of e)this.queuedUpdateSources.add(t);this.dispatchStateUpdateEventDebounced()}}dispatchQueuedStateUpdateEvents(){const e=this.queuedUpdateSources,t=Array.from(e);e.clear(),this.eventSvc.dispatchEvent({type:"stateUpdated",sources:t,state:this.cachedState})}startSuppressEvents(){this.suppressEvents=!0,this.beans.colAnimation?.setSuppressAnimation(!0)}stopSuppressEvents(e){setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(this.beans.colAnimation?.setSuppressAnimation(!1),this.dispatchStateUpdateEvent([e]))})}suppressEventsAndDispatchInitEvent(e){this.startSuppressEvents(),e(),this.stopSuppressEvents("gridInitializing")}},pD={moduleName:"GridState",version:ro,beans:[gD],apiFunctions:{getState:lD,setState:dD}};function fD(e){return e.rowModel.isLastRowIndexKnown()}function mD(e){return e.pagination?.getPageSize()??100}function vD(e){return e.pagination?.getCurrentPage()??0}function CD(e){return e.pagination?.getTotalPages()??1}function wD(e){return e.pagination?e.pagination.getMasterRowCount():e.rowModel.getRowCount()}function bD(e){e.pagination?.goToNextPage()}function yD(e){e.pagination?.goToPreviousPage()}function SD(e){e.pagination?.goToFirstPage()}function RD(e){e.pagination?.goToLastPage()}function xD(e,t){e.pagination?.goToPage(t)}var ED=class extends Ct{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeSvc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowsCtrl=e.center;const t=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:t,scrollVisibilityChanged:t}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get("paginationAutoPageSize")||null==this.centerRowsCtrl}onPaginationAutoSizeChanged(){this.notActive()?this.beans.pagination.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;const e=this.centerRowsCtrl.viewportSizeFeature.getBodyHeight();if(e>0){const t=this.beans,o=()=>{const o=Math.max(zo(t),1),i=Math.floor(e/o);t.pagination.setPageSize(i,"autoCalculated")};this.isBodyRendered?xt(this,o,50)():(o(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}},FD="paginationPageSizeSelector",PD={tag:"span",cls:"ag-paging-page-size"},DD=class extends ps{constructor(){super(PD),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;const e=this.selectPageSizeComp.getValue();if(!e)return;const t=Number(e);isNaN(t)||t<1||t===this.pagination.getPageSize()||(this.pagination.setPageSize(t,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}wireBeans(e){this.pagination=e.pagination}postConstruct(){this.addManagedPropertyListener(FD,()=>{this.onPageSizeSelectorValuesChange()}),this.addManagedEventListeners({paginationChanged:e=>this.handlePaginationChanged(e)})}handlePaginationChanged(e){if(!this.selectPageSizeComp||!e?.newPageSize)return;const t=this.pagination.getPageSize();this.getPageSizeSelectorValues().includes(t)?this.selectPageSizeComp.setValue(t.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(e){this.selectPageSizeComp&&!e&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp)}reset(){xe(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel")&&!this.gos.get("paginationAutoPageSize")&&!1!==this.gos.get(FD)}reloadPageSizesSelector(){const e=this.getPageSizeSelectorValues(),t=this.pagination.getPageSize(),o=!t||!e.includes(t);if(o){const o=this.gos.exists("paginationPageSize"),i=!0!==this.gos.get(FD);xo(94,{pageSizeSet:o,pageSizesSet:i,pageSizeOptions:e,paginationPageSizeOption:t}),i||xo(95,{paginationPageSizeOption:t,paginationPageSizeSelector:FD}),e.unshift("")}const i=String(o?"":t);this.selectPageSizeComp?(on(this.pageSizeOptions,e)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(e)),this.pageSizeOptions=e),this.selectPageSizeComp.setValue(i,!0)):this.createPageSizeSelectorComp(e,i),this.hasEmptyOption=o}createPageSizeSelectOptions(e){return e.map(e=>({value:String(e)}))}createPageSizeSelectorComp(e,t){const o=this.getLocaleTextFunc(),i=o("pageSizeSelectorLabel","Page Size:"),n=o("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new Ka).addOptions(this.createPageSizeSelectOptions(e)).setValue(t).setAriaLabel(n).setLabel(i).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){const e=[20,50,100],t=this.gos.get(FD);return Array.isArray(t)&&t?.length?[...t].sort((e,t)=>e-t):e}destroy(){this.toggleSelectDisplay(!1),super.destroy()}},kD={selector:"AG-PAGE-SIZE-SELECTOR",component:DD},MD=".ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;gap:calc(var(--ag-spacing)*4);height:var(--ag-pagination-panel-height);justify-content:flex-end;padding:0 var(--ag-cell-horizontal-padding)}:where(.ag-paging-page-size) .ag-wrapper{min-width:50px}.ag-paging-page-summary-panel{align-items:center;display:flex;gap:var(--ag-cell-widget-spacing);.ag-disabled &{pointer-events:none}}.ag-paging-button{cursor:pointer;position:relative;&.ag-disabled{cursor:default;opacity:.5}}.ag-paging-number,.ag-paging-row-summary-panel-number{font-weight:500}",AD=class extends Gg{constructor(){super(),this.btFirst=ds,this.btPrevious=ds,this.btNext=ds,this.btLast=ds,this.lbRecordCount=ds,this.lbFirstRowOnPage=ds,this.lbLastRowOnPage=ds,this.lbCurrent=ds,this.lbTotal=ds,this.pageSizeComp=ds,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1,this.registerCSS(MD)}wireBeans(e){this.rowModel=e.rowModel,this.pagination=e.pagination,this.ariaAnnounce=e.ariaAnnounce}postConstruct(){const e=this.gos.get("enableRtl");this.setTemplate(this.getTemplate(),[kD]);const{btFirst:t,btPrevious:o,btNext:i,btLast:n}=this;this.activateTabIndex([t,o,i,n]),t.insertAdjacentElement("afterbegin",Uh(e?"last":"first",this.beans)),o.insertAdjacentElement("afterbegin",Uh(e?"next":"previous",this.beans)),i.insertAdjacentElement("afterbegin",Uh(e?"previous":"next",this.beans)),n.insertAdjacentElement("afterbegin",Uh(e?"first":"last",this.beans)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],()=>this.onPageSizeRelatedOptionsChange()),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:e=>this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(e):nh(this.beans,e),forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(e){this.allowFocusInnerElement=e}onPaginationChanged(){const e=this.gos.get("pagination"),t=e&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(t),t&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){if(!this.areListenersSetup){this.addManagedEventListeners({paginationChanged:this.onPaginationChanged.bind(this)});for(const e of[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}]){const{el:t,fn:o}=e;this.addManagedListeners(t,{click:o,keydown:e=>{e.key!==lr.ENTER&&e.key!==lr.SPACE||(e.preventDefault(),o())}})}ih(this.beans,this,this.getGui()),this.areListenersSetup=!0}}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}formatNumber(e){const t=this.gos.getCallback("paginationNumberFormatter");if(t){const o={value:e};return t(o)}return US(e,this.getLocaleTextFunc.bind(this))}getTemplate(){const e=this.getLocaleTextFunc(),t=`ag-${this.getCompId()}`;return{tag:"div",cls:"ag-paging-panel ag-unselectable",attrs:{id:`${t}`},children:[{tag:"ag-page-size-selector",ref:"pageSizeComp"},{tag:"span",cls:"ag-paging-row-summary-panel",children:[{tag:"span",ref:"lbFirstRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-first-row`}},{tag:"span",attrs:{id:`${t}-to`},children:e("to","to")},{tag:"span",ref:"lbLastRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-last-row`}},{tag:"span",attrs:{id:`${t}-of`},children:e("of","of")},{tag:"span",ref:"lbRecordCount",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-row-count`}}]},{tag:"span",cls:"ag-paging-page-summary-panel",role:"presentation",children:[{tag:"div",ref:"btFirst",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("firstPage","First Page")}},{tag:"div",ref:"btPrevious",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("previousPage","Previous Page")}},{tag:"span",cls:"ag-paging-description",children:[{tag:"span",attrs:{id:`${t}-start-page`},children:e("page","Page")},{tag:"span",ref:"lbCurrent",cls:"ag-paging-number",attrs:{id:`${t}-start-page-number`}},{tag:"span",attrs:{id:`${t}-of-page`},children:e("of","of")},{tag:"span",ref:"lbTotal",cls:"ag-paging-number",attrs:{id:`${t}-of-page-number`}}]},{tag:"div",ref:"btNext",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("nextPage","Next Page")}},{tag:"div",ref:"btLast",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("lastPage","Last Page")}}]}]}}onBtNext(){this.nextButtonDisabled||this.pagination.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.pagination.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.pagination.goToLastPage()}enableOrDisableButtons(){const e=this.pagination.getCurrentPage(),t=this.rowModel.isLastRowIndexKnown(),o=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);const i=this.isZeroPagesToDisplay(),n=e===o-1;this.nextButtonDisabled=n||i,this.lastButtonDisabled=!t||i||e===o-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){G(e,t),e.classList.toggle("ag-disabled",t)}isZeroPagesToDisplay(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages();return e&&0===t}updateLabels(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages(),o=this.pagination.getMasterRowCount(),i=e?o:null,n=this.pagination.getCurrentPage(),s=this.pagination.getPageSize();let r,a;this.isZeroPagesToDisplay()?r=a=0:(r=s*n+1,a=r+s-1,e&&a>i&&(a=i));const l=r+s-1,d=!e&&o<l,c=this.formatNumber(r);let u;this.lbFirstRowOnPage.textContent=c;const h=this.getLocaleTextFunc();u=d?h("pageLastRowUnknown","?"):this.formatNumber(a),this.lbLastRowOnPage.textContent=u;const g=t>0,p=g?n+1:0,f=this.formatNumber(p);let m,v;if(this.lbCurrent.textContent=f,e)m=this.formatNumber(t),v=this.formatNumber(i);else{const e=h("more","more");m=e,v=e}this.lbTotal.textContent=m,this.lbRecordCount.textContent=v,this.announceAriaStatus(c,u,v,f,m)}announceAriaStatus(e,t,o,i,n){const s=this.getLocaleTextFunc(),r=s("page","Page"),a=s("to","to"),l=s("of","of"),d=`${e} ${a} ${t} ${l} ${o}`,c=`${r} ${i} ${l} ${n}`;d!==this.ariaRowStatus&&(this.ariaRowStatus=d,this.ariaAnnounce?.announceValue(d,"paginationRow")),c!==this.ariaPageStatus&&(this.ariaPageStatus=c,this.ariaAnnounce?.announceValue(c,"paginationPage"))}},TD={selector:"AG-PAGINATION",component:AD},ID=class extends Ct{constructor(){super(...arguments),this.beanName="pagination",this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=0,this.masterRowCount=0}postConstruct(){const e=this.gos;this.active=e.get("pagination"),this.pageSizeFromGridOptions=e.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return TD}isPaginateChildRows(){const e=this.gos,t=e.get("groupHideParentOfSingleChild")||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren");return!!t||e.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(e){const t=this.currentPage;if(!this.active||t===e||"number"!==typeof t)return;const{editSvc:o}=this.beans;o?.isEditing()&&(o.isBatchEditing()?o.cleanupEditors():o.stopEditing(void 0,{source:"api"})),this.currentPage=e,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0})}goToPageWithIndex(e){if(!this.active)return;let t=e;this.paginateChildRows||(t=this.beans.rowModel.getTopLevelIndexFromDisplayedIndex?.(e)??e),this.goToPage(Math.floor(t/this.pageSize))}isRowInPage(e){return!this.active||e>=this.topDisplayedRowIndex&&e<=this.bottomDisplayedRowIndex}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){const e=this.beans.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){return s(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")?this.pageSizeAutoCalculated:s(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:s(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:s(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:this.defaultPageSize}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(void 0===this.pageSizeAutoCalculated)return;const e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(e,t){const o=this.pageSize;switch(t){case"autoCalculated":this.pageSizeAutoCalculated=e;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=e,0!==this.currentPage&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=e;break;case"gridOptions":this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,0!==this.currentPage&&this.goToFirstPage();break}o!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){const e=this.totalPages;this.currentPage>=e&&(this.currentPage=e-1);const t=this.currentPage;(!isFinite(t)||isNaN(t)||t<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){const e=this.beans.rowModel,t=e.getTopLevelRowCount();if(this.masterRowCount=t,t<=0)return void this.setZeroRows();const o=this.pageSize,i=t-1;this.totalPages=Math.floor(i/o)+1,this.adjustCurrentPageIfInvalid();const n=this.currentPage,s=o*n;let r=o*(n+1)-1;if(r>i&&(r=i),this.topDisplayedRowIndex=e.getTopLevelRowDisplayedIndex(s),r===i)this.bottomDisplayedRowIndex=e.getRowCount()-1;else{const t=e.getTopLevelRowDisplayedIndex(r+1);this.bottomDisplayedRowIndex=t-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){const e=this.beans.rowModel.getRowCount();if(this.masterRowCount=e,0===e)return void this.setZeroRows();const{pageSize:t,currentPage:o}=this,i=e-1;this.totalPages=Math.floor(i/t)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=t*o,this.bottomDisplayedRowIndex=t*(o+1)-1,this.bottomDisplayedRowIndex>i&&(this.bottomDisplayedRowIndex=i)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.beans.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(e){const{keepRenderedRows:t=!1,newPage:o=!1,newPageSize:i=!1}=e;this.eventSvc.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:o,newPageSize:i,keepRenderedRows:t})}},LD={moduleName:"Pagination",version:ro,beans:[ID,ED],icons:{first:"first",previous:"previous",next:"next",last:"last"},apiFunctions:{paginationIsLastPageFound:fD,paginationGetPageSize:mD,paginationGetCurrentPage:vD,paginationGetTotalPages:CD,paginationGetRowCount:wD,paginationGoToNextPage:bD,paginationGoToPreviousPage:yD,paginationGoToFirstPage:SD,paginationGoToLastPage:RD,paginationGoToPage:xD},dependsOn:[mR]};function BD(e,t={}){const o=t?t.rowNodes:void 0;e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.redrawRows(o))}function OD(e,t,o,i,n){t&&(i&&t.parent&&-1!==t.parent.level&&OD(e,t.parent,o,i,n),t.setExpanded(o,void 0,n))}function HD(e,t){return e.rowModel.getRowNode(t)}function VD(e,t,o,i){e.rowRenderer.addRenderedRowListener(t,o,i)}function GD(e){return e.rowRenderer.getRenderedNodes()}function ND(e,t,o){e.rowModel.forEachNode(t,o)}function zD(e){return e.rowRenderer.firstRenderedRow}function WD(e){return e.rowRenderer.lastRenderedRow}function _D(e,t){return e.rowModel.getRow(t)}function UD(e){return e.rowModel.getRowCount()}var $D={moduleName:"RowApi",version:ro,apiFunctions:{redrawRows:BD,setRowNodeExpanded:OD,getRowNode:HD,addRenderedRowListener:VD,getRenderedNodes:GD,forEachNode:ND,getFirstDisplayedRowIndex:zD,getLastDisplayedRowIndex:WD,getDisplayedRowAtIndex:_D,getDisplayedRowCount:UD}},qD={moduleName:"ScrollApi",version:ro,apiFunctions:{getVerticalPixelRange:ME,getHorizontalPixelRange:AE,ensureColumnVisible:TE,ensureIndexVisible:IE,ensureNodeVisible:LE}};function jD(e,t,o){if(!t)return;const i=e.ctrlsSvc.getGridBodyCtrl().eGridBody,n=`aria-${t}`;null===o?i.removeAttribute(n):i.setAttribute(n,o)}function KD(e,t={}){e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.refreshCells(t))}function QD(e){e.frameworkOverrides.wrapIncoming(()=>{for(const t of e.ctrlsSvc.getHeaderRowContainerCtrls())t.refresh()})}function XD(e){return e.animationFrameSvc?.isQueueEmpty()??!0}function YD(e){e.animationFrameSvc?.flushAllFrames()}function ZD(e){return{rowHeight:zo(e),headerHeight:ph(e)}}function JD(e,t={}){const o=[];for(const s of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns)){const e=s.getCellRenderer();null!=e&&o.push(rr(e))}if(t.columns?.length)return o;const i=[],n=Hy(t.rowNodes);for(const s of e.rowRenderer.getAllRowCtrls()){if(n&&!Vy(s.rowNode,n))continue;if(!s.isFullWidth())continue;const e=s.getFullWidthCellRenderers();for(let t=0;t<e.length;t++){const o=e[t];null!=o&&i.push(rr(o))}}return[...i,...o]}var ek={moduleName:"RenderApi",version:ro,apiFunctions:{setGridAriaProperty:jD,refreshCells:KD,refreshHeader:QD,isAnimationFrameQueueEmpty:XD,flushAllAnimationFrames:YD,getSizesForCurrentTheme:ZD,getCellRendererInstances:JD}},tk=":where(.ag-ltr) :where(.ag-animate-autosize){.ag-cell,.ag-header-cell,.ag-header-group-cell{transition:width .2s ease-in-out,left .2s ease-in-out}}:where(.ag-rtl) :where(.ag-animate-autosize){.ag-cell,.ag-header-cell,.ag-header-group-cell{transition:width .2s ease-in-out,right .2s ease-in-out}}";function ok(e,t){"number"===typeof t?e.colAutosize?.sizeColumnsToFit(t,"api"):e.colAutosize?.sizeColumnsToFitGridBody(t)}function ik({colAutosize:e,visibleCols:t},o,i){Array.isArray(o)?e?.autoSizeCols({colKeys:o,skipHeader:i,source:"api"}):e?.autoSizeCols({...o,colKeys:o.colIds??t.allCols,source:"api"})}function nk(e,t){t&&"object"===typeof t?ik(e,t):e.colAutosize?.autoSizeAllColumns({source:"api",skipHeader:t})}var sk=class extends Ct{constructor(){super(...arguments),this.beanName="colAutosize",this.timesDelayed=0,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}postConstruct(){const{gos:e}=this,t=e.get("autoSizeStrategy");if(t){let o=!1;const i=t.type;if("fitGridWidth"===i||"fitProvidedWidth"===i)o=!0;else if("fitCellContents"===i){this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered(t)});const i=e.get("rowData");o=null!=i&&i.length>0&&To(e)}o&&this.beans.colDelayRenderSvc?.hideColumns(i)}}autoSizeCols(e){const{eventSvc:t,visibleCols:o,colModel:i}=this.beans;dk(this.beans,!0),this.innerAutoSizeCols(e).then(n=>{const s=e=>Kn(t,Array.from(e),!0,"autosizeColumns");if(!e.scaleUpToFitGridWidth)return dk(this.beans,!1),s(n);const r=ak(this.beans),a=e=>o.leftCols.some(t=>xn(t,e)),l=e=>o.rightCols.some(t=>xn(t,e)),d=e.colKeys.filter(e=>{const t=!i.getCol(e)?.getColDef().suppressAutoSize;return t&&!Cn(e)&&!a(e)&&!l(e)});this.sizeColumnsToFit(r,e.source,!0,{defaultMaxWidth:e.defaultMaxWidth,defaultMinWidth:e.defaultMinWidth,columnLimits:e.columnLimits?.map(e=>({...e,key:e.colId})),colKeys:d,onlyScaleUp:!0,animate:!1}),dk(this.beans,!1),s(n)})}innerAutoSizeCols(e){return new Promise((t,o)=>{if(this.shouldQueueResizeOperations)return this.pushResizeOperation(()=>this.innerAutoSizeCols(e).then(t,o));const{colKeys:i,skipHeader:n,skipHeaderGroups:s,stopAtGroup:r,defaultMaxWidth:a,defaultMinWidth:l,columnLimits:d=[],source:c="api"}=e,{animationFrameSvc:u,renderStatus:h,colModel:g,autoWidthCalc:p,visibleCols:f}=this.beans;if(u?.flushAllFrames(),this.timesDelayed<5&&h&&(!h.areHeaderCellsRendered()||!h.areCellsRendered()))return this.timesDelayed++,void setTimeout(()=>{this.isAlive()&&this.innerAutoSizeCols(e).then(t,o)});this.timesDelayed=0;const m=new Set;let v=-1;const C=Object.fromEntries(d.map(({colId:e,...t})=>[e,t])),w=n??this.gos.get("skipHeaderOnAutoSize"),b=s??w;while(0!==v){v=0;const e=[];for(const t of i){if(!t||wn(t))continue;const o=g.getCol(t);if(!o||m.has(o)||o.getColDef().suppressAutoSize)continue;const i=p.getPreferredWidthForColumn(o,w);if(i>0){const e=C[o.colId]??{};e.minWidth??(e.minWidth=l),e.maxWidth??(e.maxWidth=a);const t=rk(o,i,e);o.setActualWidth(t,c),m.add(o),v++}e.push(o)}e.length&&f.refresh(c)}b||this.autoSizeColumnGroupsByColumns(i,c,r),t(m)})}autoSizeColumn(e,t,o){this.autoSizeCols({colKeys:[e],skipHeader:o,skipHeaderGroups:!0,source:t})}autoSizeColumnGroupsByColumns(e,t,o){const{colModel:i,ctrlsSvc:n}=this.beans,s=new Set,r=i.getColsForKeys(e);for(const l of r){let e=l.getParent();while(e&&e!=o)e.isPadding()||s.add(e),e=e.getParent()}let a;for(const l of s){for(const e of n.getHeaderRowContainerCtrls())if(a=e.getHeaderCtrlForColumn(l),a)break;a?.resizeLeafColumnsToFit(t)}}autoSizeAllColumns(e){this.shouldQueueResizeOperations?this.pushResizeOperation(()=>this.autoSizeAllColumns(e)):this.autoSizeCols({colKeys:this.beans.visibleCols.allCols,...e})}addColumnAutosizeListeners(e,t){const o=this.gos.get("skipHeaderOnAutoSize"),i=()=>{this.autoSizeColumn(t,"uiColumnResized",o)};e.addEventListener("dblclick",i);const n=new $g(e);return n.addEventListener("doubleTap",i),()=>{e.removeEventListener("dblclick",i),n.destroy()}}addColumnGroupResize(e,t,o){const i=this.gos.get("skipHeaderOnAutoSize"),n=()=>{const e=[],n=t.getDisplayedLeafColumns();for(const t of n)t.getColDef().suppressAutoSize||e.push(t.getColId());e.length>0&&this.autoSizeCols({colKeys:e,skipHeader:i,stopAtGroup:t,source:"uiColumnResized"}),o()};return e.addEventListener("dblclick",n),()=>e.removeEventListener("dblclick",n)}sizeColumnsToFitGridBody(e,t){if(!this.isAlive())return;const o=ak(this.beans);o>0?this.sizeColumnsToFit(o,"sizeColumnsToFit",!1,e):void 0===t?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,100)},0):100===t?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,500)},100):500===t?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,-1)},500):xo(29)}sizeColumnsToFit(e,t="sizeColumnsToFit",o,i){if(this.shouldQueueResizeOperations)return void this.pushResizeOperation(()=>this.sizeColumnsToFit(e,t,o,i));const{beans:n}=this,s=i?.animate??!0;s&&dk(n,!0);const r={};for(const{key:m,...v}of i?.columnLimits??[])r["string"===typeof m?m:m.getColId()]=v;const a=n.visibleCols.allCols;if(e<=0||!a.length)return;const l=pn(a);if(i?.onlyScaleUp&&l>e)return;const d=e===l;if(d){const e=a.every(e=>{if(e.colDef.suppressSizeToFit)return!0;const t=r?.[e.getId()],o=t?.minWidth??i?.defaultMinWidth,n=t?.maxWidth??i?.defaultMaxWidth,s=e.getActualWidth();return(null==o||s>=o)&&(null==n||s<=n)});if(e)return}const c=[],u=[];for(const m of a){const e=i?.colKeys?.some(e=>xn(m,e))??!0;m.getColDef().suppressSizeToFit||!e?u.push(m):c.push(m)}const h=c.slice(0);let g=!1;const p=e=>{sn(c,e),u.push(e)};for(const m of c){m.resetActualWidth(t);const e=r?.[m.getId()],o=e?.minWidth??i?.defaultMinWidth,n=e?.maxWidth??i?.defaultMaxWidth,s=m.getActualWidth();"number"===typeof o&&s<o?m.setActualWidth(o,t,!0):"number"===typeof n&&s>n&&m.setActualWidth(n,t,!0)}while(!g){g=!0;const o=e-pn(u);if(o<=0)for(const e of c){const o=r?.[e.getId()]?.minWidth??i?.defaultMinWidth??e.minWidth;e.setActualWidth(o,t,!0)}else{const e=o/pn(c);let n=o;for(let o=c.length-1;o>=0;o--){const s=c[o],a=r?.[s.getId()],l=a?.minWidth??i?.defaultMinWidth,d=a?.maxWidth??i?.defaultMaxWidth,u=s.getMinWidth(),h=s.getMaxWidth(),f="number"===typeof l&&l>u?l:u,m="number"===typeof d&&d<h?d:h;let v=Math.round(s.getActualWidth()*e);v<f?(v=f,p(s),g=!1):v>m?(v=m,p(s),g=!1):0===o&&(v=n),s.setActualWidth(v,t,!0),n-=v}}}for(const m of h)m.fireColumnWidthChangedEvent(t);const f=n.visibleCols;f.setLeftValues(t),f.updateBodyWidths(),o||(Kn(this.eventSvc,h,!0,t),s&&dk(n,!1))}applyAutosizeStrategy(){const{gos:e,colDelayRenderSvc:t}=this.beans,o=e.get("autoSizeStrategy");"fitGridWidth"!==o?.type&&"fitProvidedWidth"!==o?.type||setTimeout(()=>{if(!this.isAlive())return;const e=o.type;if("fitGridWidth"===e){const{columnLimits:e,defaultMinWidth:t,defaultMaxWidth:i}=o,n=e?.map(({colId:e,minWidth:t,maxWidth:o})=>({key:e,minWidth:t,maxWidth:o}));this.sizeColumnsToFitGridBody({defaultMinWidth:t,defaultMaxWidth:i,columnLimits:n})}else"fitProvidedWidth"===e&&this.sizeColumnsToFit(o.width,"sizeColumnsToFit");t?.revealColumns(e)})}onFirstDataRendered({colIds:e,...t}){setTimeout(()=>{if(!this.isAlive())return;const o="autosizeColumns";e?this.autoSizeCols({...t,source:o,colKeys:e}):this.autoSizeAllColumns({...t,source:o}),this.beans.colDelayRenderSvc?.revealColumns(t.type)})}processResizeOperations(){this.shouldQueueResizeOperations=!1;for(const e of this.resizeOperationQueue)e();this.resizeOperationQueue=[]}pushResizeOperation(e){this.resizeOperationQueue.push(e)}destroy(){this.resizeOperationQueue.length=0,super.destroy()}};function rk(e,t,o={}){const i=o.minWidth??e.getMinWidth();t<i&&(t=i);const n=o.maxWidth??e.getMaxWidth();return t>n&&(t=n),t}function ak({ctrlsSvc:e,scrollVisibleSvc:t}){const o=e.getGridBodyCtrl(),i=o.isVerticalScrollShowing(),n=i?t.getScrollbarWidth():0,s=Ce(o.eGridBody);return s-n}var lk="ag-animate-autosize";function dk({ctrlsSvc:e,gos:t},o){if(!t.get("animateColumnResizing")||t.get("enableRtl")||!e.isAlive())return;const i=e.getGridBodyCtrl().eGridBody.classList;o?i.add(lk):i.remove(lk)}var ck={moduleName:"ColumnAutoSize",version:ro,beans:[sk],apiFunctions:{sizeColumnsToFit:ok,autoSizeColumns:ik,autoSizeAllColumns:nk},dependsOn:[Bf],css:[tk]},uk=".ag-row-pinned-source{background-color:var(--ag-pinned-source-row-background-color);color:var(--ag-pinned-source-row-text-color);font-weight:var(--ag-pinned-source-row-font-weight)}.ag-row-pinned-manual{background-color:var(--ag-pinned-row-background-color);color:var(--ag-pinned-row-text-color);font-weight:var(--ag-pinned-row-font-weight)}";function hk(e){return e.pinnedRowModel?.getPinnedTopRowCount()??0}function gk(e){return e.pinnedRowModel?.getPinnedBottomRowCount()??0}function pk(e,t){return e.pinnedRowModel?.getPinnedTopRow(t)}function fk(e,t){return e.pinnedRowModel?.getPinnedBottomRow(t)}function mk(e,t,o){return e.pinnedRowModel?.forEachPinnedRow(t,o)}var vk={moduleName:"PinnedRow",version:ro,beans:[Eg],css:[uk],apiFunctions:{getPinnedTopRowCount:hk,getPinnedBottomRowCount:gk,getPinnedTopRow:pk,getPinnedBottomRow:fk,forEachPinnedRow:mk},icons:{rowPin:"pin",rowPinTop:"pinned-top",rowPinBottom:"pinned-bottom",rowUnpin:"un-pin"}},Ck=class{constructor(e,t){this.col=e,this.firstNode=t,this.cellSpan=!0,this.spannedNodes=new Set,this.addSpannedNode(t)}reset(){this.spannedNodes.clear(),this.addSpannedNode(this.firstNode)}addSpannedNode(e){this.spannedNodes.add(e),this.lastNode=e}getLastNode(){return this.lastNode}getCellHeight(){return this.lastNode.rowTop+this.lastNode.rowHeight-this.firstNode.rowTop-1}doesSpanContain(e){return e.column===this.col&&(e.rowPinned==this.firstNode.rowPinned&&(this.firstNode.rowIndex<=e.rowIndex&&e.rowIndex<=this.lastNode.rowIndex))}getLastNodeAutoHeight(){const e=this.firstNode.__autoHeights?.[this.col.getColId()];if(null==e)return;let t=0;for(const o of this.spannedNodes)o!==this.lastNode&&(t+=o.rowHeight);return e-t}},wk=class extends Ct{constructor(e){super(),this.column=e}buildCache(e){const{column:t,beans:{gos:o,pinnedRowModel:i,rowModel:n,valueSvc:s,pagination:r}}=this,{colDef:a}=t,l=this.getNodeMap(e),d=new Map,c=o.getCallback("isFullWidthRow"),u=a.equals,h=a.spanRows,g="function"===typeof h;let p,f=null,m=null;const v=(e,t)=>{f=e,m=null,p=t},C=e=>{const i=!e.isExpandable()&&!e.group&&!e.detail&&(!c||!c({rowNode:e}));if(null==e.rowIndex||!i)return void v(null,null);if(null==f||e.level!==f.level||e.footer||m&&e.rowIndex-1!==m?.getLastNode().rowIndex)return void v(e,s.getValue(t,e));const n=s.getValue(t,e);if(g){const i=Ti(o,{valueA:p,nodeA:f,valueB:n,nodeB:e,column:t,colDef:a});if(!h(i))return void v(e,n)}else if(u?!u(p,n):p!==n)return void v(e,n);if(!m){const e=l?.get(f);e?.firstNode===f?(e.reset(),m=e):m=new Ck(t,f),d.set(f,m)}m.addSpannedNode(e),d.set(e,m)};switch(e){case"center":n.forEachDisplayedNode?.(e=>{const t=!r||r.isRowInPage(e.rowIndex);t&&C(e)}),this.centerValueNodeMap=d;break;case"top":i?.forEachPinnedRow("top",C),this.topValueNodeMap=d;break;case"bottom":i?.forEachPinnedRow("bottom",C),this.bottomValueNodeMap=d;break}}isCellSpanning(e){return!!this.getCellSpan(e)}getCellSpan(e){return this.getNodeMap(e.rowPinned).get(e)}getNodeMap(e){switch(e){case"top":return this.topValueNodeMap;case"bottom":return this.bottomValueNodeMap;default:return this.centerValueNodeMap}}},bk=class extends Ct{constructor(){super(...arguments),this.beanName="rowSpanSvc",this.spanningColumns=new Map,this.debouncePinnedEvent=xt(this,this.dispatchCellsUpdatedEvent.bind(this,!0),0),this.debounceModelEvent=xt(this,this.dispatchCellsUpdatedEvent.bind(this,!1),0),this.pinnedTimeout=null,this.modelTimeout=null}postConstruct(){const e=this.onRowDataUpdated.bind(this),t=this.buildPinnedCaches.bind(this);this.addManagedEventListeners({paginationChanged:this.buildModelCaches.bind(this),pinnedRowDataChanged:t,pinnedRowsChanged:t,rowNodeDataChanged:e,cellValueChanged:e})}register(e){const{gos:t}=this.beans;if(!t.get("enableCellSpan"))return;if(this.spanningColumns.has(e))return;const o=this.createManagedBean(new wk(e));this.spanningColumns.set(e,o),o.buildCache("top"),o.buildCache("bottom"),o.buildCache("center"),this.debouncePinnedEvent(),this.debounceModelEvent()}dispatchCellsUpdatedEvent(e){this.dispatchLocalEvent({type:"spannedCellsUpdated",pinned:e})}deregister(e){this.spanningColumns.delete(e)}onRowDataUpdated({node:e}){const{spannedRowRenderer:t}=this.beans;if(e.rowPinned){if(null!=this.pinnedTimeout)return;this.pinnedTimeout=window.setTimeout(()=>{this.pinnedTimeout=null,this.buildPinnedCaches(),t?.createCtrls("top"),t?.createCtrls("bottom")},0)}else null==this.modelTimeout&&(this.modelTimeout=window.setTimeout(()=>{this.modelTimeout=null,this.buildModelCaches(),t?.createCtrls("center")},0))}buildModelCaches(){null!=this.modelTimeout&&clearTimeout(this.modelTimeout),this.spanningColumns.forEach(e=>e.buildCache("center")),this.debounceModelEvent()}buildPinnedCaches(){null!=this.pinnedTimeout&&clearTimeout(this.pinnedTimeout),this.spanningColumns.forEach(e=>{e.buildCache("top"),e.buildCache("bottom")}),this.debouncePinnedEvent()}isCellSpanning(e,t){const o=this.spanningColumns.get(e);return!!o&&o.isCellSpanning(t)}getCellSpanByPosition(e){const{pinnedRowModel:t,rowModel:o}=this.beans,i=e.column,n=e.rowIndex,s=this.spanningColumns.get(i);if(!s)return;let r;switch(e.rowPinned){case"top":r=t?.getPinnedTopRow(n);break;case"bottom":r=t?.getPinnedBottomRow(n);break;default:r=o.getRow(n)}return r?s.getCellSpan(r):void 0}getCellStart(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.firstNode.rowIndex}:e}getCellEnd(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.getLastNode().rowIndex}:e}getCellSpan(e,t){const o=this.spanningColumns.get(e);if(o)return o.getCellSpan(t)}forEachSpannedColumn(e,t){for(const[o,i]of this.spanningColumns)if(i.isCellSpanning(e)){const n=i.getCellSpan(e);t(o,n)}}destroy(){super.destroy(),this.spanningColumns.clear()}},yk=class extends jb{constructor(e,t,o){super(e.col,e.firstNode,o,t),this.cellSpan=e,this.SPANNED_CELL_CSS_CLASS="ag-spanned-cell"}setComp(e,t,o,i,n,s,r){this.eWrapper=o,super.setComp(e,t,o,i,n,s,r),this.setAriaRowSpan(),this.refreshAriaRowIndex()}isCellSpanning(){return!0}getCellSpan(){return this.cellSpan}refreshAriaRowIndex(){const{eGui:e,rowNode:t}=this;e&&null!=t.rowIndex&&K(e,t.rowIndex)}setAriaRowSpan(){Q(this.eGui,this.cellSpan.spannedNodes.size)}setFocusedCellPosition(e){this.focusedCellPosition=e}getFocusedCellPosition(){return this.focusedCellPosition??this.cellPosition}checkCellFocused(){const e=this.beans.focusSvc.getFocusedCell();return!!e&&this.cellSpan.doesSpanContain(e)}applyStaticCssClasses(){super.applyStaticCssClasses(),this.comp.toggleCss(this.SPANNED_CELL_CSS_CLASS,!0)}onCellFocused(e){const{beans:t}=this;if(rh(t))return void(this.focusedCellPosition=void 0);const o=this.isCellFocused();o||(this.focusedCellPosition=void 0),e&&o&&(this.focusedCellPosition={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column}),super.onCellFocused(e)}getRootElement(){return this.eWrapper}},Sk=class extends Zb{onRowIndexChanged(){super.onRowIndexChanged();for(const e of this.getAllCellCtrls())e.refreshAriaRowIndex()}getInitialRowClasses(e){return["ag-spanned-row"]}getNewCellCtrl(e){const t=this.beans.rowSpanSvc?.getCellSpan(e,this.rowNode);if(!t)return;const o=t.firstNode!==this.rowNode;return o?void 0:new yk(t,this,this.beans)}isCorrectCtrlForSpan(e){const t=this.beans.rowSpanSvc?.getCellSpan(e.column,this.rowNode);if(!t)return!1;const o=t.firstNode!==this.rowNode;return!o&&e.getCellSpan()===t}onRowHeightChanged(){}refreshFirstAndLastRowStyles(){}addHoverFunctionality(){}resetHoveredStatus(){}},Rk=class extends Ct{constructor(){super(...arguments),this.beanName="spannedRowRenderer",this.topCtrls=new Map,this.bottomCtrls=new Map,this.centerCtrls=new Map}postConstruct(){this.addManagedEventListeners({displayedRowsChanged:this.createAllCtrls.bind(this)})}createAllCtrls(){this.createCtrls("top"),this.createCtrls("bottom"),this.createCtrls("center")}createCtrls(e){const{rowSpanSvc:t}=this.beans,o=this.getCtrlsMap(e),i=o.size,n=this.getAllRelevantRowControls(e),s=new Map;let r=!1;for(const l of n)l.isAlive()&&t?.forEachSpannedColumn(l.rowNode,(e,t)=>{if(s.has(t.firstNode))return;const i=o.get(t.firstNode);if(i)return s.set(t.firstNode,i),void o.delete(t.firstNode);r=!0;const n=new Sk(t.firstNode,this.beans,!1,!1,!1);s.set(t.firstNode,n)});this.setCtrlsMap(e,s);const a=s.size===i;if(r||!a){for(const e of o.values())e.destroyFirstPass(!0),e.destroySecondPass();this.dispatchLocalEvent({type:"spannedRowsUpdated",ctrlsKey:e})}}getAllRelevantRowControls(e){const{rowRenderer:t}=this.beans;switch(e){case"top":return t.topRowCtrls;case"bottom":return t.bottomRowCtrls;case"center":return t.allRowCtrls}}getCellByPosition(e){const{rowSpanSvc:t}=this.beans,o=t?.getCellSpanByPosition(e);if(!o)return;const i=this.getCtrlsMap(e.rowPinned).get(o.firstNode);return i?i.getAllCellCtrls().find(t=>t.column===e.column):void 0}getCtrls(e){return[...this.getCtrlsMap(e).values()]}destroyRowCtrls(e){for(const t of this.getCtrlsMap(e).values())t.destroyFirstPass(!0),t.destroySecondPass();this.setCtrlsMap(e,new Map)}getCtrlsMap(e){switch(e){case"top":return this.topCtrls;case"bottom":return this.bottomCtrls;default:return this.centerCtrls}}setCtrlsMap(e,t){switch(e){case"top":this.topCtrls=t;break;case"bottom":this.bottomCtrls=t;break;default:this.centerCtrls=t;break}}destroy(){super.destroy(),this.destroyRowCtrls("top"),this.destroyRowCtrls("bottom"),this.destroyRowCtrls("center")}},xk={moduleName:"CellSpan",version:ro,beans:[bk,Rk]},Ek=class extends Ct{constructor(e,t){super(),this.cellCtrl=e,this.staticClasses=[],this.beans=t,this.column=e.column}setComp(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){const{column:e,cellComp:t}=this,o=e.colDef,i=o.cellClassRules,n=this.getCellClassParams(e,o);Kb(this.beans.expressionSvc,i===this.cellClassRules?void 0:this.cellClassRules,i,n,e=>t.toggleCss(e,!0),e=>t.toggleCss(e,!1)),this.cellClassRules=i}applyUserStyles(){const e=this.column,t=e.colDef,o=t.cellStyle;if(!o)return;let i;if("function"===typeof o){const n=this.getCellClassParams(e,t);i=o(n)}else i=o;i&&this.cellComp.setUserStyles(i)}applyClassesFromColDef(){const{column:e,cellComp:t}=this,o=e.colDef,i=this.getCellClassParams(e,o);for(const s of this.staticClasses)t.toggleCss(s,!1);const n=this.beans.cellStyles.getStaticCellClasses(o,i);this.staticClasses=n;for(const s of n)t.toggleCss(s,!0)}getCellClassParams(e,t){const{value:o,rowNode:i}=this.cellCtrl;return Ti(this.beans.gos,{value:o,data:i.data,node:i,colDef:t,column:e,rowIndex:i.rowIndex})}},Fk=class extends Ct{constructor(){super(...arguments),this.beanName="cellStyles"}processAllCellClasses(e,t,o,i){Kb(this.beans.expressionSvc,void 0,e.cellClassRules,t,o,i),this.processStaticCellClasses(e,t,o)}getStaticCellClasses(e,t){const{cellClass:o}=e;if(!o)return[];let i;if("function"===typeof o){const e=o;i=e(t)}else i=o;return"string"===typeof i&&(i=[i]),i||[]}createCellCustomStyleFeature(e){return new Ek(e,this.beans)}processStaticCellClasses(e,t,o){const i=this.getStaticCellClasses(e,t);i.forEach(e=>{o(e)})}},Pk={moduleName:"CellStyle",version:ro,beans:[Fk]},Dk={moduleName:"RowStyle",version:ro,beans:[Xb]};function kk(e,t){return!!e.colHover?.isHovered(t)}var Mk=class extends Ct{constructor(e,t){super(),this.columns=e,this.element=t,this.destroyManagedListeners=[],this.enableFeature=e=>{const{beans:t,gos:o,element:i,columns:n}=this,s=t.colHover,r=e??!!o.get("columnHoverHighlight");if(r)this.destroyManagedListeners=this.addManagedElementListeners(i,{mouseover:s.setMouseOver.bind(s,n),mouseout:s.clearMouseOver.bind(s)});else{for(const e of this.destroyManagedListeners)e();this.destroyManagedListeners=[]}}}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{this.enableFeature(e)}),this.enableFeature()}destroy(){super.destroy(),this.destroyManagedListeners=null}},Ak="ag-column-hover",Tk=class extends Ct{constructor(){super(...arguments),this.beanName="colHover"}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{e||this.clearMouseOver()})}setMouseOver(e){this.updateState(e)}clearMouseOver(){this.updateState(null)}isHovered(e){if(!this.gos.get("columnHoverHighlight"))return!1;const t=this.selectedColumns;return!!t&&t.indexOf(e)>=0}addHeaderColumnHoverListener(e,t,o){const i=()=>{const e=this.isHovered(o);t.toggleCss("ag-column-hover",e)};e.addManagedEventListeners({columnHoverChanged:i}),i()}onCellColumnHover(e,t){if(!t)return;const o=this.isHovered(e);t.toggleCss(Ak,o)}addHeaderFilterColumnHoverListener(e,t,o,i){this.createHoverFeature(e,[o],i);const n=()=>{const e=this.isHovered(o);t.toggleCss("ag-column-hover",e)};e.addManagedEventListeners({columnHoverChanged:n}),n()}createHoverFeature(e,t,o){e.createManagedBean(new Mk(t,o))}updateState(e){this.selectedColumns=e,this.eventSvc.dispatchEvent({type:"columnHoverChanged"})}},Ik={moduleName:"ColumnHover",version:ro,beans:[Tk],apiFunctions:{isColumnHovered:kk}},Lk=class extends Ct{constructor(){super(...arguments),this.beanName="apiEventSvc",this.syncListeners=new Map,this.asyncListeners=new Map,this.syncGlobalListeners=new Set,this.globalListenerPairs=new Map}postConstruct(){this.wrapSvc=this.beans.frameworkOverrides.createGlobalEventListenerWrapper?.()}addListener(e,t){const o=this.wrapSvc?.wrap(e,t)??t,i=!sw.has(e),n=i?this.asyncListeners:this.syncListeners;n.has(e)||n.set(e,new Set),n.get(e).add(o),this.eventSvc.addListener(e,o,i)}removeListener(e,t){const o=this.wrapSvc?.unwrap(e,t)??t,i=this.asyncListeners.get(e),n=!!i?.delete(o);n||this.syncListeners.get(e)?.delete(o),this.eventSvc.removeListener(e,o,n)}addGlobalListener(e){const t=this.wrapSvc?.wrapGlobal(e)??e,o=(e,o)=>{sw.has(e)&&t(e,o)},i=(e,o)=>{sw.has(e)||t(e,o)};this.globalListenerPairs.set(e,{syncListener:o,asyncListener:i});const n=this.eventSvc;n.addGlobalListener(o,!1),n.addGlobalListener(i,!0)}removeGlobalListener(e){const{eventSvc:t,wrapSvc:o,globalListenerPairs:i}=this,n=o?.unwrapGlobal(e)??e,s=i.has(n);if(s){const{syncListener:o,asyncListener:s}=i.get(n);t.removeGlobalListener(o,!1),t.removeGlobalListener(s,!0),i.delete(e)}else this.syncGlobalListeners.delete(n),t.removeGlobalListener(n,!1)}destroyEventListeners(e,t){e.forEach((e,o)=>{e.forEach(e=>this.eventSvc.removeListener(o,e,t)),e.clear()}),e.clear()}destroyGlobalListeners(e,t){for(const o of e)this.eventSvc.removeGlobalListener(o,t);e.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncListeners,!1),this.destroyEventListeners(this.asyncListeners,!0),this.destroyGlobalListeners(this.syncGlobalListeners,!1);const{globalListenerPairs:e,eventSvc:t}=this;e.forEach(({syncListener:e,asyncListener:o})=>{t.removeGlobalListener(e,!1),t.removeGlobalListener(o,!0)}),e.clear()}};function Bk(e,t,o){e.apiEventSvc?.addListener(t,o)}function Ok(e,t,o){e.apiEventSvc?.removeListener(t,o)}function Hk(e,t){e.apiEventSvc?.addGlobalListener(t)}function Vk(e,t){e.apiEventSvc?.removeGlobalListener(t)}var Gk={moduleName:"EventApi",version:ro,apiFunctions:{addEventListener:Bk,addGlobalListener:Hk,removeEventListener:Ok,removeGlobalListener:Vk},beans:[Lk]},Nk={moduleName:"Locale",version:ro,beans:[OS]},zk=class extends Ct{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.wasEverActive=!1,this._debouncedCalculateRowHeights=xt(this,this.calculateRowHeights.bind(this),1)}requestCheckAutoHeight(){this.wasEverActive&&this._debouncedCalculateRowHeights()}calculateRowHeights(){const{visibleCols:e,rowModel:t,rowSpanSvc:o,pinnedRowModel:i}=this.beans,n=e.autoHeightCols;let s=!1;const r=e=>{const t=e.__autoHeights;let i=Go(this.beans,e).height;for(const s of n){let n=t?.[s.getColId()];const r=o?.getCellSpan(s,e);if(r){if(r.getLastNode()!==e)continue;if(n=o?.getCellSpan(s,e)?.getLastNodeAutoHeight(),!n)return}if(null==n){if(this.colSpanSkipCell(s,e))continue;return}i=Math.max(n,i)}i!==e.rowHeight&&(e.setRowHeight(i),s=!0)};i?.forEachPinnedRow?.("top",r),i?.forEachPinnedRow?.("bottom",r),t.forEachDisplayedNode?.(r),s&&t.onRowHeightChanged?.()}setRowAutoHeight(e,t,o){if(e.__autoHeights??(e.__autoHeights={}),void 0==t)return void delete e.__autoHeights[o.getId()];const i=e.__autoHeights[o.getId()];e.__autoHeights[o.getId()]=t,i!==t&&this.requestCheckAutoHeight()}colSpanSkipCell(e,t){const{colModel:o,colViewport:i,visibleCols:n}=this.beans;if(!o.colSpanActive)return!1;let s=[];switch(e.getPinned()){case"left":s=n.getLeftColsForRow(t);break;case"right":s=n.getRightColsForRow(t);break;case null:s=i.getColsWithinViewport(t);break}return!s.includes(e)}setupCellAutoHeight(e,t,o){if(!e.column.isAutoHeight()||!t)return!1;this.wasEverActive=!0;const i=t.parentElement,{rowNode:n,column:s}=e,r=this.beans,a=l=>{if(this.beans.editSvc?.isEditing(e))return;if(!e.isAlive()||!o.isAlive())return;const{paddingTop:d,paddingBottom:c,borderBottomWidth:u,borderTopWidth:h}=me(i),g=d+c+u+h,p=t.offsetHeight,f=p+g;if(l<5){const e=v(r),o=!e?.contains(t),i=0==f;if(o||i)return void window.setTimeout(()=>a(l+1),0)}this.setRowAutoHeight(n,f,s)},l=()=>a(0);l();const d=We(r,t,l);return o.addDestroyFunc(()=>{d(),this.setRowAutoHeight(n,void 0,s)}),!0}setAutoHeightActive(e){this.active=e.list.some(e=>e.isVisible()&&e.isAutoHeight())}areRowsMeasured(){if(!this.active)return!0;const e=this.beans.rowRenderer.getAllRowCtrls();let t=null;for(const{rowNode:o}of e){if(!t||this.beans.colModel.colSpanActive){const e=this.beans.colViewport.getColsWithinViewport(o);t=e.filter(e=>e.isAutoHeight())}if(0!==t.length){if(!o.__autoHeights)return!1;for(const e of t){const t=o.__autoHeights[e.getColId()];if(!t||o.rowHeight<t)return!1}}}return!0}},Wk={moduleName:"RowAutoHeight",version:ro,beans:[zk]},_k={moduleName:"AllCommunity",version:ro,dependsOn:[TP,zP,YP,lR,xF,EF,FF,PF,DF,kF,MF,RF,Kx,Qx,Xx,jx,Zx,Jx,pD,aP,LD,qm,$D,qD,ek,ck,tf,vk,QF,oS,Pk,Ik,Dk,Gk,sS,aD,nE,Nk,Wk,Jp,IP,xk]};function Uk(e,t={}){const o=Object.keys(t).map(e=>{const o=t[e];return null!=o?`${e}=${o}`:null}).filter(Boolean).join(";");return[e,o].filter(e=>e.length>0).join(":")}var $k={grid(e){return Uk("ag-grid-root",{gridId:e})},headerGroupCell(e){return Uk("ag-header-group-cell",{colId:e})},headerCell(e){return Uk("ag-header-cell",{colId:e})},headerCheckbox(e){return Uk("ag-header-selection-checkbox",{colId:e})},headerFilterButton(e){return Uk("ag-header-cell-filter-button",{colId:e})},floatingFilter(e){return Uk("ag-floating-filter",{colId:e})},floatingFilterButton(e){return Uk("ag-floating-filter-button",{colId:e})},headerCellMenuButton(e){return Uk("ag-header-cell-menu-button",{colId:e})},headerResizeHandle(e){return Uk("ag-header-cell-resize",{colId:e})},filterInstancePickerDisplay(e){return Uk(`ag-${e.source}-picker-display`,"filter-toolpanel"===e.source?{label:e.colLabel}:{colId:e.colId})},numberFilterInstanceInput(e){return Uk(`ag-${e.source}-number-input`,"filter-toolpanel"===e.source?{label:e.colLabel}:{colId:e.colId})},textFilterInstanceInput(e){return Uk(`ag-${e.source}-text-input`,"filter-toolpanel"===e.source?{label:e.colLabel}:{colId:e.colId})},dateFilterInstanceInput(e){return Uk(`ag-${e.source}-date-input`,"filter-toolpanel"===e.source?{label:e.colLabel}:{colId:e.colId})},setFilterInstanceMiniFilterInput(e){return Uk(`ag-${e.source}-set-filter-mini-filter-input`,"filter-toolpanel"===e.source?{label:e.colLabel}:{colId:e.colId})},setFilterInstanceItem(e,t){return Uk(`ag-${e.source}-set-filter-item`,"filter-toolpanel"===e.source?{colLabel:e.colLabel,itemLabel:t}:{colId:e.colId,itemLabel:t})},setFilterApplyPanelButton(e,t){return Uk(`ag-${e.source}-set-filter-apply-panel-button`,"filter-toolpanel"===e.source?{colLabel:e.colLabel,buttonLabel:t}:{colId:e.colId,buttonLabel:t})},filterConditionRadioButton(e,t){return Uk(`ag-${e.source}-filter-condition-radio-button`,"filter-toolpanel"===e.source?{colLabel:e.colLabel,buttonLabel:t}:{colId:e.colId,buttonLabel:t})},advancedFilterInput(){return Uk("ag-advanced-filter-input")},advancedFilterButton(e){return Uk("ag-advanced-filter-button",{label:e})},advancedFilterBuilderButton(){return Uk("ag-advanced-filter-builder-button")},advancedFilterPanelMaximiseButton(){return Uk("ag-advanced-filter-builder-panel-maximise")},advancedFilterPanelCloseButton(){return Uk("ag-advanced-filter-builder-panel-close")},advancedFilterPill(e){return Uk("ag-advanced-filter-builder-pill",{label:e})},advancedFilterBuilderAddItemButton(){return Uk("ag-advanced-filter-builder-add-item-button")},rowNode(e){return Uk("ag-row",{["row-id"]:e})},cell(e,t){return Uk("ag-cell",{["row-id"]:e,colId:t})},autoGroupCell(e){return $k.cell(e,dn)},checkbox(e,t){return Uk("ag-selection-checkbox",{["row-id"]:e,colId:t})},selectionColumnCheckbox(e){return $k.checkbox(e,cn)},autoGroupColumnCheckbox(e){return $k.checkbox(e,dn)},dragHandle(e,t){return Uk("ag-drag-handle",{["row-id"]:e,colId:t})},groupContracted(e,t){return Uk("ag-group-contracted",{["row-id"]:e,colId:t})},groupExpanded(e,t){return Uk("ag-group-expanded",{["row-id"]:e,colId:t})},autoGroupContracted(e){return $k.groupContracted(e,dn)},autoGroupExpanded(e){return $k.groupExpanded(e,dn)},rowNumber(e){return $k.cell(e,un)},menu(){return Uk("ag-menu")},menuOption(e){return Uk("ag-menu-option",{["option"]:e})},sideBar(){return Uk("ag-side-bar")},sideBarButton(e){return Uk("ag-side-button",{label:e})},columnToolPanel(){return Uk("ag-column-panel")},pivotModeSelect(){return Uk("ag-pivot-mode-select")},columnPanelSelectHeaderCheckbox(){return Uk("ag-column-panel-select-header-checkbox")},columnPanelSelectHeaderFilter(){return Uk("ag-column-panel-select-header-filter")},columnSelectListItemGroupClosedIcon(e){return Uk("ag-column-select-list-item-group-closed-icon",{label:e})},columnSelectListItemCheckbox(e){return Uk("ag-column-select-list-item-checkbox",{label:e})},columnSelectListItemDragHandle(e){return Uk("ag-column-select-list-item-drag-handle",{label:e})},columnDropCellDragHandle(e,t,o){return Uk("ag-column-drop-cell-drag-handle",{source:e,area:t,label:o})},columnDropCellCancelButton(e,t,o){return Uk("ag-column-drop-cell-cancel",{source:e,area:t,label:o})},columnDropArea(e,t){return Uk("ag-column-drop-area",{source:e,name:t})},filterToolPanel(){return Uk("ag-filter-panel")},filterToolPanelAddFilterButton(){return Uk("ag-filter-panel-add-filter-button")},filterToolPanelFilterTypeSelector(e){return Uk("ag-filter-panel-filter-type-selector",{colLabel:e})},filterToolPanelSearchInput(){return Uk("ag-filter-toolpanel-search-input")},filterToolPanelGroup(e){return Uk("ag-filter-toolpanel-group",{title:e})},filterToolPanelGroupCollapsedIcon(e){return Uk("ag-filter-toolpanel-group-collapsed-icon",{title:e})},statusBarTotalAndFilteredRowCount(){return Uk("ag-status-bar-total-and-filtered-row-count")},statusBarTotalRowCount(){return Uk("ag-status-bar-total-row-count")},statusBarFilteredRowCount(){return Uk("ag-status-bar-filtered-row-count")},statusBarSelectedRowCount(){return Uk("ag-status-bar-selected-row-count")},statusBarAggregations(){return Uk("ag-status-bar-aggregations")},paginationPanelSizePickerDisplay(e){return Uk("ag-pagination-page-size-picker-field-display",{value:e})},paginationPanelFirstRowOnPage(e){return Uk("ag-paging-row-summary-panel-first-row-on-page",{value:e})},paginationPanelLastRowOnPage(e){return Uk("ag-paging-row-summary-panel-last-row-on-page",{value:e})},paginationPanelRecordCount(e){return Uk("ag-paging-row-summary-panel-record-count",{value:e})},paginationSummaryPanelButton(e){return Uk("ag-paging-page-summary-panel-btn",{label:e})},paginationSummaryPanelCurrentPage(e){return Uk("ag-paging-page-summary-panel-current-page",{value:e})},paginationSummaryPanelTotalPage(e){return Uk("ag-paging-page-summary-panel-total-page",{value:e})},fillHandle(){return Uk("ag-fill-handle")},columnChooserCloseButton(){return Uk("ag-column-chooser-close-button")},columnChooserSearchBarCheckbox(){return Uk("ag-column-chooser-header-checkbox")},columnChooserSearchBarFilter(){return Uk("ag-column-chooser-searchbar-filter")},columnChooserListItemGroupClosedIcon(e){return Uk("ag-column-chooser-list-item-group-closed-icon",{label:e})},columnChooserListItemCheckbox(e){return Uk("ag-column-chooser-list-item-checkbox",{label:e})},columnChooserListItemDragHandle(e){return Uk("ag-column-chooser-list-item-drag-handle",{label:e})},overlay(){return Uk("ag-overlay")}},qk=e=>{const t={},o=Object.keys($k);for(const i of o)t[i]=(...t)=>e($k[i](...t));return t},jk="data-testid";function Kk(e,t){e?.setAttribute(jk,t)}function Qk(e){jk=e}var Xk=class extends Ct{constructor(){super(...arguments),this.beanName="testIdSvc"}postConstruct(){const e=xt(this,()=>this.setupAllTestIds(),500),t=xt(this,()=>{this.setupAllTestIds(),e()},0);this.addManagedEventListeners({firstDataRendered:t,displayedRowsChanged:t,displayedColumnsChanged:t,displayedColumnsWidthChanged:t,virtualColumnsChanged:t,columnMenuVisibleChanged:t,contextMenuVisibleChanged:t,advancedFilterBuilderVisibleChanged:t,fieldPickerValueSelected:t,modelUpdated:t,sideBarUpdated:t,pinnedHeightChanged:t,gridReady:t,overlayExclusiveChanged:t,rowGroupOpened:t,scrollVisibilityChanged:t,gridSizeChanged:t,filterOpened:t,filterChanged:t,cellSelectionChanged:t})}setupAllTestIds(){const e=f(this.beans),t=Rp(this.beans),o=e.querySelector(`[grid-id="${t}"]`);Kk(o,$k.grid(t)),e.querySelectorAll(".ag-header-group-cell").forEach(e=>{Kk(e,$k.headerGroupCell(e.getAttribute("col-id")))}),e.querySelectorAll(".ag-header-cell").forEach(e=>{const t=e.getAttribute("col-id"),o=e.classList.contains("ag-floating-filter"),i=o?$k.floatingFilter(t):$k.headerCell(t);Kk(e,i),Kk(e.querySelector(".ag-header-cell-filter-button"),$k.headerFilterButton(t)),Kk(e.querySelector(".ag-header-cell-menu-button"),$k.headerCellMenuButton(t)),Kk(e.querySelector(".ag-header-cell-resize"),$k.headerResizeHandle(t)),Kk(e.querySelector(".ag-checkbox input[type=checkbox]"),$k.headerCheckbox(t)),Kk(e.querySelector(".ag-floating-filter-button button"),$k.floatingFilterButton(t)),this.setupFilterInstance(e.querySelector(".ag-floating-filter-body"),{source:"floating-filter",colId:t})});const i=e.querySelector(".ag-filter-menu");this.setupFilterInstance(i,{source:"column-filter"}),Kk(e.querySelector(".ag-advanced-filter input[type=text]"),$k.advancedFilterInput()),e.querySelectorAll(".ag-advanced-filter-buttons button").forEach(e=>{Kk(e,$k.advancedFilterButton(e.textContent))}),Kk(e.querySelector("button.ag-advanced-filter-builder-button"),$k.advancedFilterBuilderButton()),e.querySelectorAll('.ag-panel[aria-label="Advanced Filter"] .ag-panel-title-bar-button').forEach((e,t)=>{Kk(e,0===t?$k.advancedFilterPanelMaximiseButton():$k.advancedFilterPanelCloseButton())}),e.querySelectorAll('.ag-panel[aria-lable="Advanced Filter"] .ag-advanced-filter-builder-pill').forEach(e=>{Kk(e,$k.advancedFilterPill(e.querySelector(".ag-picker-field-display")?.textContent))}),Kk(e.querySelector('.ag-panel[aria-label="Advanced Filter"] .ag-advanced-filter-builder-item-button'),$k.advancedFilterBuilderAddItemButton()),e.querySelectorAll(".ag-row").forEach(e=>{const t=e.getAttribute("row-id");Kk(e,$k.rowNode(t)),e.querySelectorAll(".ag-cell").forEach(e=>{const o=e.getAttribute("col-id");Kk(e,$k.cell(t,o)),Kk(e.querySelector(".ag-selection-checkbox input[type=checkbox]"),$k.checkbox(t,o)),Kk(e.querySelector(".ag-drag-handle"),$k.dragHandle(t,o)),Kk(e.querySelector(".ag-group-contracted"),$k.groupContracted(t,o)),Kk(e.querySelector(".ag-group-expanded"),$k.groupExpanded(t,o))})}),e.querySelectorAll(".ag-menu-list").forEach(e=>{Kk(e,$k.menu()),e.querySelectorAll(".ag-menu-option").forEach(e=>{Kk(e,$k.menuOption(e.querySelector(".ag-menu-option-text")?.textContent))})}),e.querySelectorAll(".ag-side-bar").forEach(e=>{Kk(e,$k.sideBar()),e.querySelectorAll(".ag-side-button button").forEach(e=>{Kk(e,$k.sideBarButton(e.querySelector(".ag-side-button-label")?.textContent))}),e.querySelectorAll(".ag-column-panel").forEach(e=>{Kk(e,$k.columnToolPanel()),Kk(e.querySelector(".ag-pivot-mode-select input[type=checkbox]"),$k.pivotModeSelect()),Kk(e.querySelector(".ag-column-select-header-checkbox input[type=checkbox]"),$k.columnPanelSelectHeaderCheckbox()),Kk(e.querySelector(".ag-column-select-header-filter-wrapper input[type=text]"),$k.columnPanelSelectHeaderFilter()),e.querySelectorAll(".ag-column-select-list").forEach(e=>{e.querySelectorAll(".ag-column-select-virtual-list-item").forEach(e=>{const t=e.getAttribute("aria-label");Kk(e.querySelector(".ag-column-group-closed-icon"),$k.columnSelectListItemGroupClosedIcon(t)),Kk(e.querySelector(".ag-column-select-checkbox input[type=checkbox]"),$k.columnSelectListItemCheckbox(t)),Kk(e.querySelector(".ag-drag-handle"),$k.columnSelectListItemDragHandle(t))})}),this.setupColumnDropArea(e,"toolbar")}),e.querySelectorAll(".ag-filter-panel").forEach(e=>{Kk(e,$k.filterToolPanel()),Kk(e.querySelector("button.ag-filter-add-button"),$k.filterToolPanelAddFilterButton()),e.querySelectorAll(".ag-filter-card").forEach(e=>{const t=e.querySelector(".ag-filter-card-title")?.textContent,o=e.querySelector(".ag-filter-type-select");Kk(o,$k.filterToolPanelFilterTypeSelector(t)),e.querySelectorAll(".ag-filter").forEach(e=>this.setupFilterInstance(e,{source:"filter-toolpanel",colLabel:t}))})}),e.querySelectorAll(".ag-filter-toolpanel").forEach(e=>{Kk(e.querySelector(".ag-filter-toolpanel-search-input input[type=text]"),$k.filterToolPanelSearchInput()),e.querySelectorAll(".ag-filter-toolpanel-group").forEach(e=>{const t=e.querySelector(".ag-filter-toolpanel-group-title")?.textContent;Kk(e,$k.filterToolPanelGroup(t)),Kk(e.querySelector(".ag-filter-toolpanel-group-title-bar-icon .ag-icon-tree-closed"),$k.filterToolPanelGroupCollapsedIcon(t));const o=e.querySelector(".ag-filter-toolpanel-instance-filter");o&&this.setupFilterInstance(o,{source:"filter-toolpanel",colLabel:t})})})}),Kk(e.querySelector(".ag-status-bar .ag-status-panel-total-and-filtered-row-count"),$k.statusBarTotalAndFilteredRowCount()),Kk(e.querySelector(".ag-status-bar .ag-status-panel-total-row-count"),$k.statusBarTotalRowCount()),Kk(e.querySelector(".ag-status-bar .ag-status-panel-filtered-row-count"),$k.statusBarFilteredRowCount()),Kk(e.querySelector(".ag-status-bar .ag-status-panel-selected-row-count"),$k.statusBarSelectedRowCount()),Kk(e.querySelector(".ag-status-bar .ag-status-panel-filtered-row-count"),$k.statusBarAggregations()),e.querySelectorAll(".ag-paging-panel").forEach(e=>{Kk(e.querySelector(".ag-paging-page-size .ag-picker-field-display"),$k.paginationPanelSizePickerDisplay(e.querySelector(".ag-paging-page-size .ag-picker-field-display")?.textContent)),e.querySelectorAll(".ag-paging-row-summary-panel-number").forEach(e=>{const t=e.getAttribute("data-ref");switch(t){case"lbFirstRowOnPage":Kk(e,$k.paginationPanelFirstRowOnPage(e.textContent));break;case"lbLastRowOnPage":Kk(e,$k.paginationPanelLastRowOnPage(e.textContent));break;case"lbRecordCount":Kk(e,$k.paginationPanelRecordCount(e.textContent));break}}),e.querySelectorAll(".ag-paging-page-summary-panel .ag-button").forEach(e=>{Kk(e,$k.paginationSummaryPanelButton(e.getAttribute("aria-label")?.toLowerCase()))}),e.querySelectorAll(".ag-paging-page-summary-panel .ag-paging-number").forEach(e=>{const t=e.getAttribute("data-ref");switch(t){case"lbCurrent":Kk(e,$k.paginationSummaryPanelCurrentPage(e.textContent));break;case"lbTotal":Kk(e,$k.paginationSummaryPanelTotalPage(e.textContent));break}})}),Kk(e.querySelector(".ag-fill-handle"),$k.fillHandle()),e.querySelectorAll('.ag-panel[aria-label="Choose Columns"]').forEach(e=>{Kk(e.querySelector(".ag-panel-title-bar-button-icon"),$k.columnChooserCloseButton()),Kk(e.querySelector('.ag-column-select-header-checkbox input[type="checkbox"]'),$k.columnChooserSearchBarCheckbox()),Kk(e.querySelector('.ag-column-select-header-filter-wrapper input[type="text"]'),$k.columnChooserSearchBarFilter()),e.querySelectorAll(".ag-column-select-list").forEach(e=>{e.querySelectorAll(".ag-column-select-virtual-list-item").forEach(e=>{const t=e.getAttribute("aria-label");Kk(e.querySelector(".ag-column-group-closed-icon"),$k.columnChooserListItemGroupClosedIcon(t)),Kk(e.querySelector(".ag-column-select-checkbox input[type=checkbox]"),$k.columnChooserListItemCheckbox(t)),Kk(e.querySelector(".ag-drag-handle"),$k.columnChooserListItemDragHandle(t))})})}),Kk(e.querySelector(".ag-overlay-wrapper"),$k.overlay());const n=e.querySelector(".ag-column-drop-wrapper");n&&this.setupColumnDropArea(n,"panel")}setupFilterInstance(e,t){if(!e)return;e.querySelectorAll(".ag-filter-select .ag-picker-field-display").forEach(e=>{Kk(e,$k.filterInstancePickerDisplay(t))});const o="floating-filter"===t.source?".ag-floating-filter-body":".ag-filter-body",i=e.querySelector(`${o} input[type="number"]`);Kk(i,$k.numberFilterInstanceInput(t));const n=e.querySelector(`${o} input[type="text"]`);Kk(n,$k.textFilterInstanceInput(t));const s=e.querySelector(`${o} input[type="date"]`);Kk(s,$k.dateFilterInstanceInput(t));const r=e.querySelector('.ag-mini-filter input[type="text"]');Kk(r,$k.setFilterInstanceMiniFilterInput(t)),e.querySelectorAll(".ag-set-filter-list .ag-set-filter-item").forEach(e=>{const o=e.querySelector(".ag-checkbox-label")?.textContent,i=e.querySelector('input[type="checkbox"]');Kk(i,$k.setFilterInstanceItem(t,o))}),e.querySelectorAll(".ag-filter-apply-panel button").forEach(e=>{Kk(e,$k.setFilterApplyPanelButton(t,e.textContent))}),e.querySelectorAll(".ag-filter-condition .ag-radio-button").forEach(e=>{const o=e.querySelector(".ag-radio-button-label")?.textContent;Kk(e.querySelector("input[type=radio]"),$k.filterConditionRadioButton(t,o))})}setupColumnDropArea(e,t){e.querySelectorAll(".ag-column-drop").forEach(e=>{const o=e.querySelector(".ag-column-drop-list")?.getAttribute("aria-label");Kk(e,$k.columnDropArea(t,o)),e.querySelectorAll(".ag-column-drop-cell").forEach(e=>{const i=e.querySelector(".ag-column-drop-cell-text")?.textContent;Kk(e.querySelector(".ag-drag-handle"),$k.columnDropCellDragHandle(t,o,i)),Kk(e.querySelector(".ag-column-drop-cell-button .ag-icon-cancel"),$k.columnDropCellCancelButton(t,o,i))})})}},Yk={moduleName:"Testing",version:ro,beans:[Xk]};function Zk({testIdAttribute:e}={}){e&&Qk(e),so.registerModules([Yk])}},80823:function(e,t,o){o.d(t,{C:function(){return i}});const i=[]},81320:function(e,t,o){var i=o(15260),n=(o(98094),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-b3e095fa"]]);t.A=s},82035:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(14626)},83492:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(53391)},84117:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(26812)},85509:function(){},86151:function(e,t,o){var i=o(67227),n=o(10582),s=o(2858);t.A=(0,i.pM)({__name:"Provider",props:n.ZE,setup(e){const t=e;return(0,s.f9)((0,i.EW)(()=>t)),(e,t)=>(0,i.RG)(e.$slots,"default")}})},87464:function(e,t,o){var i=o(67227),n=o(77409),s=o(89035),r=o(14291);const a={class:"loading"},l={class:"loading-inspector"},d={class:"loading-inspector-line"};t.A=(0,i.pM)({__name:"Loading",setup(e,{expose:t}){const o=(0,r.KR)({visible:!1,duration:500,opacityMax:.2,opacity:0,playing:!1,step:0,runId:0}),c=e=>{o.value.visible=e};t({setVisible:c});const u=()=>{const e=o.value.duration/1e3*60;o.value.step=o.value.opacityMax/e},h=()=>{o.value.runId=requestAnimationFrame(h),o.value.opacity+=o.value.step},g=()=>{o.value.runId=requestAnimationFrame(g),o.value.opacity-=o.value.step},p=()=>{cancelAnimationFrame(o.value.runId)},f=()=>{!1===o.value.playing&&(o.value.opacity=0),u()},m=()=>{o.value.playing=!0,h()},v=()=>{o.value.playing=!1,p()},C=()=>{p()},w=()=>{!1===o.value.playing&&(o.value.opacity=o.value.opacityMax),u()},b=()=>{o.value.playing=!0,g()},y=()=>{o.value.playing=!1,p()},S=()=>{p()};return(e,t)=>((0,i.uX)(),(0,i.Wv)(i.Im,{to:"body"},[(0,i.bF)(n.eB,{duration:o.value.duration,onBeforeEnter:f,onEnter:m,onAfterEnter:v,onEnterCancelled:C,onBeforeLeave:w,onLeave:b,onAfterLeave:y,onLeaveCancelled:S},{default:(0,i.k6)(()=>[(0,i.bo)((0,i.Lk)("div",{class:"vyr-loading",style:(0,s.Tr)(`opacity:${o.value.opacity};`)},[(0,i.Lk)("div",a,[(0,i.Lk)("div",l,[(0,i.Lk)("div",d,[((0,i.uX)(),(0,i.CE)(i.FK,null,(0,i.pI)(10,e=>(0,i.Lk)("span",{key:e,style:(0,s.Tr)("animation-delay:"+.1*e+"s;")},null,4)),64))])]),t[0]||(t[0]=(0,i.Lk)("div",{class:"loading-text"},"Loading...",-1))])],4),[[n.aG,o.value.visible]])]),_:1},8,["duration"])]))}})},87503:function(){},87716:function(){},88484:function(e,t,o){o.d(t,{A:function(){return n}});var i=o(64865);function n(e){var t=(0,i.A)(e),o=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+s+n)}},88573:function(e,t,o){function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}o.d(t,{A:function(){return i}})},88676:function(e,t,o){o(4547)},89859:function(e,t,o){o.d(t,{Tl:function(){return n},Ub:function(){return r},YZ:function(){return s},g_:function(){return i}});const i=document.body,n=()=>{const e={width:i.clientWidth,height:i.clientHeight};return e},s=e=>{let t=e.indexOf("%");if(t>-1){const o=n(),i=parseFloat(e.slice(0,t));return Math.floor(o.height*i/100)}let o=e;t=e.indexOf("px"),t>-1&&(o=e.slice(0,t));const i=parseFloat(o);return isNaN(i)?0:i},r=e=>{const t=getComputedStyle(e).height;if(!t)return 0;const o=parseInt(t.split("px")[0]);return isNaN(o)?0:o}},89919:function(){},91023:function(e,t,o){var i=o(82035),n=(o(98386),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-7b486850"]]);t.A=s},91905:function(e,t,o){var i=o(55009),n=(o(88676),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-d902381c"]]);t.A=s},92720:function(e,t,o){o.d(t,{A:function(){return a}});var i=o(96207),n=o(94696),s=o(88573),r=o(69133);function a(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var a=e.getBoundingClientRect(),l=1,d=1;t&&(0,i.sb)(e)&&(l=e.offsetWidth>0&&(0,n.LI)(a.width)/e.offsetWidth||1,d=e.offsetHeight>0&&(0,n.LI)(a.height)/e.offsetHeight||1);var c=(0,i.vq)(e)?(0,s.A)(e):window,u=c.visualViewport,h=!(0,r.A)()&&o,g=(a.left+(h&&u?u.offsetLeft:0))/l,p=(a.top+(h&&u?u.offsetTop:0))/d,f=a.width/l,m=a.height/d;return{width:f,height:m,top:p,right:g+f,bottom:p+m,left:g,x:g,y:p}}},92997:function(){},93273:function(){},93387:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(44796)},93623:function(e,t,o){o.d(t,{$E:function(){return l.$E},CG:function(){return c.C},Cn:function(){return n.Cn},Ds:function(){return g.Ds},Eo:function(){return a.E},G8:function(){return s.G},GR:function(){return r.GR},MX:function(){return h.MX},PA:function(){return p.P},RB:function(){return i.RB},SE:function(){return h.SE},Tl:function(){return u.Tl},Ub:function(){return u.Ub},V2:function(){return r.V2},Wz:function(){return r.Wz},YL:function(){return l.YL},YZ:function(){return u.YZ},ZO:function(){return i.ZO},ap:function(){return d.a},c5:function(){return l.c5},e8:function(){return i.e8},gV:function(){return n.gV},g_:function(){return u.g_},iF:function(){return n.iF},mo:function(){return n.mo},n4:function(){return l.n4},pA:function(){return h.pA},pN:function(){return g.pN},pi:function(){return n.pi},r4:function(){return n.r4},tg:function(){return n.tg},y5:function(){return g.y5}});var i=o(20167),n=o(22052),s=o(53374),r=o(37787),a=o(54710),l=o(6546),d=o(95442),c=o(80823),u=o(89859),h=o(19562),g=o(29419),p=o(73354)},94696:function(e,t,o){o.d(t,{LI:function(){return s},T9:function(){return i},jk:function(){return n}});var i=Math.max,n=Math.min,s=Math.round},95442:function(e,t,o){o.d(t,{a:function(){return i}});const i=/^[-+]?(?:(?=\d|\.\d)(?:\d+\.?\d*|\.\d+)|Infinity)?$/},96207:function(e,t,o){o.d(t,{Ng:function(){return r},sb:function(){return s},vq:function(){return n}});var i=o(88573);function n(e){var t=(0,i.A)(e).Element;return e instanceof t||e instanceof Element}function s(e){var t=(0,i.A)(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function r(e){if("undefined"===typeof ShadowRoot)return!1;var t=(0,i.A)(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}},96408:function(e,t,o){function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},i.apply(this,arguments)}function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function a(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function l(e,t,o){return l=a()?Reflect.construct.bind():function(e,t,o){var i=[null];i.push.apply(i,t);var n=Function.bind.apply(e,i),s=new n;return o&&r(s,o.prototype),s},l.apply(null,arguments)}function d(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function c(e){var t="function"===typeof Map?new Map:void 0;return c=function(e){if(null===e||!d(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return l(e,arguments,s(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r(o,e)},c(e)}o.d(t,{A:function(){return ie}});var u=/%[sdj%]/g,h=function(){};function g(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var o=e.field;t[o]=t[o]||[],t[o].push(e)}),t}function p(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];var n=0,s=o.length;if("function"===typeof e)return e.apply(null,o);if("string"===typeof e){var r=e.replace(u,function(e){if("%%"===e)return"%";if(n>=s)return e;switch(e){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch(t){return"[Circular]"}default:return e}});return r}return e}function f(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}function m(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!f(t)||"string"!==typeof e||e))}function v(e,t,o){var i=[],n=0,s=e.length;function r(e){i.push.apply(i,e||[]),n++,n===s&&o(i)}e.forEach(function(e){t(e,r)})}function C(e,t,o){var i=0,n=e.length;function s(r){if(r&&r.length)o(r);else{var a=i;i+=1,a<n?t(e[a],s):o([])}}s([])}function w(e){var t=[];return Object.keys(e).forEach(function(o){t.push.apply(t,e[o]||[])}),t}var b=function(e){function t(t,o){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=t,i.fields=o,i}return n(t,e),t}(c(Error));function y(e,t,o,i,n){if(t.first){var s=new Promise(function(t,s){var r=function(e){return i(e),e.length?s(new b(e,g(e))):t(n)},a=w(e);C(a,o,r)});return s["catch"](function(e){return e}),s}var r=!0===t.firstFields?Object.keys(e):t.firstFields||[],a=Object.keys(e),l=a.length,d=0,c=[],u=new Promise(function(t,s){var u=function(e){if(c.push.apply(c,e),d++,d===l)return i(c),c.length?s(new b(c,g(c))):t(n)};a.length||(i(c),t(n)),a.forEach(function(t){var i=e[t];-1!==r.indexOf(t)?C(i,o,u):v(i,o,u)})});return u["catch"](function(e){return e}),u}function S(e){return!(!e||void 0===e.message)}function R(e,t){for(var o=e,i=0;i<t.length;i++){if(void 0==o)return o;o=o[t[i]]}return o}function x(e,t){return function(o){var i;return i=e.fullFields?R(t,e.fullFields):t[o.field||e.fullField],S(o)?(o.field=o.field||e.fullField,o.fieldValue=i,o):{message:"function"===typeof o?o():o,fieldValue:i,field:o.field||e.fullField}}}function E(e,t){if(t)for(var o in t)if(t.hasOwnProperty(o)){var n=t[o];"object"===typeof n&&"object"===typeof e[o]?e[o]=i({},e[o],n):e[o]=n}return e}var F,P=function(e,t,o,i,n,s){!e.required||o.hasOwnProperty(e.field)&&!m(t,s||e.type)||i.push(p(n.messages.required,e.fullField))},D=function(e,t,o,i,n){(/^\s+$/.test(t)||""===t)&&i.push(p(n.messages.whitespace,e.fullField))},k=function(){if(F)return F;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},o="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",i="[a-fA-F\\d]{1,4}",n=("\n(?:\n(?:"+i+":){7}(?:"+i+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+i+":){6}(?:"+o+"|:"+i+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+i+":){5}(?::"+o+"|(?::"+i+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+i+":){4}(?:(?::"+i+"){0,1}:"+o+"|(?::"+i+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+i+":){3}(?:(?::"+i+"){0,2}:"+o+"|(?::"+i+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+i+":){2}(?:(?::"+i+"){0,3}:"+o+"|(?::"+i+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+i+":){1}(?:(?::"+i+"){0,4}:"+o+"|(?::"+i+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+i+"){0,5}:"+o+"|(?::"+i+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),s=new RegExp("(?:^"+o+"$)|(?:^"+n+"$)"),r=new RegExp("^"+o+"$"),a=new RegExp("^"+n+"$"),l=function(e){return e&&e.exact?s:new RegExp("(?:"+t(e)+o+t(e)+")|(?:"+t(e)+n+t(e)+")","g")};l.v4=function(e){return e&&e.exact?r:new RegExp(""+t(e)+o+t(e),"g")},l.v6=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")};var d="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",u=l.v4().source,h=l.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",f="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",v='(?:[/?#][^\\s"]*)?',C="(?:"+d+"|www\\.)"+c+"(?:localhost|"+u+"|"+h+"|"+g+p+f+")"+m+v;return F=new RegExp("(?:^"+C+"$)","i"),F},M={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},A={integer:function(e){return A.number(e)&&parseInt(e,10)===e},float:function(e){return A.number(e)&&!A.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===typeof e&&!A.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(M.email)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(k())},hex:function(e){return"string"===typeof e&&!!e.match(M.hex)}},T=function(e,t,o,i,n){if(e.required&&void 0===t)P(e,t,o,i,n);else{var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],r=e.type;s.indexOf(r)>-1?A[r](t)||i.push(p(n.messages.types[r],e.fullField,e.type)):r&&typeof t!==e.type&&i.push(p(n.messages.types[r],e.fullField,e.type))}},I=function(e,t,o,i,n){var s="number"===typeof e.len,r="number"===typeof e.min,a="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=t,c=null,u="number"===typeof t,h="string"===typeof t,g=Array.isArray(t);if(u?c="number":h?c="string":g&&(c="array"),!c)return!1;g&&(d=t.length),h&&(d=t.replace(l,"_").length),s?d!==e.len&&i.push(p(n.messages[c].len,e.fullField,e.len)):r&&!a&&d<e.min?i.push(p(n.messages[c].min,e.fullField,e.min)):a&&!r&&d>e.max?i.push(p(n.messages[c].max,e.fullField,e.max)):r&&a&&(d<e.min||d>e.max)&&i.push(p(n.messages[c].range,e.fullField,e.min,e.max))},L="enum",B=function(e,t,o,i,n){e[L]=Array.isArray(e[L])?e[L]:[],-1===e[L].indexOf(t)&&i.push(p(n.messages[L],e.fullField,e[L].join(", ")))},O=function(e,t,o,i,n){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||i.push(p(n.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var s=new RegExp(e.pattern);s.test(t)||i.push(p(n.messages.pattern.mismatch,e.fullField,t,e.pattern))}},H={required:P,whitespace:D,type:T,range:I,enum:B,pattern:O},V=function(e,t,o,i,n){var s=[],r=e.required||!e.required&&i.hasOwnProperty(e.field);if(r){if(m(t,"string")&&!e.required)return o();H.required(e,t,i,s,n,"string"),m(t,"string")||(H.type(e,t,i,s,n),H.range(e,t,i,s,n),H.pattern(e,t,i,s,n),!0===e.whitespace&&H.whitespace(e,t,i,s,n))}o(s)},G=function(e,t,o,i,n){var s=[],r=e.required||!e.required&&i.hasOwnProperty(e.field);if(r){if(m(t)&&!e.required)return o();H.required(e,t,i,s,n),void 0!==t&&H.type(e,t,i,s,n)}o(s)},N=function(e,t,o,i,n){var s=[],r=e.required||!e.required&&i.hasOwnProperty(e.field);if(r){if(""===t&&(t=void 0),m(t)&&!e.required)return o();H.required(e,t,i,s,n),void 0!==t&&(H.type(e,t,i,s,n),H.range(e,t,i,s,n))}o(s)},z=function(e,t,o,i,n){var s=[],r=e.required||!e.required&&i.hasOwnProperty(e.field);if(r){if(m(t)&&!e.required)return o();H.required(e,t,i,s,n),void 0!==t&&H.type(e,t,i,s,n)}o(s)},W=function(e,t,o,i,n){var s=[],r=e.required||!e.required&&i.hasOwnProperty(e.field);if(r){if(m(t)&&!e.required)return o();H.required(e,t,i,s,n),m(t)||H.type(e,t,i,s,n)}o(s)},_=function(e,t,o,i,n){var s=[],r=e.required||!e.required&&i.hasOwnProperty(e.field);if(r){if(m(t)&&!e.required)return o();H.required(e,t,i,s,n),void 0!==t&&(H.type(e,t,i,s,n),H.range(e,t,i,s,n))}o(s)},U=function(e,t,o,i,n){var s=[],r=e.required||!e.required&&i.hasOwnProperty(e.field);if(r){if(m(t)&&!e.required)return o();H.required(e,t,i,s,n),void 0!==t&&(H.type(e,t,i,s,n),H.range(e,t,i,s,n))}o(s)},$=function(e,t,o,i,n){var s=[],r=e.required||!e.required&&i.hasOwnProperty(e.field);if(r){if((void 0===t||null===t)&&!e.required)return o();H.required(e,t,i,s,n,"array"),void 0!==t&&null!==t&&(H.type(e,t,i,s,n),H.range(e,t,i,s,n))}o(s)},q=function(e,t,o,i,n){var s=[],r=e.required||!e.required&&i.hasOwnProperty(e.field);if(r){if(m(t)&&!e.required)return o();H.required(e,t,i,s,n),void 0!==t&&H.type(e,t,i,s,n)}o(s)},j="enum",K=function(e,t,o,i,n){var s=[],r=e.required||!e.required&&i.hasOwnProperty(e.field);if(r){if(m(t)&&!e.required)return o();H.required(e,t,i,s,n),void 0!==t&&H[j](e,t,i,s,n)}o(s)},Q=function(e,t,o,i,n){var s=[],r=e.required||!e.required&&i.hasOwnProperty(e.field);if(r){if(m(t,"string")&&!e.required)return o();H.required(e,t,i,s,n),m(t,"string")||H.pattern(e,t,i,s,n)}o(s)},X=function(e,t,o,i,n){var s=[],r=e.required||!e.required&&i.hasOwnProperty(e.field);if(r){if(m(t,"date")&&!e.required)return o();var a;if(H.required(e,t,i,s,n),!m(t,"date"))a=t instanceof Date?t:new Date(t),H.type(e,a,i,s,n),a&&H.range(e,a.getTime(),i,s,n)}o(s)},Y=function(e,t,o,i,n){var s=[],r=Array.isArray(t)?"array":typeof t;H.required(e,t,i,s,n,r),o(s)},Z=function(e,t,o,i,n){var s=e.type,r=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(m(t,s)&&!e.required)return o();H.required(e,t,i,r,n,s),m(t,s)||H.type(e,t,i,r,n)}o(r)},J=function(e,t,o,i,n){var s=[],r=e.required||!e.required&&i.hasOwnProperty(e.field);if(r){if(m(t)&&!e.required)return o();H.required(e,t,i,s,n)}o(s)},ee={string:V,method:G,number:N,boolean:z,regexp:W,integer:_,float:U,array:$,object:q,enum:K,pattern:Q,date:X,url:Z,hex:Z,email:Z,required:Y,any:J};function te(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var oe=te(),ie=function(){function e(e){this.rules=null,this._messages=oe,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(o){var i=e[o];t.rules[o]=Array.isArray(i)?i:[i]})},t.messages=function(e){return e&&(this._messages=E(te(),e)),this._messages},t.validate=function(t,o,n){var s=this;void 0===o&&(o={}),void 0===n&&(n=function(){});var r=t,a=o,l=n;if("function"===typeof a&&(l=a,a={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,r),Promise.resolve(r);function d(e){var t=[],o={};function i(e){var o;Array.isArray(e)?t=(o=t).concat.apply(o,e):t.push(e)}for(var n=0;n<e.length;n++)i(e[n]);t.length?(o=g(t),l(t,o)):l(null,r)}if(a.messages){var c=this.messages();c===oe&&(c=te()),E(c,a.messages),a.messages=c}else a.messages=this.messages();var u={},h=a.keys||Object.keys(this.rules);h.forEach(function(e){var o=s.rules[e],n=r[e];o.forEach(function(o){var a=o;"function"===typeof a.transform&&(r===t&&(r=i({},r)),n=r[e]=a.transform(n)),a="function"===typeof a?{validator:a}:i({},a),a.validator=s.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=s.getType(a),u[e]=u[e]||[],u[e].push({rule:a,value:n,source:r,field:e}))})});var f={};return y(u,a,function(t,o){var n,s=t.rule,l=("object"===s.type||"array"===s.type)&&("object"===typeof s.fields||"object"===typeof s.defaultField);function d(e,t){return i({},t,{fullField:s.fullField+"."+e,fullFields:s.fullFields?[].concat(s.fullFields,[e]):[e]})}function c(n){void 0===n&&(n=[]);var c=Array.isArray(n)?n:[n];!a.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==s.message&&(c=[].concat(s.message));var u=c.map(x(s,r));if(a.first&&u.length)return f[s.field]=1,o(u);if(l){if(s.required&&!t.value)return void 0!==s.message?u=[].concat(s.message).map(x(s,r)):a.error&&(u=[a.error(s,p(a.messages.required,s.field))]),o(u);var h={};s.defaultField&&Object.keys(t.value).map(function(e){h[e]=s.defaultField}),h=i({},h,t.rule.fields);var g={};Object.keys(h).forEach(function(e){var t=h[e],o=Array.isArray(t)?t:[t];g[e]=o.map(d.bind(null,e))});var m=new e(g);m.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),m.validate(t.value,t.rule.options||a,function(e){var t=[];u&&u.length&&t.push.apply(t,u),e&&e.length&&t.push.apply(t,e),o(t.length?t:null)})}else o(u)}if(l=l&&(s.required||!s.required&&t.value),s.field=t.field,s.asyncValidator)n=s.asyncValidator(s,t.value,c,t.source,a);else if(s.validator){try{n=s.validator(s,t.value,c,t.source,a)}catch(u){null==console.error||console.error(u),a.suppressValidatorError||setTimeout(function(){throw u},0),c(u.message)}!0===n?c():!1===n?c("function"===typeof s.message?s.message(s.fullField||s.field):s.message||(s.fullField||s.field)+" fails"):n instanceof Array?c(n):n instanceof Error&&c(n.message)}n&&n.then&&n.then(function(){return c()},function(e){return c(e)})},function(e){d(e)},r)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!ee.hasOwnProperty(e.type))throw new Error(p("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),o=t.indexOf("message");return-1!==o&&t.splice(o,1),1===t.length&&"required"===t[0]?ee.required:ee[this.getType(e)]||void 0},e}();ie.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ee[e]=t},ie.warning=h,ie.messages=oe,ie.validators=ee},96466:function(e,t,o){var i=o(67227),n=o(89035);t.A=(0,i.pM)({__name:"Button",props:{width:{default:"auto"}},emits:["click"],setup(e,{emit:t}){const o=e,s=(0,i.EW)(()=>{let e="";return e+="auto"===o.width?"":"width:100%;text-align:center;",e}),r=t;return(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:"vyr-button",style:(0,n.Tr)(s.value),onClick:t[0]||(t[0]=e=>r("click",e))},[(0,i.RG)(e.$slots,"default")],4))}})},96766:function(e,t,o){o.d(t,{A:function(){return n}});var i=o(96207);function n(e){return(((0,i.vq)(e)?e.ownerDocument:e.document)||window.document).documentElement}},98094:function(e,t,o){o(75059)},98119:function(e,t,o){o.d(t,{l:function(){return r}});var i=o(77409),n=o(93623),s=o(49173);const r=(e={})=>{const t=(0,i.Ef)(s.A),o=new Promise(o=>{const i=(0,n.Wz)(e,n=>{i.value.visible=!1,t.unmount(),e.value=i.value.value,e.success=n,o(e)});t.provide(n.GR,i),t.mount(document.createElement("div")),i.value.visible=!0});return o}},98188:function(e,t,o){o(89919)},98315:function(e,t,o){o.d(t,{A:function(){return r}});var i=o(92720),n=o(96766),s=o(13184);function r(e){return(0,i.A)((0,n.A)(e)).left+(0,s.A)(e).scrollLeft}},98386:function(e,t,o){o(92997)},98433:function(e,t,o){var i=o(51669),n=(o(33918),o(45904));const s=(0,n.A)(i.A,[["__scopeId","data-v-8b1b0898"]]);t.A=s},99021:function(e,t,o){o.d(t,{A:function(){return i.A}});var i=o(8030)},99615:function(e,t,o){o.d(t,{r:function(){return r}});var i=Object.defineProperty,n=(e,t,o)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,s=(e,t,o)=>n(e,"symbol"!==typeof t?t+"":t,o);class r{constructor(){s(this,"registrys",{})}listen(e,t,o={}){var i;let n=this.registrys[e];void 0===n&&(n=[],this.registrys[e]=n);const s=void 0===o.insertIndex?n.length:o.insertIndex,r=n.find(e=>e.callback===t);r||n.splice(s,0,{once:null!=(i=o.once)&&i,callback:t});const a=()=>this.unlisten(e,t);return a}unlisten(e,t){let o=this.registrys[e];if(void 0!==o)for(let i=0;i<o.length;i++)if(o[i].callback===t)return o.splice(i,1),void(0===o.length&&delete this.registrys[e])}trigger(e,...t){let o=this.registrys[e];if(void 0!==o&&0!==o.length){o=[...this.registrys[e]];for(let i=0;i<o.length;i++)o[i].callback(...t),!0===o[i].once&&this.unlisten(e,o[i].callback)}}}}}]);
|