@epam/ai-dial-ui-kit 0.10.0-dev.8 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/JsonEditor-CVewYMqi.js +111 -0
  2. package/dist/JsonEditor-D9i1Icn9.cjs +1 -0
  3. package/dist/MarkdownEditor-DN2TOpyj.js +36 -0
  4. package/dist/MarkdownEditor-Df9W4VL7.cjs +1 -0
  5. package/dist/components-manifest.json +368 -59
  6. package/dist/dial-ui-kit.cjs.js +1 -71
  7. package/dist/dial-ui-kit.es.js +126 -60556
  8. package/dist/editor-Ba3vCFHk.cjs +1 -0
  9. package/dist/editor-Cu1dRT39.js +4 -0
  10. package/dist/index-AS4M_ATi.js +61363 -0
  11. package/dist/index-BwReoFLu.cjs +71 -0
  12. package/dist/index.css +2 -2
  13. package/dist/mcp-server.cjs +9 -0
  14. package/dist/src/components/Alert/Alert.d.ts +8 -6
  15. package/dist/src/components/Alert/constants.d.ts +1 -1
  16. package/dist/src/components/Button/ButtonWrappers.d.ts +15 -0
  17. package/dist/src/components/Dropdown/Dropdown.d.ts +0 -47
  18. package/dist/src/components/Dropdown/DropdownSubMenuItem.d.ts +8 -0
  19. package/dist/src/components/DropdownIcon/DropdownIcon.d.ts +38 -0
  20. package/dist/src/components/FabButton/FabButton.d.ts +27 -0
  21. package/dist/src/components/FileManager/FileManager.d.ts +0 -4
  22. package/dist/src/components/FileManager/FileManagerContext.d.ts +6 -2
  23. package/dist/src/components/FileManager/FileManagerTooltip.d.ts +3 -2
  24. package/dist/src/components/FileManager/components/FileManagerItemName/FileManagerItemName.d.ts +3 -0
  25. package/dist/src/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.d.ts +2 -2
  26. package/dist/src/components/FileManager/components/FoldersTree/FoldersTree.d.ts +8 -0
  27. package/dist/src/components/FileManager/components/FoldersTree/constants.d.ts +1 -0
  28. package/dist/src/components/FileManager/constants.d.ts +1 -0
  29. package/dist/src/components/FileManager/hooks/use-file-manager-columns.d.ts +1 -0
  30. package/dist/src/components/FileManager/hooks/use-folder-creation.d.ts +8 -1
  31. package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +3 -3
  32. package/dist/src/components/FileManager/hooks/use-trigger-view-create-folder.d.ts +26 -0
  33. package/dist/src/components/FileManager/utils.d.ts +7 -1
  34. package/dist/src/components/FormItem/constants.d.ts +1 -1
  35. package/dist/src/components/MarkdownEditor/MarkdownEditor.d.ts +4 -2
  36. package/dist/src/components/Pagination/Pagination.d.ts +8 -0
  37. package/dist/src/components/Pagination/utils.d.ts +5 -0
  38. package/dist/src/components/ProgressBar/ProgressBar.d.ts +13 -0
  39. package/dist/src/components/SchemaRenderer/components/SchemaObjectEditor.d.ts +1 -1
  40. package/dist/src/components/SchemaRenderer/types.d.ts +2 -0
  41. package/dist/src/components/Select/SelectSubMenuItem.d.ts +8 -0
  42. package/dist/src/components/Select/constants.d.ts +1 -0
  43. package/dist/src/components/Spinner/Spinner.d.ts +8 -0
  44. package/dist/src/hooks/use-editable-item.d.ts +5 -1
  45. package/dist/src/index.d.ts +14 -1
  46. package/dist/src/mcp/types.d.ts +7 -0
  47. package/dist/src/models/dropdown.d.ts +1 -0
  48. package/dist/src/models/select.d.ts +1 -0
  49. package/dist/src/types/alert.d.ts +2 -1
  50. package/dist/src/types/file-manager.d.ts +9 -0
  51. package/dist/src/utils/mobile.d.ts +2 -2
  52. package/dist/src/utils/sub-menu-floating.d.ts +51 -0
  53. package/package.json +5 -5
  54. /package/dist/{.cursor/hooks/post-write-verify.d.ts → src/components/Pagination/tests/utils.spec.d.ts} +0 -0
@@ -1,71 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),ge=require("classnames"),W=require("@tabler/icons-react"),Oe=require("@floating-ui/react"),Dn=require("react-dom");function Ub(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const ye=Ub(g);function $b(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qb(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var i=function s(){var o=!1;try{o=this instanceof s}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var o=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(i,s,o.get?o:{enumerable:!0,get:function(){return e[s]}})}),i}var Fa={exports:{}},Yn={};var Kp;function Kb(){if(Kp)return Yn;Kp=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(s,o,n){var r=null;if(n!==void 0&&(r=""+n),o.key!==void 0&&(r=""+o.key),"key"in o){n={};for(var a in o)a!=="key"&&(n[a]=o[a])}else n=o;return o=n.ref,{$$typeof:e,type:s,key:r,ref:o!==void 0?o:null,props:n}}return Yn.Fragment=t,Yn.jsx=i,Yn.jsxs=i,Yn}var Zn={};var Yp;function Yb(){return Yp||(Yp=1,process.env.NODE_ENV!=="production"&&(function(){function e(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===P?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case C:return"Fragment";case b:return"Profiler";case w:return"StrictMode";case E:return"Suspense";case R:return"SuspenseList";case T:return"Activity"}if(typeof I=="object")switch(typeof I.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case v:return"Portal";case y:return I.displayName||"Context";case x:return(I._context.displayName||"Context")+".Consumer";case S:var G=I.render;return I=I.displayName,I||(I=G.displayName||G.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case F:return G=I.displayName||null,G!==null?G:e(I.type)||"Memo";case D:G=I._payload,I=I._init;try{return e(I(G))}catch{}}return null}function t(I){return""+I}function i(I){try{t(I);var G=!1}catch{G=!0}if(G){G=console;var K=G.error,oe=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return K.call(G,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",oe),t(I)}}function s(I){if(I===C)return"<>";if(typeof I=="object"&&I!==null&&I.$$typeof===D)return"<...>";try{var G=e(I);return G?"<"+G+">":"<...>"}catch{return"<...>"}}function o(){var I=k.A;return I===null?null:I.getOwner()}function n(){return Error("react-stack-top-frame")}function r(I){if(O.call(I,"key")){var G=Object.getOwnPropertyDescriptor(I,"key").get;if(G&&G.isReactWarning)return!1}return I.key!==void 0}function a(I,G){function K(){N||(N=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",G))}K.isReactWarning=!0,Object.defineProperty(I,"key",{get:K,configurable:!0})}function l(){var I=e(this.type);return H[I]||(H[I]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),I=this.props.ref,I!==void 0?I:null}function c(I,G,K,oe,ve,Y){var j=K.ref;return I={$$typeof:m,type:I,key:G,props:K,_owner:oe},(j!==void 0?j:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:l}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ve}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function d(I,G,K,oe,ve,Y){var j=G.children;if(j!==void 0)if(oe)if(_(j)){for(oe=0;oe<j.length;oe++)u(j[oe]);Object.freeze&&Object.freeze(j)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else u(j);if(O.call(G,"key")){j=e(I);var be=Object.keys(G).filter(function(ie){return ie!=="key"});oe=0<be.length?"{key: someKey, "+be.join(": ..., ")+": ...}":"{key: someKey}",M[j+oe]||(be=0<be.length?"{"+be.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
- let props = %s;
3
- <%s {...props} />
4
- React keys must be passed directly to JSX without using spread:
5
- let props = %s;
6
- <%s key={someKey} {...props} />`,oe,j,be,j),M[j+oe]=!0)}if(j=null,K!==void 0&&(i(K),j=""+K),r(G)&&(i(G.key),j=""+G.key),"key"in G){K={};for(var J in G)J!=="key"&&(K[J]=G[J])}else K=G;return j&&a(K,typeof I=="function"?I.displayName||I.name||"Unknown":I),c(I,j,K,o(),ve,Y)}function u(I){h(I)?I._store&&(I._store.validated=1):typeof I=="object"&&I!==null&&I.$$typeof===D&&(I._payload.status==="fulfilled"?h(I._payload.value)&&I._payload.value._store&&(I._payload.value._store.validated=1):I._store&&(I._store.validated=1))}function h(I){return typeof I=="object"&&I!==null&&I.$$typeof===m}var p=g,m=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),y=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),T=Symbol.for("react.activity"),P=Symbol.for("react.client.reference"),k=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=Object.prototype.hasOwnProperty,_=Array.isArray,L=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(I){return I()}};var N,H={},z=p.react_stack_bottom_frame.bind(p,n)(),se=L(s(n)),M={};Zn.Fragment=C,Zn.jsx=function(I,G,K){var oe=1e4>k.recentlyCreatedOwnerStacks++;return d(I,G,K,!1,oe?Error("react-stack-top-frame"):z,oe?L(s(I)):se)},Zn.jsxs=function(I,G,K){var oe=1e4>k.recentlyCreatedOwnerStacks++;return d(I,G,K,!0,oe?Error("react-stack-top-frame"):z,oe?L(s(I)):se)}})()),Zn}var Zp;function Zb(){return Zp||(Zp=1,process.env.NODE_ENV==="production"?Fa.exports=Kb():Fa.exports=Yb()),Fa.exports}var f=Zb();const Xb=(e,t)=>{const i=new Array(e.length+t.length);for(let s=0;s<e.length;s++)i[s]=e[s];for(let s=0;s<t.length;s++)i[e.length+s]=t[s];return i},Qb=(e,t)=>({classGroupId:e,validator:t}),Tm=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),dl="-",Xp=[],Jb="arbitrary..",e0=e=>{const t=i0(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:r=>{if(r.startsWith("[")&&r.endsWith("]"))return t0(r);const a=r.split(dl),l=a[0]===""&&a.length>1?1:0;return km(a,l,t)},getConflictingClassGroupIds:(r,a)=>{if(a){const l=s[r],c=i[r];return l?c?Xb(c,l):l:c||Xp}return i[r]||Xp}}},km=(e,t,i)=>{if(e.length-t===0)return i.classGroupId;const o=e[t],n=i.nextPart.get(o);if(n){const c=km(e,t+1,n);if(c)return c}const r=i.validators;if(r===null)return;const a=t===0?e.join(dl):e.slice(t).join(dl),l=r.length;for(let c=0;c<l;c++){const d=r[c];if(d.validator(a))return d.classGroupId}},t0=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),i=t.indexOf(":"),s=t.slice(0,i);return s?Jb+s:void 0})(),i0=e=>{const{theme:t,classGroups:i}=e;return s0(i,t)},s0=(e,t)=>{const i=Tm();for(const s in e){const o=e[s];th(o,i,s,t)}return i},th=(e,t,i,s)=>{const o=e.length;for(let n=0;n<o;n++){const r=e[n];o0(r,t,i,s)}},o0=(e,t,i,s)=>{if(typeof e=="string"){n0(e,t,i);return}if(typeof e=="function"){r0(e,t,i,s);return}a0(e,t,i,s)},n0=(e,t,i)=>{const s=e===""?t:Im(t,e);s.classGroupId=i},r0=(e,t,i,s)=>{if(l0(e)){th(e(s),t,i,s);return}t.validators===null&&(t.validators=[]),t.validators.push(Qb(i,e))},a0=(e,t,i,s)=>{const o=Object.entries(e),n=o.length;for(let r=0;r<n;r++){const[a,l]=o[r];th(l,Im(t,a),i,s)}},Im=(e,t)=>{let i=e;const s=t.split(dl),o=s.length;for(let n=0;n<o;n++){const r=s[n];let a=i.nextPart.get(r);a||(a=Tm(),i.nextPart.set(r,a)),i=a}return i},l0=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,c0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,i=Object.create(null),s=Object.create(null);const o=(n,r)=>{i[n]=r,t++,t>e&&(t=0,s=i,i=Object.create(null))};return{get(n){let r=i[n];if(r!==void 0)return r;if((r=s[n])!==void 0)return o(n,r),r},set(n,r){n in i?i[n]=r:o(n,r)}}},nu="!",Qp=":",d0=[],Jp=(e,t,i,s,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:s,isExternal:o}),u0=e=>{const{prefix:t,experimentalParseClassName:i}=e;let s=o=>{const n=[];let r=0,a=0,l=0,c;const d=o.length;for(let v=0;v<d;v++){const C=o[v];if(r===0&&a===0){if(C===Qp){n.push(o.slice(l,v)),l=v+1;continue}if(C==="/"){c=v;continue}}C==="["?r++:C==="]"?r--:C==="("?a++:C===")"&&a--}const u=n.length===0?o:o.slice(l);let h=u,p=!1;u.endsWith(nu)?(h=u.slice(0,-1),p=!0):u.startsWith(nu)&&(h=u.slice(1),p=!0);const m=c&&c>l?c-l:void 0;return Jp(n,p,h,m)};if(t){const o=t+Qp,n=s;s=r=>r.startsWith(o)?n(r.slice(o.length)):Jp(d0,!1,r,void 0,!0)}if(i){const o=s;s=n=>i({className:n,parseClassName:o})}return s},h0=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((i,s)=>{t.set(i,1e6+s)}),i=>{const s=[];let o=[];for(let n=0;n<i.length;n++){const r=i[n],a=r[0]==="[",l=t.has(r);a||l?(o.length>0&&(o.sort(),s.push(...o),o=[]),s.push(r)):o.push(r)}return o.length>0&&(o.sort(),s.push(...o)),s}},p0=e=>({cache:c0(e.cacheSize),parseClassName:u0(e),sortModifiers:h0(e),...e0(e)}),g0=/\s+/,f0=(e,t)=>{const{parseClassName:i,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:n}=t,r=[],a=e.trim().split(g0);let l="";for(let c=a.length-1;c>=0;c-=1){const d=a[c],{isExternal:u,modifiers:h,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:v}=i(d);if(u){l=d+(l.length>0?" "+l:l);continue}let C=!!v,w=s(C?m.substring(0,v):m);if(!w){if(!C){l=d+(l.length>0?" "+l:l);continue}if(w=s(m),!w){l=d+(l.length>0?" "+l:l);continue}C=!1}const b=h.length===0?"":h.length===1?h[0]:n(h).join(":"),x=p?b+nu:b,y=x+w;if(r.indexOf(y)>-1)continue;r.push(y);const S=o(w,C);for(let E=0;E<S.length;++E){const R=S[E];r.push(x+R)}l=d+(l.length>0?" "+l:l)}return l},m0=(...e)=>{let t=0,i,s,o="";for(;t<e.length;)(i=e[t++])&&(s=Mm(i))&&(o&&(o+=" "),o+=s);return o},Mm=e=>{if(typeof e=="string")return e;let t,i="";for(let s=0;s<e.length;s++)e[s]&&(t=Mm(e[s]))&&(i&&(i+=" "),i+=t);return i},v0=(e,...t)=>{let i,s,o,n;const r=l=>{const c=t.reduce((d,u)=>u(d),e());return i=p0(c),s=i.cache.get,o=i.cache.set,n=a,a(l)},a=l=>{const c=s(l);if(c)return c;const d=f0(l,i);return o(l,d),d};return n=r,(...l)=>n(m0(...l))},C0=[],ut=e=>{const t=i=>i[e]||C0;return t.isThemeGetter=!0,t},Am=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Lm=/^\((?:(\w[\w-]*):)?(.+)\)$/i,w0=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,b0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,x0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,y0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,S0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,R0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ls=e=>w0.test(e),Me=e=>!!e&&!Number.isNaN(Number(e)),cs=e=>!!e&&Number.isInteger(Number(e)),Jc=e=>e.endsWith("%")&&Me(e.slice(0,-1)),Ui=e=>b0.test(e),Om=()=>!0,F0=e=>x0.test(e)&&!y0.test(e),ih=()=>!1,E0=e=>S0.test(e),D0=e=>R0.test(e),P0=e=>!fe(e)&&!me(e),T0=e=>ks(e,Bm,ih),fe=e=>Am.test(e),zs=e=>ks(e,Gm,F0),eg=e=>ks(e,H0,Me),k0=e=>ks(e,zm,Om),I0=e=>ks(e,Vm,ih),tg=e=>ks(e,Nm,ih),M0=e=>ks(e,Hm,D0),Ea=e=>ks(e,Wm,E0),me=e=>Lm.test(e),Xn=e=>yo(e,Gm),A0=e=>yo(e,Vm),ig=e=>yo(e,Nm),L0=e=>yo(e,Bm),O0=e=>yo(e,Hm),Da=e=>yo(e,Wm,!0),N0=e=>yo(e,zm,!0),ks=(e,t,i)=>{const s=Am.exec(e);return s?s[1]?t(s[1]):i(s[2]):!1},yo=(e,t,i=!1)=>{const s=Lm.exec(e);return s?s[1]?t(s[1]):i:!1},Nm=e=>e==="position"||e==="percentage",Hm=e=>e==="image"||e==="url",Bm=e=>e==="length"||e==="size"||e==="bg-size",Gm=e=>e==="length",H0=e=>e==="number",Vm=e=>e==="family-name",zm=e=>e==="number"||e==="weight",Wm=e=>e==="shadow",B0=()=>{const e=ut("color"),t=ut("font"),i=ut("text"),s=ut("font-weight"),o=ut("tracking"),n=ut("leading"),r=ut("breakpoint"),a=ut("container"),l=ut("spacing"),c=ut("radius"),d=ut("shadow"),u=ut("inset-shadow"),h=ut("text-shadow"),p=ut("drop-shadow"),m=ut("blur"),v=ut("perspective"),C=ut("aspect"),w=ut("ease"),b=ut("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...y(),me,fe],E=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],F=()=>[me,fe,l],D=()=>[ls,"full","auto",...F()],T=()=>[cs,"none","subgrid",me,fe],P=()=>["auto",{span:["full",cs,me,fe]},cs,me,fe],k=()=>[cs,"auto",me,fe],O=()=>["auto","min","max","fr",me,fe],_=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...F()],H=()=>[ls,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],z=()=>[ls,"screen","full","dvw","lvw","svw","min","max","fit",...F()],se=()=>[ls,"screen","full","lh","dvh","lvh","svh","min","max","fit",...F()],M=()=>[e,me,fe],I=()=>[...y(),ig,tg,{position:[me,fe]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",L0,T0,{size:[me,fe]}],oe=()=>[Jc,Xn,zs],ve=()=>["","none","full",c,me,fe],Y=()=>["",Me,Xn,zs],j=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[Me,Jc,ig,tg],ie=()=>["","none",m,me,fe],U=()=>["none",Me,me,fe],ae=()=>["none",Me,me,fe],V=()=>[Me,me,fe],ue=()=>[ls,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ui],breakpoint:[Ui],color:[Om],container:[Ui],"drop-shadow":[Ui],ease:["in","out","in-out"],font:[P0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ui],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ui],shadow:[Ui],spacing:["px",Me],text:[Ui],"text-shadow":[Ui],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ls,fe,me,C]}],container:["container"],columns:[{columns:[Me,fe,me,a]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[cs,"auto",me,fe]}],basis:[{basis:[ls,"full","auto",a,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,ls,"auto","initial","none",fe]}],grow:[{grow:["",Me,me,fe]}],shrink:[{shrink:["",Me,me,fe]}],order:[{order:[cs,"first","last","none",me,fe]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:P()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:P()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[..._(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",..._()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":_()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pbs:[{pbs:F()}],pbe:[{pbe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],"inline-size":[{inline:["auto",...z()]}],"min-inline-size":[{"min-inline":["auto",...z()]}],"max-inline-size":[{"max-inline":["none",...z()]}],"block-size":[{block:["auto",...se()]}],"min-block-size":[{"min-block":["auto",...se()]}],"max-block-size":[{"max-block":["none",...se()]}],w:[{w:[a,"screen",...H()]}],"min-w":[{"min-w":[a,"screen","none",...H()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[r]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",i,Xn,zs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,N0,k0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Jc,fe]}],"font-family":[{font:[A0,I0,t]}],"font-features":[{"font-features":[fe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,me,fe]}],"line-clamp":[{"line-clamp":[Me,"none",me,eg]}],leading:[{leading:[n,...F()]}],"list-image":[{"list-image":["none",me,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",me,zs]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[Me,"auto",me,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},cs,me,fe],radial:["",me,fe],conic:[cs,me,fe]},O0,M0]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:ve()}],"rounded-s":[{"rounded-s":ve()}],"rounded-e":[{"rounded-e":ve()}],"rounded-t":[{"rounded-t":ve()}],"rounded-r":[{"rounded-r":ve()}],"rounded-b":[{"rounded-b":ve()}],"rounded-l":[{"rounded-l":ve()}],"rounded-ss":[{"rounded-ss":ve()}],"rounded-se":[{"rounded-se":ve()}],"rounded-ee":[{"rounded-ee":ve()}],"rounded-es":[{"rounded-es":ve()}],"rounded-tl":[{"rounded-tl":ve()}],"rounded-tr":[{"rounded-tr":ve()}],"rounded-br":[{"rounded-br":ve()}],"rounded-bl":[{"rounded-bl":ve()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-bs":[{"border-bs":Y()}],"border-w-be":[{"border-be":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...j(),"hidden","none"]}],"divide-style":[{divide:[...j(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...j(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,me,fe]}],"outline-w":[{outline:["",Me,Xn,zs]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",d,Da,Ea]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",u,Da,Ea]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[Me,zs]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",h,Da,Ea]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[Me,me,fe]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[me,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,fe]}],filter:[{filter:["","none",me,fe]}],blur:[{blur:ie()}],brightness:[{brightness:[Me,me,fe]}],contrast:[{contrast:[Me,me,fe]}],"drop-shadow":[{"drop-shadow":["","none",p,Da,Ea]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",Me,me,fe]}],"hue-rotate":[{"hue-rotate":[Me,me,fe]}],invert:[{invert:["",Me,me,fe]}],saturate:[{saturate:[Me,me,fe]}],sepia:[{sepia:["",Me,me,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",me,fe]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[Me,me,fe]}],"backdrop-contrast":[{"backdrop-contrast":[Me,me,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,me,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,me,fe]}],"backdrop-invert":[{"backdrop-invert":["",Me,me,fe]}],"backdrop-opacity":[{"backdrop-opacity":[Me,me,fe]}],"backdrop-saturate":[{"backdrop-saturate":[Me,me,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,me,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",me,fe]}],ease:[{ease:["linear","initial",w,me,fe]}],delay:[{delay:[Me,me,fe]}],animate:[{animate:["none",b,me,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,me,fe]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:V()}],"skew-x":[{"skew-x":V()}],"skew-y":[{"skew-y":V()}],transform:[{transform:[me,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ue()}],"translate-x":[{"translate-x":ue()}],"translate-y":[{"translate-y":ue()}],"translate-z":[{"translate-z":ue()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,fe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mbs":[{"scroll-mbs":F()}],"scroll-mbe":[{"scroll-mbe":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pbs":[{"scroll-pbs":F()}],"scroll-pbe":[{"scroll-pbe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,fe]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[Me,Xn,zs,eg]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},G0=v0(B0);function ne(...e){return G0(ge(e))}var ul=(e=>(e.Description="description",e.Error="error",e))(ul||{});const Gr=({text:e,className:t,variant:i=ul.Description,...s})=>e?f.jsx("span",{...s,role:"alert",className:ne("dial-tiny-text",i===ul.Error?"text-error":"text-secondary",t),children:e}):null,bi=({...e})=>f.jsx(Gr,{...e,variant:ul.Error});var Ye=(e=>(e.Primary="primary",e.Neutral="neutral",e.Error="error",e.Success="Success",e.Secondary="secondary",e.Tertiary="tertiary",e))(Ye||{}),Ae=(e=>(e.Solid="solid",e.Outlined="outlined",e.Ghost="ghost",e.Link="link",e))(Ae||{});const sg={[Ye.Primary]:{[Ae.Solid]:"dial-primary-solid-button",[Ae.Ghost]:"dial-primary-ghost-button",[Ae.Link]:"dial-primary-link-button"},[Ye.Neutral]:{[Ae.Outlined]:"dial-neutral-outlined-button"},[Ye.Error]:{[Ae.Solid]:"dial-error-solid-button",[Ae.Ghost]:"dial-error-ghost-button"},[Ye.Success]:{[Ae.Ghost]:"dial-success-ghost-button"},[Ye.Secondary]:{[Ae.Ghost]:"dial-secondary-ghost-button"},[Ye.Tertiary]:{[Ae.Ghost]:"dial-tertiary-ghost-button"}},jm=(e=Ye.Primary,t=Ae.Solid)=>{const i=sg[e]?.[t];return i||(console.warn(`Could not find Button styles for variant: ${e} and appearance: ${t}. Using default primary solid button styles.`),sg[Ye.Primary][Ae.Solid])},V0=7,z0=2,_m=g.createContext(null),Um=()=>{const e=g.useContext(_m);if(e==null)throw new Error("Tooltip components must be wrapped in <Tooltip />");return e},W0=({initialOpen:e=!1,placement:t="bottom",isTriggerClickable:i=!1,open:s,onOpenChange:o}={})=>{const[n,r]=g.useState(e),a=g.useRef(null),l=s??n,c=o??r,d=Oe.useFloating({placement:t,open:l,onOpenChange:c,whileElementsMounted:Oe.autoUpdate,middleware:[Oe.offset(V0+z0),Oe.flip({crossAxis:t.includes("-"),fallbackAxisSideDirection:"start",padding:5}),Oe.shift({padding:5}),Oe.arrow({element:a})]}),u=Oe.useHover(d.context,{move:!1,enabled:s==null,mouseOnly:i,delay:{open:500,close:0}}),h=Oe.useFocus(d.context,{enabled:s==null}),p=Oe.useDismiss(d.context),m=Oe.useRole(d.context,{role:"tooltip"}),v=Oe.useInteractions([u,h,p,m]);return g.useEffect(()=>{if(!l)return;const C=d.refs.reference.current;if(!(C instanceof Element))return;const w=new IntersectionObserver(([b])=>{b.isIntersecting||c(!1)},{root:null,threshold:0});return w.observe(C),()=>w.disconnect()},[l,d.refs.reference,c]),g.useMemo(()=>({open:l,setOpen:c,arrowRef:a,...v,...d}),[l,c,v,d])},sh=({children:e,...t})=>{const i=W0(t);return f.jsx(_m.Provider,{value:i,children:e})},oh=({style:e,...t})=>{const i=Um(),s=g.useRef(null),o=Oe.useMergeRefs([i.refs.setFloating,s]);return i.open?f.jsx(Oe.FloatingPortal,{id:"tooltip-portal",children:f.jsxs("div",{ref:o,style:{...i.floatingStyles,...e},...i.getFloatingProps(t),className:ge("z-[55] whitespace-pre-wrap break-words rounded border border-primary bg-layer-0 px-2 py-1 dial-tiny-text shadow max-w-[300px]",i.getFloatingProps(t).className),children:[t.children,f.jsx(Oe.FloatingArrow,{ref:i.arrowRef,context:i.context,fill:"currentColor",strokeWidth:1,className:"stroke-primary text-[var(--bg-layer-0,_#000000)]"})]})}):null},nh=({children:e,asChild:t=!1,...i})=>{const s=Um(),o=t&&g.isValidElement(e),n=o?e.props?.ref:null,r=Oe.useMergeRefs([s.refs.setReference,...n?[n]:[]]);return o?g.cloneElement(e,s.getReferenceProps({...e.props,...i,ref:r})):f.jsx("span",{ref:r,...s.getReferenceProps(i),className:i.className??"dial-tooltip-trigger text-left",children:e})},jt=({hideTooltip:e,tooltip:t,children:i,triggerClassName:s,contentClassName:o,...n})=>f.jsxs(sh,{...n,children:[f.jsx(nh,{className:ge(s,"truncate"),children:i}),f.jsx(oh,{className:ge("text-primary",o,"max-w-[300px]",(e||!t)&&"hidden"),children:t})]});var xt=(e=>(e.Small="small",e.Standard="standard",e))(xt||{});const Is=({variant:e,appearance:t=Ae.Solid,size:i=xt.Standard,className:s,icon:o,tooltipProps:n,type:r="button",...a})=>{const l=ne(e&&jm(e,t),i===xt.Small?"h-[24px] w-[24px]":"h-[40px] w-[40px]","dial-icon-button disabled:cursor-not-allowed focus-visible:outline outline-offset-0 disabled:text-controls-secondary-disable",s),c=f.jsx("button",{...a,type:r,className:l,"aria-label":a["aria-label"],children:o});return n?f.jsx(jt,{...n,children:c}):c},j0="w-[24px] h-[24px] border border-solid rounded-[6px] border-transparent flex items-center justify-center text-secondary hover:text-controls-accent-primary-hover active:text-controls-accent-primary-active focus-within:border-focus";var St=(e=>(e[e.LG=24]="LG",e[e.MD=20]="MD",e[e.SM=16]="SM",e))(St||{});const qt=18,ee={size:qt,stroke:2},$m=({caption:e,onClick:t})=>{if(!e)return null;const i=f.jsx(Is,{"aria-label":e,className:j0,icon:f.jsx(W.IconInfoCircle,{size:St.SM}),onClick:t});return e?f.jsx(jt,{tooltip:e,triggerClassName:"flex justify-center items-center",children:i}):i},So=({label:e,required:t,className:i,caption:s,...o})=>e?f.jsxs("label",{...o,className:ne("dial-tiny-text text-secondary flex items-center gap-1",i),children:[typeof e=="string"?f.jsx("span",{className:"min-h-4",children:e}):e,t&&f.jsx("span",{className:"text-accent-primary",children:"*"}),f.jsx($m,{caption:s})]}):null,Ue=({icon:e,className:t})=>e?f.jsx("span",{className:ge("flex-shrink-0",t),children:e}):null,di=({label:e,variant:t,appearance:i=Ae.Solid,size:s=xt.Standard,className:o,textClassName:n,iconAfter:r,iconBefore:a,hideTitleOnMobile:l,type:c="button",tooltipProps:d,...u})=>{const h=ge(l?"hidden sm:inline":"inline",n),p=ne(t&&jm(t,i),s===xt.Small?"dial-tiny-semi-text":"dial-small-semi-text",i!==Ae.Link&&(s===xt.Small?"h-[24px] px-2":"h-[40px] px-3"),"disabled:cursor-not-allowed focus-visible:outline outline-offset-0",o),m=f.jsxs("button",{...u,type:c,className:p,"aria-label":typeof e=="string"&&e||u["aria-label"],children:[f.jsx(Ue,{icon:a}),e&&f.jsx("span",{className:h,children:e}),f.jsx(Ue,{icon:r})]});return d?f.jsx(jt,{...d,children:m}):m};var Ci=(e=>(e.Info="info",e.Success="success",e.Warning="warning",e.Error="error",e))(Ci||{});const _0=e=>({info:f.jsx(W.IconInfoCircle,{...e}),error:f.jsx(W.IconAlertCircle,{...e}),warning:f.jsx(W.IconAlertTriangle,{...e}),success:f.jsx(W.IconCircleCheck,{...e})}),U0={[Ci.Info]:"bg-info border-info text-info",[Ci.Success]:"bg-success border-success text-success",[Ci.Warning]:"bg-warning border-warning text-warning",[Ci.Error]:"bg-error border-error text-error"},$0="items-center justify-between gap-2 p-3 border border-solid dial-small-text-150 rounded flex",qm=({variant:e=Ci.Info,message:t,className:i,iconSize:s=24,iconStroke:o=2,closable:n=!1,onClose:r,children:a,...l})=>{const c=g.useMemo(()=>_0({size:s,stroke:o})[e],[e,s,o]);return f.jsxs("div",{...l,role:"alert",className:ne($0,U0[e],i),children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Ue,{icon:c}),f.jsx("div",{className:"text-primary",children:t})]}),a,n&&f.jsx(di,{className:"ml-2 text-secondary hover:text-primary","aria-label":"Close alert",iconBefore:f.jsx(W.IconX,{size:St.SM}),onClick:r})]})},q0="flex items-center justify-center text-secondary",K0="shrink-0 grow-0 basis-auto animate-spin-steps",Y0=e=>ye.createElement("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M24 39V46.5",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ye.createElement("path",{opacity:.4,d:"M9 24H1.5",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ye.createElement("path",{opacity:.5,d:"M8.0918 8.0918L13.3994 13.3994",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ye.createElement("path",{opacity:.6,d:"M24 1.5V9",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ye.createElement("path",{opacity:.7,d:"M39.9121 8.08594L37.2607 10.7373L34.6094 13.3887",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ye.createElement("path",{opacity:.8,d:"M46.5 24H39",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ye.createElement("path",{opacity:.9,d:"M34.6055 34.6055L39.9082 39.9082",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ye.createElement("path",{opacity:.3,d:"M13.3936 34.6055L8.08594 39.9131",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})),Vr=({size:e=18,className:t,iconClassName:i,fullWidth:s=!0,ariaLabel:o="Loading"})=>f.jsx("div",{role:"status",className:ge({[q0]:!0,"w-full h-full":s,[t||""]:!!t}),children:f.jsx(Ue,{icon:f.jsx(Y0,{width:e,height:e,className:ge(K0,i),role:"img","aria-label":o})})}),Z0="text-primary",bt=({text:e,className:t,contentClassName:i,hideTooltip:s,id:o,customTooltipContent:n,...r})=>{const a=g.useRef(null),[l,c]=g.useState(!1),[d,u]=g.useState(""),h=g.useRef(null),p=()=>{const w=a.current;if(!w)return;u(w.textContent??"");const b=w.clientWidth,x=w.scrollWidth,y=Math.ceil(w.getBoundingClientRect().width);c(x>b||x>y)},m=g.useCallback(()=>{h.current&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(p)},[]);g.useEffect(()=>{m();const w=()=>m();window.addEventListener("resize",w);let b=null;return"ResizeObserver"in window&&a.current&&(b=new ResizeObserver(()=>m()),b.observe(a.current)),()=>{window.removeEventListener("resize",w),b&&b.disconnect(),h.current&&cancelAnimationFrame(h.current)}},[e,m]);const v=g.useMemo(()=>typeof e=="string"?e:d,[d,e]),C=g.useMemo(()=>s?"":n||(l?v:""),[n,v,s,l]);return f.jsxs(sh,{...r,children:[f.jsx(nh,{asChild:!0,onMouseEnter:m,onFocusCapture:m,children:f.jsx("span",{id:o,className:ne("block truncate flex-1 min-w-0 max-w-full text-left",t),"aria-label":l?v:void 0,onMouseEnter:m,onFocus:m,ref:a,children:e})}),f.jsx(oh,{className:ne(Z0,i,!C&&"hidden"),children:C})]})},ru="checkbox-container",au=({label:e,id:t,checked:i,indeterminate:s,disabled:o,ariaLabel:n,onChange:r,className:a,...l})=>{const c=g.useCallback(p=>{r?.(p.target.checked,t)},[r,t]),d=ge("flex flex-row items-center cursor-pointer text-accent-primary small-medium min-w-0",`${i||s?"":'before:content-[""] before:inline-block before:w-[18px] before:h-[18px] before:border before:border-hover before:rounded'}`,o?"pointer-events-none text-secondary before:border-icon-secondary before:bg-layer-4":"",a),u=ge("border rounded",o?"bg-layer-4 border-icon-secondary":""),h=()=>s?f.jsx(W.IconMinus,{className:u,...ee}):i?f.jsx(W.IconCheck,{className:u,...ee}):null;return f.jsxs("label",{...l,className:d,htmlFor:t,"aria-description":l["aria-description"]||ru,children:[h(),e&&(typeof e=="string"?f.jsx(bt,{text:e,className:"ml-2 text-primary"}):e),f.jsx("input",{type:"checkbox",role:"checkbox",name:t,onChange:c,id:t,checked:i,"aria-checked":s?"mixed":i,"aria-disabled":o||void 0,"aria-label":e?void 0:n,className:"invisible size-0"})]})};var Zt=(e=>(e.VALID="valid",e.ERROR="error",e))(Zt||{});const X0=(e,t)=>{if(t===e.id)switch(e.status){case Zt.VALID:return"border-accent-secondary text-primary";case Zt.ERROR:return"border-red-900 text-primary";default:return"border-accent-primary text-primary"}switch(e.status){case Zt.VALID:return"border-primary text-primary";case Zt.ERROR:return"border-red-900 text-error";default:return"border-primary text-secondary"}},Q0=(e,t)=>{if(t===e.id)switch(e.status){case Zt.VALID:return"bg-accent-secondary";case Zt.ERROR:return"bg-red-400";default:return"bg-accent-primary"}switch(e.status){case Zt.VALID:return"bg-accent-secondary";case Zt.ERROR:return"bg-red-400";default:return"bg-layer-4"}},J0=({step:e,index:t,currentStep:i,onChangeStep:s})=>{const o="h-[32px] flex flex-1 min-w-[180px] items-center dial-tiny-text cursor-pointer dial-step",n="w-[22px] h-[22px] flex justify-center items-center mr-2 rounded-full text-white",r=()=>i===e.id&&e.status===Zt.ERROR?f.jsx(W.IconExclamationCircle,{stroke:2,size:St.SM}):i!==e.id&&e.status===Zt.VALID?f.jsx(W.IconCheck,{stroke:2,size:St.SM}):t+1;return f.jsxs("button",{className:ge(o,X0(e,i)),onClick:()=>s(e.id),children:[f.jsx("span",{className:ge(n,Q0(e,i)),children:r()}),f.jsx("span",{children:e.name})]})},ex=({steps:e,currentStep:t,onChangeStep:i})=>{const s=o=>{const n=e.findIndex(a=>a.id===t),r=e.findIndex(a=>a.id===o);(o!==t&&e[n].status===Zt.VALID||r<n)&&i(o)};return f.jsx("div",{id:"steps",className:"flex gap-x-3",children:e.map((o,n)=>f.jsx(J0,{currentStep:t,onChangeStep:s,step:o,index:n},o.id))})},Qs=({name:e,value:t,label:i,description:s,checked:o=!1,inputId:n,className:r,labelClassName:a,disabled:l,onChange:c,descriptionClassName:d,caption:u})=>{const h=`${n}-desc`,p=ge("dial-small-text cursor-pointer py-[1px]",l?"text-secondary":"text-primary",a),m=ge("cursor-pointer dial-input-radio",!!i&&"mr-2",r),v=ge("flex flex-col",!!s&&"mb-2"),C=ge("dial-tiny-text mt-2 ml-[26px] text-secondary",d),w=b=>{l||b.target.checked&&c?.(t)};return f.jsxs("div",{className:v,children:[f.jsxs("div",{className:ge("flex flex-row",!u&&"items-center"),children:[f.jsx("input",{type:"radio",id:n,name:e,value:t,checked:o,disabled:l,"aria-describedby":o&&s?h:void 0,className:m,onChange:w}),(i||u)&&f.jsxs("div",{className:"flex flex-col gap-1",children:[i&&f.jsx("label",{className:p,htmlFor:n,"aria-describedby":u?"caption":"",children:i}),u&&f.jsx("span",{id:"caption",className:"dial-tiny-text text-secondary",children:u})]})]}),o&&s&&f.jsx("div",{id:h,className:C,children:s})]})};var yr=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(yr||{});const tx="w-full flex gap-2",ix={[yr.Vertical]:"flex-col",[yr.Horizontal]:"flex-row items-end"},ql=({id:e,label:t,required:i,description:s,error:o,orientation:n=yr.Vertical,labelVisuallyHidden:r=!1,className:a,labelClassName:l,errorClassName:c,childrenClassName:d,captionDescription:u,readonly:h,value:p,defaultEmptyText:m,children:v})=>{const C=`${e}-label`,w=s?`${e}-desc`:void 0,b=o?`${e}-err`:void 0,x=`${e}-caption-desc`,y=[w,b].filter(Boolean).join(" ")||void 0,S=g.useCallback(()=>typeof o=="boolean"?null:typeof o=="string"||typeof o>"u"?o?f.jsx("div",{id:b,"aria-live":"polite",className:c,children:f.jsx(bi,{text:o})}):null:f.jsx("div",{id:b,role:"alert","aria-live":"polite",className:c,children:o}),[o,c,b]),E=g.useCallback(()=>p?typeof p=="string"||typeof p=="number"?f.jsx("span",{"aria-readonly":"true",children:p}):p:f.jsx("span",{className:"flex min-h-4","aria-readonly":"true",children:m??"None"}),[p,m]);return f.jsxs("div",{role:"group","aria-labelledby":t?C:void 0,"aria-describedby":y,className:ne(tx,ix[n],a),children:[t&&f.jsx("div",{id:C,className:ne(n==="horizontal"&&"shrink-0"),children:f.jsx(So,{htmlFor:e,label:t,required:i,className:ne(r&&"sr-only",l),caption:s})}),f.jsxs("div",{className:ne("min-w-0 w-full",d),children:[h?f.jsx("div",{className:"dial-input px-3 py-2",children:E()}):v,u&&f.jsx("div",{id:x,className:ne({"dial-tiny-text text-secondary mt-1":!0,"text-error":!!o}),children:u}),S()]})]})};var ro=(e=>(e.Row="Row",e.Column="Column",e))(ro||{});const sx="flex",ox="pb-1 mt-2",nx={[ro.Column]:"flex-col gap-y-3",[ro.Row]:"flex-row gap-x-6"},hl=({fieldTitle:e,radioClassName:t,containerClassName:i,selectedItemClassName:s,selectedLabelClassName:o,radioGroupClassName:n,inputContainerClassName:r,selectedInputContainerClassName:a,groupLabelClassName:l,formItemChildrenClassName:c,labelClassName:d,disabled:u,elementId:h,radioButtons:p,activeRadioButton:m,orientation:v,onChange:C})=>f.jsx(ql,{id:h,label:e,labelClassName:l||d,className:i,childrenClassName:c,children:f.jsx("div",{role:"radiogroup","aria-label":e,"aria-disabled":u||void 0,className:ne(sx,nx[v],n),children:p.map(w=>f.jsxs("div",{className:ne("flex flex-col",r,w.id===m&&a),children:[f.jsx(Qs,{name:h,value:w.id,inputId:`${h}-${w.id}`,disabled:u,className:t,labelClassName:ne(d,w.id===m&&o),label:w.name,caption:w.caption,checked:w.id===m,onChange:()=>C(w.id)}),w.id===m&&w.content?f.jsx("div",{className:ne(ox,s),children:w.content}):null]},w.id))})}),zr=({icon:e,title:t,description:i,containerClassName:s,titleClassName:o,descriptionClassName:n})=>f.jsxs("div",{className:ne("h-full w-full flex flex-col items-center justify-center text-secondary",s),"aria-label":"no-data-container",children:[e||f.jsx(W.IconClipboardX,{width:60,height:60,stroke:.5}),f.jsx("span",{className:ne("dial-small-text mt-2 text-primary",o),"aria-label":"no-results-title",children:t}),i&&f.jsx("span",{className:ne("mt-1 text-primary",n),"aria-label":"no-results-description",children:i})]}),ed=48,Km=({containerClassName:e,children:t,width:i=280,title:s,iconSize:o=24,iconStroke:n=1.5,titleClassName:r,additionalButtons:a,isOpened:l,onToggle:c})=>{const[d,u]=g.useState(i),[h,p]=g.useState(!0),m=g.useMemo(()=>typeof l=="boolean",[l]),v=m?l:h;g.useEffect(()=>{m&&u(l?i:ed)},[m,l,i]);const C=ne(["transform rotate-180 [writing-mode:tb-rl] py-4 px-3",v&&"hidden",r]),w=ne(["flex flex-row gap-2 cursor-pointer text-secondary py-2 items-center",v?"justify-end px-4":"justify-center"]),b=x=>{const y=!v;if(m){u(y?i:ed),c?.(y,x);return}u(y?i:ed),p(y)};return f.jsxs("div",{className:ne(["rounded flex flex-col justify-between",e]),style:{width:`${d}px`},"aria-label":"collapsible-sidebar",children:[f.jsx("div",{className:ne(["flex-1 p-4 min-h-0 overflow-auto",!v&&"hidden"]),children:t}),f.jsx("div",{className:C,children:s}),f.jsxs("div",{className:ne("border-t border-tertiary h-12",w),children:[v&&a,f.jsx(Is,{className:"hover:text-accent-primary",onClick:b,"aria-label":"sidebar-state",size:xt.Small,icon:v?f.jsx(W.IconChevronsLeft,{size:o,stroke:n}):f.jsx(W.IconChevronsRight,{size:o,stroke:n})})]})]})},rx=({label:e,text:t,tooltip:i,children:s,postfix:o,className:n})=>f.jsxs("div",{className:ne("flex flex-col",s?"":"max-w-[200px]",n),children:[e&&f.jsx("label",{className:"dial-tiny-text mb-2 text-secondary",children:e}),s||f.jsxs("div",{className:"flex flex-row items-center gap-x-2",children:[f.jsx(jt,{triggerClassName:"text-primary flex-1 min-w-0",tooltip:i||t,children:t}),o||null]})]});var Kl=(e=>(e.Default="default",e))(Kl||{});const ax={[Kl.Default]:"border-icon-secondary bg-layer-3"},Qo=({tag:e,className:t,remove:i,variant:s=Kl.Default,iconBefore:o,bordered:n=!0})=>{const r=ax[s],a=ne("flex items-center gap-1 dial-tiny-text rounded p-1 h-[22px] text-primary",r,n?"border":"border-transparent",t);return f.jsxs("div",{className:a,children:[f.jsx(Ue,{icon:o}),f.jsx(bt,{text:e}),i&&f.jsx(di,{className:"p-0",iconAfter:f.jsx(W.IconX,{size:St.SM}),onClick:l=>i(l)})]},e)},Ym=g.createContext({dragDropManager:void 0});function ii(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var og=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),ng=function(){return Math.random().toString(36).substring(7).split("").join(".")},rg={INIT:"@@redux/INIT"+ng(),REPLACE:"@@redux/REPLACE"+ng()};function lx(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function cx(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(hx(e))return"date";if(ux(e))return"error";var i=dx(e);switch(i){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return i}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function dx(e){return typeof e.constructor=="function"?e.constructor.name:null}function ux(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function hx(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function _o(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=cx(e)),t}function Zm(e,t,i){var s;if(typeof t=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?ii(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof i>"u"&&(i=t,t=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(process.env.NODE_ENV==="production"?ii(1):"Expected the enhancer to be a function. Instead, received: '"+_o(i)+"'");return i(Zm)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?ii(2):"Expected the root reducer to be a function. Instead, received: '"+_o(e)+"'");var o=e,n=t,r=[],a=r,l=!1;function c(){a===r&&(a=r.slice())}function d(){if(l)throw new Error(process.env.NODE_ENV==="production"?ii(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return n}function u(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?ii(4):"Expected the listener to be a function. Instead, received: '"+_o(v)+"'");if(l)throw new Error(process.env.NODE_ENV==="production"?ii(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var C=!0;return c(),a.push(v),function(){if(C){if(l)throw new Error(process.env.NODE_ENV==="production"?ii(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");C=!1,c();var b=a.indexOf(v);a.splice(b,1),r=null}}}function h(v){if(!lx(v))throw new Error(process.env.NODE_ENV==="production"?ii(7):"Actions must be plain objects. Instead, the actual type was: '"+_o(v)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof v.type>"u")throw new Error(process.env.NODE_ENV==="production"?ii(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(l)throw new Error(process.env.NODE_ENV==="production"?ii(9):"Reducers may not dispatch actions.");try{l=!0,n=o(n,v)}finally{l=!1}for(var C=r=a,w=0;w<C.length;w++){var b=C[w];b()}return v}function p(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?ii(10):"Expected the nextReducer to be a function. Instead, received: '"+_o(v));o=v,h({type:rg.REPLACE})}function m(){var v,C=u;return v={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?ii(11):"Expected the observer to be an object. Instead, received: '"+_o(b)+"'");function x(){b.next&&b.next(d())}x();var y=C(x);return{unsubscribe:y}}},v[og]=function(){return this},v}return h({type:rg.INIT}),s={dispatch:h,subscribe:u,getState:d,replaceReducer:p},s[og]=m,s}function ke(e,t,...i){if(px()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let s;if(t===void 0)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let o=0;s=new Error(t.replace(/%s/g,function(){return i[o++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}function px(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function gx(e,t,i){return t.split(".").reduce((s,o)=>s&&s[o]?s[o]:i||null,e)}function fx(e,t){return e.filter(i=>i!==t)}function Xm(e){return typeof e=="object"}function mx(e,t){const i=new Map,s=n=>{i.set(n,i.has(n)?i.get(n)+1:1)};e.forEach(s),t.forEach(s);const o=[];return i.forEach((n,r)=>{n===1&&o.push(r)}),o}function vx(e,t){return e.filter(i=>t.indexOf(i)>-1)}const rh="dnd-core/INIT_COORDS",Yl="dnd-core/BEGIN_DRAG",ah="dnd-core/PUBLISH_DRAG_SOURCE",Zl="dnd-core/HOVER",Xl="dnd-core/DROP",Ql="dnd-core/END_DRAG";function ag(e,t){return{type:rh,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const Cx={type:rh,payload:{clientOffset:null,sourceClientOffset:null}};function wx(e){return function(i=[],s={publishSource:!0}){const{publishSource:o=!0,clientOffset:n,getSourceClientOffset:r}=s,a=e.getMonitor(),l=e.getRegistry();e.dispatch(ag(n)),bx(i,a,l);const c=Sx(i,a);if(c==null){e.dispatch(Cx);return}let d=null;if(n){if(!r)throw new Error("getSourceClientOffset must be defined");xx(r),d=r(c)}e.dispatch(ag(n,d));const h=l.getSource(c).beginDrag(a,c);if(h==null)return;yx(h),l.pinSource(c);const p=l.getSourceType(c);return{type:Yl,payload:{itemType:p,item:h,sourceId:c,clientOffset:n||null,sourceClientOffset:d||null,isSourcePublic:!!o}}}}function bx(e,t,i){ke(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(s){ke(i.getSource(s),"Expected sourceIds to be registered.")})}function xx(e){ke(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function yx(e){ke(Xm(e),"Item must be an object.")}function Sx(e,t){let i=null;for(let s=e.length-1;s>=0;s--)if(t.canDragSource(e[s])){i=e[s];break}return i}function Rx(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Fx(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{},s=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(s=s.concat(Object.getOwnPropertySymbols(i).filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable}))),s.forEach(function(o){Rx(e,o,i[o])})}return e}function Ex(e){return function(i={}){const s=e.getMonitor(),o=e.getRegistry();Dx(s),kx(s).forEach((r,a)=>{const l=Px(r,a,o,s),c={type:Xl,payload:{dropResult:Fx({},i,l)}};e.dispatch(c)})}}function Dx(e){ke(e.isDragging(),"Cannot call drop while not dragging."),ke(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function Px(e,t,i,s){const o=i.getTarget(e);let n=o?o.drop(s,e):void 0;return Tx(n),typeof n>"u"&&(n=t===0?{}:s.getDropResult()),n}function Tx(e){ke(typeof e>"u"||Xm(e),"Drop result must either be an object or undefined.")}function kx(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Ix(e){return function(){const i=e.getMonitor(),s=e.getRegistry();Mx(i);const o=i.getSourceId();return o!=null&&(s.getSource(o,!0).endDrag(i,o),s.unpinSource()),{type:Ql}}}function Mx(e){ke(e.isDragging(),"Cannot call endDrag while not dragging.")}function lu(e,t){return t===null?e===null:Array.isArray(e)?e.some(i=>i===t):e===t}function Ax(e){return function(i,{clientOffset:s}={}){Lx(i);const o=i.slice(0),n=e.getMonitor(),r=e.getRegistry(),a=n.getItemType();return Nx(o,r,a),Ox(o,n,r),Hx(o,n,r),{type:Zl,payload:{targetIds:o,clientOffset:s||null}}}}function Lx(e){ke(Array.isArray(e),"Expected targetIds to be an array.")}function Ox(e,t,i){ke(t.isDragging(),"Cannot call hover while not dragging."),ke(!t.didDrop(),"Cannot call hover after drop.");for(let s=0;s<e.length;s++){const o=e[s];ke(e.lastIndexOf(o)===s,"Expected targetIds to be unique in the passed array.");const n=i.getTarget(o);ke(n,"Expected targetIds to be registered.")}}function Nx(e,t,i){for(let s=e.length-1;s>=0;s--){const o=e[s],n=t.getTargetType(o);lu(n,i)||e.splice(s,1)}}function Hx(e,t,i){e.forEach(function(s){i.getTarget(s).hover(t,s)})}function Bx(e){return function(){if(e.getMonitor().isDragging())return{type:ah}}}function Gx(e){return{beginDrag:wx(e),publishDragSource:Bx(e),hover:Ax(e),drop:Ex(e),endDrag:Ix(e)}}class Vx{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:i}=this.store;function s(n){return(...r)=>{const a=n.apply(t,r);typeof a<"u"&&i(a)}}const o=Gx(this);return Object.keys(o).reduce((n,r)=>{const a=o[r];return n[r]=s(a),n},{})}dispatch(t){this.store.dispatch(t)}constructor(t,i){this.isSetUp=!1,this.handleRefCountChange=()=>{const s=this.store.getState().refCount>0;this.backend&&(s&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!s&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=i,t.subscribe(this.handleRefCountChange)}}function zx(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Qm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Wx(e){const{clientOffset:t,initialClientOffset:i,initialSourceClientOffset:s}=e;return!t||!i||!s?null:Qm(zx(t,s),i)}function jx(e){const{clientOffset:t,initialClientOffset:i}=e;return!t||!i?null:Qm(t,i)}const cr=[],lh=[];cr.__IS_NONE__=!0;lh.__IS_ALL__=!0;function _x(e,t){return e===cr?!1:e===lh||typeof t>"u"?!0:vx(t,e).length>0}class Ux{subscribeToStateChange(t,i={}){const{handlerIds:s}=i;ke(typeof t=="function","listener must be a function."),ke(typeof s>"u"||Array.isArray(s),"handlerIds, when specified, must be an array of strings.");let o=this.store.getState().stateId;const n=()=>{const r=this.store.getState(),a=r.stateId;try{a===o||a===o+1&&!_x(r.dirtyHandlerIds,s)||t()}finally{o=a}};return this.store.subscribe(n)}subscribeToOffsetChange(t){ke(typeof t=="function","listener must be a function.");let i=this.store.getState().dragOffset;const s=()=>{const o=this.store.getState().dragOffset;o!==i&&(i=o,t())};return this.store.subscribe(s)}canDragSource(t){if(!t)return!1;const i=this.registry.getSource(t);return ke(i,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:i.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const i=this.registry.getTarget(t);if(ke(i,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const s=this.registry.getTargetType(t),o=this.getItemType();return lu(s,o)&&i.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const i=this.registry.getSource(t,!0);if(ke(i,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const s=this.registry.getSourceType(t),o=this.getItemType();return s!==o?!1:i.isDragging(this,t)}isOverTarget(t,i={shallow:!1}){if(!t)return!1;const{shallow:s}=i;if(!this.isDragging())return!1;const o=this.registry.getTargetType(t),n=this.getItemType();if(n&&!lu(o,n))return!1;const r=this.getTargetIds();if(!r.length)return!1;const a=r.indexOf(t);return s?a===r.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return Wx(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return jx(this.store.getState().dragOffset)}constructor(t,i){this.store=t,this.registry=i}}const lg=typeof global<"u"?global:self,Jm=lg.MutationObserver||lg.WebKitMutationObserver;function ev(e){return function(){const i=setTimeout(o,0),s=setInterval(o,50);function o(){clearTimeout(i),clearInterval(s),e()}}}function $x(e){let t=1;const i=new Jm(e),s=document.createTextNode("");return i.observe(s,{characterData:!0}),function(){t=-t,s.data=t}}const qx=typeof Jm=="function"?$x:ev;class Kx{enqueueTask(t){const{queue:i,requestFlush:s}=this;i.length||(s(),this.flushing=!0),i[i.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const i=this.index;if(this.index++,t[i].call(),this.index>this.capacity){for(let s=0,o=t.length-this.index;s<o;s++)t[s]=t[s+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=qx(this.flush),this.requestErrorThrow=ev(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Yx{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,i){this.onError=t,this.release=i,this.task=null}}class Zx{create(t){const i=this.freeTasks,s=i.length?i.pop():new Yx(this.onError,o=>i[i.length]=o);return s.task=t,s}constructor(t){this.onError=t,this.freeTasks=[]}}const tv=new Kx,Xx=new Zx(tv.registerPendingError);function Qx(e){tv.enqueueTask(Xx.create(e))}const ch="dnd-core/ADD_SOURCE",dh="dnd-core/ADD_TARGET",uh="dnd-core/REMOVE_SOURCE",Jl="dnd-core/REMOVE_TARGET";function Jx(e){return{type:ch,payload:{sourceId:e}}}function ey(e){return{type:dh,payload:{targetId:e}}}function ty(e){return{type:uh,payload:{sourceId:e}}}function iy(e){return{type:Jl,payload:{targetId:e}}}function sy(e){ke(typeof e.canDrag=="function","Expected canDrag to be a function."),ke(typeof e.beginDrag=="function","Expected beginDrag to be a function."),ke(typeof e.endDrag=="function","Expected endDrag to be a function.")}function oy(e){ke(typeof e.canDrop=="function","Expected canDrop to be a function."),ke(typeof e.hover=="function","Expected hover to be a function."),ke(typeof e.drop=="function","Expected beginDrag to be a function.")}function cu(e,t){if(t&&Array.isArray(e)){e.forEach(i=>cu(i,!1));return}ke(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ni;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(ni||(ni={}));let ny=0;function ry(){return ny++}function ay(e){const t=ry().toString();switch(e){case ni.SOURCE:return`S${t}`;case ni.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function cg(e){switch(e[0]){case"S":return ni.SOURCE;case"T":return ni.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function dg(e,t){const i=e.entries();let s=!1;do{const{done:o,value:[,n]}=i.next();if(n===t)return!0;s=!!o}while(!s);return!1}class ly{addSource(t,i){cu(t),sy(i);const s=this.addHandler(ni.SOURCE,t,i);return this.store.dispatch(Jx(s)),s}addTarget(t,i){cu(t,!0),oy(i);const s=this.addHandler(ni.TARGET,t,i);return this.store.dispatch(ey(s)),s}containsHandler(t){return dg(this.dragSources,t)||dg(this.dropTargets,t)}getSource(t,i=!1){return ke(this.isSourceId(t),"Expected a valid source ID."),i&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return ke(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return ke(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return ke(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return cg(t)===ni.SOURCE}isTargetId(t){return cg(t)===ni.TARGET}removeSource(t){ke(this.getSource(t),"Expected an existing source."),this.store.dispatch(ty(t)),Qx(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){ke(this.getTarget(t),"Expected an existing target."),this.store.dispatch(iy(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const i=this.getSource(t);ke(i,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=i}unpinSource(){ke(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,i,s){const o=ay(t);return this.types.set(o,i),t===ni.SOURCE?this.dragSources.set(o,s):t===ni.TARGET&&this.dropTargets.set(o,s),o}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const cy=(e,t)=>e===t;function dy(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function uy(e,t,i=cy){if(e.length!==t.length)return!1;for(let s=0;s<e.length;++s)if(!i(e[s],t[s]))return!1;return!0}function hy(e=cr,t){switch(t.type){case Zl:break;case ch:case dh:case Jl:case uh:return cr;case Yl:case ah:case Ql:case Xl:default:return lh}const{targetIds:i=[],prevTargetIds:s=[]}=t.payload,o=mx(i,s);if(!(o.length>0||!uy(i,s)))return cr;const r=s[s.length-1],a=i[i.length-1];return r!==a&&(r&&o.push(r),a&&o.push(a)),o}function py(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function gy(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{},s=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(s=s.concat(Object.getOwnPropertySymbols(i).filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable}))),s.forEach(function(o){py(e,o,i[o])})}return e}const ug={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function fy(e=ug,t){const{payload:i}=t;switch(t.type){case rh:case Yl:return{initialSourceClientOffset:i.sourceClientOffset,initialClientOffset:i.clientOffset,clientOffset:i.clientOffset};case Zl:return dy(e.clientOffset,i.clientOffset)?e:gy({},e,{clientOffset:i.clientOffset});case Ql:case Xl:return ug;default:return e}}function my(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Uo(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{},s=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(s=s.concat(Object.getOwnPropertySymbols(i).filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable}))),s.forEach(function(o){my(e,o,i[o])})}return e}const vy={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Cy(e=vy,t){const{payload:i}=t;switch(t.type){case Yl:return Uo({},e,{itemType:i.itemType,item:i.item,sourceId:i.sourceId,isSourcePublic:i.isSourcePublic,dropResult:null,didDrop:!1});case ah:return Uo({},e,{isSourcePublic:!0});case Zl:return Uo({},e,{targetIds:i.targetIds});case Jl:return e.targetIds.indexOf(i.targetId)===-1?e:Uo({},e,{targetIds:fx(e.targetIds,i.targetId)});case Xl:return Uo({},e,{dropResult:i.dropResult,didDrop:!0,targetIds:[]});case Ql:return Uo({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function wy(e=0,t){switch(t.type){case ch:case dh:return e+1;case uh:case Jl:return e-1;default:return e}}function by(e=0){return e+1}function xy(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function yy(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{},s=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(s=s.concat(Object.getOwnPropertySymbols(i).filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable}))),s.forEach(function(o){xy(e,o,i[o])})}return e}function Sy(e={},t){return{dirtyHandlerIds:hy(e.dirtyHandlerIds,{type:t.type,payload:yy({},t.payload,{prevTargetIds:gx(e,"dragOperation.targetIds",[])})}),dragOffset:fy(e.dragOffset,t),refCount:wy(e.refCount,t),dragOperation:Cy(e.dragOperation,t),stateId:by(e.stateId)}}function Ry(e,t=void 0,i={},s=!1){const o=Fy(s),n=new Ux(o,new ly(o)),r=new Vx(o,n),a=e(r,t,i);return r.receiveBackend(a),r}function Fy(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Zm(Sy,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function Ey(e,t){if(e==null)return{};var i=Dy(e,t),s,o;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(o=0;o<n.length;o++)s=n[o],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(i[s]=e[s])}return i}function Dy(e,t){if(e==null)return{};var i={},s=Object.keys(e),o,n;for(n=0;n<s.length;n++)o=s[n],!(t.indexOf(o)>=0)&&(i[o]=e[o]);return i}let hg=0;const Ka=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Py=g.memo(function(t){var{children:i}=t,s=Ey(t,["children"]);const[o,n]=Ty(s);return g.useEffect(()=>{if(n){const r=iv();return++hg,()=>{--hg===0&&(r[Ka]=null)}}},[]),f.jsx(Ym.Provider,{value:o,children:i})});function Ty(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=ky(e.backend,e.context,e.options,e.debugMode),i=!e.context;return[t,i]}function ky(e,t=iv(),i,s){const o=t;return o[Ka]||(o[Ka]={dragDropManager:Ry(e,t,i,s)}),o[Ka]}function iv(){return typeof global<"u"?global:window}var td,pg;function Iy(){return pg||(pg=1,td=function e(t,i){if(t===i)return!0;if(t&&i&&typeof t=="object"&&typeof i=="object"){if(t.constructor!==i.constructor)return!1;var s,o,n;if(Array.isArray(t)){if(s=t.length,s!=i.length)return!1;for(o=s;o--!==0;)if(!e(t[o],i[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===i.toString();if(n=Object.keys(t),s=n.length,s!==Object.keys(i).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(i,n[o]))return!1;for(o=s;o--!==0;){var r=n[o];if(!e(t[r],i[r]))return!1}return!0}return t!==t&&i!==i}),td}var My=Iy();const Ay=$b(My),ao=typeof window<"u"?g.useLayoutEffect:g.useEffect;function Ly(e,t,i){const[s,o]=g.useState(()=>t(e)),n=g.useCallback(()=>{const r=t(e);Ay(s,r)||(o(r),i&&i())},[s,e,i]);return ao(n),[s,n]}function Oy(e,t,i){const[s,o]=Ly(e,t,i);return ao(function(){const r=e.getHandlerId();if(r!=null)return e.subscribeToStateChange(o,{handlerIds:[r]})},[e,o]),s}function sv(e,t,i){return Oy(t,e||(()=>({})),()=>i.reconnect())}function ov(e,t){const i=[...t||[]];return t==null&&typeof e!="function"&&i.push(e),g.useMemo(()=>typeof e=="function"?e():e,i)}function Ny(e){return g.useMemo(()=>e.hooks.dragSource(),[e])}function Hy(e){return g.useMemo(()=>e.hooks.dragPreview(),[e])}let id=!1,sd=!1;class By{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){ke(!id,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return id=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{id=!1}}isDragging(){if(!this.sourceId)return!1;ke(!sd,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return sd=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{sd=!1}}subscribeToStateChange(t,i){return this.internalMonitor.subscribeToStateChange(t,i)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,i){return this.internalMonitor.isOverTarget(t,i)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let od=!1;class Gy{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,i){return this.internalMonitor.subscribeToStateChange(t,i)}canDrop(){if(!this.targetId)return!1;ke(!od,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return od=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{od=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function Vy(e,t,i){const s=i.getRegistry(),o=s.addTarget(e,t);return[o,()=>s.removeTarget(o)]}function zy(e,t,i){const s=i.getRegistry(),o=s.addSource(e,t);return[o,()=>s.removeSource(o)]}function du(e,t,i,s){let o;if(o!==void 0)return!!o;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l<n.length;l++){const c=n[l];if(!a(c))return!1;const d=e[c],u=t[c];if(o=void 0,o===!1||o===void 0&&d!==u)return!1}return!0}function uu(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Wy(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function jy(e){return(t=null,i=null)=>{if(!g.isValidElement(t)){const n=t;return e(n,i),n}const s=t;return Wy(s),_y(s,i?n=>e(n,i):e)}}function nv(e){const t={};return Object.keys(e).forEach(i=>{const s=e[i];if(i.endsWith("Ref"))t[i]=e[i];else{const o=jy(s);t[i]=()=>o}}),t}function gg(e,t){typeof e=="function"?e(t):e.current=t}function _y(e,t){const i=e.ref;return ke(typeof i!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),i?g.cloneElement(e,{ref:s=>{gg(i,s),gg(t,s)}}):g.cloneElement(e,{ref:t})}class Uy{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,i=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return i&&this.disconnectDragSource(),this.handlerId?t?(i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),i):(this.lastConnectedDragSource=t,i):i}reconnectDragPreview(t=!1){const i=this.dragPreview,s=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(s&&this.disconnectDragPreview(),!!this.handlerId){if(!i){this.lastConnectedDragPreview=i;return}s&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=i,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,i,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!du(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!du(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=nv({dragSource:(i,s)=>{this.clearDragSource(),this.dragSourceOptions=s||null,uu(i)?this.dragSourceRef=i:this.dragSourceNode=i,this.reconnectDragSource()},dragPreview:(i,s)=>{this.clearDragPreview(),this.dragPreviewOptions=s||null,uu(i)?this.dragPreviewRef=i:this.dragPreviewNode=i,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class $y{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const i=this.dropTarget;if(this.handlerId){if(!i){this.lastConnectedDropTarget=i;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=i,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,i,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!du(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=nv({dropTarget:(i,s)=>{this.clearDropTarget(),this.dropTargetOptions=s,uu(i)?this.dropTargetRef=i:this.dropTargetNode=i,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function Pn(){const{dragDropManager:e}=g.useContext(Ym);return ke(e!=null,"Expected drag drop context"),e}function qy(e,t){const i=Pn(),s=g.useMemo(()=>new Uy(i.getBackend()),[i]);return ao(()=>(s.dragSourceOptions=e||null,s.reconnect(),()=>s.disconnectDragSource()),[s,e]),ao(()=>(s.dragPreviewOptions=t||null,s.reconnect(),()=>s.disconnectDragPreview()),[s,t]),s}function Ky(){const e=Pn();return g.useMemo(()=>new By(e),[e])}class Yy{beginDrag(){const t=this.spec,i=this.monitor;let s=null;return typeof t.item=="object"?s=t.item:typeof t.item=="function"?s=t.item(i):s={},s??null}canDrag(){const t=this.spec,i=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(i):!0}isDragging(t,i){const s=this.spec,o=this.monitor,{isDragging:n}=s;return n?n(o):i===t.getSourceId()}endDrag(){const t=this.spec,i=this.monitor,s=this.connector,{end:o}=t;o&&o(i.getItem(),i),s.reconnect()}constructor(t,i,s){this.spec=t,this.monitor=i,this.connector=s}}function Zy(e,t,i){const s=g.useMemo(()=>new Yy(e,t,i),[t,i]);return g.useEffect(()=>{s.spec=e},[e]),s}function Xy(e){return g.useMemo(()=>{const t=e.type;return ke(t!=null,"spec.type must be defined"),t},[e])}function Qy(e,t,i){const s=Pn(),o=Zy(e,t,i),n=Xy(e);ao(function(){if(n!=null){const[a,l]=zy(n,o,s);return t.receiveHandlerId(a),i.receiveHandlerId(a),l}},[s,t,i,o,n])}function Jy(e,t){const i=ov(e,t);ke(!i.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const s=Ky(),o=qy(i.options,i.previewOptions);return Qy(i,s,o),[sv(i.collect,s,o),Ny(o),Hy(o)]}function eS(e){return g.useMemo(()=>e.hooks.dropTarget(),[e])}function tS(e){const t=Pn(),i=g.useMemo(()=>new $y(t.getBackend()),[t]);return ao(()=>(i.dropTargetOptions=e||null,i.reconnect(),()=>i.disconnectDropTarget()),[e]),i}function iS(){const e=Pn();return g.useMemo(()=>new Gy(e),[e])}function sS(e){const{accept:t}=e;return g.useMemo(()=>(ke(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class oS{canDrop(){const t=this.spec,i=this.monitor;return t.canDrop?t.canDrop(i.getItem(),i):!0}hover(){const t=this.spec,i=this.monitor;t.hover&&t.hover(i.getItem(),i)}drop(){const t=this.spec,i=this.monitor;if(t.drop)return t.drop(i.getItem(),i)}constructor(t,i){this.spec=t,this.monitor=i}}function nS(e,t){const i=g.useMemo(()=>new oS(e,t),[t]);return g.useEffect(()=>{i.spec=e},[e]),i}function rS(e,t,i){const s=Pn(),o=nS(e,t),n=sS(e);ao(function(){const[a,l]=Vy(n,o,s);return t.receiveHandlerId(a),i.receiveHandlerId(a),l},[s,t,o,i,n.map(r=>r.toString()).join("|")])}function rv(e,t){const i=ov(e,t),s=iS(),o=tS(i.options);return rS(i,s,o),[sv(i.collect,s,o),eS(o)]}const fg="column",aS="flex items-center",lS="mr-3 cursor-move text-secondary",cS=({id:e,children:t,className:i,onFind:s,onMove:o,ariaLabel:n="Drag item"})=>{const r=g.useRef(null),a=g.useRef(null),l=typeof s=="function"?s(e):-1,[{isDragging:c},d,u]=Jy(()=>({type:fg,item:{id:e,originalIndex:l},collect:p=>{const m=p.getItem();return{isDragging:p.isDragging()&&m?.id===e}},end:(p,m)=>{if(!p)return;!m.didDrop()&&typeof o=="function"&&p.originalIndex>-1&&o(p.id,p.originalIndex)}}),[e,l,o]),[,h]=rv(()=>({accept:fg,hover:p=>{if(!(!p||p.id===e)&&typeof s=="function"&&typeof o=="function"){const m=s(e);o(p.id,m)}}}),[s,o,e]);return u(h(a)),d(r),f.jsxs("div",{ref:a,className:ne(aS,i),style:{opacity:c?0:1},"aria-roledescription":"Draggable item",children:[f.jsx("div",{ref:r,className:lS,"aria-label":n,children:f.jsx(W.IconGripVertical,{...ee})}),t]})},dS=e=>ye.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M3.68628 10.3945C3.91003 10.408 4.10927 10.4422 4.2832 10.4978L4.28394 10.4971C4.5167 10.5698 4.71621 10.6662 4.87939 10.7871C4.9994 10.876 5.10332 10.974 5.18994 11.0815L5.27051 11.1929L5.27197 11.1943L5.34009 11.3079C5.38301 11.3838 5.42067 11.4597 5.45288 11.5356L5.49683 11.6492L5.49756 11.6514L5.53198 11.7649C5.56274 11.877 5.5838 11.9867 5.59497 12.0938C5.61194 12.23 5.62059 12.3501 5.62061 12.4534C5.62061 12.6166 5.57231 12.7639 5.47559 12.8906C5.41544 12.9694 5.325 13.0198 5.21997 13.0503C5.11455 13.0809 4.98537 13.0942 4.83691 13.0942C4.73711 13.0942 4.62608 13.0838 4.50439 13.0635C4.37577 13.0415 4.26002 12.9966 4.16089 12.9272L4.15869 12.9258C4.04118 12.8396 3.98657 12.7121 3.98657 12.5625C3.98655 12.2721 3.94576 12.0552 3.87231 11.9033L3.87158 11.9011C3.81572 11.7798 3.69406 11.7026 3.45337 11.7026C3.33114 11.7027 3.25307 11.7292 3.20435 11.7671C3.14221 11.8149 3.10061 11.864 3.07617 11.9128C3.04149 11.985 3.02355 12.0599 3.02124 12.1384V14.7905L3.02637 14.8652C3.03466 14.9384 3.05266 15.0073 3.07983 15.0725L3.10254 15.1201C3.12874 15.1672 3.16488 15.2124 3.21167 15.2556C3.2602 15.2978 3.33572 15.3259 3.45337 15.3259C3.56813 15.3259 3.65533 15.3041 3.71997 15.2673C3.78314 15.2313 3.83208 15.1772 3.86646 15.0996C3.94535 14.9186 3.98655 14.7002 3.98657 14.4412C3.98657 14.3004 4.04381 14.1839 4.1499 14.0991L4.19824 14.0647C4.33673 13.9762 4.55866 13.9431 4.83691 13.9431C5.09384 13.9431 5.30559 13.9858 5.43604 14.1013C5.55182 14.204 5.62061 14.3293 5.62061 14.4749C5.62057 14.7549 5.57953 15.0125 5.49536 15.2461L5.45654 15.3442C5.36294 15.5677 5.23261 15.7627 5.06543 15.928L4.99146 15.9968C4.58057 16.3629 4.03856 16.541 3.37793 16.541L3.12671 16.5278C3.00679 16.5188 2.87303 16.495 2.72607 16.4575C2.61505 16.4287 2.50136 16.3894 2.38696 16.3396L2.27197 16.2861C2.1155 16.2094 1.9705 16.0983 1.83691 15.9558L1.83618 15.9551C1.70598 15.8128 1.59909 15.6391 1.51392 15.4365L1.51318 15.4351C1.42797 15.2251 1.38722 14.9736 1.38721 14.6843V12.345C1.38721 12.1069 1.41644 11.892 1.47656 11.7026C1.52068 11.5616 1.57629 11.4337 1.64355 11.3196L1.7146 11.2097C1.81013 11.07 1.92167 10.9524 2.04932 10.8582C2.17206 10.7676 2.29884 10.6909 2.42871 10.6289L2.54297 10.5798C2.81231 10.4716 3.11394 10.4081 3.44678 10.3879L3.45337 10.3872L3.68628 10.3945Z",fill:"currentColor"}),ye.createElement("path",{d:"M8.10791 11.7371C8.33261 11.7371 8.5218 11.8023 8.61255 11.9758C8.68772 12.1131 8.72383 12.2741 8.72388 12.4534V12.7522H9.03003C9.21461 12.7522 9.37781 12.7845 9.5127 12.8562C9.68704 12.9456 9.7463 13.149 9.74634 13.3843C9.74634 13.612 9.68105 13.8034 9.50537 13.894L9.5061 13.8948C9.36923 13.9665 9.20861 14.0002 9.03003 14.0002H8.72388V14.3064C8.72388 14.4941 8.68994 14.6588 8.61768 14.7942L8.61841 14.7949C8.5293 14.9647 8.334 15.0226 8.10791 15.0227C7.87257 15.0227 7.66761 14.9685 7.5769 14.8L7.57617 14.7993C7.50612 14.6659 7.47583 14.4988 7.47583 14.3064V14.0002H7.18579C6.99507 14.0002 6.82804 13.9669 6.69214 13.894C6.52182 13.8026 6.46069 13.6102 6.46069 13.3843C6.46073 13.1491 6.51509 12.944 6.68335 12.8533L6.68481 12.8525L6.79102 12.8079C6.90305 12.7697 7.03293 12.7522 7.177 12.7522H7.47583V12.4534C7.47587 12.2683 7.50712 12.1056 7.57617 11.9707L7.5769 11.9685L7.61646 11.9092C7.72038 11.7825 7.90134 11.7371 8.10791 11.7371Z",fill:"currentColor"}),ye.createElement("path",{d:"M12.728 11.7371C12.9527 11.7371 13.1419 11.8023 13.2327 11.9758C13.3078 12.1131 13.3439 12.2741 13.344 12.4534V12.7522H13.6501C13.8347 12.7522 13.9979 12.7845 14.1328 12.8562C14.3072 12.9456 14.3664 13.149 14.3665 13.3843C14.3665 13.612 14.3012 13.8034 14.1255 13.894L14.1262 13.8948C13.9894 13.9665 13.8287 14.0002 13.6501 14.0002H13.344V14.3064C13.344 14.4941 13.3101 14.6588 13.2378 14.7942L13.2385 14.7949C13.1494 14.9647 12.9541 15.0226 12.728 15.0227C12.4927 15.0227 12.2877 14.9685 12.197 14.8L12.1963 14.7993C12.1262 14.6659 12.0959 14.4988 12.0959 14.3064V14.0002H11.8059C11.6152 14.0002 11.4482 13.9669 11.3123 13.894C11.1419 13.8026 11.0808 13.6102 11.0808 13.3843C11.0808 13.1491 11.1352 12.944 11.3035 12.8533L11.3049 12.8525L11.4111 12.8079C11.5232 12.7697 11.653 12.7522 11.7971 12.7522H12.0959V12.4534C12.096 12.2683 12.1272 12.1056 12.1963 11.9707L12.197 11.9685L12.2366 11.9092C12.3405 11.7825 12.5215 11.7371 12.728 11.7371Z",fill:"currentColor"}),ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V9C15 9.41421 14.6642 9.75 14.25 9.75C13.8358 9.75 13.5 9.41421 13.5 9V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),uS=e=>ye.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M4.29639 10.3945C4.50665 10.4083 4.69413 10.4433 4.85815 10.5L4.85889 10.4993C5.07789 10.5733 5.26574 10.6715 5.41919 10.7944C5.53204 10.8849 5.62958 10.9843 5.71069 11.0933L5.78613 11.2053L5.78687 11.2068L5.85059 11.3218C5.89058 11.3983 5.92606 11.4746 5.95605 11.551L5.99707 11.666L5.9978 11.6682L6.05566 11.8945C6.0708 11.9689 6.08168 12.0422 6.08862 12.1143C6.10449 12.252 6.11279 12.3734 6.11279 12.4775C6.11276 12.6403 6.06824 12.7876 5.97803 12.9155C5.92155 12.9956 5.83545 13.0472 5.73486 13.0789C5.63441 13.1104 5.51212 13.1243 5.37231 13.1243C5.32505 13.1243 5.27524 13.1215 5.2229 13.1162L5.05811 13.0928C4.93553 13.0701 4.82533 13.024 4.73145 12.9529L4.72998 12.9514C4.61882 12.8632 4.56958 12.7352 4.56958 12.5874C4.56955 12.2926 4.5312 12.0715 4.46191 11.9165L4.46045 11.9143C4.4319 11.8474 4.38931 11.8003 4.33154 11.7686C4.27185 11.7358 4.18944 11.7158 4.07812 11.7158C3.96626 11.7158 3.89622 11.7421 3.85254 11.7788C3.79519 11.8265 3.75637 11.8759 3.73315 11.926C3.70026 11.9999 3.68262 12.0771 3.68042 12.1582V14.8425L3.68555 14.9187C3.69337 14.9937 3.71038 15.0643 3.73608 15.1311L3.75732 15.1802C3.78176 15.2276 3.81496 15.2727 3.85767 15.3157L3.89575 15.3442C3.93843 15.3699 3.99697 15.386 4.07812 15.386C4.18296 15.386 4.26146 15.3647 4.31982 15.3289C4.37727 15.2935 4.4233 15.2389 4.45605 15.1589C4.53037 14.9746 4.56957 14.7522 4.56958 14.4888C4.56958 14.3307 4.63662 14.2007 4.7666 14.1116L4.82007 14.0801C4.95284 14.0119 5.14337 13.9856 5.37231 13.9856C5.61445 13.9856 5.81633 14.0298 5.94067 14.1489C6.04986 14.2536 6.11274 14.379 6.11279 14.5225C6.11279 14.8453 6.06245 15.1386 5.95972 15.3999C5.85998 15.6574 5.71501 15.8781 5.52466 16.0598L5.52393 16.0591C5.13817 16.4307 4.62871 16.6128 4.00708 16.6128C3.95774 16.6128 3.87811 16.6081 3.77124 16.5996C3.65793 16.5904 3.53127 16.5659 3.39331 16.5278C3.28866 16.4984 3.18149 16.4584 3.07397 16.4077L2.96631 16.3535C2.81858 16.2752 2.68196 16.1624 2.55688 16.0181L2.55615 16.0166C2.43435 15.8725 2.33453 15.6972 2.25513 15.4929L2.25439 15.4915C2.17508 15.28 2.13721 15.0267 2.13721 14.7349V12.3669C2.13721 12.1269 2.16476 11.9109 2.2207 11.7202L2.26538 11.5825C2.3136 11.4491 2.37234 11.3289 2.44263 11.2229C2.53187 11.0816 2.63607 10.9621 2.7561 10.8662C2.87117 10.7743 2.98996 10.6964 3.11206 10.6333L3.11353 10.6326L3.22046 10.5828C3.47384 10.4727 3.75793 10.4085 4.0708 10.3879L4.07812 10.3872L4.29639 10.3945Z",fill:"currentColor"}),ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H8.625C8.21079 16.5 7.875 16.1642 7.875 15.75C7.875 15.3358 8.21079 15 8.625 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),hS=e=>ye.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M3.62109 10.571C3.83849 10.5842 4.03206 10.618 4.20117 10.6721L4.2019 10.6714C4.42776 10.742 4.62121 10.8352 4.77979 10.9526C4.89663 11.0392 4.99793 11.135 5.08228 11.2397L5.16064 11.3474L5.16211 11.3489L5.22803 11.4595C5.26973 11.5332 5.30659 11.6069 5.33789 11.6807L5.38037 11.7905L5.3811 11.7935L5.44116 12.0117C5.45675 12.0826 5.46834 12.1524 5.47559 12.2212L5.49463 12.4087C5.49888 12.4674 5.50049 12.5222 5.50049 12.5728C5.50045 12.7317 5.45415 12.8755 5.35986 12.999C5.30088 13.0762 5.2117 13.1246 5.10938 13.1543C5.0067 13.1841 4.88146 13.1975 4.7373 13.1975C4.64029 13.1975 4.53244 13.1872 4.41431 13.1675C4.28898 13.1461 4.17557 13.1026 4.07886 13.0349L4.07739 13.0334C3.96236 12.9491 3.90894 12.8243 3.90894 12.6782C3.90893 12.3968 3.86925 12.187 3.79834 12.0403L3.79761 12.0381C3.74418 11.922 3.62816 11.847 3.39551 11.8469C3.27715 11.8469 3.20179 11.873 3.15527 11.9092C3.09597 11.9548 3.05572 12.0012 3.03223 12.0476L3.03296 12.0483C2.99919 12.1182 2.98102 12.1906 2.97876 12.2666V14.8396L2.98389 14.9114C2.99188 14.9821 3.00888 15.049 3.03516 15.1121L3.05786 15.1582C3.08304 15.2033 3.11768 15.2464 3.1626 15.2878C3.2089 15.3285 3.28115 15.356 3.39551 15.356C3.50633 15.3559 3.58982 15.3349 3.65186 15.2996C3.71249 15.2651 3.75936 15.2131 3.79248 15.1384L3.84302 15.0007C3.88665 14.8554 3.90893 14.6891 3.90894 14.5005C3.90894 14.363 3.96502 14.2494 4.0686 14.1665L4.11621 14.1328C4.25147 14.0465 4.46739 14.0134 4.7373 14.0134C4.98658 14.0134 5.19278 14.0552 5.32031 14.168C5.43323 14.268 5.5004 14.3903 5.50049 14.5327C5.50049 14.8049 5.46077 15.0556 5.37891 15.2827L5.34155 15.3779C5.23762 15.6261 5.08621 15.8373 4.88892 16.0115L4.88965 16.0122C4.49029 16.3681 3.96383 16.541 3.32227 16.541C3.27168 16.541 3.18935 16.5367 3.07837 16.5286C3.02014 16.5242 2.95789 16.5158 2.89307 16.5044L2.68799 16.4597C2.5801 16.4317 2.47025 16.3938 2.35913 16.3455L2.2478 16.2935C2.09553 16.2188 1.95433 16.1112 1.82446 15.9727L1.82373 15.9712C1.69712 15.8328 1.593 15.6642 1.51025 15.4673L1.50952 15.4658C1.42669 15.2616 1.38721 15.0172 1.38721 14.7363V12.4666C1.38723 12.2355 1.41597 12.0273 1.47437 11.8433C1.53119 11.6615 1.60684 11.502 1.70361 11.3665L1.77686 11.2676C1.85263 11.1732 1.9374 11.0913 2.03101 11.0222C2.15024 10.9342 2.27322 10.8598 2.39941 10.7996L2.40015 10.7988L2.51074 10.7512C2.77229 10.6462 3.0652 10.5848 3.38818 10.5652L3.39551 10.5645L3.62109 10.571Z",fill:"currentColor"}),ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H12C11.5858 16.5 11.25 16.1642 11.25 15.75C11.25 15.3358 11.5858 15 12 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"}),ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.36914 11.28C9.50263 11.28 9.62352 11.3063 9.72583 11.3643L9.7251 11.365C9.85906 11.4379 9.90454 11.5838 9.90454 11.7429C9.9045 11.7567 9.90157 11.7778 9.89941 11.7935C9.89658 11.814 9.89242 11.8422 9.88696 11.8777C9.87611 11.9455 9.8639 12.0222 9.85034 12.1062C9.84553 12.136 9.84018 12.1643 9.83569 12.1912H10.0525C10.1919 12.1912 10.3171 12.2148 10.4216 12.2688L10.4209 12.2695C10.5686 12.3412 10.6128 12.5089 10.6128 12.6863C10.6128 12.8587 10.5617 13.0123 10.4194 13.0898L10.4187 13.0906C10.3122 13.1472 10.1885 13.1726 10.0525 13.1726H9.67529L9.55225 13.8589H9.75952C9.89706 13.8589 10.0206 13.8819 10.1243 13.9343C10.2748 14.005 10.3198 14.1752 10.3198 14.354C10.3198 14.5291 10.2702 14.6875 10.1243 14.7627L10.1235 14.7634C10.0176 14.8164 9.89461 14.8403 9.75952 14.8403H9.38452L9.33398 15.1677L9.33325 15.1714C9.30492 15.3271 9.26297 15.4669 9.20728 15.5903L9.20801 15.5911C9.17656 15.6626 9.13001 15.7228 9.06592 15.7646C9.00162 15.8065 8.92683 15.8247 8.84839 15.8247C8.72 15.8247 8.60307 15.8041 8.50122 15.7581L8.49976 15.7573C8.35755 15.6908 8.31299 15.5386 8.31299 15.3787C8.31299 15.3406 8.31787 15.2939 8.32617 15.241L8.35913 15.0242C8.36863 14.9624 8.37948 14.9012 8.38989 14.8403H7.92847L7.87793 15.1677L7.8772 15.1714C7.84887 15.3271 7.80691 15.4669 7.75122 15.5903L7.75195 15.5911C7.72046 15.6627 7.6734 15.7228 7.60913 15.7646C7.54487 15.8064 7.47071 15.8247 7.39233 15.8247C7.26394 15.8247 7.14702 15.8041 7.04517 15.7581L7.0437 15.7573C6.90149 15.6908 6.85693 15.5387 6.85693 15.3787C6.85694 15.3406 6.86181 15.2939 6.87012 15.241L6.90308 15.0242C6.91257 14.9624 6.92342 14.9012 6.93384 14.8403H6.6687C6.52906 14.8403 6.40313 14.8167 6.29663 14.7634L6.29297 14.762C6.15355 14.6853 6.10844 14.5261 6.1084 14.354C6.1084 14.1782 6.1487 14.0079 6.29297 13.9358C6.39784 13.882 6.52535 13.8589 6.6687 13.8589H7.09497L7.21802 13.1726H6.95361C6.81311 13.1726 6.68646 13.1475 6.57935 13.0906L6.57788 13.0898C6.43874 13.0135 6.39332 12.8568 6.39331 12.6863C6.39331 12.5105 6.43361 12.3402 6.57788 12.2681C6.68271 12.2144 6.81036 12.1912 6.95361 12.1912H7.38721L7.46045 11.7561C7.47174 11.6625 7.50842 11.5673 7.56372 11.4712C7.63824 11.3418 7.76255 11.2801 7.91309 11.28C8.04657 11.28 8.16746 11.3063 8.26978 11.3643L8.26904 11.365C8.403 11.4379 8.44849 11.5838 8.44849 11.7429C8.44844 11.7567 8.44552 11.7778 8.44336 11.7935C8.44053 11.814 8.43636 11.8422 8.43091 11.8777C8.42006 11.9455 8.40784 12.0222 8.39429 12.1062C8.38947 12.136 8.38413 12.1643 8.37964 12.1912H8.84326L8.9165 11.7561C8.92779 11.6625 8.96448 11.5673 9.01978 11.4712C9.0943 11.3418 9.21861 11.2801 9.36914 11.28ZM8.09619 13.8589H8.55103L8.67407 13.1726H8.21924L8.09619 13.8589Z",fill:"currentColor"})),pS=e=>ye.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M4.43188 10.4409C4.65285 10.4409 4.85471 10.4869 4.99951 10.6152L4.99878 10.6159C5.13097 10.7305 5.21409 10.881 5.25146 11.0576C5.28474 11.2148 5.30052 11.3869 5.30054 11.5724V15.4323C5.30054 15.6193 5.28417 15.7927 5.25146 15.9516L5.2522 15.9523C5.21779 16.1313 5.13551 16.2842 4.99951 16.3976L4.99878 16.3969C4.85386 16.52 4.65269 16.5646 4.43188 16.5646C4.21337 16.5646 4.01411 16.5195 3.86792 16.3976L3.86353 16.394C3.73466 16.2798 3.65263 16.1299 3.6123 15.9553L3.61157 15.9516C3.57826 15.7941 3.5625 15.6205 3.5625 15.4323V11.5724C3.56252 11.3869 3.5783 11.2148 3.61157 11.0576C3.64882 10.8815 3.72996 10.7302 3.85986 10.6152L3.86133 10.6137C4.00804 10.4875 4.2103 10.4409 4.43188 10.4409Z",fill:"currentColor"}),ye.createElement("path",{d:"M8.07129 10.4474C8.18434 10.4599 8.28945 10.4924 8.3811 10.55L8.38184 10.5493C8.45754 10.5942 8.52569 10.6451 8.58472 10.7016L8.64111 10.7602L8.64331 10.7631L8.69385 10.8298C8.72596 10.8768 8.75504 10.9284 8.78101 10.9836L8.81763 11.0685L8.81909 11.0729L9.85986 13.8928V11.2692C9.85986 11.0565 9.89522 10.8654 9.98291 10.7119L9.98364 10.7104L10.0349 10.6393C10.1656 10.4886 10.3781 10.4409 10.5974 10.4409C10.8635 10.4409 11.125 10.4947 11.2529 10.6965C11.3535 10.8508 11.3928 11.0487 11.3928 11.2692V15.4323C11.3928 15.6163 11.3809 15.7863 11.3577 15.9413L11.3584 15.9421C11.3349 16.1167 11.2678 16.2708 11.1467 16.3881C11.0102 16.5202 10.8106 16.5646 10.5974 16.5646H10.0554C9.86994 16.5646 9.69972 16.5199 9.56104 16.416C9.44129 16.3261 9.3452 16.215 9.27466 16.0842C9.21353 15.9706 9.16292 15.8593 9.12378 15.7509L8.14893 13.1091V15.7363C8.14893 15.9493 8.11322 16.1406 8.02661 16.2958L8.02588 16.2973C7.90706 16.5052 7.66112 16.5646 7.41138 16.5646C7.14233 16.5646 6.88122 16.5106 6.75 16.312C6.64812 16.1572 6.60791 15.9581 6.60791 15.7363V11.5724C6.60792 11.3882 6.61818 11.2193 6.63867 11.0671V11.0641L6.66724 10.9367C6.7042 10.8142 6.76699 10.706 6.85986 10.6188C6.9982 10.4862 7.19704 10.4409 7.41138 10.4409H7.95337L8.07129 10.4474Z",fill:"currentColor"}),ye.createElement("path",{d:"M13.5688 10.4409C13.7898 10.4409 13.9917 10.4869 14.1365 10.6152L14.1357 10.6159C14.2679 10.7305 14.3511 10.881 14.3884 11.0576C14.4217 11.2148 14.4375 11.3869 14.4375 11.5724V15.4323C14.4375 15.6193 14.4211 15.7927 14.3884 15.9516L14.3892 15.9523C14.3548 16.1313 14.2725 16.2842 14.1365 16.3976L14.1357 16.3969C13.9908 16.52 13.7897 16.5646 13.5688 16.5646C13.3503 16.5646 13.1511 16.5195 13.0049 16.3976L13.0005 16.394C12.8716 16.2798 12.7896 16.1299 12.7493 15.9553L12.7485 15.9516C12.7152 15.7941 12.6995 15.6205 12.6995 15.4323V11.5724C12.6995 11.3869 12.7153 11.2148 12.7485 11.0576C12.7858 10.8815 12.8669 10.7302 12.9968 10.6152L12.9983 10.6137C13.145 10.4875 13.3473 10.4409 13.5688 10.4409Z",fill:"currentColor"}),ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50385C10.7457 1.52087 10.9072 1.59681 11.0303 1.71991L14.7803 5.46991C14.9208 5.61054 15 5.80136 15 6.00018V9.00018C14.9998 9.41423 14.6641 9.75018 14.25 9.75018C13.8359 9.75018 13.5002 9.41423 13.5 9.00018V6.75018H11.25C10.8523 6.75018 10.4707 6.59192 10.1895 6.31073C9.90824 6.02951 9.7501 5.64788 9.75 5.25018V3.00018H5.25C5.05109 3.00018 4.86038 3.07926 4.71973 3.21991C4.57919 3.36054 4.5 3.55136 4.5 3.75018V9.00018C4.4998 9.41423 4.16409 9.75018 3.75 9.75018C3.33591 9.75018 3.0002 9.41423 3 9.00018V3.75018C3 3.15353 3.23734 2.5813 3.65918 2.15936C4.08114 1.73741 4.65326 1.50018 5.25 1.50018H10.5L10.574 1.50385ZM11.25 5.25018H12.4395L11.25 4.06073V5.25018Z",fill:"currentColor"})),gS=e=>ye.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M6.76831 10.8267C6.93291 10.8267 7.08404 10.8408 7.22021 10.8691L7.35205 10.9021L7.35278 10.9028L7.46851 10.9431C7.57872 10.986 7.67614 11.038 7.75928 11.0991C7.84245 11.1591 7.91481 11.2265 7.97388 11.3005L8.02881 11.3767L8.02954 11.3774L8.11011 11.5254C8.13317 11.5747 8.15233 11.6249 8.16797 11.6755C8.19815 11.7711 8.21863 11.8631 8.22656 11.9502C8.23376 12.0294 8.23755 12.096 8.23755 12.1479C8.23753 12.318 8.17338 12.4626 8.04639 12.572C7.92503 12.676 7.77653 12.7265 7.60913 12.7266C7.4711 12.7266 7.34146 12.6749 7.22241 12.583C7.1027 12.4905 7.02328 12.3741 7.02319 12.2329C7.02319 12.0468 6.98759 11.9498 6.94775 11.907L6.94629 11.9055C6.90561 11.8606 6.83878 11.8294 6.72583 11.8293C6.58234 11.8293 6.48534 11.856 6.42334 11.896C6.4086 11.9056 6.38747 11.9281 6.37061 11.981C6.35372 12.0341 6.34351 12.1099 6.34351 12.2117C6.34581 12.2878 6.36799 12.3546 6.40869 12.4153C6.45761 12.4821 6.52298 12.549 6.60718 12.6138L6.73608 12.7053C6.78632 12.7386 6.84449 12.7751 6.9104 12.8145C7.04454 12.8945 7.16167 12.9644 7.2605 13.0232L7.44507 13.1426C7.50565 13.1844 7.56597 13.2284 7.62524 13.2744C7.74715 13.3666 7.8562 13.4715 7.95337 13.5886C8.05276 13.7085 8.13297 13.8432 8.1936 13.9922C8.25599 14.1456 8.28891 14.3172 8.29395 14.5049V14.5364C8.29395 14.7339 8.26896 14.9141 8.21777 15.0754V15.0776C8.11696 15.3776 7.94914 15.6082 7.7124 15.761L7.71313 15.7617C7.62701 15.8179 7.53944 15.8644 7.45166 15.9016L7.36304 15.936C7.30225 15.9571 7.24075 15.9753 7.1792 15.9902L6.99243 16.0261C6.87331 16.0431 6.75886 16.0529 6.65039 16.0554H6.61304C6.41017 16.0554 6.22414 16.0345 6.05786 15.9917C5.89914 15.9495 5.75823 15.8922 5.63892 15.8196L5.63745 15.8188C5.52025 15.7449 5.42093 15.6589 5.34155 15.561C5.26338 15.4674 5.20001 15.3681 5.15332 15.2644C5.10802 15.1659 5.07431 15.0659 5.05371 14.9656C5.03361 14.8676 5.02297 14.7738 5.02295 14.6851C5.02295 14.5014 5.0798 14.3447 5.20898 14.2375L5.20972 14.2368L5.30493 14.1731C5.40409 14.1186 5.51594 14.0918 5.63745 14.0918C5.79553 14.0919 5.94175 14.1407 6.07251 14.2354L6.12451 14.2764C6.2216 14.3622 6.27861 14.4745 6.2959 14.6067L6.30103 14.6741L6.31055 14.7847C6.32502 14.8796 6.35383 14.9312 6.38306 14.9568C6.43071 14.9963 6.50789 15.0238 6.63135 15.0242C6.76743 15.0198 6.85874 14.9863 6.91772 14.9355L6.91846 14.9341L6.95361 14.8938C6.98575 14.8434 7.00924 14.7604 7.00928 14.6287C7.00928 14.4903 6.96843 14.3706 6.8877 14.2661L6.88696 14.2646C6.80068 14.1504 6.68858 14.0439 6.55078 13.946L6.55005 13.9453C6.40626 13.841 6.25592 13.7396 6.10034 13.6421C5.93262 13.5343 5.77326 13.4207 5.62427 13.303L5.62354 13.3022C5.46846 13.1772 5.34021 13.0351 5.24121 12.8752C5.13746 12.7076 5.0852 12.514 5.08008 12.2988V12.2388L5.0874 12.0505C5.10126 11.869 5.13388 11.7086 5.18628 11.5708V11.5693L5.2478 11.4382C5.31532 11.3136 5.40255 11.2077 5.51074 11.1233L5.62207 11.0464C5.73813 10.9764 5.87099 10.9263 6.01831 10.894C6.21201 10.8494 6.43196 10.8267 6.67603 10.8267H6.76831Z",fill:"currentColor"}),ye.createElement("path",{d:"M14.2266 10.8062C14.3565 10.8062 14.4736 10.8329 14.5693 10.8933L14.5701 10.8926L14.5715 10.894L14.5737 10.8948L14.573 10.8955C14.6342 10.9321 14.6895 10.9722 14.7363 11.0171L14.781 11.064L14.7825 11.0662L14.8235 11.1204C14.8363 11.1392 14.8492 11.159 14.8608 11.1797L14.9246 11.3159L14.9253 11.3181L15.9163 14.0024V11.4705C15.9163 11.2922 15.9461 11.1369 16.0159 11.0149L16.054 10.9607C16.1527 10.8467 16.3175 10.8062 16.5022 10.8062C16.7284 10.8062 16.9271 10.8532 17.0229 11.0017C17.1032 11.1237 17.1379 11.2847 17.1379 11.4705V15.0535C17.1379 15.21 17.1275 15.3541 17.1079 15.4849L17.1086 15.4856C17.0896 15.6273 17.0355 15.7491 16.9409 15.8408C16.837 15.9414 16.6806 15.9784 16.5022 15.9785H16.0356C15.8837 15.9785 15.7483 15.9422 15.6394 15.8606C15.5419 15.7874 15.4638 15.6974 15.4065 15.5911C15.3549 15.4953 15.3125 15.4018 15.2798 15.3113L14.3459 12.7815V15.3149C14.3459 15.4932 14.316 15.6489 14.2471 15.7727L14.2463 15.7734C14.158 15.9281 13.9711 15.9784 13.76 15.9785C13.53 15.9785 13.3292 15.9315 13.2312 15.783C13.151 15.6609 13.1169 15.5006 13.1169 15.3149V11.7319C13.117 11.575 13.126 11.4319 13.1433 11.3035V11.3013L13.166 11.1987C13.1955 11.1009 13.2454 11.0157 13.3176 10.9475L13.3594 10.9124C13.4627 10.8363 13.6027 10.8062 13.76 10.8062H14.2266Z",fill:"currentColor"}),ye.createElement("path",{d:"M3.62183 10.73C3.8058 10.73 3.96571 10.7696 4.07959 10.8677C4.185 10.9586 4.25306 11.0796 4.28613 11.2229C4.31675 11.3557 4.33154 11.5018 4.33154 11.6602V14.3606C4.33154 14.617 4.29481 14.8413 4.21655 15.0293C4.15993 15.1652 4.09098 15.286 4.00928 15.3896L3.92285 15.4878C3.80762 15.6056 3.67869 15.6971 3.5376 15.7625L3.53833 15.7632C3.40115 15.8269 3.27011 15.872 3.14722 15.8979L3.14795 15.8987C3.09669 15.9112 3.04501 15.9213 2.99414 15.9294L2.8418 15.9478C2.74998 15.9548 2.68156 15.9587 2.64111 15.9587C2.3706 15.9587 2.13396 15.928 1.93506 15.8643C1.73937 15.8022 1.56914 15.7204 1.42749 15.6174C1.28776 15.5158 1.17335 15.3984 1.08691 15.2651L1.02686 15.1685C0.970789 15.0715 0.926873 14.9732 0.895752 14.874L0.896484 14.8733C0.852315 14.745 0.821564 14.6203 0.806396 14.499L0.805664 14.4968C0.793555 14.3806 0.786621 14.2779 0.786621 14.1899C0.786659 14.0481 0.829716 13.9196 0.914062 13.8091C0.968035 13.7386 1.04873 13.6949 1.13965 13.6685C1.231 13.642 1.34202 13.6297 1.46851 13.6296C1.55651 13.6297 1.65224 13.6393 1.75415 13.6567C1.8653 13.6758 1.96539 13.7157 2.05151 13.7783C2.15785 13.853 2.20677 13.9666 2.20679 14.0977C2.20679 14.3421 2.24112 14.5246 2.302 14.6528L2.32178 14.6865C2.37332 14.7613 2.46833 14.8095 2.64111 14.8096C2.74386 14.8095 2.80532 14.7883 2.8396 14.762L2.84106 14.7605L2.90552 14.7019C2.92253 14.6822 2.9356 14.6623 2.94507 14.6426L2.97803 14.5518C2.98565 14.5209 2.98953 14.4889 2.99048 14.4565V11.9641H2.17236C2.0293 11.9641 1.8922 11.9536 1.76221 11.9312L1.76001 11.9304C1.62252 11.9035 1.50268 11.8482 1.40698 11.7612L1.40625 11.7598C1.30008 11.6602 1.25688 11.5177 1.25684 11.3547C1.25684 11.1882 1.29936 11.0419 1.40625 10.9417C1.49986 10.8517 1.6187 10.7951 1.75635 10.7681L1.9585 10.7395C2.02775 10.7333 2.09935 10.73 2.17236 10.73H3.62183Z",fill:"currentColor"}),ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0061 10.8398C11.1058 10.8474 11.2146 10.8676 11.3313 10.8984L11.332 10.8977C11.4562 10.9275 11.5817 10.9747 11.7078 11.0376L11.803 11.0896C11.8653 11.1277 11.926 11.1727 11.9839 11.2244L12.0688 11.3071L12.0696 11.3079L12.1472 11.4001C12.2197 11.4965 12.2807 11.608 12.3303 11.7327L12.3772 11.8674C12.417 12.0081 12.4358 12.1667 12.4358 12.3406V14.4111C12.4358 14.649 12.4035 14.8579 12.3347 15.0337L12.334 15.0352C12.2654 15.204 12.1782 15.349 12.071 15.4666C11.9653 15.5823 11.8439 15.6747 11.7085 15.7412L11.7078 15.7405C11.5864 15.8034 11.4622 15.8534 11.335 15.8877C11.2172 15.9189 11.1066 15.9387 11.0061 15.9463C10.9136 15.9532 10.8413 15.9573 10.793 15.9573H10.675L10.4626 15.9463C10.362 15.9387 10.2518 15.919 10.1338 15.8877C10.0122 15.8554 9.8873 15.8055 9.75952 15.7405C9.62706 15.6742 9.50578 15.5832 9.39624 15.4688L9.39551 15.468C9.28579 15.3506 9.19561 15.2056 9.12451 15.0366L9.12378 15.0352C9.05226 14.8589 9.01835 14.6495 9.01831 14.4111V12.3406C9.01831 12.105 9.05259 11.8998 9.12451 11.7297C9.19368 11.5618 9.28389 11.4184 9.39697 11.3027C9.50677 11.1905 9.62826 11.1014 9.76099 11.0376C9.82393 11.0062 9.88688 10.9792 9.94849 10.957L9.94922 10.9563L10.1323 10.8992L10.1345 10.8984L10.3066 10.8604C10.3612 10.8506 10.4136 10.8436 10.4626 10.8398L10.675 10.8289H10.793C10.8413 10.8289 10.9136 10.8329 11.0061 10.8398ZM10.738 11.9473C10.6399 11.9473 10.5796 11.9688 10.5439 11.9963L10.5432 11.9971C10.4934 12.0354 10.4596 12.0746 10.4385 12.1135L10.4377 12.1143C10.4103 12.1641 10.3949 12.222 10.3931 12.2886V14.5393L10.4062 14.6309L10.4385 14.7151L10.4392 14.7158L10.481 14.7766C10.4976 14.7958 10.5181 14.8147 10.5417 14.833L10.5732 14.8521C10.6101 14.8689 10.6637 14.8806 10.738 14.8806C10.8345 14.8805 10.8925 14.8598 10.9255 14.8345C10.9743 14.7969 11.0075 14.7565 11.0288 14.7158C11.054 14.6605 11.0699 14.5993 11.0757 14.5327V12.2944L11.0588 12.197C11.051 12.167 11.0406 12.138 11.0281 12.1106C11.0069 12.0728 10.9738 12.0343 10.9255 11.9971L10.9233 11.9949C10.8905 11.9684 10.8335 11.9474 10.738 11.9473Z",fill:"currentColor"}),ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V9C15 9.41421 14.6642 9.75 14.25 9.75C13.8358 9.75 13.5 9.41421 13.5 9V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),fS=e=>ye.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H12C11.5858 16.5 11.25 16.1642 11.25 15.75C11.25 15.3358 11.5858 15 12 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"}),ye.createElement("path",{d:"M2.39355 10.5C2.53545 10.5 2.6592 10.5122 2.75757 10.5417C2.88987 10.5815 2.99161 10.6954 3.07251 10.8289L3.15747 10.9885L3.25195 11.2031L3.25269 11.2046L3.35229 11.4683C3.38786 11.5664 3.42601 11.6752 3.46655 11.7942L3.76318 12.6665L3.76392 12.6687L3.76904 12.6848L3.79907 12.5911L3.94849 12.1348C3.99515 11.9948 4.03674 11.8689 4.073 11.7576L4.07373 11.7561L4.1814 11.4434C4.21489 11.3495 4.24596 11.265 4.27515 11.1907L4.36084 10.9849C4.38855 10.9239 4.41584 10.8705 4.44214 10.8252C4.51581 10.6953 4.61188 10.5823 4.74243 10.5417H4.7439L4.82153 10.5227C4.90321 10.5069 4.99686 10.5 5.09985 10.5H5.67041C5.87137 10.5 6.05265 10.5425 6.17505 10.6619L6.17944 10.6655C6.29073 10.7714 6.35329 10.9108 6.375 11.072C6.39695 11.2133 6.40721 11.3701 6.40723 11.5415V15.5149C6.4072 15.7232 6.3696 15.9065 6.27686 16.0474C6.16065 16.2235 5.92578 16.2751 5.67041 16.2751C5.43573 16.2751 5.21924 16.2184 5.11157 16.0378L5.10938 16.0342C5.03005 15.8921 4.9966 15.7149 4.99658 15.5149V12.8335L4.4436 14.4456L4.44141 14.4521C4.39239 14.576 4.32667 14.6919 4.24658 14.8008L4.24731 14.8015C4.14341 14.9438 3.9882 15.008 3.80933 15.0081H3.73096C3.55351 15.008 3.40015 14.9437 3.29004 14.8081L3.28857 14.8066C3.20076 14.6954 3.13356 14.575 3.08862 14.4463L2.53564 12.8496V15.5149C2.53562 15.7149 2.50218 15.8921 2.42285 16.0342L2.42212 16.0356C2.31692 16.2193 2.09741 16.2751 1.86182 16.2751C1.60639 16.2751 1.37154 16.2236 1.25537 16.0474C1.16263 15.9065 1.12502 15.7232 1.125 15.5149V11.5415C1.12501 11.3697 1.13426 11.2129 1.15356 11.072L1.1543 11.0691L1.17993 10.9526C1.21308 10.8409 1.26884 10.7425 1.35059 10.6633L1.39966 10.6223C1.52082 10.5332 1.68333 10.5 1.86182 10.5H2.39355Z",fill:"currentColor"}),ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.1106 10.5C9.62746 10.5 10.0624 10.6251 10.4026 10.8875L10.5256 10.9944C10.6405 11.1071 10.7342 11.238 10.8062 11.3862C10.9039 11.5876 10.9497 11.8187 10.9497 12.074V14.4983C10.9497 14.7119 10.927 14.9051 10.8779 15.0754C10.8306 15.2398 10.7676 15.3875 10.689 15.5156L10.6875 15.5186C10.6079 15.6408 10.5165 15.7481 10.4143 15.8386C10.3155 15.9261 10.2132 15.9989 10.1074 16.0547L10.1067 16.054C9.86566 16.1854 9.58987 16.2585 9.28271 16.2751H7.97681C7.77408 16.2751 7.59145 16.2335 7.46704 16.1169C7.35471 16.0115 7.2898 15.8714 7.26489 15.7097C7.24266 15.5651 7.23194 15.4033 7.23193 15.2256V11.5415C7.23195 11.3663 7.2426 11.2069 7.26489 11.0647C7.28985 10.9032 7.35482 10.7635 7.46704 10.6582C7.59145 10.5416 7.77403 10.5 7.97681 10.5H9.1106ZM8.72095 15.0447H9.07544C9.15931 15.0426 9.23737 15.0225 9.31055 14.9839L9.31348 14.9817L9.35815 14.9553C9.40066 14.926 9.43743 14.8876 9.46802 14.8381L9.46875 14.8367L9.49438 14.7861C9.51748 14.7305 9.53172 14.6593 9.53174 14.5686V12.2615C9.53174 12.1256 9.50631 12.0248 9.46509 11.9517L9.46362 11.9495C9.42061 11.8696 9.36785 11.8162 9.30762 11.7825C9.25706 11.7542 9.19978 11.7342 9.1355 11.7231L9.06885 11.7151H8.72095V15.0447Z",fill:"currentColor"})),mS=e=>ye.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.6416 10.3784C3.95675 10.4068 4.24355 10.4808 4.49927 10.6033L4.68896 10.7058C4.75102 10.7437 4.81209 10.7853 4.87207 10.8303C4.99897 10.9227 5.10899 11.0375 5.20459 11.1724C5.30765 11.311 5.38613 11.4733 5.44116 11.6558L5.47998 11.8008C5.51306 11.9504 5.52903 12.1125 5.52905 12.2856C5.52905 12.6011 5.47828 12.8867 5.37305 13.1382L5.37378 13.1389C5.28434 13.3557 5.15787 13.5441 4.99512 13.7014L4.92334 13.7666C4.52343 14.1103 3.97203 14.269 3.2959 14.269H2.95166V15.4292C2.95165 15.614 2.93964 15.7845 2.91577 15.9397C2.8883 16.1182 2.81511 16.2739 2.68652 16.3909L2.68579 16.3901C2.54556 16.5202 2.34254 16.5645 2.12329 16.5645C1.90696 16.5644 1.70685 16.5194 1.56738 16.3887L1.56519 16.3865C1.44288 16.2679 1.37145 16.1152 1.34399 15.9404L1.34326 15.936C1.32257 15.7822 1.31251 15.613 1.3125 15.4292V11.5042C1.31251 11.3204 1.3225 11.1524 1.34326 11.001L1.34399 10.9973L1.37256 10.8691C1.40991 10.7455 1.47366 10.6362 1.56738 10.5483C1.70673 10.4148 1.90677 10.3689 2.12329 10.3689H3.50464L3.6416 10.3784ZM2.95166 12.9053H3.31787C3.43267 12.8984 3.53116 12.8714 3.61597 12.8269C3.69435 12.7857 3.75967 12.7244 3.81226 12.6387L3.84448 12.5728C3.8728 12.5 3.88989 12.4058 3.88989 12.2856C3.88984 12.1374 3.85971 12.0411 3.81812 11.9795L3.81519 11.9744C3.76419 11.8937 3.70357 11.8366 3.63428 11.7979C3.56584 11.7635 3.47692 11.7377 3.36328 11.7253H2.95166V12.9053Z",fill:"currentColor"}),ye.createElement("path",{d:"M9.85181 10.3689C9.96017 10.369 10.0701 10.3945 10.1792 10.4392L10.2876 10.4897L10.2935 10.4927L10.2993 10.4963C10.4209 10.5712 10.5226 10.6619 10.5879 10.7725C10.6503 10.8716 10.6882 10.9809 10.6882 11.0969C10.6882 11.1892 10.6526 11.2993 10.6077 11.4089L10.6069 11.4082C10.5828 11.4685 10.5524 11.5379 10.5154 11.6147C10.4774 11.6937 10.4326 11.7792 10.3813 11.8704L9.1582 14.0391V15.4373C9.1582 15.6164 9.14303 15.7853 9.11279 15.9426C9.07918 16.1138 9.00547 16.2635 8.88647 16.3799L8.88721 16.3806C8.75142 16.5164 8.5562 16.5644 8.34668 16.5645C8.13595 16.5644 7.94219 16.5154 7.80249 16.3843L7.80103 16.3828C7.68055 16.2661 7.60635 16.1157 7.57251 15.9434C7.54226 15.786 7.52783 15.6164 7.52783 15.4373V14.0398L6.12085 11.5283L6.11938 11.5261C6.0459 11.3891 6.00587 11.2453 6.00586 11.0969C6.00589 10.986 6.03681 10.8798 6.09155 10.7812L6.09302 10.7791L6.15015 10.6963C6.21492 10.6176 6.30071 10.5509 6.39771 10.4941L6.4043 10.4905L6.5127 10.4392C6.6213 10.3943 6.73162 10.369 6.84155 10.3689C7.06446 10.369 7.25232 10.4649 7.39307 10.6399L7.48096 10.752C7.5635 10.8656 7.6337 10.9873 7.69263 11.116L8.34668 12.4878L9.00073 11.116C9.07902 10.945 9.177 10.7867 9.29443 10.6421L9.29517 10.6414L9.35083 10.5791C9.48615 10.443 9.65571 10.3689 9.85181 10.3689Z",fill:"currentColor"}),ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H12C11.5858 16.5 11.25 16.1642 11.25 15.75C11.25 15.3358 11.5858 15 12 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),Qe=(e,t)=>f.jsx(e,{size:t.size??ee.size,stroke:t.stroke??ee.stroke,className:t.className}),Ws=(e,t)=>f.jsx(e,{width:Number(t.size??ee.size),height:Number(t.size??ee.size),className:t.className}),mg={".bmp":e=>Qe(W.IconFileTypeBmp,e),".cpp":e=>Ws(dS,e),".c":e=>Ws(uS,e),".cs":e=>Ws(hS,e),".css":e=>Qe(W.IconFileTypeCss,e),".csv":e=>Qe(W.IconFileTypeCsv,e),".doc":e=>Qe(W.IconFileTypeDoc,e),".docx":e=>Qe(W.IconFileTypeDocx,e),".html":e=>Qe(W.IconFileTypeHtml,e),".ini":e=>Ws(pS,e),".jpg":e=>Qe(W.IconFileTypeJpg,e),".js":e=>Qe(W.IconFileTypeJs,e),".json":e=>Ws(gS,e),".jsx":e=>Qe(W.IconFileTypeJsx,e),".md":e=>Ws(fS,e),".pdf":e=>Qe(W.IconFileTypePdf,e),".php":e=>Qe(W.IconFileTypePhp,e),".png":e=>Qe(W.IconFileTypePng,e),".ppt":e=>Qe(W.IconFileTypePpt,e),".py":e=>Ws(mS,e),".rs":e=>Qe(W.IconFileTypeRs,e),".sql":e=>Qe(W.IconFileTypeSql,e),".svg":e=>Qe(W.IconFileTypeSvg,e),".ts":e=>Qe(W.IconFileTypeTs,e),".tsx":e=>Qe(W.IconFileTypeTsx,e),".txt":e=>Qe(W.IconFileTypeTxt,e),".vue":e=>Qe(W.IconFileTypeVue,e),".xls":e=>Qe(W.IconFileTypeXls,e),".xml":e=>Qe(W.IconFileTypeXml,e),".zip":e=>Qe(W.IconFileTypeZip,e),default:e=>Qe(W.IconFile,e)},hh=({extension:e,size:t=ee.size,stroke:i=ee.stroke,className:s,decorative:o=!1,label:n,indicator:r})=>{const a=(()=>{if(!e)return"";const u=e.trim().toLowerCase();return u.startsWith(".")?u:`.${u}`})(),c=(mg[a]??mg.default)({size:t,stroke:i}),d=typeof n=="string"?n:`${a.slice(1).toUpperCase()} file icon`;return f.jsxs("span",{className:ge("inline-flex relative",s),...o?{"aria-hidden":!0}:{role:"img","aria-label":d},children:[f.jsx(Ue,{icon:c,className:"inline-block align-middle"}),r&&f.jsx("span",{className:"absolute -bottom-0.5 -left-0.5",children:r})]})},Sr=({label:e="Shared entity",size:t=14,className:i,containerClassName:s,stroke:o=1.5,sharedIndicatorTooltip:n})=>f.jsx(jt,{tooltip:n||"Shared",children:f.jsx(Ue,{className:ne("text-accent-primary flex bg-layer-3",s),icon:f.jsx(W.IconArrowUpRight,{size:t,stroke:o,"aria-label":typeof e=="string"?e:void 0,className:i,role:"img"})})}),ec=({name:e,className:t,shared:i=!1,iconSize:s=qt,details:o,sharedIndicatorClassName:n,sharedIndicatorTooltip:r,fileExtension:a,hideTooltip:l=!1,isInvalidName:c=!1,tooltipContent:d})=>{const u=a||(e.includes(".")?e.split(".").pop():void 0);return f.jsxs("div",{className:ne("flex items-center gap-2 w-full",t),children:[f.jsx(hh,{extension:u,size:s,className:"text-secondary",indicator:i?f.jsx(Sr,{className:n,sharedIndicatorTooltip:r}):null,label:"File type icon"}),f.jsxs("div",{className:ge(["w-full flex min-w-0",o&&"flex-col gap-1"]),children:[f.jsx(bt,{className:ge(["dial-small-text flex-1 min-w-0",c?"text-secondary":"text-primary"]),text:e,id:"name",hideTooltip:l,customTooltipContent:d}),o]})]})},tc=({name:e,className:t,shared:i=!1,loading:s=!1,iconSize:o=qt,sharedIndicatorClassName:n,sharedIndicatorTooltip:r,hideTooltip:a=!1,isInvalidName:l=!1,tooltipContent:c})=>{const d=()=>s?f.jsx(Vr,{size:o}):f.jsx(Ue,{icon:f.jsx(W.IconFolder,{...ee,size:o}),className:"inline-block align-middle"});return f.jsxs("div",{className:ne("flex items-center gap-2 w-full",t),children:[f.jsxs("span",{className:"inline-flex relative text-secondary",role:"img",children:[d(),i&&f.jsx("span",{className:"absolute z-50 -bottom-0.5 -left-0.5",children:f.jsx(Sr,{className:n,sharedIndicatorTooltip:r})})]}),f.jsx(bt,{className:ge("dial-small-text flex-1 min-w-0",l?"text-secondary":"text-primary"),text:e,id:"name",hideTooltip:a,customTooltipContent:c})]})};var Rr=(e=>(e.Left="left",e.Right="right",e))(Rr||{}),lt=function(){return lt=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},lt.apply(this,arguments)},vg={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Cg={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Pa={width:"20px",height:"20px",position:"absolute",zIndex:1},vS={top:lt(lt({},vg),{top:"-5px"}),right:lt(lt({},Cg),{left:void 0,right:"-5px"}),bottom:lt(lt({},vg),{top:void 0,bottom:"-5px"}),left:lt(lt({},Cg),{left:"-5px"}),topRight:lt(lt({},Pa),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:lt(lt({},Pa),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:lt(lt({},Pa),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:lt(lt({},Pa),{left:"-10px",top:"-10px",cursor:"nw-resize"})},CS=g.memo(function(e){var t=e.onResizeStart,i=e.direction,s=e.children,o=e.replaceStyles,n=e.className,r=g.useCallback(function(c){t(c,i)},[t,i]),a=g.useCallback(function(c){t(c,i)},[t,i]),l=g.useMemo(function(){return lt(lt({position:"absolute",userSelect:"none"},vS[i]),o??{})},[o,i]);return f.jsx("div",{className:n||void 0,style:l,onMouseDown:r,onTouchStart:a,children:s})}),wS=(function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,o){s.__proto__=o}||function(s,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(s[n]=o[n])},e(t,i)};return function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function s(){this.constructor=t}t.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})(),Ti=function(){return Ti=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ti.apply(this,arguments)},bS={width:"auto",height:"auto"},Ta=function(e,t,i){return Math.max(Math.min(e,i),t)},wg=function(e,t,i){var s=Math.round(e/t);return s*t+i*(s-1)},$o=function(e,t){return new RegExp(e,"i").test(t)},ka=function(e){return!!(e.touches&&e.touches.length)},xS=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},bg=function(e,t,i){i===void 0&&(i=0);var s=t.reduce(function(n,r,a){return Math.abs(r-e)<Math.abs(t[n]-e)?a:n},0),o=Math.abs(t[s]-e);return i===0||o<i?t[s]:e},nd=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},Ia=function(e,t,i,s){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var o=Number(e.replace("%",""))/100;return t*o}if(e.endsWith("vw")){var o=Number(e.replace("vw",""))/100;return i*o}if(e.endsWith("vh")){var o=Number(e.replace("vh",""))/100;return s*o}}return e},yS=function(e,t,i,s,o,n,r){return s=Ia(s,e.width,t,i),o=Ia(o,e.height,t,i),n=Ia(n,e.width,t,i),r=Ia(r,e.height,t,i),{maxWidth:typeof s>"u"?void 0:Number(s),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof n>"u"?void 0:Number(n),minHeight:typeof r>"u"?void 0:Number(r)}},SS=function(e){return Array.isArray(e)?e:[e,e]},RS=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],xg="__resizable_base__",FS=(function(e){wS(t,e);function t(i){var s,o,n,r,a=e.call(this,i)||this;return a.ratio=1,a.resizable=null,a.parentLeft=0,a.parentTop=0,a.resizableLeft=0,a.resizableRight=0,a.resizableTop=0,a.resizableBottom=0,a.targetLeft=0,a.targetTop=0,a.delta={width:0,height:0},a.appendBase=function(){if(!a.resizable||!a.window)return null;var l=a.parentNode;if(!l)return null;var c=a.window.document.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.position="absolute",c.style.transform="scale(0, 0)",c.style.left="0",c.style.flex="0 0 100%",c.classList?c.classList.add(xg):c.className+=xg,l.appendChild(c),c},a.removeBase=function(l){var c=a.parentNode;c&&c.removeChild(l)},a.state={isResizing:!1,width:(o=(s=a.propsSize)===null||s===void 0?void 0:s.width)!==null&&o!==void 0?o:"auto",height:(r=(n=a.propsSize)===null||n===void 0?void 0:n.height)!==null&&r!==void 0?r:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},a.onResizeStart=a.onResizeStart.bind(a),a.onMouseMove=a.onMouseMove.bind(a),a.onMouseUp=a.onMouseUp.bind(a),a}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||bS},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var i=0,s=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,n=this.resizable.offsetHeight,r=this.resizable.style.position;r!=="relative"&&(this.resizable.style.position="relative"),i=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,s=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:n,this.resizable.style.position=r}return{width:i,height:s}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var i=this,s=this.props.size,o=function(a){var l;if(typeof i.state[a]>"u"||i.state[a]==="auto")return"auto";if(i.propsSize&&i.propsSize[a]&&(!((l=i.propsSize[a])===null||l===void 0)&&l.toString().endsWith("%"))){if(i.state[a].toString().endsWith("%"))return i.state[a].toString();var c=i.getParentSize(),d=Number(i.state[a].toString().replace("px","")),u=d/c[a]*100;return"".concat(u,"%")}return nd(i.state[a])},n=s&&typeof s.width<"u"&&!this.state.isResizing?nd(s.width):o("width"),r=s&&typeof s.height<"u"&&!this.state.isResizing?nd(s.height):o("height");return{width:n,height:r}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var i=this.appendBase();if(!i)return{width:0,height:0};var s=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(s=!0,this.parentNode.style.flexWrap="wrap"),i.style.position="relative",i.style.minWidth="100%",i.style.minHeight="100%";var n={width:i.offsetWidth,height:i.offsetHeight};return s&&(this.parentNode.style.flexWrap=o),this.removeBase(i),n},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var i=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:i.flexBasis!=="auto"?i.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(i,s){var o=this.propsSize&&this.propsSize[s];return this.state[s]==="auto"&&this.state.original[s]===i&&(typeof o>"u"||o==="auto")?"auto":i},t.prototype.calculateNewMaxFromBoundary=function(i,s){var o=this.props.boundsByDirection,n=this.state.direction,r=o&&$o("left",n),a=o&&$o("top",n),l,c;if(this.props.bounds==="parent"){var d=this.parentNode;d&&(l=r?this.resizableRight-this.parentLeft:d.offsetWidth+(this.parentLeft-this.resizableLeft),c=a?this.resizableBottom-this.parentTop:d.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(l=r?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(l=r?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return l&&Number.isFinite(l)&&(i=i&&i<l?i:l),c&&Number.isFinite(c)&&(s=s&&s<c?s:c),{maxWidth:i,maxHeight:s}},t.prototype.calculateNewSizeFromDirection=function(i,s){var o=this.props.scale||1,n=SS(this.props.resizeRatio||1),r=n[0],a=n[1],l=this.state,c=l.direction,d=l.original,u=this.props,h=u.lockAspectRatio,p=u.lockAspectRatioExtraHeight,m=u.lockAspectRatioExtraWidth,v=d.width,C=d.height,w=p||0,b=m||0;return $o("right",c)&&(v=d.width+(i-d.x)*r/o,h&&(C=(v-b)/this.ratio+w)),$o("left",c)&&(v=d.width-(i-d.x)*r/o,h&&(C=(v-b)/this.ratio+w)),$o("bottom",c)&&(C=d.height+(s-d.y)*a/o,h&&(v=(C-w)*this.ratio+b)),$o("top",c)&&(C=d.height-(s-d.y)*a/o,h&&(v=(C-w)*this.ratio+b)),{newWidth:v,newHeight:C}},t.prototype.calculateNewSizeFromAspectRatio=function(i,s,o,n){var r=this.props,a=r.lockAspectRatio,l=r.lockAspectRatioExtraHeight,c=r.lockAspectRatioExtraWidth,d=typeof n.width>"u"?10:n.width,u=typeof o.width>"u"||o.width<0?i:o.width,h=typeof n.height>"u"?10:n.height,p=typeof o.height>"u"||o.height<0?s:o.height,m=l||0,v=c||0;if(a){var C=(h-m)*this.ratio+v,w=(p-m)*this.ratio+v,b=(d-v)/this.ratio+m,x=(u-v)/this.ratio+m,y=Math.max(d,C),S=Math.min(u,w),E=Math.max(h,b),R=Math.min(p,x);i=Ta(i,y,S),s=Ta(s,E,R)}else i=Ta(i,d,u),s=Ta(s,h,p);return{newWidth:i,newHeight:s}},t.prototype.setBoundingClientRect=function(){var i=1/(this.props.scale||1);if(this.props.bounds==="parent"){var s=this.parentNode;if(s){var o=s.getBoundingClientRect();this.parentLeft=o.left*i,this.parentTop=o.top*i}}if(this.props.bounds&&typeof this.props.bounds!="string"){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left*i,this.targetTop=n.top*i}if(this.resizable){var r=this.resizable.getBoundingClientRect(),a=r.left,l=r.top,c=r.right,d=r.bottom;this.resizableLeft=a*i,this.resizableRight=c*i,this.resizableTop=l*i,this.resizableBottom=d*i}},t.prototype.onResizeStart=function(i,s){if(!(!this.resizable||!this.window)){var o=0,n=0;if(i.nativeEvent&&xS(i.nativeEvent)?(o=i.nativeEvent.clientX,n=i.nativeEvent.clientY):i.nativeEvent&&ka(i.nativeEvent)&&(o=i.nativeEvent.touches[0].clientX,n=i.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var r=this.props.onResizeStart(i,s,this.resizable);if(r===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var a,l=this.window.getComputedStyle(this.resizable);if(l.flexBasis!=="auto"){var c=this.parentNode;if(c){var d=this.window.getComputedStyle(c).flexDirection;this.flexDir=d.startsWith("row")?"row":"column",a=l.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var u={original:{x:o,y:n,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Ti(Ti({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(i.target).cursor||"auto"}),direction:s,flexBasis:a};this.setState(u)}},t.prototype.onMouseMove=function(i){var s=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&ka(i))try{i.preventDefault(),i.stopPropagation()}catch{}var o=this.props,n=o.maxWidth,r=o.maxHeight,a=o.minWidth,l=o.minHeight,c=ka(i)?i.touches[0].clientX:i.clientX,d=ka(i)?i.touches[0].clientY:i.clientY,u=this.state,h=u.direction,p=u.original,m=u.width,v=u.height,C=this.getParentSize(),w=yS(C,this.window.innerWidth,this.window.innerHeight,n,r,a,l);n=w.maxWidth,r=w.maxHeight,a=w.minWidth,l=w.minHeight;var b=this.calculateNewSizeFromDirection(c,d),x=b.newHeight,y=b.newWidth,S=this.calculateNewMaxFromBoundary(n,r);this.props.snap&&this.props.snap.x&&(y=bg(y,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(x=bg(x,this.props.snap.y,this.props.snapGap));var E=this.calculateNewSizeFromAspectRatio(y,x,{width:S.maxWidth,height:S.maxHeight},{width:a,height:l});if(y=E.newWidth,x=E.newHeight,this.props.grid){var R=wg(y,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),F=wg(x,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),D=this.props.snapGap||0,T=D===0||Math.abs(R-y)<=D?R:y,P=D===0||Math.abs(F-x)<=D?F:x;y=T,x=P}var k={width:y-p.width,height:x-p.height};if(this.delta=k,m&&typeof m=="string"){if(m.endsWith("%")){var O=y/C.width*100;y="".concat(O,"%")}else if(m.endsWith("vw")){var _=y/this.window.innerWidth*100;y="".concat(_,"vw")}else if(m.endsWith("vh")){var L=y/this.window.innerHeight*100;y="".concat(L,"vh")}}if(v&&typeof v=="string"){if(v.endsWith("%")){var O=x/C.height*100;x="".concat(O,"%")}else if(v.endsWith("vw")){var _=x/this.window.innerWidth*100;x="".concat(_,"vw")}else if(v.endsWith("vh")){var L=x/this.window.innerHeight*100;x="".concat(L,"vh")}}var N={width:this.createSizeForCssProperty(y,"width"),height:this.createSizeForCssProperty(x,"height")};this.flexDir==="row"?N.flexBasis=N.width:this.flexDir==="column"&&(N.flexBasis=N.height);var H=this.state.width!==N.width,z=this.state.height!==N.height,se=this.state.flexBasis!==N.flexBasis,M=H||z||se;M&&Dn.flushSync(function(){s.setState(N)}),this.props.onResize&&M&&this.props.onResize(i,h,this.resizable,k)}},t.prototype.onMouseUp=function(i){var s,o,n=this.state,r=n.isResizing,a=n.direction;n.original,!(!r||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(i,a,this.resizable,this.delta),this.props.size&&this.setState({width:(s=this.props.size.width)!==null&&s!==void 0?s:"auto",height:(o=this.props.size.height)!==null&&o!==void 0?o:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Ti(Ti({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(i){var s,o;this.setState({width:(s=i.width)!==null&&s!==void 0?s:"auto",height:(o=i.height)!==null&&o!==void 0?o:"auto"})},t.prototype.renderResizer=function(){var i=this,s=this.props,o=s.enable,n=s.handleStyles,r=s.handleClasses,a=s.handleWrapperStyle,l=s.handleWrapperClass,c=s.handleComponent;if(!o)return null;var d=Object.keys(o).map(function(u){return o[u]!==!1?f.jsx(CS,{direction:u,onResizeStart:i.onResizeStart,replaceStyles:n&&n[u],className:r&&r[u],children:c&&c[u]?c[u]:null},u):null});return f.jsx("div",{className:l,style:a,children:d})},t.prototype.render=function(){var i=this,s=Object.keys(this.props).reduce(function(r,a){return RS.indexOf(a)!==-1||(r[a]=i.props[a]),r},{}),o=Ti(Ti(Ti({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var n=this.props.as||"div";return f.jsxs(n,Ti({style:o,className:this.props.className},s,{ref:function(r){r&&(i.resizable=r)},children:[this.state.isResizing&&f.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(g.PureComponent);const ES=({side:e,className:t})=>{const i=e===Rr.Left,s=i?W.IconChevronLeft:W.IconChevronRight;return f.jsx("div",{className:t,children:f.jsx(s,{className:ge("h-full",i&&"-ml-6")})})},DS=({side:e,isResizing:t,customHandler:i,handlerClassName:s})=>{const o=ne("invisible h-full w-0.5 group-hover:visible bg-accent-primary text-accent-primary cursor-col-resize transition-opacity",t&&"visible",s),n=f.jsx(ES,{side:e,className:o});return i?f.jsx("div",{className:o,children:i}):n},av=({children:e,minWidth:t,maxWidth:i,width:s,defaultWidth:o,onResizeStop:n,onResize:r,side:a=Rr.Right,resizeHandlerClassName:l,resizeHandler:c})=>{const[d,u]=g.useState(!1),[h,p]=g.useState(o),m=s!==void 0,v=m?s:h,C=g.useRef(null),w=g.useCallback(()=>{u(!0)},[]),b=g.useCallback(()=>{u(!1);const y=C.current?.resizable?.getBoundingClientRect(),S=y?Math.round(y.width):t;m||p(S),n?.(S)},[n,m,t]),x=g.useMemo(()=>{const y=a===Rr.Left,S=f.jsx(DS,{side:a,isResizing:d,customHandler:c,handlerClassName:l});return{size:m?{width:v,height:"100%"}:void 0,defaultSize:m?void 0:{width:v,height:"100%"},minWidth:t,maxWidth:i,enable:{left:y,right:!y},handleClasses:{right:"group",left:"group"},handleStyles:{right:{right:"-8px",zIndex:10},left:{left:0,zIndex:10}},handleComponent:{left:y?S:void 0,right:y?void 0:S},onResizeStart:w,onResize:(E,R,F)=>{const D=Math.round(F.offsetWidth);r?.(D)},onResizeStop:b}},[a,m,v,t,i,c,l,d,w,b,r]);return f.jsx(FS,{ref:C,...x,children:f.jsx("div",{className:"group flex size-full flex-col bg-layer-3 divide-y divide-tertiary transition-all",children:e})})},lv=({enabled:e=!0,children:t,...i})=>e?f.jsx(av,{...i,children:t}):t;var ai=(e=>(e.Default="default",e.Text="text",e.Circular="circular",e.Rectangular="rectangular",e))(ai||{}),dr=(e=>(e.Small="small",e.Default="default",e.Large="large",e))(dr||{}),pl=(e=>(e.Circle="circle",e.Square="square",e))(pl||{});const PS=e=>{if(typeof e=="number")return e;switch(e){case dr.Small:return 32;case dr.Large:return 64;case dr.Default:default:return 40}},Yo=({active:e=!0,paragraph:t=!0,avatar:i=!1,showTitle:s=!0,loading:o=!0,children:n,variant:r=ai.Default,width:a,height:l,className:c,...d})=>{if(!o&&n)return f.jsx(f.Fragment,{children:n});const u=ne("bg-layer-3",e&&"animate-pulse",c);if(r!==ai.Default){const F=ne(u,r===ai.Circular&&"rounded-full",r===ai.Rectangular&&"rounded",r===ai.Text&&"rounded"),D={};return a&&(D.width=typeof a=="number"?`${a}px`:a),l&&(D.height=typeof l=="number"?`${l}px`:l),f.jsx("div",{className:F,style:D,...d})}const h=!!i,p=!!s,m=!!t,v=typeof i=="object"?i:{},C=typeof s=="object"?s:{},w=typeof t=="object"?t:{},b=PS(v.size),x=v.shape??pl.Circle,y=C.width??"38%",S=w.rows??3,E=w.width,R=F=>E?Array.isArray(E)?E[F]??"100%":E:F===S-1?"61%":"100%";return f.jsxs("div",{...d,className:ne("flex gap-4",c),children:[h&&f.jsx("div",{className:ne(u,x===pl.Circle?"rounded-full":"rounded","flex-shrink-0"),style:{width:b,height:b}}),f.jsxs("div",{className:"flex-1 flex flex-col gap-3",children:[p&&f.jsx("div",{className:ne(u,"h-4 rounded"),style:{width:y}}),m&&f.jsx("div",{className:"flex flex-col gap-3",children:Array.from({length:S}).map((F,D)=>f.jsx("div",{className:ne(u,"h-4 rounded"),style:{width:R(D)}},D))})]})]})};function $e(e){if(e?.length)return e[e.length-1]}function Ms(e,t,i){if(e===t)return!0;if(!e||!t)return e==null&&t==null;const s=e.length;if(s!==t.length)return!1;for(let o=0;o<s;o++)if(e[o]!==t[o]&&!i?.(e[o],t[o]))return!1;return!0}function Qn(e,t){if(e){for(const i of e)if(t(i))return!0}}function Hi(e,t){const i=e.indexOf(t);i>=0&&e.splice(i,1)}function TS(e,t){let i=0,s=0;for(;i<e.length;i++)t.includes(e[i])||(e[s]=e[i],s++);for(;s<e.length;)e.pop()}function yg(e,t,i){for(let s=0;s<t.length;s++)Hi(e,t[s]);for(let s=t.length-1;s>=0;s--)e.splice(i,0,t[s])}var Yi=e=>e==null||e===""?null:e;function te(e){return e!=null&&e!==""}function it(e){return!te(e)}var hu=e=>e!=null&&typeof e.toString=="function"?e.toString():null,Fr=(e,t)=>{const i=e?JSON.stringify(e):null,s=t?JSON.stringify(t):null;return i===s},kS=(e,t,i=!1)=>e==null?t==null?0:-1:t==null?1:(typeof e=="object"&&e.toNumber&&(e=e.toNumber()),typeof t=="object"&&t.toNumber&&(t=t.toNumber()),!i||typeof e!="string"?e>t?1:e<t?-1:0:e.localeCompare(t)),lo=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,i){const s=t?this.allAsyncListeners:this.allSyncListeners;let o=s.get(e);return!o&&i&&(o=new Set,s.set(e,o)),o}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,i=!1){this.getListeners(e,i,!0).add(t)}removeEventListener(e,t,i=!1){const s=this.getListeners(e,i,!1);s&&(s.delete(t),s.size===0&&(i?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){this.getGlobalListeners(t).add(e)}removeGlobalListener(e,t=!1){this.getGlobalListeners(t).delete(e)}dispatchEvent(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const i=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const{frameworkOverrides:s}=this,o=a=>{const l=s?()=>s.wrapIncoming(a):a;t?this.dispatchAsync(l):l()},n=this.getListeners(i,t,!1);if((n?.size??0)>0){const a=new Set(n);for(const l of a)n?.has(l)&&o(()=>l(e))}const r=this.getGlobalListeners(t);if(r.size>0){const a=new Set(r);for(const l of a)o(()=>l(i,e))}}getGlobalListeners(e){return e?this.globalAsyncListeners:this.globalSyncListeners}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)},i=this.frameworkOverrides;i?i.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[];for(const t of e)t()}},IS=/[&<>"']/g,MS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Tn(e){return e?.toString().toString()??null}function ur(e){return Tn(e)?.replace(IS,t=>MS[t])??null}function Sg(e){return typeof e=="string"&&e.startsWith("=")&&e.length>1}function AS(e){if(!e||e==null)return null;const t=/([a-z])([A-Z])/g,i=/([A-Z]+)([A-Z])([a-z])/g;return e.replace(t,"$1 $2").replace(i,"$1 $2$3").replace(/\./g," ").split(" ").map(o=>o.substring(0,1).toUpperCase()+(o.length>1?o.substring(1,o.length):"")).join(" ")}function fi(e){return e.eRootDiv.getRootNode()}function Je(e){return fi(e).activeElement}function ft(e){const{gos:t,eRootDiv:i}=e;let s=null;const o=t.get("getDocument");return o&&te(o)?s=o():i&&(s=i.ownerDocument),s&&te(s)?s:document}function ph(e){const t=Je(e);return t===null||t===ft(e).body}function gh(e){return ft(e).defaultView||window}function fh(e){let t=null,i=null;try{t=ft(e).fullscreenElement}catch{}finally{t||(t=fi(e));const s=t.querySelector("body");s?i=s:t instanceof ShadowRoot?i=t:t instanceof Document?i=t?.documentElement:i=t}return i}function LS(e){return fh(e)?.clientWidth??(window.innerWidth||-1)}function OS(e){return fh(e)?.clientHeight??(window.innerHeight||-1)}function Si(e,t,i){i==null||typeof i=="string"&&i==""?cv(e,t):Ri(e,t,i)}function Ri(e,t,i){e.setAttribute(dv(t),i.toString())}function cv(e,t){e.removeAttribute(dv(t))}function dv(e){return`aria-${e}`}function co(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function NS(e){const t=e?.direction;return t==="asc"?"ascending":t==="desc"?"descending":t==="mixed"?"other":"none"}function HS(e){return e.getAttribute("aria-label")}function Cn(e,t){Si(e,"label",t)}function Er(e,t){Si(e,"labelledby",t)}function uv(e,t){Si(e,"live",t)}function BS(e,t){Si(e,"atomic",t)}function GS(e,t){Si(e,"relevant",t)}function mh(e,t){Si(e,"invalid",t)}function VS(e,t){Si(e,"disabled",t)}function hv(e,t){Si(e,"hidden",t)}function pu(e,t){Ri(e,"expanded",t)}function zS(e,t){Ri(e,"setsize",t)}function WS(e,t){Ri(e,"posinset",t)}function jS(e,t){Ri(e,"rowcount",t)}function vh(e,t){Ri(e,"rowindex",t)}function _S(e,t){Ri(e,"rowspan",t)}function US(e,t){Ri(e,"colcount",t)}function pv(e,t){Ri(e,"colindex",t)}function $S(e,t){Ri(e,"colspan",t)}function qS(e,t){Ri(e,"sort",t)}function KS(e){cv(e,"sort")}function gv(e,t){Si(e,"selected",t)}function YS(e,t){Si(e,"controls",t)}function ZS(e,t){YS(e,t.id),Er(t,e.id)}function Rg(e,t){Si(e,"owns",t)}function ic(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var XS="[tabindex], input, select, button, textarea, [href]",fv="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function hr(e){return!e||!e.matches("input, select, button, textarea")||!e.matches(fv)?!1:yi(e)}function Ke(e,t,i={}){const{skipAriaHidden:s}=i;e.classList.toggle("ag-hidden",!t),s||hv(e,!t)}function QS(e,t,i={}){const{skipAriaHidden:s}=i;e.classList.toggle("ag-invisible",!t),s||hv(e,!t)}function Dr(e,t){const i="disabled",s=t?n=>n.setAttribute(i,""):n=>n.removeAttribute(i);s(e);const o=e.querySelectorAll("input")??[];for(const n of o)s(n)}function Js(e,t,i){let s=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof i=="number"){if(++s>i)break}else if(e===i)break}return!1}function Ro(e){const{height:t,width:i,borderTopWidth:s,borderRightWidth:o,borderBottomWidth:n,borderLeftWidth:r,paddingTop:a,paddingRight:l,paddingBottom:c,paddingLeft:d,marginTop:u,marginRight:h,marginBottom:p,marginLeft:m,boxSizing:v}=window.getComputedStyle(e),C=Number.parseFloat;return{height:C(t||"0"),width:C(i||"0"),borderTopWidth:C(s||"0"),borderRightWidth:C(o||"0"),borderBottomWidth:C(n||"0"),borderLeftWidth:C(r||"0"),paddingTop:C(a||"0"),paddingRight:C(l||"0"),paddingBottom:C(c||"0"),paddingLeft:C(d||"0"),marginTop:C(u||"0"),marginRight:C(h||"0"),marginBottom:C(p||"0"),marginLeft:C(m||"0"),boxSizing:v}}function Ch(e){const t=Ro(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom-t.borderTopWidth-t.borderBottomWidth:t.height}function Pr(e){const t=Ro(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight-t.borderLeftWidth-t.borderRightWidth:t.width}function mv(e){const{height:t,marginBottom:i,marginTop:s}=Ro(e);return Math.floor(t+i+s)}function gl(e){const{width:t,marginLeft:i,marginRight:s}=Ro(e);return Math.floor(t+i+s)}function vv(e){const t=e.getBoundingClientRect(),{borderTopWidth:i,borderLeftWidth:s,borderRightWidth:o,borderBottomWidth:n}=Ro(e);return{top:t.top+(i||0),left:t.left+(s||0),right:t.right+(o||0),bottom:t.bottom+(n||0)}}function fl(e,t){let i=e.scrollLeft;return t&&(i=Math.abs(i)),i}function ml(e,t,i){i&&(t*=-1),e.scrollLeft=t}function _t(e){for(;e?.firstChild;)e.firstChild.remove()}function Ji(e){e?.parentNode&&e.remove()}function Cv(e){return!!e.offsetParent}function yi(e){return e.checkVisibility?e.checkVisibility({checkVisibilityCSS:!0}):!(!Cv(e)||window.getComputedStyle(e).visibility!=="visible")}function wh(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function Tr(e){return()=>{const t=e();return t?wv(t)||JS(t):!0}}function wv(e){return e.clientWidth<e.scrollWidth}function JS(e){return e.clientHeight<e.scrollHeight}function vl(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Li(e,t)}function Li(e,t){t=bh(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function pr(e,t){t=bh(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function bh(e){return typeof e=="number"?`${e}px`:e}function xh(e){return e instanceof Node||e instanceof HTMLElement}function Vt(e,t,i){i==null||i===""?e.removeAttribute(t):e.setAttribute(t,i.toString())}function e2(e,t){if(!t.isContentEditable)return;const i=gh(e).getSelection();if(!i)return;const s=ft(e).createRange();s.selectNodeContents(t),s.collapse(!1),i.removeAllRanges(),i.addRange(s)}function ss(e,t,i){const o=gh(e).ResizeObserver,n=o?new o(i):null;return n?.observe(t),()=>n?.disconnect()}function os(e,t){const i=gh(e);i.requestAnimationFrame?i.requestAnimationFrame(t):i.webkitRequestAnimationFrame?i.webkitRequestAnimationFrame(t):i.setTimeout(t,0)}var bv="data-ref",rd;function Fg(){return rd??(rd=document.createTextNode(" ")),rd.cloneNode()}function uo(e){const{attrs:t,children:i,cls:s,ref:o,role:n,tag:r}=e,a=document.createElement(r);if(s&&(a.className=s),o&&a.setAttribute(bv,o),n&&a.setAttribute("role",n),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(i)if(typeof i=="string")a.textContent=i;else{let l=!0;for(const c of i)c&&(typeof c=="string"?(a.appendChild(document.createTextNode(c)),l=!1):typeof c=="function"?a.appendChild(c()):(l&&(a.appendChild(Fg()),l=!1),a.append(uo(c)),a.appendChild(Fg())))}return a}var t2=["touchstart","touchend","touchmove","touchcancel","scroll"],i2=["wheel"],ad={},Cl=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return i=>{if(typeof ad[i]=="boolean")return ad[i];const s=document.createElement(e[i]||"div");return i="on"+i,ad[i]=i in s}})();function s2(e,t){return!t||!e?!1:n2(t).indexOf(e)>=0}function o2(e){const t=[];let i=e.target;for(;i;)t.push(i),i=i.parentElement;return t}function n2(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():o2(t)}function r2(e,t,i){const s=a2(t);let o;s!=null&&(o={passive:s}),e.addEventListener(t,i,o)}var a2=e=>{const t=t2.includes(e),i=i2.includes(e);if(t)return!0;if(i)return!1};function xv(e,t,i){if(i===0)return!1;const s=Math.abs(e.clientX-t.clientX),o=Math.abs(e.clientY-t.clientY);return Math.max(s,o)<=i}var nn=(e,t)=>{const i=e.identifier;for(let s=0,o=t.length;s<o;++s){const n=t[s];if(n.identifier===i)return n}return null};function kr(e,t){return e.gos.isElementInThisInstance(t.target)}function l2(e,t,i){const o=e.getBoundingClientRect().height,n=LS(i)-2,r=OS(i)-2;if(!e.offsetParent)return;const l=vv(e.offsetParent),{clientY:c,clientX:d}=t;let u=c-l.top-o/2,h=d-l.left-10;const p=ft(i),m=p.defaultView||window,v=m.pageYOffset||p.documentElement.scrollTop,C=m.pageXOffset||p.documentElement.scrollLeft;n>0&&h+e.clientWidth>n+C&&(h=n+C-e.clientWidth),h<0&&(h=0),r>0&&u+e.clientHeight>r+v&&(u=r+v-e.clientHeight),u<0&&(u=0),e.style.left=`${h}px`,e.style.top=`${u}px`}var Ya=(e,...t)=>{for(const i of t){const[s,o,n,r]=i;s.addEventListener(o,n,r),e.push(i)}},yh=e=>{if(e){for(const[t,i,s,o]of e)t.removeEventListener(i,s,o);e.length=0}},vs=e=>{e.cancelable&&e.preventDefault()};function c2(e,t){return t}function yv(e){return e?.getLocaleTextFunc()??c2}function d2(e,t,i,s){const o=t[i];return e.getLocaleTextFunc()(i,typeof o=="function"?o(s):o,s)}function u2(e){return(t,i,s)=>e({key:t,defaultValue:i,variableValues:s})}function h2(e){return(t,i,s)=>{let o=e?.[t];if(o&&s?.length){let n=0;for(;!(n>=s.length||o.indexOf("${variable}")===-1);)o=o.replace("${variable}",s[n++])}return o??i}}var Ht=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){const{destroyFunctions:e}=this;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,t,i){this.localEventService||(this.localEventService=new lo),this.localEventService.addEventListener(e,t,i)}removeEventListener(e,t,i){this.localEventService?.removeEventListener(e,t,i)}dispatchLocalEvent(e){this.localEventService?.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventSvc,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){const i=[];for(const s of Object.keys(t)){const o=t[s];o&&i.push(this._setupListener(e,s,o))}return i}_setupListener(e,t,i){if(this.destroyed)return()=>null;let s;if(p2(e))e.__addEventListener(t,i),s=()=>(e.__removeEventListener(t,i),null);else{const o=g2(e);e instanceof HTMLElement?r2(e,t,i):o?e.addListener(t,i):e.addEventListener(t,i),s=o?()=>(e.removeListener(t,i),null):()=>(e.removeEventListener(t,i),null)}return this.destroyFunctions.push(s),()=>(s(),this.destroyFunctions=this.destroyFunctions.filter(o=>o!==s),null)}setupPropertyListener(e,t){const{gos:i}=this;i.addPropertyEventListener(e,t);const s=()=>(i.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(s),()=>(s(),this.destroyFunctions=this.destroyFunctions.filter(o=>o!==s),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupPropertyListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const i=e.join("-")+this.propertyListenerId++,s=o=>{if(o.changeSet){if(o.changeSet&&o.changeSet.id===this.lastChangeSetIdLookup[i])return;this.lastChangeSetIdLookup[i]=o.changeSet.id}const n={type:"propertyChanged",changeSet:o.changeSet,source:o.source};t(n)};for(const o of e)this.setupPropertyListener(o,s)}getLocaleTextFunc(){return yv(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){const i=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),i}createBean(e,t,i){return(t||this.stubContext).createBean(e,i)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function p2(e){return e.__addEventListener!==void 0}function g2(e){return e.eventServiceType==="global"}var B=class extends Ht{},gu=new Set,sc=(e,t)=>{gu.has(t)||(gu.add(t),e())};sc._set=gu;var f2={pending:!1,funcs:[]},m2={pending:!1,funcs:[]};function fu(e,t="setTimeout",i){const s=t==="raf"?m2:f2;if(s.funcs.push(e),s.pending)return;s.pending=!0;const o=()=>{const n=s.funcs.slice();s.funcs.length=0,s.pending=!1;for(const r of n)r()};t==="raf"?os(i,o):window.setTimeout(o,0)}function ct(e,t,i){let s;return function(...o){const n=this;return window.clearTimeout(s),s=window.setTimeout(function(){e.isAlive()&&t.apply(n,o)},i),s}}function Eg(e,t){let i=0;return function(...s){const o=this,n=Date.now();n-i<t||(i=n,e.apply(o,s))}}function v2(e,t,i,s=100){const o=Date.now();let n=null,r=!1;const a=()=>{n!=null&&(window.clearInterval(n),n=null)};e.addDestroyFunc(a);const l=()=>{const c=Date.now()-o>s;(t()||c)&&(i(),r=!0,a())};l(),r||(n=window.setInterval(l,10))}var Sv=new Set(["__proto__","constructor","prototype"]);function C2(e,t){if(e!=null){if(Array.isArray(e)){for(let i=0;i<e.length;i++)t(i.toString(),e[i]);return}for(const i of Object.keys(e).filter(s=>!Sv.has(s)))t(i,e[i])}}function Mt(e,t,i=!0,s=!1){te(t)&&C2(t,(o,n)=>{let r=e[o];r!==n&&(s&&r==null&&n!=null&&typeof n=="object"&&n.constructor===Object&&(r={},e[o]=r),Dg(n)&&Dg(r)&&!Array.isArray(r)?Mt(r,n,i,s):(i||n!==void 0)&&(e[o]=n))})}function Dg(e){return typeof e=="object"&&e!==null}var Sh=class $i{static applyGlobalGridOptions(t){if(!$i.gridOptions)return{...t};let i={};return Mt(i,$i.gridOptions,!0,!0),$i.mergeStrategy==="deep"?Mt(i,t,!0,!0):i={...i,...t},$i.gridOptions.context&&(i.context=$i.gridOptions.context),t.context&&($i.mergeStrategy==="deep"&&i.context&&Mt(t.context,i.context,!0,!0),i.context=t.context),i}static applyGlobalGridOption(t,i){if($i.mergeStrategy==="deep"){const s=Rv(t);if(s&&typeof s=="object"&&typeof i=="object")return $i.applyGlobalGridOptions({[t]:i})[t]}return i}};Sh.gridOptions=void 0;Sh.mergeStrategy="shallow";var Rh=Sh;function Rv(e){return Rh.gridOptions?.[e]}var Fv={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipSwitchShowDelay:200,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:" ",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,cellFlashDuration:500,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,refreshAfterGroupEdit:!1,rowDragInsertDelay:500,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupHideColumnsUntilExpanded:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:"never",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:"clientSide",asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSidePivotResultFieldSeparator:"_",viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:"xy",suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1,columnMenu:"new",reactiveCustomComponents:!0,suppressSetFilterByDefault:!1,enableFilterHandlers:!1},Ev="https://www.ag-grid.com";function ho(e,t,...i){e.get("debug")&&console.log("AG Grid: "+t,...i)}function gr(e,...t){sc(()=>Dv(e,...t),e+t?.join(""))}function rn(e,...t){sc(()=>w2(e,...t),e+t?.join(""))}function w2(e,...t){console.error("AG Grid: "+e,...t)}function Dv(e,...t){console.warn("AG Grid: "+e,...t)}var Pv=new Set,wl={},eo={},Za,Tv=!1,kv=!1,b2=!1;function x2(e){const[t,i]=e.version.split(".")||[],[s,o]=Za.split(".")||[];return t===s&&i===o}function y2(e){Za||(Za=e.version);const t=s=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${s} Please update all modules to the same version.`;e.version?x2(e)||rn(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${Za}.`)):rn(t(`'${e.moduleName}' is incompatible.`));const i=e.validate?.();i&&!i.isValid&&rn(`${i.message}`)}function Ir(e,t,i=!1){i||(Tv=!0),y2(e);const s=e.rowModels??["all"];Pv.add(e);let o;t!==void 0?(kv=!0,eo[t]===void 0&&(eo[t]={}),o=eo[t]):o=wl;for(const n of s)o[n]===void 0&&(o[n]={}),o[n][e.moduleName]=e;if(e.dependsOn)for(const n of e.dependsOn)Ir(n,t,i)}function S2(e){delete eo[e]}function mu(e,t,i){const s=o=>!!wl[o]?.[e]||!!eo[t]?.[o]?.[e];return s(i)||s("all")}function Fh(){return kv}function R2(e,t){const i=eo[e]??{};return[...Object.values(wl.all??{}),...Object.values(i.all??{}),...Object.values(wl[t]??{}),...Object.values(i[t]??{})]}function F2(){return new Set(Pv)}function E2(e,t){const i=eo[e]??{};return[...Object.values(i.all??{}),...Object.values(i[t]??{})]}function D2(){return Tv}function Iv(){return b2}var Mv=class{static register(e){Ir(e,void 0)}static registerModules(e){for(const t of e)Ir(t,void 0)}};function Av(e){for(const t of e){if("setLicenseKey"in t)return t;if(t.dependsOn){const i=Av(t.dependsOn);if(i)return i}}}var Q="35.2.1",Pg=2e3,Tg=100,Lv="_version_",Ov=null,an=`${Ev}/javascript-data-grid`;function P2(e){Ov=e}function T2(e){an=e}function Nv(e,t,i){return Ov?.(e,t)??[A2(e,t,i)]}function Eh(e,t,i,s,o){e(`${s?"warning":"error"} #${t}`,...Nv(t,i,o))}function k2(e){if(!e)return String(e);const t={};for(const i of Object.keys(e))typeof e[i]!="object"&&typeof e[i]!="function"&&(t[i]=e[i]);return JSON.stringify(t)}function I2(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=k2(e)),t}function Xa(e){return e===void 0?"undefined":e===null?"null":e}function vu(e,t){return`${e}?${t.toString()}`}function M2(e,t,i){const s=Array.from(t.entries()).sort((n,r)=>r[1].length-n[1].length);let o=vu(e,t);for(const[n,r]of s){if(n===Lv)continue;const a=o.length-i;if(a<=0)break;const l="...",c=a+l.length,d=r.length-c>Tg?r.slice(0,r.length-c)+l:r.slice(0,Tg)+l;t.set(n,d),o=vu(e,t)}return o}function Hv(e,t){const i=new URLSearchParams;if(i.append(Lv,Q),t)for(const n of Object.keys(t))i.append(n,I2(t[n]));const s=`${an}/errors/${e}`,o=vu(s,i);return o.length<=Pg?o:M2(s,i,Pg)}var A2=(e,t,i)=>{const s=Hv(e,t);return`${`${i?i+`
7
- `:""}Visit ${s}`}${i?"":`
8
- Alternatively register the ValidationModule to see the full message in the console.`}`};function $(...e){Eh(gr,e[0],e[1],!0)}function We(...e){Eh(rn,e[0],e[1],!1)}function nr(e,t,i){Eh(rn,e,t,!1,i)}function L2(e,t){const i=t[0];return`error #${i} `+Nv(i,t[1],e).join(" ")}function Oi(...e){return L2(void 0,e)}function Bv(e,t){return e.get("rowModelType")===t}function st(e,t){return Bv(e,"clientSide")}function kn(e,t){return Bv(e,"serverSide")}function yt(e,t){return e.get("domLayout")===t}function to(e){return yl(e)!==void 0}function Gv(e){return typeof e.get("getRowHeight")=="function"}function O2(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function N2({gos:e,formula:t}){const i=e.get("rowNumbers");return i||!!t?.active&&i!==!1}function Rs(e,t,i=!1,s){const{gos:o,environment:n}=e;if(s==null&&(s=n.getDefaultRowHeight()),Gv(o)){if(i)return{height:s,estimated:!0};const l={node:t,data:t.data},c=o.getCallback("getRowHeight")(l);if(Cu(c))return c===0&&$(23),{height:Math.max(1,c),estimated:!1}}if(t.detail&&o.get("masterDetail"))return H2(o);const r=o.get("rowHeight");return{height:r&&Cu(r)?r:s,estimated:!1}}function H2(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return Cu(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function io(e){const{environment:t,gos:i}=e,s=i.get("rowHeight");if(!s||it(s))return t.getDefaultRowHeight();const o=t.refreshRowHeightVariable();return o!==-1?o:($(24),t.getDefaultRowHeight())}function Cu(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function Vv(e,t,i){const s=t[e.getDomDataKey()];return s?s[i]:void 0}function po(e,t,i,s){const o=e.getDomDataKey();let n=t[o];it(n)&&(n={},t[o]=n),n[i]=s}function ln(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function zv(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||yt(e,"print"))}function Ki(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function bl(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function Wv(e){return e.get("grandTotalRow")}function B2(e){return e.get("groupHideOpenParents")?!0:e.get("groupDisplayType")==="multipleColumns"}function G2(e){return B2(e)&&e.get("groupHideColumnsUntilExpanded")&&st(e)}function jv(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function _v(e,t,i){return!!t.group&&!t.footer&&jv(e,i)}function wn(e){const t=e.getCallback("getRowId");return t===void 0?t:i=>{let s=t(i);return typeof s!="string"&&(sc(()=>$(25,{id:s}),"getRowIdString"),s=String(s)),s}}function V2(e,t){const i=e.get("groupHideParentOfSingleChild");return!!(i===!0||i==="leafGroupsOnly"&&t.leafGroup||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")&&t.leafGroup)}function z2(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}function cn(e){return e?.checkboxes??!0}function Qa(e){return e?.mode==="multiRow"&&(e.headerCheckbox??!0)}function xl(e){if(typeof e=="object")return e.checkboxLocation??"selectionColumn"}function ld(e){return e?.hideDisabledCheckboxes??!1}function W2(e){return typeof e.get("rowSelection")!="string"}function Fs(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function dn(e){const t=e.get("cellSelection")??!1;return(typeof t=="object"&&t.enableColumnSelection)??!1}function Uv(e){const t=e.get("rowSelection")??"single";if(typeof t=="string"){const i=e.get("suppressRowClickSelection"),s=e.get("suppressRowDeselection");return i&&s?!1:i?"enableDeselection":s?"enableSelection":!0}return t.mode==="singleRow"||t.mode==="multiRow"?t.enableClickSelection??!1:!1}function j2(e){const t=Uv(e);return t===!0||t==="enableSelection"}function _2(e){const t=Uv(e);return t===!0||t==="enableDeselection"}function wu(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("isRowSelectable"):t?.isRowSelectable}function yl(e){const t="beanName"in e&&e.beanName==="gos"?e.get("rowSelection"):e.rowSelection;if(typeof t=="string")switch(t){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(t?.mode){case"multiRow":case"singleRow":return t.mode;default:return}}function Sl(e){return yl(e)==="multiRow"}function U2(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??!1}function Rl(e){const t=e.get("rowSelection");if(typeof t=="string"){const i=e.get("groupSelectsChildren"),s=e.get("groupSelectsFiltered");return i&&s?"filteredDescendants":i?"descendants":"self"}return t?.mode==="multiRow"?t.groupSelects:void 0}function $v(e,t=!0){const i=e.get("rowSelection");return typeof i!="object"?t?"all":void 0:i.mode==="multiRow"?i.selectAll:"all"}function $2(e){const t=e.get("rowSelection");return typeof t=="string"?!1:t?.mode==="multiRow"?t.ctrlASelectsRows??!1:!1}function Mr(e){const t=Rl(e);return t==="descendants"||t==="filteredDescendants"}function kg(e){const t=e.get("rowSelection");return typeof t=="object"&&t.masterSelects||"self"}function q2(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function zt(e){return e.get("columnMenu")==="legacy"}function K2(e){return!zt(e)}function Y2(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function Z2(e,t,i){typeof e!="object"&&(e={});const s={...e};for(const o of i){const n=t[o];typeof n<"u"&&(s[o]=n)}return s}function X2(e,t){if(!e)return;const i={};let s=!1;for(const r of Object.keys(e))i[r]=e[r],s=!0;if(!s)return;const o={type:"gridOptionsChanged",options:i};t.dispatchEvent(o);const n={type:"componentStateChanged",...i};t.dispatchEvent(n)}function xe(e,t){return e.addCommon(t)}function Ja(e,t){return e[t]??e.gridOptions?.[t]??Rv(t)??Fv[t]}function Q2({gos:e},t){return t.button===2||t.ctrlKey&&e.get("allowContextMenuWithControlKey")}var J2={resizable:!0,sortable:!0},eR=0;function qv(){return eR++}function Es(e){return e instanceof Fo}var tR=["asc","desc",null],iR=[{type:"absolute",direction:"asc"},{type:"absolute",direction:"desc"},null],Fo=class extends B{constructor(e,t,i,s){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=i,this.primary=s,this.isColumn=!0,this.instanceId=qv(),this.autoHeaderHeight=null,this.sortDef=li(),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 lo,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=ur(i)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}initState(){const{colDef:e,beans:{sortSvc:t,pinnedCols:i,colFlex:s}}=this;t?.initCol(this);const o=e.hide;o!==void 0?this.visible=!o:this.visible=!e.initialHide,i?.initCol(this),s?.initCol(this)}setColDef(e,t,i){const s=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),s&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent("colDefChanged",i)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.initState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip(),this.initRowSpan(),this.addPivotListener()}initDotNotation(){const{gos:e,colDef:{field:t,tooltipField:i}}=this,s=e.get("suppressFieldDotNotation");this.fieldContainsDots=te(t)&&t.includes(".")&&!s,this.tooltipFieldContainsDots=te(i)&&i.includes(".")&&!s}initMinAndMaxWidths(){const e=this.colDef;this.minWidth=e.minWidth??this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??Number.MAX_SAFE_INTEGER}initTooltip(){this.beans.tooltipSvc?.initCol(this)}initRowSpan(){this.colDef.spanRows&&this.beans.rowSpanSvc?.register(this)}addPivotListener(){const e=this.beans.pivotColDefSvc,t=this.colDef.pivotValueColumn;!e||!t||this.addManagedListeners(t,{colDefChanged:i=>{const s=e.recreateColDef(this.colDef);this.setColDef(s,s,i.source)}})}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){const t=e.width??e.initialWidth??200;return Math.max(Math.min(t,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){return this.beans.showRowGroupCols?.isRowGroupDisplayed(this,e)??!1}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}__addEventListener(e,t){this.colEventSvc.addEventListener(e,t)}__removeEventListener(e,t){this.colEventSvc.removeEventListener(e,t)}addEventListener(e,t){this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.colEventSvc);const i=this.frameworkEventListenerService?.wrap(e,t)??t;this.colEventSvc.addEventListener(e,i)}removeEventListener(e,t){const i=this.frameworkEventListenerService?.unwrap(e,t)??t;this.colEventSvc.removeEventListener(e,i)}createColumnFunctionCallbackParams(e){return xe(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]??J2[e]}isColumnFunc(e,t){if(typeof t=="boolean")return t;if(typeof t=="function"){const i=this.createColumnFunctionCallbackParams(e);return t(i)}return!1}createColumnEvent(e,t){return xe(this.gos,{type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sortDef.direction}getSortDef(){return this.sortDef.direction?this.sortDef:null}getColDefAllowedSortTypes(){const e=[],{sort:t,initialSort:i}=this.colDef,s=t===null?t:es(t?.type),o=i===null?i:es(i?.type);return s&&e.push(s),o&&e.push(o),e}getSortingOrder(){const e=this.getColDefAllowedSortTypes().includes("absolute")?iR:tR;return(this.colDef.sortingOrder??this.gos.get("sortingOrder")??e).map(t=>li(t))}getAvailableSortTypes(){const e=this.getSortingOrder().reduce((t,i)=>(i.direction&&t.push(i.type),t),this.getColDefAllowedSortTypes());return new Set(e)}get wasSortExplicitlyRemoved(){return this._wasSortExplicitlyRemoved}setSortDef(e,t=!1){t||(this._wasSortExplicitlyRemoved=!e.direction),this.sortDef=e}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.getSort()==="asc"}isSortDescending(){return this.getSort()==="desc"}isSortNone(){return it(this.getSort())}isSorting(){return te(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 $(261),!!this.beans.colHover?.isHovered(this)}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.dispatchColEvent("firstRightPinnedChanged",t))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.dispatchColEvent("lastLeftPinnedChanged",t))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return this.pinned==="left"||this.pinned==="right"}isPinnedLeft(){return this.pinned==="left"}isPinnedRight(){return this.pinned==="right"}getPinned(){return this.pinned}setVisible(e,t){const i=e===!0;this.visible!==i&&(this.visible=i,this.dispatchColEvent("visibleChanged",t)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getFirstRealParent(){let e=this.getOriginalParent();for(;e?.isPadding();)e=e.getOriginalParent();return e}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e?.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let i=!0;for(;e;){if(!e.isPadding()){i=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:i}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return xe(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(it(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),i=this.colDef.colSpan(t);return Math.max(i,1)}getRowSpan(e){if(it(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),i=this.colDef.rowSpan(t);return Math.max(i,1)}setActualWidth(e,t,i=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,this.flex!=null&&t!=="flex"&&t!=="gridInitializing"&&(this.flex=null),i||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.dispatchColEvent("widthChanged",e)}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}isAllowFormula(){return this.colDef.allowFormula===!0}dispatchColEvent(e,t,i){const s=this.createColumnEvent(e,t);i&&Mt(s,i),this.colEventSvc.dispatchEvent(s)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function li(e){return un(e)?{direction:e.direction,type:e.type}:{direction:oc(e),type:es(e)}}function ys(e){return e==="asc"||e==="desc"||e===null}function Dh(e){return e==="default"||e==="absolute"}function un(e){if(!e||typeof e!="object")return!1;const t=e;return Dh(t.type)&&ys(t.direction)}function el(e,t){return e?t?e.type===t.type&&e.direction===t.direction:e?e.direction===null:!0:t?t.direction===null:!0}function oc(e){return ys(e)?e:null}function es(e){return Dh(e)?e:"default"}function sR(e,t,i){const o=i?.()??t.sortSvc.getDisplaySortForColumn(e),n=es(o?.type),r=oc(o?.direction),a=e.getAvailableSortTypes(),l=a.has("default"),c=a.has("absolute");return{isDefaultSortAllowed:l,isAbsoluteSortAllowed:c,isAbsoluteSort:n==="absolute",isDefaultSort:n==="default",isAscending:r==="asc",isDescending:r==="desc",direction:r}}function Dt(e){return e instanceof tl}var tl=class extends B{constructor(e,t,i,s){super(),this.colGroupDef=e,this.groupId=t,this.padding=i,this.level=s,this.isColumn=!1,this.expandable=!1,this.instanceId=qv(),this.expandableListenerRemoveCallback=null,this.expanded=!!e?.openByDefault}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return this.children?this.children.some(e=>e.isVisible()):!1}isPadding(){return this.padding}setExpanded(e){this.expanded=e===void 0?!1:e,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}forEachLeafColumn(e){if(this.children)for(const t of this.children)Es(t)?e(t):Dt(t)&&t.forEachLeafColumn(e)}addLeafColumns(e){if(this.children)for(const t of this.children)Es(t)?e.push(t):Dt(t)&&t.addLeafColumns(e)}getColumnGroupShow(){const e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const e=this.onColumnVisibilityChanged.bind(this);for(const t of this.getLeafColumns())t.__addEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=()=>{for(const t of this.getLeafColumns())t.__removeEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,i=!1;const s=this.findChildrenRemovingPadding();for(let n=0,r=s.length;n<r;n++){const a=s[n];if(!a.isVisible())continue;const l=a.getColumnGroupShow();l==="open"?(e=!0,i=!0):l==="closed"?(t=!0,i=!0):(e=!0,t=!0)}const o=e&&t&&i;this.expandable!==o&&(this.expandable=o,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){const e=[],t=i=>{for(const s of i)Dt(s)&&s.isPadding()?t(s.children):e.push(s)};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},oR={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function Ig(e,t,i){const s={},o=e.gos;return Object.assign(s,o.get("defaultColGroupDef")),Object.assign(s,t),o.validateColDef(s,i),s}var nR=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=hu(e);let i=0;for(;;){let s=e??t;if(s?i!==0&&(s+="_"+i):s=i,!this.existingKeys[s]){const o=String(s);return e&&i>0&&$(273,{providedId:e,usedId:o}),this.existingKeys[o]=!0,o}i++}}},rR=(e,t)=>{Dt(e)&&e.setupExpandable(),e.originalParent=t};function aR(e,t=null,i,s,o){const n=new nR,{existingCols:r,existingGroups:a,existingColKeys:l}=lR(s);n.addExistingKeys(l);const c=Kv(e,t,0,i,r,n,a,o),{colGroupSvc:d}=e,u=d?.findMaxDepth(c,0)??0,h=d?d.balanceColumnTree(c,0,u,n):c;return Zi(null,h,rR),{columnTree:h,treeDepth:u}}function lR(e){const t=[],i=[],s=[];return e&&Zi(null,e,o=>{if(Dt(o)){const n=o;i.push(n)}else{const n=o;s.push(n.getId()),t.push(n)}}),{existingCols:t,existingGroups:i,existingColKeys:s}}function Kv(e,t,i,s,o,n,r,a){if(!t)return[];const{colGroupSvc:l}=e,c=new Array(t.length);for(let d=0;d<c.length;d++){const u=t[d];l&&gR(u)?c[d]=l.createProvidedColumnGroup(s,u,i,o,n,r,a):c[d]=cR(e,s,u,o,n,a)}return c}function cR(e,t,i,s,o,n){const r=uR(i,s);r&&s?.splice(r.idx,1);let a=r?.column;if(a){const l=bu(e,i,a.getColId());a.setColDef(l,i,n),dR(e,a,l,n)}else{const l=o.getUniqueKey(i.colId,i.field),c=bu(e,i,l);a=new Fo(c,i,l,t),e.context.createBean(a)}return e.dataTypeSvc?.addColumnListeners(a),a}function Yv(e,t,i,s,o,n,r,a){const{sortSvc:l,pinnedCols:c,colFlex:d}=e;i!==void 0&&t.setVisible(!i,a),l&&(l.updateColSort(t,s,a),o!==void 0&&l.setColSortIndex(t,o)),n!==void 0&&c?.setColPinned(t,n),r!==void 0&&d?.setColFlex(t,r)}function dR(e,t,i,s){Yv(e,t,i.hide,i.sort,i.sortIndex,i.pinned,i.flex,s);const o=t.getFlex();if(!(o!=null&&o>0))if(i.width!=null)t.setActualWidth(i.width,s);else{const n=t.getActualWidth();t.setActualWidth(n,s)}}function uR(e,t){if(t)for(let i=0;i<t.length;i++){const s=t[i].getUserProvidedColDef();if(!s)continue;if(e.colId!=null){if(t[i].getId()===e.colId)return{idx:i,column:t[i]};continue}if(e.field!=null){if(s.field===e.field)return{idx:i,column:t[i]};continue}if(s===e)return{idx:i,column:t[i]}}}function bu(e,t,i,s){const{gos:o,dataTypeSvc:n}=e,r={},a=o.get("defaultColDef");Mt(r,a,!1,!0);const l=hR(e,r,t,i);l&&pR(e,l,r);const c=r.cellDataType;Mt(r,t,!1,!0),c!==void 0&&(r.cellDataType=c);const d=o.get("autoGroupColumnDef"),u=Ki(o);return t.rowGroup&&d&&u&&Mt(r,{sort:d.sort,initialSort:d.initialSort},!1,!0),n?.postProcess(r),n?.validateColDef(r,t,a,i),o.validateColDef(r,i,s),r}function hR(e,t,i,s){const o=e.dataTypeSvc?.updateColDefAndGetColumnType(t,i,s),n=i.type??o??t.type;return t.type=n,n?El(n):void 0}function pR(e,t,i){if(!t.length)return;const s=Object.assign({},oR),o=e.gos.get("columnTypes")||{};for(const n of Object.keys(o)){const r=o[n];n in s?$(34,{key:n}):(r.type&&$(35),s[n]=r)}for(const n of t){const r=s[n.trim()];r?Mt(i,r,!1,!0):$(36,{t:n})}}function gR(e){return e.children!==void 0}function Zi(e,t,i){if(t)for(let s=0;s<t.length;s++){const o=t[s];Dt(o)&&Zi(o,o.getChildren(),i),i(o,e)}}var Cs="ag-Grid-AutoColumn",Ph="ag-Grid-SelectionColumn",Th="ag-Grid-RowNumbersColumn";function Zv(e){const t=[],i=s=>{for(let o=0;o<s.length;o++){const n=s[o];Es(n)?t.push(n):Dt(n)&&i(n.getChildren())}};return i(e),t}function qi(e){return e.reduce((t,i)=>t+i.getActualWidth(),0)}function Fl(e,t,i){const s={};if(!t)return;Zi(null,t,n=>{s[n.getInstanceId()]=n}),i&&Zi(null,i,n=>{s[n.getInstanceId()]=null});const o=Object.values(s).filter(n=>n!=null);e.context.destroyBeans(o)}function kh(e){return e.getId().startsWith(Cs)}function As(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(Ph)??!1}function At(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(Th)??!1}function fR(e){return As(e)||At(e)}function El(e){let t=[];return e instanceof Array?t=e:typeof e=="string"&&(t=e.split(",")),t}function mR(e,t){return Ms(e,t,(i,s)=>i.getColId()===s.getColId())}function vR(e){e.map={};for(const t of e.list)e.map[t.getId()]=t}function hn(e){return e==="optionsUpdated"?"gridOptionsChanged":e}function fr(e,t){return e===t||e.colId==t||e.getColDef()===t}var CR=(e,t)=>(i,s)=>{const o={value1:void 0,value2:void 0};let n=!1;return e&&(e[i]!==void 0&&(o.value1=e[i],n=!0),te(s)&&e[s]!==void 0&&(o.value2=e[s],n=!0)),!n&&t&&(t[i]!==void 0&&(o.value1=t[i]),te(s)&&t[s]!==void 0&&(o.value2=t[s])),o};function wR(e,t){const i={...e,sort:void 0,colId:t},s=Xv(e);return s&&(i.sort=s.direction,i.sortType=s.type),i}function Xv(e){const{sort:t,initialSort:i}=e,s=un(t)||ys(t),o=un(i)||ys(i);return s?li(t):o?li(i):null}function Qv(e,t){return e+"_"+t}function rt(e){return e instanceof Ar}var Ar=class extends B{constructor(e,t,i,s){super(),this.providedColumnGroup=e,this.groupId=t,this.partId=i,this.pinned=s,this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null,this.colIdSanitised=ur(this.getUniqueId())}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}getUniqueId(){return Qv(this.groupId,this.partId)}isEmptyGroup(){return this.displayedChildren.length===0}isMoving(){const e=this.getProvidedColumnGroup().getLeafColumns();return!e||e.length===0?!1:e.every(t=>t.isMoving())}checkLeft(){for(const e of this.displayedChildren)rt(e)&&e.checkLeft();if(this.displayedChildren.length>0)if(this.gos.get("enableRtl")){const t=$e(this.displayedChildren).getLeft();this.setLeft(t)}else{const e=this.displayedChildren[0].getLeft();this.setLeft(e)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(e){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){let e=0;for(const t of this.displayedChildren??[])e+=t.getActualWidth();return e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;for(const t of this.displayedChildren)t.isResizable()&&(e=!0);return e}getMinWidth(){let e=0;for(const t of this.displayedChildren)e+=t.getMinWidth();return e}addChild(e){this.children||(this.children=[]),this.children.push(e)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){const e=[];return this.addDisplayedLeafColumns(e),e}getDefinition(){return this.providedColumnGroup.getColGroupDef()}getColGroupDef(){return this.providedColumnGroup.getColGroupDef()}isPadding(){return this.providedColumnGroup.isPadding()}isExpandable(){return this.providedColumnGroup.isExpandable()}isExpanded(){return this.providedColumnGroup.isExpanded()}setExpanded(e){this.providedColumnGroup.setExpanded(e)}isAutoHeaderHeight(){return!!this.getColGroupDef()?.autoHeaderHeight}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}addDisplayedLeafColumns(e){for(const t of this.displayedChildren??[])Es(t)?e.push(t):rt(t)&&t.addDisplayedLeafColumns(e)}addLeafColumns(e){for(const t of this.children??[])Es(t)?e.push(t):rt(t)&&t.addLeafColumns(e)}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){const e=this.getParent();return!this.isPadding()||!e?.isPadding()?0:1+e.getPaddingLevel()}calculateDisplayedColumns(){this.displayedChildren=[];let e=this;for(;e?.isPadding();)e=e.getParent();if(!(e?e.getProvidedColumnGroup().isExpandable():!1)){this.displayedChildren=this.children,this.dispatchLocalEvent({type:"displayedChildrenChanged"});return}for(const i of this.children??[]){if(rt(i)&&!i.displayedChildren?.length)continue;switch(i.getColumnGroupShow()){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(i);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(i);break;default:this.displayedChildren.push(i);break}}this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},A={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"},bR=65,xR=67,yR=86,SR=68,RR=90,FR=89;function Jv(e){const{keyCode:t}=e;let i;switch(t){case bR:i=A.A;break;case xR:i=A.C;break;case yR:i=A.V;break;case SR:i=A.D;break;case RR:i=A.Z;break;case FR:i=A.Y;break;default:i=e.code}return i}function ER(e,t){return new Ne(i=>{i(window.setInterval(e,t))})}var Ne=class rr{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(i=>this.onDone(i),i=>this.onReject(i))}static all(t){return t.length?new rr(i=>{let s=t.length;const o=new Array(s);t.forEach((n,r)=>{n.then(a=>{o[r]=a,s--,s===0&&i(o)})})}):rr.resolve()}static resolve(t=null){return new rr(i=>i(t))}then(t){return new rr(i=>{this.status===1?i(t(this.resolution)):this.waiters.push(s=>i(t(s)))})}onDone(t){this.status=1,this.resolution=t;for(const i of this.waiters)i(t)}onReject(t){}},DR=class extends Ht{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 i={capturePointer:!0,dragSource:e,eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:s=>this.onDragStart(e,s),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push(i),this.beans.dragSvc.addDragSource(i)}setDragImageCompIcon(e,t=!1){const i=this.dragImageComp;i&&(t||this.dragImageLastIcon!==e)&&(this.dragImageLastIcon=e,i.setIcon(e,t))}removeDragSource(e){const{dragSourceAndParamsList:t,beans:i}=this;for(let s=0,o=t.length;s<o;s++)if(t[s].dragSource===e){const n=t[s];i.dragSvc?.removeDragSource(n),t.splice(s,1);break}}destroy(){const{dragSourceAndParamsList:e,dropTargets:t,beans:i}=this,s=i.dragSvc;for(const o of e)s?.removeDragSource(o);e.length=0,t.length=0,this.externalDropZoneCount=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){const e=this.lastMouseEvent;e&&this.onDragging(e,!0)}onDragStart(e,t){this.lastMouseEvent=t,this.dragSource=e,this.dragItem=e.getDragItem();const i=e.eElement.getBoundingClientRect();this.dragInitialSourcePointerOffsetX=t.clientX-i.left,this.dragInitialSourcePointerOffsetY=t.clientY-i.top,e.onDragStarted?.(),this.createAndUpdateDragImageComp(e)}onDragStop(e){const{dragSource:t,lastDropTarget:i}=this;if(t?.onDragStopped?.(),i){const s=this.dropTargetEvent(i,e,!1);i.onDragStop?.(s)}this.clearDragAndDropProperties()}onDragCancel(){const{dragSource:e,lastDropTarget:t,lastMouseEvent:i}=this;if(e?.onDragCancelled?.(),t&&i){const s=this.dropTargetEvent(t,i,!1);t.onDragCancel?.(s)}this.clearDragAndDropProperties()}onDragging(e,t=!1){this.positionDragImageComp(e);const i=this.findCurrentDropTarget(e),{lastDropTarget:s,dragSource:o,dragItem:n}=this;let r=!1;if(i!==s){if(r=!0,s){const a=this.dropTargetEvent(s,e,t);s.onDragLeave?.(a)}if(s!==null&&!i?this.handleExit(o,n):s===null&&i&&this.handleEnter(o,n),i){const a=this.dropTargetEvent(i,e,t);i.onDragEnter?.(a)}this.lastDropTarget=i}else if(i){const a=this.dropTargetEvent(i,e,t);i.onDragging?.(a),a?.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(),i=e.getSecondaryContainers?.(),s=i?.length;if(!s)return[[t]];const o=new Array(s+1);o[0]=[t];for(let n=0;n<s;++n)o[n+1]=i[n];return o}isMouseOnDropTarget(e,t){const i=this.getAllContainersFromDropTarget(t);let s=!1;const o=(a,l)=>{for(const c of l){const{width:d,height:u,left:h,right:p,top:m,bottom:v}=c.getBoundingClientRect();if(d===0||u===0)return!1;const C=a.clientX>=h&&a.clientX<p,w=a.clientY>=m&&a.clientY<v;if(!C||!w)return!1}return!0};for(const a of i)if(o(e,a)){s=!0;break}const{eElement:n,type:r}=this.dragSource;return t.targetContainsSource&&!t.getContainer().contains(n)?!1:s&&t.isInterestedIn(r,n)}findCurrentDropTarget(e){const t=[],i=this.dropTargets;for(let r=0,a=i.length;r<a;++r){const l=i[r];this.isMouseOnDropTarget(e,l)&&t.push(l)}const s=t.length;if(s===0)return null;if(s===1)return t[0];const n=fi(this.beans).elementsFromPoint(e.clientX,e.clientY);for(let r=0,a=n.length;r<a;++r){const l=n[r];for(let c=0,d=t.length;c<d;c++){const u=t[c],h=this.getAllContainersFromDropTarget(u);let p=!1;for(let m=0,v=h.length;m<v&&!p;m++){const C=h[m];for(let w=0,b=C.length;w<b;w++)if(C[w]===l){p=!0;break}}if(p)return u}}return null}addDropTarget(e){this.dropTargets.push(e),e.external&&this.externalDropZoneCount++}removeDropTarget(e){const t=e.getContainer(),i=this.dropTargets;let s=0;for(let o=0,n=i.length;o<n;++o){const r=i[o];if(r.getContainer()===t){r.external&&--this.externalDropZoneCount;continue}s!==o&&(i[s]=r),++s}i.length=s}hasExternalDropZones(){return this.externalDropZoneCount>0}findExternalZone(e){const t=this.dropTargets;for(let i=0,s=t.length;i<s;++i){const o=t[i];if(o.external&&o.getContainer()===e)return o}return null}dropTargetEvent(e,t,i){const{dragSource:s,dragItem:o,lastDraggingEvent:n,lastMouseEvent:r,dragInitialSourcePointerOffsetX:a,dragInitialSourcePointerOffsetY:l}=this,c=e.getContainer(),d=c.getBoundingClientRect(),{clientX:u,clientY:h}=t,p=u-(r?.clientX||0),m=h-(r?.clientY||0),v=this.createEvent({event:t,x:u-d.left,y:h-d.top,vDirection:m>0?"down":m<0?"up":null,hDirection:p<0?"left":p>0?"right":null,initialSourcePointerOffsetX:a,initialSourcePointerOffsetY:l,dragSource:s,fromNudge:i,dragItem:o,dropZoneTarget:c,dropTarget:n?.dropTarget??null,changed:!!n?.changed});return this.lastDraggingEvent=v,v}positionDragImageComp(e){const t=this.dragImageComp?.getGui();t&&l2(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(i=>{const s=this.lastMouseEvent;if(t!==this.dragImageCompPromise||!s||!this.isAlive()){this.destroyBean(i);return}this.dragImageCompPromise=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0;const o=this.dragImageComp;o!==i&&(this.dragImageComp=i,this.removeDragImageComp(o)),i&&(this.appendDragImageComp(i),this.updateDragImageComp(),this.positionDragImageComp(s))})}appendDragImageComp(e){const t=e.getGui(),i=t.style;i.position="absolute",i.zIndex="9999",this.beans.dragSvc?.hasPointerCapture()&&(i.pointerEvents="none"),this.gos.setInstanceDomData(t),this.beans.environment.applyThemeClasses(t),i.top="20px",i.left="20px";const s=fh(this.beans);s?s.appendChild(t):this.warnNoBody()}updateDragImageComp(){const{dragImageComp:e,dragSource:t,lastDropTarget:i,lastDraggingEvent:s,dragImageLastLabel:o}=this;if(!e)return;this.setDragImageCompIcon(i?.getIconName?.(s)??null);let n=t?.dragItemName;typeof n=="function"&&(n=n(s)),n||(n=""),o!==n&&(this.dragImageLastLabel=n,e.setLabel(n))}};function eC(e){return typeof e=="object"&&!!e.component}function PR(e){return e?e.prototype&&"getGui"in e.prototype:!1}function tC(e,t,i,s){const{name:o}=i;let n,r,a,l,c,d;if(t){const u=t,h=u[o+"Selector"],p=h?h(s):null,m=v=>{typeof v=="string"?n=v:v!=null&&v!==!0&&(e.isFrameworkComponent(v)?a=v:r=v)};p?(m(p.component),l=p.params,c=p.popup,d=p.popupPosition):m(u[o])}return{compName:n,jsComp:r,fwComp:a,paramsFromSelector:l,popupFromSelector:c,popupPositionFromSelector:d}}var TR=class extends B{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,i,s=!1){return this.getCompDetails(this.gridOptions,e,t,i,s)}getCompDetails(e,t,i,s,o=!1){const{name:n,cellRenderer:r}=t;let{compName:a,jsComp:l,fwComp:c,paramsFromSelector:d,popupFromSelector:u,popupPositionFromSelector:h}=tC(this.beans.frameworkOverrides,e,t,s),p,m;const v=x=>{const y=this.registry.getUserComponent(n,x);y&&(l=y.componentFromFramework?void 0:y.component,c=y.componentFromFramework?y.component:void 0,p=y.params,m=y.processParams)};if(a!=null&&v(a),l==null&&c==null&&i!=null&&v(i),l&&r&&!PR(l)&&(l=this.agCompUtils?.adaptFunction(t,l)),!l&&!c){const{validation:x}=this.beans;o&&(a!==i||!i)?a?x?.isProvidedUserComp(a)||We(50,{compName:a}):i?x||We(260,{...this.gos.getModuleErrorParams(),propName:n,compName:i}):We(216,{name:n}):i&&!x&&We(146,{comp:i});return}const C=this.mergeParams(e,t,s,d,p,m),w=l==null,b=l??c;return{componentFromFramework:w,componentClass:b,params:C,type:t,popupFromSelector:u,popupPositionFromSelector:h,newAgStackInstance:()=>this.newAgStackInstance(b,w,C,t)}}newAgStackInstance(e,t,i,s){const o=!t;let n;o?n=new e:n=this.frameworkCompWrapper.wrap(e,s.mandatoryMethods,s.optionalMethods,s),this.createBean(n);const r=n.init?.(i);return r==null?Ne.resolve(n):r.then(()=>n)}mergeParams(e,t,i,s=null,o,n){const r={...i,...o},l=e?.[t.name+"Params"];if(typeof l=="function"){const c=l(i);Mt(r,c)}else typeof l=="object"&&Mt(r,l);return Mt(r,s),n?n(r):r}},kR={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},IR={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},MR={name:"headerComponent",optionalMethods:["refresh"]},AR={name:"innerHeaderComponent"},LR={name:"innerHeaderGroupComponent"},OR={name:"headerGroupComponent"},NR={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},HR={name:"loadingCellRenderer",cellRenderer:!0},BR={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},GR={name:"tooltipComponent"},Ih={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},VR={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},zR={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},WR={name:"loadingCellRenderer",cellRenderer:!0},jR={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},_R={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function UR(e,t){return e.getCompDetailsFromGridOptions(IR,"agDragAndDropImage",t,!0)}function $R(e,t,i){return e.getCompDetails(t,MR,"agColumnHeader",i)}function qR(e,t,i){return e.getCompDetails(t,AR,void 0,i)}function KR(e,t){const i=t.columnGroup.getColGroupDef();return e.getCompDetails(i,OR,"agColumnGroupHeader",t)}function YR(e,t,i){return e.getCompDetails(t,LR,void 0,i)}function ZR(e,t){return e.getCompDetailsFromGridOptions(zR,void 0,t,!0)}function XR(e,t){return e.getCompDetailsFromGridOptions(WR,"agLoadingCellRenderer",t,!0)}function QR(e,t){return e.getCompDetailsFromGridOptions(jR,"agGroupRowRenderer",t,!0)}function JR(e,t){return e.getCompDetailsFromGridOptions(_R,"agDetailCellRenderer",t,!0)}function Mg(e,t,i){return e.getCompDetails(t,NR,void 0,i)}function Ag(e,t,i){return e.getCompDetails(t,HR,"agSkeletonCellRenderer",i,!0)}function iC(e,t,i){return e.getCompDetails(t,BR,"agCellEditor",i,!0)}function e3(e,t,i,s){const o=t.filter;return eC(o)&&(t={filter:o.component,filterParams:t.filterParams}),e.getCompDetails(t,Ih,s,i,!0)}function t3(e,t,i){return e.getCompDetails(t,kR,"agDateInput",i,!0)}function i3(e,t){return e.getCompDetails(t.colDef,GR,"agTooltipComponent",t,!0)}function s3(e,t,i,s){return e.getCompDetails(t,VR,s,i)}function sC(e,t){return tC(e,t,Ih)}function cd(e,t,i){return e.mergeParams(t,Ih,i)}var o3=class extends DR{createEvent(e){return xe(this.gos,e)}createDragImageComp(e){const{gos:t,beans:i}=this;return UR(i.userCompFactory,xe(t,{dragSource:e}))?.newAgStackInstance()}handleEnter(e,t){e?.onGridEnter?.(t)}handleExit(e,t){e?.onGridExit?.(t)}warnNoBody(){$(54)}isDropZoneWithinThisGrid(e){return this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody.contains(e.dropZoneTarget)}registerGridDropTarget(e,t){const i={getContainer:e,isInterestedIn:s=>s===1||s===0,getIconName:()=>"notAllowed"};this.addDropTarget(i),t.addDestroyFunc(()=>this.removeDropTarget(i))}};function oC(e){return!!e.operator}var nC="ag-resizer-wrapper",ds=(e,t)=>({tag:"div",ref:`${e}Resizer`,cls:`ag-resizer ag-resizer-${t}`}),n3={tag:"div",cls:nC,children:[ds("eTopLeft","topLeft"),ds("eTop","top"),ds("eTopRight","topRight"),ds("eRight","right"),ds("eBottomRight","bottomRight"),ds("eBottom","bottom"),ds("eBottomLeft","bottomLeft"),ds("eLeft","left")]},r3=class extends Ht{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:i}=this.offsetParent,s=i/2-this.getWidth()/2,o=t/2-this.getHeight()/2;this.offsetElement(s,o,e)}initialisePosition(e){if(this.positioned)return;const{centered:t,forcePopupParentAsOffsetParent:i,minWidth:s,width:o,minHeight:n,height:r,x:a,y:l}=this.config;this.offsetParent||this.setOffsetParent();let c=0,d=0;const u=yi(this.element);if(u){const h=this.findBoundaryElement(),p=window.getComputedStyle(h);if(p.minWidth!=null){const m=h.offsetWidth-this.element.offsetWidth;d=Number.parseInt(p.minWidth,10)-m}if(p.minHeight!=null){const m=h.offsetHeight-this.element.offsetHeight;c=Number.parseInt(p.minHeight,10)-m}}if(this.minHeight=n||c,this.minWidth=s||d,o&&this.setWidth(o),r&&this.setHeight(r),(!o||!r)&&this.refreshSize(),t)this.center(e);else if(a||l)this.offsetElement(a,l,e);else if(u&&i){let h=this.boundaryEl,p=!0;if(h||(h=this.findBoundaryElement(),p=!1),h){const m=Number.parseFloat(h.style.top),v=Number.parseFloat(h.style.left);p?this.offsetElement(Number.isNaN(v)?0:v,Number.isNaN(m)?0:m,e):this.setPosition(v,m)}}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 i=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragSvc?.addDragSource(i),this.moveElementDragListener=i):(this.dragSvc?.removeDragSource(i),this.moveElementDragListener=void 0)}setResizable(e){if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),typeof e=="boolean"){if(e===!1)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}for(const t of Object.keys(e)){const i=!!e[t],s=this.getResizerElement(t),o={dragStartPixels:0,eElement:s,onDragStart:n=>this.onResizeStart(n,t),onDragging:this.onResize.bind(this),onDragStop:n=>this.onResizeEnd(n,t)};(i||!this.isAlive()&&!i)&&(i?(this.dragSvc?.addDragSource(o),this.resizeListeners.push(o),s.style.pointerEvents="all"):s.style.pointerEvents="none",this.resizable[t]=i)}}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";const{height:e,width:t}=this.lastSize;t!==-1&&(this.element.style.width=`${t}px`),e!==-1&&(this.element.style.height=`${e}px`)}getHeight(){return this.element.offsetHeight}setHeight(e){const{popup:t}=this.config,i=this.element;let s=!1;if(typeof e=="string"&&e.includes("%"))pr(i,e),e=mv(i),s=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const o=this.getAvailableHeight();o&&e>o&&(e=o)}this.getHeight()!==e&&(s?(i.style.maxHeight="unset",i.style.minHeight="unset"):t?pr(i,e):(i.style.height=`${e}px`,i.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:Number.parseFloat(e)))}getAvailableHeight(){const{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();const{clientHeight:i}=this.offsetParent;if(!i)return null;const s=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),n=e?this.position.y:s.top,r=e?0:o.top;let a=0;if(t){const c=this.element.parentElement;if(c){const{bottom:d}=c.getBoundingClientRect();a=d-s.bottom}}return i+r-n-a}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element,{popup:i}=this.config;let s=!1;if(typeof e=="string"&&e.includes("%"))Li(t,e),e=gl(t),s=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{clientWidth:o}=this.offsetParent,n=i?this.position.x:this.element.getBoundingClientRect().left;o&&e+n>o&&(e=o-n)}this.getWidth()!==e&&(s?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?Li(t,e):(t.style.width=`${e}px`,t.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:Number.parseFloat(e)))}offsetElement(e=0,t=0,i){const{forcePopupParentAsOffsetParent:s}=this.config,o=s?this.boundaryEl:this.element;o&&(this.popupSvc?.positionPopup({ePopup:o,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t}),postProcessCallback:i}),this.setPosition(Number.parseFloat(o.style.left),Number.parseFloat(o.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;const t=()=>{const i=this.getAvailableHeight();this.element.style.setProperty("max-height",`${i}px`)};e&&this.popupSvc?(this.resizeObserverSubscriber?.(),this.resizeObserverSubscriber=ss(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:i,isTop:s,anywhereWithin:o,topBuffer:n}=e,r=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y,l=this.shouldSkipX(t,!!i,!!o,r)?0:r,c=this.shouldSkipY(t,!!s,n,a)?0:a;return{movementX:l,movementY:c}}shouldSkipX(e,t,i,s){const o=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),r=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:o.left;let l=a<=0&&n.left>=e.clientX||n.right<=e.clientX&&n.right<=r.right;return l?!0:(t?l=s<0&&e.clientX>a+n.left||s>0&&e.clientX<a+n.left:i?l=s<0&&e.clientX>r.right||s>0&&e.clientX<a+n.left:l=s<0&&e.clientX>r.right||s>0&&e.clientX<r.right,l)}shouldSkipY(e,t,i=0,s){const o=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),r=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:o.top;let l=a<=0&&n.top>=e.clientY||n.bottom<=e.clientY&&n.bottom<=r.bottom;return l?!0:(t?l=s<0&&e.clientY>a+n.top+i||s>0&&e.clientY<a+n.top:l=s<0&&e.clientY>r.bottom||s>0&&e.clientY<r.bottom,l)}createResizeMap(){const e=t=>({element:this.element.querySelector(`[data-ref=${t}Resizer]`)});this.resizerMap={topLeft:e("eTopLeft"),top:e("eTop"),topRight:e("eTopRight"),right:e("eRight"),bottomRight:e("eBottomRight"),bottom:e("eBottom"),bottomLeft:e("eBottomLeft"),left:e("eLeft")}}addResizers(){if(this.resizersAdded)return;const e=this.element;e&&(e.appendChild(uo(n3)),this.createResizeMap(),this.resizersAdded=!0)}removeResizers(){this.resizerMap=void 0,this.element.querySelector(`.${nC}`)?.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:i,forcePopupParentAsOffsetParent:s}=this.config;!i&&!s&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)}getSiblings(){const t=this.element.parentElement;return t?Array.prototype.slice.call(t.children).filter(i=>!i.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,i=0;for(const s of e){const o=!!s.style.flex&&s.style.flex!=="0 0 auto";if(s===this.element)continue;let n=this.minHeight||0,r=this.minWidth||0;if(o){const a=window.getComputedStyle(s);a.minHeight&&(n=Number.parseInt(a.minHeight,10)),a.minWidth&&(r=Number.parseInt(a.minWidth,10))}else n=s.offsetHeight,r=s.offsetWidth;t+=n,i+=r}return{height:t,width:i}}applySizeToSiblings(e){let t=null;const i=this.getSiblings();if(i){for(let s=0;s<i.length;s++){const o=i[s];o!==t&&(e?o.style.height=`${o.offsetHeight}px`:o.style.width=`${o.offsetWidth}px`,o.style.flex="0 0 auto",o===this.element&&(t=i[s+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:i}=this.config,{isTop:s,isRight:o,isBottom:n,isLeft:r}=this.currentResizer,a=o||r,l=n||s,{movementX:c,movementY:d}=this.calculateMouseMovement({e,isLeft:r,isTop:s}),u=this.position.x,h=this.position.y;let p=0,m=0;if(a&&c){const v=r?-1:1,C=this.getWidth(),w=C+c*v;let b=!1;r&&(p=C-w,(u+p<=0||w<=this.minWidth)&&(b=!0,p=0)),b||this.setWidth(w)}if(l&&d){const v=s?-1:1,C=this.getHeight(),w=C+d*v;let b=!1;s?(m=C-w,(h+m<=0||w<=this.minHeight)&&(b=!0,m=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&C<w&&this.getMinSizeOfSiblings().height+w>this.element.parentElement.offsetHeight&&(b=!0),b||this.setHeight(w)}this.updateDragStartPosition(e.clientX,e.clientY),((t||i)&&p||m)&&this.offsetElement(u+p,h+m)}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:i}=this.position;let s;this.config.calculateTopBuffer&&(s=this.config.calculateTopBuffer());const{movementX:o,movementY:n}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:s});this.offsetElement(t+o,i+n),this.updateDragStartPosition(e.clientX,e.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent&&this.popupSvc?this.offsetParent=this.popupSvc.getPopupParent():this.offsetParent=this.element.offsetParent}findBoundaryElement(){let e=this.element;for(;e;){if(window.getComputedStyle(e).position!=="static")return e;e=e.parentElement}return this.element}clearResizeListeners(){for(;this.resizeListeners.length;){const e=this.resizeListeners.pop();this.dragSvc?.removeDragSource(e)}}destroy(){super.destroy(),this.moveElementDragListener&&this.dragSvc?.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}},a3=class extends r3{},de=null;function Lg(e){return typeof e?.getGui=="function"}var Wr=class{constructor(e){this.cssClassStates={},this.getGui=e}toggleCss(e,t){if(!e)return;if(e.includes(" ")){const s=(e||"").split(" ");if(s.length>1){for(const o of s)this.toggleCss(o,t);return}}this.cssClassStates[e]!==t&&e.length&&(this.getGui()?.classList.toggle(e,t),this.cssClassStates[e]=t)}},l3=0,In=class extends Ht{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=l3++,this.cssManager=new Wr(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(i=>[i.selector,i])),e&&this.setTemplate(e)}preConstruct(){this.wireTemplate(this.getGui()),this.addGlobalCss()}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute(bv):null}applyElementsToComponent(e,t,i,s=null){if(t===void 0&&(t=this.getDataRefAttribute(e)),t){const o=this[t];if(o===de)this[t]=s??e;else{const n=i?.[t];if(!this.suppressDataRefValidation&&!n)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${o}`)}}}createChildComponentsFromTags(e,t){const i=[];for(const s of e.childNodes??[])i.push(s);for(const s of i){if(!(s instanceof HTMLElement))continue;const o=this.createComponentFromElement(s,n=>{const r=n.getGui();if(r)for(const a of s.attributes??[])r.setAttribute(a.name,a.value)},t);if(o){if(o.addItems&&s.children.length){this.createChildComponentsFromTags(s,t);const n=Array.prototype.slice.call(s.children);o.addItems(n)}this.swapComponentForNode(o,e,s)}else s.childNodes&&this.createChildComponentsFromTags(s,t)}}createComponentFromElement(e,t,i){const s=e.nodeName,o=this.getDataRefAttribute(e),n=s.indexOf("AG-")===0,r=n?this.componentSelectors.get(s):null;let a=null;if(r){const l=i&&o?i[o]:void 0;a=new r.component(l),a.setParentComponent(this),this.createBean(a,null,t)}else if(n)throw new Error(`selector: ${s}`);return this.applyElementsToComponent(e,o,i,a),a}swapComponentForNode(e,t,i){const s=e.getGui();t.replaceChild(s,i),t.insertBefore(document.createComment(i.nodeName),s),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e,t){const i=t??this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui());for(const s of e)s.setAttribute("tabindex",i.toString())}setTemplate(e,t,i){let s;typeof e=="string"||e==null?s=wh(e):s=uo(e),this.setTemplateFromElement(s,t,i)}setTemplateFromElement(e,t,i,s=!1){if(this.eGui=e,this.suppressDataRefValidation=s,t)for(let o=0;o<t.length;o++){const n=t[o];this.componentSelectors.set(n.selector,n)}this.wireTemplate(e,i)}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 i=t;return e==null?null:(i||(i=this.eGui),xh(e)?{element:e,parent:i}:{element:e.getGui(),parent:i})}prependChild(e,t){const{element:i,parent:s}=this.getContainerAndElement(e,t)||{};!i||!s||s.prepend(i)}appendChild(e,t){const{element:i,parent:s}=this.getContainerAndElement(e,t)||{};!i||!s||s.appendChild(i)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:i}=t;QS(this.eGui,e,{skipAriaHidden:i})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:i}=t;Ke(this.eGui,e,{skipAriaHidden:i});const s={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(s)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(e,t,i){this.eGui.addEventListener(e,t,i),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===Og?(this.css=[e],this.addGlobalCss()):(this.css||(this.css=[]),this.css.push(e))}addGlobalCss(){if(Array.isArray(this.css)){const e="component-"+Object.getPrototypeOf(this)?.constructor?.name;for(const t of this.css??[])this.beans.environment.addGlobalCSS(t,e)}this.css=Og}},Og=Symbol(),ot=class extends In{},dd,ud,hd,pd,xu,yu,gd;function Ls(){return dd===void 0&&(dd=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),dd}function bn(){return ud===void 0&&(ud=/(firefox)/i.test(navigator.userAgent)),ud}function rC(){return hd===void 0&&(hd=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),hd}function so(){return pd===void 0&&(pd=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),pd}function Su(e){if(!e)return null;const t=e.tabIndex,i=e.getAttribute("tabIndex");return t===-1&&(i===null||i===""&&!bn())?null:t.toString()}function c3(){if(gd!==void 0)return gd;if(!document.body)return-1;let e=1e6;const t=bn()?6e6:1e9,i=document.createElement("div");for(document.body.appendChild(i);;){const s=e*2;if(i.style.height=s+"px",s>t||i.clientHeight!==s)break;e=s}return i.remove(),gd=e,e}function Mh(){return yu==null&&aC(),yu}function aC(){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 i=t.offsetWidth-t.clientWidth;i===0&&t.clientWidth===0&&(i=null),t.parentNode&&t.remove(),i!=null&&(yu=i,xu=i===0)}function lC(){return xu==null&&aC(),xu}var Ru=!1,Dl=0;function d3(e){Dl>0||(e.addEventListener("keydown",Pl),e.addEventListener("mousedown",Pl))}function u3(e){Dl>0||(e.removeEventListener("keydown",Pl),e.removeEventListener("mousedown",Pl))}function Pl(e){const t=Ru,i=e.type==="keydown";i&&(e.ctrlKey||e.metaKey||e.altKey)||t!==i&&(Ru=i)}function h3(e){const t=ft(e);return d3(t),Dl++,()=>{Dl--,u3(t)}}function cC(){return Ru}function oo(e,t,i=!1){const s=XS;let o=fv;t&&(o+=", "+t),i&&(o+=', [tabindex="-1"]');const n=Array.prototype.slice.apply(e.querySelectorAll(s)).filter(l=>yi(l)),r=Array.prototype.slice.apply(e.querySelectorAll(o));return r.length?((l,c)=>l.filter(d=>c.indexOf(d)===-1))(n,r):n}function go(e,t=!1,i=!1,s=!1){const o=oo(e,s?".ag-tab-guard":null,i),n=t?$e(o):o[0];return n?(n.focus({preventScroll:!0}),!0):!1}function Eo(e,t,i,s){const o=oo(t,i?':not([tabindex="-1"])':null),n=Je(e);let r;i?r=o.findIndex(l=>l.contains(n)):r=o.indexOf(n);const a=r+(s?-1:1);return a<0||a>=o.length?null:o[a]}function dC(e,t=5){let i=0;for(;e&&Su(e)===null&&++i<=t;)e=e.parentElement;return Su(e)===null?null:e}var p3="ag-focus-managed",uC=class extends Ht{constructor(e,t={isStopPropagation:()=>!1,stopPropagation:()=>{}},i={}){super(),this.eFocusable=e,this.stopPropagationCallbacks=t,this.callbacks=i,this.callbacks={shouldStopEventPropagation:()=>!1,onTabKeyDown:s=>{if(s.defaultPrevented)return;const o=Eo(this.beans,this.eFocusable,!1,s.shiftKey);o&&(o.focus(),s.preventDefault())},...i}}postConstruct(){const{eFocusable:e,callbacks:{onFocusIn:t,onFocusOut:i}}=this;e.classList.add(p3),this.addKeyDownListeners(e),t&&this.addManagedElementListeners(e,{focusin:t}),i&&this.addManagedElementListeners(e,{focusout:i})}addKeyDownListeners(e){this.addManagedElementListeners(e,{keydown:t=>{if(t.defaultPrevented||this.stopPropagationCallbacks.isStopPropagation(t))return;const{callbacks:i}=this;if(i.shouldStopEventPropagation(t)){this.stopPropagationCallbacks.stopPropagation(t);return}t.key===A.TAB?i.onTabKeyDown(t):i.handleKeyDown&&i.handleKeyDown(t)}})}},hC="__ag_Grid_Stop_Propagation";function fo(e){e[hC]=!0}function Xi(e){return e[hC]===!0}var Ah={isStopPropagation:Xi,stopPropagation:fo},jr=class extends uC{constructor(e,t){super(e,Ah,t)}},g3={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",bigintFilter:"BigInt Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd",filterSummaryInactive:"is (All)",filterSummaryContains:"contains",filterSummaryNotContains:"does not contain",filterSummaryTextEquals:"equals",filterSummaryTextNotEqual:"does not equal",filterSummaryStartsWith:"begins with",filterSummaryEndsWith:"ends with",filterSummaryBlank:"is blank",filterSummaryNotBlank:"is not blank",filterSummaryEquals:"=",filterSummaryNotEqual:"!=",filterSummaryGreaterThan:">",filterSummaryGreaterThanOrEqual:">=",filterSummaryLessThan:"<",filterSummaryLessThanOrEqual:"<=",filterSummaryInRange:"between",yesterday:"Yesterday",today:"Today",tomorrow:"Tomorrow",last7Days:"Last 7 Days",lastWeek:"Last Week",thisWeek:"This Week",nextWeek:"Next Week",last30Days:"Last 30 Days",lastMonth:"Last Month",thisMonth:"This Month",nextMonth:"Next Month",last90Days:"Last 90 Days",lastQuarter:"Last Quarter",thisQuarter:"This Quarter",nextQuarter:"Next Quarter",lastYear:"Last Year",thisYear:"This Year",yearToDate:"Year To Date",nextYear:"Next Year",last6Months:"Last 6 Months",last12Months:"Last 12 Months",last24Months:"Last 24 Months",filterSummaryInRangeValues:e=>`(${e[0]}, ${e[1]})`,filterSummaryTextQuote:e=>`"${e[0]}"`,minDateValidation:e=>`Date must be after ${e[0]}`,maxDateValidation:e=>`Date must be before ${e[0]}`,strictMinValueValidation:e=>`Must be greater than ${e[0]}`,strictMaxValueValidation:e=>`Must be less than ${e[0]}`};function vi(e,t,i){return d2(e,g3,t,i)}function Lh(e,t){const{debounceMs:i}=e;return nc(e)?(i!=null&&$(71),0):i??t}function nc(e){return(e.buttons?.indexOf("apply")??-1)>=0}function pC(e,t,i,s){let o=vi(e,i);if(typeof t=="function"){const n=vi(e,s);o=t({filterOptionKey:s,filterOption:n,placeholder:o})}else typeof t=="string"&&(o=t);return o}var f3=class extends ot{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 jr(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=this.createBean(new a3(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,i=this.params;this.params=t;const{source:s,state:o,additionalEventAttributes:n}=t;s==="colDef"&&this.updateParams(t,i);const r=this.state;this.state=o;const a=n?.fromAction;return(a&&a!=="apply"||o.model!==r.model||!this.areStatesEqual(o.state,r.state))&&this.setModelIntoUi(o.model),!0}setParams(e){this.params=e,this.state=e.state,this.commonUpdateParams(e)}updateParams(e,t){this.commonUpdateParams(e,t)}commonUpdateParams(e,t){this.applyActive=nc(e),this.setupApplyDebounced()}doesFilterPass(e){$(283);const{getHandler:t,model:i,column:s}=this.params;return t().doesFilterPass({...e,model:i,handlerParams:this.beans.colFilter.getHandlerParams(s)})}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return $(284),this.params.model!=null}setupApplyDebounced(){const e=Lh(this.params,this.defaultDebounceMs),t=ct(this,this.checkApplyDebounce.bind(this),e);this.applyDebounced=()=>{this.debouncePending=!0,t()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.doApplyModel())}getModel(){return $(285),this.params.model}setModel(e){$(286);const{beans:t,params:i}=this;return t.colFilter.setModelForColumnLegacy(i.column,e)}applyModel(e="api"){return this.doApplyModel()}canApply(e){return!0}doApplyModel(e){const{params:t,state:{valid:i=!0,model:s}}=this;if(!i)return!1;const o=!this.areModelsEqual(t.model,s);return o&&t.onAction("apply",e),o}onNewRowsLoaded(){}onUiChanged(e,t=!1){this.updateUiVisibility();const i=this.getModelFromUi(),s={model:i,state:this.getState(),valid:this.canApply(i)};this.state=s;const{params:o,gos:n,eventSvc:r,applyActive:a}=this;o.onStateChange(s),o.onUiChange(this.getUiChangeEventParams()),n.get("enableFilterHandlers")||r.dispatchEvent({type:"filterModified",column:o.column,filterInstance:this}),s.valid&&(e??(e=a?void 0:"debounce"),e==="immediately"?this.doApplyModel({afterFloatingFilter:t,afterDataChange:!1}):e==="debounce"&&this.applyDebounced())}getState(){}getUiChangeEventParams(){}afterGuiAttached(e){this.lastContainerType=e?.container,this.refreshFilterResizer(e?.container)}refreshFilterResizer(e){const{positionableFeature:t,gos:i}=this;if(!t)return;const s=e==="floatingFilter"||e==="columnFilter";s?(t.restoreLastSize(),t.setResizable(i.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(t.removeSizeFromEl(),t.setResizable(!1)),t.constrainSizeToAvailableHeight(s)}afterGuiDetached(){this.checkApplyDebounce(),this.positionableFeature?.constrainSizeToAvailableHeight(!1)}destroy(){this.positionableFeature=this.destroyBean(this.positionableFeature),super.destroy()}translate(e,t){return vi(this,e,t)}getPositionableElement(){return this.getGui()}areModelsEqual(e,t){return e===t||e==null&&t==null?!0:e==null||t==null?!1:this.areNonNullModelsEqual(e,t)}},Oh=class extends In{isPopup(){return!0}setParentComponent(e){e.addCss("ag-has-popup"),super.setParentComponent(e)}destroy(){const e=this.parentComponent;e?.isAlive()&&e.getGui().classList.remove("ag-has-popup"),super.destroy()}},rc=class extends Oh{constructor(){super(...arguments),this.errorMessages=null}init(e){this.params=e,this.initialiseEditor(e),this.eEditor.onValueChange(()=>e.validate())}destroy(){this.eEditor.destroy(),this.errorMessages=null,super.destroy()}};function zi(e){const t=e.rowModel;return t.getType()==="clientSide"?t:void 0}function ac(e){const t=e.rowModel;return t.getType()==="infinite"?t:void 0}function m3(e){const t=e.rowModel;return t.getType()==="serverSide"?t:void 0}var Ng="row-group-",Nh="t-",Hh="b-",v3=0,Ds=class{constructor(e){this.id=void 0,this.destroyed=!1,this._groupData=void 0,this.master=!1,this.detail=void 0,this.rowIndex=null,this.field=null,this.rowGroupColumn=null,this.key=null,this.sourceRowIndex=-1,this._leafs=void 0,this.childrenAfterGroup=null,this.childrenAfterFilter=null,this.childrenAfterAggFilter=null,this.childrenAfterSort=null,this.allChildrenCount=null,this.childrenMapped=null,this.treeParent=null,this.treeNodeFlags=0,this._expanded=void 0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=v3++,this.alreadyRendered=!1,this.formulaRowIndex=null,this.hovered=!1,this.__selected=!1,this.beans=e}get groupData(){const e=this._groupData;return e!==void 0?e:this.footer?this.sibling?.groupData:this.beans.groupStage?.loadGroupData(this)??null}set groupData(e){this._groupData=e}get primaryRow(){let e=this.footer&&this.sibling?this.sibling:this;const{pinnedSibling:t}=e;return t&&e.rowPinned&&(e=t,e.footer&&e.sibling&&(e=e.sibling)),e}get allLeafChildren(){const e=this._leafs;return e===void 0?this.beans.groupStage?.loadLeafs?.(this)??null:e}set allLeafChildren(e){this._leafs=e}get expanded(){const e=this.beans.expansionSvc;return e?e.isExpanded(this):this.level===-1?!0:!!this._expanded}set expanded(e){this._expanded=e}setData(e){this.setDataCommon(e,!1)}updateData(e){this.setDataCommon(e,!0)}setDataCommon(e,t){const{valueCache:i,eventSvc:s}=this.beans,o=this.data;this.data=e,i?.onDataChanged(),this.updateDataOnDetailNode(),this.resetQuickFilterAggregateText();const n=this.createDataChangedEvent(e,o,t);if(this.__localEventService?.dispatchEvent(n),this.sibling){this.sibling.data=e;const a=this.sibling.createDataChangedEvent(e,o,t);this.sibling.__localEventService?.dispatchEvent(a)}s.dispatchEvent({type:"rowNodeDataChanged",node:this});const r=this.pinnedSibling;r&&(r.data=e,r.__localEventService?.dispatchEvent(r.createDataChangedEvent(e,o,t)),s.dispatchEvent({type:"rowNodeDataChanged",node:r}))}updateDataOnDetailNode(){const e=this.detailNode;e&&(e.data=this.data)}createDataChangedEvent(e,t,i){return{type:"dataChanged",node:this,oldData:t,newData:e,update:i}}getRowIndexString(){return this.rowIndex==null?(We(13),null):this.rowPinned==="top"?Nh+this.rowIndex:this.rowPinned==="bottom"?Hh+this.rowIndex:this.rowIndex.toString()}setDataAndId(e,t){const{selectionSvc:i}=this.beans,s=i?.createDaemonNode?.(this),o=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),i&&(i.updateRowSelectable(this),i.syncInRowNode(this,s));const n=this.createDataChangedEvent(e,o,!1);this.__localEventService?.dispatchEvent(n)}setId(e){const t=wn(this.beans.gos);if(t)if(this.data){const i=this.parent?.getRoute()??[];this.id=t({data:this.data,parentKeys:i.length>0?i:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(Ng)&&We(14,{groupPrefix:Ng})}else this.id=void 0;else this.id=e}setRowTop(e){if(this.oldRowTop=this.rowTop,this.rowTop===e)return;this.rowTop=e,this.dispatchRowEvent("topChanged");const t=e!==null;this.displayed!==t&&(this.displayed=t,this.dispatchRowEvent("displayedChanged"))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(e){this.hovered=e}isHovered(){return this.hovered}setRowHeight(e,t=!1){this.rowHeight=e,this.rowHeightEstimated=t,this.dispatchRowEvent("heightChanged")}setExpanded(e,t,i){this.beans.expansionSvc?.setExpanded(this,e,t,i)}setDataValue(e,t,i){const{colModel:s,valueSvc:o,gos:n,editSvc:r}=this.beans;if(e==null)return!1;let a=s.getCol(e)??s.getColDefCol(e);if(!a)return!1;if(!this.group){const d=a.getColDef();d.pivotValueColumn&&(a=d.pivotValueColumn)}const l=o.getValueForDisplay({column:a,node:this,from:"data"}).value;if(n.get("readOnlyEdit")){const{beans:{eventSvc:d},data:u,rowIndex:h,rowPinned:p}=this;return d.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:h,rowPinned:p,column:a,colDef:a.colDef,data:u,node:this,oldValue:l,newValue:t,value:t,source:i}),!1}if(i!=="data"&&r&&!r.committing){const d=r.setDataValue({rowNode:this,column:a},t,i);if(d!=null)return d}const c=o.setValue(this,a,t,i);return this.dispatchCellChangedEvent(a,t,l),c&&this.pinnedSibling?.dispatchCellChangedEvent(a,t,l),c}getDataValue(e,t="data"){const{colModel:i,valueSvc:s,formula:o}=this.beans;if(e==null)return;const n=i.getCol(e)??i.getColDefCol(e);if(!n)return;const r=t==="data-raw",a=r||t==="value"?"data":t;let l=s.getValue(n,this,a,r);if(!r&&(o&&n.isAllowFormula()&&o.isFormula(l)&&(l=o.resolveValue(n,this)),t!=="data"&&n.getAggFunc()&&typeof l=="object"&&l!=null)){if(typeof l.toNumber=="function")return l.toNumber();if("value"in l)return l.value}return l}updateHasChildren(){let e=this.group&&!this.footer||!!this.childrenAfterGroup?.length;const{rowChildrenSvc:t}=this.beans;t&&(e=t.getHasChildrenValue(this)),e!==this.__hasChildren&&(this.__hasChildren=!!e,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(e,t,i){const s={type:"cellChanged",node:this,column:e,newValue:t,oldValue:i};this.__localEventService?.dispatchEvent(s)}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 i=0,s=t.length;i<s;++i)t[i].depthFirstSearch(e);e(this)}getAggregatedChildren(e,t){const i=this.beans;return i.aggChildrenSvc?.getAggregatedChildren(this,i.colModel.getCol(e),t)??[]}dispatchRowEvent(e){this.__localEventService?.dispatchEvent({type:e,node:this})}setSelected(e,t=!1,i="api"){this.beans.selectionSvc?.setNodesSelected({nodes:[this],newValue:e,clearSelection:t,source:i})}isRowPinned(){return!!this.rowPinned}__addEventListener(e,t){(this.__localEventService??(this.__localEventService=new lo)).addEventListener(e,t)}__removeEventListener(e,t){this.removeLocalListener(e,t)}addEventListener(e,t){this.beans.validation?.checkRowEvents(e);const i=this.__localEventService??(this.__localEventService=new lo);this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,i);const s=this.frameworkEventListenerService?.wrap(e,t)??t;i.addEventListener(e,s)}removeEventListener(e,t){const i=this.frameworkEventListenerService?.unwrap(e,t)??t;this.removeLocalListener(e,i)}removeLocalListener(e,t){const i=this.__localEventService;i&&(i.removeEventListener(e,t),i.noRegisteredListenersExist()&&(this.__localEventService=null))}isFullWidthCell(){if($(61),this.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return e?e({rowNode:this}):!1}getRoute(){if(this.level===-1)return[];if(this.key==null)return;const e=[];let t=this;for(;t?.key!=null;)e.push(t.key),t=t.parent;return e.reverse()}setRowIndex(e){this.rowIndex!==e&&(this.rowIndex=e,this.dispatchRowEvent("rowIndexChanged"))}setAllChildrenCount(e){this.allChildrenCount!==e&&(this.allChildrenCount=e,this.dispatchRowEvent("allChildrenCountChanged"))}setUiLevel(e){this.uiLevel!==e&&(this.uiLevel=e,this.dispatchRowEvent("uiLevelChanged"))}getFirstChild(){const e=this.childStore;return e?e.getFirstNode():this.childrenAfterSort?.[0]??null}_destroy(e){if(this.destroyed)return!1;this.destroyed=!0;const t=this.pinnedSibling;if(t?.rowPinned&&!this.rowPinned&&this.beans.pinnedRowModel?.pinRow(t,null),e?this.clearRowTopAndRowIndex():(this.setRowTop(null),this.setRowIndex(null)),!this.footer){const i=this.detailNode;i&&i._destroy(e);const s=this.sibling;s&&s._destroy(e)}return!0}};function C3(e,t,i){return xe(t,{type:i,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned})}var w3=new Set(["__autoHeights","__checkAutoHeightsDebounced","__localEventService","__objectId","_groupData","_leafs","childStore","groupValue","oldRowTop","sticky","treeNodeFlags","treeParent"]),b3=(e,t)=>{const i=new Ds(t);for(const s of Object.keys(e))w3.has(s)||(i[s]=e[s]);return i.oldRowTop=null,i},Fu=(e,t,i)=>{if(!i)return;let s=i.rowIndex;if(s==null)return;s+=t;const o=e.getRowCount();for(;s>=0&&s<o;){const n=e.getRow(s);if(!n||!n.footer&&!n.detail)return n;s+=t}},Hg=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:i,order:s}=this;t.has(e)||(t.add(e),i.add(e),s.push(e),this.sort())}delete(e){this.all.delete(e),this.visible.delete(e),this.queued.delete(e.id),Hi(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:i,queued:s}=this;e.clear(),s.clear(),t.clear(),i.length=0}sort(){const{sortSvc:e,rowNodeSorter:t,gos:i}=this.beans,s=e?.getSortOptions()??[],o=this.order,n=S3(o);if(o.sort((a,l)=>t?.compareRowNodes(s,a,l)||(a.pinnedSibling?.rowIndex??0)-(l.pinnedSibling?.rowIndex??0)),!n)return;const r=Wv(i);r==="bottom"||r==="pinnedBottom"?this.order.push(n):this.order.unshift(n)}hide(e){const{all:t,visible:i}=this,s=i.size;return t.forEach(o=>e(o)?i.delete(o):i.add(o)),this.order=Array.from(i),this.sort(),s!=i.size}queue(e){this.queued.add(e)}unqueue(e){this.queued.delete(e)}forEachQueued(e){this.queued.forEach(e)}};function gC(e){if(e.level===-1)return!0;const t=e.parent;return t?.childrenAfterSort?.some(i=>i==e)?gC(t):!1}function fd(e,t){const{gos:i,rowModel:s,filterManager:o}=e;return kn(i)?!s.getRowNode(t.id):o?.isAnyFilterPresent()?!gC(t):i.get("pivotMode")?!t.group:!1}function x3(e){return!!e.footer&&e.level===-1}function y3(e){return!!e.pinnedSibling&&x3(e.pinnedSibling)}function S3(e){const t=e.findIndex(y3);if(t>-1)return e.splice(t,1)?.[0]}var Bg=class extends B{constructor(){super(...arguments),this.csrm=null}postConstruct(){const{gos:e,beans:t}=this;this.top=new Hg(t,"top"),this.bottom=new Hg(t,"bottom"),this.csrm=zi(t)??null;const i=o=>fd(t,o.pinnedSibling),s=()=>{const o=e.get("isRowPinned");o&&e.get("enableRowPinning")&&t.rowModel.forEachNode(n=>this.pinRow(n,o(n)),!0),this.refreshRowPositions(),this.dispatchRowPinnedEvents()};this.addManagedEventListeners({stylesChanged:this.onGridStylesChanges.bind(this),modelUpdated:({keepRenderedRows:o})=>{this.tryToEmptyQueues(),this.pinGrandTotalRow();let n=!1;this.forContainers(a=>{n||(n=a.hide(i))});const r=this.refreshRowPositions();(!o||r||n)&&this.dispatchRowPinnedEvents()},columnRowGroupChanged:()=>{this.forContainers(F3),this.refreshRowPositions()},rowNodeDataChanged:({node:o})=>{(e.get("isRowPinnable")?.(o)??!0)||this.pinRow(o,null)},firstDataRendered:s}),this.addManagedPropertyListener("pivotMode",()=>{this.forContainers(o=>o.hide(i)),this.dispatchRowPinnedEvents()}),this.addManagedPropertyListener("grandTotalRow",({currentValue:o})=>{this._grandTotalPinned=o==="pinnedBottom"?"bottom":o==="pinnedTop"?"top":null}),this.addManagedPropertyListener("isRowPinned",s)}destroy(){this.reset(!1),super.destroy()}reset(e=!0){this.forContainers(t=>{const i=[];t.forEach(s=>i.push(s)),i.forEach(s=>this.pinRow(s,null)),t.clear()}),e&&this.dispatchRowPinnedEvents()}pinRow(e,t,i){if(t!=null&&e.destroyed)return;if(e.footer){const r=e.level;if(r>-1)return;if(r===-1){this._grandTotalPinned=t,this.csrm?.reMapRows();return}}const s=e.rowPinned??e.pinnedSibling?.rowPinned;if(s!=null&&t!=null&&t!=s){const r=e.rowPinned?e:e.pinnedSibling,a=e.rowPinned?e.pinnedSibling:e;this.pinRow(r,null,i),this.pinRow(a,t,i);return}const n=i&&E3(this.beans,e,i);if(n){n.forEach(r=>this.pinRow(r,t));return}if(t==null){const r=e.rowPinned?e:e.pinnedSibling,a=this.findPinnedRowNode(r);if(!a)return;a.delete(r);const l=r.pinnedSibling;md(r),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(l)}else{const r=Gg(this.beans,e,t),a=this.getContainer(t);a.add(r),fd(this.beans,e)&&a.hide(l=>fd(this.beans,l.pinnedSibling)),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(e)}}isManual(){return!0}isEmpty(e){return this.getContainer(e).size()===0}isRowsToRender(e){return!this.isEmpty(e)}ensureRowHeightsValid(){let e=!1,t=0;const i=s=>{if(s.rowHeightEstimated){const o=Rs(this.beans,s);s.setRowTop(t),s.setRowHeight(o.height),t+=o.height,e=!0}};return this.bottom.forEach(i),t=0,this.top.forEach(i),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=t=>{const i=[];return this.forEachPinnedRow(t,s=>{const o=s.pinnedSibling?.id;o!=null&&i.push(o)}),i};return{top:e("top"),bottom:e("bottom")}}setPinnedState(e){this.forContainers((t,i)=>{for(const s of e[i]){const o=this.beans.rowModel.getRowNode(s);o?this.pinRow(o,i):t.queue(s)}})}getGrandTotalPinned(){return this._grandTotalPinned}setGrandTotalPinned(e){this._grandTotalPinned=e}tryToEmptyQueues(){this.forContainers((e,t)=>{const i=new Set;e.forEachQueued(s=>{const o=this.beans.rowModel.getRowNode(s);o&&i.add(o)});for(const s of i)e.unqueue(s.id),this.pinRow(s,t)})}pinGrandTotalRow(){const{csrm:e,beans:t,_grandTotalPinned:i}=this;if(!e)return;const s=e.rootNode?.sibling;if(!s)return;const o=s.pinnedSibling,n=o&&this.findPinnedRowNode(o);if(i){if(n&&n.floating!==i&&(md(o),n.delete(o)),!n||n.floating!==i){const r=Gg(t,s,i);this.getContainer(i).add(r)}}else{if(!n)return;md(o),n.delete(o)}}onGridStylesChanges(e){e.rowHeightChanged&&this.forContainers(t=>t.forEach(i=>i.setRowHeight(i.rowHeight,!0)))}getContainer(e){return e==="top"?this.top:this.bottom}findPinnedRowNode(e){if(this.top.has(e))return this.top;if(this.bottom.has(e))return this.bottom}refreshRowPositions(e){const t=s=>R3(this.beans,s);if(e)return t(this.getContainer(e));let i=!1;return this.forContainers(s=>{const o=t(s);i||(i=o)}),i}forContainers(e){e(this.top,"top"),e(this.bottom,"bottom")}dispatchRowPinnedEvents(e){this.eventSvc.dispatchEvent({type:"pinnedRowsChanged"}),e?.dispatchRowEvent("rowPinned")}};function R3(e,t){let i=0,s=!1;return t.forEach((o,n)=>{if(s||(s=o.rowTop!==i),o.setRowTop(i),o.rowHeightEstimated||o.rowHeight==null){const r=Rs(e,o).height;s||(s=o.rowHeight!==r),o.setRowHeight(r)}o.setRowIndex(n),i+=o.rowHeight}),s}function Gg(e,t,i){if(t.pinnedSibling)return t.pinnedSibling;const s=b3(t,e);s.setRowTop(null),s.setRowIndex(null),s.rowPinned=i;const o=i==="top"?Nh:Hh;return s.id=`${o}${i}-${t.id}`,s.pinnedSibling=t,t.pinnedSibling=s,s}function md(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 F3(e){const t=new Set;e.forEach(i=>{i.group&&t.add(i)}),t.forEach(i=>e.delete(i))}function E3(e,t,i){const{rowSpanSvc:s}=e,o=(i&&s?.isCellSpanning(i,t))??!1;if(i&&o)return s?.getCellSpan(i,t)?.spannedNodes}function Vg(e){const t=e.size();if(t===0)return 0;const i=e.getByIndex(t-1);return i===void 0?0:i.rowTop+i.rowHeight}var zg=class extends B{constructor(){super(...arguments),this.nextId=0,this.pinnedTopRows={cache:{},order:[]},this.pinnedBottomRows={cache:{},order:[]}}postConstruct(){const e=this.gos;this.setPinnedRowData(e.get("pinnedTopRowData"),"top"),this.setPinnedRowData(e.get("pinnedBottomRowData"),"bottom"),this.addManagedPropertyListener("pinnedTopRowData",t=>this.setPinnedRowData(t.currentValue,"top")),this.addManagedPropertyListener("pinnedBottomRowData",t=>this.setPinnedRowData(t.currentValue,"bottom")),this.addManagedEventListeners({stylesChanged:this.onGridStylesChanges.bind(this)})}reset(){}isEmpty(e){return this.getCache(e).order.length===0}isRowsToRender(e){return!this.isEmpty(e)}isManual(){return!1}pinRow(e,t){}onGridStylesChanges(e){if(e.rowHeightChanged){const t=i=>{i.setRowHeight(i.rowHeight,!0)};Jn(this.pinnedBottomRows,t),Jn(this.pinnedTopRows,t)}}ensureRowHeightsValid(){let e=!1,t=0;const i=s=>{if(s.rowHeightEstimated){const o=Rs(this.beans,s);s.setRowTop(t),s.setRowHeight(o.height),t+=o.height,e=!0}};return Jn(this.pinnedBottomRows,i),t=0,Jn(this.pinnedTopRows,i),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),e}setPinnedRowData(e,t){this.updateNodesFromRowData(e,t),this.eventSvc.dispatchEvent({type:"pinnedRowDataChanged"})}updateNodesFromRowData(e,t){const i=this.getCache(t);if(e===void 0){i.order.length=0,i.cache={};return}const s=wn(this.gos),o=t==="top"?Nh:Hh,n=new Set(i.order),r=[],a=new Set;let l=0,c=-1;for(const d of e){const u=s?.({data:d,level:0,rowPinned:t})??o+this.nextId++;if(a.has(u)){$(96,{id:u,data:d});continue}c++,a.add(u),r.push(u);const h=mr(i,u);if(h!==void 0)h.data!==d&&h.updateData(d),l+=this.setRowTopAndRowIndex(h,l,c),n.delete(u);else{const p=new Ds(this.beans);p.id=u,p.data=d,p.rowPinned=t,l+=this.setRowTopAndRowIndex(p,l,c),i.cache[u]=p,i.order.push(u)}}for(const d of n)mr(i,d)?.clearRowTopAndRowIndex(),delete i.cache[d];i.order=r}setRowTopAndRowIndex(e,t,i){return e.setRowTop(t),e.setRowHeight(Rs(this.beans,e).height),e.setRowIndex(i),e.rowHeight}getPinnedTopTotalHeight(){return Wg(this.pinnedTopRows)}getPinnedBottomTotalHeight(){return Wg(this.pinnedBottomRows)}getPinnedTopRowCount(){return Du(this.pinnedTopRows)}getPinnedBottomRowCount(){return Du(this.pinnedBottomRows)}getPinnedTopRow(e){return Eu(this.pinnedTopRows,e)}getPinnedBottomRow(e){return Eu(this.pinnedBottomRows,e)}getPinnedRowById(e,t){return mr(this.getCache(t),e)}forEachPinnedRow(e,t){return Jn(this.getCache(e),t)}getCache(e){return e==="top"?this.pinnedTopRows:this.pinnedBottomRows}getPinnedState(){return{top:[],bottom:[]}}setPinnedState(){}getGrandTotalPinned(){}setGrandTotalPinned(){}};function Wg(e){const t=Du(e);if(t===0)return 0;const i=Eu(e,t-1);return i===void 0?0:i.rowTop+i.rowHeight}function mr(e,t){return e.cache[t]}function Eu(e,t){return mr(e,e.order[t])}function Jn(e,t){e.order.forEach((i,s)=>{const o=mr(e,i);o&&t(o,s)})}function Du(e){return e.order.length}var D3=class extends B{constructor(){super(...arguments),this.beanName="pinnedRowModel"}postConstruct(){const{gos:e}=this,t=()=>{const i=e.get("enableRowPinning"),s=Wv(e),n=!!i||(s==="pinnedBottom"||s==="pinnedTop"),r=n?this.inner instanceof zg:this.inner instanceof Bg;this.inner&&r&&this.destroyBean(this.inner),(r||!this.inner)&&(this.inner=this.createManagedBean(n?new Bg:new zg))};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,i){return this.inner.pinRow(e,t,i)}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()}},P3=500,T3=550,Ma,k3=e=>{if(!Ma)Ma=new WeakSet;else if(Ma.has(e))return!1;return Ma.add(e),!0},Us=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 i=this.eventSvc;if(!i){if(i===null)return;this.eventSvc=i=new lo;const s=this.onTouchStart.bind(this);this.startListener=s,this.eElement.addEventListener("touchstart",s,{passive:!0})}i.addEventListener(e,t)}removeEventListener(e,t){this.eventSvc?.removeEventListener(e,t)}onTouchStart(e){if(this.touchStart||!k3(e))return;const t=e.touches[0];this.touchStart=t;const i=this.handlers;if(!i.length){const s=this.eElement,o=s.ownerDocument,n=this.onTouchMove.bind(this),r=this.onTouchEnd.bind(this),a=this.onTouchCancel.bind(this),l={passive:!0},c={passive:!1};Ya(i,[s,"touchmove",n,l],[o,"touchcancel",a,l],[o,"touchend",r,c],[o,"contextmenu",vs,c])}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}))},T3)}onTouchMove(e){const{moved:t,touchStart:i}=this;if(!t&&i){const s=nn(i,e.touches);s&&!xv(s,i,4)&&(this.clearLongPress(),this.moved=!0)}}onTouchEnd(e){const t=this.touchStart;!t||!nn(t,e.changedTouches)||(this.moved||(this.eventSvc?.dispatchEvent({type:"tap",touchStart:t}),this.checkDoubleTap(t)),this.preventClick&&vs(e),this.cancel())}onTouchCancel(e){const t=this.touchStart;!t||!nn(t,e.changedTouches)||(this.lastTapTime=null,this.cancel())}checkDoubleTap(e){let t=Date.now();const i=this.lastTapTime;i&&t-i>P3&&(this.eventSvc?.dispatchEvent({type:"doubleTap",touchStart:e}),t=null),this.lastTapTime=t}cancel(){this.clearLongPress(),yh(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}},I3=1,M3=class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,this.instanceId=I3++,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 i=new t;i.beanName?this.beans[i.beanName]=i:console.error(`Bean ${t.name} is missing beanName`),this.createdBeans.push(i)}for(const t of e.derivedBeans??[]){const{beanName:i,bean:s}=t(this);this.beans[i]=s,this.createdBeans.push(s)}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 i=this.beans;for(const s of e)s.preWireBeans?.(i),s.wireBeans?.(i);for(const s of e)s.preConstruct?.();t&&e.forEach(t);for(const s of e)s.postConstruct?.()}getBeans(){return this.beans}getBean(e){return this.beans[e]}getId(){return this.id}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this.getBeanInstances();this.beanDestroyComparator&&e.sort(this.beanDestroyComparator),this.destroyBeans(e),this.beans={},this.createdBeans=[],this.destroyCallback?.()}destroyBean(e){e?.destroy?.()}destroyBeans(e){if(e)for(let t=0;t<e.length;t++)this.destroyBean(e[t]);return[]}isDestroyed(){return this.destroyed}};function A3(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionSvc").api}}var L3=["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"],jg=Object.fromEntries(L3.map((e,t)=>[e,t]));function O3(e,t){const i=(e.beanName?jg[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER,s=(t.beanName?jg[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER;return i-s}function N3(e,t){return e?.beanName==="gridDestroySvc"?-1:t?.beanName==="gridDestroySvc"?1:0}function H3(e){const{rowIndex:t,rowPinned:i,column:s}=e;return`${t}.${i??"null"}.${s.getId()}`}function Bh(e,t){const i=e.column===t.column,s=e.rowPinned===t.rowPinned,o=e.rowIndex===t.rowIndex;return i&&s&&o}function B3(e,t){switch(e.rowPinned){case"top":if(t.rowPinned!=="top")return!0;break;case"bottom":if(t.rowPinned!=="bottom")return!1;break;default:if(te(t.rowPinned))return t.rowPinned!=="top";break}return e.rowIndex<t.rowIndex}function G3(e,t){return!e&&!t?!0:!e||!t?!1:e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned}function _g(e){let t=0,i;const{pinnedRowModel:s,rowModel:o,pageBounds:n}=e;return s?.getPinnedTopRowCount()?i="top":o.getRowCount()?(i=null,t=n.getFirstRow()):s?.getPinnedBottomRowCount()&&(i="bottom"),i===void 0?null:{rowIndex:t,rowPinned:i}}function Ug(e){let t,i=null;const{pinnedRowModel:s,pageBounds:o}=e,n=s?.getPinnedBottomRowCount(),r=s?.getPinnedTopRowCount();return n?(i="bottom",t=n-1):e.rowModel.getRowCount()?t=o.getLastRow():r&&(i="top",t=r-1),t===void 0?null:{rowIndex:t,rowPinned:i}}function Bi(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 Jo(e,t){const i=e.spannedRowRenderer?.getCellByPosition(t);if(i)return i;const s=e.rowRenderer.getRowByPosition(t);return s?s.getCellCtrl(t.column):null}function V3(e,t,i){const{rowModel:s,pinnedRowModel:o}=e;let n;return n??(n=s?.getRowNode(t)),i?n??(n=o?.getPinnedRowById(t,i)):(n??(n=o?.getPinnedRowById(t,"top")),n??(n=o?.getPinnedRowById(t,"bottom"))),n}function Tl(e,t,i=!1){const{rowIndex:s,rowPinned:o}=t,{pageBounds:n,pinnedRowModel:r,rowModel:a}=e;if(s===0)return o==="top"?null:o==="bottom"&&a.isRowsToRender()?{rowIndex:n.getLastRow(),rowPinned:null}:r?.isRowsToRender("top")?{rowIndex:r.getPinnedTopRowCount()-1,rowPinned:"top"}:null;if(i){const l=o?void 0:a.getRow(s);return fC(e,l,!0)??{rowIndex:s-1,rowPinned:o}}return{rowIndex:s-1,rowPinned:o}}function $g(e,t,i=!1){const{rowIndex:s,rowPinned:o}=t,{pageBounds:n,pinnedRowModel:r,rowModel:a}=e;if(z3(e,t))return o==="bottom"?null:o==="top"&&a.isRowsToRender()?{rowIndex:n.getFirstRow(),rowPinned:null}:r?.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;if(i){const l=o?void 0:a.getRow(s);return fC(e,l)??{rowIndex:s+1,rowPinned:o}}return{rowIndex:s+1,rowPinned:o}}function fC(e,t,i=!1){const{gos:s,rowRenderer:o}=e;if(!t?.sticky||!zv(s))return;const n=o.getStickyTopRowCtrls(),r=o.getStickyBottomRowCtrls(),a=!r.some(u=>u.rowNode.rowIndex===t.rowIndex),l=a?n:r,c=(i?-1:1)*(a?-1:1);let d;for(let u=0;u<l.length;u++)if(l[u].rowNode.rowIndex===t.rowIndex){d=l[u+c];break}return d?{rowIndex:d.rowNode.rowIndex,rowPinned:null}:void 0}function z3(e,t){const{rowPinned:i,rowIndex:s}=t,{pinnedRowModel:o,pageBounds:n}=e;return i==="top"?(o?.getPinnedTopRowCount()??0)-1<=s:i==="bottom"?(o?.getPinnedBottomRowCount()??0)-1<=s:n.getLastRow()<=s}function W3(e,t,i){t.addManagedElementListeners(i,{keydown:s=>{if(!s.defaultPrevented&&!q3(s)&&s.key===A.TAB){const o=s.shiftKey;Eo(e,i,!1,o)||xn(e,o)&&s.preventDefault()}}})}function j3(e,t){return e.ctrlsSvc.get("gridCtrl").focusInnerElement(t)}function mi(e){return e.gos.get("suppressHeaderFocus")||!!e.overlays?.exclusive}function Lr(e){return e.gos.get("suppressCellFocus")||!!e.overlays?.exclusive}function xn(e,t,i=!1){const s=e.ctrlsSvc.get("gridCtrl"),o=s.focusNextInnerContainer(t);return o===!0?!0:o===!1?o:((i||!t&&!s.isDetailGrid()&&s.isFocusInsideGridBody())&&s.forceFocusOutOfContainer(t),!1)}function _3(e,t){const i=e.focusSvc,s=i.getFocusedCell();if(s&&t&&Bh(s,t)){const{rowIndex:o,rowPinned:n,column:r}=t;ph(e)&&i.setFocusedCell({rowIndex:o,column:r,rowPinned:n,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!cC()})}}function U3(e,t){const i=e.getFocusableContainerName();return i==="gridBody"?t():mC(e,()=>oo(e.getGui(),".ag-tab-guard").length>0)?i:null}function mC(e,t){e.setAllowFocus?.(!0);try{return t()}finally{e.setAllowFocus?.(!1)}}var $3="__ag_Grid_Skip_Focusable_Container";function q3(e){return e[$3]===!0}function ri(e){return e.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0}function Gh(e){const t=[],i=e.ctrlsSvc.getHeaderRowContainerCtrls();for(const s of i){if(!s)continue;const o=s.getGroupRowCount()||0;for(let n=0;n<o;n++){const r=s.getGroupRowCtrlAtIndex(n),a=t[n];if(r){const l=K3(e,r);(a==null||l>a)&&(t[n]=l)}}}return t}function K3(e,t){let s=e.colModel.isPivotMode()?Z3(e):CC(e);const o=t.getHeaderCellCtrls();for(const n of o){const{column:r}=n,a=r.getAutoHeaderHeight();a!=null&&a>s&&r.isAutoHeaderHeight()&&(s=a)}return s}function Vh(e){let i=e.colModel.isPivotMode()?Y3(e):_r(e);return e.colModel.forAllCols(s=>{const o=s.getAutoHeaderHeight();o!=null&&o>i&&s.isAutoHeaderHeight()&&(i=o)}),i}function _r(e){return e.gos.get("headerHeight")??e.environment.getDefaultHeaderHeight()}function vC(e){return e.gos.get("floatingFiltersHeight")??_r(e)}function CC(e){return e.gos.get("groupHeaderHeight")??_r(e)}function Y3(e){return e.gos.get("pivotHeaderHeight")??_r(e)}function Z3(e){return e.gos.get("pivotGroupHeaderHeight")??CC(e)}function X3(e,t){return e.headerRowIndex===t.headerRowIndex&&e.column===t.column}function Q3(e){return e?.headerRowIndex!=null}var J3=class extends B{setComp(e,t,i){this.comp=e,this.eGui=t;const{beans:s}=this,{headerNavigation:o,touchSvc:n,ctrlsSvc:r}=s;o&&this.createManagedBean(new jr(i,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,s),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,s)}),this.onPivotModeChanged(s),this.setupHeaderHeight();const a=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:a}),n?.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:()=>os(this.beans,()=>e()),stylesChanged:e,advancedFilterEnabledChanged:e})}setHeaderHeight(){const{beans:e}=this;let t=0;const i=Gh(e).reduce((r,a)=>r+a,0),s=Vh(e);e.filterManager?.hasFloatingFilters()&&(t+=vC(e)),t+=i,t+=s;const o=e.environment.getHeaderRowBorderWidth(),n=t+o;if(this.headerHeightWithBorder!==n){this.headerHeightWithBorder=n;const r=`${n}px`;this.comp.setHeightAndMinHeight(r)}this.headerHeight!==t&&(this.headerHeight=t,this.eventSvc.dispatchEvent({type:"headerHeightChanged"}))}onPivotModeChanged(e){const t=e.colModel.isPivotMode();this.comp.toggleCss("ag-pivot-on",t),this.comp.toggleCss("ag-pivot-off",!t)}onDisplayedColumnsChanged(e){const i=e.visibleCols.allCols.some(s=>s.isSpanHeaderHeight());this.comp.toggleCss("ag-header-allow-overflow",i)}onTabKeyDown(e){const t=this.gos.get("enableRtl"),i=e.shiftKey,s=i!==t?"LEFT":"RIGHT",{beans:o}=this,{headerNavigation:n,focusSvc:r}=o;(n.navigateHorizontally(s,!0,e)||!i&&r.focusOverlay(!1)||xn(o,i,!0))&&e.preventDefault()}handleKeyDown(e){let t=null;const{headerNavigation:i}=this.beans;switch(e.key){case A.LEFT:t="LEFT";case A.RIGHT:{te(t)||(t="RIGHT"),i.navigateHorizontally(t,!1,e)&&e.preventDefault();break}case A.UP:t="UP";case A.DOWN:{te(t)||(t="DOWN"),i.navigateVertically(t,e)&&e.preventDefault();break}default:return}}onFocusOut(e){const{relatedTarget:t}=e,{eGui:i,beans:s}=this;!t&&i.contains(Je(s))||i.contains(t)||(s.focusSvc.focusedHeader=null)}onHeaderContextMenu(e,t,i){const{menuSvc:s,ctrlsSvc:o}=this.beans;if(!e&&!i||!s?.isHeaderContextMenuEnabled())return;const{target:n}=e??t;(n===this.eGui||n===o.getHeaderRowContainerCtrl()?.eViewport)&&s.showHeaderContextMenu(void 0,e,i)}},zh=class extends B{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=yt(this.gos,"print"),{visibleCols:t,scrollVisibleSvc:i}=this.beans,s=t.bodyWidth,o=t.getColsLeftWidth(),n=t.getDisplayedColumnsRightWidth();let r;e?r=s+o+n:(r=s,this.addSpacer&&(this.gos.get("enableRtl")?o:n)===0&&i.verticalScrollShowing&&(r+=i.getScrollbarWidth())),this.callback(r)}},Mn=class extends B{};function Ur(e,t,i){return i&&e.addDestroyFunc(()=>t.destroyBean(i)),i??e}var Wh=class extends B{constructor(e,t,i,s){super(),this.columnOrGroup=e,this.eCell=t,this.colsSpanning=s,this.columnOrGroup=e,this.ariaEl=t.querySelector("[role=columnheader]")||t,this.beans=i}setColsSpanning(e){this.colsSpanning=e,this.onLeftChanged()}getColumnOrGroup(){const{beans:e,colsSpanning:t}=this;return e.gos.get("enableRtl")&&t?$e(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,i=e.get("suppressColumnMoveAnimation"),s=te(this.columnOrGroup.getOldLeft());t?.isActive()&&s&&!i?this.animateInLeft():this.onLeftChanged()}animateInLeft(){const e=this.getColumnOrGroup(),t=this.modifyLeftForPrintLayout(e,e.getOldLeft()),i=this.modifyLeftForPrintLayout(e,e.getLeft());this.setLeft(t),this.actualLeft=i,this.beans.colAnimation.executeNextVMTurn(()=>{this.actualLeft===i&&this.setLeft(i)})}onLeftChanged(){const e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(e,t){const{gos:i,visibleCols:s}=this.beans;if(!yt(i,"print")||e.getPinned()==="left")return t;const n=s.getColsLeftWidth();if(e.getPinned()==="right"){const r=s.bodyWidth;return n+r+t}return n+t}setLeft(e){if(te(e)&&(this.eCell.style.left=`${e}px`),rt(this.columnOrGroup)){const t=this.columnOrGroup.getLeafColumns();if(!t.length)return;t.length>1&&$S(this.ariaEl,t.length)}}},eF="ag-column-first",tF="ag-column-last";function wC(e,t,i,s){return it(e)?[]:sF(e.headerClass,e,t,i,s)}function bC(e,t,i){e.toggleCss(eF,i.isColAtEdge(t,"first")),e.toggleCss(tF,i.isColAtEdge(t,"last"))}function iF(e,t,i,s){return xe(t,{colDef:e,column:i,columnGroup:s})}function sF(e,t,i,s,o){if(it(e))return[];let n;if(typeof e=="function"){const r=iF(t,i,s,o);n=e(r)}else n=e;return typeof n=="string"?[n]:Array.isArray(n)?[...n]:[]}var oF=0,xC="headerCtrl",jh=class extends B{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()+"-"+oF++}postConstruct(){const e=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],e),this.addManagedEventListeners({overlayExclusiveChanged:e})}setComp(e,t,i,s,o){t.setAttribute("col-id",this.column.colIdSanitised),this.wireComp(e,t,i,s,o),this.reAttemptToFocus&&(this.reAttemptToFocus=!1,this.focus(this.lastFocusEvent??void 0))}shouldStopEventPropagation(e){const{headerRowIndex:t,column:i}=this.beans.focusSvc.focusedHeader,s=i.getDefinition(),o=s?.suppressHeaderKeyboardEvent;if(!te(o))return!1;const n=xe(this.gos,{colDef:s,column:i,headerRowIndex:t,event:e});return!!o(n)}getWrapperHasFocus(){return Je(this.beans)===this.eGui}setGui(e,t){this.eGui=e,this.addDomData(t),t.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),t.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)}),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}refreshHeaderStyles(){const e=this.column.getDefinition();if(!e)return;const{headerStyle:t}=e;let i;if(typeof t=="function"){const s=this.getHeaderClassParams();i=t(s)}else i=t;i&&this.comp.setUserStyles(i)}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(e){const{wrapperElement:t,checkMeasuringCallback:i,compBean:s}=e,{beans:o}=this,n=u=>{if(!this.isAlive()||!s.isAlive())return;const{paddingTop:h,paddingBottom:p,borderBottomWidth:m,borderTopWidth:v}=Ro(this.eGui),C=h+p+m+v,b=t.offsetHeight+C;if(u<5){const y=!ft(o)?.contains(t),S=b==0;if(y||S){fu(()=>n(u+1),"raf",o);return}}this.setColHeaderHeight(this.column,b)};let r=!1,a;const l=()=>{const u=this.column.isAutoHeaderHeight();u&&!r&&c(),!u&&r&&d()},c=()=>{r=!0,this.comp.toggleCss("ag-header-cell-auto-height",!0),n(0),a=ss(this.beans,t,()=>n(0))},d=()=>{r=!1,a&&a(),this.comp.toggleCss("ag-header-cell-auto-height",!1),a=void 0};l(),s.addDestroyFunc(()=>d()),s.addManagedListeners(this.column,{widthChanged:()=>r&&n(0)}),s.addManagedEventListeners({sortChanged:()=>{r&&window.setTimeout(()=>n(0))}}),i&&i(l)}onDisplayedColumnsChanged(){const{comp:e,column:t,beans:i,eGui:s}=this;!e||!t||!s||(bC(e,t,i.visibleCols),pv(s,i.visibleCols.getAriaColIndex(t)))}addResizeAndMoveKeyboardListeners(e){e.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){const e=mi(this.beans);this.eGui&&Vt(this.eGui,"tabindex",e?null:"-1")}onGuiKeyDown(e){const t=Je(this.beans),i=e.key===A.LEFT||e.key===A.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),t!==this.eGui||!e.shiftKey&&!e.altKey&&!e.ctrlKey&&!e.metaKey)return;if((this.isResizing||i)&&(e.preventDefault(),e.stopImmediatePropagation()),(e.ctrlKey||e.metaKey)&&Jv(e)===A.C)return this.beans.clipboardSvc?.copyToClipboard();if(!i)return;const n=e.key===A.LEFT!==this.gos.get("enableRtl")?"left":"right";if(e.altKey){this.isResizing=!0,this.resizeMultiplier+=1;const r=this.getViewportAdjustedResizeDiff(e);this.resizeHeader(r,e.shiftKey),this.resizeFeature?.toggleColumnResizing(!0)}else this.moveHeader(n)}moveHeader(e){this.beans.colMoves?.moveHeader(e,this.eGui,this.column,this.rowCtrl.pinned,this)}getViewportAdjustedResizeDiff(e){const t=this.getResizeDiff(e),{pinnedCols:i}=this.beans;return i?i.getHeaderResizeDiff(t,this.column):t}getResizeDiff(e){const{gos:t,column:i}=this;let s=e.key===A.LEFT!==t.get("enableRtl");const o=i.getPinned(),n=t.get("enableRtl");return o&&n!==(o==="right")&&(s=!s),(s?-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 A.PAGE_DOWN:case A.PAGE_UP:case A.PAGE_HOME:case A.PAGE_END:t&&e.preventDefault()}}addDomData(e){const t=xC,{eGui:i,gos:s}=this;po(s,i,t,this),e.addDestroyFunc(()=>po(s,i,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,i){const s=e??t,{menuSvc:o,gos:n}=this.beans;n.get("preventDefaultOnContextMenu")&&s.preventDefault(),o?.isHeaderContextMenuEnabled(i)&&o.showHeaderContextMenu(i,e,t),this.dispatchColumnMouseEvent("columnHeaderContextMenu",i)}dispatchColumnMouseEvent(e,t){this.eventSvc.dispatchEvent({type:e,column:t})}setColHeaderHeight(e,t){if(!e.setAutoHeaderHeight(t))return;const{eventSvc:i}=this;e.isColumn?i.dispatchEvent({type:"columnHeaderHeightChanged",column:e,columns:[e],source:"autosizeColumnHeaderHeight"}):i.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}},nF=class extends jh{constructor(){super(...arguments),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map}wireComp(e,t,i,s,o){this.comp=e;const{rowCtrl:n,column:r,beans:a}=this,{colResize:l,context:c,colHover:d,rangeSvc:u}=a,h=Ur(this,c,o);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:s,checkMeasuringCallback:m=>this.setRefreshFunction("measuring",m),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(n.pinned,r,i,e,this)):Ke(i,!1),d?.createHoverFeature(h,[r],t),u?.createRangeHighlightFeature(h,r,e),h.createManagedBean(new Wh(r,t,a)),h.createManagedBean(new jr(t,{shouldStopEventPropagation:m=>this.shouldStopEventPropagation(m),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 p=()=>this.checkDisplayName();h.addManagedEventListeners({columnValueChanged:p,columnRowGroupChanged:p,columnPivotChanged:p,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,i=e.colDef;return xe(t.gos,{colDef:i,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 $R(this.beans.userCompFactory,t,e)}createParams(){const{menuSvc:e,sortSvc:t,colFilter:i,gos:s}=this.beans;return xe(s,{column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!e?.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!!i&&(!this.openFilterEnabled||zt(this.gos)),showColumnMenu:(n,r)=>{e?.showColumnMenu({column:this.column,buttonElement:n,positionBy:"button",onClosedCallback:r})},showColumnMenuAfterMouseClick:(n,r)=>{e?.showColumnMenu({column:this.column,mouseEvent:n,positionBy:"mouse",onClosedCallback:r})},showFilter:n=>{e?.showFilterMenu({column:this.column,buttonElement:n,containerType:"columnFilter",positionBy:"button"})},progressSort:n=>{t?.progressSort(this.column,!!n,"uiColumnSorted")},setSort:(n,r)=>{t?.setSortForColumn(this.column,li(n),!!r,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(n,r)=>{s.assertModuleRegistered("Tooltip",3),this.setupTooltip(n,r)}})}setupSelectAll(e){const{selectionSvc:t}=this.beans;t&&(this.selectAllFeature=e.createOptionalManagedBean(t.createSelectAllFeature(this.column)),this.selectAllFeature?.setComp(this),e.addManagedPropertyListener("rowSelection",()=>{const i=t.createSelectAllFeature(this.column);i&&!this.selectAllFeature?(this.selectAllFeature=e.createManagedBean(i),this.selectAllFeature?.setComp(this),this.comp.refreshSelectAllGui()):this.selectAllFeature&&!i&&(this.comp.removeSelectAllGui(),this.selectAllFeature=this.destroyBean(this.selectAllFeature))}))}getSelectAllGui(){return this.selectAllFeature?.getCheckboxGui()}handleKeyDown(e){super.handleKeyDown(e),e.key===A.SPACE?this.selectAllFeature?.onSpaceKeyDown(e):e.key===A.ENTER?this.onEnterKeyDown(e):e.key===A.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)}onEnterKeyDown(e){const{column:t,gos:i,sortable:s,beans:o}=this;let n=!1;(e.ctrlKey||e.metaKey)&&(n=this.showMenuOnKeyPress(e,!0)),n||(!e.altKey&&dn(i)?o.rangeSvc?.handleColumnSelection(t,e):s&&o.sortSvc?.progressSort(t,e.shiftKey,"uiColumnSorted"))}showMenuOnKeyPress(e,t){const i=this.comp.getUserCompInstance();return qg(i)&&i.onMenuKeyboardShortcut(t)?(e.preventDefault(),!0):!1}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription()),cC()&&this.setActiveHeader(!0)}onFocusOut(e){this.eGui.contains(e.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderTooltip(this.tooltipFeature,this,e,t)}setupStylesFromColDef(){this.setRefreshFunction("headerStyles",this.refreshHeaderStyles.bind(this)),this.refreshHeaderStyles()}setupClassesFromColDef(){const e=()=>{const t=this.column.getColDef(),i=wC(t,this.gos,this.column,null),s=this.userHeaderClasses;this.userHeaderClasses=new Set(i);for(const o of i)s.has(o)?s.delete(o):this.comp.toggleCss(o,!0);for(const o of s)this.comp.toggleCss(o,!1)};this.setRefreshFunction("headerClasses",e),e()}setDragSource(e){this.dragSourceElement=e,this.removeDragSource(),!(!e||!this.draggable)&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null)}updateState(){const{menuSvc:e}=this.beans;this.menuEnabled=!!e?.isColumnMenuInHeaderEnabled(this.column),this.openFilterEnabled=!!e?.isFilterMenuInHeaderEnabled(this.column),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}setRefreshFunction(e,t){this.refreshFunctions[e]=t}refresh(){this.updateState(),this.refreshHeaderComp(),this.refreshAria();for(const e of Object.values(this.refreshFunctions))e()}refreshHeaderComp(){const e=this.lookupUserCompDetails();if(!e)return;(this.comp.getUserCompInstance()!=null&&this.userCompDetails.componentClass==e.componentClass?this.attemptHeaderCompRefresh(e.params):!1)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)}attemptHeaderCompRefresh(e){const t=this.comp.getUserCompInstance();return!t||!t.refresh?!1:t.refresh(e)}calculateDisplayName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"header",!0)}checkDisplayName(){this.displayName!==this.calculateDisplayName()&&this.refresh()}workOutDraggable(){const e=this.column.getColDef();return!!(!this.gos.get("suppressMovableColumns")&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot}setupWidth(e){const t=()=>{const i=this.column.getActualWidth();this.comp.setWidth(`${i}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 i=this.column.isFilterActive();this.comp.toggleCss("ag-header-cell-filtered",i),this.refreshAria()};e.addManagedListeners(this.column,{filterActiveChanged:t}),t()}setupWrapTextClass(){const e=()=>{const t=!!this.column.getColDef().wrapHeaderText;this.comp.toggleCss("ag-header-cell-wrap-text",t)};e(),this.setRefreshFunction("wrapText",e)}onHeaderHighlightChanged(){const e=this.column.getHighlighted(),t=e===0,i=e===1;this.comp.toggleCss("ag-header-highlight-before",t),this.comp.toggleCss("ag-header-highlight-after",i)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){const{eGui:e,column:t,comp:i,beans:s}=this,o=Gh(this.beans),n=o.reduce((h,p)=>h+p,0)===0;if(i.toggleCss("ag-header-parent-hidden",n),!t.isSpanHeaderHeight()){e.style.removeProperty("top"),e.style.removeProperty("height"),i.toggleCss("ag-header-span-height",!1),i.toggleCss("ag-header-span-total",!1);return}const{numberOfParents:r,isSpanningTotal:a}=this.column.getColumnGroupPaddingInfo();i.toggleCss("ag-header-span-height",r>0);const l=Vh(s);if(r===0){i.toggleCss("ag-header-span-total",!1),e.style.setProperty("top","0px"),e.style.setProperty("height",`${l}px`);return}i.toggleCss("ag-header-span-total",a);const c=(this.column.getFirstRealParent()?.getLevel()??-1)+1,d=o.length-c;let u=0;for(let h=0;h<d;h++)u+=o[o.length-1-h];e.style.setProperty("top",`${-u}px`),e.style.setProperty("height",`${l+u}px`)}refreshAriaSort(){let e=null;const{beans:t,column:i,comp:s,sortable:o}=this;if(o){const n=this.getLocaleTextFunc(),r=t.sortSvc?.getDisplaySortForColumn(i)??null;s.setAriaSort(NS(r)),e=n("ariaSortableColumn","Press ENTER to sort")}else s.setAriaSort();this.setAriaDescriptionProperty("sort",e)}refreshAriaMenu(){let e=null;this.menuEnabled&&(e=this.getLocaleTextFunc()("ariaMenuColumn","Press ALT DOWN to open column menu")),this.setAriaDescriptionProperty("menu",e)}refreshAriaFilterButton(){let e=null;const{openFilterEnabled:t,gos:i}=this;t&&!zt(i)&&(e=this.getLocaleTextFunc()("ariaFilterColumn","Press CTRL ENTER to open filter")),this.setAriaDescriptionProperty("filterButton",e)}refreshAriaFiltered(){let e=null;this.column.isFilterActive()&&(e=this.getLocaleTextFunc()("ariaColumnFiltered","Column Filtered")),this.setAriaDescriptionProperty("filter",e)}refreshAriaCellSelection(){let e=null;const{gos:t,column:i}=this;dn(t)&&!At(i)&&(e=this.getLocaleTextFunc()("ariaColumnCellSelection","Press Enter to toggle selection for all visible cells in this column")),this.setAriaDescriptionProperty("cellSelection",e)}setAriaDescriptionProperty(e,t){const i=this.ariaDescriptionProperties;t!=null?i.set(e,t):i.delete(e)}announceAriaDescription(){const{beans:e,eGui:t,ariaDescriptionProperties:i}=this;if(!t.contains(Je(e)))return;const s=Array.from(i.keys()).sort((o,n)=>o==="filter"?-1:n.charCodeAt(0)-o.charCodeAt(0)).map(o=>i.get(o)).join(". ");e.ariaAnnounce?.announceValue(s,"columnHeader")}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered(),this.refreshAriaCellSelection()}addColumnHoverListener(e){this.beans.colHover?.addHeaderColumnHoverListener(e,this.comp,this.column)}addActiveHeaderMouseListeners(e){const t=o=>this.handleMouseOverChange(o.type==="mouseenter"),i=()=>{this.setActiveHeader(!0),this.dispatchColumnMouseEvent("columnHeaderClicked",this.column)},s=o=>this.handleContextMenuMouseEvent(o,void 0,this.column);e.addManagedListeners(this.eGui,{mouseenter:t,mouseleave:t,click:i,contextmenu:s})}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 qg(t)?t.getAnchorElementForMenu(e):this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function qg(e){return typeof e?.getAnchorElementForMenu=="function"&&typeof e.onMenuKeyboardShortcut=="function"}var rF=0,vd=class extends B{constructor(e,t,i){super(),this.rowIndex=e,this.pinned=t,this.type=i,this.instanceId=rF++,this.comp=null,this.allCtrls=[];let s="ag-header-row-column";i==="group"?s="ag-header-row-group":i==="filter"&&(s="ag-header-row-filter"),this.headerRowClass=`ag-header-row ${s}`}setRowIndex(e){this.rowIndex=e,this.comp?.setRowIndex(this.getAriaRowIndex()),this.onRowHeightChanged()}postConstruct(){this.isPrintLayout=yt(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return this.comp?this.allCtrls.every(e=>e.eGui!=null):!1}setComp(e,t,i=!0){this.comp=e,t=Ur(this,this.beans.context,t),i&&(this.setRowIndex(this.rowIndex),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(t)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(e){const t=this.onRowHeightChanged.bind(this),i=this.onDisplayedColumnsChanged.bind(this);e.addManagedEventListeners({columnResized:this.setWidth.bind(this),displayedColumnsChanged:i,virtualColumnsChanged:s=>this.onVirtualColumnsChanged(s.afterScroll),columnGroupHeaderHeightChanged:t,columnHeaderHeightChanged:t,stylesChanged:t,advancedFilterEnabledChanged:t}),e.addManagedPropertyListener("domLayout",i),e.addManagedPropertyListener("ensureDomOrder",s=>this.isEnsureDomOrder=s.currentValue),e.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],t)}onDisplayedColumnsChanged(){this.isPrintLayout=yt(this.gos,"print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}setWidth(){if(!this.comp)return;const e=this.getWidthForRow();this.comp.setWidth(`${e}px`)}getWidthForRow(){const{visibleCols:e}=this.beans;return this.isPrintLayout?this.pinned!=null?0:e.getContainerWidth("right")+e.getContainerWidth("left")+e.getContainerWidth(null):e.getContainerWidth(this.pinned)}onRowHeightChanged(){if(!this.comp)return;const{topOffset:e,rowHeight:t}=this.getTopAndHeight();this.comp.setTop(e+"px"),this.comp.setHeight(t+"px")}getTopAndHeight(){let e=0;const t=Gh(this.beans);for(let o=0;o<t.length;o++){if(o===this.rowIndex&&this.type==="group")return{topOffset:e,rowHeight:t[o]};e+=t[o]}const i=Vh(this.beans);if(this.type==="column")return{topOffset:e,rowHeight:i};e+=i;const s=vC(this.beans);return{topOffset:e,rowHeight:s}}onVirtualColumnsChanged(e=!1){if(!this.comp)return;const t=this.getUpdatedHeaderCtrls(),i=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(t,i,e)}getUpdatedHeaderCtrls(){const e=this.ctrlsById;this.ctrlsById=new Map;const t=this.getColumnsInViewport();for(const s of t)this.recycleAndCreateHeaderCtrls(s,this.ctrlsById,e);const i=s=>{const{focusSvc:o,visibleCols:n}=this.beans;return o.isHeaderWrapperFocused(s)?n.isVisible(s.column):!1};if(e)for(const[s,o]of e)i(o)?this.ctrlsById.set(s,o):this.destroyBean(o);return this.allCtrls=Array.from(this.ctrlsById.values()),this.allCtrls}getHeaderCellCtrls(){return this.allCtrls}recycleAndCreateHeaderCtrls(e,t,i){if(e.isEmptyGroup())return;const s=e.getUniqueId();let o;if(i&&(o=i.get(s),i.delete(s)),o&&o.column!=e&&(this.destroyBean(o),o=void 0),o==null)switch(this.type){case"filter":{o=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",!0,e,this));break}case"group":o=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",!0,e,this));break;default:o=this.createBean(new nF(e,this));break}t.set(s,o)}getColumnsInViewport(){if(!this.isPrintLayout)return this.getComponentsToRender();if(this.pinned)return[];const e=[];for(const t of["left",null,"right"])e.push(...this.getComponentsToRender(t));return e}getComponentsToRender(e=this.pinned){return this.type==="group"?this.beans.colViewport.getHeadersToRender(e,this.rowIndex):this.beans.colViewport.getColumnHeadersToRender(e)}focusHeader(e,t){const i=this.allCtrls.find(o=>o.column==e);return i?i.focus(t):!1}destroy(){this.allCtrls=this.destroyBeans(this.allCtrls),this.ctrlsById=void 0,this.comp=null,super.destroy()}},aF=class extends B{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:i,ctrlsSvc:s,colModel:o,colMoves:n}=this.beans;this.setupCenterWidth(),i?.setupHeaderPinnedWidth(this),this.setupDragAndDrop(n,this.eViewport);const r=this.refresh.bind(this,!0);this.addManagedEventListeners({displayedColumnsChanged:r,advancedFilterEnabledChanged:r});const a=`${typeof this.pinned=="string"?this.pinned:"center"}Header`;s.register(a,this),o.ready&&this.refresh()}getAllCtrls(){const e=[...this.groupsRowCtrls];return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e}refresh(e=!1){const{focusSvc:t,filterManager:i,visibleCols:s}=this.beans;let o=0;const n=t.getFocusHeaderToUseAfterRefresh(),r=()=>{const u=s.headerGroupRowCount;o=u,e||(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls));const h=this.groupsRowCtrls.length;if(h!==u){if(h>u){for(let p=u;p<h;p++)this.destroyBean(this.groupsRowCtrls[p]);this.groupsRowCtrls.length=u;return}for(let p=h;p<u;p++){const m=this.createBean(new vd(p,this.pinned,"group"));this.groupsRowCtrls.push(m)}}},a=()=>{const u=o++;if(this.hidden){this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl);return}this.columnsRowCtrl==null||!e?(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.columnsRowCtrl=this.createBean(new vd(u,this.pinned,"column"))):this.columnsRowCtrl.rowIndex!==u&&this.columnsRowCtrl.setRowIndex(u)},l=()=>{this.includeFloatingFilter=!!i?.hasFloatingFilters()&&!this.hidden;const u=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter){u();return}e||u();const h=o++;this.filtersRowCtrl?this.filtersRowCtrl.rowIndex!==h&&this.filtersRowCtrl.setRowIndex(h):this.filtersRowCtrl=this.createBean(new vd(h,this.pinned,"filter"))},c=this.getAllCtrls();r(),a(),l();const d=this.getAllCtrls();this.comp.setCtrls(d),this.restoreFocusOnHeader(t,n),c.length!==d.length&&this.beans.eventSvc.dispatchEvent({type:"headerRowsChanged"})}getHeaderCtrlForColumn(e){const t=i=>i?.getHeaderCellCtrls().find(s=>s.column===e);if(Es(e))return t(this.columnsRowCtrl);if(this.groupsRowCtrls.length!==0)for(let i=0;i<this.groupsRowCtrls.length;i++){const s=t(this.groupsRowCtrls[i]);if(s)return s}}getHtmlElementForColumnHeader(e){return this.getHeaderCtrlForColumn(e)?.eGui??null}getRowType(e){return this.getAllCtrls()[e]?.type}focusHeader(e,t,i){const o=this.getAllCtrls()[e];return o?o.focusHeader(t,i):!1}getGroupRowCount(){return this.groupsRowCtrls.length}getGroupRowCtrlAtIndex(e){return this.groupsRowCtrls[e]}getRowCount(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)}setHorizontalScroll(e){this.comp.setViewportScrollLeft(e)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}destroy(){this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl),this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls),super.destroy()}setupDragAndDrop(e,t){const i=e?.createBodyDropTarget(this.pinned,t);i&&this.createManagedBean(i)}restoreFocusOnHeader(e,t){if(!t)return;const{column:i}=t;i.getPinned()==this.pinned&&e.focusHeaderPosition({headerPosition:t,scroll:!1})}setupCenterWidth(){this.pinned==null&&this.createManagedBean(new zh(e=>this.comp.setCenterWidth(`${e}px`),!0))}},il={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"},_h=class extends B{constructor(e){super(),this.view=e}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){const e=this.gos.get("domLayout"),t={autoHeight:e==="autoHeight",normal:e==="normal",print:e==="print"},i=t.autoHeight?il.AUTO_HEIGHT:t.print?il.PRINT:il.NORMAL;this.view.updateLayoutClasses(i,t)}},yC=class extends ot{constructor(e,t){super(),this.direction=t,this.eViewport=de,this.eContainer=de,this.hideTimeout=0,this.setTemplate(e)}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.toggleCss("ag-apple-scrollbar",rC()||so())}destroy(){super.destroy(),window.clearTimeout(this.hideTimeout)}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=lC(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){const e=this.getGui(),t=()=>this.toggleCss("ag-scrollbar-active",!0),i=()=>this.toggleCss("ag-scrollbar-active",!1);this.addManagedListeners(e,{mouseenter:t,mousedown:t,touchstart:t,mouseleave:i,touchend:i})}onScrollVisibilityChanged(){this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),os(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;v2(this,()=>yi(t),()=>this.setScrollPosition(e),100)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}},lF={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"}]},cF=class extends yC{constructor(){super(lF,"horizontal"),this.eLeftSpacer=de,this.eRightSpacer=de,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 zh(t=>this.eContainer.style.width=`${t}px`)),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}destroy(){window.clearTimeout(this.setScrollVisibleDebounce),super.destroy()}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.enableRtl=this.gos.get("enableRtl"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}refreshCompBottom(){if(!this.invisibleScrollbar)return;const e=this.beans.pinnedRowModel?.getPinnedBottomTotalHeight()??0;this.getGui().style.bottom=`${e}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){const e=this.scrollVisibleSvc.verticalScrollShowing;let t=this.visibleCols.getDisplayedColumnsRightWidth();const i=!this.enableRtl&&e,s=this.scrollVisibleSvc.getScrollbarWidth();i&&(t+=s),Li(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=s);let o=this.visibleCols.getColsLeftWidth();this.enableRtl&&e&&(o+=s),Li(this.eLeftSpacer,o),this.eLeftSpacer.classList.toggle("ag-scroller-corner",o<=s)}setScrollVisible(){const e=this.scrollVisibleSvc.horizontalScrollShowing,t=this.invisibleScrollbar,i=this.gos.get("suppressHorizontalScroll"),s=e&&this.scrollVisibleSvc.getScrollbarWidth()||0,n=i?0:s===0&&t?16:s,r=()=>{this.setScrollVisibleDebounce=0,this.toggleCss("ag-scrollbar-invisible",t),pr(this.getGui(),n),pr(this.eViewport,n),pr(this.eContainer,n),n||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 fl(this.eViewport,this.enableRtl)}setScrollPosition(e){yi(this.eViewport)||this.attemptSettingScrollPosition(e),ml(this.eViewport,e,this.enableRtl)}},SC=class extends B{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,i=t!=null?`${t}px`:"";this.eContainer.style.height=i,this.eViewport&&(this.eViewport.style.height=i)}},dF={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"}]}]},uF=class extends yC{constructor(){super(dF,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new SC(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,i=this.invisibleScrollbar,s=t&&e.getScrollbarWidth()||0,o=s===0&&i?16:s;this.toggleCss("ag-scrollbar-invisible",i),Li(this.getGui(),o),Li(this.eViewport,o),Li(this.eContainer,o),this.setDisplayed(t,{skipAriaHidden:!0})}onRowContainerHeightChanged(e){const i=e.getGridBodyCtrl().eBodyViewport,s=this.getScrollPosition(),o=i.scrollTop;s!=o&&this.setScrollPosition(o,!0)}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(e,t){!t&&!yi(this.eViewport)&&this.attemptSettingScrollPosition(e),this.eViewport.scrollTop=e}},us="Viewport",Kg="fakeVScrollComp",Cd=["fakeHScrollComp","centerHeader","topCenter","bottomCenter","stickyTopCenter","stickyBottomCenter"],Yg=100,wd=150,hF=class extends B{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=ct(this,()=>this.lastScrollSource[1]=null,wd),this.resetLastVScrollDebounced=ct(this,()=>this.lastScrollSource[0]=null,wd)}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,i=>{this.centerRowsCtrl=i.center,this.fakeVScrollComp=i.fakeVScrollComp,this.fakeHScrollComp=i.fakeHScrollComp,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()})}invalidateHorizontalScroll(){this.isHorizontalPositionInvalidated=!0}invalidateVerticalScroll(){this.isVerticalPositionInvalidated=!0}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.centerRowsCtrl.eViewport,{scroll:this.onHScroll.bind(this,us)});for(const e of Cd){const t=this.ctrlsSvc.get(e);this.registerScrollPartner(t,this.onHScroll.bind(this,e))}}addVerticalScrollListeners(){const e=this.gos.get("debounceVerticalScrollbar"),t=e?ct(this,this.onVScroll.bind(this,us),Yg):this.onVScroll.bind(this,us),i=e?ct(this,this.onVScroll.bind(this,Kg),Yg):this.onVScroll.bind(this,Kg);this.addManagedElementListeners(this.eBodyViewport,{scroll:t}),this.registerScrollPartner(this.fakeVScrollComp,i)}registerScrollPartner(e,t){e.onScrollCallback(t)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(e){this.centerRowsCtrl!=null&&(e===void 0&&(e=this.centerRowsCtrl.getCenterViewportScrollLeft()),this.setScrollLeftForAllContainersExceptCurrent(Math.abs(e)))}setScrollLeftForAllContainersExceptCurrent(e){for(const t of[...Cd,us]){if(this.lastScrollSource[1]===t)continue;const i=this.getViewportForSource(t);ml(i,e,this.enableRtl)}}getViewportForSource(e){return e===us?this.centerRowsCtrl.eViewport:this.ctrlsSvc.get(e).eViewport}isControllingScroll(e,t){return this.lastScrollSource[t]==null?(t===0?this.lastScrollSource[0]=e:this.lastScrollSource[1]=e,!0):this.lastScrollSource[t]===e}onHScroll(e){if(!this.isControllingScroll(e,1))return;const t=this.centerRowsCtrl.eViewport,{scrollLeft:i}=t;if(this.shouldBlockScrollUpdate(1,i,!0))return;const s=fl(this.getViewportForSource(e),this.enableRtl);this.doHorizontalScroll(s),this.resetLastHScrollDebounced()}onVScroll(e){if(!this.isControllingScroll(e,0))return;const t=e===us?this.eBodyViewport.scrollTop:this.fakeVScrollComp.getScrollPosition();let i=t;if(this.shouldBlockScrollUpdate(0,i,!0))return;e===us?this.fakeVScrollComp.setScrollPosition(i):(this.eBodyViewport.scrollTop=t,i=this.eBodyViewport.scrollTop,this.invalidateVerticalScroll(),i!==t&&this.fakeVScrollComp.setScrollPosition(i,!0));const{animationFrameSvc:s}=this;s?.setScrollTop(i),this.nextScrollTop=i,s?.active?s.schedule():this.scrollGridIfNeeded(!0),this.resetLastVScrollDebounced()}doHorizontalScroll(e){const t=this.fakeHScrollComp.getScrollPosition();this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}isScrolling(){return this.isScrollActive}fireScrollEvent(e){const t={type:"bodyScroll",direction:e===1?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.isScrollActive=!0,this.eventSvc.dispatchEvent(t),window.clearTimeout(this.scrollTimer),this.scrollTimer=window.setTimeout(()=>{this.scrollTimer=0,this.isScrollActive=!1,this.eventSvc.dispatchEvent({...t,type:"bodyScrollEnd"})},wd)}shouldBlockScrollUpdate(e,t,i=!1){return i&&!so()?!1:e===0?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t)}shouldBlockVerticalScroll(e){const t=Ch(this.eBodyViewport),{scrollHeight:i}=this.eBodyViewport;return e<0||e+t>i}shouldBlockHorizontalScroll(e){const t=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:i}=this.centerRowsCtrl.eViewport;if(this.enableRtl){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>i}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){const e=this.scrollLeft;let t=!1;for(const i of Cd)if(this.getViewportForSource(i).scrollLeft!==e){t=!0;break}t&&this.onHScroll(us)}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 s=this.centerRowsCtrl.eViewport.scrollWidth-this.centerRowsCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(1,e)&&(this.enableRtl?e=e>0?0:s:e=Math.min(Math.max(e,0),s)),ml(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:i,lastScrollTop:s}=this;return{top:s,bottom:s+i}}this.isVerticalPositionInvalidated=!1;const{scrollTop:e,offsetHeight:t}=this.eBodyViewport;return this.lastScrollTop=e,this.lastOffsetHeight=t,{top:e,bottom:e+t}}getApproximateVScollPosition(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()}getHScrollPosition(){return this.centerRowsCtrl.getHScrollPosition()}isHorizontalScrollShowing(){return this.isHorizontalPositionInvalidated&&(this.lastIsHorizontalScrollShowing=this.centerRowsCtrl.isHorizontalScrollShowing(),this.isHorizontalPositionInvalidated=!1),this.lastIsHorizontalScrollShowing}scrollHorizontally(e){const t=this.centerRowsCtrl.eViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowsCtrl.eViewport.scrollLeft-t}scrollToTop(){this.setVerticalScrollPosition(0)}ensureNodeVisible(e,t=null){const{rowModel:i}=this.beans,s=i.getRowCount();let o=-1;for(let n=0;n<s;n++){const r=i.getRow(n);if(typeof e=="function"){if(r&&e(r)){o=n;break}}else if(e===r||e===r.data){o=n;break}}o>=0&&this.ensureIndexVisible(o,t)}ensureIndexVisible(e,t,i=0){if(yt(this.gos,"print"))return;const{rowModel:s}=this.beans,o=s.getRowCount();if(typeof e!="number"||e<0||e>=o){$(88,{index:e});return}this.clearRetryListeners();const{frameworkOverrides:n,pageBounds:r,rowContainerHeight:a,rowRenderer:l}=this.beans;n.wrapIncoming(()=>{const c=this.ctrlsSvc.getGridBodyCtrl(),d=s.getRow(e);let u,h,p=0;this.invalidateVerticalScroll();do{const{stickyTopHeight:m,stickyBottomHeight:v}=c,C=d.rowTop,w=d.rowHeight,b=r.getPixelOffset(),x=d.rowTop-b,y=x+d.rowHeight,S=this.getVScrollPosition(),E=a.divStretchOffset,R=S.top+E,F=S.bottom+E,D=F-R,T=a.getScrollPositionForPixel(x),P=a.getScrollPositionForPixel(y-D),k=Math.min((T+P)/2,x),O=R+m>x,_=F-v<y;let L=null;t==="top"?L=T-m:t==="bottom"?L=P+v:t==="middle"?L=k:O?L=T-m:_&&(P-T>D?L=T-m:L=P+v),L!==null&&(this.setVerticalScrollPosition(L),l.redraw({afterScroll:!0})),u=C!==d.rowTop||w!==d.rowHeight,h=m!==c.stickyTopHeight||v!==c.stickyBottomHeight,p++}while((u||h)&&p<10);if(this.animationFrameSvc?.flushAllFrames(),i<10&&(d?.stub||!this.beans.rowAutoHeight?.areRowsMeasured())){const m=this.getVScrollPosition().top;this.clearRetryListenerFncs=this.addManagedEventListeners({bodyScroll:()=>{const v=this.getVScrollPosition().top;m!==v&&this.clearRetryListeners()},modelUpdated:()=>{this.clearRetryListeners(),!(e>=s.getRowCount())&&this.ensureIndexVisible(e,t,i+1)}})}})}clearRetryListeners(){for(const e of this.clearRetryListenerFncs)e();this.clearRetryListenerFncs=[]}ensureColumnVisible(e,t="auto"){const{colModel:i,frameworkOverrides:s}=this.beans,o=i.getCol(e);if(!o||o.isPinned()||!this.visibleCols.isColDisplayed(o))return;const n=this.getPositionedHorizontalScroll(o,t);s.wrapIncoming(()=>{n!==null&&this.centerRowsCtrl.setCenterViewportScrollLeft(n),this.centerRowsCtrl.onHorizontalViewportChanged(),this.animationFrameSvc?.flushAllFrames()})}getPositionedHorizontalScroll(e,t){const{columnBeforeStart:i,columnAfterEnd:s}=this.isColumnOutsideViewport(e),o=this.centerRowsCtrl.getCenterWidth()<e.getActualWidth(),n=this.centerRowsCtrl.getCenterWidth(),r=this.enableRtl;let a=(r?i:s)||o,l=r?s:i;t!=="auto"&&(a=t==="start",l=t==="end");const c=t==="middle";if(a||l||c){const{colLeft:d,colMiddle:u,colRight:h}=this.getColumnBounds(e);return c?u-n/2:a?r?h:d:r?d-n:h-n}return null}isColumnOutsideViewport(e){const{start:t,end:i}=this.getViewportBounds(),{colLeft:s,colRight:o}=this.getColumnBounds(e),n=this.enableRtl,r=n?t>o:i<o,a=n?i<s:t>s;return{columnBeforeStart:r,columnAfterEnd:a}}getColumnBounds(e){const t=this.enableRtl,i=this.visibleCols.bodyWidth,s=e.getActualWidth(),o=e.getLeft(),n=t?-1:1,r=t?i-o:o,a=r+s*n,l=r+s/2*n;return{colLeft:r,colMiddle:l,colRight:a}}getViewportBounds(){const e=this.centerRowsCtrl.getCenterWidth(),t=this.centerRowsCtrl.getCenterViewportScrollLeft(),i=t,s=e+t;return{start:i,end:s,width:e}}},Zg={horizontal:{overflow:e=>e.scrollWidth-e.clientWidth,scrollSize:e=>e.scrollWidth,clientSize:e=>e.clientWidth,opposite:"vertical"},vertical:{overflow:e=>e.scrollHeight-e.clientHeight,scrollSize:e=>e.scrollHeight,clientSize:e=>e.clientHeight,opposite:"horizontal"}};function pF(e,t,i=Mh()||0,s,o){return RC(e,t,"horizontal",i,s,o)}function gF(e,t,i=Mh()||0,s,o){return RC(e,t,"vertical",i,s,o)}function RC(e,t,i,s,o,n){const r=Zg[i],a=Zg[r.opposite],l=o?yi(o):!0,c=n?yi(n):!0,d=r.overflow(e);if(d<=0)return!1;if(!t||s===0)return!0;const u=a.overflow(t);if(u<=0)return!0;if(d<=s){if(l&&c&&fF({candidateOverflow:u,candidateScrollSize:a.scrollSize(t),candidateClientSize:a.clientSize(t),scrollbarWidth:s}))return!1;const h=r.clientSize(e)+s;return r.scrollSize(e)<=h}return!0}function fF({candidateOverflow:e,candidateScrollSize:t,candidateClientSize:i,scrollbarWidth:s}){if(e<=0||e>s)return!1;const o=i+s;return t>i&&t<=o}var mF=class extends B{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:i}=this,s=()=>{os(e,()=>{this.onCenterViewportResized()})};t.registerViewportResizeListener(s),i.registerBodyViewportResizeListener(s)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleSvc.updateScrollGap(),this.centerContainerCtrl.isViewportInTheDOMTree()){const{pinnedCols:e,colFlex:t}=this.beans;e?.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();const i=this.centerContainerCtrl.getCenterWidth();i!==this.centerWidth&&(this.centerWidth=i,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=Ch(e);this.bodyHeight!==t&&(this.bodyHeight=t,this.eventSvc.dispatchEvent({type:"bodyHeightChanged"}))}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){if(!this.isAlive())return;const e={horizontalScrollShowing:this.centerContainerCtrl.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleSvc.setScrollsVisible(e)}onHorizontalViewportChanged(){const{centerContainerCtrl:e,beans:t}=this,i=e.getCenterWidth(),s=e.getViewportScrollLeft();t.colViewport.setScrollPosition(i,s)}};function FC(e){return e.altKey||e.ctrlKey||e.metaKey?!1:e.key?.length===1}function sl(e,t,i,s){const o=t.getColDef().cellRendererParams?.suppressMouseEventHandling;return EC(e,t,i,s,o)}function vF(e,t,i,s){const o=t?.suppressMouseEventHandling;return EC(e,void 0,i,s,o)}function EC(e,t,i,s,o){return o?o(xe(e,{column:t,node:i,event:s})):!1}function DC(e,t,i){let s=t;for(;s;){const o=Vv(e,s,i);if(o)return o;s=s.parentElement}return null}var kl="cellCtrl";function Uh(e,t){return DC(e,t,kl)}var Il="renderedRow";function CF(e,t){return DC(e,t,Il)}function Pu(e,t,i,s,o){const n=s?s.getColDef().suppressKeyboardEvent:void 0;if(!n)return!1;const r=xe(e,{event:t,editing:o,column:s,node:i,data:i.data,colDef:s.getColDef()});return!!(n&&n(r))}function wF(e){const{pinnedRowModel:t,rowModel:i,rangeSvc:s,visibleCols:o}=e;if(!s||o.allCols.length===0)return;const n=t?.isEmpty("top")??!0,r=t?.isEmpty("bottom")??!0,a=n?null:"top";let l,c;r?(l=null,c=i.getRowCount()-1):(l="bottom",c=t?.getPinnedBottomRowCount()??-1),s.setCellRange({rowStartIndex:0,rowStartPinned:a,rowEndIndex:c,rowEndPinned:l})}var bF=class extends B{constructor(e){super(),this.element=e}postConstruct(){this.addKeyboardListeners(),this.addMouseListeners(),this.beans.touchSvc?.mockRowContextMenu(this),this.editSvc=this.beans.editSvc}addKeyboardListeners(){const e="keydown",t=this.processKeyboardEvent.bind(this,e);this.addManagedElementListeners(this.element,{[e]:t})}addMouseListeners(){let e="mousedown";Cl("pointerdown")?e="pointerdown":Cl("touchstart")&&(e="touchstart");const t=["dblclick","contextmenu","mouseover","mouseout","click",e];for(const i of t){const s=this.processMouseEvent.bind(this,i);this.addManagedElementListeners(this.element,{[i]:s})}}processMouseEvent(e,t){if(!kr(this.beans,t)||Xi(t))return;const{cellCtrl:i,rowCtrl:s}=this.getControlsForEventTarget(t.target);e==="contextmenu"?(i?.column&&i.dispatchCellContextMenuEvent(t),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(t,void 0,s,i)):(i&&i.onMouseEvent(e,t),s&&s.onMouseEvent(e,t))}getControlsForEventTarget(e){const{gos:t}=this;return{cellCtrl:Uh(t,e),rowCtrl:CF(t,e)}}processKeyboardEvent(e,t){const{cellCtrl:i,rowCtrl:s}=this.getControlsForEventTarget(t.target);t.defaultPrevented||(i?this.processCellKeyboardEvent(i,e,t):s?.isFullWidth()&&this.processFullWidthRowKeyboardEvent(s,e,t))}processCellKeyboardEvent(e,t,i){const s=this.editSvc?.isEditing(e,{withOpenEditor:!0})??!1;!Pu(this.gos,i,e.rowNode,e.column,s)&&t==="keydown"&&(!s&&this.beans.navigation?.handlePageScrollingKey(i)||e.onKeyDown(i),this.doGridOperations(i,s),FC(i)&&e.processCharacter(i)),t==="keydown"&&this.eventSvc.dispatchEvent(e.createEvent(i,"cellKeyDown"))}processFullWidthRowKeyboardEvent(e,t,i){const{rowNode:s}=e,{focusSvc:o,navigation:n}=this.beans,a=o.getFocusedCell()?.column;if(!Pu(this.gos,i,s,a,!1)){const c=i.key;if(t==="keydown")switch(c){case A.PAGE_HOME:case A.PAGE_END:case A.PAGE_UP:case A.PAGE_DOWN:n?.handlePageScrollingKey(i,!0);break;case A.LEFT:case A.RIGHT:if(!this.gos.get("embedFullWidthRows"))break;case A.UP:case A.DOWN:e.onKeyboardNavigate(i);break;case A.TAB:e.onTabKeyDown(i);break}}t==="keydown"&&this.eventSvc.dispatchEvent(e.createRowEvent("cellKeyDown",i))}doGridOperations(e,t){if(!e.ctrlKey&&!e.metaKey||t||!kr(this.beans,e))return;const i=Jv(e),{clipboardSvc:s,undoRedo:o}=this.beans;if(i===A.A)return this.onCtrlAndA(e);if(i===A.C)return this.onCtrlAndC(s,e);if(i===A.D)return this.onCtrlAndD(s,e);if(i===A.V)return this.onCtrlAndV(s,e);if(i===A.X)return this.onCtrlAndX(s,e);if(i===A.Y)return this.onCtrlAndY(o);if(i===A.Z)return this.onCtrlAndZ(o,e)}onCtrlAndA(e){const{beans:{rowModel:t,rangeSvc:i,selectionSvc:s},gos:o}=this;i&&Fs(o)&&!$2(o)&&t.isRowsToRender()?wF(this.beans):s&&s.selectAllRowNodes({source:"keyboardSelectAll",selectAll:$v(o)}),e.preventDefault()}onCtrlAndC(e,t){if(!e||this.gos.get("enableCellTextSelection"))return;const{cellCtrl:i}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(i,{withOpenEditor:!0})||(t.preventDefault(),e.copyToClipboard())}onCtrlAndX(e,t){if(!e||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;const{cellCtrl:i}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(i,{withOpenEditor:!0})||(t.preventDefault(),e.cutToClipboard(void 0,"ui"))}onCtrlAndV(e,t){const{cellCtrl:i}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(i,{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")}},Aa=e=>e.topRowCtrls,La=e=>e.getStickyTopRowCtrls(),Oa=e=>e.getStickyBottomRowCtrls(),Na=e=>e.bottomRowCtrls,Ha=e=>e.allRowCtrls,bd=e=>e.getCtrls("top"),xd=e=>e.getCtrls("center"),yd=e=>e.getCtrls("bottom"),xF={center:{type:"center",name:"center-cols",getRowCtrls:Ha,getSpannedRowCtrls:xd},left:{type:"left",name:"pinned-left-cols",pinnedType:"left",getRowCtrls:Ha,getSpannedRowCtrls:xd},right:{type:"right",name:"pinned-right-cols",pinnedType:"right",getRowCtrls:Ha,getSpannedRowCtrls:xd},fullWidth:{type:"fullWidth",name:"full-width",fullWidth:!0,getRowCtrls:Ha},topCenter:{type:"center",name:"floating-top",getRowCtrls:Aa,getSpannedRowCtrls:bd},topLeft:{type:"left",name:"pinned-left-floating",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:Aa,getSpannedRowCtrls:bd},topRight:{type:"right",name:"pinned-right-floating",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:Aa,getSpannedRowCtrls:bd},topFullWidth:{type:"fullWidth",name:"floating-top-full-width",fullWidth:!0,getRowCtrls:Aa},stickyTopCenter:{type:"center",name:"sticky-top",getRowCtrls:La},stickyTopLeft:{type:"left",name:"pinned-left-sticky-top",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:La},stickyTopRight:{type:"right",name:"pinned-right-sticky-top",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:La},stickyTopFullWidth:{type:"fullWidth",name:"sticky-top-full-width",fullWidth:!0,getRowCtrls:La},stickyBottomCenter:{type:"center",name:"sticky-bottom",getRowCtrls:Oa},stickyBottomLeft:{type:"left",name:"pinned-left-sticky-bottom",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:Oa},stickyBottomRight:{type:"right",name:"pinned-right-sticky-bottom",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:Oa},stickyBottomFullWidth:{type:"fullWidth",name:"sticky-bottom-full-width",fullWidth:!0,getRowCtrls:Oa},bottomCenter:{type:"center",name:"floating-bottom",getRowCtrls:Na,getSpannedRowCtrls:yd},bottomLeft:{type:"left",name:"pinned-left-floating-bottom",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:Na,getSpannedRowCtrls:yd},bottomRight:{type:"right",name:"pinned-right-floating-bottom",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:Na,getSpannedRowCtrls:yd},bottomFullWidth:{type:"fullWidth",name:"floating-bottom-full-width",fullWidth:!0,getRowCtrls:Na}};function PC(e){return`ag-${$r(e).name}-viewport`}function TC(e){const t=$r(e);return t.container??`ag-${t.name}-container`}function yF(e){return`ag-${$r(e).name}-spanned-cells-container`}function $r(e){return xF[e]}var SF=["topCenter","topLeft","topRight"],RF=["bottomCenter","bottomLeft","bottomRight"],FF=["center","left","right"],EF=["center","left","right","fullWidth"],DF=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],PF=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],TF=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],kC=["stickyTopCenter","stickyTopLeft","stickyTopRight"],IC=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],kF=[...kC,"stickyTopFullWidth",...IC,"stickyBottomFullWidth"],IF=[...SF,...RF,...FF,...kC,...IC],MF=class extends B{constructor(e){super(),this.name=e,this.visible=!0,this.EMPTY_CTRLS=[],this.options=$r(e)}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],()=>{this.viewportSizeFeature=this.createManagedBean(new mF(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,i,s){this.comp=e,this.eContainer=t,this.eSpannedContainer=i,this.eViewport=s,this.createManagedBean(new bF(this.eViewport??this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();const{pinnedCols:o,rangeSvc:n}=this.beans,r=()=>this.onPinnedWidthChanged();this.forContainers(PF,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(o?.createPinnedWidthFeature(!0,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({leftPinnedWidthChanged:r})}),this.forContainers(TF,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(o?.createPinnedWidthFeature(!1,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({rightPinnedWidthChanged:r})}),this.forContainers(EF,()=>this.createManagedBean(new SC(this.eContainer,this.name==="center"?s:void 0))),n&&this.forContainers(IF,()=>this.createManagedBean(n.createDragListenerFeature(this.eContainer))),this.forContainers(DF,()=>this.createManagedBean(new zh(a=>this.comp.setContainerWidth(`${a}px`)))),this.visible=this.isContainerVisible(),this.addListeners(),this.registerWithCtrlsService()}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}addListeners(){const{spannedRowRenderer:e,gos:t}=this.beans,i=this.onDisplayedColumnsChanged.bind(this);this.addManagedEventListeners({displayedColumnsChanged:i,displayedColumnsWidthChanged:i,displayedRowsChanged:s=>this.onDisplayedRowsChanged(s.afterScroll)}),i(),this.onDisplayedRowsChanged(),e&&this.options.getSpannedRowCtrls&&t.get("enableCellSpan")&&this.addManagedListeners(e,{spannedRowsUpdated:()=>{const s=this.options.getSpannedRowCtrls(e);s&&this.comp.setSpannedRowCtrls(s,!1)}})}listenOnDomOrder(){if(kF.indexOf(this.name)>=0){this.comp.setDomOrder(!0);return}const t=()=>{const i=this.gos.get("ensureDomOrder"),s=yt(this.gos,"print");this.comp.setDomOrder(i||s)};this.addManagedPropertyListener("domLayout",t),t()}onDisplayedColumnsChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}addPreventScrollWhileDragging(){const{dragSvc:e}=this.beans;if(!e)return;const t=i=>{e.dragging&&i.cancelable&&i.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc(()=>this.eContainer.removeEventListener("touchmove",t))}onHorizontalViewportChanged(e=!1){const t=this.getCenterWidth(),i=this.getCenterViewportScrollLeft();this.beans.colViewport.setScrollPosition(t,i,e)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return Pr(this.eViewport)}getCenterViewportScrollLeft(){return fl(this.eViewport,this.enableRtl)}registerViewportResizeListener(e){const t=ss(this.beans,this.eViewport,e);this.addDestroyFunc(()=>t())}isViewportInTheDOMTree(){return Cv(this.eViewport)}getViewportScrollLeft(){return fl(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){const{beans:e,gos:t,eViewport:i}=this,s=t.get("alwaysShowHorizontalScroll"),{ctrlsSvc:o}=e,n=o.getGridBodyCtrl()?.eBodyViewport,r=o.get("fakeHScrollComp")?.getGui(),a=o.get("fakeVScrollComp")?.getGui();return s||pF(i,n,void 0,r,a)}setHorizontalScroll(e){this.comp.setHorizontalScroll(e)}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(e){ml(this.eViewport,e,this.enableRtl)}isContainerVisible(){return!(this.options.pinnedType!=null)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){const e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(e=!1){const t=this.options.getRowCtrls(this.beans.rowRenderer);if(!this.visible||t.length===0){this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});return}const i=yt(this.gos,"print"),o=this.gos.get("embedFullWidthRows")||i,n=t.filter(r=>{const a=r.isFullWidth();return this.options.fullWidth?!o&&a:o||!a});this.comp.setRowCtrls({rowCtrls:n,useFlushSync:e})}},AF="ag-force-vertical-scroll",LF="ag-selectable",OF="ag-column-moving",NF=class extends B{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,i,s,o,n,r){this.comp=e,this.eGridBody=t,this.eBodyViewport=i,this.eTop=s,this.eBottom=o,this.eStickyTop=n,this.eStickyBottom=r,this.eCenterColsViewport=i.querySelector(`.${PC("center")}`),this.eFullWidthContainer=i.querySelector(`.${TC("fullWidth")}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",a=>this.setCellTextSelection(a.currentValue)),this.createManagedBean(new _h(this.comp)),this.scrollFeature=this.createManagedBean(new hF(i)),this.beans.rowDragSvc?.setupRowDrag(i,this),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([s,i,o,n,r]),this.setGridRootRole(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),this.filterManager?.setupAdvFilterHeaderComp(s),this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){const e=this.setFloatingHeights.bind(this),t=this.setGridRootRole.bind(this),i=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:i,rowResizeEnded:i}),this.addManagedPropertyListener("treeData",t)}toggleRowResizeStyles(e){const t=e.type==="rowResizeStarted";this.eBodyViewport.classList.toggle("ag-prevent-animation",t)}onGridColumnsChanged(){const e=this.beans.colModel.getCols();this.comp.setColumnCount(e.length)}onScrollVisibilityChanged(){const{scrollVisibleSvc:e}=this,t=e.verticalScrollShowing;this.setVerticalScrollPaddingVisible(t),this.setStickyWidth(t),this.setStickyBottomOffsetBottom();const i=t&&e.getScrollbarWidth()||0,s=lC()?16:0,o=`calc(100% + ${i+s}px)`;os(this.beans,()=>this.comp.setBodyViewportWidth(o)),this.updateScrollingClasses()}setGridRootRole(){const{rowGroupColsSvc:e,colModel:t,gos:i}=this;let s=i.get("treeData");if(!s){const o=t.isPivotMode();s=(e?e.columns.length:0)>=(o?2:1)}this.comp.setGridRootRole(s?"treegrid":"grid")}addFocusListeners(e){for(const t of e)this.addManagedElementListeners(t,{focusin:i=>{const{target:s}=i,o=Js(s,"ag-root",t);t.classList.toggle("ag-has-focus",!o)},focusout:i=>{const{target:s,relatedTarget:o}=i,n=t.contains(o),r=Js(o,"ag-root",t);Js(s,"ag-root",t)||(!n||r)&&t.classList.remove("ag-has-focus")}})}setColumnMovingCss(e){this.comp.setColumnMovingCss(OF,e)}setCellTextSelection(e=!1){this.comp.setCellSelectableCss(LF,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,i=t.isLastRowIndexKnown()?t.getRowCount():-1,s=i===-1?-1:e+i;this.comp.setRowCount(s)}registerBodyViewportResizeListener(e){this.comp.registerBodyViewportResizeListener(e)}setVerticalScrollPaddingVisible(e){const t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)}isVerticalScrollShowing(){const{gos:e,comp:t,ctrlsSvc:i}=this,s=e.get("alwaysShowVerticalScroll"),o=s?AF:null,n=yt(e,"normal");t.setAlwaysVerticalScrollClass(o,s);const r=i.get("center")?.eViewport,a=i.get("fakeHScrollComp")?.getGui(),l=i.get("fakeVScrollComp")?.getGui();return s||n&&gF(this.eBodyViewport,r,void 0,l,a)}setupRowAnimationCssClass(){const{rowContainerHeight:e,environment:t}=this.beans;let i=t.sizesMeasured;const s=()=>{const o=i&&ln(this.gos)&&!e.stretching,n=o?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(n,o)};s(),this.addManagedEventListeners({heightScaleChanged:s}),this.addManagedPropertyListener("animateRows",s),this.addManagedEventListeners({stylesChanged:()=>{!i&&t.sizesMeasured&&(i=!0,s())}})}addBodyViewportListener(){const{eBodyViewport:e,eStickyTop:t,eStickyBottom:i,eTop:s,eBottom:o,beans:{popupSvc:n,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,n)});const l=this.onStickyWheel.bind(this);for(const d of[t,i,s,o])this.addManagedElementListeners(d,{wheel:l});const c=this.onHorizontalWheel.bind(this);for(const d of["left","right","topLeft","topRight","bottomLeft","bottomRight"])this.addManagedElementListeners(this.ctrlsSvc.get(d).eContainer,{wheel:c});this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:e=>this.onFullWidthContainerWheel(e)})}onFullWidthContainerWheel(e){const{deltaX:t,deltaY:i,shiftKey:s}=e;(s||Math.abs(t)>Math.abs(i))&&kr(this.beans,e)&&this.scrollGridBodyToMatchEvent(e)}onStickyWheel(e){const{deltaY:t}=e;this.scrollVertically(t)>0&&e.preventDefault()}onHorizontalWheel(e){const{deltaX:t,deltaY:i,shiftKey:s}=e;(s||Math.abs(t)>Math.abs(i))&&this.scrollGridBodyToMatchEvent(e)}scrollGridBodyToMatchEvent(e){const{deltaX:t,deltaY:i}=e;e.preventDefault(),this.eCenterColsViewport.scrollBy({left:t||i})}onBodyViewportContextMenu(e,t,i){if(!e&&!i)return;this.gos.get("preventDefaultOnContextMenu")&&(e||i).preventDefault();const{target:s}=e||t;(s===this.eBodyViewport||s===this.ctrlsSvc.get("center").eViewport)&&this.beans.contextMenuSvc?.showContextMenu({mouseEvent:e,touchEvent:i,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,i=e?.getPinnedTopTotalHeight(),s=e?.getPinnedBottomTotalHeight(),o=t.getPinnedRowBorderWidth(),n=t.getRowBorderWidth(),r=o-n,a=i?r+i:0,l=s?r+s:0;this.comp.setTopHeight(a),this.comp.setBottomHeight(l),this.comp.setTopInvisible(a<=0),this.comp.setBottomInvisible(l<=0),this.setStickyTopOffsetTop(),this.setStickyBottomOffsetBottom()}setStickyTopHeight(e=0){this.comp.setStickyTopHeight(`${e}px`),this.stickyTopHeight=e}setStickyBottomHeight(e=0){this.comp.setStickyBottomHeight(`${e}px`),this.stickyBottomHeight=e}setStickyWidth(e){if(!e)this.comp.setStickyTopWidth("100%"),this.comp.setStickyBottomWidth("100%");else{const t=this.scrollVisibleSvc.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${t}px)`),this.comp.setStickyBottomWidth(`calc(100% - ${t}px)`)}}setStickyTopOffsetTop(){const t=this.ctrlsSvc.get("gridHeaderCtrl").headerHeight+(this.filterManager?.getHeaderHeight()??0),i=this.pinnedRowModel?.getPinnedTopTotalHeight()??0;let s=0;t>0&&(s+=t),i>0&&(s+=i),s>0&&(s+=1),this.comp.setStickyTopTop(`${s}px`)}setStickyBottomOffsetBottom(){const{pinnedRowModel:e,scrollVisibleSvc:t,comp:i}=this,s=e?.getPinnedBottomTotalHeight()??0,n=t.horizontalScrollShowing&&t.getScrollbarWidth()||0,r=s+n;i.setStickyBottomBottom(`${r}px`)}};function Jt(e){return uo(e)}var pn={TAB_GUARD:"ag-tab-guard",TAB_GUARD_TOP:"ag-tab-guard-top",TAB_GUARD_BOTTOM:"ag-tab-guard-bottom"},MC=class extends Ht{constructor(e,t){super(),this.stopPropagationCallbacks=t,this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;const{comp:i,eTopGuard:s,eBottomGuard:o,focusTrapActive:n,forceFocusOutWhenTabGuardsAreEmpty:r,isFocusableContainer:a,focusInnerElement:l,onFocusIn:c,onFocusOut:d,shouldStopEventPropagation:u,onTabKeyDown:h,handleKeyDown:p,isEmpty:m,eFocusableElement:v}=e;this.comp=i,this.eTopGuard=s,this.eBottomGuard=o,this.providedFocusInnerElement=l,this.eFocusableElement=v,this.focusTrapActive=!!n,this.forceFocusOutWhenTabGuardsAreEmpty=!!r,this.isFocusableContainer=!!a,this.providedFocusIn=c,this.providedFocusOut=d,this.providedShouldStopEventPropagation=u,this.providedOnTabKeyDown=h,this.providedHandleKeyDown=p,this.providedIsEmpty=m}postConstruct(){this.createManagedBean(new uC(this.eFocusableElement,this.stopPropagationCallbacks,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e),onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e)})),this.activateTabGuards();for(const e of[this.eTopGuard,this.eBottomGuard])this.addManagedElementListeners(e,{focus:this.onFocus.bind(this)})}handleKeyDown(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){return this.providedShouldStopEventPropagation?this.providedShouldStopEventPropagation():!1}activateTabGuards(){if(this.forcingFocusOut)return;const e=this.gos.get("tabIndex");this.comp.setTabIndex(e.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(e){if(this.isFocusableContainer&&!this.eFocusableElement.contains(e.relatedTarget)&&!this.allowFocus){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.skipTabGuardFocus){this.skipTabGuardFocus=!1;return}if(this.forceFocusOutWhenTabGuardsAreEmpty&&(this.providedIsEmpty?this.providedIsEmpty():oo(this.eFocusableElement,".ag-tab-guard").length===0)){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.isFocusableContainer&&this.eFocusableElement.contains(e.relatedTarget))return;const t=e.target===this.eBottomGuard;!(this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t))&&this.forceFocusOutWhenTabGuardsAreEmpty&&this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard)}findNextElementOutsideAndFocus(e){const t=ft(this.beans),i=oo(t.body,null,!0),s=i.indexOf(e?this.eTopGuard:this.eBottomGuard);if(s===-1)return;let o,n;e?(o=0,n=s):(o=s+1,n=i.length);const r=i.slice(o,n),a=this.gos.get("tabIndex");r.sort((l,c)=>{const d=Number.parseInt(l.getAttribute("tabindex")||"0"),u=Number.parseInt(c.getAttribute("tabindex")||"0");return u===a?1:d===a?-1:d===0?1:u===0?-1:d-u}),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){this.providedOnTabKeyDown(e);return}if(this.focusTrapActive||e.defaultPrevented)return;const t=this.tabGuardsAreActive();t&&this.deactivateTabGuards();const i=this.getNextFocusableElement(e.shiftKey);t&&setTimeout(()=>this.activateTabGuards(),0),i&&(i.focus(),e.preventDefault())}focusInnerElement(e=!1){const t=oo(this.eFocusableElement);return this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(-1,1)),t.length?(t[e?t.length-1:0].focus({preventScroll:!0}),!0):!1}getNextFocusableElement(e){return Eo(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}},HF=class extends Ht{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:i,eFocusableElement:s,stopPropagationCallbacks:o}=this,n=[t,i],r={setTabIndex:w=>{for(const b of n)w==null?b.removeAttribute("tabindex"):b.setAttribute("tabindex",w)}};this.addTabGuards(t,i);const{focusTrapActive:a=!1,onFocusIn:l,onFocusOut:c,focusInnerElement:d,handleKeyDown:u,onTabKeyDown:h,shouldStopEventPropagation:p,isEmpty:m,forceFocusOutWhenTabGuardsAreEmpty:v,isFocusableContainer:C}=e;this.tabGuardCtrl=this.createManagedBean(new MC({comp:r,focusTrapActive:a,eTopGuard:t,eBottomGuard:i,eFocusableElement:s,onFocusIn:l,onFocusOut:c,focusInnerElement:d,handleKeyDown:u,onTabKeyDown:h,shouldStopEventPropagation:p,isEmpty:m,forceFocusOutWhenTabGuardsAreEmpty:v,isFocusableContainer:C},o))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(e){const t=ft(this.beans).createElement("div"),i=e==="top"?pn.TAB_GUARD_TOP:pn.TAB_GUARD_BOTTOM;return t.classList.add(pn.TAB_GUARD,i),co(t,"presentation"),t}addTabGuards(e,t){const i=this.eFocusableElement;i.prepend(e),i.append(t)}removeAllChildrenExceptTabGuards(){const e=[this.eTopGuard,this.eBottomGuard];_t(this.comp.getFocusableElement()),this.addTabGuards(...e)}forceFocusOutOfContainer(e=!1){this.tabGuardCtrl.forceFocusOutOfContainer(e)}appendChild(e,t,i){xh(t)||(t=t.getGui());const{eBottomGuard:s}=this;s?s.before(t):e(t,i)}destroy(){const{eTopGuard:e,eBottomGuard:t}=this;Ji(e),Ji(t),super.destroy()}},BF=class extends In{initialiseTabGuard(e,t){this.tabGuardFeature=this.createManagedBean(new HF(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)}},GF=class extends BF{initialiseTabGuard(t){super.initialiseTabGuard(t,Ah)}},Xg=(e,t)=>mC(e,()=>go(e.getGui(),t,!1,!0)),Qg=e=>e?.getFocusableContainerName()??"external",VF=e=>e==null?"external":typeof e=="string"?e:"gridBody",zF=class extends B{constructor(){super(...arguments),this.additionalFocusableContainers=new Set}setComp(e,t,i){this.view=e,this.eGridHostDiv=t,this.eGui=i,this.eGui.setAttribute("grid-id",this.beans.context.getId());const{dragAndDrop:s,ctrlsSvc:o}=this.beans;s?.registerGridDropTarget(()=>this.eGui,this),this.createManagedBean(new _h(this.view)),this.view.setRtlClass(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr");const n=ss(this.beans,this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(()=>n()),o.register("gridCtrl",this)}isDetailGrid(){return dC(this.getGui())?.getAttribute("row-id")?.startsWith("detail")||!1}getOptionalSelectors(){const e=this.beans;return{paginationSelector:e.pagination?.getPaginationSelector(),gridHeaderDropZonesSelector:e.registry?.getSelector("AG-GRID-HEADER-DROP-ZONES"),sideBarSelector:e.sideBar?.getSelector(),statusBarSelector:e.registry?.getSelector("AG-STATUS-BAR"),watermarkSelector:e.licenseManager?.getWatermarkSelector()}}onGridSizeChanged(){this.eventSvc.dispatchEvent({type:"gridSizeChanged",clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(e){const{view:t}=this;e===!1?t.setCursor(null):t.setCursor(e===1?"ew-resize":"ns-resize")}disableUserSelect(e){this.view.setUserSelect(e?"none":null)}focusNextInnerContainer(e){const t=this.getFocusableContainers(),{indexWithFocus:i,nextIndex:s}=this.getNextFocusableIndex(t,e),o=i===-1?e?t.length-1:0:s,{gos:n,beans:{focusSvc:r,navigation:a}}=this,l=n.getCallback("tabToNextGridContainer");if(l){const c=r.getDefaultTabToNextGridContainerTarget({backwards:e,focusableContainers:t,nextIndex:o}),d=Qg(t[o]),u=c==null&&d==="gridBody"?"gridBody":VF(c),h=l({backwards:e,previousContainer:Qg(t[i]),nextContainer:u,defaultTarget:c});if(h!==void 0){if(typeof h=="boolean")return h;if(typeof h=="string"){if(h==="gridBody")return this.focusGridBodyDefault(e)||void 0;const p=t.find(m=>m.getFocusableContainerName()===h);if(!p){Dv(`tabToNextGridContainer - ${h} container not found`);return}return Xg(p,e)?!0:void 0}return Q3(h)?r.focusHeaderPosition({headerPosition:h})||void 0:(a?.ensureCellVisible(h),r.setFocusedCell({...h,forceBrowserFocus:!0}),r.isCellFocused(h)||void 0)}}return this.focusNextInnerContainerDefault({backwards:e,focusableContainers:t,indexWithFocus:i,nextIndex:o})||void 0}focusInnerElement(e){const{gos:t,beans:i,beans:{focusSvc:s,visibleCols:o}}=this;if(t.getCallback("focusGridInnerElement")?.({fromBottom:!!e}))return!0;const r=this.getFocusableContainers();if(e)return this.focusNextInnerContainerDefault({backwards:!0,focusableContainers:r,indexWithFocus:r.length,nextIndex:r.length-1})?!0:s.focusGridView({column:$e(o.allCols),backwards:!0});const a=o.allCols;if(t.get("headerHeight")===0||mi(i)){if(s.focusGridView({column:a[0],backwards:e}))return!0;for(let l=1;l<r.length;l++)if(go(r[l].getGui(),e))return!0;return!1}return s.focusFirstHeader()}forceFocusOutOfContainer(e=!1){this.view.forceFocusOutOfContainer(e)}isFocusInsideGridBody(){const e=this.getFocusableContainers(),{indexWithFocus:t}=this.getNextFocusableIndex(e);return e[t]?.getFocusableContainerName()==="gridBody"}addFocusableContainer(e){this.additionalFocusableContainers.add(e)}removeFocusableContainer(e){this.additionalFocusableContainers.delete(e)}allowFocusForNextCoreContainer(e){const t=this.view.getFocusableContainers(),{indexWithFocus:i,nextIndex:s}=this.getNextFocusableIndex(t,e);this.focusNextInnerContainerDefault({backwards:!!e,focusableContainers:t,indexWithFocus:i,nextIndex:s})||this.forceFocusOutOfContainer(e)}isFocusable(){const e=this.beans;return!Lr(e)||!mi(e)||!!e.sideBar?.comp?.isDisplayed()}getNextFocusableIndex(e,t){const i=Je(this.beans),s=e.findIndex(o=>o.getGui().contains(i));return{indexWithFocus:s,nextIndex:s+(t?-1:1)}}focusGridBodyDefault(e){const{gos:t,beans:i,beans:{focusSvc:s,visibleCols:{allCols:o}}}=this;return e?s.focusGridView({column:$e(o),backwards:!0}):t.get("headerHeight")===0||mi(i)?s.focusGridView({column:o[0]}):s.focusFirstHeader()}focusNextInnerContainerDefault(e){const{backwards:t,focusableContainers:i,indexWithFocus:s}=e,o=t?-1:1;for(let n=e.nextIndex;n>=0&&n<i.length;n+=o){const r=i[n];if(r.getFocusableContainerName()==="gridBody"&&(s===-1||(t?s>n:s<n))){if(this.focusGridBodyDefault(t))return!0;continue}if(Xg(r,t))return!0}return!1}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}destroy(){this.additionalFocusableContainers.clear(),super.destroy()}},Se=(e,t)=>{for(const i of Object.keys(t))t[i]=e;return t},Jg={dispatchEvent:"CommunityCore",...Se("CommunityCore",{destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0,isModuleRegistered:0}),...Se("GridState",{getState:0,setState:0}),...Se("SharedRowSelection",{setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0}),...Se("RowApi",{redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRowIndex:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0}),...Se("ScrollApi",{getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0}),...Se("KeyboardNavigation",{getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0}),...Se("EventApi",{addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0}),...Se("ValueCache",{expireValueCache:0}),...Se("CellApi",{getCellValue:0}),...Se("SharedMenu",{showColumnMenu:0,hidePopupMenu:0}),...Se("Sort",{onSortChanged:0}),...Se("PinnedRow",{getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0,forEachPinnedRow:0}),...Se("Overlay",{showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0}),...Se("RenderApi",{setGridAriaProperty:0,refreshCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0}),...Se("HighlightChanges",{flashCells:0}),...Se("RowDrag",{addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0,getRowDropPositionIndicator:0,setRowDropPositionIndicator:0}),...Se("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}),...Se("ColumnAutoSize",{sizeColumnsToFit:0,autoSizeColumns:0,autoSizeAllColumns:0}),...Se("ColumnGroup",{setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumnGroup:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0}),...Se("ColumnMove",{moveColumnByIndex:0,moveColumns:0}),...Se("ColumnResize",{setColumnWidths:0}),...Se("ColumnHover",{isColumnHovered:0}),...Se("EditCore",{getCellEditorInstances:0,getEditingCells:0,getEditRowValues:0,stopEditing:0,startEditingCell:0,isEditing:0,validateEdit:0}),...Se("BatchEdit",{startBatchEdit:0,cancelBatchEdit:0,commitBatchEdit:0,isBatchEditing:0}),...Se("UndoRedoEdit",{undoCellEditing:0,redoCellEditing:0,getCurrentUndoSize:0,getCurrentRedoSize:0}),...Se("FilterCore",{isAnyFilterPresent:0,onFilterChanged:0}),...Se("ColumnFilter",{isColumnFilterPresent:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0,hideColumnFilter:0,getColumnFilterHandler:0,doFilterAction:0}),...Se("QuickFilter",{isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0}),...Se("Find",{findGetActiveMatch:0,findGetTotalMatches:0,findGoTo:0,findNext:0,findPrevious:0,findGetNumMatches:0,findGetParts:0,findClearActive:0,findRefresh:0}),...Se("Pagination",{paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0}),...Se("CsrmSsrmSharedApi",{expandAll:0,collapseAll:0,resetRowGroupExpansion:0}),...Se("SsrmInfiniteSharedApi",{setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0}),...Se("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}),...Se("CsvExport",{getDataAsCsv:0,exportDataAsCsv:0}),...Se("InfiniteRowModel",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0}),...Se("AdvancedFilter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0}),...Se("IntegratedCharts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0}),...Se("Clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0}),...Se("ExcelExport",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0}),...Se("SharedMasterDetail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0}),...Se("ContextMenu",{showContextMenu:0}),...Se("ColumnMenu",{showColumnChooser:0,hideColumnChooser:0}),...Se("CellSelection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0}),...Se("SharedRowGrouping",{setRowGroupColumns:0,removeRowGroupColumns:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0}),...Se("SharedAggregation",{addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0}),...Se("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}),...Se("ServerSideRowModelApi",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0,onRowHeightChanged:0,resetRowHeights:0}),...Se("SideBar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0}),...Se("StatusBar",{getStatusPanel:0}),...Se("AiToolkit",{getStructuredSchema:0})},Sd={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},WF=(e,t)=>e.eventSvc.dispatchEvent(t),AC=class{};Reflect.defineProperty(AC,"name",{value:"GridApi"});var jF=class extends B{constructor(){super(),this.beanName="apiFunctionSvc",this.api=new AC,this.fns={...Sd,dispatchEvent:WF},this.preDestroyLink="";const{api:e}=this;for(const t of Object.keys(Jg))e[t]=this.makeApi(t)[t]}postConstruct(){this.preDestroyLink=this.beans.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(e,t){const{fns:i,beans:s}=this;i!==Sd&&(i[e]=s?.validation?.validateApiFunction(e,t)??t)}makeApi(e){return{[e]:(...t)=>{const{beans:i,fns:{[e]:s}}=this;return s?s(i,...t):this.apiNotFound(e)}}}apiNotFound(e){const{beans:t,gos:i,preDestroyLink:s}=this;if(!t)$(26,{fnName:e,preDestroyLink:s});else{const o=Jg[e];i.assertModuleRegistered(o,`api.${e}`)&&$(27,{fnName:e,module:o})}}destroy(){super.destroy(),this.fns=Sd,this.beans=null}};function LC(e){return e.context.getId()}function _F(e){e.gridDestroySvc.destroy()}function UF(e){return e.gridDestroySvc.destroyCalled}function $F(e,t){return e.gos.get(t)}function qF(e,t,i){OC(e,{[t]:i})}function OC(e,t){e.gos.updateGridOptions({options:t})}function KF(e,t){const i=t.replace(/Module$/,"");return e.gos.isModuleRegistered(i)}function YF(e,t,i){const s=Wt(e,t,i);if(s){const{className:n}=s;if(typeof n=="string"&&n.includes("ag-icon")||typeof n=="object"&&n["ag-icon"])return s}const o=Jt({tag:"span"});return o.appendChild(s),o}function Wt(e,t,i){let s=null;e==="smallDown"?$(262):e==="smallLeft"?$(263):e==="smallRight"&&$(264);const o=i?.getColDef().icons;if(o&&(s=o[e]),t.gos&&!s){const n=t.gos.get("icons");n&&(s=n[e])}if(s){let n;if(typeof s=="function")n=s();else if(typeof s=="string")n=s;else{$(38,{iconName:e});return}if(typeof n=="string")return wh(n);if(xh(n))return n;$(133,{iconName:e});return}else{const n=t.registry.getIcon(e);return n||t.validation?.validateIcon(e),Jt({tag:"span",cls:`ag-icon ag-icon-${n??e}`,role:"presentation",attrs:{unselectable:"on"}})}}var ZF={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{draggable:"true"}},XF=class extends ot{constructor(e,t,i){super(ZF),this.rowNode=e,this.column=t,this.eCell=i}postConstruct(){this.getGui().appendChild(Wt("rowDrag",this.beans,null)),this.addGuiEventListener("mousedown",t=>{t.stopPropagation()}),this.addDragSource(),this.checkVisibility()}addDragSource(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))}onDragStart(e){const{rowNode:t,column:i,eCell:s,gos:o}=this,n=i.getColDef().dndSourceOnRowDrag,r=e.dataTransfer;if(r.setDragImage(s,0,0),n){const a=xe(o,{rowNode:t,dragEvent:e});n(a)}else try{const a=JSON.stringify(t.data);r.setData("application/json",a),r.setData("text/plain",a)}catch{}}checkVisibility(){const e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)}},QF=".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)}",JF={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"}]}]},eE=class extends ot{constructor(){super(),this.dragSource=null,this.eIcon=de,this.eLabel=de,this.eGhost=de,this.registerCSS(QF)}postConstruct(){const e=t=>YF(t,this.beans,null);this.dropIconMap={pinned:e("columnMovePin"),hide:e("columnMoveHide"),move:e("columnMoveMove"),left:e("columnMoveLeft"),right:e("columnMoveRight"),group:e("columnMoveGroup"),aggregate:e("columnMoveValue"),pivot:e("columnMovePivot"),notAllowed:e("dropNotAllowed")}}init(e){this.dragSource=e.dragSource,this.setTemplate(JF),this.beans.environment.applyThemeClasses(this.eGhost)}destroy(){this.dragSource=null,super.destroy()}setIcon(e,t){const{eGhost:i,eIcon:s,dragSource:o,dropIconMap:n,gos:r}=this;_t(s);let a=null;e||(e=o?.getDefaultIconName?o.getDefaultIconName():"notAllowed"),a=n[e],i.classList.toggle("ag-dnd-ghost-not-allowed",e==="notAllowed"),s.classList.toggle("ag-shake-left-to-right",t),!(a===n.hide&&r.get("suppressDragLeaveHidesColumns"))&&a&&s.appendChild(a)}setLabel(e){this.eLabel.textContent=e}};function tE(e,t){e.rowDragSvc?.rowDragFeature?.addRowDropZone(t)}function iE(e,t){const i=e.dragAndDrop?.findExternalZone(t.getContainer());i&&e.dragAndDrop?.removeDropTarget(i)}function sE(e,t){return e.rowDragSvc?.rowDragFeature?.getRowDropZone(t)}function oE(e){const t=e.rowDropHighlightSvc;return t?{row:t.row,dropIndicatorPosition:t.position}:{row:null,dropIndicatorPosition:"none"}}function nE(e,t){const i=e.rowDropHighlightSvc;if(!i)return;const s=t?.row;let o=t?.dropIndicatorPosition;o!=="above"&&o!=="below"&&o!=="inside"&&(o="none");const n=s?.rowIndex;n==null||o==="none"?i.clear():i.set(s,o)}var NC=(e,t)=>{if(t!=null&&e?.setPointerCapture)try{return e.setPointerCapture(t),e.hasPointerCapture(t)}catch{}return!1},rE=(e,t)=>{if(typeof PointerEvent>"u"||!(t instanceof PointerEvent))return null;const i=t.pointerId;if(!NC(e,i))return null;const s={eElement:e,pointerId:i,onLost(o){lE(s,o)}};return e.addEventListener("lostpointercapture",s.onLost),s},aE=e=>{if(!e)return;HC(e);const{eElement:t,pointerId:i}=e;if(t){try{t.releasePointerCapture(i)}catch{}e.eElement=null}},HC=e=>{const{eElement:t,onLost:i}=e;t&&i&&(t.removeEventListener("lostpointercapture",i),e.onLost=null)},lE=(e,t)=>{HC(e);const{eElement:i,pointerId:s}=e;i&&t.pointerId===s&&NC(i,s)},qo,en,Rd={passive:!0},hs={passive:!1},Ei=e=>{if(!en)en=new WeakSet;else if(en.has(e))return!1;return en.add(e),!0},cE=class extends Ht{constructor(){super(...arguments),this.beanName="dragSvc",this.dragging=!1,this.drag=null,this.dragSources=[]}get startTarget(){return this.drag?.start.target??null}isPointer(){return!!qo?.has(fi(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)ef(t);e.length=0,super.destroy()}removeDragSource(e){const t=this.dragSources;for(let i=0,s=t.length;i<s;++i){const o=t[i];if(o.params===e){t.splice(i,1),ef(o);break}}}addDragSource(e){if(!this.isAlive())return;const{eElement:t,includeTouch:i}=e,s=[];let o;if(i){const c=t.style;c&&(o=c.touchAction,c.touchAction="none")}const n={handlers:s,params:e,oldTouchAction:o};this.dragSources.push(n),Ya(s,[t,"pointerdown",c=>this.onPointerDown(e,c),hs],[t,"mousedown",c=>this.onMouseDown(e,c)]);const l=this.gos.get("suppressTouch");i&&!l&&Ya(s,[t,"touchstart",d=>this.onTouchStart(e,d),hs])}cancelDrag(e){const t=this.drag;e??(e=t?.eElement),e&&this.eventSvc.dispatchEvent({type:"dragCancelled",target:e}),t?.params.onDragCancel?.(),this.destroyDrag()}shouldPreventMouseEvent(e){const t=e.type;return(t==="mousemove"||t==="pointermove")&&e.cancelable&&kr(this.beans,e)&&!hr(Ed(e))}initDrag(e,...t){this.drag=e;const i=this.beans,s=a=>this.onScroll(a),o=a=>this.onKeyDown(a),n=fi(i),r=ft(i);Ya(e.handlers,[n,"contextmenu",vs],[n,"keydown",o],[r,"scroll",s,{capture:!0}],[r.defaultView||window,"scroll",s],...t)}destroyDrag(){this.dragging=!1;const e=this.drag;if(e){const t=e.rootEl;qo?.get(t)===e&&qo.delete(t),this.drag=null,aE(e.pointerCapture),yh(e.handlers)}}onPointerDown(e,t){if(this.isPointer())return;const i=this.beans;if(en?.has(t))return;const s=t.pointerType;if(s==="touch"&&(i.gos.get("suppressTouch")||!e.includeTouch||(e.stopPropagationForTouch&&t.stopPropagation(),hr(Ed(t))))||!t.isPrimary||s==="mouse"&&t.button!==0)return;this.destroyDrag();const o=fi(i),n=e.eElement,r=t.pointerId,a=new Fd(o,e,t,r);qo??(qo=new WeakMap),qo.set(o,a);const l=h=>{h.pointerId===r&&this.onMouseOrPointerMove(h)},c=h=>{h.pointerId===r&&this.onMouseOrPointerUp(h)},d=h=>{h.pointerId===r&&Ei(h)&&this.cancelDrag()},u=h=>this.draggingPreventDefault(h);this.initDrag(a,[o,"pointerup",c],[o,"pointercancel",d],[o,"pointermove",l,hs],[o,"touchmove",u,hs],[n,"mousemove",u,hs]),e.dragStartPixels===0?this.onMouseOrPointerMove(t):Ei(t)}onTouchStart(e,t){if(this.gos.get("suppressTouch")||!e.includeTouch||!Ei(t)||hr(Ed(t)))return;if(e.stopPropagationForTouch&&t.stopPropagation(),this.isPointer()){this.dragging&&vs(t);return}this.destroyDrag();const s=this.beans,o=fi(s),n=new Fd(o,e,t.touches[0]),r=h=>this.onTouchMove(h),a=h=>this.onTouchUp(h),l=h=>this.onTouchCancel(h),c=h=>this.draggingPreventDefault(h),d=fi(s),u=t.target??e.eElement;this.initDrag(n,[u,"touchmove",r,Rd],[u,"touchend",a,Rd],[u,"touchcancel",l,Rd],[d,"touchmove",c,hs],[d,"touchend",a,hs],[d,"touchcancel",l,hs]),e.dragStartPixels===0&&this.onMove(n.start)}draggingPreventDefault(e){this.dragging&&vs(e)}onMouseDown(e,t){if(t.button!==0||en?.has(t)||this.isPointer())return;const i=this.beans;this.destroyDrag();const s=new Fd(fi(i),e,t),o=a=>this.onMouseOrPointerMove(a),n=a=>this.onMouseOrPointerUp(a),r=fi(i);this.initDrag(s,[r,"mousemove",o],[r,"mouseup",n]),e.dragStartPixels===0?this.onMouseOrPointerMove(t):Ei(t)}onScroll(e){if(!Ei(e))return;const t=this.drag,i=t?.lastDrag;i&&this.dragging&&t.params?.onDragging?.(i)}onMouseOrPointerMove(e){Ei(e)&&(Ls()&&ft(this.beans).getSelection()?.removeAllRanges(),this.shouldPreventMouseEvent(e)&&vs(e),this.onMove(e))}onTouchCancel(e){const t=this.drag;!t||!Ei(e)||nn(t.start,e.changedTouches)&&this.cancelDrag()}onTouchMove(e){const t=this.drag;if(!t||!Ei(e))return;const i=nn(t.start,e.touches);i&&(this.onMove(i),this.draggingPreventDefault(e))}onMove(e){const t=this.drag;if(!t)return;t.lastDrag=e;const i=t.params;if(!this.dragging){const s=t.start,n=i.dragStartPixels??4;if(xv(e,s,n)||(this.dragging=!0,i.capturePointer&&(t.pointerCapture=rE(this.beans.eRootDiv,e)),this.eventSvc.dispatchEvent({type:"dragStarted",target:i.eElement}),i.onDragStart?.(s),this.drag!==t)||(i.onDragging?.(s),this.drag!==t))return}i.onDragging?.(e)}onTouchUp(e){const t=this.drag;t&&Ei(e)&&this.onUp(nn(t.start,e.changedTouches))}onMouseOrPointerUp(e){Ei(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===A.ESCAPE&&this.cancelDrag()}},ef=e=>{yh(e.handlers);const t=e.oldTouchAction;if(t!=null){const i=e.params.eElement.style;i&&(i.touchAction=t)}},Fd=class{constructor(e,t,i,s=null){this.rootEl=e,this.params=t,this.start=i,this.pointerId=s,this.handlers=[],this.lastDrag=null,this.pointerCapture=null,this.eElement=t.eElement}},Ed=e=>{const t=e.target;return t instanceof Element?t:null},dE=class extends cE{shouldPreventMouseEvent(e){return this.gos.get("enableCellTextSelection")&&super.shouldPreventMouseEvent(e)}},uE=class extends B{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:i}=this.beans;return i.addDragSource(t),()=>i.removeDragSource(t)}onDragStart(e,t){this.dragStartX=t.clientX,this.setResizeIcons();const i=t instanceof MouseEvent&&t.shiftKey===!0;e.onResizeStart(i)}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)}},hE={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{"aria-hidden":"true"}},Ba={skipAriaHidden:!0},pE=class extends ot{constructor(e,t,i,s,o,n=!1){super(),this.cellValueFn=e,this.rowNode=t,this.column=i,this.customGui=s,this.dragStartPixels=o,this.alwaysVisible=n,this.dragSource=null,this.disabled=!1}isCustomGui(){return this.customGui!=null}postConstruct(){const{beans:e,customGui:t}=this;t?this.setDragElement(t,this.dragStartPixels):(this.setTemplate(hE),this.getGui().appendChild(Wt("rowDrag",e,null)),this.addDragSource()),this.alwaysVisible||this.initCellDrag()}initCellDrag(){const{beans:e,rowNode:t}=this,i=this.refreshVisibility.bind(this);this.addManagedListeners(e.eventSvc,{rowDragVisibilityChanged:i}),this.addManagedListeners(t,{dataChanged:i,cellChanged:i}),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:i}=this,{gos:s,dragAndDrop:o,rowDragSvc:n}=e,r=n?.visibility;let l=!(r==="suppress"||r==="hidden"&&!o?.hasExternalDropZones()),c=l;if(l&&!this.isCustomGui()&&t){const d=t.getColDef().rowDrag;if(d===!1)l=!1;else{const u=typeof d=="function";c=t.isRowDrag(i),l=u||c}}l&&c&&i.footer&&s.get("rowDragManaged")&&(c=!1,l=!0),c&&(c=l),l||this.setDisplayed(l,Ba),c||this.setVisible(c,Ba),this.setDisabled(!c||r==="disabled"&&!o?.hasExternalDropZones()),l&&this.setDisplayed(l,Ba),c&&this.setVisible(c,Ba)}setDisabled(e){e!==this.disabled&&(this.disabled=e,this.getGui()?.classList?.toggle("ag-drag-handle-disabled",e))}getSelectedNodes(){const e=this.rowNode;if(!this.gos.get("rowDragMultiRow"))return[e];const i=this.beans.selectionSvc?.getSelectedNodes()??[];return i.indexOf(e)!==-1?i:[e]}getDragItem(){const{column:e,rowNode:t}=this;return{rowNode:t,rowNodes:this.getSelectedNodes(),columns:e?[e]:void 0,defaultTextValue:this.cellValueFn()}}addDragSource(e=4){if(this.dragSource&&this.removeDragSource(),this.gos.get("rowDragManaged")&&this.rowNode.footer)return;const t=this.getGui();if(this.gos.get("enableCellTextSelection")){this.removeMouseDownListener();const s=Cl("pointerdown")?{pointerdown:vs}:{mousedown:vs};this.mouseDownListener=this.addManagedElementListeners(t,s)[0]}const i=this.getLocaleTextFunc();this.dragSource={type:2,eElement:t,dragItemName:s=>this.getDragItemName(s,i),getDragItem:()=>this.getDragItem(),dragStartPixels:e,dragSourceDomDataKey:this.gos.getDomDataKey()},this.beans.dragAndDrop.addDragSource(this.dragSource,!0)}getDragItemName(e,t){const i=e?.dragItem||this.getDragItem(),s=(e?.dropTarget?.rows.length??i.rowNodes?.length)||1,o=this.column?.getColDef()?.rowDragText??this.gos.get("rowDragText");if(o)return o(i,s);if(s!==1)return`${s} ${t("rowDragRows","rows")}`;const n=this.cellValueFn();return n||`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)}},gE=class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=e.scrollAxis.includes("x"),this.scrollVertically=e.scrollAxis.includes("y"),this.scrollByTick=e.scrollByTick??20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||(()=>!1)}get scrolling(){return this.tickingInterval!==null}check(e,t=!1){const i=!this.scrollVertically||t||this.shouldSkipVerticalScroll(),s=!this.scrollHorizontally||this.shouldSkipHorizontalScroll();if(i&&s)return;const o=this.scrollContainer.getBoundingClientRect(),n=this.scrollByTick;this.tickLeft=!s&&e.clientX<o.left+n,this.tickRight=!s&&e.clientX>o.right-n,this.tickUp=!i&&e.clientY<o.top+n,this.tickDown=!i&&e.clientY>o.bottom-n,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;const e=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){const t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){const t=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(t-e),this.tickRight&&this.setHorizontalPosition(t+e)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}},ol=class{constructor(){this.reordered=!1,this.removals=[],this.updates=new Set,this.adds=new Set}},Ml=e=>{let t=e.childrenAfterGroup;for(;t?.length;){const i=t[0];if(i.sourceRowIndex>=0)return i;t=i.childrenAfterGroup}},fE=(e,t,i,s)=>{if(!t.size||!e)return!1;let o=!1;const n=e.length??0;let r=-1;i&&(r=i.sourceRowIndex,i=r<0?Ml(i):null,i&&(r=i.sourceRowIndex)),r<0||r>=n?r=n:s||++r;let a=r,l=Math.min(r,n-1);for(const u of t){const h=u.sourceRowIndex;h<a&&(a=h),h>l&&(l=h)}let c=a;for(let u=a;u<r;++u){const h=e[u];t.has(h)||(h.sourceRowIndex!==c&&(h.sourceRowIndex=c,e[c]=h,o=!0),++c)}let d=l;for(let u=l;u>=r;--u){const h=e[u];t.has(h)||(h.sourceRowIndex!==d&&(h.sourceRowIndex=d,e[d]=h,o=!0),--d)}for(const u of t)u.sourceRowIndex!==c&&(u.sourceRowIndex=c,e[c]=u,o=!0),++c;return o};function mE(e,t){return Uh(e,t.target)?.getFocusedCellPosition()??null}function tf(e,t){const i=yt(e.gos,"normal"),s=t;let o,n;s.clientX!=null||s.clientY!=null?(o=s.clientX,n=s.clientY):(o=s.x,n=s.y);const{pageFirstPixel:r}=e.pageBounds.getCurrentPagePixelRange();if(n+=r,i){const a=e.ctrlsSvc.getScrollFeature(),l=a.getVScrollPosition(),c=a.getHScrollPosition();o+=c.left,n+=l.top}return{x:o,y:n}}var vE=.25,CE=class extends B{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 i=()=>t.gridBodyCtrl.scrollFeature.getVScrollPosition().top,s=new gE({scrollContainer:t.gridBodyCtrl.eBodyViewport,scrollAxis:"y",getVerticalPosition:i,setVerticalPosition:o=>t.gridBodyCtrl.scrollFeature.setVerticalScrollPosition(o),onScrollCallback:()=>{const o=i();if(this.autoScrollOldV!==o){this.autoScrollOldV=o,this.autoScrollChanging=!0;return}const n=this.autoScrollChanging;this.autoScrollChanged=n,this.autoScrollChanging=!1,n&&(e.dragAndDrop?.nudge(),this.autoScrollChanged=!1)}});this.autoScroll=s,this.clearAutoScroll()})}destroy(){super.destroy(),this.clearAutoScroll(),this.autoScroll=null,this.lastDraggingEvent=null,this.eContainer=null}getContainer(){return this.eContainer}isInterestedIn(e){return e===2}getIconName(e){return e?.dropTarget?.allowed===!1||this.beans.rowDragSvc.visibility!=="visible"?"notAllowed":"move"}getRowNodes(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];const t=e.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){const i=this.beans.selectionSvc?.getSelectedNodes();if(i&&i.indexOf(t)>=0)return i.slice().sort(wE)}return[t]}onDragEnter(e){this.dragging(e,!0)}onDragging(e){this.dragging(e,!1)}dragging(e,t){const{lastDraggingEvent:i,beans:s}=this;if(t){const a=this.getRowNodes(e);e.dragItem.rowNodes=a,of(a,!0)}this.lastDraggingEvent=e;const o=e.fromNudge,n=this.makeRowsDrop(i,e,o,!1);s.rowDropHighlightSvc?.fromDrag(e),t&&this.dispatchGridEvent("rowDragEnter",e),this.dispatchGridEvent("rowDragMove",e);const r=this.autoScroll;n?.rowDragManaged&&n.moved&&n.allowed&&n.sameGrid&&!n.suppressMoveWhenRowDragging&&(!o&&!r?.scrolling||this.autoScrollChanged)&&this.dropRows(n),r?.check(e.event)}isFromThisGrid(e){return e.dragSource.dragSourceDomDataKey===this.gos.getDomDataKey()}makeRowsDrop(e,t,i,s){const{beans:o,gos:n}=this,r=this.newRowsDrop(t,s),a=o.rowModel;if(t.dropTarget=r,t.changed=!1,!r)return null;let{sameGrid:l,rootNode:c,source:d,target:u}=r;u??(u=a.getRow(a.getRowCount()-1)??null);const h=this.beans.groupEditSvc,p=!!h?.canSetParent(r);let m=null;if(u?.footer){const C=Fu(a,-1,u)??Fu(a,1,u);p&&(m=u.sibling??c),u=C??null}u?.detail&&(u=u.parent),r.moved&&(r.moved=d!==u);let v=.5;if(u&&(l&&r.moved&&(m||!p)?v=d.rowIndex>u.rowIndex?-.5:.5:v=(r.y-u.rowTop-u.rowHeight/2)/u.rowHeight||0),!p&&l&&u&&r.moved&&st(n)){const C=bE(a,r);C&&(v=d.rowIndex>C.rowIndex?-.5:.5,u=C,r.moved&&(r.moved=d!==u))}return r.target=u,r.newParent=m,r.pointerPos=xE(u,r.y),r.yDelta=v,h?.fixRowsDrop(r,p,i,v),this.validateRowsDrop(r,p,s),t.changed||(t.changed=sf(e?.dropTarget,r)),r}newRowsDrop(e,t){const{beans:i,gos:s}=this,o=i.rowModel.rootNode,n=st(s)?s.get("rowDragManaged"):!1,r=s.get("suppressMoveWhenRowDragging"),a=this.isFromThisGrid(e);let{rowNode:l,rowNodes:c}=e.dragItem;if(c||(c=l?[l]:[]),l||(l=c[0]),!l||!o)return null;const d=this.beans.dragAndDrop.isDropZoneWithinThisGrid(e);let u=!0;n&&(!c.length||i.rowDragSvc.visibility!=="visible"||(r||!a)&&!d)&&(u=!1);const h=tf(i,e).y,p=this.getOverNode(h);return{api:i.gridApi,context:i.gridOptions.context,draggingEvent:e,rowDragManaged:n,suppressMoveWhenRowDragging:r,sameGrid:a,withinGrid:d,treeData:!1,rootNode:o,moved:l!==p,y:h,overNode:p,overIndex:p?.rowIndex??-1,pointerPos:"none",position:"none",source:l,target:p??null,newParent:null,rows:c,allowed:u,highlight:!t&&n&&r&&(d||!a),yDelta:0,inside:!1,droppedManaged:!1}}validateRowsDrop(e,t,i){const{source:s,target:o,yDelta:n,inside:r,moved:a,rowDragManaged:l,suppressMoveWhenRowDragging:c}=e;e.moved&&(e.moved=s!==o);const{position:d,fallbackPosition:u}=this.computeDropPosition(a,r,n);e.position=d,t||(e.newParent=null),this.enforceSuppressMoveWhenRowDragging(e,c,"initial");const h=(!l||e.allowed)&&this.gos.get("isRowValidDropPosition");h&&this.applyDropValidator(e,t,i,l,h),l&&(e.rows=this.filterRows(e)),this.beans.groupEditSvc?.clearNewSameParent(e,t),this.enforceSuppressMoveWhenRowDragging(e,c,"final"),e.position==="inside"&&(!e.allowed||!e.newParent)&&(e.position=u)}computeDropPosition(e,t,i){const s=i<0?"above":"below";return e?{position:t?"inside":s,fallbackPosition:s}:{position:"none",fallbackPosition:s}}enforceSuppressMoveWhenRowDragging(e,t,i){if(t){if(i==="initial"){e.moved||(e.allowed=!1);return}(!e.rows.length||e.position==="none")&&(e.allowed=!1)}}applyDropValidator(e,t,i,s,o){this.beans.groupEditSvc?.clearNewSameParent(e,t);const n=o(e);if(!n){e.allowed=!1;return}if(typeof n!="object")return;n.rows!==void 0&&(e.rows=n.rows??[]),t&&n.newParent!==void 0&&(e.newParent=n.newParent),n.target!==void 0&&(e.target=n.target),n.position&&(e.position=n.position),n.allowed!==void 0?e.allowed=n.allowed:s||(e.allowed=!0);const r=e.draggingEvent;n.changed&&r&&(r.changed=!0),!i&&n.highlight!==void 0&&(e.highlight=n.highlight)}addRowDropZone(e){if(!e.getContainer()){$(55);return}const t=this.beans.dragAndDrop;if(t.findExternalZone(e.getContainer())){$(56);return}const i=e.fromGrid?e:{getContainer:e.getContainer,onDragEnter:e.onDragEnter&&(o=>e.onDragEnter(this.rowDragEvent("rowDragEnter",o))),onDragLeave:e.onDragLeave&&(o=>e.onDragLeave(this.rowDragEvent("rowDragLeave",o))),onDragging:e.onDragging&&(o=>e.onDragging(this.rowDragEvent("rowDragMove",o))),onDragStop:e.onDragStop&&(o=>e.onDragStop(this.rowDragEvent("rowDragEnd",o))),onDragCancel:e.onDragCancel&&(o=>e.onDragCancel(this.rowDragEvent("rowDragCancel",o)))},s={isInterestedIn:o=>o===2,getIconName:()=>"move",external:!0,...i};t.addDropTarget(s),this.addDestroyFunc(()=>t.removeDropTarget(s))}getRowDropZone(e){return{getContainer:this.getContainer.bind(this),onDragEnter:i=>{this.onDragEnter(i),e?.onDragEnter?.(this.rowDragEvent("rowDragEnter",i))},onDragLeave:i=>{this.onDragLeave(i),e?.onDragLeave?.(this.rowDragEvent("rowDragLeave",i))},onDragging:i=>{this.onDragging(i),e?.onDragging?.(this.rowDragEvent("rowDragMove",i))},onDragStop:i=>{this.onDragStop(i),e?.onDragStop?.(this.rowDragEvent("rowDragEnd",i))},onDragCancel:i=>{this.onDragCancel(i),e?.onDragCancel?.(this.rowDragEvent("rowDragCancel",i))},fromGrid:!0}}getOverNode(e){const{pageBounds:t,rowModel:i}=this.beans,o=e>t.getCurrentPagePixelRange().pageLastPixel?-1:i.getRowIndexAtPixel(e);return o>=0?i.getRow(o):void 0}rowDragEvent(e,t){const i=this.beans,{dragItem:s,dropTarget:o,event:n,vDirection:r}=t,a=o?.rootNode===i.rowModel.rootNode,l=a?o.y:tf(i,t).y,c=a?o.overNode:this.getOverNode(l),d=a?o.overIndex:c?.rowIndex??-1;return{api:i.gridApi,context:i.gridOptions.context,type:e,event:n,node:s.rowNode,nodes:s.rowNodes,overIndex:d,overNode:c,y:l,vDirection:r,rowsDrop:o}}dispatchGridEvent(e,t){const i=this.rowDragEvent(e,t);this.eventSvc.dispatchEvent(i)}onDragLeave(e){this.dispatchGridEvent("rowDragLeave",e),this.stopDragging(e,!1)}onDragStop(e){const t=this.lastDraggingEvent?.dropTarget??null,i=this.makeRowsDrop(this.lastDraggingEvent,e,!1,!0);this.dispatchGridEvent("rowDragEnd",e),i?.allowed&&i.rowDragManaged&&(!t?.droppedManaged||sf(t,i))&&this.dropRows(i),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),of(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:i}){const s=wn(this.gos),o=this.beans.rowModel,n=i.filter(({data:a,rowPinned:l})=>!o.getRowNode(s?.({data:a,level:0,rowPinned:l})??a.id)).map(({data:a})=>a);if(n.length===0)return!1;let r;if(t){const a=t.sourceRowIndex>=0?t:Ml(t);a&&(r=a.sourceRowIndex+(e==="above"?0:1))}return o.updateRowData({add:n,addIndex:r}),!0}filterRows(e){const{groupEditSvc:t}=this.beans,{rows:i,sameGrid:s}=e;let o;for(let n=0,r=i.length;n<r;++n){let a=!0;const l=i[n];(!l||l.footer||s&&l.destroyed&&!l.group||!this.csrmGetLeaf(l))&&(a=!1),a&&t&&!t.canDropRow(l,e)&&(a=!1),a?o?.push(l):o??(o=i.slice(0,n))}return o??i}csrmMoveRows(e){const t=this.beans.groupEditSvc;return t?.isGroupingDrop(e)?t.dropGroupEdit(e):this.csrmMoveRowsReorder(e)}csrmMoveRowsReorder({position:e,target:t,rows:i,newParent:s,rootNode:o}){let n=!1;const r=new Set;for(const h of i){s&&h.parent!==s&&(h.treeParent=s,n=!0);const p=this.csrmGetLeaf(h);p&&r.add(p)}if(!n&&r.size===0)return!1;const a=this.beans.focusSvc,l=a.getFocusedCell(),c=l&&Jo(this.beans,l);if(r.size&&fE(o._leafs,r,t,e==="above")&&(n=!0),!n)return!1;const d=this.beans.rowModel,u=new ol;return u.reordered=!0,d.refreshModel({step:"group",keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedRowNodes:u}),c?c.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):Ml(e)}},sf=(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||!Ms(e.rows,t.rows)),wE=({rowIndex:e},{rowIndex:t})=>e!==null&&t!==null?e-t:0,of=(e,t)=>{for(let i=0,s=e?.length||0;i<s;++i){const o=e[i];o.dragging!==t&&(o.dragging=t,o.dispatchRowEvent("draggingChanged"))}},bE=(e,t)=>{let i=null,s=t.target;if(s&&t.rows.indexOf(s)<0)return null;const o=t.source;if(!s||!o)return null;let n=s.rowIndex-o.rowIndex;const r=n<0?-1:1;n=t.suppressMoveWhenRowDragging?Math.abs(n):1;const a=new Set(t.rows);do{const l=Fu(e,r,s);if(!l)break;a.has(l)||(i=l,--n),s=l}while(n>0);return i},xE=(e,t)=>{const i=e?.rowTop,s=e?.rowHeight??0;if(i==null||!s||s<=0)return"none";const o=t-i,n=s*vE;return o<=n?"above":o>=s-n?"below":"inside"},yE=class extends B{constructor(){super(...arguments),this.beanName="rowDragSvc",this.rowDragFeature=null,this.visibility="suppress"}setupRowDrag(e,t){const i=t.createManagedBean(new CE(e)),s=this.beans.dragAndDrop;s.addDropTarget(i),t.addDestroyFunc(()=>s.removeDropTarget(i)),this.rowDragFeature=i;const o=()=>this.refreshVisibility();this.addManagedPropertyListeners(["rowDragManaged","suppressRowDrag","refreshAfterGroupEdit"],o),this.addManagedEventListeners({newColumnsLoaded:o,columnRowGroupChanged:o,columnPivotModeChanged:o,sortChanged:o,filterChanged:o}),this.visibility=this.computeVisibility()}createRowDragComp(e,t,i,s,o,n){return new pE(e,t,i,s,o,n)}createRowDragCompForRow(e,t){if(Fs(this.gos))return;const i=this.getLocaleTextFunc();return this.createRowDragComp(()=>`1 ${i("rowDragRow","row")}`,e,void 0,t,void 0,!0)}createRowDragCompForCell(e,t,i,s,o,n){const r=this.gos;return r.get("rowDragManaged")&&(!st(r)||r.get("pagination"))?void 0:this.createRowDragComp(i,e,t,s,o,n)}cancelRowDrag(){this.rowDragFeature?.lastDraggingEvent&&this.beans.dragSvc?.cancelDrag()}computeVisibility(){const e=this.beans,t=e.gos;if(t.get("suppressRowDrag"))return"suppress";if(!t.get("rowDragManaged"))return"visible";const s=e.colModel.isPivotMode();return(s||e.rowGroupColsSvc?.columns?.length)&&!t.get("refreshAfterGroupEdit")?"hidden":s||e.filterManager?.isAnyFilterPresent()||e.sortSvc?.isSortActive()?"disabled":"visible"}refreshVisibility(){const e=this.visibility,t=this.computeVisibility();e!==t&&(this.visibility=t,this.eventSvc?.dispatchEvent({type:"rowDragVisibilityChanged"}))}},SE=class extends B{constructor(){super(...arguments),this.beanName="rowDropHighlightSvc",this.uiLevel=0,this.dragging=!1,this.row=null,this.position="none"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this)})}onModelUpdated(){const e=this.row,t=this.dragging;!e||e?.rowIndex===null||this.position==="none"?this.clear():this.set(e,this.position),this.dragging=t}destroy(){this.clear(),super.destroy()}clear(){const e=this.row;this.dragging=!1,e&&(this.uiLevel=0,this.position="none",this.row=null,e.dispatchRowEvent("rowHighlightChanged"))}set(e,t){const i=e!==this.row,s=e.uiLevel,o=t!==this.position,n=s!==this.uiLevel;this.dragging=!1,(i||o||n)&&(i&&this.clear(),this.uiLevel=s,this.position=t,this.row=e,e.dispatchRowEvent("rowHighlightChanged"))}fromDrag(e){const t=e?.dropTarget;if(t){const{highlight:i,target:s,position:o}=t;if(i&&s&&o!=="none"){this.set(s,o),this.dragging=!0;return}}this.dragging&&this.clear()}},BC={moduleName:"Drag",version:Q,beans:[dE]},RE={moduleName:"DragAndDrop",version:Q,dynamicBeans:{dndSourceComp:XF},icons:{rowDrag:"grip"}},GC={moduleName:"SharedDragAndDrop",version:Q,beans:[o3],dependsOn:[BC],userComponents:{agDragAndDropImage:eE},icons:{columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",rowDrag:"grip"}},FE={moduleName:"RowDrag",version:Q,beans:[SE,yE],apiFunctions:{addRowDropZone:tE,removeRowDropZone:iE,getRowDropZoneParams:sE,getRowDropPositionIndicator:oE,setRowDropPositionIndicator:nE},dependsOn:[GC]},EE={moduleName:"HorizontalResize",version:Q,beans:[uE],dependsOn:[BC]},DE=":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}}",PE=class extends B{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:i,executeLaterFuncs:s}=this;if(i.length===0&&s.length===0){e(),t();return}const o=n=>{for(;n.length;){const r=n.pop();r&&r()}};this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e(),o(i)},0),window.setTimeout(()=>{t(),o(s)},200)})}};function TE(e,t,i){e.colMoves?.moveColumnByIndex(t,i,"api")}function kE(e,t,i){e.colMoves?.moveColumns(t,i,"api")}var IE=class extends B{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 i of t)i.isPrimary()&&(i.isAnyFunctionActive()||(i.isAllowValue()?this.columnsToAggregate.push(i):i.isAllowRowGroup()?this.columnsToGroup.push(i):i.isAllowPivot()&&this.columnsToPivot.push(i)))}getIconName(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?"pinned":"move":null}onDragLeave(e){this.clearColumnsList()}clearColumnsList(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0}onDragging(e){}onDragStop(e){const{valueColsSvc:t,rowGroupColsSvc:i,pivotColsSvc:s}=this.beans;this.columnsToAggregate.length>0&&t?.addColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&i?.addColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&s?.addColumns(this.columnsToPivot,"toolPanelDragAndDrop")}onDragCancel(){this.clearColumnsList()}};function ME(e,t){!t||t.length<=1||t.filter(s=>e.indexOf(s)<0).length>0||t.sort((s,o)=>{const n=e.indexOf(s),r=e.indexOf(o);return n-r})}function AE(e){const t=[...e];for(const i of e){let s=null,o=i.getParent();for(;o!=null&&o.getDisplayedLeafColumns().length===1;)s=o,o=o.getParent();if(s!=null){const r=!!s.getColGroupDef()?.marryChildren?s.getProvidedColumnGroup().getLeafColumns():s.getLeafColumns();for(const a of r)t.includes(a)||t.push(a)}}return t}function LE(e,t,i,s){const o=s.allCols;let n=null,r=null;for(let a=0;a<e.length;a++){const l=e[a],c=i.getProposedColumnOrder(t,l);if(!i.doesOrderPassRules(c))continue;const d=c.filter(h=>o.includes(h));if(r===null)r=d;else if(!Ms(d,r))break;const u=NE(c);(n===null||u<n.fragCount)&&(n={move:l,fragCount:u})}return n}function VC(e){const{isFromHeader:t,fromLeft:i,xPosition:s,fromEnter:o,fakeEvent:n,pinned:r,gos:a,colModel:l,colMoves:c,visibleCols:d}=e;let{allMovingColumns:u}=e;t&&(u=AE(u));const h=u.slice();ME(l.getCols(),h);const p=BE({movingCols:h,draggingRight:i,xPosition:s,pinned:r,gos:a,colModel:l,visibleCols:d}),m=OE(h,l);if(p.length===0)return;const v=p[0];if(m!==null&&(t||!o)&&!n&&(!i&&v>=m||i&&v<=m))return;const w=LE(p,h,c,d);if(!w)return;const b=w.move;if(!(b>l.getCols().length-h.length))return{columns:h,toIndex:b}}function zC(e){const{columns:t,toIndex:i}=VC(e)||{},{finished:s,colMoves:o}=e;return!t||i==null?null:(o.moveColumns(t,i,"uiColumnMoved",s),s?null:{columns:t,toIndex:i})}function OE(e,t){const i=t.getCols(),s=e.map(l=>i.indexOf(l)).sort((l,c)=>l-c),o=s[0];return $e(s)-o!==s.length-1?null:o}function NE(e){function t(s){const o=[];let n=s.getOriginalParent();for(;n!=null;)o.push(n),n=n.getOriginalParent();return o}let i=0;for(let s=0;s<e.length-1;s++){let o=t(e[s]),n=t(e[s+1]);[o,n]=o.length>n.length?[o,n]:[n,o];for(const r of o)n.indexOf(r)===-1&&i++}return i}function HE(e,t){switch(t){case"left":return e.leftCols;case"right":return e.rightCols;default:return e.centerCols}}function BE(e){const{movingCols:t,draggingRight:i,xPosition:s,pinned:o,gos:n,colModel:r,visibleCols:a}=e;if(n.get("suppressMovableColumns")||t.some(x=>x.getColDef().suppressMovable))return[];const c=HE(a,o),d=r.getCols(),u=c.filter(x=>t.includes(x)),h=c.filter(x=>!t.includes(x)),p=d.filter(x=>!t.includes(x));let m=0,v=s;if(i){let x=0;for(const y of u)x+=y.getActualWidth();v-=x}if(v>0){for(let x=0;x<h.length;x++){const y=h[x];if(v-=y.getActualWidth(),v<0)break;m++}i&&m++}let C;if(m>0){const x=h[m-1];C=p.indexOf(x)+1}else C=p.indexOf(h[0]),C===-1&&(C=0);const w=[C],b=(x,y)=>x-y;if(i){let x=C+1;const y=d.length-1;for(;x<=y;)w.push(x),x++;w.sort(b)}else{let x=C;const y=d.length-1;let S=d[x];for(;x<=y&&c.indexOf(S)<0;)x++,w.push(x),S=d[x];x=C-1;const E=0;for(;x>=E;)w.push(x),x--;w.sort(b).reverse()}return w}function Tu(e){const{pinned:t,fromKeyboard:i,gos:s,ctrlsSvc:o,useHeaderRow:n,skipScrollPadding:r}=e;let a=o.getHeaderRowContainerCtrl(t)?.eViewport,{x:l}=e;return a?(i&&(l-=a.getBoundingClientRect().left),s.get("enableRtl")&&(n&&(a=a.querySelector(".ag-header-row")),l=a.clientWidth-l),t==null&&!r&&(l+=o.get("center").getCenterViewportScrollLeft()),l):0}function Dd(e,t){for(const i of e)i.moving=t,i.dispatchColEvent("movingChanged","uiColumnMoved")}var nf=7,ku=100,Ga=ku/2,GE=5,VE=100,zE=class extends B{constructor(e){super(),this.pinned=e,this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.isCenterContainer=!te(e)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}getIconName(){const{pinned:e,lastDraggingEvent:t}=this,{dragItem:i}=t||{},s=i?.columns??[];for(const o of s){const n=o.getPinned();if(o.getColDef().lockPinned){if(n==e)return"move";continue}const r=i?.containerType;if(r===e||!e)return"move";if(e&&(!n||r!==e))return"pinned"}return"notAllowed"}onDragEnter(e){const t=e.dragItem,i=t.columns;if(e.dragSource.type===0)this.setColumnsVisible(i,!0,"uiColumnDragged");else{const o=t.visibleState,n=(i||[]).filter(r=>o[r.getId()]&&!r.isVisible());this.setColumnsVisible(n,!0,"uiColumnDragged")}this.gos.get("suppressMoveWhenColumnDragging")||this.attemptToPinColumns(i,this.pinned),this.onDragging(e,!0,!0)}onDragging(e=this.lastDraggingEvent,t=!1,i=!1,s=!1){const{gos:o,ctrlsSvc:n}=this.beans,r=o.get("suppressMoveWhenColumnDragging");if(s&&!r){this.finishColumnMoving();return}if(this.lastDraggingEvent=e,!e||!s&&it(e.hDirection))return;const a=Tu({x:e.x,pinned:this.pinned,gos:o,ctrlsSvc:n});t||this.checkCenterForScrolling(a),r?this.handleColumnDragWhileSuppressingMovement(e,t,i,a,s):this.handleColumnDragWhileAllowingMovement(e,t,i,a,s)}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,i){if(!e?.length)return;const s=e.filter(o=>!o.getColDef().lockVisible);s.length&&this.beans.colModel.setColsVisible(s,t,i)}finishColumnMoving(){this.clearHighlighted();const e=this.lastMovedInfo;if(!e)return;const{columns:t,toIndex:i}=e;this.beans.colMoves.moveColumns(t,i,"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,i,s,o){const n=this.getAllMovingColumns(e,!0);if(o){const r=this.isAttemptingToPin(n);r&&this.attemptToPinColumns(n,void 0,!0);const{fromLeft:a,xPosition:l}=this.getNormalisedXPositionInfo(n,r)||{};if(a==null||l==null){this.finishColumnMoving();return}this.moveColumnsAfterHighlight({allMovingColumns:n,xPosition:l,fromEnter:t,fakeEvent:i,fromLeft:a})}else{if(!this.beans.dragAndDrop.isDropZoneWithinThisGrid(e))return;this.highlightHoveredColumn(n,s)}}handleColumnDragWhileAllowingMovement(e,t,i,s,o){const n=this.getAllMovingColumns(e),r=this.normaliseDirection(e.hDirection)==="right",a=e.dragSource.type===1,l=this.getMoveColumnParams({allMovingColumns:n,isFromHeader:a,xPosition:s,fromLeft:r,fromEnter:t,fakeEvent:i}),c=zC({...l,finished:o});c&&(this.lastMovedInfo=c)}getAllMovingColumns(e,t=!1){const i=e.dragSource.getDragItem();let s=null;t?(s=i.columnsInSplit,s||(s=i.columns)):s=i.columns;const o=n=>n.getColDef().lockPinned?n.getPinned()==this.pinned:!0;return s?s.filter(o):[]}getMoveColumnParams(e){const{allMovingColumns:t,isFromHeader:i,xPosition:s,fromLeft:o,fromEnter:n,fakeEvent:r}=e,{gos:a,colModel:l,colMoves:c,visibleCols:d}=this.beans;return{allMovingColumns:t,isFromHeader:i,fromLeft:o,xPosition:s,pinned:this.pinned,fromEnter:n,fakeEvent:r,gos:a,colModel:l,colMoves:c,visibleCols:d}}highlightHoveredColumn(e,t){const{gos:i,colModel:s}=this.beans,o=i.get("enableRtl"),n=s.getCols().filter(d=>d.isVisible()&&d.getPinned()===this.pinned);let r=null,a=null,l=null;for(const d of n){if(a=d.getActualWidth(),r=this.getNormalisedColumnLeft(d,0,o),r!=null){const u=r+a;if(r<=t&&u>=t){l=d;break}}r=null,a=null}if(l)e.indexOf(l)!==-1&&(l=null);else{for(let d=n.length-1;d>=0;d--){const u=n[d],h=n[d].getParent();if(!h){l=u;break}const p=h?.getDisplayedLeafColumns();if(p.length){l=$e(p);break}}if(!l)return;r=this.getNormalisedColumnLeft(l,0,o),a=l.getActualWidth()}if(l==null||r==null||a==null){this.lastHighlightedColumn?.column!==l&&this.clearHighlighted();return}let c;if(t-r<a/2){const d=n.indexOf(l);d===0?c=0:(c=1,l=n[d-1])}else c=1;(this.lastHighlightedColumn?.column!==l||this.lastHighlightedColumn?.position!==c)&&this.clearHighlighted(),rf(l,c),this.lastHighlightedColumn={column:l,position:c}}getNormalisedXPositionInfo(e,t){const{gos:i,visibleCols:s}=this.beans,o=i.get("enableRtl"),{firstMovingCol:n,column:r,position:a}=this.getColumnMoveAndTargetInfo(e,t,o);if(!n||!r||a==null)return;const l=s.allCols,c=l.indexOf(n),d=l.indexOf(r),u=a===0,h=c<d||c===d&&!u;let p=0;if(u?h&&(p-=1):h||(p+=1),d+p===c)return;const m=l[d+p];if(!m)return;const v=this.getNormalisedColumnLeft(m,20,o);return{fromLeft:h,xPosition:v}}getColumnMoveAndTargetInfo(e,t,i){const s=this.lastHighlightedColumn||{},{firstMovingCol:o,lastMovingCol:n}=WE(e);if(!o||!n||s.column||!t)return{firstMovingCol:o,...s};const a=this.getPinDirection()==="left";return{firstMovingCol:o,position:a?1:0,column:a!==i?o:n}}normaliseDirection(e){if(this.gos.get("enableRtl"))switch(e){case"left":return"right";case"right":return"left"}return e}getNormalisedColumnLeft(e,t,i){const{gos:s,ctrlsSvc:o}=this.beans,n=e.getLeft();if(n==null)return null;const r=e.getActualWidth();return Tu({x:i?n+r-t:n+t,pinned:e.getPinned(),useHeaderRow:i,skipScrollPadding:!0,gos:s,ctrlsSvc:o})}isAttemptingToPin(e){const t=this.needToMoveLeft||this.needToMoveRight,i=this.failedMoveAttempts>nf;return t&&i||e.some(s=>s.getPinned()!==this.pinned)}moveColumnsAfterHighlight(e){const{allMovingColumns:t,xPosition:i,fromEnter:s,fakeEvent:o,fromLeft:n}=e,r=this.getMoveColumnParams({allMovingColumns:t,isFromHeader:!0,xPosition:i,fromLeft:n,fromEnter:s,fakeEvent:o}),{columns:a,toIndex:l}=VC(r)||{};a&&l!=null&&(this.lastMovedInfo={columns:a,toIndex:l}),this.finishColumnMoving()}clearHighlighted(){const{lastHighlightedColumn:e}=this;e&&(rf(e.column,null),this.lastHighlightedColumn=null)}checkCenterForScrolling(e){if(!this.isCenterContainer)return;const t=this.beans.ctrlsSvc.get("center"),i=t.getCenterViewportScrollLeft(),s=i+t.getCenterWidth();let o,n;this.gos.get("enableRtl")?(o=e<i+Ga,n=e>s-Ga):(n=e<i+Ga,o=e>s-Ga),this.needToMoveRight=o,this.needToMoveLeft=n,n||o?this.ensureIntervalStarted():this.ensureIntervalCleared()}ensureIntervalStarted(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),VE),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*GE,e>ku&&(e=ku);let t=null;const i=this.gridBodyCon.scrollFeature;if(this.needToMoveLeft?t=i.scrollHorizontally(-e):this.needToMoveRight&&(t=i.scrollHorizontally(e)),t!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;const{pinnedCols:s,dragAndDrop:o,gos:n}=this.beans;if(this.failedMoveAttempts<=nf+1||!s)return;if(o.setDragImageCompIcon("pinned"),!n.get("suppressMoveWhenColumnDragging")){const r=this.lastDraggingEvent?.dragItem.columns;this.attemptToPinColumns(r,void 0,!0)}}}getPinDirection(){if(this.needToMoveLeft||this.pinned==="left")return"left";if(this.needToMoveRight||this.pinned==="right")return"right"}attemptToPinColumns(e,t,i=!1){const s=(e||[]).filter(r=>!r.getColDef().lockPinned);if(!s.length)return 0;i&&(t=this.getPinDirection());const{pinnedCols:o,dragAndDrop:n}=this.beans;return o?.setColsPinned(s,t,"uiColumnDragged"),i&&n.nudge(),s.length}destroy(){super.destroy(),this.lastDraggingEvent=null,this.clearHighlighted(),this.lastMovedInfo=null}};function rf(e,t){e.highlighted!==t&&(e.highlighted=t,e.dispatchColEvent("headerHighlightChanged","uiColumnMoved"))}function WE(e){const t=e.length;let i,s;for(let o=0;o<t;o++){if(!i){const n=e[o];n.getLeft()!=null&&(i=n)}if(!s){const n=e[t-1-o];n.getLeft()!=null&&(s=n)}if(i&&s)break}return{firstMovingCol:i,lastMovingCol:s}}var jE=class extends B{constructor(e,t){super(),this.pinned=e,this.eContainer=t}postConstruct(){const{ctrlsSvc:e,dragAndDrop:t}=this.beans,i=this.pinned;e.whenReady(this,s=>{let o;const n=s.gridBodyCtrl.eBodyViewport;switch(i){case"left":o=[[n,s.left.eContainer],[s.bottomLeft.eContainer],[s.topLeft.eContainer]];break;case"right":o=[[n,s.right.eContainer],[s.bottomRight.eContainer],[s.topRight.eContainer]];break;default:o=[[n,s.center.eViewport],[s.bottomCenter.eViewport],[s.topCenter.eViewport]];break}this.eSecondaryContainers=o}),this.moveColumnFeature=this.createManagedBean(new zE(i)),this.bodyDropPivotTarget=this.createManagedBean(new IE(i)),t.addDropTarget(this),this.addDestroyFunc(()=>t.removeDropTarget(this))}isInterestedIn(e){return e===1||e===0&&this.gos.get("allowDragFromColumnsToolPanel")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}getIconName(){return this.currentDropListener.getIconName()}isDropColumnInPivotMode(e){return this.beans.colModel.isPivotMode()&&e.dragSource.type===0}onDragEnter(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)}onDragLeave(e){this.currentDropListener.onDragLeave(e)}onDragging(e){this.currentDropListener.onDragging(e)}onDragStop(e){this.currentDropListener.onDragStop(e)}onDragCancel(){this.currentDropListener.onDragCancel()}};function WC(e,t){const i=[],s=[],o=[];return e.forEach(r=>{const a=r.getColDef().lockPosition;a==="right"?o.push(r):a==="left"||a===!0?i.push(r):s.push(r)}),t.get("enableRtl")?[...o,...s,...i]:[...i,...s,...o]}function jC(e,t){let i=!0;return Zi(null,t,s=>{if(!Dt(s))return;const o=s;if(!o.getColGroupDef()?.marryChildren)return;const a=[];for(const h of o.getLeafColumns()){const p=e.indexOf(h);a.push(p)}const l=Math.max.apply(Math,a),c=Math.min.apply(Math,a),d=l-c,u=o.getLeafColumns().length-1;d>u&&(i=!1)}),i}var _E=class extends B{constructor(){super(...arguments),this.beanName="colMoves"}moveColumnByIndex(e,t,i){const s=this.beans.colModel.getCols();if(!s)return;const o=s[e];this.moveColumns([o],t,i)}moveColumns(e,t,i,s=!0){const{colModel:o,colAnimation:n,visibleCols:r,eventSvc:a}=this.beans,l=o.getCols();if(!l)return;if(t>l.length-e.length){$(30,{toIndex:t});return}n?.start();const c=o.getColsForKeys(e);this.doesMovePassRules(c,t)&&(yg(o.getCols(),c,t),r.refresh(i),a.dispatchEvent({type:"columnMoved",columns:c,column:c.length===1?c[0]:null,toIndex:t,finished:s,source:i})),n?.finish()}doesMovePassRules(e,t){const i=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(i)}doesOrderPassRules(e){const{colModel:t,gos:i}=this.beans;return!(!jC(e,t.getColTree())||!(o=>{const n=c=>c?c==="left"||c===!0?-1:1:0,r=i.get("enableRtl");let a=r?1:-1,l=!0;for(const c of o){const d=n(c.getColDef().lockPosition);r?d>a&&(l=!1):d<a&&(l=!1),a=d}return l})(e))}getProposedColumnOrder(e,t){const s=this.beans.colModel.getCols().slice();return yg(s,e,t),s}createBodyDropTarget(e,t){return new jE(e,t)}moveHeader(e,t,i,s,o){const{ctrlsSvc:n,gos:r,colModel:a,visibleCols:l,focusSvc:c}=this.beans,d=t.getBoundingClientRect(),u=d.left,h=rt(i),p=h?d.width:i.getActualWidth(),m=e==="left"!==r.get("enableRtl"),v=Tu({x:m?u-20:u+p+20,pinned:s,fromKeyboard:!0,gos:r,ctrlsSvc:n}),C=c.focusedHeader;zC({allMovingColumns:h?i.getLeafColumns():[i],isFromHeader:!0,fromLeft:e==="right",xPosition:v,pinned:s,fromEnter:!1,fakeEvent:!1,gos:r,colModel:a,colMoves:this,visibleCols:l,finished:!0});let w;if(h){const b=i.getDisplayedLeafColumns();w=m?b[0]:$e(b)}else w=i;if(n.getScrollFeature().ensureColumnVisible(w,"auto"),(!o.isAlive()||r.get("ensureDomOrder"))&&C){let b;if(h){const x=i.getGroupId(),y=i.getLeafColumns();if(!y.length)return;const S=y[0].getParent();if(!S)return;b=UE(S,x)}else b=i;b&&c.focusHeaderPosition({headerPosition:{...C,column:b}})}}setDragSourceForHeader(e,t,i){const{gos:s,colModel:o,dragAndDrop:n,visibleCols:r}=this.beans;let a=!s.get("suppressDragLeaveHidesColumns");const l=rt(t),c=l?t.getProvidedColumnGroup().getLeafColumns():[t],u={type:1,eElement:e,getDefaultIconName:()=>a?"hide":"notAllowed",getDragItem:l?()=>qE(t,r.allCols):()=>$E(t),dragItemName:i,onDragStarted:()=>{a=!s.get("suppressDragLeaveHidesColumns"),Dd(c,!0)},onDragStopped:()=>Dd(c,!1),onDragCancelled:()=>Dd(c,!1),onGridEnter:h=>{if(a){const{columns:p=[],visibleState:m}=h??{},v=l?w=>!m||m[w.getColId()]:()=>!0,C=p.filter(w=>!w.getColDef().lockVisible&&v(w));o.setColsVisible(C,!0,"uiColumnMoved")}},onGridExit:h=>{if(a){const p=h?.columns?.filter(m=>!m.getColDef().lockVisible)||[];o.setColsVisible(p,!1,"uiColumnMoved")}}};return n.addDragSource(u,!0),u}};function UE(e,t){for(;e;){if(e.getGroupId()===t)return e;e=e.getParent()}}function $E(e){const t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t,containerType:e.pinned}}function qE(e,t){const i=e.getProvidedColumnGroup().getLeafColumns(),s={};for(const a of i)s[a.getId()]=a.isVisible();const o=[];for(const a of t)i.indexOf(a)>=0&&(o.push(a),Hi(i,a));for(const a of i)o.push(a);const n=[],r=e.getLeafColumns();for(const a of o)r.indexOf(a)!==-1&&n.push(a);return{columns:o,columnsInSplit:n,visibleState:s,containerType:n[0]?.pinned}}var KE={moduleName:"ColumnMove",version:Q,beans:[_E,PE],apiFunctions:{moveColumnByIndex:TE,moveColumns:kE},dependsOn:[GC],css:[DE]},YE=class extends B{constructor(){super(...arguments),this.beanName="autoWidthCalc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowContainerCtrl=e.center})}getPreferredWidthForColumn(e,t){const i=this.getHeaderCellForColumn(e);if(!i)return-1;const s=this.beans.rowRenderer.getAllCellsNotSpanningForColumn(e);return t||s.push(i),this.getPreferredWidthForElements(s)}getPreferredWidthForColumnGroup(e){const t=this.getHeaderCellForColumn(e);return t?this.getPreferredWidthForElements([t]):-1}getPreferredWidthForElements(e,t){const i=document.createElement("form");i.style.position="fixed";const s=this.centerRowContainerCtrl.eContainer;for(const n of e)this.cloneItemIntoDummy(n,i);s.appendChild(i);const o=Math.ceil(i.getBoundingClientRect().width);return i.remove(),t=t??this.gos.get("autoSizePadding"),o+t}getHeaderCellForColumn(e){let t=null;for(const i of this.beans.ctrlsSvc.getHeaderRowContainerCtrls()){const s=i.getHtmlElementForColumnHeader(e);s!=null&&(t=s)}return t}cloneItemIntoDummy(e,t){const i=e.cloneNode(!0);i.style.width="",i.style.position="static",i.style.left="";const s=document.createElement("div"),o=s.classList;["ag-header-cell","ag-header-group-cell"].some(a=>i.classList.contains(a))?(o.add("ag-header","ag-header-row"),s.style.position="static"):o.add("ag-row");let r=e.parentElement;for(;r;){if(["ag-header-row","ag-row"].some(l=>r.classList.contains(l))){for(let l=0;l<r.classList.length;l++){const c=r.classList[l];c!="ag-row-position-absolute"&&o.add(c)}break}r=r.parentElement}s.appendChild(i),t.appendChild(s)}},_C={moduleName:"AutoWidth",version:Q,beans:[YE]};function ZE(e,t,i=!0,s="api"){e.colResize?.setColumnWidths(t,!1,i,s)}function UC(e,t){if(!e||e.length==0)return;const i=t(e[0]);for(let s=1;s<e.length;s++)if(i!==t(e[s]))return;return i}function $C(e,t,i){if(!t.length)return;const s=t.length===1?t[0]:null,o=UC(t,n=>n.getPinned());e.dispatchEvent({type:"columnPinned",pinned:o??null,columns:t,column:s,source:i})}function XE(e,t,i){if(!t.length)return;const s=t.length===1?t[0]:null,o=UC(t,n=>n.isVisible());e.dispatchEvent({type:"columnVisible",visible:o,columns:t,column:s,source:i})}function QE(e,t,i,s){e.dispatchEvent({type:t,columns:i,column:i&&i.length==1?i[0]:null,source:s})}function yn(e,t,i,s,o=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:t.length===1?t[0]:null,flexColumns:o,finished:i,source:s})}var JE=class extends B{constructor(e,t,i,s){super(),this.comp=e,this.eResize=t,this.pinned=i,this.columnGroup=s}postConstruct(){if(!this.columnGroup.isResizable()){this.comp.setResizableDisplayed(!1);return}const{horizontalResizeSvc:e,gos:t,colAutosize:i}=this.beans,s=e.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(s),!t.get("suppressAutoSize")&&i&&this.addDestroyFunc(i.addColumnGroupResize(this.eResize,this.columnGroup,()=>this.resizeLeafColumnsToFit("uiColumnResized")))}onResizeStart(e){const{columnsToResize:t,resizeStartWidth:i,resizeRatios:s,groupAfterColumns:o,groupAfterStartWidth:n,groupAfterRatios:r}=this.getInitialValues(e);this.resizeCols=t,this.resizeStartWidth=i,this.resizeRatios=s,this.resizeTakeFromCols=o,this.resizeTakeFromStartWidth=n,this.resizeTakeFromRatios=r,this.toggleColumnResizing(!0)}onResizing(e,t,i="uiColumnResized"){const s=this.normaliseDragChange(t),o=this.resizeStartWidth+s;this.resizeColumnsFromLocalValues(o,i,e)}getInitialValues(e){const t=l=>l.reduce((c,d)=>c+d.getActualWidth(),0),i=(l,c)=>l.map(d=>d.getActualWidth()/c),s=this.getColumnsToResize(),o=t(s),n=i(s,o),r={columnsToResize:s,resizeStartWidth:o,resizeRatios:n};let a=null;if(e&&(a=this.beans.colGroupSvc?.getGroupAtDirection(this.columnGroup,"After")??null),a){const l=a.getDisplayedLeafColumns(),c=r.groupAfterColumns=l.filter(u=>u.isResizable()),d=r.groupAfterStartWidth=t(c);r.groupAfterRatios=i(c,d)}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),i=this.getInitialValues();t>i.resizeStartWidth&&this.resizeColumns(i,t,e,!0)}resizeColumnsFromLocalValues(e,t,i=!0){if(!this.resizeCols||!this.resizeRatios)return;const s={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:this.resizeTakeFromCols,groupAfterStartWidth:this.resizeTakeFromStartWidth,groupAfterRatios:this.resizeTakeFromRatios};this.resizeColumns(s,e,t,i)}resizeColumns(e,t,i,s=!0){const{columnsToResize:o,resizeStartWidth:n,resizeRatios:r,groupAfterColumns:a,groupAfterStartWidth:l,groupAfterRatios:c}=e,d=[];if(d.push({columns:o,ratios:r,width:t}),a){const u=t-n;d.push({columns:a,ratios:c,width:l-u})}this.beans.colResize?.resizeColumnSets({resizeSets:d,finished:s,source:i}),s&&this.toggleColumnResizing(!1)}toggleColumnResizing(e){this.comp.toggleCss("ag-column-resizing",e)}getColumnsToResize(){return this.columnGroup.getDisplayedLeafColumns().filter(t=>t.isResizable())}normaliseDragChange(e){let t=e;return this.gos.get("enableRtl")?this.pinned!=="left"&&(t*=-1):this.pinned==="right"&&(t*=-1),t}destroy(){super.destroy(),this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0}},eD=class extends B{constructor(e,t,i,s,o){super(),this.pinned=e,this.column=t,this.eResize=i,this.comp=s,this.ctrl=o}postConstruct(){const e=[];let t,i;const s=()=>{if(Ke(this.eResize,t),!t)return;const{horizontalResizeSvc:r,colAutosize:a}=this.beans,l=r.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});e.push(l),i&&a&&e.push(a.addColumnAutosizeListeners(this.eResize,this.column))},o=()=>{for(const r of e)r();e.length=0},n=()=>{const r=this.column.isResizable(),a=!this.gos.get("suppressAutoSize")&&!this.column.getColDef().suppressAutoSize;(r!==t||a!==i)&&(t=r,i=a,o(),s())};n(),this.addDestroyFunc(o),this.ctrl.setRefreshFunction("resize",n)}onResizing(e,t){const{column:i,lastResizeAmount:s,resizeStartWidth:o,beans:n}=this,r=this.normaliseResizeAmount(t),a=o+r,l=[{key:i,newWidth:a}],{pinnedCols:c,ctrlsSvc:d,colResize:u}=n;if(this.column.getPinned()){const h=c?.leftWidth??0,p=c?.rightWidth??0,m=Pr(d.getGridBodyCtrl().eBodyViewport)-50;if(h+p+(r-s)>m)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 i=this.pinned!=="left",s=this.pinned==="right";return this.gos.get("enableRtl")?i&&(t*=-1):s&&(t*=-1),t}},tD=class extends B{constructor(){super(...arguments),this.beanName="colResize"}setColumnWidths(e,t,i,s){const o=[],{colModel:n,gos:r,visibleCols:a}=this.beans;for(const l of e){const c=n.getColDefCol(l.key)||n.getCol(l.key);if(!c)continue;if(o.push({width:l.newWidth,ratios:[1],columns:[c]}),r.get("colResizeDefault")==="shift"&&(t=!t),t){const u=a.getColAfter(c);if(!u)continue;const h=c.getActualWidth()-l.newWidth,p=u.getActualWidth()+h;o.push({width:p,ratios:[1],columns:[u]})}}o.length!==0&&this.resizeColumnSets({resizeSets:o,finished:i,source:s})}resizeColumnSets(e){const{resizeSets:t,finished:i,source:s}=e;if(!(!t||t.every(d=>iD(d)))){if(i){const d=t&&t.length>0?t[0].columns:null;yn(this.eventSvc,d,i,s)}return}const n=[],r=[];for(const d of t){const{width:u,columns:h,ratios:p}=d,m={},v={};for(const b of h)r.push(b);let C=!0,w=0;for(;C;){if(w++,w>1e3){We(31);break}C=!1;const b=[];let x=0,y=u;h.forEach((E,R)=>{if(v[E.getId()])y-=m[E.getId()];else{b.push(E);const D=p[R];x+=D}});const S=1/x;b.forEach((E,R)=>{const F=R===b.length-1;let D;F?D=y:(D=Math.round(p[R]*u*S),y-=D);const T=E.getMinWidth(),P=E.getMaxWidth();D<T?(D=T,v[E.getId()]=!0,C=!0):P>0&&D>P&&(D=P,v[E.getId()]=!0,C=!0),m[E.getId()]=D})}for(const b of h){const x=m[b.getId()];b.getActualWidth()!==x&&(b.setActualWidth(x,s),n.push(b))}}const a=n.length>0;let l=[];if(a){const{colFlex:d,visibleCols:u,colViewport:h}=this.beans;l=d?.refreshFlexedColumns({resizingCols:r,skipSetLeft:!0})??[],u.setLeftValues(s),u.updateBodyWidths(),h.checkViewportColumns()}const c=r.concat(l);(a||i)&&yn(this.eventSvc,c,i,s,l)}resizeHeader(e,t,i){if(!e.isResizable())return;const s=e.getActualWidth(),o=e.getMinWidth(),n=e.getMaxWidth(),r=Math.min(Math.max(s+t,o),n);this.setColumnWidths([{key:e,newWidth:r}],i,!0,"uiColumnResized")}createResizeFeature(e,t,i,s,o){return new eD(e,t,i,s,o)}createGroupResizeFeature(e,t,i,s){return new JE(e,t,i,s)}};function iD(e){const{columns:t,width:i}=e;let s=0,o=0,n=!0;for(const l of t){const c=l.getMinWidth();s+=c||0;const d=l.getMaxWidth();d>0?o+=d:n=!1}const r=i>=s,a=!n||i<=o;return r&&a}var sD={moduleName:"ColumnResize",version:Q,beans:[tD],apiFunctions:{setColumnWidths:ZE},dependsOn:[EE,_C]},oD=class extends B{constructor(e,t){super(),this.removeChildListenersFuncs=[],this.columnGroup=t,this.comp=e}postConstruct(){this.addListenersToChildrenColumns(),this.addManagedListeners(this.columnGroup,{displayedChildrenChanged:this.onDisplayedChildrenChanged.bind(this)}),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))}addListenersToChildrenColumns(){this.removeListenersOnChildrenColumns();const e=this.onWidthChanged.bind(this);for(const t of this.columnGroup.getLeafColumns())t.__addEventListener("widthChanged",e),t.__addEventListener("visibleChanged",e),this.removeChildListenersFuncs.push(()=>{t.__removeEventListener("widthChanged",e),t.__removeEventListener("visibleChanged",e)})}removeListenersOnChildrenColumns(){for(const e of this.removeChildListenersFuncs)e();this.removeChildListenersFuncs=[]}onDisplayedChildrenChanged(){this.addListenersToChildrenColumns(),this.onWidthChanged()}onWidthChanged(){const e=this.columnGroup.getActualWidth();this.comp.setWidth(`${e}px`),this.comp.toggleCss("ag-hidden",e===0)}},nD=class extends jh{constructor(){super(...arguments),this.onSuppressColMoveChange=()=>{!this.isAlive()||this.isSuppressMoving()?this.removeDragSource():this.dragSource||this.setDragSource(this.eGui)}}wireComp(e,t,i,s,o){const{column:n,beans:r}=this,{context:a,colNames:l,colHover:c,rangeSvc:d,colResize:u}=r;this.comp=e,o=Ur(this,a,o),this.setGui(t,o),this.displayName=l.getDisplayNameForColumnGroup(n,"header"),this.refreshHeaderStyles(),this.addClasses(),this.setupMovingCss(o),this.setupExpandable(o),this.setupTooltip(),this.refreshAnnouncement(),this.setupAutoHeight({wrapperElement:s,compBean:o}),this.setupUserComp(),this.addHeaderMouseListeners(o,s),this.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this)),this.refreshMaxHeaderHeight();const h=this.rowCtrl.pinned,p=n.getProvidedColumnGroup().getLeafColumns();c?.createHoverFeature(o,p,t),d?.createRangeHighlightFeature(o,n,e),o.createManagedBean(new Wh(n,t,r)),o.createManagedBean(new oD(e,n)),u?this.resizeFeature=o.createManagedBean(u.createGroupResizeFeature(e,i,h,n)):e.setResizableDisplayed(!1),o.createManagedBean(new jr(t,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addHighlightListeners(o,p),this.addManagedEventListeners({cellSelectionChanged:()=>this.refreshAnnouncement()}),o.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners(o),o.addDestroyFunc(()=>this.clearComponent())}getHeaderClassParams(){const{column:e,beans:t}=this,i=e.getDefinition();return xe(t.gos,{colDef:i,columnGroup:e,floatingFilter:!1})}refreshMaxHeaderHeight(){const{gos:e,comp:t}=this,i=e.get("groupHeaderHeight");i!=null?i===0?t.setHeaderWrapperHidden(!0):t.setHeaderWrapperMaxHeight(i):(t.setHeaderWrapperHidden(!1),t.setHeaderWrapperMaxHeight(null))}addHighlightListeners(e,t){if(this.beans.gos.get("suppressMoveWhenColumnDragging"))for(const i of t)e.addManagedListeners(i,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,i)})}onLeafColumnHighlightChanged(e){const t=this.column.getDisplayedLeafColumns(),i=t[0]===e,s=$e(t)===e;if(!i&&!s)return;const o=e.getHighlighted(),n=!!this.rowCtrl.getHeaderCellCtrls().find(l=>l.column.isMoving());let r=!1,a=!1;if(n){const l=this.beans.gos.get("enableRtl"),c=o===1,d=o===0;i&&(l?a=c:r=d),s&&(l?r=d:a=c)}this.comp.toggleCss("ag-header-highlight-before",r),this.comp.toggleCss("ag-header-highlight-after",a)}resizeHeader(e,t){const{resizeFeature:i}=this;if(!i)return;const s=i.getInitialValues(t);i.resizeColumns(s,s.resizeStartWidth+e,"uiColumnResized",!0)}resizeLeafColumnsToFit(e){this.resizeFeature?.resizeLeafColumnsToFit(e)}setupUserComp(){const{colGroupSvc:e,userCompFactory:t,gos:i,enterpriseMenuFactory:s}=this.beans,o=this.column,n=o.getProvidedColumnGroup(),r=xe(i,{displayName:this.displayName,columnGroup:o,setExpanded:l=>{e.setColumnGroupOpened(n,l,"gridInitializing")},setTooltip:(l,c)=>{i.assertModuleRegistered("Tooltip",3),this.setupTooltip(l,c)},showColumnMenu:(l,c)=>s?.showMenuAfterButtonClick(n,l,"columnMenu",c),showColumnMenuAfterMouseClick:(l,c)=>s?.showMenuAfterMouseEvent(n,l,"columnMenu",c),eGridHeader:this.eGui}),a=KR(t,r);a&&this.comp.setUserCompDetails(a)}addHeaderMouseListeners(e,t){const{column:i,comp:s,beans:{rangeSvc:o},gos:n}=this,r=d=>this.handleMouseOverChange(d.type==="mouseenter"),a=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",i.getProvidedColumnGroup()),l=d=>this.handleContextMenuMouseEvent(d,void 0,i.getProvidedColumnGroup());e.addManagedListeners(this.eGui,{mouseenter:r,mouseleave:r,click:a,contextmenu:l}),s.toggleCss("ag-header-group-cell-selectable",dn(n));const c=o?.createHeaderGroupCellMouseListenerFeature(this.column,t);c&&this.createManagedBean(c)}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 i=this.refreshExpanded.bind(this);e.addManagedListeners(t,{expandedChanged:i,expandableChanged:i})}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(),i=wC(t,this.gos,null,e);e.isPadding()?(i.push("ag-header-group-cell-no-group"),e.getLeafColumns().every(o=>o.isSpanHeaderHeight())&&i.push("ag-header-span-height")):(i.push("ag-header-group-cell-with-group"),t?.wrapHeaderText&&i.push("ag-header-cell-wrap-text"));for(const s of i)this.comp.toggleCss(s,!0)}setupMovingCss(e){const{column:t}=this,s=t.getProvidedColumnGroup().getLeafColumns(),o=()=>this.comp.toggleCss("ag-header-cell-moving",t.isMoving());for(const n of s)e.addManagedListeners(n,{movingChanged:o});o()}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription())}handleKeyDown(e){if(super.handleKeyDown(e),!this.getWrapperHasFocus())return;const{column:i,expandable:s,gos:o,beans:n}=this,r=dn(o);if(e.key==A.ENTER){if(r&&!e.altKey)n.rangeSvc?.handleColumnSelection(i,e);else if(s){const a=!i.isExpanded();n.colGroupSvc.setColumnGroupOpened(i.getProvidedColumnGroup(),a,"uiColumnExpanded")}}}refreshAnnouncement(){let e;const{gos:t}=this;dn(t)&&(e=this.getLocaleTextFunc()("ariaColumnGroupCellSelection","Press Enter to toggle selection for all visible cells in this column group")),this.ariaAnnouncement=e}announceAriaDescription(){const{beans:e,eGui:t,ariaAnnouncement:i}=this;!i||!t.contains(Je(e))||e.ariaAnnounce?.announceValue(i,"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 rD(e,t,i){e.colGroupSvc?.setColumnGroupOpened(t,i,"api")}function aD(e,t,i){return e.colGroupSvc?.getColumnGroup(t,i)??null}function lD(e,t){return e.colGroupSvc?.getProvidedColGroup(t)??null}function cD(e,t,i){return e.colNames.getDisplayNameForColumnGroup(t,i)||""}function dD(e){return e.colGroupSvc?.getColumnGroupState()??[]}function uD(e,t){e.colGroupSvc?.setColumnGroupState(t,"api")}function hD(e){e.colGroupSvc?.resetColumnGroupState("api")}function pD(e){return e.visibleCols.treeLeft}function gD(e){return e.visibleCols.treeCenter}function fD(e){return e.visibleCols.treeRight}function mD(e){return e.visibleCols.getAllTrees()}var qC=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let i;return typeof t!="number"?i=0:i=t+1,this.existingIds[e]=i,i}};function vD(e,t){for(let i=0;i<t.length;i++){const s=e.indexOf(t[i]);s>=0&&(e[s]=e[e.length-1],e.pop())}}var CD=class extends B{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:i,colModel:s,colGroupSvc:o,colViewport:n,selectionColSvc:r}=this.beans;t||this.buildTrees(s,o),o?.updateOpenClosedVisibility(),this.leftCols=Pd(this.treeLeft),this.centerCols=Pd(this.treeCenter),this.rightCols=Pd(this.treeRight),r?.refreshVisibility(this.leftCols,this.centerCols,this.rightCols),this.joinColsAriaOrder(s),this.joinCols(),this.headerGroupRowCount=this.getHeaderRowCount(),this.setLeftValues(e),this.autoHeightCols=this.allCols.filter(a=>a.isAutoHeight()),i?.refreshFlexedColumns(),this.updateBodyWidths(),this.setFirstRightAndLastLeftPinned(s,this.leftCols,this.rightCols,e),n.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 i=t.getParent();for(;i;){if(!i.isPadding()){const s=i.getProvidedColumnGroup().getLevel()+1;s>e&&(e=s);break}i=i.getParent()}}return e}updateBodyWidths(){const e=qi(this.centerCols),t=qi(this.leftCols),i=qi(this.rightCols);this.isBodyWidthDirty=this.bodyWidth!==e,(this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==i)&&(this.bodyWidth=e,this.leftWidth=t,this.rightWidth=i,this.eventSvc.dispatchEvent({type:"columnContainerWidthChanged"}),this.eventSvc.dispatchEvent({type:"displayedColumnsWidthChanged"}))}setLeftValues(e){this.setLeftValuesOfCols(e),this.setLeftValuesOfGroups()}setFirstRightAndLastLeftPinned(e,t,i,s){let o,n;this.gos.get("enableRtl")?(o=t?t[0]:null,n=i?$e(i):null):(o=t?$e(t):null,n=i?i[0]:null);for(const r of e.getCols())r.setLastLeftPinned(r===o,s),r.setFirstRightPinned(r===n,s)}buildTrees(e,t){const i=e.getColsToShow(),s=i.filter(l=>l.getPinned()=="left"),o=i.filter(l=>l.getPinned()=="right"),n=i.filter(l=>l.getPinned()!="left"&&l.getPinned()!="right"),r=new qC,a=l=>t?t.createColumnGroups(l):l.columns;this.treeLeft=a({columns:s,idCreator:r,pinned:"left",oldDisplayedGroups:this.treeLeft}),this.treeRight=a({columns:o,idCreator:r,pinned:"right",oldDisplayedGroups:this.treeRight}),this.treeCenter=a({columns:n,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(),i=[],s=[],o=[];for(const n of t){const r=n.getPinned();r?r===!0||r==="left"?i.push(n):o.push(n):s.push(n)}this.ariaOrderColumns=i.concat(s).concat(o)}getAriaColIndex(e){let t;return rt(e)?t=e.getLeafColumns()[0]:t=e,this.ariaOrderColumns.indexOf(t)+1}setLeftValuesOfGroups(){for(const e of[this.treeLeft,this.treeRight,this.treeCenter])for(const t of e)rt(t)&&t.checkLeft()}setLeftValuesOfCols(e){const{colModel:t}=this.beans;if(!t.getColDefCols())return;const s=t.getCols().slice(0),o=this.gos.get("enableRtl");for(const n of[this.leftCols,this.rightCols,this.centerCols]){if(o){let r=qi(n);for(const a of n)r-=a.getActualWidth(),a.setLeft(r,e)}else{let r=0;for(const a of n)a.setLeft(r,e),r+=a.getActualWidth()}vD(s,n)}for(const n of s)n.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:i}}=this;return i.colSpanActive?this.getColsForRow(e,t):t}getRightColsForRow(e){const{rightCols:t,beans:{colModel:i}}=this;return i.colSpanActive?this.getColsForRow(e,t):t}getColsForRow(e,t,i,s){const o=[];let n=null;for(let r=0;r<t.length;r++){const a=t[r],l=t.length-r,c=Math.min(a.getColSpan(e),l),d=[a];if(c>1){const h=c-1;for(let p=1;p<=h;p++)d.push(t[r+p]);r+=h}let u;if(i){u=!1;for(const h of d)i(h)&&(u=!0)}else u=!0;u&&(o.length===0&&n&&s&&s(a)&&o.push(n),o.push(a)),n=a}return o}getContainerWidth(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}getColBefore(e){const t=this.allCols,i=t.indexOf(e);return i>0?t[i-1]:null}isPinningLeft(){return this.leftCols.length>0}isPinningRight(){return this.rightCols.length>0}updateColsAndGroupsMap(){this.colsAndGroupsMap={};const e=t=>{this.colsAndGroupsMap[t.getUniqueId()]=t};no(this.treeCenter,!1,e),no(this.treeLeft,!1,e),no(this.treeRight,!1,e)}isVisible(e){return this.colsAndGroupsMap[e.getUniqueId()]===e}getFirstColumn(){const e=this.gos.get("enableRtl"),t=["leftCols","centerCols","rightCols"];e&&t.reverse();for(let i=0;i<t.length;i++){const s=this[t[i]];if(s.length)return e?$e(s):s[0]}return null}getColAfter(e){const t=this.allCols,i=t.indexOf(e);return i<t.length-1?t[i+1]:null}getColsLeftWidth(){return qi(this.leftCols)}getDisplayedColumnsRightWidth(){return qi(this.rightCols)}isColAtEdge(e,t){const i=this.allCols;if(!i.length)return!1;const s=t==="first";let o;if(rt(e)){const n=e.getDisplayedLeafColumns();if(!n.length)return!1;o=s?n[0]:$e(n)}else o=e;return(s?i[0]:$e(i))===o}};function no(e,t,i){if(e)for(let s=0;s<e.length;s++){const o=e[s];if(rt(o)){const n=t?o.getDisplayedChildren():o.getChildren();no(n,t,i)}i(o)}}function Pd(e){const t=[];return no(e,!0,i=>{Es(i)&&t.push(i)}),t}var wD=class extends B{constructor(){super(...arguments),this.beanName="colGroupSvc"}getColumnGroupState(){const e=[],t=this.beans.colModel.getColTree();return Zi(null,t,i=>{Dt(i)&&e.push({groupId:i.getGroupId(),open:i.isExpanded()})}),e}resetColumnGroupState(e){const t=this.beans.colModel.getColDefColTree();if(!t)return;const i=[];Zi(null,t,s=>{if(Dt(s)){const o=s.getColGroupDef(),n={groupId:s.getGroupId(),open:o?o.openByDefault:void 0};i.push(n)}}),this.setColumnGroupState(i,e)}setColumnGroupState(e,t){const{colModel:i,colAnimation:s,visibleCols:o,eventSvc:n}=this.beans;if(!i.getColTree().length)return;s?.start();const a=[];for(const l of e){const c=l.groupId,d=l.open,u=this.getProvidedColGroup(c);u&&u.isExpanded()!==d&&(u.setExpanded(d),a.push(u))}o.refresh(t,!0),a.length&&n.dispatchEvent({type:"columnGroupOpened",columnGroup:a.length===1?a[0]:void 0,columnGroups:a}),s?.finish()}setColumnGroupOpened(e,t,i){let s;Dt(e)?s=e.getId():s=e||"",this.setColumnGroupState([{groupId:s,open:t}],i)}getProvidedColGroup(e){let t=null;return Zi(null,this.beans.colModel.getColTree(),i=>{Dt(i)&&i.getId()===e&&(t=i)}),t}getGroupAtDirection(e,t){const i=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),s=e.getDisplayedLeafColumns(),o=t==="After"?$e(s):s[0],n=`getCol${t}`;for(;;){const r=this.beans.visibleCols[n](o);if(!r)return null;const a=this.getColGroupAtLevel(r,i);if(a!==e)return a}}getColGroupAtLevel(e,t){let i=e.getParent(),s,o;for(;s=i.getProvidedColumnGroup().getLevel(),o=i.getPaddingLevel(),!(s+o<=t);)i=i.getParent();return i}updateOpenClosedVisibility(){const e=this.beans.visibleCols.getAllTrees();no(e,!1,t=>{rt(t)&&t.calculateDisplayedColumns()})}getColumnGroup(e,t){if(!e)return null;if(rt(e))return e;const i=this.beans.visibleCols.getAllTrees(),s=typeof t=="number";let o=null;return no(i,!1,n=>{if(rt(n)){const r=n;let a;s?a=e===r.getGroupId()&&t===r.getPartId():a=e===r.getGroupId(),a&&(o=r)}}),o}createColumnGroups(e){const{columns:t,idCreator:i,pinned:s,oldDisplayedGroups:o,isStandaloneStructure:n}=e,r=this.mapOldGroupsById(o),a=[];let l=t;for(;l.length;){const c=l;l=[];let d=0;const u=h=>{const p=d;d=h;const m=c[p],C=(rt(m)?m.getProvidedColumnGroup():m).getOriginalParent();if(C==null){for(let b=p;b<h;b++)a.push(c[b]);return}const w=this.createColumnGroup(C,i,r,s,n);for(let b=p;b<h;b++)w.addChild(c[b]);l.push(w)};for(let h=1;h<c.length;h++){const p=c[h],v=(rt(p)?p.getProvidedColumnGroup():p).getOriginalParent(),C=c[d],b=(rt(C)?C.getProvidedColumnGroup():C).getOriginalParent();v!==b&&u(h)}d<c.length&&u(c.length)}return n||this.setupParentsIntoCols(a,null),a}createProvidedColumnGroup(e,t,i,s,o,n,r){const a=o.getUniqueKey(t.groupId||null,null),l=Ig(this.beans,t,a),c=new tl(l,a,!1,i);this.createBean(c);const d=this.findExistingGroup(t,n);d&&n.splice(d.idx,1);const u=d?.group;u&&c.setExpanded(u.isExpanded());const h=Kv(this.beans,l.children,i+1,e,s,o,n,r);return c.setChildren(h),c}balanceColumnTree(e,t,i,s){const o=[];for(let n=0;n<e.length;n++){const r=e[n];if(Dt(r)){const a=r,l=this.balanceColumnTree(a.getChildren(),t+1,i,s);a.setChildren(l),o.push(a)}else{let a,l;for(let c=t;c<i;c++){const d=s.getUniqueKey(null,null),u=Ig(this.beans,null,d),h=new tl(u,d,!0,c);this.createBean(h),l&&l.setChildren([h]),l=h,a||(a=l)}if(a&&l)if(o.push(a),e.some(d=>Dt(d))){l.setChildren([r]);continue}else{l.setChildren(e);break}o.push(r)}}return o}findDepth(e){let t=0,i=e;for(;i?.[0]&&Dt(i[0]);)t++,i=i[0].getChildren();return t}findMaxDepth(e,t){let i=t;for(let s=0;s<e.length;s++){const o=e[s];if(Dt(o)){const n=o,r=this.findMaxDepth(n.getChildren(),t+1);i<r&&(i=r)}}return i}balanceTreeForAutoCols(e,t){const i=[];for(const s of e){let o=s;for(let n=t-1;n>=0;n--){const r=new tl(null,`FAKE_PATH_${s.getId()}_${n}`,!0,n);this.createBean(r),r.setChildren([o]),o.originalParent=r,o=r}t===0&&(s.originalParent=null),i.push(o)}return i}findExistingGroup(e,t){if(e.groupId!=null)for(let s=0;s<t.length;s++){const o=t[s];if(o.getColGroupDef()&&o.getId()===e.groupId)return{idx:s,group:o}}}createColumnGroup(e,t,i,s,o){const n=e.getGroupId(),r=t.getInstanceIdForKey(n),a=Qv(n,r);let l=i[a];return l&&l.getProvidedColumnGroup()!==e&&(l=null),te(l)?l.reset():(l=new Ar(e,n,r,s),o||this.createBean(l)),l}mapOldGroupsById(e){const t={},i=s=>{for(const o of s)if(rt(o)){const n=o;t[o.getUniqueId()]=n,i(n.getChildren())}};return e&&i(e),t}setupParentsIntoCols(e,t){for(const i of e??[])if(i.parent!==t&&(this.beans.colViewport.colsWithinViewportHash=""),i.parent=t,rt(i)){const s=i;this.setupParentsIntoCols(s.getChildren(),s)}}},bD={moduleName:"ColumnGroup",version:Q,dynamicBeans:{headerGroupCellCtrl:nD},beans:[wD],apiFunctions:{getAllDisplayedColumnGroups:mD,getCenterDisplayedColumnGroups:gD,getColumnGroup:aD,getColumnGroupState:dD,getDisplayNameForColumnGroup:cD,getLeftDisplayedColumnGroups:pD,getProvidedColumnGroup:lD,getRightDisplayedColumnGroups:fD,resetColumnGroupState:hD,setColumnGroupOpened:rD,setColumnGroupState:uD}};function xi(e,t,i){const{colModel:s,rowGroupColsSvc:o,pivotColsSvc:n,autoColSvc:r,selectionColSvc:a,colAnimation:l,visibleCols:c,pivotResultCols:d,environment:u,valueColsSvc:h,eventSvc:p,gos:m}=e,v=s.getColDefCols()??[],C=a?.getColumns();if(!v.length&&!C?.length)return!1;if(t?.state&&!t.state.forEach)return $(32),!1;const w=(S,E,R,F,D)=>{if(!S)return;const T=CR(E,t.defaultState),P=T("flex").value1,k=T("sort").value1,O=T("sortType").value1,_=ys(k)||Dh(O),L=es(O),N=oc(k),H=_?{type:L,direction:N}:void 0;if(Yv(e,S,T("hide").value1,H,T("sortIndex").value1,T("pinned").value1,P,i),P==null){const z=T("width").value1;if(z!=null){const se=S.getColDef().minWidth??u.getDefaultColumnMinWidth();se!=null&&z>=se&&S.setActualWidth(z,i)}}D||!S.isPrimary()||(h?.syncColumnWithState(S,i,T),o?.syncColumnWithState(S,i,T,R),n?.syncColumnWithState(S,i,T,F))},b=(S,E,R)=>{const F=KC(e,i),D=E.slice(),T={},P={},k=[],O=[],_=[];let L=0;const N=o?.columns.slice()??[],H=n?.columns.slice()??[];for(const M of S){const I=M.colId;if(I.startsWith(Cs)){k.push(M),_.push(M);continue}if(As(I)){O.push(M),_.push(M);continue}const K=R(I);K?(w(K,M,T,P,!1),Hi(D,K)):(_.push(M),L+=1)}const z=M=>w(M,null,T,P,!1);D.forEach(z),o?.sortColumns(af.bind(o,T,N)),n?.sortColumns(af.bind(n,P,H)),s.refreshCols(!1,i);const se=(M,I,G=[])=>{for(const K of I){const oe=M(K.colId);Hi(G,oe),w(oe,K,null,null,!0)}G.forEach(z)};return se(M=>r?.getColumn(M)??null,k,r?.getColumns()?.slice()),se(M=>a?.getColumn(M)??null,O,a?.getColumns()?.slice()),yD(t,s,m),c.refresh(i),p.dispatchEvent({type:"columnEverythingChanged",source:i}),F(),{unmatchedAndAutoStates:_,unmatchedCount:L}};l?.start();let{unmatchedAndAutoStates:x,unmatchedCount:y}=b(t.state||[],v,S=>s.getColDefCol(S));if(x.length>0||te(t.defaultState)){const S=d?.getPivotResultCols()?.list??[];y=b(x,S,E=>d?.getPivotResultCol(E)??null).unmatchedCount}return l?.finish(),y===0}function xD(e,t){const{colModel:i,autoColSvc:s,selectionColSvc:o,eventSvc:n,gos:r}=e,a=i.getColDefCols();if(!a?.length)return;const l=i.getColDefColTree(),c=Zv(l),d=[];let u=1e3,h=1e3;const p=b=>{const x=YC(b);it(x.rowGroupIndex)&&x.rowGroup&&(x.rowGroupIndex=u++),it(x.pivotIndex)&&x.pivot&&(x.pivotIndex=h++),d.push(x)};s?.getColumns()?.forEach(p),o?.getColumns()?.forEach(p),c?.forEach(p),xi(e,{state:d},t);const m=s?.getColumns()??[],w=[...o?.getColumns()??[],...m,...a].map(b=>({colId:b.colId}));xi(e,{state:w,applyOrder:!0},t),n.dispatchEvent(xe(r,{type:"columnsReset",source:t}))}function KC(e,t){const{rowGroupColsSvc:i,pivotColsSvc:s,valueColsSvc:o,colModel:n,sortSvc:r,eventSvc:a}=e,l={rowGroupColumns:i?.columns.slice()??[],pivotColumns:s?.columns.slice()??[],valueColumns:o?.columns.slice()??[]},c=Al(e),d={};for(const u of c)d[u.colId]=u;return()=>{const u=(E,R,F,D)=>{const T=R.map(D),P=F.map(D);if(Ms(T,P))return;const O=new Set(R);for(const L of F)O.delete(L)||O.add(L);const _=[...O];a.dispatchEvent({type:E,columns:_,column:_.length===1?_[0]:null,source:t})},h=E=>{const R=[];return n.forAllCols(F=>{const D=d[F.getColId()];D&&E(D,F)&&R.push(F)}),R},p=E=>E.getColId();u("columnRowGroupChanged",l.rowGroupColumns,i?.columns??[],p),u("columnPivotChanged",l.pivotColumns,s?.columns??[],p);const v=h((E,R)=>{const F=E.aggFunc!=null,D=F!=R.isValueActive(),T=F&&E.aggFunc!=R.getAggFunc();return D||T});v.length>0&&QE(a,"columnValueChanged",v,t),yn(a,h((E,R)=>E.width!=R.getActualWidth()),!0,t),$C(a,h((E,R)=>E.pinned!=R.getPinned()),t),XE(a,h((E,R)=>E.hide==R.isVisible()),t);const y=h((E,R)=>!el(R.getSortDef(),{type:es(E.sortType),direction:oc(E.sort)})||E.sortIndex!=R.getSortIndex());y.length>0&&r?.dispatchSortChangedEvents(t,y);const S=Al(e);RD(c,S,t,n,a)}}function Al(e){const{colModel:t,rowGroupColsSvc:i,pivotColsSvc:s}=e,o=t.getColDefCols();if(it(o)||!t.isAlive())return[];const n=i?.columns,r=s?.columns,a=[],l=d=>{const u=d.isRowGroupActive()&&n?n.indexOf(d):null,h=d.isPivotActive()&&r?r.indexOf(d):null,p=d.isValueActive()?d.getAggFunc():null,m=d.getSortIndex()!=null?d.getSortIndex():null;a.push({colId:d.getColId(),width:d.getActualWidth(),hide:!d.isVisible(),pinned:d.getPinned(),sort:d.getSort(),sortType:d.getSortDef()?.type,sortIndex:m,aggFunc:p,rowGroup:d.isRowGroupActive(),rowGroupIndex:u,pivot:d.isPivotActive(),pivotIndex:h,flex:d.getFlex()??null})};t.forAllCols(d=>l(d));const c=new Map(t.getCols().map((d,u)=>[d.getColId(),u]));return a.sort((d,u)=>{const h=c.has(d.colId)?c.get(d.colId):-1,p=c.has(u.colId)?c.get(u.colId):-1;return h-p}),a}function YC(e){const t=(C,w)=>C??w??null,i=e.getColDef(),s=li(t(i.sort,i.initialSort)),o=s.direction,n=s.type,r=t(i.sortIndex,i.initialSortIndex),a=t(i.hide,i.initialHide),l=t(i.pinned,i.initialPinned),c=t(i.width,i.initialWidth),d=t(i.flex,i.initialFlex);let u=t(i.rowGroupIndex,i.initialRowGroupIndex),h=t(i.rowGroup,i.initialRowGroup);u==null&&!h&&(u=null,h=null);let p=t(i.pivotIndex,i.initialPivotIndex),m=t(i.pivot,i.initialPivot);p==null&&!m&&(p=null,m=null);const v=t(i.aggFunc,i.initialAggFunc);return{colId:e.getColId(),sort:o,sortType:n,sortIndex:r,hide:a,pinned:l,width:c,flex:d,rowGroup:h,rowGroupIndex:u,pivot:m,pivotIndex:p,aggFunc:v}}function yD(e,t,i){if(!e.applyOrder||!e.state)return;const s=[];for(const o of e.state)o.colId!=null&&s.push(o.colId);SD(t.cols,s,t,i)}function SD(e,t,i,s){if(e==null)return;let o=[];const n={};for(const a of t){if(n[a])continue;const l=e.map[a];l&&(o.push(l),n[a]=!0)}let r=0;for(const a of e.list){const l=a.getColId();if(n[l]!=null)continue;l.startsWith(Cs)?o.splice(r++,0,a):o.push(a)}if(o=WC(o,s),!jC(o,i.getColTree())){$(39);return}e.list=o}function RD(e,t,i,s,o){const n={};for(const d of t)n[d.colId]=d;const r={};for(const d of e)n[d.colId]&&(r[d.colId]=!0);const a=e.filter(d=>r[d.colId]),l=t.filter(d=>r[d.colId]),c=[];l.forEach((d,u)=>{const h=a?.[u];if(h&&h.colId!==d.colId){const p=s.getCol(h.colId);p&&c.push(p)}}),c.length&&o.dispatchEvent({type:"columnMoved",columns:c,column:c.length===1?c[0]:null,finished:!0,source:i})}var af=(e,t,i,s)=>{const o=e[i.getId()],n=e[s.getId()],r=o!=null,a=n!=null;if(r&&a)return o-n;if(r)return-1;if(a)return 1;const l=t.indexOf(i),c=t.indexOf(s),d=l>=0,u=c>=0;return d&&u?l-c:d?-1:1},FD=class extends B{constructor(){super(...arguments),this.beanName="colModel",this.pivotMode=!1,this.ready=!1,this.changeEventsDispatching=!1}postConstruct(){this.pivotMode=this.gos.get("pivotMode"),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents","groupHideColumnsUntilExpanded","rowNumbers","hidePaddedHeaderRows"],e=>this.refreshAll(hn(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],this.recreateColumnDefs.bind(this)),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),hn(e.source)))}createColsFromColDefs(e){const{beans:t}=this,{valueCache:i,colAutosize:s,rowGroupColsSvc:o,pivotColsSvc:n,valueColsSvc:r,visibleCols:a,eventSvc:l,groupHierarchyColSvc:c}=t,d=this.colDefs?KC(t,e):void 0;i?.expire();const u=this.colDefCols?.list,h=this.colDefCols?.tree,p=aR(t,this.colDefs,!0,h,e);Fl(t,this.colDefCols?.tree,p.columnTree);const m=p.columnTree,v=p.treeDepth,C=Zv(m),w={};for(const b of C)w[b.getId()]=b;this.colDefCols={tree:m,treeDepth:v,list:C,map:w},this.createColumnsForService([c],this.colDefCols,e),o?.extractCols(e,u),n?.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}),d&&(this.changeEventsDispatching=!0,d(),this.changeEventsDispatching=!1),l.dispatchEvent({type:"newColumnsLoaded",source:e}),e==="gridInitializing"&&s?.applyAutosizeStrategy()}refreshCols(e,t){if(!this.colDefCols)return;const i=this.cols?.tree;this.saveColOrder();const{autoColSvc:s,selectionColSvc:o,rowNumbersSvc:n,quickFilter:r,pivotResultCols:a,showRowGroupCols:l,rowAutoHeight:c,visibleCols:d,colViewport:u,eventSvc:h,formula:p}=this.beans,m=this.selectCols(a,this.colDefCols);p?.setFormulasActive(m),this.createColumnsForService([s,o,n],m,t);const v=O2(this.gos,this.showingPivotResult);(!e||v)&&this.restoreColOrder(m),this.positionLockedCols(m),l?.refresh(),r?.refreshCols(),this.setColSpanActive(),c?.setAutoHeightActive(m),d.clear(),u.clear(),Ms(i,this.cols.tree)||h.dispatchEvent({type:"gridColumnsChanged"})}createColumnsForService(e,t,i){for(const s of e)s&&(s.createColumns(t,o=>{this.lastOrder=o(this.lastOrder),this.lastPivotOrder=o(this.lastPivotOrder)},i),s.addColumns(t))}selectCols(e,t){const i=e?.getPivotResultCols()??null;this.showingPivotResult=i!=null;const{map:s,list:o,tree:n,treeDepth:r}=i??t;return this.cols={list:o.slice(),map:{...s},tree:n.slice(),treeDepth:r},i&&(i.list.some(l=>this.cols?.map[l.getColId()]!==void 0)||(this.lastPivotOrder=null)),this.cols}getColsToShow(){if(!this.cols)return[];const{beans:e,showingPivotResult:t,cols:i}=this,{valueColsSvc:s,selectionColSvc:o,gos:n}=e,r=this.isPivotMode()&&!t,a=o?.isSelectionColumnEnabled(),l=N2(e),c=s?.columns,d=G2(n);return i.list.filter(h=>{const p=kh(h);return r?c?.includes(h)||p&&(!d||h.isVisible())||a&&As(h)||l&&At(h):p&&!d||h.isVisible()})}refreshAll(e){this.ready&&(this.refreshCols(!1,e),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,i){xi(this.beans,{state:e.map(s=>({colId:typeof s=="string"?s:s.getColId(),hide:!t}))},i)}restoreColOrder(e){const t=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!t)return;const i=t.filter(u=>e.map[u.getId()]!=null);if(i.length===0)return;if(i.length===e.list.length){e.list=i;return}const s=u=>{const h=u.getOriginalParent();return h?h.getChildren().length>1?!0:s(h):!1};if(!i.some(u=>s(u))){const u=new Set(i);for(const h of e.list)u.has(h)||i.push(h);e.list=i;return}const o=new Map;for(let u=0;u<i.length;u++){const h=i[u];o.set(h,u)}const n=e.list.filter(u=>!o.has(u));if(n.length===0){e.list=i;return}const r=(u,h)=>{const p=h?h.getOriginalParent():u.getOriginalParent();if(!p)return null;let m=null,v=null;for(const C of p.getChildren())if(!(C===h||C===u)){if(C instanceof Fo){const w=o.get(C);if(w==null)continue;(m==null||m<w)&&(m=w,v=C);continue}C.forEachLeafColumn(w=>{const b=o.get(w);b!=null&&(m==null||m<b)&&(m=b,v=w)})}return v??r(u,p)},a=[],l=new Map;for(const u of n){const h=r(u,null);if(h==null){a.push(u);continue}const p=l.get(h);p===void 0?l.set(h,u):Array.isArray(p)?p.push(u):l.set(h,[p,u])}const c=new Array(e.list.length);let d=c.length-1;for(let u=a.length-1;u>=0;u--)c[d--]=a[u];for(let u=i.length-1;u>=0;u--){const h=i[u],p=l.get(h);if(p)if(Array.isArray(p))for(let m=p.length-1;m>=0;m--){const v=p[m];c[d--]=v}else c[d--]=p;c[d--]=h}e.list=c}positionLockedCols(e){e.list=WC(e.list,this.gos)}saveColOrder(){this.showingPivotResult?this.lastPivotOrder=this.cols?.list??null:this.lastOrder=this.cols?.list??null}getColumnDefs(e){return this.colDefCols&&this.beans.colDefFactory?.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,this.cols?.list??[],e)}setColSpanActive(){this.colSpanActive=!!this.cols?.list.some(e=>e.getColDef().colSpan!=null)}isPivotMode(){return this.pivotMode}setPivotMode(e,t){if(e===this.pivotMode||(this.pivotMode=e,!this.ready))return;this.refreshCols(!1,t);const{visibleCols:i,eventSvc:s}=this.beans;i.refresh(t),s.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=hn(e.source);this.createColsFromColDefs(t)}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){Fl(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:i,selectionColSvc:s,groupHierarchyColSvc:o}=this.beans;Qn(this.colDefCols?.list,e)||Qn(i?.columns?.list,e)||Qn(s?.columns?.list,e)||Qn(o?.columns?.list,e)||Qn(t?.getPivotResultCols()?.list,e)}getColsForKeys(e){return e?e.map(t=>this.getCol(t)).filter(t=>t!=null):[]}getColDefCol(e){return this.colDefCols?.list?this.getColFromCollection(e,this.colDefCols):null}getCol(e){return e==null?null:this.getColFromCollection(e,this.cols)}getColById(e){return this.cols?.map[e]??null}getColFromCollection(e,t){if(t==null)return null;const{map:i,list:s}=t;if(typeof e=="string"&&i[e])return i[e];for(let a=0;a<s.length;a++)if(fr(s[a],e))return s[a];const{autoColSvc:o,selectionColSvc:n,groupHierarchyColSvc:r}=this.beans;return o?.getColumn(e)??n?.getColumn(e)??r?.getColumn(e)??null}},ED=".ag-label{white-space:nowrap}:where(.ag-ltr) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-label-align-right) .ag-label{order:1}:where(.ag-ltr) :where(.ag-label-align-right) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) :where(.ag-label-align-right) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-label-align-right){.ag-label,.ag-wrapper{flex:none}}.ag-label-align-top{align-items:flex-start;flex-direction:column}:where(.ag-label-align-top){.ag-label,.ag-wrapper{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-label-align-top) .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}",DD=class extends In{constructor(e,t,i){super(t,i),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{},this.registerCSS(ED)}postConstruct(){this.addCss("ag-labeled"),this.eLabel.classList.add("ag-label");const{labelSeparator:e,label:t,labelWidth:i,labelAlignment:s,disabled:o,labelEllipsis:n}=this.config;o!=null&&this.setDisabled(o),e!=null&&this.setLabelSeparator(e),t!=null&&this.setLabel(t),i!=null&&this.setLabelWidth(i),n!=null&&this.setLabelEllipsis(n),this.setLabelAlignment(s||this.labelAlignment),this.refreshLabel()}refreshLabel(){const{label:e,eLabel:t}=this;_t(t),typeof e=="string"?t.innerText=e+this.labelSeparator:e&&t.appendChild(e),e===""?(Ke(t,!1),co(t,"presentation")):(Ke(t,!0),co(t,null))}setLabelSeparator(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&this.refreshLabel(),this)}getLabelId(){const e=this.eLabel;return e.id=e.id||`ag-${this.getCompId()}-label`,e.id}getLabel(){return this.label}setLabel(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)}setLabelAlignment(e){const i=this.getGui().classList;return i.toggle("ag-label-align-left",e==="left"),i.toggle("ag-label-align-right",e==="right"),i.toggle("ag-label-align-top",e==="top"),this}setLabelEllipsis(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this}setLabelWidth(e){return this.label==null?this:(vl(this.eLabel,e),this)}setDisabled(e){e=!!e;const t=this.getGui();return Dr(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},ZC=class extends DD{constructor(e,t,i,s){super(e,t,i),this.className=s}postConstruct(){super.postConstruct();const{width:e,value:t,onValueChange:i,ariaLabel:s}=this.config;e!=null&&this.setWidth(e),t!=null&&this.setValue(t),i!=null&&this.onValueChange(i),s!=null&&this.setAriaLabel(s),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(),i=this.getLabel();i==null||i==""||HS(e)!==null?Er(e,""):Er(e,t??"")}setAriaLabel(e){return Cn(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 Li(this.getGui(),e),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(e,t){return this.value===e?this:(this.previousValue=this.value,this.value=e,t||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}};function PD(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 Ys=class extends ZC{constructor(e,t,i="text",s="input"){super(e,e?.template??PD(s),[],t),this.inputType=i,this.displayFieldTag=s,this.eLabel=de,this.eWrapper=de,this.eInput=de}postConstruct(){super.postConstruct(),this.setInputType(this.inputType);const{eLabel:e,eWrapper:t,eInput:i,className:s}=this;e.classList.add(`${s}-label`),t.classList.add(`${s}-input-wrapper`),i.classList.add(`${s}-input`),this.addCss("ag-input-field"),i.id=i.id||`ag-${this.getCompId()}-input`;const{inputName:o,inputWidth:n,inputPlaceholder:r,autoComplete:a,tabIndex:l}=this.config;o!=null&&this.setInputName(o),n!=null&&this.setInputWidth(n),r!=null&&this.setInputPlaceholder(r),a!=null&&this.setAutoComplete(a),this.addInputListeners(),this.activateTabIndex([i],l)}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>this.setValue(e.target.value)})}setInputType(e){this.displayFieldTag==="input"&&(this.inputType=e,Vt(this.eInput,"type",e))}getInputElement(){return this.eInput}getWrapperElement(){return this.eWrapper}setInputWidth(e){return vl(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 Vt(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return Cn(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return Dr(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(e===!0)Vt(this.eInput,"autocomplete",null);else{const t=typeof e=="string"?e:"off";Vt(this.eInput,"autocomplete",t)}return this}},$h=class extends Ys{constructor(e,t="ag-checkbox",i="checkbox"){super(e,t,i),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();const{readOnly:e,passive:t,name:i}=this.config;typeof e=="boolean"&&this.setReadOnly(e),typeof t=="boolean"&&this.setPassive(t),i!=null&&this.setName(i)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return this.selected===void 0?!0:!this.selected}setPassive(e){this.passive=e}isReadOnly(){return this.readOnly}setReadOnly(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e}setDisabled(e){return this.eWrapper.classList.toggle("ag-disabled",e),super.setDisabled(e)}toggle(){if(this.eInput.disabled)return;const e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}getValue(){return this.isSelected()}setValue(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this}setName(e){const t=this.getInputElement();return t.name=e,this}isSelected(){return this.selected}setSelected(e,t){if(this.isSelected()===e)return;this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0;const i=this.eInput;i.checked=e,i.indeterminate=e===void 0,t||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(e,t,i){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:t,event:i});const s=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:s.id,name:s.name,selected:e,previousValue:t})}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;const t=this.isSelected(),i=this.selected=e.target.checked;this.refreshSelectedClass(i),this.dispatchChange(i,t,e)}refreshSelectedClass(e){const t=this.eWrapper.classList;t.toggle("ag-checked",e===!0),t.toggle("ag-indeterminate",e==null)}},qh={selector:"AG-CHECKBOX",component:$h},TD=".ag-checkbox-cell{height:100%}",kD={tag:"div",cls:"ag-cell-wrapper ag-checkbox-cell",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},ID=class extends ot{constructor(){super(kD,[qh]),this.eCheckbox=de,this.registerCSS(TD)}init(e){this.refresh(e);const{eCheckbox:t,beans:i}=this,s=t.getInputElement();s.setAttribute("tabindex","-1"),uv(s,"polite"),this.addManagedListeners(s,{click:o=>{if(fo(o),t.isDisabled())return;const n=t.getValue();this.onCheckboxChanged(n)},dblclick:o=>{fo(o)}}),this.addManagedElementListeners(e.eGridCell,{keydown:o=>{if(o.key===A.SPACE&&!t.isDisabled()){e.eGridCell===Je(i)&&t.toggle();const n=t.getValue();this.onCheckboxChanged(n),o.preventDefault()}}})}refresh(e){return this.params=e,this.updateCheckbox(e),!0}updateCheckbox(e){let t,i=!0;const{value:s,column:o,node:n}=e;if(n.group&&o)if(typeof s=="boolean")t=s;else{const u=o.getColId();u.startsWith(Cs)?t=s==null||s===""?void 0:s==="true":n.aggData&&n.aggData[u]!==void 0||n.sourceRowIndex>=0?t=s??void 0:i=!1}else t=s??void 0;const{eCheckbox:r}=this;if(!i){r.setDisplayed(!1);return}r.setValue(t);const a=e.disabled??!o?.isCellEditable(n);r.setDisabled(a);const l=this.getLocaleTextFunc(),c=ic(l,t),d=a?c:`${l("ariaToggleCellValue","Press SPACE to toggle cell value")} (${c})`;r.setInputAriaLabel(d)}onCheckboxChanged(e){const{params:t}=this,{column:i,node:s,value:o}=t,{editSvc:n}=this.beans;if(!i)return;const r={rowNode:s,column:i};n?.dispatchCellEvent(r,null,"cellEditingStarted",{value:o});const a=s.setDataValue(i,e,"ui");n?.dispatchCellEvent(r,null,"cellEditingStopped",{oldValue:o,newValue:e,valueChanged:a}),a||this.updateCheckbox(t)}},MD={tag:"div",cls:"ag-skeleton-container"},AD=class extends ot{constructor(){super(MD)}init(t){const i=`ag-cell-skeleton-renderer-${this.getCompId()}`;this.getGui().setAttribute("id",i),this.addDestroyFunc(()=>Er(t.eParentOfValue)),Er(t.eParentOfValue,i),t.deferRender?this.setupLoading(t):t.node.failedLoad?this.setupFailed():this.setupLoading(t)}setupFailed(){const t=this.getLocaleTextFunc();this.getGui().textContent=t("loadingError","ERR");const i=t("ariaSkeletonCellLoadingFailed","Row failed to load");Cn(this.getGui(),i)}setupLoading(t){const i=Jt({tag:"div",cls:"ag-skeleton-effect"}),s=t.node.rowIndex;if(s!=null){const r=75+25*(s%2===0?Math.sin(s):Math.cos(s));i.style.width=`${r}%`}this.getGui().appendChild(i);const o=this.getLocaleTextFunc(),n=t.deferRender?o("ariaDeferSkeletonCellLoading","Cell is loading"):o("ariaSkeletonCellLoading","Row data is loading");Cn(this.getGui(),n)}refresh(t){return!1}},LD={moduleName:"CheckboxCellRenderer",version:Q,userComponents:{agCheckboxCellRenderer:ID}},OD={moduleName:"SkeletonCellRenderer",version:Q,userComponents:{agSkeletonCellRenderer:AD}};function ND(e,t){const i=e.colModel.getColDefCol(t);return i?i.getColDef():null}function HD(e){return e.colModel.getColumnDefs(!0)}function BD(e,t,i){return e.colNames.getDisplayNameForColumn(t,i)||""}function GD(e,t){return e.colModel.getColDefCol(t)}function VD(e){return e.colModel.getColDefCols()}function zD(e,t){return xi(e,t,"api")}function WD(e){return Al(e)}function jD(e){xD(e,"api")}function _D(e){return e.visibleCols.isPinningLeft()||e.visibleCols.isPinningRight()}function UD(e){return e.visibleCols.isPinningLeft()}function $D(e){return e.visibleCols.isPinningRight()}function qD(e,t){return e.visibleCols.getColAfter(t)}function KD(e,t){return e.visibleCols.getColBefore(t)}function YD(e,t,i){e.colModel.setColsVisible(t,i,"api")}function ZD(e,t,i){e.pinnedCols?.setColsPinned(t,i,"api")}function XD(e){return e.colModel.getCols()}function QD(e){return e.visibleCols.leftCols}function JD(e){return e.visibleCols.centerCols}function e5(e){return e.visibleCols.rightCols}function t5(e){return e.visibleCols.allCols}function i5(e){return e.colViewport.getViewportColumns()}function Iu(e,t){if(!e)return;const i=e,s={};for(const o of Object.keys(i)){if(t&&t.indexOf(o)>=0||Sv.has(o))continue;const n=i[o];typeof n=="object"&&n!==null&&n.constructor===Object?s[o]=Iu(n):s[o]=n}return s}var s5=class extends B{constructor(){super(...arguments),this.beanName="colDefFactory"}wireBeans(e){this.rowGroupColsSvc=e.rowGroupColsSvc,this.pivotColsSvc=e.pivotColsSvc}getColumnDefs(e,t,i,s,o=!1){const n=e.slice();t?n.sort((l,c)=>i.indexOf(l)-i.indexOf(c)):(i||o)&&n.sort((l,c)=>s.indexOf(l)-s.indexOf(c));const r=this.rowGroupColsSvc?.columns,a=this.pivotColsSvc?.columns;return this.buildColumnDefs(n,r,a)}buildColumnDefs(e,t=[],i=[]){const s=[],o={};for(const n of e){const r=this.createDefFromColumn(n,t,i);let a=!0,l=r,c=n.getOriginalParent(),d=null;for(;c;){let u=null;if(c.isPadding()){c=c.getOriginalParent();continue}const h=o[c.getGroupId()];if(h){h.children.push(l),a=!1;break}if(u=this.createDefFromGroup(c),u&&(u.children=[l],o[u.groupId]=u,l=u,c=c.getOriginalParent()),c!=null&&d===c){a=!1;break}d=c}a&&s.push(l)}return s}createDefFromGroup(e){const t=Iu(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t}createDefFromColumn(e,t,i){const s=Iu(e.getColDef());return s.colId=e.getColId(),s.width=e.getActualWidth(),s.rowGroup=e.isRowGroupActive(),s.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,s.pivot=e.isPivotActive(),s.pivotIndex=e.isPivotActive()?i.indexOf(e):null,s.aggFunc=e.isValueActive()?e.getAggFunc():null,s.hide=e.isVisible()?void 0:!0,s.pinned=e.isPinned()?e.getPinned():null,s.sort=e.getSortDef(),s.sortIndex=e.getSortIndex()!=null?e.getSortIndex():null,s}},o5=class extends B{constructor(){super(...arguments),this.beanName="colFlex",this.columnsHidden=!1}refreshFlexedColumns(e={}){const t=e.source??"flex";e.viewportWidth!=null&&(this.flexViewportWidth=e.viewportWidth);const i=this.flexViewportWidth,{visibleCols:s,colDelayRenderSvc:o}=this.beans,n=s.centerCols;let r=-1;if(e.resizingCols){const v=new Set(e.resizingCols);for(let C=n.length-1;C>=0;C--)if(v.has(n[C])){r=C;break}}let a=!1;const l=n.map((v,C)=>{const w=v.getFlex(),b=w!=null&&w>0&&C>r;return a||(a=b),{col:v,isFlex:b,flex:Math.max(0,w??0),initialSize:v.getActualWidth(),min:v.getMinWidth(),max:v.getMaxWidth(),targetSize:0}});if(a?(o?.hideColumns("colFlex"),this.columnsHidden=!0):this.columnsHidden&&this.revealColumns(o),!i||!a)return[];let c=l.length,d=l.reduce((v,C)=>v+C.flex,0),u=i;const h=(v,C)=>{v.frozenSize=C,v.col.setActualWidth(C,t),u-=C,d-=v.flex,c-=1},p=v=>v.frozenSize!=null;for(const v of l)v.isFlex||h(v,v.initialSize);for(;c>0;){const v=Math.round(d<1?u*d:u);let C,w=0,b=0;for(const S of l){if(p(S))continue;C=S,b+=v*(S.flex/d);const E=b-w,R=Math.round(E);S.targetSize=R,w+=R}C&&(C.targetSize+=v-w);let x=0;for(const S of l){if(p(S))continue;const E=S.targetSize,R=Math.min(Math.max(E,S.min),S.max);x+=R-E,S.violationType=R===E?void 0:R<E?"max":"min",S.targetSize=R}const y=x===0?"all":x>0?"min":"max";for(const S of l)p(S)||(y==="all"||S.violationType===y)&&h(S,S.targetSize)}e.skipSetLeft||s.setLeftValues(t),e.updateBodyWidths&&s.updateBodyWidths();const m=l.filter(v=>v.isFlex&&!v.violationType).map(v=>v.col);if(e.fireResizedEvent){const v=l.filter(w=>w.initialSize!==w.frozenSize).map(w=>w.col),C=l.filter(w=>w.flex).map(w=>w.col);yn(this.eventSvc,v,!0,t,C)}return this.revealColumns(o),m}revealColumns(e){this.columnsHidden&&(e?.revealColumns("colFlex"),this.columnsHidden=!1)}initCol(e){const{flex:t,initialFlex:i}=e.colDef;t!==void 0?e.flex=t:i!==void 0&&(e.flex=i)}setColFlex(e,t){e.flex=t??null,e.dispatchStateUpdatedEvent("flex")}},Ut=e=>{if(typeof e=="bigint")return e;let t;if(typeof e=="number")t=e;else if(typeof e=="string"&&(t=e.trim(),t===""||(t.endsWith("n")&&(t=t.slice(0,-1)),!/^[+-]?\d+$/.test(t))))return null;if(t==null)return null;try{return BigInt(t)}catch{return null}},Kh="T",n5=new RegExp(`[${Kh} ]`),r5=new RegExp(`^\\d{4}-\\d{2}-\\d{2}(${Kh}\\d{2}:\\d{2}:\\d{2}\\D?)?`);function Ii(e,t){return e.toString().padStart(t,"0")}function Lt(e,t=!0,i=Kh){if(!e)return null;let s=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(o=>Ii(o,2)).join("-");return t&&(s+=i+[e.getHours(),e.getMinutes(),e.getSeconds()].map(o=>Ii(o,2)).join(":")),s}function Va(e,t=!0){return e?t?[String(e.getFullYear()),String(e.getMonth()+1),Ii(e.getDate(),2),Ii(e.getHours(),2),`:${Ii(e.getMinutes(),2)}`,`:${Ii(e.getSeconds(),2)}`]:[e.getFullYear(),e.getMonth()+1,Ii(e.getDate(),2)].map(String):null}var Td=e=>{if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},lf=["January","February","March","April","May","June","July","August","September","October","November","December"],kd=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function a5(e,t){if(t==null)return Lt(e,!1);const i=Ii(e.getFullYear(),4),s={YYYY:()=>i.slice(i.length-4,i.length),YY:()=>i.slice(i.length-2,i.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>lf[e.getMonth()],MMM:()=>lf[e.getMonth()].slice(0,3),MM:()=>Ii(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${Td(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${Td(e.getDate())}`,DD:()=>Ii(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>kd[e.getDay()],ddd:()=>kd[e.getDay()].slice(0,3),dd:()=>kd[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${Td(e.getDay())}`,d:()=>`${e.getDay()}`},o=new RegExp(Object.keys(s).join("|"),"g");return t.replace(o,n=>n in s?s[n]():n)}function nl(e,t=!1){return!!Ot(e,t)}function l5(e){return nl(e,!0)}function Ot(e,t=!1,i){if(!e||!i&&!r5.test(e))return null;const[s,o]=e.split(n5);if(!s)return null;const n=s.split("-").map(p=>Number.parseInt(p,10));if(n.filter(p=>!isNaN(p)).length!==3)return null;const[r,a,l]=n,c=new Date(r,a-1,l);if(c.getFullYear()!==r||c.getMonth()!==a-1||c.getDate()!==l||!o&&t)return null;if(!o||o==="00:00:00")return c;const[d,u,h]=o.split(":").map(p=>Number.parseInt(p,10));if(d>=0&&d<24)c.setHours(d);else if(t)return null;if(u>=0&&u<60)c.setMinutes(u);else if(t)return null;if(h>=0&&h<60)c.setSeconds(h);else if(t)return null;return c}function vr(e,t,i){if(!t||!e)return;if(!i)return e[t];const s=t.split(".");let o=e;for(let n=0;n<s.length;n++){if(o==null)return;o=o[s[n]]}return o}var c5=["dateTimeString","dateString","text","number","bigint","boolean","date"],d5=class extends B{constructor(){super(...arguments),this.beanName="dataTypeSvc",this.dataTypeDefinitions={},this.isPendingInference=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[],this.columnDefinitionPropsPerDataType={number(){return{cellEditor:"agNumberCellEditor"}},bigint({filterModuleBean:e}){return e?{cellEditor:"agTextCellEditor"}:{cellEditor:"agTextCellEditor",comparator:{default:g5,absolute:f5}}},boolean(){return{cellEditor:"agCheckboxCellEditor",cellRenderer:"agCheckboxCellRenderer",getFindText:()=>null,suppressKeyboardEvent:({node:e,event:t,column:i})=>t.key===A.SPACE&&i.isCellEditable(e)}},date({formatValue:e}){return{cellEditor:"agDateCellEditor",keyCreator:e}},dateString({formatValue:e}){return{cellEditor:"agDateStringCellEditor",keyCreator:e}},dateTime(e){return this.date(e)},dateTimeString(e){return this.dateString(e)},object({formatValue:e,colModel:t,colId:i}){return{cellEditorParams:{useFormatter:!0},comparator:(s,o)=>{const n=t.getColDefCol(i),r=n?.getColDef();if(!n||!r)return 0;const a=s==null?"":e({column:n,node:null,value:s}),l=o==null?"":e({column:n,node:null,value:o});return a===l?0:a>l?1:-1},keyCreator:e}},text(){return{}}}}wireBeans(e){this.colModel=e.colModel}postConstruct(){this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",e=>{this.processDataTypeDefinitions(),this.colModel.recreateColumnDefs(e)})}processDataTypeDefinitions(){const e=this.getDefaultDataTypes(),t={},i={},s=d=>u=>{const{column:h,node:p,value:m}=u;let v=h.getColDef().valueFormatter;return v===d.groupSafeValueFormatter&&(v=d.valueFormatter),this.beans.valueSvc.formatValue(h,p,m,v)};for(const d of Object.keys(e)){const u=e[d],h={...u,groupSafeValueFormatter:uf(u,this.gos)};t[d]=h,i[d]=s(h)}const o=this.gos.get("dataTypeDefinitions")??{},n={};for(const d of Object.keys(o)){const u=o[d],h=this.processDataTypeDefinition(u,o,[d],e);h&&(t[d]=h,u.dataTypeMatcher&&(n[d]=u.dataTypeMatcher),i[d]=s(h))}const{valueParser:r,valueFormatter:a}=e.object,{valueParser:l,valueFormatter:c}=t.object;this.hasObjectValueParser=l!==r,this.hasObjectValueFormatter=c!==a,this.formatValueFuncs=i,this.dataTypeDefinitions=t,this.dataTypeMatchers=this.sortKeysInMatchers(n,e)}sortKeysInMatchers(e,t){const i={...e};for(const s of c5)delete i[s],i[s]=e[s]??t[s].dataTypeMatcher;return i}processDataTypeDefinition(e,t,i,s){let o;const n=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){let r=s[n];const a=t[n];if(r&&a&&(r=a),!df(e,r,n))return;o=cf(r,e)}else{if(i.includes(n)){$(44);return}const r=t[n];if(!df(e,r,n))return;const a=this.processDataTypeDefinition(r,t,[...i,n],s);if(!a)return;o=cf(a,e)}return{...o,groupSafeValueFormatter:uf(o,this.gos)}}updateColDefAndGetColumnType(e,t,i){let{cellDataType:s}=t;s===void 0&&(s=e.cellDataType);const{field:o}=t;if((s==null||s===!0)&&(s=this.canInferCellDataType(e,t)?this.inferCellDataType(o,i):!1),this.addFormulaCellEditorToColDef(e,t),!s){e.cellDataType=!1;return}const n=this.dataTypeDefinitions[s];if(!n){$(47,{cellDataType:s});return}return e.cellDataType=s,n.groupSafeValueFormatter&&(e.valueFormatter=n.groupSafeValueFormatter),n.valueParser&&(e.valueParser=n.valueParser),n.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,s,n,i),n.columnTypes}addFormulaCellEditorToColDef(e,t){!(t.allowFormula??e.allowFormula)||t.cellEditor||(e.cellEditor="agFormulaCellEditor")}addColumnListeners(e){if(!this.isPendingInference)return;const t=this.columnStateUpdatesPendingInference[e.getColId()];if(!t)return;const i=s=>{t.add(s.key)};e.__addEventListener("columnStateUpdated",i),this.columnStateUpdateListenerDestroyFuncs.push(()=>e.__removeEventListener("columnStateUpdated",i))}canInferCellDataType(e,t){const{gos:i}=this;if(!st(i))return!1;const s={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(Id(t,s))return!1;const o=t.type===null?e.type:t.type;if(o){const n=i.get("columnTypes")??{};if(El(o).some(a=>{const l=n[a.trim()];return l&&Id(l,s)}))return!1}return!Id(e,s)}inferCellDataType(e,t){if(!e)return;let i;const s=this.getInitialData();if(s){const n=e.includes(".")&&!this.gos.get("suppressFieldDotNotation");i=vr(s,e,n)}else this.initWaitForRowData(t);return i==null?void 0:Object.keys(this.dataTypeMatchers).find(n=>this.dataTypeMatchers[n](i))??"object"}getInitialData(){const e=this.gos.get("rowData");if(e?.length)return e[0];if(this.initialData)return this.initialData;{const t=this.beans.rowModel.rootNode?._leafs;if(t?.length)return t[0].data}return null}initWaitForRowData(e){if(this.columnStateUpdatesPendingInference[e]=new Set,this.isPendingInference)return;this.isPendingInference=!0;const t=this.isColumnTypeOverrideInDataTypeDefinitions,{colAutosize:i,eventSvc:s}=this.beans;t&&i&&(i.shouldQueueResizeOperations=!0);const[o]=this.addManagedEventListeners({rowDataUpdateStarted:n=>{const{firstRowData:r}=n;r&&(o?.(),this.isPendingInference=!1,this.processColumnsPendingInference(r,t),this.columnStateUpdatesPendingInference={},t&&i?.processResizeOperations(),s.dispatchEvent({type:"dataTypesInferred"}))}})}processColumnsPendingInference(e,t){this.initialData=e;const i=[];this.destroyColumnStateUpdateListeners();const s={},o={};for(const n of Object.keys(this.columnStateUpdatesPendingInference)){const r=this.columnStateUpdatesPendingInference[n],a=this.colModel.getCol(n);if(!a)continue;const l=a.getColDef();if(!this.resetColDefIntoCol(a,"cellDataTypeInferred"))continue;const c=a.getColDef();if(t&&c.type&&c.type!==l.type){const d=m5(a,r);d.rowGroup&&d.rowGroupIndex==null&&(s[n]=d),d.pivot&&d.pivotIndex==null&&(o[n]=d),i.push(d)}}t&&i.push(...this.generateColumnStateForRowGroupAndPivotIndexes(s,o)),i.length&&xi(this.beans,{state:i},"cellDataTypeInferred"),this.initialData=null}generateColumnStateForRowGroupAndPivotIndexes(e,t){const i={},{rowGroupColsSvc:s,pivotColsSvc:o}=this.beans;return s?.restoreColumnOrder(i,e),o?.restoreColumnOrder(i,t),Object.values(i)}resetColDefIntoCol(e,t){const i=e.getUserProvidedColDef();if(!i)return!1;const s=bu(this.beans,i,e.getColId());return e.setColDef(s,i,t),!0}getDateStringTypeDefinition(e){const{dateString:t}=this.dataTypeDefinitions;return e?this.getDataTypeDefinition(e)??t:t}getDateParserFunction(e){return this.getDateStringTypeDefinition(e).dateParser}getDateFormatterFunction(e){return this.getDateStringTypeDefinition(e).dateFormatter}getDateIncludesTimeFlag(e){return e==="dateTime"||e==="dateTimeString"}getDataTypeDefinition(e){const t=e.getColDef();if(t.cellDataType)return this.dataTypeDefinitions[t.cellDataType]}getBaseDataType(e){return this.getDataTypeDefinition(e)?.baseDataType}checkType(e,t){if(t==null)return!0;const i=this.getDataTypeDefinition(e)?.dataTypeMatcher;return!i||e.getColDef().allowFormula&&this.beans.formula?.isFormula(t)?!0:i(t)}validateColDef(e,t,i,s){if(e.cellDataType==="object"){const o=l=>l?.cellDataType==null||l?.cellDataType===!0,n=o(t)&&o(i),r=l=>$(48,{property:l,inferred:n,colId:s}),{object:a}=this.dataTypeDefinitions;e.valueFormatter===a.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&r("Formatter"),e.editable&&e.valueParser===a.valueParser&&!this.hasObjectValueParser&&r("Parser")}}postProcess(e){const t=e.cellDataType;if(!t||typeof t!="string")return;const{dataTypeDefinitions:i,beans:s,formatValueFuncs:o}=this,n=i[t];n&&s.colFilter?.setColDefPropsForDataType(e,n,o[t])}getFormatValue(e){return this.formatValueFuncs[e]}isColPendingInference(e){return this.isPendingInference&&!!this.columnStateUpdatesPendingInference[e]}setColDefPropertiesForBaseDataType(e,t,i,s){const o=this.formatValueFuncs[t],n=this.columnDefinitionPropsPerDataType[i.baseDataType]({colDef:e,cellDataType:t,colModel:this.colModel,dataTypeDefinition:i,colId:s,formatValue:o,filterModuleBean:this.beans.filterManager});e.cellEditor==="agFormulaCellEditor"&&n.cellEditor!==e.cellEditor&&(n.cellEditor=e.cellEditor),Object.assign(e,n)}getDateObjectTypeDef(e){const t=this.getLocaleTextFunc(),i=this.getDateIncludesTimeFlag(e);return{baseDataType:e,valueParser:s=>Ot(s.newValue&&String(s.newValue)),valueFormatter:s=>s.value==null?"":!(s.value instanceof Date)||isNaN(s.value.getTime())?t("invalidDate","Invalid Date"):Lt(s.value,i)??"",dataTypeMatcher:s=>s instanceof Date}}getDateStringTypeDef(e){const t=this.getDateIncludesTimeFlag(e);return{baseDataType:e,dateParser:i=>Ot(i)??void 0,dateFormatter:i=>Lt(i??null,t)??void 0,valueParser:i=>nl(String(i.newValue))?i.newValue:null,valueFormatter:i=>nl(String(i.value))?String(i.value):"",dataTypeMatcher:i=>typeof i=="string"&&nl(i)}}getDefaultDataTypes(){const e=this.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:t=>t.newValue?.trim?.()===""?null:Number(t.newValue),valueFormatter:t=>t.value==null?"":typeof t.value!="number"||isNaN(t.value)?e("invalidNumber","Invalid Number"):String(t.value),dataTypeMatcher:t=>typeof t=="number"},bigint:{baseDataType:"bigint",valueParser:t=>{const{newValue:i}=t;return i==null||typeof i=="string"&&i.trim()===""?null:Ut(i)},valueFormatter:t=>t.value==null?"":typeof t.value!="bigint"?e("invalidBigInt","Invalid BigInt"):String(t.value),dataTypeMatcher:t=>typeof t=="bigint"},text:{baseDataType:"text",valueParser:t=>t.newValue===""?null:hu(t.newValue),dataTypeMatcher:t=>typeof t=="string"},boolean:{baseDataType:"boolean",valueParser:t=>t.newValue==null?t.newValue:t.newValue?.trim?.()===""?null:String(t.newValue).toLowerCase()==="true",valueFormatter:t=>t.value==null?"":String(t.value),dataTypeMatcher:t=>typeof t=="boolean"},date:this.getDateObjectTypeDef("date"),dateString:this.getDateStringTypeDef("dateString"),dateTime:this.getDateObjectTypeDef("dateTime"),dateTimeString:{...this.getDateStringTypeDef("dateTimeString"),dataTypeMatcher:t=>typeof t=="string"&&l5(t)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:t=>hu(t.value)??""}}}destroyColumnStateUpdateListeners(){for(const e of this.columnStateUpdateListenerDestroyFuncs)e();this.columnStateUpdateListenerDestroyFuncs=[]}destroy(){this.dataTypeDefinitions={},this.dataTypeMatchers={},this.formatValueFuncs={},this.columnStateUpdatesPendingInference={},this.destroyColumnStateUpdateListeners(),super.destroy()}};function cf(e,t){const i={...e,...t};return e.columnTypes&&t.columnTypes&&t.appendColumnTypes&&(i.columnTypes=[...El(e.columnTypes),...El(t.columnTypes)]),i}function df(e,t,i){return t?t.baseDataType!==e.baseDataType?($(46),!1):!0:($(45,{parentCellDataType:i}),!1)}var u5=e=>typeof e=="bigint"||typeof e=="number",h5=e=>e==="number"||e==="bigint";function uf(e,t){if(e.valueFormatter)return i=>{const{node:s,colDef:o,column:n,value:r}=i;if(s?.group){const a=(o.pivotValueColumn??n).getAggFunc();if(a){if(a==="first"||a==="last")return e.valueFormatter(i);const{baseDataType:l}=e;if(h5(l)&&a!=="count"){if(u5(r))return e.valueFormatter(i);if(r==null)return;if(typeof r=="object"){if(typeof r.toNumber=="function")return e.valueFormatter({...i,value:r.toNumber()});if("value"in r)return e.valueFormatter({...i,value:r.value})}}return}}else if(t.get("groupHideOpenParents")&&i.column.isRowGroupActive()&&typeof i.value=="string"&&!e.dataTypeMatcher?.(i.value))return;return e.valueFormatter(i)}}function p5(e,t,i,s){if(!t[i])return!1;const o=e[i];return o===null?(t[i]=!1,!1):s===void 0?!!o:o===s}function g5(e,t){if(e==null)return t==null?0:-1;if(t==null)return 1;const i=Ut(e),s=Ut(t);return i!=null&&s!=null?i===s?0:i>s?1:-1:0}function f5(e,t){if(e==null)return t==null?0:-1;if(t==null)return 1;const i=hf(e),s=hf(t);return i!=null&&s!=null?i===s?0:i>s?1:-1:0}function hf(e){const t=Ut(e);return t==null?null:t<0n?-t:t}function Id(e,t){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(([i,s])=>p5(e,t,i,s))}function m5(e,t){const i=YC(e);for(const s of t)delete i[s],s==="rowGroup"?delete i.rowGroupIndex:s==="pivot"&&delete i.pivotIndex;return i}var v5={moduleName:"DataType",version:Q,beans:[d5],dependsOn:[LD]},C5={moduleName:"ColumnFlex",version:Q,beans:[o5]},XC={moduleName:"ColumnApi",version:Q,beans:[s5],apiFunctions:{getColumnDef:ND,getDisplayNameForColumn:BD,getColumn:GD,getColumns:VD,applyColumnState:zD,getColumnState:WD,resetColumnState:jD,isPinning:_D,isPinningLeft:UD,isPinningRight:$D,getDisplayedColAfter:qD,getDisplayedColBefore:KD,setColumnsVisible:YD,setColumnsPinned:ZD,getAllGridColumns:XD,getDisplayedLeftColumns:QD,getDisplayedCenterColumns:JD,getDisplayedRightColumns:e5,getAllDisplayedColumns:t5,getAllDisplayedVirtualColumns:i5,getColumnDefs:HD}},w5=class extends B{constructor(){super(...arguments),this.beanName="colNames"}getDisplayNameForColumn(e,t,i=!1){if(!e)return null;const s=this.getHeaderName(e.getColDef(),e,null,null,t),{aggColNameSvc:o}=this.beans;return i&&o?o.getHeaderName(e,s):s}getDisplayNameForProvidedColumnGroup(e,t,i){const s=t?.getColGroupDef();return s?this.getHeaderName(s,null,e,t,i):null}getDisplayNameForColumnGroup(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)}getHeaderName(e,t,i,s,o){const n=e.headerValueGetter;if(n){const r=xe(this.gos,{colDef:e,column:t,columnGroup:i,providedColumnGroup:s,location:o});return typeof n=="function"?n(r):typeof n=="string"?this.beans.expressionSvc?.evaluate(n,r)??null:""}else{if(e.headerName!=null)return e.headerName;if(e.field)return AS(e.field)}return""}},b5=class extends B{constructor(){super(...arguments),this.beanName="colViewport",this.colsWithinViewport=[],this.headerColsWithinViewport=[],this.colsWithinViewportHash="",this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},this.columnsToRenderLeft=[],this.columnsToRenderRight=[],this.columnsToRenderCenter=[]}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel}postConstruct(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation")}getScrollPosition(){return this.scrollPosition}setScrollPosition(e,t,i=!1){const{visibleCols:s}=this,o=s.isBodyWidthDirty;if(!(e===this.scrollWidth&&t===this.scrollPosition&&!o)){if(this.scrollWidth=e,this.scrollPosition=t,s.isBodyWidthDirty=!0,this.gos.get("enableRtl")){const r=s.bodyWidth;this.viewportLeft=r-t-e,this.viewportRight=r-t}else this.viewportLeft=t,this.viewportRight=e+t;this.colModel.ready&&this.checkViewportColumns(i)}}getColumnHeadersToRender(e){switch(e){case"left":return this.columnsToRenderLeft;case"right":return this.columnsToRenderRight;default:return this.columnsToRenderCenter}}getHeadersToRender(e,t){let i;switch(e){case"left":i=this.rowsOfHeadersToRenderLeft[t];break;case"right":i=this.rowsOfHeadersToRenderRight[t];break;default:i=this.rowsOfHeadersToRenderCenter[t];break}return i??[]}extractViewportColumns(){const e=this.visibleCols.centerCols;this.isColumnVirtualisationSuppressed()?(this.colsWithinViewport=e,this.headerColsWithinViewport=e):(this.colsWithinViewport=e.filter(this.isColumnInRowViewport.bind(this)),this.headerColsWithinViewport=e.filter(this.isColumnInHeaderViewport.bind(this)))}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||this.viewportRight===0}clear(){this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},this.colsWithinViewportHash=""}isColumnInHeaderViewport(e){return e.isAutoHeaderHeight()||x5(e)?!0:this.isColumnInRowViewport(e)}isColumnInRowViewport(e){if(e.isAutoHeight())return!0;const t=e.getLeft()||0,i=t+e.getActualWidth(),s=this.viewportLeft-200,o=this.viewportRight+200,n=t<s&&i<s,r=t>o&&i>o;return!n&&!r}getViewportColumns(){const{leftCols:e,rightCols:t}=this.visibleCols;return this.colsWithinViewport.concat(e).concat(t)}getColsWithinViewport(e){if(!this.colModel.colSpanActive)return this.colsWithinViewport;const t=n=>{const r=n.getLeft();return te(r)&&r>this.viewportLeft},i=this.isColumnVirtualisationSuppressed()?void 0:this.isColumnInRowViewport.bind(this),{visibleCols:s}=this,o=s.centerCols;return s.getColsForRow(e,o,i,t)}checkViewportColumns(e=!1){this.extractViewport()&&this.eventSvc.dispatchEvent({type:"virtualColumnsChanged",afterScroll:e})}calculateHeaderRows(){const{leftCols:e,rightCols:t}=this.visibleCols;this.columnsToRenderLeft=e,this.columnsToRenderRight=t,this.columnsToRenderCenter=this.colsWithinViewport;const i=s=>{const o=new Set,n={};for(const r of s){let a=r.getParent();const l=r.isSpanHeaderHeight();for(;a&&!o.has(a);){if(l&&a.isPadding()){a=a.getParent();continue}const d=a.getProvidedColumnGroup().getLevel();n[d]??(n[d]=[]),n[d].push(a),o.add(a),a=a.getParent()}}return n};this.rowsOfHeadersToRenderLeft=i(e),this.rowsOfHeadersToRenderRight=i(t),this.rowsOfHeadersToRenderCenter=i(this.headerColsWithinViewport)}extractViewport(){const e=s=>`${s.getId()}-${s.getPinned()||"normal"}`;this.extractViewportColumns();const t=this.getViewportColumns().map(e).join("#"),i=this.colsWithinViewportHash!==t;return i&&(this.colsWithinViewportHash=t,this.calculateHeaderRows()),i}};function x5(e){for(;e;){if(e.isAutoHeaderHeight())return!0;e=e.getParent()}return!1}var y5=class extends B{constructor(){super(...arguments),this.beanName="agCompUtils"}adaptFunction(e,t){if(!e.cellRenderer)return null;class i{refresh(){return!1}getGui(){return this.eGui}init(o){const n=t(o),r=typeof n;if(r==="string"||r==="number"||r==="boolean"){this.eGui=wh("<span>"+n+"</span>");return}if(n==null){this.eGui=Jt({tag:"span"});return}this.eGui=n}}return i}},S5={moduleName:"CellRendererFunction",version:Q,beans:[y5]},R5=class extends Ht{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,...i){if(!this.dynamicBeans)throw new Error(this.getDynamicError(e,!0));const s=this.dynamicBeans[e];if(s==null){if(t)throw new Error(this.getDynamicError(e,!1));return}return new s(...i)}};function F5(e){return typeof e=="object"&&!!e.getComp}var E5=class extends R5{constructor(){super(...arguments),this.agGridDefaults={},this.agGridDefaultOverrides={},this.jsComps={},this.selectors={},this.icons={}}postConstruct(){const e=this.gos.get("components");if(e!=null)for(const t of Object.keys(e))this.jsComps[t]=e[t]}registerModule(e){const{icons:t,userComponents:i,dynamicBeans:s,selectors:o}=e;if(i){const n=(r,a,l,c)=>{this.agGridDefaults[r]=a,(l||c)&&(this.agGridDefaultOverrides[r]={params:l,processParams:c})};for(const r of Object.keys(i)){let a=i[r];if(F5(a)&&(a=a.getComp(this.beans)),typeof a=="object"){const{classImp:l,params:c,processParams:d}=a;n(r,l,c,d)}else n(r,a)}}this.registerDynamicBeans(s);for(const n of o??[])this.selectors[n.selector]=n;if(t)for(const n of Object.keys(t))this.icons[n]=t[n]}getUserComponent(e,t){const i=(a,l,c,d)=>({componentFromFramework:l,component:a,params:c,processParams:d}),{frameworkOverrides:s}=this.beans,o=s.frameworkComponent(t,this.gos.get("components"));if(o!=null)return i(o,!0);const n=this.jsComps[t];if(n){const a=s.isFrameworkComponent(n);return i(n,a)}const r=this.agGridDefaults[t];if(r){const a=this.agGridDefaultOverrides[t];return i(r,!1,a?.params,a?.processParams)}return this.beans.validation?.missingUserComponent(e,t,this.agGridDefaults,this.jsComps),null}getSelector(e){return this.selectors[e]}getIcon(e){return this.icons[e]}getDynamicError(e,t){return t?Oi(279,{name:e}):this.beans.validation?.missingDynamicBean(e)??Oi(256)}},D5=23,P5=class extends B{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===D5&&e.every(t=>t?.isAlive()??!1)}whenReady(e,t){this.ready?t(this.params):this.readyCallbacks.push(t),e.addDestroyFunc(()=>{const i=this.readyCallbacks.indexOf(t);i>=0&&this.readyCallbacks.splice(i,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:i}=this.params;return[e,i,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}},T5=':where([class^=ag-]),:where([class^=ag-]):after,:where([class^=ag-]):before{box-sizing:border-box}:where([class^=ag-]):where(button){color:inherit}:where([class^=ag-]):where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:none;&:where(.invalid){box-shadow:inset var(--ag-focus-error-shadow)}}:where([class^=ag-]) ::-ms-clear{display:none}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-tab-guard{display:block;height:0;position:absolute;width:0}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-measurement-container{height:0;overflow:hidden;visibility:hidden;width:0}.ag-measurement-element-border{display:inline-block}.ag-measurement-element-border:before{border-left:var(--ag-internal-measurement-border);content:"";display:block}.ag-popup-child{top:0;z-index:5}.ag-popup-child:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}.ag-input-field-input:where(:not([type=checkbox],[type=radio])){flex:1 1 auto;min-width:0;width:100%}.ag-chart,.ag-dnd-ghost,.ag-external,.ag-popup,.ag-root-wrapper{cursor:default;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;background-color:var(--ag-background-color);color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);font-weight:var(--ag-font-weight);--ag-indentation-level:0}:where(.ag-icon):before{align-items:center;background-color:currentcolor;color:inherit;content:"";display:flex;font-family:inherit;font-size:var(--ag-icon-size);font-style:normal;font-variant:normal;height:var(--ag-icon-size);justify-content:center;line-height:var(--ag-icon-size);-webkit-mask-size:contain;mask-size:contain;text-transform:none;width:var(--ag-icon-size)}.ag-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;color:var(--ag-icon-color);display:block;height:var(--ag-icon-size);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}.ag-disabled .ag-icon,[disabled] .ag-icon{opacity:.5}.ag-icon-grip.ag-disabled,.ag-icon-grip[disabled]{opacity:.35}.ag-icon-loading{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ag-resizer{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}:where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize;height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{cursor:nesw-resize;height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;cursor:nwse-resize;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;cursor:nesw-resize;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}.ag-menu{background-color:var(--ag-menu-background-color);border:var(--ag-menu-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-menu-shadow);color:var(--ag-menu-text-color);max-height:100%;overflow-y:auto;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}',Yh=typeof window!="object"||!window?.document?.fonts?.forEach,QC=!1,mo=(e,t,i,s,o,n,r=!1)=>{if(Yh||QC)return;let a=e;s&&(a=`@layer ${CSS.escape(s).replaceAll("\\.",".")} { ${e} }`);let l=Mi.map.get(t);if(l||(l=[],Mi.map.set(t,l)),l.some(h=>h.injectedCss===a))return;const c=document.createElement("style");n&&c.setAttribute("nonce",n),c.dataset.agCss=i,c.dataset.agCssVersion=Q,c.textContent=a;const d={rawCss:e,injectedCss:a,el:c,priority:o,isParams:r};let u;for(const h of l){if(h.priority>o)break;u=h}if(u){u.el.after(c);const h=l.indexOf(u);l.splice(h+1,0,d)}else t.nodeName==="STYLE"?t.after(c):t.insertBefore(c,t.querySelector(":not(title, meta)")),l.push(d)},JC=(e,t,i,s)=>{mo(T5,e,"shared",t,0,i),s?.forEach((o,n)=>o.forEach(r=>mo(r,e,n,t,0,i)))},k5=(e,t,i,s,o,n)=>{if(Yh||QC)return;const r=Mi.grids.get(e);r?r.paramsCss=t:Mi.grids.set(e,{styleContainer:s,paramsCss:t}),Mu(s),t&&i&&mo(t,s,i,o,2,n,!0)},I5=e=>{const t=Mi.grids.get(e)?.styleContainer;if(!t)return;Mi.grids.delete(e),Array.from(Mi.grids.values()).some(s=>s.styleContainer===t)?Mu(t):(Mu(t,!0),Mi.map.delete(t))},Mu=(e,t=!1)=>{const i=new Set;for(const o of Mi.grids.values())o.styleContainer===e&&i.add(o.paramsCss);const s=Mi.map.get(e)??[];for(let o=s.length-1;o>=0;o--)(t||s[o].isParams&&!i.has(s[o].rawCss))&&(s[o].el.remove(),s.splice(o,1))},ew=()=>{const e=globalThis.agStyleInjectionVersions??(globalThis.agStyleInjectionVersions=new Map);let t=e.get(Q);return t||(t={map:new WeakMap,grids:new Map,paramsId:0},e.set(Q,t)),t},Mi=ew(),Pt=e=>new tw(e),fs="$default",M5=0,tw=class{constructor({feature:e,params:t,modeParams:i={},css:s,cssImports:o}){this.feature=e,this.css=s,this.cssImports=o,this.modeParams={[fs]:{...i[fs]??{},...t??{}},...i}}use(e,t,i){let s=this._inject;if(s==null){let{css:o}=this;if(o){const n=`ag-theme-${this.feature??"part"}-${++M5}`;typeof o=="function"&&(o=o()),o=`:where(.${n}) {
9
- ${o}
10
- }
11
- `;for(const r of this.cssImports??[])o=`@import url(${JSON.stringify(r)});
12
- ${o}`;s={css:o,class:n}}else s=!1;this._inject=s}return s&&e&&mo(s.css,e,s.class,t,1,i),s?s.class:!1}},A5=e=>e.replace(/[A-Z]|\d+/g,t=>`-${t}`).toLowerCase(),Zh=e=>`--ag-${A5(e)}`,Gi=e=>`var(${Zh(e)})`,L5=(e,t,i)=>Math.max(t,Math.min(i,e)),O5=e=>{const t=new Map;return i=>{const s=i;return t.has(s)||t.set(s,e(i)),t.get(s)}},ki=e=>({ref:"accentColor",mix:e}),It=e=>({ref:"foregroundColor",mix:e}),wt=e=>({ref:"foregroundColor",mix:e,onto:"backgroundColor"}),N5=e=>({ref:"foregroundColor",mix:e,onto:"headerBackgroundColor"}),at={ref:"backgroundColor"},Ai={ref:"foregroundColor"},Kt={ref:"accentColor"},Ll={backgroundColor:"#fff",foregroundColor:"#181d1f",borderColor:It(.15),chromeBackgroundColor:wt(.02),browserColorScheme:"light"},H5={...Ll,textColor:Ai,accentColor:"#2196f3",invalidColor:"#e02525",fontFamily:["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],subtleTextColor:{ref:"textColor",mix:.5},borderWidth:1,borderRadius:4,spacing:8,fontSize:14,fontWeight:"inherit",focusShadow:{spread:3,color:ki(.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:at,dragAndDropImageBorder:!0,dragAndDropImageNotAllowedBorder:{color:{ref:"invalidColor",onto:"dragAndDropImageBackgroundColor",mix:.5}},dragAndDropImageShadow:{ref:"popupShadow"},iconSize:16,iconColor:"inherit",toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonOnBackgroundColor:Kt,toggleButtonOffBackgroundColor:wt(.3),toggleButtonSwitchBackgroundColor:at,toggleButtonSwitchInset:2,tooltipBackgroundColor:{ref:"chromeBackgroundColor"},tooltipErrorBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.1},tooltipTextColor:{ref:"textColor"},tooltipErrorTextColor:{ref:"invalidColor"},tooltipBorder:!0,tooltipErrorBorder:{color:{ref:"invalidColor",onto:"backgroundColor",mix:.25}},panelBackgroundColor:at,panelTitleBarHeight:{ref:"headerHeight"},panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarIconColor:{ref:"headerTextColor"},panelTitleBarTextColor:{ref:"headerTextColor"},panelTitleBarFontFamily:{ref:"headerFontFamily"},panelTitleBarFontSize:{ref:"headerFontSize"},panelTitleBarFontWeight:{ref:"headerFontWeight"},panelTitleBarBorder:!0,dialogShadow:{ref:"popupShadow"},dialogBorder:{color:It(.2)},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 1.5"},widgetHorizontalSpacing:{calc:"spacing * 1.5"},widgetVerticalSpacing:{ref:"spacing"},dataFontSize:{ref:"fontSize"},headerBackgroundColor:{ref:"chromeBackgroundColor"},headerFontFamily:{ref:"fontFamily"},headerFontSize:{ref:"fontSize"},headerFontWeight:500,headerTextColor:{ref:"textColor"},headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4 * headerVerticalPaddingScale"},headerVerticalPaddingScale:1,menuBorder:{color:It(.2)},menuBackgroundColor:wt(.03),menuTextColor:wt(.95),menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"}},B5=["colorScheme","color","length","scale","borderStyle","border","shadow","image","fontFamily","fontWeight","duration"],G5=O5(e=>(e=e.toLowerCase(),B5.find(t=>e.endsWith(t.toLowerCase()))??"length")),lc=e=>typeof e=="object"&&e?.ref?Gi(e.ref):typeof e=="string"?e:typeof e=="number"?String(e):!1,Xh=e=>{if(typeof e=="string")return e;if(typeof e=="object"&&e&&"ref"in e){const t=Gi(e.ref);return e.mix==null?t:`color-mix(in srgb, ${e.onto?Gi(e.onto):"transparent"}, ${t} ${L5(e.mix*100,0,100)}%)`}return!1},V5=lc,tn=e=>typeof e=="string"?e:typeof e=="number"?`${e}px`:typeof e=="object"&&e&&"calc"in e?`calc(${e.calc.replace(/ ?[*/+] ?/g," $& ").replace(/-?\b[a-z][a-z0-9]*\b(?![-(])/gi,i=>i[0]==="-"?i:" "+Gi(i)+" ")})`:typeof e=="object"&&e&&"ref"in e?Gi(e.ref):!1,z5=lc,Au=(e,t)=>typeof e=="string"?e:e===!0?Au({},t):e===!1?t==="columnBorder"?Au({color:"transparent"},t):"none":typeof e=="object"&&e&&"ref"in e?Gi(e.ref):iw(e.style??"solid")+" "+tn(e.width??{ref:"borderWidth"})+" "+Xh(e.color??{ref:"borderColor"}),pf=e=>[tn(e.offsetX??0),tn(e.offsetY??0),tn(e.radius??0),tn(e.spread??0),Xh(e.color??{ref:"foregroundColor"}),...e.inset?["inset"]:[]].join(" "),W5=e=>typeof e=="string"?e:e===!1?"none":typeof e=="object"&&e&&"ref"in e?Gi(e.ref):Array.isArray(e)?e.map(pf).join(", "):pf(e),iw=lc,sw=e=>typeof e=="string"?e.includes(",")?e:gf(e):typeof e=="object"&&e&&"googleFont"in e?sw(e.googleFont):typeof e=="object"&&e&&"ref"in e?Gi(e.ref):Array.isArray(e)?e.map(t=>(typeof t=="object"&&"googleFont"in t&&(t=t.googleFont),gf(t))).join(", "):!1,gf=e=>/^[\w-]+$|\w\(/.test(e)?e:JSON.stringify(e),j5=lc,ow=e=>typeof e=="string"?e:typeof e=="object"&&e&&"url"in e?`url(${JSON.stringify(e.url)})`:typeof e=="object"&&e&&"svg"in e?ow({url:`data:image/svg+xml,${encodeURIComponent(e.svg)}`}):typeof e=="object"&&e&&"ref"in e?Gi(e.ref):!1,_5=(e,t,i)=>typeof e=="string"?e:typeof e=="number"?(e>=10&&i?.warn(104,{value:e,param:t}),`${e}s`):typeof e=="object"&&e&&"ref"in e?Gi(e.ref):!1,U5={color:Xh,colorScheme:V5,length:tn,scale:z5,border:Au,borderStyle:iw,shadow:W5,image:ow,fontFamily:sw,fontWeight:j5,duration:_5},$5=(e,t,i)=>{const s=G5(e);return U5[s](t,e,i)},q5=(e,t)=>new nw({themeLogger:e,overridePrefix:t}),nw=class rw{constructor(t,i=[]){this.params=t,this.parts=i}withPart(t){return typeof t=="function"&&(t=t()),t instanceof tw?new rw(this.params,[...this.parts,t]):(this.params.themeLogger.preInitErr(259,"Invalid part",{part:t}),this)}withoutPart(t){return this.withPart(Pt({feature:t}))}withParams(t,i=fs){return this.withPart(Pt({modeParams:{[i]:t}}))}_startUse({styleContainer:t,cssLayer:i,nonce:s,loadThemeGoogleFonts:o,moduleCss:n}){if(Yh)return;Y5(),JC(t,i,s,n);const r=K5(this);if(r.length>0)for(const a of r)o&&Z5(a,s);for(const a of this.parts)a.use(t,i,s)}_getCssClass(){return this._cssClassCache??(this._cssClassCache=ff(this.parts).map(t=>t.use(void 0,void 0,void 0)).filter(Boolean).concat(this._getParamsClassName()).join(" "))}_getParamsClassName(){return this._paramsClassName??(this._paramsClassName=`ag-theme-params-${++ew().paramsId}`)}_getModeParams(){let t=this._paramsCache;if(!t){const i={[fs]:{...H5}};for(const s of ff(this.parts))for(const o of Object.keys(s.modeParams)){const n=s.modeParams[o];if(n){const r=i[o]??(i[o]={}),a=new Set;for(const l of Object.keys(n)){const c=n[l];c!==void 0&&(r[l]=c,a.add(l))}if(o===fs)for(const l of Object.keys(i)){const c=i[l];if(l!==fs)for(const d of a)delete c[d]}}}this._paramsCache=t=i}return t}_getParamsCss(){if(!this._paramsCssCache){let t="",i="";const s=this._getModeParams(),{overridePrefix:o,themeLogger:n}=this.params,r=o?`--ag-${o}-`:void 0;for(const c of Object.keys(s)){const d=s[c];if(c!==fs){const h=`:where([data-ag-theme-mode="${typeof CSS=="object"?CSS.escape(c):c}"]) & {
13
- `;t+=h,i+=h}for(const u of Object.keys(d).sort()){const h=d[u],p=$5(u,h,n);if(p===!1)n.error(107,{key:u,value:h});else{const m=Zh(u),v=r?m.replace("--ag-",r):m,C=m.replace("--ag-","--ag-inherited-");t+=` ${m}: var(${C}, ${p});
14
- `,i+=` ${C}: var(${v});
15
- `}}c!==fs&&(t+=`}
16
- `,i+=`}
17
- `)}const a=`:where(.${this._getParamsClassName()})`;let l=`${a} {
18
- ${t}}
19
- `;l+=`:has(> ${a}):not(${a}) {
20
- ${i}}
21
- `,this._paramsCssCache=l}return this._paramsCssCache}},ff=e=>{const t=new Map;for(const s of e)t.set(s.feature,s);const i=[];for(const s of e)(!s.feature||t.get(s.feature)===s)&&i.push(s);return i},K5=e=>{const t=new Set,i=n=>{if(Array.isArray(n))n.forEach(i);else{const r=n?.googleFont;typeof r=="string"&&t.add(r)}};return Object.values(e._getModeParams()).flatMap(n=>Object.values(n)).forEach(i),Array.from(t).sort()},mf=!1,Y5=()=>{if(!mf){mf=!0;for(const e of Array.from(document.head.querySelectorAll('style[data-ag-scope="legacy"]')))e.remove()}},Z5=async(e,t)=>{const i=`@import url('https://${X5}/css2?family=${encodeURIComponent(e)}:wght@100;200;300;400;500;600;700;800;900&display=swap');
22
- `;mo(i,document.head,`googleFont:${e}`,void 0,0,t)},X5="fonts.googleapis.com",vf={changeKey:"listItemHeight",type:"length",defaultValue:24},Q5=class extends Ht{constructor(){super(...arguments),this.beanName="environment",this.sizeEls=new Map,this.lastKnownValues=new Map,this.sizesMeasured=!1,this.globalCSS=[]}wireBeans(e){this.eRootDiv=e.eRootDiv}postConstruct(){const{gos:e,eRootDiv:t}=this;e.setInstanceDomData(t);const i=e.get("themeStyleContainer"),s=typeof ShadowRoot<"u",o=s&&t.getRootNode()instanceof ShadowRoot;this.eStyleContainer=(typeof i=="function"?i():i)??(o?t:document.head),!i&&!o&&s&&J5(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(vf),this.initVariables(),this.addDestroyFunc(()=>I5(this)),this.mutationObserver=new MutationObserver(()=>{this.fireStylesChangedEvent("theme")}),this.addDestroyFunc(()=>this.mutationObserver.disconnect())}applyThemeClasses(e,t=[]){const{theme:i}=this,s=i?i._getCssClass():this.applyLegacyThemeClasses();for(const o of Array.from(e.classList))o.startsWith("ag-theme-")&&e.classList.remove(o);if(s){const o=e.className;e.className=`${o}${o?" ":""}${s}${t?.length?" "+t.join(" "):""}`}}applyLegacyThemeClasses(){let e="";this.mutationObserver.disconnect();let t=this.eRootDiv;for(;t;){let i=!1;for(const s of Array.from(t.classList))s.startsWith("ag-theme-")&&(i=!0,e=e?`${e} ${s}`:s);i&&this.mutationObserver.observe(t,{attributes:!0,attributeFilter:["class"]}),t=t.parentElement}return e}addGlobalCSS(e,t){this.theme?mo(e,this.eStyleContainer,t,this.cssLayer,0,this.styleNonce):this.globalCSS.push([e,t])}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(vf)}getCSSVariablePixelValue(e){const t=this.lastKnownValues.get(e);if(t!=null)return t;const i=this.measureSizeEl(e);return i==="detached"||i==="no-styles"?(e.cacheDefault&&this.lastKnownValues.set(e,e.defaultValue),e.defaultValue):(this.lastKnownValues.set(e,i),i)}measureSizeEl(e){const t=this.getSizeEl(e);if(t.offsetParent==null)return"detached";const i=t.offsetWidth;return i===Md?"no-styles":(this.sizesMeasured=!0,i)}getMeasurementContainer(){let e=this.eMeasurementContainer;return e||(e=this.eMeasurementContainer=uo({tag:"div",cls:"ag-measurement-container"}),this.eRootDiv.appendChild(e)),e}getSizeEl(e){let t=this.sizeEls.get(e);if(t)return t;const i=this.getMeasurementContainer();t=uo({tag:"div"});const s=this.setSizeElStyles(t,e);i.appendChild(t),this.sizeEls.set(e,t);const{type:o,noWarn:n}=e;if(o!=="length"&&o!=="border")return t;let r=this.measureSizeEl(e);r==="no-styles"&&!n&&this.varError(s,e.defaultValue);const a=ss(this.beans,t,()=>{const l=this.measureSizeEl(e);l==="detached"||l==="no-styles"||(this.lastKnownValues.set(e,l),l!==r&&(r=l,this.fireStylesChangedEvent(e.changeKey)))});return this.addDestroyFunc(()=>a()),t}setSizeElStyles(e,t){const{changeKey:i,type:s}=t;let o=Zh(i);return s==="border"?(o.endsWith("-width")&&(o=o.slice(0,-6)),e.className="ag-measurement-element-border",e.style.setProperty("--ag-internal-measurement-border",`var(${o}, solid ${Md}px)`)):e.style.width=`var(${o}, ${Md}px)`,o}handleThemeChange(){const{gos:e,theme:t}=this,i=e.get("theme");let s;if(i==="legacy")s=void 0;else{const o=i??this.getDefaultTheme();o instanceof nw?s=o:this.themeError(o)}s!==t&&this.handleNewTheme(s),this.postProcessThemeChange(s,i)}handleNewTheme(e){const{gos:t,eRootDiv:i,globalCSS:s}=this,o=this.getAdditionalCss();if(e){JC(this.eStyleContainer,this.cssLayer,this.styleNonce,o);for(const[n,r]of s)mo(n,this.eStyleContainer,r,this.cssLayer,0,this.styleNonce);s.length=0}this.theme=e,e?._startUse({loadThemeGoogleFonts:t.get("loadThemeGoogleFonts"),styleContainer:this.eStyleContainer,cssLayer:this.cssLayer,nonce:this.styleNonce,moduleCss:o}),k5(this,e?._getParamsCss()??null,e?._getParamsClassName()??null,this.eStyleContainer,this.cssLayer,this.styleNonce),this.applyThemeClasses(i),this.fireStylesChangedEvent("theme")}fireStylesChangedEvent(e){this.eventSvc.dispatchEvent({type:"stylesChanged",[`${e}Changed`]:!0})}},Md=15538,J5=(e,t,i)=>{let s=60;const o=setInterval(()=>{typeof ShadowRoot<"u"&&e.getRootNode()instanceof ShadowRoot&&(t(),clearInterval(o)),(e.isConnected||--s<0)&&clearInterval(o)},1e3);i(()=>clearInterval(o))},eP='.ag-aria-description-container{border:0;z-index:9999;clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ag-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-selectable{-webkit-user-select:text;-moz-user-select:text;user-select:text}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{flex:1 1 auto;height:100%;min-width:0;overflow:hidden;position:relative}.ag-viewport{position:relative}.ag-spanning-container{position:absolute;top:0;z-index:1}.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{overflow-x:auto;-ms-overflow-style:none!important;scrollbar-width:none!important}.ag-body-viewport::-webkit-scrollbar,.ag-center-cols-viewport::-webkit-scrollbar,.ag-floating-bottom-viewport::-webkit-scrollbar,.ag-floating-top-viewport::-webkit-scrollbar,.ag-header-viewport::-webkit-scrollbar,.ag-sticky-bottom-viewport::-webkit-scrollbar,.ag-sticky-top-viewport::-webkit-scrollbar{display:none!important}.ag-body-viewport{display:flex;overflow-x:hidden;&:where(.ag-layout-normal){overflow-y:auto;-webkit-overflow-scrolling:touch}}.ag-floating-bottom-container,.ag-floating-top-container,.ag-sticky-bottom-container,.ag-sticky-top-container{min-height:1px}.ag-center-cols-viewport{min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-body-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-center-cols-container,.ag-floating-bottom-container,.ag-floating-bottom-full-width-container,.ag-floating-top-container,.ag-full-width-container,.ag-header-container,.ag-pinned-left-cols-container,.ag-pinned-left-sticky-bottom,.ag-pinned-right-cols-container,.ag-pinned-right-sticky-bottom,.ag-sticky-bottom-container,.ag-sticky-top-container{position:relative}.ag-floating-bottom-container,.ag-floating-top-container,.ag-header-container,.ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top,.ag-sticky-bottom-container,.ag-sticky-top-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container,.ag-full-width-container,.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{pointer-events:none;position:absolute;top:0}:where(.ag-ltr) .ag-floating-bottom-full-width-container,:where(.ag-ltr) .ag-floating-top-full-width-container,:where(.ag-ltr) .ag-full-width-container,:where(.ag-ltr) .ag-sticky-bottom-full-width-container,:where(.ag-ltr) .ag-sticky-top-full-width-container{left:0}:where(.ag-rtl) .ag-floating-bottom-full-width-container,:where(.ag-rtl) .ag-floating-top-full-width-container,:where(.ag-rtl) .ag-full-width-container,:where(.ag-rtl) .ag-sticky-bottom-full-width-container,:where(.ag-rtl) .ag-sticky-top-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;height:100%;overflow:hidden;width:100%}.ag-body{display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0;position:relative}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:flex;min-height:0;min-width:0;position:relative;&:where(.ag-scrollbar-invisible){bottom:0;position:absolute;&:where(.ag-apple-scrollbar){opacity:0;transition:opacity .4s;visibility:hidden;&:where(.ag-scrollbar-active),&:where(.ag-scrollbar-scrolling){opacity:1;visibility:visible}}}}.ag-body-horizontal-scroll{width:100%;&:where(.ag-scrollbar-invisible){left:0;right:0}}.ag-body-vertical-scroll{height:100%;&:where(.ag-scrollbar-invisible){top:0;z-index:10}}:where(.ag-ltr) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){right:0}}:where(.ag-rtl) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){left:0}}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll;&:where(.ag-scroller-corner){overflow-x:hidden}}:where(.ag-row-animation) .ag-row{transition:transform .4s,top .4s,opacity .2s;&:where(.ag-after-created){transition:transform .4s,top .4s,height .4s,opacity .2s}}:where(.ag-row-animation.ag-prevent-animation) .ag-row{transition:none!important;&:where(.ag-row.ag-after-created){transition:none!important}}:where(.ag-row-no-animation) .ag-row{transition:none}.ag-row-loading{align-items:center;display:flex}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{align-items:center;display:flex}.ag-cell{display:inline-block;height:100%;position:absolute;white-space:nowrap;&:focus-visible{box-shadow:none}}.ag-cell-value{flex:1 1 auto}.ag-cell-value:not(.ag-allow-overflow),.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-word}:where(.ag-cell) .ag-icon{display:inline-block;vertical-align:middle}.ag-floating-top{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-top:not(.ag-invisible)){border-bottom:var(--ag-pinned-row-border)}.ag-floating-bottom{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-bottom:not(.ag-invisible)){border-top:var(--ag-pinned-row-border)}.ag-sticky-bottom,.ag-sticky-top{background-color:var(--ag-data-background-color);display:flex;height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.ag-sticky-bottom{box-sizing:content-box!important;:where(.ag-pinned-left-sticky-bottom),:where(.ag-pinned-right-sticky-bottom),:where(.ag-sticky-bottom-container){border-top:var(--ag-row-border);box-sizing:border-box}}.ag-opacity-zero{opacity:0!important}.ag-cell-label-container{align-items:center;display:flex;flex-direction:row-reverse;height:100%;justify-content:space-between;width:100%}:where(.ag-right-aligned-header){.ag-cell-label-container{flex-direction:row}.ag-header-cell-text{text-align:end}}.ag-column-group-icons{display:block;:where(.ag-column-group-closed-icon),:where(.ag-column-group-opened-icon){cursor:pointer}}:where(.ag-ltr){direction:ltr;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row}}:where(.ag-rtl){direction:rtl;text-align:right;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row-reverse}.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{display:block}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(180deg)}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(-180deg)}}:where(.ag-ltr) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}:where(.ag-rtl) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}:where(.ag-ltr) .ag-row-group-leaf-indent{margin-left:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}:where(.ag-rtl) .ag-row-group-leaf-indent{margin-right:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-value-change-delta{padding:0 2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row,.ag-spanned-row{color:var(--ag-cell-text-color);font-family:var(--ag-cell-font-family);font-size:var(--ag-cell-font-size);font-weight:var(--ag-cell-font-weight);white-space:nowrap;--ag-internal-content-line-height:calc(min(var(--ag-row-height), var(--ag-line-height, 1000px)) - var(--ag-internal-row-border-width, 1px) - 2px)}.ag-row{background-color:var(--ag-data-background-color);border-bottom:var(--ag-row-border);height:var(--ag-row-height);width:100%;&.ag-row-editing-invalid{background-color:var(--ag-full-row-edit-invalid-background-color)}}:where(.ag-body-vertical-content-no-gap>div>div>div,.ag-body-vertical-content-no-gap>div>div>div>div)>.ag-row-last{border-bottom-color:transparent}.ag-group-contracted,.ag-group-expanded{cursor:pointer}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{border:1px solid transparent;line-height:var(--ag-internal-content-line-height);-webkit-font-smoothing:subpixel-antialiased}:where(.ag-ltr) .ag-cell{border-right:var(--ag-column-border)}:where(.ag-rtl) .ag-cell{border-left:var(--ag-column-border)}.ag-spanned-cell-wrapper{background-color:var(--ag-data-background-color);position:absolute}.ag-spanned-cell-wrapper>.ag-spanned-cell{display:block;position:relative}:where(.ag-ltr) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-right-color:transparent}:where(.ag-rtl) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-left-color:transparent}.ag-cell-wrapper{align-items:center;display:flex;>:where(:not(.ag-cell-value,.ag-group-value)){align-items:center;display:flex;height:var(--ag-internal-content-line-height)}&:where(.ag-row-group){align-items:flex-start}:where(.ag-full-width-row) &:where(.ag-row-group){align-items:center;height:100%}}:where(.ag-ltr) .ag-cell-wrapper{padding-left:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-rtl) .ag-cell-wrapper{padding-right:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-cell-wrap-text:not(.ag-cell-auto-height)) .ag-cell-wrapper{align-items:normal;height:100%;:where(.ag-cell-value){height:100%}}:where(.ag-ltr) .ag-row>.ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-row>.ag-cell-wrapper.ag-row-group{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-cell-range-single-cell,.ag-cell-range-single-cell.ag-cell-range-handle,.ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-context-menu-open .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,.ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}.ag-full-width-row.ag-row-focus:focus{box-shadow:none}:where(.ag-ltr) .ag-group-contracted,:where(.ag-ltr) .ag-group-expanded,:where(.ag-ltr) .ag-row-drag,:where(.ag-ltr) .ag-selection-checkbox{margin-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-group-contracted,:where(.ag-rtl) .ag-group-expanded,:where(.ag-rtl) .ag-row-drag,:where(.ag-rtl) .ag-selection-checkbox{margin-left:var(--ag-cell-widget-spacing)}.ag-drag-handle-disabled{opacity:.35;pointer-events:none}:where(.ag-ltr) .ag-group-child-count{margin-left:3px}:where(.ag-rtl) .ag-group-child-count{margin-right:3px}.ag-row-highlight-above:after,.ag-row-highlight-below:after,.ag-row-highlight-inside:after{background-color:var(--ag-row-drag-indicator-color);border-radius:calc(var(--ag-row-drag-indicator-width)/2);content:"";height:var(--ag-row-drag-indicator-width);pointer-events:none;position:absolute;width:calc(100% - 1px)}:where(.ag-ltr) .ag-row-highlight-above:after,:where(.ag-ltr) .ag-row-highlight-below:after,:where(.ag-ltr) .ag-row-highlight-inside:after{left:1px}:where(.ag-rtl) .ag-row-highlight-above:after,:where(.ag-rtl) .ag-row-highlight-below:after,:where(.ag-rtl) .ag-row-highlight-inside:after{right:1px}.ag-row-highlight-above:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-highlight-indent:after{display:block;width:auto}:where(.ag-ltr) .ag-row-highlight-indent:after{left:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size));right:1px}:where(.ag-rtl) .ag-row-highlight-indent:after{left:1px;right:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size))}.ag-row-highlight-inside:after{background-color:var(--ag-selected-row-background-color);border:1px solid var(--ag-range-selection-border-color);display:block;height:auto;inset:0;width:auto}.ag-body,.ag-floating-bottom,.ag-floating-top{background-color:var(--ag-data-background-color)}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-selected:before{background-color:var(--ag-selected-row-background-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-full-width-row.ag-row-group:before,.ag-row-hover:not(.ag-full-width-row):before{background-color:var(--ag-row-hover-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-row.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-header-range-highlight{background-color:var(--ag-range-header-highlight-color)}.ag-right-aligned-cell{font-variant-numeric:tabular-nums}:where(.ag-ltr) .ag-right-aligned-cell{text-align:right}:where(.ag-rtl) .ag-right-aligned-cell{text-align:left}.ag-right-aligned-cell .ag-cell-value,.ag-right-aligned-cell .ag-group-value{margin-left:auto}:where(.ag-ltr) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-ltr) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level));padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}:where(.ag-rtl) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-rtl) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-details-row{background-color:var(--ag-data-background-color);padding:calc(var(--ag-spacing)*3.75)}.ag-layout-auto-height,.ag-layout-print{.ag-center-cols-container,.ag-center-cols-viewport{min-height:150px}}.ag-overlay-exporting-wrapper,.ag-overlay-loading-wrapper,.ag-overlay-modal-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-skeleton-container{align-content:center;height:100%;width:100%}.ag-skeleton-effect{animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite;background-color:var(--ag-row-loading-skeleton-effect-color);border-radius:.25rem;height:1em;width:100%}:where(.ag-ltr) .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}:where(.ag-rtl) .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}@keyframes ag-skeleton-loading{0%{background-color:var(--ag-row-loading-skeleton-effect-color)}50%{background-color:color-mix(in srgb,transparent,var(--ag-row-loading-skeleton-effect-color) 40%)}to{background-color:var(--ag-row-loading-skeleton-effect-color)}}.ag-loading{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-ltr) .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);color:var(--ag-header-text-color);display:flex;font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight);overflow:hidden;white-space:nowrap;width:100%}.ag-header-row{height:var(--ag-header-height);position:absolute}.ag-floating-filter-button-button,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,:where(.ag-header-cell-sortable) .ag-header-cell-label,:where(.ag-header-group-cell-selectable) .ag-header-cell-comp-wrapper{cursor:pointer}:where(.ag-ltr) .ag-header-expand-icon{margin-left:4px}:where(.ag-rtl) .ag-header-expand-icon{margin-right:4px}.ag-header-row:where(:not(:first-child)){:where(.ag-header-cell:not(.ag-header-span-height.ag-header-span-total,.ag-header-parent-hidden)),:where(.ag-header-group-cell.ag-header-group-cell-with-group){border-top:var(--ag-header-row-border)}}.ag-header-row:where(:not(.ag-header-row-column-group)){overflow:hidden}:where(.ag-header.ag-header-allow-overflow) .ag-header-row{overflow:visible}.ag-header-cell{display:inline-flex;overflow:hidden}.ag-header-group-cell{contain:paint;display:flex}.ag-header-cell,.ag-header-group-cell{align-items:center;gap:var(--ag-cell-widget-spacing);height:100%;padding:0 var(--ag-cell-horizontal-padding);position:absolute}@property --ag-internal-moving-color{syntax:"<color>";inherits:false;initial-value:transparent}@property --ag-internal-hover-color{syntax:"<color>";inherits:false;initial-value:transparent}.ag-header-cell:where(:not(.ag-floating-filter)):before,.ag-header-group-cell:before{background-image:linear-gradient(var(--ag-internal-hover-color),var(--ag-internal-hover-color)),linear-gradient(var(--ag-internal-moving-color),var(--ag-internal-moving-color));content:"";inset:0;position:absolute;--ag-internal-moving-color:transparent;--ag-internal-hover-color:transparent;transition:--ag-internal-moving-color var(--ag-header-cell-background-transition-duration),--ag-internal-hover-color var(--ag-header-cell-background-transition-duration)}.ag-header-cell:where(:not(.ag-floating-filter)):where(:hover):before,.ag-header-group-cell:where(:hover):before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}.ag-header-cell:where(:not(.ag-floating-filter)):where(.ag-header-cell-moving):before,.ag-header-group-cell:where(.ag-header-cell-moving):before{--ag-internal-moving-color:var(--ag-header-cell-moving-background-color);--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}:where(.ag-header-cell:not(.ag-floating-filter)>*,.ag-header-group-cell>*){position:relative;z-index:1}.ag-header-cell-menu-button:where(:not(.ag-header-menu-always-show)){opacity:0;transition:opacity .2s}.ag-header-cell-filter-button,:where(.ag-header-cell.ag-header-active) .ag-header-cell-menu-button{opacity:1}.ag-header-cell-label,.ag-header-group-cell-label{align-items:center;align-self:stretch;display:flex;flex:1 1 auto;overflow:hidden;padding:5px 0}:where(.ag-ltr) .ag-sort-indicator-icon{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-sort-indicator-icon{padding-right:var(--ag-spacing)}.ag-header-cell-label{text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{flex:none;max-width:100%;overflow:visible;position:sticky}:where(.ag-ltr) .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell-text,.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{word-break:break-word}.ag-header-cell-comp-wrapper{width:100%}:where(.ag-header-group-cell) .ag-header-cell-comp-wrapper{display:flex}:where(.ag-header-cell:not(.ag-header-cell-auto-height)) .ag-header-cell-comp-wrapper{align-items:center;display:flex;height:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-header-cell-comp-wrapper-limited-height>*{overflow:hidden}:where(.ag-right-aligned-header) .ag-header-cell-label{flex-direction:row-reverse}:where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{margin-right:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{margin-left:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{margin-left:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{margin-right:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}.ag-header-cell:after,.ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{content:"";height:var(--ag-header-column-border-height);position:absolute;top:calc(50% - var(--ag-header-column-border-height)*.5);z-index:1}:where(.ag-ltr) .ag-header-cell:after,:where(.ag-ltr) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-right:var(--ag-header-column-border);right:0}:where(.ag-rtl) .ag-header-cell:after,:where(.ag-rtl) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-left:var(--ag-header-column-border);left:0}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-column-drag-indicator-color);border-radius:calc(var(--ag-column-drag-indicator-width)/2);content:"";height:100%;position:absolute;top:0;width:var(--ag-column-drag-indicator-width)}:where(.ag-ltr) .ag-header-highlight-before:after{left:0}:where(.ag-rtl) .ag-header-highlight-before:after{right:0}:where(.ag-ltr) .ag-header-highlight-after:after{right:0;:where(.ag-pinned-left-header) &{right:1px}}:where(.ag-rtl) .ag-header-highlight-after:after{left:0;:where(.ag-pinned-left-header) &{left:1px}}.ag-header-cell-resize{align-items:center;cursor:ew-resize;display:flex;height:100%;position:absolute;top:0;width:8px;z-index:2}:where(.ag-ltr) .ag-header-cell-resize{right:-3px}:where(.ag-rtl) .ag-header-cell-resize{left:-3px}.ag-header-cell-resize:after{background-color:var(--ag-header-column-resize-handle-color);content:"";height:var(--ag-header-column-resize-handle-height);position:absolute;top:calc(50% - var(--ag-header-column-resize-handle-height)*.5);width:var(--ag-header-column-resize-handle-width);z-index:1}:where(.ag-ltr) .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}:where(.ag-rtl) .ag-header-cell-resize:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}:where(.ag-header-cell.ag-header-span-height) .ag-header-cell-resize:after{height:calc(100% - var(--ag-spacing)*4);top:calc(var(--ag-spacing)*2)}.ag-header-group-cell-no-group:where(.ag-header-span-height){display:none}.ag-sort-indicator-container{display:flex;gap:var(--ag-spacing)}.ag-layout-print{&.ag-body{display:block;height:unset}&.ag-root-wrapper{container-type:normal;display:inline-block}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:none}&.ag-force-vertical-scroll{overflow-y:visible!important}}@media print{.ag-root-wrapper.ag-layout-print{container-type:normal;display:table;.ag-body-horizontal-scroll-viewport,.ag-body-viewport,.ag-center-cols-container,.ag-center-cols-viewport,.ag-root,.ag-root-wrapper-body,.ag-virtual-list-viewport{display:block!important;height:auto!important;overflow:hidden!important}.ag-cell,.ag-row{-moz-column-break-inside:avoid;break-inside:avoid}}}ag-grid,ag-grid-angular{display:block}.ag-root-wrapper{border:var(--ag-wrapper-border);border-radius:var(--ag-wrapper-border-radius);container-type:inline-size;display:flex;flex-direction:column;overflow:hidden;position:relative;&.ag-layout-normal{height:100%}}.ag-root-wrapper-body{display:flex;flex-direction:row;&.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}}.ag-root{display:flex;flex-direction:column;position:relative;&.ag-layout-auto-height,&.ag-layout-normal{flex:1 1 auto;overflow:hidden;width:0}&.ag-layout-normal{height:100%}}.ag-drag-handle{color:var(--ag-drag-handle-color);cursor:grab;:where(.ag-icon){color:var(--ag-drag-handle-color)}}.ag-chart-menu-icon,.ag-chart-settings-next,.ag-chart-settings-prev,.ag-column-group-icons,.ag-column-select-header-icon,.ag-filter-toolpanel-expand,.ag-floating-filter-button-button,.ag-group-title-bar-icon,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,.ag-panel-title-bar-button-icon,.ag-set-filter-group-icons,:where(.ag-group-contracted) .ag-icon,:where(.ag-group-expanded) .ag-icon{background-color:var(--ag-icon-button-background-color);border-radius:var(--ag-icon-button-border-radius);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-background-color);color:var(--ag-icon-button-color)}.ag-chart-menu-icon:hover,.ag-chart-settings-next:hover,.ag-chart-settings-prev:hover,.ag-column-group-icons:hover,.ag-column-select-header-icon:hover,.ag-filter-toolpanel-expand:hover,.ag-floating-filter-button-button:hover,.ag-group-title-bar-icon:hover,.ag-header-cell-filter-button:hover,.ag-header-cell-menu-button:hover,.ag-header-expand-icon:hover,.ag-panel-title-bar-button-icon:hover,.ag-panel-title-bar-button:hover,.ag-set-filter-group-icons:hover,:where(.ag-group-contracted) .ag-icon:hover,:where(.ag-group-expanded) .ag-icon:hover{background-color:var(--ag-icon-button-hover-background-color);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-hover-background-color);color:var(--ag-icon-button-hover-color)}:where(.ag-filter-active),:where(.ag-filter-toolpanel-group-instance-header-icon),:where(.ag-filter-toolpanel-instance-header-icon){position:relative}:where(.ag-filter-active):after,:where(.ag-filter-toolpanel-group-instance-header-icon):after,:where(.ag-filter-toolpanel-instance-header-icon):after{background-color:var(--ag-icon-button-active-indicator-color);border-radius:50%;content:"";height:6px;position:absolute;top:-1px;width:6px}:where(.ag-ltr) :where(.ag-filter-active):after,:where(.ag-ltr) :where(.ag-filter-toolpanel-group-instance-header-icon):after,:where(.ag-ltr) :where(.ag-filter-toolpanel-instance-header-icon):after{right:-1px}:where(.ag-rtl) :where(.ag-filter-active):after,:where(.ag-rtl) :where(.ag-filter-toolpanel-group-instance-header-icon):after,:where(.ag-rtl) :where(.ag-filter-toolpanel-instance-header-icon):after{left:-1px}.ag-filter-active{background-image:linear-gradient(var(--ag-icon-button-active-background-color),var(--ag-icon-button-active-background-color));border-radius:1px;outline:solid var(--ag-icon-button-background-spread) var(--ag-icon-button-active-background-color);:where(.ag-icon-filter){clip-path:path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");color:var(--ag-icon-button-active-color)}}',tP={wrapperBorder:!0,rowBorder:!0,headerRowBorder:!0,footerRowBorder:{ref:"rowBorder"},columnBorder:{style:"solid",width:1,color:"transparent"},headerColumnBorder:!1,headerColumnBorderHeight:"100%",pinnedColumnBorder:!0,pinnedRowBorder:!0,sidePanelBorder:!0,sideBarPanelWidth:250,sideBarPanelAnimationDuration:0,sideBarBackgroundColor:{ref:"chromeBackgroundColor"},sideButtonBarBackgroundColor:{ref:"sideBarBackgroundColor"},sideButtonBarTopPadding:0,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineColor:"transparent",sideButtonSelectedUnderlineTransitionDuration:0,sideButtonBackgroundColor:"transparent",sideButtonTextColor:{ref:"textColor"},sideButtonHoverBackgroundColor:{ref:"sideButtonBackgroundColor"},sideButtonHoverTextColor:{ref:"sideButtonTextColor"},sideButtonSelectedBackgroundColor:at,sideButtonSelectedTextColor:{ref:"sideButtonTextColor"},sideButtonBorder:"solid 1px transparent",sideButtonSelectedBorder:!0,sideButtonLeftPadding:{ref:"spacing"},sideButtonRightPadding:{ref:"spacing"},sideButtonVerticalPadding:{calc:"spacing * 3"},cellFontFamily:{ref:"fontFamily"},cellFontSize:{ref:"dataFontSize"},cellFontWeight:{ref:"fontWeight"},headerCellHoverBackgroundColor:"transparent",headerCellMovingBackgroundColor:{ref:"headerCellHoverBackgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:Kt,rangeSelectionBackgroundColor:ki(.2),rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:ki(.5),rangeHeaderHighlightColor:N5(.08),rowNumbersSelectedColor:ki(.5),rowHoverColor:ki(.08),columnHoverColor:ki(.05),selectedRowBackgroundColor:ki(.12),modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},dataBackgroundColor:at,oddRowBackgroundColor:{ref:"dataBackgroundColor"},wrapperBorderRadius:8,cellHorizontalPadding:{calc:"spacing * 2 * cellHorizontalPaddingScale"},cellWidgetSpacing:{calc:"spacing * 1.5"},cellHorizontalPaddingScale:1,rowGroupIndentSize:{calc:"cellWidgetSpacing + iconSize"},valueChangeDeltaUpColor:"#43a047",valueChangeDeltaDownColor:"#e53935",valueChangeValueHighlightBackgroundColor:"#16a08580",rowHeight:{calc:"max(iconSize, cellFontSize) + spacing * 3.25 * rowVerticalPaddingScale"},rowVerticalPaddingScale:1,paginationPanelHeight:{ref:"rowHeight",calc:"max(rowHeight, 22px)"},dragHandleColor:It(.7),headerColumnResizeHandleHeight:"30%",headerColumnResizeHandleWidth:2,headerColumnResizeHandleColor:{ref:"borderColor"},iconButtonColor:{ref:"iconColor"},iconButtonBackgroundColor:"transparent",iconButtonBackgroundSpread:4,iconButtonBorderRadius:1,iconButtonHoverColor:{ref:"iconButtonColor"},iconButtonHoverBackgroundColor:It(.1),iconButtonActiveColor:Kt,iconButtonActiveBackgroundColor:ki(.28),iconButtonActiveIndicatorColor:Kt,setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:It(.8),cellEditingBorder:{color:Kt},cellEditingShadow:{ref:"cardShadow"},fullRowEditInvalidBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.25},columnSelectIndentSize:{ref:"iconSize"},toolPanelSeparatorBorder:!0,columnDropCellBackgroundColor:It(.07),columnDropCellTextColor:{ref:"textColor"},columnDropCellDragHandleColor:{ref:"textColor"},columnDropCellBorder:{color:It(.13)},selectCellBackgroundColor:It(.07),selectCellBorder:{color:It(.13)},advancedFilterBuilderButtonBarBorder:!0,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",filterPanelApplyButtonColor:at,filterPanelApplyButtonBackgroundColor:Kt,columnPanelApplyButtonColor:at,columnPanelApplyButtonBackgroundColor:Kt,filterPanelCardSubtleColor:{ref:"textColor",mix:.7},filterPanelCardSubtleHoverColor:{ref:"textColor"},findMatchColor:Ai,findMatchBackgroundColor:"#ffff00",findActiveMatchColor:Ai,findActiveMatchBackgroundColor:"#ffa500",filterToolPanelGroupIndent:{ref:"spacing"},rowLoadingSkeletonEffectColor:It(.15),statusBarLabelColor:Ai,statusBarLabelFontWeight:500,statusBarValueColor:Ai,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},iP=".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)}",aw={cellBatchEditBackgroundColor:"rgba(220 181 139 / 16%)",cellBatchEditTextColor:"#422f00",rowBatchEditBackgroundColor:{ref:"cellBatchEditBackgroundColor"},rowBatchEditTextColor:{ref:"cellBatchEditTextColor"}},sP={...aw,cellBatchEditTextColor:"#f3d0b3"},oP=()=>Pt({feature:"batchEditStyle",params:aw,css:iP}),nP=oP(),lw=":where(.ag-button){background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0;text-indent:inherit;text-shadow:inherit;text-transform:inherit;word-spacing:inherit;&:disabled{cursor:default}&:focus-visible{box-shadow:var(--ag-focus-shadow);outline:none}}.ag-standard-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--ag-button-background-color);border:var(--ag-button-border);border-radius:var(--ag-button-border-radius);color:var(--ag-button-text-color);cursor:pointer;font-weight:var(--ag-button-font-weight);padding:var(--ag-button-vertical-padding) var(--ag-button-horizontal-padding);&:active{background-color:var(--ag-button-active-background-color);border:var(--ag-button-active-border);color:var(--ag-button-active-text-color)}&:disabled{background-color:var(--ag-button-disabled-background-color);border:var(--ag-button-disabled-border);color:var(--ag-button-disabled-text-color)}}.ag-standard-button:hover{background-color:var(--ag-button-hover-background-color);border:var(--ag-button-hover-border);color:var(--ag-button-hover-text-color)}",cw={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"}},rP=()=>Pt({feature:"buttonStyle",params:{...cw,buttonBackgroundColor:at,buttonBorder:!0,buttonHoverBackgroundColor:{ref:"rowHoverColor"},buttonActiveBorder:{color:Kt}},css:lw}),aP=rP(),lP=()=>Pt({feature:"buttonStyle",params:{...cw,buttonBorder:{color:Ai,width:2,style:"outset"},buttonActiveBorder:{color:Ai,width:2,style:"inset"},buttonBackgroundColor:wt(.07),buttonHoverBackgroundColor:at,buttonVerticalPadding:{calc:"spacing * 0.5"}},css:lw}),cP=lP(),dP=".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}",uP=".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))}",hP=()=>Pt({feature:"columnDropStyle",css:dP}),dw=hP(),pP=()=>Pt({feature:"columnDropStyle",css:uP}),gP=pP(),fP={formulaToken1Color:"#3269c6",formulaToken1BackgroundColor:{ref:"formulaToken1Color",mix:.08},formulaToken1Border:{color:{ref:"formulaToken1Color"}},formulaToken2Color:"#c0343f",formulaToken2BackgroundColor:{ref:"formulaToken2Color",mix:.06},formulaToken2Border:{color:{ref:"formulaToken2Color"}},formulaToken3Color:"#8156b8",formulaToken3BackgroundColor:{ref:"formulaToken3Color",mix:.08},formulaToken3Border:{color:{ref:"formulaToken3Color"}},formulaToken4Color:"#007c1f",formulaToken4BackgroundColor:{ref:"formulaToken4Color",mix:.06},formulaToken4Border:{color:{ref:"formulaToken4Color"}},formulaToken5Color:"#b03e85",formulaToken5BackgroundColor:{ref:"formulaToken5Color",mix:.08},formulaToken5Border:{color:{ref:"formulaToken5Color"}},formulaToken6Color:"#b74900",formulaToken6BackgroundColor:{ref:"formulaToken6Color",mix:.06},formulaToken6Border:{color:{ref:"formulaToken6Color"}},formulaToken7Color:"#247492",formulaToken7BackgroundColor:{ref:"formulaToken7Color",mix:.08},formulaToken7Border:{color:{ref:"formulaToken7Color"}}},mP=()=>Pt({feature:"formulaStyle",params:fP}),vP=mP(),CP={warn:(...e)=>{$(e[0],e[1])},error:(...e)=>{We(e[0],e[1])},preInitErr:(...e)=>{nr(e[0],e[2],e[1])}},uw=()=>q5(CP).withParams(tP).withPart(aP).withPart(dw).withPart(nP).withPart(vP),wP='.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{background-color:var(--ag-checkbox-unchecked-background-color);border:solid var(--ag-checkbox-border-width) var(--ag-checkbox-unchecked-border-color);flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);&:where(.ag-checked){background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color)}&:where(.ag-checked):after{background-color:var(--ag-checkbox-checked-shape-color)}&:where(.ag-disabled){filter:grayscale();opacity:.5}}.ag-checkbox-input,.ag-radio-button-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-icon-size);margin:0;opacity:0;width:var(--ag-icon-size)}.ag-checkbox-input-wrapper:after,.ag-radio-button-input-wrapper:after{content:"";display:block;inset:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;pointer-events:none;position:absolute}.ag-checkbox-input-wrapper:where(:focus-within,:active),.ag-radio-button-input-wrapper:where(:focus-within,:active){box-shadow:var(--ag-focus-shadow)}.ag-checkbox-input-wrapper{border-radius:var(--ag-checkbox-border-radius);&:where(.ag-checked):after{-webkit-mask-image:var(--ag-checkbox-checked-shape-image);mask-image:var(--ag-checkbox-checked-shape-image)}&:where(.ag-indeterminate){background-color:var(--ag-checkbox-indeterminate-background-color);border-color:var(--ag-checkbox-indeterminate-border-color)}&:where(.ag-indeterminate):after{background-color:var(--ag-checkbox-indeterminate-shape-color);-webkit-mask-image:var(--ag-checkbox-indeterminate-shape-image);mask-image:var(--ag-checkbox-indeterminate-shape-image)}}.ag-cell-editing-error .ag-checkbox-input-wrapper:focus-within{box-shadow:var(--ag-focus-error-shadow)}.ag-radio-button-input-wrapper{border-radius:100%;&:where(.ag-checked):after{-webkit-mask-image:var(--ag-radio-checked-shape-image);mask-image:var(--ag-radio-checked-shape-image)}}',bP=()=>Pt({feature:"checkboxStyle",params:{checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:at,checkboxUncheckedBorderColor:wt(.3),checkboxCheckedBackgroundColor:Kt,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:at,checkboxIndeterminateBackgroundColor:wt(.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:at,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:wP}),hw=bP(),Qh=()=>({...Ll,...sP,backgroundColor:"hsl(217, 0%, 17%)",foregroundColor:"#FFF",chromeBackgroundColor:wt(.05),rowHoverColor:ki(.15),selectedRowBackgroundColor:ki(.2),menuBackgroundColor:wt(.1),browserColorScheme:"dark",popupShadow:"0 0px 20px #000A",cardShadow:"0 1px 4px 1px #000A",advancedFilterBuilderJoinPillColor:"#7a3a37",advancedFilterBuilderColumnPillColor:"#355f2d",advancedFilterBuilderOptionPillColor:"#5a3168",advancedFilterBuilderValuePillColor:"#374c86",filterPanelApplyButtonColor:Ai,columnPanelApplyButtonColor:Ai,findMatchColor:at,findActiveMatchColor:at,checkboxUncheckedBorderColor:wt(.4),toggleButtonOffBackgroundColor:wt(.4),rowBatchEditBackgroundColor:wt(.1),formulaToken1Color:"#4da3e5",formulaToken2Color:"#f55864",formulaToken3Color:"#b688f2",formulaToken4Color:"#24bb4a",formulaToken5Color:"#e772ba",formulaToken6Color:"#f69b5f",formulaToken7Color:"#a3e6ff"}),xP=()=>Pt({feature:"colorScheme",params:Qh()}),yP=xP(),SP=()=>({...Qh(),backgroundColor:"#1f2836"}),RP=()=>Pt({feature:"colorScheme",params:Ll,modeParams:{light:Ll,dark:Qh(),"dark-blue":SP()}}),pw=RP(),FP=`.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")}`,EP=Pt({feature:"iconSet",css:FP}),gw={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"/>'},fw={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>'},DP=(e={})=>{let t="";for(const i of[...Object.keys(gw),...Object.keys(fw)]){const s=PP(i,e.strokeWidth);t+=`.ag-icon-${i}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(s)}'); }
23
- `}return t},PP=(e,t=1.5)=>{const i=fw[e];if(i)return i;const s=gw[e];if(!s)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>`+s+"</svg>"},TP=(e={})=>Pt({feature:"iconSet",css:()=>DP(e)}),kP=TP(),IP=':where(.ag-input-field-input[type=number]:not(.ag-number-field-input-stepper)){-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}}.ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color);outline:none}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&::-moz-placeholder{color:var(--ag-input-placeholder-text-color)}&::placeholder{color:var(--ag-input-placeholder-text-color)}}:where(.ag-ltr) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-left:var(--ag-input-padding-start)}:where(.ag-rtl) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-right:var(--ag-input-padding-start)}&:where(.ag-ltr,.ag-rtl) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding:0 var(--ag-input-padding-start)}:where(.ag-column-select-header-filter-wrapper),:where(.ag-filter-add-select),:where(.ag-filter-filter),:where(.ag-filter-toolpanel-search),:where(.ag-floating-filter-search-icon),:where(.ag-mini-filter){.ag-input-wrapper:before{background-color:currentcolor;color:var(--ag-input-icon-color);content:"";display:block;height:12px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;opacity:.5;position:absolute;width:12px}}:where(.ag-ltr) :where(.ag-column-select-header-filter-wrapper),:where(.ag-ltr) :where(.ag-filter-add-select),:where(.ag-ltr) :where(.ag-filter-filter),:where(.ag-ltr) :where(.ag-filter-toolpanel-search),:where(.ag-ltr) :where(.ag-floating-filter-search-icon),:where(.ag-ltr) :where(.ag-mini-filter){.ag-input-wrapper:before{margin-left:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-left:calc(var(--ag-spacing)*1.5 + 12px)}}:where(.ag-rtl) :where(.ag-column-select-header-filter-wrapper),:where(.ag-rtl) :where(.ag-filter-add-select),:where(.ag-rtl) :where(.ag-filter-filter),:where(.ag-rtl) :where(.ag-filter-toolpanel-search),:where(.ag-rtl) :where(.ag-floating-filter-search-icon),:where(.ag-rtl) :where(.ag-mini-filter){.ag-input-wrapper:before{margin-right:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-right:calc(var(--ag-spacing)*1.5 + 12px)}}',MP=".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)}}}",AP={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},LP=()=>Pt({feature:"inputStyle",params:{...AP,inputBackgroundColor:at,inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:Kt},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:wt(.06),inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}},pickerButtonBorder:!0,pickerListBorder:!0},css:()=>IP+MP}),mw=LP(),vw='.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;flex:1;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex}.ag-tabs-close-button-wrapper{align-items:center;border:0;display:flex;padding:var(--ag-spacing)}:where(.ag-ltr) .ag-tabs-close-button-wrapper{border-right:solid var(--ag-border-width) var(--ag-border-color)}:where(.ag-rtl) .ag-tabs-close-button-wrapper{border-left:solid var(--ag-border-width) var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative}.ag-tab:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}.ag-tab.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}:where(.ag-ltr) .ag-tab.ag-tab-selected:where(:not(:first-of-type)){border-left-color:var(--ag-tab-selected-border-color)}:where(.ag-rtl) .ag-tab.ag-tab-selected:where(:not(:first-of-type)){border-right-color:var(--ag-tab-selected-border-color)}:where(.ag-ltr) .ag-tab.ag-tab-selected:where(:not(:last-of-type)){border-right-color:var(--ag-tab-selected-border-color)}:where(.ag-rtl) .ag-tab.ag-tab-selected:where(:not(:last-of-type)){border-left-color:var(--ag-tab-selected-border-color)}.ag-tab:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}.ag-tab.ag-tab-selected:after{opacity:1}',OP=".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)}}",Cw={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},NP=()=>Pt({feature:"tabStyle",params:{...Cw,tabBarBorder:!0,tabBarBackgroundColor:It(.05),tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:at},css:vw}),HP=NP(),BP=()=>Pt({feature:"tabStyle",params:{...Cw,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:at},css:()=>vw+OP}),GP=BP(),VP=()=>({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]}),zP=()=>uw().withPart(hw).withPart(pw).withPart(kP).withPart(HP).withPart(mw).withPart(dw).withParams(VP()),WP=zP(),jP=()=>({accentColor:"#0091ea",borderColor:It(.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:at,checkboxUncheckedBorderColor:wt(.5),checkboxCheckedBackgroundColor:at,checkboxCheckedBorderColor:Kt,checkboxCheckedShapeColor:Kt,checkboxIndeterminateBackgroundColor:at,checkboxIndeterminateBorderColor:wt(.5),checkboxIndeterminateShapeColor:wt(.5),focusShadow:{radius:2,spread:1,color:Kt},headerTextColor:It(.6),iconButtonHoverBackgroundColor:"transparent",iconButtonActiveBackgroundColor:"transparent",fontSize:12,tabSelectedBackgroundColor:at,headerFontWeight:"bold",toggleButtonWidth:32,toggleButtonHeight:16,toggleButtonSwitchInset:1,toggleButtonOffBackgroundColor:wt(.5),sideButtonBorder:!0,sideButtonBarTopPadding:{calc:"spacing * 4"},popupShadow:"5px 5px 10px rgba(0, 0, 0, 0.3)",statusBarLabelColor:It(.54),statusBarLabelFontWeight:600,statusBarValueFontWeight:600,panelTitleBarIconColor:Ai,colorPickerThumbSize:13,colorPickerTrackSize:11,colorPickerThumbBorderWidth:2,colorPickerTrackBorderRadius:2,colorPickerColorBorderRadius:2}),_P=()=>uw().withPart(cP).withPart(hw).withPart(pw).withPart(EP).withPart(GP).withPart(mw).withPart(gP).withParams(jP()),UP=_P(),Os=(e,t,i,s,o)=>({changeKey:e,type:t,defaultValue:i,noWarn:s,cacheDefault:o}),$P=Os("cellHorizontalPadding","length",16),qP=Os("indentationLevel","length",0,!0,!0),KP=Os("rowGroupIndentSize","length",0),Cf=Os("rowHeight","length",42),wf=Os("headerHeight","length",48),Ad=Os("rowBorderWidth","border",1),bf=Os("pinnedRowBorderWidth","border",1),YP=Os("headerRowBorderWidth","border",1);function ZP(e,t){for(const i of t.sort((s,o)=>s.moduleName.localeCompare(o.moduleName))){const s=i.css;s&&e.set(`module-${i.moduleName}`,s)}}var XP=class extends Q5{initVariables(){this.addManagedPropertyListener("rowHeight",()=>this.refreshRowHeightVariable()),this.getSizeEl(Cf),this.getSizeEl(wf),this.getSizeEl(Ad),this.getSizeEl(bf),this.refreshRowBorderWidthVariable()}getPinnedRowBorderWidth(){return this.getCSSVariablePixelValue(bf)}getRowBorderWidth(){return this.getCSSVariablePixelValue(Ad)}getHeaderRowBorderWidth(){return this.getCSSVariablePixelValue(YP)}getDefaultRowHeight(){return this.getCSSVariablePixelValue(Cf)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(wf)}getDefaultCellHorizontalPadding(){return this.getCSSVariablePixelValue($P)}getCellPaddingLeft(){const e=this.getDefaultCellHorizontalPadding(),t=this.getCSSVariablePixelValue(qP),i=this.getCSSVariablePixelValue(KP);return e-1+i*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(),i=this.gos.get("rowHeight");if(i==null||isNaN(i)||!isFinite(i))return t!==null&&e.style.setProperty("--ag-line-height",null),-1;const s=`${i}px`;return t!=s?(e.style.setProperty("--ag-line-height",s),i):t!=""?Number.parseFloat(t):-1}fireStylesChangedEvent(e){e==="rowBorderWidth"&&this.refreshRowBorderWidthVariable(),super.fireStylesChangedEvent(e)}refreshRowBorderWidthVariable(){const e=this.getCSSVariablePixelValue(Ad);this.eRootDiv.style.setProperty("--ag-internal-row-border-width",`${e}px`)}postProcessThemeChange(e,t){e&&getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded")&&We(t?106:239)}getAdditionalCss(){const e=new Map;return e.set("core",[eP]),ZP(e,Array.from(F2())),e}getDefaultTheme(){return WP}varError(e,t){$(9,{variable:{cssName:e,defaultValue:t}})}themeError(e){We(240,{theme:e})}shadowRootError(){We(293)}},QP=class extends Ht{constructor(){super(...arguments),this.beanName="eventSvc",this.eventServiceType="global",this.globalSvc=new lo}addListener(e,t,i){this.globalSvc.addEventListener(e,t,i)}removeListener(e,t,i){this.globalSvc.removeEventListener(e,t,i)}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))}},JP=class extends QP{postConstruct(){const{globalListener:e,globalSyncListener:t}=this.beans;e&&this.addGlobalListener(e,!0),t&&this.addGlobalListener(t,!1)}};function Lu(e,t,i){const s=e.visibleCols.headerGroupRowCount;if(i>=s)return{column:t,headerRowIndex:i};let o=t.getParent();for(;o&&o.getProvidedColumnGroup().getLevel()>i;)o=o.getParent();const n=t.isSpanHeaderHeight();return!o||n&&o.isPadding()?{column:t,headerRowIndex:s}:{column:o,headerRowIndex:o.getProvidedColumnGroup().getLevel()}}var e4=class extends B{constructor(){super(...arguments),this.beanName="headerNavigation",this.currentHeaderRowWithoutSpan=-1}postConstruct(){const e=this.beans;e.ctrlsSvc.whenReady(this,i=>{this.gridBodyCon=i.gridBodyCtrl});const t=ft(e);this.addManagedElementListeners(t,{mousedown:()=>{this.currentHeaderRowWithoutSpan=-1}})}getHeaderPositionForColumn(e,t){let i;const{colModel:s,colGroupSvc:o,ctrlsSvc:n}=this.beans;if(typeof e=="string"?(i=s.getCol(e),i||(i=o?.getColumnGroup(e)??null)):i=e,!i)return null;const a=n.getHeaderRowContainerCtrl()?.getAllCtrls(),l=$e(a||[]).type==="filter",c=ri(this.beans)-1;let d=-1,u=i;for(;u;)d++,u=u.getParent();let h=d;return t&&l&&h===c-1&&h++,h===-1?null:{headerRowIndex:h,column:i}}navigateVertically(e,t){const{focusSvc:i,visibleCols:s}=this.beans,{focusedHeader:o}=i;if(!o)return!1;const{headerRowIndex:n}=o,r=o.column,a=ri(this.beans),l=this.getHeaderRowType(n),c=s.headerGroupRowCount;let{headerRowIndex:d,column:u,headerRowIndexWithoutSpan:h}=e==="UP"?t4(l,r,n):i4(r,n,c),p=!1;return d<0&&(d=0,u=r,p=!0),d>=a?(d=-1,this.currentHeaderRowWithoutSpan=-1):h!==void 0&&(this.currentHeaderRowWithoutSpan=h),!p&&!u?!1:i.focusHeaderPosition({headerPosition:{headerRowIndex:d,column:u},allowUserOverride:!0,event:t})}navigateHorizontally(e,t=!1,i){const{focusSvc:s,gos:o}=this.beans,n={...s.focusedHeader};let r,a;this.currentHeaderRowWithoutSpan!==-1?n.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=n.headerRowIndex,e==="LEFT"!==o.get("enableRtl")?(a="Before",r=this.findHeader(n,a)):(a="After",r=this.findHeader(n,a));const l=o.getCallback("tabToNextHeader");if(t&&l){const c=s.focusHeaderPositionFromUserFunc({userFunc:l,headerPosition:r,direction:a});if(c){const{headerRowIndex:d}=s.focusedHeader||{};d!=null&&d!=n.headerRowIndex&&(this.currentHeaderRowWithoutSpan=d)}return c}return r||!t?s.focusHeaderPosition({headerPosition:r,direction:a,fromTab:t,allowUserOverride:!0,event:i}):this.focusNextHeaderRow(n,a,i)}focusNextHeaderRow(e,t,i){const s=this.beans,o=e.headerRowIndex;let n=null,r;const a=ri(s),l=this.beans.visibleCols.allCols;if(t==="Before"){if(o<=0)return!1;n=$e(l),r=o-1,this.currentHeaderRowWithoutSpan-=1}else n=l[0],r=o+1,this.currentHeaderRowWithoutSpan<a?this.currentHeaderRowWithoutSpan+=1:this.currentHeaderRowWithoutSpan=-1;let{column:c,headerRowIndex:d}=Lu(this.beans,n,r);return d>=a&&(d=-1),s.focusSvc.focusHeaderPosition({headerPosition:{column:c,headerRowIndex:d},direction:t,fromTab:!0,allowUserOverride:!0,event:i})}scrollToColumn(e,t="After"){if(e.getPinned())return;let i;if(rt(e)){const s=e.getDisplayedLeafColumns();i=t==="Before"?$e(s):s[0]}else i=e;this.gridBodyCon.scrollFeature.ensureColumnVisible(i)}findHeader(e,t){const{colGroupSvc:i,visibleCols:s}=this.beans;let o=e.column;if(o instanceof Ar){const l=o.getDisplayedLeafColumns();o=t==="Before"?l[0]:l[l.length-1]}const n=t==="Before"?s.getColBefore(o):s.getColAfter(o);if(!n)return;const r=s.headerGroupRowCount;if(e.headerRowIndex>=r)return{headerRowIndex:e.headerRowIndex,column:n};const a=i?.getColGroupAtLevel(n,e.headerRowIndex);return a?a.isPadding()&&n.isSpanHeaderHeight()?{headerRowIndex:s.headerGroupRowCount,column:n}:{headerRowIndex:e.headerRowIndex,column:a??n}:{headerRowIndex:n instanceof Fo&&n.isSpanHeaderHeight()?s.headerGroupRowCount:e.headerRowIndex,column:n}}getHeaderRowType(e){const t=this.beans.ctrlsSvc.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)}};function t4(e,t,i){const s=i-1;if(e!=="filter"){const o=t instanceof Fo&&t.isSpanHeaderHeight();let n=t.getParent();for(;n&&(n.getProvidedColumnGroup().getLevel()>s||o&&n.isPadding());)n=n.getParent();if(n)return o?{column:n,headerRowIndex:n.getProvidedColumnGroup().getLevel(),headerRowIndexWithoutSpan:s}:{column:n,headerRowIndex:s,headerRowIndexWithoutSpan:s}}return{column:t,headerRowIndex:s,headerRowIndexWithoutSpan:s}}function i4(e,t,i){const s=t+1,o={column:e,headerRowIndex:s,headerRowIndexWithoutSpan:s};if(e instanceof Ar){if(s>=i)return{column:e.getDisplayedLeafColumns()[0],headerRowIndex:i,headerRowIndexWithoutSpan:s};let r=e.getDisplayedChildren()[0];if(r instanceof Ar&&r.isPadding()){const l=r.getDisplayedLeafColumns()[0];l.isSpanHeaderHeight()&&(r=l)}o.column=r,r instanceof Fo&&r.isSpanHeaderHeight()&&(o.headerRowIndex=i,o.headerRowIndexWithoutSpan=s)}return o}var s4=class extends B{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(h3(this.beans))}attemptToRecoverFocus(){this.needsFocusRestored=!0,this.focusFallbackTimeout!=null&&clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=window.setTimeout(this.setFocusRecovered.bind(this),100)}setFocusRecovered(){this.needsFocusRestored=!1,this.focusFallbackTimeout!=null&&(clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=null)}shouldTakeFocus(){return this.gos.get("suppressFocusAfterRefresh")?(this.setFocusRecovered(),!1):this.needsFocusRestored?(this.setFocusRecovered(),!0):this.doesRowOrCellHaveBrowserFocus()}onColumnEverythingChanged(){if(!this.focusedCell)return;const e=this.focusedCell.column,t=this.colModel.getCol(e.getId());e!==t&&this.clearFocusedCell()}getFocusCellToUseAfterRefresh(){const{gos:e,focusedCell:t}=this;return e.get("suppressFocusAfterRefresh")||e.get("suppressCellFocus")||!t||!this.doesRowOrCellHaveBrowserFocus()?null:t}getFocusHeaderToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedHeader||!this.isDomDataPresentInHierarchy(Je(this.beans),xC)?null:this.focusedHeader}doesRowOrCellHaveBrowserFocus(){const e=Je(this.beans);return this.isDomDataPresentInHierarchy(e,kl,!0)?!0:this.isDomDataPresentInHierarchy(e,Il,!0)}isDomDataPresentInHierarchy(e,t,i){let s=e;for(;s;){const o=Vv(this.gos,s,t);if(o)return o.destroyed&&i?(this.attemptToRecoverFocus(),!1):!0;s=s.parentNode}return!1}getFocusedCell(){return this.focusedCell}getFocusEventParams(e){const{rowIndex:t,rowPinned:i,column:s}=e,o={rowIndex:t,rowPinned:i,column:s,isFullWidthCell:!1},n=this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:i});return n&&(o.isFullWidthCell=n.isFullWidth()),o}clearFocusedCell(){if(this.focusedCell==null)return;const e=this.getFocusEventParams(this.focusedCell);this.focusedCell=null,this.eventSvc.dispatchEvent({type:"cellFocusCleared",...e})}setFocusedCell(e){this.setFocusRecovered();const{column:t,rowIndex:i,rowPinned:s,forceBrowserFocus:o=!1,preventScrollOnBrowserFocus:n=!1,sourceEvent:r}=e,a=this.colModel.getCol(t);if(!a){this.focusedCell=null;return}this.focusedCell={rowIndex:i,rowPinned:Yi(s),column:a};const l=this.getFocusEventParams(this.focusedCell);this.eventSvc.dispatchEvent({type:"cellFocused",...l,...this.previousCellFocusParams&&{previousParams:this.previousCellFocusParams},forceBrowserFocus:o,preventScrollOnBrowserFocus:n,sourceEvent:r}),this.previousCellFocusParams=l}isCellFocused(e){return this.focusedCell==null?!1:Bh(e,this.focusedCell)}isHeaderWrapperFocused(e){if(this.focusedHeader==null)return!1;const{column:t,rowCtrl:{rowIndex:i,pinned:s}}=e,{column:o,headerRowIndex:n}=this.focusedHeader;return t===o&&i===n&&s==o.getPinned()}focusHeaderPosition(e){if(this.setFocusRecovered(),mi(this.beans))return!1;const{direction:t,fromTab:i,allowUserOverride:s,event:o,fromCell:n,rowWithoutSpanValue:r,scroll:a=!0}=e;let{headerPosition:l}=e;if(n&&this.filterManager?.isAdvFilterHeaderActive())return this.focusAdvancedFilter(l);if(s){const c=this.focusedHeader,d=ri(this.beans);if(i){const u=this.gos.getCallback("tabToNextHeader");u&&(l=this.getHeaderPositionFromUserFunc({userFunc:u,direction:t,currentPosition:c,headerPosition:l,headerRowCount:d}))}else{const u=this.gos.getCallback("navigateToNextHeader");if(u&&o){const h={key:o.key,previousHeaderPosition:c,nextHeaderPosition:l,headerRowCount:d,event:o},p=u(h);l=p===null?c:p}}}return l?this.focusProvidedHeaderPosition({headerPosition:l,direction:t,event:o,fromCell:n,rowWithoutSpanValue:r,scroll:a}):!1}focusHeaderPositionFromUserFunc(e){if(mi(this.beans))return!1;const{userFunc:t,headerPosition:i,direction:s,event:o}=e,n=this.focusedHeader,r=ri(this.beans),a=this.getHeaderPositionFromUserFunc({userFunc:t,direction:s,currentPosition:n,headerPosition:i,headerRowCount:r});return!!a&&this.focusProvidedHeaderPosition({headerPosition:a,direction:s,event:o})}getHeaderPositionFromUserFunc(e){const{userFunc:t,direction:i,currentPosition:s,headerPosition:o,headerRowCount:n}=e,a=t({backwards:i==="Before",previousHeaderPosition:s,nextHeaderPosition:o,headerRowCount:n});return a===!0?s:a===!1?null:a}focusProvidedHeaderPosition(e){const{headerPosition:t,direction:i,fromCell:s,rowWithoutSpanValue:o,event:n,scroll:r=!0}=e,{column:a,headerRowIndex:l}=t,{filterManager:c,ctrlsSvc:d,headerNavigation:u}=this.beans;if(this.focusedHeader&&X3(e.headerPosition,this.focusedHeader))return!1;if(l===-1)return c?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(t):this.focusGridView({column:a,event:n});r&&u?.scrollToColumn(a,i);const p=d.getHeaderRowContainerCtrl(a.getPinned())?.focusHeader(t.headerRowIndex,a,n)||!1;return u&&p&&(o!=null||s)&&(u.currentHeaderRowWithoutSpan=o??-1),p}focusFirstHeader(){if(this.overlays?.exclusive&&this.focusOverlay())return!0;const e=this.visibleCols.allCols[0];if(!e)return!1;const t=Lu(this.beans,e,0);return this.focusHeaderPosition({headerPosition:t,rowWithoutSpanValue:0})}focusLastHeader(e){if(this.overlays?.exclusive&&this.focusOverlay(!0))return!0;const t=ri(this.beans)-1,i=$e(this.visibleCols.allCols);return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:i},rowWithoutSpanValue:-1,event:e})}focusPreviousFromFirstCell(e){return this.filterManager?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(e)}isAnyCellFocused(){return!!this.focusedCell}isRowFocused(e,t){return this.focusedCell==null?!1:this.focusedCell.rowIndex===e&&this.focusedCell.rowPinned===Yi(t)}focusOverlay(e){const t=this.overlays?.isVisible()&&this.overlays.eWrapper?.getGui();return!!t&&go(t,e)}getDefaultTabToNextGridContainerTarget(e){const{backwards:t,focusableContainers:i}=e,s=t?-1:1;let o;const n=()=>(o===void 0&&(o=this.getGridBodyTabTarget(t)),o);for(let r=e.nextIndex;r>=0&&r<i.length;r+=s){const a=U3(i[r],n);if(a)return a}return null}getGridBodyTabTarget(e){if(e)return this.getGridViewTabTarget({column:$e(this.visibleCols.allCols),backwards:!0});const t=this.visibleCols.allCols[0];return this.gos.get("headerHeight")===0||mi(this.beans)?this.getGridViewTabTarget({column:t}):t?Lu(this.beans,t,0):null}getGridViewTabTarget(e){const{backwards:t=!1}=e,i=e.column??this.focusedHeader?.column;if(!i||this.overlays?.exclusive)return null;if(Lr(this.beans))return t&&!mi(this.beans)?{headerRowIndex:ri(this.beans)-1,column:i}:null;const s=t?Ug(this.beans):_g(this.beans);if(s?.rowIndex==null){if(this.overlays?.isVisible())return null;if(t&&!mi(this.beans)){const n=$e(this.visibleCols.allCols);if(n)return{headerRowIndex:ri(this.beans)-1,column:n}}return null}const o=Bi(this.beans,s);return!o||i.isSuppressNavigable(o)||t&&this.rowRenderer.getRowByPosition(s)?.isFullWidth()?null:{rowIndex:s.rowIndex,rowPinned:s.rowPinned,column:i}}focusGridView(e){const{backwards:t=!1,canFocusOverlay:i=!0,event:s}=e;if(this.overlays?.exclusive)return i&&this.focusOverlay(t);if(Lr(this.beans))return t&&!mi(this.beans)?this.focusLastHeader():i&&this.focusOverlay(t)?!0:t?!1:xn(this.beans,t);const o=t?Ug(this.beans):_g(this.beans);if(o){const n=e.column??this.focusedHeader?.column,{rowIndex:r,rowPinned:a}=o,l=Bi(this.beans,o);if(!n||!l||r==null)return!1;if(n.isSuppressNavigable(l)){const c=this.gos.get("enableRtl");let d;return!s||s.key===A.TAB?d=c?A.LEFT:A.RIGHT:d=s.key,this.beans.navigation?.navigateToNextCell(null,d,{rowIndex:r,column:n,rowPinned:a||null},!0),!0}return this.navigation?.ensureCellVisible({rowIndex:r,column:n,rowPinned:a}),t&&this.rowRenderer.getRowByPosition(o)?.isFullWidth()&&this.navigation?.tryToFocusFullWidthRow(o,t)||(this.setFocusedCell({rowIndex:r,column:n,rowPinned:Yi(a),forceBrowserFocus:!0}),At(n)||this.beans.rangeSvc?.setRangeToCell({rowIndex:r,rowPinned:a,column:n})),!0}return!!(i&&this.focusOverlay(t)||t&&this.focusLastHeader())}focusAdvancedFilter(e){return this.advFilterFocusColumn=e?.column,this.beans.advancedFilter?.getCtrl().focusHeaderComp()??!1}focusNextFromAdvancedFilter(e,t){const i=(t?void 0:this.advFilterFocusColumn)??this.visibleCols.allCols?.[0];return e?this.focusHeaderPosition({headerPosition:{column:i,headerRowIndex:ri(this.beans)-1}}):this.focusGridView({column:i})}clearAdvancedFilterColumn(){this.advFilterFocusColumn=void 0}},o4=class extends B{constructor(){super(...arguments),this.beanName="scrollVisibleSvc"}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colAnimation=e.colAnimation}postConstruct(){const{gos:e}=this;this.horizontalScrollShowing=e.get("alwaysShowHorizontalScroll")===!0,this.verticalScrollShowing=e.get("alwaysShowVerticalScroll")===!0,this.getScrollbarWidth();const t=this.updateScrollVisible.bind(this);this.addManagedEventListeners({displayedColumnsChanged:t,displayedColumnsWidthChanged:t,newColumnsLoaded:t})}updateScrollVisible(){const{colAnimation:e}=this;e?.isActive()?e.executeLaterVMTurn(()=>{e.executeLaterVMTurn(()=>this.updateScrollVisibleImpl())}):this.updateScrollVisibleImpl()}updateScrollVisibleImpl(){const e=this.ctrlsSvc.get("center");if(!e||this.colAnimation?.isActive())return;const t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.verticalScrollShowing};this.setScrollsVisible(t),this.updateScrollGap()}updateScrollGap(){const e=this.ctrlsSvc.get("center"),t=e.hasHorizontalScrollGap(),i=e.hasVerticalScrollGap();(this.horizontalScrollGap!==t||this.verticalScrollGap!==i)&&(this.horizontalScrollGap=t,this.verticalScrollGap=i,this.eventSvc.dispatchEvent({type:"scrollGapChanged"}))}setScrollsVisible(e){(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing)&&(this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing,this.eventSvc.dispatchEvent({type:"scrollVisibilityChanged"}))}getScrollbarWidth(){if(this.scrollbarWidth==null){const e=this.gos.get("scrollbarWidth"),i=typeof e=="number"&&e>=0?e:Mh();i!=null&&(this.scrollbarWidth=i,this.eventSvc.dispatchEvent({type:"scrollbarWidthChanged"}))}return this.scrollbarWidth}},n4=class extends B{constructor(){super(...arguments),this.beanName="gridDestroySvc",this.destroyCalled=!1}destroy(){if(this.destroyCalled)return;const{stateSvc:e,ctrlsSvc:t,context:i}=this.beans;this.eventSvc.dispatchEvent({type:"gridPreDestroyed",state:e?.getState()??{}}),this.destroyCalled=!0,t.get("gridCtrl")?.destroyGridUi(),i.destroy(),super.destroy()}},r4=["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"],rl=new Set(["gridPreDestroyed","fillStart","pasteStart"]),Jh=r4.reduce((e,t)=>(e[t]=Y2(t),e),{}),gn={agSetColumnFilter:"SetFilter",agSetColumnFloatingFilter:"SetFilter",agMultiColumnFilter:"MultiFilter",agMultiColumnFloatingFilter:"MultiFilter",agGroupColumnFilter:"GroupFilter",agGroupColumnFloatingFilter:"GroupFilter",agGroupCellRenderer:"GroupCellRenderer",agGroupRowRenderer:"GroupCellRenderer",agRichSelect:"RichSelect",agRichSelectCellEditor:"RichSelect",agDetailCellRenderer:"SharedMasterDetail",agSparklineCellRenderer:"Sparklines",agDragAndDropImage:"SharedDragAndDrop",agColumnHeader:"ColumnHeaderComp",agColumnGroupHeader:"ColumnGroupHeaderComp",agSortIndicator:"Sort",agAnimateShowChangeCellRenderer:"HighlightChanges",agAnimateSlideCellRenderer:"HighlightChanges",agLoadingCellRenderer:"LoadingCellRenderer",agSkeletonCellRenderer:"SkeletonCellRenderer",agCheckboxCellRenderer:"CheckboxCellRenderer",agLoadingOverlay:"Overlay",agExportingOverlay:"Overlay",agNoRowsOverlay:"Overlay",agNoMatchingRowsOverlay:"Overlay",agTooltipComponent:"Tooltip",agReadOnlyFloatingFilter:"CustomFilter",agTextColumnFilter:"TextFilter",agNumberColumnFilter:"NumberFilter",agBigIntColumnFilter:"BigIntFilter",agDateColumnFilter:"DateFilter",agDateInput:"DateFilter",agTextColumnFloatingFilter:"TextFilter",agNumberColumnFloatingFilter:"NumberFilter",agBigIntColumnFloatingFilter:"BigIntFilter",agDateColumnFloatingFilter:"DateFilter",agFormulaCellEditor:"Formula",agCellEditor:"TextEditor",agSelectCellEditor:"SelectEditor",agTextCellEditor:"TextEditor",agNumberCellEditor:"NumberEditor",agDateCellEditor:"DateEditor",agDateStringCellEditor:"DateEditor",agCheckboxCellEditor:"CheckboxEditor",agLargeTextCellEditor:"LargeTextEditor",agMenuItem:"MenuItem",agColumnsToolPanel:"ColumnsToolPanel",agFiltersToolPanel:"FiltersToolPanel",agNewFiltersToolPanel:"NewFiltersToolPanel",agAggregationComponent:"StatusBar",agSelectedRowCountComponent:"StatusBar",agTotalRowCountComponent:"StatusBar",agFilteredRowCountComponent:"StatusBar",agTotalAndFilteredRowCountComponent:"StatusBar",agFindCellRenderer:"Find"};function xf(e){return`"${e}"`}var a4=()=>({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."}}),l4={allowFormula:"Formula",aggFunc:"SharedAggregation",autoHeight:"RowAutoHeight",cellClass:"CellStyle",cellClassRules:"CellStyle",cellEditor:({cellEditor:e,editable:t,groupRowEditable:i})=>!!t||!!i?typeof e=="string"?gn[e]??"CustomEditor":"CustomEditor":null,cellRenderer:({cellRenderer:e})=>typeof e!="string"?null:gn[e],cellStyle:"CellStyle",columnChooserParams:"ColumnMenu",contextMenuItems:"ContextMenu",dndSource:"DragAndDrop",dndSourceOnRowDrag:"DragAndDrop",editable:({editable:e,cellEditor:t})=>e&&!t?"TextEditor":null,groupRowEditable:({groupRowEditable:e,cellEditor:t})=>e?t?"RowGroupingEdit":["RowGroupingEdit","TextEditor"]:null,groupRowValueSetter:({groupRowValueSetter:e})=>e?"RowGroupingEdit":null,enableCellChangeFlash:"HighlightChanges",enablePivot:"SharedPivot",enableRowGroup:"SharedRowGrouping",enableValue:"SharedAggregation",filter:({filter:e})=>e&&typeof e!="string"&&typeof e!="boolean"?"CustomFilter":typeof e=="string"?gn[e]??"ColumnFilter":"ColumnFilter",floatingFilter:"ColumnFilter",getQuickFilterText:"QuickFilter",headerTooltip:"Tooltip",headerTooltipValueGetter:"Tooltip",mainMenuItems:"ColumnMenu",menuTabs:e=>{const t=["columnsMenuTab","generalMenuTab"];return e.menuTabs?.some(i=>t.includes(i))?"ColumnMenu":null},pivot:"SharedPivot",pivotIndex:"SharedPivot",rowDrag:"RowDrag",rowGroup:"SharedRowGrouping",rowGroupIndex:"SharedRowGrouping",tooltipField:"Tooltip",tooltipValueGetter:"Tooltip",tooltipComponentSelector:"Tooltip",spanRows:"CellSpan",groupHierarchy:"SharedRowGrouping"},c4=()=>({autoHeight:{supportedRowModels:["clientSide","serverSide"],validate:(t,{paginationAutoPageSize:i})=>i?"colDef.autoHeight is not supported with paginationAutoPageSize.":null},allowFormula:{supportedRowModels:["clientSide"]},cellRendererParams:{validate:t=>(t.rowGroup!=null||t.rowGroupIndex!=null||t.cellRenderer==="agGroupCellRenderer")&&"checkbox"in t.cellRendererParams?'Since v33.0, `cellRendererParams.checkbox` has been deprecated. Use `rowSelection.checkboxLocation = "autoGroupColumn"` instead.':null},flex:{validate:(t,i)=>i.autoSizeStrategy?"colDef.flex is not supported with gridOptions.autoSizeStrategy":null},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(t,{rowSelection:i})=>i==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:i})=>i==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:i})=>i==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerValueGetter:{validate:t=>{const i=t.headerValueGetter;return typeof i=="function"||typeof i=="string"?null:"headerValueGetter must be a function or a valid string expression"}},icons:{validate:({icons:t})=>{if(t){if(t.smallDown)return Oi(262);if(t.smallLeft)return Oi(263);if(t.smallRight)return Oi(264)}return null}},sort:{validate:t=>un(t.sort)||ys(t.sort)?null:`sort must be of type (SortDirection | SortDef), currently it is ${typeof t.sort=="object"?JSON.stringify(t.sort):Xa(t.sort)}`},initialSort:{validate:t=>un(t.initialSort)||ys(t.initialSort)?null:`initialSort must be of non-null type (SortDirection | SortDef), currently it is ${typeof t.initialSort=="object"?JSON.stringify(t.initialSort):Xa(t.initialSort)}`},sortingOrder:{validate:t=>{const i=t.sortingOrder;if(Array.isArray(i)&&i.length>0){const s=i.filter(o=>!(un(o)||ys(o)));if(s.length>0)return`sortingOrder must be an array of type non-null (SortDirection | SortDef)[], incorrect items are: [${s.map(o=>typeof o=="string"||o==null?Xa(o):JSON.stringify(o)).join(", ")}]`}else if(!Array.isArray(i)||!i.length)return`sortingOrder must be an array with at least one element, currently it is [${i}]`;return null}},type:{validate:t=>{const i=t.type;return i instanceof Array?i.some(o=>typeof o!="string")?"if colDef.type is supplied an array it should be of type 'string[]'":null:typeof i=="string"?null:"colDef.type should be of type 'string' | 'string[]'"}},rowSpan:{validate:(t,{suppressRowTransform:i})=>i?null:"colDef.rowSpan requires suppressRowTransform to be enabled."},spanRows:{dependencies:{editable:{required:[!1,void 0]},groupRowEditable:{required:[!1,void 0]},rowDrag:{required:[!1,void 0]},colSpan:{required:[void 0]},rowSpan:{required:[void 0]}},validate:(t,{rowSelection:i,cellSelection:s,suppressRowTransform:o,enableCellSpan:n,rowDragEntireRow:r,enableCellTextSelection:a})=>typeof i=="object"&&i?.mode==="singleRow"&&i?.enableClickSelection?"colDef.spanRows is not supported with rowSelection.clickSelection":s?"colDef.spanRows is not supported with cellSelection.":o?"colDef.spanRows is not supported with suppressRowTransform.":n?r?"colDef.spanRows is not supported with rowDragEntireRow.":a?"colDef.spanRows is not supported with enableCellTextSelection.":null:"colDef.spanRows requires enableCellSpan to be enabled."},groupHierarchy:{validate(t,{groupHierarchyConfig:i={}},s){const o=new Set(["year","quarter","month","formattedMonth","day","hour","minute","second"]),n=[];for(const r of t.groupHierarchy??[]){if(typeof r=="object"){s.validation?.validateColDef(r);continue}!o.has(r)&&!(r in i)&&n.push(xf(r))}if(n.length>0){const r=`The following parts of colDef.groupHierarchy are not recognised: ${n.join(", ")}.`,a=`Choose one of ${[...o].map(xf).join(", ")}, or define your own parts in gridOptions.groupHierarchyConfig.`;return`${r}
24
- ${a}`}return null}}}),d4={headerName:void 0,columnGroupShow:void 0,headerStyle:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,headerTooltipValueGetter:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,groupRowEditable:void 0,groupRowValueSetter:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,spanRows:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,tooltipComponentSelector:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,context:void 0,dateComponent:void 0,dateComponentParams:void 0,getFindText:void 0,rowGroupingHierarchy:void 0,groupHierarchy:void 0,allowFormula:void 0},u4=()=>Object.keys(d4),h4=()=>({objectName:"colDef",allProperties:u4(),docsUrl:"column-properties/",deprecations:a4(),validations:c4()}),p4=["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"],g4=["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"],f4=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector","suppressOverlays"],ww=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipSwitchShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDuration","cellFadeDuration","tabIndex","pivotMaxGeneratedColumns","rowDragInsertDelay"],m4=["theme","rowSelection"],v4=["cellSelection","sideBar","rowNumbers","suppressGroupChangesColumnVisibility","groupAggFiltering","suppressStickyTotalRow","groupHideParentOfSingleChild","enableRowPinning"],bw=["loadThemeGoogleFonts","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressColumnMoveAnimation","suppressMoveWhenColumnDragging","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","allowContextMenuWithControlKey","suppressContextMenu","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressFocusAfterRefresh","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","enableCellSpan","suppressClickEdit","rowDragEntireRow","rowDragManaged","refreshAfterGroupEdit","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupHideColumnsUntilExpanded","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","reactiveCustomComponents","applyQuickFilterBeforePivotOrAgg","suppressServerSideFullWidthLoadingRow","suppressAdvancedFilterEval","loading","maintainColumnOrder","enableStrictPivotColumnOrder","suppressSetFilterByDefault","enableFilterHandlers","suppressStartEditOnTab","hidePaddedHeaderRows","ssrmExpandAllAffectsAllRows","animateColumnResizing"],C4=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","overlayComponent","loadingOverlayComponent","noRowsOverlayComponent","overlayComponentSelector","activeOverlay","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getFullRowEditValidationErrors","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","sendToClipboard","focusGridInnerElement","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","tabToNextGridContainer","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","chartMenuItems","groupTotalRow","alwaysPassFilter","isRowPinnable","isRowPinned","isRowValidDropPosition"],w4=()=>[...f4,...g4,...p4,...ww,...C4,...bw,...v4,...m4],b4=()=>({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 Di(e,t,i){return typeof t=="number"||t==null?t==null||t>=i?null:`${e}: value should be greater than or equal to ${i}`:`${e}: value should be a number`}var x4={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"},y4=()=>{const e={autoSizePadding:{validate({autoSizePadding:i}){return Di("autoSizePadding",i,0)}},cacheBlockSize:{supportedRowModels:["serverSide","infinite"],validate({cacheBlockSize:i}){return Di("cacheBlockSize",i,1)}},cacheOverflowSize:{validate({cacheOverflowSize:i}){return Di("cacheOverflowSize",i,1)}},datasource:{supportedRowModels:["infinite"]},domLayout:{validate:i=>{const s=i.domLayout,o=["autoHeight","normal","print"];return s&&!o.includes(s)?`domLayout must be one of [${o.join()}], currently it's ${s}`:null}},enableFillHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableCellSpan:{supportedRowModels:["clientSide","serverSide"]},enableRangeSelection:{dependencies:{rowDragEntireRow:{required:[!1,void 0]}}},enableRowPinning:{supportedRowModels:["clientSide"],validate({enableRowPinning:i,pinnedTopRowData:s,pinnedBottomRowData:o}){return i&&(s||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:i,isRowPinnable:s,pinnedTopRowData:o,pinnedBottomRowData:n}){return s&&(o||n)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinnable`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!i&&s?"`isRowPinnable` requires `enableRowPinning` to be set.":null}},isRowPinned:{supportedRowModels:["clientSide"],validate({enableRowPinning:i,isRowPinned:s,pinnedTopRowData:o,pinnedBottomRowData:n}){return s&&(o||n)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinned`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!i&&s?"`isRowPinned` requires `enableRowPinning` to be set.":null}},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupHideColumnsUntilExpanded:{supportedRowModels:["clientSide"],validate({groupHideColumnsUntilExpanded:i,groupHideOpenParents:s,groupDisplayType:o}){return i&&!s&&o!=="multipleColumns"?"`groupHideColumnsUntilExpanded = true` requires either `groupDisplayType = 'multipleColumns'` or `groupHideOpenParents = true`":null}},groupHideOpenParents:{supportedRowModels:["clientSide","serverSide"],dependencies:{groupTotalRow:{required:[void 0,"bottom"]},treeData:{required:[void 0,!1],reason:"Tree Data has values at the group level so it doesn't make sense to hide them."}}},groupHideParentOfSingleChild:{dependencies:{groupHideOpenParents:{required:[void 0,!1]}}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveSingleChildren:{required:[void 0,!1]}}},groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveLowestSingleChildren:{required:[void 0,!1]}}},groupSelectsChildren:{dependencies:{rowSelection:{required:["multiple"]}}},groupHierarchyConfig:{validate({groupHierarchyConfig:i={}},s,o){for(const n of Object.keys(i))o.validation?.validateColDef(i[n]);return null}},icons:{validate:({icons:i})=>{if(i){if(i.smallDown)return Oi(262);if(i.smallLeft)return Oi(263);if(i.smallRight)return Oi(264)}return null}},infiniteInitialRowCount:{validate({infiniteInitialRowCount:i}){return Di("infiniteInitialRowCount",i,1)}},initialGroupOrderComparator:{supportedRowModels:["clientSide"]},ssrmExpandAllAffectsAllRows:{validate:i=>{if(typeof i.ssrmExpandAllAffectsAllRows=="boolean"){if(i.rowModelType!=="serverSide")return"'ssrmExpandAllAffectsAllRows' is only supported with the Server Side Row Model.";if(i.ssrmExpandAllAffectsAllRows&&typeof i.getRowId!="function")return"'getRowId' callback must be provided for Server Side Row Model grouping to work correctly."}return null}},keepDetailRowsCount:{validate({keepDetailRowsCount:i}){return Di("keepDetailRowsCount",i,1)}},paginationPageSize:{validate({paginationPageSize:i}){return Di("paginationPageSize",i,1)}},paginationPageSizeSelector:{validate:i=>{const s=i.paginationPageSizeSelector;return typeof s=="boolean"||s==null||s.length?null:`'paginationPageSizeSelector' cannot be an empty array.
25
- 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:i}){return Di("rowBuffer",i,0)}},rowClass:{validate:i=>typeof i.rowClass=="function"?"rowClass should not be a function, please use getRowClass instead":null},rowData:{supportedRowModels:["clientSide"]},rowDragManaged:{supportedRowModels:["clientSide"],dependencies:{pagination:{required:[!1,void 0]}}},rowSelection:{validate({rowSelection:i}){return i&&typeof i=="string"?'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.':i&&typeof i!="object"?"Expected `RowSelectionOptions` object for the `rowSelection` property.":i&&i.mode!=="multiRow"&&i.mode!=="singleRow"?`Selection mode "${i.mode}" is invalid. Use one of 'singleRow' or 'multiRow'.`:null}},rowStyle:{validate:i=>{const s=i.rowStyle;return s&&typeof s=="function"?"rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead":null}},serverSideDatasource:{supportedRowModels:["serverSide"]},serverSideInitialRowCount:{supportedRowModels:["serverSide"],validate({serverSideInitialRowCount:i}){return Di("serverSideInitialRowCount",i,1)}},serverSideOnlyRefreshFilteredGroups:{supportedRowModels:["serverSide"]},serverSideSortAllLevels:{supportedRowModels:["serverSide"]},sortingOrder:{validate:i=>{const s=i.sortingOrder;if(Array.isArray(s)&&s.length>0){const o=s.filter(n=>!li(n));if(o.length>0)return`sortingOrder must be an array of type (SortDirection | SortDef)[], incorrect items are: ${o.map(n=>typeof n=="string"||n==null?Xa(n):JSON.stringify(n))}]`}else if(!Array.isArray(s)||!s.length)return`sortingOrder must be an array with at least one element, currently it's ${s}`;return null}},tooltipHideDelay:{validate:i=>i.tooltipHideDelay&&i.tooltipHideDelay<0?"tooltipHideDelay should not be lower than 0":null},tooltipShowDelay:{validate:i=>i.tooltipShowDelay&&i.tooltipShowDelay<0?"tooltipShowDelay should not be lower than 0":null},tooltipSwitchShowDelay:{validate:i=>i.tooltipSwitchShowDelay&&i.tooltipSwitchShowDelay<0?"tooltipSwitchShowDelay should not be lower than 0":null},treeData:{supportedRowModels:["clientSide","serverSide"],validate:i=>{const s=i.rowModelType??"clientSide";switch(s){case"clientSide":{const{treeDataChildrenField:o,treeDataParentIdField:n,getDataPath:r,getRowId:a}=i;if(!o&&!n&&!r)return"treeData requires either 'treeDataChildrenField' or 'treeDataParentIdField' or 'getDataPath' in the clientSide row model.";if(o){if(r)return"Cannot use both 'treeDataChildrenField' and 'getDataPath' at the same time.";if(n)return"Cannot use both 'treeDataChildrenField' and 'treeDataParentIdField' at the same time."}if(n){if(!a)return"getRowId callback not provided, tree data with parent id cannot be built.";if(r)return"Cannot use both 'treeDataParentIdField' and 'getDataPath' at the same time."}return null}case"serverSide":{const o=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${s} row model.`;return i.isServerSideGroup&&i.getServerSideGroupKey?null:o}}return null}},viewportDatasource:{supportedRowModels:["viewport"]},viewportRowModelBufferSize:{validate({viewportRowModelBufferSize:i}){return Di("viewportRowModelBufferSize",i,0)}},viewportRowModelPageSize:{validate({viewportRowModelPageSize:i}){return Di("viewportRowModelPageSize",i,1)}},rowDragEntireRow:{dependencies:{cellSelection:{required:[void 0]}}},autoGroupColumnDef:{validate({autoGroupColumnDef:i,showOpenedGroup:s}){return i?.field&&s?"autoGroupColumnDef.field and showOpenedGroup are not supported when used together.":i?.valueGetter&&s?"autoGroupColumnDef.valueGetter and showOpenedGroup are not supported when used together.":null}},renderingMode:{validate:i=>{const s=i.renderingMode,o=["default","legacy"];return s&&!o.includes(s)?`renderingMode must be one of [${o.join()}], currently it's ${s}`:null}},autoSizeStrategy:{validate:({autoSizeStrategy:i})=>{if(!i)return null;const s=["fitCellContents","fitGridWidth","fitProvidedWidth"],o=i.type;return o!=="fitCellContents"&&o!=="fitGridWidth"&&o!=="fitProvidedWidth"?`Invalid Auto-size strategy. \`autoSizeStrategy\` must be one of ${s.map(n=>'"'+n+'"').join(", ")}, currently it's ${o}`:o==="fitProvidedWidth"&&typeof i.width!="number"?`When using the 'fitProvidedWidth' auto-size strategy, must provide a numeric \`width\`. You provided ${i.width}`:null}}},t={};for(const i of bw)t[i]={expectedType:"boolean"};for(const i of ww)t[i]={expectedType:"number"};return Mt(t,e),t},S4=()=>({objectName:"gridOptions",allProperties:[...w4(),...Object.values(Jh)],propertyExceptions:["api"],docsUrl:"grid-options/",deprecations:b4(),validations:y4()}),R4=0,F4=0,yf="__ag_grid_instance",E4=class extends B{constructor(){super(...arguments),this.beanName="gos",this.domDataKey="__AG_"+Math.random().toString(),this.instanceId=F4++,this.gridReadyFired=!1,this.queueEvents=[],this.propEventSvc=new lo,this.globalEventHandlerFactory=e=>(t,i)=>{if(!this.isAlive())return;const s=rl.has(t);if(s&&!e||!s&&e||!D4(t))return;const o=(n,r)=>{const a=Jh[n],l=this.gridOptions[a];typeof l=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>l(r))};if(this.gridReadyFired)o(t,i);else if(t==="gridReady"){o(t,i),this.gridReadyFired=!0;for(const n of this.queueEvents)o(n.eventName,n.event);this.queueEvents=[]}else this.queueEvents.push({eventName:t,event:i})}}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]??Fv[e]}getCallback(e){return this.mergeGridCommonParams(this.gridOptions[e])}exists(e){return te(this.gridOptions[e])}mergeGridCommonParams(e){return e&&(i=>e(this.addCommon(i)))}updateGridOptions({options:e,force:t,source:i="api"}){const s={id:R4++,properties:[]},o=[],{gridOptions:n,validation:r}=this;for(const a of Object.keys(e)){const l=Rh.applyGlobalGridOption(a,e[a]);r?.warnOnInitialPropertyUpdate(i,a);const c=t||typeof l=="object"&&i==="api",d=n[a];if(c||d!==l){n[a]=l;const u={type:a,currentValue:l,previousValue:d,changeSet:s,source:i};o.push(u)}}this.validateGridOptions(this.gridOptions),s.properties=o.map(a=>a.type);for(const a of o)ho(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 i of Object.keys(e)){const s=e[i];if(s==null||s===!1)continue;let o=t[i];typeof o=="function"&&(o=o(e,this.gridOptions,this.beans)),o&&this.assertModuleRegistered(o,i)}}validateGridOptions(e){this.validateOptions(e,x4),this.validation?.processGridOptions(e)}validateColDef(e,t,i){(i||!this.beans.dataTypeSvc?.isColPendingInference(t))&&(this.validateOptions(e,l4),this.validation?.validateColDef(e))}assertModuleRegistered(e,t){const i=Array.isArray(e)?e.some(s=>this.isModuleRegistered(s)):this.isModuleRegistered(e);return i||We(200,{...this.getModuleErrorParams(),moduleName:e,reasonOrId:t}),i}getModuleErrorParams(){return{gridId:this.gridId,gridScoped:Fh(),rowModelType:this.get("rowModelType"),isUmd:Iv()}}isModuleRegistered(e){return mu(e,this.gridId,this.get("rowModelType"))}setInstanceDomData(e){e[yf]=this.instanceId}isElementInThisInstance(e){let t=e;for(;t;){const i=t[yf];if(te(i))return i===this.instanceId;t=t.parentElement}return!1}};function D4(e){return!!Jh[e]}var P4=class extends B{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:i,gos:s}=this.beans;if(!(dn(s)?e.altKey:!0))i?.handleColumnSelection(this.column,e);else if(this.column.isSortable()){const n=this.column.isMoving(),a=Date.now()-this.lastMovingChanged<50;n||a||t?.progressSortFromEvent(this.column,e)}}};function T4(e,t){const i={"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:i},{tag:"span",ref:"eFilterButton",cls:"ag-header-icon ag-header-cell-filter-button",attrs:i},{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:i},t?{tag:"ag-sort-indicator",ref:"eSortIndicator"}:null]}]}}var k4=class extends ot{constructor(){super(...arguments),this.eFilter=de,this.eFilterButton=de,this.eSortIndicator=de,this.eMenu=de,this.eLabel=de,this.eText=de,this.eColRef=de,this.eSortOrder=de,this.eSortAsc=de,this.eSortDesc=de,this.eSortMixed=de,this.eSortNone=de,this.eSortAbsoluteAsc=de,this.eSortAbsoluteDesc=de,this.isLoadingInnerComponent=!1}refresh(e){const t=this.params;if(this.params=e,this.workOutTemplate(e,!!this.beans?.sortSvc)!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||e.enableSorting!=this.currentSort||e.column.formulaRef!=this.currentRef||this.currentSuppressMenuHide!=null&&this.shouldSuppressMenuHide()!=this.currentSuppressMenuHide||t.enableFilterButton!=e.enableFilterButton||t.enableFilterIcon!=e.enableFilterIcon)return!1;if(this.innerHeaderComponent){const i={...e};Mt(i,e.innerHeaderComponentParams),this.innerHeaderComponent.refresh?.(i)}else this.setDisplayName(e);return!0}workOutTemplate(e,t){const{formula:i}=this.beans,s=e.template;return s?s?.trim?s.trim():s:T4(!!i?.active,t)}init(e){this.params=e;const{sortSvc:t,touchSvc:i,rowNumbersSvc:s,userCompFactory:o}=this.beans,n=t?.getSortIndicatorSelector();this.currentTemplate=this.workOutTemplate(e,!!n),this.setTemplate(this.currentTemplate,n?[n]:void 0),this.eLabel&&(this.mouseListener??(this.mouseListener=this.createManagedBean(new P4(e.column,this.eLabel)))),i?.setupForHeader(this),this.setMenu(),this.setupSort(),this.setupColumnRefIndicator(),s?.setupForHeader(this),this.setupFilterIcon(),this.setupFilterButton(),this.workOutInnerHeaderComponent(o,e),this.setDisplayName(e)}workOutInnerHeaderComponent(e,t){const i=qR(e,t,t);i&&(this.isLoadingInnerComponent=!0,i.newAgStackInstance().then(s=>{this.isLoadingInnerComponent=!1,s&&(this.isAlive()?(this.innerHeaderComponent=s,this.eText&&this.eText.appendChild(s.getGui())):this.destroyBean(s))}))}setDisplayName(e){const{displayName:t}=e,i=this.currentDisplayName;this.currentDisplayName=t,!(!this.eText||i===t||this.innerHeaderComponent||this.isLoadingInnerComponent)&&(this.eText.textContent=Tn(t))}addInIcon(e,t,i){const s=Wt(e,this.beans,i);s&&t.appendChild(s)}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){Ji(this.eMenu),this.eMenu=void 0;return}const{gos:e,eMenu:t,params:i}=this,s=zt(e);this.addInIcon(s?"menu":"menuAlt",t,i.column),t.classList.toggle("ag-header-menu-icon",!s);const o=this.shouldSuppressMenuHide();this.currentSuppressMenuHide=o,this.addManagedElementListeners(t,{click:()=>this.showColumnMenu(this.eMenu)}),this.toggleMenuAlwaysShow(o)}toggleMenuAlwaysShow(e){this.eMenu?.classList.toggle("ag-header-menu-always-show",e)}showColumnMenu(e){const{currentSuppressMenuHide:t,params:i}=this;t||this.toggleMenuAlwaysShow(!0),i.showColumnMenu(e,()=>{t||this.toggleMenuAlwaysShow(!1)})}onMenuKeyboardShortcut(e){const{params:t,gos:i,beans:s,eMenu:o,eFilterButton:n}=this,r=t.column,a=zt(i);if(e&&!a){if(s.menuSvc?.isFilterMenuInHeaderEnabled(r))return t.showFilter(n??o??this.getGui()),!0}else if(t.enableMenu)return this.showColumnMenu(o??n??this.getGui()),!0;return!1}setupSort(){const{sortSvc:e}=this.beans;if(!e)return;const{enableSorting:t,column:i}=this.params;if(this.currentSort=t,!this.eSortIndicator){this.eSortIndicator=this.createBean(e.createSortIndicator(!0));const{eSortIndicator:s,eSortOrder:o,eSortAsc:n,eSortDesc:r,eSortMixed:a,eSortNone:l,eSortAbsoluteAsc:c,eSortAbsoluteDesc:d}=this;s.attachCustomElements(o,n,r,a,l,c,d)}this.eSortIndicator.setupSort(i),this.currentSort&&e.setupHeader(this,i)}setupColumnRefIndicator(){const{eColRef:e,beans:{editModelSvc:t},params:i}=this;e&&(this.currentRef=i.column.formulaRef,e.textContent=this.currentRef,Ke(e,!1),this.addManagedEventListeners({cellEditingStarted:()=>{const s=t?.getEditPositions(),o=!!this.currentRef&&!!s?.some(n=>n.column.isAllowFormula());Ke(e,o)},cellEditingStopped:()=>{Ke(e,!1)}}))}setupFilterIcon(){const{eFilter:e,params:t}=this;if(!e)return;const i=()=>{const s=t.column.isFilterActive();Ke(e,s,{skipAriaHidden:!0})};this.configureFilter(t.enableFilterIcon,e,i,"filterActive")}setupFilterButton(){const{eFilterButton:e,params:t}=this;if(!e)return;this.configureFilter(t.enableFilterButton,e,this.onFilterChangedButton.bind(this),"filter")?this.addManagedElementListeners(e,{click:()=>t.showFilter(e)}):this.eFilterButton=void 0}configureFilter(e,t,i,s){if(!e)return Ji(t),!1;const o=this.params.column;return this.addInIcon(s,t,o),this.addManagedListeners(o,{filterChanged:i}),i(),!0}onFilterChangedButton(){const e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",e)}getAnchorElementForMenu(e){const{eFilterButton:t,eMenu:i}=this;return e?t??i??this.getGui():i??t??this.getGui()}destroy(){super.destroy(),this.innerHeaderComponent=this.destroyBean(this.innerHeaderComponent),this.mouseListener=this.destroyBean(this.mouseListener)}},I4=class extends B{constructor(e,t){super(),this.eLabel=e,this.columnGroup=t,this.isSticky=!1,this.left=null,this.right=null}postConstruct(){const{columnGroup:e,beans:t}=this,{ctrlsSvc:i}=t;i.whenReady(this,()=>{const s=this.refreshPosition.bind(this);e.getPinned()==null&&this.addManagedEventListeners({bodyScroll:o=>{o.direction==="horizontal"&&this.updateSticky(o.left)}}),this.addManagedListeners(e,{leftChanged:s,displayedChildrenChanged:s}),this.addManagedEventListeners({columnResized:s}),this.refreshPosition()})}refreshPosition(){const{columnGroup:e,beans:t}=this,i=e.getLeft(),s=e.getActualWidth();if(i==null||s===0){this.left=null,this.right=null,this.setSticky(!1);return}this.left=i,this.right=i+s;const o=t.colViewport.getScrollPosition();o!=null&&this.updateSticky(o)}updateSticky(e){const{beans:t,left:i,right:s}=this;if(i==null||s==null){this.setSticky(!1);return}const{gos:o,visibleCols:n}=t,a=o.get("enableRtl")?n.bodyWidth-e:e;this.setSticky(i<a&&s>a)}setSticky(e){const{isSticky:t,eLabel:i}=this;t!==e&&(this.isSticky=e,i.classList.toggle("ag-sticky-label",e))}},M4={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"}]},A4=class extends ot{constructor(){super(M4),this.agOpened=de,this.agClosed=de,this.agLabel=de,this.isLoadingInnerComponent=!1}init(e){const{userCompFactory:t,touchSvc:i}=this.beans;this.params=e,this.checkWarnings(),this.workOutInnerHeaderGroupComponent(t,e),this.setupLabel(e),this.addGroupExpandIcon(e),this.setupExpandIcons(),i?.setupForHeaderGroup(this)}checkWarnings(){this.params.template&&$(89)}workOutInnerHeaderGroupComponent(e,t){const i=YR(e,t,t);i&&(this.isLoadingInnerComponent=!0,i.newAgStackInstance().then(s=>{this.isLoadingInnerComponent=!1,s&&(this.isAlive()?(this.innerHeaderGroupComponent=s,this.agLabel.appendChild(s.getGui())):this.destroyBean(s))}))}setupExpandIcons(){const{agOpened:e,agClosed:t,params:{columnGroup:i},beans:{colGroupSvc:s}}=this;this.addInIcon("columnGroupOpened",e),this.addInIcon("columnGroupClosed",t);const o=l=>{if(Xi(l))return;const c=!i.isExpanded();s.setColumnGroupOpened(i.getProvidedColumnGroup(),c,"uiColumnExpanded")};this.addTouchAndClickListeners(t,o),this.addTouchAndClickListeners(e,o);const n=l=>{fo(l)};this.addManagedElementListeners(t,{dblclick:n}),this.addManagedElementListeners(e,{dblclick:n}),this.addManagedElementListeners(this.getGui(),{dblclick:o}),this.updateIconVisibility();const r=i.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:i}}=this;if(i.isExpandable()){const s=i.isExpanded();Ke(e,s),Ke(t,!s)}else Ke(e,!1),Ke(t,!1)}addInIcon(e,t){const i=Wt(e,this.beans,null);i&&t.appendChild(i)}addGroupExpandIcon(e){if(!e.columnGroup.isExpandable()){const{agOpened:t,agClosed:i}=this;Ke(t,!1),Ke(i,!1)}}setupLabel(e){const{displayName:t,columnGroup:i}=e,{innerHeaderGroupComponent:s,isLoadingInnerComponent:o}=this,n=s||o;te(t)&&!n&&(this.agLabel.textContent=Tn(t)),i.getColGroupDef()?.suppressStickyLabel||this.createManagedBean(new I4(this.getGui(),i))}destroy(){super.destroy(),this.innerHeaderGroupComponent&&(this.destroyBean(this.innerHeaderGroupComponent),this.innerHeaderGroupComponent=void 0)}},L4={moduleName:"ColumnHeaderComp",version:Q,userComponents:{agColumnHeader:k4},icons:{menu:"menu",menuAlt:"menu-alt"}},O4={moduleName:"ColumnGroupHeaderComp",version:Q,userComponents:{agColumnGroupHeader:A4},icons:{columnGroupOpened:"expanded",columnGroupClosed:"contracted"}},N4=class extends B{constructor(){super(...arguments),this.beanName="animationFrameSvc",this.p1={list:[],sorted:!1},this.p2={list:[],sorted:!1},this.f1={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0,this.taskCount=0}setScrollTop(e){this.scrollGoingDown=e>=this.lastScrollTop,e===0&&(this.scrollGoingDown=!0),this.lastScrollTop=e}postConstruct(){this.active=!this.gos.get("suppressAnimationFrame"),this.batchFrameworkComps=this.beans.frameworkOverrides.batchFrameworkComps}verify(){this.active===!1&&$(92)}createTask(e,t,i,s,o=!1){this.verify();let n=i;s&&this.batchFrameworkComps&&(n="f1");const r={task:e,index:t,createOrder:++this.taskCount,deferred:o};this.addTaskToList(this[n],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((i,s)=>i.deferred!==s.deferred?i.deferred?-1:1:i.index!==s.index?t*(s.index-i.index):s.createOrder-i.createOrder),e.sorted=!0}addDestroyTask(e){this.verify(),this.destroyTasks.push(e),this.schedule()}executeFrame(e){const{p1:t,p2:i,f1:s,destroyTasks:o,beans:n}=this,{ctrlsSvc:r,frameworkOverrides:a}=n,l=t.list,c=i.list,d=s.list,u=Date.now();let h=0;const p=e<=0,m=r.getScrollFeature();for(;p||h<e;){if(!m.scrollGridIfNeeded()){let C;if(l.length)this.sortTaskList(t),C=l.pop().task;else if(c.length)this.sortTaskList(i),C=c.pop().task;else if(d.length)a.wrapOutgoing(()=>{for(;(p||h<e)&&!m.scrollGridIfNeeded();){if(d.length)this.sortTaskList(s),C=d.pop().task,C();else break;h=Date.now()-u}}),C=()=>{};else if(o.length)C=o.pop();else break;C()}h=Date.now()-u}l.length||c.length||d.length||o.length?this.requestFrame():this.ticking=!1}flushAllFrames(){this.active&&this.executeFrame(-1)}schedule(){this.active&&(this.ticking||(this.ticking=!0,this.requestFrame()))}requestFrame(){const e=this.executeFrame.bind(this,60);os(this.beans,e)}isQueueEmpty(){return!this.ticking}},H4={moduleName:"AnimationFrame",version:Q,beans:[N4]},B4=class extends B{constructor(){super(...arguments),this.beanName="iconSvc"}createIconNoSpan(e,t){return Wt(e,this.beans,t?.column)}},G4=(e,t,i)=>t||e&&i,V4=class extends B{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(!so())return;const t=(i,s,o)=>{const{rowCtrl:n,cellCtrl:r}=e.getControlsForEventTarget(o?.target??null);r?.column&&r.dispatchCellContextMenuEvent(o??null),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(void 0,o,n,r)};this.mockContextMenu(e,e.element,t)}handleCellDoubleClick(e,t){return(()=>{if(!so()||Cl("dblclick"))return!1;const s=Date.now(),o=s-e.lastIPadMouseClickEvent<200;return e.lastIPadMouseClickEvent=s,o})()?(e.onCellDoubleClicked(t),t.preventDefault(),!0):!1}setupForHeader(e){const{gos:t,sortSvc:i,menuSvc:s}=this.beans;if(t.get("suppressTouch"))return;const{params:o,eMenu:n,eFilterButton:r}=e,a=new Us(e.getGui(),!0);e.addDestroyFunc(()=>a.destroy());const l=e.shouldSuppressMenuHide(),c=l&&te(n)&&o.enableMenu,d=!!s?.isHeaderContextMenuEnabled(o.column),u=G4(o.enableMenu,d,zt(t));let h=a;c&&(h=new Us(n,!0),e.addDestroyFunc(()=>h.destroy()));const p=m=>o.showColumnMenuAfterMouseClick(m.touchStart);if(c&&o.enableMenu&&e.addManagedListeners(h,{tap:p}),u&&e.addManagedListeners(a,{longTap:p}),o.enableSorting){const m=v=>{const C=v.touchStart.target;l&&(n?.contains(C)||r?.contains(C))||i?.progressSort(o.column,!1,"uiColumnSorted")};e.addManagedListeners(a,{tap:m})}if(o.enableFilterButton&&r){const m=new Us(r,!0);e.addManagedListeners(m,{tap:()=>o.showFilter(r)}),e.addDestroyFunc(()=>m.destroy())}}setupForHeaderGroup(e){const t=e.params;if(this.beans.menuSvc?.isHeaderContextMenuEnabled(t.columnGroup.getProvidedColumnGroup())){const i=new Us(t.eGridHeader,!0),s=o=>t.showColumnMenuAfterMouseClick(o.touchStart);e.addManagedListeners(i,{longTap:s}),e.addDestroyFunc(()=>i.destroy())}}setupForHeaderGroupElement(e,t,i){const s=new Us(t,!0);e.addManagedListeners(s,{tap:i}),e.addDestroyFunc(()=>s.destroy())}mockContextMenu(e,t,i){if(!so())return;const s=new Us(t),o=n=>{kr(this.beans,n.touchEvent)&&i(void 0,n.touchStart,n.touchEvent)};e.addManagedListeners(s,{longTap:o}),e.addDestroyFunc(()=>s.destroy())}},z4={moduleName:"Touch",version:Q,beans:[V4]},W4=class extends B{constructor(){super(...arguments),this.beanName="cellNavigation"}wireBeans(e){this.rowSpanSvc=e.rowSpanSvc}getNextCellToFocus(e,t,i=!1){return i?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)}getNextCellToFocusWithCtrlPressed(e,t){const i=e===A.UP,s=e===A.DOWN,o=e===A.LEFT;let n,r;const{pageBounds:a,gos:l,visibleCols:c,pinnedRowModel:d}=this.beans,{rowPinned:u}=t;if(i||s)u&&d?i?r=0:r=u==="top"?d.getPinnedTopRowCount()-1:d.getPinnedBottomRowCount()-1:r=i?a.getFirstRow():a.getLastRow(),n=t.column;else{const h=l.get("enableRtl");r=t.rowIndex,n=(o!==h?c.allCols:[...c.allCols].reverse()).find(m=>!At(m)&&this.isCellGoodToFocusOn({rowIndex:r,rowPinned:null,column:m}))}return n?{rowIndex:r,rowPinned:u,column:n}:null}getNextCellToFocusWithoutCtrlPressed(e,t){let i=t,s=!1;for(;!s;){switch(e){case A.UP:i=this.getCellAbove(i);break;case A.DOWN:i=this.getCellBelow(i);break;case A.RIGHT:i=this.gos.get("enableRtl")?this.getCellToLeft(i):this.getCellToRight(i);break;case A.LEFT:i=this.gos.get("enableRtl")?this.getCellToRight(i):this.getCellToLeft(i);break;default:i=null,$(8,{key:e});break}i?s=this.isCellGoodToFocusOn(i):s=!0}return i}isCellGoodToFocusOn(e){const t=e.column;let i;const{pinnedRowModel:s,rowModel:o}=this.beans;switch(e.rowPinned){case"top":i=s?.getPinnedTopRow(e.rowIndex);break;case"bottom":i=s?.getPinnedBottomRow(e.rowIndex);break;default:i=o.getRow(e.rowIndex);break}return i?!this.isSuppressNavigable(t,i):!1}getCellToLeft(e){if(!e)return null;const t=this.beans.visibleCols.getColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellToRight(e){if(!e)return null;const t=this.beans.visibleCols.getColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellBelow(e){if(!e)return null;const t=this.rowSpanSvc?.getCellEnd(e)??e,i=$g(this.beans,t,!0);return i?{rowIndex:i.rowIndex,column:e.column,rowPinned:i.rowPinned}:null}getCellAbove(e){if(!e)return null;const t=this.rowSpanSvc?.getCellStart(e)??e,i=Tl(this.beans,{rowIndex:t.rowIndex,rowPinned:t.rowPinned},!0);return i?{rowIndex:i.rowIndex,column:e.column,rowPinned:i.rowPinned}:null}getNextTabbedCell(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)}getNextTabbedCellForwards(e){const{visibleCols:t,pagination:i}=this.beans,s=t.allCols;let o=e.rowIndex,n=e.rowPinned,r=t.getColAfter(e.column);if(!r){r=s[0];const a=$g(this.beans,e,!0);if(it(a)||!a.rowPinned&&!(i?.isRowInPage(a.rowIndex)??!0))return null;o=a?a.rowIndex:null,n=a?a.rowPinned:null}return{rowIndex:o,column:r,rowPinned:n}}getNextTabbedCellBackwards(e){const{beans:t}=this,{visibleCols:i,pagination:s}=t,o=i.allCols;let n=e.rowIndex,r=e.rowPinned,a=i.getColBefore(e.column);if(!a){a=$e(o);const l=Tl(t,{rowIndex:e.rowIndex,rowPinned:e.rowPinned},!0);if(it(l)||!l.rowPinned&&!(s?.isRowInPage(l.rowIndex)??!0))return null;n=l?l.rowIndex:null,r=l?l.rowPinned:null}return{rowIndex:n,column:a,rowPinned:r}}isSuppressNavigable(e,t){const{suppressNavigable:i}=e.colDef;if(typeof i=="boolean")return i;if(typeof i=="function"){const s=e.createColumnFunctionCallbackParams(t);return i(s)}return!1}};function j4(e){return e.focusSvc.getFocusedCell()}function _4(e){return e.focusSvc.clearFocusedCell()}function U4(e,t,i,s){e.focusSvc.setFocusedCell({rowIndex:t,column:i,rowPinned:s,forceBrowserFocus:!0})}function $4(e,t){return e.navigation?.tabToNextCell(!1,t)??!1}function q4(e,t){return e.navigation?.tabToNextCell(!0,t)??!1}function K4(e,t,i=!1){const s=e.headerNavigation?.getHeaderPositionForColumn(t,i);s&&e.focusSvc.focusHeaderPosition({headerPosition:s})}function vo(e){const t=e;return t?.getFrameworkComponentInstance!=null?t.getFrameworkComponentInstance():e}var Y4=class extends B{constructor(){super(...arguments),this.beanName="editModelSvc",this.edits=new Map,this.cellValidations=new xw,this.rowValidations=new yw,this.suspendEdits=!1}suspend(e){this.suspendEdits=e}removeEdits({rowNode:e,column:t}){if(!this.hasEdits({rowNode:e})||!e)return;const i=this.getEditRow(e);t?i.delete(t):i.clear(),i.size===0&&this.edits.delete(e)}getEditRow(e,t={}){if(this.suspendEdits||this.edits.size===0)return;const i=e&&this.edits.get(e);if(i)return i;if(t.checkSiblings){const s=e.pinnedSibling;if(s)return this.getEditRow(s)}}getEditRowDataValue(e,{checkSiblings:t}={}){if(!e||this.edits.size===0)return;const i=this.getEditRow(e),s=e.pinnedSibling,o=t&&s&&this.getEditRow(s);if(!i&&!o)return;const n={...e.data},r=(a,l)=>a.forEach(({editorValue:c,pendingValue:d},u)=>{const h=c===void 0?d:c;h!==Ct&&(l[u.getColId()]=h)});return i&&r(i,n),o&&r(o,n),n}getEdit(e={},t){const{rowNode:i,column:s}=e,o=this.edits;if(this.suspendEdits||o.size===0||!i||!s)return;const n=o.get(i)?.get(s);if(n)return n;if(t?.checkSiblings){const r=i.pinnedSibling;if(r)return o.get(r)?.get(s)}}getEditMap(e=!0){if(this.suspendEdits||this.edits.size===0)return new Map;if(!e)return this.edits;const t=new Map;return this.edits.forEach((i,s)=>{const o=new Map;i.forEach(({editorState:n,...r},a)=>o.set(a,{...r})),t.set(s,o)}),t}setEditMap(e){this.edits.clear(),e.forEach((t,i)=>{const s=new Map;t.forEach((o,n)=>s.set(n,{...o})),this.edits.set(i,s)})}setEdit(e,t){const i=this.edits;(i.size===0||!i.has(e.rowNode))&&i.set(e.rowNode,new Map);const s=this.getEdit(e),o={editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0},...s,...t};return this.getEditRow(e.rowNode).set(e.column,o),o}clearEditValue(e){const{rowNode:t,column:i}=e;if(!t)return;const s=n=>{n.editorValue=void 0,n.pendingValue=n.sourceValue,n.state="changed"};if(!i){this.getEditRow(t)?.forEach(s);return}const o=this.getEdit(e);o&&s(o)}getState(e){if(!this.suspendEdits)return this.getEdit(e)?.state}getEditPositions(e){if(this.suspendEdits||(e??this.edits).size===0)return[];const t=[];return(e??this.edits).forEach((i,s)=>{for(const o of i.keys()){const{editorState:n,...r}=i.get(o);t.push({rowNode:s,column:o,...r})}}),t}hasRowEdits(e,t){return this.suspendEdits||this.edits.size===0?!1:!!this.getEditRow(e,t)}hasEdits(e={},t={}){if(this.suspendEdits||this.edits.size===0)return!1;const{rowNode:i,column:s}=e,{withOpenEditor:o}=t;if(i){const n=this.getEditRow(i,t);return n?s?o?this.getEdit(e)?.state==="editing":n.has(s):n.size!==0?o?Array.from(n.values()).some(({state:r})=>r==="editing"):!0:!1:!1}return o?this.getEditPositions().some(({state:n})=>n==="editing"):this.edits.size>0}start(e){const t=this.getEditRow(e.rowNode)??new Map,{rowNode:i,column:s}=e;s&&!t.has(s)&&t.set(s,{editorValue:void 0,pendingValue:Ct,sourceValue:this.beans.valueSvc.getValue(s,i,"data"),state:"editing",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}}),this.edits.set(i,t)}stop(e,t,i){if(this.hasEdits(e))if(t){const s=this.getEditRow(e.rowNode)?.get(e.column);s&&(s.pendingValue===Ct||s.pendingValue===s.sourceValue)?this.removeEdits(e):s&&i&&(s.editorValue=void 0)}else this.removeEdits(e)}clear(){for(const e of this.edits.values())e.clear();this.edits.clear()}getCellValidationModel(){return this.cellValidations}getRowValidationModel(){return this.rowValidations}setCellValidationModel(e){this.cellValidations=e}setRowValidationModel(e){this.rowValidations=e}destroy(){super.destroy(),this.clear()}},xw=class{constructor(){this.cellValidations=new Map}getCellValidation(e){const{rowNode:t,column:i}=e||{};return this.cellValidations?.get(t)?.get(i)}hasCellValidation(e){return!e?.rowNode||!e.column?this.cellValidations.size>0:!!this.getCellValidation(e)}setCellValidation(e,t){const{rowNode:i,column:s}=e;this.cellValidations.has(i)||this.cellValidations.set(i,new Map),this.cellValidations.get(i).set(s,t)}clearCellValidation(e){const{rowNode:t,column:i}=e;this.cellValidations.get(t)?.delete(i)}setCellValidationMap(e){this.cellValidations=e}getCellValidationMap(){return this.cellValidations}clearCellValidationMap(){this.cellValidations.clear()}},yw=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 Ol(e,t={}){const{rowIndex:i,rowId:s,rowCtrl:o,rowPinned:n}=t;if(o)return o;const{rowModel:r,rowRenderer:a}=e;let{rowNode:l}=t;return l||(s?l=V3(e,s,n):i!=null&&(l=r.getRow(i))),l?a.getRowCtrlByNode(l):void 0}function Be(e,t={}){const{cellCtrl:i,colId:s,columnId:o,column:n}=t;if(i)return i;const r=e.colModel.getCol(s??o??Ou(n)),a=t.rowCtrl??Ol(e,t),l=a?.getCellCtrl(r)??void 0;if(l)return l;const c=t.rowNode??a?.rowNode;if(c)return e.rowRenderer.getCellCtrls([c],[r])?.[0]}function Sf(e){const{editSvc:t}=e;t?.isBatchEditing()?(ws(e,{persist:!0}),ms(e)):t?.stopEditing(void 0,{source:"api"})}function Z4(e,t,i){const{gos:s,popupSvc:o}=t;if(!s.get("stopEditingWhenCellsLoseFocus"))return;const n=r=>{const a=r.relatedTarget;if(Su(a)===null){Sf(t);return}let l=i.some(c=>c.contains(a))&&s.isElementInThisInstance(a);l||(l=!!o&&(o.getActivePopups().some(c=>c.contains(a))||o.isElementWithinCustomPopup(a))),l||Sf(t)};for(const r of i)e.addManagedElementListeners(r,{focusout:n})}function Ou(e){if(e)return typeof e=="string"?e:e.getColId()}var Ct=Symbol("unedited"),X4=(e,t={})=>{const i=e.rowRenderer.getCellCtrls(t.rowNodes,t.columns),s=new Array(i.length);let o=0;for(let n=0,r=i.length;n<r;++n){const l=i[n].comp?.getCellEditor();l&&(s[o++]=vo(l))}return s.length=o,s};function Q4(e,t,i,s,o,n){t.length===0&&i?.rowNode&&i?.column&&Co(e,i,{key:s,event:o,cellStartedEdit:n});const{valueSvc:r,editSvc:a,editModelSvc:l}=e,{rowNode:c,column:d}=i??{};for(const u of t){const{rowNode:h,column:p}=u,m=Be(e,u);if(!m){if(h&&p){const C=r.getValue(p,h,"data"),x=(i?.rowNode===h&&i?.column===p&&s||void 0)??a?.getCellDataValue(u)??r.getValueForDisplay({column:p,node:h,from:"edit"})?.value??C??Ct;l?.setEdit(u,{pendingValue:Sn(e,x,!1,p),sourceValue:C,state:"editing"})}continue}const v=n&&c===m.rowNode&&m.column===d;Co(e,{rowNode:c,column:m.column},{key:v?s:null,event:v?o:null,cellStartedEdit:v&&n})}}function wi({pendingValue:e,sourceValue:t}){return e===Ct&&(e=t),e!==t}function J4(e){const t=new Map;for(const[i,s]of e){const o=new Map;for(const[n,r]of s)wi(r)&&o.set(n,r);o.size>0&&t.set(i,o)}return t}function Co(e,t,i){const{key:s,event:o,cellStartedEdit:n,silent:r}=i??{},{editModelSvc:a,gos:l,userCompFactory:c}=e,d=Be(e,t),u=d?.comp?.getCellEditor(),h=Rw(e,t,s,n&&!r),p=a?.getEdit(t),m=h.value??p?.sourceValue;if(u){a?.setEdit(t,{editorValue:Sn(e,m,!0,t.column),state:"editing"}),u.refresh?.(h);return}const v=t.column.getColDef(),C=iC(c,v,h);if(!C)return;const{popupFromSelector:w,popupPositionFromSelector:b}=C,x=w??!!v.cellEditorPopup,y=b??v.cellEditorPopupPosition;if(Fw(C.params,o),!d)return;const{rangeFeature:S,rowCtrl:E,comp:R,onEditorAttachedFuncs:F}=d;a?.setEdit(t,{editorValue:Sn(e,m,!0,t.column),state:"editing",editorState:{cellStartedEditing:void 0,cellStoppedEditing:void 0}}),d.editCompDetails=C,F.push(()=>S?.unsetComp()),R?.setEditDetails(C,x,y,l.get("reactiveCustomComponents")),E?.refreshRow({suppressFlash:!0}),e6(e,t,o,m,r)}function e6(e,t,i,s,o){const{editSvc:n,editModelSvc:r}=e,a=r?.getEdit(t);!o&&a?.state==="editing"&&!a?.editorState?.cellStartedEditing&&(n?.dispatchCellEvent(t,i,"cellEditingStarted",{value:s}),r?.setEdit(t,{editorState:{cellStartedEditing:!0}}))}function Sw(e,t,i){const s={editorValueExists:!1};if(ep(e)&&(t.getValidationErrors?.()?.length??0)>0||i?.isCancelling)return s;if(i?.isStopping){const n=t?.isCancelAfterEnd?.();if(n)return{...s,isCancelAfterEnd:n}}return{editorValue:t.getValue(),editorValueExists:!0}}function Rw(e,t,i,s){const{valueSvc:o,gos:n,editSvc:r}=e,a=e.gos.get("enableGroupEdit"),l=Be(e,t),c=t.rowNode?.rowIndex??void 0,d=r?.isBatchEditing(),u=e.colModel.getCol(t.column.getId()),{rowNode:h,column:p}=t,m=l.comp?.getCellEditor(),v=r?.getCellDataValue(t),C=v===void 0?m?Sw(e,m)?.editorValue:void 0:v,w=C===Ct?o.getValueForDisplay({column:u,node:h,from:"edit"})?.value:C;let b=a?C:w;return p.isAllowFormula()&&e.formula?.isFormula(b)&&(b=e.formula?.normaliseFormula(b,!0)??b),xe(n,{value:b,eventKey:i??null,column:p,colDef:p.getColDef(),rowIndex:c,node:h,data:h.data,cellStartedEdit:!!s,onKeyDown:l?.onKeyDown.bind(l),stopEditing:x=>{r.stopEditing(t,{source:d?"ui":"api",suppressNavigateAfterEdit:x}),Or(e,t,{})},eGridCell:l?.eGui,parseValue:x=>o.parseValue(u,h,x,l?.value),formatValue:l?.formatValue.bind(l),validate:()=>{r?.validateEdit()}})}function ar(e,t){const{editModelSvc:i}=e;i?.getEditMap().forEach((s,o)=>{s.forEach((n,r)=>{!t&&(n.state==="editing"||n.pendingValue===Ct)||!wi(n)&&(n.state!=="editing"||t)&&i?.removeEdits({rowNode:o,column:r})})})}function t6(e,t){const i=t.comp?.getCellEditor();if(!i?.refresh)return;const{eventKey:s,cellStartedEdit:o}=t.editCompDetails.params,{column:n}=t,r=Rw(e,t,s,o),a=n.getColDef(),l=iC(e.userCompFactory,a,r);i.refresh(Fw(l.params,s))}function Fw(e,t){return t instanceof KeyboardEvent&&e.column.getColDef().cellEditor==="agNumberCellEditor"?e.suppressPreventDefault=["-","+",".","e"].includes(t?.key??"")||e.suppressPreventDefault:t?.preventDefault?.(),e}function ws(e,t){for(const i of e.editModelSvc?.getEditPositions()??[]){const s=Be(e,i);if(!s)continue;const o=s.comp?.getCellEditor();if(!o)continue;const{editorValue:n,editorValueExists:r,isCancelAfterEnd:a}=Sw(e,o,t);if(a){const{cellStartedEditing:l,cellStoppedEditing:c}=e.editModelSvc?.getEdit(i)?.editorState||{};e.editModelSvc?.setEdit(i,{editorState:{isCancelAfterEnd:a,cellStartedEditing:l,cellStoppedEditing:c}})}Zo(e,i,n,void 0,!r,t)}}function Zo(e,t,i,s,o,n){const{editModelSvc:r,valueSvc:a}=e;if(!r)return;const{rowNode:l,column:c}=t;if(!(l&&c))return;let d=r.getEdit(t);if(d?.sourceValue===void 0){const u=d?Sn(e,d.editorValue,!1,c):Ct,h={sourceValue:a.getValue(c,l,"data"),pendingValue:u};n?.persist&&(h.state="changed"),d=r.setEdit(t,h)}r.setEdit(t,{editorValue:o?Sn(e,d.sourceValue,!0,c):i}),n?.persist&&i6(e,t)}function Sn(e,t,i,s){const{formula:o}=e;return s.isAllowFormula()&&o?.isFormula(t)?o?.normaliseFormula(t,i)??t:t}function i6(e,t){const{editModelSvc:i}=e,s=i?.getEdit(t),n={pendingValue:Sn(e,s?.editorValue,!1,t.column)};!s?.editorState?.cellStoppedEditing&&s?.state!=="editing"&&(n.state="changed"),i?.setEdit(t,n)}function ms(e,t,i={}){if(t||(t=e.editModelSvc?.getEditPositions()),t)for(const s of t)Or(e,s,i)}function Or(e,t,i,s=Be(e,t)){const o=e.editModelSvc,n=o?.getEdit(t);let r;if(n&&n.state!=="editing"&&n.editorState?.cellStoppedEditing?r=n.state:r="changed",!s){n&&o?.setEdit(t,{state:r});return}const a=s.comp,l=a?.getCellEditor();if(a&&!l){if(s?.refreshCell(),n){o?.setEdit(t,{state:r});const d=e.gos.get("enableGroupEdit")?Rf(n,i?.cancel):{valueChanged:!1,newValue:void 0,oldValue:n.sourceValue};Ff(e,t,d,i)}return}if(ep(e)){const d=n&&l?.getValidationErrors?.(),u=o?.getCellValidationModel();d?.length?u?.setCellValidation(t,{errorMessages:d}):u?.clearCellValidation(t)}n&&o?.setEdit(t,{state:r}),a?.setEditDetails(),a?.refreshEditStyles(!1,!1),s?.refreshCell({force:!0,suppressFlash:!0});const c=o?.getEdit(t);if(c&&c.state!=="editing"){const d=i?.cancel,u=e.gos.get("enableGroupEdit")?Rf(c,d):s6(c,n,d);Ff(e,t,u,i)}}function Rf(e,t){const{sourceValue:i,pendingValue:s}=e;let o;return!t&&s!==Ct&&(o=s),{valueChanged:!t&&wi(e),newValue:o,oldValue:i,value:i}}function s6(e,t,i){if(i||e.editorState.isCancelAfterEnd)return{valueChanged:!1,newValue:void 0,oldValue:e.sourceValue};let s=e.editorValue;return(s==null||s===Ct)&&(s=t?.pendingValue),s===Ct&&(s=void 0),{valueChanged:wi(e),newValue:s,oldValue:e.sourceValue}}function Ff(e,t,i,{silent:s,event:o}={}){const{editSvc:n,editModelSvc:r}=e,a=r?.getEdit(t),{editorState:l}=a||{},{isCancelBeforeStart:c,cellStartedEditing:d,cellStoppedEditing:u}=l||{};!s&&!c&&d&&!u&&(n?.dispatchCellEvent(t,o,"cellEditingStopped",i),r?.setEdit(t,{editorState:{cellStoppedEditing:!0}}))}function o6(e){if(!e)return!1;for(let t=0,i=e.length;t<i;++t){const s=e[t],o=s.cellEditorParams;if(!(!o||!s.editable&&!s.groupRowEditable)&&(o.minLength!==void 0||o.maxLength!==void 0||o.getValidationErrors!==void 0||o.min!==void 0||o.max!==void 0))return!0}return!1}function n6(e){const t=e.rowRenderer.getCellCtrls();for(let i=0,s=t.length;i<s;++i){const n=t[i].comp?.getCellEditor();if(n){const r=vo(n);if(r.getValidationElement||r.getValidationErrors)return!0}}return!1}function ep(e){return!!e.gos.get("getFullRowEditValidationErrors")||o6(e.colModel.getColumnDefs())||n6(e)}function Ss(e,t){if(!(t||ep(e)))return;const i=new xw,{ariaAnnounce:s,localeSvc:o,editModelSvc:n,gos:r}=e,a=r.get("editType")==="fullRow",c=yv(o)("ariaValidationErrorPrefix","Cell Editor Validation"),d=new Set;for(const u of e.rowRenderer.getCellCtrls()){const h=u.comp?.getCellEditor();if(!h)continue;const p=vo(h),{rowNode:m,column:v}=u,C=p.getValidationErrors?.()??[],w=p.getValidationElement?.(!1)||!p.isPopup?.()&&u.eGui;if(w){const b=C!=null&&C.length>0,x=b?C.join(". "):"";mh(w,b),b&&s.announceValue(`${c} ${C}`,"editorValidation"),w instanceof HTMLInputElement?w.setCustomValidity(x):w.classList.toggle("invalid",b)}C?.length>0&&i.setCellValidation({rowNode:m,column:v},{errorMessages:C}),d.add(u.rowCtrl)}if(ws(e,{persist:!1}),n?.setCellValidationModel(i),a){const u=r6(e);n?.setRowValidationModel(u)}for(const u of d.values()){u.rowEditStyleFeature?.applyRowStyles();for(const h of u.getAllCellCtrls())h.tooltipFeature?.refreshTooltip(!0),h.editorTooltipFeature?.refreshTooltip(!0),h.editStyleFeature?.applyCellStyles?.()}}var r6=e=>{const t=new yw,i=e.gos.get("getFullRowEditValidationErrors"),s=e.editModelSvc?.getEditMap();if(!s)return t;for(const o of s.keys()){const n=s.get(o);if(!n)continue;const r=[],{rowIndex:a,rowPinned:l}=o;for(const d of n.keys()){const u=n.get(d);if(!u)continue;const{editorValue:h,pendingValue:p,sourceValue:m}=u,v=h??(p===Ct?void 0:p)??m;r.push({column:d,colId:d.getColId(),rowIndex:a,rowPinned:l,oldValue:m,newValue:v})}const c=i?.({editorsState:r})??[];c.length>0&&t.setRowValidation({rowNode:o},{errorMessages:c})}return t};function a6(e){Ss(e,!0);const t=e.editModelSvc?.getCellValidationModel().getCellValidationMap();if(!t)return null;const i=[];return t.forEach((s,o)=>{s.forEach(({errorMessages:n},r)=>{i.push({column:r,rowIndex:o.rowIndex,rowPinned:o.rowPinned,messages:n??null})})}),i}function cc(e){return!!(e.rowPinned&&e.pinnedSibling)}function si(e,t,i,s){const o=t==="top";if(!i)return si(e,t,o?e.getPinnedTopRow(0):e.getPinnedBottomRow(0),s);if(!s){const l=o?e.getPinnedTopRowCount():e.getPinnedBottomRowCount();return si(e,t,i,o?e.getPinnedTopRow(l-1):e.getPinnedBottomRow(l-1))}let n=!1,r=!1;const a=[];return e.forEachPinnedRow(t,l=>{if(l===i&&!n){n=!0,a.push(l);return}if(n&&l===s){r=!0,a.push(l);return}n&&!r&&a.push(l)}),a}function l6(e,t,i,{rowNode:s,column:o},n){return xe(e.gos,{type:i,node:s,data:s.data,value:n,column:o,colDef:o.getColDef(),rowPinned:s.rowPinned,event:t,rowIndex:s.rowIndex})}function c6(e,t=!1){return e===A.DELETE?!0:!t&&e===A.BACKSPACE?rC():!1}var d6=class extends B{constructor(e,t,i,s){super(),this.cellCtrl=e,this.rowNode=i,this.rowCtrl=s,this.beans=t}init(){this.eGui=this.cellCtrl.eGui}onKeyDown(e){const t=e.key;if(!(t===A.ENTER&&At(this.cellCtrl.column)&&this.beans.rowNumbersSvc?.handleKeyDownOnCell(this.cellCtrl.cellPosition,e)))switch(t){case A.ENTER:this.onEnterKeyDown(e);break;case A.F2:this.onF2KeyDown(e);break;case A.ESCAPE:this.onEscapeKeyDown(e);break;case A.TAB:this.onTabKeyDown(e);break;case A.BACKSPACE:case A.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case A.DOWN:case A.UP:case A.RIGHT:case A.LEFT:this.onNavigationKeyDown(e,t);break}}onNavigationKeyDown(e,t){const{cellCtrl:i,beans:s}=this;if(!s.editSvc?.isEditing(i,{withOpenEditor:!0})){if(e.shiftKey&&i.isRangeSelectionEnabled())this.onShiftRangeSelect(e);else{const o=i.getFocusedCellPosition();s.navigation?.navigateToNextCell(e,t,o,!0)}e.preventDefault()}}onShiftRangeSelect(e){const{rangeSvc:t,navigation:i}=this.beans;if(!t)return;const s=t.extendLatestRangeInDirection(e);s&&(e.key===A.LEFT||e.key===A.RIGHT?i?.ensureColumnVisible(s.column):i?.ensureRowVisible(s.rowIndex))}onTabKeyDown(e){this.beans.navigation?.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){const{cellCtrl:i,beans:s,rowNode:o}=this,{gos:n,rangeSvc:r,eventSvc:a,editSvc:l}=s;if(a.dispatchEvent({type:"keyShortcutChangedCellStart"}),c6(e,n.get("enableCellEditingOnBackspace"))&&!l?.isEditing(i,{withOpenEditor:!0})){if(r&&Fs(n))r.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(i.isCellEditable()){const c=s.valueSvc.getDeleteValue(i.column,o);o.setDataValue(i.column,c,"cellClear")}}else l?.isEditing(i,{withOpenEditor:!0})||s.editSvc?.startEditing(i,{startedEdit:!0,event:t});a.dispatchEvent({type:"keyShortcutChangedCellEnd"})}onEnterKeyDown(e){const{cellCtrl:t,beans:i}=this,{editSvc:s,navigation:o}=i,n=s?.isEditing(t,{withOpenEditor:!0}),r=t.rowNode,a=s?.isRowEditing(r,{withOpenEditor:!0}),l=c=>{s?.startEditing(c,{startedEdit:!0,event:e,source:"edit"})&&e.preventDefault()};if(n||a){if(this.isCtrlEnter(e)){s?.applyBulkEdit(t,i?.rangeSvc?.getCellRanges()||[]);return}if(Ss(i),s?.checkNavWithValidation(void 0,e)==="block-stop")return;s?.isEditing(t,{withOpenEditor:!0})?s?.stopEditing(t,{event:e,source:"edit"}):a&&!t.isCellEditable()?s?.stopEditing({rowNode:r},{event:e,source:"edit"}):l(t)}else if(i.gos.get("enterNavigatesVertically")){const c=e.shiftKey?A.UP:A.DOWN;o?.navigateToNextCell(null,c,t.cellPosition,!1)}else{if(s?.hasValidationErrors())return;s?.hasValidationErrors(t)&&s.revertSingleCellEdit(t,!0),l(t)}}isCtrlEnter(e){return(e.ctrlKey||e.metaKey)&&e.key===A.ENTER}onF2KeyDown(e){const{cellCtrl:t,beans:{editSvc:i}}=this;i?.isEditing()&&(Ss(this.beans),i?.checkNavWithValidation(void 0,e)==="block-stop")||i?.startEditing(t,{startedEdit:!0,event:e})}onEscapeKeyDown(e){const{cellCtrl:t,beans:{editSvc:i}}=this;i?.checkNavWithValidation(t,e)==="block-stop"&&i.revertSingleCellEdit(t),setTimeout(()=>{i?.stopEditing(t,{event:e,cancel:!0})})}processCharacter(e){const i=e.target!==this.eGui,{beans:{editSvc:s},cellCtrl:o}=this;if(i||s?.isEditing(o,{withOpenEditor:!0}))return;if(e.key===A.SPACE)this.onSpaceKeyDown(e);else if(s?.isCellEditable(o,"ui")){if(s?.hasValidationErrors()&&!s?.hasValidationErrors(o))return;s?.startEditing(o,{startedEdit:!0,event:e,source:"api",editable:!0}),!o.editCompDetails?.params?.suppressPreventDefault&&e.preventDefault()}}onSpaceKeyDown(e){const{gos:t,editSvc:i}=this.beans,{rowNode:s}=this.cellCtrl;!i?.isEditing(this.cellCtrl,{withOpenEditor:!0})&&to(t)&&this.beans.selectionSvc?.handleSelectionEvent(e,s,"spaceKey"),e.preventDefault()}},u6=class extends B{constructor(e,t,i){super(),this.cellCtrl=e,this.column=i,this.beans=t}onMouseEvent(e,t){if(!Xi(t))switch(e){case"click":this.onCellClicked(t);break;case"pointerdown":case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t);break}}onCellClicked(e){if(this.beans.touchSvc?.handleCellDoubleClick(this,e))return;const{eventSvc:t,rangeSvc:i,editSvc:s,editModelSvc:o,frameworkOverrides:n,gos:r}=this.beans,a=e.ctrlKey||e.metaKey,{cellCtrl:l}=this,{column:c,cellPosition:d,rowNode:u}=l,h=sl(r,c,u,e);i&&a&&!h&&i.getCellRangeCount(d)>1&&i.intersectLastRange(!0);const p=l.createEvent(e,"cellClicked");p.isEventHandlingSuppressed=h,t.dispatchEvent(p);const m=c.getColDef();if(m.onCellClicked&&window.setTimeout(()=>{n.wrapOutgoing(()=>{m.onCellClicked(p)})},0),!h&&o?.getState(l)!=="editing"){const v=s?.isEditing(),C=s?.isRangeSelectionEnabledWhileEditing(),w=o?.getCellValidationModel().getCellValidationMap().size??0,b=o?.getRowValidationModel().getRowValidationMap().size??0;if(v&&(C||w>0||b>0))return;s?.shouldStartEditing(l,e)?s?.startEditing(l,{event:e}):s?.shouldStopEditing(l,e)&&(this.beans.gos.get("editType")==="fullRow"?s?.stopEditing(l,{event:e,source:"edit"}):s?.stopEditing(void 0,{event:e,source:"edit"}))}}onCellDoubleClicked(e){const{column:t,beans:i,cellCtrl:s}=this,{eventSvc:o,frameworkOverrides:n,editSvc:r,editModelSvc:a,gos:l}=i,c=sl(l,s.column,s.rowNode,e),d=t.getColDef(),u=s.createEvent(e,"cellDoubleClicked");if(u.isEventHandlingSuppressed=c,o.dispatchEvent(u),typeof d.onCellDoubleClicked=="function"&&window.setTimeout(()=>{n.wrapOutgoing(()=>{d.onCellDoubleClicked(u)})},0),!c&&r?.shouldStartEditing(s,e)&&a?.getState(s)!=="editing"){const h=r?.isEditing(),p=r?.isRangeSelectionEnabledWhileEditing(),m=a?.getCellValidationModel().getCellValidationMap().size??0,v=a?.getRowValidationModel().getRowValidationMap().size??0;if(h&&(p||m>0||v>0))return;r?.startEditing(s,{event:e})}}onMouseDown(e){const{shiftKey:t}=e,i=e.target,{cellCtrl:s,beans:o}=this,{eventSvc:n,rangeSvc:r,rowNumbersSvc:a,focusSvc:l,gos:c,editSvc:d}=o,{column:u,rowNode:h,cellPosition:p}=s,m=sl(c,u,h,e),v=()=>{const x=s.createEvent(e,"cellMouseDown");x.isEventHandlingSuppressed=m,n.dispatchEvent(x)};if(m){v();return}if(this.isRightClickInExistingRange(e))return;const C=r&&!r.isEmpty(),w=this.containsWidget(i),b=At(u);if(!(a&&b&&!a.handleMouseDownOnCell(p,e))){if(!t||!C){const x=d?.isEditing(s),S=c.get("enableCellTextSelection")&&e.defaultPrevented,E=(Ls()||S)&&!x&&!hr(i)&&!w;s.focusCell(E,e)}if(t&&C&&!l.isCellFocused(p)){e.preventDefault();const x=l.getFocusedCell();if(x){const{column:y,rowIndex:S,rowPinned:E}=x,R=!!d?.isRangeSelectionEnabledWhileEditing?.();d?.isEditing(x)&&!R&&d?.stopEditing(x),R||l.setFocusedCell({column:y,rowIndex:S,rowPinned:E,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,sourceEvent:e})}}w||(r?.handleCellMouseDown(e,p),v())}}isRightClickInExistingRange(e){const{rangeSvc:t}=this.beans;if(t){const i=t.isCellInAnyRange(this.cellCtrl.cellPosition),s=Q2(this.beans,e);if(i&&s)return!0}return!1}containsWidget(e){return Js(e,"ag-selection-checkbox",3)||Js(e,"ag-drag-handle",3)}onMouseOut(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:i}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),i?.clearMouseOver()}onMouseOver(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:i}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),i?.setMouseOver([this.column])}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;const t=this.cellCtrl.eGui,i=t.contains(e.target),s=t.contains(e.relatedTarget);return i&&s}},h6=class extends B{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.column=e.column,this.rowNode=e.rowNode}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}init(){this.eSetLeft=this.cellCtrl.getRootElement(),this.eContent=this.cellCtrl.eGui;const e=this.cellCtrl.getCellSpan();if(e||(this.setupColSpan(),this.setupRowSpan()),this.onLeftChanged(),this.onWidthChanged(),e||this._legacyApplyRowSpan(),e){const t=this.refreshSpanHeight.bind(this,e);t(),this.addManagedListeners(this.beans.eventSvc,{paginationChanged:t,recalculateRowBounds:t,pinnedHeightChanged:t})}}refreshSpanHeight(e){const t=e.getCellHeight();t!=null&&(this.eContent.style.height=`${t}px`)}onNewColumnsLoaded(){const e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this._legacyApplyRowSpan(!0))}onDisplayColumnsChanged(){const e=this.getColSpanningList();Ms(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eContent)return;const e=this.getCellWidth();this.eContent.style.width=`${e}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((e,t)=>e+t.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){const{column:e,rowNode:t}=this,i=e.getColSpan(t),s=[];if(i===1)s.push(e);else{let o=e;const n=e.getPinned();for(let r=0;o&&r<i&&(s.push(o),o=this.beans.visibleCols.getColAfter(o),!(!o||it(o)||n!==o.getPinned()));r++);}return s}onLeftChanged(){if(!this.eSetLeft)return;const e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eSetLeft.style.left=e+"px"}getCellLeft(){let e;return this.beans.gos.get("enableRtl")&&this.colsSpanning?e=$e(this.colsSpanning):e=this.column,e.getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.printLayout||this.column.getPinned()==="left")return e;const{visibleCols:t}=this.beans,i=t.getColsLeftWidth();if(this.column.getPinned()==="right"){const s=t.bodyWidth;return i+s+(e||0)}return i+(e||0)}_legacyApplyRowSpan(e){if(this.rowSpan===1&&!e)return;const i=io(this.beans)*this.rowSpan;this.eContent.style.height=`${i}px`,this.eContent.style.zIndex="1"}destroy(){super.destroy()}},p6="ag-cell",g6="ag-cell-auto-height",f6="ag-cell-normal-height",m6="ag-cell-focus",v6="ag-cell-first-right-pinned",C6="ag-cell-last-left-pinned",w6="ag-cell-not-inline-editing",b6="ag-cell-wrap-text",x6=0,fn=class extends B{constructor(e,t,i,s){super(),this.column=e,this.rowNode=t,this.rowCtrl=s,this.rangeFeature=void 0,this.rowResizeFeature=void 0,this.positionFeature=void 0,this.customStyleFeature=void 0,this.editStyleFeature=void 0,this.mouseListener=void 0,this.keyboardListener=void 0,this.suppressRefreshCell=!1,this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.focusEventWhileNotReady=null,this.hasBeenFocused=!1,this.hasEdit=!1,this.tooltipFeature=void 0,this.editorTooltipFeature=void 0,this.beans=i,this.gos=i.gos,this.editSvc=i.editSvc,this.hasEdit=!!i.editSvc;const{colId:o}=e;this.instanceId=o+"-"+x6++,this.createCellPosition(),this.updateAndFormatValue(!1)}addFeatures(){const{beans:e}=this;this.positionFeature=new h6(this,e),this.customStyleFeature=e.cellStyles?.createCellCustomStyleFeature(this),this.editStyleFeature=e.editSvc?.createCellStyleFeature(this),this.mouseListener=new u6(this,e,this.column),this.keyboardListener=new d6(this,e,this.rowNode,this.rowCtrl),this.enableTooltipFeature();const{rangeSvc:t}=e;t&&Fs(e.gos)&&(this.rangeFeature=t.createCellRangeFeature(this)),At(this.column)&&(this.rowResizeFeature=this.beans.rowNumbersSvc.createRowNumbersRowResizerFeature(this))}isCellSpanning(){return!1}getCellSpan(){}removeFeatures(){const e=this.beans.context;this.positionFeature=e.destroyBean(this.positionFeature),this.editorTooltipFeature=e.destroyBean(this.editorTooltipFeature),this.customStyleFeature=e.destroyBean(this.customStyleFeature),this.editStyleFeature=e.destroyBean(this.editStyleFeature),this.mouseListener=e.destroyBean(this.mouseListener),this.keyboardListener=e.destroyBean(this.keyboardListener),this.rangeFeature=e.destroyBean(this.rangeFeature),this.rowResizeFeature=e.destroyBean(this.rowResizeFeature),this.disableTooltipFeature()}enableTooltipFeature(e,t){this.tooltipFeature=this.beans.tooltipSvc?.enableCellTooltipFeature(this,e,t)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}enableEditorTooltipFeature(e){this.editorTooltipFeature&&this.disableEditorTooltipFeature(),this.editorTooltipFeature=this.beans.tooltipSvc?.setupCellEditorTooltip(this,e),Ss(this.beans)}disableEditorTooltipFeature(){this.editorTooltipFeature=this.beans.context.destroyBean(this.editorTooltipFeature)}setComp(e,t,i,s,o,n,r){this.comp=e,this.eGui=t,this.printLayout=o,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(s,r),this.refreshFirstAndLastStyles(),this.checkFormulaError(),this.refreshAriaRowIndex(),this.refreshAriaColIndex(),this.positionFeature?.init(),this.customStyleFeature?.setComp(e),this.editStyleFeature?.setComp(e),this.tooltipFeature?.refreshTooltip(),this.keyboardListener?.init(),this.rangeFeature?.setComp(e),this.rowResizeFeature?.refreshRowResizer();const a=n?this.isCellEditable():void 0,l=!a&&this.hasEdit&&this.editSvc?.isEditing(this,{withOpenEditor:!0});if(a||l?this.editSvc?.startEditing(this,{startedEdit:!1,source:"api",silent:!0,continueEditing:!0,editable:a}):this.showValue(!1,!0),this.onCompAttachedFuncs.length){for(const c of this.onCompAttachedFuncs)c();this.onCompAttachedFuncs=[]}}checkFormulaError(){const e=!!this.beans.formula?.getFormulaError(this.column,this.rowNode);this.eGui.classList.toggle("formula-error",e)}setupAutoHeight(e,t){this.isAutoHeight=this.beans.rowAutoHeight?.setupCellAutoHeight(this,e,t)??!1}getCellAriaRole(){return this.column.getColDef().cellAriaRole??"gridcell"}isCellRenderer(){const e=this.column.getColDef();return e.cellRenderer!=null||e.cellRendererSelector!=null}getValueToDisplay(){return this.valueFormatted??this.value}getDeferLoadingCellRenderer(){const{beans:e,column:t}=this,{userCompFactory:i,ctrlsSvc:s,eventSvc:o}=e,n=t.getColDef(),r=this.createCellRendererParams();r.deferRender=!0;const a=Ag(i,n,r);if(s.getGridBodyCtrl()?.scrollFeature?.isScrolling()){let l;const c=new Ne(u=>{l=u}),[d]=this.addManagedListeners(o,{bodyScrollEnd:()=>{l(),d()}});return{loadingComp:a,onReady:c}}return{loadingComp:a,onReady:Ne.resolve()}}showValue(e,t){const{beans:i,column:s,rowNode:o,rangeFeature:n}=this,{userCompFactory:r}=i;let a=this.getValueToDisplay(),l;const c=o.stub&&o.groupData?.[s.getId()]==null,d=s.getColDef();if(c||this.isCellRenderer()){const u=this.createCellRendererParams();!c||At(s)?l=Mg(r,d,u):l=Ag(r,d,u)}if(!l&&!c&&i.findSvc?.isMatch(o,s)){const u=this.createCellRendererParams();l=Mg(r,{...s.getColDef(),cellRenderer:"agFindCellRenderer"},u)}if(this.hasEdit&&this.editSvc.isBatchEditing()&&this.editSvc.isRowEditing(o,{checkSiblings:!0})){const u=this.editSvc.prepDetailsDuringBatch(this,{compDetails:l,valueToDisplay:a});u&&(u.compDetails?l=u.compDetails:u.valueToDisplay&&(a=u.valueToDisplay))}this.comp.setRenderDetails(l,a,e),this.customRowDragComp?.refreshVisibility(),!t&&n&&os(i,()=>n?.refreshRangeStyleAndHandle()),this.rowResizeFeature?.refreshRowResizer()}setupControlComps(){const e=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(e),!0),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.comp.setIncludeSelection(this.includeSelection),this.comp.setIncludeDndSource(this.includeDndSource),this.comp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}getCellValueClass(){const e="ag-cell-value",t=this.column.getColDef().cellRenderer==="agCheckboxCellRenderer";let i="";return t&&(i=" ag-allow-overflow"),`${e}${i}`}isIncludeControl(e,t=!1){return(this.rowNode.rowPinned==null||t&&cc(this.rowNode))&&!!e}isCheckboxSelection(e){const{rowSelection:t,groupDisplayType:i}=this.beans.gridOptions,s=xl(t),o=As(this.column);return i==="custom"&&s!=="selectionColumn"&&o?!1:e.checkboxSelection||o&&typeof t=="object"&&cn(t)}refreshShouldDestroy(){const e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(e),!0),i=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),s=this.includeDndSource!=this.isIncludeControl(e.dndSource),o=this.isAutoHeight!=this.column.isAutoHeight();return t||i||s||o}onPopupEditorClosed(e){const{editSvc:t}=this.beans;if(!t?.isEditing(this,{withOpenEditor:!0}))return;const i=e instanceof KeyboardEvent,s=e instanceof MouseEvent,o=i&&e.key===A.ESCAPE;t.stopEditing(this,{source:t.isBatchEditing()?"ui":"api",cancel:o,event:i||s?e:void 0}),o&&this.focusCell(!0,e)}stopEditing(e=!1){const{editSvc:t}=this.beans;return t?.stopEditing(this,{cancel:e,source:t?.isBatchEditing()?"ui":"api"})??!1}createCellRendererParams(){const{value:e,valueFormatted:t,column:i,rowNode:s,comp:o,eGui:n,beans:{valueSvc:r,gos:a,editSvc:l}}=this;return xe(a,{value:e,valueFormatted:t,getValue:()=>r.getValueForDisplay({column:i,node:s,from:"edit"}).value,setValue:d=>l?.setDataValue({rowNode:s,column:i},d)||s.setDataValue(i,d),formatValue:this.formatValue.bind(this),data:s.data,node:s,pinned:i.getPinned(),colDef:i.getColDef(),column:i,refreshCell:this.refreshCell.bind(this),eGridCell:n,eParentOfValue:o.getParentOfValue(),registerRowDragger:(d,u,h,p)=>this.registerRowDragger(d,u,p),setTooltip:(d,u)=>{a.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(d,u),this.tooltipFeature?.refreshTooltip()}})}onCellChanged(e){e.column===this.column&&this.refreshCell()}refreshOrDestroyCell(e){if(this.refreshShouldDestroy()?this.rowCtrl?.recreateCell(this):this.refreshCell(e),this.hasEdit&&this.editCompDetails){const{editSvc:t,comp:i}=this;!i?.getCellEditor()&&t.isEditing(this,{withOpenEditor:!0})&&t.startEditing(this,{startedEdit:!1,source:"api",silent:!0})}}refreshCell(e){const{editStyleFeature:t,customStyleFeature:i,rowCtrl:{rowEditStyleFeature:s},beans:{cellFlashSvc:o,filterManager:n},column:r,comp:a,suppressRefreshCell:l,tooltipFeature:c}=this;if(l)return;const{field:d,valueGetter:u,showRowGroup:h,enableCellChangeFlash:p}=r.getColDef(),m=d==null&&u==null&&h==null,v=e?.newData??!1,C=m||e&&(e.force||v),w=!!a,b=this.updateAndFormatValue(w),x=C||b;if(w){if(x){this.showValue(!!v,!1);const y=n?.isSuppressFlashingCellsBecauseFiltering();!e?.suppressFlash&&!y&&p&&o?.flashCell(this),t?.applyCellStyles?.(),i?.applyUserStyles(),i?.applyClassesFromColDef(),s?.applyRowStyles(),this.checkFormulaError()}c?.refreshTooltip(),i?.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,i=this.valueFormatted,{value:s,valueFormatted:o}=this.beans.valueSvc.getValueForDisplay({column:this.column,node:this.rowNode,includeValueFormatted:!0,from:"edit"});return this.value=s,this.valueFormatted=o,e?!this.valuesAreEqual(t,this.value)||this.valueFormatted!=i:!0}valuesAreEqual(e,t){const i=this.column.getColDef();return i.equals?i.equals(e,t):e===t}addDomData(e){const t=this.eGui;po(this.beans.gos,t,kl,this),e.addDestroyFunc(()=>po(this.beans.gos,t,kl,null))}createEvent(e,t){const{rowNode:i,column:s,value:o,beans:n}=this;return l6(n,e,t,{rowNode:i,column:s},o)}processCharacter(e){this.keyboardListener?.processCharacter(e)}onKeyDown(e){this.keyboardListener?.onKeyDown(e)}onMouseEvent(e,t){this.mouseListener?.onMouseEvent(e,t)}getColSpanningList(){return this.positionFeature?.getColSpanningList()??[]}onLeftChanged(){this.comp&&this.positionFeature?.onLeftChanged()}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){const{comp:e,column:t,beans:i}=this;bC(e,t,i.visibleCols)}refreshAriaColIndex(){const e=this.beans.visibleCols.getAriaColIndex(this.column);pv(this.eGui,e)}onWidthChanged(){return this.positionFeature?.onWidthChanged()}getRowPosition(){const{rowIndex:e,rowPinned:t}=this.cellPosition;return{rowIndex:e,rowPinned:t}}updateRangeBordersIfRangeCount(){this.comp&&this.rangeFeature?.updateRangeBordersIfRangeCount()}onCellSelectionChanged(){this.comp&&this.rangeFeature?.onCellSelectionChanged()}isRangeSelectionEnabled(){return this.rangeFeature!=null}focusCell(e=!1,t){const i=this.editSvc?.allowedFocusTargetOnValidation(this);i&&i!==this||this.beans.focusSvc.setFocusedCell({...this.getFocusedCellPosition(),forceBrowserFocus:e,sourceEvent:t})}restoreFocus(e=!1){const{beans:{editSvc:t,focusSvc:i},comp:s}=this;if(!s||t?.isEditing(this)||!this.isCellFocused()||!i.shouldTakeFocus())return;const o=()=>{if(!this.isAlive())return;const n=s.getFocusableElement();this.isCellFocused()&&n.focus({preventScroll:!0})};if(e){setTimeout(o,0);return}o()}onRowIndexChanged(){this.createCellPosition(),this.refreshAriaRowIndex(),this.onCellFocused(),this.restoreFocus(),this.rangeFeature?.onCellSelectionChanged(),this.rowResizeFeature?.refreshRowResizer()}onSuppressCellFocusChanged(e){const t=this.eGui;t&&Vt(t,"tabindex",e?void 0:-1)}onFirstRightPinnedChanged(){if(!this.comp)return;const e=this.column.isFirstRightPinned();this.comp.toggleCss(v6,e)}onLastLeftPinnedChanged(){if(!this.comp)return;const e=this.column.isLastLeftPinned();this.comp.toggleCss(C6,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(Lr(t))return;if(!this.comp){e&&(this.focusEventWhileNotReady=e);return}const i=this.isCellFocused(),s=t.editSvc?.isEditing(this)??!1;if(this.comp.toggleCss(m6,i),i&&(e?.forceBrowserFocus||!this.hasBrowserFocus()&&this.beans.focusSvc.shouldTakeFocus())){let o=this.comp.getFocusableElement();if(s){const r=oo(o,null,!0);r.length&&(o=r[0])}const n=e?e.preventScrollOnBrowserFocus:!0;o.focus({preventScroll:n}),e2(t,o)}i&&this.focusEventWhileNotReady&&(this.focusEventWhileNotReady=null),i&&e&&this.rowCtrl.announceDescription()}createCellPosition(){const{rowIndex:e,rowPinned:t}=this.rowNode;this.cellPosition={rowIndex:e,rowPinned:Yi(t),column:this.column}}applyStaticCssClasses(){const{comp:e}=this;e.toggleCss(p6,!0),e.toggleCss(w6,!0);const t=this.column.isAutoHeight()==!0;e.toggleCss(g6,t),e.toggleCss(f6,!t)}onColumnHover(){this.beans.colHover?.onCellColumnHover(this.column,this.comp)}onColDefChanged(){this.comp&&(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editSvc?.isEditing(this)?this.editSvc?.handleColDefChanged(this):this.refreshOrDestroyCell({force:!0,suppressFlash:!0}))}setWrapText(){const e=this.column.getColDef().wrapText==!0;this.comp.toggleCss(b6,e)}dispatchCellContextMenuEvent(e){const t=this.column.getColDef(),i=this.createEvent(e,"cellContextMenu"),{beans:s}=this;s.eventSvc.dispatchEvent(i),t.onCellContextMenu&&window.setTimeout(()=>{s.frameworkOverrides.wrapOutgoing(()=>{t.onCellContextMenu(i)})},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(Je(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,i){if(this.customRowDragComp){this.customRowDragComp.setDragElement(e,t);return}const s=this.createRowDragComp(e,t,i);s&&(this.customRowDragComp=s,this.addDestroyFunc(()=>{this.beans.context.destroyBean(s),this.customRowDragComp=null}),s.refreshVisibility())}createRowDragComp(e,t,i){const s=this.beans.rowDragSvc?.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,e,t,i);if(s)return this.beans.context.createBean(s),s}cellEditorAttached(){for(const e of this.onEditorAttachedFuncs)e();this.onEditorAttachedFuncs=[]}setFocusedCellPosition(e){}getFocusedCellPosition(){return this.cellPosition}refreshAriaRowIndex(){if(!At(this.column)||!this.eGui)return;const{ariaRowIndex:e}=this.rowCtrl;e!=null&&vh(this.eGui,e)}getRootElement(){return this.eGui}};function tp(e,t,i,s,o,n){if(i==null&&t==null)return;const r={},a={},l=(c,d)=>{for(const u of c.split(" "))u.trim()!=""&&d(u)};if(i){const c=Object.keys(i);for(let d=0;d<c.length;d++){const u=c[d],h=i[u];let p;typeof h=="string"?p=e?e.evaluate(h,s):!0:typeof h=="function"&&(p=h(s)),l(u,m=>{p?r[m]=!0:a[m]=!0})}}if(t&&n)for(const c of Object.keys(t))l(c,d=>{r[d]||(a[d]=!0)});n&&Object.keys(a).forEach(n),Object.keys(r).forEach(o)}function Ef(e){if(e.group)return e.level;const t=e.parent;return t?t.level+1:0}var y6=class extends B{constructor(){super(...arguments),this.beanName="rowStyleSvc"}processClassesFromGridOptions(e,t){const i=this.gos,s=r=>{if(typeof r=="string")e.push(r);else if(Array.isArray(r))for(const a of r)e.push(a)},o=i.get("rowClass");o&&s(o);const n=i.getCallback("getRowClass");if(n){const r={data:t.data,node:t,rowIndex:t.rowIndex},a=n(r);s(a)}}preProcessRowClassRules(e,t){this.processRowClassRules(t,i=>{e.push(i)},()=>{})}processRowClassRules(e,t,i){const{gos:s,expressionSvc:o}=this.beans,n=xe(s,{data:e.data,node:e,rowIndex:e.rowIndex});tp(o,void 0,s.get("rowClassRules"),n,t,i)}processStylesFromGridOptions(e){const t=this.gos,i=t.get("rowStyle"),s=t.getCallback("getRowStyle");let o;if(s){const n={data:e.data,node:e,rowIndex:e.rowIndex};o=s(n)}if(o||i)return Object.assign({},i,o)}},S6=0,Nl=class extends B{constructor(e,t,i,s,o){super(),this.rowNode=e,this.useAnimationFrameForCreate=s,this.printLayout=o,this.focusEventWhileNotReady=null,this.allRowGuis=[],this.active=!0,this.centerCellCtrls={list:[],map:{}},this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}},this.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.rowDragComps=[],this.lastMouseDownOnDragger=!1,this.emptyStyle={},this.updateColumnListsPending=!1,this.rowId=null,this.ariaRowIndex=null,this.businessKey=null,this.beans=t,this.gos=t.gos,this.paginationPage=t.pagination?.getCurrentPage()??0,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=e.id+"-"+S6++,this.rowId=ur(e.id),this.initRowBusinessKey(),this.rowFocused=t.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=Ef(this.rowNode),this.setRowType(),this.setAnimateFlags(i),this.rowStyles=this.processStylesFromGridOptions(),this.rowEditStyleFeature=t.editSvc?.createRowStyleFeature(this),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if(typeof this.businessKeyForNodeFunc!="function")return;const e=this.businessKeyForNodeFunc(this.rowNode);this.businessKey=ur(e)}updateGui(e,t){e==="left"?this.leftGui=t:e==="right"?this.rightGui=t:e==="fullWidth"?this.fullWidthGui=t:this.centerGui=t}setComp(e,t,i,s){const{context:o,rowRenderer:n}=this.beans;s=Ur(this,o,s);const r={rowComp:e,element:t,containerType:i,compBean:s};this.allRowGuis.push(r),this.updateGui(i,r),this.initialiseRowComp(r);const a=this.rowNode,l=this.rowType==="FullWidthLoading"||a.stub,c=!a.data&&this.beans.rowModel.getType()==="infinite";!l&&!c&&!a.rowPinned&&n.dispatchFirstDataRenderedEvent(),this.setupFocus()}unsetComp(e){this.allRowGuis=this.allRowGuis.filter(t=>t.containerType!==e),this.updateGui(e,void 0)}isCacheable(){return this.rowType==="FullWidthDetail"&&this.gos.get("keepDetailRows")}setCached(e){const t=e?"none":"";for(const i of this.allRowGuis)i.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),to(t)&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);const i=e.rowComp,s=this.getInitialRowClasses(e.containerType);for(const o of s)i.toggleCss(o,!0);this.executeSlideAndFadeAnimations(e),this.rowNode.group&&pu(e.element,!!this.rowNode.expanded),this.setRowCompRowId(i),this.setRowCompRowBusinessKey(i),po(t,e.element,Il,this),e.compBean.addDestroyFunc(()=>po(t,e.element,Il,null)),this.useAnimationFrameForCreate?this.beans.animationFrameSvc.createTask(this.addHoverFunctionality.bind(this,e),this.rowNode.rowIndex,"p2",!1):this.addHoverFunctionality(e),this.isFullWidth()&&this.setupFullWidth(e),t.get("rowDragEntireRow")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameSvc.addDestroyTask(()=>{this.isAlive()&&e.rowComp.toggleCss("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(e){this.businessKey!=null&&e.setRowBusinessKey(this.businessKey)}setRowCompRowId(e){const t=ur(this.rowNode.id);this.rowId=t,t!=null&&e.setRowId(t)}executeSlideAndFadeAnimations(e){const{containerType:t}=e;this.slideInAnimation[t]&&(fu(()=>{this.onTopChanged()}),this.slideInAnimation[t]=!1),this.fadeInAnimation[t]&&(fu(()=>{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 i=this.createBean(t,this.beans.context);this.rowDragComps.push(i),e.compBean.addDestroyFunc(()=>{this.rowDragComps=this.rowDragComps.filter(s=>s!==i),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,this.beans.context),this.destroyBean(i,this.beans.context)})}setupFullWidth(e){const t=this.getPinnedForContainer(e.containerType),i=this.createFullWidthCompDetails(e.element,t);e.rowComp.showFullWidth(i)}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:i,beans:{visibleCols:s}}=this,o=!!e||!s.isPinningLeft(),n=!!t,r=!!i||!s.isPinningRight();return o&&n&&r}isNodeFullWidthCell(){if(this.rowNode.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return e?e({rowNode:this.rowNode}):!1}setRowType(){const{rowNode:e,gos:t,beans:{colModel:i}}=this,s=e.stub&&!t.get("suppressServerSideFullWidthLoadingRow")&&!t.get("groupHideOpenParents"),o=this.isNodeFullWidthCell(),n=t.get("masterDetail")&&e.detail,r=i.isPivotMode(),a=_v(t,e,r);s?this.rowType="FullWidthLoading":n?this.rowType="FullWidthDetail":o?this.rowType="FullWidth":a?this.rowType="FullWidthGroup":this.rowType="Normal"}updateColumnLists(e=!1,t=!1){if(this.isFullWidth())return;const{animationFrameSvc:i}=this.beans;if(!i?.active||e||this.printLayout){this.updateColumnListsImpl(t);return}this.updateColumnListsPending||(i.createTask(()=>{this.active&&this.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"p1",!1),this.updateColumnListsPending=!0)}getNewCellCtrl(e){if(!this.beans.rowSpanSvc?.isCellSpanning(e,this.rowNode))return new fn(e,this.rowNode,this.beans,this)}isCorrectCtrlForSpan(e){return!this.beans.rowSpanSvc?.isCellSpanning(e.column,this.rowNode)}createCellCtrls(e,t,i=null){const s={list:[],map:{}},o=(c,d,u)=>{u!=null?s.list.splice(u,0,d):s.list.push(d),s.map[c]=d},n=[];for(const c of t){const d=c.getInstanceId();let u=e.map[d];u&&!this.isCorrectCtrlForSpan(u)&&(u.destroy(),u=void 0),u||(u=this.getNewCellCtrl(c)),u&&o(d,u)}for(const c of e.list){const d=c.column.getInstanceId();if(s.map[d]!=null)continue;!this.isCellEligibleToBeRemoved(c,i)?n.push([d,c]):c.destroy()}if(n.length)for(const[c,d]of n){const u=s.list.findIndex(p=>p.column.getLeft()>d.column.getLeft()),h=u===-1?void 0:Math.max(u-1,0);o(c,d,h)}const{focusSvc:r,visibleCols:a}=this.beans,l=r.getFocusedCell();if(l&&l.column.getPinned()==i){const c=l.column.getInstanceId();if(!s.map[c]&&a.allCols.includes(l.column)){const u=this.createFocusedCellCtrl();if(u){const h=s.list.findIndex(m=>m.column.getLeft()>u.column.getLeft()),p=h===-1?void 0:Math.max(h-1,0);o(c,u,p)}}}return s}createFocusedCellCtrl(){const{focusSvc:e,rowSpanSvc:t}=this.beans,i=e.getFocusedCell();if(!i)return;const s=t?.getCellSpan(i.column,this.rowNode);if(s){if(s.firstNode!==this.rowNode||!s.doesSpanContain(i))return}else if(!e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned))return;return this.getNewCellCtrl(i.column)}updateColumnListsImpl(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(e)}setCellCtrls(e){for(const t of this.allRowGuis){const i=this.getCellCtrlsForContainer(t.containerType);t.rowComp.setCellCtrls(i,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 i=e.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,i);const s=t.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,s,"left");const o=t.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,o,"right")}}isCellEligibleToBeRemoved(e,t){const{column:o}=e;if(o.getPinned()!=t||!this.isCorrectCtrlForSpan(e))return!0;const{visibleCols:n,editSvc:r}=this.beans,a=r?.isEditing(e),l=e.isCellFocused();return a||l?!(n.allCols.indexOf(o)>=0):!0}getDomOrder(){return this.gos.get("ensureDomOrder")||yt(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=te(this.rowNode.oldRowTop),{visibleCols:i}=this.beans,s=i.isPinningLeft(),o=i.isPinningRight();if(t){const{slideInAnimation:n}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){n.fullWidth=!0;return}n.center=!0,n.left=s,n.right=o}else{const{fadeInAnimation:n}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){n.fullWidth=!0;return}n.center=!0,n.left=s,n.right=o}}isFullWidth(){return this.rowType!=="Normal"}refreshFullWidth(){const e=(r,a)=>r?r.rowComp.refreshFullWidth(()=>this.createFullWidthCompDetails(r.element,a).params):!0,t=e(this.fullWidthGui,null),i=e(this.centerGui,null),s=e(this.leftGui,"left"),o=e(this.rightGui,"right");return t&&i&&s&&o}addListeners(){const{beans:e,gos:t,rowNode:i}=this,{expansionSvc:s,eventSvc:o,context:n,rowSpanSvc:r}=e;this.addManagedListeners(this.rowNode,{heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this),...s?.getRowExpandedListeners(this)??{}}),i.detail&&this.addManagedListeners(i.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(i,{dataChanged:this.onRowNodeDataChanged.bind(this),cellChanged:this.postProcessCss.bind(this),rowHighlightChanged:this.onRowNodeHighlightChanged.bind(this),draggingChanged:this.postProcessRowDragging.bind(this),uiLevelChanged:this.onUiLevelChanged.bind(this),rowPinned:this.onRowPinned.bind(this)}),this.addManagedListeners(o,{paginationPixelOffsetChanged:this.onPaginationPixelOffsetChanged.bind(this),heightScaleChanged:this.onTopChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:this.onVirtualColumnsChanged.bind(this),cellFocused:this.onCellFocusChanged.bind(this),cellFocusCleared:this.onCellFocusChanged.bind(this),paginationChanged:this.onPaginationChanged.bind(this),modelUpdated:this.refreshFirstAndLastRowStyles.bind(this),columnMoved:()=>this.updateColumnLists()}),r&&this.addManagedListeners(r,{spannedCellsUpdated:({pinned:a})=>{a&&!i.rowPinned||this.updateColumnLists()}}),this.addDestroyFunc(()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,n),this.tooltipFeature=this.destroyBean(this.tooltipFeature,n),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,n)}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{if(t.get("rowDragEntireRow")){for(const l of this.allRowGuis)this.addRowDraggerToRow(l);return}this.rowDragComps=this.destroyBeans(this.rowDragComps,n)}),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListeners(this.rowNode,{rowIndexChanged:()=>{for(const e of this.getAllCellCtrls())e.onRowIndexChanged()},cellChanged:e=>{for(const t of this.getAllCellCtrls())t.onCellChanged(e)}})}onRowPinned(){for(const e of this.allRowGuis)e.rowComp.toggleCss("ag-row-pinned-source",!!this.rowNode.pinnedSibling)}onRowNodeDataChanged(e){this.refreshRow({suppressFlash:!e.update,newData:!e.update})}refreshRow(e){if(this.isFullWidth()!==!!this.isNodeFullWidthCell()){this.beans.rowRenderer.redrawRow(this.rowNode);return}if(this.isFullWidth()){this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode);return}for(const i of this.getAllCellCtrls())i.refreshCell(e);for(const i of this.allRowGuis)this.setRowCompRowId(i.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(i.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",i=t==="above",s=t==="inside",o=t==="below",n=t!=="none",r=i||o,a=this.rowNode.uiLevel,l=r&&a>0,c=l?a.toString():"0";for(const d of this.allRowGuis){const u=d.rowComp;u.toggleCss("ag-row-highlight-above",i),u.toggleCss("ag-row-highlight-inside",s),u.toggleCss("ag-row-highlight-below",o),u.toggleCss("ag-row-highlight-indent",l),n?d.element.style.setProperty("--ag-row-highlight-level",c):d.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:Yi(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}onKeyboardNavigate(e){const t=this.findFullWidthInfoForEvent(e);if(!t)return;const{rowGui:i,column:s}=t;if(!(i.element===e.target))return;const r=this.rowNode,{focusSvc:a,navigation:l}=this.beans,c=a.getFocusedCell(),d={rowIndex:r.rowIndex,rowPinned:r.rowPinned,column:c?.column??s};l?.navigateToNextCell(e,e.key,d,!0),e.preventDefault()}onTabKeyDown(e){if(e.defaultPrevented||Xi(e))return;const t=this.allRowGuis.find(a=>a.element.contains(e.target)),i=t?t.element:null,s=i===e.target,o=Je(this.beans);let n=!1;i&&o&&(n=i.contains(o)&&o.classList.contains("ag-cell"));let r=null;!s&&!n&&(r=Eo(this.beans,i,!1,e.shiftKey)),(this.isFullWidth()&&s||!r)&&this.beans.navigation?.onTabKeyDown(this,e)}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){const e=this.allRowGuis.find(t=>yi(t.element))?.element;return e?e.getBoundingClientRect().top:0}onSuppressCellFocusChanged(e){const t=this.isFullWidth()&&e?void 0:this.gos.get("tabIndex");for(const i of this.allRowGuis)Vt(i.element,"tabindex",t)}setupFocus(){this.isFullWidth()&&(this.restoreFullWidthFocus(!0),this.onFullWidthRowFocused(this.focusEventWhileNotReady??void 0))}restoreFullWidthFocus(e=!1){const{focusSvc:t,editSvc:i}=this.beans;if(i?.isEditing(this)||!t.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned)||!t.shouldTakeFocus())return;const s=this.getFullWidthRowGuiForFocus();if(!s)return;const o=()=>{this.isAlive()&&t.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned)&&s.element.focus({preventScroll:!0})};if(e){setTimeout(o,0);return}o()}getFullWidthRowGuiForFocus(e){if(this.fullWidthGui)return this.fullWidthGui;const t=this.beans.focusSvc.getFocusedCell(),i=this.beans.colModel.getCol(e?.column??t?.column);if(!i)return;const s=i?.pinned;return s==="right"?this.rightGui:s==="left"?this.leftGui:this.centerGui}setFullWidthRowFocusedClass(e,t){this.forEachGui(void 0,i=>{i.element.classList.toggle("ag-full-width-focus",t&&i===e)})}onFullWidthRowFocused(e){const{focusSvc:t}=this.beans;if(!(this.isFullWidth()&&t.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned))){this.setFullWidthRowFocusedClass(void 0,!1);return}const s=this.getFullWidthRowGuiForFocus(e);if(!s){e&&(this.focusEventWhileNotReady=e),this.setFullWidthRowFocusedClass(void 0,!1);return}this.setFullWidthRowFocusedClass(s,!0),this.focusEventWhileNotReady=null,e?.forceBrowserFocus&&s.element.focus({preventScroll:!0})}recreateCell(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),e.destroy(),this.updateColumnLists()}removeCellCtrl(e,t){const i={list:[],map:{}};for(const s of e.list)s!==t&&(i.list.push(s),i.map[s.column.getInstanceId()]=s);return i}onMouseEvent(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"pointerdown":case"touchstart":case"mousedown":this.onRowMouseDown(t);break}}createRowEvent(e,t){const{rowNode:i}=this;return xe(this.gos,{type:e,node:i,data:i.data,rowIndex:i.rowIndex,rowPinned:i.rowPinned,event:t})}createRowEventWithSource(e,t){const i=this.createRowEvent(e,t);return i.source=this,i}onRowDblClick(e){if(Xi(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),i=this.getColumnForFullWidth(t);if(!(!t||!i))return{rowGui:t,column:i}}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=Js(e.target,"ag-row-drag",3),!this.isFullWidth()||this.isSuppressMouseEvent(e))return;const{rangeSvc:t,focusSvc:i}=this.beans;t?.removeAllCellRanges();const s=this.findFullWidthInfoForEvent(e);if(!s)return;const{rowGui:o,column:n}=s,r=o.element,a=e.target,l=this.rowNode;let c=e.defaultPrevented||Ls();r&&r.contains(a)&&hr(a)&&(c=!1),i.setFocusedCell({rowIndex:l.rowIndex,column:n,rowPinned:l.rowPinned,forceBrowserFocus:c})}isSuppressMouseEvent(e){const{gos:t,rowNode:i}=this;if(this.isFullWidth()){const o=this.findFullWidthRowGui(e.target);return vF(t,o?.rowComp.getFullWidthCellRendererParams(),i,e)}const s=Uh(t,e.target);return s!=null&&sl(t,s.column,i,e)}onRowClick(e){if(Xi(e)||this.lastMouseDownOnDragger)return;const i=this.isSuppressMouseEvent(e),{eventSvc:s,selectionSvc:o}=this.beans,n=this.createRowEventWithSource("rowClicked",e);n.isEventHandlingSuppressed=i,s.dispatchEvent(n),!i&&o?.handleSelectionEvent(e,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(e){this.rowType==="FullWidthDetail"&&this.beans.masterDetailSvc?.setupDetailRowAutoHeight(this,e)}createFullWidthCompDetails(e,t){const{gos:i,rowNode:s}=this,o=xe(i,{fullWidth:!0,data:s.data,node:s,value:s.key,valueFormatted:s.key,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(r,a,l,c)=>this.addFullWidthRowDragging(r,a,l,c),setTooltip:(r,a)=>{i.assertModuleRegistered("Tooltip",3),this.setupFullWidthRowTooltip(r,a)}}),n=this.beans.userCompFactory;switch(this.rowType){case"FullWidthDetail":return JR(n,o);case"FullWidthGroup":{const{value:r,valueFormatted:a}=this.beans.valueSvc.getValueForDisplay({node:this.rowNode,includeValueFormatted:!0,from:"edit"});return o.value=r,o.valueFormatted=a,QR(n,o)}case"FullWidthLoading":return XR(n,o);default:return ZR(n,o)}}setupFullWidthRowTooltip(e,t){this.fullWidthGui&&(this.tooltipFeature=this.beans.tooltipSvc?.setupFullWidthRowTooltip(this.tooltipFeature,this,e,t))}addFullWidthRowDragging(e,t,i="",s){const{rowDragSvc:o,context:n}=this.beans;if(!o||!this.isFullWidth())return;const r=o.createRowDragComp(()=>i,this.rowNode,void 0,e,t,s);this.createBean(r,n),this.addDestroyFunc(()=>{this.destroyBean(r,n)})}onUiLevelChanged(){const e=Ef(this.rowNode);if(this.rowLevel!=e){const t="ag-row-level-"+e,i="ag-row-level-"+this.rowLevel;for(const s of this.allRowGuis)s.rowComp.toggleCss(t,!0),s.rowComp.toggleCss(i,!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 i of this.allRowGuis)i.rowComp.toggleCss("ag-row-first",e)}if(this.lastRowOnPage!==t){this.lastRowOnPage=t;for(const i of this.allRowGuis)i.rowComp.toggleCss("ag-row-last",t)}}getAllCellCtrls(){return this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0?this.centerCellCtrls.list:[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list]}postProcessClassesFromGridOptions(){const e=[];if(this.beans.rowStyleSvc?.processClassesFromGridOptions(e,this.rowNode),!!e.length)for(const t of e)for(const i of this.allRowGuis)i.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,i=>i.rowComp.setUserStyles(this.rowStyles))}getPinnedForContainer(e){return e==="left"||e==="right"?e:null}getInitialRowClasses(e){const t=this.getPinnedForContainer(e),i=this.isFullWidth(),{rowNode:s,beans:o}=this,n=[];n.push("ag-row"),n.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeInAnimation[e]&&n.push("ag-opacity-zero"),n.push(s.rowIndex%2===0?"ag-row-even":"ag-row-odd"),s.isRowPinned()&&(n.push("ag-row-pinned"),o.pinnedRowModel?.isManual()&&n.push("ag-row-pinned-manual")),!s.isRowPinned()&&s.pinnedSibling&&n.push("ag-row-pinned-source"),s.isSelected()&&n.push("ag-row-selected"),s.footer&&n.push("ag-row-footer"),n.push("ag-row-level-"+this.rowLevel),s.stub&&n.push("ag-row-loading"),i&&n.push("ag-full-width-row"),o.expansionSvc?.addExpandedCss(n,s),s.dragging&&n.push("ag-row-dragging");const{rowStyleSvc:r}=o;return r&&(r.processClassesFromGridOptions(n,s),r.preProcessRowClassRules(n,s)),n.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.isFirstRowOnPage()&&n.push("ag-row-first"),this.isLastRowOnPage()&&n.push("ag-row-last"),i&&(t==="left"&&n.push("ag-cell-last-left-pinned"),t==="right"&&n.push("ag-cell-first-right-pinned")),n}processStylesFromGridOptions(){return this.beans.rowStyleSvc?.processStylesFromGridOptions(this.rowNode)??this.emptyStyle}onRowSelected(e){this.beans.selectionSvc?.onRowCtrlSelected(this,t=>{(t===this.centerGui||t===this.fullWidthGui)&&this.announceDescription()},e)}announceDescription(){this.beans.selectionSvc?.announceAriaRowSelection(this.rowNode)}addHoverFunctionality(e){if(!this.active)return;const{element:t,compBean:i}=e,{rowNode:s,beans:o,gos:n}=this;i.addManagedListeners(t,{pointerenter:r=>{r.pointerType==="mouse"&&s.dispatchRowEvent("mouseEnter")},pointerleave:r=>{r.pointerType==="mouse"&&s.dispatchRowEvent("mouseLeave")}}),i.addManagedListeners(s,{mouseEnter:()=>{!o.dragSvc?.dragging&&!n.get("suppressRowHoverHighlight")&&(t.classList.add("ag-row-hover"),s.setHovered(!0))},mouseLeave:()=>{this.resetHoveredStatus(t)}})}resetHoveredStatus(e){const t=e?[e]:this.allRowGuis.map(i=>i.element);for(const i of t)i.classList.remove("ag-row-hover");this.rowNode.setHovered(!1)}roundRowTopToBounds(e){const t=this.beans.ctrlsSvc.getScrollFeature().getApproximateVScollPosition(),i=this.applyPaginationOffset(t.top,!0)-100,s=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(i,e),s)}forEachGui(e,t){if(e)t(e);else for(const i of this.allRowGuis)t(i)}isRowRendered(){return this.allRowGuis.length>0}onRowHeightChanged(e){if(this.rowNode.rowHeight==null)return;const t=this.rowNode.rowHeight,i=this.beans.environment.getDefaultRowHeight(),o=Gv(this.gos)?Rs(this.beans,this.rowNode).height:void 0,n=o?`${Math.min(i,o)-2}px`:void 0;this.forEachGui(e,r=>{r.element.style.height=`${t}px`,n&&r.element.style.setProperty("--ag-line-height",n)})}destroyFirstPass(e=!1){this.active=!1;const{rowNode:t}=this;if(!e&&ln(this.gos)&&!t.sticky)if(t.rowTop!=null){const o=this.roundRowTopToBounds(t.rowTop);this.setRowTop(o)}else for(const o of this.allRowGuis)o.rowComp.toggleCss("ag-opacity-zero",!0);this.fullWidthGui?.element.contains(Je(this.beans))&&this.beans.focusSvc.attemptToRecoverFocus(),t.setHovered(!1);const i=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(i),this.beans.eventSvc.dispatchEvent(i),super.destroy()}destroySecondPass(){this.allRowGuis.length=0;const e=t=>{for(const i of t.list)i.destroy();return{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)}setFocusedClasses(e){this.forEachGui(e,t=>{t.rowComp.toggleCss("ag-row-focus",this.rowFocused),t.rowComp.toggleCss("ag-row-no-focus",!this.rowFocused)})}onCellFocusChanged(){const{focusSvc:e}=this.beans,t=e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);t!==this.rowFocused&&(this.rowFocused=t,this.setFocusedClasses())}onPaginationChanged(){const e=this.beans.pagination?.getCurrentPage()??0;this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(e,t=!1){if(this.rowNode.isRowPinned()||this.rowNode.sticky)return e;const i=this.beans.pageBounds.getPixelOffset();return e+i*(t?1:-1)}setRowTop(e){if(!this.printLayout&&te(e)){const t=this.applyPaginationOffset(e),o=`${this.rowNode.isRowPinned()||this.rowNode.sticky?t:this.beans.rowContainerHeight.getRealPixelPosition(t)}px`;this.setRowTopStyle(o)}}getInitialRowTop(e){return this.suppressRowTransform?this.getInitialRowTopShared(e):void 0}getInitialTransform(e){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(e)})`}getInitialRowTopShared(e){if(this.printLayout)return"";const t=this.rowNode;let i;if(t.sticky)i=t.stickyRowTop;else{const s=this.slideInAnimation[e]?this.roundRowTopToBounds(t.oldRowTop):t.rowTop,o=this.applyPaginationOffset(s);i=t.isRowPinned()?o:this.beans.rowContainerHeight.getRealPixelPosition(o)}return i+"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 i=null;for(const s of this.getAllCellCtrls())s.column==e&&(i=s);if(i!=null||t)return i;for(const s of this.getAllCellCtrls())s?.getColSpanningList().indexOf(e)>=0&&(i=s);return i}onRowIndexChanged(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}updateRowIndexes(e){const t=this.rowNode.getRowIndexString();if(t===null)return;const i=(this.beans.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.beans.filterManager?.getHeaderRowCount()??0),s=this.rowNode.rowIndex%2===0,o=this.ariaRowIndex=i+this.rowNode.rowIndex+1;this.forEachGui(e,n=>{n.rowComp.setRowIndex(t),n.rowComp.toggleCss("ag-row-even",s),n.rowComp.toggleCss("ag-row-odd",!s),vh(n.element,o)})}},R6=class extends B{constructor(){super(),this.beanName="navigation",this.onPageDown=Eg(this.onPageDown,100),this.onPageUp=Eg(this.onPageUp,100)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}handlePageScrollingKey(e,t=!1){const i=e.key,s=e.altKey,o=e.ctrlKey||e.metaKey,n=!!this.beans.rangeSvc&&e.shiftKey,r=mE(this.gos,e);let a=!1;switch(i){case A.PAGE_HOME:case A.PAGE_END:!o&&!s&&(this.onHomeOrEndKey(i),a=!0);break;case A.LEFT:case A.RIGHT:case A.UP:case A.DOWN:if(!r)return!1;o&&!s&&!n&&(this.onCtrlUpDownLeftRight(i,r),a=!0);break;case A.PAGE_DOWN:case A.PAGE_UP:!o&&!s&&(a=this.handlePageUpDown(i,r,t));break}return a&&e.preventDefault(),a}handlePageUpDown(e,t,i){return i&&(t=this.beans.focusSvc.getFocusedCell()),t?(e===A.PAGE_UP?this.onPageUp(t):this.onPageDown(t),!0):!1}navigateTo({scrollIndex:e,scrollType:t,scrollColumn:i,focusIndex:s,focusColumn:o,isAsync:n,rowPinned:r}){const{scrollFeature:a}=this.gridBodyCon;te(i)&&!i.isPinned()&&a.ensureColumnVisible(i),te(e)&&a.ensureIndexVisible(e,t),n||a.ensureIndexVisible(s);const{focusSvc:l}=this.beans;l.setFocusedCell({rowIndex:s,column:o,rowPinned:r,forceBrowserFocus:!0}),this.setRangeToCellIfSupported({rowIndex:s,rowPinned:r,column:o})}onPageDown(e){const t=this.beans,i=Ld(t),s=this.getViewportHeight(),{pageBounds:o,rowModel:n,rowAutoHeight:r}=t,a=o.getPixelOffset(),l=i.top+s,c=n.getRowIndexAtPixel(l+a);r?.active?this.navigateToNextPageWithAutoHeight(e,c):this.navigateToNextPage(e,c)}onPageUp(e){const t=this.beans,i=Ld(t),{pageBounds:s,rowModel:o,rowAutoHeight:n}=t,r=s.getPixelOffset(),a=i.top,l=o.getRowIndexAtPixel(a+r);n?.active?this.navigateToNextPageWithAutoHeight(e,l,!0):this.navigateToNextPage(e,l,!0)}navigateToNextPage(e,t,i=!1){const{pageBounds:s,rowModel:o}=this.beans,n=this.getViewportHeight(),r=s.getFirstRow(),a=s.getLastRow(),l=s.getPixelOffset(),c=o.getRow(e.rowIndex),d=i?c?.rowHeight-n-l:n-l,u=c?.rowTop+d;let h=o.getRowIndexAtPixel(u+l);if(h===e.rowIndex){const m=i?-1:1;t=h=e.rowIndex+m}let p;i?(p="bottom",h<r&&(h=r),t<r&&(t=r)):(p="top",h>a&&(h=a),t>a&&(t=a)),this.isRowTallerThanView(o.getRow(h))&&(t=h,p="top"),this.navigateTo({scrollIndex:t,scrollType:p,scrollColumn:null,focusIndex:h,focusColumn:e.column})}navigateToNextPageWithAutoHeight(e,t,i=!1){this.navigateTo({scrollIndex:t,scrollType:i?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout(()=>{const s=this.getNextFocusIndexForAutoHeight(e,i);this.navigateTo({scrollIndex:t,scrollType:i?"bottom":"top",scrollColumn:null,focusIndex:s,focusColumn:e.column,isAsync:!0})},50)}getNextFocusIndexForAutoHeight(e,t=!1){const i=t?-1:1,s=this.getViewportHeight(),{pageBounds:o,rowModel:n}=this.beans,r=o.getLastRow();let a=0,l=e.rowIndex;for(;l>=0&&l<=r;){const c=n.getRow(l);if(c){const d=c.rowHeight??0;if(a+d>s)break;a+=d}l+=i}return Math.max(0,Math.min(l,r))}getViewportHeight(){const e=this.beans,t=Ld(e),i=this.beans.scrollVisibleSvc.getScrollbarWidth();let s=t.bottom-t.top;return e.ctrlsSvc.get("center").isHorizontalScrollShowing()&&(s-=i),s}isRowTallerThanView(e){if(!e)return!1;const t=e.rowHeight;return typeof t!="number"?!1:t>this.getViewportHeight()}onCtrlUpDownLeftRight(e,t){const i=this.beans.cellNavigation.getNextCellToFocus(e,t,!0);if(!i)return;const s=this.getNormalisedPosition(i),{rowIndex:o,rowPinned:n,column:r}=s??i,a=r;this.navigateTo({scrollIndex:o,scrollType:null,scrollColumn:a,focusIndex:o,focusColumn:a,rowPinned:n})}onHomeOrEndKey(e){const t=e===A.PAGE_HOME,{visibleCols:i,pageBounds:s,rowModel:o}=this.beans,n=i.allCols,r=t?s.getFirstRow():s.getLastRow(),a=o.getRow(r);if(!a)return;const l=(t?n:[...n].reverse()).find(c=>!c.isSuppressNavigable(a)&&!At(c));l&&this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:l,focusIndex:r,focusColumn:l})}onTabKeyDown(e,t){const i=t.shiftKey,s=this.tabToNextCellCommon(e,i,t),o=this.beans,{ctrlsSvc:n,pageBounds:r,focusSvc:a,gos:l}=o;if(s!==!1){s?t.preventDefault():s===null&&n.get("gridCtrl").allowFocusForNextCoreContainer(i);return}if(i){const{rowIndex:c,rowPinned:d}=e.getRowPosition();(d?c===0:c===r.getFirstRow())&&(l.get("headerHeight")===0||mi(o)?xn(o,!0,!0):(t.preventDefault(),a.focusPreviousFromFirstCell(t)))}else e instanceof fn&&e.focusCell(!0),(a.focusOverlay(!1)||xn(o,i))&&t.preventDefault()}tabToNextCell(e,t){const i=this.beans,{focusSvc:s,rowRenderer:o}=i,n=s.getFocusedCell();if(!n)return!1;let r=Jo(i,n);return!r&&(r=o.getRowByPosition(n),!r?.isFullWidth())?!1:!!this.tabToNextCellCommon(r,e,t,"api")}tabToNextCellCommon(e,t,i,s="ui"){const{editSvc:o,focusSvc:n}=this.beans;let r;const a=e instanceof fn?e:e.getAllCellCtrls()?.[0];return o?.isEditing()?r=o?.moveToNextCell(a,t,i,s):r=this.moveToNextCellNotEditing(e,t,i),r===null?r:r||!!n.focusedHeader}moveToNextCellNotEditing(e,t,i){const s=this.beans.visibleCols.allCols;let o;if(e instanceof Nl){if(o={...e.getRowPosition(),column:t?s[0]:$e(s)},this.gos.get("embedFullWidthRows")&&i){const r=e.findFullWidthInfoForEvent(i);r&&(o.column=r.column)}}else o=e.getFocusedCellPosition();const n=this.findNextCellToFocusOn(o,{backwards:t,startEditing:!1});if(n===!1)return null;if(n instanceof fn)n.focusCell(!0);else if(n)return this.tryToFocusFullWidthRow(n,t);return te(n)}findNextCellToFocusOn(e,{backwards:t,startEditing:i,skipToNextEditableCell:s}){let o=e;const n=this.beans,{cellNavigation:r,gos:a,focusSvc:l,rowRenderer:c}=n;for(;;){e!==o&&(e=o),t||(o=this.getLastCellOfColSpan(o)),o=r.getNextTabbedCell(o,t);const d=a.getCallback("tabToNextCell");if(te(d)){const m=d({backwards:t,editing:i,previousCellPosition:e,nextCellPosition:o||null});if(m===!0)o=e;else{if(m===!1)return!1;o={rowIndex:m.rowIndex,column:m.column,rowPinned:m.rowPinned}}}if(!o)return null;if(o.rowIndex<0){const p=ri(n);return l.focusHeaderPosition({headerPosition:{headerRowIndex:p+o.rowIndex,column:o.column},fromCell:!0}),null}const u=a.get("editType")==="fullRow";if(i&&(!u||s)&&!this.isCellEditable(o))continue;this.ensureCellVisible(o);const h=Jo(n,o);if(!h){const p=c.getRowByPosition(o);if(!p||!p.isFullWidth()||i)continue;return{...p.getRowPosition(),column:o?.column}}if(!r.isSuppressNavigable(h.column,h.rowNode))return h.setFocusedCellPosition(o),this.setRangeToCellIfSupported(o),h}}isCellEditable(e){const t=this.lookupRowNodeForCell(e);return t?e.column.isCellEditable(t):!1}lookupRowNodeForCell({rowIndex:e,rowPinned:t}){const{pinnedRowModel:i,rowModel:s}=this.beans;return t==="top"?i?.getPinnedTopRow(e):t==="bottom"?i?.getPinnedBottomRow(e):s.getRow(e)}navigateToNextCell(e,t,i,s){let o=i,n=!1;const r=this.beans,{cellNavigation:a,focusSvc:l,gos:c}=r;for(;o&&(o===i||!this.isValidNavigateCell(o));)c.get("enableRtl")?t===A.LEFT&&(o=this.getLastCellOfColSpan(o)):t===A.RIGHT&&(o=this.getLastCellOfColSpan(o)),o=a.getNextCellToFocus(t,o),n=it(o);if(n&&e&&e.key===A.UP&&(o={rowIndex:-1,rowPinned:null,column:i.column}),s){const u=c.getCallback("navigateToNextCell");if(te(u)){const p=u({key:t,previousCellPosition:i,nextCellPosition:o||null,event:e});te(p)?o={rowPinned:p.rowPinned,rowIndex:p.rowIndex,column:p.column}:o=null}}if(!o)return;if(o.rowIndex<0){const u=ri(r);l.focusHeaderPosition({headerPosition:{headerRowIndex:u+o.rowIndex,column:o.column??i.column},event:e||void 0,fromCell:!0});return}const d=this.getNormalisedPosition(o);d?this.focusPosition(d):this.tryToFocusFullWidthRow(o)}getNormalisedPosition(e){if(!!this.beans.spannedRowRenderer?.getCellByPosition(e))return e;this.ensureCellVisible(e);const i=Jo(this.beans,e);return i?(e=i.getFocusedCellPosition(),this.ensureCellVisible(e),e):null}tryToFocusFullWidthRow(e,t){const{visibleCols:i,rowRenderer:s,focusSvc:o,eventSvc:n}=this.beans,r=i.allCols;if(!s.getRowByPosition(e)?.isFullWidth())return!1;const l=o.getFocusedCell(),c={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?$e(r):r[0])};this.focusPosition(c);const d=t??(l!=null&&B3(c,l));return n.dispatchEvent({type:"fullWidthRowFocused",rowIndex:c.rowIndex,rowPinned:c.rowPinned,column:c.column,isFullWidthCell:!0,fromBelow:d}),!0}focusPosition(e){const{focusSvc:t}=this.beans;t.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.setRangeToCellIfSupported(e)}setRangeToCellIfSupported(e){At(e.column)||this.beans.rangeSvc?.setRangeToCell(e)}isValidNavigateCell(e){return!!Bi(this.beans,e)}getLastCellOfColSpan(e){const t=Jo(this.beans,e);if(!t)return e;const i=t.getColSpanningList();return i.length===1?e:{rowIndex:e.rowIndex,column:$e(i),rowPinned:e.rowPinned}}ensureCellVisible(e){const t=zv(this.gos),i=this.beans.rowModel.getRow(e.rowIndex),s=t&&i?.sticky,{scrollFeature:o}=this.gridBodyCon;!s&&it(e.rowPinned)&&o.ensureIndexVisible(e.rowIndex),e.column.isPinned()||o.ensureColumnVisible(e.column)}ensureColumnVisible(e){const t=this.gridBodyCon.scrollFeature;e.isPinned()||t.ensureColumnVisible(e)}ensureRowVisible(e){this.gridBodyCon.scrollFeature.ensureIndexVisible(e)}};function Ld(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}var F6={moduleName:"KeyboardNavigation",version:Q,beans:[R6,W4,e4],apiFunctions:{getFocusedCell:j4,clearFocusedCell:_4,setFocusedCell:U4,setFocusedHeader:K4,tabToNextCell:$4,tabToPreviousCell:q4}},E6=class extends B{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:i}=this.beans;t?t.calculatePages():e.calculateBounds(0,i.getRowCount()-1)}},D6=class extends B{constructor(){super(...arguments),this.beanName="pageBounds",this.pixelOffset=0}getFirstRow(){return this.topRowBounds?.rowIndex??-1}getLastRow(){return this.bottomRowBounds?.rowIndex??-1}getCurrentPageHeight(){const{topRowBounds:e,bottomRowBounds:t}=this;return!e||!t?0:Math.max(t.rowTop+t.rowHeight-e.rowTop,0)}getCurrentPagePixelRange(){const{topRowBounds:e,bottomRowBounds:t}=this,i=e?.rowTop??0,s=t?t.rowTop+t.rowHeight:0;return{pageFirstPixel:i,pageLastPixel:s}}calculateBounds(e,t){const{rowModel:i}=this.beans,s=i.getRowBounds(e);s&&(s.rowIndex=e),this.topRowBounds=s;const o=i.getRowBounds(t);o&&(o.rowIndex=t),this.bottomRowBounds=o,this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){const e=this.topRowBounds?.rowTop??0;this.pixelOffset!==e&&(this.pixelOffset=e,this.eventSvc.dispatchEvent({type:"paginationPixelOffsetChanged"}))}},P6=".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}",T6=class extends B{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 i of this.elements)i&&(Ke(i,t),Li(i,e))}},k6=class extends B{constructor(){super(...arguments),this.beanName="pinnedCols"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,t=>{this.gridBodyCtrl=t.gridBodyCtrl});const e=this.checkContainerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}checkContainerWidths(){const{gos:e,visibleCols:t,eventSvc:i}=this.beans,s=yt(e,"print"),o=s?0:t.getColsLeftWidth(),n=s?0:t.getDisplayedColumnsRightWidth();o!=this.leftWidth&&(this.leftWidth=o,i.dispatchEvent({type:"leftPinnedWidthChanged"})),n!=this.rightWidth&&(this.rightWidth=n,i.dispatchEvent({type:"rightPinnedWidthChanged"}))}keepPinnedColumnsNarrowerThanViewport(){const e=this.gridBodyCtrl.eBodyViewport,t=Pr(e);if(t<=50)return;const i=this.getPinnedColumnsOverflowingViewport(t-50),s=this.gos.getCallback("processUnpinnedColumns"),{columns:o,hasLockedPinned:n}=i;let r=o;!r.length&&!n||(s&&(r=s({columns:r,viewportWidth:t})),r?.length&&(r=r.filter(a=>!At(a)),this.setColsPinned(r,null,"viewportSizeFeature")))}createPinnedWidthFeature(e,...t){return new T6(e,t)}setColsPinned(e,t,i){const{colModel:s,colAnimation:o,visibleCols:n,gos:r}=this.beans;if(!s.cols||!e?.length)return;if(yt(r,"print")){$(37);return}o?.start();let a;t===!0||t==="left"?a="left":t==="right"?a="right":a=null;const l=[];for(const c of e){if(!c)continue;const d=s.getCol(c);d&&d.getPinned()!==a&&(this.setColPinned(d,a),l.push(d))}l.length&&(n.refresh(i),$C(this.eventSvc,l,i)),o?.finish()}initCol(e){const{pinned:t,initialPinned:i}=e.colDef;t!==void 0?this.setColPinned(e,t):this.setColPinned(e,i)}setColPinned(e,t){t===!0||t==="left"?e.pinned="left":t==="right"?e.pinned="right":e.pinned=null,e.dispatchStateUpdatedEvent("pinned")}setupHeaderPinnedWidth(e){const{scrollVisibleSvc:t}=this.beans;if(e.pinned==null)return;const i=e.pinned==="left",s=e.pinned==="right";e.hidden=!0;const o=()=>{const n=i?this.leftWidth:this.rightWidth;if(n==null)return;const r=n==0,a=e.hidden!==r,l=this.gos.get("enableRtl"),c=t.getScrollbarWidth(),u=t.verticalScrollShowing&&(l&&i||!l&&s)?n+c:n;e.comp.setPinnedContainerWidth(`${u}px`),e.comp.setDisplayed(!r),a&&(e.hidden=r,e.refresh())};e.addManagedEventListeners({leftPinnedWidthChanged:o,rightPinnedWidthChanged:o,scrollVisibilityChanged:o,scrollbarWidthChanged:o})}getHeaderResizeDiff(e,t){if(t.getPinned()){const{leftWidth:s,rightWidth:o}=this,n=Pr(this.beans.ctrlsSvc.getGridBodyCtrl().eBodyViewport)-50;if(s+o+e>n)if(n>s+o)e=n-s-o;else return 0}return e}getPinnedColumnsOverflowingViewport(e){const t=this.rightWidth??0,i=this.leftWidth??0,s=t+i;let o=!1;if(s<e)return{columns:[],hasLockedPinned:o};const{visibleCols:n}=this.beans,r=[...n.leftCols],a=[...n.rightCols];let l=0,c=0;const d=0,u=[];let h=s-d-e;for(;(c<r.length||l<a.length)&&h>0;){if(l<a.length){const p=a[l++];if(p.colDef.lockPinned){o=!0;continue}h-=p.getActualWidth(),u.push(p)}if(c<r.length&&h>0){const p=r[c++];if(p.colDef.lockPinned){o=!0;continue}h-=p.getActualWidth(),u.push(p)}}return{columns:u,hasLockedPinned:o}}},I6={moduleName:"PinnedColumn",version:Q,beans:[k6],css:[P6]},M6=class extends Ht{constructor(){super(),this.beanName="ariaAnnounce",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.lastAnnouncement="",this.updateAnnouncement=ct(this,this.updateAnnouncement.bind(this),200)}postConstruct(){const e=this.beans,t=ft(e),i=this.descriptionContainer=t.createElement("div");i.classList.add("ag-aria-description-container"),uv(i,"polite"),GS(i,"additions text"),BS(i,!0),e.eRootDiv.appendChild(i)}announceValue(e,t){this.pendingAnnouncements.set(t,e),this.updateAnnouncement()}updateAnnouncement(){if(!this.descriptionContainer)return;const e=Array.from(this.pendingAnnouncements.values()).join(". ");this.pendingAnnouncements.clear(),this.descriptionContainer.textContent="",setTimeout(()=>{this.handleAnnouncementUpdate(e)},50)}handleAnnouncementUpdate(e){if(!this.isAlive()||!this.descriptionContainer)return;let t=e;if(t==null||t.replace(/[ .]/g,"")==""){this.lastAnnouncement="";return}this.lastAnnouncement===t&&(t=`${t}​`),this.lastAnnouncement=t,this.descriptionContainer.textContent=t}destroy(){super.destroy();const{descriptionContainer:e}=this;e&&(_t(e),e.remove()),this.descriptionContainer=null,this.pendingAnnouncements.clear()}},A6=class extends M6{},L6={moduleName:"Aria",version:Q,beans:[A6]},O6=":where(.ag-delay-render){.ag-cell,.ag-header-cell,.ag-header-group-cell,.ag-row,.ag-spanned-cell-wrapper{visibility:hidden}}",Df="ag-delay-render",N6=class extends B{constructor(){super(...arguments),this.beanName="colDelayRenderSvc",this.hideRequested=!1,this.alreadyRevealed=!1,this.timesRetried=0,this.requesters=new Set}hideColumns(e){this.alreadyRevealed||this.requesters.has(e)||(this.requesters.add(e),this.hideRequested||(this.beans.ctrlsSvc.whenReady(this,t=>{t.gridBodyCtrl.eGridBody.classList.add(Df)}),this.hideRequested=!0))}revealColumns(e){if(this.alreadyRevealed||!this.isAlive()||(this.requesters.delete(e),this.requesters.size>0))return;const{renderStatus:t,ctrlsSvc:i}=this.beans;if(t){if(!t.areHeaderCellsRendered()&&this.timesRetried<5){this.timesRetried++,setTimeout(()=>this.revealColumns(e));return}this.timesRetried=0}i.getGridBodyCtrl().eGridBody.classList.remove(Df),this.alreadyRevealed=!0}},H6={moduleName:"ColumnDelayRender",version:Q,beans:[N6],css:[O6]},dc=class extends ot{constructor(){super()}},B6={tag:"div",cls:"ag-overlay-exporting-center",children:[{tag:"span",ref:"eExportingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eExportingText",cls:"ag-exporting-text"}]},G6=class extends dc{constructor(){super(...arguments),this.eExportingIcon=de,this.eExportingText=de}init(e){const{beans:t}=this;this.setTemplate(B6);const i=Wt("overlayExporting",t,null);i&&this.eExportingIcon.appendChild(i);const s=e.exporting?.overlayText??this.getLocaleTextFunc()("exportingOoo","Exporting...");this.eExportingText.textContent=s,t.ariaAnnounce.announceValue(s,"overlay")}},V6={tag:"div",cls:"ag-overlay-loading-center",children:[{tag:"span",ref:"eLoadingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eLoadingText",cls:"ag-loading-text"}]},z6=class extends dc{constructor(){super(...arguments),this.eLoadingIcon=de,this.eLoadingText=de}init(e){const{beans:t,gos:i}=this,s=Yi(i.get("overlayLoadingTemplate")?.trim());if(this.setTemplate(s??V6),!s){const o=Wt("overlayLoading",t,null);o&&this.eLoadingIcon.appendChild(o);const n=e.loading?.overlayText??this.getLocaleTextFunc()("loadingOoo","Loading...");this.eLoadingText.textContent=n,t.ariaAnnounce.announceValue(n,"overlay")}}},W6={tag:"span",cls:"ag-overlay-no-matching-rows-center"},j6=class extends dc{init(e){const{beans:t}=this;this.setTemplate(W6);const i=e.noMatchingRows?.overlayText??this.getLocaleTextFunc()("noMatchingRows","No Matching Rows");this.getGui().textContent=i,t.ariaAnnounce.announceValue(i,"overlay")}},_6={tag:"span",cls:"ag-overlay-no-rows-center"},U6=class extends dc{init(e){const{beans:t,gos:i}=this,s=Yi(i.get("overlayNoRowsTemplate")?.trim());if(this.setTemplate(s??_6),!s){const o=e.noRows?.overlayText??this.getLocaleTextFunc()("noRowsToShow","No Rows To Show");this.getGui().textContent=o,t.ariaAnnounce.announceValue(o,"overlay")}}};function $6(e){e.overlays?.showLoadingOverlay()}function q6(e){e.overlays?.showNoRowsOverlay()}function K6(e){e.overlays?.hideOverlay()}var Y6=".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)}",Z6={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"}]}]},Ew=class extends ot{constructor(){super(Z6),this.eOverlayWrapper=de,this.activeOverlay=null,this.activePromise=null,this.activeCssClass=null,this.elToFocusAfter=null,this.overlayExclusive=!1,this.oldWrapperPadding=null,this.registerCSS(Y6)}handleKeyDown(e){if(e.key!==A.TAB||e.defaultPrevented||Xi(e))return;const{beans:t,eOverlayWrapper:i}=this;if(i&&Eo(t,i,!1,e.shiftKey))return;let o=!1;e.shiftKey?o=t.focusSvc.focusGridView({column:$e(t.visibleCols.allCols),backwards:!0,canFocusOverlay:!1}):o=xn(t,!1),o&&e.preventDefault()}updateLayoutClasses(e,t){const i=this.eOverlayWrapper;if(!i)return;const s=i.classList,{AUTO_HEIGHT:o,NORMAL:n,PRINT:r}=il;s.toggle(o,t.autoHeight),s.toggle(n,t.normal),s.toggle(r,t.print)}postConstruct(){this.createManagedBean(new _h(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.beans.overlays.setWrapperComp(this,!1),this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)}),this.addManagedEventListeners({gridSizeChanged:this.refreshWrapperPadding.bind(this)})}setWrapperTypeClass(e){const t=this.eOverlayWrapper?.classList;if(!t){this.activeCssClass=null;return}this.activeCssClass&&t.toggle(this.activeCssClass,!1),this.activeCssClass=e,t.toggle(e,!0)}showOverlay(e,t,i){if(this.destroyActiveOverlay(),this.elToFocusAfter=null,this.activePromise=e,this.overlayExclusive=i,!e)return this.refreshWrapperPadding(),Ne.resolve();if(this.setWrapperTypeClass(t),this.setDisplayed(!0,{skipAriaHidden:!0}),this.refreshWrapperPadding(),i&&this.isGridFocused()){const s=Je(this.beans);s&&!ph(this.beans)&&(this.elToFocusAfter=s)}return e.then(s=>{const o=this.eOverlayWrapper;if(!o){this.destroyBean(s);return}if(this.activePromise!==e){this.activeOverlay!==s&&(this.destroyBean(s),s=null);return}this.activePromise=null,s&&(this.activeOverlay!==s&&(o.appendChild(s.getGui()),this.activeOverlay=s),i&&this.isGridFocused()&&go(o))}),e}refreshWrapperPadding(){if(!this.eOverlayWrapper){this.oldWrapperPadding=null;return}const e=!!this.activeOverlay||!!this.activePromise;let t=0;e&&!this.overlayExclusive&&(t=this.beans.ctrlsSvc.get("gridHeaderCtrl")?.headerHeight||0),t!==this.oldWrapperPadding&&(this.oldWrapperPadding=t,this.eOverlayWrapper.style.setProperty("padding-top",`${t}px`))}destroyActiveOverlay(){this.activePromise=null;const e=this.activeOverlay;if(!e){this.overlayExclusive=!1,this.elToFocusAfter=null,this.refreshWrapperPadding();return}let t=this.elToFocusAfter;this.elToFocusAfter=null,this.activeOverlay=null,this.overlayExclusive=!1,t&&!this.isGridFocused()&&(t=null),this.destroyBean(e);const i=this.eOverlayWrapper;i&&_t(i),t?.focus?.({preventScroll:!0}),this.refreshWrapperPadding()}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}isGridFocused(){const e=Je(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}},X6={selector:"AG-OVERLAY-WRAPPER",component:Ew},Q6=["refresh"],qr=e=>({name:e,optionalMethods:Q6}),qs={id:"agLoadingOverlay",overlayType:"loading",comp:qr("loadingOverlayComponent"),wrapperCls:"ag-overlay-loading-wrapper",exclusive:!0,compKey:"loadingOverlayComponent",paramsKey:"loadingOverlayComponentParams",isSuppressed:e=>{const t=e.get("loading");return t===!1||e.get("suppressLoadingOverlay")===!0&&t!==!0}},sn={id:"agNoRowsOverlay",overlayType:"noRows",comp:qr("noRowsOverlayComponent"),wrapperCls:"ag-overlay-no-rows-wrapper",compKey:"noRowsOverlayComponent",paramsKey:"noRowsOverlayComponentParams",isSuppressed:e=>e.get("suppressNoRowsOverlay")},ip={id:"agNoMatchingRowsOverlay",overlayType:"noMatchingRows",comp:qr("noMatchingRowsOverlayComponent"),wrapperCls:"ag-overlay-no-matching-rows-wrapper"},Hl={id:"agExportingOverlay",overlayType:"exporting",comp:qr("exportingOverlayComponent"),wrapperCls:"ag-overlay-exporting-wrapper",exclusive:!0},al={id:"activeOverlay",comp:qr("activeOverlay"),wrapperCls:"ag-overlay-modal-wrapper",exclusive:!0},J6=e=>e?{agLoadingOverlay:qs,agNoRowsOverlay:sn,agNoMatchingRowsOverlay:ip,agExportingOverlay:Hl}[e]??al:null,eT=e=>e?{loading:qs,noRows:sn,noMatchingRows:ip,exporting:Hl}[e]:null,tT=class extends B{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=st(e);const t=()=>{this.userForcedNoRows||this.updateOverlay(!1)},[i,s,o,n]=this.addManagedEventListeners({newColumnsLoaded:t,rowCountReady:()=>{this.disableInitialOverlay(),t(),s()},rowDataUpdated:t,modelUpdated:t});this.newColumnsLoadedCleanup=i,this.addManagedPropertyListeners(["loading","activeOverlay","activeOverlayParams","overlayComponentParams","loadingOverlayComponentParams","noRowsOverlayComponentParams"],r=>this.onPropChange(new Set(r.changeSet?.properties)))}destroy(){this.doHideOverlay(),super.destroy(),this.eWrapper=void 0}setWrapperComp(e,t){this.isAlive()&&(t?this.eWrapper===e&&(this.eWrapper=void 0):this.eWrapper=e,this.updateOverlay(!1))}isVisible(){return!!this.currentDef}showLoadingOverlay(){this.showInitialOverlay=!1;const e=this.gos;if(!this.eWrapper||e.get("activeOverlay")||this.isDisabled(qs))return;const t=e.get("loading");!t&&t!==void 0||this.doShowOverlay(qs)}showNoRowsOverlay(){this.showInitialOverlay=!1;const e=this.gos;!this.eWrapper||e.get("activeOverlay")||e.get("loading")||this.isDisabled(sn)||(this.userForcedNoRows=!0,this.doShowOverlay(sn))}async showExportOverlay(e){const{gos:t,beans:i}=this;if(!this.eWrapper||t.get("activeOverlay")||t.get("loading")||this.isDisabled(Hl)||this.userForcedNoRows&&this.currentDef===sn){e();return}const s=this.getDesiredDefWithOverride(Hl);if(!s){e();return}this.exportsInProgress++,this.focusedCell=i.focusSvc.getFocusedCell(),await this.doShowOverlay(s),await new Promise(n=>setTimeout(()=>n()));const o=Date.now();try{e()}finally{const n=Date.now()-o,r=Math.max(0,300-n),a=()=>{this.exportsInProgress--,this.exportsInProgress===0&&(this.updateOverlay(!1),_3(i,this.focusedCell),this.focusedCell=null)};r>0?setTimeout(()=>a(),r):a()}}hideOverlay(){const e=this.gos;this.showInitialOverlay=!1;const t=this.userForcedNoRows;if(this.userForcedNoRows=!1,e.get("loading")){$(99);return}if(e.get("activeOverlay")){$(296);return}if(this.currentDef===ip){$(297);return}this.doHideOverlay(),t&&this.getOverlayDef()!==sn&&this.updateOverlay(!1)}getOverlayWrapperSelector(){return X6}getOverlayWrapperCompClass(){return Ew}onPropChange(e){const t=e.has("activeOverlay");if((t||e.has("loading"))&&this.updateOverlay(t))return;const i=this.currentDef,s=this.eWrapper?.activeOverlay;if(s&&i){const o=e.has("activeOverlayParams");if(i===al)o&&s.refresh?.(this.makeCompParams(!0));else{const n=i.paramsKey;(e.has("overlayComponentParams")||n&&e.has(n))&&s.refresh?.(this.makeCompParams(!1,n,i.overlayType))}}}updateOverlay(e){const t=this.eWrapper;if(!t)return this.currentDef=null,!1;const i=this.getDesiredDefWithOverride(),s=this.currentDef,o=i===al&&e;return i!==s?i?(this.doShowOverlay(i),!0):(this.disableInitialOverlay(),this.doHideOverlay()):o&&i?(t.hideOverlay(),this.doShowOverlay(i),!0):(i||this.disableInitialOverlay(),!1)}getDesiredDefWithOverride(e){const{gos:t}=this;let i=J6(t.get("activeOverlay"));return i||(i=e??this.getOverlayDef(),i&&this.isDisabled(i)&&(i=null)),i}getOverlayDef(){const{gos:e,beans:t}=this,{rowModel:i}=t,s=e.get("loading");if(s!==void 0){if(this.disableInitialOverlay(),s)return qs}else if(this.showInitialOverlay){if(!this.isDisabled(qs)&&(!e.get("columnDefs")||!e.get("rowData")))return qs;this.disableInitialOverlay()}else this.disableInitialOverlay();const n=i.getOverlayType();return eT(n)}disableInitialOverlay(){this.showInitialOverlay=!1,this.newColumnsLoadedCleanup?.(),this.newColumnsLoadedCleanup=null}doShowOverlay(e){const{gos:t,beans:i}=this,{userCompFactory:s}=i;this.currentDef=e;const o=e!==al,n=!!e.exclusive;this.exclusive=n;let r;(e.paramsKey&&t.get(e.paramsKey)||e.compKey&&t.get(e.compKey))&&(r=e.paramsKey);let a;o&&(t.get("overlayComponent")||t.get("overlayComponentSelector"))&&(a=s.getCompDetailsFromGridOptions({name:"overlayComponent",optionalMethods:["refresh"]},void 0,this.makeCompParams(!1,e.paramsKey,e.overlayType))),a??(a=s.getCompDetailsFromGridOptions(e.comp,o?e.id:void 0,this.makeCompParams(!o,r,e.overlayType),!1));const l=a?.newAgStackInstance()??null,c=this.eWrapper?this.eWrapper.showOverlay(l,e.wrapperCls,n):Ne.resolve();return this.eWrapper?.refreshWrapperPadding(),this.setExclusive(n),c}makeCompParams(e,t,i){const{gos:s}=this,o=e?s.get("activeOverlayParams"):{...s.get("overlayComponentParams"),...t&&s.get(t)||null,overlayType:i};return xe(s,o??{})}doHideOverlay(){let e=!1;this.currentDef&&(this.currentDef=null,e=!0),this.exclusive=!1;const t=this.eWrapper;return t&&(t.hideOverlay(),t.refreshWrapperPadding(),this.setExclusive(!1)),e}setExclusive(e){this.oldExclusive!==e&&(this.oldExclusive=e,this.eventSvc.dispatchEvent({type:"overlayExclusiveChanged"}))}isDisabled(e){const{gos:t}=this;return e.overlayType&&t.get("suppressOverlays")?.includes(e.overlayType)||e.isSuppressed?.(t)===!0}},iT={moduleName:"Overlay",version:Q,userComponents:{agLoadingOverlay:z6,agNoRowsOverlay:U6,agNoMatchingRowsOverlay:j6,agExportingOverlay:G6},apiFunctions:{showLoadingOverlay:$6,showNoRowsOverlay:q6,hideOverlay:K6},icons:{overlayLoading:"loading",overlayExporting:"loading"},beans:[tT]},sT=class extends B{constructor(){super(...arguments),this.beanName="rowContainerHeight",this.scrollY=0,this.uiBodyHeight=0}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)}),this.maxDivHeight=c3(),ho(this.gos,"RowContainerHeightService - maxDivHeight = "+this.maxDivHeight)}updateOffset(){if(!this.stretching)return;const e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}calculateOffset(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;const e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;ho(this.gos,`RowContainerHeightService - Div Stretch Offset = ${t} (${this.pixelsToShave} * ${e})`),this.setDivStretchOffset(t)}setUiContainerHeight(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventSvc.dispatchEvent({type:"rowContainerHeightChanged"}))}clearOffset(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)}setDivStretchOffset(e){const t=typeof e=="number"?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventSvc.dispatchEvent({type:"heightScaleChanged"}))}setModelHeight(e){this.modelHeight=e,this.stretching=e!=null&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()}getRealPixelPosition(e){return e-this.divStretchOffset}getUiBodyHeight(){const e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition();return e.bottom-e.top}getScrollPositionForPixel(e){if(this.pixelsToShave<=0)return e;const t=this.modelHeight-this.getUiBodyHeight(),i=e/t;return this.maxScrollY*i}},oT=400,nT=class extends B{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 n of this.getAllCellCtrls())n.onCellSelectionChanged()},t=()=>{for(const n of this.getAllCellCtrls())n.updateRangeBordersIfRangeCount()},i=()=>{this.eventSvc.addListener("cellSelectionChanged",e),this.eventSvc.addListener("columnMoved",t),this.eventSvc.addListener("columnPinned",t),this.eventSvc.addListener("columnVisible",t)},s=()=>{this.eventSvc.removeListener("cellSelectionChanged",e),this.eventSvc.removeListener("columnMoved",t),this.eventSvc.removeListener("columnPinned",t),this.eventSvc.removeListener("columnVisible",t)};this.addDestroyFunc(()=>s()),this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{Fs(this.gos)?i():s()}),Fs(this.gos)&&i()}}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",s=>this.onSuppressCellFocusChanged(s.currentValue)),this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],()=>this.redrawRows()),this.addManagedPropertyListener("cellSelection",({currentValue:s,previousValue:o})=>{(!o&&s||o&&!s)&&this.redrawRows()});const{stickyRowSvc:e,gos:t,showRowGroupCols:i}=this.beans;if(i&&this.addManagedPropertyListener("showOpenedGroup",()=>{const s=i.columns;s.length&&this.refreshCells({columns:s,force:!0})}),e)this.stickyRowFeature=e.createStickyRowFeature(this,this.createRowCon.bind(this),this.destroyRowCtrls.bind(this));else{const s=this.gridBodyCtrl;s.setStickyTopHeight(0),s.setStickyBottomHeight(0)}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=yt(t,"print"),this.embedFullWidthRows=this.printLayout||t.get("embedFullWidthRows"),this.redrawAfterModelUpdate()}initialiseCache(){if(this.gos.get("keepDetailRows")){const e=this.getKeepDetailRowsCount(),t=e??3;this.cachedRowCtrls=new rT(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),i=this.cachedRowCtrls?.getEntries()??[];t.length>0||i.length>0?this.allRowCtrls=[...e,...t,...i]:this.allRowCtrls=e}isCellBeingRendered(e,t){const i=this.rowCtrlsByRowIndex[e];return!t||!i?!!i:i.isFullWidth()?!0:!!this.beans.spannedRowRenderer?.getCellByPosition({rowIndex:e,column:t,rowPinned:null})||!!i.getCellCtrl(t)||!i.isRowRendered()}updateCellFocus(e){for(const t of this.getAllCellCtrls())t.onCellFocused(e);for(const t of this.getFullWidthRowCtrls())t.onFullWidthRowFocused(e)}onCellFocusChanged(e){if(e?.rowIndex!=null&&!e.rowPinned){const t=this.beans.colModel.getCol(e.column)??void 0;this.isCellBeingRendered(e.rowIndex,t)||this.redraw()}this.updateCellFocus(e)}onSuppressCellFocusChanged(e){for(const t of this.getAllCellCtrls())t.onSuppressCellFocusChanged(e);for(const t of this.getFullWidthRowCtrls())t.onSuppressCellFocusChanged(e)}registerCellEventListeners(){this.addManagedEventListeners({cellFocused:e=>this.onCellFocusChanged(e),cellFocusCleared:()=>this.updateCellFocus(),flashCells:e=>{const{cellFlashSvc:t}=this.beans;if(t)for(const i of this.getAllCellCtrls())t.onFlashCells(i,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 i=l=>{for(const c of this.getAllCellCtrls())c.column===t&&l(c)},s=()=>{i(l=>l.onLeftChanged())},o=()=>{i(l=>l.onWidthChanged())},n=()=>{i(l=>l.onFirstRightPinnedChanged())},r=()=>{i(l=>l.onLastLeftPinnedChanged())},a=()=>{i(l=>l.onColDefChanged())};t.__addEventListener("leftChanged",s),t.__addEventListener("widthChanged",o),t.__addEventListener("firstRightPinnedChanged",n),t.__addEventListener("lastLeftPinnedChanged",r),t.__addEventListener("colDefChanged",a),this.destroyFuncsForColumnListeners.push(()=>{t.__removeEventListener("leftChanged",s),t.__removeEventListener("widthChanged",o),t.__removeEventListener("firstRightPinnedChanged",n),t.__removeEventListener("lastLeftPinnedChanged",r),t.__removeEventListener("colDefChanged",a)})}}onDomLayoutChanged(){const e=yt(this.gos,"print"),t=e||this.gos.get("embedFullWidthRows"),i=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,i&&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 i of this.getAllRowCtrls()){const s=i.getCellCtrl(e,!0)?.eGui;s&&t.push(s)}return t}refreshFloatingRowComps(e=!0){this.refreshFloatingRows(this.topRowCtrls,"top",e),this.refreshFloatingRows(this.bottomRowCtrls,"bottom",e)}refreshFloatingRows(e,t,i){const{pinnedRowModel:s,beans:o,printLayout:n}=this,r=Object.fromEntries(e.map(l=>[l.rowNode.id,l]));s?.forEachPinnedRow(t,(l,c)=>{const d=e[c];d&&s.getPinnedRowById(d.rowNode.id,t)===void 0&&(d.destroyFirstPass(),d.destroySecondPass()),l.id in r&&i?(e[c]=r[l.id],delete r[l.id]):e[c]=new Nl(l,o,!1,!1,n)});const a=(t==="top"?s?.getPinnedTopRowCount():s?.getPinnedBottomRowCount())??0;e.length=a}onPinnedRowDataChanged(){const e={recycleRows:!0};this.redrawAfterModelUpdate(e)}onPinnedRowsChanged(){this.redrawAfterModelUpdate({recycleRows:!0})}redrawRow(e,t=!1){if(e.sticky)this.stickyRowFeature?.refreshStickyNode(e);else if(this.cachedRowCtrls?.has(e)){this.cachedRowCtrls.removeRow(e);return}else{const i=s=>{const o=s[e.rowIndex];o&&o.rowNode===e&&(o.destroyFirstPass(),o.destroySecondPass(),s[e.rowIndex]=this.createRowCon(e,!1,!1))};switch(e.rowPinned){case"top":i(this.topRowCtrls);break;case"bottom":i(this.bottomRowCtrls);break;default:i(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}t||this.dispatchDisplayedRowsChanged(!1)}redrawRows(e){const{editSvc:t}=this.beans;if(t?.isEditing()&&(t.isBatchEditing()?t.cleanupEditors():t.stopEditing(void 0,{source:"api"})),e!=null){for(const s of e??[])this.redrawRow(s,!0);this.dispatchDisplayedRowsChanged(!1);return}this.redrawAfterModelUpdate()}redrawAfterModelUpdate(e={}){this.getLockOnRefresh();const t=this.beans.focusSvc?.getFocusCellToUseAfterRefresh();this.updateContainerHeights(),this.scrollToTopIfNewData(e);const i=!e.domLayoutChanged&&!!e.recycleRows,s=e.animate&&ln(this.gos),o=i?this.getRowsToRecycle():null;i||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender();const{stickyRowFeature:n,gos:r}=this;if(n){n.checkStickyRows();const a=n.extraTopHeight+n.extraBottomHeight;a&&this.updateContainerHeights(a)}this.recycleRows(o,s),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(r.get("enableRowPinning")?i:void 0),this.dispatchDisplayedRowsChanged(),t!=null&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()}scrollToTopIfNewData(e){const t=e.newData||e.newPage,i=this.gos.get("suppressScrollOnNewData");t&&!i&&(this.gridBodyCtrl.scrollFeature.scrollToTop(),this.stickyRowFeature?.resetOffsets())}updateContainerHeights(e=0){const{rowContainerHeight:t}=this;if(this.printLayout){t.setModelHeight(null);return}let i=this.pageBounds.getCurrentPageHeight();i===0&&(i=1),t.setModelHeight(i+e)}getLockOnRefresh(){if(this.refreshInProgress)throw new Error(Oi(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,i=this.findPositionToFocus(e);if(!i){t.focusHeaderPosition({headerPosition:{headerRowIndex:ri(this.beans)-1,column:e.column}});return}if(e.rowIndex!==i.rowIndex||e.rowPinned!=i.rowPinned){t.setFocusedCell({...i,preventScrollOnBrowserFocus:!0,forceBrowserFocus:!0});return}t.doesRowOrCellHaveBrowserFocus()||this.updateCellFocus(xe(this.gos,{...i,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"cellFocused"}))}findPositionToFocus(e){const{pagination:t,pageBounds:i}=this.beans;let s=e;for(s.rowPinned==null&&t&&i&&!t.isRowInPage(s.rowIndex)&&(s={rowPinned:null,rowIndex:i.getFirstRow()});s;){if(s.rowPinned==null&&i)if(s.rowIndex<i.getFirstRow()){if(s=Tl(this.beans,{rowPinned:null,rowIndex:0}),!s)return null}else s.rowIndex>i.getLastRow()&&(s={rowPinned:null,rowIndex:i.getLastRow()});const o=this.getRowByPosition(s);if(o?.isAlive())return{...o.getRowPosition(),column:e.column};s=Tl(this.beans,s)}return null}getAllCellCtrls(){const e=[],t=this.getAllRowCtrls(),i=t.length;for(let s=0;s<i;s++){const o=t[s].getAllCellCtrls(),n=o.length;for(let r=0;r<n;r++)e.push(o[r])}return e}getAllRowCtrls(){const{spannedRowRenderer:e}=this.beans,t=this.getStickyTopRowCtrls(),i=this.getStickyBottomRowCtrls();return[...this.topRowCtrls,...this.bottomRowCtrls,...t,...i,...e?.getCtrls("top")??[],...e?.getCtrls("bottom")??[],...e?.getCtrls("center")??[],...Object.values(this.rowCtrlsByRowIndex)]}addRenderedRowListener(e,t,i){const s=this.rowCtrlsByRowIndex[t];s&&s.addEventListener(e,i)}refreshCells({rowNodes:e,columns:t,force:i,suppressFlash:s}={}){const o={force:i,newData:!1,suppressFlash:s};for(const n of this.getCellCtrls(e,t))n.refreshOrDestroyCell(o);this.refreshFullWidth(e)}refreshRows(e={}){for(const t of this.getRowCtrls(e.rowNodes))t.refreshRow(e);this.refreshFullWidth(e.rowNodes)}getRowCtrlByNode(e){const t=e.rowIndex;if(t==null)return;const i=e.rowPinned;if(i==="top"){const o=this.topRowCtrls[t];return o?.rowNode===e?o:void 0}if(i==="bottom"){const o=this.bottomRowCtrls[t];return o?.rowNode===e?o:void 0}const s=this.rowCtrlsByRowIndex[t];return s?.rowNode===e?s:this.getStickyRowCtrlByNode(e)}getStickyRowCtrlByNode(e){const t=this.stickyRowFeature;if(t){for(const i of t.stickyTopRowCtrls)if(i.rowNode===e)return i;for(const i of t.stickyBottomRowCtrls)if(i.rowNode===e)return i}}refreshRowByNode(e){e&&this.getRowCtrlByNode(e)?.refreshRow()}refreshFullWidth(e){if(!e)return;let t=!1;for(const i of this.getRowCtrls(e)){if(!i.isFullWidth())continue;i.refreshFullWidth()||(t=!0,this.redrawRow(i.rowNode,!0))}t&&this.dispatchDisplayedRowsChanged(!1)}getRowCtrls(e){const t=Nu(e),i=this.getAllRowCtrls();return!e||!t?i:i.filter(s=>{const o=s.rowNode;return Hu(o,t)})}getCellCtrls(e,t){let i;te(t)&&(i={},t.forEach(o=>{const n=this.colModel.getCol(o);te(n)&&(i[n.getId()]=!0)}));const s=[];for(const o of this.getRowCtrls(e))for(const n of o.getAllCellCtrls()){const r=n.column.getId();i&&!i[r]||s.push(n)}return s}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 i of Object.keys(this.rowCtrlsByRowIndex))this.rowCtrlsByRowIndex[i].rowNode.id==null&&e.push(i);this.removeRowCtrls(e);const t={};for(const i of Object.values(this.rowCtrlsByRowIndex)){const s=i.rowNode;t[s.id]=i}return this.rowCtrlsByRowIndex={},t}removeRowCtrls(e,t=!1){for(const i of e){const s=this.rowCtrlsByRowIndex[i];s&&(s.destroyFirstPass(t),s.destroySecondPass()),delete this.rowCtrlsByRowIndex[i]}}onBodyScroll(e){e.direction==="vertical"&&this.redraw({afterScroll:!0})}redraw(e={}){const{focusSvc:t,animationFrameSvc:i}=this.beans,{afterScroll:s}=e;let o;const n=this.stickyRowFeature;n&&(o=t?.getFocusCellToUseAfterRefresh()||void 0);const r=this.firstRenderedRow,a=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let l=!1;if(n){l=n.checkStickyRows();const d=n.extraTopHeight+n.extraBottomHeight;d&&this.updateContainerHeights(d)}const c=this.firstRenderedRow!==r||this.lastRenderedRow!==a;if(!(s&&!l&&!c)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,s),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(s&&!l),o!=null)){const d=t?.getFocusCellToUseAfterRefresh();o!=null&&d==null&&(i?.flushAllFrames(),this.restoreFocusedCell(o))}}removeRowCompsNotToDraw(e,t){const i={};for(const n of e)i[n]=!0;const o=Object.keys(this.rowCtrlsByRowIndex).filter(n=>!i[n]);this.removeRowCtrls(o,t)}calculateIndexesToDraw(e){const t=[];for(let r=this.firstRenderedRow;r<=this.lastRenderedRow;r++)t.push(r);const i=this.beans.pagination,s=this.beans.focusSvc?.getFocusedCell()?.rowIndex;s!=null&&(s<this.firstRenderedRow||s>this.lastRenderedRow)&&(!i||i.isRowInPage(s))&&s<this.rowModel.getRowCount()&&t.push(s);const o=r=>{const a=r.rowNode.rowIndex;a==null||a===s||(a<this.firstRenderedRow||a>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(r)&&t.push(a)};for(const r of Object.values(this.rowCtrlsByRowIndex))o(r);if(e)for(const r of Object.values(e))o(r);t.sort((r,a)=>r-a);const n=[];for(let r=0;r<t.length;r++){const a=t[r],l=this.rowModel.getRow(a);l&&!l.sticky&&n.push(a)}return n}recycleRows(e,t=!1,i=!1){const s=this.calculateIndexesToDraw(e);(this.printLayout||i)&&(t=!1),this.removeRowCompsNotToDraw(s,!t);for(const o of s)this.createOrUpdateRowCtrl(o,e,t,i);if(e){const{animationFrameSvc:o}=this.beans;o?.active&&i&&!this.printLayout?o.addDestroyTask(()=>{this.destroyRowCtrls(e,t),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(e,t)}this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(e=!1){this.eventSvc.dispatchEvent({type:"displayedRowsChanged",afterScroll:e})}onDisplayedColumnsChanged(){const{visibleCols:e}=this.beans,t=e.isPinningLeft(),i=e.isPinningRight();(this.pinningLeft!==t||i!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=i,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){const e=[];for(const t of this.getFullWidthRowCtrls()){const i=t.rowNode.rowIndex;e.push(i.toString())}this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(e){const t=Nu(e);return this.getAllRowCtrls().filter(i=>{if(!i.isFullWidth())return!1;const s=i.rowNode;return!(t!=null&&!Hu(s,t))})}createOrUpdateRowCtrl(e,t,i,s){let o,n=this.rowCtrlsByRowIndex[e];if(n||(o=this.rowModel.getRow(e),te(o)&&te(t)&&t[o.id]&&o.alreadyRendered&&(n=t[o.id],t[o.id]=null)),!n)if(o||(o=this.rowModel.getRow(e)),te(o))n=this.createRowCon(o,i,s);else return;o&&(o.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=n}destroyRowCtrls(e,t){const i=[];if(e){for(const s of Object.values(e))if(s){if(this.cachedRowCtrls&&s.isCacheable()){this.cachedRowCtrls.addRow(s);continue}if(s.destroyFirstPass(!t),t){const o=s.instanceId;this.zombieRowCtrls[o]=s,i.push(()=>{s.destroySecondPass(),delete this.zombieRowCtrls[o]})}else s.destroySecondPass()}}t&&(i.push(()=>{this.isAlive()&&(this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged())}),window.setTimeout(()=>{for(const s of i)s()},oT))}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){const e=this.getRowBuffer(),t=io(this.beans);return e*t}workOutFirstAndLastRowsToRender(){const{rowContainerHeight:e,pageBounds:t,rowModel:i}=this;e.updateOffset();let s,o;if(!i.isRowsToRender())s=0,o=-1;else if(this.printLayout)this.beans.environment.refreshRowHeightVariable(),s=t.getFirstRow(),o=t.getLastRow();else{const d=this.getRowBufferInPixels(),u=this.ctrlsSvc.getScrollFeature(),h=this.gos.get("suppressRowVirtualisation");let p=!1,m,v;do{const y=t.getPixelOffset(),{pageFirstPixel:S,pageLastPixel:E}=t.getCurrentPagePixelRange(),R=e.divStretchOffset,F=u.getVScrollPosition(),D=F.top,T=F.bottom;h?(m=S+R,v=E+R):(m=Math.max(D+y-d,S)+R,v=Math.min(T+y+d,E)+R),this.firstVisibleVPixel=Math.max(D+y,S)+R,this.lastVisibleVPixel=Math.min(T+y,E)+R,p=this.ensureAllRowsInRangeHaveHeightsCalculated(m,v)}while(p);let C=i.getRowIndexAtPixel(m),w=i.getRowIndexAtPixel(v);const b=t.getFirstRow(),x=t.getLastRow();C<b&&(C=b),w>x&&(w=x),s=C,o=w}const n=yt(this.gos,"normal"),r=this.gos.get("suppressMaxRenderedRowRestriction"),a=Math.max(this.getRowBuffer(),500);n&&!r&&o-s>a&&(o=s+a);const l=s!==this.firstRenderedRow,c=o!==this.lastRenderedRow;(l||c)&&(this.firstRenderedRow=s,this.lastRenderedRow=o,this.eventSvc.dispatchEvent({type:"viewportChanged",firstRow:s,lastRow:o}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,os(this.beans,()=>{this.beans.eventSvc.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(e,t){const i=this.pinnedRowModel?.ensureRowHeightsValid(),s=this.stickyRowFeature?.ensureRowHeightsValid(),{pageBounds:o,rowModel:n}=this,r=n.ensureRowHeightsValid(e,t,o.getFirstRow(),o.getLastRow());return(r||s)&&this.eventSvc.dispatchEvent({type:"recalculateRowBounds"}),s||r||i?(this.updateContainerHeights(),!0):!1}doNotUnVirtualiseRow(e){const s=e.rowNode,o=this.focusSvc.isRowFocused(s.rowIndex,s.rowPinned),n=this.editSvc?.isEditing(e),r=s.detail;return o||n||r?!!this.isRowPresent(s):!1}isRowPresent(e){return this.rowModel.isRowPresent(e)?this.beans.pagination?.isRowInPage(e.rowIndex)??!0:!1}createRowCon(e,t,i){const s=this.cachedRowCtrls?.getRow(e)??null;if(s)return s;const o=i&&!this.printLayout&&!!this.beans.animationFrameSvc?.active;return new Nl(e,this.beans,t,o,this.printLayout)}getRenderedNodes(){const e=Object.values(this.rowCtrlsByRowIndex).map(s=>s.rowNode),t=this.getStickyTopRowCtrls().map(s=>s.rowNode),i=this.getStickyBottomRowCtrls().map(s=>s.rowNode);return[...t,...e,...i]}getRowByPosition(e){let t;const{rowIndex:i}=e;switch(e.rowPinned){case"top":t=this.topRowCtrls[i];break;case"bottom":t=this.bottomRowCtrls[i];break;default:t=this.rowCtrlsByRowIndex[i],t||(t=this.getStickyTopRowCtrls().find(s=>s.rowNode.rowIndex===i)||null,t||(t=this.getStickyBottomRowCtrls().find(s=>s.rowNode.rowIndex===i)||null));break}return t}isRangeInRenderedViewport(e,t){if(e==null||t==null)return!1;const s=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!s}},rT=class{constructor(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}addRow(e){if(this.entriesMap[e.rowNode.id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){const t=this.entriesList[0];t.destroyFirstPass(),t.destroySecondPass(),this.removeFromCache(t)}}getRow(e){if(e?.id==null)return null;const t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.rowNode!=e?null:t):null}has(e){return this.entriesMap[e.id]!=null}removeRow(e){const t=e.id,i=this.entriesMap[t];delete this.entriesMap[t],Hi(this.entriesList,i)}removeFromCache(e){const t=e.rowNode.id;delete this.entriesMap[t],Hi(this.entriesList,e)}getEntries(){return this.entriesList}};function Nu(e){if(!e)return;const t={top:{},bottom:{},normal:{}};for(const i of e){const s=i.id;switch(i.rowPinned){case"top":t.top[s]=i;break;case"bottom":t.bottom[s]=i;break;default:t.normal[s]=i;break}}return t}function Hu(e,t){const i=e.id;switch(e.rowPinned){case"top":return t.top[i]!=null;case"bottom":return t.bottom[i]!=null;default:return t.normal[i]!=null}}var aT=class extends B{constructor(){super(...arguments),this.beanName="rowNodeSorter",this.accentedSort=!1,this.primaryColumnsSortGroups=!1,this.pivotActive=!1}postConstruct(){this.firstLeaf=st(this.gos)?Ml:lT,this.addManagedPropertyListeners(["accentedSort","autoGroupColumnDef","treeData"],this.updateOptions.bind(this));const e=this.updatePivotModeState.bind(this);this.addManagedEventListeners({columnPivotModeChanged:e,columnPivotChanged:e}),this.updateOptions(),e()}updateOptions(){this.accentedSort=!!this.gos.get("accentedSort"),this.primaryColumnsSortGroups=Ki(this.gos)}updatePivotModeState(){this.pivotActive=this.beans.colModel.isPivotActive()}doFullSortInPlace(e,t){return e.sort((i,s)=>this.compareRowNodes(t,i,s))}compareRowNodes(e,t,i){if(t===i)return 0;const s=this.accentedSort;for(let o=0,n=e.length;o<n;++o){const r=e[o],a=r.sort==="desc";let l=this.getValue(t,r.column),c=this.getValue(i,r.column),d;const u=this.getComparator(r,t);if(u?d=u(l,c,t,i,a):(r.type==="absolute"&&(l=Pf(l),c=Pf(c)),d=kS(l,c,s)),d)return r.sort==="asc"?d:-d}return 0}getComparator(e,t){const i=e.column.getColDef(),s=this.getComparatorFromColDef(i,e);if(s)return s;if(!i.showRowGroup)return;const o=!t.group&&i.field;if(!o)return;const n=this.beans.colModel.getColDefCol(o);if(n)return this.getComparatorFromColDef(n.getColDef(),e)}getComparatorFromColDef(e,t){const i=e.comparator;if(i!=null)return typeof i=="object"?i[es(t.type)]:i}getValue(e,t){const i=this.beans;if(this.primaryColumnsSortGroups){if(e.rowGroupColumn===t)return this.getGroupDataValue(e,t);if(e.group&&t.getColDef().showRowGroup)return}const s=i.valueSvc.getValue(t,e,"data");if(t.isAllowFormula()){const o=i.formula;if(o?.isFormula(s))return o.resolveValue(t,e)}return s}getGroupDataValue(e,t){if(jv(this.gos,this.pivotActive)){const s=this.firstLeaf(e);return s&&this.beans.valueSvc.getValue(t,s,"data")}const i=this.beans.showRowGroupCols?.getShowRowGroupCol(t.getId());return i?e.groupData?.[i.getId()]:void 0}},lT=e=>{if(e.data)return e;let t=e.childrenAfterGroup;for(;t?.length;){const i=t[0];if(i.data)return i;t=i.childrenAfterGroup}},Pf=e=>{if(!e)return e;if(typeof e=="bigint")return e<0n?-e:e;const t=Number(e);return isNaN(t)?e:Math.abs(t)};function cT(e){e.sortSvc?.onSortChanged("api")}var js=(e,t)=>({tag:"span",ref:`eSort${e}`,cls:`ag-sort-indicator-icon ag-sort-${t} ag-hidden`,attrs:{"aria-hidden":"true"}}),dT={tag:"span",cls:"ag-sort-indicator-container",children:[js("Order","order"),js("Asc","ascending-icon"),js("Desc","descending-icon"),js("Mixed","mixed-icon"),js("AbsoluteAsc","absolute-ascending-icon"),js("AbsoluteDesc","absolute-descending-icon"),js("None","none-icon")]},sp=class extends ot{constructor(e){super(),this.eSortOrder=de,this.eSortAsc=de,this.eSortDesc=de,this.eSortMixed=de,this.eSortNone=de,this.eSortAbsoluteAsc=de,this.eSortAbsoluteDesc=de,e||this.setTemplate(dT)}attachCustomElements(e,t,i,s,o,n,r){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=i,this.eSortMixed=s,this.eSortNone=o,this.eSortAbsoluteAsc=n,this.eSortAbsoluteDesc=r}setupSort(e,t=!1,i){if(this.column=e,this.suppressOrder=t,this.getSortDefOverride=i,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 s=this.updateIcons.bind(this),o=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",s),this.addManagedEventListeners({newColumnsLoaded:s,sortChanged:o,columnRowGroupChanged:o}),this.onSortChanged()}addInIcon(e,t,i){if(t==null)return;const s=Wt(e,this.beans,i);s&&t.appendChild(s)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){const{eSortAsc:e,eSortDesc:t,eSortAbsoluteAsc:i,eSortAbsoluteDesc:s,eSortNone:o,column:n,gos:r,beans:a}=this,l=sR(n,a,this.getSortDefOverride),c=l.isDefaultSortAllowed,d=l.isAbsoluteSortAllowed,{isAbsoluteSort:u,isDefaultSort:h,isAscending:p,isDescending:m,direction:v}=l;if(e&&Ke(e,p&&h&&c,{skipAriaHidden:!0}),t&&Ke(t,m&&h&&c,{skipAriaHidden:!0}),o){const C=!n.getColDef().unSortIcon&&!r.get("unSortIcon");Ke(o,!C&&!v,{skipAriaHidden:!0})}i&&Ke(i,p&&u&&d,{skipAriaHidden:!0}),s&&Ke(s,m&&u&&d,{skipAriaHidden:!0})}setupMultiSortIndicator(){const{eSortMixed:e,column:t,gos:i}=this;this.addInIcon("sortUnSort",e,t);const s=t.getColDef().showRowGroup;Ki(i)&&s&&(this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)}),this.updateMultiSortIndicator())}updateMultiSortIndicator(){const{eSortMixed:e,beans:t,column:i}=this;if(e){const s=t.sortSvc.getDisplaySortForColumn(i)?.direction==="mixed";Ke(e,s,{skipAriaHidden:!0})}}updateSortOrder(){const{eSortOrder:e,column:t,beans:{sortSvc:i}}=this;if(!e)return;const s=i.getColumnsWithSortingOrdered(),o=i.getDisplaySortIndexForColumn(t)??-1,n=s.some(a=>i.getDisplaySortIndexForColumn(a)??!1),r=o>=0&&n;Ke(e,r,{skipAriaHidden:!0}),o>=0?e.textContent=(o+1).toString():_t(e)}refresh(){this.onSortChanged()}},uT={selector:"AG-SORT-INDICATOR",component:sp},hT=class extends B{constructor(){super(...arguments),this.beanName="sortSvc"}progressSort(e,t,i){const s=this.getNextSortDirection(e);this.setSortForColumn(e,s,t,i)}progressSortFromEvent(e,t){const s=this.gos.get("multiSortKey")==="ctrl"?t.ctrlKey||t.metaKey:t.shiftKey;this.progressSort(e,s,"uiColumnSorted")}setSortForColumn(e,t,i,s){const{gos:o,showRowGroupCols:n}=this.beans,r=Ki(o);let a=[e];if(r&&e.getColDef().showRowGroup){const u=n?.getSourceColumnsForGroupColumn?.(e)?.filter(h=>h.isSortable());u&&(a=[e,...u])}for(const d of a)this.setColSort(d,t,s);const l=(i||o.get("alwaysMultiSort"))&&!o.get("suppressMultiSort"),c=[];if(!l){const d=this.clearSortBarTheseColumns(a,s);c.push(...d)}this.updateSortIndex(e),c.push(...a),this.dispatchSortChangedEvents(s,c)}updateSortIndex(e){const{gos:t,colModel:i,showRowGroupCols:s}=this.beans,o=Ki(t),n=s?.getShowRowGroupCol(e.getId()),r=o&&n||e,a=this.getColumnsWithSortingOrdered();i.forAllCols(d=>this.setColSortIndex(d,null));const l=a.filter(d=>o&&d.getColDef().showRowGroup?!1:d!==r);(r.getSortDef()?[...l,r]:l).forEach((d,u)=>this.setColSortIndex(d,u))}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 i={type:"sortChanged",source:e};t&&(i.columns=t),this.eventSvc.dispatchEvent(i)}clearSortBarTheseColumns(e,t){const i=[];return this.beans.colModel.forAllCols(s=>{e.includes(s)||(s.getSortDef()&&i.push(s),this.setColSort(s,void 0,t))}),i}getNextSortDirection(e,t){const i=e.getSortingOrder(),s=t===void 0?e.getSortDef():li(t);let n=i.findIndex(r=>el(r,s))+1;return n>=i.length&&(n=0),li(i[n])}getIndexedSortMap(){const{gos:e,colModel:t,showRowGroupCols:i,rowGroupColsSvc:s}=this.beans;let o=[];if(t.forAllCols(c=>{c.getSortDef()&&o.push(c)}),t.isPivotMode()){const c=Ki(e);o=o.filter(d=>{const u=!!d.getAggFunc(),h=!d.isPrimary(),p=c?i?.getShowRowGroupCol(d.getId()):d.getColDef().showRowGroup;return u||h||p})}const n=s?.columns.filter(c=>!!c.getSortDef())??[],r={};o.forEach((c,d)=>r[c.getId()]=d),o.sort((c,d)=>{const u=c.getSortIndex(),h=d.getSortIndex();if(u!=null&&h!=null)return u-h;if(u==null&&h==null){const p=r[c.getId()],m=r[d.getId()];return p>m?1:-1}else return h==null?-1:1});const a=Ki(e)&&!!n.length;a&&(o=[...new Set(o.map(c=>i?.getShowRowGroupCol(c.getId())??c))]);const l=new Map;if(o.forEach((c,d)=>l.set(c,d)),a)for(const c of n){const d=i.getShowRowGroupCol(c.getId());l.set(c,l.get(d))}return l}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort(([,e],[,t])=>e-t).map(([e])=>e)}collectSortItems(e=!1){const t=[],i=this.getColumnsWithSortingOrdered();for(const s of i){const o=s.getSortDef()?.direction;if(!o)continue;const n=es(s.getSortDef()?.type),r={sort:o,type:n};e?r.colId=s.getId():r.column=s,t.push(r)}return t}getSortModel(){return this.collectSortItems(!0)}getSortOptions(){return this.collectSortItems()}canColumnDisplayMixedSort(e){const t=Ki(this.gos),i=!!e.getColDef().showRowGroup;return t&&i}getDisplaySortForColumn(e){const t=this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!t?.length)return e.getSortDef();const s=e.getColDef().field!=null||!!e.getColDef().valueGetter?[e,...t]:t,o=s[0].getSortDef();return s.every(r=>el(r.getSortDef(),o))?o:{type:es(e.getSortDef()?.type),direction:"mixed"}}getDisplaySortIndexForColumn(e){return this.getIndexedSortMap().get(e)}setupHeader(e,t){const i=()=>{const{type:s,direction:o}=li(t.getSortDef());if(e.toggleCss("ag-header-cell-sorted-asc",o==="asc"),e.toggleCss("ag-header-cell-sorted-desc",o==="desc"),e.toggleCss("ag-header-cell-sorted-abs-asc",s==="absolute"&&o==="asc"),e.toggleCss("ag-header-cell-sorted-abs-desc",s==="absolute"&&o==="desc"),e.toggleCss("ag-header-cell-sorted-none",!o),t.getColDef().showRowGroup){const a=!this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(t)?.every(l=>o==l.getSortDef()?.direction);e.toggleCss("ag-header-cell-sorted-mixed",a)}};e.addManagedEventListeners({sortChanged:i,columnPinned:i,columnRowGroupChanged:i,displayedColumnsChanged:i})}initCol(e){const{sortIndex:t,initialSortIndex:i}=e.colDef,s=Xv(e.colDef);s&&e.setSortDef(s,!0),t!==void 0?t!==null&&(e.sortIndex=t):i!==null&&(e.sortIndex=i)}updateColSort(e,t,i){t!==void 0&&this.setColSort(e,li(t),i)}setColSort(e,t,i){el(e.getSortDef(),t)||(e.setSortDef(li(t),t===void 0),e.dispatchColEvent("sortChanged",i)),e.dispatchStateUpdatedEvent("sort")}setColSortIndex(e,t){e.sortIndex=t,e.dispatchStateUpdatedEvent("sortIndex")}createSortIndicator(e){return new sp(e)}getSortIndicatorSelector(){return uT}},Dw={moduleName:"Sort",version:Q,beans:[hT,aT],apiFunctions:{onSortChanged:cT},userComponents:{agSortIndicator:sp},icons:{sortAscending:"asc",sortDescending:"desc",sortUnSort:"none",sortAbsoluteAscending:"aasc",sortAbsoluteDescending:"adesc"}},pT=class extends B{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:i}=this.beans;t.setColumnDefs(e??[],"gridInitializing"),i.start()}gridReady(){const{eventSvc:e,gos:t}=this;e.dispatchEvent({type:"gridReady"}),ho(t,`initialised successfully, enterprise = ${t.isModuleRegistered("EnterpriseCore")}`)}setColumnDefs(e){const t=this.gos.get("columnDefs");if(t){if(this.waitingForColumns){this.waitingForColumns=!1,this.setColumnsAndData(t);return}this.beans.colModel.setColumnDefs(t,hn(e.source))}}};function gT(e){e.valueCache?.expire()}function fT(e,t){const{colKey:i,rowNode:s,useFormatter:o,from:n="edit"}=t,r=e.colModel.getColDefCol(i)??e.colModel.getCol(i);if(!r)return null;const a=e.valueSvc.getValueForDisplay({column:r,node:s,includeValueFormatted:o,from:n});return o?a.valueFormatted??Tn(a.value):a.value}var mT="paste",vT=class extends B{constructor(){super(...arguments),this.beanName="changeDetectionSvc",this.deferredDepth=0,this.batchedPath=null,this.batchedNodes=null}destroy(){super.destroy(),this.batchedPath=null,this.batchedNodes=null}postConstruct(){this.csrm=zi(this.beans),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}beginDeferred(){this.deferredDepth++}endDeferred(){if(this.deferredDepth===0||--this.deferredDepth>0)return;const e=this.batchedPath,t=this.batchedNodes;this.batchedPath=null,this.batchedNodes=null,e&&this.csrm?.doAggregate(e);const{rowRenderer:i}=this.beans;if(t)for(const s of t)Tf(i,s);if(e){const s=e.getSortedRows();for(let o=0,n=s.length;o<n;++o)Tf(i,s[o])}(this.batchedPath||this.batchedNodes)&&(this.deferredDepth=1,this.endDeferred())}onCellValueChanged(e){const{gos:t,rowModel:i,changedPathFactory:s}=this.beans;if(e.source===mT||t.get("suppressChangeDetection")||!i.rootNode)return;const o=e.node.primaryRow;if(this.csrm){let n=this.batchedPath;n||(n=s?.newPath(t.get("aggregateOnlyChangedColumns"))??null,this.batchedPath=n);let r=o;o.group||((this.batchedNodes??(this.batchedNodes=new Set)).add(o),r=o.parent),n?.addCell(r,e.column.getColId())}else(this.batchedNodes??(this.batchedNodes=new Set)).add(o);this.deferredDepth===0&&(this.deferredDepth=1,this.endDeferred())}},Tf=(e,t)=>{const{sibling:i,pinnedSibling:s}=t;e.refreshRowByNode(t),e.refreshRowByNode(i),e.refreshRowByNode(s),e.refreshRowByNode(i?.pinnedSibling),e.refreshRowByNode(s?.sibling)},CT=class extends B{constructor(){super(...arguments),this.beanName="expressionSvc",this.cache={}}evaluate(e,t){if(typeof e=="string")return this.evaluateExpression(e,t);We(15,{expression:e})}evaluateExpression(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.getValue,t.column,t.columnGroup)}catch(i){return We(16,{expression:e,params:t,e:i}),null}}createExpressionFunction(e){const t=this.cache;if(t[e])return t[e];const i=this.createFunctionBody(e),s=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",i);return t[e]=s,s}createFunctionBody(e){return e.includes("return")?e:"return "+e+";"}},wT=class extends B{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,i){if(this.active){const s=this.cacheVersion;e.__cacheVersion!==s&&(e.__cacheVersion=s,e.__cacheData={}),e.__cacheData[t]=i}}getValue(e,t){if(!(!this.active||e.__cacheVersion!==this.cacheVersion))return e.__cacheData[t]}},bT={moduleName:"ValueCache",version:Q,beans:[wT],apiFunctions:{expireValueCache:gT}},xT={moduleName:"Expression",version:Q,beans:[CT]},yT={moduleName:"ChangeDetection",version:Q,beans:[vT]},ST={moduleName:"CellApi",version:Q,apiFunctions:{getCellValue:fT}},RT=class extends B{constructor(){super(...arguments),this.beanName="valueSvc",this.initialised=!1,this.isSsrm=!1}wireBeans(e){this.expressionSvc=e.expressionSvc,this.colModel=e.colModel,this.valueCache=e.valueCache,this.dataTypeSvc=e.dataTypeSvc,this.editSvc=e.editSvc,this.formulaDataSvc=e.formulaDataSvc,this.rowGroupColsSvc=e.rowGroupColsSvc}postConstruct(){this.initialised||this.init()}init(){const{gos:e,valueCache:t}=this;this.executeValueGetter=t?this.executeValueGetterWithValueCache.bind(this):this.executeValueGetterWithoutValueCache.bind(this),this.isSsrm=kn(e),this.cellExpressions=e.get("enableCellExpressions"),this.isTreeData=e.get("treeData"),this.initialised=!0;const i=s=>this.callColumnCellValueChangedHandler(s);this.eventSvc.addListener("cellValueChanged",i,!0),this.addDestroyFunc(()=>this.eventSvc.removeListener("cellValueChanged",i,!0)),this.addManagedPropertyListener("treeData",s=>this.isTreeData=s.currentValue)}getValueForDisplay(e){const t=this.beans,i=e.column,s=e.node,o=t.showRowGroupColValueSvc,n=!i&&s.group,r=i?.colDef.showRowGroup,a=!this.isTreeData||s.footer;if(o&&a&&(n||r)){const h=o.getGroupValue(s,i,this.displayIgnoresAggData(s));return h==null?{value:null,valueFormatted:null}:{value:h.value,valueFormatted:e.includeValueFormatted?o.formatAndPrefixGroupColValue(h,i,e.exporting):null}}if(!i)return{value:s.key,valueFormatted:null};let l=this.getValue(i,s,e.from,this.displayIgnoresAggData(s)),c=l;const d=t.formula;i.isAllowFormula()&&d?.isFormula(l)&&(e.useRawFormula?(l=d.normaliseFormula(l,!0),c=d.resolveValue(i,s)):(l=d.resolveValue(i,s),c=l));const u=e.includeValueFormatted&&!(e.exporting&&i.colDef.useValueFormatterForExport===!1);return{value:l,valueFormatted:u?this.formatValue(i,s,c):null}}getValue(e,t,i,s=!1){if(this.initialised||this.init(),!t)return;const o=e.colDef,n=t.group;if(!n){const l=o.pivotValueColumn;l&&(e=l)}const r=this.editSvc?.getPendingEditValue(t,e,i);if(r!==void 0)return r;let a=this.resolveValue(e,t,s,n);if(a===void 0){if(n){const l=o.showRowGroup;if(typeof l=="string"){const c=this.rowGroupColsSvc?.getColumnIndex(l);if(c!=null&&c>t.level)return null}}return}if(this.cellExpressions&&Sg(a)){const l=a.substring(1);a=this.executeValueGetter(l,t.data,e,t)}return a}displayIgnoresAggData(e){return!e.group||e.footer||e.level===-1||!e.sibling||this.gos.get("groupSuppressBlankHeader")||e.leafGroup&&this.colModel.isPivotMode()?!1:!!e.expanded}resolveValue(e,t,i,s){const o=e.colDef,n=e.colId,r=!s&&this.formulaDataSvc;if(r&&r.hasDataSource()&&o.allowFormula===!0){const b=r.getFormula({column:e,rowNode:t});if(Sg(b))return b}const a=s&&!i?t.aggData:void 0,l=this.isTreeData;if(l&&a?.[n]!==void 0)return a[n];const c=t.data,d=o.field,u=o.valueGetter;if(l){if(u)return this.executeValueGetter(u,c,e,t);if(d&&c)return vr(c,d,e.isFieldContainsDots())}const h=t.groupData;if(h&&n in h)return h[n];if(a?.[n]!==void 0)return a[n];const p=o.showRowGroup,m=typeof p!="string"||!s,v=this.isSsrm,C=v&&i&&!!o.aggFunc;if(u&&!C)return m?this.executeValueGetter(u,c,e,t):void 0;if(v&&t.footer&&t.field&&(p===!0||p===t.field))return vr(c,t.field,e.isFieldContainsDots());if(d&&c&&!C)return m?vr(c,d,e.isFieldContainsDots()):void 0}parseValue(e,t,i,s){const o=e.getColDef();if(o.allowFormula&&this.beans.formula?.isFormula(i))return i;const n=o.valueParser;if(te(n)){const r=xe(this.gos,{node:t,data:t?.data,oldValue:s,newValue:i,colDef:o,column:e});return typeof n=="function"?n(r):this.expressionSvc?.evaluate(n,r)}return i}getDeleteValue(e,t){return te(e.getColDef().valueParser)?this.parseValue(e,t,"",this.getValueForDisplay({column:e,node:t,from:"edit"}).value)??null:null}formatValue(e,t,i,s,o=!0){const{expressionSvc:n}=this.beans;let r=null,a;const l=e.getColDef();if(s?a=s:o&&(a=l.valueFormatter),a){const c=t?t.data:null,d=xe(this.gos,{value:i,node:t,data:c,colDef:l,column:e});typeof a=="function"?r=a(d):r=n?n.evaluate(a,d):null}else if(l.refData)return l.refData[i]||"";return r==null&&Array.isArray(i)&&(r=i.join(", ")),r}setValue(e,t,i,s){const o=t.getColDef();if(!e.data&&this.canCreateRowNodeData(e,o)&&(e.data={}),!this.isSetValueSupported(t,e,i,o))return!1;const n=this.getValue(t,e,"data"),r=xe(this.gos,{node:e,data:e.data,oldValue:n,newValue:i,colDef:o,column:t});let a=!1;if(e.data){const c=this.handleExternalFormulaChange({column:t,eventSource:s,newValue:i,setterParams:r,rowNode:e});if(c!==null)return c;a=this.computeValueChange({column:t,rowNode:e,newValue:i,params:r,rowData:e.data,valueSetter:o.valueSetter,field:o.field})??!0}const l=this.beans.changeDetectionSvc;l?.beginDeferred();try{if(e.group){const c=this.beans.rowGroupingEditValueSvc?.setGroupDataValue(e,t,i,n,s,a||i!==n);if(c!==void 0)return!a&&!c?!1:this.finishValueChange(e,t,r,s,i)}return a?this.finishValueChange(e,t,r,s):!1}finally{l?.endDeferred()}}canCreateRowNodeData(e,t){return e.group?!(t.groupRowValueSetter!=null||t.groupRowEditable!=null||t.pivotValueColumn):!0}finishValueChange(e,t,i,s,o){e.resetQuickFilterAggregateText(),this.valueCache?.onDataChanged();const n=o===void 0?this.getValue(t,e,"data"):o;return this.dispatchCellValueChangedEvent(e,i,n,s),e.pinnedSibling&&this.dispatchCellValueChangedEvent(e.pinnedSibling,i,n,s),!0}isSetValueSupported(e,t,i,s){const{field:o,valueSetter:n}=s,r=this.beans.formula,a=e.isAllowFormula()&&r?.isFormula(i),l=!!this.formulaDataSvc?.hasDataSource();return it(o)&&it(n)&&!(l&&a)?t.group&&(s.groupRowValueSetter||s.groupRowEditable)?!0:($(17),!1):this.dataTypeSvc&&!this.dataTypeSvc.checkType(e,i)?($(135),!1):!0}handleExternalFormulaChange(e){const{column:t,rowNode:i,newValue:s,eventSource:o,setterParams:n}=e,r=this.beans.formula,a=this.formulaDataSvc;if(!a?.hasDataSource()||!t.isAllowFormula())return null;const l=r?.isFormula(s),c=a.getFormula({column:t,rowNode:i});if(l){if(!(c!==s))return!1;a.setFormula({column:t,rowNode:i,formula:s});const u=r?.resolveValue(t,i),h=t.getColDef();if(te(h.valueSetter)||!it(h.field)){const p={...n,newValue:u};this.computeValueChange({column:t,rowNode:i,newValue:u,params:p,rowData:i.data,valueSetter:h.valueSetter,field:h.field})}return this.finishValueChange(i,t,n,o)}return c!==void 0&&a.setFormula({column:t,rowNode:i,formula:void 0}),null}computeValueChange(e){const{valueSetter:t,params:i,rowData:s,field:o,column:n,newValue:r}=e;return te(t)?typeof t=="function"?t(i):this.expressionSvc?.evaluate(t,i):!!s&&this.setValueUsingField(s,o,r,n.isFieldContainsDots())}dispatchCellValueChangedEvent(e,t,i,s){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:i,newRawValue:t.newValue,value:i,source:s})}callColumnCellValueChangedHandler(e){const t=e.colDef.onCellValueChanged;typeof t=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>{t(e)})}setValueUsingField(e,t,i,s){if(!t)return!1;let o=!1;if(!s)o=e[t]===i,o||(e[t]=i);else{const n=t.split(".");let r=e;for(;n.length>0&&r;){const a=n.shift();n.length===0?(o=r[a]===i,o||(r[a]=i)):r=r[a]}}return!o}executeValueGetterWithValueCache(e,t,i,s){const o=i.getColId(),n=this.valueCache.getValue(s,o);if(n!==void 0)return n;const r=this.executeValueGetterWithoutValueCache(e,t,i,s);return this.valueCache.setValue(s,o,r),r}executeValueGetterWithoutValueCache(e,t,i,s){const o=xe(this.gos,{data:t,node:s,column:i,colDef:i.getColDef(),getValue:r=>this.getValueCallback(s,r)});let n;return typeof e=="function"?n=e(o):n=this.expressionSvc?.evaluate(e,o),n}getValueCallback(e,t){const i=this.colModel.getColDefCol(t);return i?this.getValue(i,e,"data"):null}getKeyForNode(e,t){const i=this.getValue(e,t,"data"),s=e.getColDef().keyCreator;let o=i;if(s){const n=xe(this.gos,{value:i,colDef:e.getColDef(),column:e,node:t,data:t.data});o=s(n)}return typeof o=="string"||o==null||(o=String(o),o==="[object Object]"&&$(121)),o}},FT={moduleName:"CommunityCore",version:Q,beans:[n4,jF,E5,TR,sT,CD,JP,E4,FD,D6,E6,nT,RT,s4,XP,o4,P5,pT,w5,b5,B4],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:LC,destroy:_F,isDestroyed:UF,getGridOption:$F,setGridOption:qF,updateGridOptions:OC,isModuleRegistered:KF},dependsOn:[v5,KE,sD,Dw,L4,bD,O4,iT,yT,H4,F6,I6,L6,z4,S5,C5,xT,OD,H6]};function Bu(e){const{inputValue:t,allSuggestions:i,hideIrrelevant:s,filterByPercentageOfBestMatch:o}=e;let n=(i??[]).map((l,c)=>({value:l,relevance:ET(t,l),idx:c}));if(n.sort((l,c)=>l.relevance-c.relevance),s&&(n=n.filter(l=>l.relevance<Math.max(l.value.length,t.length))),n.length>0&&o&&o>0){const c=n[0].relevance*o;n=n.filter(d=>c-d.relevance<0)}const r=[],a=[];for(const l of n)r.push(l.value),a.push(l.idx);return{values:r,indices:a}}function ET(e,t){const i=e.length,s=t.length;if(s===0)return i||0;let o=e.toLocaleLowerCase(),n=t.toLocaleLowerCase(),r;e.length<t.length&&(r=n,n=o,o=r,r=t,t=e,e=r);let a=new Uint16Array(s+1),l=new Uint16Array(s+1);for(let u=0;u<=s;u++)a[u]=u;let c=0;const d=i/2-10;for(let u=1;u<=i;u++){const h=e[u-1],p=o[u-1];l[0]=u;for(let m=1;m<=s;m++){const v=t[m-1],C=n[m-1];if(p!==C){const w=l[m-1],b=a[m],x=a[m-1];let y=w<b?w:b;x<y&&(y=x),l[m]=y+1|0;continue}if(c++,h===v&&c++,u>1&&m>1){const w=e[u-2],b=o[u-2],x=t[m-2],y=n[m-2];b===y&&(c++,w===x&&c++)}u<d&&c++,l[m]=a[m-1]}r=a,a=l,l=r}return a[s]/(c+1)}var Pw={AdvancedFilter:1,AiToolkit:1,AllEnterprise:1,BatchEdit:1,CellSelection:1,Clipboard:1,ColumnMenu:1,ColumnsToolPanel:1,ContextMenu:1,ExcelExport:1,FiltersToolPanel:1,Find:1,GridCharts:1,IntegratedCharts:1,GroupFilter:1,MasterDetail:1,Menu:1,MultiFilter:1,NewFiltersToolPanel:1,Pivot:1,RangeSelection:1,RichSelect:1,RowNumbers:1,RowGrouping:1,RowGroupingEdit:1,RowGroupingPanel:1,ServerSideRowModelApi:1,ServerSideRowModel:1,SetFilter:1,SideBar:1,Sparklines:1,StatusBar:1,TreeData:1,ViewportRowModel:1,Formula:1},Od=["TextFilter","NumberFilter","BigIntFilter","DateFilter","SetFilter","MultiFilter","GroupFilter","CustomFilter"],DT={EditCore:["TextEditor","NumberEditor","DateEditor","CheckboxEditor","LargeTextEditor","SelectEditor","RichSelect","CustomEditor"],CheckboxCellRenderer:["AllCommunity"],ClientSideRowModelHierarchy:["RowGrouping","Pivot","TreeData"],ColumnFilter:Od,ColumnGroupHeaderComp:["AllCommunity"],ColumnGroup:["AllCommunity"],ColumnHeaderComp:["AllCommunity"],ColumnMove:["AllCommunity"],ColumnResize:["AllCommunity"],CommunityCore:["AllCommunity"],CsrmSsrmSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],RowModelSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],EnterpriseCore:["AllEnterprise"],FilterCore:[...Od,"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:[...Od,"ColumnMenu","ContextMenu"],SharedPivot:["Pivot","ServerSideRowModel"],SharedRowGrouping:["RowGrouping","ServerSideRowModel"],SharedRowSelection:["RowSelection","ServerSideRowModel"],SkeletonCellRenderer:["ServerSideRowModel"],Sort:["AllCommunity"],SsrmInfiniteSharedApi:["InfiniteRowModel","ServerSideRowModelApi"],SharedTreeData:["TreeData","ServerSideRowModel"]},PT={InfiniteRowModel:"infinite",ClientSideRowModelApi:"clientSide",ClientSideRowModel:"clientSide",ServerSideRowModelApi:"serverSide",ServerSideRowModel:"serverSide",ViewportRowModel:"viewport"};function TT(e,t){const i=[];for(const s of Array.isArray(e)?e:[e]){const o=DT[s];if(o)for(const n of o){const r=PT[n];(!r||r===t)&&i.push(n)}else i.push(s)}return i}var Tw=()=>`No AG Grid modules are registered! It is recommended to start with all Community features via the AllCommunityModule:
26
-
27
- import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community';
28
-
29
- ModuleRegistry.registerModules([ AllCommunityModule ]);
30
- `,kT=e=>{const t=e.map(s=>`import { ${Cr(s)} } from '${Pw[s]?"ag-grid-enterprise":"ag-grid-community"}';`);return e.some(s=>s==="IntegratedCharts"||s==="Sparklines")&&t.push("import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';"),`import { ModuleRegistry } from 'ag-grid-community';
31
- ${t.join(`
32
- `)}
33
-
34
- ModuleRegistry.registerModules([ ${e.map(s=>Cr(s,!0)).join(", ")} ]);
35
-
36
- For more info see: ${an}/modules/`};function Cr(e,t=!1){return t&&(e==="IntegratedCharts"||e==="Sparklines")?`${e}Module.with(AgChartsEnterpriseModule)`:`${e}Module`}function IT(e,t){const i=t.filter(n=>n==="IntegratedCharts"||n==="Sparklines");let s="";return!globalThis?.agCharts&&i.length>0?s=`Unable to use ${e} as either the ag-charts-community or ag-charts-enterprise script needs to be included alongside ag-grid-enterprise.
37
- `:t.some(n=>Pw[n])&&(s=s+`Unable to use ${e} as that requires the ag-grid-enterprise script to be included.
38
- `),s}function kw({moduleName:e,rowModelType:t}){return`To use the ${e}Module you must set the gridOption "rowModelType='${t}'"`}var kf=({reasonOrId:e,moduleName:t,gridScoped:i,gridId:s,rowModelType:o,additionalText:n,isUmd:r})=>{const a=TT(t,o),l=typeof e=="string"?e:OT[e];if(r)return IT(l,a);const c=a.filter(h=>h==="IntegratedCharts"||h==="Sparklines"),d=c.length>0?`${c.map(h=>Cr(h)).join()} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.`:"";return`${`Unable to use ${l} as ${a.length>1?"one of "+a.map(h=>Cr(h)).join(", "):Cr(a[0])} is not registered${i?" for gridId: "+s:""}. ${d} Check if you have registered the module:
39
- `}
40
- ${kT(a)}`+(n?`
41
-
42
- ${n}`:"")},If=e=>`${e} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.
43
-
44
- import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';
45
- import { ModuleRegistry } from 'ag-grid-community';
46
- import { ${e} } from 'ag-grid-enterprise';
47
-
48
- ModuleRegistry.registerModules([${e}.with(AgChartsEnterpriseModule)]);
49
- `,MT=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.`,AT={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:i})=>["Processing of the expression failed","Expression = ",e,"Params = ",t,"Exception = ",i],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:
50
- "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.
51
- Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.
52
- To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${t}`,27:({fnName:e,module:t})=>`API function '${e}' not registered to module '${t}'`,28:()=>"setRowCount cannot be used while using row grouping.",29:()=>"tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?",30:({toIndex:e})=>["tried to insert columns in invalid location, toIndex = ",e,"remember that you should not count the moving columns when calculating the new index"],31:()=>"infinite loop in resizeColumnSets",32:()=>"applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state.",33:()=>"stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON.",34:({key:e})=>`the column type '${e}' is a default column type and cannot be overridden.`,35:()=>"Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type.",36:({t:e})=>"colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes",37:()=>"Changing the column pinning status is not allowed with domLayout='print'",38:({iconName:e})=>`provided icon '${e}' needs to be a string or a function`,39:()=>"Applying column order broke a group where columns should be married together. Applying new order has been discarded.",40:({e,method:t})=>`${e}
53
- ${MT(t)}`,41:()=>"Browser did not allow document.execCommand('copy'). Ensure 'api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons.",42:()=>"Browser does not support document.execCommand('copy') for clipboard operations",43:({iconName:e})=>`As of v33, icon '${e}' is deprecated. Use the icon CSS name instead.`,44:()=>'Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.',45:({parentCellDataType:e})=>`The data type definition ${e} does not exist.`,46:()=>'The "baseDataType" property of a data type definition must match that of its parent.',47:({cellDataType:e})=>`Missing data type definition - "${e}"`,48:({property:e,inferred:t,colId:i})=>{const s=t?" (inferred)":"",o=i?` for column "${i}"`:"";return`Cell data type is "object"${s} but no Value ${e} has been provided${o}. Please either provide an object data type definition with a Value ${e}, or set:
54
- - "colDef.value${e}"${t&&e==="Parser"?`
55
- - "colDef.cellDataType = 'object'"`:""}`},49:({methodName:e})=>`Framework component is missing the method ${e}()`,50:({compName:e})=>`Could not find component ${e}, did you forget to configure this component?`,51:()=>"Export cancelled. Export is not allowed as per your configuration.",52:()=>"There is no `window` associated with the current `document`",53:()=>"unknown value type during csv conversion",54:()=>"Could not find document body, it is needed for drag and drop and context menu.",55:()=>"addRowDropZone - A container target needs to be provided",56:()=>"addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.",57:()=>"unable to show popup filter, filter instantiation failed",58:()=>"no values found for select cellEditor",59:()=>"cannot select pinned rows",60:()=>"cannot select node until it has finished loading",61:()=>"since version v32.2.0, rowNode.isFullWidthCell() has been deprecated. Instead check `rowNode.detail` followed by the user provided `isFullWidthRow` grid option.",62:({colId:e})=>`setFilterModel() - no column found for colId: ${e}`,63:({colId:e})=>`setFilterModel() - unable to fully apply model, filtering disabled for colId: ${e}`,64:({colId:e})=>`setFilterModel() - unable to fully apply model, unable to create filter for colId: ${e}`,65:()=>"filter missing setModel method, which is needed for setFilterModel",66:()=>"filter API missing getModel method, which is needed for getFilterModel",67:()=>"Filter is missing isFilterActive() method",68:()=>"Column Filter API methods have been disabled as Advanced Filters are enabled.",69:({guiFromFilter:e})=>`getGui method from filter returned ${e}; it should be a DOM element.`,70:({newFilter:e})=>`Grid option quickFilterText only supports string inputs, received: ${typeof e}`,71:()=>"debounceMs is ignored when apply button is present",72:({keys:e})=>["ignoring FilterOptionDef as it doesn't contain one of ",e],73:()=>"invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'",74:()=>"no filter options for filter",75:()=>"Unknown button type specified",76:({filterModelType:e})=>['Unexpected type of filter "',e,'", it looks like the filter was configured with incorrect Filter Options'],77:()=>"Filter model is missing 'conditions'",78:()=>'Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.',79:()=>'"filterParams.maxNumConditions" must be greater than or equal to zero.',80:()=>'"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.',81:()=>'"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".',82:({param:e})=>`DateFilter ${e} is not a number`,83:()=>"DateFilter minValidYear should be <= maxValidYear",84:()=>"DateFilter minValidDate should be <= maxValidDate",85:()=>"DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored.",86:()=>"DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored.",87:()=>"DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.",88:({index:e})=>`Invalid row index for ensureIndexVisible: ${e}`,89:()=>"A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)",90:()=>"datasource is missing getRows method",91:()=>"Filter is missing method doesFilterPass",92:()=>"AnimationFrameService called but animation frames are off",93:()=>"cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`",94:({paginationPageSizeOption:e,pageSizeSet:t,pageSizesSet:i,pageSizeOptions:s})=>`'paginationPageSize=${e}'${t?"":" (default value)"}, but ${e} is not included in${i?"":" the default"} paginationPageSizeSelector=[${s?.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:i,jsComps:s})=>{const o=[],n=[...Object.keys(i??[]).filter(a=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(a)),...Object.keys(s??[]).filter(a=>!!s[a])],r=Bu({inputValue:t,allSuggestions:n,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return o.push(`Could not find '${t}' component. It was configured as "${e}: '${t}'" but it wasn't found in the list of registered components.
56
- `),r.length>0&&o.push(` Did you mean: [${r.slice(0,3)}]?
57
- `),o.push("If using a custom component check it has been registered correctly."),o},102:()=>"selectAll: 'filtered' only works when gridOptions.rowModelType='clientSide'",103:()=>"Invalid selection state. When using client-side row model, the state must conform to `string[]`.",104:({value:e,param:t})=>`Numeric value ${e} passed to ${t} param will be interpreted as ${e} seconds. If this is intentional use "${e}s" to silence this warning.`,105:({e})=>["chart rendering failed",e],106:()=>`Theming API and Legacy Themes are both used in the same page. A Theming API theme has been provided to the 'theme' grid option, but the file (ag-grid.css) is also included and will cause styling issues. Remove ag-grid.css from the page. See the migration guide: ${an}/theming-migration/`,107:({key:e,value:t})=>`Invalid value for theme param ${e} - ${t}`,108:({e})=>["chart update failed",e],109:({inputValue:e,allSuggestions:t})=>{const i=Bu({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.`,i.length>0?` Did you mean: [${i.slice(0,3)}]?`:"","If using a custom aggregation function check it has been registered correctly."].join(`
58
- `)},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.
59
- 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:i})=>["duplicate group keys for row data, keys should be unique",e,t,...i??[]],187:({rowId:e,firstData:t,secondData:i})=>[`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",i],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:kf,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 ${an}/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.
60
- Please rebuild the selection state and reapply it.`,248:()=>"SetFloatingFilter expects SetFilter as its parent",249:()=>"Must supply a Value Formatter in Set Filter params when using a Key Creator",250:()=>"Must supply a Key Creator in Set Filter params when `treeList = true` on a group column, and Tree Data or Row Grouping is enabled.",251:({chartType:e})=>`AG Grid: Unable to create chart as an invalid chartType = '${e}' was supplied.`,252:()=>`cannot get grid to draw rows when it is in the middle of drawing rows.
61
- Your code probably called a grid API method while the grid was in the render stage.
62
- To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0).
63
- To see what part of your code that caused the refresh check this stacktrace.`,253:({version:e})=>["Illegal version string: ",e],254:()=>"Cannot create chart: no chart themes available.",255:({point:e})=>`Lone surrogate U+${e?.toString(16).toUpperCase()} is not a scalar value`,256:()=>"Unable to initialise. See validation error, or load ValidationModule if missing.",257:()=>If("IntegratedChartsModule"),258:()=>If("SparklinesModule"),259:({part:e})=>`the argument to theme.withPart must be a Theming API part object, received: ${e}`,260:({propName:e,compName:t,gridScoped:i,gridId:s,rowModelType:o})=>kf({reasonOrId:`AG Grid '${e}' component: ${t}`,moduleName:gn[t],gridId:s,gridScoped:i,rowModelType:o}),261:()=>"As of v33, `column.isHovered()` is deprecated. Use `api.isColumnHovered(column)` instead.",262:()=>'As of v33, icon key "smallDown" is deprecated. Use "advancedFilterBuilderSelect" for Advanced Filter Builder dropdown, "selectOpen" for Select cell editor and dropdowns (e.g. Integrated Charts menu), "richSelectOpen" for Rich Select cell editor.',263:()=>'As of v33, icon key "smallLeft" is deprecated. Use "panelDelimiterRtl" for Row Group Panel / Pivot Panel, "subMenuOpenRtl" for sub-menus.',264:()=>'As of v33, icon key "smallRight" is deprecated. Use "panelDelimiter" for Row Group Panel / Pivot Panel, "subMenuOpen" for sub-menus.',265:({colId:e})=>`Unable to infer chart data type for column '${e}' if first data entry is null. Please specify "chartDataType", or a "cellDataType" in the column definition. For more information, see ${an}/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:()=>Tw(),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:kw,276:()=>"Row Numbers Row Resizer cannot be used when Grid Columns have `autoHeight` enabled.",277:({colId:e})=>`'enableFilterHandlers' is set to true, but column '${e}' does not have 'filter.doesFilterPass' or 'filter.handler' set.`,278:({colId:e})=>`Unable to create filter handler for column '${e}'`,279:e=>{},280:({colId:e})=>`'name' must be provided for custom filter components for column '${e}`,281:({colId:e})=>`Filter for column '${e}' does not have 'filterParams.buttons', but the new Filters Tool Panel has buttons configured. Either configure buttons for the filter, or disable buttons on the Filters Tool Panel.`,282:()=>"New filter tool panel requires `enableFilterHandlers: true`.",283:()=>"As of v34, use the same method on the filter handler (`api.getColumnFilterHandler(colKey)`) instead.",284:()=>"As of v34, filters are active when they have a model. Use `api.getColumnFilterModel()` instead.",285:()=>"As of v34, use (`api.getColumnFilterModel()`) instead.",286:()=>"As of v34, use (`api.setColumnFilterModel()`) instead.",287:()=>"`api.doFilterAction()` requires `enableFilterHandlers = true",288:()=>"`api.getColumnFilterModel(key, true)` requires `enableFilterHandlers = true",289:({rowModelType:e})=>`Row Model '${e}' is not supported with Batch Editing`,290:({rowIndex:e,rowPinned:t})=>`Row with index '${e}' and pinned state '${t}' not found`,291:()=>"License Key being set multiple times with different values. This can result in an incorrect license key being used,",292:({colId:e})=>`The Multi Filter for column '${e}' has buttons configured against the child filters. When 'enableFilterHandlers=true', buttons must instead be provided against the parent Multi Filter params. The child filter buttons will be ignored.`,293:()=>"The grid was initialised detached from the DOM and was then inserted into a Shadow Root. Theme styles are probably broken. Pass the themeStyleContainer grid option to let the grid know where in the document to insert theme CSS.",294:()=>"When using the `agRichSelectCellEditor` setting `filterListAsync = true` requires `allowTyping = true` and the `values()` callback must return a Promise of filtered values.",295:({blockedService:e})=>`colDef.allowFormula is not supported with ${e}. Formulas has been turned off.`,296:()=>"Since v35, `api.hideOverlay()` does not hide the overlay when `activeOverlay` is set. Set `activeOverlay=null` instead.",297:()=>'`api.hideOverlay()` does not hide the no matching rows overlay as it is only controlled by grid state. Set `suppressOverlays=["noMatchingRows"] to not show it.',298:()=>"Columns Tool Panel 'buttons' requires 'apply' to enable Deferred Updates."};function LT(e,t){const i=AT[e];if(!i)return[`Missing error text for error id ${e}!`];const s=i(t),n=`
64
- See ${Hv(e,t)}`;return Array.isArray(s)?s.concat(n):[s,n]}var OT={1:"Charting Aggregation",2:"pivotResultFields",3:"setTooltip"},Iw=class{constructor(e="javascript"){this.frameworkName=e,this.renderingEngine="vanilla",this.batchFrameworkComps=!1,this.wrapIncoming=t=>t(),this.wrapOutgoing=t=>t(),this.baseDocLink=`${Ev}/${this.frameworkName}-data-grid`,T2(this.baseDocLink)}frameworkComponent(e){return null}isFrameworkComponent(e){return!1}getDocLink(e){return this.baseDocLink+(e?"/"+e:"")}},Mf=new WeakMap,Af=new WeakMap,NT=1,HT=class{create(e,t,i,s,o,n){const r=Rh.applyGlobalGridOptions(t),a=r.gridId??String(NT++),l=this.getRegisteredModules(o,a,r.rowModelType),c=this.createBeansList(r.rowModelType,l,a),d=this.createProvidedBeans(e,r,o);if(!c)return;const h={providedBeanInstances:d,beanClasses:c,id:a,beanInitComparator:O3,beanDestroyComparator:N3,derivedBeans:[A3],destroyCallback:()=>{Af.delete(m),Mf.delete(e),S2(a),n?.()}},p=new M3(h);this.registerModuleFeatures(p,l),i(p),p.getBean("syncSvc").start(),s?.(p);const m=p.getBean("gridApi");return Mf.set(e,m),Af.set(m,e),m}getRegisteredModules(e,t,i){return Ir(FT,void 0,!0),e?.modules?.forEach(s=>Ir(s,t)),R2(t,Lf(i))}registerModuleFeatures(e,t){const i=e.getBean("registry"),s=e.getBean("apiFunctionSvc");for(const o of t){i.registerModule(o);const n=o.apiFunctions;if(n){const r=Object.keys(n);for(const a of r)s?.addFunction(a,n[a])}}}createProvidedBeans(e,t,i){let s=i?i.frameworkOverrides:null;it(s)&&(s=new Iw);const o={gridOptions:t,eGridDiv:e,eRootDiv:e,globalListener:i?i.globalListener:null,globalSyncListener:i?i.globalSyncListener:null,frameworkOverrides:s,withinStudio:i?.withinStudio};return i?.providedBeanInstances&&Object.assign(o,i.providedBeanInstances),o}createBeansList(e,t,i){const s={clientSide:"ClientSideRowModel",infinite:"InfiniteRowModel",serverSide:"ServerSideRowModel",viewport:"ViewportRowModel"},o=Lf(e),n=s[o];if(!n){nr(201,{rowModelType:o},`Unknown rowModelType ${o}.`);return}if(!D2()){nr(272,void 0,Tw());return}if(!e){const a=Object.entries(s).filter(([l,c])=>mu(c,i,l));if(a.length==1){const[l,c]=a[0];if(l!==o){const d={moduleName:c,rowModelType:l};nr(275,d,kw(d));return}}}if(!mu(n,i,o)){const a=Iv(),l=`rowModelType = '${o}'`,c=`Missing module ${n}Module for rowModelType ${o}.`;nr(200,{reasonOrId:l,moduleName:n,gridScoped:Fh(),gridId:i,rowModelType:o,isUmd:a},c);return}const r=new Set;for(const a of t)for(const l of a.beans??[])r.add(l);return Array.from(r)}};function Lf(e){return e??"clientSide"}function BT(e,t=!1){const i=[],s=[],o=[],n=[],r=[],a=[],l=[],c=[],d=[];let u=0;for(let h=0;h<e.length;h++){const{colId:p,sort:m,sortType:v,sortIndex:C,rowGroup:w,rowGroupIndex:b,aggFunc:x,pivot:y,pivotIndex:S,pinned:E,hide:R,width:F,flex:D}=e[h];d.push(p),m&&(i[C??u++]={colId:p,sort:m,type:v}),w&&(s[b??0]=p),typeof x=="string"&&o.push({colId:p,aggFunc:x}),y&&(n[S??0]=p),E&&(E==="right"?a:r).push(p),R&&l.push(p),(D!=null||F)&&c.push({colId:p,flex:D??void 0,width:F===null?void 0:F})}return{sort:i.length?{sortModel:Nd(i)}:void 0,rowGroup:s.length?{groupColIds:Nd(s)}:void 0,aggregation:o.length?{aggregationModel:o}:void 0,pivot:n.length||t?{pivotMode:t,pivotColIds:Nd(n)}:void 0,columnPinning:r.length||a.length?{leftColIds:r,rightColIds:a}:void 0,columnVisibility:l.length?{hiddenColIds:l}:void 0,columnSizing:c.length?{columnSizingModel:c}:void 0,columnOrder:d.length?{orderedColIds:d}:void 0}}function Nd(e){return e.filter(t=>t!=null)}function GT(e){const t=[];for(const{groupId:i,open:s}of e)s&&t.push(i);return t.length?{openColumnGroupIds:t}:void 0}var VT=class extends B{constructor(){super(...arguments),this.beanName="alignedGridsSvc",this.consuming=!1}getAlignedGridApis(){let e=this.gos.get("alignedGrids")??[];const t=typeof e=="function";return typeof e=="function"&&(e=e()),e.map(s=>{if(!s){We(18),t||We(20);return}if(this.isGridApi(s))return s;const o=s;return"current"in o?o.current?.api:(o.api||We(19),o.api)}).filter(s=>!!s&&!s.isDestroyed())}isGridApi(e){return!!e&&!!e.dispatchEvent}postConstruct(){const e=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:e,columnVisible:e,columnPinned:e,columnGroupOpened:e,columnResized:e,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:t})=>this.onColumnEvent(t),alignedGridScroll:({event:t})=>this.onScrollEvent(t)})}fireEvent(e){if(!this.consuming)for(const t of this.getAlignedGridApis())t.isDestroyed()||t.dispatchEvent(e)}onEvent(e){this.consuming=!0,e(),this.consuming=!1}fireColumnEvent(e){this.fireEvent({type:"alignedGridColumn",event:e})}fireScrollEvent(e){e.direction==="horizontal"&&this.fireEvent({type:"alignedGridScroll",event:e})}onScrollEvent(e){this.onEvent(()=>{this.beans.ctrlsSvc.getScrollFeature().setHorizontalScrollPosition(e.left,!0)})}extractDataFromEvent(e,t){const i=[];return e.columns?e.columns.forEach(s=>{i.push(t(s))}):e.column&&i.push(t(e.column)),i}getMasterColumns(e){return this.extractDataFromEvent(e,t=>t)}getColumnIds(e){return this.extractDataFromEvent(e,t=>t.getColId())}onColumnEvent(e){this.onEvent(()=>{switch(e.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":{this.processColumnEvent(e);break}case"columnGroupOpened":{this.processGroupOpenedEvent(e);break}case"columnPivotChanged":$(21);break}})}processGroupOpenedEvent(e){const{colGroupSvc:t}=this.beans;if(t)for(const i of e.columnGroups){let s=null;i&&(s=t.getProvidedColGroup(i.getGroupId())),!(i&&!s)&&t.setColumnGroupOpened(s,i.isExpanded(),"alignedGridChanged")}}processColumnEvent(e){const t=e.column;let i=null;const s=this.beans,{colResize:o,ctrlsSvc:n,colModel:r}=s;if(t&&(i=r.getColDefCol(t.getColId())),t&&!i)return;const a=this.getMasterColumns(e);switch(e.type){case"columnMoved":{const u=e.api.getColumnState().map(h=>({colId:h.colId}));xi(s,{state:u,applyOrder:!0},"alignedGridChanged")}break;case"columnVisible":{const u=e.api.getColumnState().map(h=>({colId:h.colId,hide:h.hide}));xi(s,{state:u},"alignedGridChanged")}break;case"columnPinned":{const u=e.api.getColumnState().map(h=>({colId:h.colId,pinned:h.pinned}));xi(s,{state:u},"alignedGridChanged")}break;case"columnResized":{const d=e,u={};for(const h of a)u[h.getId()]={key:h.getColId(),newWidth:h.getActualWidth()};for(const h of d.flexColumns??[])u[h.getId()]&&delete u[h.getId()];o?.setColumnWidths(Object.values(u),!1,d.finished,"alignedGridChanged");break}}const c=n.getGridBodyCtrl().isVerticalScrollShowing();for(const d of this.getAlignedGridApis())d.setGridOption("alwaysShowVerticalScroll",c)}},zT={moduleName:"AlignedGrids",version:Q,beans:[VT],dependsOn:[XC]};function WT(e,t={}){const i=t?t.rowNodes:void 0;e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.redrawRows(i))}function Mw(e,t,i,s,o){t&&(s&&t.parent&&t.parent.level!==-1&&Mw(e,t.parent,i,s,o),t.setExpanded(i,void 0,o))}function jT(e,t){return e.rowModel.getRowNode(t)}function _T(e,t,i,s){e.rowRenderer.addRenderedRowListener(t,i,s)}function UT(e){return e.rowRenderer.getRenderedNodes()}function $T(e,t,i){e.rowModel.forEachNode(t,i)}function qT(e){return e.rowRenderer.firstRenderedRow}function KT(e){return e.rowRenderer.lastRenderedRow}function YT(e,t){return e.rowModel.getRow(t)}function ZT(e){return e.rowModel.getRowCount()}function XT(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}function QT(e){return e.ctrlsSvc.getScrollFeature().getHScrollPosition()}function Aw(e,t,i="auto"){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureColumnVisible(t,i),"ensureVisible")}function Lw(e,t,i){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureIndexVisible(t,i),"ensureVisible")}function JT(e,t,i=null){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureNodeVisible(t,i),"ensureVisible")}var ek={moduleName:"RowApi",version:Q,apiFunctions:{redrawRows:WT,setRowNodeExpanded:Mw,getRowNode:jT,addRenderedRowListener:_T,getRenderedNodes:UT,forEachNode:$T,getFirstDisplayedRowIndex:qT,getLastDisplayedRowIndex:KT,getDisplayedRowAtIndex:YT,getDisplayedRowCount:ZT}},tk={moduleName:"ScrollApi",version:Q,apiFunctions:{getVerticalPixelRange:XT,getHorizontalPixelRange:QT,ensureColumnVisible:Aw,ensureIndexVisible:Lw,ensureNodeVisible:JT}};function ik(e){e.expansionSvc?.expandAll(!0)}function sk(e){e.expansionSvc?.expandAll(!1)}function Ow(e){e.rowModel?.onRowHeightChanged()}function Nw(e){if(e.rowAutoHeight?.active){$(3);return}e.rowModel?.resetRowHeights()}function ok(e){e.expansionSvc?.resetExpansion()}function nk(e,t,i){const s=m3(e);if(s){if(e.rowGroupColsSvc?.columns.length===0){if(t<0){We(238);return}s.setRowCount(t,i);return}We(28);return}ac(e)?.setRowCount(t,i)}function rk(e){return kn(e.gos)?e.rowModel.getBlockStates():e.rowNodeBlockLoader?.getBlockState()??{}}function ak(e){return e.rowModel.isLastRowIndexKnown()}var lk={moduleName:"CsrmSsrmSharedApi",version:Q,apiFunctions:{expandAll:ik,collapseAll:sk,resetRowGroupExpansion:ok}},ck={moduleName:"RowModelSharedApi",version:Q,apiFunctions:{onRowHeightChanged:Ow,resetRowHeights:Nw}},dk={moduleName:"SsrmInfiniteSharedApi",version:Q,apiFunctions:{setRowCount:nk,getCacheBlockState:rk,isLastRowIndexKnown:ak}},Hw=(e,t)=>{for(let i=0,s=e.length;i<s;++i){const o=e[i],n=o.childrenAfterGroup;n!==null&&(Hw(n,t),t(o))}},wo=(e,t,i,s)=>{if(i!=null){const n=i.getSortedRows();for(let r=0,a=n.length;r<a;++r){const l=n[r];l.childrenAfterGroup!==null&&!l.destroyed&&s(l)}return}if(e==null)return;const o=e.childrenAfterGroup;o!==null&&(t&&Hw(o,s),s(e))},uk=class extends B{constructor(e){super(),this.rootNode=e,this.nextId=0,this.allNodesMap={},Of(e)}getRowNode(e){return this.allNodesMap[e]}setNewRowData(e){this.dispatchRowDataUpdateStarted(e),this.destroyAllNodes();const t=Of(this.rootNode),i=new Array(e.length);t._leafs=i;let s=0;const o=this.beans.groupStage?.getNestedDataGetter(),n=o?new Set:null,r=(a,l)=>{const c=a.level+1;for(let d=0,u=l.length;d<u;++d){const h=l[d];if(!h)continue;const p=this.createRowNode(h,c,s);if(i[s++]=p,n&&!n.has(h)){n.add(h),p.treeParent=a;const m=o(h);m&&r(p,m)}}};r(t,e),i.length=s}destroyAllNodes(){const{selectionSvc:e,pinnedRowModel:t,groupStage:i}=this.beans;e?.reset("rowDataChanged"),t?.isManual()&&t.reset(),i?.clearNonLeafs();const s=this.rootNode._leafs;if(s)for(let o=0,n=s.length;o<n;++o)s[o]._destroy(!1);this.allNodesMap=Object.create(null),this.nextId=0}setImmutableRowData(e,t){const{rootNode:i,gos:s}=this;this.dispatchRowDataUpdateStarted(t);const o=wn(s),n=e.changedRowNodes,{adds:r,updates:a}=n,l=new Set,c=[],d=this.beans.groupStage?.getNestedDataGetter();let u=s.get("suppressMaintainUnsortedOrder")?void 0:!1,h=-1,p=!1;const m=(w,b)=>{if(!u&&u!==void 0){const x=w.sourceRowIndex;u=x<=h,h=x}w.data!==b&&(w.updateData(b),r.has(w)||a.add(w),!w.selectable&&w.isSelected()&&c.push(w))},v=(w,b,x)=>{for(let y=0,S=b.length;y<S;++y){const E=b[y];if(!E)continue;let R=this.getRowNode(o({data:E,level:x}));if(R?(m(R,E),p||(p=!!d&&R.treeParent!==w)):(R=this.createRowNode(E,x),r.add(R)),!d||l.has(R)){l.add(R);continue}l.add(R),R.treeParent=w;const F=d(E);F&&v(R,F,x+1)}};v(i,t,0);const C=this.deleteUnusedNodes(l,n,c,!!e.animate)||u||r.size>0;if(C){const w=i._leafs??(i._leafs=[]);u===void 0?mk(w,l,n):fk(w,l)&&(n.reordered=!0)}(C||p||a.size)&&(e.rowDataUpdated=!0,this.deselect(c))}deleteUnusedNodes(e,{removals:t},i,s){const o=this.rootNode._leafs;for(let n=0,r=o.length;n<r;n++){const a=o[n];e.has(a)||this.destroyNode(a,s)&&(t.push(a),a.isSelected()&&i.push(a))}return t.length>0}updateRowData(e,t,i){if(this.dispatchRowDataUpdateStarted(e.add),this.beans.groupStage?.getNestedDataGetter())return $(268),{remove:[],update:[],add:[]};const s=[],o=wn(this.gos),n=this.executeRemove(o,e,t,s,i),r=this.executeUpdate(o,e,t,s),a=this.executeAdd(e,t);return this.deselect(s),{remove:n,update:r,add:a}}executeRemove(e,{remove:t},{adds:i,updates:s,removals:o},n,r){const a=this.rootNode._leafs,l=a?.length,c=t?.length;if(!c||!l)return[];let d=0,u=l,h=0;const p=new Array(c);for(let m=0;m<c;++m){const v=this.lookupNode(e,t[m]);if(!v)continue;const C=v.sourceRowIndex;C<u&&(u=C),C>h&&(h=C),p[d++]=v,this.destroyNode(v,r)&&(v.isSelected()&&n.push(v),i.delete(v)||(s.delete(v),o.push(v)))}return p.length=d,d&&gk(a,u,h),p}executeUpdate(e,{update:t},{adds:i,updates:s},o){const n=t?.length;if(!n)return[];const r=new Array(n);let a=0;for(let l=0;l<n;l++){const c=t[l],d=this.lookupNode(e,c);d&&(d.updateData(c),!d.selectable&&d.isSelected()&&o.push(d),r[a++]=d,i.has(d)||s.add(d))}return r.length=a,r}executeAdd(e,t){var i;const s=(i=this.rootNode)._leafs??(i._leafs=[]),o=s.length,n=e.add,r=n?.length;if(!r)return[];const a=o+r;let l=this.sanitizeAddIndex(s,e.addIndex);if(l<o){for(let u=o-1,h=a-1;u>=l;--u){const p=s[u];p.sourceRowIndex=h,s[h--]=p}t.reordered=!0}s.length=a;const c=new Array(r),d=t.adds;for(let u=0;u<r;u++){const h=this.createRowNode(n[u],0,l);d.add(h),s[l]=h,c[u]=h,l++}return c}dispatchRowDataUpdateStarted(e){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:e?.length?e[0]:null})}deselect(e){const t="rowDataChanged",i=this.beans.selectionSvc;e.length&&i?.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),i?.updateGroupsFromChildrenSelections?.(t),e.length&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:t,selectedNodes:i?.getSelectedNodes()??null,serverSideState:null})}createRowNode(e,t,i){const s=new Ds(this.beans);s.parent=this.rootNode,s.level=t,s.group=!1,i!=null&&(s.sourceRowIndex=i),s.setDataAndId(e,String(this.nextId++));const o=s.id,n=this.allNodesMap;return n[o]&&$(2,{nodeId:o}),n[o]=s,s}destroyNode(e,t){if(!e._destroy(t))return!1;const i=e.id,s=this.allNodesMap;return s[i]===e&&delete s[i],!0}lookupNode(e,t){if(!e)return pk(this.rootNode._leafs,t);const i=e({data:t,level:0}),s=this.allNodesMap[i];return s||(We(4,{id:i}),null)}sanitizeAddIndex(e,t){const i=e.length;if(typeof t!="number"||t<0||t>=i||Number.isNaN(t))return i;t=Math.ceil(t);const s=this.gos;return t>0&&s.get("treeData")&&s.get("getDataPath")&&(t=hk(e,t)),t}},hk=(e,t)=>{for(let i=0,s=e.length;i<s;i++)if(e[i]?.rowIndex==t-1)return i+1;return t},Of=e=>{e.group=!0,e.level=-1,e._expanded=!0,e.id="ROOT_NODE_ID",e._leafs?.length!==0&&(e._leafs=[]);const t=[],i=[],s=[],o=[];e.childrenAfterGroup=t,e.childrenAfterSort=i,e.childrenAfterAggFilter=s,e.childrenAfterFilter=o;const n=e.sibling;return n&&(n.childrenAfterGroup=t,n.childrenAfterSort=i,n.childrenAfterAggFilter=s,n.childrenAfterFilter=o,n.childrenMapped=e.childrenMapped),e.updateHasChildren(),e},pk=(e,t)=>{if(e)for(let i=0,s=e.length;i<s;i++){const o=e[i];if(o.data===t)return o}return We(5,{data:t}),null},gk=(e,t,i)=>{t=Math.max(0,t);for(let s=t,o=e.length;s<o;++s){const n=e[s];s<=i&&n.destroyed||(n.sourceRowIndex=t,e[t++]=n)}e.length=t},fk=(e,t)=>{const i=t.size;e.length=i;let s=0,o=!1,n=!1;for(const r of t){const a=r.sourceRowIndex;a===s?n||(n=o):(a>=0?n=!0:o=!0,r.sourceRowIndex=s,e[s]=r),++s}return n},mk=(e,t,{adds:i})=>{const s=e.length,o=t.size;o>s&&(e.length=o);let n=0;for(let r=0;r<s;++r){const a=e[r];a.destroyed||(n!==r&&(a.sourceRowIndex=n,e[n]=a),++n)}for(const r of i)r.sourceRowIndex<0&&(r.sourceRowIndex=n,e[n++]=r);e.length=n};function Gu(e){const t=e.sibling;t&&(t.childrenAfterFilter=e.childrenAfterFilter)}var vk=class extends B{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 i=(s,o)=>{s.hasChildren()&&e&&!o?s.childrenAfterFilter=s.childrenAfterGroup.filter(n=>{const r=n.childrenAfterFilter&&n.childrenAfterFilter.length>0,a=n.data&&this.filterManager.doesRowPassFilter({rowNode:n});return r||a}):s.childrenAfterFilter=s.childrenAfterGroup,Gu(s)};if(this.doingTreeDataFiltering()){const s=(o,n)=>{if(o.childrenAfterGroup)for(let r=0;r<o.childrenAfterGroup.length;r++){const a=o.childrenAfterGroup[r],l=n||this.filterManager.doesRowPassFilter({rowNode:a});a.childrenAfterGroup?s(o.childrenAfterGroup[r],l):i(a,l)}i(o,n)};s(this.beans.rowModel.rootNode,!1)}else{const s=o=>i(o,!1);wo(this.beans.rowModel.rootNode,this.beans.rowModel.hierarchical,t,s)}}softFilter(e,t){const i=o=>{if(o.childrenAfterFilter=o.childrenAfterGroup,o.hasChildren())for(const n of o.childrenAfterGroup)n.softFiltered=e&&!(n.data&&this.filterManager.doesRowPassFilter({rowNode:n}));Gu(o)},s=this.beans.rowModel;wo(s.rootNode,s.hierarchical,t,i)}doingTreeDataFiltering(){const{gos:e}=this;return!!this.beans.groupStage?.treeData&&!e.get("excludeChildrenWhenTreeDataFiltering")}},Ck=4,wk=(e,t,i,s,o)=>{const n=t.childrenAfterSort,r=t.childrenAfterAggFilter;if(!r)return n&&n.length>0?n:[];const a=r.length;if(a<=1)return n?.length===a&&(a===0||n[0]===r[0])?n:r.slice();if(!n||a<=Ck)return e.doFullSortInPlace(r.slice(),o);const l=new Map,{updates:c,adds:d}=i,u=[];for(let p=0;p<a;++p){const m=r[p];c.has(m)||d.has(m)||s?.hasRow(m)?(l.set(m,~p),u.push(m)):l.set(m,p)}const h=u.length;return h===0?a===n.length?n:xk(n,l,u):(u.sort((p,m)=>e.compareRowNodes(o,p,m)||~l.get(p)-~l.get(m)),h===a?u:bk(e,o,u,n,l,a))},bk=(e,t,i,s,o,n)=>{const r=new Array(n);let a=0,l=i[a],c,d=-1,u=0,h=0;const p=i.length,m=s.length;for(;;){if(d<0){if(u>=m)break;if(c=s[u++],d=o.get(c)??-1,d<0)continue}if((e.compareRowNodes(t,l,c)||~o.get(l)-d)<0){if(r[h++]=l,++a>=p)break;l=i[a]}else r[h++]=c,d=-1}for(;a<p;)r[h++]=i[a++];if(d<0)return r;for(r[h++]=c;u<m;){const v=s[u++];o.get(v)>=0&&(r[h++]=v)}return r},xk=(e,t,i)=>{let s=0;i.length=t.size;for(let o=0,n=e.length;o<n;++o){const r=e[o];t.has(r)&&(i[s++]=r)}return i.length=s,i},Bw=e=>{const t=e.childrenAfterSort,i=e.sibling;if(i&&(i.childrenAfterSort=t),!!t)for(let s=0,o=t.length-1;s<=o;s++){const n=t[s],r=s===0,a=s===o;n.firstChild!==r&&(n.firstChild=r,n.dispatchRowEvent("firstChildChanged")),n.lastChild!==a&&(n.lastChild=a,n.dispatchRowEvent("lastChildChanged")),n.childIndex!==s&&(n.childIndex=s,n.dispatchRowEvent("childIndexChanged"))}},yk=class extends B{constructor(){super(...arguments),this.beanName="sortStage",this.step="sort",this.refreshProps=["postSortRows","groupDisplayType","accentedSort"]}execute(e,t){const i=this.beans.sortSvc.getSortOptions(),s=i.length>0&&!!t&&this.gos.get("deltaSort"),{gos:o,colModel:n,rowGroupColsSvc:r,rowNodeSorter:a,rowRenderer:l,showRowGroupCols:c}=this.beans,d=o.get("groupMaintainOrder"),u=n.getCols().some(b=>b.isRowGroupActive()),h=r?.columns,p=n.isPivotMode(),m=o.getCallback("postSortRows");let v=!1,C;const w=b=>{const x=p&&b.leafGroup;let y=d&&u&&!b.leafGroup;y&&(C??(C=this.shouldSortContainsGroupCols(i)),y&&(y=!C));let S=null;if(y){let E=!1;if(h){const R=b.level+1;R<h.length&&(E=h[R].wasSortExplicitlyRemoved)}E||(S=Sk(b))}else!i.length||x||(s&&t?S=wk(a,b,t,e,i):S=a.doFullSortInPlace(b.childrenAfterAggFilter.slice(),i));if(S||(S=b.childrenAfterAggFilter?.slice()??[]),v||(v=b.childrenAfterSort?.[0]!==S[0]),b.childrenAfterSort=S,Bw(b),m){const E={nodes:b.childrenAfterSort};m(E)}};if(wo(this.beans.rowModel.rootNode,this.beans.rowModel.hierarchical,e,w),v&&o.get("groupHideOpenParents")){const b=c?.columns;b?.length&&l.refreshCells({columns:b,force:!0})}}shouldSortContainsGroupCols(e){const t=e.length;if(!t)return!1;if(Ki(this.gos)){for(let i=0;i<t;++i){const s=e[i].column;if(s.isPrimary()&&s.isRowGroupActive())return!0}return!1}for(let i=0;i<t;++i)if(e[i].column.getColDef().showRowGroup)return!0;return!1}},Sk=e=>{const t=e.childrenAfterSort,i=e.childrenAfterAggFilter,s=t?.length,o=i?.length;if(!s||!o)return null;const n=new Array(o),r=new Set;for(let l=0;l<o;++l)r.add(i[l]);let a=0;for(let l=0;l<s;++l){const c=t[l];r.delete(c)&&(n[a++]=c)}if(r.size===0&&a===s)return t;for(const l of r)n[a++]=l;return n.length=a,n},Rk=class extends B{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.rowCountReady=!1,this.hierarchical=!1,this.nodeManager=void 0,this.rowsToDisplay=[],this.formulaRows=[],this.stages=null,this.asyncTransactions=null,this.asyncTransactionsTimer=0,this.started=!1,this.refreshingData=!1,this.rowDataUpdatedPending=!1,this.refreshingModel=!1,this.pendingNewData=!1,this.noKeepRenderedRows=!1,this.noKeepUndoRedoStack=!1,this.noAnimate=!1,this.rowNodesCountReady=!1,this.stagesRefreshProps=new Map,this.onRowHeightChanged_debounced=ct(this,this.onRowHeightChanged.bind(this),100)}postConstruct(){const e=this.beans,t=new Ds(e);this.rootNode=t,this.nodeManager=this.createBean(new uk(t));const i=()=>{this.beans.groupStage?.invalidateGroupCols(),this.refreshModel({step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame")})};this.addManagedEventListeners({newColumnsLoaded:i,columnRowGroupChanged:i,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,i=[e.groupStage,e.filterStage,e.pivotStage,e.aggStage,e.sortStage,e.filterAggStage,e.flattenStage].filter(s=>!!s);this.stages=i;for(let s=i.length-1;s>=0;--s){const o=i[s];for(const n of o.refreshProps)t.set(n,s)}this.addManagedPropertyListeners([...t.keys(),"rowData"],s=>{const o=s.changeSet?.properties;o&&this.onPropChange(o)}),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights())}start(){this.started=!0,this.rowNodesCountReady?this.refreshModel({step:"group",rowDataUpdated:!0,newData:!0}):this.setInitialData()}setInitialData(){this.gos.get("rowData")&&this.onPropChange(["rowData"])}ensureRowHeightsValid(e,t,i,s){let o,n=!1;do{o=!1;const r=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(r,i),c=Math.min(a,s);for(let d=l;d<=c;d++){const u=this.getRow(d);if(u.rowHeightEstimated){const h=Rs(this.beans,u);u.setRowHeight(h.height),o=!0,n=!0}}o&&this.setRowTopAndRowIndex()}while(o);return n}onPropChange(e){const{nodeManager:t,gos:i,beans:s}=this,o=s.groupStage;if(!t)return;const n=new Set(e),r=o?.onPropChange(n);let a;n.has("rowData")?a=i.get("rowData"):r&&(a=o?.extractData()),a&&!Array.isArray(a)&&(a=null,$(1));const l={step:"nothing",changedProps:n};if(a){const d=!r&&!this.isEmpty()&&a.length>0&&i.exists("getRowId")&&!i.get("resetRowDataOnUpdate");this.refreshingData=!0,d?(l.keepRenderedRows=!0,l.animate=!i.get("suppressAnimationFrame"),l.changedRowNodes=new ol,t.setImmutableRowData(l,a)):(l.rowDataUpdated=!0,l.newData=!0,t.setNewRowData(a),this.rowNodesCountReady=!0)}const c=l.rowDataUpdated?"group":this.getRefreshedStage(e);c&&(l.step=c,this.refreshModel(l))}getRefreshedStage(e){const{stages:t,stagesRefreshProps:i}=this;if(!t)return null;const s=t.length;let o=s;for(let n=0,r=e.length;n<r&&o;++n)o=Math.min(o,i.get(e[n])??o);return o<s?t[o].step:null}setRowTopAndRowIndex(e){const{beans:t,rowsToDisplay:i}=this,s=t.environment.getDefaultRowHeight();let o=0;const n=yt(this.gos,"normal");for(let r=0,a=i.length;r<a;++r){const l=i[r],c=l.id;if(c!=null&&e?.add(c),l.rowHeight==null){const d=Rs(t,l,n,s);l.setRowHeight(d.height,d.estimated)}l.setRowTop(o),l.setRowIndex(r),o+=l.rowHeight}if(this.beans.formula?.active){const r=this.formulaRows;for(let a=0,l=r.length;a<l;++a){const c=r[a];c.formulaRowIndex=a}}}clearRowTopAndRowIndex(e,t){const i=n=>{n?.id!=null&&!t.has(n.id)&&n.clearRowTopAndRowIndex()},s=n=>{i(n),i(n.detailNode),i(n.sibling);const r=n.childrenAfterGroup;if(!(!n.hasChildren()||!r)&&!(e&&n.level!==-1&&!n.expanded))for(let a=0,l=r.length;a<l;++a)s(r[a])},o=this.rootNode;o&&s(o)}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay.length}getTopLevelRowCount(){const{rootNode:e,rowsToDisplay:t}=this;if(!e||!t.length)return 0;if(t[0]===e)return 1;const s=e.sibling?.displayed?1:0;return(e.childrenAfterSort?.length??0)+s}getTopLevelRowDisplayedIndex(e){const{beans:t,rootNode:i,rowsToDisplay:s}=this;if(!i||!s.length||s[0]===i)return e;const n=i.childrenAfterSort,r=l=>{let c=n[l];if(this.gos.get("groupHideOpenParents"))for(;c.expanded&&c.childrenAfterSort&&c.childrenAfterSort.length>0;)c=c.childrenAfterSort[0];return c.rowIndex},a=t.footerSvc;return a?a?.getTopDisplayIndex(s,e,n,r):r(e)}getTopLevelIndexFromDisplayedIndex(e){const{rootNode:t,rowsToDisplay:i}=this;if(!t||!i.length||i[0]===t)return e;let o=this.getRow(e);o.footer&&(o=o.sibling);let n=o.parent;for(;n&&n!==t;)o=n,n=o.parent;const r=t.childrenAfterSort?.indexOf(o)??-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:ln(this.gos)})}onFilterChanged({afterDataChange:e,columns:t}){if(!e){const s=t.length===0||t.some(o=>o.isPrimary())?"filter":"filter_aggregates";this.refreshModel({step:s,keepRenderedRows:!0,animate:ln(this.gos)})}}onSortChanged(){this.refreshModel({step:"sort",keepRenderedRows:!0,animate:ln(this.gos)})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.beans.colModel.isPivotActive()?"pivot":"aggregate"})}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;const{changedRowNodes:t,newData:i,rowDataUpdated:s}=e;return!(!t||i||!s||t.removals.length||t.adds.size)}reMapRows(){if(this.refreshingModel||this.refreshingData){this.noKeepRenderedRows=!0,this.noKeepUndoRedoStack=!0,this.noAnimate=!0;return}this.refreshModel({step:"map",keepRenderedRows:!1,keepUndoRedoStack:!1,animate:!1})}refreshModel(e){const{nodeManager:t,eventSvc:i,started:s}=this;if(!t)return;const o=!!e.rowDataUpdated;if(s&&o&&i.dispatchEvent({type:"rowDataUpdated"}),this.deferRefresh(e)){this.setPendingRefreshFlags(e),this.rowDataUpdatedPending||(this.rowDataUpdatedPending=o);return}this.rowDataUpdatedPending&&(this.rowDataUpdatedPending=!1,e.step="group"),this.updateRefreshParams(e);let n=!1;this.refreshingModel=!0;try{this.executeRefresh(e,o),n=!0}finally{this.refreshingData=!1,this.refreshingModel=!1,n||this.setPendingRefreshFlags(e)}this.clearPendingRefreshFlags(),i.dispatchEvent({type:"modelUpdated",animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack})}executeRefresh(e,t){const{beans:i,rootNode:s}=this;i.masterDetailSvc?.refreshModel(e),t&&e.step!=="group"&&i.colFilter?.refreshModel();let o=e.changedPath;switch(o?.addRow(s),e.step==="group"&&(this.doGrouping(s,e),o??(o=e.changedPath)),o??(o=i.changedPathFactory?.ensureRowsPath(e,s)),e.step){case"group":case"filter":this.doFilter(o);case"pivot":this.doPivot(o)&&(o=void 0,e.changedPath=void 0);case"aggregate":this.doAggregate(o);case"filter_aggregates":this.doFilterAggregates(o);case"sort":this.doSort(o,e.changedRowNodes);case"map":this.doRowsToDisplay()}const n=new Set;this.setRowTopAndRowIndex(n),this.clearRowTopAndRowIndex(o,n),this.updateRefreshParams(e)}deferRefresh(e){return this.refreshingModel||this.beans.colModel.changeEventsDispatching?!0:this.isSuppressModelUpdateAfterUpdateTransaction(e)?(this.started&&(this.refreshingData=!1),!0):!this.started}setPendingRefreshFlags(e){this.pendingNewData||(this.pendingNewData=!!e.newData),this.noKeepRenderedRows||(this.noKeepRenderedRows=!e.keepRenderedRows),this.noKeepUndoRedoStack||(this.noKeepUndoRedoStack=!e.keepUndoRedoStack),this.noAnimate||(this.noAnimate=!e.animate)}clearPendingRefreshFlags(){this.pendingNewData=!1,this.noKeepRenderedRows=!1,this.noKeepUndoRedoStack=!1,this.noAnimate=!1}updateRefreshParams(e){e.newData=this.pendingNewData||!!e.newData,e.keepRenderedRows=!this.noKeepRenderedRows&&!!e.keepRenderedRows,e.keepUndoRedoStack=!this.noKeepUndoRedoStack&&!!e.keepUndoRedoStack,e.animate=!this.noAnimate&&!!e.animate}isEmpty(){return!this.rootNode?._leafs?.length||!this.beans.colModel?.ready}isRowsToRender(){return this.rowsToDisplay.length>0}getOverlayType(){const{beans:e,gos:t}=this;if(this.rootNode?._leafs?.length){if(e.filterManager?.isAnyFilterPresent()&&this.getRowCount()===0)return"noMatchingRows"}else if(this.rowCountReady||(t.get("rowData")?.length??0)==0)return"noRows";return null}getNodesInRangeForSelection(e,t){let i=!1,s=!1;const o=[],n=Mr(this.gos);return this.forEachNodeAfterFilterAndSort(r=>{if(s)return;if(i&&(r===t||r===e)&&(s=!0,n&&r.group)){Gw(o,r);return}if(!i){if(r!==t&&r!==e)return;i=!0,t===e&&(s=!0)}(!r.group||!n)&&o.push(r)}),o}getTopLevelNodes(){return this.rootNode?.childrenAfterGroup??null}getRow(e){return this.rowsToDisplay[e]}getFormulaRow(e){return this.formulaRows[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){const t=this.rowsToDisplay,i=t.length;if(this.isEmpty()||i===0)return-1;let s=0,o=i-1;if(e<=0)return 0;if(t[o].rowTop<=e)return o;let r=-1,a=-1;for(;;){const l=Math.floor((s+o)/2),c=t[l];if(this.isRowInPixel(c,e)||(c.rowTop<e?s=l+1:c.rowTop>e&&(o=l-1),r===s&&a===o))return l;r=s,a=o}}isRowInPixel(e,t){const i=e.rowTop,s=i+e.rowHeight;return i<=t&&s>t}forEachLeafNode(e){const t=this.rootNode?._leafs;if(t)for(let i=0,s=t.length;i<s;++i)e(t[i],i)}forEachNode(e,t=!1){this.depthFirstSearchRowNodes(e,t)}forEachDisplayedNode(e){const t=this.rowsToDisplay;for(let i=0,s=t.length;i<s;++i)e(t[i],i)}forEachNodeAfterFilter(e,t=!1){this.depthFirstSearchRowNodes(e,t,i=>i.childrenAfterAggFilter)}forEachNodeAfterFilterAndSort(e,t=!1){this.depthFirstSearchRowNodes(e,t,i=>i.childrenAfterSort)}forEachPivotNode(e,t,i){const{colModel:s,rowGroupColsSvc:o}=this.beans;if(!s.isPivotMode())return;if(!o?.columns.length){e(this.rootNode,0);return}const n=i?"childrenAfterSort":"childrenAfterGroup";this.depthFirstSearchRowNodes(e,t,r=>r.leafGroup?null:r[n])}depthFirstSearchRowNodes(e,t=!1,i=n=>n.childrenAfterGroup,s=this.rootNode,o=0){let n=o;if(!s)return n;const r=s===this.rootNode;if(r||e(s,n++),s.hasChildren()&&!s.footer){const a=r||this.hierarchical?i(s):null;if(a){const l=this.beans.footerSvc;n=l?.addTotalRows(n,s,e,t,r,"top")??n;for(const c of a)n=this.depthFirstSearchRowNodes(e,t,i,c,n);return l?.addTotalRows(n,s,e,t,r,"bottom")??n}}return n}doAggregate(e){this.rootNode&&this.beans.aggStage?.execute(e)}doFilterAggregates(e){const t=this.rootNode,i=this.beans.filterAggStage;if(i&&this.hierarchical){i.execute(e);return}t.childrenAfterAggFilter=t.childrenAfterFilter;const s=t.sibling;s&&(s.childrenAfterAggFilter=t.childrenAfterFilter)}doSort(e,t){const i=this.beans.sortStage;if(i){i.execute(e,t);return}wo(this.rootNode,this.hierarchical,e,s=>{s.childrenAfterSort=s.childrenAfterAggFilter.slice(0),Bw(s)})}doGrouping(e,t){const s=this.beans.groupStage?.execute(t);if(s===void 0){const o=e._leafs;e.childrenAfterGroup=o,e.updateHasChildren();const n=e.sibling;n&&(n.childrenAfterGroup=o)}(s||t.rowDataUpdated)&&this.beans.colFilter?.refreshModel(),!this.rowCountReady&&this.rowNodesCountReady&&(this.rowCountReady=!0,this.eventSvc.dispatchEventOnce({type:"rowCountReady"}))}doFilter(e){const t=this.beans.filterStage;if(t){t.execute(e);return}wo(this.rootNode,this.hierarchical,e,i=>{i.childrenAfterFilter=i.childrenAfterGroup,Gu(i)})}doPivot(e){return this.beans.pivotStage?.execute(e)??!1}getRowNode(e){const t=this.nodeManager?.getRowNode(e);return typeof t=="object"?t:this.beans.groupStage?.getNonLeaf(e)}batchUpdateRowData(e,t){if(!this.asyncTransactionsTimer){this.asyncTransactions=[];const i=this.gos.get("asyncTransactionWaitMillis");this.asyncTransactionsTimer=setTimeout(()=>this.executeBatchUpdateRowData(),i)}this.asyncTransactions.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){const e=this.asyncTransactionsTimer;e&&(clearTimeout(e),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){const{nodeManager:e,beans:t,eventSvc:i,asyncTransactions:s}=this;if(!e)return;t.valueCache?.onDataChanged();const o=[],n=[],r=new ol,a=!this.gos.get("suppressAnimationFrame");for(const{rowDataTransaction:l,callback:c}of s??[]){this.rowNodesCountReady=!0,this.refreshingData=!0;const d=e.updateRowData(l,r,a);o.push(d),c&&n.push(c.bind(null,d))}this.commitTransactions(r,a),n.length>0&&setTimeout(()=>{for(let l=0,c=n.length;l<c;l++)n[l]()},0),o.length>0&&i.dispatchEvent({type:"asyncTransactionsFlushed",results:o}),this.asyncTransactionsTimer=0,this.asyncTransactions=null}updateRowData(e){const t=this.nodeManager;if(!t)return null;this.beans.valueCache?.onDataChanged(),this.rowNodesCountReady=!0;const i=new ol,s=!this.gos.get("suppressAnimationFrame");this.refreshingData=!0;const o=t.updateRowData(e,i,s);return this.commitTransactions(i,s),o}commitTransactions(e,t){this.refreshModel({step:"group",rowDataUpdated:!0,keepRenderedRows:!0,animate:t,changedRowNodes:e})}doRowsToDisplay(){const{rootNode:e,beans:t}=this;if(t.formula?.active){const o=e?.childrenAfterSort??[];this.formulaRows=o,this.rowsToDisplay=o.filter(n=>!n.softFiltered);for(const n of this.rowsToDisplay)n.setUiLevel(0);return}const i=t.flattenStage;if(i){this.rowsToDisplay=i.execute();return}const s=this.rootNode.childrenAfterSort??[];for(const o of s)o.setUiLevel(0);this.rowsToDisplay=s}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 i=e.sibling;i?.setRowHeight(i.rowHeight,!0),t&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(t=>{t.setRowHeight(t.rowHeight,!0);const i=t.detailNode;i?.setRowHeight(i.rowHeight,!0);const s=t.sibling;s?.setRowHeight(s.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()}},Gw=(e,t)=>{const i=t.childrenAfterGroup;if(i)for(let s=0,o=i.length;s<o;++s){const n=i[s];n.data&&e.push(n),n.group&&Gw(e,n)}};function Fk(e){e.expansionSvc?.onGroupExpandedOrCollapsed()}function Ek(e,t){const i=zi(e);i&&((!t||t==="everything")&&(t="group"),i.refreshModel({step:t,keepRenderedRows:!0,animate:!e.gos.get("suppressAnimationFrame")}))}function Dk(e){return zi(e)?.isEmpty()??!0}function Pk(e,t){zi(e)?.forEachLeafNode(t)}function Tk(e,t){zi(e)?.forEachNodeAfterFilter(t)}function kk(e,t){zi(e)?.forEachNodeAfterFilterAndSort(t)}function Ik(e,t){return e.frameworkOverrides.wrapIncoming(()=>zi(e)?.updateRowData(t))}function Mk(e,t,i){e.frameworkOverrides.wrapIncoming(()=>zi(e)?.batchUpdateRowData(t,i))}function Ak(e){e.frameworkOverrides.wrapIncoming(()=>zi(e)?.flushAsyncTransactions())}function Lk(e){return e.selectionSvc?.getBestCostNodeSelection()}var Ok={moduleName:"ClientSideRowModel",version:Q,rowModels:["clientSide"],beans:[Rk,yk],dependsOn:[Dw]},Nk={moduleName:"ClientSideRowModelApi",version:Q,apiFunctions:{onGroupExpandedOrCollapsed:Fk,refreshClientSideRowModel:Ek,isRowDataEmpty:Dk,forEachLeafNode:Pk,forEachNodeAfterFilter:Tk,forEachNodeAfterFilterAndSort:kk,applyTransaction:Ik,applyTransactionAsync:Mk,flushAsyncTransactions:Ak,getBestCostNodeSelection:Lk,resetRowHeights:Nw,onRowHeightChanged:Ow},dependsOn:[lk,ck]},Hk=":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 Bk(e,t){typeof t=="number"?e.colAutosize?.sizeColumnsToFit(t,"api"):e.colAutosize?.sizeColumnsToFitGridBody(t)}function Vw({colAutosize:e,visibleCols:t},i,s){Array.isArray(i)?e?.autoSizeCols({colKeys:i,skipHeader:s,source:"api"}):e?.autoSizeCols({...i,colKeys:i.colIds??t.allCols,source:"api"})}function Gk(e,t){t&&typeof t=="object"?Vw(e,t):e.colAutosize?.autoSizeAllColumns({source:"api",skipHeader:t})}var Vk=class extends B{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 i=!1;const s=t.type;if(s==="fitGridWidth"||s==="fitProvidedWidth")i=!0;else if(s==="fitCellContents"){this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered(t)});const o=e.get("rowData");i=o!=null&&o.length>0&&st(e)}i&&this.beans.colDelayRenderSvc?.hideColumns(s)}}autoSizeCols(e){const{eventSvc:t,visibleCols:i,colModel:s}=this.beans;er(this.beans,!0),this.innerAutoSizeCols(e).then(o=>{const n=d=>yn(t,Array.from(d),!0,"autosizeColumns");if(!e.scaleUpToFitGridWidth)return er(this.beans,!1),n(o);const r=Nf(this.beans),a=d=>i.leftCols.some(u=>fr(u,d)),l=d=>i.rightCols.some(u=>fr(u,d)),c=e.colKeys.filter(d=>!s.getCol(d)?.getColDef().suppressAutoSize&&!At(d)&&!a(d)&&!l(d));this.sizeColumnsToFit(r,e.source,!0,{defaultMaxWidth:e.defaultMaxWidth,defaultMinWidth:e.defaultMinWidth,columnLimits:e.columnLimits?.map(d=>({...d,key:d.colId})),colKeys:c,onlyScaleUp:!0,animate:!1}),er(this.beans,!1),n(o)})}innerAutoSizeCols(e){return new Promise((t,i)=>{if(this.shouldQueueResizeOperations)return this.pushResizeOperation(()=>this.innerAutoSizeCols(e).then(t,i));const{colKeys:s,skipHeader:o,skipHeaderGroups:n,stopAtGroup:r,defaultMaxWidth:a,defaultMinWidth:l,columnLimits:c=[],source:d="api"}=e,{animationFrameSvc:u,renderStatus:h,colModel:p,autoWidthCalc:m,visibleCols:v}=this.beans;if(u?.flushAllFrames(),this.timesDelayed<5&&h&&(!h.areHeaderCellsRendered()||!h.areCellsRendered())){this.timesDelayed++,setTimeout(()=>{this.isAlive()&&this.innerAutoSizeCols(e).then(t,i)});return}this.timesDelayed=0;const C=new Set;let w=-1;const b=Object.fromEntries(c.map(({colId:S,...E})=>[S,E])),x=o??this.gos.get("skipHeaderOnAutoSize"),y=n??x;for(;w!==0;){w=0;const S=[];for(const E of s){if(!E||fR(E))continue;const R=p.getCol(E);if(!R||C.has(R)||R.getColDef().suppressAutoSize)continue;const F=m.getPreferredWidthForColumn(R,x);if(F>0){const D=b[R.colId]??{};D.minWidth??(D.minWidth=l),D.maxWidth??(D.maxWidth=a);const T=zk(R,F,D);R.setActualWidth(T,d),C.add(R),w++}S.push(R)}S.length&&v.refresh(d)}y||this.autoSizeColumnGroupsByColumns(s,d,r),t(C)})}autoSizeColumn(e,t,i){this.autoSizeCols({colKeys:[e],skipHeader:i,skipHeaderGroups:!0,source:t})}autoSizeColumnGroupsByColumns(e,t,i){const{colModel:s,ctrlsSvc:o}=this.beans,n=new Set,r=s.getColsForKeys(e);for(const l of r){let c=l.getParent();for(;c&&c!=i;)c.isPadding()||n.add(c),c=c.getParent()}let a;for(const l of n){for(const c of o.getHeaderRowContainerCtrls())if(a=c.getHeaderCtrlForColumn(l),a)break;a?.resizeLeafColumnsToFit(t)}}autoSizeAllColumns(e){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.autoSizeAllColumns(e));return}this.autoSizeCols({colKeys:this.beans.visibleCols.allCols,...e})}addColumnAutosizeListeners(e,t){const i=this.gos.get("skipHeaderOnAutoSize"),s=()=>{this.autoSizeColumn(t,"uiColumnResized",i)};e.addEventListener("dblclick",s);const o=new Us(e);return o.addEventListener("doubleTap",s),()=>{e.removeEventListener("dblclick",s),o.destroy()}}addColumnGroupResize(e,t,i){const s=this.gos.get("skipHeaderOnAutoSize"),o=()=>{const n=[],r=t.getDisplayedLeafColumns();for(const a of r)a.getColDef().suppressAutoSize||n.push(a.getColId());n.length>0&&this.autoSizeCols({colKeys:n,skipHeader:s,stopAtGroup:t,source:"uiColumnResized"}),i()};return e.addEventListener("dblclick",o),()=>e.removeEventListener("dblclick",o)}sizeColumnsToFitGridBody(e,t){if(!this.isAlive())return;const i=Nf(this.beans);if(i>0){this.sizeColumnsToFit(i,"sizeColumnsToFit",!1,e);return}t===void 0?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,100)},0):t===100?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,500)},100):t===500?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,-1)},500):$(29)}sizeColumnsToFit(e,t="sizeColumnsToFit",i,s){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.sizeColumnsToFit(e,t,i,s));return}const{beans:o}=this,n=s?.animate??!0;n&&er(o,!0);const r={};for(const{key:w,...b}of s?.columnLimits??[])r[typeof w=="string"?w:w.getColId()]=b;const a=o.visibleCols.allCols;if(e<=0||!a.length)return;const l=qi(a);if(s?.onlyScaleUp&&l>e||e===l&&a.every(b=>{if(b.colDef.suppressSizeToFit)return!0;const x=r?.[b.getId()],y=x?.minWidth??s?.defaultMinWidth,S=x?.maxWidth??s?.defaultMaxWidth,E=b.getActualWidth();return(y==null||E>=y)&&(S==null||E<=S)}))return;const d=[],u=[];for(const w of a){const b=s?.colKeys?.some(x=>fr(w,x))??!0;w.getColDef().suppressSizeToFit||!b?u.push(w):d.push(w)}const h=d.slice(0);let p=!1;const m=w=>{Hi(d,w),u.push(w)},v={};for(const w of d){s?.onlyScaleUp&&(v[w.getColId()]=w.getActualWidth()),w.resetActualWidth(t);const b=r?.[w.getId()],x=b?.minWidth??s?.defaultMinWidth??-1/0,y=b?.maxWidth??s?.defaultMaxWidth??1/0,S=w.getActualWidth(),E=Math.max(Math.min(S,y),x);E!=S&&w.setActualWidth(E,t,!0)}for(;!p;){p=!0;const w=e-qi(u);if(w<=0)for(const b of d){const x=r?.[b.getId()]?.minWidth??s?.defaultMinWidth??b.minWidth;b.setActualWidth(x,t,!0)}else{const b=w/qi(d);let x=w;for(let y=d.length-1;y>=0;y--){const S=d[y],E=S.getColId(),R=v[E],F=r?.[E],D=F?.minWidth??s?.defaultMinWidth??R,T=F?.maxWidth??s?.defaultMaxWidth,P=Math.max(D??-1/0,S.getMinWidth()),k=Math.min(T??1/0,S.getMaxWidth());let O=Math.round(S.getActualWidth()*b);O<P?(O=P,m(S),p=!1):O>k?(O=k,m(S),p=!1):y===0&&(O=x),S.setActualWidth(O,t,!0),x-=O}}}for(const w of h)w.fireColumnWidthChangedEvent(t);const C=o.visibleCols;C.setLeftValues(t),C.updateBodyWidths(),!i&&(yn(this.eventSvc,h,!0,t),n&&er(o,!1))}applyAutosizeStrategy(){const{gos:e,colDelayRenderSvc:t}=this.beans,i=e.get("autoSizeStrategy");i?.type!=="fitGridWidth"&&i?.type!=="fitProvidedWidth"||setTimeout(()=>{if(!this.isAlive())return;const s=i.type;if(s==="fitGridWidth"){const{columnLimits:o,defaultMinWidth:n,defaultMaxWidth:r}=i,a=o?.map(({colId:l,minWidth:c,maxWidth:d})=>({key:l,minWidth:c,maxWidth:d}));this.sizeColumnsToFitGridBody({defaultMinWidth:n,defaultMaxWidth:r,columnLimits:a})}else s==="fitProvidedWidth"&&this.sizeColumnsToFit(i.width,"sizeColumnsToFit");t?.revealColumns(s)})}onFirstDataRendered({colIds:e,...t}){setTimeout(()=>{if(!this.isAlive())return;const i="autosizeColumns";e?this.autoSizeCols({...t,source:i,colKeys:e}):this.autoSizeAllColumns({...t,source:i}),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 zk(e,t,i={}){const s=i.minWidth??e.getMinWidth();t<s&&(t=s);const o=i.maxWidth??e.getMaxWidth();return t>o&&(t=o),t}function Nf({ctrlsSvc:e,scrollVisibleSvc:t}){const i=e.getGridBodyCtrl(),o=i.isVerticalScrollShowing()?t.getScrollbarWidth():0;return Pr(i.eGridBody)-o}var Hf="ag-animate-autosize";function er({ctrlsSvc:e,gos:t},i){if(!t.get("animateColumnResizing")||t.get("enableRtl")||!e.isAlive())return;const s=e.getGridBodyCtrl().eGridBody.classList;i?s.add(Hf):s.remove(Hf)}var Wk={moduleName:"ColumnAutoSize",version:Q,beans:[Vk],apiFunctions:{sizeColumnsToFit:Bk,autoSizeColumns:Vw,autoSizeAllColumns:Gk},dependsOn:[_C],css:[Hk]};function jk(e,t){return!!e.colHover?.isHovered(t)}var _k=class extends B{constructor(e,t){super(),this.columns=e,this.element=t,this.destroyManagedListeners=[],this.enableFeature=i=>{const{beans:s,gos:o,element:n,columns:r}=this,a=s.colHover;if(i??!!o.get("columnHoverHighlight"))this.destroyManagedListeners=this.addManagedElementListeners(n,{mouseover:a.setMouseOver.bind(a,r),mouseout:a.clearMouseOver.bind(a)});else{for(const c of this.destroyManagedListeners)c();this.destroyManagedListeners=[]}}}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{this.enableFeature(e)}),this.enableFeature()}destroy(){super.destroy(),this.destroyManagedListeners=null}},Uk="ag-column-hover",$k=class extends B{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,i){const s=()=>{const o=this.isHovered(i);t.toggleCss("ag-column-hover",o)};e.addManagedEventListeners({columnHoverChanged:s}),s()}onCellColumnHover(e,t){if(!t)return;const i=this.isHovered(e);t.toggleCss(Uk,i)}addHeaderFilterColumnHoverListener(e,t,i,s){this.createHoverFeature(e,[i],s);const o=()=>{const n=this.isHovered(i);t.toggleCss("ag-column-hover",n)};e.addManagedEventListeners({columnHoverChanged:o}),o()}createHoverFeature(e,t,i){e.createManagedBean(new _k(t,i))}updateState(e){this.selectedColumns=e,this.eventSvc.dispatchEvent({type:"columnHoverChanged"})}},qk={moduleName:"ColumnHover",version:Q,beans:[$k],apiFunctions:{isColumnHovered:jk}},Kk=class extends B{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:i,columnKeys:s,skipRowGroups:o,exportRowNumbers:n}=t,r=this.getColumnsToExport({allColumns:i,skipRowGroups:o,columnKeys:s,exportRowNumbers:n});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((a,l)=>l(a),e).parse()}processRow(e,t,i,s){const o=t.shouldRowBeSkipped||(()=>!1),r=t.rowPositions!=null||!!t.onlySelected,a=this.gos.get("groupHideOpenParents")&&!r,l=this.colModel.isPivotMode()?s.leafGroup:!s.group,c=!!s.footer,d=s.allChildrenCount===1&&s.childrenAfterGroup?.length===1&&V2(this.gos,s);if(!l&&!c&&(t.skipRowGroups||d||a)||t.onlySelected&&!s.isSelected()||t.skipPinnedTop&&s.rowPinned==="top"||t.skipPinnedBottom&&s.rowPinned==="bottom"||s.stub||s.level===-1&&!l&&!c||o(xe(this.gos,{node:s})))return;const p=e.onNewBodyRow(s);if(i.forEach((m,v)=>{p.onColumn(m,v,s)}),t.getCustomContentBelowRow){const m=t.getCustomContentBelowRow(xe(this.gos,{node:s}));m&&e.addCustomContent(m)}}appendContent(e){return t=>{const i=e.appendContent;return i&&t.addCustomContent(i),t}}prependContent(e){return t=>{const i=e.prependContent;return i&&t.addCustomContent(i),t}}prepareSession(e){return t=>(t.prepare(e),t)}exportColumnGroups(e,t){return i=>{if(!e.skipColumnGroupHeaders){const s=new qC,{colGroupSvc:o}=this.beans,n=o?o.createColumnGroups({columns:t,idCreator:s,pinned:null,isStandaloneStructure:!0}):t;this.recursivelyAddHeaderGroups(n,i,e.processGroupHeaderCallback)}return i}}exportHeaders(e,t){return i=>{if(!e.skipColumnHeaders){const s=i.onNewHeaderRow();t.forEach((o,n)=>{s.onColumn(o,n,void 0)})}return i}}processPinnedTopRows(e,t){return i=>{const s=this.processRow.bind(this,i,e,t);return e.rowPositions?e.rowPositions.filter(o=>o.rowPinned==="top").sort((o,n)=>o.rowIndex-n.rowIndex).map(o=>this.pinnedRowModel?.getPinnedTopRow(o.rowIndex)).forEach(s):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("top",s),i}}processRows(e,t){return i=>{const s=this.rowModel,o=st(this.gos),n=kn(this.gos),r=!o&&e.onlySelected,a=this.processRow.bind(this,i,e,t),{exportedRows:l="filteredAndSorted"}=e;if(e.rowPositions)e.rowPositions.filter(c=>c.rowPinned==null).sort((c,d)=>c.rowIndex-d.rowIndex).map(c=>s.getRow(c.rowIndex)).forEach(a);else if(this.colModel.isPivotMode())o?s.forEachPivotNode(a,!0,l==="filteredAndSorted"):n?s.forEachNodeAfterFilterAndSort(a,!0):s.forEachNode(a);else if(e.onlySelectedAllPages||r){const c=this.beans.selectionSvc?.getSelectedNodes()??[];this.replicateSortedOrder(c),c.forEach(a)}else l==="all"?s.forEachNode(a):o||n?s.forEachNodeAfterFilterAndSort(a,!0):s.forEachNode(a);return i}}replicateSortedOrder(e){const{sortSvc:t,rowNodeSorter:i}=this.beans;if(!t||!i)return;const s=t.getSortOptions(),o=(n,r)=>n.rowIndex!=null&&r.rowIndex!=null?n.rowIndex-r.rowIndex:n.level===r.level?n.parent?.id===r.parent?.id?i.compareRowNodes(s,n,r)||(n.rowIndex??-1)-(r.rowIndex??-1):o(n.parent,r.parent):n.level>r.level?o(n.parent,r):o(n,r.parent);e.sort(o)}processPinnedBottomRows(e,t){return i=>{const s=this.processRow.bind(this,i,e,t);return e.rowPositions?e.rowPositions.filter(o=>o.rowPinned==="bottom").sort((o,n)=>o.rowIndex-n.rowIndex).map(o=>this.pinnedRowModel?.getPinnedBottomRow(o.rowIndex)).forEach(s):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("bottom",s),i}}getColumnsToExport(e){const{allColumns:t=!1,skipRowGroups:i=!1,exportRowNumbers:s=!1,columnKeys:o}=e,{colModel:n,gos:r,visibleCols:a}=this,l=n.isPivotMode(),c=h=>As(h)?!1:!At(h)||s;if(o?.length)return n.getColsForKeys(o).filter(c);const d=r.get("treeData");let u=[];return t&&!l?u=n.getCols():u=a.allCols,u=u.filter(h=>c(h)&&(i&&!d?!kh(h):!0)),u}recursivelyAddHeaderGroups(e,t,i){const s=[];for(const o of e){const n=o;if(n.getChildren)for(const r of n.getChildren()??[])s.push(r)}e.length>0&&rt(e[0])&&this.doAddHeaderHeader(t,e,i),s&&s.length>0&&this.recursivelyAddHeaderGroups(s,t,i)}doAddHeaderHeader(e,t,i){const s=e.onNewHeaderGroupingRow();let o=0;for(const n of t){const r=n;let a;i?a=i(xe(this.gos,{columnGroup:r})):a=this.beans.colNames.getDisplayNameForColumnGroup(r,"header");const c=(r.isExpandable()?r.getLeafColumns():[]).reduce((d,u,h,p)=>{let m=$e(d);return u.getColumnGroupShow()==="open"?(!m||m[1]!=null)&&(m=[h],d.push(m)):m&&m[1]==null&&(m[1]=h-1),h===p.length-1&&m&&m[1]==null&&(m[1]=h),d},[]);s.onColumn(r,a||"",o++,r.getLeafColumns().length-1,c)}}},Yk={moduleName:"SharedExport",version:Q,beans:[Kk]},Zk=class extends B{getFileName(e){const t=this.getDefaultFileExtension();return e?.length||(e=this.getDefaultFileName()),e.includes(".")?e:`${e}.${t}`}getData(e){return this.beans.gridSerializer.serialize(this.createSerializingSession(e),e)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}};function Xk(e,t){const i=document.defaultView||window;if(!i){$(52);return}const s=document.createElement("a"),o=i.URL.createObjectURL(t);s.setAttribute("href",o),s.setAttribute("download",e),s.style.display="none",document.body.appendChild(s),s.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:i})),s.remove(),i.setTimeout(()=>{i.URL.revokeObjectURL(o)},0)}var Qk=class{constructor(e){this.valueFrom="data";const{colModel:t,rowGroupColsSvc:i,colNames:s,valueSvc:o,gos:n,processCellCallback:r,processHeaderCallback:a,processGroupHeaderCallback:l,processRowGroupCallback:c,valueFrom:d}=e;this.colModel=t,this.rowGroupColsSvc=i,this.colNames=s,this.valueSvc=o,this.gos=n,this.processCellCallback=r,this.processHeaderCallback=a,this.processGroupHeaderCallback=l,this.processRowGroupCallback=c,d&&(this.valueFrom=d)}prepare(e){}extractHeaderValue(e){return this.getHeaderName(this.processHeaderCallback,e)??""}extractRowCellValue(e){const{column:t,node:i,currentColumnIndex:s,accumulatedRowIndex:o,type:n,useRawFormula:r}=e,a=s===0&&_v(this.gos,i,this.colModel.isPivotMode());if(this.processRowGroupCallback&&(this.gos.get("treeData")||i.group)&&(t.isRowGroupDisplayed(i.rowGroupColumn?.getColId()??"")||a))return{value:this.processRowGroupCallback(xe(this.gos,{column:t,node:i}))??""};if(this.processCellCallback)return{value:this.processCellCallback(xe(this.gos,{accumulatedRowIndex:o,column:t,node:i,value:this.valueSvc.getValueForDisplay({column:t,node:i,from:this.valueFrom}).value,type:n,parseValue:m=>this.valueSvc.parseValue(t,i,m,this.valueSvc.getValue(t,i,this.valueFrom)),formatValue:m=>this.valueSvc.formatValue(t,i,m)??m}))??""};const l=this.gos.get("treeData"),c=this.valueSvc,d=i.level===-1&&i.footer,u=t.colDef.showRowGroup===!0&&(i.group||l);if(!d&&(a||u)){let m="",v=i;for(;v&&v.level!==-1;){const{value:C,valueFormatted:w}=c.getValueForDisplay({column:a?void 0:t,node:v,includeValueFormatted:!0,exporting:!0,from:this.valueFrom});m=` -> ${w??C??""}${m}`,v=v.parent}return{value:m,valueFormatted:m}}const{value:h,valueFormatted:p}=c.getValueForDisplay({column:t,node:i,includeValueFormatted:!0,exporting:!0,useRawFormula:r,from:this.valueFrom});return{value:h??"",valueFormatted:p}}getHeaderName(e,t){return e?e(xe(this.gos,{column:t})):this.colNames.getDisplayNameForColumn(t,"csv",!0)}},Bf=`\r
65
- `,Jk=class extends Qk{constructor(e){super(e),this.config=e,this.isFirstLine=!0,this.result="";const{suppressQuotes:t,columnSeparator:i}=e;this.suppressQuotes=t,this.columnSeparator=i}addCustomContent(e){e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,Bf),this.result+=e):e.forEach(t=>{this.beginNewLine(),t.forEach((i,s)=>{s!==0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(i.data.value||""),i.mergeAcross&&this.appendEmptyCells(i.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(e,t,i,s){i!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(s)}appendEmptyCells(e){for(let t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(e,t){t!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(e,t,i){t!=0&&(this.result+=this.columnSeparator);const s=this.extractRowCellValue({column:e,node:i,currentColumnIndex:t,accumulatedRowIndex:t,type:"csv",useRawFormula:!1});this.result+=this.putInQuotes(s.valueFormatted??s.value)}putInQuotes(e){if(this.suppressQuotes)return e;if(e==null)return'""';let t;return typeof e=="string"?t=e:typeof e.toString=="function"?t=e.toString():($(53),t=""),'"'+t.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=Bf),this.isFirstLine=!1}},eI=class extends Zk{constructor(){super(...arguments),this.beanName="csvCreator"}getMergedParams(e){const t=this.gos.get("defaultCsvExportParams");return Object.assign({},t,e)}export(e){if(this.isExportSuppressed()){$(51);return}const t=()=>{const s=this.getMergedParams(e),o=this.getData(s),n=new Blob(["\uFEFF",o],{type:"text/plain"}),r=s.fileName,a=typeof r=="function"?r(xe(this.gos,{})):r;Xk(this.getFileName(a),n)},{overlays:i}=this.beans;i?i.showExportOverlay(t):t()}exportDataAsCsv(e){this.export(e)}getDataAsCsv(e,t=!1){const i=t?Object.assign({},e):this.getMergedParams(e);return this.getData(i)}getDefaultFileExtension(){return"csv"}createSerializingSession(e){const{colModel:t,colNames:i,rowGroupColsSvc:s,valueSvc:o,gos:n}=this.beans,{processCellCallback:r,processHeaderCallback:a,processGroupHeaderCallback:l,processRowGroupCallback:c,suppressQuotes:d,columnSeparator:u,valueFrom:h}=e;return new Jk({colModel:t,colNames:i,valueSvc:o,gos:n,processCellCallback:r||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:c||void 0,suppressQuotes:d||!1,columnSeparator:u||",",rowGroupColsSvc:s,valueFrom:h})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}};function tI(e,t){return e.csvCreator?.getDataAsCsv(t)}function iI(e,t){e.csvCreator?.exportDataAsCsv(t)}var sI={moduleName:"CsvExport",version:Q,beans:[eI],apiFunctions:{getDataAsCsv:tI,exportDataAsCsv:iI},dependsOn:[Yk]},zw=class extends Ht{constructor(e,t){super(),this.ctrl=e,t&&(this.beans=t)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(e,t){const i="title",s=this.ctrl.getGui();s&&(e!=null&&(e!=""||t)?s.setAttribute(i,e):s.removeAttribute(i))}updateTooltipText(){const{getTooltipValue:e}=this.ctrl;e&&(this.tooltip=e())}createTooltipFeatureIfNeeded(){if(this.tooltipManager==null){const e=this.beans.registry.createDynamicBean("tooltipStateManager",!0,this.ctrl,()=>this.tooltip);e&&(this.tooltipManager=this.createBean(e,this.beans.context))}}attemptToShowTooltip(){this.tooltipManager?.prepareToShowTooltip()}attemptToHideTooltip(){this.tooltipManager?.hideTooltip()}setTooltipAndRefresh(e){this.tooltip=e,this.refreshTooltip()}refreshTooltip(e){this.browserTooltips=this.beans.gos.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)):(this.setBrowserTooltip(e?"":null,e),this.createTooltipFeatureIfNeeded())}destroy(){this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context),super.destroy()}},oI=1e3,nI=1e3,Gf=100,Vf,za=!1,rI=class extends Ht{constructor(e,t){super(),this.tooltipCtrl=e,this.getTooltipValue=t,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}wireBeans(e){this.popupSvc=e.popupSvc}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");const e=this.tooltipCtrl.getGui();this.tooltipTrigger===0&&this.addManagedListeners(e,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),this.tooltipTrigger===1&&this.addManagedListeners(e,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(e,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(e,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(e){const t=this.gos.get(e);return Math.max(200,t)}getTooltipDelay(e){return this.tooltipCtrl[`getTooltip${e}DelayOverride`]?.()??this.getGridOptionsTooltipDelay(`tooltip${e}Delay`)}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){const e=this.gos.get("tooltipTrigger");return!e||e==="hover"?0:1}onMouseEnter(e){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!so()&&(za?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(e)},Gf):this.prepareToShowTooltip(e))}onMouseMove(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&this.state===2&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(e){const t=e.relatedTarget,i=this.tooltipCtrl.getGui(),s=this.tooltipComp?.getGui();this.isInteractingWithTooltip||i.contains(t)||this.interactionEnabled&&s?.contains(t)||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(e){if(this.state!=0||za)return;let t=0;e&&(t=this.isLastTooltipHiddenRecently()?this.getTooltipDelay("SwitchShow"):this.getTooltipDelay("Show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.state=1}isLastTooltipHiddenRecently(){return Date.now()-Vf<oI}setToDoNothing(e){!e&&this.state===2&&this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.clearEventHandlers(),this.onDocumentKeyDownCallback&&(this.onDocumentKeyDownCallback(),this.onDocumentKeyDownCallback=void 0),this.clearTimeouts(),this.state=0,this.lastMouseEvent=null}showTooltip(){const e=this.getTooltipValue(),t=this.tooltipCtrl;if(!te(e)||t.shouldDisplayTooltip&&!t.shouldDisplayTooltip()){this.setToDoNothing();return}const i=this.gos.addCommon({location:t.getLocation?.()??"UNKNOWN",value:e,hideTooltipCallback:()=>this.hideTooltip(!0),...t.getAdditionalParams?.()});this.state=2,this.tooltipInstanceCount++;const s=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.createTooltipComp(i,s)}hideTooltip(e){!e&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),Vf=Date.now()),this.eventSvc.dispatchEvent({type:"tooltipHide",parentGui:this.tooltipCtrl.getGui()}),e&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(e,t){if(this.state!==2||this.tooltipInstanceCount!==e){this.destroyBean(t);return}const s=t.getGui();this.tooltipComp=t,s.classList.contains("ag-tooltip")||s.classList.add("ag-tooltip-custom"),this.tooltipTrigger===0&&s.classList.add("ag-tooltip-animate"),this.interactionEnabled&&s.classList.add("ag-tooltip-interactive");const o=this.getLocaleTextFunc(),n=this.popupSvc?.addPopup({eChild:s,ariaLabel:o("ariaLabelTooltip","Tooltip")});if(n&&(this.tooltipPopupDestroyFunc=n.hideFunc),this.positionTooltip(),this.tooltipTrigger===1){const r=()=>this.setToDoNothing();[this.onBodyScrollEventCallback]=this.addManagedEventListeners({bodyScroll:r}),this.setEventHandlers(r)}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(s,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(ft(this.beans),{keydown:r=>{s.contains(r?.target)||this.onKeyDown()}}),this.tooltipTrigger===1&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(s,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:s,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=Je(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,i=this.tooltipTrigger===0?nI:0;window.setTimeout(()=>{e(),this.destroyBean(t)},i),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(){za=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},Gf)}unlockService(){za=!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()}},aI=class extends zw{constructor(e,t,i){super(e,i),this.highlightTracker=t,this.onHighlight=this.onHighlight.bind(this)}postConstruct(){super.postConstruct(),this.wireHighlightListeners()}wireHighlightListeners(){this.addManagedPropertyListener("tooltipTrigger",({currentValue:e})=>{this.setTooltipMode(e)}),this.setTooltipMode(this.gos.get("tooltipTrigger")),this.highlightTracker.addEventListener("itemHighlighted",this.onHighlight)}onHighlight(e){this.tooltipMode===1&&(e.highlighted?this.attemptToShowTooltip():this.attemptToHideTooltip())}setTooltipMode(e="focus"){this.tooltipMode=e==="focus"?1:0}destroy(){this.highlightTracker.removeEventListener("itemHighlighted",this.onHighlight),super.destroy()}},lI=class extends Oh{constructor(){super({tag:"div",cls:"ag-tooltip"})}init(e){const{value:t}=e,i=this.getGui();i.textContent=Tn(t);const s=e.location.replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase();i.classList.add(`ag-${s}-tooltip`)}},cI=".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}}",Wa=0,dI=200,uI=class extends Ht{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:i,nudgeY:s,skipObserver:o}=e;this.positionPopup({ePopup:t,nudgeX:i,nudgeY:s,keepWithinBounds:!0,skipObserver:o,updatePosition:()=>this.calculatePointerAlign(e.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,e.type,e.ePopup,null,e.mouseEvent)})}calculatePointerAlign(e){const t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}positionPopupByComponent(e){const{ePopup:t,nudgeX:i,nudgeY:s,keepWithinBounds:o,eventSource:n,alignSide:r="left",position:a="over",type:l}=e,c=n.getBoundingClientRect(),d=this.getParentRect();this.setAlignedTo(n,t);const u=()=>{let h=c.left-d.left;r==="right"&&(h-=t.offsetWidth-c.width);let p;return a==="over"?(p=c.top-d.top,this.setAlignedStyles(t,"over")):(this.setAlignedStyles(t,"under"),this.shouldRenderUnderOrAbove(t,c,d,e.nudgeY||0)==="under"?p=c.top-d.top+c.height:p=c.top-t.offsetHeight-(s||0)*2-d.top),{x:h,y:p}};this.positionPopup({ePopup:t,nudgeX:i,nudgeY:s,keepWithinBounds:o,updatePosition:u,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,l,t,n,null)})}positionPopupForMenu(e){const{eventSource:t,ePopup:i,event:s}=e,o=t.getBoundingClientRect(),n=this.getParentRect();this.setAlignedTo(t,i);let r=!1;const a=()=>{const l=this.keepXYWithinBounds(i,o.top-n.top,0),c=i.clientWidth>0?i.clientWidth:200;r||(i.style.minWidth=`${c}px`,r=!0);const u=n.right-n.left-c;let h;return this.gos.get("enableRtl")?(h=m(),h<0&&(h=p(),this.setAlignedStyles(i,"left")),h>u&&(h=0,this.setAlignedStyles(i,"right"))):(h=p(),h>u&&(h=m(),this.setAlignedStyles(i,"right")),h<0&&(h=0,this.setAlignedStyles(i,"left"))),{x:h,y:l};function p(){return o.right-n.left-2}function m(){return o.left-n.left-c}};this.positionPopup({ePopup:i,keepWithinBounds:!0,updatePosition:a,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,"subMenu",i,t,s instanceof MouseEvent?s:void 0)})}shouldRenderUnderOrAbove(e,t,i,s){const o=i.bottom-t.bottom,n=t.top-i.top,r=e.offsetHeight+s;return o>r?"under":n>r||n>o?"above":"under"}setAlignedStyles(e,t){const i=this.getPopupIndex(e);if(i===-1)return;const s=this.popupList[i],{alignedToElement:o}=s;if(!o)return;const n=["right","left","over","above","under"];for(const r of n)o.classList.remove(`ag-has-popup-positioned-${r}`),e.classList.remove(`ag-popup-positioned-${r}`);t&&(o.classList.add(`ag-has-popup-positioned-${t}`),e.classList.add(`ag-popup-positioned-${t}`))}setAlignedTo(e,t){const i=this.getPopupIndex(t);if(i!==-1){const s=this.popupList[i];s.alignedToElement=e}}positionPopup(e){const{ePopup:t,keepWithinBounds:i,nudgeX:s,nudgeY:o,skipObserver:n,updatePosition:r}=e,a={width:0,height:0},l=(c=!1)=>{let{x:d,y:u}=r();c&&t.clientWidth===a.width&&t.clientHeight===a.height||(a.width=t.clientWidth,a.height=t.clientHeight,s&&(d+=s),o&&(u+=o),i&&(d=this.keepXYWithinBounds(t,d,1),u=this.keepXYWithinBounds(t,u,0)),t.style.left=`${d}px`,t.style.top=`${u}px`,e.postProcessCallback&&e.postProcessCallback())};if(l(),!n){const c=ss(this.beans,t,()=>l(!0));setTimeout(()=>c(),dI)}}getParentRect(){const e=ft(this.beans);let t=this.getPopupParent();return t===e.body?t=e.documentElement:getComputedStyle(t).position==="static"&&(t=t.offsetParent),vv(t)}keepXYWithinBounds(e,t,i){const s=i===0,o=s?"clientHeight":"clientWidth",n=s?"top":"left",r=s?"height":"width",a=s?"scrollTop":"scrollLeft",l=ft(this.beans),c=l.documentElement,d=this.getPopupParent(),u=e.getBoundingClientRect(),h=d.getBoundingClientRect(),p=l.documentElement.getBoundingClientRect(),m=d===l.body,v=Math.ceil(u[r]);let w=m?(s?mv:gl)(c)+c[a]:d[o];m&&(w-=Math.abs(p[n]-h[n]));const b=w-v;return Math.min(Math.max(t,0),Math.max(b,0))}addPopup(e){const{eChild:t,ariaLabel:i,ariaOwns:s,alwaysOnTop:o,positionCallback:n,anchorToElement:r}=e,a=this.getPopupIndex(t);if(a!==-1)return{hideFunc:this.popupList[a].hideFunc};this.initialisePopupPosition(t);const l=this.createPopupWrapper(t,!!o,i,s),c=this.addEventListenersToPopup({...e,wrapperEl:l});return n&&n(),this.addPopupToPopupList(t,l,c,r),{hideFunc:c}}initialisePopupPosition(e){const i=this.getPopupParent().getBoundingClientRect();te(e.style.top)||(e.style.top=`${i.top*-1}px`),te(e.style.left)||(e.style.left=`${i.left*-1}px`)}createPopupWrapper(e,t,i,s){const o=this.getPopupParent(),{environment:n,gos:r}=this.beans,a=uo({tag:"div"});return n.applyThemeClasses(a),a.classList.add("ag-popup"),e.classList.add(r.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),e.hasAttribute("role")||co(e,"dialog"),i?Cn(e,i):s&&(e.id||(e.id=`popup-component-${Wa}`),Rg(s,e.id)),a.appendChild(e),o.appendChild(a),t?this.setAlwaysOnTop(e,!0):this.bringPopupToFront(e),a}addEventListenersToPopup(e){const t=this.beans,i=ft(t),{wrapperEl:s,eChild:o,closedCallback:n,afterGuiAttached:r,closeOnEsc:a,modal:l,ariaOwns:c}=e;let d=!1;const u=v=>{if(!s.contains(Je(t)))return;v.key===A.ESCAPE&&!this.isStopPropagation(v)&&m({keyboardEvent:v})},h=v=>m({mouseEvent:v}),p=v=>m({touchEvent:v}),m=(v={})=>{const{mouseEvent:C,touchEvent:w,keyboardEvent:b,forceHide:x}=v;!x&&(this.isEventFromCurrentPopup({mouseEvent:C,touchEvent:w},o)||d)||(d=!0,s.remove(),i.removeEventListener("keydown",u),i.removeEventListener("mousedown",h),i.removeEventListener("touchstart",p),i.removeEventListener("contextmenu",h),this.eventSvc.removeListener("dragStarted",h),n&&n(C||w||b),this.removePopupFromPopupList(o,c))};return r&&r({hidePopup:m}),window.setTimeout(()=>{a&&i.addEventListener("keydown",u),l&&(i.addEventListener("mousedown",h),this.eventSvc.addListener("dragStarted",h),i.addEventListener("touchstart",p),i.addEventListener("contextmenu",h))},0),m}addPopupToPopupList(e,t,i,s){this.popupList.push({element:e,wrapper:t,hideFunc:i,instanceId:Wa,isAnchored:!!s}),s&&this.setPopupPositionRelatedToElement(e,s),Wa=Wa+1}getPopupIndex(e){return this.popupList.findIndex(t=>t.element===e)}setPopupPositionRelatedToElement(e,t){const i=this.getPopupIndex(e);if(i===-1)return;const s=this.popupList[i];if(s.stopAnchoringPromise&&s.stopAnchoringPromise.then(n=>n&&n()),s.stopAnchoringPromise=void 0,s.isAnchored=!1,!t)return;const o=this.keepPopupPositionedRelativeTo({element:t,ePopup:e,hidePopup:s.hideFunc});return s.stopAnchoringPromise=o,s.isAnchored=!0,o}removePopupFromPopupList(e,t){this.setAlignedStyles(e,null),this.setPopupPositionRelatedToElement(e,null),t&&Rg(t,null),this.popupList=this.popupList.filter(i=>i.element!==e)}keepPopupPositionedRelativeTo(e){const t=this.getPopupParent(),i=t.getBoundingClientRect(),{element:s,ePopup:o}=e,n=s.getBoundingClientRect(),r=u=>Number.parseInt(u.substring(0,u.length-1),10),a=(u,h)=>{const p=i[u]-n[u],m=r(o.style[u]);return{initialDiff:p,lastDiff:p,initial:m,last:m,direction:h}},l=a("top",0),c=a("left",1),d=this.beans.frameworkOverrides;return new Ne(u=>{d.wrapIncoming(()=>{ER(()=>{const h=t.getBoundingClientRect(),p=s.getBoundingClientRect();if(p.top==0&&p.left==0&&p.height==0&&p.width==0){e.hidePopup();return}const v=(C,w)=>{const b=r(o.style[w]);C.last!==b&&(C.initial=b,C.last=b);const x=h[w]-p[w];if(x!=C.lastDiff){const y=this.keepXYWithinBounds(o,C.initial+C.initialDiff-x,C.direction);o.style[w]=`${y}px`,C.last=y}C.lastDiff=x};v(l,"top"),v(c,"left")},200).then(h=>{u(()=>{h!=null&&window.clearInterval(h)})})},"popupPositioning")})}isEventFromCurrentPopup(e,t){const{mouseEvent:i,touchEvent:s}=e,o=i||s;if(!o)return!1;const n=this.getPopupIndex(t);if(n===-1)return!1;for(let r=n;r<this.popupList.length;r++){const a=this.popupList[r];if(s2(a.element,o))return!0}return this.isElementWithinCustomPopup(o.target)}isElementWithinCustomPopup(e){const t=ft(this.beans);for(;e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||e.parentElement===null)return!0;e=e.parentElement}return!1}getWrapper(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null}setAlwaysOnTop(e,t){const i=this.getWrapper(e);i&&(i.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(i))}bringPopupToFront(e){const t=this.getPopupParent(),i=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),s=i.length,o=this.getWrapper(e);if(!o||s<=1||!t.contains(e))return;const n=[],r=[];for(const h of i)h!==o&&(h.classList.contains("ag-always-on-top")?r.push(h):n.push(h));const a=[],l=r.length,u=o.classList.contains("ag-always-on-top")||!l?[...n,...r,o]:[...n,o,...r];for(let h=0;h<=s;h++){const p=u[h];if(i[h]===u[h]||p===o)continue;const m=p.querySelectorAll("div");for(const v of m)v.scrollTop!==0&&a.push([v,v.scrollTop]);h===0?t.prepend(p):u[h-1].after(p)}for(;a.length;){const h=a.pop();h[0].scrollTop=h[1]}}handleThemeChange(e){if(e.themeChanged){const t=this.beans.environment;for(const i of this.popupList)t.applyThemeClasses(i.wrapper)}}},hI=class extends uI{getDefaultPopupParent(){return this.beans.ctrlsSvc.get("gridCtrl").getGui()}callPostProcessPopup(e,t,i,s,o){const n=this.gos.getCallback("postProcessPopup");if(n){const{column:r,rowNode:a}=e??{};n({column:r,rowNode:a,ePopup:i,type:t,eventSource:s,mouseEvent:o})}}getActivePopups(){return this.popupList.map(e=>e.element)}hasAnchoredPopup(){return this.popupList.some(e=>e.isAnchored)}isStopPropagation(e){return Xi(e)}},uc={moduleName:"Popup",version:Q,beans:[hI]};function Vu(e){return e.get("tooltipShowMode")==="whenTruncated"}var pI=(e,t)=>{const i=e;return typeof i.getTranslatedMessage=="function"?i.getTranslatedMessage(t):e.message},zu=(e,t,i)=>{const{editModelSvc:s}=e,o=s?.getCellValidationModel()?.getCellValidation(t)?.errorMessages,n=s?.getRowValidationModel().getRowValidation(t)?.errorMessages,r=o||n;return r?.length?r.join(i("tooltipValidationErrorSeparator",". ")):void 0},gI=(e,t)=>{if(Vu(e.gos)){if(t.isCellRenderer()){const s=t.column.getColDef();return!!s.showRowGroup||s.cellRenderer==="agGroupCellRenderer"?Tr(()=>{const n=t.eGui;return n.querySelector(".ag-group-value")||n.querySelector(".ag-cell-value")||n}):void 0}return Tr(()=>{const s=t.eGui;return s.children.length===0?s:s.querySelector(".ag-cell-value")})}},fI=(e,t,i)=>{const{editSvc:s}=e,{column:o}=t,n=gI(e,t),r=()=>s?.isEditing(t)?!1:n?o.isTooltipEnabled()?n():!1:!0;return{shouldDisplayDefault:r,shouldDisplayColumnTooltip:r,shouldDisplayCustomTooltip:i??r}},mI=({beans:e,ctrl:t,value:i,displayFunctions:s,translate:o})=>{const{editSvc:n,formula:r,gos:a}=e,{column:l,rowNode:c}=t;if(r?.active&&l.isAllowFormula()){const C=r.getFormulaError(l,c);if(C)return{value:pI(C,o),location:"cellFormula",shouldDisplay:()=>!!r?.getFormulaError(l,c)}}if(!!!n?.isEditing(t)){const C=zu(e,t,o);if(C)return{value:C,location:"cellEditor",shouldDisplay:()=>!n?.isEditing(t)&&!!zu(e,t,o)}}const{shouldDisplayCustomTooltip:u,shouldDisplayColumnTooltip:h}=s;if(i!=null)return{value:i,location:"cell",shouldDisplay:u};const p=l.getColDef(),m=c.data;if(p.tooltipField&&te(m))return{value:vr(m,p.tooltipField,l.isTooltipFieldContainsDots()),location:"cell",shouldDisplay:h};const v=p.tooltipValueGetter;return v?{value:v(xe(a,{location:"cell",colDef:l.getColDef(),column:l,rowIndex:t.cellPosition.rowIndex,node:c,data:c.data,value:t.value,valueFormatted:t.valueFormatted})),location:"cell",shouldDisplay:h}:null},vI=class extends B{constructor(){super(...arguments),this.beanName="tooltipSvc"}setupHeaderTooltip(e,t,i,s){e&&t.destroyBean(e);const o=this.gos,n=Vu(o),{column:r,eGui:a}=t,l=r.getColDef();!s&&n&&!l.headerComponent&&(s=Tr(()=>a.querySelector(".ag-header-cell-text")));const c="header",u=this.beans.colNames.getDisplayNameForColumn(r,"header",!0),h=i??u,p={getGui:()=>a,getLocation:()=>c,getTooltipValue:()=>i??l?.headerTooltipValueGetter?.(xe(o,{location:c,colDef:l,column:r,value:h,valueFormatted:u}))??l?.headerTooltip,shouldDisplayTooltip:s,getAdditionalParams:()=>({column:r,colDef:r.getColDef()})};let m=this.createTooltipFeature(p);return m&&(m=t.createBean(m),t.setRefreshFunction("tooltip",()=>m.refreshTooltip())),m}setupHeaderGroupTooltip(e,t,i,s){e&&t.destroyBean(e);const o=this.gos,n=Vu(o),{column:r,eGui:a}=t,l=r.getColGroupDef();!s&&n&&!l?.headerGroupComponent&&(s=Tr(()=>a.querySelector(".ag-header-group-text")));const c="headerGroup",u=this.beans.colNames.getDisplayNameForColumnGroup(r,"header"),h=i??u,p={getGui:()=>a,getLocation:()=>c,getTooltipValue:()=>i??l?.headerTooltipValueGetter?.(xe(o,{location:c,colDef:l,column:r,value:h,valueFormatted:u}))??l?.headerTooltip,shouldDisplayTooltip:s,getAdditionalParams:()=>{const v={column:r};return l&&(v.colDef=l),v}},m=this.createTooltipFeature(p);return m&&t.createBean(m)}enableCellTooltipFeature(e,t,i){const{beans:s}=this,{column:o,rowNode:n}=e,r=fI(s,e,i),a=this.getLocaleTextFunc();let l=null;const c=()=>(l=mI({beans:s,ctrl:e,value:t,displayFunctions:r,translate:a}),l),u={getGui:()=>e.eGui,getLocation:()=>l?.location??"cell",getTooltipValue:()=>c()?.value,shouldDisplayTooltip:()=>{const h=l??c();return h?h.shouldDisplay?h.shouldDisplay():!0:!1},getAdditionalParams:()=>({column:o,colDef:o.getColDef(),rowIndex:e.cellPosition.rowIndex,node:n,data:n.data,valueFormatted:e.valueFormatted})};return this.createTooltipFeature(u,s)}setupFullWidthRowTooltip(e,t,i,s){const o={getGui:()=>t.getFullWidthElement(),getTooltipValue:()=>i,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:s},n=this.beans,r=n.context;e&&t.destroyBean(e,r);const a=this.createTooltipFeature(o,n);if(a)return t.createBean(a,r)}setupCellEditorTooltip(e,t){const{beans:i}=this,{context:s}=i,o=t.getValidationElement?.(!0)||!t.isPopup?.()&&e.eGui;if(!o)return;const n={getGui:()=>o,getTooltipValue:()=>zu(i,e,this.getLocaleTextFunc()),getLocation:()=>"cellEditor",shouldDisplayTooltip:()=>{const{editModelSvc:a}=i,l=a?.getRowValidationModel()?.getRowValidationMap(),c=a?.getCellValidationModel()?.getCellValidationMap(),d=!!l&&l.size>0,u=!!c&&c.size>0;return d||u}},r=this.createTooltipFeature(n,i);if(r)return e.createBean(r,s)}initCol(e){const{colDef:t}=e;e.tooltipEnabled=te(t.tooltipField)||te(t.tooltipValueGetter)||te(t.tooltipComponent)}createTooltipFeature(e,t){return this.beans.registry.createDynamicBean("tooltipFeature",!1,e,t)}},CI=class extends rI{createTooltipComp(e,t){i3(this.beans.userCompFactory,e)?.newAgStackInstance().then(t)}setEventHandlers(e){[this.onColumnMovedEventCallback]=this.addManagedEventListeners({columnMoved:e})}clearEventHandlers(){this.onColumnMovedEventCallback?.(),this.onColumnMovedEventCallback=void 0}},Ww={moduleName:"Tooltip",version:Q,beans:[vI],dynamicBeans:{tooltipFeature:zw,highlightTooltipFeature:aI,tooltipStateManager:CI},userComponents:{agTooltipComponent:lI},dependsOn:[uc],css:[cI]},Xo=class{constructor(e){this.cellValueChanges=e}},Hd=class extends Xo{constructor(e,t,i,s){super(e),this.initialRange=t,this.finalRange=i,this.ranges=s}},wI=10,zf=class{constructor(e){this.actionStack=[],this.maxStackSize=e||wI,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}},bI=class extends B{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},i=this.activeCellEdit!==null&&Bh(this.activeCellEdit,t),s=this.activeRowEdit!==null&&G3(this.activeRowEdit,t);if(!(i||s||this.isPasting||this.isRangeInAction))return;const{rowPinned:n,rowIndex:r,column:a,oldValue:l,value:c}=e,d={rowPinned:n,rowIndex:r,columnId:a.getColId(),newValue:c,oldValue:l};this.cellValueChanges.push(d)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}postConstruct(){const{gos:e,ctrlsSvc:t}=this.beans;if(!e.get("undoRedoCellEditing"))return;const i=e.get("undoRedoCellEditingLimit");if(i<=0)return;this.undoStack=new zf(i),this.redoStack=new zf(i),this.addListeners();const s=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:o=>{o.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:s,newColumnsLoaded:s,columnGroupOpened:s,columnRowGroupChanged:s,columnMoved:s,columnPinned:s,columnVisible:s,rowDragEnd:s}),t.whenReady(this,o=>{this.gridBodyCtrl=o.gridBodyCtrl})}getCurrentUndoStackSize(){return this.undoStack?.getCurrentStackSize()??0}getCurrentRedoStackSize(){return this.redoStack?.getCurrentStackSize()??0}undo(e){const{eventSvc:t,undoStack:i,redoStack:s}=this;t.dispatchEvent({type:"undoStarted",source:e});const o=this.undoRedo(i,s,"initialRange","oldValue","undo");t.dispatchEvent({type:"undoEnded",source:e,operationPerformed:o})}redo(e){const{eventSvc:t,undoStack:i,redoStack:s}=this;t.dispatchEvent({type:"redoStarted",source:e});const o=this.undoRedo(s,i,"finalRange","newValue","redo");t.dispatchEvent({type:"redoEnded",source:e,operationPerformed:o})}undoRedo(e,t,i,s,o){if(!e)return!1;const n=e.pop();return n?.cellValueChanges?(this.processAction(n,r=>r[s],o),n instanceof Hd?this.processRange(n.ranges||[n[i]]):this.processCell(n.cellValueChanges),t.push(n),!0):!1}processAction(e,t,i){const{changeDetectionSvc:s}=this.beans;s?.beginDeferred();try{for(const o of e.cellValueChanges){const{rowIndex:n,rowPinned:r,columnId:a}=o,l={rowIndex:n,rowPinned:r},c=Bi(this.beans,l);c?.displayed&&c.setDataValue(a,t(o),i)}}finally{s?.endDeferred()}}processRange(e){let t;const i=this.beans.rangeSvc;i.removeAllCellRanges(!0),e.forEach((s,o)=>{if(!s)return;const n=s.startRow,r=s.endRow;o===e.length-1&&(t={rowPinned:n.rowPinned,rowIndex:n.rowIndex,columnId:s.startColumn.getColId()},this.setLastFocusedCell(t));const a={rowStartIndex:n.rowIndex,rowStartPinned:n.rowPinned,rowEndIndex:r.rowIndex,rowEndPinned:r.rowPinned,columnStart:s.startColumn,columns:s.columns};i.addCellRange(a)})}processCell(e){const t=e[0],{rowIndex:i,rowPinned:s}=t,o={rowIndex:i,rowPinned:s},n=Bi(this.beans,o),r={rowPinned:t.rowPinned,rowIndex:n.rowIndex,columnId:t.columnId};this.setLastFocusedCell(r)}setLastFocusedCell(e){const{rowIndex:t,columnId:i,rowPinned:s}=e,{colModel:o,focusSvc:n,rangeSvc:r}=this.beans,a=o.getCol(i);if(!a)return;const{scrollFeature:l}=this.gridBodyCtrl;l.ensureIndexVisible(t),l.ensureColumnVisible(a);const c={rowIndex:t,column:a,rowPinned:s};n.setFocusedCell({...c,forceBrowserFocus:!0}),r?.setRangeToCell(c)}addListeners(){this.addManagedEventListeners({rowEditingStarted:e=>{this.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}},rowEditingStopped:()=>{const e=new Xo(this.cellValueChanges);this.pushActionsToUndoStack(e),this.activeRowEdit=null},cellEditingStarted:e=>{this.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}},cellEditingStopped:e=>{if(this.activeCellEdit=null,e.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){const i=new Xo(this.cellValueChanges);this.pushActionsToUndoStack(i)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{const e=new Xo(this.cellValueChanges);this.pushActionsToUndoStack(e),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:e=>{const t=new Hd(this.cellValueChanges,e.initialRange,e.finalRange);this.pushActionsToUndoStack(t),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let e;const{rangeSvc:t,gos:i}=this.beans;t&&Fs(i)?e=new Hd(this.cellValueChanges,void 0,void 0,[...t.getCellRanges()]):e=new Xo(this.cellValueChanges),this.pushActionsToUndoStack(e),this.isRangeInAction=!1},batchEditingStarted:()=>this.startBigChange("batchEditing"),batchEditingStopped:({changes:e})=>this.stopBigChange("batchEditing",e),bulkEditingStarted:()=>this.startBigChange("bulkEditing"),bulkEditingStopped:({changes:e})=>this.stopBigChange("bulkEditing",e)})}startBigChange(e){this.updateBigChange(e,!0)}updateBigChange(e,t){e==="bulkEditing"?this.bulkEditing=t:this.batchEditing=t}stopBigChange(e,t){if(e==="bulkEditing"&&!this.bulkEditing||e==="batchEditing"&&!this.batchEditing||(this.updateBigChange(e,!1),t?.length===0))return;const i=new Xo(t??[]);this.pushActionsToUndoStack(i),this.cellValueChanges=[]}pushActionsToUndoStack(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()}},xI=".ag-cell-inline-editing{border:var(--ag-cell-editing-border)!important;border-radius:var(--ag-border-radius);box-shadow:var(--ag-cell-editing-shadow);padding:0;z-index:1;.ag-cell-edit-wrapper,.ag-cell-editor,.ag-cell-wrapper,:where(.ag-cell-editor) .ag-input-field-input,:where(.ag-cell-editor) .ag-wrapper{height:100%;line-height:normal;min-height:100%;width:100%}&.ag-cell-editing-error{border-color:var(--ag-invalid-color)!important}}:where(.ag-popup-editor) .ag-large-text{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0}.ag-large-text-input{display:block;height:auto;padding:var(--ag-cell-horizontal-padding)}:where(.ag-rtl .ag-large-text-input) .ag-text-area-input{resize:none}:where(.ag-ltr) .ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-checkbox-edit{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-row.ag-row-editing-invalid .ag-cell-inline-editing){opacity:.8}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}",yI={tag:"div",cls:"ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit",children:[{tag:"ag-checkbox",ref:"eEditor",role:"presentation"}]},SI=class extends rc{constructor(){super(yI,[qh]),this.eEditor=de}initialiseEditor(e){this.agSetEditValue(e.value),this.eEditor.getInputElement().setAttribute("tabindex","-1"),this.addManagedListeners(this.eEditor,{fieldValueChanged:i=>this.setAriaLabel(i.selected)})}agSetEditValue(e){this.params.value=e;const t=e??void 0;this.eEditor.setValue(t,!0),this.setAriaLabel(t)}getValue(){return this.eEditor.getValue()}focusIn(){this.eEditor.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){const t=this.getLocaleTextFunc(),i=ic(t,e),s=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eEditor.setInputAriaLabel(`${s} (${i})`)}getValidationElement(e){return e?this.params.eGridCell:this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{getValidationErrors:t}=e,i=this.getValue();return t?t({value:i,internalErrors:null,cellEditorParams:e}):null}},ts=class extends Ys{constructor(e,t="ag-text-field",i="text"){super(e,t,i)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,t){const i=this.eInput;return i.value!==e&&(i.value=te(e)?e:""),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}setCustomValidity(e){const t=this.eInput,i=e.length>0;t.setCustomValidity(e),i&&t.reportValidity(),mh(t,i)}preventDisallowedCharacters(){const e=new RegExp(`[${this.config.allowedCharPattern}]`),t=i=>{FC(i)&&i.key&&!e.test(i.key)&&i.preventDefault()};this.addManagedListeners(this.eInput,{keydown:t,paste:i=>{i.clipboardData?.getData("text")?.split("").some(o=>!e.test(o))&&i.preventDefault()}})}},hc={selector:"AG-INPUT-TEXT-FIELD",component:ts},RI=class extends ts{constructor(e){super(e,"ag-date-field","date")}postConstruct(){super.postConstruct();const e=Ls();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){Je(this.beans)===this.eInput&&e.preventDefault()}setMin(e){const t=e instanceof Date?Lt(e??null,!!this.includeTime)??void 0:e;return this.min===t?this:(this.min=t,Vt(this.eInput,"min",t),this)}setMax(e){const t=e instanceof Date?Lt(e??null,!!this.includeTime)??void 0:e;return this.max===t?this:(this.max=t,Vt(this.eInput,"max",t),this)}setStep(e){return this.step===e?this:(this.step=e,Vt(this.eInput,"step",e),this)}setIncludeTime(e){return this.includeTime===e?this:(this.includeTime=e,super.setInputType(e?"datetime-local":"date"),e&&this.setStep(1),this)}getDate(){if(this.eInput.validity.valid)return Ot(this.getValue())??void 0}setDate(e,t){this.setValue(Lt(e??null,this.includeTime),t)}},jw={selector:"AG-INPUT-DATE-FIELD",component:RI},pc=class extends rc{constructor(e){super(),this.cellEditorInput=e,this.eEditor=de}initialiseEditor(e){const{cellEditorInput:t}=this;this.setTemplate({tag:"div",cls:"ag-cell-edit-wrapper",children:[t.getTemplate()]},t.getAgComponents());const{eEditor:i}=this,{cellStartedEdit:s,eventKey:o,suppressPreventDefault:n}=e;i.getInputElement().setAttribute("title",""),t.init(i,e);let r,a=!0;s?(this.focusAfterAttached=!0,o===A.BACKSPACE||o===A.DELETE?r="":o&&o.length===1?n?a=!1:r=o:(r=t.getStartValue(),o!==A.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,r=t.getStartValue()),a&&r!=null&&i.setStartValue(r),this.addGuiEventListener("keydown",l=>{const{key:c}=l;(c===A.PAGE_UP||c===A.PAGE_DOWN)&&l.preventDefault()})}afterGuiAttached(){const e=this.getLocaleTextFunc(),t=this.eEditor;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;Ls()||t.getFocusableElement().focus();const i=t.getInputElement();this.highlightAllOnFocus?i.select():this.cellEditorInput.setCaret?.()}focusIn(){const{eEditor:e}=this,t=e.getFocusableElement(),i=e.getInputElement();t.focus(),i.select()}getValue(){return this.cellEditorInput.getValue()}agSetEditValue(e){this.params.value=e;const t=this.cellEditorInput.getStartValue();this.eEditor.setStartValue(t??null)}isPopup(){return!1}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){return this.cellEditorInput.getValidationErrors()}},FI={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},EI=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return FI}getAgComponents(){return[jw]}init(e,t){this.eEditor=e,this.params=t;const{min:i,max:s,step:o,colDef:n}=t;i!=null&&e.setMin(i),s!=null&&e.setMax(s),o!=null&&e.setStep(o),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(n.cellDataType),this.includeTime!=null&&e.setIncludeTime(this.includeTime)}getValidationErrors(){const t=this.eEditor.getInputElement().valueAsDate,{params:i}=this,{min:s,max:o,getValidationErrors:n}=i;let r=[];const a=this.getLocaleTextFunc();if(t instanceof Date&&!isNaN(t.getTime())){if(s){const l=s instanceof Date?s:new Date(s);if(t<l){const c=l.toLocaleDateString();r.push(a("minDateValidation",`Date must be after ${c}`,[c]))}}if(o){const l=o instanceof Date?o:new Date(o);if(t>l){const c=l.toLocaleDateString();r.push(a("maxDateValidation",`Date must be before ${c}`,[c]))}}}return r.length||(r=null),n?n({value:t,cellEditorParams:i,internalErrors:r}):r}getValue(){const{eEditor:e,params:t}=this,i=e.getDate();return!te(i)&&!te(t.value)?t.value:i??null}getStartValue(){const{value:e}=this.params;if(e instanceof Date)return Lt(e,this.includeTime??!1)}},DI=class extends pc{constructor(){super(new EI(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}},PI={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},TI=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return PI}getAgComponents(){return[jw]}init(e,t){this.eEditor=e,this.params=t;const{min:i,max:s,step:o,colDef:n}=t;i!=null&&e.setMin(i),s!=null&&e.setMax(s),o!=null&&e.setStep(o),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(n.cellDataType),this.includeTime!=null&&e.setIncludeTime(this.includeTime)}getValidationErrors(){const{eEditor:e,params:t}=this,i=e.getInputElement().value,s=this.formatDate(this.parseDate(i??void 0)),{min:o,max:n,getValidationErrors:r}=t;let a=[];if(s){const l=new Date(s),c=this.getLocaleTextFunc();if(o){const d=new Date(o);if(l<d){const u=d.toLocaleDateString();a.push(c("minDateValidation",`Date must be after ${u}`,[u]))}}if(n){const d=new Date(n);if(l>d){const u=d.toLocaleDateString();a.push(c("maxDateValidation",`Date must be before ${u}`,[u]))}}}return a.length||(a=null),r?r({value:this.getValue(),cellEditorParams:t,internalErrors:a}):a}getValue(){const{params:e,eEditor:t}=this,i=this.formatDate(t.getDate());return!te(i)&&!te(e.value)?e.value:e.parseValue(i??"")}getStartValue(){return Lt(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):Ot(e)??void 0}formatDate(e){const t=this.getDataTypeService();return t?t.getDateFormatterFunction(this.params.column)(e):Lt(e??null,this.includeTime??!1)??void 0}},kI=class extends pc{constructor(){super(new TI(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}},II=class extends Ys{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,t){const i=super.setValue(e,t);return this.eInput.value=e,i}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}},MI={selector:"AG-INPUT-TEXT-AREA",component:II},AI={tag:"div",cls:"ag-large-text",children:[{tag:"ag-input-text-area",ref:"eEditor",cls:"ag-large-text-input"}]},LI=class extends rc{constructor(){super(AI,[MI]),this.eEditor=de}initialiseEditor(e){const{eEditor:t}=this,{cellStartedEdit:i,eventKey:s,maxLength:o,cols:n,rows:r}=e;this.focusAfterAttached=i,t.getInputElement().setAttribute("title",""),t.setMaxLength(o||200).setCols(n||60).setRows(r||10);let a;i?(this.focusAfterAttached=!0,s===A.BACKSPACE||s===A.DELETE?a="":s&&s.length===1?a=s:(a=this.getStartValue(e),s!==A.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,a=this.getStartValue(e)),a!=null&&t.setValue(a,!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}getStartValue(e){const{value:t}=e;return t?.toString()??t}agSetEditValue(e){this.params.value=e;const t=this.getStartValue(this.params);this.eEditor.setValue(t??"",!0)}onKeyDown(e){const t=e.key;(t===A.LEFT||t===A.UP||t===A.RIGHT||t===A.DOWN||e.shiftKey&&t===A.ENTER)&&e.stopPropagation()}afterGuiAttached(){const{eEditor:e,focusAfterAttached:t,highlightAllOnFocus:i}=this,s=this.getLocaleTextFunc();e.setInputAriaLabel(s("ariaInputEditor","Input Editor")),t&&(e.getFocusableElement().focus(),i&&e.getInputElement().select())}getValue(){const{eEditor:e,params:t}=this,{value:i}=t,s=e.getValue();return!te(s)&&!te(i)?i:t.parseValue(s)}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{maxLength:t,getValidationErrors:i}=e,s=this.getLocaleTextFunc(),o=this.getValue();let n=[];return typeof o=="string"&&t!=null&&o.length>t&&n.push(s("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),n.length||(n=null),i?i({value:o,internalErrors:n,cellEditorParams:e}):n}},op=class extends ts{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct();const e=this.eInput;this.addManagedListeners(e,{blur:()=>{const n=Number.parseFloat(e.value),r=isNaN(n)?"":this.normalizeValue(n.toString());this.value!==r&&this.setValue(r)},wheel:this.onWheel.bind(this)}),e.step="any";const{precision:t,min:i,max:s,step:o}=this.config;typeof t=="number"&&this.setPrecision(t),typeof i=="number"&&this.setMin(i),typeof s=="number"&&this.setMax(s),typeof o=="number"&&this.setStep(o)}onWheel(e){Je(this.beans)===this.eInput&&e.preventDefault()}normalizeValue(e){return e===""?"":(this.precision!=null&&(e=this.adjustPrecision(e)),e)}adjustPrecision(e,t){const i=this.precision;if(i==null)return e;if(t){const o=Number.parseFloat(e).toFixed(i);return Number.parseFloat(o).toString()}const s=String(e).split(".");if(s.length>1){if(s[1].length<=i)return e;if(i>0)return`${s[0]}.${s[1].slice(0,i)}`}return s[0]}setMin(e){return this.min===e?this:(this.min=e,Vt(this.eInput,"min",e),this)}setMax(e){return this.max===e?this:(this.max=e,Vt(this.eInput,"max",e),this)}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e?this:(this.step=e,Vt(this.eInput,"step",e),this)}setValue(e,t){return this.setValueOrInputValue(i=>super.setValue(i,t),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(t=>super.setValue(t,!0),t=>{this.eInput.value=t},e)}setValueOrInputValue(e,t,i){if(te(i)){let s=this.isScientificNotation(i);if(s&&this.eInput.validity.valid)return e(i);if(!s){i=this.adjustPrecision(i);const o=this.normalizeValue(i);s=i!=o}if(s)return t(i)}return e(i)}getValue(e=!1){const t=this.eInput;if(!t.validity.valid&&!e)return;const i=t.value;return this.isScientificNotation(i)?this.adjustPrecision(i,!0):super.getValue()}isScientificNotation(e){return typeof e=="string"&&e.includes("e")}},OI={selector:"AG-INPUT-NUMBER-FIELD",component:op},NI={tag:"ag-input-number-field",ref:"eEditor",cls:"ag-cell-editor"},HI=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return NI}getAgComponents(){return[OI]}init(e,t){this.eEditor=e,this.params=t;const{max:i,min:s,precision:o,step:n}=t;i!=null&&e.setMax(i),s!=null&&e.setMin(s),o!=null&&e.setPrecision(o),n!=null&&e.setStep(n);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:i,getValidationErrors:s}=e,n=this.eEditor.getInputElement().valueAsNumber,r=this.getLocaleTextFunc();let a=[];return typeof n=="number"&&(t!=null&&n<t&&a.push(r("minValueValidation",`Must be greater than or equal to ${t}.`,[String(t)])),i!=null&&n>i&&a.push(r("maxValueValidation",`Must be less than or equal to ${i}.`,[String(i)]))),a.length||(a=null),s?s({value:n,cellEditorParams:e,internalErrors:a}):a}preventStepping(e){(e.key===A.UP||e.key===A.DOWN)&&e.preventDefault()}getValue(){const{eEditor:e,params:t}=this,i=e.getValue();if(!te(i)&&!te(t.value))return t.value;let s=t.parseValue(i);if(s==null)return s;if(typeof s=="string"){if(s==="")return null;s=Number(s)}return isNaN(s)?null:s}getStartValue(){return this.params.value}setCaret(){Ls()&&this.eEditor.getInputElement().focus({preventScroll:!0})}},BI=class extends pc{constructor(){super(new HI(()=>this.getLocaleTextFunc()))}},GI=".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)}}",VI="ag-active-item",zI=(e,t)=>({tag:"div",cls:`ag-list-item ag-${e}-list-item`,attrs:{role:"option"},children:[{tag:"span",cls:`ag-list-item-text ag-${e}-list-item-text`,ref:"eText",children:t}]}),WI=class extends In{constructor(e,t,i){super(zI(e,t)),this.label=t,this.value=i,this.eText=de}postConstruct(){this.createTooltip(),this.addEventListeners()}setHighlighted(e){const t=this.getGui();t.classList.toggle(VI,e),gv(t,e),this.dispatchLocalEvent({type:"itemHighlighted",highlighted:e})}getHeight(){return this.getGui().clientHeight}setIndex(e,t){const i=this.getGui();WS(i,e),zS(i,t)}createTooltip(){const e={getTooltipValue:()=>this.label,getGui:()=>this.getGui(),getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>wv(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)}))}},jI=class extends In{constructor(e="default"){super({tag:"div",cls:`ag-list ag-${e}-list`}),this.cssIdentifier=e,this.options=[],this.listItems=[],this.highlightedItem=null,this.registerCSS(GI)}postConstruct(){const e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()})}handleKeyDown(e){const t=e.key;switch(t){case A.ENTER:if(!this.highlightedItem)this.setValue(this.getValue());else{const i=this.listItems.indexOf(this.highlightedItem);this.setValueByIndex(i)}break;case A.DOWN:case A.UP:e.preventDefault(),this.navigate(t);break;case A.PAGE_DOWN:case A.PAGE_UP:case A.PAGE_HOME:case A.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:i}=e,s=i??t;return this.options.push({value:t,text:s}),this.renderOption(t,s),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0);for(const e of this.listItems)e.destroy();_t(this.getGui()),this.listItems=[],this.refreshAriaRole()}updateOptions(e){const t=this.options!==e;return t&&(this.clearOptions(),this.addOptions(e)),t}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(t),this;const i=this.options.findIndex(s=>s.value===e);if(i!==-1){const s=this.options[i];this.value=s.value,this.displayValue=s.text,this.highlightItem(this.listItems[i]),t||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();const e=this.options.findIndex(t=>t.value===this.value);e!==-1&&this.highlightItem(this.listItems[e])}highlightItem(e){const t=e.getGui();if(!yi(t))return;this.clearHighlighted(),e.setHighlighted(!0),this.highlightedItem=e;const i=this.getGui(),{scrollTop:s,clientHeight:o}=i,{offsetTop:n,offsetHeight:r}=t;(n+r>s+o||n<s)&&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 i=new WI(this.cssIdentifier,t,e);i.setParentComponent(this);const s=this.createManagedBean(i);this.listItems.push(s),this.getGui().appendChild(s.getGui())}navigate(e){const t=e===A.DOWN;let i;const{listItems:s,highlightedItem:o}=this;if(!o)i=t?s[0]:$e(s);else{let r=s.indexOf(o)+(t?1:-1);r=Math.min(Math.max(r,0),s.length-1),i=s[r]}this.highlightItem(i)}navigateToPage(e){const{listItems:t,highlightedItem:i}=this;if(!i||t.length===0)return;const s=t.indexOf(i),o=this.options.length-1,n=t[0].getHeight(),r=Math.floor(this.getGui().clientHeight/n);let a=-1;e===A.PAGE_HOME?a=0:e===A.PAGE_END?a=o:e===A.PAGE_DOWN?a=Math.min(s+r,o):e===A.PAGE_UP&&(a=Math.max(s-r,0)),a!==-1&&this.highlightItem(t[a])}refreshAriaRole(){co(this.getGui(),this.options.length===0?"presentation":"listbox")}updateIndices(){this.refreshAriaRole();const e=this.listItems,t=e.length;e.forEach((i,s)=>{i.setIndex(s+1,t)})}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},_I=".ag-picker-field-display{flex:1 1 auto}.ag-picker-field{align-items:center;display:flex}.ag-picker-field-icon{border:0;cursor:pointer;display:flex;margin:0;padding:0}.ag-picker-field-wrapper{background-color:var(--ag-picker-button-background-color);border:var(--ag-picker-button-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}}.ag-picker-field-wrapper:where(.ag-picker-has-focus),.ag-picker-field-wrapper:where(:focus-within){background-color:var(--ag-picker-button-focus-background-color);border:var(--ag-picker-button-focus-border);box-shadow:var(--ag-focus-shadow);&:where(.invalid){box-shadow:var(--ag-focus-error-shadow)}}.ag-picker-field-wrapper:disabled{opacity:.5}",UI={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"}}]}]},$I=class extends ZC{constructor(e){if(super(e,e?.template||UI,e?.agComponents||[],e?.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=de,this.eWrapper=de,this.eDisplayField=de,this.eIcon=de,this.registerCSS(_I),this.ariaRole=e?.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:i,variableWidth:s,minPickerWidth:o,maxPickerWidth:n}=e;t!=null&&(this.pickerGap=t),this.variableWidth=!!s,i!=null&&this.setPickerMaxHeight(i),o!=null&&this.setPickerMinWidth(o),n!=null&&this.setPickerMaxWidth(n)}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:i,inputWidth:s}=this.config;if(i){const o=this.beans.iconSvc.createIconNoSpan(i);o&&this.eIcon.appendChild(o)}s!=null&&this.setInputWidth(s)}setupAria(){const e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),pu(e,!1),this.ariaRole&&co(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){const t=this.getFocusableElement();if(t!==this.eWrapper&&e?.target===t)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case A.UP:case A.DOWN:case A.ENTER:case A.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case A.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:i,pickerAriaLabelValue:s,modalPicker:o=!0},maxPickerHeight:n,minPickerWidth:r,maxPickerWidth:a,variableWidth:l,beans:c,eWrapper:d}=this,u={modal:o,eChild:e,closeOnEsc:!0,closedCallback:()=>{const v=ph(c);this.beforeHidePicker(),v&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(i,s),anchorToElement:d};e.style.position="absolute";const h=c.popupSvc,p=h.addPopup(u);l?(r&&(e.style.minWidth=r),e.style.width=bh(gl(d)),a&&(e.style.maxWidth=a)):vl(e,a??gl(d));const m=n??`${Ch(h.getPopupParent())}px`;return e.style.setProperty("max-height",m),this.alignPickerToComponent(),p.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerGap:e,config:{pickerType:t},beans:{popupSvc:i,gos:s},eWrapper:o,pickerComponent:n}=this,r=s.get("enableRtl")?"right":"left";i.positionPopupByComponent({type:t,eventSource:o,ePopup:n.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();pu(t,e);const i=this.eWrapper.classList;i.toggle("ag-picker-expanded",e),i.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 vl(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return typeof e=="number"&&(e=`${e}px`),this.minPickerWidth=e??void 0,this}setPickerMaxWidth(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerWidth=e??void 0,this}setPickerMaxHeight(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerHeight=e??void 0,this}destroy(){this.hidePicker(),super.destroy()}},qI=".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}.ag-select:where(:not(.ag-cell-editor,.ag-label-align-top)){min-height:var(--ag-list-item-height)}:where(.ag-select){.ag-picker-field-wrapper{cursor:default;padding-left:var(--ag-spacing);padding-right:var(--ag-spacing)}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}.ag-select-list{background-color:var(--ag-picker-list-background-color);border:var(--ag-picker-list-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow:hidden auto}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}:where(.ag-ltr) .ag-select-list-item{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-select-list-item{padding-right:var(--ag-spacing)}.ag-select-list-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",np=class extends $I{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox",...e}),this.registerCSS(qI)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:Tr(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{options:e,value:t,placeholder:i}=this.config;e!=null&&this.addOptions(e),t!=null&&this.setValue(t,!0),i&&t==null&&(this.eDisplayField.textContent=i),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){const e=this.createBean(new jI("select"));this.listComponent=e,e.setParentComponent(this);const t=e.getAriaElement(),i=`ag-select-list-${e.getCompId()}`;t.setAttribute("id",i),ZS(this.getAriaElement(),t),e.addManagedElementListeners(e.getGui(),{mousedown:s=>{s?.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===A.TAB&&this.hidePicker(),t){case A.ENTER:case A.UP:case A.DOWN:case A.PAGE_UP:case A.PAGE_DOWN:case A.PAGE_HOME:case A.PAGE_END:e.preventDefault(),this.isPickerDisplayed?this.listComponent?.handleKeyDown(e):super.onKeyDown(e);break;case A.ESCAPE:super.onKeyDown(e);break;case A.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,i){const{listComponent:s,config:{placeholder:o},eDisplayField:n,tooltipFeature:r}=this;if(this.value===e||!s)return this;if(i||s.setValue(e,!0),s.getValue()===this.getValue())return this;let l=s.getDisplayValue();return l==null&&o&&(l=o),n.textContent=l,r?.setTooltipAndRefresh(l??null),super.setValue(e,t)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},KI={selector:"AG-SELECT",component:np},YI={tag:"div",cls:"ag-cell-edit-wrapper",children:[{tag:"ag-select",ref:"eEditor",cls:"ag-cell-editor"}]},ZI=class extends rc{constructor(){super(YI,[KI]),this.eEditor=de,this.startedByEnter=!1}wireBeans(e){this.valueSvc=e.valueSvc}initialiseEditor(e){this.focusAfterAttached=e.cellStartedEdit;const{eEditor:t,valueSvc:i,gos:s}=this,{values:o,value:n,eventKey:r}=e;if(it(o)){$(58);return}this.startedByEnter=r!=null?r===A.ENTER:!1;let a=!1;o.forEach(u=>{const h={value:u},p=i.formatValue(e.column,null,u),m=p!=null;h.text=m?p:u,t.addOption(h),a=a||n===u}),a?t.setValue(e.value??void 0,!0):e.values.length&&t.setValue(e.values[0],!0);const{valueListGap:l,valueListMaxWidth:c,valueListMaxHeight:d}=e;l!=null&&t.setPickerGap(l),d!=null&&t.setPickerMaxHeight(d),c!=null&&t.setPickerMaxWidth(c),s.get("editType")!=="fullRow"&&this.addManagedListeners(this.eEditor,{selectedItem:()=>e.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eEditor.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eEditor.showPicker()})}focusIn(){this.eEditor.getFocusableElement().focus()}agSetEditValue(e){this.params.value=e,this.eEditor.setValue(e??void 0,!0)}getValue(){return this.eEditor.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getAriaElement()}getValidationErrors(){const{params:e}=this,{values:t,getValidationErrors:i}=e,s=this.getValue();let o=[];if(t&&s!=null&&!t.includes(s)){const n=this.getLocaleTextFunc();o.push(n("invalidSelectionValidation","Invalid selection."))}else o=null;return i?i({value:s,internalErrors:o,cellEditorParams:e}):o}},XI={tag:"ag-input-text-field",ref:"eEditor",cls:"ag-cell-editor"},QI=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return XI}getAgComponents(){return[hc]}init(e,t){this.eEditor=e,this.params=t;const i=t.maxLength;i!=null&&e.setMaxLength(i)}getValidationErrors(){const{params:e}=this,{maxLength:t,getValidationErrors:i}=e,s=this.getValue(),o=this.getLocaleTextFunc();let n=[];return t!=null&&typeof s=="string"&&s.length>t&&n.push(o("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),n.length||(n=null),i?i({value:s,cellEditorParams:e,internalErrors:n}):n}getValue(){const{eEditor:e,params:t}=this,i=e.getValue();return!te(i)&&!te(t.value)?t.value:t.parseValue(i)}getStartValue(){const e=this.params;return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value}setCaret(){Ls()&&this.eEditor.getInputElement().focus({preventScroll:!0});const e=this.eEditor,t=e.getValue(),i=te(t)&&t.length||0;i&&e.getInputElement().setSelectionRange(i,i)}},Wf=class extends pc{constructor(){super(new QI(()=>this.getLocaleTextFunc()))}};function JI(e){e.undoRedo?.undo("api")}function eM(e){e.undoRedo?.redo("api")}function tM(e,t){return e.editModelSvc?.getEditRowDataValue(t,{checkSiblings:!0})}function iM(e){const t=e.editModelSvc?.getEditMap(),i=[];return t?.forEach((s,o)=>{const{rowIndex:n,rowPinned:r}=o;s.forEach((a,l)=>{const{editorValue:c,pendingValue:d,sourceValue:u,state:h}=a,p=wi(a);let m=c??d;m===Ct&&(m=void 0);const v={newValue:m,oldValue:u,state:h,column:l,colId:l.getColId(),colKey:l.getColId(),rowIndex:n,rowPinned:r},C=h==="editing";(C||!C&&p)&&i.push(v)})}),i}function sM(e,t=!1){const{editSvc:i}=e;if(i?.isBatchEditing()){if(t)for(const s of e.editModelSvc?.getEditPositions()??[])s.state==="editing"&&i.revertSingleCellEdit(s);else ws(e,{persist:!0});ms(e,void 0,{cancel:t})}else i?.stopEditing(void 0,{cancel:t,source:"edit",forceStop:!t,forceCancel:t})}function oM(e,t){const i=Be(e,t);return!!e.editSvc?.isEditing(i)}function nM(e,t){const{key:i,colKey:s,rowIndex:o,rowPinned:n}=t,{editSvc:r,colModel:a}=e,l=a.getCol(s);if(!l){$(12,{colKey:s});return}const d=Bi(e,{rowIndex:o,rowPinned:n||null});if(!d){$(290,{rowIndex:o,rowPinned:n});return}if(!r?.isCellEditable({rowNode:d,column:l},"api"))return;n==null&&Lw(e,o),Aw(e,s),r?.startEditing({rowNode:d,column:l},{event:i?new KeyboardEvent("keydown",{key:i}):void 0,source:"api",editable:!0})}function rM(e){return e.editSvc?.validateEdit()||null}function aM(e){return e.undoRedo?.getCurrentUndoStackSize()??0}function lM(e){return e.undoRedo?.getCurrentRedoStackSize()??0}var cM={tag:"div",cls:"ag-popup-editor",attrs:{tabindex:"-1"}},dM=class extends Oh{constructor(e){super(cM),this.params=e}postConstruct(){po(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){const e=this.getGui(),t=this.params,i=s=>{Pu(this.gos,s,t.node,t.column,!0)||t.onKeyDown(s)};this.addManagedElementListeners(e,{keydown:i})}};function uM(e,{column:t},i,s,o="ui"){if(i instanceof KeyboardEvent&&(i.key===A.TAB||i.key===A.ENTER||i.key===A.F2||i.key===A.BACKSPACE&&s))return!0;if(i?.shiftKey&&e.rangeSvc?.getCellRanges().length!=0)return!1;const r=t?.getColDef(),a=hM(e.gos,r),l=i?.type;return l==="click"&&i?.detail===1&&a===1||l==="dblclick"&&i?.detail===2&&a===2?!0:o==="api"?!!s:!1}function hM(e,t){return e.get("suppressClickEdit")===!0?0:e.get("singleClickEdit")===!0||t?.singleClickEdit?1:2}function Bd(e,t){return e.editModelSvc?.hasEdits(t,{withOpenEditor:!0})??!1}function Wu(e,t){const i=t.column,s=t.rowNode,o=i.getColDef();if(!s)return Bd(e,t);const n=o.editable;return s.group&&o.groupRowEditable!=null?e.rowGroupingEditValueSvc?.isGroupCellEditable(s,i)?!0:Bd(e,t):i.isColumnFunc(s,n)?!0:Bd(e,t)}function pM(e,t,i="ui"){const s=Wu(e,t);if(s||i==="ui")return s;const{rowNode:o,column:n}=t;for(const r of e.colModel.getCols())if(r!==n&&Wu(e,{rowNode:o,column:r}))return!0;return!1}var Bl=(e,t=!1)=>{if(e!==void 0)return wi(e)||t&&e.state==="editing"};function _w(e,t,i=!1){return Bl(e.editModelSvc?.getEdit(t),i)}var Uw=(e,t,i)=>{if(e)for(let s=0,o=e.length;s<o;++s){const n=e[s];if(n.data&&(Bl(t?.getEdit({rowNode:n,column:i}))||Bl(t?.getEdit({rowNode:n.pinnedSibling,column:i})))||Uw(n.childrenAfterGroup,t,i))return!0}};function $w(e,t){const{column:i,rowNode:s}=t;return e.gos.get("groupTotalRow")&&!s?.footer?!1:Uw(s?.childrenAfterGroup,e.editModelSvc,i)}function qw(e,{rowNode:t,column:i}){if(t=t.pinnedSibling,!!t)return Bl(e.editModelSvc?.getEdit({rowNode:t,column:i}))}var gM=class extends B{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:i}=this;if(t?.isBatchEditing()&&t.isEditing()){const o=_w(i,e)||$w(i,e)||qw(i,e);this.applyBatchingStyle(o)}else this.applyBatchingStyle(!1);const s=!!this.editModelSvc?.getCellValidationModel().hasCellValidation(this.cellCtrl);this.cellComp.toggleCss("ag-cell-editing-error",s)}applyBatchingStyle(e){this.cellComp.toggleCss("ag-cell-editing",e??!1),this.cellComp.toggleCss("ag-cell-batch-edit",(e&&this.editSvc?.isBatchEditing())??!1)}},fM=class extends B{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:i}=this;let s=e.rowNode,o=t?.getEditRow(s);const n=this.editModelSvc?.getRowValidationModel().hasRowValidation({rowNode:s});if(!o&&s.pinnedSibling&&(s=s.pinnedSibling,o=t?.getEditRow(s)),o){const r=Array.from(o.keys()).some(a=>{const l={rowNode:s,column:a};return _w(i,l,!0)||$w(i,l)||qw(i,l)});this.applyStyle(n,r);return}this.applyStyle(n)}applyStyle(e=!1,t=!1){const i=!!this.editSvc?.isBatchEditing(),s=this.gos.get("editType")==="fullRow";this.rowCtrl?.forEachGui(void 0,({rowComp:o})=>{o.toggleCss("ag-row-editing",s&&t),o.toggleCss("ag-row-batch-edit",s&&t&&i),o.toggleCss("ag-row-inline-editing",t),o.toggleCss("ag-row-not-inline-editing",!t),o.toggleCss("ag-row-editing-invalid",s&&t&&e)})}},mM=({rowModel:e,pinnedRowModel:t,editModelSvc:i},s)=>{const o=new Set;e.forEachNode(n=>s.has(n)&&o.add(n)),t?.forEachPinnedRow("top",n=>s.has(n)&&o.add(n)),t?.forEachPinnedRow("bottom",n=>s.has(n)&&o.add(n));for(const n of s)o.has(n)||i.removeEdits({rowNode:n});return o},vM=({editModelSvc:e},t,i)=>{for(const s of t)e?.getEditRow(s)?.forEach((o,n)=>!i.has(n)&&e.removeEdits({rowNode:s,column:n}))},CM=e=>()=>{const t=new Set(e.colModel.getCols()),i=e.editModelSvc.getEditMap(!0),s=new Set(i.keys());vM(e,mM(e,s),t)},wM=new Set(["undo","redo","paste","bulk","rangeSvc"]),bM=new Set(["ui","api"]),Kw={paste:"api",rangeSvc:"api",fillHandle:"api",cellClear:"api",bulk:"api"},xM=new Set(Object.keys(Kw)),yM=new Set(["paste","rangeSvc","cellClear","redo","undo"]),Gd={cancel:!0,source:"api"},SM={cancel:!1,source:"api"},_s={checkSiblings:!0},ps={force:!0,suppressFlash:!0},RM={force:!0},FM=class extends B{constructor(){super(...arguments),this.beanName="editSvc",this.committing=!1,this.batch=!1,this.batchStartDispatched=!1,this.stopping=!1,this.rangeSelectionWhileEditing=0}postConstruct(){const{beans:e}=this;this.model=e.editModelSvc,this.valueSvc=e.valueSvc,this.rangeSvc=e.rangeSvc,this.addManagedPropertyListener("editType",({currentValue:s})=>{this.stopEditing(void 0,Gd),this.createStrategy(s)});const t=CM(e),i=()=>{const s=this.model.getCellValidationModel().getCellValidationMap().size>0,o=this.model.getRowValidationModel().getRowValidationMap().size>0;return s||o?this.stopEditing(void 0,Gd):this.isEditing()&&(this.batch?ms(e,this.model.getEditPositions()):this.stopEditing(void 0,SM)),!1};this.addManagedEventListeners({columnPinned:t,columnVisible:t,columnRowGroupChanged:t,rowExpansionStateChanged:t,pinnedRowsChanged:t,displayedRowsChanged:t,sortChanged:i,filterChanged:i,cellFocused:this.onCellFocused.bind(this)})}isBatchEditing(){return this.batch}startBatchEditing(){this.batch||(this.batch=!0,this.batchStartDispatched=!1,this.stopEditing(void 0,Gd))}stopBatchEditing(e){this.batch&&(e&&this.stopEditing(void 0,e),this.batchStartDispatched&&this.dispatchBatchStopped(new Map,!1),this.batch=!1,this.batchStartDispatched=!1)}ensureBatchStarted(){!this.batch||this.batchStartDispatched||(this.batchStartDispatched=!0,this.dispatchBatchEvent("batchEditingStarted",new Map))}createStrategy(e){const{beans:t,gos:i,strategy:s}=this,o=jf(i,e);if(s){if(s.beanName===o)return s;this.destroyStrategy()}return this.strategy=this.createOptionalManagedBean(t.registry.createDynamicBean(o,!0))}destroyStrategy(){this.strategy&&(this.strategy.destroy(),this.strategy=this.destroyBean(this.strategy))}shouldStartEditing(e,t,i,s="ui"){const o=uM(this.beans,e,t,i,s);return o&&(this.strategy??(this.strategy=this.createStrategy())),o}shouldStopEditing(e,t,i="ui"){return this.strategy?.shouldStop(e,t,i)??null}shouldCancelEditing(e,t,i="ui"){return this.strategy?.shouldCancel(e,t,i)??null}validateEdit(){return a6(this.beans)}isEditing(e,t){return this.model.hasEdits(e??void 0,t??_s)}isRowEditing(e,t){return!!e&&this.model.hasRowEdits(e,t)}enableRangeSelectionWhileEditing(){this.beans.rangeSvc&&this.gos.get("cellSelection")&&this.rangeSelectionWhileEditing++}disableRangeSelectionWhileEditing(){this.rangeSelectionWhileEditing=Math.max(0,this.rangeSelectionWhileEditing-1)}isRangeSelectionEnabledWhileEditing(){return this.rangeSelectionWhileEditing>0}startEditing(e,t){const{startedEdit:i=!0,event:s=null,source:o="ui",ignoreEventKey:n=!1,silent:r}=t;if(this.strategy??(this.strategy=this.createStrategy()),!(t.editable??this.isCellEditable(e,"api")))return;const l=Be(this.beans,e);if(l&&!l.comp){t.editable=void 0,l.onCompAttachedFuncs.push(()=>this.startEditing(e,t));return}const c=this.shouldStartEditing(e,s,i,o);if(c===!1&&o!=="api"){this.isEditing(e)&&this.stopEditing();return}!this.batch&&this.shouldStopEditing(e,void 0,o)&&!t.continueEditing&&this.stopEditing(void 0,{source:o}),c&&this.ensureBatchStarted(),this.strategy.start({position:e,event:s,source:o,ignoreEventKey:n,startedEdit:i,silent:r})}stopEditing(e,t){const i=this.prepareStopContext(e,t);if(!i)return!1;this.stopping=!0;let s=!1,{edits:o}=i;try{const n=this.processStopRequest(i);return s||(s=n.res),o=n.edits,this.finishStopEditing({...i,edits:o,params:t,position:e,res:s}),s}finally{this.rangeSelectionWhileEditing=0,this.stopping=!1}}prepareStopContext(e,t){const{event:i=null,cancel:s=!1,source:o="ui",forceCancel:n=!1,forceStop:r=!1,commit:a=!1}=t||{};if(xM.has(o)&&this.batch)return e?.rowNode&&e?.column&&this.bulkRefreshCell(e),null;const l=this.committing?Kw[o]:o;if(!(this.committing||this.isEditing(e)||this.batch&&this.model.hasEdits(e,_s))||!this.strategy||this.stopping)return null;const d=Be(this.beans,e);d&&(d.onEditorAttachedFuncs=[]);const u=!s&&(!!this.shouldStopEditing(e,i,l)||(this.committing||o==="paste")&&!this.batch)||r,h=s&&!!this.shouldCancelEditing(e,i,l)||n;return{cancel:s,cellCtrl:d,edits:this.model.getEditMap(!0),event:i??null,forceCancel:n,forceStop:r,commit:a,position:e,source:o,treatAsSource:l,willCancel:h,willStop:u}}processStopRequest(e){const{event:t,position:i,willCancel:s,willStop:o}=e;return o||s?this.handleStopOrCancel(e):this.shouldHandleMidBatchKey(t,i)?{res:!1,edits:this.handleMidBatchKey(t,i,e)}:(ws(this.beans,{persist:!0}),this.batch&&this.strategy?.cleanupEditors(i),{res:!1,edits:this.model.getEditMap()})}handleStopOrCancel(e){const{beans:t,model:i}=this,{cancel:s,commit:o,edits:n,event:r,source:a,willCancel:l,willStop:c}=e,d=!this.batch||!l;ws(t,{persist:d,isCancelling:l||s,isStopping:c});const u=i.getEditMap(),p=!l&&(!this.batch||o)?this.processEdits(u,a):[];s?this.strategy?.stopCancelled(e.forceCancel):this.strategy?.stopCommitted(r,o),this.clearValidationIfNoOpenEditors();for(const m of p)i.clearEditValue(m);this.bulkRefreshMap(n);for(const m of i.getEditPositions(u)){const v=Be(t,m),C=wi(m);v?.refreshCell({force:!0,suppressFlash:!C})}return{res:c,edits:u}}shouldHandleMidBatchKey(e,t){return e instanceof KeyboardEvent&&this.batch&&!!this.strategy?.midBatchInputsAllowed(t)&&this.isEditing(t,{withOpenEditor:!0})}handleMidBatchKey(e,t,i){const{beans:s,model:o}=this,{cellCtrl:n,edits:r}=i,{key:a}=e,l=a===A.ENTER,c=a===A.ESCAPE,d=a===A.TAB;if(l||d||c){if(l||d)ws(s,{persist:!0});else if(c&&n){const{rowNode:u,column:h}=n;if(this.batch&&u&&h){const p={rowNode:u,column:h};ms(s,[p],{silent:!0}),this.model.stop(p,!0,!0),Be(s,p)?.refreshCell(ps)}else this.revertSingleCellEdit(n)}return this.batch?this.strategy?.cleanupEditors():ms(s,o.getEditPositions(),{event:e,cancel:c}),e.preventDefault(),this.bulkRefreshMap(r,{suppressFlash:!0}),o.getEditMap()}return r}finishStopEditing({cellCtrl:e,edits:t,params:i,position:s,res:o,commit:n,forceCancel:r,willCancel:a,willStop:l}){const c=this.beans;o&&s&&(!this.batch||n)&&this.model.removeEdits(s),this.navigateAfterEdit(i,e?.cellPosition),ar(c),this.clearValidationIfNoOpenEditors();const{rowRenderer:d,formula:u}=c;if(a&&d.refreshRows({rowNodes:Array.from(t.keys())}),this.batch){u?u.refreshFormulas(!0):d.refreshRows({suppressFlash:!0,force:!0});const h=l&&n;(h||a&&r)&&this.dispatchBatchStopped(t,h)}}dispatchBatchStopped(e,t){let i;t&&(i=J4(e),i.size>0&&this.ensureBatchStarted()),this.batchStartDispatched&&(this.batchStartDispatched=!1,this.dispatchBatchEvent("batchEditingStopped",i??new Map))}clearValidationIfNoOpenEditors(){this.model.hasEdits(void 0,{withOpenEditor:!0})||(this.model.getCellValidationModel().clearCellValidationMap(),this.model.getRowValidationModel().clearRowValidationMap())}navigateAfterEdit(e,t){if(!e||!t)return;const{event:i,suppressNavigateAfterEdit:s}=e;if(!(i instanceof KeyboardEvent)||s)return;const{key:n,shiftKey:r}=i,a=this.gos.get("enterNavigatesVerticallyAfterEdit");if(n!==A.ENTER||!a)return;const l=r?A.UP:A.DOWN;this.beans.navigation?.navigateToNextCell(null,l,t,!1)}processEdits(e,t){const i=Array.from(e.keys()),s=this.model.getCellValidationModel().getCellValidationMap().size>0||this.model.getRowValidationModel().getRowValidationMap().size>0,o=[],{changeDetectionSvc:n}=this.beans;n?.beginDeferred();try{for(const r of i){const a=e.get(r);for(const l of a.keys()){const c=a.get(l),d={rowNode:r,column:l};if(wi(c)&&!s){const u=Be(this.beans,d);this.setNodeDataValue(r,l,c.pendingValue,u,t)||o.push(d)}}}}finally{n?.endDeferred()}return o}setNodeDataValue(e,t,i,s,o="edit"){const n=bM.has(o)?"edit":o;s&&(s.suppressRefreshCell=!0),this.committing=!0;try{return e.setDataValue(t,i,n)}finally{this.committing=!1,s&&(s.suppressRefreshCell=!1)}}syncEditAfterCommit(e,t){const i=this.model.getEdit(e);i&&i.state!=="editing"&&(t?this.beans.editModelSvc?.setEdit(e,{sourceValue:i.pendingValue}):this.model.clearEditValue(e))}setEditMap(e,t){this.strategy??(this.strategy=this.createStrategy()),this.strategy?.setEditMap(e,t),this.bulkRefreshMap(e);let i=ps;t?.forceRefreshOfEditCellsOnly&&(i={...EM(e),...ps}),this.beans.rowRenderer.refreshCells(i)}dispatchEditValuesChanged({rowNode:e,column:t},i={}){if(!e||!t||!i)return;const{pendingValue:s,sourceValue:o}=i,{rowIndex:n,rowPinned:r,data:a}=e;this.beans.eventSvc.dispatchEvent({type:"cellEditValuesChanged",node:e,rowIndex:n,rowPinned:r,column:t,source:"api",data:a,newValue:s,oldValue:o,value:s,colDef:t.getColDef()})}bulkRefreshCell(e,t){st(this.gos,this.beans.rowModel)&&this.refCell(e,this.model.getEdit(e),t)}bulkRefreshMap(e,t){st(this.gos,this.beans.rowModel)&&e.forEach((i,s)=>{for(const o of i.keys())this.refCell({rowNode:s,column:o},i.get(o),t)})}refCell({rowNode:e,column:t},i,s={}){const{beans:o,gos:n}=this,r=new Set([e]),a=new Set,l=e.pinnedSibling;l&&r.add(l);const c=e.sibling;c&&a.add(c);let d=e.parent;for(;d;)d.sibling?.footer&&n.get("groupTotalRow")||!d.parent&&d.sibling&&n.get("grandTotalRow")?a.add(d.sibling):a.add(d),d=d.parent;for(const u of r)this.dispatchEditValuesChanged({rowNode:u,column:t},i);for(const u of r)Be(o,{rowNode:u,column:t})?.refreshCell(s);for(const u of a){const h=Be(o,{rowNode:u,column:t});h&&(h.refreshCell(s),!s.force&&this.batch&&h.editStyleFeature?.applyCellStyles?.())}}stopAllEditing(e=!1,t="ui"){this.isEditing()&&this.stopEditing(void 0,{cancel:e,source:t})}isCellEditable(e,t="ui"){const{gos:i,beans:s}=this,o=e.rowNode;if(o.group&&e.column.getColDef().groupRowEditable==null){if(i.get("treeData")){if(!o.data&&!i.get("enableGroupEdit"))return!1}else if(!i.get("enableGroupEdit"))return!1}const n=jf(i)==="fullRow"?pM(s,e,t):Wu(s,e);return n&&(this.strategy??(this.strategy=this.createStrategy())),n}cellEditingInvalidCommitBlocks(){return this.gos.get("invalidEditValueMode")==="block"}checkNavWithValidation(e,t,i=!0){if(this.hasValidationErrors(e)){const s=Be(this.beans,e);return this.cellEditingInvalidCommitBlocks()?(t?.preventDefault?.(),i&&(s&&!s.hasBrowserFocus()&&s.focusCell(),s?.comp?.getCellEditor()?.focusIn?.()),"block-stop"):(s&&this.revertSingleCellEdit(s),"revert-continue")}return"continue"}revertSingleCellEdit(e,t=!1){const i=Be(this.beans,e);i?.comp?.getCellEditor()&&(ms(this.beans,[e],{silent:!0}),this.model.clearEditValue(e),Co(this.beans,e,{silent:!0}),Ss(this.beans),i?.refreshCell(ps),t&&(i?.focusCell(),i?.comp?.getCellEditor()?.focusIn?.()))}hasValidationErrors(e){Ss(this.beans);const t=Be(this.beans,e);t&&(t.refreshCell(ps),t.rowCtrl.rowEditStyleFeature?.applyRowStyles());let i=!1;return e?.rowNode?(i||(i=this.model.getRowValidationModel().hasRowValidation({rowNode:e.rowNode})),e.column&&(i||(i=this.model.getCellValidationModel().hasCellValidation({rowNode:e.rowNode,column:e.column})))):(i||(i=this.model.getCellValidationModel().getCellValidationMap().size>0),i||(i=this.model.getRowValidationModel().getRowValidationMap().size>0)),i}moveToNextCell(e,t,i,s="ui"){let o;const n=this.isEditing(),r=n&&this.checkNavWithValidation(void 0,i)==="block-stop";return e instanceof fn&&n&&(o=this.strategy?.moveToNextEditingCell(e,t,i,s,r)),o===null||(o=o||!!this.beans.focusSvc.focusedHeader,o===!1&&!r&&this.stopEditing()),o}getPendingEditValue(e,t,i){if(i==="data"||i==="batch"&&!this.batch)return;const s=this.model.getEdit({rowNode:e,column:t},_s);if(!s||this.stopping&&!this.batch&&!s.editorState?.cellStartedEditing)return;if(i==="edit"){const n=s.editorValue;if(n!=null&&n!==Ct)return n}const o=s.pendingValue;if(o!==Ct)return o}getCellDataValue(e){const t=this.model.getEdit(e,_s);if(t){const i=t.pendingValue;if(i!==Ct)return i;const s=t.sourceValue;if(s!=null)return s}return this.valueSvc.getValue(e.column,e.rowNode,"data")}addStopEditingWhenGridLosesFocus(e){Z4(this,this.beans,e)}createPopupEditorWrapper(e){return new dM(e)}batchResetToSourceValue(e){if(!this.batch)return!1;const t=this.model.getEdit(e);if(!t)return!1;const{pendingValue:i,sourceValue:s,state:o}=t;return i===s||o==="editing"?!1:(this.dispatchEditValuesChanged(e,{...t,pendingValue:s}),this.beans.editModelSvc?.removeEdits(e),Be(this.beans,e)?.refreshCell(ps),!0)}setDataValue(e,t,i){try{const s=this.batch,o=this.isEditing(s?void 0:e);if((!o||this.committing)&&!s&&!yM.has(i)||!o&&!s&&i==="paste"||i==="batch"&&!s)return;if(i==="edit"){if(o&&this.applyEditorValue(e,t))return!0;if(!s)return}if(this.strategy??(this.strategy=this.createStrategy()),i==="batch"||i==="edit")return this.applyDirectValue(e,t,i);const n=this.beans;let r;if(s?r="ui":this.committing?r=i??"api":r="api",!i||wM.has(i))return this.applyDirectValue(e,t,i);const a=this.applyExistingEdit(e,t,i,r);return a!==void 0?a:(Zo(n,e,t,i,void 0,{persist:!0}),this.ensureBatchStarted(),this.stopEditing(e,{source:r,suppressNavigateAfterEdit:!0}),!0)}finally{this.committing=!1}}applyExistingEdit(e,t,i,s){const o=this.model.getEdit(e);if(o)return o.pendingValue===t?!1:o.sourceValue!==t?(Zo(this.beans,e,t,i,void 0,{persist:!0}),this.ensureBatchStarted(),this.stopEditing(e,{source:s,suppressNavigateAfterEdit:!0}),!0):(this.beans.editModelSvc?.removeEdits(e),this.ensureBatchStarted(),this.dispatchEditValuesChanged(e,{...o,pendingValue:t}),!0)}applyEditorValue(e,t){const i=this.beans,s=Be(i,e),o=s?.comp?.getCellEditor();return!s||!o?!1:(Zo(i,e,t,"edit",void 0,{persist:!0}),s.editStyleFeature?.applyCellStyles?.(),"agSetEditValue"in o?(o.agSetEditValue(t),!0):o.refresh&&s.editCompDetails?(o.refresh({...s.editCompDetails.params,value:t}),!0):(s.hasBrowserFocus()&&s.onEditorAttachedFuncs.push(()=>{const r=Be(this.beans,e);r?.focusCell(!0),r?.comp?.getCellEditor()?.focusIn?.()}),ms(i,[e],{silent:!0,cancel:!0}),Co(i,e,{silent:!0}),Ss(i),Be(i,e)?.refreshCell(ps),!0))}applyDirectValue(e,t,i){const s=this.beans;if(this.batch){if(i==="batch"&&Be(s,e)?.comp?.getCellEditor()){const{editModelSvc:r,valueSvc:a}=s,{rowNode:l,column:c}=e;r?.getEdit(e)?.sourceValue===void 0&&r?.setEdit(e,{sourceValue:a.getValue(c,l,"data")}),r?.setEdit(e,{pendingValue:t})}else Zo(s,e,t,i,void 0,{persist:!0}),i!=="batch"&&this.cleanupEditors();return ar(s),this.ensureBatchStarted(),this.bulkRefreshCell(e),!0}Zo(s,e,t,i,void 0,{persist:!0});const o=Be(s,e),n=this.setNodeDataValue(e.rowNode,e.column,t,o,i);return this.syncEditAfterCommit(e,n),ar(s),Be(s,e)?.refreshCell(n?RM:ps),n}handleColDefChanged(e){t6(this.beans,e)}destroy(){this.model.clear(),this.destroyStrategy(),super.destroy()}prepDetailsDuringBatch(e,t){const{model:i}=this;if(!this.batch||!i.hasRowEdits(e.rowNode,_s))return;const{rowNode:o}=e,{compDetails:n,valueToDisplay:r}=t;if(n){const{params:a}=n;return a.data=i.getEditRowDataValue(o,_s),{compDetails:n}}return{valueToDisplay:r}}cleanupEditors(){this.strategy?.cleanupEditors()}dispatchCellEvent(e,t,i,s){this.strategy?.dispatchCellEvent(e,t,i,s)}dispatchBatchEvent(e,t){this.eventSvc.dispatchEvent(this.createBatchEditEvent(e,t))}createBatchEditEvent(e,t){return xe(this.gos,{type:e,...e==="batchEditingStopped"?{changes:this.toEventChangeList(t)}:{}})}toEventChangeList(e){return this.model.getEditPositions(e).map(t=>({rowIndex:t.rowNode.rowIndex,rowPinned:t.rowNode.rowPinned,columnId:t.column.getColId(),newValue:t.pendingValue,oldValue:t.sourceValue}))}applyBulkEdit({rowNode:e,column:t},i){if(!i||i.length===0)return;const{beans:s,rangeSvc:o,valueSvc:n}=this,{formula:r}=s;ws(s,{persist:!0});const a=this.model.getEditMap(!0);let l=a.get(e)?.get(t)?.pendingValue,c=!1;this.batch||(this.eventSvc.dispatchEvent({type:"bulkEditingStarted"}),c=!0);const d=r?.isFormula(l)??!1;i.forEach(h=>{const p=h.columns.some(m=>m?.isAllowFormula());if(o?.forEachRowInRange(h,m=>{const v=Bi(s,m);if(v===void 0)return;const C=a.get(v)??new Map;let w=l;for(const b of h.columns){if(!b)continue;const x=!!d&&b.isAllowFormula();if(this.isCellEditable({rowNode:v,column:b},"api")){const y=n.getValue(b,v,"data",!0);let S=n.parseValue(b,v??null,w,y);Number.isNaN(S)&&(S=null),C.set(b,{editorValue:void 0,pendingValue:S,sourceValue:y,state:"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}x&&(w=r?.updateFormulaByOffset({value:w,columnDelta:1}))}C.size>0&&a.set(v,C),d&&p&&(l=r?.updateFormulaByOffset({value:l,rowDelta:1}))}),this.setEditMap(a),this.batch){this.cleanupEditors(),ar(s),this.ensureBatchStarted();return}this.committing=!0;try{this.stopEditing(void 0,{source:"bulk"})}finally{this.committing=!1,c&&this.eventSvc.dispatchEvent({type:"bulkEditingStopped",changes:this.toEventChangeList(a)})}});const u=Be(s,{rowNode:e,column:t});u&&u.focusCell(!0)}createCellStyleFeature(e){return new gM(e,this.beans)}createRowStyleFeature(e){return new fM(e,this.beans)}setEditingCells(e,t){const{beans:i}=this,{colModel:s,valueSvc:o}=i,n=new Map;for(let{colId:r,column:a,colKey:l,rowIndex:c,rowPinned:d,newValue:u,state:h}of e){const p=r?s.getCol(r):l?s.getCol(l):a;if(!p)continue;const m=Bi(i,{rowIndex:c,rowPinned:d});if(!m)continue;const v=o.getValue(p,m,"data",!0);if(!t?.forceRefreshOfEditCellsOnly&&!wi({pendingValue:u,sourceValue:v})&&h!=="editing")continue;let C=n.get(m);C||(C=new Map,n.set(m,C)),u===void 0&&(u=Ct),C.set(p,{editorValue:void 0,pendingValue:u,sourceValue:v,state:h??"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}this.setEditMap(n,t)}onCellFocused(e){const t=Be(this.beans,e);if(!t||!this.isEditing(t,_s))return;const i=this.model.getEdit(t);if(!i||!wi(i))return;const o=this.getLocaleTextFunc()("ariaPendingChange","Pending Change");this.beans.ariaAnnounce?.announceValue(o,"pendingChange")}allowedFocusTargetOnValidation(e){return Be(this.beans,e)}};function EM(e){return{rowNodes:e?Array.from(e.keys()):void 0,columns:e?[...new Set(Array.from(e.values()).flatMap(t=>Array.from(t.keys())))]:void 0}}function jf(e,t){return t??e.get("editType")??"singleCell"}var Yw=class extends B{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 i=e.previousParams,{editSvc:s,beans:o}=this,n=e.type==="cellFocused"?e.sourceEvent:null;i&&(t=Be(o,i));const{gos:r,editModelSvc:a}=o,l=e.type==="cellFocusCleared";if(s.isEditing(void 0,{withOpenEditor:!0})){const{column:c,rowIndex:d,rowPinned:u}=e,h={column:c,rowNode:Bi(o,{rowIndex:d,rowPinned:u})},p=r.get("invalidEditValueMode")==="block";if(p)return;const m=!p,v=!!a?.getCellValidationModel().hasCellValidation(h),C=m&&v;!(i||l)||s.stopEditing(void 0,{cancel:C,source:l&&m?"api":void 0,event:n})||(s.isBatchEditing()?s.cleanupEditors():s.stopEditing(void 0,{source:"api"}))}t?.refreshCell({suppressFlash:!0,force:!0})}stopCancelled(e){const t=this.editSvc.isBatchEditing()&&!e;for(const i of this.model.getEditPositions())Or(this.beans,i,{cancel:!0},Be(this.beans,i)),this.model.stop(i,t,!0);return!0}stopCommitted(e,t){const i=this.model.getEditPositions(),s={all:[],pass:[],fail:[]};for(const r of i)s.all.push(r),(this.model.getCellValidationModel().getCellValidation(r)?.errorMessages?.length??0)>0?s.fail.push(r):s.pass.push(r);const o=this.processValidationResults(s),n=this.editSvc.isBatchEditing()&&!t;for(const r of o.destroy)Or(this.beans,r,{event:e},Be(this.beans,r)),this.model.stop(r,n,!1);for(const r of o.keep){const a=Be(this.beans,r);!this.editSvc.cellEditingInvalidCommitBlocks()&&a&&this.editSvc.revertSingleCellEdit(a)}return!0}cleanupEditors({rowNode:e}={},t){ws(this.beans,{persist:!1});const i=this.model.getEditPositions(),s=[];if(e)for(const o of i)o.rowNode!==e&&s.push(o);else for(const o of i)s.push(o);ms(this.beans,s),ar(this.beans,t)}setFocusOutOnEditor(e){e.comp?.getCellEditor()?.focusOut?.()}setFocusInOnEditor(e){const t=e.comp,i=t?.getCellEditor();if(i?.focusIn)i.focusIn();else{const s=this.beans.gos.get("editType")==="fullRow";e.focusCell(s),e.onEditorAttachedFuncs.push(()=>t?.getCellEditor()?.focusIn?.())}}setupEditors(e){const{event:t,ignoreEventKey:i=!1,startedEdit:s,position:o,cells:n=this.model.getEditPositions()}=e,r=t instanceof KeyboardEvent&&!i&&t.key||void 0;Q4(this.beans,n,o,r,t,s)}dispatchCellEvent(e,t,i,s){const o=Be(this.beans,e);o&&this.eventSvc.dispatchEvent({...o.createEvent(t??null,i),...s})}dispatchRowEvent(e,t,i){if(i)return;const s=Ol(this.beans,e);s&&this.eventSvc.dispatchEvent(s.createRowEvent(t))}shouldStop(e,t,i="ui"){const s=this.editSvc.isBatchEditing();return s&&i==="api"?!0:s&&(i==="ui"||i==="edit")?!1:i==="api"?!0:t instanceof KeyboardEvent&&!s?t.key===A.ENTER:null}shouldCancel(e,t,i="ui"){const s=this.editSvc.isBatchEditing();return!!(t instanceof KeyboardEvent&&!s&&t.key===A.ESCAPE||s&&i==="api"||i==="api")}setEditMap(e,t){t?.update||this.editSvc.stopEditing(void 0,{cancel:!0,source:"api"});const i=[];if(e.forEach((s,o)=>{s.forEach((n,r)=>{n.state==="editing"&&i.push({...n,rowNode:o,column:r})})}),t?.update&&(e=new Map([...this.model.getEditMap(),...e])),this.model?.setEditMap(e),i.length>0){const s=i.at(-1),o=s.pendingValue===Ct?void 0:s.pendingValue;this.start({position:s,event:new KeyboardEvent("keydown",{key:o}),source:"api"});const n=Be(this.beans,s);n&&this.setFocusInOnEditor(n)}}destroy(){this.cleanupEditors(),super.destroy()}},DM=class extends Yw{constructor(){super(...arguments),this.beanName="fullRow",this.startedRows=new Set}shouldStop(e,t,i="ui"){const{rowNode:s,beans:o}=this,{rowNode:n}=e||{};if(!Ol(o,{rowNode:s}))return!0;const a=super.shouldStop({rowNode:s},t,i);return a!==null?a:s?n!==s:!1}midBatchInputsAllowed({rowNode:e}){return e?this.model.hasEdits({rowNode:e}):!1}clearEdits(e){this.model.clearEditValue(e)}start(e){const{position:t,silent:i,startedEdit:s,event:o,ignoreEventKey:n}=e,{rowNode:r}=t,{beans:a,model:l,startedRows:c}=this;this.rowNode!==r&&super.cleanupEditors(t);const d=a.visibleCols.allCols,u=[],h=[];for(const p of d)p.isCellEditable(r)&&h.push(p);if(h.length!=0){c.has(r)||(this.dispatchRowEvent({rowNode:r},"rowEditingStarted",i),c.add(r));for(const p of h){const m={rowNode:r,column:p};u.push(m),l.start(m)}this.rowNode=r,this.setupEditors({cells:u,position:t,startedEdit:s,event:o,ignoreEventKey:n})}}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stopCancelled(e){const{rowNode:t,model:i}=this;return t&&!i.hasRowEdits(t)?!1:(super.stopCancelled(e),this.cleanupEditors({rowNode:t},!0),this.rowNode=void 0,!0)}stopCommitted(e,t){const{rowNode:i,beans:s,model:o,editSvc:n}=this;if(i&&!o.hasRowEdits(i))return!1;const r=[];if(o.getEditMap().forEach((a,l)=>{if(!(!a||a.size===0)){for(const c of a.values())if(wi(c)){r.push(l);break}}}),Ss(s),n.checkNavWithValidation({rowNode:i})==="block-stop")return!1;if(super.stopCommitted(e,t),t||!n.isBatchEditing())for(const a of r)this.dispatchRowEvent({rowNode:a},"rowValueChanged");return this.cleanupEditors({rowNode:i},!0),this.rowNode=void 0,!0}onCellFocusChanged(e){const{rowIndex:t}=e,i=e.previousParams;if(i?.rowIndex===t||e.sourceEvent instanceof KeyboardEvent)return;const{beans:s,gos:o,model:n}=this;if(s.editSvc?.isRangeSelectionEnabledWhileEditing())return;const r=Be(s,i);o.get("invalidEditValueMode")==="block"&&r&&(n.getCellValidationModel().getCellValidation(r)||n.getRowValidationModel().getRowValidation(r))||super.onCellFocusChanged(e)}cleanupEditors(e={},t){super.cleanupEditors(e,t);const{startedRows:i}=this;for(const s of i)this.dispatchRowEvent({rowNode:s},"rowEditingStopped"),this.destroyEditorsForRow(s);i.clear()}destroyEditorsForRow(e){const t=Ol(this.beans,{rowNode:e});if(!t)return;const i={};for(const s of t.getAllCellCtrls())s.comp?.getCellEditor()&&Or(this.beans,s,i,s)}moveToNextEditingCell(e,t,i,s="ui",o=!1){const{beans:n,model:r,gos:a,editSvc:l}=this,c=e.cellPosition;let d;r.suspend(!0);try{d=n.navigation?.findNextCellToFocusOn(c,{backwards:t,startEditing:!0,skipToNextEditableCell:!1})}finally{r.suspend(!1)}if(d===!1)return null;if(d==null)return!1;const u=d.cellPosition,h=e.isCellEditable(),p=d.isCellEditable(),m=u&&c.rowIndex===u.rowIndex&&c.rowPinned===u.rowPinned;h&&this.setFocusOutOnEditor(e),this.restoreEditors();const v=a.get("suppressStartEditOnTab");return p&&!o?v?d.focusCell(!0,i):(d.comp?.getCellEditor()||Co(n,d,{event:i,cellStartedEdit:!0}),this.setFocusInOnEditor(d),d.focusCell(!1,i)):(p&&o&&this.setFocusInOnEditor(d),d.focusCell(!0,i)),!m&&!o&&(l?.stopEditing({rowNode:e.rowNode},{event:i,forceStop:!0}),l?.isRowEditing(e.rowNode,{withOpenEditor:!0})&&this.cleanupEditors(d,!0),v?d.focusCell(!0,i):l.startEditing(d,{startedEdit:!0,event:i,source:s,ignoreEventKey:!0,editable:p||void 0})),e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}restoreEditors(){const{beans:e,model:t}=this;t.getEditMap().forEach((i,s)=>i.forEach(({state:o},n)=>{if(o!=="editing")return;const r=Be(e,{rowNode:s,column:n});r&&!r.comp?.getCellEditor()&&Co(e,r,{silent:!0})}))}destroy(){super.destroy(),this.rowNode=void 0,this.startedRows.clear()}},PM=class extends Yw{constructor(){super(...arguments),this.beanName="singleCell"}shouldStop(e,t,i="ui"){const s=super.shouldStop(e,t,i);if(s!==null)return s;const o=e?.rowNode,n=e?.column,r=this.rowNode,a=this.column;return(!r||!a)&&o&&n?null:r!==o||a!==n?!0:!r&&!a?this.model.hasEdits(void 0,{withOpenEditor:!0}):!1}midBatchInputsAllowed(e){return this.model.hasEdits(e)}start(e){const{position:t,startedEdit:i,event:s,ignoreEventKey:o}=e;(this.rowNode!==t.rowNode||this.column!==t.column)&&super.cleanupEditors(),this.rowNode=t.rowNode,this.column=t.column,this.model.start(t),this.setupEditors({cells:[t],position:t,startedEdit:i,event:s,ignoreEventKey:o})}dispatchRowEvent(e,t,i){}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stopCancelled(e){return super.stopCancelled(e),this.clearPosition()}stopCommitted(e,t){return super.stopCommitted(e,t),this.clearPosition()}clearPosition(){return this.rowNode=void 0,this.column=void 0,!0}onCellFocusChanged(e){const{colModel:t,editSvc:i}=this.beans,{rowIndex:s,column:o,rowPinned:n}=e,r=Bi(this.beans,{rowIndex:s,rowPinned:n}),a=Ou(o),l=t.getCol(a),c=e.previousParams;if(c){const d=Ou(c.column);if(c?.rowIndex===s&&d===a&&c?.rowPinned===n)return}e.type=="cellFocused"&&(i?.isRangeSelectionEnabledWhileEditing()||i?.isEditing({rowNode:r,column:l},{withOpenEditor:!0}))||super.onCellFocusChanged(e)}moveToNextEditingCell(e,t,i,s="ui",o=!1){const n=this.beans.focusSvc.getFocusedCell();n&&(e=Jo(this.beans,n)??e);const r=e.cellPosition;let a;const l=this.beans.gos.get("editType")==="fullRow";l&&this.model.suspend(!0),o||(e.eGui.focus(),this.editSvc?.stopEditing(e,{source:this.editSvc?.isBatchEditing()?"ui":"api",event:i}));try{a=this.beans.navigation?.findNextCellToFocusOn(r,{backwards:t,startEditing:!0})}finally{l&&this.model.suspend(!1)}if(a===!1)return null;if(a==null)return!1;const c=a.cellPosition,d=e.isCellEditable(),u=a.isCellEditable(),h=c&&r.rowIndex===c.rowIndex&&r.rowPinned===c.rowPinned;d&&!o&&this.setFocusOutOnEditor(e);const p=this.gos.get("suppressStartEditOnTab");let m=!1;if(!h&&!o&&(super.cleanupEditors(a,!0),p?a.focusCell(!0,i):(m=!0,this.editSvc.startEditing(a,{startedEdit:!0,event:i,source:s,ignoreEventKey:!0,editable:u}))),u&&!o){if(a.focusCell(!1,i),p)a.focusCell(!0,i);else if(!a.comp?.getCellEditor()){if(!m){const v=this.editSvc?.isEditing(a,{withOpenEditor:!0});Co(this.beans,a,{event:i,cellStartedEdit:!0,silent:v})}this.setFocusInOnEditor(a),this.cleanupEditors(a)}}else u&&o&&this.setFocusInOnEditor(a),a.focusCell(!0,i);return e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}destroy(){super.destroy(),this.rowNode=void 0,this.column=void 0}},Ns={moduleName:"EditCore",version:Q,beans:[Y4,FM],apiFunctions:{getEditingCells:iM,getEditRowValues:tM,getCellEditorInstances:X4,startEditingCell:nM,stopEditing:sM,isEditing:oM,validateEdit:rM},dynamicBeans:{singleCell:PM,fullRow:DM},dependsOn:[uc,Ww],css:[xI]},TM={moduleName:"UndoRedoEdit",version:Q,beans:[bI],apiFunctions:{undoCellEditing:JI,redoCellEditing:eM,getCurrentUndoSize:aM,getCurrentRedoSize:lM},dependsOn:[Ns]},kM={moduleName:"TextEditor",version:Q,userComponents:{agCellEditor:Wf,agTextCellEditor:Wf},dependsOn:[Ns]},IM={moduleName:"NumberEditor",version:Q,userComponents:{agNumberCellEditor:{classImp:BI}},dependsOn:[Ns]},MM={moduleName:"DateEditor",version:Q,userComponents:{agDateCellEditor:DI,agDateStringCellEditor:kI},dependsOn:[Ns]},AM={moduleName:"CheckboxEditor",version:Q,userComponents:{agCheckboxCellEditor:SI},dependsOn:[Ns]},LM={moduleName:"SelectEditor",version:Q,userComponents:{agSelectCellEditor:ZI},dependsOn:[Ns]},OM={moduleName:"LargeTextEditor",version:Q,userComponents:{agLargeTextCellEditor:LI},dependsOn:[Ns]},NM={moduleName:"CustomEditor",version:Q,dependsOn:[Ns]},Zw={agSetColumnFilter:"agSetColumnFilterHandler",agMultiColumnFilter:"agMultiColumnFilterHandler",agGroupColumnFilter:"agGroupColumnFilterHandler",agNumberColumnFilter:"agNumberColumnFilterHandler",agBigIntColumnFilter:"agBigIntColumnFilterHandler",agDateColumnFilter:"agDateColumnFilterHandler",agTextColumnFilter:"agTextColumnFilterHandler"},HM=new Set(Object.values(Zw));function gs(e,t){const i=e.filterUi;if(!i)return null;if(i.created)return i.promise;if(t)return null;const s=i.create(i.refreshed),o=i;return o.created=!0,o.promise=s,s}function BM(e,t,i,s,o,n,r){return t.refresh?.({...i,model:s,source:n,additionalEventAttributes:r}),e().then(a=>{if(a){const{filter:l,filterParams:c}=a;Xw(l,c,s,o,n,r)}})}function Xw(e,t,i,s,o,n){e?.refresh?.({...t,model:i,state:s,source:o,additionalEventAttributes:n})}function Qw(e,t,i,s){const o=e();o?.created&&o.promise.then(n=>{const r=t();Xw(n,o.filterParams,r,i()??{model:r},"ui",s)})}function _f(e){let t,i=!1,s;const{action:o,filterParams:n,getFilterUi:r,getModel:a,getState:l,updateState:c,updateModel:d,processModelToApply:u}=e;switch(o){case"apply":{const h=l();s=h?.model??null,u&&(s=u(s)),t={state:h?.state,model:s},i=!0;break}case"clear":{t={model:null},n?.buttons?.includes("apply")||(i=!0,s=null);break}case"reset":{t={model:null},i=!0,s=null;break}case"cancel":{t={model:a()};break}}c(t),i?d(s):Qw(r,a,l,{fromAction:o})}function vt(e,t){return e[t]??null}var GM=class extends jh{constructor(){super(...arguments),this.iconCreated=!1}wireComp(e,t,i,s,o){this.comp=e;const n=Ur(this,this.beans.context,o);this.eButtonShowMainFilter=i,this.eFloatingFilterBody=s,this.setGui(t,n),this.setupActive(),this.refreshHeaderStyles(),this.setupWidth(n),this.setupLeft(n),this.setupHover(n),this.setupFocus(n),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(n),this.setupUi(),n.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(n);const r=()=>this.onColDefChanged(n);n.addManagedListeners(this.column,{colDefChanged:r}),n.addManagedEventListeners({filterSwitched:({column:a})=>{a===this.column&&r()}}),n.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}getHeaderClassParams(){const{column:e,beans:t}=this,i=e.colDef;return xe(t.gos,{colDef:i,column:e,floatingFilter:!0})}setupActive(){const e=this.column.getColDef(),t=!!e.filter,i=!!e.floatingFilter;this.active=t&&i}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=Wt("filter",this.beans,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(e){e.createManagedBean(new jr(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();Cn(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(e){const{beans:t}=this;if(Je(t)===this.eGui)return;const o=Eo(t,this.eGui,null,e.shiftKey);if(o){t.headerNavigation?.scrollToColumn(this.column),e.preventDefault(),o.focus();return}const n=this.findNextColumnWithFloatingFilter(e.shiftKey);n&&t.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:n},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){const t=this.beans.visibleCols;let i=this.column;do if(i=e?t.getColBefore(i):t.getColAfter(i),!i)break;while(!i.getColDef().filter||!i.getColDef().floatingFilter);return i}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();switch(e.key){case A.UP:case A.DOWN:case A.LEFT:case A.RIGHT:if(t)return;fo(e);case A.ENTER:t&&go(this.eGui)&&e.preventDefault();break;case A.ESCAPE:t||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;const i=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),s=!!e.relatedTarget&&Js(e.relatedTarget,"ag-floating-filter");if(i&&s&&e.target===this.eGui){const o=this.lastFocusEvent,n=!!(o&&o.key===A.TAB);if(o&&n){const r=o.shiftKey;go(this.eGui,r)}}this.focusThis()}setupHover(e){this.beans.colHover?.addHeaderFilterColumnHoverListener(e,this.comp,this.column,this.eGui)}setupLeft(e){const t=new Wh(this.column,this.eGui,this.beans);e.createManagedBean(t)}setupFilterButton(){this.suppressFilterButton=!this.beans.menuSvc?.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!zt(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:i,gos:s}=this,o=n=>{if(n?.source==="filterDestroyed"&&(!this.isAlive()||!t?.isAlive()))return;const r=this.comp.getFloatingFilterComp();r&&r.then(a=>{if(a){if(s.get("enableFilterHandlers")){const d=n;let u="filter";d?.afterFloatingFilter?u="ui":d?.afterDataChange?u="dataChanged":n?.source==="api"&&(u="api"),this.updateFloatingFilterParams(this.userCompDetails,u);return}const l=t?.getCurrentFloatingFilterParentModel(i),c=n?{...n,columns:n.columns??[],source:n.source==="api"?"api":"columnFilter"}:null;a.onParentModelChanged(l,c)}})};[this.destroySyncListener]=e.addManagedListeners(i,{filterChanged:o}),t?.isFilterActive(i)&&o(null)}setupWidth(e){const t=()=>{const i=`${this.column.getActualWidth()}px`;this.comp.setWidth(i)};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 i=!t&&this.active;t&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());const s=this.beans.colFilter,o=this.active?s?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,n=this.comp.getFloatingFilterComp();!n||!o?this.updateCompDetails(e,o,i):n.then(r=>{!r||s?.areFilterCompsDifferent(this.userCompDetails??null,o)?this.updateCompDetails(e,o,i):this.updateFloatingFilterParams(o,"colDef")})}updateCompDetails(e,t,i){this.isAlive()&&(this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),i&&(this.setupSyncWithFilter(e),this.setupFilterChangedListener(e)))}updateFloatingFilterParams(e,t){if(!e)return;let i=e.params;this.comp.getFloatingFilterComp()?.then(s=>{typeof s?.refresh=="function"&&(this.gos.get("enableFilterHandlers")&&(i={...i,model:vt(this.beans.colFilter?.model??{},this.column.getColId()),source:t}),s.refresh(i))})}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}};function VM(e,t){const i=e.colModel.getCol(t);if(!i){We(12,{colKey:t});return}e.menuSvc?.showColumnMenu({column:i,positionBy:"auto"})}function zM(e){e.menuSvc?.hidePopupMenu()}var WM=class extends B{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($f(this.beans),e,e.containerType,!0)}showHeaderContextMenu(e,t,i){this.activeMenuFactory?.showMenuAfterContextMenuEvent(e,t,i)}hidePopupMenu(){this.beans.contextMenuSvc?.hideActiveMenu(),this.activeMenuFactory?.hideActiveMenu()}hideFilterMenu(){$f(this.beans)?.hideActiveMenu()}isColumnMenuInHeaderEnabled(e){const{suppressHeaderMenuButton:t}=e.getColDef();return!t&&!!this.activeMenuFactory?.isMenuEnabled(e)&&(zt(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){return!e.getColDef().suppressHeaderFilterButton&&!!this.beans.filterManager?.isFilterAllowed(e)}isHeaderContextMenuEnabled(e){return!(e&&Es(e)?e.getColDef():e?.getColGroupDef())?.suppressHeaderContextMenu&&this.gos.get("columnMenu")==="new"}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){const e=!this.isSuppressMenuHide();return!(so()&&e)}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!zt(this.gos)&&!this.isFloatingFilterButtonDisplayed(e)}isFilterMenuItemEnabled(e){return!!this.beans.filterManager?.isFilterAllowed(e)&&!zt(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 zt(e)?e.exists("suppressMenuHide")?t:!1:t}showColumnMenuCommon(e,t,i,s){const{positionBy:o,onClosedCallback:n}=t,r=t.column;if(o==="button"){const{buttonElement:a}=t;e?.showMenuAfterButtonClick(r,a,i,n,s)}else if(o==="mouse"){const{mouseEvent:a}=t;e?.showMenuAfterMouseEvent(r,a,i,n,s)}else if(r){const a=this.beans,l=a.ctrlsSvc;l.getScrollFeature().ensureColumnVisible(r,"auto"),os(a,()=>{const c=l.getHeaderRowContainerCtrl(r.getPinned())?.getHeaderCtrlForColumn(r);c&&e?.showMenuAfterButtonClick(r,c.getAnchorElementForMenu(s),i,n,s)})}}};function Uf(e,t,i){e.menuVisible!==t&&(e.menuVisible=t,e.dispatchColEvent("menuVisibleChanged",i))}function $f(e){const{enterpriseMenuFactory:t,filterMenuFactory:i,gos:s}=e;return t&&zt(s)?t:i}var jM={moduleName:"SharedMenu",version:Q,beans:[WM],apiFunctions:{showColumnMenu:VM,hidePopupMenu:zM}},_M=".ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}:where(.ag-rtl) .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;:where(.ag-set-filter-group-closed-icon),:where(.ag-set-filter-group-indeterminate-icon),:where(.ag-set-filter-group-opened-icon){cursor:pointer}}:where(.ag-ltr) .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-body-wrapper{display:flex;flex-direction:column}:where(.ag-menu:not(.ag-tabs) .ag-filter) .ag-filter-body-wrapper{min-width:180px}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>:where(.ag-date-floating-filter-wrapper),>:where(.ag-floating-filter-input),>:where(.ag-input-field){flex:1 1 auto}:where(.ag-input-field-input[type=date]),:where(.ag-input-field-input[type=datetime-local]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-date-floating-filter-wrapper{display:flex}.ag-set-floating-filter-input :where(.ag-input-field-input)[disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{align-items:unset;background-color:var(--ag-chrome-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;:where(.ag-menu) &{background-color:var(--ag-menu-background-color)}}.ag-filter-separator{border-top:solid var(--ag-border-width) var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-filter-menu) .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:var(--ag-widget-container-vertical-padding);:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}";function UM(e){const t=e.filterManager;return!!t?.isColumnFilterPresent()||!!t?.isAggregateFilterPresent()}function $M(e,t){return e.filterManager?.getColumnFilterInstance(t)??Promise.resolve(void 0)}function qM(e,t){const i=e.colModel.getColDefCol(t);if(i)return e.colFilter?.destroyFilter(i,"api")}function KM(e,t){e.frameworkOverrides.wrapIncoming(()=>e.filterManager?.setFilterModel(t))}function YM(e){return e.filterManager?.getFilterModel()??{}}function ZM(e,t,i){const{gos:s,colModel:o,colFilter:n}=e;i&&!s.get("enableFilterHandlers")&&($(288),i=!1);const r=o.getColDefCol(t);return r?n?.getModelForColumn(r,i)??null:null}function XM(e,t,i){return e.filterManager?.setColumnFilterModel(t,i)??Promise.resolve()}function QM(e,t){const i=e.colModel.getCol(t);if(!i){We(12,{colKey:t});return}e.menuSvc?.showFilterMenu({column:i,containerType:"columnFilter",positionBy:"auto"})}function JM(e){e.menuSvc?.hideFilterMenu()}function e8(e,t){const i=e.colModel.getCol(t);if(!i){We(12,{colKey:t});return}return e.colFilter?.getHandler(i,!0)}function t8(e,t){const{colModel:i,colFilter:s,gos:o}=e;if(!o.get("enableFilterHandlers")){$(287);return}const{colId:n,action:r}=t;if(n){const a=i.getColById(n);a&&s?.updateModel(a,r)}else s?.updateAllModels(r)}var qf={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},Kf=["january","february","march","april","may","june","july","august","september","october","november","december"];function i8(e,t){return e==null?-1:t==null?1:Number.parseFloat(e)-Number.parseFloat(t)}function s8(e,t){if(e==null)return-1;if(t==null)return 1;const i=Ut(e),s=Ut(t);return i!=null&&s!=null?i===s?0:i>s?1:-1:String(e).localeCompare(String(t))}function Yf(e){return e instanceof Date&&!isNaN(e.getTime())}var ju={number:()=>{},bigint:()=>{},boolean:()=>({maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:(e,t)=>t,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(e,t)=>t===!1,numberOfInputs:0}]}),date:()=>({isValidDate:Yf}),dateString:({dataTypeDefinition:e})=>({comparator:(t,i)=>{const s=e.dateParser(i);return i==null||s<t?-1:s>t?1:0},isValidDate:t=>typeof t=="string"&&Yf(e.dateParser(t))}),dateTime:e=>ju.date(e),dateTimeString:e=>ju.dateString(e),object:()=>{},text:()=>{}},_u={number:()=>({comparator:i8}),bigint:()=>({comparator:s8}),boolean:({t:e})=>({valueFormatter:t=>te(t.value)?e(String(t.value),t.value?"True":"False"):e("blanks","(Blanks)")}),date:({formatValue:e,t})=>({valueFormatter:i=>{const s=e(i);return te(s)?s:t("blanks","(Blanks)")},treeList:!0,treeListFormatter:(i,s)=>{if(i==="NaN")return t("invalidDate","Invalid Date");if(s===1&&i!=null){const o=Kf[Number(i)-1];return t(o,qf[o])}return i??t("blanks","(Blanks)")},treeListPathGetter:i=>Va(i,!1)}),dateString:({formatValue:e,dataTypeDefinition:t,t:i})=>({valueFormatter:s=>{const o=e(s);return te(o)?o:i("blanks","(Blanks)")},treeList:!0,treeListPathGetter:s=>Va(t.dateParser(s??void 0),!1),treeListFormatter:(s,o)=>{if(o===1&&s!=null){const n=Kf[Number(s)-1];return i(n,qf[n])}return s??i("blanks","(Blanks)")}}),dateTime:e=>{const t=_u.date(e);return t.treeListPathGetter=Va,t},dateTimeString(e){const t=e.dataTypeDefinition.dateParser,i=_u.dateString(e);return i.treeListPathGetter=s=>Va(t(s??void 0)),i},object:({formatValue:e,t})=>({valueFormatter:i=>{const s=e(i);return te(s)?s:t("blanks","(Blanks)")}}),text:()=>{}};function o8(e,t,i,s,o,n,r){let a=t,l=i;const c=e==="agSetColumnFilter";!l&&s.baseDataType==="object"&&!c&&(l=({column:p,node:m})=>o({column:p,node:m,value:n.valueSvc.getValue(p,m,"data")}));const u=(c?_u:ju)[s.baseDataType],h=u({dataTypeDefinition:s,formatValue:o,t:r});return a=typeof t=="object"?{...h,...t}:h,{filterParams:a,filterValueGetter:l}}var n8={boolean:"agTextColumnFilter",date:"agDateColumnFilter",dateString:"agDateColumnFilter",dateTime:"agDateColumnFilter",dateTimeString:"agDateColumnFilter",bigint:"agBigIntColumnFilter",number:"agNumberColumnFilter",object:"agTextColumnFilter",text:"agTextColumnFilter"},r8={boolean:"agTextColumnFloatingFilter",date:"agDateColumnFloatingFilter",dateString:"agDateColumnFloatingFilter",dateTime:"agDateColumnFloatingFilter",dateTimeString:"agDateColumnFloatingFilter",bigint:"agBigIntColumnFloatingFilter",number:"agNumberColumnFloatingFilter",object:"agTextColumnFloatingFilter",text:"agTextColumnFloatingFilter"};function a8(e,t=!1){return(t?r8:n8)[e??"text"]}function l8(e,t,i){if(t==null)return null;let s=null;const{compName:o,jsComp:n,fwComp:r}=sC(e,t);return o?s={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agBigIntColumnFilter:"agBigIntColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[o]:n==null&&r==null&&t.filter===!0&&(s=i()),s}var c8={filterHandler:()=>({doesFilterPass:()=>!0})};function Zf(e,t,i,s){if(!e.isPrimary())return!0;const n=!i;return!e.isValueActive()||!n?!1:t?!0:s}var d8=class extends B{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={...Zw},this.isGlobalButtons=!1,this.activeFilterComps=new Set}postConstruct(){this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.addManagedPropertyListener("pivotMode",this.onPivotModeChanged.bind(this));const e=this.gos,t={...e.get("initialState")?.filter?.filterModel??{}};this.initialModel=t,this.model={...t},e.get("enableFilterHandlers")||delete this.handlerMap.agMultiColumnFilter}refreshModel(){this.onNewRowsLoaded("rowDataUpdated")}setModel(e,t="api",i){const{colModel:s,dataTypeSvc:o,filterManager:n}=this.beans;if(o?.isPendingInference){this.modelUpdates.push({model:e,source:t});return}const r=[],a=this.getModel(!0);if(e){const l=new Set(Object.keys(e));this.allColumnFilters.forEach((c,d)=>{const u=e[d];r.push(this.setModelOnFilterWrapper(c,u)),l.delete(d)}),l.forEach(c=>{const d=s.getColDefCol(c)||s.getCol(c);if(!d){$(62,{colId:c});return}if(!d.isFilterAllowed()){$(63,{colId:c});return}const u=this.getOrCreateFilterWrapper(d,!0);if(!u){$(64,{colId:c});return}r.push(this.setModelOnFilterWrapper(u,e[c],!0))})}else this.model={},this.allColumnFilters.forEach(l=>{r.push(this.setModelOnFilterWrapper(l,null))});Ne.all(r).then(()=>{const l=this.getModel(!0),c=[];this.allColumnFilters.forEach((d,u)=>{const h=a?a[u]:null,p=l?l[u]:null;Fr(h,p)||c.push(d.column)}),c.length>0?n?.onFilterChanged({columns:c,source:t}):i&&this.updateActive("filterChanged")})}getModel(e){const t={},{allColumnFilters:i,initialModel:s,beans:{colModel:o}}=this;if(i.forEach((n,r)=>{const a=this.getModelFromFilterWrapper(n);te(a)&&(t[r]=a)}),!e)for(const n of Object.keys(s)){const r=s[n];te(r)&&!i.has(n)&&o.getCol(n)?.isFilterAllowed()&&(t[n]=r)}return t}setState(e,t,i="api"){if(this.state.clear(),t)for(const s of Object.keys(t)){const o=t[s];this.state.set(s,{model:vt(this.model,s),state:o})}this.setModel(e,i,!0)}getState(){const e=this.state;if(!e.size)return;const t={};let i=!1;return e.forEach((s,o)=>{const n=s.state;n!=null&&(i=!0,t[o]=n)}),i?t:void 0}getModelFromFilterWrapper(e){const i=e.column.getColId();if(e.isHandler)return vt(this.model,i);const s=e.filter;return s?typeof s.getModel!="function"?($(66),null):s.getModel():vt(this.initialModel,i)}isFilterPresent(){return this.activeColumnFilters.length>0}isAggFilterPresent(){return!!this.activeAggregateFilters.length}disableFilters(){this.initialModel={};const{allColumnFilters:e}=this;return e.size?(e.forEach(t=>this.disposeFilterWrapper(t,"advancedFilterEnabled")),!0):!1}updateActiveFilters(){const e=l=>l?l.isFilterActive?l.isFilterActive():($(67),!1):!1,{colModel:t,gos:i}=this.beans,s=!!bl(i),o=[],n=[],r=(l,c,d)=>{c&&(Zf(l,t.isPivotMode(),t.isPivotActive(),s)?o.push(d):n.push(d))},a=[];return this.allColumnFilters.forEach(l=>{const c=l.column,d=c.getColId();if(l.isHandler)a.push(Ne.resolve().then(()=>{r(c,this.isHandlerActive(c),{colId:d,isHandler:!0,handler:l.handler,handlerParams:l.handlerParams})}));else{const u=gs(l);u&&a.push(u.then(h=>{r(c,e(h),{colId:d,isHandler:!1,comp:h})}))}}),Ne.all(a).then(()=>{this.activeAggregateFilters=o,this.activeColumnFilters=n})}updateFilterFlagInColumns(e,t){const i=[];return this.allColumnFilters.forEach(s=>{const o=s.column;if(s.isHandler)i.push(Ne.resolve().then(()=>{this.setColFilterActive(o,this.isHandlerActive(o),e,t)}));else{const n=gs(s);n&&i.push(n.then(r=>{this.setColFilterActive(o,r.isFilterActive(),e,t)}))}}),this.beans.groupFilter?.updateFilterFlags(e,t),Ne.all(i)}doFiltersPass(e,t,i){const{data:s,aggData:o}=e,n=i?this.activeAggregateFilters:this.activeColumnFilters,r=i?o:s,a=this.model;for(let l=0;l<n.length;l++){const c=n[l],{colId:d,isHandler:u}=c;if(d!==t)if(u){const{handler:h,handlerParams:p}=c;if(!h.doesFilterPass({node:e,data:r,model:vt(a,d),handlerParams:p}))return!1}else{const h=c.comp;if(typeof h.doesFilterPass!="function"){We(91);continue}if(!h.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:i}=this.beans,s=()=>{this.isAlive()&&i?.onFilterChanged(e)};t.isRefreshInProgress()?setTimeout(s,0):s()}updateBeforeFilterChanged(e={}){const{column:t,additionalEventAttributes:i}=e,s=t?.getColId();return this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",i).then(()=>{this.allColumnFilters.forEach(o=>{const{column:n,isHandler:r}=o;s!==n.getColId()&&(r&&o.handler.onAnyFilterChanged?.(),gs(o,r)?.then(a=>{typeof a?.onAnyFilterChanged=="function"&&a.onAnyFilterChanged()}))}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){return!(this.gos.get("allowShowChangeAfterFilter")??!1)&&this.processingFilterChange}onNewRowsLoaded(e){const t=[];this.allColumnFilters.forEach(i=>{const s=i.isHandler;s&&i.handler.onNewRowsLoaded?.();const o=gs(i,s);o&&t.push(o.then(n=>{n.onNewRowsLoaded?.()}))}),Ne.all(t).then(()=>this.updateActive(e,{afterDataChange:!0}))}updateActive(e,t){this.updateFilterFlagInColumns(e,t).then(()=>this.updateActiveFilters())}createGetValue(e,t){const{filterValueSvc:i,colModel:s}=this.beans;return(o,n)=>{const r=n?s.getCol(n):e;return r?i.getValue(r,o,t):void 0}}isFilterActive(e){const t=this.cachedFilter(e);if(t?.isHandler)return this.isHandlerActive(e);const i=t?.filter;return i?i.isFilterActive():vt(this.initialModel,e.getColId())!=null}isHandlerActive(e){const t=te(vt(this.model,e.getColId()));if(t)return t;const i=this.beans.groupFilter;return i?.isGroupFilter(e)?i.isFilterActive(e):!1}getOrCreateFilterUi(e){const t=this.getOrCreateFilterWrapper(e,!0);return t?gs(t):null}getFilterUiForDisplay(e){const t=this.getOrCreateFilterWrapper(e,!0);if(!t)return null;const i=gs(t);return i?i.then(s=>({comp:s,params:t.filterUi.filterParams,isHandler:t.isHandler})):null}getHandler(e,t){const i=this.getOrCreateFilterWrapper(e,t);return i?.isHandler?i.handler:void 0}getOrCreateFilterWrapper(e,t){if(!e.isFilterAllowed())return;let i=this.cachedFilter(e);return!i&&t&&(i=this.createFilterWrapper(e),this.setColumnFilterWrapper(e,i)),i}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 q2(this.gos)?t?"agSetColumnFloatingFilter":"agSetColumnFilter":a8(e(),t)}getDefaultFloatingFilter(e){return this.getDefaultFilter(e,!0)}createFilterComp(e,t,i,s,o,n){const r=()=>{const c=this.createFilterCompParams(e,o,n),d=s(c,o);return e3(this.beans.userCompFactory,t,d,i)},a=r();return a?{compDetails:a,createFilterUi:c=>(c?r():a).newAgStackInstance()}:null}createFilterInstance(e,t,i,s){const o=this.beans.selectableFilter;o?.isSelectable(t)&&(t=o.getFilterDef(e,t));const{handler:n,handlerParams:r,handlerGenerator:a}=this.createHandler(e,t,i)??{},l=this.createFilterComp(e,t,i,s,!!n,"init");if(!l)return{compDetails:null,createFilterUi:null,handler:n,handlerGenerator:a,handlerParams:r};const{compDetails:c,createFilterUi:d}=l;return this.isGlobalButtons&&(c.params?.buttons?.length||$(281,{colId:e.getColId()})),{compDetails:c,handler:n,handlerGenerator:a,handlerParams:r,createFilterUi:d}}createBaseFilterParams(e,t){const{filterManager:i,rowModel:s}=this.beans;return xe(this.gos,{column:e,colDef:e.getColDef(),getValue:this.createGetValue(e),doesRowPassOtherFilter:t?()=>!0:o=>i?.doesRowPassOtherFilters(e.getColId(),o)??!0,rowModel:s})}createFilterCompParams(e,t,i,s){const o=this.filterChangedCallbackFactory(e),n=this.createBaseFilterParams(e,s);if(n.filterChangedCallback=o,n.filterModifiedCallback=s?()=>{}:r=>this.filterModified(e,r),t){const r=n,a=e.getColId(),l=vt(this.model,a);r.model=l,r.state=this.state.get(a)??{model:l},r.onModelChange=(c,d)=>{this.updateStoredModel(a,c),this.refreshHandlerAndUi(e,c,"ui",!1,d).then(()=>{o({...d,source:"columnFilter"})})},r.onStateChange=c=>{this.updateState(e,c),this.updateOrRefreshFilterUi(e)},r.onAction=(c,d,u)=>{this.updateModel(e,c,d),this.dispatchLocalEvent({type:"filterAction",column:e,action:c,event:u})},r.getHandler=()=>this.getHandler(e,!0),r.onUiChange=c=>this.filterUiChanged(e,c),r.source=i}return n}createFilterUiForHandler(e,t){return t?{created:!1,create:t,filterParams:e.params,compDetails:e}:null}createFilterUiLegacy(e,t,i){const s=t(),o={created:!0,create:t,filterParams:e.params,compDetails:e,promise:s};return s.then(i),o}createFilterWrapper(e){const{compDetails:t,handler:i,handlerGenerator:s,handlerParams:o,createFilterUi:n}=this.createFilterInstance(e,e.getColDef(),this.getDefaultFilter(e),a=>a),r=e.getColId();if(i)return delete this.initialModel[r],i.init?.({...o,source:"init",model:vt(this.model,r)}),{column:e,isHandler:!0,handler:i,handlerGenerator:s,handlerParams:o,filterUi:this.createFilterUiForHandler(t,n)};if(n){const a={column:e,filterUi:null,isHandler:!1};return a.filterUi=this.createFilterUiLegacy(t,n,l=>{a.filter=l??void 0}),a}return{column:e,filterUi:null,isHandler:!1}}createHandlerFunc(e,t,i){const{gos:s,frameworkOverrides:o,registry:n}=this.beans;let r;const a=p=>{const m=p.filter;if(eC(m)){const v=m.handler;return v||(r=m.doesFilterPass,r?()=>({doesFilterPass:r}):void 0)}return typeof m=="string"?m:void 0},l=s.get("enableFilterHandlers"),c=l?a(t):void 0,d=p=>()=>this.createBean(n.createDynamicBean(p,!0));let u,h;if(typeof c=="string"){const p=s.get("filterHandlers")?.[c];p!=null?u=p:HM.has(c)&&(u=d(c),h=c)}else u=c;if(!u){let p;const{compName:m,jsComp:v,fwComp:C}=sC(o,t);m?p=m:v==null&&C==null&&t.filter===!0&&(p=i),h=this.handlerMap[p],h&&(u=d(h))}return u?{filterHandler:u,handlerNameOrCallback:r??h}:l?(st(s)&&$(277,{colId:e.getColId()}),c8):void 0}createHandler(e,t,i){const s=this.createHandlerFunc(e,t,i);if(!s)return;const o=cd(this.beans.userCompFactory,t,this.createFilterCompParams(e,!0,"init")),{handlerNameOrCallback:n,filterHandler:r}=s,{handler:a,handlerParams:l}=this.createHandlerFromFunc(e,r,o);return{handler:a,handlerParams:l,handlerGenerator:n??r}}createHandlerFromFunc(e,t,i){const s=e.getColDef(),o=t(xe(this.gos,{column:e,colDef:s})),n=this.createHandlerParams(e,i);return{handler:o,handlerParams:n}}createHandlerParams(e,t){const i=e.getColDef(),s=e.getColId(),o=this.filterChangedCallbackFactory(e);return xe(this.gos,{colDef:i,column:e,getValue:this.createGetValue(e),doesRowPassOtherFilter:n=>this.beans.filterManager?.doesRowPassOtherFilters(s,n)??!0,onModelChange:(n,r)=>{this.updateStoredModel(s,n),this.refreshHandlerAndUi(e,n,"handler",!1,r).then(()=>{o({...r,source:"columnFilter"})})},onModelAsStringChange:()=>{e.dispatchColEvent("filterChanged","filterChanged"),this.dispatchLocalEvent({type:"filterModelAsStringChanged",column:e})},filterParams:t})}onColumnsChanged(){const e=[],{colModel:t,filterManager:i,groupFilter:s}=this.beans;this.allColumnFilters.forEach((n,r)=>{let a;n.column.isPrimary()?a=t.getColDefCol(r):a=t.getCol(r),!(a&&a===n.column)&&(e.push(n.column),this.disposeFilterWrapper(n,"columnChanged"),this.disposeColumnListener(r))});const o=s&&e.every(n=>s.isGroupFilter(n));e.length>0&&!o&&i?.onFilterChanged({columns:e,source:"api"})}isFilterAllowed(e){if(!e.isFilterAllowed())return!1;const i=this.beans.groupFilter;return i?.isGroupFilter(e)?i.isFilterAllowed(e):!0}getFloatingFilterCompDetails(e,t){const{userCompFactory:i,frameworkOverrides:s,selectableFilter:o,gos:n}=this.beans,r=p=>{this.getOrCreateFilterUi(e)?.then(v=>{p(vo(v))})},a=e.getColDef(),l=o?.isSelectable(a)?o.getFilterDef(e,a):a,c=l8(s,l,()=>this.getDefaultFloatingFilter(e))??"agReadOnlyFloatingFilter",d=n.get("enableFilterHandlers"),u=cd(i,l,this.createFilterCompParams(e,d,"init",!0)),h=xe(n,{column:e,filterParams:u,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:r,showParentFilter:t});if(d){const p=h,m=e.getColId(),v=this.filterChangedCallbackFactory(e);p.onUiChange=C=>this.floatingFilterUiChanged(e,C),p.model=vt(this.model,m),p.onModelChange=(C,w)=>{this.updateStoredModel(m,C),this.refreshHandlerAndUi(e,C,"floating",!0,w).then(()=>{v({...w,source:"columnFilter"})})},p.getHandler=()=>this.getHandler(e,!0),p.source="init"}return s3(i,a,h,c)}getCurrentFloatingFilterParentModel(e){return this.getModelFromFilterWrapper(this.cachedFilter(e)??{column:e})}destroyFilterUi(e,t,i,s){const o="paramsUpdated";if(e.isHandler){const n=t.getColId();delete this.initialModel[n],this.state.delete(n);const r=e.filterUi,a=this.createFilterUiForHandler(i,s);e.filterUi=a;const l=this.eventSvc;r?.created?r.promise.then(c=>{this.destroyBean(c),l.dispatchEvent({type:"filterDestroyed",source:o,column:t})}):l.dispatchEvent({type:"filterHandlerDestroyed",source:o,column:t})}else this.destroyFilter(t,o)}destroyFilter(e,t="api"){const i=e.getColId(),s=this.allColumnFilters.get(i);this.disposeColumnListener(i),delete this.initialModel[i],s&&this.disposeFilterWrapper(s,t).then(o=>{o&&this.isAlive()&&this.beans.filterManager?.onFilterChanged({columns:[e],source:"api"})})}disposeColumnListener(e){const t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())}disposeFilterWrapper(e,t){let i=!1;const{column:s,isHandler:o,filterUi:n}=e,r=s.getColId();o&&(i=this.isHandlerActive(s),this.destroyBean(e.handler),delete this.model[r],this.state.delete(r));const a=()=>{this.setColFilterActive(s,!1,"filterDestroyed"),this.allColumnFilters.delete(r),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:t,column:s})};if(n){if(n.created)return n.promise.then(l=>(i=o?i:!!l?.isFilterActive(),this.destroyBean(l),a(),i));a()}return Ne.resolve(i)}filterChangedCallbackFactory(e){return t=>{this.callOnFilterChangedOutsideRenderCycle({additionalEventAttributes:t,columns:[e],column:e,source:t?.source??"columnFilter"})}}filterParamsChanged(e,t="api"){const i=this.allColumnFilters.get(e);if(!i)return;const s=this.beans,o=i.column,n=o.getColDef(),r=o.isFilterAllowed(),a=this.getDefaultFilter(o),l=s.selectableFilter,c=l?.isSelectable(n)?l.getFilterDef(o,n):n,d=r?this.createHandlerFunc(o,c,this.getDefaultFilter(o)):void 0,u=!!d,h=i.isHandler;if(h!=u){this.destroyFilter(o,"paramsUpdated");return}const{compDetails:p,createFilterUi:m}=(r?this.createFilterComp(o,c,a,C=>C,u,"colDef"):null)??{compDetails:null,createFilterUi:null},v=p?.params??cd(s.userCompFactory,c,this.createFilterCompParams(o,u,"colDef"));if(h){const C=d?.handlerNameOrCallback??d?.filterHandler,w=vt(this.model,e);if(i.handlerGenerator!=C){const b=i.handler,{handler:x,handlerParams:y}=this.createHandlerFromFunc(o,d.filterHandler,v);i.handler=x,i.handlerParams=y,i.handlerGenerator=C,delete this.model[e],x.init?.({...y,source:"init",model:null}),this.destroyBean(b),w!=null&&this.beans.filterManager?.onFilterChanged({columns:[o],source:t})}else{const b=this.createHandlerParams(o,p?.params);i.handlerParams=b,i.handler.refresh?.({...b,source:"colDef",model:w})}}if(this.areFilterCompsDifferent(i.filterUi?.compDetails??null,p)||!i.filterUi||!p){this.destroyFilterUi(i,o,p,m);return}i.filterUi.filterParams=v,gs(i,h)?.then(C=>{(C?.refresh?C.refresh(v):!0)===!1?this.destroyFilterUi(i,o,p,m):this.dispatchLocalEvent({type:"filterParamsChanged",column:o,params:v})})}refreshHandlerAndUi(e,t,i,s,o){const n=this.cachedFilter(e);if(!n)return s&&this.getOrCreateFilterWrapper(e,!0),Ne.resolve();if(!n.isHandler)return Ne.resolve();const{filterUi:r,handler:a,handlerParams:l}=n;return BM(()=>{if(r){const{created:c,filterParams:d}=r;if(c)return r.promise.then(u=>u?{filter:u,filterParams:d}:void 0);r.refreshed=!0}return Ne.resolve(void 0)},a,l,t,this.state.get(e.getColId())??{model:t},i,o)}setColumnFilterWrapper(e,t){const i=e.getColId();this.allColumnFilters.set(i,t),this.allColumnListeners.set(i,this.addManagedListeners(e,{colDefChanged:()=>this.filterParamsChanged(i)})[0])}areFilterCompsDifferent(e,t){if(!t||!e)return!0;const{componentClass:i}=e,{componentClass:s}=t;return!(i===s||i?.render&&s?.render&&i.render===s.render)}hasFloatingFilters(){return this.beans.colModel.getCols().some(t=>t.getColDef().floatingFilter)}getFilterInstance(e){const t=this.beans.colModel.getColDefCol(e);if(!t)return Promise.resolve(void 0);const i=this.getOrCreateFilterUi(t);return i?new Promise(s=>{i.then(o=>{s(vo(o))})}):Promise.resolve(null)}processFilterModelUpdateQueue(){this.modelUpdates.forEach(({model:e,source:t})=>this.setModel(e,t)),this.modelUpdates=[],this.columnModelUpdates.forEach(({key:e,model:t,resolve:i})=>{this.setModelForColumn(e,t).then(()=>i())}),this.columnModelUpdates=[]}getModelForColumn(e,t){if(t){const{state:s,model:o}=this,n=e.getColId(),r=s.get(n);return r?r.model??null:vt(o,n)}const i=this.cachedFilter(e);return i?this.getModelFromFilterWrapper(i):null}setModelForColumn(e,t){if(this.beans.dataTypeSvc?.isPendingInference){let i=()=>{};const s=new Promise(o=>{i=o});return this.columnModelUpdates.push({key:e,model:t,resolve:i}),s}return new Promise(i=>{this.setModelForColumnLegacy(e,t).then(s=>i(s))})}getStateForColumn(e){return this.state.get(e)??{model:vt(this.model,e)}}setModelForColumnLegacy(e,t){const i=this.beans.colModel.getColDefCol(e),s=i?this.getOrCreateFilterWrapper(i,!0):null;return s?this.setModelOnFilterWrapper(s,t):Ne.resolve()}setColDefPropsForDataType(e,t,i){const s=e.filter,o=s===!0?this.getDefaultFilterFromDataType(()=>t.baseDataType):s;if(typeof o!="string")return;let n,r;const a=this.beans,{filterParams:l,filterValueGetter:c}=e;o==="agMultiColumnFilter"?{filterParams:n,filterValueGetter:r}=a.multiFilter?.getParamsForDataType(l,c,t,i)??{}:{filterParams:n,filterValueGetter:r}=o8(o,l,c,t,i,a,this.getLocaleTextFunc()),e.filterParams=n,r&&(e.filterValueGetter=r)}setColFilterActive(e,t,i,s){e.filterActive!==t&&(e.filterActive=t,e.dispatchColEvent("filterActiveChanged",i)),e.dispatchColEvent("filterChanged",i,s)}setModelOnFilterWrapper(e,t,i){return new Ne(s=>{if(e.isHandler){const n=e.column,r=n.getColId(),a=this.model[r];if(this.updateStoredModel(r,t),i&&t===a){s();return}this.refreshHandlerAndUi(n,t,"api").then(()=>s());return}const o=gs(e);if(o){o.then(n=>{if(typeof n?.setModel!="function"){$(65),s();return}(n.setModel(t)||Ne.resolve()).then(()=>s())});return}s()})}updateStoredModel(e,t){te(t)?this.model[e]=t:delete this.model[e];const i=this.state.get(e),s={model:t,state:i?.state};this.state.set(e,s)}filterModified(e,t){this.getOrCreateFilterUi(e)?.then(i=>{this.eventSvc.dispatchEvent({type:"filterModified",column:e,filterInstance:i,...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,i){const s=e.getColId(),o=this.cachedFilter(e),n=()=>o?.filterUi;_f({action:t,filterParams:o?.filterUi?.filterParams,getFilterUi:n,getModel:()=>vt(this.model,s),getState:()=>this.state.get(s),updateState:r=>this.updateState(e,r),updateModel:r=>n()?.filterParams?.onModelChange(r,{...i,fromAction:t}),processModelToApply:o?.isHandler?o.handler.processModelToApply?.bind(o.handler):void 0})}updateAllModels(e,t){const i=[];this.allColumnFilters.forEach((s,o)=>{const n=this.beans.colModel.getColDefCol(o);n&&_f({action:e,filterParams:s.filterUi?.filterParams,getFilterUi:()=>s.filterUi,getModel:()=>vt(this.model,o),getState:()=>this.state.get(o),updateState:r=>this.updateState(n,r),updateModel:r=>{this.updateStoredModel(o,r),this.dispatchLocalEvent({type:"filterAction",column:n,action:e}),i.push(this.refreshHandlerAndUi(n,r,"ui"))},processModelToApply:s?.isHandler?s.handler.processModelToApply?.bind(s.handler):void 0})}),i.length&&Ne.all(i).then(()=>{this.callOnFilterChangedOutsideRenderCycle({source:"columnFilter",additionalEventAttributes:t,columns:[]})})}updateOrRefreshFilterUi(e){const t=e.getColId();Qw(()=>this.cachedFilter(e)?.filterUi,()=>vt(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:i}=this;for(const o of i)if(o.source==="COLUMN_MENU")return!1;let s=!1;for(const o of e.keys()){const n=e.get(o);if(n.valid===!1)return!1;(n.model??null)!==vt(t,o)&&(s=!0)}return s}hasUnappliedModel(e){const{model:t,state:i}=this;return(i.get(e)?.model??null)!==vt(t,e)}setGlobalButtons(e){this.isGlobalButtons=e,this.dispatchLocalEvent({type:"filterGlobalButtons",isGlobal:e})}shouldKeepStateOnDetach(e,t){if(t==="newFiltersToolPanel")return!0;const i=this.beans.filterPanelSvc;return i?.isActive?!!i.getState(e.getColId()):!1}onPivotModeChanged(e){const{colModel:t,pivotColsSvc:i}=this.beans,s=!!bl(this.gos),o=e.currentValue,n=o?this.activeColumnFilters:this.activeAggregateFilters,r=o?this.activeAggregateFilters:this.activeColumnFilters,a=[];for(const l of n){const c=t.getColById(l.colId),d=o&&!!i?.columns.length;c&&o===Zf(c,o,d,s)&&(r.push(l),a.push(l))}TS(n,a)}destroy(){super.destroy(),this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"gridDestroyed")),this.allColumnListeners.clear(),this.state.clear(),this.activeFilterComps.clear()}};function u8(e){return!!e.filterManager?.isAnyFilterPresent()}function h8(e,t="api"){e.filterManager?.onFilterChanged({source:t})}var p8=class extends B{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:s})=>this.onAdvFilterEnabledChanged(s),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:i}=this;this.alwaysPassFilter=i.get("alwaysPassFilter"),this.addManagedPropertyListener("alwaysPassFilter",()=>{this.alwaysPassFilter=i.get("alwaysPassFilter"),this.onFilterChanged({source:"api"})})}isExternalFilterPresentCallback(){const e=this.gos.getCallback("isExternalFilterPresent");return typeof e=="function"&&e({})}doesExternalFilterPass(e){const t=this.gos.get("doesExternalFilterPass");return typeof t=="function"&&t(e)}setFilterState(e,t,i="api"){this.isAdvFilterEnabled()||this.colFilter?.setState(e,t,i)}setFilterModel(e,t="api",i){if(this.isAdvFilterEnabled()){i||this.warnAdvFilters();return}this.colFilter?.setModel(e,t)}getFilterModel(){return this.colFilter?.getModel()??{}}getFilterState(){return this.colFilter?.getState()}isColumnFilterPresent(){return!!this.colFilter?.isFilterPresent()}isAggregateFilterPresent(){return!!this.colFilter?.isAggFilterPresent()}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.externalFilterPresent||this.isAdvFilterPresent()}isAnyFilterPresent(){return this.isChildFilterPresent()||this.isAggregateFilterPresent()}isAdvFilterPresent(){return this.isAdvFilterEnabled()&&this.advancedFilter.isFilterPresent()}onAdvFilterEnabledChanged(e){e?this.colFilter?.disableFilters()&&this.onFilterChanged({source:"advancedFilter"}):this.advancedFilter?.isFilterPresent()&&(this.advancedFilter.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvFilterEnabled(){return!!this.advancedFilter?.isEnabled()}isAdvFilterHeaderActive(){return this.isAdvFilterEnabled()&&this.advancedFilter.isHeaderActive()}refreshFiltersForAggregations(){bl(this.gos)&&this.isAnyFilterPresent()&&this.onFilterChanged()}onFilterChanged(e={}){const{source:t,additionalEventAttributes:i,columns:s=[]}=e;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(e):Ne.resolve()).then(()=>{const o={source:t,type:"filterChanged",columns:s};i&&Mt(o,i),this.eventSvc.dispatchEvent(o),this.colFilter?.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){return!!this.colFilter?.isSuppressFlashingCellsBecauseFiltering()}isQuickFilterPresent(){return!!this.quickFilter?.isFilterPresent()}updateAggFiltering(){this.aggFiltering=!!bl(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.beans.colModel.isPivotMode())&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassOtherFilters(e,t){return this.doesRowPassFilter({rowNode:t,colIdToSkip:e})}doesRowPassAggregateFilters(e){const{rowNode:t}=e;return this.alwaysPassFilter?.(t)?!0:!(this.isAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.isAggregateFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip,!0))}doesRowPassFilter(e){const{rowNode:t}=e;return this.alwaysPassFilter?.(t)?!0:!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.externalFilterPresent&&!this.doesExternalFilterPass(t)||this.isColumnFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip)||this.isAdvFilterPresent()&&!this.advancedFilter.doesFilterPass(t))}isFilterAllowed(e){return this.isAdvFilterEnabled()?!1:!!this.colFilter?.isFilterAllowed(e)}getAdvFilterModel(){return this.isAdvFilterEnabled()?this.advancedFilter.getModel():null}setAdvFilterModel(e,t="api"){if(this.isAdvFilterEnabled()){if(this.beans.dataTypeSvc?.isPendingInference){this.advFilterModelUpdateQueue.push(e);return}this.advancedFilter.setModel(e??null),this.onFilterChanged({source:t})}}toggleAdvFilterBuilder(e,t){this.isAdvFilterEnabled()&&this.advancedFilter.getCtrl().toggleFilterBuilder({source:t,force:e})}updateAdvFilterColumns(){this.isAdvFilterEnabled()&&this.advancedFilter.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){return this.isAdvFilterEnabled()?!1:!!this.colFilter?.hasFloatingFilters()}getColumnFilterInstance(e){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve(void 0)):this.colFilter?.getFilterInstance(e)??Promise.resolve(void 0)}warnAdvFilters(){$(68)}setupAdvFilterHeaderComp(e){this.advancedFilter?.getCtrl().setupHeaderComp(e)}getHeaderRowCount(){return this.isAdvFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvFilterHeaderActive()?this.advancedFilter.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){for(const e of this.advFilterModelUpdateQueue)this.setAdvFilterModel(e);this.advFilterModelUpdateQueue=[]}setColumnFilterModel(e,t){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve()):this.colFilter?.setModelForColumn(e,t)??Promise.resolve()}};function g8(e){return{tag:"div",cls:e}}var f8=class extends ot{constructor(e){const{className:t="ag-filter-apply-panel"}=e??{};super(g8(t)),this.listeners=[],this.validationMessage=null,this.className=t}updateButtons(e,t){const i=this.buttons;if(this.buttons=e,i===e)return;const s=this.getGui();_t(s);let o;this.destroyListeners();const n=document.createDocumentFragment(),r=this.className,a=({type:c,label:d})=>{const u=w=>{this.dispatchLocalEvent({type:c,event:w})};["apply","clear","reset","cancel"].includes(c)||$(75);const h=c==="apply",m=Jt({tag:"button",attrs:{type:h&&t?"submit":"button"},ref:`${c}FilterButton`,cls:`ag-button ag-standard-button ${r}-button${h?" "+r+"-apply-button":""}`,children:d});this.activateTabIndex([m]),h&&(o=m);const v=w=>{w.key===A.ENTER&&(w.preventDefault(),u(w))},C=this.listeners;m.addEventListener("click",u),C.push(()=>m.removeEventListener("click",u)),m.addEventListener("keydown",v),C.push(()=>m.removeEventListener("keydown",v)),n.append(m)};for(const c of e)a(c);this.eApply=o;const l=this.validationTooltipFeature;o&&!l?this.validationTooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eApply,getLocation:()=>"advancedFilter",getTooltipShowDelayOverride:()=>1e3})):!o&&l&&(this.validationTooltipFeature=this.destroyBean(l)),s.append(n)}getApplyButton(){return this.eApply}updateValidity(e,t=null){const i=this.eApply;i&&(Dr(i,!e),this.validationMessage=t,this.validationTooltipFeature?.setTooltipAndRefresh(this.validationMessage))}destroyListeners(){for(const e of this.listeners)e();this.listeners=[]}destroy(){this.destroyListeners(),super.destroy()}},m8=class extends ot{constructor(e,t,i,s,o,n){super(),this.column=e,this.wrapper=t,this.eventParent=i,this.updateModel=s,this.isGlobalButtons=o,this.enableGlobalButtonCheck=n,this.hidePopup=null,this.applyActive=!1}postConstruct(){const{comp:e,params:t}=this.wrapper,i=t,s=i.useForm,o=s?"form":"div";this.setTemplate({tag:o,cls:"ag-filter-wrapper"}),s&&this.addManagedElementListeners(this.getGui(),{submit:n=>{n?.preventDefault()},keydown:this.handleKeyDown.bind(this)}),this.appendChild(e.getGui()),this.params=i,this.resetButtonsPanel(i),this.addManagedListeners(this.eventParent,{filterParamsChanged:({column:n,params:r})=>{n===this.column&&this.resetButtonsPanel(r,this.params)},filterStateChanged:({column:n,state:r})=>{n===this.column&&this.eButtons?.updateValidity(r.valid!==!1)},filterAction:({column:n,action:r,event:a})=>{n===this.column&&this.afterAction(r,a)},...this.enableGlobalButtonCheck?{filterGlobalButtons:({isGlobal:n})=>{if(n!==this.isGlobalButtons){this.isGlobalButtons=n;const r=this.params;this.resetButtonsPanel(r,r,!0)}}}:void 0})}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup)}resetButtonsPanel(e,t,i){const{buttons:s,readOnly:o}=t??{},{buttons:n,readOnly:r,useForm:a}=e;if(!i&&o===r&&Fr(s,n))return;const l=n&&n.length>0&&!e.readOnly&&!this.isGlobalButtons;let c=this.eButtons;if(l){const d=n.map(u=>{const h=`${u}Filter`;return{type:u,label:vi(this,h)}});if(this.applyActive=nc(this.params),!c){c=this.createBean(new f8),this.appendChild(c.getGui());const u=this.column,h=p=>({event:m})=>{this.updateModel(u,p,{fromButtons:!0}),this.afterAction(p,m)};c?.addManagedListeners(c,{apply:h("apply"),clear:h("clear"),reset:h("reset"),cancel:h("cancel")}),this.eButtons=c}c.updateButtons(d,a)}else this.applyActive=!1,c&&(Ji(c.getGui()),this.eButtons=this.destroyBean(c))}close(e){const t=this.hidePopup;if(!t)return;const i=e,s=i?.key;let o;(s===A.ENTER||s===A.SPACE)&&(o={keyboardEvent:i}),t(o),this.hidePopup=null}afterAction(e,t){const{params:i,applyActive:s}=this,o=i?.closeOnApply;switch(e){case"apply":{t?.preventDefault(),o&&s&&this.close(t);break}case"reset":{o&&s&&this.close();break}case"cancel":{o&&this.close(t);break}}}handleKeyDown(e){!e.defaultPrevented&&e.key===A.ENTER&&this.applyActive&&(this.updateModel(this.column,"apply",{fromButtons:!0}),this.afterAction("apply",e))}destroy(){this.hidePopup=null,this.eButtons=this.destroyBean(this.eButtons)}},v8=":where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}",C8={tag:"div",cls:"ag-filter"},w8=class extends ot{constructor(e,t,i){super(C8),this.column=e,this.source=t,this.enableGlobalButtonCheck=i,this.wrapper=null}postConstruct(){this.beans.colFilter?.activeFilterComps.add(this),this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return this.wrapper!=null}getFilter(){return this.wrapper?.then(e=>e.comp)??null}afterInit(){return this.wrapper?.then(()=>{})??Ne.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:i,beans:{colFilter:s}}=this,o=s.getFilterUiForDisplay(t)??null;this.wrapper=o,o?.then(n=>{if(!n)return;const{isHandler:r,comp:a}=n;let l;if(r){const c=!!this.enableGlobalButtonCheck,d=this.createBean(new m8(t,n,s,s.updateModel.bind(s),c&&s.isGlobalButtons,c));this.comp=d,l=d.getGui()}else this.registerCSS(v8),l=a.getGui(),te(l)||$(69,{guiFromFilter:l});this.appendChild(l),e?this.eventSvc.dispatchEvent({type:"filterOpened",column:t,source:i,eGui:this.getGui()}):a.afterGuiAttached?.(this.afterGuiAttachedParams)})}onFilterDestroyed(e){const{source:t,column:i}=e;(t==="api"||t==="paramsUpdated")&&i.getId()===this.column.getId()&&this.beans.colModel.getColDefCol(this.column)&&(_t(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()}},b8=class extends B{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(e){this.popupSvc=e.popupSvc}hideActiveMenu(){this.hidePopup?.()}showMenuAfterMouseEvent(e,t,i,s){e&&!e.isColumn||this.showPopup(e,o=>{this.popupSvc?.positionPopupUnderMouseEvent({additionalParams:{column:e},type:i,mouseEvent:t,ePopup:o})},i,t.target,zt(this.gos),s)}showMenuAfterButtonClick(e,t,i,s){if(e&&!e.isColumn)return;let o=-1,n="left";const r=zt(this.gos);!r&&this.gos.get("enableRtl")&&(o=1,n="right");const a=r?void 0:4*o,l=r?void 0:4;this.showPopup(e,c=>{this.popupSvc?.positionPopupByComponent({type:i,eventSource:t,ePopup:c,nudgeX:a,nudgeY:l,alignSide:n,keepWithinBounds:!0,position:"under",additionalParams:{column:e}})},i,t,r,s)}showPopup(e,t,i,s,o,n){const r=e?this.createBean(new w8(e,"COLUMN_MENU")):void 0;if(this.activeMenu=r,!r?.hasFilter()||!e){We(57);return}const a=Jt({tag:"div",cls:`ag-menu${o?"":" ag-filter-menu"}`,role:"presentation"});[this.tabListener]=this.addManagedElementListeners(a,{keydown:v=>this.trapFocusWithin(v,a)}),a.appendChild(r?.getGui());let l;const c=()=>r?.afterGuiDetached(),d=K2(this.gos)?s??this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,u=v=>{Uf(e,!1,"contextMenu");const C=v instanceof KeyboardEvent;this.tabListener&&(this.tabListener=this.tabListener()),C&&s&&yi(s)&&dC(s)?.focus({preventScroll:!0}),c(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,i,e),n?.()},h=this.getLocaleTextFunc(),p=o&&i!=="columnFilter"?h("ariaLabelColumnMenu","Column Menu"):h("ariaLabelColumnFilter","Column Filter"),m=this.popupSvc?.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:u,positionCallback:()=>t(a),anchorToElement:d,ariaLabel:p});m&&(this.hidePopup=l=m.hideFunc),r.afterInit().then(()=>{t(a),r.afterGuiAttached({container:i,hidePopup:l})}),Uf(e,!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,i,e)}trapFocusWithin(e,t){e.key!==A.TAB||e.defaultPrevented||Eo(this.beans,t,!1,e.shiftKey)||(e.preventDefault(),go(t,e.shiftKey))}dispatchVisibleChangedEvent(e,t,i){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:t,column:i??null,columnGroup:null})}isMenuEnabled(e){return e.isFilterAllowed()&&(e.getColDef().menuTabs??["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}},x8=class extends B{constructor(){super(...arguments),this.beanName="filterValueSvc"}getValue(e,t,i){if(!t)return;const s=e.getColDef(),{selectableFilter:o,valueSvc:n,formula:r}=this.beans,a=i??o?.getFilterValueGetter(e.getColId())??s.filterValueGetter;if(a)return this.executeFilterValueGetter(a,t.data,e,t,s);const l=n.getValue(e,t,"data");return e.isAllowFormula()&&r?.isFormula(l)?r.resolveValue(e,t):l}executeFilterValueGetter(e,t,i,s,o){const{expressionSvc:n,valueSvc:r}=this.beans,a=xe(this.gos,{data:t,node:s,column:i,colDef:o,getValue:r.getValueCallback.bind(r,s)});return typeof e=="function"?e(a):n?.evaluate(e,a)}},y8={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eFloatingFilterText"}]},S8=class extends ot{constructor(){super(y8,[hc]),this.eFloatingFilterText=de}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 i=e,s=i.getHandler();if(s.getModelAsString){const o=s.getModelAsString(i.model);this.eFloatingFilterText.setValue(o)}}}onParentModelChanged(e){if(e==null){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(t=>{if(t.getModelAsString){const i=t.getModelAsString(e);this.eFloatingFilterText.setValue(i)}})}refresh(e){this.init(e)}},R8=class extends $h{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)}},rp=class{constructor(){this.customFilterOptions={}}init(e,t){this.filterOptions=e.filterOptions??t,this.mapCustomOptions(),this.defaultOption=this.getDefaultItem(e.defaultOption)}refresh(e,t){const i=e.filterOptions??t;this.filterOptions!==i&&(this.filterOptions=i,this.customFilterOptions={},this.mapCustomOptions()),this.defaultOption=this.getDefaultItem(e.defaultOption)}mapCustomOptions(){const{filterOptions:e}=this;if(e)for(const t of e){if(typeof t=="string")continue;const i=[["displayKey"],["displayName"],["predicate","test"]],s=o=>o.some(n=>t[n]!=null)?!0:($(72,{keys:o}),!1);if(!i.every(s)){this.filterOptions=e.filter(o=>o===t)||[];continue}this.customFilterOptions[t.displayKey]=t}}getDefaultItem(e){const{filterOptions:t}=this;if(e)return e;if(t.length>=1){const i=t[0];if(typeof i=="string")return i;if(i.displayKey)return i.displayKey;$(73)}else $(74)}getCustomOption(e){return this.customFilterOptions[e]}};function wr(e,t,i){return i==null?e.splice(t):e.splice(t,i)}function Gl(e){return e==null||typeof e=="string"&&e.trim().length===0}function F8(e){return e==="AND"||e==="OR"?e:"AND"}function E8(e,t,i){if(e==null)return;const{predicate:s}=e;if(s!=null&&!t.some(o=>o==null))return s(t,i)}function D8(e,t){let i=e.length;return i>t&&(e.splice(t),$(78),i=t),i}var P8=new Set(["empty","notBlank","blank","today","yesterday","tomorrow","thisWeek","lastWeek","nextWeek","thisMonth","lastMonth","nextMonth","thisQuarter","lastQuarter","nextQuarter","thisYear","lastYear","nextYear","yearToDate","last7Days","last30Days","last90Days","last6Months","last12Months","last24Months"]);function Ps(e,t){const i=t.getCustomOption(e);if(i){const{numberOfInputs:s}=i;return s??1}return e&&P8.has(e)?0:e==="inRange"?2:1}var gc=class extends f3{constructor(e,t,i){super(e,"simple-filter"),this.mapValuesFromModel=t,this.defaultOptions=i,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 rp;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=F8(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.createFilterListOptions(),Vt(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,i)=>{const s=i===0?e:this.optionsFactory.defaultOption;t.setValue(s,!0)})}getModelFromUi(){const e=this.getUiCompleteConditions();return e.length===0?null:this.maxNumConditions>1&&e.length>1?{filterType:this.filterType,operator:this.getJoinOperator(),conditions:e}:e[0]}getConditionTypes(){return this.eTypes.map(e=>e.getValue())}getConditionType(e){return this.eTypes[e].getValue()}getJoinOperator(){const{eJoinOrs:e,defaultJoinOperator:t}=this;return e.length===0?t:e[0].getValue()===!0?"OR":"AND"}areNonNullModelsEqual(e,t){const i=!e.operator,s=!t.operator;if(!i&&s||i&&!s)return!1;let n;if(i){const r=e,a=t;n=this.areSimpleModelsEqual(r,a)}else{const r=e,a=t;n=r.operator===a.operator&&Ms(r.conditions,a.conditions,(l,c)=>this.areSimpleModelsEqual(l,c))}return n}setModelIntoUi(e,t){if(e==null)return this.resetUiToDefaults(t),Ne.resolve();if(e.operator){const s=e;let o=s.conditions;o==null&&(o=[],$(77));const n=D8(o,this.maxNumConditions),r=this.getNumConditions();if(n<r)this.removeConditionsAndOperators(n);else if(n>r)for(let l=r;l<n;l++)this.createJoinOperatorPanel(),this.createOption();const a=s.operator==="OR";this.eJoinAnds.forEach(l=>l.setValue(!a,!0)),this.eJoinOrs.forEach(l=>l.setValue(a,!0)),o.forEach((l,c)=>{this.eTypes[c].setValue(l.type,!0),this.setConditionIntoUi(l,c)})}else{const s=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(s.type,!0),this.setConditionIntoUi(s,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.updateUiVisibility(),t||this.params.onUiChange(this.getUiChangeEventParams()),Ne.resolve()}setNumConditions(e){let t=e.maxNumConditions??2;t<1&&($(79),t=1),this.maxNumConditions=t;let i=e.numAlwaysVisibleConditions??1;i<1&&($(80),i=1),i>t&&($(81),i=t),this.numAlwaysVisibleConditions=i}createOption(){const e=this.getGui(),t=this.createManagedBean(new np);this.eTypes.push(t),t.addCss("ag-filter-select"),e.appendChild(t.getGui());const i=this.createEValue();this.eConditionBodies.push(i),e.appendChild(i),this.putOptionsIntoDropdown(t),this.resetType(t);const s=this.getNumConditions()-1;this.forEachPositionInput(s,o=>this.resetInput(o)),this.addChangedListeners(t,s)}createJoinOperatorPanel(){const e=Jt({tag:"div",cls:"ag-filter-condition"});this.eJoinPanels.push(e);const t=this.createJoinOperator(this.eJoinAnds,e,"and"),i=this.createJoinOperator(this.eJoinOrs,e,"or");this.getGui().appendChild(e);const s=this.eJoinPanels.length-1,o=this.joinOperatorId++;this.resetJoinOperatorAnd(t,s,o),this.resetJoinOperatorOr(i,s,o),this.isReadOnly()||(t.onValueChange(this.listener),i.onValueChange(this.listener))}createJoinOperator(e,t,i){const s=this.createManagedBean(new R8);e.push(s);const o="ag-filter-condition-operator";return s.addCss(o),s.addCss(`${o}-${i}`),t.appendChild(s.getGui()),s}createFilterListOptions(){this.filterListOptions=this.optionsFactory.filterOptions.map(e=>typeof e=="string"?this.createBoilerplateListOption(e):this.createCustomListOption(e))}putOptionsIntoDropdown(e){const{filterListOptions:t}=this;for(const i of t)e.addOption(i);e.setDisabled(t.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){const{displayKey:t}=e,i=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:i?this.getLocaleTextFunc()(i.displayKey,i.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 i=0;i<this.getNumConditions();i++)this.isConditionUiComplete(i)?e=i:t=!1;if(this.shouldAddNewConditionAtEnd(t))this.createJoinOperatorPanel(),this.createOption();else{const i=this.lastUiCompletePosition??this.getNumConditions()-2;if(e<i){this.removeConditionsAndOperators(i+1);const s=e+1,o=i-s;o>0&&this.removeConditionsAndOperators(s,o),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e}updateConditionStatusesAndValues(e,t){this.eTypes.forEach((s,o)=>{const n=this.isConditionDisabled(o,e);s.setDisabled(n||this.filterListOptions.length<=1),o===1&&(Dr(this.eJoinPanels[0],n),this.eJoinAnds[0].setDisabled(n),this.eJoinOrs[0].setDisabled(n))}),this.eConditionBodies.forEach((s,o)=>{Ke(s,this.isConditionBodyVisible(o))});const i=(t??this.getJoinOperator())==="OR";for(const s of this.eJoinAnds)s.setValue(!i,!0);for(const s of this.eJoinOrs)s.setValue(i,!0);this.forEachInput((s,o,n,r)=>{this.setElementDisplayed(s,o<r),this.setElementDisabled(s,this.isConditionDisabled(n,e))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,t){if(e>=this.getNumConditions())return;const{eTypes:i,eConditionBodies:s,eJoinPanels:o,eJoinAnds:n,eJoinOrs:r}=this;this.removeComponents(i,e,t),this.removeElements(s,e,t),this.removeEValues(e,t);const a=Math.max(e-1,0);this.removeElements(o,a,t),this.removeComponents(n,a,t),this.removeComponents(r,a,t)}removeElements(e,t,i){const s=wr(e,t,i);for(const o of s)Ji(o)}removeComponents(e,t,i){const s=wr(e,t,i);for(const o of s)Ji(o.getGui()),this.destroyBean(o)}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!e?.suppressFocus){let t;if(!this.isReadOnly()){const i=this.getInputs(0)[0];i instanceof Ys&&this.isConditionBodyVisible(0)?t=i.getInputElement():t=this.eTypes[0]?.getFocusableElement()}(t??this.getGui()).focus({preventScroll:!0})}}shouldKeepInvalidInputState(){return!1}afterGuiDetached(){super.afterGuiDetached();const e=this.params;if(this.beans.colFilter?.shouldKeepStateOnDetach(e.column)||this.shouldKeepInvalidInputState())return;e.onStateChange({model:e.model});let t=-1,i=-1,s=!1;const o=this.getJoinOperator();for(let r=this.getNumConditions()-1;r>=0;r--)if(this.isConditionUiComplete(r))t===-1&&(t=r,i=r);else{const a=r>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(r-1),l=r<t;(a||l)&&(this.removeConditionsAndOperators(r,1),s=!0,l&&i--)}let n=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),n=!0),this.shouldAddNewConditionAtEnd(i===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),n=!0),n&&this.updateConditionStatusesAndValues(i,o),s&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=i}getModelAsString(e){return this.params.getHandler()?.getModelAsString?.(e)??""}resetPlaceholder(){const e=this.getLocaleTextFunc(),{filterPlaceholder:t,eTypes:i}=this;this.forEachInput((s,o,n,r)=>{if(!(s instanceof Ys))return;const a=o===0&&r>1?"inRangeStart":o===0?"filterOoo":"inRangeEnd",l=o===0&&r>1?e("ariaFilterFromValue","Filter from value"):o===0?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value"),c=i[n].getValue(),d=pC(this,t,a,c);s.setInputPlaceholder(d),s.setInputAriaLabel(l)})}setElementValue(e,t,i){e instanceof Ys&&e.setValue(t!=null?String(t):null,!0)}setElementDisplayed(e,t){Lg(e)&&Ke(e.getGui(),t)}setElementDisabled(e,t){Lg(e)&&Dr(e.getGui(),t)}attachElementOnChange(e,t){e instanceof Ys&&e.onValueChange(t)}forEachInput(e){this.getConditionTypes().forEach((t,i)=>{this.forEachPositionTypeInput(i,t,e)})}forEachPositionInput(e,t){const i=this.getConditionType(e);this.forEachPositionTypeInput(e,i,t)}forEachPositionTypeInput(e,t,i){const s=Ps(t,this.optionsFactory),o=this.getInputs(e);for(let n=0;n<o.length;n++){const r=o[n];r!=null&&i(r,n,e,s)}}isConditionDisabled(e,t){return this.isReadOnly()?!0:e===0?!1:e>t+1}isConditionBodyVisible(e){const t=this.getConditionType(e);return Ps(t,this.optionsFactory)>0}isConditionUiComplete(e){return!(e>=this.getNumConditions()||this.getConditionType(e)==="empty"||this.getValues(e).some(i=>i==null)||this.positionHasInvalidInputs(e))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){const e=[];for(let t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(e){this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(t=>this.resetType(t)),this.eJoinAnds.forEach((t,i)=>this.resetJoinOperatorAnd(t,i,this.joinOperatorId+i)),this.eJoinOrs.forEach((t,i)=>this.resetJoinOperatorOr(t,i,this.joinOperatorId+i)),this.joinOperatorId++,this.forEachInput(t=>this.resetInput(t)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,this.updateUiVisibility(),e||this.params.onUiChange(this.getUiChangeEventParams())}resetType(e){const i=this.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(i).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,i){this.resetJoinOperator(e,t,this.defaultJoinOperator==="AND",this.translate("andCondition"),i)}resetJoinOperatorOr(e,t,i){this.resetJoinOperator(e,t,this.defaultJoinOperator==="OR",this.translate("orCondition"),i)}resetJoinOperator(e,t,i,s,o){this.updateJoinOperatorDisabled(e.setValue(i,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${o}`).setLabel(s),t)}updateJoinOperatorsDisabled(){const e=(t,i)=>this.updateJoinOperatorDisabled(t,i);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 i=this.mapValuesFromModel(e,this.optionsFactory);this.forEachInput((s,o,n)=>{n===t&&this.setElementValue(s,i[o]!=null?i[o]:null)})}setValueFromFloatingFilter(e){this.forEachInput((t,i,s)=>{this.setElementValue(t,i===0&&s===0?e:null,!0)})}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,i=>{this.attachElementOnChange(i,this.listener)}))}hasInvalidInputs(){return!1}positionHasInvalidInputs(e){return!1}isReadOnly(){return!!this.params.readOnly}},ap=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"];function Uu(e){return e?.allowedCharPattern??null}function Jw(e,t){const{filter:i,filterTo:s,type:o}=e||{};return[Ut(i),Ut(s)].slice(0,Ps(o,t))}var T8=class extends gc{constructor(){super("bigintFilter",Jw,ap),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="bigint",this.defaultDebounceMs=500}afterGuiAttached(e){super.afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!bn()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}refreshInputValidation(){for(let e=0;e<this.eValuesFrom.length;e++){const t=this.eValuesFrom[e],i=this.eValuesTo[e];this.refreshInputPairValidation(t,i)}}refreshInputPairValidation(e,t,i=!1){const{bigintParser:s}=this.params,o=this.getParsedValue(e,s),n=this.getParsedValue(t,s),r=this.isInvalidValue(e,o),a=this.isInvalidValue(t,n),l=i?e:t,c=i?t:e,d=i?r:a,u=i?a:r;let h="";if(d)h=this.getLocaleTextFunc()("invalidBigInt","Invalid BigInt");else if(!r&&!a){const p=k8(o,n,i);p&&(h=this.translate(p,[String(i?t.getValue():e.getValue())]))}l.setCustomValidity(h),u||c.setCustomValidity(""),h.length>0&&this.beans.ariaAnnounce.announceValue(h,"dateFilter")}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}refresh(e){const t=super.refresh(e),{state:i,additionalEventAttributes:s}=e,o=this.state,n=s?.fromAction;return(n&&n!="apply"||i.model!==o.model||!this.areStatesEqual(i.state,o.state))&&this.refreshInputValidation(),t}setElementValue(e,t,i){super.setElementValue(e,t,i),t===null&&e.setCustomValidity("")}createEValue(){const{params:e,eValuesFrom:t,eValuesTo:i}=this,s=Uu(e),o=Jt({tag:"div",cls:"ag-filter-body",role:"presentation"}),n=this.createFromToElement(o,t,"from",s),r=this.createFromToElement(o,i,"to",s),a=(d,u,h)=>()=>this.refreshInputPairValidation(d,u,h),l=a(n,r,!0);n.onValueChange(l),n.addGuiEventListener("focusin",l);const c=a(n,r,!1);return r.onValueChange(c),r.addGuiEventListener("focusin",c),o}createFromToElement(e,t,i,s){const o=this.createManagedBean(s?new ts({allowedCharPattern:s}):new ts);return o.addCss(`ag-filter-${i}`),o.addCss("ag-filter-filter"),t.push(o),e.appendChild(o.getGui()),o}removeEValues(e,t){const i=s=>this.removeComponents(s,e,t);i(this.eValuesFrom),i(this.eValuesTo)}getValues(e){const t=[];return this.forEachPositionInput(e,(i,s,o,n)=>{s<n&&t.push(Ut(i.getValue()??null))}),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),i={filterType:this.filterType,type:t},s=this.getValues(e);return s.length>0&&(i.filter=String(s[0])),s.length>1&&(i.filterTo=String(s[1])),i}removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}getInputs(e){const{eValuesFrom:t,eValuesTo:i}=this;return e>=t.length?[null,null]:[t[e],i[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,i=>t||(t=!i.getInputElement().validity.valid)),t}canApply(e){return!this.hasInvalidInputs()}getParsedValue(e,t){const i=e.getValue();return i==null||typeof i=="string"&&i.trim()===""?null:t?t(i):Ut(i)}isInvalidValue(e,t){const i=e.getValue();return i!=null&&String(i).trim()!==""&&t===null}};function k8(e,t,i){return e!=null&&t!=null&&e>=t?`strict${i?"Max":"Min"}ValueValidation`:null}var e1=class extends B{constructor(e,t){super(),this.mapValuesFromModel=e,this.defaultOptions=t}init(e){const t=e.filterParams,i=new rp;this.optionsFactory=i,i.init(t,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(i,t)),this.updateParams(e),this.validateModel(e)}refresh(e){if(e.source==="colDef"){const t=e.filterParams,i=this.optionsFactory;i.refresh(t,this.defaultOptions),this.filterModelFormatter.updateParams({optionsFactory:i,filterParams:t}),this.updateParams(e)}this.validateModel(e)}updateParams(e){this.params=e}doesFilterPass(e){const t=e.model;if(t==null)return!0;const{operator:i}=t,s=[];if(i){const r=t;s.push(...r.conditions??[])}else s.push(t);const o=i&&i==="OR"?"some":"every",n=this.params.getValue(e.node);return s[o](r=>this.individualConditionPasses(e,r,n))}getModelAsString(e,t){return this.filterModelFormatter.getModelAsString(e,t)??""}validateModel(e){const{model:t,filterParams:{filterOptions:i,maxNumConditions:s}}=e;if(t==null)return;let n=oC(t)?t.conditions:[t];const r=i?.map(d=>typeof d=="string"?d:d.displayKey)??this.defaultOptions;if(!(!n||n.every(d=>r.find(u=>u===d.type)!==void 0))){this.params={...e,model:null},e.onModelChange(null);return}let l=!1;const c=this.filterType;if((n&&!n.every(d=>d.filterType===c)||t.filterType!==c)&&(n=n.map(d=>({...d,filterType:c})),l=!0),typeof s=="number"&&n&&n.length>s&&(n=n.slice(0,s),l=!0),l){const d=n.length>1?{...t,filterType:c,conditions:n}:{...n[0],filterType:c};this.params={...e,model:d},e.onModelChange(d)}}individualConditionPasses(e,t,i){const s=this.optionsFactory,o=this.mapValuesFromModel(t,s),n=s.getCustomOption(t.type),r=E8(n,o,i);return r??(i==null?this.evaluateNullValue(t.type):this.evaluateNonNullValue(o,i,t,e))}},lp=class extends e1{evaluateNullValue(e){const{includeBlanksInEquals:t,includeBlanksInNotEqual:i,includeBlanksInGreaterThan:s,includeBlanksInLessThan:o,includeBlanksInRange:n}=this.params.filterParams;switch(e){case"equals":if(t)return!0;break;case"notEqual":if(i)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(s)return!0;break;case"lessThan":case"lessThanOrEqual":if(o)return!0;break;case"inRange":if(n)return!0;break;case"blank":return!0;case"notBlank":return!1}return!1}evaluateNonNullValue(e,t,i){const s=i.type;if(!this.isValid(t))return s==="notEqual"||s==="notBlank";const o=this.comparator(),n=e[0]!=null?o(e[0],t):0;switch(s){case"equals":return n===0;case"notEqual":return n!==0;case"greaterThan":return n>0;case"greaterThanOrEqual":return n>=0;case"lessThan":return n<0;case"lessThanOrEqual":return n<=0;case"inRange":{const r=o(e[1],t);return this.params.filterParams.inRangeInclusive?n>=0&&r<=0:n>0&&r<0}case"blank":return Gl(t);case"notBlank":return!Gl(t);default:return $(76,{filterModelType:s}),!0}}},cp={equals:"Equals",notEqual:"NotEqual",greaterThan:"GreaterThan",greaterThanOrEqual:"GreaterThanOrEqual",lessThan:"LessThan",lessThanOrEqual:"LessThanOrEqual",inRange:"InRange"},I8={contains:"Contains",notContains:"NotContains",equals:"TextEquals",notEqual:"TextNotEqual",startsWith:"StartsWith",endsWith:"EndsWith",inRange:"InRange"},fc=class extends B{constructor(e,t,i){super(),this.optionsFactory=e,this.filterParams=t,this.valueFormatter=i}getModelAsString(e,t){const i=this.getLocaleTextFunc(),s=t==="filterToolPanel";if(!e)return s?vi(this,"filterSummaryInactive"):null;if(e.operator!=null){const n=e,a=(n.conditions??[]).map(c=>this.getModelAsString(c,t)),l=n.operator==="AND"?"andCondition":"orCondition";return a.join(` ${vi(this,l)} `)}else{if(e.type==="blank"||e.type==="notBlank")return s?vi(this,e.type==="blank"?"filterSummaryBlank":"filterSummaryNotBlank"):i(e.type,e.type);{const n=e,r=this.optionsFactory.getCustomOption(n.type),{displayKey:a,displayName:l,numberOfInputs:c}=r||{};return a&&l&&c===0?i(a,l):this.conditionToString(n,s,n.type==="inRange"||c===2,a,l)}}}updateParams(e){const{optionsFactory:t,filterParams:i}=e;this.optionsFactory=t,this.filterParams=i}conditionForToolPanel(e,t,i,s,o,n){let r;const a=this.getTypeKey(e);return a&&(r=vi(this,a)),o&&n&&(r=this.getLocaleTextFunc()(o,n)),r!=null?t?`${r} ${vi(this,"filterSummaryInRangeValues",[i(),s()])}`:`${r} ${i()}`: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)}},t1=class extends fc{constructor(e,t){super(e,t,t.bigintFormatter),this.filterTypeKeys=cp}conditionToString(e,t,i,s,o){const{filter:n,filterTo:r,type:a}=e,l=this.formatValue.bind(this),c=Ut(n),d=Ut(r);if(t){const u=this.conditionForToolPanel(a,i,()=>l(c),()=>l(d),s,o);if(u!=null)return u}return i?`${l(c)}-${l(d)}`:n!=null?l(c):`${a}`}},M8=class extends lp{constructor(){super(Jw,ap),this.filterType="bigint",this.FilterModelFormatterClass=t1}comparator(){return(e,t)=>e===t?0:e<t?1:-1}isValid(e){return Ut(e)!==null}},dp=class extends B{constructor(e){super(),this.params=e,this.eInput=de,this.onValueChanged=()=>{}}setupGui(e){this.eInput=this.createManagedBean(new ts(this.params?.config));const t=this.eInput.getGui();e.appendChild(t);const i=s=>this.onValueChanged(s);this.addManagedListeners(t,{input:i,keydown:i})}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:i}){const{eInput:s}=this;s.setInputAriaLabel(e),t!==void 0&&s.setAutoComplete(t),s.toggleCss("ag-floating-filter-search-icon",!!i),s.setInputPlaceholder(i)}};function $u(e){const t=e?.trim();return t===""?e:t}function i1(e,t){const{filter:i,filterTo:s,type:o}=e||{};return[i||null,s||null].slice(0,Ps(o,t))}var s1=class extends ot{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(e){if(!e){this.lastType=this.optionsFactory.defaultOption;return}const t=e.operator;let i;t?i=e.conditions[0]:i=e,this.lastType=i.type}canWeEditAfterModelFromParentFilter(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;const i=e;return this.isTypeEditable(i.type)}init(e){this.params=e;const t=this.gos.get("enableFilterHandlers");if(this.reactive=t,this.setParams(e),t){const i=e;this.onModelUpdated(i.model)}}setParams(e){const t=new rp;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 i=this.optionsFactory.defaultOption;t||(this.lastType=i),this.readOnly=!!e.filterParams.readOnly;const s=this.isTypeEditable(i);this.setEditable(s)}refresh(e){this.params=e;const t=e,i=this.reactive;if((!i||t.source==="colDef")&&this.updateParams(e),i){const{source:s,model:o}=t;if(s==="dataChanged"||s==="ui")return;this.onModelUpdated(o)}}updateParams(e){const t=this.optionsFactory;t.refresh(e.filterParams,this.defaultOptions),this.setSimpleParams(e),this.filterModelFormatter.updateParams({optionsFactory:t,filterParams:e.filterParams})}onParentModelChanged(e,t){t?.afterFloatingFilter||t?.afterDataChange||this.onModelUpdated(e)}isTypeEditable(e){return!!e&&!this.readOnly&&Ps(e,this.optionsFactory)===1}getAriaLabel(e){return`${this.beans.colNames.getDisplayNameForColumn(e,"header",!0)} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}},A8={tag:"div",ref:"eFloatingFilterInputContainer",cls:"ag-floating-filter-input",role:"presentation"},up=class extends s1{constructor(){super(...arguments),this.eFloatingFilterInputContainer=de,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(A8)}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:i,readOnly:s}=this,{filterPlaceholder:o,column:n,browserAutoComplete:r,filterParams:a}=e,l=this.lastType??this.optionsFactory.defaultOption,c=e.filterParams.filterPlaceholder,d=o===!0?pC(this,c,"filterOoo",l):o||void 0;if(t.setParams({ariaLabel:this.getAriaLabel(n),autoComplete:r??!1,placeholder:d}),this.applyActive=nc(a),!s){const u=Lh(a,i);t.setValueChangedListener(ct(this,this.syncUpWithParentFilter.bind(this),u))}}updateParams(e){super.updateParams(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){const{inputSvc:t}=this,i=t.getValue();_t(this.eFloatingFilterInputContainer),this.destroyBean(t),this.setupFloatingFilterInputService(e),t.setValue(i,!0)}syncUpWithParentFilter(e){const t=e.key===A.ENTER,i=this.reactive;if(i&&this.params.onUiChange(),this.applyActive&&!t)return;const{inputSvc:s,params:o,lastType:n}=this;let r=s.getValue();if(o.filterParams.trimInput&&(r=$u(r),s.setValue(r,!0)),i){const a=o,l=a.model,c=this.convertValue(r),d=c==null?null:{...l??{filterType:this.filterType,type:n??this.optionsFactory.defaultOption},filter:c};a.onModelChange(d,{afterFloatingFilter:!0})}else o.parentFilterInstance(a=>{a?.onFloatingFilterChanged(n||null,r||null)})}convertValue(e){return e||null}setEditable(e){this.inputSvc.setEditable(e)}},L8=class extends up{constructor(){super(...arguments),this.FilterModelFormatterClass=t1,this.filterType="bigint",this.defaultOptions=ap}updateParams(e){const t=e.filterParams;Uu(t)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),this.bigintParser=t?.bigintParser,super.updateParams(e)}createFloatingFilterInputService(e){const t=e.filterParams;this.allowedCharPattern=Uu(t),this.bigintParser=t?.bigintParser;const i=this.allowedCharPattern?{allowedCharPattern:this.allowedCharPattern}:void 0;return this.createManagedBean(new dp({config:i}))}convertValue(e){return e==null||e===""?null:this.bigintParser?this.bigintParser(e):Ut(e)}},Xf=".ag-input-field-input",o1=class{constructor(e,t,i,s,o,n){this.context=e,this.eParent=o,this.alive=!0,this.debouncedReport=ct({isAlive:()=>this.alive},Qf,500),this.timeoutHandle=null,t3(t,i,s)?.newAgStackInstance().then(a=>{if(!this.alive){e.destroyBean(a);return}if(this.dateComp=a,!a)return;o.appendChild(a.getGui()),a?.afterGuiAttached?.();const{tempValue:l,disabled:c}=this;l&&a.setDate(l),c!=null&&a.setDisabled?.(c),n?.(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){Ke(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 i=this.dateComp?.getGui().querySelector(Xf);if(i&&"setCustomValidity"in i){const s=e.length>0;i.setCustomValidity(e),s?t?this.timeoutHandle=this.debouncedReport(i):Qf(i):this.timeoutHandle&&window.clearTimeout(this.timeoutHandle),mh(i,s)}}getValidity(){return this.dateComp?.getGui().querySelector(Xf)?.validity}};function Qf(e){e.reportValidity()}var hp=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"];function n1(e,t){const{dateFrom:i,dateTo:s,type:o}=e||{};return[i&&Ot(i,void 0,!0)||null,s&&Ot(s,void 0,!0)||null].slice(0,Ps(o,t))}var Jf=1e3,em=1/0,O8=class extends gc{constructor(){super("dateFilter",n1,hp),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=Jf,this.maxValidYear=em,this.minValidDate=null,this.maxValidDate=null,this.filterType="date"}afterGuiAttached(e){super.afterGuiAttached(e),this.dateConditionFromComps[0].afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!bn()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}commonUpdateSimpleParams(e){super.commonUpdateSimpleParams(e);const t=(l,c)=>{const d=e[l];if(d!=null)if(isNaN(d))$(82,{param:l});else return d==null?c:Number(d);return c},i=t("minValidYear",Jf),s=t("maxValidYear",em);this.minValidYear=i,this.maxValidYear=s,i>s&&$(83);const{minValidDate:o,maxValidDate:n}=e,r=o instanceof Date?o:Ot(o);this.minValidDate=r;const a=n instanceof Date?n:Ot(n);this.maxValidDate=a,r&&a&&r>a&&$(84)}refreshInputValidation(){for(let e=0;e<this.dateConditionFromComps.length;e++)this.refreshInputPairValidation(e,!1,!0)}refreshInputPairValidation(e,t=!1,i=!1){const{dateConditionFromComps:s,dateConditionToComps:o,beans:n}=this,r=s[e],a=o[e],l=Ps(this.getConditionType(e),this.optionsFactory),c=r.getDate(),d=a.getDate(),u=l>=2?N8(c,d,t):null,h=u?this.translate(u,[String(t?d:c)]):"",p=!bn()&&!i;(t?r:a).setCustomValidity(h,p),(t?a:r).setCustomValidity("",p),h.length>0&&n.ariaAnnounce.announceValue(h,"dateFilter")}createDateCompWrapper(e,t,i){const{beans:{userCompFactory:s,context:o,gos:n},params:r}=this,a=i==="from",l=new o1(o,s,r.colDef,xe(n,{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=Jt({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,i,s){const o=Jt({tag:"div",cls:`ag-filter-${s} ag-filter-date-${s}`});t.push(o),e.appendChild(o),i.push(this.createDateCompWrapper(o,t.length-1,s))}removeEValues(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),wr(this.eConditionPanelsFrom,e,t),wr(this.eConditionPanelsTo,e,t)}removeDateComps(e,t,i){const s=wr(e,t,i);for(const o of s)o.destroy()}isValidDateValue(e){if(e===null)return!1;const{minValidDate:t,maxValidDate:i,minValidYear:s,maxValidYear:o}=this;if(t){if(e<t)return!1}else if(e.getUTCFullYear()<s)return!1;if(i){if(e>i)return!1}else if(e.getUTCFullYear()>o)return!1;return!0}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>e||(e=t.getDate()!=null&&!(t.getValidity()?.valid??!0))),e}positionHasInvalidInputs(e){let t=!1;return this.forEachPositionInput(e,i=>t||(t=!(i.getValidity()?.valid??!0))),t}canApply(e){return!this.hasInvalidInputs()}isConditionUiComplete(e){if(!super.isConditionUiComplete(e))return!1;let t=!0;return this.forEachPositionInput(e,(i,s,o,n)=>{!t||s>=n||t&&(t=this.isValidDateValue(i.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),i={},{params:s,filterType:o}=this,n=this.getValues(e),r=s.useIsoSeparator?"T":" ";return n.length>0&&(i.dateFrom=Lt(n[0],!0,r)),n.length>1&&(i.dateTo=Lt(n[1],!0,r)),{dateFrom:null,dateTo:null,filterType:o,type:t,...i}}removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}resetPlaceholder(){const e=this.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),i=e("ariaFilterValue","Filter Value");this.forEachInput(s=>{s.setInputPlaceholder(t),s.setInputAriaLabel(i)})}getInputs(e){const{dateConditionFromComps:t,dateConditionToComps:i}=this;return e>=t.length?[null,null]:[t[e],i[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(i,s,o,n)=>{s<n&&t.push(i.getDate())}),t}translate(e,t){let i=e;return e==="lessThan"?i="before":e==="greaterThan"&&(i="after"),super.translate(i,t)}};function N8(e,t,i){return e!=null&&t!=null&&e>=t?`${i?"max":"min"}DateValidation`:null}var r1=class extends fc{constructor(e,t){super(e,t,i=>{const{dataTypeSvc:s,valueSvc:o}=this.beans,n=t.column,r=s?.getDateFormatterFunction(n),a=r?r(i??void 0):i;return o.formatValue(n,null,a)}),this.filterTypeKeys=cp}conditionToString(e,t,i,s,o){const{type:n}=e,r=Ot(e.dateFrom),a=Ot(e.dateTo),l=this.filterParams.inRangeFloatingFilterDateFormat,c=t?this.formatValue.bind(this):h=>a5(h,l),d=()=>r!==null?c(r):"null",u=()=>a!==null?c(a):"null";if(r==null&&a==null)return vi(this,n);if(t){const h=this.conditionForToolPanel(n,i,d,u,s,o);if(h!=null)return h}return i?`${d()}-${u()}`:r!=null?c(r):`${n}`}};function H8(e,t){const i=t;return i<e?-1:i>e?1:0}var B8=class extends lp{constructor(){super(n1,hp),this.filterType="date",this.FilterModelFormatterClass=r1,this.filterTypeToRangeCache=new Map}getOrRefreshRangeCacheItem(e,t){const{filterTypeToRangeCache:i}=this,s=Date.now();let o=i.get(e);if(o&&o.expires<s&&(o=void 0),!o){const[n,r]=t(new Date(s),new Date(s));o={from:n,to:r,expires:ui(new Date(s)).getTime()-s},i.set(e,o)}return o}comparator(){return this.params.filterParams.comparator??H8}isValid(e){const t=this.params.filterParams.isValidDate;return!t||t(e)}evaluateNonNullValue(e,t,i){const s=i.type,o=this.comparator();if(!this.isValid(t))return s==="notEqual"||s==="notBlank";const n=s,r=oA[n];if(r){const{from:a,to:l}=this.getOrRefreshRangeCacheItem(n,r);return o(a,t)>=0&&o(l,t)<0}return super.evaluateNonNullValue(e,t,i)}},G8=1,ja=null,V8=()=>{if(ja!=null)return ja;let e;const t=typeof navigator>"u"?void 0:navigator.languages?.[0]??navigator.language;if(t&&typeof Intl<"u"&&typeof Intl.Locale=="function")try{e=new Intl.Locale(t).getWeekInfo?.()?.firstDay}catch{e=void 0}return ja=e==null?G8:e%7,ja},ei=e=>(e.setHours(0,0,0,0),e),mc=e=>{const t=e.getDay(),i=V8(),s=(t-i+7)%7;return e.setDate(e.getDate()-s),ei(e)},vc=(e,t=1)=>(e.setDate(e.getDate()-t),e),ui=e=>(e.setDate(e.getDate()+1),ei(e)),a1=e=>(mc(e),e.setDate(e.getDate()+6),ui(e)),Cc=e=>(e.setDate(1),ei(e)),pp=e=>(e.setDate(1),e.setMonth(e.getMonth()+1),ei(e)),gp=e=>{const t=Math.floor(e.getMonth()/3);return e.setMonth(t*3),Cc(e)},l1=e=>{const t=Math.floor(e.getMonth()/3);return e.setMonth(t*3+2),pp(e)},fp=e=>(e.setMonth(0,1),ei(e)),c1=e=>(e.setMonth(12,0),ui(e)),Rn=e=>vc(e),qu=e=>Rn(mc(e)),Ku=e=>Rn(Cc(e)),Yu=e=>Rn(gp(e)),mp=(e,t)=>[ei(e),ui(t)],z8=(e,t)=>mp(Rn(e),Rn(t)),vp=(e,t)=>[mc(e),a1(t)],W8=(e,t)=>vp(qu(e),qu(t)),Cp=(e,t)=>[Cc(e),pp(t)],j8=(e,t)=>Cp(Ku(e),Ku(t)),wp=(e,t)=>[gp(e),l1(t)],_8=(e,t)=>wp(Yu(e),Yu(t)),bp=(e,t)=>[fp(e),c1(t)],U8=(e,t)=>[fp(e),ui(t)],$8=(e,t)=>[ei(vc(e,7)),ui(t)],q8=(e,t)=>[ei(vc(e,30)),ui(t)],K8=(e,t)=>[ei(vc(e,90)),ui(t)],Y8=(e,t)=>(e.setFullYear(e.getFullYear()-1),e.setMonth(e.getMonth()+6),[ei(e),ui(t)]),Z8=(e,t)=>(e.setFullYear(e.getFullYear()-1),[ei(e),ui(t)]),X8=(e,t)=>(e.setFullYear(e.getFullYear()-2),[ei(e),ui(t)]),Q8=(e,t)=>(e.setFullYear(e.getFullYear()-1),t.setFullYear(t.getFullYear()-1),bp(e,t)),J8=(e,t)=>(e.setFullYear(e.getFullYear()+1),t.setFullYear(t.getFullYear()+1),bp(e,t)),eA=(e,t)=>(e.setMonth(e.getMonth()+3),t.setMonth(t.getMonth()+3),wp(e,t)),tA=(e,t)=>(e.setMonth(e.getMonth()+1),t.setMonth(t.getMonth()+1),Cp(e,t)),iA=(e,t)=>(e.setDate(e.getDate()+7),t.setDate(t.getDate()+7),vp(e,t)),sA=(e,t)=>(e.setDate(e.getDate()+1),t.setDate(t.getDate()+1),mp(e,t)),oA={today:mp,yesterday:z8,tomorrow:sA,thisWeek:vp,lastWeek:W8,nextWeek:iA,thisMonth:Cp,lastMonth:j8,nextMonth:tA,thisQuarter:wp,lastQuarter:_8,nextQuarter:eA,thisYear:bp,lastYear:Q8,nextYear:J8,yearToDate:U8,last7Days:$8,last30Days:q8,last90Days:K8,last6Months:Y8,last12Months:Z8,last24Months:X8,setStartOfDay:ei,setStartOfWeek:mc,setStartOfNextDay:ui,setStartOfNextWeek:a1,setStartOfMonth:Cc,setStartOfNextMonth:pp,setStartOfQuarter:gp,setStartOfNextQuarter:l1,setStartOfYear:fp,setStartOfNextYear:c1,setPreviousDay:Rn,setPreviousWeek:qu,setPreviousMonth:Ku,setPreviousQuarter:Yu},nA={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"}]},rA=class extends s1{constructor(){super(nA,[hc]),this.eReadOnlyText=de,this.eDateWrapper=de,this.FilterModelFormatterClass=r1,this.filterType="date",this.defaultOptions=hp}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 i=e?Ot(e.dateFrom):null;this.dateComp.setDate(i),this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}setEditable(e){Ke(this.eDateWrapper,e),Ke(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 i=t.model,s=Lt(e),o=s==null?null:{...i??{filterType:this.filterType,type:this.lastType??this.optionsFactory.defaultOption},dateFrom:s};t.onModelChange(o,{afterFloatingFilter:!0})}else this.params.parentFilterInstance(t=>{t?.onFloatingFilterChanged(this.lastType||null,e)})}getDateComponentParams(){const{filterParams:e}=this.params,t=Lh(e,this.defaultDebounceMs);return xe(this.gos,{onDateChanged:ct(this,this.onDateChanged.bind(this),t),filterParams:e,location:"floatingFilter"})}createDateComponent(){const{beans:{context:e,userCompFactory:t},eDateWrapper:i,params:{column:s}}=this;this.dateComp=new o1(e,t,s.getColDef(),this.getDateComponentParams(),i,o=>{o.setInputAriaLabel(this.getAriaLabel(s))}),this.addDestroyFunc(()=>this.dateComp.destroy())}},aA={tag:"div",cls:"ag-filter-filter",children:[{tag:"ag-input-text-field",ref:"eDateInput",cls:"ag-date-filter"}]},lA=class extends ot{constructor(){super(aA,[hc]),this.eDateInput=de,this.isApply=!1,this.applyOnFocusOut=!1}init(e){this.params=e,this.setParams(e);const t=this.eDateInput.getInputElement();this.addManagedListeners(t,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||t.focus({preventScroll:!0})},input:this.handleInput.bind(this,!1),change:this.handleInput.bind(this,!0),focusout:this.handleFocusOut.bind(this),focusin:this.handleFocusIn.bind(this)})}handleInput(e){if(!this.eDateInput.isDisabled()){if(this.isApply){this.applyOnFocusOut=!e,e&&this.params.onDateChanged();return}e||this.params.onDateChanged()}}handleFocusOut(){this.applyOnFocusOut&&(this.applyOnFocusOut=!1,this.params.onDateChanged())}handleFocusIn(){this.params.onFocusIn?.()}setParams(e){const t=this.eDateInput.getInputElement(),i=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=i&&Ls();const{minValidYear:s,maxValidYear:o,minValidDate:n,maxValidDate:r,buttons:a,includeTime:l,colDef:c}=e.filterParams||{},d=this.beans.dataTypeSvc,u=l??d?.getDateIncludesTimeFlag?.(c.cellDataType)??!1;i?u?(t.type="datetime-local",t.step="1"):t.type="date":t.type="text";const h=tm(n,s,!0),p=tm(r,o,!1);h&&p&&h.getTime()>p.getTime()&&$(87),h&&(t.min=Lt(h,u)),p&&(t.max=Lt(p,u)),this.isApply=e.location==="floatingFilter"&&!!a?.includes("apply")}refresh(e){this.params=e,this.setParams(e)}getDate(){return Ot(this.eDateInput.getValue())}setDate(e){const t=this.params.filterParams.colDef.cellDataType,i=this.beans.dataTypeSvc?.getDateIncludesTimeFlag(t)??!1;this.eDateInput.setValue(Lt(e,i))}setInputPlaceholder(e){this.eDateInput.setInputPlaceholder(e)}setInputAriaLabel(e){this.eDateInput.setAriaLabel(e)}setDisabled(e){this.eDateInput.setDisabled(e)}afterGuiAttached(e){e?.suppressFocus||this.eDateInput.getInputElement().focus({preventScroll:!0})}shouldUseBrowserDatePicker(e){return e?.filterParams?.browserDatePicker??!0}};function tm(e,t,i){return e&&t&&$(i?85:86),e instanceof Date?e:e?Ot(e):t?Ot(`${t}-${i?"01-01":"12-31"}`):null}var xp=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"];function Zu(e){return e?.allowedCharPattern??null}function Vl(e){return e==null||isNaN(e)?null:e}function d1(e,t){const{filter:i,filterTo:s,type:o}=e||{};return[Vl(i),Vl(s)].slice(0,Ps(o,t))}var cA=class extends gc{constructor(){super("numberFilter",d1,xp),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="number",this.defaultDebounceMs=500}afterGuiAttached(e){super.afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!bn()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}refreshInputValidation(){for(let e=0;e<this.eValuesFrom.length;e++){const t=this.eValuesFrom[e],i=this.eValuesTo[e];this.refreshInputPairValidation(t,i)}}refreshInputPairValidation(e,t,i=!1){const s=this.params.numberParser,o=im(s,e),n=im(s,t),r=dA(o,n,i),a=r?this.translate(r,[String(i?n:o)]):"";(i?e:t).setCustomValidity(a),(i?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:i,additionalEventAttributes:s}=e,o=this.state,n=s?.fromAction;return(n&&n!="apply"||i.model!==o.model||!this.areStatesEqual(i.state,o.state))&&this.refreshInputValidation(),t}setElementValue(e,t,i){const{numberFormatter:s}=this.params,o=!i&&s?s(t??null):t;super.setElementValue(e,o),o===null&&e.setCustomValidity("")}createEValue(){const{params:e,eValuesFrom:t,eValuesTo:i}=this,s=Zu(e),o=Jt({tag:"div",cls:"ag-filter-body",role:"presentation"}),n=this.createFromToElement(o,t,"from",s),r=this.createFromToElement(o,i,"to",s),a=(d,u,h)=>()=>this.refreshInputPairValidation(d,u,h),l=a(n,r,!0);n.onValueChange(l),n.addGuiEventListener("focusin",l);const c=a(n,r,!1);return r.onValueChange(c),r.addGuiEventListener("focusin",c),o}createFromToElement(e,t,i,s){const o=this.createManagedBean(s?new ts({allowedCharPattern:s}):new op);return o.addCss(`ag-filter-${i}`),o.addCss("ag-filter-filter"),t.push(o),e.appendChild(o.getGui()),o}removeEValues(e,t){const i=s=>this.removeComponents(s,e,t);i(this.eValuesFrom),i(this.eValuesTo)}getValues(e){const t=[];return this.forEachPositionInput(e,(i,s,o,n)=>{s<n&&t.push(Vl(u1(this.params.numberParser,i.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),i={filterType:this.filterType,type:t},s=this.getValues(e);return s.length>0&&(i.filter=s[0]),s.length>1&&(i.filterTo=s[1]),i}removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}getInputs(e){const{eValuesFrom:t,eValuesTo:i}=this;return e>=t.length?[null,null]:[t[e],i[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,i=>t||(t=!i.getInputElement().validity.valid)),t}canApply(e){return!this.hasInvalidInputs()}};function u1(e,t){if(typeof t=="number")return t;let i=Yi(t);return i!=null&&i.trim()===""&&(i=null),e?e(i):i==null||i.trim()==="-"?null:Number.parseFloat(i)}function im(e,t){return Vl(u1(e,t.getValue(!0)))}function dA(e,t,i){return e!=null&&t!=null&&e>=t?`strict${i?"Max":"Min"}ValueValidation`:null}var h1=class extends fc{constructor(e,t){super(e,t,t.numberFormatter),this.filterTypeKeys=cp}conditionToString(e,t,i,s,o){const{filter:n,filterTo:r,type:a}=e,l=this.formatValue.bind(this);if(t){const c=this.conditionForToolPanel(a,i,()=>l(n),()=>l(r),s,o);if(c!=null)return c}return i?`${l(n)}-${l(r)}`:n!=null?l(n):`${a}`}},uA=class extends lp{constructor(){super(d1,xp),this.filterType="number",this.FilterModelFormatterClass=h1}comparator(){return(e,t)=>e===t?0:e<t?1:-1}isValid(e){return!isNaN(e)}},hA=class extends B{constructor(){super(...arguments),this.onValueChanged=()=>{},this.numberInputActive=!0}setupGui(e){this.eNumberInput=this.createManagedBean(new op),this.eTextInput=this.createManagedBean(new ts),this.eTextInput.setDisabled(!0);const t=this.eNumberInput.getGui(),i=this.eTextInput.getGui();e.appendChild(t),e.appendChild(i),this.setupListeners(t,s=>this.onValueChanged(s)),this.setupListeners(i,s=>this.onValueChanged(s))}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:i}){this.setAriaLabel(e),t!==void 0&&this.setAutoComplete(t),this.setPlaceholder(this.eNumberInput,i),this.setPlaceholder(this.eTextInput,i)}setPlaceholder(e,t){e.toggleCss("ag-floating-filter-search-icon",!!t),e.setInputPlaceholder(t)}setAriaLabel(e){this.eNumberInput.setInputAriaLabel(e),this.eTextInput.setInputAriaLabel(e)}},pA=class extends up{constructor(){super(...arguments),this.FilterModelFormatterClass=h1,this.filterType="number",this.defaultOptions=xp}updateParams(e){Zu(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),super.updateParams(e)}createFloatingFilterInputService(e){return this.allowedCharPattern=Zu(e.filterParams),this.allowedCharPattern?this.createManagedBean(new dp({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new hA)}convertValue(e){return e?Number(e):null}},yp=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],gA=class extends gc{constructor(){super("textFilter",i1,yp),this.filterType="text",this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}createCondition(e){const t=this.getConditionType(e),i={filterType:this.filterType,type:t},s=this.getValues(e);return s.length>0&&(i.filter=s[0]),s.length>1&&(i.filterTo=s[1]),i}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){const{eValuesFrom:t,eValuesTo:i}=this;return e>=t.length?[null,null]:[t[e],i[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(i,s,o,n)=>{s<n&&t.push(Yi(i.getValue()))}),t}createEValue(){const e=Jt({tag:"div",cls:"ag-filter-body",role:"presentation"}),{eValuesFrom:t,eValuesTo:i}=this;return this.createFromToElement(e,t,"from"),this.createFromToElement(e,i,"to"),e}createFromToElement(e,t,i){const s=this.createManagedBean(new ts);s.addCss(`ag-filter-${i}`),s.addCss("ag-filter-filter"),t.push(s),e.appendChild(s.getGui())}removeEValues(e,t){const i=n=>this.removeComponents(n,e,t),{eValuesFrom:s,eValuesTo:o}=this;i(s),i(o)}},p1=class extends fc{constructor(){super(...arguments),this.filterTypeKeys=I8}conditionToString(e,t,i,s,o){const{filter:n,filterTo:r,type:a}=e;if(t){const l=d=>()=>vi(this,"filterSummaryTextQuote",[d]),c=this.conditionForToolPanel(a,i,l(n),l(r),s,o);if(c!=null)return c}return i?`${n}-${r}`:n!=null?`${n}`:`${a}`}},fA=({filterOption:e,value:t,filterText:i})=>{if(i==null)return!1;switch(e){case"contains":return t.includes(i);case"notContains":return!t.includes(i);case"equals":return t===i;case"notEqual":return t!=i;case"startsWith":return t.indexOf(i)===0;case"endsWith":{const s=t.lastIndexOf(i);return s>=0&&s===t.length-i.length}default:return!1}},mA=e=>e,vA=e=>e==null?null:e.toString().toLowerCase(),CA=class extends e1{constructor(){super(i1,yp),this.filterType="text",this.FilterModelFormatterClass=p1}updateParams(e){super.updateParams(e);const t=e.filterParams;this.matcher=t.textMatcher??fA,this.formatter=t.textFormatter??(t.caseSensitive?mA:vA)}evaluateNullValue(e){return e?["notEqual","notContains","blank"].indexOf(e)>=0:!1}evaluateNonNullValue(e,t,i,s){const o=e.map(h=>this.formatter(h))||[],n=this.formatter(t),{api:r,colDef:a,column:l,context:c,filterParams:{textFormatter:d}}=this.params;if(i.type==="blank")return Gl(t);if(i.type==="notBlank")return!Gl(t);const u={api:r,colDef:a,column:l,context:c,node:s.node,data:s.data,filterOption:i.type,value:n,textFormatter:d};return o.some(h=>this.matcher({...u,filterText:h}))}processModelToApply(e){if(e&&this.params.filterParams.trimInput){const t=i=>{const s={...i},{filter:o,filterTo:n}=i;return o&&(s.filter=$u(o)??null),n&&(s.filterTo=$u(n)??null),s};return oC(e)?{...e,conditions:e.conditions.map(t)}:t(e)}return e}},wA=class extends up{constructor(){super(...arguments),this.FilterModelFormatterClass=p1,this.filterType="text",this.defaultOptions=yp}createFloatingFilterInputService(){return this.createManagedBean(new dp)}};function bA(e){return!!e.quickFilter?.isFilterPresent()}function xA(e){return e.quickFilter?.getText()}function yA(e){e.quickFilter?.resetCache()}var SA=class extends B{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",i=>this.setFilter(i.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:i,pivotResultCols:s}=this.beans,o=t.isPivotMode(),n=e?.getColumns(),r=t.getColDefCols();let a=(o&&!i.get("applyQuickFilterBeforePivotOrAgg")?s?.getPivotResultCols()?.list:r)??[];n&&(a=a.concat(n)),this.colsToUse=i.get("includeHiddenColumnsInQuickFilter")?a:a.filter(l=>l.isVisible()||l.isRowGroupActive())}isFilterPresent(){return this.quickFilter!==null}doesRowPass(e){const t=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassMatcher(t,e):this.quickFilterParts.every(i=>t?this.doesRowPassCache(e,i):this.doesRowPassNoCache(e,i))}resetCache(){this.beans.rowModel.forEachNode(e=>e.quickFilterAggregateText=null)}getText(){return this.gos.get("quickFilterText")}setFilterParts(){const{quickFilter:e,parser:t}=this;e?this.quickFilterParts=t?t(e):e.split(" "):this.quickFilterParts=null}parseFilter(e){return te(e)?e.toUpperCase():null}setFilter(e){if(e!=null&&typeof e!="string"){$(70,{newFilter:e});return}const t=this.parseFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}setParserAndMatcher(){const e=this.gos.get("quickFilterParser"),t=this.gos.get("quickFilterMatcher"),i=e!==this.parser||t!==this.matcher;this.parser=e,this.matcher=t,i&&(this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onColumnConfigChanged(){this.refreshCols(),this.resetCache(),this.isFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassNoCache(e,t){return this.colsToUse.some(i=>{const s=this.getTextForColumn(i,e);return te(s)&&s.includes(t)})}doesRowPassCache(e,t){return this.checkGenerateAggText(e),e.quickFilterAggregateText.includes(t)}doesRowPassMatcher(e,t){let i;e?(this.checkGenerateAggText(t),i=t.quickFilterAggregateText):i=this.getAggText(t);const{quickFilterParts:s,matcher:o}=this;return o(s,i)}checkGenerateAggText(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getAggText(e))}getTextForColumn(e,t){let i=this.beans.filterValueSvc.getValue(e,t);const s=e.getColDef();if(s.getQuickFilterText){const o=xe(this.gos,{value:i,node:t,data:t.data,column:e,colDef:s});i=s.getQuickFilterText(o)}return te(i)?i.toString().toUpperCase():null}getAggText(e){const t=[];for(const i of this.colsToUse){const s=this.getTextForColumn(i,e);te(s)&&t.push(s)}return t.join(`
66
- `)}},RA={moduleName:"ClientSideRowModelFilter",version:Q,rowModels:["clientSide"],beans:[vk]},Sp={moduleName:"FilterCore",version:Q,beans:[p8],apiFunctions:{isAnyFilterPresent:u8,onFilterChanged:h8},css:[_M],dependsOn:[RA]},g1={moduleName:"FilterValue",version:Q,beans:[x8]},Kr={moduleName:"ColumnFilter",version:Q,beans:[d8,b8],dynamicBeans:{headerFilterCellCtrl:GM},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:UM,getColumnFilterInstance:$M,destroyFilter:qM,setFilterModel:KM,getFilterModel:YM,getColumnFilterModel:ZM,setColumnFilterModel:XM,showColumnFilter:QM,hideColumnFilter:JM,getColumnFilterHandler:e8,doFilterAction:t8},dependsOn:[Sp,uc,g1,jM]},FA={moduleName:"CustomFilter",version:Q,userComponents:{agReadOnlyFloatingFilter:S8},dependsOn:[Kr]},EA={moduleName:"TextFilter",version:Q,dependsOn:[Kr],userComponents:{agTextColumnFilter:{classImp:gA,params:{useForm:!0}},agTextColumnFloatingFilter:wA},dynamicBeans:{agTextColumnFilterHandler:CA}},DA={moduleName:"NumberFilter",version:Q,dependsOn:[Kr],userComponents:{agNumberColumnFilter:{classImp:cA,params:{useForm:!0}},agNumberColumnFloatingFilter:pA},dynamicBeans:{agNumberColumnFilterHandler:uA}},PA={moduleName:"BigIntFilter",version:Q,dependsOn:[Kr],userComponents:{agBigIntColumnFilter:{classImp:T8,params:{useForm:!0}},agBigIntColumnFloatingFilter:L8},dynamicBeans:{agBigIntColumnFilterHandler:M8}},TA={moduleName:"DateFilter",version:Q,dependsOn:[Kr],userComponents:{agDateColumnFilter:{classImp:O8,params:{useForm:!0}},agDateInput:lA,agDateColumnFloatingFilter:rA},dynamicBeans:{agDateColumnFilterHandler:B8}},kA={moduleName:"QuickFilterCore",version:Q,rowModels:["clientSide"],beans:[SA],dependsOn:[Sp,g1]},IA={moduleName:"QuickFilter",version:Q,apiFunctions:{isQuickFilterPresent:bA,getQuickFilter:xA,resetQuickFilter:yA},dependsOn:[kA]},MA={moduleName:"ExternalFilter",version:Q,dependsOn:[Sp]},AA=class extends B{constructor(e,t,i){super(),this.id=e,this.parentCache=t,this.params=i,this.state="needsLoading",this.version=0,this.startRow=e*i.blockSize,this.endRow=this.startRow+i.blockSize}load(){this.state="loading",this.loadFromDatasource()}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}pageLoadFailed(e){this.isRequestMostRecentAndLive(e)&&(this.state="failed"),this.dispatchLocalEvent({type:"loadComplete"})}pageLoaded(e,t,i){this.successCommon(e,{rowData:t,rowCount:i})}isRequestMostRecentAndLive(e){const t=e===this.version,i=this.isAlive();return t&&i}successCommon(e,t){this.dispatchLocalEvent({type:"loadComplete"}),this.isRequestMostRecentAndLive(e)&&(this.state="loaded",this.processServerResult(t))}postConstruct(){this.rowNodes=[];const{params:{blockSize:e,rowHeight:t},startRow:i,beans:s,rowNodes:o}=this;for(let n=0;n<e;n++){const r=i+n,a=new Ds(s);a.setRowHeight(t),a.uiLevel=0,a.setRowIndex(r),a.setRowTop(t*r),o.push(a)}}getBlockStateJson(){const{id:e,startRow:t,endRow:i,state:s}=this;return{id:""+e,state:{blockNumber:e,startRow:t,endRow:i,pageStatus:s}}}setDataAndId(e,t,i){te(t)?e.setDataAndId(t,i.toString()):e.setDataAndId(void 0,void 0)}loadFromDatasource(){const e=this.createLoadParams();if(it(this.params.datasource.getRows)){$(90);return}window.setTimeout(()=>{this.params.datasource.getRows(e)},0)}createLoadParams(){const{startRow:e,endRow:t,version:i,params:{sortModel:s,filterModel:o},gos:n}=this;return xe(n,{startRow:e,endRow:t,successCallback:this.pageLoaded.bind(this,i),failCallback:this.pageLoadFailed.bind(this,i),sortModel:s,filterModel:o})}forEachNode(e,t,i){this.rowNodes.forEach((s,o)=>{this.startRow+o<i&&e(s,t.value++)})}getRow(e,t=!1){t||(this.lastAccessed=this.params.lastAccessedSequence.value++);const i=e-this.startRow;return this.rowNodes[i]}processServerResult(e){const{rowNodes:t,beans:i}=this;t.forEach((o,n)=>{const r=e.rowData?e.rowData[n]:void 0;!o.id&&o.alreadyRendered&&r&&(t[n]=new Ds(i),t[n].setRowIndex(o.rowIndex),t[n].setRowTop(o.rowTop),t[n].setRowHeight(o.rowHeight),o._destroy(!0)),this.setDataAndId(t[n],r,this.startRow+n)});const s=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,s)}destroy(){const e=this.rowNodes;for(let t=0,i=e.length;t<i;t++)e[t]._destroy(!1);e.length=0,super.destroy()}},LA=2,OA=class extends B{constructor(e){super(),this.params=e,this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=e.initialRowCount}getRow(e,t=!1){const i=Math.floor(e/this.params.blockSize);let s=this.blocks[i];if(!s){if(t)return;s=this.createBlock(i)}return s.getRow(e)}createBlock(e){const t=this.params,i=this.createBean(new AA(e,this,t));return this.blocks[i.id]=i,this.blockCount++,this.purgeBlocksIfNeeded(i),t.rowNodeBlockLoader.addBlock(i),i}refreshCache(){if(this.blockCount==0){this.purgeCache();return}for(const t of this.getBlocksInOrder())t.setStateWaitingToLoad();this.params.rowNodeBlockLoader.checkBlockToLoad()}destroy(){for(const e of this.getBlocksInOrder())this.destroyBlock(e);super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(e,t){this.isAlive()&&(ho(this.gos,`InfiniteCache - onPageLoaded: page = ${e.id}, lastRow = ${t}`),this.checkRowCount(e,t),this.onCacheUpdated())}purgeBlocksIfNeeded(e){const t=this.getBlocksInOrder().filter(r=>r!=e),i=(r,a)=>a.lastAccessed-r.lastAccessed;t.sort(i);const s=this.params.maxBlocksInCache>0,o=s?this.params.maxBlocksInCache-1:null,n=LA-1;t.forEach((r,a)=>{const l=r.state==="needsLoading"&&a>=n,c=s?a>=o:!1;if(l||c){if(this.isBlockCurrentlyDisplayed(r)||this.isBlockFocused(r))return;this.removeBlockFromCache(r)}})}isBlockFocused(e){const t=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!t||t.rowPinned!=null)return!1;const{startRow:i,endRow:s}=e;return t.rowIndex>=i&&t.rowIndex<s}isBlockCurrentlyDisplayed(e){const{startRow:t,endRow:i}=e;return this.beans.rowRenderer.isRangeInRenderedViewport(t,i-1)}removeBlockFromCache(e){e&&this.destroyBlock(e)}checkRowCount(e,t){if(typeof t=="number"&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){const{blockSize:i,overflowSize:s}=this.params,n=(e.id+1)*i+s;this.rowCount<n&&(this.rowCount=n)}}setRowCount(e,t){this.rowCount=e,te(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(e){const t={value:0};for(const i of this.getBlocksInOrder())i.forEachNode(e,t,this.rowCount)}getBlocksInOrder(){const e=(i,s)=>i.id-s.id;return Object.values(this.blocks).sort(e)}destroyBlock(e){delete this.blocks[e.id],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)}onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventSvc.dispatchEvent({type:"storeUpdated"}))}destroyAllBlocksPastVirtualRowCount(){const e=[];for(const t of this.getBlocksInOrder())t.id*this.params.blockSize>=this.rowCount&&e.push(t);if(e.length>0)for(const t of e)this.destroyBlock(t)}purgeCache(){for(const e of this.getBlocksInOrder())this.removeBlockFromCache(e);this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(e,t){const i=[];let s=-1,o=!1;const n={value:0};let r=!1;for(const l of this.getBlocksInOrder())if(!r){if(o&&s+1!==l.id){r=!0;continue}s=l.id,l.forEachNode(c=>{const d=c===e||c===t;(o||d)&&i.push(c),d&&(o=!o)},n,this.rowCount)}return r||o?[]:i}},NA=class extends B{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.hierarchical=!1}getRowBounds(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}}ensureRowHeightsValid(){return!1}postConstruct(){if(this.gos.get("rowModelType")!=="infinite")return;const e=this.beans,t=new Ds(e);this.rootNode=t,t.level=-1,this.rowHeight=io(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=io(this.beans),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()})}onColumnEverything(){let e;this.cacheParams?e=!Fr(this.cacheParams.sortModel,this.beans.sortSvc?.getSortModel()??[]):e=!0,e&&this.reset()}getType(){return"infinite"}setDatasource(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getOverlayType(){return this.infiniteCache?.getRowCount()===0?this.beans.filterManager?.isAnyFilterPresent()?"noMatchingRows":"noRows":null}getNodesInRangeForSelection(e,t){return this.infiniteCache?.getRowNodesInRange(e,t)??[]}reset(){if(!this.datasource)return;wn(this.gos)!=null||this.beans.selectionSvc?.reset("rowDataChanged"),this.resetCache()}dispatchModelUpdatedEvent(){this.eventSvc.dispatchEvent({type:"modelUpdated",newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){this.destroyCache();const e=this.beans,{filterManager:t,sortSvc:i,rowNodeBlockLoader:s,eventSvc:o,gos:n}=e;this.cacheParams={datasource:this.datasource,filterModel:t?.getFilterModel()??{},sortModel:i?.getSortModel()??[],rowNodeBlockLoader:s,initialRowCount:n.get("infiniteInitialRowCount"),maxBlocksInCache:n.get("maxBlocksInCache"),rowHeight:io(e),overflowSize:n.get("cacheOverflowSize"),blockSize:n.get("cacheBlockSize"),lastAccessedSequence:{value:0}},this.infiniteCache=this.createBean(new OA(this.cacheParams)),o.dispatchEventOnce({type:"rowCountReady"}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode(e=>{e.setRowHeight(this.rowHeight),e.setRowTop(this.rowHeight*e.rowIndex)}),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache=this.destroyBean(this.infiniteCache)}getRow(e){const t=this.infiniteCache;if(t&&!(e>=t.getRowCount()))return t.getRow(e)}getRowNode(e){let t;return this.forEachNode(i=>{i.id===e&&(t=i)}),t}forEachNode(e){this.infiniteCache?.forEachNodeDeep(e)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}getRowIndexAtPixel(e){if(this.rowHeight!==0){const t=Math.floor(e/this.rowHeight),i=this.getRowCount()-1;return t>i?i: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 HA(e){ac(e)?.refreshCache()}function BA(e){ac(e)?.purgeCache()}function GA(e){return ac(e)?.getRowCount()}var VA=class extends B{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=z2(this.gos);const e=this.gos.get("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=ct(this,this.performCheckBlocksToLoad.bind(this),e))}addBlock(e){this.blocks.push(e),e.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){Hi(this.blocks,e)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad()}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){ho(this.gos,"RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");return}const e=this.maxConcurrentRequests!=null?this.maxConcurrentRequests-this.activeBlockLoadsCount:1,t=this.blocks.filter(i=>i.state==="needsLoading").slice(0,e);this.activeBlockLoadsCount+=t.length;for(const i of t)i.load();this.printCacheStatus()}getBlockState(){const e={};return this.blocks.forEach(t=>{const{id:i,state:s}=t.getBlockStateJson();e[i]=s}),e}printCacheStatus(){ho(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}},zA={moduleName:"InfiniteRowModelCore",version:Q,rowModels:["infinite"],beans:[NA,VA]},WA={moduleName:"InfiniteRowModel",version:Q,apiFunctions:{refreshInfiniteCache:HA,purgeInfiniteCache:BA,getInfiniteRowCount:GA},dependsOn:[zA,dk]},jA=class extends B{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 i=this.wrapSvc?.wrap(e,t)??t,s=!rl.has(e),o=s?this.asyncListeners:this.syncListeners;o.has(e)||o.set(e,new Set),o.get(e).add(i),this.eventSvc.addListener(e,i,s)}removeListener(e,t){const i=this.wrapSvc?.unwrap(e,t)??t,o=!!this.asyncListeners.get(e)?.delete(i);o||this.syncListeners.get(e)?.delete(i),this.eventSvc.removeListener(e,i,o)}addGlobalListener(e){const t=this.wrapSvc?.wrapGlobal(e)??e,i=(n,r)=>{rl.has(n)&&t(n,r)},s=(n,r)=>{rl.has(n)||t(n,r)};this.globalListenerPairs.set(e,{syncListener:i,asyncListener:s});const o=this.eventSvc;o.addGlobalListener(i,!1),o.addGlobalListener(s,!0)}removeGlobalListener(e){const{eventSvc:t,wrapSvc:i,globalListenerPairs:s}=this,o=i?.unwrapGlobal(e)??e;if(s.has(o)){const{syncListener:r,asyncListener:a}=s.get(o);t.removeGlobalListener(r,!1),t.removeGlobalListener(a,!0),s.delete(e)}else this.syncGlobalListeners.delete(o),t.removeGlobalListener(o,!1)}destroyEventListeners(e,t){e.forEach((i,s)=>{i.forEach(o=>this.eventSvc.removeListener(s,o,t)),i.clear()}),e.clear()}destroyGlobalListeners(e,t){for(const i of e)this.eventSvc.removeGlobalListener(i,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:i,asyncListener:s})=>{t.removeGlobalListener(i,!1),t.removeGlobalListener(s,!0)}),e.clear()}};function _A(e,t,i){e.apiEventSvc?.addListener(t,i)}function UA(e,t,i){e.apiEventSvc?.removeListener(t,i)}function $A(e,t){e.apiEventSvc?.addGlobalListener(t)}function qA(e,t){e.apiEventSvc?.removeGlobalListener(t)}var KA={moduleName:"EventApi",version:Q,apiFunctions:{addEventListener:_A,addGlobalListener:$A,removeEventListener:UA,removeGlobalListener:qA},beans:[jA]},YA=class extends B{constructor(){super(...arguments),this.beanName="localeSvc"}getLocaleTextFunc(){const e=this.gos,t=e.getCallback("getLocaleText");return t?u2(t):h2(e.get("localeText"))}},ZA={moduleName:"Locale",version:Q,beans:[YA]};function XA(e){return e.stateSvc?.getState()??{}}function QA(e,t,i){return e.stateSvc?.setState(t,i)}function sm(e){return e={...e},e.version||(e.version="32.1.0"),e.version==="32.1.0"&&(e=JA(e)),e.version=Q,e}function JA(e){return e.cellSelection=e7(e,"rangeSelection"),e}function e7(e,t){if(e&&typeof e=="object")return e[t]}var t7=class extends B{constructor(){super(...arguments),this.beanName="stateSvc",this.updateRowGroupExpansionStateTimer=0,this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=ct(this,()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=ct(this,()=>this.updateGroupExpansionState(),0),this.onRowSelectedDebounced=ct(this,()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}postConstruct(){const{gos:e,ctrlsSvc:t,colDelayRenderSvc:i}=this.beans;this.isClientSideRowModel=st(e);const s=sm(e.get("initialState")??{}),o=s.partialColumnState;delete s.partialColumnState,this.cachedState=s;const n=this.suppressEventsAndDispatchInitEvent.bind(this);t.whenReady(this,()=>n(()=>this.setupStateOnGridReady(s))),(s.columnOrder||s.columnVisibility||s.columnSizing||s.columnPinning||s.columnGroup)&&i?.hideColumns("columnState");const[r,a,l]=this.addManagedEventListeners({newColumnsLoaded:({source:c})=>{c==="gridInitializing"&&(r(),n(()=>{this.setupStateOnColumnsInitialised(s,!!o),i?.revealColumns("columnState")}))},rowCountReady:()=>{a?.(),n(()=>this.setupStateOnRowCountReady(s))},firstDataRendered:()=>{l?.(),n(()=>this.setupStateOnFirstDataRendered(s))}})}destroy(){super.destroy(),clearTimeout(this.updateRowGroupExpansionStateTimer),this.queuedUpdateSources.clear()}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setState(e,t){const i=sm(e);delete i.partialColumnState,this.cachedState=i,this.startSuppressEvents();const s="api",o=t?new Set(t):void 0;this.setGridReadyState(i,s,o),this.setColumnsInitialisedState(i,s,!!o,o),this.setRowCountState(i,s,o),setTimeout(()=>{this.isAlive()&&this.setFirstDataRenderedState(i,s,o),this.stopSuppressEvents(s)})}setGridReadyState(e,t,i){t==="api"&&!i?.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,i,s){this.setColumnState(e,t,i,s),this.setColumnGroupState(e,t,s),this.updateColumnAndGroupState()}setupStateOnColumnsInitialised(e,t){this.setColumnsInitialisedState(e,"gridInitializing",t);const i=s=>()=>this.updateColumnState([s]);this.addManagedEventListeners({columnValueChanged:i("aggregation"),columnMoved:i("columnOrder"),columnPinned:i("columnPinning"),columnResized:i("columnSizing"),columnVisible:i("columnVisibility"),columnPivotChanged:i("pivot"),columnPivotModeChanged:i("pivot"),columnRowGroupChanged:i("rowGroup"),sortChanged:i("sort"),newColumnsLoaded:({source:s})=>{this.updateColumnAndGroupState(),s!=="gridInitializing"&&this.isClientSideRowModel&&this.onRowGroupOpenedDebounced()},columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setRowCountState(e,t,i){const{filter:s,rowGroupExpansion:o,ssrmRowGroupExpansion:n,rowSelection:r,pagination:a,rowPinning:l}=e,c=(u,h)=>!i?.has(u)&&(h||t==="api");c("filter",s)&&this.setFilterState(s),(c("rowGroupExpansion",o)||c("ssrmRowGroupExpansion",n))&&this.setRowGroupExpansionState(n,o,t),c("rowSelection",r)&&this.setRowSelectionState(r,t),c("pagination",a)&&this.setPaginationState(a,t),c("rowPinning",l)&&this.setRowPinningState(l);const d=this.updateCachedState.bind(this);d("filter",this.getFilterState()),this.updateGroupExpansionState(),d("rowSelection",this.getRowSelectionState()),d("pagination",this.getPaginationState())}setupStateOnRowCountReady(e){this.setRowCountState(e,"gridInitializing");const t=this.updateCachedState.bind(this),i=()=>{this.updateRowGroupExpansionStateTimer=0,this.updateGroupExpansionState()},s=()=>t("filter",this.getFilterState()),{gos:o,colFilter:n,selectableFilter:r}=this.beans;this.addManagedEventListeners({filterChanged:s,rowExpansionStateChanged:this.onRowGroupOpenedDebounced,expandOrCollapseAll:i,columnRowGroupChanged:i,rowDataUpdated:()=>{(o.get("groupDefaultExpanded")!==0||o.get("isGroupOpenByDefault"))&&(this.updateRowGroupExpansionStateTimer||(this.updateRowGroupExpansionStateTimer=setTimeout(i)))},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:a=>{(a.newPage||a.newPageSize)&&t("pagination",this.getPaginationState())},pinnedRowsChanged:()=>t("rowPinning",this.getRowPinningState())}),n&&this.addManagedListeners(n,{filterStateChanged:s}),r&&this.addManagedListeners(r,{selectedFilterChanged:s})}setFirstDataRenderedState(e,t,i){const{scroll:s,cellSelection:o,focusedCell:n,columnOrder:r}=e,a=(d,u)=>!i?.has(d)&&(u||t==="api");a("focusedCell",n)&&this.setFocusedCellState(n),a("cellSelection",o)&&this.setCellSelectionState(o),a("scroll",s)&&this.setScrollState(s),this.setColumnPivotState(!!r?.orderedColIds,t);const l=this.updateCachedState.bind(this);l("sideBar",this.getSideBarState()),l("focusedCell",this.getFocusedCellState());const c=this.getRangeSelectionState();l("rangeSelection",c),l("cellSelection",c),l("scroll",this.getScrollState())}setupStateOnFirstDataRendered(e){this.setFirstDataRenderedState(e,"gridInitializing");const t=this.updateCachedState.bind(this),i=()=>t("focusedCell",this.getFocusedCellState());this.addManagedEventListeners({cellFocused:i,cellFocusCleared:i,cellSelectionChanged:s=>{if(s.finished){const o=this.getRangeSelectionState();t("rangeSelection",o),t("cellSelection",o)}},bodyScrollEnd:()=>t("scroll",this.getScrollState())})}getColumnState(){const e=this.beans;return BT(Al(e),e.colModel.isPivotMode())}setColumnState(e,t,i,s){const{sort:o,rowGroup:n,aggregation:r,pivot:a,columnPinning:l,columnVisibility:c,columnSizing:d,columnOrder:u}=e;let h=!1;const p=(P,k)=>{const O=!s?.has(P)&&!!(k||t==="api");return h||(h=O),O},m={},v=P=>{let k=m[P];return k||(k={colId:P},m[P]=k,k)},C={},w=p("sort",o);w&&o?.sortModel.forEach(({colId:P,sort:k,type:O},_)=>{const L=v(P);L.sort=k,L.sortIndex=_,L.sortType=O}),(w||!i)&&(C.sort=null,C.sortIndex=null);const b=p("rowGroup",n);b&&n?.groupColIds.forEach((P,k)=>{const O=v(P);O.rowGroup=!0,O.rowGroupIndex=k}),(b||!i)&&(C.rowGroup=null,C.rowGroupIndex=null);const x=p("aggregation",r);x&&r?.aggregationModel.forEach(({colId:P,aggFunc:k})=>{v(P).aggFunc=k}),(x||!i)&&(C.aggFunc=null);const y=p("pivot",a);y&&(a?.pivotColIds.forEach((P,k)=>{const O=v(P);O.pivot=!0,O.pivotIndex=k}),this.gos.updateGridOptions({options:{pivotMode:!!a?.pivotMode},source:t})),(y||!i)&&(C.pivot=null,C.pivotIndex=null);const S=p("columnPinning",l);if(S){for(const P of l?.leftColIds??[])v(P).pinned="left";for(const P of l?.rightColIds??[])v(P).pinned="right"}(S||!i)&&(C.pinned=null);const E=p("columnVisibility",c);if(E)for(const P of c?.hiddenColIds??[])v(P).hide=!0;(E||!i)&&(C.hide=null);const R=p("columnSizing",d);if(R)for(const{colId:P,flex:k,width:O}of d?.columnSizingModel??[]){const _=v(P);_.flex=k??null,_.width=O}(R||!i)&&(C.flex=null);const F=u?.orderedColIds,D=!!F?.length&&!s?.has("columnOrder"),T=D?F.map(P=>v(P)):Object.values(m);(T.length||h)&&(this.columnStates=T,xi(this.beans,{state:T,applyOrder:D,defaultState:C},t))}setColumnPivotState(e,t){const i=this.columnStates;this.columnStates=void 0;const s=this.columnGroupStates;this.columnGroupStates=void 0;const o=this.beans,{pivotResultCols:n,colGroupSvc:r}=o;if(n?.isPivotResultColsPresent()){if(i){const a=[];for(const l of i)n.getPivotResultCol(l.colId)&&a.push(l);xi(o,{state:a,applyOrder:e},t)}s&&r?.setColumnGroupState(s,t)}}getColumnGroupState(){const e=this.beans.colGroupSvc;if(!e)return;const t=e.getColumnGroupState();return GT(t)}setColumnGroupState(e,t,i){const s=this.beans.colGroupSvc;if(!s||i?.has("columnGroup")||t!=="api"&&!Object.prototype.hasOwnProperty.call(e,"columnGroup"))return;const o=new Set(e.columnGroup?.openColumnGroupIds),r=s.getColumnGroupState().map(({groupId:a})=>{const l=o.has(a);return l&&o.delete(a),{groupId:a,open:l}});for(const a of o)r.push({groupId:a,open:!0});r.length&&(this.columnGroupStates=r),s.setColumnGroupState(r,t)}getFilterState(){const{filterManager:e,selectableFilter:t}=this.beans;let i=e?.getFilterModel();i&&Object.keys(i).length===0&&(i=void 0);const s=e?.getFilterState(),o=e?.getAdvFilterModel()??void 0,n=t?.getState();return i||o||s||n?{filterModel:i,columnFilterState:s,advancedFilterModel:o,selectableFilters:n}:void 0}setFilterState(e){const{filterManager:t,selectableFilter:i}=this.beans,{filterModel:s,columnFilterState:o,advancedFilterModel:n,selectableFilters:r}=e??{filterModel:null,columnFilterState:null,advancedFilterModel:null};r!==void 0&&i?.setState(r??{}),(s!==void 0||o!==void 0)&&t?.setFilterState(s??null,o??null,"columnFilter"),n!==void 0&&t?.setAdvFilterModel(n??null,"advancedFilter")}getRangeSelectionState(){const e=this.beans.rangeSvc?.getCellRanges().map(t=>{const{id:i,type:s,startRow:o,endRow:n,columns:r,startColumn:a}=t;return{id:i,type:s,startRow:o,endRow:n,colIds:r.map(l=>l.getColId()),startColId:a.getColId()}});return e?.length?{cellRanges:e}:void 0}setCellSelectionState(e){const{gos:t,rangeSvc:i,colModel:s,visibleCols:o}=this.beans;if(!Fs(t)||!i)return;const n=[];for(const r of e?.cellRanges??[]){const a=[];for(const c of r.colIds){const d=s.getCol(c);d&&a.push(d)}if(!a.length)continue;let l=s.getCol(r.startColId);if(!l){const c=o.allCols,d=new Set(a);l=c.find(u=>d.has(u))}n.push({...r,columns:a,startColumn:l})}i.setCellRanges(n)}getScrollState(){if(!this.isClientSideRowModel)return;const e=this.beans.ctrlsSvc.getScrollFeature(),{left:t}=e?.getHScrollPosition()??{left:0},{top:i}=e?.getVScrollPosition()??{top:0};return i||t?{top:i,left:t}:void 0}setScrollState(e){if(!this.isClientSideRowModel)return;const{top:t,left:i}=e??{top:0,left:0},{frameworkOverrides:s,rowRenderer:o,animationFrameSvc:n,ctrlsSvc:r}=this.beans;s.wrapIncoming(()=>{r.get("center").setCenterViewportScrollLeft(i),r.getScrollFeature()?.setVerticalScrollPosition(t),o.redraw({afterScroll:!0}),n?.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:i,rowPinned:s}=e;return{colId:t.getColId(),rowIndex:i,rowPinned:s}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;const{focusSvc:t,colModel:i}=this.beans;if(!e){t.clearFocusedCell();return}const{colId:s,rowIndex:o,rowPinned:n}=e;t.setFocusedCell({column:i.getCol(s),rowIndex:o,rowPinned:n,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){const{pagination:e,gos:t}=this.beans;if(!e)return;const i=e.getCurrentPage(),s=t.get("paginationAutoPageSize")?void 0:e.getPageSize();if(!(!i&&!s))return{page:i,pageSize:s}}setPaginationState(e,t){const{pagination:i,gos:s}=this.beans;if(!i)return;const{pageSize:o,page:n}=e??{page:0,pageSize:s.get("paginationPageSize")},r=t==="gridInitializing";o&&!s.get("paginationAutoPageSize")&&i.setPageSize(o,r?"initialState":"pageSizeSelector"),typeof n=="number"&&(r?i.setPage(n):i.goToPage(n))}getRowSelectionState(){const e=this.beans.selectionSvc;if(!e)return;const t=e.getSelectionState();return!t||!Array.isArray(t)&&(t.selectAll===!1||t.selectAllChildren===!1)&&!t?.toggledNodes?.length?void 0:t}setRowSelectionState(e,t){this.beans.selectionSvc?.setSelectionState(e,t,t==="api")}updateGroupExpansionState(){const{expansionSvc:e,gos:t}=this.beans,i=e?.getExpansionState(),s=t.get("ssrmExpandAllAffectsAllRows");this.updateCachedState("ssrmRowGroupExpansion",s?i:void 0),this.updateCachedState("rowGroupExpansion",s?void 0:i)}getRowPinningState(){return this.beans.pinnedRowModel?.getPinnedState()}setRowPinningState(e){const t=this.beans.pinnedRowModel;e?t?.setPinnedState(e):t?.reset()}setRowGroupExpansionState(e,t,i){const s=e??t??{expandedRowGroupIds:[],collapsedRowGroupIds:[]};this.beans.expansionSvc?.setExpansionState(s,i)}updateColumnState(e){const t=this.getColumnState();let i=!1;const s=this.cachedState;for(const o of Object.keys(t)){const n=t[o];Fr(n,s[o])||(i=!0)}this.cachedState={...s,...t},i&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,t){const i=this.cachedState[e];this.setCachedStateValue(e,t),Fr(t,i)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,t){this.cachedState={...this.cachedState,[e]:t}}refreshStaleState(){const e=this.staleStateKeys;for(const t of e)t==="rowSelection"&&this.setCachedStateValue(t,this.getRowSelectionState());e.clear()}dispatchStateUpdateEvent(e){if(!this.suppressEvents){for(const t of e)this.queuedUpdateSources.add(t);this.dispatchStateUpdateEventDebounced()}}dispatchQueuedStateUpdateEvents(){const e=this.queuedUpdateSources,t=Array.from(e);e.clear(),this.eventSvc.dispatchEvent({type:"stateUpdated",sources:t,state:this.cachedState})}startSuppressEvents(){this.suppressEvents=!0,this.beans.colAnimation?.setSuppressAnimation(!0)}stopSuppressEvents(e){setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(this.beans.colAnimation?.setSuppressAnimation(!1),this.dispatchStateUpdateEvent([e]))})}suppressEventsAndDispatchInitEvent(e){this.startSuppressEvents(),e(),this.stopSuppressEvents("gridInitializing")}},i7={moduleName:"GridState",version:Q,beans:[t7],apiFunctions:{getState:XA,setState:QA}};function s7(e){return e.rowModel.isLastRowIndexKnown()}function o7(e){return e.pagination?.getPageSize()??100}function n7(e){return e.pagination?.getCurrentPage()??0}function r7(e){return e.pagination?.getTotalPages()??1}function a7(e){return e.pagination?e.pagination.getMasterRowCount():e.rowModel.getRowCount()}function l7(e){e.pagination?.goToNextPage()}function c7(e){e.pagination?.goToPreviousPage()}function d7(e){e.pagination?.goToFirstPage()}function u7(e){e.pagination?.goToLastPage()}function h7(e,t){e.pagination?.goToPage(t)}var p7=class extends B{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeSvc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowsCtrl=e.center;const t=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:t,scrollVisibilityChanged:t}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get("paginationAutoPageSize")||this.centerRowsCtrl==null}onPaginationAutoSizeChanged(){this.notActive()?this.beans.pagination.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;const e=this.centerRowsCtrl.viewportSizeFeature.getBodyHeight();if(e>0){const t=this.beans,i=()=>{const s=Math.max(io(t),1),o=Math.floor(e/s);t.pagination.setPageSize(o,"autoCalculated")};this.isBodyRendered?ct(this,i,50)():(i(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}};function g7(e,t){if(typeof e!="number")return"";const i=t(),s=i("thousandSeparator",","),o=i("decimalSeparator",".");return e.toString().replace(".",o).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${s}`)}var tr="paginationPageSizeSelector",f7={tag:"span",cls:"ag-paging-page-size"},m7=class extends ot{constructor(){super(f7),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(tr,()=>{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(){_t(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel")&&!this.gos.get("paginationAutoPageSize")&&this.gos.get(tr)!==!1}reloadPageSizesSelector(){const e=this.getPageSizeSelectorValues(),t=this.pagination.getPageSize(),i=!t||!e.includes(t);if(i){const o=this.gos.exists("paginationPageSize"),n=this.gos.get(tr)!==!0;$(94,{pageSizeSet:o,pageSizesSet:n,pageSizeOptions:e,paginationPageSizeOption:t}),n||$(95,{paginationPageSizeOption:t,paginationPageSizeSelector:tr}),e.unshift("")}const s=String(i?"":t);this.selectPageSizeComp?(Ms(this.pageSizeOptions,e)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(e)),this.pageSizeOptions=e),this.selectPageSizeComp.setValue(s,!0)):this.createPageSizeSelectorComp(e,s),this.hasEmptyOption=i}createPageSizeSelectOptions(e){return e.map(t=>({value:String(t)}))}createPageSizeSelectorComp(e,t){const i=this.getLocaleTextFunc(),s=i("pageSizeSelectorLabel","Page Size:"),o=i("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new np).addOptions(this.createPageSizeSelectOptions(e)).setValue(t).setAriaLabel(o).setLabel(s).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){const e=[20,50,100],t=this.gos.get(tr);return!Array.isArray(t)||!t?.length?e:[...t].sort((i,s)=>i-s)}destroy(){this.toggleSelectDisplay(!1),super.destroy()}},v7={selector:"AG-PAGE-SIZE-SELECTOR",component:m7},C7=".ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;flex-wrap:wrap-reverse;gap:calc(var(--ag-spacing)*4);justify-content:flex-end;min-height:var(--ag-pagination-panel-height);padding:calc(var(--ag-spacing)*.5) var(--ag-cell-horizontal-padding);row-gap:calc(var(--ag-spacing)*.5);@container (width < 600px){justify-content:center}}:where(.ag-paging-page-size) .ag-wrapper{min-width:50px}.ag-paging-page-summary-panel,.ag-paging-row-summary-panel{margin:calc(var(--ag-spacing)*.5)}.ag-paging-page-summary-panel{align-items:center;display:flex;gap:var(--ag-cell-widget-spacing);.ag-disabled &{pointer-events:none}}.ag-paging-button{cursor:pointer;position:relative;&.ag-disabled{cursor:default;opacity:.5}}.ag-paging-number,.ag-paging-row-summary-panel-number{font-weight:500}.ag-paging-description{line-height:0}",w7=class extends GF{constructor(){super(),this.btFirst=de,this.btPrevious=de,this.btNext=de,this.btLast=de,this.lbRecordCount=de,this.lbFirstRowOnPage=de,this.lbLastRowOnPage=de,this.lbCurrent=de,this.lbTotal=de,this.pageSizeComp=de,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1,this.registerCSS(C7)}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(),[v7]);const{btFirst:t,btPrevious:i,btNext:s,btLast:o}=this;this.activateTabIndex([t,i,s,o]),t.insertAdjacentElement("afterbegin",Wt(e?"last":"first",this.beans)),i.insertAdjacentElement("afterbegin",Wt(e?"next":"previous",this.beans)),s.insertAdjacentElement("afterbegin",Wt(e?"previous":"next",this.beans)),o.insertAdjacentElement("afterbegin",Wt(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:n=>this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(n):j3(this.beans,n),forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(e){this.allowFocusInnerElement=e}getFocusableContainerName(){return"pagination"}onPaginationChanged(){const t=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(t),t&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){if(!this.areListenersSetup){this.addManagedEventListeners({paginationChanged:this.onPaginationChanged.bind(this)});for(const e of[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}]){const{el:t,fn:i}=e;this.addManagedListeners(t,{click:i,keydown:s=>{(s.key===A.ENTER||s.key===A.SPACE)&&(s.preventDefault(),i())}})}W3(this.beans,this,this.getGui()),this.areListenersSetup=!0}}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}formatNumber(e){const t=this.gos.getCallback("paginationNumberFormatter");return t?t({value:e}):g7(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(),i=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=e===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);const s=this.isZeroPagesToDisplay(),o=e===i-1;this.nextButtonDisabled=o||s,this.lastButtonDisabled=!t||s||e===i-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){VS(e,t),e.classList.toggle("ag-disabled",t)}isZeroPagesToDisplay(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages();return e&&t===0}updateLabels(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages(),i=this.pagination.getMasterRowCount(),s=e?i:null,o=this.pagination.getCurrentPage(),n=this.pagination.getPageSize();let r,a;this.isZeroPagesToDisplay()?r=a=0:(r=n*o+1,a=r+n-1,e&&a>s&&(a=s));const l=r+n-1,c=!e&&i<l,d=this.formatNumber(r);this.lbFirstRowOnPage.textContent=d;let u;const h=this.getLocaleTextFunc();c?u=h("pageLastRowUnknown","?"):u=this.formatNumber(a),this.lbLastRowOnPage.textContent=u;const m=t>0?o+1:0,v=this.formatNumber(m);this.lbCurrent.textContent=v;let C,w;if(e)C=this.formatNumber(t),w=this.formatNumber(s);else{const b=h("more","more");C=b,w=b}this.lbTotal.textContent=C,this.lbRecordCount.textContent=w,this.announceAriaStatus(d,u,w,v,C)}announceAriaStatus(e,t,i,s,o){const n=this.getLocaleTextFunc(),r=n("page","Page"),a=n("to","to"),l=n("of","of"),c=`${e} ${a} ${t} ${l} ${i}`,d=`${r} ${s} ${l} ${o}`;c!==this.ariaRowStatus&&(this.ariaRowStatus=c,this.ariaAnnounce?.announceValue(c,"paginationRow")),d!==this.ariaPageStatus&&(this.ariaPageStatus=d,this.ariaAnnounce?.announceValue(d,"paginationPage"))}},b7={selector:"AG-PAGINATION",component:w7},x7=100,y7=class extends B{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 b7}isPaginateChildRows(){const e=this.gos;return e.get("groupHideParentOfSingleChild")||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")?!0:e.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(e){const t=this.currentPage;if(!this.active||t===e||typeof t!="number")return;const{editSvc:i}=this.beans;i?.isEditing()&&(i.isBatchEditing()?i.cleanupEditors():i.stopEditing(void 0,{source:"api"})),this.currentPage=e,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0})}goToPageWithIndex(e){if(!this.active)return;let t=e;this.paginateChildRows||(t=this.beans.rowModel.getTopLevelIndexFromDisplayedIndex?.(e)??e),this.goToPage(Math.floor(t/this.pageSize))}isRowInPage(e){return this.active?e>=this.topDisplayedRowIndex&&e<=this.bottomDisplayedRowIndex:!0}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){const e=this.beans.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){return te(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")?this.pageSizeAutoCalculated:te(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:te(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:te(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:x7}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(this.pageSizeAutoCalculated===void 0)return;const e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(e,t){const i=this.pageSize;switch(t){case"autoCalculated":this.pageSizeAutoCalculated=e;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=e,this.currentPage!==0&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=e;break;case"gridOptions":this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage();break}i!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){const e=this.totalPages;this.currentPage>=e&&(this.currentPage=e-1);const t=this.currentPage;(!isFinite(t)||isNaN(t)||t<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){const e=this.beans.rowModel,t=e.getTopLevelRowCount();if(this.masterRowCount=t,t<=0){this.setZeroRows();return}const i=this.pageSize,s=t-1;this.totalPages=Math.floor(s/i)+1,this.adjustCurrentPageIfInvalid();const o=this.currentPage,n=i*o;let r=i*(o+1)-1;if(r>s&&(r=s),this.topDisplayedRowIndex=e.getTopLevelRowDisplayedIndex(n),r===s)this.bottomDisplayedRowIndex=e.getRowCount()-1;else{const a=e.getTopLevelRowDisplayedIndex(r+1);this.bottomDisplayedRowIndex=a-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){const e=this.beans.rowModel.getRowCount();if(this.masterRowCount=e,e===0){this.setZeroRows();return}const{pageSize:t,currentPage:i}=this,s=e-1;this.totalPages=Math.floor(s/t)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=t*i,this.bottomDisplayedRowIndex=t*(i+1)-1,this.bottomDisplayedRowIndex>s&&(this.bottomDisplayedRowIndex=s)}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:i=!1,newPageSize:s=!1}=e;this.eventSvc.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:i,newPageSize:s,keepRenderedRows:t})}},S7={moduleName:"Pagination",version:Q,beans:[y7,p7],icons:{first:"first",previous:"previous",next:"next",last:"last"},apiFunctions:{paginationIsLastPageFound:s7,paginationGetPageSize:o7,paginationGetCurrentPage:n7,paginationGetTotalPages:r7,paginationGetRowCount:a7,paginationGoToNextPage:l7,paginationGoToPreviousPage:c7,paginationGoToFirstPage:d7,paginationGoToLastPage:u7,paginationGoToPage:h7},dependsOn:[uc]},R7=".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 F7(e){return e.pinnedRowModel?.getPinnedTopRowCount()??0}function E7(e){return e.pinnedRowModel?.getPinnedBottomRowCount()??0}function D7(e,t){return e.pinnedRowModel?.getPinnedTopRow(t)}function P7(e,t){return e.pinnedRowModel?.getPinnedBottomRow(t)}function T7(e,t,i){return e.pinnedRowModel?.forEachPinnedRow(t,i)}var k7={moduleName:"PinnedRow",version:Q,beans:[D3],css:[R7],apiFunctions:{getPinnedTopRowCount:F7,getPinnedBottomRowCount:E7,getPinnedTopRow:D7,getPinnedBottomRow:P7,forEachPinnedRow:T7},icons:{rowPin:"pin",rowPinTop:"pinned-top",rowPinBottom:"pinned-bottom",rowUnpin:"un-pin"}},I7="↑",M7="↓",A7={tag:"span",children:[{tag:"span",ref:"eDelta",cls:"ag-value-change-delta"},{tag:"span",ref:"eValue",cls:"ag-value-change-value"}]},L7=class extends ot{constructor(){super(A7),this.eValue=de,this.eDelta=de,this.refreshCount=0}init(e){this.refresh(e,!0)}showDelta(e,t){const i=Math.abs(t),s=e.formatValue(i),o=te(s)?s:i,n=t>=0,r=this.eDelta;n?r.textContent=I7+o:r.textContent=M7+o,r.classList.toggle("ag-value-change-delta-up",n),r.classList.toggle("ag-value-change-delta-down",!n)}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"),_t(this.eDelta)}refresh(e,t=!1){const{value:i,valueFormatted:s}=e,{eValue:o,lastValue:n,beans:r}=this;if(i===n||(te(s)?o.textContent=s:te(i)?o.textContent=i:_t(o),r.filterManager?.isSuppressFlashingCellsBecauseFiltering()))return!1;const a=i&&typeof i=="object"&&"toNumber"in i?i.toNumber():i,l=n&&typeof n=="object"&&"toNumber"in n?n.toNumber():n;if(a===l)return!1;if(typeof a=="number"&&typeof l=="number"){const c=a-l;this.showDelta(e,c)}return n&&o.classList.add("ag-value-change-value-highlight"),t||this.setTimerToRemoveDelta(),this.lastValue=i,!0}},O7=".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}",N7={tag:"span",children:[{tag:"span",ref:"eCurrent",cls:"ag-value-slide-current"}]},H7=class extends ot{constructor(){super(N7),this.eCurrent=de,this.refreshCount=0,this.registerCSS(O7)}init(e){this.refresh(e,!0)}addSlideAnimation(){this.refreshCount++;const e=this.refreshCount;this.ePrevious?.remove();const{beans:t,eCurrent:i}=this,s=Jt({tag:"span",cls:"ag-value-slide-previous ag-value-slide-out"});this.ePrevious=s,s.textContent=i.textContent,this.getGui().insertBefore(s,i),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 i=e.value;if(it(i)&&(i=""),i===this.lastValue||this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering())return!1;t||this.addSlideAnimation(),this.lastValue=i;const s=this.eCurrent;return te(e.valueFormatted)?s.textContent=e.valueFormatted:te(e.value)?s.textContent=i:_t(s),!0}},B7=class extends B{constructor(){super(...arguments),this.beanName="cellFlashSvc",this.nextAnimationTime=null,this.nextAnimationCycle=null,this.animations={highlight:new Map,"data-changed":new Map}}animateCell(e,t,i=this.beans.gos.get("cellFlashDuration"),s=this.beans.gos.get("cellFadeDuration")){const o=this.animations[t];o.delete(e);const n=Date.now(),r=n+i,a=n+i+s,l={phase:"flash",flashEndTime:r,fadeEndTime:a};o.set(e,l);const c=`ag-cell-${t}`,d=`${c}-animation`,{comp:u,eGui:{style:h}}=e;u.toggleCss(c,!0),u.toggleCss(d,!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),i)}),this.nextAnimationTime=r)}advanceAnimations(){const e=Date.now();let t=null;for(const i of Object.keys(this.animations)){const s=this.animations[i],o=`ag-cell-${i}`,n=`${o}-animation`;for(const[r,a]of s){if(!r.isAlive()||!r.comp){s.delete(r);continue}const{phase:l,flashEndTime:c,fadeEndTime:d}=a,u=l==="flash"?c:d;if(!(e+15>=u)){t=Math.min(u,t??1/0);continue}const{comp:p,eGui:{style:m}}=r;switch(l){case"flash":p.toggleCss(o,!1),p.toggleCss(n,!0),m.transition=`background-color ${d-c}ms`,m.transitionDelay=`${c-e}ms`,t=Math.min(d,t??1/0),a.phase="fade";break;case"fade":p.toggleCss(o,!1),p.toggleCss(n,!1),m.removeProperty("transition"),m.removeProperty("transition-delay"),s.delete(r);break}}}t==null?(this.nextAnimationTime=null,this.nextAnimationCycle=null):t&&(this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),t-e),this.nextAnimationTime=t)}onFlashCells(e,t){if(!e.comp)return;const i=H3(e.cellPosition);t.cells[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))this.animations[e].clear()}};function G7(e,t={}){const{cellFlashSvc:i}=e;i&&e.frameworkOverrides.wrapIncoming(()=>{for(const s of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns))i.flashCell(s,t)})}var V7={moduleName:"HighlightChanges",version:Q,beans:[B7],userComponents:{agAnimateShowChangeCellRenderer:L7,agAnimateSlideCellRenderer:H7},apiFunctions:{flashCells:G7}};function z7(e,t,i){if(!t)return;const s=e.ctrlsSvc.getGridBodyCtrl().eGridBody,o=`aria-${t}`;i===null?s.removeAttribute(o):s.setAttribute(o,i)}function W7(e,t={}){e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.refreshCells(t))}function j7(e){e.frameworkOverrides.wrapIncoming(()=>{for(const t of e.ctrlsSvc.getHeaderRowContainerCtrls())t.refresh()})}function _7(e){return e.animationFrameSvc?.isQueueEmpty()??!0}function U7(e){e.animationFrameSvc?.flushAllFrames()}function $7(e){return{rowHeight:io(e),headerHeight:_r(e)}}function q7(e,t={}){const i=[];for(const n of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns)){const r=n.getCellRenderer();r!=null&&i.push(vo(r))}if(t.columns?.length)return i;const s=[],o=Nu(t.rowNodes);for(const n of e.rowRenderer.getAllRowCtrls()){if(o&&!Hu(n.rowNode,o)||!n.isFullWidth())continue;const r=n.getFullWidthCellRenderers();for(let a=0;a<r.length;a++){const l=r[a];l!=null&&s.push(vo(l))}}return[...s,...i]}var K7={moduleName:"RenderApi",version:Q,apiFunctions:{setGridAriaProperty:z7,refreshCells:W7,refreshHeader:j7,isAnimationFrameQueueEmpty:_7,flushAllAnimationFrames:U7,getSizesForCurrentTheme:$7,getCellRendererInstances:q7}},Y7=class extends B{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.wasEverActive=!1,this._debouncedCalculateRowHeights=ct(this,this.calculateRowHeights.bind(this),1)}requestCheckAutoHeight(){this.wasEverActive&&this._debouncedCalculateRowHeights()}calculateRowHeights(){const{visibleCols:e,rowModel:t,rowSpanSvc:i,pinnedRowModel:s}=this.beans,o=e.autoHeightCols;let n=!1;const r=a=>{const l=a.__autoHeights;let c=Rs(this.beans,a).height;for(const d of o){let u=l?.[d.getColId()];const h=i?.getCellSpan(d,a);if(h){if(h.getLastNode()!==a)continue;if(u=i?.getCellSpan(d,a)?.getLastNodeAutoHeight(),!u)return}if(u==null){if(this.colSpanSkipCell(d,a))continue;return}c=Math.max(u,c)}c!==a.rowHeight&&(a.setRowHeight(c),n=!0)};s?.forEachPinnedRow?.("top",r),s?.forEachPinnedRow?.("bottom",r),t.forEachDisplayedNode?.(r),n&&t.onRowHeightChanged?.()}setRowAutoHeight(e,t,i){if(e.__autoHeights??(e.__autoHeights={}),t==null){delete e.__autoHeights[i.getId()];return}const s=e.__autoHeights[i.getId()];e.__autoHeights[i.getId()]=t,s!==t&&this.requestCheckAutoHeight()}colSpanSkipCell(e,t){const{colModel:i,colViewport:s,visibleCols:o}=this.beans;if(!i.colSpanActive)return!1;let n=[];switch(e.getPinned()){case"left":n=o.getLeftColsForRow(t);break;case"right":n=o.getRightColsForRow(t);break;case null:n=s.getColsWithinViewport(t);break}return!n.includes(e)}setupCellAutoHeight(e,t,i){if(!e.column.isAutoHeight()||!t)return!1;this.wasEverActive=!0;const s=t.parentElement,{rowNode:o,column:n}=e,r=this.beans,a=d=>{if(this.beans.editSvc?.isEditing(e)||!e.isAlive()||!i.isAlive())return;const{paddingTop:u,paddingBottom:h,borderBottomWidth:p,borderTopWidth:m}=Ro(s),v=u+h+p+m,w=t.offsetHeight+v;if(d<5){const x=!ft(r)?.contains(t),y=w==0;if(x||y){window.setTimeout(()=>a(d+1),0);return}}this.setRowAutoHeight(o,w,n)},l=()=>a(0);l();const c=ss(r,t,l);return i.addDestroyFunc(()=>{c(),this.setRowAutoHeight(o,void 0,n)}),!0}setAutoHeightActive(e){this.active=e.list.some(t=>t.isVisible()&&t.isAutoHeight())}areRowsMeasured(){if(!this.active)return!0;const e=this.beans.rowRenderer.getAllRowCtrls();let t=null;for(const{rowNode:i}of e)if((!t||this.beans.colModel.colSpanActive)&&(t=this.beans.colViewport.getColsWithinViewport(i).filter(o=>o.isAutoHeight())),t.length!==0){if(!i.__autoHeights)return!1;for(const s of t){const o=i.__autoHeights[s.getColId()];if(!o||i.rowHeight<o)return!1}}return!0}},Z7={moduleName:"RowAutoHeight",version:Q,beans:[Y7]},X7=class{constructor(e,t){this.col=e,this.firstNode=t,this.cellSpan=!0,this.spannedNodes=new Set,this.addSpannedNode(t)}reset(){this.spannedNodes.clear(),this.addSpannedNode(this.firstNode)}addSpannedNode(e){this.spannedNodes.add(e),this.lastNode=e}getLastNode(){return this.lastNode}getCellHeight(){return this.lastNode.rowTop+this.lastNode.rowHeight-this.firstNode.rowTop-1}doesSpanContain(e){return e.column!==this.col||e.rowPinned!=this.firstNode.rowPinned?!1:this.firstNode.rowIndex<=e.rowIndex&&e.rowIndex<=this.lastNode.rowIndex}getLastNodeAutoHeight(){const e=this.firstNode.__autoHeights?.[this.col.getColId()];if(e==null)return;let t=0;for(const i of this.spannedNodes)i!==this.lastNode&&(t+=i.rowHeight);return e-t}},Q7=class extends B{constructor(e){super(),this.column=e}buildCache(e){const{column:t,beans:{gos:i,pinnedRowModel:s,rowModel:o,valueSvc:n,pagination:r}}=this,{colDef:a}=t,l=this.getNodeMap(e),c=new Map,d=i.getCallback("isFullWidthRow"),u=a.equals,h=a.spanRows,p=typeof h=="function";let m=null,v=null,C;const w=(x,y)=>{m=x,v=null,C=y},b=x=>{const y=!x.isExpandable()&&!x.group&&!x.detail&&(d?!d({rowNode:x}):!0);if(x.rowIndex==null||!y){w(null,null);return}if(m==null||x.level!==m.level||x.footer||v&&x.rowIndex-1!==v?.getLastNode().rowIndex){w(x,n.getValue(t,x,"data"));return}const S=n.getValue(t,x,"data");if(p){const E=xe(i,{valueA:C,nodeA:m,valueB:S,nodeB:x,column:t,colDef:a});if(!h(E)){w(x,S);return}}else if(u?!u(C,S):C!==S){w(x,S);return}if(!v){const E=l?.get(m);E?.firstNode===m?(E.reset(),v=E):v=new X7(t,m),c.set(m,v)}v.addSpannedNode(x),c.set(x,v)};switch(e){case"center":o.forEachDisplayedNode?.(x=>{(!r||r.isRowInPage(x.rowIndex))&&b(x)}),this.centerValueNodeMap=c;break;case"top":s?.forEachPinnedRow("top",b),this.topValueNodeMap=c;break;case"bottom":s?.forEachPinnedRow("bottom",b),this.bottomValueNodeMap=c;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}}},J7=class extends B{constructor(){super(...arguments),this.beanName="rowSpanSvc",this.spanningColumns=new Map,this.debouncePinnedEvent=ct(this,this.dispatchCellsUpdatedEvent.bind(this,!0),0),this.debounceModelEvent=ct(this,this.dispatchCellsUpdatedEvent.bind(this,!1),0),this.pinnedTimeout=null,this.modelTimeout=null}postConstruct(){const e=this.onRowDataUpdated.bind(this),t=this.buildPinnedCaches.bind(this);this.addManagedEventListeners({paginationChanged:this.buildModelCaches.bind(this),pinnedRowDataChanged:t,pinnedRowsChanged:t,rowNodeDataChanged:e,cellValueChanged:e})}register(e){const{gos:t}=this.beans;if(!t.get("enableCellSpan")||this.spanningColumns.has(e))return;const i=this.createManagedBean(new Q7(e));this.spanningColumns.set(e,i),i.buildCache("top"),i.buildCache("bottom"),i.buildCache("center"),this.debouncePinnedEvent(),this.debounceModelEvent()}dispatchCellsUpdatedEvent(e){this.dispatchLocalEvent({type:"spannedCellsUpdated",pinned:e})}deregister(e){this.spanningColumns.delete(e)}onRowDataUpdated({node:e}){const{spannedRowRenderer:t}=this.beans;if(e.rowPinned){if(this.pinnedTimeout!=null)return;this.pinnedTimeout=window.setTimeout(()=>{this.pinnedTimeout=null,this.buildPinnedCaches(),t?.createCtrls("top"),t?.createCtrls("bottom")},0);return}this.modelTimeout==null&&(this.modelTimeout=window.setTimeout(()=>{this.modelTimeout=null,this.buildModelCaches(),t?.createCtrls("center")},0))}buildModelCaches(){this.modelTimeout!=null&&clearTimeout(this.modelTimeout),this.spanningColumns.forEach(e=>e.buildCache("center")),this.debounceModelEvent()}buildPinnedCaches(){this.pinnedTimeout!=null&&clearTimeout(this.pinnedTimeout),this.spanningColumns.forEach(e=>{e.buildCache("top"),e.buildCache("bottom")}),this.debouncePinnedEvent()}isCellSpanning(e,t){const i=this.spanningColumns.get(e);return i?i.isCellSpanning(t):!1}getCellSpanByPosition(e){const{pinnedRowModel:t,rowModel:i}=this.beans,s=e.column,o=e.rowIndex,n=this.spanningColumns.get(s);if(!n)return;let r;switch(e.rowPinned){case"top":r=t?.getPinnedTopRow(o);break;case"bottom":r=t?.getPinnedBottomRow(o);break;default:r=i.getRow(o)}if(r)return n.getCellSpan(r)}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 i=this.spanningColumns.get(e);if(i)return i.getCellSpan(t)}forEachSpannedColumn(e,t){for(const[i,s]of this.spanningColumns)if(s.isCellSpanning(e)){const o=s.getCellSpan(e);t(i,o)}}destroy(){super.destroy(),this.spanningColumns.clear()}},e9=class extends fn{constructor(e,t,i){super(e.col,e.firstNode,i,t),this.cellSpan=e,this.SPANNED_CELL_CSS_CLASS="ag-spanned-cell"}setComp(e,t,i,s,o,n,r){this.eWrapper=i,super.setComp(e,t,i,s,o,n,r),this.setAriaRowSpan()}isCellSpanning(){return!0}getCellSpan(){return this.cellSpan}refreshAriaRowIndex(){const{eGui:e,rowNode:t}=this;!e||t.rowIndex==null||vh(e,t.rowIndex)}setAriaRowSpan(){_S(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(Lr(t)){this.focusedCellPosition=void 0;return}const i=this.isCellFocused();i||(this.focusedCellPosition=void 0),e&&i&&(this.focusedCellPosition={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column}),super.onCellFocused(e)}getRootElement(){return this.eWrapper}},t9=class extends Nl{getInitialRowClasses(e){return["ag-spanned-row"]}getNewCellCtrl(e){const t=this.beans.rowSpanSvc?.getCellSpan(e,this.rowNode);if(!(!t||t.firstNode!==this.rowNode))return new e9(t,this,this.beans)}isCorrectCtrlForSpan(e){const t=this.beans.rowSpanSvc?.getCellSpan(e.column,this.rowNode);return!t||t.firstNode!==this.rowNode?!1:e.getCellSpan()===t}onRowHeightChanged(){}refreshFirstAndLastRowStyles(){}addHoverFunctionality(){}resetHoveredStatus(){}},i9=class extends B{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,i=this.getCtrlsMap(e),s=i.size,o=this.getAllRelevantRowControls(e),n=new Map;let r=!1;for(const l of o)l.isAlive()&&t?.forEachSpannedColumn(l.rowNode,(c,d)=>{if(n.has(d.firstNode))return;const u=i.get(d.firstNode);if(u){n.set(d.firstNode,u),i.delete(d.firstNode);return}r=!0;const h=new t9(d.firstNode,this.beans,!1,!1,!1);n.set(d.firstNode,h)});this.setCtrlsMap(e,n);const a=n.size===s;if(!(!r&&a)){for(const l of i.values())l.destroyFirstPass(!0),l.destroySecondPass();this.dispatchLocalEvent({type:"spannedRowsUpdated",ctrlsKey:e})}}getAllRelevantRowControls(e){const{rowRenderer:t}=this.beans;switch(e){case"top":return t.topRowCtrls;case"bottom":return t.bottomRowCtrls;case"center":return t.allRowCtrls}}getCellByPosition(e){const{rowSpanSvc:t}=this.beans,i=t?.getCellSpanByPosition(e);if(!i)return;const s=this.getCtrlsMap(e.rowPinned).get(i.firstNode);if(s)return s.getAllCellCtrls().find(o=>o.column===e.column)}getCtrls(e){return[...this.getCtrlsMap(e).values()]}destroyRowCtrls(e){for(const t of this.getCtrlsMap(e).values())t.destroyFirstPass(!0),t.destroySecondPass();this.setCtrlsMap(e,new Map)}getCtrlsMap(e){switch(e){case"top":return this.topCtrls;case"bottom":return this.bottomCtrls;default:return this.centerCtrls}}setCtrlsMap(e,t){switch(e){case"top":this.topCtrls=t;break;case"bottom":this.bottomCtrls=t;break;default:this.centerCtrls=t;break}}destroy(){super.destroy(),this.destroyRowCtrls("top"),this.destroyRowCtrls("bottom"),this.destroyRowCtrls("center")}},s9={moduleName:"CellSpan",version:Q,beans:[J7,i9]},o9=class extends B{constructor(){super(...arguments),this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",e=>{this.onSelectionOptionsChanged(e.currentValue,e.previousValue,hn(e.source))}),this.addManagedPropertyListener("selectionColumnDef",this.updateColumns.bind(this))}addColumns(e){const t=this.columns;t!=null&&(e.list=t.list.concat(e.list),e.tree=t.tree.concat(e.tree),vR(e))}createColumns(e,t){const i=()=>{Fl(this.beans,this.columns?.tree),this.columns=null},s=e.treeDepth,n=(this.columns?.treeDepth??-1)==s,r=this.generateSelectionCols();if(mR(r,this.columns?.list??[])&&n)return;i();const{colGroupSvc:l}=this.beans,c=l?.findDepth(e.tree)??0,d=l?.balanceTreeForAutoCols(r,c)??[];this.columns={list:r,tree:d,treeDepth:c,map:{}},t(h=>{if(!h)return null;const p=h.filter(m=>!As(m));return[...r,...p]})}updateColumns(e){const t=hn(e.source),{beans:i}=this;for(const s of this.columns?.list??[]){const o=this.createSelectionColDef(e.currentValue);s.setColDef(o,null,t),xi(i,{state:[wR(o,s.colId)]},t)}}getColumn(e){return this.columns?.list.find(t=>fr(t,e))??null}getColumns(){return this.columns?.list??null}isSelectionColumnEnabled(){const{gos:e,beans:t}=this,i=e.get("rowSelection");if(typeof i!="object"||!to(e))return!1;const s=(t.autoColSvc?.getColumns()?.length??0)>0;if(i.checkboxLocation==="autoGroupColumn"&&s)return!1;const o=!!cn(i),n=Qa(i);return o||n}createSelectionColDef(e){const{gos:t}=this,i=e??t.get("selectionColumnDef"),s=t.get("enableRtl"),{rowSpan:o,spanRows:n,...r}=i??{};return{width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:s?"right":"left",comparator(a,l,c,d){const u=c.isSelected(),h=d.isSelected();return u===h?0:u?1:-1},editable:!1,suppressFillHandle:!0,suppressAutoSize:!0,pinned:null,...r,colId:Ph,chartDataType:"excluded"}}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];const e=this.createSelectionColDef(),t=e.colId;this.gos.validateColDef(e,t,!0);const i=new Fo(e,null,t,!1);return this.createBean(i),[i]}onSelectionOptionsChanged(e,t,i){const s=t&&typeof t!="string"?cn(t):void 0,o=e&&typeof e!="string"?cn(e):void 0,n=s!==o,r=t&&typeof t!="string"?Qa(t):void 0,a=e&&typeof e!="string"?Qa(e):void 0,l=r!==a,c=xl(e),d=xl(t);(n||l||c!==d)&&this.beans.colModel.refreshAll(i)}destroy(){Fl(this.beans,this.columns?.tree),super.destroy()}refreshVisibility(e,t,i){if(!this.columns?.list.length)return;const s=e.length+t.length+i.length;if(s===0)return;const o=this.columns.list[0];if(!o.isVisible())return;const n=()=>{let l;switch(o.pinned){case"left":case!0:l=e;break;case"right":l=i;break;default:l=t}l&&Hi(l,o)};(this.beans.rowNumbersSvc?.getColumn(Th)?2:1)===s&&n()}},n9=':where(.ag-selection-checkbox) .ag-checkbox-input-wrapper:before{content:"";cursor:pointer;inset:-8px;position:absolute}';function r9(e,t){if(!t.nodes.every(r=>r.rowPinned&&!cc(r)?($(59),!1):r.id===void 0?($(60),!1):!0))return;const{nodes:s,source:o,newValue:n}=t;e.selectionSvc?.setNodesSelected({nodes:s,source:o??"api",newValue:n})}function a9(e,t,i="apiSelectAll"){e.selectionSvc?.selectAllRowNodes({source:i,selectAll:t})}function l9(e,t,i="apiSelectAll"){e.selectionSvc?.deselectAllRowNodes({source:i,selectAll:t})}function c9(e,t="apiSelectAllFiltered"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"filtered"})}function d9(e,t="apiSelectAllFiltered"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"filtered"})}function u9(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"currentPage"})}function h9(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"currentPage"})}function p9(e){return e.selectionSvc?.getSelectedNodes()??[]}function g9(e){return e.selectionSvc?.getSelectedRows()??[]}var f9={tag:"div",cls:"ag-selection-checkbox",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},m9=class extends ot{constructor(){super(f9,[qh]),this.eCheckbox=de}postConstruct(){this.eCheckbox.setPassive(!0)}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){const e=this.getLocaleTextFunc(),{rowNode:t,eCheckbox:i}=this,s=t.isSelected(),o=ic(e,s),[n,r]=t.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],a=e(n,r);i.setValue(s,!0),i.setInputAriaLabel(`${a} (${o})`)}init(e){if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getWrapperElement(),{dblclick:fo,click:s=>{fo(s),!this.eCheckbox.isDisabled()&&this.beans.selectionSvc?.handleSelectionEvent(s,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:s,previousValue:o})=>{const n=typeof s=="object"?ld(s):void 0,r=typeof o=="object"?ld(o):void 0;n!==r&&this.onSelectableChanged()}),wu(this.gos)||typeof this.getIsVisible()=="function"){const s=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:s}),this.addManagedListeners(this.rowNode,{dataChanged:s,cellChanged:s}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}showOrHideSelect(){const{column:e,rowNode:t,overrides:i,gos:s}=this,o=t.selectable,n=this.getIsVisible();let r;if(typeof n=="function"){const u=i?.callbackParams;if(!e)r=n({...u,node:t,data:t.data});else{const h=e.createColumnFunctionCallbackParams(t);r=n({...u,...h})}}else r=n??!1;const a=o&&!r||!o&&r,l=o||r,c=s.get("rowSelection"),d=c&&typeof c!="string"?!ld(c):!!e?.getColDef().showDisabledCheckboxes;this.setVisible(l&&(a?d:!0)),this.setDisplayed(l&&(a?d:!0)),l&&this.eCheckbox.setDisabled(a),i?.removeHidden&&this.setDisplayed(l)}getIsVisible(){const e=this.overrides;if(e)return e.isVisible;const t=this.gos.get("rowSelection");return t&&typeof t!="string"?cn(t):this.column?.getColDef()?.checkboxSelection}},v9=class{constructor(e,t){this.rowModel=e,this.pinnedRowModel=t,this.selectAll=!1,this.rootId=null,this.endId=null,this.cachedRange=[]}reset(){this.rootId=null,this.endId=null,this.cachedRange.length=0}setRoot(e){this.rootId=e.id,this.endId=null,this.cachedRange.length=0}setEndRange(e){this.endId=e.id,this.cachedRange.length=0}getRange(){if(this.cachedRange.length===0){const e=this.getRoot(),t=this.getEnd();if(e==null||t==null)return this.cachedRange;this.cachedRange=this.getNodesInRange(e,t)??[]}return this.cachedRange}isInRange(e){return this.rootId===null?!1:this.getRange().some(t=>t.id===e.id)}getRoot(e){if(this.rootId)return this.getRowNode(this.rootId);if(e)return this.setRoot(e),e}getEnd(){if(this.endId)return this.getRowNode(this.endId)}getRowNode(e){let t;const{rowModel:i,pinnedRowModel:s}=this;return t??(t=i.getRowNode(e)),s?.isManual()&&(t??(t=s.getPinnedRowById(e,"top")),t??(t=s.getPinnedRowById(e,"bottom"))),t}truncate(e){const t=this.getRange();if(t.length===0)return{keep:[],discard:[]};const i=t[0].id===this.rootId,s=t.findIndex(o=>o.id===e.id);if(s>-1){const o=t.slice(0,s),n=t.slice(s+1);return this.setEndRange(e),i?{keep:o,discard:n}:{keep:n,discard:o}}else return{keep:t,discard:[]}}extend(e,t=!1){const i=this.getRoot();if(i==null){const o=this.getRange().slice();return t&&e.depthFirstSearch(n=>!n.group&&o.push(n)),o.push(e),this.setRoot(e),{keep:o,discard:[]}}const s=this.getNodesInRange(i,e);if(!s)return this.setRoot(e),{keep:[e],discard:[]};if(s.find(o=>o.id===this.endId))return this.setEndRange(e),{keep:this.getRange(),discard:[]};{const o=this.getRange().slice();return this.setEndRange(e),{keep:this.getRange(),discard:o}}}getNodesInRange(e,t){const{pinnedRowModel:i,rowModel:s}=this;if(!i?.isManual())return s.getNodesInRangeForSelection(e,t);if(e.rowPinned==="top"&&!t.rowPinned)return si(i,"top",e,void 0).concat(s.getNodesInRangeForSelection(s.getRow(0),t)??[]);if(e.rowPinned==="bottom"&&!t.rowPinned){const o=si(i,"bottom",void 0,e),n=s.getRowCount(),r=s.getRow(n-1);return(s.getNodesInRangeForSelection(t,r)??[]).concat(o)}if(!e.rowPinned&&!t.rowPinned)return s.getNodesInRangeForSelection(e,t);if(e.rowPinned==="top"&&t.rowPinned==="top")return si(i,"top",e,t);if(e.rowPinned==="bottom"&&t.rowPinned==="top"){const o=si(i,"top",t,void 0),n=si(i,"bottom",void 0,e),r=s.getRow(0),a=s.getRow(s.getRowCount()-1);return o.concat(s.getNodesInRangeForSelection(r,a)??[]).concat(n)}if(!e.rowPinned&&t.rowPinned==="top")return si(i,"top",t,void 0).concat(s.getNodesInRangeForSelection(s.getRow(0),e)??[]);if(e.rowPinned==="top"&&t.rowPinned==="bottom"){const o=si(i,"top",e,void 0),n=si(i,"bottom",void 0,t),r=s.getRow(0),a=s.getRow(s.getRowCount()-1);return o.concat(s.getNodesInRangeForSelection(r,a)??[]).concat(n)}if(e.rowPinned==="bottom"&&t.rowPinned==="bottom")return si(i,"bottom",e,t);if(!e.rowPinned&&t.rowPinned==="bottom"){const o=si(i,"bottom",void 0,t),n=s.getRow(s.getRowCount());return(s.getNodesInRangeForSelection(e,n)??[]).concat(o)}return null}},C9=class extends B{constructor(e){super(),this.column=e,this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1}onSpaceKeyDown(e){const t=this.cbSelectAll;t.isDisplayed()&&!t.getGui().contains(Je(this.beans))&&(e.preventDefault(),t.setValue(!t.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(e){this.headerCellCtrl=e;const t=this.createManagedBean(new $h);this.cbSelectAll=t,t.addCss("ag-header-select-all"),co(t.getGui(),"presentation"),this.showOrHideSelectAll();const i=this.updateStateOfCheckbox.bind(this);this.addManagedEventListeners({newColumnsLoaded:()=>this.showOrHideSelectAll(),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:i,paginationChanged:i,modelUpdated:i}),this.addManagedPropertyListener("rowSelection",({currentValue:s,previousValue:o})=>{const n=r=>typeof r=="string"||!r||r.mode==="singleRow"?void 0:r.selectAll;n(s)!==n(o)&&this.showOrHideSelectAll(),this.updateStateOfCheckbox()}),this.addManagedListeners(t,{fieldValueChanged:this.onCbSelectAll.bind(this)}),t.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onDisplayedColumnsChanged(e){this.isAlive()&&this.showOrHideSelectAll(e.source==="uiColumnMoved")}showOrHideSelectAll(e=!1){const t=this.isCheckboxSelection();this.cbSelectAllVisible=t,this.cbSelectAll.setDisplayed(t),t&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel(e)}updateStateOfCheckbox(){if(!this.cbSelectAllVisible||this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;const e=this.getSelectAllMode(),t=this.beans.selectionSvc,i=this.cbSelectAll,s=t.getSelectAllState(e);i.setValue(s);const o=t.hasNodesToSelect(e);i.setDisabled(!o),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(e=!1){const t=this.getLocaleTextFunc(),{headerCellCtrl:i,cbSelectAll:s,cbSelectAllVisible:o}=this,n=s.getValue(),r=ic(t,n),a=t("ariaRowSelectAll","Press Space to toggle all rows selection");i.setAriaDescriptionProperty("selectAll",o?`${a} (${r})`:null),s.setInputAriaLabel(t("ariaHeaderSelection","Column with Header Selection")),e||i.announceAriaDescription()}checkSelectionType(e){return Sl(this.gos)?!0:($(128,{feature:e}),!1)}checkRightRowModelType(e){const{gos:t,rowModel:i}=this.beans;return st(t)||kn(t)?!0:($(129,{feature:e,rowModel:i.getType()}),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox||!this.cbSelectAllVisible)return;const e=this.cbSelectAll.getValue(),t=this.getSelectAllMode();let i="uiSelectAll";t==="currentPage"?i="uiSelectAllCurrentPage":t==="filtered"&&(i="uiSelectAllFiltered");const s={source:i,selectAll:t},o=this.beans.selectionSvc;e?o.selectAllRowNodes(s):o.deselectAllRowNodes(s)}isCheckboxSelection(){const{column:e,gos:t,beans:i}=this,n=typeof t.get("rowSelection")=="object"?"headerCheckbox":"headerCheckboxSelection";return f1(i,e)&&this.checkRightRowModelType(n)&&this.checkSelectionType(n)}getSelectAllMode(){const e=$v(this.gos,!1);if(e)return e;const{headerCheckboxSelectionCurrentPageOnly:t,headerCheckboxSelectionFilteredOnly:i}=this.column.getColDef();return t?"currentPage":i?"filtered":"all"}destroy(){super.destroy(),this.cbSelectAll=void 0,this.headerCellCtrl=void 0}};function f1({gos:e,selectionColSvc:t},i){const s=e.get("rowSelection"),o=i.getColDef(),{headerCheckboxSelection:n}=o;let r=!1;if(typeof s=="object"){const l=As(i),c=kh(i);(xl(s)==="autoGroupColumn"&&c||l&&t?.isSelectionColumnEnabled())&&(r=Qa(s))}else typeof n=="function"?r=n(xe(e,{column:i,colDef:o})):r=!!n;return r}var w9=class extends B{postConstruct(){const{gos:e,beans:t}=this;this.selectionCtx=new v9(t.rowModel,t.pinnedRowModel),this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>{const i=wu(e);i!==this.isRowSelectable&&(this.isRowSelectable=i,this.updateSelectable())}),this.isRowSelectable=wu(e),this.addManagedEventListeners({cellValueChanged:i=>this.updateRowSelectable(i.node),rowNodeDataChanged:i=>this.updateRowSelectable(i.node)})}destroy(){super.destroy(),this.selectionCtx.reset()}createCheckboxSelectionComponent(){return new m9}createSelectAllFeature(e){if(f1(this.beans,e))return new C9(e)}isMultiSelect(){return Sl(this.gos)}onRowCtrlSelected(e,t,i){const s=!!e.rowNode.isSelected();e.forEachGui(i,o=>{o.rowComp.toggleCss("ag-row-selected",s);const n=o.element;gv(n,s),n.contains(Je(this.beans))&&t(o)})}announceAriaRowSelection(e){if(this.isRowSelectionBlocked(e))return;const t=e.isSelected(),i=this.beans.editSvc?.isEditing({rowNode:e});if(!e.selectable||i)return;const o=this.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${t?"deselect":"select"} this row`);this.beans.ariaAnnounce?.announceValue(o,"rowSelection")}isRowSelectionBlocked(e){return!e.selectable||e.rowPinned&&!cc(e)||!to(this.gos)}updateRowSelectable(e,t){const i=e.rowPinned&&e.pinnedSibling?e.pinnedSibling.selectable:this.isRowSelectable?.(e)??!0;return this.setRowSelectable(e,i,t),i}setRowSelectable(e,t,i){if(e.selectable!==t){if(e.selectable=t,e.dispatchRowEvent("selectableChanged"),i)return;if(Mr(this.gos)){const o=this.calculateSelectedFromChildren(e);this.setNodesSelected({nodes:[e],newValue:o??!1,source:"selectableChanged"});return}e.isSelected()&&!e.selectable&&this.setNodesSelected({nodes:[e],newValue:!1,source:"selectableChanged"})}}calculateSelectedFromChildren(e){let t=!1,i=!1;if(!e.childrenAfterGroup?.length)return e.selectable?e.__selected:null;for(let s=0;s<e.childrenAfterGroup.length;s++){const o=e.childrenAfterGroup[s];let n=o.isSelected();if(!o.selectable){const r=this.calculateSelectedFromChildren(o);if(r===null)continue;n=r}switch(n){case!0:t=!0;break;case!1:i=!0;break;default:return}}if(!(t&&i))return t?!0:i?!1:e.selectable?e.__selected:null}selectRowNode(e,t,i,s="api"){if(t&&e.destroyed)return!1;const o=!e.selectable&&t,n=e.__selected===t;if(o||n)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({...C3(e,this.gos,"rowSelected"),event:i||null,source:s}),!0}isCellCheckboxSelection(e,t){const i=this.gos.get("rowSelection");if(i&&typeof i!="string"){const s=As(e)&&cn(i);return e.isColumnFunc(t,s)}else return e.isColumnFunc(t,e.colDef.checkboxSelection)}inferNodeSelections(e,t,i,s){const{gos:o,selectionCtx:n}=this,r=e.isSelected(),a=Mr(o),l=j2(o),c=_2(o),d=this.isMultiSelect(),u=s==="rowClicked";if(u&&!(l||c))return null;if(t&&i&&d){const h=n.getRoot();if(h)if(h.isSelected()){const p=n.isInRange(e)?n.truncate(e):n.extend(e,a);return{deselect:p.discard,select:p.keep,reset:!1}}else{const p=n.extend(e,a);return{select:[],deselect:p.keep,reset:!1}}else return null}else if(t&&d){const h=n.selectAll?this.beans.rowModel.getRow(0):void 0,p=n.getRoot(h),m=n.isInRange(e)?n.truncate(e):n.extend(e,a);return{select:m.keep,deselect:m.discard,reset:n.selectAll||!!(p&&!p.isSelected())}}else if(i){if(u){const h=!r;return h&&!l||!h&&!c?null:(n.setRoot(e),{node:e,newValue:h,clearSelection:!1})}return n.setRoot(e),{node:e,newValue:!r,clearSelection:!d}}else{n.setRoot(e);const h=U2(o),p=Rl(o)==="filteredDescendants",m=u&&(!h||!l);if(p&&r===void 0&&st(o))return{node:e,newValue:!1,checkFilteredNodes:!0,clearSelection:!d||m};if(u){const v=r?!h:l;return v===r&&!m||v&&!l||!v&&!c?null:{node:e,newValue:v,clearSelection:!d||m,keepDescendants:e.group&&a}}return{node:e,newValue:!r,clearSelection:!d||m}}}},b9=class extends w9{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=yl(e),this.groupSelectsDescendants=Mr(e),this.groupSelectsFiltered=Rl(e)==="filteredDescendants",this.masterSelectsDetail=kg(e)==="detail",this.addManagedPropertyListeners(["groupSelectsChildren","groupSelectsFiltered","rowSelection"],()=>{const t=Mr(e),i=yl(e),s=Rl(e)==="filteredDescendants";this.masterSelectsDetail=kg(e)==="detail",(t!==this.groupSelectsDescendants||s!==this.groupSelectsFiltered||i!==this.mode)&&(this.deselectAllRowNodes({source:"api"}),this.groupSelectsDescendants=t,this.groupSelectsFiltered=s,this.mode=i)}),this.addManagedEventListeners({rowSelected:this.onRowSelected.bind(this)})}destroy(){super.destroy(),this.resetNodes()}handleSelectionEvent(e,t,i){if(this.isRowSelectionBlocked(t))return 0;const s=this.inferNodeSelections(t,e.shiftKey,e.metaKey||e.ctrlKey,i);if(s==null)return 0;if(this.selectionCtx.selectAll=!1,"select"in s)return s.reset?this.resetNodes():this.selectRange(s.deselect,!1,i),this.selectRange(s.select,!0,i);{const o=s.checkFilteredNodes?v1(s.node):s.newValue;return this.setNodesSelected({nodes:[s.node],newValue:o,clearSelection:s.clearSelection,keepDescendants:s.keepDescendants,event:e,source:i})}}setNodesSelected({newValue:e,clearSelection:t,suppressFinishActions:i,nodes:s,event:o,source:n,keepDescendants:r=!1}){if(s.length===0)return 0;const{gos:a}=this;if(!to(a)&&e)return $(132),0;if(s.length>1&&!this.isMultiSelect())return $(130),0;let l=0;for(let c=0;c<s.length;c++){const d=s[c],u=d.primaryRow;if(u.rowPinned&&!cc(u)){$(59);continue}if(u.id===void 0){$(60);continue}if(e&&d.destroyed)continue;this.groupSelectsFiltered&&u.group&&!a.get("treeData")||this.selectRowNode(u,e,o,n)&&(this.detailSelection.delete(u.id),l++),this.groupSelectsDescendants&&u.childrenAfterGroup?.length&&(l+=this.selectChildren(u,e,n))}return i||(s.length===1&&n==="api"&&this.selectionCtx.setRoot(s[0].primaryRow),e&&(t||!this.isMultiSelect())&&(l+=this.clearOtherNodes(s[0].primaryRow,r,n)),l>0&&(this.updateGroupsFromChildrenSelections(n),this.dispatchSelectionChanged(n))),l}selectRange(e,t,i){let s=0;return e.forEach(o=>{const n=o.primaryRow;if(n.group&&this.groupSelectsDescendants)return;this.selectRowNode(n,t,void 0,i)&&s++}),s>0&&(this.updateGroupsFromChildrenSelections(i),this.dispatchSelectionChanged(i)),s}selectChildren(e,t,i){const s=this.groupSelectsFiltered?e.childrenAfterAggFilter:e.childrenAfterGroup;return s?this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,source:i,nodes:s}):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((i,s)=>{e(i)&&t.set(s,i)}),this.selectedNodes=t}updateGroupsFromChildrenSelections(e,t){if(!this.groupSelectsDescendants)return!1;const{gos:i,rowModel:s}=this.beans;if(!st(i))return!1;const o=s.rootNode;if(!o)return!1;let n=!1;const r=a=>{if(a!==o){const l=this.calculateSelectedFromChildren(a);n=this.selectRowNode(a,l===null?!1:l,void 0,e)||n}};return wo(o,this.beans.rowModel.hierarchical,t,r),n}clearOtherNodes(e,t,i){const s=new Map;let o=0;return this.selectedNodes.forEach(n=>{const r=n.id==e.id;if((t?!y9(e,n):!0)&&!r){const l=this.selectedNodes.get(n.id);o+=this.setNodesSelected({nodes:[l],newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:i}),this.groupSelectsDescendants&&n.parent&&s.set(n.parent.id,n.parent)}}),s.forEach(n=>{const r=this.calculateSelectedFromChildren(n);this.selectRowNode(n,r===null?!1:r,void 0,i)}),o}onRowSelected(e){const t=e.node;this.groupSelectsDescendants&&t.group||(t.isSelected()?this.selectedNodes.set(t.id,t):this.selectedNodes.delete(t.id))}syncInRowNode(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)}createDaemonNode(e){if(!e.id)return;const t=new Ds(this.beans);return t.id=e.id,t.data=e.data,t.__selected=e.__selected,t.level=e.level,t}syncInOldRowNode(e,t){t&&e.id!==t.id&&this.selectedNodes.get(t.id)==e&&this.selectedNodes.set(t.id,t)}syncInNewRowNode(e){this.selectedNodes.has(e.id)?(e.__selected=!0,this.selectedNodes.set(e.id,e)):e.__selected=!1}reset(e){const t=this.getSelectionCount();this.resetNodes(),t&&this.dispatchSelectionChanged(e)}resetNodes(){this.selectedNodes.forEach(e=>{this.selectRowNode(e,!1)}),this.selectedNodes.clear()}getBestCostNodeSelection(){const{gos:e,rowModel:t}=this.beans;if(!st(e))return;const i=t.getTopLevelNodes();if(i===null)return;const s=[];function o(n){for(let r=0,a=n.length;r<a;r++){const l=n[r];l.isSelected()?s.push(l):l.group&&l.childrenAfterGroup&&o(l.childrenAfterGroup)}}return o(i),s}isEmpty(){return this.getSelectionCount()===0}deselectAllRowNodes({source:e,selectAll:t}){const i=st(this.gos);let s=!1;const o=n=>{const r=this.selectRowNode(n.primaryRow,!1,void 0,e);s||(s=r)};if(t==="currentPage"||t==="filtered"){if(!i){We(102);return}this.getNodesToSelect(t).forEach(o)}else this.selectedNodes.forEach(o),this.reset(e);if(this.selectionCtx.selectAll=!1,i&&this.groupSelectsDescendants){const n=this.updateGroupsFromChildrenSelections(e);s||(s=n)}s&&this.dispatchSelectionChanged(e)}getSelectedCounts(e){let t=0,i=0;return this.getNodesToSelect(e).forEach(s=>{this.groupSelectsDescendants&&s.group||(s.isSelected()?t++:s.selectable&&i++)}),{selectedCount:t,notSelectedCount:i}}getSelectAllState(e){const{selectedCount:t,notSelectedCount:i}=this.getSelectedCounts(e);return m1(t,i)??null}hasNodesToSelect(e){return this.getNodesToSelect(e).filter(t=>t.selectable).length>0}getNodesToSelect(e){if(!this.canSelectAll())return[];const t=[],i=o=>t.push(o);if(e==="currentPage")return this.forEachNodeOnPage(o=>{if(!o.group){i(o);return}if(!o.footer&&!o.expanded){const n=r=>{i(r);const a=r.childrenAfterFilter;if(a)for(let l=0,c=a.length;l<c;++l)n(a[l])};n(o);return}this.groupSelectsDescendants||i(o)}),t;const s=this.beans.rowModel;return e==="filtered"?(s.forEachNodeAfterFilter(i),t):(s.forEachNode(i),t)}forEachNodeOnPage(e){const{pageBounds:t,rowModel:i}=this.beans,s=t.getFirstRow(),o=t.getLastRow();for(let n=s;n<=o;n++){const r=i.getRow(n);r&&e(r)}}selectAllRowNodes(e){const{gos:t,selectionCtx:i}=this;if(!to(t)){$(132);return}if(W2(t)&&!Sl(t)){$(130);return}if(!this.canSelectAll())return;const{source:s,selectAll:o}=e;let n=!1;if(this.getNodesToSelect(o).forEach(r=>{const a=this.selectRowNode(r.primaryRow,!0,void 0,s);n||(n=a)}),i.selectAll=!0,st(t)&&this.groupSelectsDescendants){const r=this.updateGroupsFromChildrenSelections(s);n||(n=r)}n&&this.dispatchSelectionChanged(s)}getSelectionState(){return this.isEmpty()?null:Array.from(this.selectedNodes.keys())}setSelectionState(e,t,i){if(e||(e=[]),!Array.isArray(e)){We(103);return}const s=new Set(e),o=[];this.beans.rowModel.forEachNode(n=>{s.has(n.id)&&o.push(n)}),i&&this.resetNodes(),this.setNodesSelected({newValue:!0,nodes:o,source:t})}canSelectAll(){return st(this.beans.gos)}updateSelectable(e){const{gos:t,rowModel:i}=this.beans;if(!to(t))return;const s="selectableChanged",o=st(t)&&this.groupSelectsDescendants,n=[];if(o){const r=i.rootNode;r&&wo(r,i.hierarchical,e,a=>{let l=!1;for(const c of a.childrenAfterGroup)l||(l=c.selectable),!c.group&&!this.updateRowSelectable(c,!0)&&c.isSelected()&&n.push(c);this.setRowSelectable(a,l,!0)})}else i.forEachNode(r=>{!this.updateRowSelectable(r,!0)&&r.isSelected()&&n.push(r)});n.length&&this.setNodesSelected({nodes:n,newValue:!1,source:s}),!e&&o&&this.updateGroupsFromChildrenSelections?.(s)}updateSelectableAfterGrouping(e){this.updateSelectable(e),this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections?.("rowGroupChanged",e)&&this.dispatchSelectionChanged("rowGroupChanged")}refreshMasterNodeState(e,t){if(!this.masterSelectsDetail)return;const i=e.detailNode?.detailGridInfo?.api;if(!i)return;const s=x9(i);e.isSelected()!==s&&this.selectRowNode(e,s,t,"masterDetail")&&this.dispatchSelectionChanged("masterDetail"),s||this.detailSelection.set(e.id,new Set(i.getSelectedNodes().map(n=>n.id)))}setDetailSelectionState(e,t,i){if(this.masterSelectsDetail){if(!Sl(t)){$(269);return}switch(e.isSelected()){case!0:{i.selectAll();break}case!1:{i.deselectAll();break}case void 0:{const s=this.detailSelection.get(e.id);if(s){const o=[];for(const n of s){const r=i.getRowNode(n);r&&o.push(r)}i.setNodesSelected({nodes:o,newValue:!0,source:"masterDetail"})}break}}}}dispatchSelectionChanged(e){this.eventSvc.dispatchEvent({type:"selectionChanged",source:e,selectedNodes:this.getSelectedNodes(),serverSideState:null})}};function x9(e){let t=0,i=0;return e.forEachNode(s=>{s.isSelected()?t++:s.selectable&&i++}),m1(t,i)}function m1(e,t){if(e===0&&t===0)return!1;if(!(e>0&&t>0))return e>0}function y9(e,t){let i=t.parent;for(;i;){if(i===e)return!0;i=i.parent}return!1}function v1(e){const t=e.isSelected()===!1,i=e.childrenAfterFilter?.some(v1)??!1;return t||i}var S9={moduleName:"SharedRowSelection",version:Q,beans:[o9],css:[n9],apiFunctions:{setNodesSelected:r9,selectAll:a9,deselectAll:l9,selectAllFiltered:c9,deselectAllFiltered:d9,selectAllOnCurrentPage:u9,deselectAllOnCurrentPage:h9,getSelectedNodes:p9,getSelectedRows:g9}},R9={moduleName:"RowSelection",version:Q,rowModels:["clientSide","infinite","viewport"],beans:[b9],dependsOn:[S9]},F9=class extends B{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,i=e.colDef,s=i.cellClassRules,o=this.getCellClassParams(e,i);tp(this.beans.expressionSvc,s===this.cellClassRules?void 0:this.cellClassRules,s,o,n=>t.toggleCss(n,!0),n=>t.toggleCss(n,!1)),this.cellClassRules=s}applyUserStyles(){const e=this.column,t=e.colDef,i=t.cellStyle;if(!i)return;let s;if(typeof i=="function"){const o=this.getCellClassParams(e,t);s=i(o)}else s=i;s&&this.cellComp.setUserStyles(s)}applyClassesFromColDef(){const{column:e,cellComp:t}=this,i=e.colDef,s=this.getCellClassParams(e,i);for(const n of this.staticClasses)t.toggleCss(n,!1);const o=this.beans.cellStyles.getStaticCellClasses(i,s);this.staticClasses=o;for(const n of o)t.toggleCss(n,!0)}getCellClassParams(e,t){const{value:i,rowNode:s}=this.cellCtrl;return xe(this.beans.gos,{value:i,data:s.data,node:s,colDef:t,column:e,rowIndex:s.rowIndex})}},E9=class extends B{constructor(){super(...arguments),this.beanName="cellStyles"}processAllCellClasses(e,t,i,s){tp(this.beans.expressionSvc,void 0,e.cellClassRules,t,i,s),this.processStaticCellClasses(e,t,i)}getStaticCellClasses(e,t){const{cellClass:i}=e;if(!i)return[];let s;return typeof i=="function"?s=i(t):s=i,typeof s=="string"&&(s=[s]),s||[]}createCellCustomStyleFeature(e){return new F9(e,this.beans)}processStaticCellClasses(e,t,i){this.getStaticCellClasses(e,t).forEach(o=>{i(o)})}},D9={moduleName:"CellStyle",version:Q,beans:[E9]},P9={moduleName:"RowStyle",version:Q,beans:[y6]},T9={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},Gt="clientSide",Et="serverSide",Ko="infinite",k9={onGroupExpandedOrCollapsed:[Gt],refreshClientSideRowModel:[Gt],isRowDataEmpty:[Gt],forEachLeafNode:[Gt],forEachNodeAfterFilter:[Gt],forEachNodeAfterFilterAndSort:[Gt],resetRowHeights:[Gt,Et],applyTransaction:[Gt],applyTransactionAsync:[Gt],flushAsyncTransactions:[Gt],getBestCostNodeSelection:[Gt],getServerSideSelectionState:[Et],setServerSideSelectionState:[Et],applyServerSideTransaction:[Et],applyServerSideTransactionAsync:[Et],applyServerSideRowData:[Et],retryServerSideLoads:[Et],flushServerSideAsyncTransactions:[Et],refreshServerSide:[Et],getServerSideGroupLevelState:[Et],refreshInfiniteCache:[Ko],purgeInfiniteCache:[Ko],getInfiniteRowCount:[Ko],isLastRowIndexKnown:[Ko,Et],expandAll:[Gt,Et],collapseAll:[Gt,Et],onRowHeightChanged:[Gt,Et],setRowCount:[Ko,Et],getCacheBlockState:[Ko,Et]},I9={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 M9(e,t,i){const s=I9[e];if(s){const{version:n,new:r,old:a,message:l}=s,c=a??e;return(...d)=>{const u=r?`Please use ${r} instead. `:"";return gr(`Since ${n} api.${c} is deprecated. ${u}${l??""}`),t.apply(t,d)}}const o=k9[e];return o?(...n)=>{const r=i.rowModel.getType();if(!o.includes(r)){rn(`api.${e} can only be called when gridOptions.rowModelType is ${o.join(" or ")}`);return}return t.apply(t,n)}:t}var A9={detailCellRendererCtrl:"SharedMasterDetail",dndSourceComp:"DragAndDrop",fillHandle:"CellSelection",groupCellRendererCtrl:"GroupCellRenderer",headerFilterCellCtrl:"ColumnFilter",headerGroupCellCtrl:"ColumnGroup",rangeHandle:"CellSelection",tooltipFeature:"Tooltip",highlightTooltipFeature:"Tooltip",tooltipStateManager:"Tooltip",groupStrategy:"RowGrouping",treeGroupStrategy:"TreeData",rowNumberRowResizer:"RowNumbers",singleCell:"EditCore",fullRow:"EditCore",agSetColumnFilterHandler:"SetFilter",agMultiColumnFilterHandler:"MultiFilter",agGroupColumnFilterHandler:"GroupFilter",agNumberColumnFilterHandler:"NumberFilter",agBigIntColumnFilterHandler:"BigIntFilter",agDateColumnFilterHandler:"DateFilter",agTextColumnFilterHandler:"TextFilter"},L9={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},O9={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"},N9=new Set(["colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallDown","smallLeft","smallRight"]),H9=class extends B{constructor(){super(...arguments),this.beanName="validation"}wireBeans(e){this.gridOptions=e.gridOptions,P2(LT)}warnOnInitialPropertyUpdate(e,t){e==="api"&&T9[t]&&$(22,{key:t})}processGridOptions(e){this.processOptions(e,S4())}validateApiFunction(e,t){return M9(e,t,this.beans)}missingUserComponent(e,t,i,s){const o=gn[t];o?this.gos.assertModuleRegistered(o,`AG Grid '${e}' component: ${t}`):$(101,{propertyName:e,componentName:t,agGridDefaults:i,jsComps:s})}missingDynamicBean(e){const t=A9[e];return t?Oi(200,{...this.gos.getModuleErrorParams(),moduleName:t,reasonOrId:e}):void 0}checkRowEvents(e){G9.has(e)&&$(10,{eventType:e})}validateIcon(e){if(N9.has(e)&&$(43,{iconName:e}),L9[e])return;const t=O9[e];if(t){We(200,{reasonOrId:`icon '${e}'`,moduleName:t,gridScoped:Fh(),gridId:this.beans.context.getId(),rowModelType:this.gos.get("rowModelType"),additionalText:"Alternatively, use the CSS icon name directly."});return}$(134,{iconName:e})}isProvidedUserComp(e){return!!gn[e]}validateColDef(e){this.processOptions(e,h4())}processOptions(e,t){const{validations:i,deprecations:s,allProperties:o,propertyExceptions:n,objectName:r,docsUrl:a}=t;o&&this.gridOptions.suppressPropertyNamesCheck!==!0&&this.checkProperties(e,[...n??[],...Object.keys(s)],o,r,a);const l=new Set;if(Object.keys(e).forEach(d=>{const u=s[d];if(u){const{message:b,version:x}=u;l.add(`As of v${x}, ${String(d)} is deprecated. ${b??""}`)}const h=e[d];if(h==null||h===!1)return;const p=i[d];if(!p)return;const{dependencies:m,validate:v,supportedRowModels:C,expectedType:w}=p;if(w){const b=typeof h;if(b!==w){l.add(`${String(d)} should be of type '${w}' but received '${b}' (${h}).`);return}}if(C){const b=this.gridOptions.rowModelType??"clientSide";if(!C.includes(b)){l.add(`${String(d)} is not supported with the '${b}' row model. It is only valid with: ${C.join(", ")}.`);return}}if(m){const b=this.checkForRequiredDependencies(d,m,e);if(b){l.add(b);return}}if(v){const b=v(e,this.gridOptions,this.beans);if(b){l.add(b);return}}}),l.size>0)for(const d of l)gr(d)}checkForRequiredDependencies(e,t,i){const o=Object.entries(t).filter(([n,r])=>{const a=i[n];return!r.required.includes(a)});return o.length===0?null:o.map(([n,r])=>`'${String(e)}' requires '${n}' to be one of [${r.required.map(a=>a===null?"null":a===void 0?"undefined":a).join(", ")}]. ${r.reason??""}`).join(`
67
- `)}checkProperties(e,t,i,s,o){const n=["__ob__","__v_skip","__metadata__"],r=B9(Object.getOwnPropertyNames(e),[...n,...t,...i],i),a=Object.keys(r);for(const l of a){const c=r[l];let d=`invalid ${s} property '${l}' did you mean any of these: ${c.slice(0,8).join(", ")}.`;i.includes("context")&&(d+=`
68
- If you are trying to annotate ${s} with application data, use the '${s}.context' property instead.`),gr(d)}if(a.length>0&&o){const l=this.beans.frameworkOverrides.getDocLink(o);gr(`to see all the valid ${s} properties please check: ${l}`)}}};function B9(e,t,i){const s={},o=e.filter(n=>!t.some(r=>r===n));if(o.length>0)for(const n of o)s[n]=Bu({inputValue:n,allSuggestions:i}).values;return s}var G9=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"]),V9={moduleName:"Validation",version:Q,beans:[H9]},z9={moduleName:"AllCommunity",version:Q,dependsOn:[Ok,sI,WA,V9,kM,IM,MM,AM,LM,OM,NM,TM,EA,DA,PA,TA,FA,IA,MA,i7,zT,S7,XC,ek,tk,K7,Wk,FE,k7,R9,bT,D9,qk,P9,KA,ST,V7,Ww,ZA,Z7,RE,Nk,s9]};function ce(e,t={}){const i=Object.keys(t).map(s=>{const o=t[s];return o!=null?`${s}=${o}`:null}).filter(Boolean).join(";");return[e,i].filter(s=>s.length>0).join(":")}var re={grid(e){return ce("ag-grid-root",{gridId:e})},headerGroupCell(e){return ce("ag-header-group-cell",{colId:e})},headerCell(e){return ce("ag-header-cell",{colId:e})},headerCheckbox(e){return ce("ag-header-selection-checkbox",{colId:e})},headerFilterButton(e){return ce("ag-header-cell-filter-button",{colId:e})},floatingFilter(e){return ce("ag-floating-filter",{colId:e})},floatingFilterButton(e){return ce("ag-floating-filter-button",{colId:e})},headerCellMenuButton(e){return ce("ag-header-cell-menu-button",{colId:e})},headerResizeHandle(e){return ce("ag-header-cell-resize",{colId:e})},filterInstancePickerDisplay(e){return ce(`ag-${e.source}-picker-display`,_a(e))},numberFilterInstanceInput(e){return ce(`ag-${e.source}-number-input`,_a(e))},textFilterInstanceInput(e){return ce(`ag-${e.source}-text-input`,_a(e))},dateFilterInstanceInput(e){return ce(`ag-${e.source}-date-input`,_a(e))},setFilterInstanceMiniFilterInput(e){return ce(`ag-${e.source}-set-filter-mini-filter-input`,e.source==="filter-toolpanel"?{label:e.colLabel}:{colId:e.colId})},setFilterInstanceItem(e,t){return ce(`ag-${e.source}-set-filter-item`,e.source==="filter-toolpanel"?{colLabel:e.colLabel,itemLabel:t}:{colId:e.colId,itemLabel:t})},setFilterApplyPanelButton(e,t){return ce(`ag-${e.source}-set-filter-apply-panel-button`,e.source==="filter-toolpanel"?{colLabel:e.colLabel,buttonLabel:t}:{colId:e.colId,buttonLabel:t})},filterConditionRadioButton(e,t){return ce(`ag-${e.source}-filter-condition-radio-button`,e.source==="filter-toolpanel"?{colLabel:e.colLabel,buttonLabel:t}:{colId:e.colId,buttonLabel:t})},advancedFilterInput(){return ce("ag-advanced-filter-input")},advancedFilterButton(e){return ce("ag-advanced-filter-button",{label:e})},advancedFilterBuilderButton(){return ce("ag-advanced-filter-builder-button")},advancedFilterPanelMaximiseButton(){return ce("ag-advanced-filter-builder-panel-maximise")},advancedFilterPanelCloseButton(){return ce("ag-advanced-filter-builder-panel-close")},advancedFilterPill(e){return ce("ag-advanced-filter-builder-pill",{label:e})},advancedFilterBuilderAddItemButton(){return ce("ag-advanced-filter-builder-add-item-button")},rowNode(e){return ce("ag-row",{"row-id":e})},cell(e,t){return ce("ag-cell",{"row-id":e,colId:t})},autoGroupCell(e){return re.cell(e,Cs)},checkbox(e,t){return ce("ag-selection-checkbox",{"row-id":e,colId:t})},selectionColumnCheckbox(e){return re.checkbox(e,Ph)},autoGroupColumnCheckbox(e){return re.checkbox(e,Cs)},dragHandle(e,t){return ce("ag-drag-handle",{"row-id":e,colId:t})},groupContracted(e,t){return ce("ag-group-contracted",{"row-id":e,colId:t})},groupExpanded(e,t){return ce("ag-group-expanded",{"row-id":e,colId:t})},autoGroupContracted(e){return re.groupContracted(e,Cs)},autoGroupExpanded(e){return re.groupExpanded(e,Cs)},rowNumber(e){return re.cell(e,Th)},menu(){return ce("ag-menu")},menuOption(e){return ce("ag-menu-option",{option:e})},sideBar(){return ce("ag-side-bar")},sideBarButton(e){return ce("ag-side-button",{label:e})},columnToolPanel(){return ce("ag-column-panel")},pivotModeSelect(){return ce("ag-pivot-mode-select")},columnPanelSelectHeaderCheckbox(){return ce("ag-column-panel-select-header-checkbox")},columnPanelSelectHeaderFilter(){return ce("ag-column-panel-select-header-filter")},columnSelectListItemGroupClosedIcon(e){return ce("ag-column-select-list-item-group-closed-icon",{label:e})},columnSelectListItemCheckbox(e){return ce("ag-column-select-list-item-checkbox",{label:e})},columnSelectListItemDragHandle(e){return ce("ag-column-select-list-item-drag-handle",{label:e})},columnDropCellDragHandle(e,t,i){return ce("ag-column-drop-cell-drag-handle",{source:e,area:t,label:i})},columnDropCellCancelButton(e,t,i){return ce("ag-column-drop-cell-cancel",{source:e,area:t,label:i})},columnDropArea(e,t){return ce("ag-column-drop-area",{source:e,name:t})},filterToolPanel(){return ce("ag-filter-panel")},filterToolPanelAddFilterButton(){return ce("ag-filter-panel-add-filter-button")},filterToolPanelFilterTypeSelector(e){return ce("ag-filter-panel-filter-type-selector",{colLabel:e})},filterToolPanelSearchInput(){return ce("ag-filter-toolpanel-search-input")},filterToolPanelGroup(e){return ce("ag-filter-toolpanel-group",{title:e})},filterToolPanelGroupCollapsedIcon(e){return ce("ag-filter-toolpanel-group-collapsed-icon",{title:e})},statusBarTotalAndFilteredRowCount(){return ce("ag-status-bar-total-and-filtered-row-count")},statusBarTotalRowCount(){return ce("ag-status-bar-total-row-count")},statusBarFilteredRowCount(){return ce("ag-status-bar-filtered-row-count")},statusBarSelectedRowCount(){return ce("ag-status-bar-selected-row-count")},statusBarAggregations(){return ce("ag-status-bar-aggregations")},paginationPanelSizePickerDisplay(e){return ce("ag-pagination-page-size-picker-field-display",{value:e})},paginationPanelFirstRowOnPage(e){return ce("ag-paging-row-summary-panel-first-row-on-page",{value:e})},paginationPanelLastRowOnPage(e){return ce("ag-paging-row-summary-panel-last-row-on-page",{value:e})},paginationPanelRecordCount(e){return ce("ag-paging-row-summary-panel-record-count",{value:e})},paginationSummaryPanelButton(e){return ce("ag-paging-page-summary-panel-btn",{label:e})},paginationSummaryPanelCurrentPage(e){return ce("ag-paging-page-summary-panel-current-page",{value:e})},paginationSummaryPanelTotalPage(e){return ce("ag-paging-page-summary-panel-total-page",{value:e})},fillHandle(){return ce("ag-fill-handle")},columnChooserCloseButton(){return ce("ag-column-chooser-close-button")},columnChooserSearchBarCheckbox(){return ce("ag-column-chooser-header-checkbox")},columnChooserSearchBarFilter(){return ce("ag-column-chooser-searchbar-filter")},columnChooserListItemGroupClosedIcon(e){return ce("ag-column-chooser-list-item-group-closed-icon",{label:e})},columnChooserListItemCheckbox(e){return ce("ag-column-chooser-list-item-checkbox",{label:e})},columnChooserListItemDragHandle(e){return ce("ag-column-chooser-list-item-drag-handle",{label:e})},overlay(){return ce("ag-overlay")}};function W9(e,t){const i={};for(const s of Object.keys(e))t[s]!==null&&(i[t[s]??s]=e[s]);return i}function j9(e){return e.source!=="floating-filter"?{index:0,...e}:e}function _a(e){return W9(j9(e),{colLabel:"label"})}var C1="data-testid";function he(e,t){e?.setAttribute(C1,t)}function _9(e){C1=e}var U9=class extends B{constructor(){super(...arguments),this.beanName="testIdSvc"}postConstruct(){const e=ct(this,()=>this.setupAllTestIds(),500),t=ct(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=fi(this.beans),t=LC(this.beans),i=e.querySelector(`[grid-id="${t}"]`);he(i,re.grid(t)),e.querySelectorAll(".ag-header-group-cell").forEach(n=>{he(n,re.headerGroupCell(n.getAttribute("col-id")))}),e.querySelectorAll(".ag-header-cell").forEach(n=>{const r=n.getAttribute("col-id"),l=n.classList.contains("ag-floating-filter")?re.floatingFilter(r):re.headerCell(r);he(n,l),he(n.querySelector(".ag-header-cell-filter-button"),re.headerFilterButton(r)),he(n.querySelector(".ag-header-cell-menu-button"),re.headerCellMenuButton(r)),he(n.querySelector(".ag-header-cell-resize"),re.headerResizeHandle(r)),he(n.querySelector(".ag-checkbox input[type=checkbox]"),re.headerCheckbox(r)),he(n.querySelector(".ag-floating-filter-button button"),re.floatingFilterButton(r)),this.setupFilterInstance(n.querySelector(".ag-floating-filter-body"),{source:"floating-filter",colId:r})});const s=e.querySelector(".ag-filter-menu");this.setupFilterInstance(s,{source:"column-filter"}),he(e.querySelector(".ag-advanced-filter input[type=text]"),re.advancedFilterInput()),e.querySelectorAll(".ag-advanced-filter-buttons button").forEach(n=>{he(n,re.advancedFilterButton(n.textContent))}),he(e.querySelector("button.ag-advanced-filter-builder-button"),re.advancedFilterBuilderButton()),e.querySelectorAll('.ag-panel[aria-label="Advanced Filter"] .ag-panel-title-bar-button').forEach((n,r)=>{he(n,r===0?re.advancedFilterPanelMaximiseButton():re.advancedFilterPanelCloseButton())}),e.querySelectorAll('.ag-panel[aria-lable="Advanced Filter"] .ag-advanced-filter-builder-pill').forEach(n=>{he(n,re.advancedFilterPill(n.querySelector(".ag-picker-field-display")?.textContent))}),he(e.querySelector('.ag-panel[aria-label="Advanced Filter"] .ag-advanced-filter-builder-item-button'),re.advancedFilterBuilderAddItemButton()),e.querySelectorAll(".ag-row").forEach(n=>{const r=n.getAttribute("row-id");he(n,re.rowNode(r)),n.querySelectorAll(".ag-cell").forEach(a=>{const l=a.getAttribute("col-id");he(a,re.cell(r,l)),he(a.querySelector(".ag-selection-checkbox input[type=checkbox]"),re.checkbox(r,l)),he(a.querySelector(".ag-drag-handle"),re.dragHandle(r,l)),he(a.querySelector(".ag-group-contracted"),re.groupContracted(r,l)),he(a.querySelector(".ag-group-expanded"),re.groupExpanded(r,l))})}),e.querySelectorAll(".ag-menu-list").forEach(n=>{he(n,re.menu()),n.querySelectorAll(".ag-menu-option").forEach(r=>{he(r,re.menuOption(r.querySelector(".ag-menu-option-text")?.textContent))})}),e.querySelectorAll(".ag-side-bar").forEach(n=>{he(n,re.sideBar()),n.querySelectorAll(".ag-side-button button").forEach(r=>{he(r,re.sideBarButton(r.querySelector(".ag-side-button-label")?.textContent))}),n.querySelectorAll(".ag-column-panel").forEach(r=>{he(r,re.columnToolPanel()),he(r.querySelector(".ag-pivot-mode-select input[type=checkbox]"),re.pivotModeSelect()),he(r.querySelector(".ag-column-select-header-checkbox input[type=checkbox]"),re.columnPanelSelectHeaderCheckbox()),he(r.querySelector(".ag-column-select-header-filter-wrapper input[type=text]"),re.columnPanelSelectHeaderFilter()),r.querySelectorAll(".ag-column-select-list").forEach(a=>{a.querySelectorAll(".ag-column-select-virtual-list-item").forEach(l=>{const c=l.getAttribute("aria-label");he(l.querySelector(".ag-column-group-closed-icon"),re.columnSelectListItemGroupClosedIcon(c)),he(l.querySelector(".ag-column-select-checkbox input[type=checkbox]"),re.columnSelectListItemCheckbox(c)),he(l.querySelector(".ag-drag-handle"),re.columnSelectListItemDragHandle(c))})}),this.setupColumnDropArea(r,"toolbar")}),n.querySelectorAll(".ag-filter-panel").forEach(r=>{he(r,re.filterToolPanel()),he(r.querySelector("button.ag-filter-add-button"),re.filterToolPanelAddFilterButton()),r.querySelectorAll(".ag-filter-card").forEach(a=>{const l=a.querySelector(".ag-filter-card-title")?.textContent,c=a.querySelector(".ag-filter-type-select");he(c,re.filterToolPanelFilterTypeSelector(l)),a.querySelectorAll(".ag-filter").forEach(d=>this.setupFilterInstance(d,{source:"filter-toolpanel",colLabel:l}))})}),n.querySelectorAll(".ag-filter-toolpanel").forEach(r=>{he(r.querySelector(".ag-filter-toolpanel-search-input input[type=text]"),re.filterToolPanelSearchInput()),r.querySelectorAll(".ag-filter-toolpanel-group").forEach(a=>{const l=a.querySelector(".ag-filter-toolpanel-group-title")?.textContent;he(a,re.filterToolPanelGroup(l)),he(a.querySelector(".ag-filter-toolpanel-group-title-bar-icon .ag-icon-tree-closed"),re.filterToolPanelGroupCollapsedIcon(l));const c=a.querySelector(".ag-filter-toolpanel-instance-filter");c&&this.setupFilterInstance(c,{source:"filter-toolpanel",colLabel:l})})})}),he(e.querySelector(".ag-status-bar .ag-status-panel-total-and-filtered-row-count"),re.statusBarTotalAndFilteredRowCount()),he(e.querySelector(".ag-status-bar .ag-status-panel-total-row-count"),re.statusBarTotalRowCount()),he(e.querySelector(".ag-status-bar .ag-status-panel-filtered-row-count"),re.statusBarFilteredRowCount()),he(e.querySelector(".ag-status-bar .ag-status-panel-selected-row-count"),re.statusBarSelectedRowCount()),he(e.querySelector(".ag-status-bar .ag-status-panel-filtered-row-count"),re.statusBarAggregations()),e.querySelectorAll(".ag-paging-panel").forEach(n=>{he(n.querySelector(".ag-paging-page-size .ag-picker-field-display"),re.paginationPanelSizePickerDisplay(n.querySelector(".ag-paging-page-size .ag-picker-field-display")?.textContent)),n.querySelectorAll(".ag-paging-row-summary-panel-number").forEach(r=>{switch(r.getAttribute("data-ref")){case"lbFirstRowOnPage":he(r,re.paginationPanelFirstRowOnPage(r.textContent));break;case"lbLastRowOnPage":he(r,re.paginationPanelLastRowOnPage(r.textContent));break;case"lbRecordCount":he(r,re.paginationPanelRecordCount(r.textContent));break}}),n.querySelectorAll(".ag-paging-page-summary-panel .ag-button").forEach(r=>{he(r,re.paginationSummaryPanelButton(r.getAttribute("aria-label")?.toLowerCase()))}),n.querySelectorAll(".ag-paging-page-summary-panel .ag-paging-number").forEach(r=>{switch(r.getAttribute("data-ref")){case"lbCurrent":he(r,re.paginationSummaryPanelCurrentPage(r.textContent));break;case"lbTotal":he(r,re.paginationSummaryPanelTotalPage(r.textContent));break}})}),he(e.querySelector(".ag-fill-handle"),re.fillHandle()),e.querySelectorAll('.ag-panel[aria-label="Choose Columns"]').forEach(n=>{he(n.querySelector(".ag-panel-title-bar-button-icon"),re.columnChooserCloseButton()),he(n.querySelector('.ag-column-select-header-checkbox input[type="checkbox"]'),re.columnChooserSearchBarCheckbox()),he(n.querySelector('.ag-column-select-header-filter-wrapper input[type="text"]'),re.columnChooserSearchBarFilter()),n.querySelectorAll(".ag-column-select-list").forEach(r=>{r.querySelectorAll(".ag-column-select-virtual-list-item").forEach(a=>{const l=a.getAttribute("aria-label");he(a.querySelector(".ag-column-group-closed-icon"),re.columnChooserListItemGroupClosedIcon(l)),he(a.querySelector(".ag-column-select-checkbox input[type=checkbox]"),re.columnChooserListItemCheckbox(l)),he(a.querySelector(".ag-drag-handle"),re.columnChooserListItemDragHandle(l))})})}),he(e.querySelector(".ag-overlay-wrapper"),re.overlay());const o=e.querySelector(".ag-column-drop-wrapper");o&&this.setupColumnDropArea(o,"panel")}setupFilterInstance(e,t){if(!e)return;e.querySelectorAll(".ag-filter-select .ag-picker-field-display").forEach(o=>{he(o,re.filterInstancePickerDisplay(t))});const i=t.source==="floating-filter"?".ag-floating-filter-body":".ag-filter-body";e.querySelectorAll(`${i} .ag-input-field:not(.ag-hidden) input[type="number"]`).forEach((o,n,r)=>{const l=r.length>1?{...t,index:n}:t;he(o,re.numberFilterInstanceInput(l))}),e.querySelectorAll(`${i} .ag-input-field:not(.ag-hidden) input[type="text"]`).forEach((o,n,r)=>{const l=r.length>1?{...t,index:n}:t;he(o,re.textFilterInstanceInput(l))}),e.querySelectorAll(`${i} .ag-input-field:not(.ag-hidden) input[type="date"]`).forEach((o,n,r)=>{const l=r.length>1?{...t,index:n}:t;he(o,re.dateFilterInstanceInput(l))});const s=e.querySelector('.ag-mini-filter input[type="text"]');he(s,re.setFilterInstanceMiniFilterInput(t)),e.querySelectorAll(".ag-set-filter-list .ag-set-filter-item").forEach(o=>{const n=o.querySelector(".ag-checkbox-label")?.textContent,r=o.querySelector('input[type="checkbox"]');he(r,re.setFilterInstanceItem(t,n))}),e.querySelectorAll(".ag-filter-apply-panel button").forEach(o=>{he(o,re.setFilterApplyPanelButton(t,o.textContent))}),e.querySelectorAll(".ag-filter-condition .ag-radio-button").forEach(o=>{const n=o.querySelector(".ag-radio-button-label")?.textContent;he(o.querySelector("input[type=radio]"),re.filterConditionRadioButton(t,n))})}setupColumnDropArea(e,t){e.querySelectorAll(".ag-column-drop").forEach(i=>{const s=i.querySelector(".ag-column-drop-list")?.getAttribute("aria-label");he(i,re.columnDropArea(t,s)),i.querySelectorAll(".ag-column-drop-cell").forEach(o=>{const n=o.querySelector(".ag-column-drop-cell-text")?.textContent;he(o.querySelector(".ag-drag-handle"),re.columnDropCellDragHandle(t,s,n)),he(o.querySelector(".ag-column-drop-cell-button .ag-icon-cancel"),re.columnDropCellCancelButton(t,s,n))})})}},$9={moduleName:"Testing",version:Q,beans:[U9]};function q9({testIdAttribute:e}={}){e&&_9(e),Mv.registerModules([$9])}var K9=class{wrap(e,t,i,s){const o=this.createWrapper(e,s);for(const n of t??[])this.createMethod(o,n,!0);for(const n of i??[])this.createMethod(o,n,!1);return o}createMethod(e,t,i){e.addMethod(t,this.createMethodProxy(e,t,i))}createMethodProxy(e,t,i){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(i&&$(49,{methodName:t}),null)}}},Y9=class extends MC{constructor(e){super(e,Ah)}},Tt=g.createContext({}),w1=g.createContext("default"),Yr=(e,t,i,s)=>{if(!e||e.componentFromFramework||t.isDestroyed())return;const n=e.newAgStackInstance();let r,a,l=!1;return n.then(c=>{if(l){t.destroyBean(c);return}r=c,a=r.getGui(),i.appendChild(a),om(s,r)}),()=>{l=!0,r&&(a?.remove(),t.destroyBean(r),s&&om(s,void 0))}},om=(e,t)=>{if(e)if(e instanceof Function)e(t);else{const i=e;i.current=t}},oi=(...e)=>e.filter(i=>i!=null&&i!=="").join(" "),ci=class b1{constructor(...t){this.classesMap={};for(const i of t)this.classesMap[i]=!0}setClass(t,i){if(!!this.classesMap[t]==i)return this;const o=new b1;return o.classesMap={...this.classesMap},o.classesMap[t]=i,o}toString(){return Object.keys(this.classesMap).filter(i=>this.classesMap[i]).join(" ")}},An=e=>{const t=()=>typeof Symbol=="function"&&Symbol.for,i=()=>t()?Symbol.for("react.memo"):60115;return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===i()},Xu=g.version?.split(".")[0],x1=Xu==="16"||Xu==="17";function Z9(){return Xu==="19"}var ll=!1;function X9(e){return ll||setTimeout(()=>ll=!1,0),ll=!0,e()}var Nr=(e,t)=>{!x1&&e&&!ll?Dn.flushSync(t):t()},Q9=e=>{x1?e():g.startTransition(e)};function J9(e,t,i){return g.useSyncExternalStore?g.useSyncExternalStore(e,t):i}function zl(e,t,i){if(t==null||e==null)return t;if(e===t||t.length===0&&e.length===0)return e;if(i||e.length===0&&t.length>0||e.length>0&&t.length===0)return t;const s=[],o=[],n=new Map,r=new Map;for(let a=0;a<t.length;a++){const l=t[a];r.set(l.instanceId,l)}for(let a=0;a<e.length;a++){const l=e[a];n.set(l.instanceId,l),r.has(l.instanceId)&&s.push(l)}for(let a=0;a<t.length;a++){const l=t[a],c=l.instanceId;n.has(c)||o.push(l)}return s.length===e.length&&o.length===0?e:s.length===0&&o.length===t.length?t:s.length===0?o:o.length===0?s:[...s,...o]}var y1=g.forwardRef((e,t)=>{const{registry:i,context:s}=g.useContext(Tt),o=g.useRef(null),n=g.useRef(null),r=g.useRef(null),a=g.useRef(null),l=g.useRef(null),c=g.useRef(),[d,u]=g.useState(),[h,p]=g.useState(),[m,v]=g.useState(),[C,w]=g.useState(()=>new ci),[b,x]=g.useState(()=>new ci("ag-hidden")),[y,S]=g.useState(()=>new ci("ag-hidden")),[E,R]=g.useState(()=>new ci("ag-invisible"));g.useImperativeHandle(t,()=>({refresh(){return!1}})),g.useLayoutEffect(()=>Yr(d,s,n.current),[d]);const F=g.useCallback(H=>{if(o.current=H,!H||s.isDestroyed()){c.current=s.destroyBean(c.current);return}const z={setInnerRenderer:(M,I)=>{u(M),v(I)},setChildCount:M=>p(M),toggleCss:(M,I)=>w(G=>G.setClass(M,I)),setContractedDisplayed:M=>S(I=>I.setClass("ag-hidden",!M)),setExpandedDisplayed:M=>x(I=>I.setClass("ag-hidden",!M)),setCheckboxVisible:M=>R(I=>I.setClass("ag-invisible",!M)),setCheckboxSpacing:M=>R(I=>I.setClass("ag-group-checkbox-spacing",M))},se=i.createDynamicBean("groupCellRendererCtrl",!0);se&&(c.current=s.createBean(se),c.current.init(z,H,r.current,a.current,l.current,y1,e))},[]),D=g.useMemo(()=>`ag-cell-wrapper ${C.toString()}`,[C]),T=g.useMemo(()=>`ag-group-expanded ${b.toString()}`,[b]),P=g.useMemo(()=>`ag-group-contracted ${y.toString()}`,[y]),k=g.useMemo(()=>`ag-group-checkbox ${E.toString()}`,[E]),O=d?.componentFromFramework,_=O?d.componentClass:void 0,L=d==null&&m!=null,N=Tn(m);return g.createElement("span",{className:D,ref:F,...e.colDef?{}:{role:c.current?.getCellAriaRole()}},g.createElement("span",{className:T,ref:a}),g.createElement("span",{className:P,ref:l}),g.createElement("span",{className:k,ref:r}),g.createElement("span",{className:"ag-group-value",ref:n},L?N:O?g.createElement(_,{...d.params}):null),g.createElement("span",{className:"ag-group-child-count"},h))}),nm=y1,Rp=g.createContext({setMethods:()=>{}}),eL=e=>{const{initialProps:t,addUpdateCallback:i,CustomComponentClass:s,setMethods:o}=e,[{key:n,...r},a]=g.useState(t);return g.useEffect(()=>{i(l=>a(l))},[]),g.createElement(Rp.Provider,{value:{setMethods:o}},g.createElement(s,{key:n,...r}))},tL=g.memo(eL),iL=0;function rm(){return`agPortalKey_${++iL}`}var S1=class{constructor(e,t,i,s){this.portal=null,this.oldPortal=null,this.reactComponent=e,this.portalManager=t,this.componentType=i,this.suppressFallbackMethods=!!s,this.statelessComponent=this.isStateless(this.reactComponent),this.key=rm(),this.portalKey=rm(),this.instanceCreated=this.isStatelessComponent()?Ne.resolve(!1):new Ne(o=>{this.resolveInstanceCreated=o})}getGui(){return this.eParentElement}getRootElement(){return this.eParentElement.firstChild}destroy(){this.componentInstance&&typeof this.componentInstance.destroy=="function"&&this.componentInstance.destroy();const e=this.portal;e&&this.portalManager.destroyPortal(e)}createParentElement(e){const t=this.portalManager.getComponentWrappingElement(),i=document.createElement(t||"div");return i.classList.add("ag-react-container"),e.reactContainer=i,i}statelessComponentRendered(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0}getFrameworkComponentInstance(){return this.componentInstance}isStatelessComponent(){return this.statelessComponent}getReactComponentName(){return this.reactComponent.name}getMemoType(){return this.hasSymbol()?Symbol.for("react.memo"):60115}hasSymbol(){return typeof Symbol=="function"&&Symbol.for}isStateless(e){return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===this.getMemoType()}hasMethod(e){const t=this.getFrameworkComponentInstance();return!!t&&t[e]!=null||this.fallbackMethodAvailable(e)}callMethod(e,t){const i=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(!i){setTimeout(()=>this.callMethod(e,t));return}const s=i[e];if(s)return s.apply(i,t);if(this.fallbackMethodAvailable(e))return this.fallbackMethod(e,t&&t[0]?t[0]:{})}addMethod(e,t){this[e]=t}init(e){return this.eParentElement=this.createParentElement(e),this.createOrUpdatePortal(e),new Ne(t=>this.createReactComponent(t))}createOrUpdatePortal(e){this.isStatelessComponent()||(this.ref=t=>{this.componentInstance=t,this.resolveInstanceCreated?.(!0),this.resolveInstanceCreated=void 0},e.ref=this.ref),this.reactElement=this.createElement(this.reactComponent,{...e,key:this.key}),this.portal=Dn.createPortal(this.reactElement,this.eParentElement,this.portalKey)}createElement(e,t){return g.createElement(e,t)}createReactComponent(e){this.portalManager.mountReactPortal(this.portal,this,e)}rendered(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!!(!this.isStatelessComponent()&&this.getFrameworkComponentInstance())}refreshComponent(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)}fallbackMethod(e,t){const i=this[`${e}Component`];if(!this.suppressFallbackMethods&&i)return i.bind(this)(t)}fallbackMethodAvailable(e){return this.suppressFallbackMethods?!1:!!this[`${e}Component`]}};function wc(e,t,i){for(const s of e){const o=t[s];o&&(i[s]=o)}}var hi=class extends S1{constructor(){super(...arguments),this.awaitUpdateCallback=new Ne(e=>{this.resolveUpdateCallback=e}),this.wrapperComponent=tL}init(e){return this.sourceParams=e,super.init(this.getProps())}addMethod(){}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}getFrameworkComponentInstance(){return this}createElement(e,t){return super.createElement(this.wrapperComponent,{initialProps:t,CustomComponentClass:e,setMethods:i=>this.setMethods(i),addUpdateCallback:i=>{this.updateCallback=()=>(i(this.getProps()),new Ne(s=>{setTimeout(()=>{s()})})),this.resolveUpdateCallback()}})}setMethods(e){this.providedMethods=e,wc(this.getOptionalMethods(),this.providedMethods,this)}getOptionalMethods(){return[]}getProps(){return{...this.sourceParams,key:this.key,ref:this.ref}}refreshProps(){return this.updateCallback?this.updateCallback():new Ne(e=>this.awaitUpdateCallback.then(()=>{this.updateCallback().then(()=>e())}))}},sL=class extends hi{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},oL=class extends hi{refresh(e){this.sourceParams=e,this.refreshProps()}},nL=class extends hi{constructor(){super(...arguments),this.date=null,this.onDateChange=e=>this.updateDate(e)}getDate(){return this.date}setDate(e){this.date=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled"]}updateDate(e){this.setDate(e),this.sourceParams.onDateChanged()}getProps(){const e=super.getProps();return e.date=this.date,e.onDateChange=this.onDateChange,delete e.onDateChanged,e}},rL=class extends hi{constructor(){super(...arguments),this.label="",this.icon=null,this.shake=!1}setIcon(e,t){this.icon=e,this.shake=t,this.refreshProps()}setLabel(e){this.label=e,this.refreshProps()}getProps(){const e=super.getProps(),{label:t,icon:i,shake:s}=this;return e.label=t,e.icon=i,e.shake=s,e}},aL=class extends hi{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e),this.onUiChange=()=>this.sourceParams.filterModifiedCallback(),this.expectingNewMethods=!0,this.hasBeenActive=!1,this.awaitSetMethodsCallback=new Ne(e=>{this.resolveSetMethodsCallback=e})}isFilterActive(){return this.model!=null}doesFilterPass(e){return this.providedMethods.doesFilterPass(e)}getModel(){return this.model}setModel(e){return this.expectingNewMethods=!0,this.model=e,this.hasBeenActive||(this.hasBeenActive=this.isFilterActive()),this.refreshProps()}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}afterGuiAttached(e){const t=this.providedMethods;t?t.afterGuiAttached?.(e):this.awaitSetMethodsCallback.then(()=>this.providedMethods?.afterGuiAttached?.(e))}getOptionalMethods(){return["afterGuiDetached","onNewRowsLoaded","getModelAsString","onAnyFilterChanged"]}setMethods(e){this.expectingNewMethods===!1&&this.hasBeenActive&&this.providedMethods?.doesFilterPass!==e?.doesFilterPass&&setTimeout(()=>{this.sourceParams.filterChangedCallback()}),this.expectingNewMethods=!1,super.setMethods(e),this.resolveSetMethodsCallback(),this.resolveFilterPassCallback?.(),this.resolveFilterPassCallback=void 0}updateModel(e){this.resolveFilterPassCallback?.();const t=new Ne(i=>{this.resolveFilterPassCallback=i});this.setModel(e).then(()=>{t.then(()=>{this.sourceParams.filterChangedCallback()})})}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e.onUiChange=this.onUiChange,delete e.filterChangedCallback,e}},lL=class extends hi{constructor(){super(...arguments),this.awaitSetMethodsCallback=new Ne(e=>{this.resolveSetMethodsCallback=e})}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}afterGuiAttached(e){const t=this.providedMethods;t?t.afterGuiAttached?.(e):this.awaitSetMethodsCallback.then(()=>this.providedMethods?.afterGuiAttached?.(e))}getOptionalMethods(){return["afterGuiDetached","onNewRowsLoaded","onAnyFilterChanged"]}setMethods(e){super.setMethods(e),this.resolveSetMethodsCallback()}};function R1(e,t){e.parentFilterInstance(i=>{(i.setModel(t)||Ne.resolve()).then(()=>{e.filterParams.filterChangedCallback()})})}var cL=class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t,this.model=null,this.onModelChange=i=>this.updateModel(i)}getProps(){return{...this.floatingFilterParams,model:this.model,onModelChange:this.onModelChange}}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){wc(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),R1(this.floatingFilterParams,e)}},dL=class extends hi{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e)}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),R1(this.sourceParams,e)}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e}},uL=class extends hi{refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}},hL=class extends hi{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},pL=class extends hi{constructor(){super(...arguments),this.active=!1,this.expanded=!1,this.onActiveChange=e=>this.updateActive(e)}setActive(e){this.awaitSetActive(e)}setExpanded(e){this.expanded=e,this.refreshProps()}getOptionalMethods(){return["select","configureDefaults"]}awaitSetActive(e){return this.active=e,this.refreshProps()}updateActive(e){const t=this.awaitSetActive(e);e&&t.then(()=>this.sourceParams.onItemActivated())}getProps(){const e=super.getProps();return e.active=this.active,e.expanded=this.expanded,e.onActiveChange=this.onActiveChange,delete e.onItemActivated,e}},gL=class extends hi{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},fL=class extends hi{constructor(){super(...arguments),this.onStateChange=e=>this.updateState(e)}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}getState(){return this.state}updateState(e){this.state=e,this.refreshProps(),this.sourceParams.onStateUpdated()}getProps(){const e=super.getProps();return e.state=this.state,e.onStateChange=this.onStateChange,e}};function Fp(){$(231)}var mL=1e3,vL=class{constructor(e,t,i){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.refresher=e,this.maxComponentCreationTimeMs=i||mL}getPortals(){return this.portals}destroy(){this.destroyed=!0}destroyPortal(e){this.portals=this.portals.filter(t=>t!==e),this.batchUpdate()}getComponentWrappingElement(){return this.wrappingElement}mountReactPortal(e,t,i){this.portals=[...this.portals,e],this.waitForInstance(t,i),this.batchUpdate()}updateReactPortal(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()}batchUpdate(){this.hasPendingPortalUpdate||(setTimeout(()=>{this.destroyed||(this.refresher(),this.hasPendingPortalUpdate=!1)}),this.hasPendingPortalUpdate=!0)}waitForInstance(e,t,i=Date.now()){if(this.destroyed){t(null);return}if(e.rendered())t(e);else{if(Date.now()-i>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate){Nr(!0,()=>this.refresher()),e.rendered()&&t(e);return}window.setTimeout(()=>{this.waitForInstance(e,t,i)})}}},CL=g.createContext([]),wL=g.createContext(void 0),bL=({ctrl:e})=>{const t=e.isAlive(),{context:i}=g.useContext(Tt),[s,o]=g.useState(),[n,r]=g.useState(),a=g.useRef(),l=g.useRef(null),c=g.useRef(null),d=g.useRef(null),u=g.useRef(),h=g.useRef();t&&!h.current&&(h.current=new Wr(()=>l.current));const p=g.useCallback(w=>{if(l.current=w,!w||!e.isAlive()||i.isDestroyed()){a.current=i.destroyBean(a.current);return}a.current=i.createBean(new Mn);const b=()=>{const y=e.getSelectAllGui();y&&(c.current?.insertAdjacentElement("afterend",y),a.current.addDestroyFunc(()=>y.remove()))},x={setWidth:y=>{l.current&&(l.current.style.width=y)},toggleCss:(y,S)=>h.current.toggleCss(y,S),setUserStyles:y=>r(y),setAriaSort:y=>{l.current&&(y?qS(l.current,y):KS(l.current))},setUserCompDetails:y=>o(y),getUserCompInstance:()=>u.current||void 0,refreshSelectAllGui:b,removeSelectAllGui:()=>e.getSelectAllGui()?.remove()};e.setComp(x,w,c.current,d.current,a.current),b()},[]);g.useLayoutEffect(()=>Yr(s,i,d.current,u),[s]),g.useEffect(()=>{e.setDragSource(l.current)},[s]);const m=g.useMemo(()=>!!(s?.componentFromFramework&&An(s.componentClass)),[s]),v=s?.componentFromFramework,C=s?.componentClass;return g.createElement("div",{ref:p,style:n,className:"ag-header-cell",role:"columnheader"},g.createElement("div",{ref:c,className:"ag-header-cell-resize",role:"presentation"}),g.createElement("div",{ref:d,className:"ag-header-cell-comp-wrapper",role:"presentation"},v?m?g.createElement(C,{...s.params}):g.createElement(C,{...s.params,ref:u}):null))},xL=g.memo(bL),yL=class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t}getProps(){return this.floatingFilterParams}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){wc(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}},SL=({ctrl:e})=>{const{context:t,gos:i}=g.useContext(Tt),[s,o]=g.useState(),[n,r]=g.useState(()=>new ci("ag-header-cell","ag-floating-filter")),[a,l]=g.useState(()=>new ci),[c,d]=g.useState(()=>new ci("ag-floating-filter-button","ag-hidden")),[u,h]=g.useState("false"),[p,m]=g.useState(),[,v]=g.useState(1),C=g.useRef(),w=g.useRef(null),b=g.useRef(null),x=g.useRef(null),y=g.useRef(null),S=g.useRef(),E=g.useRef(),R=M=>{M!=null&&S.current?.(M)},F=g.useCallback(M=>{if(w.current=M,!M||!e.isAlive()||t.isDestroyed()){C.current=t.destroyBean(C.current);return}C.current=t.createBean(new Mn),E.current=new Ne(G=>{S.current=G});const I={toggleCss:(G,K)=>r(oe=>oe.setClass(G,K)),setUserStyles:G=>o(G),addOrRemoveBodyCssClass:(G,K)=>l(oe=>oe.setClass(G,K)),setButtonWrapperDisplayed:G=>{d(K=>K.setClass("ag-hidden",!G)),h(G?"false":"true")},setWidth:G=>{w.current&&(w.current.style.width=G)},setCompDetails:G=>m(G),getFloatingFilterComp:()=>E.current?E.current:null,setMenuIcon:G=>y.current?.appendChild(G)};e.setComp(I,M,y.current,b.current,C.current)},[]);g.useLayoutEffect(()=>Yr(p,t,b.current,R),[p]);const D=g.useMemo(()=>n.toString(),[n]),T=g.useMemo(()=>a.toString(),[a]),P=g.useMemo(()=>c.toString(),[c]),k=g.useMemo(()=>!!(p&&p.componentFromFramework&&An(p.componentClass)),[p]),O=g.useMemo(()=>i.get("reactiveCustomComponents"),[]),_=g.useMemo(()=>i.get("enableFilterHandlers"),[]),[L,N]=g.useState();g.useEffect(()=>{if(p?.componentFromFramework)if(O){const M=_?yL:cL,I=new M(p.params,()=>v(G=>G+1));R(I),N(I)}else Fp()},[p]);const H=L?.getProps(),z=p?.componentFromFramework,se=p?.componentClass;return g.createElement("div",{ref:F,style:s,className:D,role:"gridcell"},g.createElement("div",{ref:b,className:T,role:"presentation"},z?O?H&&g.createElement(Rp.Provider,{value:{setMethods:M=>L.setMethods(M)}},g.createElement(se,{...H})):g.createElement(se,{...p.params,ref:k?()=>{}:R}):null),g.createElement("div",{ref:x,"aria-hidden":u,className:P,role:"presentation"},g.createElement("button",{ref:y,type:"button",className:"ag-button ag-floating-filter-button-button",tabIndex:-1})))},RL=g.memo(SL),FL=({ctrl:e})=>{const{context:t}=g.useContext(Tt),[i,s]=g.useState(),[o,n]=g.useState(()=>new ci),[r,a]=g.useState(()=>new ci),[l,c]=g.useState("false"),[d,u]=g.useState(),[h,p]=g.useState(),m=g.useRef(),v=g.useRef(null),C=g.useRef(null),w=g.useRef(null),b=g.useRef(),x=g.useCallback(D=>{if(v.current=D,!D||!e.isAlive()||t.isDestroyed()){m.current=t.destroyBean(m.current);return}m.current=t.createBean(new Mn);const T={setWidth:P=>{v.current&&(v.current.style.width=P)},toggleCss:(P,k)=>n(O=>O.setClass(P,k)),setUserStyles:P=>s(P),setHeaderWrapperHidden:P=>{const k=w.current;k&&(P?k.style.setProperty("display","none"):k.style.removeProperty("display"))},setHeaderWrapperMaxHeight:P=>{const k=w.current;k&&(P!=null?k.style.setProperty("max-height",`${P}px`):k.style.removeProperty("max-height"),k.classList.toggle("ag-header-cell-comp-wrapper-limited-height",P!=null))},setUserCompDetails:P=>p(P),setResizableDisplayed:P=>{a(k=>k.setClass("ag-hidden",!P)),c(P?"false":"true")},setAriaExpanded:P=>u(P),getUserCompInstance:()=>b.current||void 0};e.setComp(T,D,C.current,w.current,m.current)},[]);g.useLayoutEffect(()=>Yr(h,t,w.current),[h]),g.useEffect(()=>{v.current&&e.setDragSource(v.current)},[h]);const y=g.useMemo(()=>!!(h?.componentFromFramework&&An(h.componentClass)),[h]),S=g.useMemo(()=>"ag-header-group-cell "+o.toString(),[o]),E=g.useMemo(()=>"ag-header-cell-resize "+r.toString(),[r]),R=h?.componentFromFramework,F=h?.componentClass;return g.createElement("div",{ref:x,style:i,className:S,role:"columnheader","aria-expanded":d},g.createElement("div",{ref:w,className:"ag-header-cell-comp-wrapper",role:"presentation"},R?y?g.createElement(F,{...h.params}):g.createElement(F,{...h.params,ref:b}):null),g.createElement("div",{ref:C,"aria-hidden":l,className:E}))},EL=g.memo(FL),DL=({ctrl:e})=>{const{gos:t,context:i}=g.useContext(Tt),{topOffset:s,rowHeight:o}=g.useMemo(()=>e.getTopAndHeight(),[]),n=g.useMemo(()=>t.get("tabIndex"),[]),[r,a]=g.useState(()=>e.getAriaRowIndex()),l=e.headerRowClass,[c,d]=g.useState(()=>o+"px"),[u,h]=g.useState(()=>s+"px"),p=g.useRef(null),[m,v]=g.useState(()=>e.getUpdatedHeaderCtrls()),C=g.useRef(),w=g.useRef(null),b=g.useCallback(S=>{if(w.current=S,!S||!e.isAlive()||i.isDestroyed()){C.current=i.destroyBean(C.current);return}C.current=i.createBean(new Mn);const E={setHeight:R=>d(R),setTop:R=>h(R),setHeaderCtrls:(R,F,D)=>{const T=p.current,P=zl(T,R,F);P!==T&&(p.current=P,Nr(D,()=>v(P)))},setWidth:R=>{w.current&&(w.current.style.width=R)},setRowIndex:R=>{a(R)}};e.setComp(E,C.current,!1)},[]),x=g.useMemo(()=>({height:c,top:u}),[c,u]),y=g.useCallback(S=>{switch(e.type){case"group":return g.createElement(EL,{ctrl:S,key:S.instanceId});case"filter":return g.createElement(RL,{ctrl:S,key:S.instanceId});default:return g.createElement(xL,{ctrl:S,key:S.instanceId})}},[]);return g.createElement("div",{ref:b,className:l,role:"row",style:x,tabIndex:n,"aria-rowindex":r},m.map(y))},PL=g.memo(DL),TL=({pinned:e})=>{const[t,i]=g.useState(!0),[s,o]=g.useState([]),{context:n}=g.useContext(Tt),r=g.useRef(null),a=g.useRef(null),l=g.useRef(),c=e==="left",d=e==="right",u=!c&&!d,h=g.useCallback(v=>{if(r.current=v,!v||n.isDestroyed()){l.current=n.destroyBean(l.current);return}l.current=n.createBean(new aF(e));const C={setDisplayed:i,setCtrls:w=>o(w),setCenterWidth:w=>{a.current&&(a.current.style.width=w)},setViewportScrollLeft:w=>{r.current&&(r.current.scrollLeft=w)},setPinnedContainerWidth:w=>{r.current&&(r.current.style.width=w,r.current.style.minWidth=w,r.current.style.maxWidth=w)}};l.current.setComp(C,r.current)},[]),p=t?"":"ag-hidden",m=()=>s.map(v=>g.createElement(PL,{ctrl:v,key:v.instanceId}));return c?g.createElement("div",{ref:h,className:"ag-pinned-left-header "+p,"aria-hidden":!t,role:"rowgroup"},m()):d?g.createElement("div",{ref:h,className:"ag-pinned-right-header "+p,"aria-hidden":!t,role:"rowgroup"},m()):u?g.createElement("div",{ref:h,className:"ag-header-viewport "+p,role:"rowgroup",tabIndex:-1},g.createElement("div",{ref:a,className:"ag-header-container",role:"presentation"},m())):null},Vd=g.memo(TL),kL=()=>{const[e,t]=g.useState(()=>new ci),[i,s]=g.useState(),{context:o}=g.useContext(Tt),n=g.useRef(null),r=g.useRef(),a=g.useCallback(d=>{if(n.current=d,!d||o.isDestroyed()){r.current=o.destroyBean(r.current);return}r.current=o.createBean(new J3);const u={toggleCss:(h,p)=>t(m=>m.setClass(h,p)),setHeightAndMinHeight:h=>s(h)};r.current.setComp(u,d,d)},[]),l=g.useMemo(()=>"ag-header "+e.toString(),[e]),c=g.useMemo(()=>({height:i,minHeight:i}),[i]);return g.createElement("div",{ref:a,className:l,style:c,role:"presentation"},g.createElement(Vd,{pinned:"left"}),g.createElement(Vd,{pinned:null}),g.createElement(Vd,{pinned:"right"}))},IL=g.memo(kL),ML=(e,t)=>{g.useEffect(()=>{const i=t.current;if(i){const s=i.parentElement;if(s){const o=document.createComment(e);return s.insertBefore(o,i),()=>{o.remove()}}}},[e])},Ks=ML,AL=class{constructor(e,t){this.cellEditorParams=e,this.refreshProps=t,this.instanceCreated=new Ne(i=>{this.resolveInstanceCreated=i}),this.onValueChange=i=>this.updateValue(i),this.value=e.value}getProps(){return{...this.cellEditorParams,initialValue:this.cellEditorParams.value,value:this.value,onValueChange:this.onValueChange}}getValue(){return this.value}refresh(e){this.cellEditorParams=e,this.refreshProps()}setMethods(e){wc(this.getOptionalMethods(),e,this)}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}setRef(e){this.componentInstance=e,this.resolveInstanceCreated?.(),this.resolveInstanceCreated=void 0}getOptionalMethods(){return["isCancelBeforeStart","isCancelAfterEnd","focusIn","focusOut","afterGuiAttached","getValidationErrors","getValidationElement"]}updateValue(e){this.value=e,this.refreshProps()}},LL=e=>{const t=g.useRef(e),i=g.useRef(),s=g.useRef(!1),o=g.useRef(!1),[,n]=g.useState(0);s.current&&(o.current=!0),g.useEffect(()=>(s.current||(i.current=t.current(),s.current=!0),n(r=>r+1),()=>{o.current&&i.current?.()}),[])},OL=e=>{const[t,i]=g.useState(),s=g.useContext(Tt),{context:o,popupSvc:n,gos:r,editSvc:a}=s,{editDetails:l,cellCtrl:c,eParentCell:d}=e;return LL(()=>{const{compDetails:u}=l,h=r.get("stopEditingWhenCellsLoseFocus");let p,m;if(!o.isDestroyed()){m=o.createBean(a.createPopupEditorWrapper(u.params));const v=m.getGui();if(e.jsChildComp){const S=e.jsChildComp.getGui();S&&v.appendChild(S)}const{column:C,rowNode:w}=c,b={column:C,rowNode:w,type:"popupCellEditor",eventSource:d,ePopup:v,position:l.popupPosition,keepWithinBounds:!0},x=n?.positionPopupByComponent.bind(n,b),y=n?.addPopup({modal:h,eChild:v,closeOnEsc:!0,closedCallback:S=>{c.onPopupEditorClosed(S)},anchorToElement:d,positionCallback:x,ariaOwns:d});p=y?y.hideFunc:void 0,i(m),e.jsChildComp?.afterGuiAttached?.()}return()=>{p?.(),o.destroyBean(m)}}),g.useLayoutEffect(()=>()=>{c.isCellFocused()&&t?.getGui().contains(Je(s))&&d.focus({preventScroll:!0})},[t]),t&&e.wrappedContent?Dn.createPortal(e.wrappedContent,t.getGui()):null},am=g.memo(OL),NL=(e,t,i)=>{const{compProxy:s}=e;i(s);const o=s.getProps(),n=An(t);return g.createElement(Rp.Provider,{value:{setMethods:r=>s.setMethods(r)}},n?g.createElement(t,{...o}):g.createElement(t,{...o,ref:r=>s.setRef(r)}))},lm=(e,t,i)=>e.compProxy?NL(e,t,i):g.createElement(t,{...e.compDetails.params,ref:i}),HL=(e,t,i,s,o)=>{const n=e.compDetails,r=n.componentClass,a=n.componentFromFramework&&!e.popup,l=n.componentFromFramework&&e.popup,c=!n.componentFromFramework&&e.popup;return a?lm(e,r,t):l?g.createElement(am,{editDetails:e,cellCtrl:s,eParentCell:i,wrappedContent:lm(e,r,t)}):c&&o?g.createElement(am,{editDetails:e,cellCtrl:s,eParentCell:i,jsChildComp:o}):null},BL=(e,t,i,s,o,n,r=!1)=>{const{context:a}=g.useContext(Tt),l=g.useCallback(()=>{const c=o.current;if(!c)return;const d=c.getGui();d&&d.parentElement&&d.remove(),a.destroyBean(c),o.current=void 0},[]);g.useEffect(()=>{const c=e!=null&&!r,d=e?.compDetails&&!e.compDetails.componentFromFramework,u=t&&i==null;if(!(c&&d&&!u)){l();return}const p=e.compDetails;if(o.current){const v=o.current,w=v.refresh!=null&&e.force==!1?v.refresh(p.params):!1;if(w===!0||w===void 0)return;l()}p.newAgStackInstance().then(v=>{if(!v)return;const C=v.getGui();if(!C)return;(t?i:n.current).appendChild(C),o.current=v})},[e,t,s,r]),g.useEffect(()=>l,[])},F1=BL,GL=({cellCtrl:e,parent:t})=>{const i=g.useRef(),s=g.useMemo(()=>{const{loadingComp:o}=e.getDeferLoadingCellRenderer();return o?{value:void 0,compDetails:o,force:!1}:void 0},[e]);if(F1(s,!1,void 0,1,i,t),s?.compDetails?.componentFromFramework){const o=s.compDetails.componentClass;return g.createElement(o,{...s.compDetails.params})}return g.createElement(g.Fragment,null)},VL=({cellCtrl:e,printLayout:t,editingCell:i})=>{const s=g.useContext(Tt),{context:o}=s,{column:{colIdSanitised:n},instanceId:r}=e,a=g.useRef(),[l,c]=g.useState(()=>e.isCellRenderer()?void 0:{compDetails:void 0,value:e.getValueToDisplay(),force:!1}),[d,u]=g.useState(),[h,p]=g.useState(1),[m,v]=g.useState(),[C,w]=g.useState(!1),[b,x]=g.useState(!1),[y,S]=g.useState(!1),E=g.useRef(null),[R,F]=g.useState(),D=g.useMemo(()=>e.isForceWrapper(),[e]),T=g.useMemo(()=>e.getCellAriaRole(),[e]),P=g.useRef(null),k=g.useRef(null),O=g.useRef(null),_=g.useRef(),L=g.useRef(),N=g.useRef(),H=g.useRef([]),z=g.useRef(),se=g.useRef(),[M,I]=g.useState(0),G=g.useCallback(le=>{se.current=le,I(Ee=>Ee+1)},[]),K=l!=null&&(C||y||b)&&(d==null||!!d.popup),oe=D||K,ve=g.useMemo(()=>e.getCellValueClass(),[e]),Y=g.useCallback(le=>{if(L.current=le,le){const Ee=le.isCancelBeforeStart&&le.isCancelBeforeStart();setTimeout(()=>{Ee?(e.stopEditing(!0),e.focusCell(!0)):(e.cellEditorAttached(),e.enableEditorTooltipFeature(le))})}},[e]),j=g.useRef();j.current||(j.current=new Wr(()=>P.current));const be=!!d&&!d.popup;F1(l,oe,se.current,M,_,P,be);const J=g.useRef();g.useLayoutEffect(()=>{const le=J.current,Ee=l;if(J.current=l,le==null||le.compDetails==null||Ee==null||Ee.compDetails==null)return;z.current?.refreshVisibility();const De=le.compDetails,Pe=Ee.compDetails;if(De.componentClass!=Pe.componentClass||O.current?.refresh==null)return;O.current.refresh(Pe.params)!=!0&&p(Ie=>Ie+1)},[l]),g.useLayoutEffect(()=>{if(!(d&&!d.compDetails.componentFromFramework)||o.isDestroyed())return;const Ee=d.compDetails,De=d.popup===!0,Pe=Ee.newAgStackInstance();return Pe.then(Ce=>{if(!Ce)return;const Ie=Ce.getGui();Y(Ce),De||((D?N:P).current?.appendChild(Ie),Ce.afterGuiAttached?.()),F(Ce)}),()=>{Pe.then(Ce=>{const Ie=Ce.getGui();e.disableEditorTooltipFeature(),o.destroyBean(Ce),Y(void 0),F(void 0),Ie?.remove()})}},[d]);const ie=g.useCallback(le=>{if(N.current=le,!le||o.isDestroyed()||!e.isAlive()){const Pe=H.current;H.current=[];for(const Ce of Pe)Ce();return}let Ee;const De=Pe=>{Pe&&(le.insertAdjacentElement("afterbegin",Pe.getGui()),H.current.push(()=>{Ji(Pe.getGui()),o.destroyBean(Pe),z.current===Ee&&(z.current=void 0)}))};C&&De(e.createSelectionCheckbox()),y&&De(e.createDndSource()),b&&(Ee=e.createRowDragComp(),z.current=Ee,Ee&&(De(Ee),Ee.refreshVisibility()))},[e,o,y,b,C]),U=g.useCallback(()=>{const le=!e.isCellSpanning()||k.current,Ee=P.current;if(!Ee||!le||!e||!e.isAlive()||o.isDestroyed()){a.current=o.destroyBean(a.current);return}a.current=o.createBean(new Mn);const De={toggleCss:(Ce,Ie)=>j.current.toggleCss(Ce,Ie),setUserStyles:Ce=>v(Ce),getFocusableElement:()=>P.current,setIncludeSelection:Ce=>w(Ce),setIncludeRowDrag:Ce=>x(Ce),setIncludeDndSource:Ce=>S(Ce),setRowResizerElement:Ce=>{E.current&&Ji(E.current),E.current=Ce,Ce&&P.current&&P.current.appendChild(Ce)},getCellEditor:()=>L.current??null,getCellRenderer:()=>O.current??_.current,getParentOfValue:()=>se.current??N.current??P.current,setRenderDetails:(Ce,Ie,He)=>{const kt=()=>{c(et=>et?.compDetails!==Ce||et?.value!==Ie||et?.force!==He?{value:Ie,compDetails:Ce,force:He}:et)};if(Ce?.params?.deferRender&&!e.rowNode.group){const{loadingComp:et,onReady:mt}=e.getDeferLoadingCellRenderer();if(et){c({value:void 0,compDetails:et,force:!1}),mt.then(()=>Q9(kt));return}}kt()},setEditDetails:(Ce,Ie,He,kt)=>{if(Ce){let et;Ce.componentFromFramework&&(kt?et=new AL(Ce.params,()=>p(mt=>mt+1)):Fp()),u({compDetails:Ce,popup:Ie,popupPosition:He,compProxy:et}),Ie||c(void 0)}else e.hasBrowserFocus()&&De.getFocusableElement().focus({preventScroll:!0}),L.current=void 0,u(void 0)},refreshEditStyles:(Ce,Ie)=>{if(!P.current)return;const{current:He}=j;He.toggleCss("ag-cell-value",!oe),He.toggleCss("ag-cell-inline-editing",!!Ce&&!Ie),He.toggleCss("ag-cell-popup-editing",!!Ce&&!!Ie),He.toggleCss("ag-cell-not-inline-editing",!Ce||!!Ie)}},Pe=N.current||void 0;e.setComp(De,Ee,k.current??void 0,Pe,t,i,a.current)},[]),ae=g.useCallback(le=>{P.current=le,U()},[]),V=g.useCallback(le=>{k.current=le,U()},[]),ue=g.useMemo(()=>!!(l?.compDetails?.componentFromFramework&&An(l.compDetails.componentClass)),[l]);g.useLayoutEffect(()=>{if(!P.current)return;const{current:le}=j;le.toggleCss("ag-cell-value",!oe),le.toggleCss("ag-cell-inline-editing",!!d&&!d.popup),le.toggleCss("ag-cell-popup-editing",!!d&&!!d.popup),le.toggleCss("ag-cell-not-inline-editing",!d||!!d.popup)});const pe=()=>{const{compDetails:le,value:Ee}=l;if(!le)return Ee?.toString?.()??Ee;if(le.componentFromFramework){const De=le.componentClass;return g.createElement(g.Suspense,{fallback:g.createElement(GL,{cellCtrl:e,parent:P})},ue?g.createElement(De,{...le.params,key:h}):g.createElement(De,{...le.params,key:h,ref:O}))}},Te=()=>{const le=()=>l==null?null:oe?g.createElement("span",{role:"presentation",id:`cell-${r}`,className:ve,ref:G},pe()):pe(),Ee=De=>HL(De,Y,P.current,e,R);return d!=null?d.popup?g.createElement(g.Fragment,null,le(),Ee(d)):Ee(d):le()},Re=()=>g.createElement("div",{ref:ae,style:m,role:T,"col-id":n},oe?g.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:ie},Te()):Te());return e.isCellSpanning()?g.createElement("div",{ref:V,className:"ag-spanned-cell-wrapper",role:"presentation"},Re()):Re()},zL=g.memo(VL),WL=({rowCtrl:e,containerType:t})=>{const{context:i,gos:s,editSvc:o}=g.useContext(Tt),n=g.useContext(w1)==="default",r=g.useRef(),a=g.useRef(e.getDomOrder()),l=e.isFullWidth(),c=e.rowNode.displayed,[d,u]=g.useState(()=>c?e.rowNode.getRowIndexString():null),[h,p]=g.useState(()=>e.rowId),[m,v]=g.useState(()=>e.businessKey),[C,w]=g.useState(()=>e.rowStyles),b=g.useRef(null),[x,y]=g.useState(()=>null),[S,E]=g.useState(),[R,F]=g.useState(()=>c?e.getInitialRowTop(t):void 0),[D,T]=g.useState(()=>c?e.getInitialTransform(t):void 0),P=g.useRef(null),k=g.useRef(),O=g.useRef(),_=g.useRef(!1),[L,N]=g.useState(0);g.useEffect(()=>{if(_.current||!S||L>10)return;const ie=P.current?.firstChild;ie?(e.setupDetailRowAutoHeight(ie),_.current=!0):N(U=>U+1)},[S,L]);const H=g.useRef();H.current||(H.current=new Wr(()=>P.current));const z=g.useRef(()=>{}),se=g.useCallback(ie=>(z.current=ie,()=>{z.current=()=>{}}),[]),M=J9(se,()=>b.current,[]),I=n?M:x,G=g.useCallback(ie=>{if(P.current=ie,r.current=ie?i.createBean(new Mn):i.destroyBean(r.current),!ie){e.unsetComp(t);return}if(!e.isAlive()||i.isDestroyed())return;const U={setTop:F,setTransform:T,toggleCss:(ae,V)=>H.current.toggleCss(ae,V),setDomOrder:ae=>a.current=ae,setRowIndex:u,setRowId:p,setRowBusinessKey:v,setUserStyles:w,setCellCtrls:(ae,V)=>{const ue=b.current,pe=zl(ue,ae,a.current);pe!==ue&&(b.current=pe,n?z.current():Nr(V,()=>y(pe)))},showFullWidth:ae=>{O.current=ae.params,E(ae)},getFullWidthCellRenderer:()=>k.current,getFullWidthCellRendererParams:()=>O.current,refreshFullWidth:ae=>{const V=ae();return O.current=V,j.current?(E(ue=>({...ue,params:V})),!0):!k.current||!k.current.refresh?!1:k.current.refresh(V)}};e.setComp(U,ie,t,r.current)},[]);g.useLayoutEffect(()=>Yr(S,i,P.current,k),[S]);const K=g.useMemo(()=>{const ie={top:R,transform:D};return Object.assign(ie,C),ie},[R,D,C]),oe=l&&S?.componentFromFramework,ve=!l&&I!=null,Y=g.useMemo(()=>!!(S?.componentFromFramework&&An(S.componentClass)),[S]),j=g.useRef(!1);g.useEffect(()=>{j.current=Y&&!!S&&!!s.get("reactiveCustomComponents")},[Y,S]);const be=()=>I?.map(ie=>g.createElement(zL,{cellCtrl:ie,editingCell:o?.isEditing(ie,{withOpenEditor:!0})??!1,printLayout:e.printLayout,key:ie.instanceId})),J=()=>{const ie=S.componentClass;return Y?g.createElement(ie,{...S.params}):g.createElement(ie,{...S.params,ref:k})};return g.createElement("div",{ref:G,role:"row",style:K,"row-index":d,"row-id":h,"row-business-key":m},ve?be():oe?J():null)},cm=g.memo(WL),jL=({name:e})=>{const{context:t,gos:i}=g.useContext(Tt),s=g.useMemo(()=>$r(e),[e]),o=g.useRef(null),n=g.useRef(null),r=g.useRef(null),a=g.useRef([]),l=g.useRef([]),[c,d]=g.useState(()=>[]),u=!!i.get("enableCellSpan")&&!!s.getSpannedRowCtrls,h=g.useRef([]),p=g.useRef([]),[m,v]=g.useState(()=>[]),C=g.useRef(!1),w=g.useRef(),b=g.useMemo(()=>oi("ag-viewport",PC(e)),[e]),x=g.useMemo(()=>oi(TC(e)),[e]),y=g.useMemo(()=>oi("ag-spanning-container",yF(e)),[e]),S=s.type==="center"||u,E=S?o:n;Ks(" AG Row Container "+e+" ",E);const R=g.useCallback(()=>{const L=!S||o.current!=null,N=n.current!=null,H=!u||r.current!=null;return L&&N&&H},[]),F=g.useCallback(()=>o.current==null&&n.current==null&&r.current==null,[]),D=g.useCallback(()=>{if(F()&&(w.current=t.destroyBean(w.current)),!t.isDestroyed()&&R()){const L=z=>{const se=zl(l.current,a.current,C.current);se!==l.current&&(l.current=se,Nr(z,()=>d(se)))},N=z=>{const se=zl(p.current,h.current,C.current);se!==p.current&&(p.current=se,Nr(z,()=>v(se)))},H={setHorizontalScroll:z=>{o.current&&(o.current.scrollLeft=z)},setViewportHeight:z=>{o.current&&(o.current.style.height=z)},setRowCtrls:({rowCtrls:z,useFlushSync:se})=>{const M=!!se&&a.current.length>0&&z.length>0;a.current=z,L(M)},setSpannedRowCtrls:(z,se)=>{const M=!!se&&h.current.length>0&&z.length>0;h.current=z,N(M)},setDomOrder:z=>{C.current!=z&&(C.current=z,L(!1))},setContainerWidth:z=>{n.current&&(n.current.style.width=z)},setOffsetTop:z=>{n.current&&(n.current.style.transform=`translateY(${z})`)}};w.current=t.createBean(new MF(e)),w.current.setComp(H,n.current,r.current??void 0,o.current)}},[R,F]),T=g.useCallback(L=>{n.current=L,D()},[D]),P=g.useCallback(L=>{r.current=L,D()},[D]),k=g.useCallback(L=>{o.current=L,D()},[D]),O=()=>g.createElement("div",{className:x,ref:T,role:S?"presentation":"rowgroup"},c.map(L=>g.createElement(cm,{rowCtrl:L,containerType:s.type,key:L.instanceId})));if(!S)return O();const _=()=>g.createElement("div",{className:y,ref:P,role:"presentation"},m.map(L=>g.createElement(cm,{rowCtrl:L,containerType:s.type,key:L.instanceId})));return g.createElement("div",{className:b,ref:k,role:"rowgroup"},O(),u?_():null)},_L=g.memo(jL),UL=()=>{const e=g.useContext(Tt),{context:t,overlays:i}=e,[s,o]=g.useState(""),[n,r]=g.useState(0),[a,l]=g.useState(0),[c,d]=g.useState("0px"),[u,h]=g.useState("0px"),[p,m]=g.useState("100%"),[v,C]=g.useState("0px"),[w,b]=g.useState("0px"),[x,y]=g.useState("100%"),[S,E]=g.useState(!0),[R,F]=g.useState(!0),[D,T]=g.useState(null),[P,k]=g.useState(""),[O,_]=g.useState(null),[L,N]=g.useState("ag-layout-normal"),H=g.useRef();H.current||(H.current=new Wr(()=>z.current));const z=g.useRef(null),se=g.useRef(null),M=g.useRef(null),I=g.useRef(null),G=g.useRef(null),K=g.useRef(null),oe=g.useRef(null),ve=g.useRef([]),Y=g.useRef([]);Ks(" AG Grid Body ",z),Ks(" AG Pinned Top ",se),Ks(" AG Sticky Top ",M),Ks(" AG Middle ",K),Ks(" AG Pinned Bottom ",oe);const j=g.useCallback(Pe=>{if(z.current=Pe,!Pe||t.isDestroyed()){ve.current=t.destroyBeans(ve.current);for(const je of Y.current)je();Y.current=[];return}const Ce=(je,q)=>{je.appendChild(q),Y.current.push(()=>q.remove())},Ie=je=>{const q=t.createBean(new je);return ve.current.push(q),q},He=(je,q,Ve)=>{Ce(je,document.createComment(Ve)),Ce(je,Ie(q).getGui())};He(Pe,cF," AG Fake Horizontal Scroll ");const kt=i?.getOverlayWrapperCompClass();kt&&He(Pe,kt," AG Overlay Wrapper "),G.current&&He(G.current,uF," AG Fake Vertical Scroll ");const et={setRowAnimationCssOnBodyViewport:o,setColumnCount:je=>{z.current&&US(z.current,je)},setRowCount:je=>{z.current&&jS(z.current,je)},setTopHeight:r,setBottomHeight:l,setStickyTopHeight:d,setStickyTopTop:h,setStickyTopWidth:m,setTopInvisible:E,setBottomInvisible:F,setColumnMovingCss:(je,q)=>H.current.toggleCss(je,q),updateLayoutClasses:N,setAlwaysVerticalScrollClass:T,setPinnedTopBottomOverflowY:k,setCellSelectableCss:(je,q)=>_(q?je:null),setBodyViewportWidth:je=>{K.current&&(K.current.style.width=je)},registerBodyViewportResizeListener:je=>{if(K.current){const q=ss(e,K.current,je);Y.current.push(()=>q())}},setStickyBottomHeight:C,setStickyBottomBottom:b,setStickyBottomWidth:y,setGridRootRole:je=>Pe.setAttribute("role",je)},mt=t.createBean(new NF);ve.current.push(mt),mt.setComp(et,Pe,K.current,se.current,oe.current,M.current,I.current)},[]),be=g.useMemo(()=>oi("ag-root","ag-unselectable",L),[L]),J=g.useMemo(()=>oi("ag-body-viewport",s,L,D,O),[s,L,D,O]),ie=g.useMemo(()=>oi("ag-body",L),[L]),U=g.useMemo(()=>oi("ag-floating-top",S?"ag-invisible":null,O),[O,S]),ae=g.useMemo(()=>oi("ag-sticky-top",O),[O]),V=g.useMemo(()=>oi("ag-sticky-bottom",v==="0px"?"ag-invisible":null,O),[O,v]),ue=g.useMemo(()=>oi("ag-floating-bottom",R?"ag-invisible":null,O),[O,R]),pe=g.useMemo(()=>({height:n,minHeight:n,overflowY:P}),[n,P]),Te=g.useMemo(()=>({height:c,top:u,width:p}),[c,u,p]),Re=g.useMemo(()=>({height:v,bottom:w,width:x}),[v,w,x]),le=g.useMemo(()=>({height:a,minHeight:a,overflowY:P}),[a,P]),Ee=Pe=>g.createElement(_L,{name:Pe,key:`${Pe}-container`}),De=({section:Pe,children:Ce,className:Ie,style:He})=>g.createElement("div",{ref:Pe,className:Ie,role:"presentation",style:He},Ce.map(Ee));return g.createElement("div",{ref:j,className:be},g.createElement(IL,null),De({section:se,className:U,style:pe,children:["topLeft","topCenter","topRight","topFullWidth"]}),g.createElement("div",{className:ie,ref:G,role:"presentation"},De({section:K,className:J,children:["left","center","right","fullWidth"]})),De({section:M,className:ae,style:Te,children:["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"]}),De({section:I,className:V,style:Re,children:["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"]}),De({section:oe,className:ue,style:le,children:["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"]}))},$L=g.memo(UL),qL=(e,t)=>{const{children:i,eFocusableElement:s,onTabKeyDown:o,gridCtrl:n,forceFocusOutWhenTabGuardsAreEmpty:r,isEmpty:a}=e,{context:l}=g.useContext(Tt),c=g.useRef(null),d=g.useRef(null),u=g.useRef(),h=w=>{const b=w==null?void 0:parseInt(w,10).toString();for(const x of[c,d])b===void 0?x.current?.removeAttribute("tabindex"):x.current?.setAttribute("tabindex",b)};g.useImperativeHandle(t,()=>({forceFocusOutOfContainer(w){u.current?.forceFocusOutOfContainer(w)}}));const p=g.useCallback(()=>{const w=c.current,b=d.current;if(!w&&!b||l.isDestroyed()){u.current=l.destroyBean(u.current);return}if(w&&b){const x={setTabIndex:h};u.current=l.createBean(new Y9({comp:x,eTopGuard:w,eBottomGuard:b,eFocusableElement:s,onTabKeyDown:o,forceFocusOutWhenTabGuardsAreEmpty:r,focusInnerElement:y=>n.focusInnerElement(y),isEmpty:a}))}},[]),m=g.useCallback(w=>{c.current=w,p()},[p]),v=g.useCallback(w=>{d.current=w,p()},[p]),C=w=>{const b=w==="top"?pn.TAB_GUARD_TOP:pn.TAB_GUARD_BOTTOM;return g.createElement("div",{className:`${pn.TAB_GUARD} ${b}`,role:"presentation",ref:w==="top"?m:v})};return g.createElement(g.Fragment,null,C("top"),i,C("bottom"))},KL=g.forwardRef(qL),YL=g.memo(KL),ZL=({context:e})=>{const[t,i]=g.useState(""),[s,o]=g.useState(""),[n,r]=g.useState(null),[a,l]=g.useState(null),[c,d]=g.useState(!1),[u,h]=g.useState(),p=g.useRef(),m=g.useRef(null),v=g.useRef(),[C,w]=g.useState(null),b=g.useRef(()=>{}),x=g.useRef(),y=g.useRef([]),S=g.useCallback(()=>{},[]);Ks(" AG Grid ",m);const E=g.useCallback(k=>{if(m.current=k,p.current=k?e.createBean(new zF):e.destroyBean(p.current),!k||e.isDestroyed())return;const O=p.current;b.current=O.focusInnerElement.bind(O);const _={destroyGridUi:()=>{},setRtlClass:i,forceFocusOutOfContainer:L=>{if(!L&&x.current?.isDisplayed()){x.current.forceFocusOutOfContainer(L);return}v.current?.forceFocusOutOfContainer(L)},updateLayoutClasses:o,getFocusableContainers:()=>{const L=[],N=[],H=m.current?.querySelector(".ag-root");for(const se of y.current){if(!se.isDisplayed())continue;const M=se.getFocusableContainerName();if(M==="rowGroupToolbar"||M==="pivotToolbar"){L.push(se);continue}N.push(se)}const z=[...L];return H&&z.push({getGui:()=>H,getFocusableContainerName:()=>"gridBody"}),z.push(...N),z},setCursor:r,setUserSelect:l};O.setComp(_,k,k),d(!0)},[]);g.useEffect(()=>{const k=p.current,O=m.current;if(!u||!k||!C||!O||e.isDestroyed())return;const _=[];y.current=[],x.current=void 0;const{watermarkSelector:L,paginationSelector:N,sideBarSelector:H,statusBarSelector:z,gridHeaderDropZonesSelector:se}=k.getOptionalSelectors(),M=[];if(se){const G=e.createBean(new se.component),K=G.getGui();O.insertAdjacentElement("afterbegin",K),M.push(K),_.push(G),y.current.push(...G.getFocusableContainers?.()??[])}if(H){const G=e.createBean(new H.component),K=G.getGui(),oe=C.querySelector(".ag-tab-guard-bottom");oe&&(oe.insertAdjacentElement("beforebegin",K),M.push(K)),_.push(G),y.current.push(G)}const I=G=>{const K=e.createBean(new G),oe=K.getGui();return O.insertAdjacentElement("beforeend",oe),M.push(oe),_.push(K),K};if(z){const G=I(z.component);y.current.push(G)}if(N){const G=I(N.component);x.current=G,y.current.push(G)}return L&&I(L.component),()=>{e.destroyBeans(_),y.current=[],x.current=void 0;for(const G of M)G.remove()}},[u,C,e]);const R=g.useMemo(()=>oi("ag-root-wrapper",t,s),[t,s]),F=g.useMemo(()=>oi("ag-root-wrapper-body","ag-focus-managed",s),[s]),D=g.useMemo(()=>({userSelect:a??"",WebkitUserSelect:a??"",cursor:n??""}),[a,n]),T=g.useCallback(k=>{v.current=k,h(k!==null)},[]),P=g.useCallback(()=>!p.current?.isFocusable(),[]);return g.createElement("div",{ref:E,className:R,style:D,role:"presentation"},g.createElement("div",{className:F,ref:w,role:"presentation"},c&&C&&!e.isDestroyed()&&g.createElement(Tt.Provider,{value:e.getBeans()},g.createElement(YL,{ref:T,eFocusableElement:C,onTabKeyDown:S,gridCtrl:p.current,forceFocusOutWhenTabGuardsAreEmpty:!0,isEmpty:P},g.createElement($L,null)))))},XL=g.memo(ZL),QL=class extends B{postConstruct(){if(this.beans.colAutosize){const e=this.queueResizeOperationsForTick.bind(this);this.addManagedEventListeners({rowExpansionStateChanged:e,expandOrCollapseAll:e,cellValueChanged:e,rowNodeDataChanged:e,rowDataUpdated:e})}}queueResizeOperationsForTick(){const e=this.beans.colAutosize;e.shouldQueueResizeOperations=!0,setTimeout(()=>{e.processResizeOperations()},0)}areHeaderCellsRendered(){return this.beans.ctrlsSvc.getHeaderRowContainerCtrls().every(e=>e.getAllCtrls().every(t=>t.areCellsRendered()))}areCellsRendered(){return this.beans.rowRenderer.getAllRowCtrls().every(e=>e.isRowRendered()&&e.getAllCellCtrls().every(t=>!!t.eGui))}},JL=typeof window>"u"?g.useEffect:g.useLayoutEffect,E1={setGridApi:void 0,maxComponentCreationTimeMs:void 0,children:void 0},eO={gridOptions:void 0,modules:void 0,containerStyle:void 0,className:void 0,passGridApi:void 0,componentWrappingElement:void 0,...E1},D1=new Set(Object.keys(eO)),tO=new Set(Object.keys(E1)),P1=e=>{const t=g.useContext(CL),i=g.useContext(wL),s=g.useRef(),o=g.useRef(null),n=g.useRef(null),r=g.useRef([]),a=g.useRef([]),l=g.useRef(e),c=g.useRef(),d=g.useRef(),u=g.useRef(!1),[h,p]=g.useState(void 0),[,m]=g.useState(0),v=g.useRef(),C=S=>{const E=o.current?.classList,R=(F="")=>F.trim().split(/\s+/g).filter(Boolean);if(v.current!==S){for(const F of R(v.current))E?.contains(F)&&E.remove(F);for(const F of R(S))E?.contains(F)||E?.add(F);v.current=S}};JL(()=>{C(e.className)},[e.className]);const w=g.useCallback(S=>{if(o.current=S,C(e.className),!S){for(const L of r.current)L();r.current.length=0;return}const E=[...e.modules??[],...t??[]];i&&Av(E)?.setLicenseKey(i),n.current||(n.current=new vL(()=>m(L=>L+1),e.componentWrappingElement,e.maxComponentCreationTimeMs),r.current.push(()=>{n.current?.destroy(),n.current=null}));const R=Z2(e.gridOptions,e,Object.keys(e).filter(L=>!D1.has(L))),F=()=>{if(u.current){const L=()=>c.current?.shouldQueueUpdates()?void 0:a.current.shift();let N=L();for(;N;)N(),N=L()}},D=new nO(F);c.current=D;const T=new QL,P={providedBeanInstances:{frameworkCompWrapper:new sO(n.current,R),renderStatus:T},modules:E,frameworkOverrides:D,setThemeOnGridDiv:!0},k=L=>{p(L),L.createBean(T),r.current.push(()=>{L.destroy()}),L.getBean("ctrlsSvc").whenReady({addDestroyFunc:N=>{r.current.push(N)}},()=>{if(L.isDestroyed())return;const N=s.current;N&&e.passGridApi?.(N)})},O=L=>{L.getBean("ctrlsSvc").whenReady({addDestroyFunc:N=>{r.current.push(N)}},()=>{for(const N of a.current)N();a.current.length=0,u.current=!0})},_=new HT;R.gridId??(R.gridId=d.current),s.current=_.create(S,R,k,O,P),r.current.push(()=>{s.current=void 0}),s.current&&(d.current=s.current.getGridId())},[]),b=g.useMemo(()=>({height:"100%",...e.containerStyle||{}}),[e.containerStyle]),x=g.useCallback(S=>{u.current&&!c.current?.shouldQueueUpdates()?S():a.current.push(S)},[]);g.useEffect(()=>{const S=iO(l.current,e);l.current=e,x(()=>{s.current&&X2(S,s.current)})},[e]);const y=!g.useSyncExternalStore||Ja(e,"renderingMode")==="legacy"?"legacy":"default";return g.createElement("div",{style:b,ref:w},g.createElement(w1.Provider,{value:y},h&&!h.isDestroyed()?g.createElement(XL,{key:h.instanceId,context:h}):null,n.current?.getPortals()??null))};function iO(e,t){const i={};for(const s of Object.keys(t)){if(D1.has(s)){tO.has(s)&&$(274,{prop:s});continue}const o=t[s];e[s]!==o&&(i[s]=o)}return i}var sO=class extends K9{constructor(e,t){super(),this.parent=e,this.gridOptions=t}createWrapper(e,t){const i=this.gridOptions;if(Ja(i,"reactiveCustomComponents")){const r=(a=>{switch(a){case"filter":return Ja(i,"enableFilterHandlers")?lL:aL;case"floatingFilterComponent":return Ja(i,"enableFilterHandlers")?uL:dL;case"dateComponent":return nL;case"dragAndDropImageComponent":return rL;case"loadingOverlayComponent":case"noRowsOverlayComponent":case"activeOverlay":return oL;case"statusPanel":return gL;case"toolPanel":return fL;case"menuItem":return pL;case"cellRenderer":return sL;case"innerHeaderComponent":return hL}})(t.name);if(r)return new r(e,this.parent,t)}else switch(t.name){case"filter":case"floatingFilterComponent":case"dateComponent":case"dragAndDropImageComponent":case"loadingOverlayComponent":case"noRowsOverlayComponent":case"activeOverlay":case"statusPanel":case"toolPanel":case"menuItem":case"cellRenderer":Fp();break}const o=!t.cellRenderer&&t.name!=="toolPanel";return new S1(e,this.parent,t,o)}},oO=g.forwardRef((e,t)=>{const i=g.useContext(Tt),{registry:s,context:o,gos:n,rowModel:r}=i,[a,l]=g.useState(()=>new ci),[c,d]=g.useState(()=>new ci),[u,h]=g.useState(),[p,m]=g.useState(),v=g.useRef(),C=g.useRef(null),w=g.useRef(),b=g.useMemo(()=>E2(e.api.getGridId(),u?.rowModelType??"clientSide"),[e]),x=g.useMemo(()=>a.toString()+" ag-details-row",[a]),y=g.useMemo(()=>c.toString()+" ag-details-grid",[c]);t&&g.useImperativeHandle(t,()=>({refresh(){return v.current?.refresh()??!1}})),e.template&&$(230);const S=g.useCallback(R=>{if(C.current=R,!R||o.isDestroyed()){v.current=o.destroyBean(v.current),w.current?.();return}const F={toggleCss:(T,P)=>l(k=>k.setClass(T,P)),toggleDetailGridCss:(T,P)=>d(k=>k.setClass(T,P)),setDetailGrid:T=>h(T),setRowData:T=>m(T),getGui:()=>C.current},D=s.createDynamicBean("detailCellRendererCtrl",!0);if(D&&(o.createBean(D),D.init(F,e),v.current=D,n.get("detailRowAutoHeight"))){const T=()=>{if(C.current==null)return;const P=C.current.clientHeight;P!=null&&P>0&&setTimeout(()=>{e.node.setRowHeight(P),(st(n)||kn(n))&&r.onRowHeightChanged()},0)};w.current=ss(i,R,T),T()}},[]),E=g.useCallback(R=>{v.current?.registerDetailWithMaster(R)},[]);return g.createElement("div",{className:x,ref:S},u&&g.createElement(P1,{className:y,...u,modules:b,rowData:p,passGridApi:E}))}),nO=class extends Iw{constructor(e){super("react"),this.processQueuedUpdates=e,this.queueUpdates=!1,this.renderingEngine="react",this.frameworkComponents={agGroupCellRenderer:nm,agGroupRowRenderer:nm,agDetailCellRenderer:oO},this.wrapIncoming=(t,i)=>i==="ensureVisible"?X9(t):t()}frameworkComponent(e){return this.frameworkComponents[e]}isFrameworkComponent(e){if(!e)return!1;const t=e.prototype;return!(t&&"getGui"in t)}getLockOnRefresh(){this.queueUpdates=!0}releaseLockOnRefresh(){this.queueUpdates=!1,this.processQueuedUpdates()}shouldQueueUpdates(){return this.queueUpdates}runWhenReadyAsync(){return Z9()}},rO=class extends g.Component{constructor(){super(...arguments),this.apiListeners=[],this.setGridApi=e=>{this.api=e;for(const t of this.apiListeners)t(e)}}registerApiListener(e){this.apiListeners.push(e)}componentWillUnmount(){this.apiListeners.length=0}render(){return g.createElement(P1,{...this.props,passGridApi:this.setGridApi})}},T1=(e=>(e.Dropdown="dropdown",e.Menu="menu",e))(T1||{}),Yt=(e=>(e.Click="click",e.Hover="hover",e.ContextMenu="contextMenu",e))(Yt||{}),Fn=(e=>(e.Item="item",e.Divider="divider",e.PlainText="plainText",e))(Fn||{});const aO=ge("flex items-center gap-2 align-middle","h-auto px-0 bg-transparent border-0"),lO=ge("z-[53] overflow-auto rounded bg-layer-0 text-primary shadow focus-visible:outline-none"),cO=ge("flex w-full cursor-pointer items-center gap-3","focus-visible:border-none focus-visible:outline-none","hover:bg-accent-primary-alpha px-3","dial-small-text h-[34px] rounded text-primary"),dO="opacity-75 !cursor-not-allowed",uO="text-error",hO="my-1 border-t border-hover border-secondary",ir=4,Ep=({ariaLabel:e,className:t,size:i=24,onClose:s,...o})=>f.jsx(Is,{"aria-label":e,className:ne("text-secondary hover:enabled:text-accent-primary",t,"w-auto h-auto"),onClick:s,icon:f.jsx(W.IconX,{size:i}),...o}),Nt=({children:e,menu:t,renderOverlay:i,trigger:s=[Yt.Click],placement:o,disabled:n=!1,open:r,defaultOpen:a=!1,onOpenChange:l,closable:c=!1,onClose:d,className:u,listClassName:h,outsidePressIgnoreRef:p,outsideClosable:m=!0,allowedPlacements:v,anchorToMouse:C=!1,matchReferenceWidth:w=!0,maxDropdownHeight:b})=>{const[x,y]=g.useState(a),S=r!==void 0,E=S?!!r:x,R=g.useRef(null),F=g.useCallback(j=>{S||y(j),l?.(j)},[S,l]),D=g.useId(),T=o===void 0,P=j=>"clientWidth"in j?j.clientWidth:j.getBoundingClientRect?.()?.width??0,{refs:k,floatingStyles:O,context:_}=Oe.useFloating({placement:o,open:E,onOpenChange:F,whileElementsMounted:Oe.autoUpdate,middleware:[Oe.offset({mainAxis:ir,crossAxis:0}),T?Oe.autoPlacement({alignment:"start",crossAxis:!0,padding:ir,allowedPlacements:v}):Oe.flip({padding:ir}),Oe.shift({padding:ir}),Oe.size({padding:ir,apply({availableWidth:j,availableHeight:be,elements:J}){const ie=J.floating,U=P(J.reference);ie.style.setProperty("--fui-available-height",`${Math.floor(be)}px`),ie.style.setProperty("--reference-width",w?`${Math.round(U)}px`:"0px"),w?ie.style.minWidth=`${Math.round(U)}px`:ie.style.removeProperty("min-width"),ie.style.maxWidth=`${Math.floor(j)}px`;const ae=Math.floor(be);ie.style.maxHeight=`${b?Math.min(ae,b):ae}px`}})]}),L=Oe.useClick(_,{enabled:s.includes(Yt.Click)&&!n}),N=Oe.useHover(_,{enabled:s.includes(Yt.Hover)&&!n,move:!1,restMs:40,delay:{open:80,close:80}}),H=Oe.useDismiss(_,{bubbles:!0,referencePress:!1,outsidePress:j=>{if(!m)return!1;const be=j.target;return!(p?.current&&be instanceof Node&&p.current.contains(be))}}),z=Oe.useRole(_,{role:"menu"}),{getReferenceProps:se,getFloatingProps:M}=Oe.useInteractions([L,N,H,z]),I=g.useCallback((j,be)=>{k.setPositionReference({getBoundingClientRect:()=>({width:0,height:0,x:j,y:be,top:be,left:j,right:j,bottom:be})})},[k]),G=g.useCallback(j=>{!s.includes(Yt.ContextMenu)||n||(j.preventDefault(),C&&(I(j.clientX,j.clientY),R.current=document.elementFromPoint(j.clientX,j.clientY)),F(!0))},[C,n,F,I,s]),K=g.useCallback(j=>{!C||n||(s.includes(Yt.ContextMenu)&&E&&F(!1),I(j.clientX,j.clientY),R.current=document.elementFromPoint(j.clientX,j.clientY))},[C,n,I,E,s,F]);g.useEffect(()=>{n&&E&&F(!1)},[n,E,F]);const oe=g.useCallback(j=>be=>{j.disabled||(j.onClick?.({key:j.key,domEvent:be}),t?.onClick?.({key:j.key,domEvent:be}),F(!1))},[t,F]),ve=g.useMemo(()=>i?i():t?f.jsxs(f.Fragment,{children:[t.header&&f.jsx(f.Fragment,{children:typeof t.header=="function"?t.header():t.header}),f.jsx("div",{role:"none",className:"py-1","aria-label":"dropdown",children:t.items.map(j=>j.type===Fn.Divider?f.jsx("div",{role:"separator",className:hO},j.key):j.type===Fn.PlainText?f.jsx("div",{className:ne("px-3 py-2 text-secondary dial-caption",j.className),children:j.label},j.key):f.jsxs("button",{role:"menuitem",type:"button","aria-disabled":!!j.disabled,className:ge(cO,j.disabled&&dO,j.danger&&uO,j.className),disabled:j.disabled,onClick:oe(j),children:[j.icon&&f.jsx("span",{className:ge(j.danger&&"text-error",j.disabled&&"text-secondary"),children:f.jsx(Ue,{icon:j.icon})}),f.jsx("span",{className:ge("flex-1 truncate text-left",j.danger&&"text-error",j.disabled&&"text-secondary"),"aria-labelledby":"item-text",children:j.label})]},j.key))}),t.footer&&f.jsx(f.Fragment,{children:typeof t.footer=="function"?t.footer():t.footer})]}):null,[oe,t,i]),Y=se({onContextMenu:G,onMouseDown:K});return g.useEffect(()=>{if(!E)return;const j=k.reference.current;let be=null;if(j instanceof Element?be=j:R.current instanceof Element&&(be=R.current),!be)return;const J=new IntersectionObserver(([ie])=>{ie.isIntersecting||F(!1)},{root:null,threshold:0});return J.observe(be),()=>J.disconnect()},[E,k.reference,F]),f.jsxs(f.Fragment,{children:[f.jsx("span",{ref:k.setReference,className:ge(aO,n&&"!cursor-not-allowed opacity-75",u),"aria-haspopup":"menu","aria-expanded":E,"aria-controls":D,...Y,children:e}),E&&f.jsx(Oe.FloatingPortal,{children:f.jsx(Oe.FloatingFocusManager,{context:_,modal:!1,initialFocus:-1,returnFocus:!0,children:f.jsxs("div",{id:D,ref:k.setFloating,style:O,className:ge(lO,!w&&"w-max",h),...M(),children:[c&&f.jsx("div",{className:"flex items-center justify-between px-2 pt-2",children:f.jsx(Ep,{ariaLabel:"Close dropdown",onClose:j=>{d?.(j),F(!1)}})}),ve]})})})]})},pO="h-full w-full",dm=".ag-checkbox-input",zd={accentColor:"var(--controls-bg-accent, #5C8DEA)",backgroundColor:"var(--bg-layer-3, #1D2439)",oddRowBackgroundColor:"var(--bg-layer-2, #161B2D)",selectedRowBackgroundColor:"var(--bg-accent-primary-alpha, #7DA4FF26)",borderColor:"var(--bg-layer-4, #242C42)",rowBorder:"1px solid var(--stroke-tertiary, #0C101D)",rowHoverColor:"var(--bg-accent-primary-alpha, #7DA4FF26)",borderRadius:3,browserColorScheme:"dark",chromeBackgroundColor:"var(--bg-layer-1, #0C101D)",foregroundColor:"var(--text-primary, #EEF1F7)",headerFontSize:14,headerFontWeight:600,headerTextColor:"var(--text-secondary, #7F8792)",spacing:4,wrapperBorderRadius:3,fontSize:14,fontFamily:"var(--theme-font, var(--font-inter))"},Wd=40;var $s=(e=>(e.API="api",e.ROW_DATA_CHANGED="rowDataChanged",e.CHECKBOX_SELECTED="checkboxSelected",e))($s||{});const gO=(e,t,i,s,o)=>{const n=typeof e=="string"?e.toLowerCase():e,r=typeof t=="string"?t.toLowerCase():t;return n===r?0:n?r?n>r?1:-1:o?1:-1:o?-1:1};var br=(e=>(e.MULTIPLE="MULTIPLE",e.SINGLE="SINGLE",e))(br||{});const k1="en-US",I1={year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},fO="text-primary",jd=40,M1={minWidth:jd,width:jd,maxWidth:jd},mO={cellClass:"ag-grid-no-checkbox",...M1},vO={...M1};function CO(e,t){let i=null;return(...s)=>{i&&clearTimeout(i),i=setTimeout(()=>e(...s),t)}}q9({testIdAttribute:"dataQA"});Mv.registerModules([z9]);const Dp=({columnDefs:e,rowData:t,additionalGridOptions:i,getContextMenuItems:s,className:o,ariaLabel:n="Data grid",wrapCustomCellRenderers:r=!0,disabledRowIds:a,selectedRowIds:l,onSelectionChange:c,onGridApiChange:d,getRowId:u=E=>String(E.id??JSON.stringify(E)),alternateOddRowColors:h=!1,filterPlaceholder:p="Enter value",emptyStateIcon:m,emptyStateTitle:v="No results found",emptyStateDescription:C="Sorry, we couldn't find any results for your search.",loading:w=!1,wrapperBorder:b=!0,withoutHeaderBorders:x=!1,allowDisabledContextMenu:y=!1,selectionMode:S})=>{const[E,R]=g.useState(Wd),[F,D]=g.useState(),T=g.useId(),P=g.useRef(new Set),k=g.useRef(void 0),O=g.useMemo(()=>({...zd,oddRowBackgroundColor:h?zd.oddRowBackgroundColor:zd.backgroundColor,wrapperBorder:b}),[h,b]),_=g.useCallback(U=>{U.api.sizeColumnsToFit(),R(Wd)},[]),L=g.useCallback(U=>{if(U.data){const ae=u(U.data),V=a?.has(ae)??!1,ue=V&&!y,pe=U.value==null?"":String(U.value),Te=s?.(U.data)??[];return f.jsx(Nt,{trigger:[Yt.ContextMenu],menu:{items:Te},anchorToMouse:!0,matchReferenceWidth:!0,className:"w-full",disabled:ue,children:f.jsx("span",{className:"block min-w-0 h-full max-w-full",children:f.jsx(bt,{text:pe,className:"max-w-full h-full",hideTooltip:V})})})}},[s,a,u,y]),N=g.useCallback(U=>U===$s.API||U===$s.ROW_DATA_CHANGED,[]),H=g.useCallback(U=>{if(!F)return;const V=(U.selectedNodes||[]).map(pe=>pe.data),ue=new Set(V.map(u));P.current=ue,k.current=U.source,N(U.source)||c?.(ue,V)},[F,u,N,c]),z=g.useMemo(()=>CO(U=>H?.(U),100),[H]),se=g.useCallback(U=>{if(!U.data)return null;const ae=u(U.data),V=U.node.isSelected(),ue=a?.has(ae),pe=`row-select-${ae}`;return f.jsx("div",{className:"size-6 flex items-center justify-center",children:f.jsx(Qs,{className:"size-[18px]",inputId:pe,checked:V,disabled:ue,name:"gridradiobutton",value:"selected",onChange:()=>{ue||(U.node.setSelected(!0,!0,$s.CHECKBOX_SELECTED),U.api.refreshCells({columns:[U.column?.getColId()]}))}})})},[u,a]),M=g.useCallback(()=>{const U="dial-row-select",ae="dial-row-select-visible";return!l||l.size===0?U:`${U} ${ae}`},[l]),I=g.useCallback(()=>!l||l.size===0?"dial-row-not-select-header":M(),[M,l]),G=g.useMemo(()=>{if(S===br.SINGLE)return{...mO,cellRenderer:se};if(S===br.MULTIPLE)return{...vO,headerClass:()=>I(),cellClass:U=>{const ae=U.data?u(U.data):null;let V=M();return ae&&a?.has(ae)&&(V+=" opacity-50 pointer-events-none"),V}}},[S,se,I,u,M,a]),K=g.useCallback(U=>{const ae=typeof r=="function"?r(U):!!r;if(!U.cellRenderer)return{...U,cellRenderer:L};if(!ae)return U;const V=U.cellRenderer;return{...U,cellRenderer:pe=>{const Te=pe.data?s?.(pe.data)??[]:[];let Re=null;if(typeof V=="function"){const De=V;Re=f.jsx(De,{...pe})}else Re=L(pe);const le=pe.data?u(pe.data):null,Ee=le?a?.has(le):!1;return f.jsx(Nt,{trigger:[Yt.ContextMenu],menu:{items:Te},anchorToMouse:!0,matchReferenceWidth:!0,className:ge("w-full h-full",Ee&&"!cursor-not-allowed opacity-75"),disabled:Ee&&!y,children:f.jsx("span",{className:"block min-w-0 max-w-full flex-1",children:Re})})}}},[a,s,u,L,r,y]),oe=g.useMemo(()=>r?(e??[]).map(K):e??[],[e,r,r?K:null]),ve=g.useMemo(()=>({minWidth:150,resizable:!0,sortable:!0,floatingFilter:!0,filter:"agTextColumnFilter",filterParams:{filterPlaceholder:p,buttons:["reset"]},comparator:gO.bind(void 0)}),[p]),Y=U=>{const ae=document.querySelector(dm);ae&&ae.setAttribute("aria-description",ru);const V=oe.map(ue=>({...ue,sort:void 0}));U.api.updateGridOptions({columnDefs:V,rowData:t}),U.api.sizeColumnsToFit(),D(U.api),i?.onGridReady?.(U),d?.(U.api)};g.useEffect(()=>{F&&t&&F.setGridOption("rowData",t)},[F,t]);const j=g.useCallback(()=>f.jsx(zr,{title:v,description:C,containerClassName:"gap-3",titleClassName:"mt-2 !text-lg",icon:m||f.jsx(W.IconZoomCancel,{size:100,stroke:.5,className:"text-secondary"})}),[v,C,m]),be=g.useMemo(()=>{if(S)return{mode:S===br.SINGLE?"singleRow":"multiRow",isRowSelectable:U=>{const ae=U.data?u(U.data):null;return ae?!a?.has(ae):!0}}},[a,u,S]);g.useEffect(()=>{F&&t&&P.current.size&&P.current.forEach(U=>{const ae=F.getRowNode(U);ae&&!ae.isSelected()&&ae.setSelected(!0,!1,$s.API)})},[F,t]),g.useEffect(()=>{F&&l&&(F.deselectAll("all",$s.API),l.forEach(U=>{const ae=F.getRowNode(U);ae&&!ae.isSelected()&&ae.setSelected(!0,!1,$s.API)}))},[F,l]);const J=g.useCallback(U=>U.data?u(U.data):"",[u]),ie=g.useCallback(()=>{document.querySelectorAll(`.ag-row ${dm}`).forEach(U=>{U.setAttribute("aria-description",ru)})},[]);return g.useEffect(()=>{const U=N(k.current);if(F&&l?.size&&U){const ae=Array.from(l)[0];if(ae){const V=F.getRowNode(ae);V&&F.ensureNodeVisible(V)}}},[F,N,l]),f.jsx("div",{className:ge(pO,o,S&&"with-selection-column",x&&"dial-without-header-borders"),"aria-label":n,role:"region","aria-busy":w,children:f.jsx("div",{className:"ag-theme-balham-dark h-full overflow-x-auto",role:"table","aria-describedby":T,children:f.jsx(rO,{rowModelType:"clientSide",headerHeight:Wd,rowHeight:E,cellSelection:!1,theme:UP.withPart(yP).withParams({...O}),autoSizeStrategy:{type:"fitGridWidth"},columnDefs:oe,defaultColDef:ve,selectionColumnDef:G,onGridSizeChanged:_,onGridReady:Y,loading:w,suppressCellFocus:!0,suppressDragLeaveHidesColumns:!0,noRowsOverlayComponent:j,rowData:t,rowSelection:be,onSelectionChanged:z,getRowId:J,onRowDataUpdated:ie,onBodyScroll:ie,onFirstDataRendered:ie,...i})})})};var Wl=(e=>(e.Horizontal="horizontal",e.Vertical="vertical",e))(Wl||{}),jl=(e=>(e.Mobile="mobile",e.Tablet="tablet",e))(jl||{});const Ua=({tab:e,active:t,invalid:i,className:s,horizontal:o,onClick:n})=>{const r=ne("rounded h-[38px] items-center flex flex-row border-transparent cursor-pointer dial-small-text hover:text-accent-primary",{"border-b-2 px-4":o,"border-l-2 px-3":!o}),a=ne(r,{"bg-layer-4":o,"bg-layer-1 text-secondary pointer-events-none":e.disabled,"bg-accent-primary-alpha text-primary":t&&!e.disabled,"text-primary":!t&&!e.disabled,"border-b-accent-primary":t&&o&&!e.disabled,"border-l-accent-primary":t&&!o&&!e.disabled},s);return f.jsxs("button",{role:"tab",className:a,onClick:()=>n(e.id),disabled:e.disabled,children:[f.jsx(bt,{text:e.label,contentClassName:"max-w-[200px]",className:"max-w-[200px]"}),(i||e.invalid)&&f.jsx("div",{className:"text-error pl-1",children:f.jsx(W.IconExclamationCircle,{...ee})}),e.warning&&f.jsx("div",{className:"text-warning pl-1",children:f.jsx(W.IconAlertTriangle,{...ee})})]})},wO=12;var bs=(e=>(e.Undefined="undefined",e.Mobile="mobile",e.Tablet="tablet",e.Desktop="desktop",e))(bs||{});const um=()=>typeof window<"u"&&window.innerWidth<640,_d=()=>{if(typeof window>"u")return bs.Undefined;const e=window.innerWidth;return e>=1024?bs.Desktop:e<640?bs.Mobile:bs.Tablet},bO=()=>{const[e,t]=g.useState(()=>typeof window>"u"?bs.Desktop:_d());return g.useEffect(()=>{t(_d());const i=()=>t(_d());return window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[]),e},A1=({tabs:e,activeTab:t,onClick:i,orientation:s=Wl.Horizontal,screenThreshold:o=jl.Tablet,smallScreenContainerClassName:n,smallScreenDropdownItemClassName:r,desktopDropdownClassName:a,desktopTabClassName:l})=>{const[c,d]=g.useState(!1),[u,h]=g.useState(!1),[p,m]=g.useState(!1),v=bO(),C=v===bs.Mobile||o===jl.Tablet&&v===bs.Tablet,w=s===Wl.Horizontal,b=g.useRef(null),x=g.useRef(null),y=g.useRef(null),S=e.find(T=>T.id===t),E=g.useMemo(()=>ge("flex gap-2",w?"flex-row flex-nowrap overflow-x-auto":"flex-col flex-wrap w-full"),[w]),R=g.useCallback(()=>{const T=x.current;T&&m(T.scrollWidth>T.clientWidth)},[]),F=g.useCallback(()=>{const T=y.current,P=x.current;if(!T||!P)return;const k=T.getBoundingClientRect(),O=P.getBoundingClientRect();if(k.width===0||O.width===0)return;const _=wO;let L=P.scrollLeft;if(k.left<O.left+_)L-=O.left+_-k.left;else if(k.right>O.right-_)L+=k.right-(O.right-_);else return;const N=Math.max(0,P.scrollWidth-P.clientWidth);L=Math.max(0,Math.min(L,N)),L!==P.scrollLeft&&P.scrollTo({left:L,behavior:"smooth"})},[]),D=g.useCallback(T=>{i(T),T===t&&F()},[i,t,F]);return g.useEffect(()=>{R();const T=new ResizeObserver(()=>R()),P=x.current;return P&&T.observe(P),()=>T.disconnect()},[e,R]),g.useEffect(()=>{F()},[t,F]),C?f.jsx("div",{role:"tablist",className:ne("h-11 flex items-center bg-layer-3 px-4",n),children:f.jsx(Nt,{trigger:[Yt.Click],open:c,onOpenChange:d,placement:"bottom-start",allowedPlacements:["bottom-start","top-start"],renderOverlay:()=>e.map(T=>f.jsx(Ua,{tab:T,active:T.id===t,onClick:P=>{D(P),d(!1)},className:ne("w-full rounded-none h-11 items-center px-6",r)},T.id)),children:f.jsxs("div",{className:"flex gap-2 items-center h-11 cursor-pointer",children:[f.jsx(Ua,{tab:S,active:!0,onClick:D,className:"rounded-none bg-transparent border-l-0 border-b-0 h-full items-center px-0"},t),f.jsx(Ue,{icon:f.jsx(W.IconChevronDown,{size:St.SM}),className:ge("text-primary transition-transform",c&&"rotate-180")})]})})}):f.jsxs("div",{ref:b,className:"flex w-full items-start",children:[f.jsx("div",{ref:x,role:"tablist",className:E,children:e.map(T=>f.jsx("div",{ref:t===T.id?y:void 0,className:"w-full",children:f.jsx(Ua,{tab:T,active:t===T.id,onClick:D,horizontal:w,className:ne("w-full",l)})},T.id))}),p&&f.jsx("div",{className:"flex items-center ml-2",children:f.jsx(Nt,{trigger:[Yt.Click],open:u,onOpenChange:h,placement:"bottom-end",renderOverlay:()=>e.map(T=>f.jsx(Ua,{tab:T,active:T.id===t,onClick:P=>{D(P),h(!1)},className:"w-full rounded-none h-8 items-center px-3 py-2"},T.id)),children:f.jsx(di,{iconBefore:f.jsx(W.IconDotsVertical,{size:qt}),className:ne("w-8 h-8 flex items-center justify-center rounded border",u?"bg-layer-4 border-transparent":"border-primary",a)})})})]})},xO="w-full overflow-hidden",yO="flex flex-nowrap items-center gap-2 min-w-0 px-0 py-0 whitespace-nowrap",L1="flex items-center gap-2 min-w-0 shrink-0 dial-small-text",SO="basis-[20%] flex-none",RO="flex-1 min-w-0",hm="inline-flex items-center gap-1 min-w-0 transition-colors",FO="text-secondary hover:text-accent-primary",EO="text-primary cursor-default",O1="flex-none inline-flex items-center leading-none text-secondary",DO="items-center gap-1 min-w-0 transition-colors text-secondary hover:text-accent-primary",N1=f.jsx(W.IconChevronRight,{size:St.SM,"aria-hidden":"true"}),lr=({label:e,href:t,onClick:i,disabled:s,isLast:o,separator:n=N1,className:r,iconBefore:a,labelClassName:l,onBeforeNavigate:c,...d})=>{const u=async C=>{if(c&&!o&&!await c()){C.preventDefault();return}i&&i(C)},h=ne(L1,o?RO:SO,r),p=(!!t||!!i)&&!o&&!s,m=p?ne(hm,FO):ne(hm,EO,s?"pointer-events-none opacity-75":""),v=typeof e=="string"?f.jsx(bt,{className:ne("cursor-pointer",l),text:e,id:"breadcrumb-item-content"}):f.jsx("span",{className:ne("flex-1 min-w-0 truncate cursor-pointer max-w-[300px]",l),"aria-label":"breadcrumb-item-content",children:e});return f.jsxs("li",{...d,className:h,"aria-label":d["aria-label"]||"breadcrumb-item",children:[p?f.jsxs("a",{href:t,onClick:u,className:m,children:[a,v]}):f.jsxs("span",{className:m,"aria-current":o?"page":void 0,"aria-disabled":s?"true":void 0,children:[a,v]}),!o&&f.jsx("span",{className:O1,"aria-label":"separator",children:n})]})},H1=({pathItems:e,separator:t=N1,ariaLabel:i="Breadcrumb",className:s,children:o,labelClassName:n,onBeforeNavigate:r})=>{const a=g.useMemo(()=>e?.length?e:g.Children.toArray(o).filter(g.isValidElement).map(d=>{const u=d.props,{labelClassName:h,isLast:p,separator:m,...v}=u;return v}),[e,o]),l=g.useCallback(async d=>{const u=parseInt(d.key,10),h=a[u];if(r&&!await r()){d.domEvent.preventDefault();return}h.onClick?h.onClick(d.domEvent):h.href&&(window.location.href=h.href)},[a,r]),c=g.useMemo(()=>{if(a.length===0)return null;if(a.length<=3)return a.map((v,C)=>g.createElement(lr,{...v,key:`item-${C}`,isLast:C===a.length-1,separator:t,labelClassName:n,onBeforeNavigate:r}));const d=a.at(0),u=a.slice(1,-2),h=a.at(-2),p=a.at(-1);if(!d||!h||!p)return null;const m=u.map((v,C)=>({key:String(C+1),label:typeof v.label=="string"?v.label:`Item ${C+1}`,disabled:v.disabled}));return f.jsxs(f.Fragment,{children:[g.createElement(lr,{...d,key:"item-0",separator:t,labelClassName:n,onBeforeNavigate:r}),f.jsxs("li",{className:ne(L1),children:[f.jsx(Nt,{menu:{items:m,onClick:l},placement:"bottom-start",matchReferenceWidth:!1,children:f.jsx("button",{type:"button","aria-label":"More breadcrumbs",className:DO,children:f.jsx(W.IconDots,{size:St.SM})})}),f.jsx("span",{className:O1,children:t})]}),g.createElement(lr,{...h,key:`item-${a.length-2}`,separator:t,labelClassName:n,onBeforeNavigate:r}),g.createElement(lr,{...p,key:`item-${a.length-1}`,isLast:!0,separator:t,labelClassName:n,onBeforeNavigate:r})]})},[a,t,n,l,r]);return f.jsx("nav",{"aria-label":i,className:ne(xO,s),children:f.jsx("ol",{className:yO,children:c})})},Pp=(e,t)=>({appearance:s,...o})=>f.jsx(di,{...o,variant:e,appearance:s||t}),B1=(e,t)=>({variant:s,...o})=>f.jsx(di,{...o,variant:s||t,appearance:e}),Ni=Pp(Ye.Primary,Ae.Solid),Vi=Pp(Ye.Neutral,Ae.Outlined),G1=Pp(Ye.Error,Ae.Outlined),PO=B1(Ae.Link,Ye.Primary),Tp=B1(Ae.Ghost,Ye.Primary),Ln=(e,t)=>({appearance:s,...o})=>f.jsx(Is,{...o,variant:e,appearance:s||t}),TO=(e,t)=>({variant:s,...o})=>f.jsx(Is,{...o,variant:s||t,appearance:e}),kO=Ln(Ye.Primary,Ae.Solid),IO=Ln(Ye.Neutral,Ae.Outlined),V1=Ln(Ye.Error,Ae.Outlined),MO=Ln(Ye.Secondary,Ae.Ghost),AO=Ln(Ye.Tertiary,Ae.Ghost),LO=Ln(Ye.Success,Ae.Ghost),OO=TO(Ae.Ghost,Ye.Primary),bc=({iconClassName:e,label:t,...i})=>t?f.jsx(G1,{...i,label:t,appearance:Ae.Ghost,iconBefore:f.jsx(W.IconTrashX,{...ee,className:e||""})}):f.jsx(V1,{...i,appearance:Ae.Ghost,icon:f.jsx(W.IconTrashX,{...ee,className:e||""})}),NO=({className:e="",value:t,onChange:i,error:s,containerClassName:o,resize:n=!1,labelProps:r,caption:a,id:l,...c})=>{const d=ne("dial-textarea dial-input px-3 py-2",c.invalid&&"dial-input-error",c.disabled&&"dial-input-disable",n?"resize":"resize-none",e);return f.jsxs("div",{className:ne("flex flex-col gap-y-1",o),children:[r&&f.jsx(So,{...r,htmlFor:l}),f.jsx("textarea",{id:l,value:t||"",className:d,onChange:u=>i?.(u.currentTarget.value),...c}),f.jsx(bi,{text:s}),!s&&f.jsx(Gr,{text:a})]})},xc=({label:e,switchId:t,isOn:i=!1,disabled:s,onChange:o,caption:n})=>{const r=ge("flex w-[36px] h-[18px] cursor-pointer items-center gap-1 rounded-full p-0.5 transition-all duration-200",i?"flex-row-reverse":"flex-row",s?"pointer-events-none":"",s?i?"bg-controls-disable":"bg-layer-4":i?"bg-accent-primary":"bg-layer-4"),a=g.useCallback(l=>{l.stopPropagation(),o?.(!i)},[o,i]);return f.jsxs("div",{className:"flex flex-row items-start",role:"switch",children:[f.jsx("input",{type:"checkbox",onChange:a,id:t,disabled:s,className:"invisible size-0",checked:i}),f.jsx("label",{htmlFor:t,className:r,"aria-describedby":n&&"caption",children:f.jsx("span",{className:ge("size-3 rounded-full",s?"bg-controls-disable-accent":"bg-controls-enable-primary")})}),(e||n)&&f.jsxs("div",{className:"flex flex-col gap-1 ml-2",children:[e&&f.jsx("span",{className:ge("dial-small-text py-[1px]",s?"text-secondary":"text-primary"),"aria-label":"switch-title",children:e}),n&&f.jsx("span",{id:"caption",className:"dial-tiny-text text-secondary",children:n})]})]})};var Xt=(e=>(e.Sm="sm",e.Md="md",e.Lg="lg",e))(Xt||{});const HO="z-[52] flex items-center justify-center bg-blackout md:p-4",pm="divide-tertiary divide-y",BO="flex flex-row justify-between py-4 px-6 items-center",GO={[Xt.Sm]:"dial-sm-popup",[Xt.Md]:"dial-md-popup",[Xt.Lg]:"dial-lg-popup"},Do=({open:e=!1,header:t,portalId:i,className:s,overlayClassName:o,titleClassName:n,headerClassName:r,dividers:a=!0,dividerFooter:l=!0,children:c,footer:d,onClose:u,size:h=Xt.Md,hideClose:p=!1,closeOnOutsideClick:m=!0,preventKeyboardOnOpen:v=!1})=>{const C=g.useRef(null),{refs:w,context:b}=Oe.useFloating({open:e,onOpenChange:F=>{F||u?.(null)}}),x=Oe.useRole(b,{role:"dialog"}),y=Oe.useDismiss(b,{outsidePress:m}),{getFloatingProps:S}=Oe.useInteractions([x,y]);if(!e)return null;const E=typeof t=="string"?"dial-popup-heading":void 0,R=F=>F?typeof F=="string"?f.jsx("h3",{id:E,className:ge("flex-1 min-w-0 mr-3 truncate dial-h3 text-primary",n),children:f.jsx(jt,{tooltip:F,children:F})}):F:f.jsx("span",{});return f.jsx(Oe.FloatingPortal,{id:i,children:f.jsx(Oe.FloatingOverlay,{className:ge(HO,o),children:f.jsx(Oe.FloatingFocusManager,{context:b,initialFocus:v?C:void 0,children:f.jsxs("div",{ref:w.setFloating,...S(),role:"dialog","aria-modal":"true","aria-labelledby":E,className:ge("dial-popup",GO[h],a&&pm,s),children:[v&&f.jsx("div",{ref:C,tabIndex:-1,"aria-hidden":!0,className:"absolute size-px -m-px overflow-hidden opacity-0 pointer-events-none"}),f.jsxs("div",{className:ne(BO,r),children:[R(t),!p&&f.jsx(Ep,{ariaLabel:"Close dialog",onClose:F=>u?.(F)})]}),f.jsx("div",{className:"grow overflow-auto","aria-label":"popup-description",children:c}),l&&!d&&f.jsx("div",{className:pm}),d]})})})})};var En=(e=>(e.Info="info",e.Danger="danger",e))(En||{});const VO="flex justify-end gap-2 px-6 py-4",zO="text-secondary dial-small-150 px-6 py-4",WO="Cancel",jO="Ok",Ud={[En.Info]:{confirm:{variant:Ye.Primary,appearance:Ae.Solid},cancel:{variant:Ye.Neutral,appearance:Ae.Outlined}},[En.Danger]:{container:"dial-danger-popup",confirm:{variant:Ye.Error,appearance:Ae.Solid},cancel:{variant:Ye.Neutral,appearance:Ae.Outlined}}},z1=({header:e,description:t,descriptionClassName:i,open:s=!1,confirmLabel:o=jO,cancelLabel:n=WO,isLoading:r=!1,disableConfirmButton:a=!1,className:l,confirmClassName:c,onClose:d,onConfirm:u,onCancel:h,children:p,dividers:m=!1,variant:v=En.Info,size:C=Xt.Sm,footer:w})=>{const b=r?null:f.jsxs("div",{className:VO,children:[f.jsx(Vi,{label:n,onClick:()=>h?h():d?.()}),f.jsx(di,{variant:Ud[v].confirm?.variant,appearance:Ud[v].confirm?.appearance,className:c,label:o,disabled:a,onClick:()=>u()})]}),x=g.useCallback(()=>r?f.jsx("div",{className:"px-6 py-4 h-[120px]",children:f.jsx(Vr,{size:50})}):p??(t?f.jsx("div",{className:ge(zO,i),children:t}):null),[p,t,r,i]);return f.jsx(Do,{open:s,header:e,className:ge(Ud[v].container,l),dividers:m,onClose:()=>d?.(),footer:w??b,size:C,children:x()})},$d=8,_O=24,W1=({initialTags:e=[],label:t,required:i,elementId:s,placeholder:o,captionDescription:n,errorText:r,invalid:a,disabled:l,collapseTagOverflow:c=!1,readOnly:d=!1,containerClassName:u,tagClassName:h,onChange:p})=>{const m=g.useRef(null),v=g.useRef([]),C=g.useRef(null),[w,b]=g.useState(e),[x,y]=g.useState(""),[S,E]=g.useState(!1),[R,F]=g.useState(e.length),D=g.useCallback(H=>z=>{v.current[H]=z},[]),T=g.useCallback(()=>{if(!c)return;const H=m.current;if(!H)return;const z=H.offsetWidth;if(z===0)return;const se=C.current?.offsetWidth??0,I=z-(d?0:_O)-$d;let G=0,K=0;for(let oe=0;oe<w.length;oe++){const ve=v.current[oe];if(!ve)continue;const Y=ve.offsetWidth+$d;if(G+Y>I)break;G+=Y,K++}if(K<w.length&&K>0)for(;G+se>I&&K>0;){K--;const oe=v.current[K]?.offsetWidth??0;G-=oe+$d}F(K)},[c,d,w.length]),P=H=>{const z=H.trim().replace(/,$/,"");if(z&&!w.includes(z)){const se=[z,...w];b(se),p?.(se)}},k=H=>{(H.key===","||H.key==="Enter")&&(H.preventDefault(),P(x),y(""))},O=()=>{x.trim()&&(P(x),y(""))},_=H=>{const z=w.filter((se,M)=>M!==H);b(z),p?.(z)},L=()=>r?f.jsx(bi,{text:r}):n?f.jsx(Gr,{text:n}):null;g.useEffect(()=>{if(c)return;const H=new ResizeObserver(()=>{if(m.current){const z=m.current.scrollHeight>m.current.clientHeight+10;E(z)}});return m.current&&H.observe(m.current),()=>H.disconnect()},[w,c]),g.useEffect(()=>{if(!c){F(w.length);return}F(w.length);const H=new ResizeObserver(()=>{T()}),z=m.current;return z&&H.observe(z),T(),()=>H.disconnect()},[c,T,w]),g.useEffect(()=>{b(e)},[JSON.stringify(e)]);const N=f.jsxs("div",{ref:m,className:ge("flex gap-2 items-center relative",c?"flex-nowrap overflow-hidden w-full min-w-0":ge("flex-wrap",S?"flex-col-reverse":"flex-row"),u),children:[(c?w.slice(0,R):w).map((H,z)=>f.jsx(Qo,{tag:H,className:h,remove:!l&&!d?()=>_(z):void 0},H+z)),c&&R<w.length&&f.jsx(jt,{tooltip:w.slice(R).join(", "),triggerClassName:"inline-flex shrink-0 cursor-pointer",children:f.jsx(Qo,{tag:`+${w.length-R}`})}),!d&&f.jsx("input",{id:s,type:"text",value:x,onChange:H=>y(H.target.value),onKeyDown:k,onBlur:O,className:ge("dial-input outline-none !border-none w-full flex-1 !p-1 !h-auto",c?"min-w-0":"min-w-[100px]"),placeholder:o??"",disabled:l}),c&&f.jsxs("div",{className:"absolute left-0 top-0 invisible pointer-events-none h-0 overflow-hidden whitespace-nowrap","aria-hidden":!0,children:[w.map((H,z)=>f.jsx("div",{ref:D(z),className:"inline-flex shrink-0",children:f.jsx(Qo,{tag:H,className:h,remove:!l&&!d?()=>_(z):void 0})},`measure-${H}-${z}`)),f.jsx("div",{ref:C,className:"inline-flex shrink-0",children:f.jsx(Qo,{tag:`+${w.length}`})})]})]});return d?N:f.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f.jsx(So,{label:t,required:i,htmlFor:s}),f.jsx("div",{className:ge("dial-input min-h-[38px] p-[6px]",a&&"dial-input-error",l&&"dial-input-disable"),children:N}),L()]})},j1=({selectedItems:e,placeholder:t,collapseTagOverflow:i=!1,listClassName:s,listElementClassName:o})=>e?.length?f.jsx(W1,{readOnly:!0,initialTags:e,collapseTagOverflow:i,containerClassName:s,tagClassName:o}):t?f.jsx("span",{className:"text-secondary",children:t}):null,qd=e=>ye.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M2.25 13.5V12C2.25 11.5858 2.58579 11.25 3 11.25C3.41421 11.25 3.75 11.5858 3.75 12V13.5C3.75 13.6989 3.82907 13.8896 3.96973 14.0303C4.11038 14.1709 4.30109 14.25 4.5 14.25H6C6.41421 14.25 6.75 14.5858 6.75 15C6.75 15.4142 6.41421 15.75 6 15.75H4.5C3.90326 15.75 3.33114 15.5128 2.90918 15.0908C2.48722 14.6689 2.25 14.0967 2.25 13.5ZM14.25 6V4.5C14.25 4.30109 14.1709 4.11038 14.0303 3.96973C13.8896 3.82907 13.6989 3.75 13.5 3.75H12C11.5858 3.75 11.25 3.41421 11.25 3C11.25 2.58579 11.5858 2.25 12 2.25H13.5C14.0967 2.25 14.6689 2.48722 15.0908 2.90918C15.5128 3.33114 15.75 3.90326 15.75 4.5V6C15.75 6.41421 15.4142 6.75 15 6.75C14.5858 6.75 14.25 6.41421 14.25 6Z",fill:"currentColor"})),_1=({children:e,open:t,disabled:i=!1,selectedValue:s,valueClassName:o,inputClassName:n,onOpen:r,elementId:a,errorText:l,invalid:c,emptyValueText:d,placeholder:u,editable:h=!1,onValueChange:p,collapseTagOverflow:m=!1,iconBefore:v})=>{const C=Array.isArray(s)&&s.length>0,w=typeof s=="string"&&!!s.trim(),b=C||w?s:u?void 0:d,x=i?void 0:r,y=g.useCallback(F=>{p?.(F.target.value)},[p]),S=()=>f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:ge("dial-input px-3 py-2 dial-input-field flex flex-row items-center gap-x-2 w-full justify-between",n,i&&"dial-input-disable",(l||c)&&"dial-input-error"),children:[f.jsxs("div",{className:"flex flex-row items-center gap-x-2 flex-1 min-w-0",children:[v&&f.jsx(Ue,{icon:v}),f.jsx("input",{type:"text",className:ge("flex-1 min-w-0 bg-transparent outline-none border-none p-0 dial-small-text text-primary placeholder:text-secondary",o),value:typeof s=="string"?s:"",placeholder:u||d,onChange:y,disabled:i,id:a,"aria-label":"input-popup-field"})]}),!i&&f.jsx("button",{type:"button",className:"shrink-0 cursor-pointer bg-transparent border-none p-0 ml-1",onClick:r,"aria-label":"open-popup",children:f.jsx(Ue,{icon:f.jsx(qd,{role:"img",width:qt,height:qt})})})]}),f.jsx(bi,{text:l})]}),E=()=>f.jsxs(f.Fragment,{children:[f.jsx("button",{type:"button",className:"w-full",onClick:x,"aria-label":"open-popup",id:a,children:f.jsxs("div",{className:ge("dial-input px-3 py-2 dial-input-field flex flex-row items-center gap-x-2 w-full justify-between cursor-pointer",n,i&&"dial-input-disable",(l||c)&&"dial-input-error"),children:[f.jsxs("div",{className:"flex flex-row items-center gap-x-2 flex-1 min-w-0",children:[v&&f.jsx(Ue,{icon:v}),f.jsx(jt,{tooltip:b==null?void 0:String(b),children:b||!u?f.jsx("span",{className:o,children:b}):f.jsx("span",{className:"text-secondary",children:u})})]}),!i&&f.jsx("div",{className:"shrink-0",children:f.jsx(Ue,{icon:f.jsx(qd,{role:"img",width:qt,height:qt})})})]})}),f.jsx(bi,{text:l})]}),R=()=>f.jsx("div",{className:"w-full",onClick:x,children:f.jsxs("div",{className:ge("dial-input px-3 py-2 flex flex-row items-center gap-x-2 w-full justify-between cursor-pointer",i&&"dial-input-disable"),children:[f.jsxs("div",{className:"flex flex-row items-center gap-x-2 flex-1 min-w-0",children:[v&&f.jsx(Ue,{icon:v}),f.jsx(j1,{placeholder:u,selectedItems:b,collapseTagOverflow:m})]}),!i&&f.jsx("div",{className:"ml-1",children:f.jsx(Ue,{icon:f.jsx(qd,{role:"img",width:qt,height:qt})})})]})});return f.jsxs(f.Fragment,{children:[C?R():h?S():E(),t&&Dn.createPortal(e,document.body)]})},UO=({label:e,htmlFor:t,disabled:i,selectedValue:s,radioButtons:o,customInputValue:n,valueClassName:r,inputClassName:a,emptyValueText:l,onClose:c,header:d,portalId:u,onApply:h,onCancel:p,cancelButtonTitle:m="Cancel",applyButtonTitle:v="Apply",isValid:C,selectedRadioValue:w,onChangeRadioField:b,id:x,size:y=Xt.Md})=>{const[S,E]=g.useState(!1),R=g.useCallback(()=>{i||E(!0)},[i]),F=g.useCallback(()=>{E(!1),c?.()},[c]),D=g.useCallback(()=>{p?.(),F()},[p,F]),T=g.useCallback(()=>{h(),F()},[h,F]);return f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx(So,{label:e,htmlFor:t}),f.jsx(_1,{disabled:i,open:S,selectedValue:n??o.find(P=>P.id===s)?.name,valueClassName:r,inputClassName:ge(a,"py-2","px-3"),emptyValueText:l,onOpen:R,children:f.jsx(Do,{open:S,onClose:D,header:d,portalId:u,size:y,footer:f.jsxs("div",{className:"flex flex-row items-center justify-end gap-2 px-6 py-4",children:[f.jsx(Vi,{label:m,onClick:D}),f.jsx(Ni,{label:v,onClick:T,disabled:!C})]}),children:f.jsx("div",{className:"px-6 py-4",children:f.jsx(hl,{radioButtons:o,labelClassName:"dial-small-text",activeRadioButton:w,onChange:b,elementId:x,orientation:ro.Column})})})})]})},$O="Create",qO="Cancel",KO="flex items-center justify-end gap-2 px-6 py-3",YO=({header:e,open:t=!1,submitLabel:i=$O,cancelLabel:s=qO,isLoading:o=!1,disableSubmitButton:n=!1,className:r,submitClassName:a,onClose:l,onSubmit:c,onCancel:d,children:u,dividers:h=!0,size:p=Xt.Md,footer:m})=>{const v=o?null:f.jsxs("div",{className:KO,children:[f.jsx(Vi,{label:s,onClick:()=>d?d():l?.()}),f.jsx(Ni,{className:a,label:i,disabled:n,onClick:()=>c()})]}),C=g.useCallback(()=>o?f.jsx("div",{className:"px-6 py-4 h-[120px]",children:f.jsx(Vr,{size:50})}):u??null,[u,o]);return f.jsx(Do,{open:t,header:e,className:r,dividers:h,onClose:()=>l?.(),footer:m??v,size:p,children:C()})},ZO=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Backspace","Delete","Tab","Enter","Escape","Home","End","Insert"],U1=(e,t,i,s)=>{if((t==="number"||i!==void 0||s!==void 0)&&!ZO.includes(e.key)&&!(e.ctrlKey||e.metaKey)&&!(e.key==="-"&&(e.currentTarget.selectionStart??0)===0&&!e.currentTarget.value.includes("-"))&&!(e.key==="."&&t==="number"&&!e.currentTarget.value.includes("."))){if(!/^[0-9]$/.test(e.key)){e.preventDefault();return}if(i!==void 0||s!==void 0){const n=e.currentTarget.value,r=e.currentTarget.selectionStart||0,a=n.slice(0,r)+e.key+n.slice(r),l=parseFloat(a);if(!isNaN(l)){if(i!==void 0&&l<+i){e.preventDefault();return}if(s!==void 0&&l>+s){e.preventDefault();return}}}}},XO="bg-layer-4 flex items-center justify-center enabled:text-secondary enabled:hover:text-accent-primary enabled:active:bg-controls-accent-primary-alpha-active enabled:hover:bg-accent-primary-alpha enabled:active:text-accent-primary",QO=({icon:e,onClick:t,disabled:i,size:s=xt.Standard})=>f.jsx("div",{className:ge("border-l border-tertiary",s===xt.Standard?"h-[40px] w-[44px]":"h-[24px] w-[32px]"),children:f.jsx(Is,{className:ge(XO,s===xt.Small&&"p-1"),icon:e,onClick:t,disabled:i,size:s})}),is=({labelProps:e,error:t,caption:i,id:s,containerClassName:o,...n})=>f.jsxs("div",{className:ne("flex flex-col gap-y-1",o),children:[e&&f.jsx(So,{...e,htmlFor:s}),f.jsx($1,{id:s,...n}),f.jsx(bi,{text:t}),!t&&f.jsx(Gr,{text:i})]}),$1=({invalid:e,disabled:t,prefix:i,className:s,postfix:o,iconBefore:n,iconAfter:r,wrapperClassName:a,type:l,inputRef:c,value:d,tooltipText:u,min:h,onChange:p,max:m,inputButtonProps:v,...C})=>{const w=g.useRef(null),b=Oe.useMergeRefs([c,w]),[x,y]=g.useState(!1),S=g.useCallback(()=>{const k=w.current;k&&y(k.scrollWidth>k.clientWidth)},[]);g.useEffect(()=>{S()},[d,S]),g.useEffect(()=>(window.addEventListener("resize",S),()=>window.removeEventListener("resize",S)),[S]),g.useEffect(()=>{const k=w.current;if(!k)return;const O=_=>{_.preventDefault()};return k.addEventListener("wheel",O,{passive:!1}),()=>{k.removeEventListener("wheel",O)}},[]);const E=l==="number"||h!==void 0||m!==void 0,R=k=>{U1(k,l,h,m)},F=k=>{const O=k.currentTarget.value;if(E&&O!==""){const _=parseFloat(O);if(isNaN(_)&&O!=="-"&&O!=="."||!isNaN(_)&&(h!==void 0&&_<+h||m!==void 0&&_>+m))return}p?.(O||void 0)},D=()=>f.jsxs("div",{className:ne("dial-input flex flex-row items-center gap-x-2 justify-between py-2",e&&"dial-input-error",t&&"dial-input-disable",!i&&"pl-3",!v&&"pr-3",a),"aria-label":"input-container",children:[i&&f.jsx("div",{className:"border-r border-tertiary",children:f.jsx($1,{wrapperClassName:"!rounded-r-none",className:"truncate",value:i,disabled:!0,id:`${i}_textBefore`})}),f.jsx(Ue,{icon:n}),f.jsx("input",{ref:b,type:l,autoComplete:l==="password"?"new-password":"off",value:d??"",className:ne("border-0 bg-transparent w-full truncate",t&&"cursor-not-allowed",s),onChange:F,onKeyDown:R,min:h,disabled:t,max:m,...C}),o&&f.jsxs("p",{className:"text-secondary dial-small-text",children:[" ",o]}),f.jsx(Ue,{icon:r}),v&&f.jsx(QO,{...v,disabled:t})]}),T=t&&l!=="password"||x,P=u||d;return T&&P?f.jsx(jt,{tooltip:P,children:D()}):D()},JO=/^0+\.(\d+)?$/,eN=/^0+/,Qu=({integer:e,onChange:t,min:i,max:s,onKeyDown:o,onPaste:n,...r})=>{const a=d=>!d||d==="-"?d:String(d)?.match(JO)?String(d)?.replace(eN,"0"):Number(d),l=d=>{if([".","-","+","e","E"].includes(d.key)){d.preventDefault();return}U1(d,"number",i,s)},c=d=>{const u=d.clipboardData.getData("text"),h=u.replace(/\D/g,"");if(h!==u&&(d.preventDefault(),h)){const p=d.currentTarget,m=p.selectionStart??0,v=p.selectionEnd??0,C=p.value.slice(0,m)+h+p.value.slice(v);t?.(a(C))}};return f.jsx(is,{type:"number",min:i,max:s,onChange:d=>t?.(a(d)),onKeyDown:e?l:o,onPaste:e?c:n,...r})},tN=({onClick:e})=>f.jsx(W.IconEyeOff,{...ee,className:"text-primary",onClick:e,role:"button","aria-label":"hide"}),iN=({onClick:e})=>f.jsx(W.IconEye,{...ee,className:"text-primary",onClick:e,role:"button","aria-label":"show"}),q1=({...e})=>{const[t,i]=g.useState(!1),s=g.useCallback(o=>{i(o)},[]);return f.jsx(is,{type:t?"text":"password",...e,iconAfter:e.disabled?null:t?f.jsx(tN,{onClick:()=>s(!1)}):f.jsx(iN,{onClick:()=>s(!0)})})},sN={[xt.Small]:{className:"dial-tiny-text",wrapperClassName:"pl-2 py-0",containerClassName:"h-[24px]",iconSize:16,iconStroke:1},[xt.Standard]:{className:"dial-small-text",wrapperClassName:"",containerClassName:"",iconSize:20,iconStroke:1.5}},kp=({size:e=xt.Standard,placeholder:t="Search...",value:i,onChange:s,...o})=>{const[n,r]=g.useState(i||"");g.useEffect(()=>{r(i||"")},[i]);const a=g.useCallback(u=>{r(u||""),s?.(u||"")},[s]),l=sN[e],c=g.useCallback(()=>{a("")},[a]),d=g.useMemo(()=>{if(n)return{icon:f.jsx(W.IconX,{size:l.iconSize,"aria-label":"Clear search",role:"button"}),onClick:c,size:e}},[c,n,e,l.iconSize]);return f.jsx(is,{placeholder:t,iconBefore:f.jsx(W.IconSearch,{size:l.iconSize,stroke:l.iconStroke}),value:n,onChange:a,inputButtonProps:d,containerClassName:l.containerClassName,className:l.className,wrapperClassName:l.wrapperClassName,...o})},oN="dial-input flex w-full items-center justify-between gap-2 dial-small-text cursor-pointer",nN="w-full rounded flex flex-col",Kd="flex w-full items-center justify-between gap-2 px-3 h-[34px] dial-small-text text-primary truncate hover:bg-accent-primary-alpha focus:bg-accent-primary-alpha focus:outline-none",rN="bg-accent-primary-alpha",aN="bg-accent-primary-alpha border-l border-accent-primary border-1",gm="opacity-75",lN=352,cN=f.jsx(W.IconChevronDown,{size:St.SM}),K1=({options:e,selectedValues:t,handleRemoveTag:i})=>f.jsx("div",{className:"flex flex-wrap w-full items-center gap-1",children:t.map(s=>{const o=e.find(r=>r.value===s)?.label??s,n=e.find(r=>r.value===s)?.icon;return f.jsx(Qo,{tag:o,remove:r=>i?.(r,s),iconBefore:n?f.jsx(Ue,{icon:n}):null,className:"max-w-full"},s)})});var _l=(e=>(e.Sm="sm",e.Md="md",e))(_l||{}),Ul=(e=>(e.Primary="Primary",e.Secondary="Secondary",e))(Ul||{});const bo=({options:e,multiple:t=!1,elementId:i,value:s,defaultValue:o,variant:n=Ul.Primary,size:r=_l.Md,prefix:a,customSelectedValue:l,placeholder:c="Select...",searchable:d=!1,searchPlaceholder:u,selectAll:h=!1,invalid:p,selectAllLabel:m="Select all",emptyStateTitle:v="No options available",emptyStateDescription:C,emptyStateIcon:w,disabled:b=!1,className:x,listClassName:y,closable:S=!1,header:E,footer:R,onClose:F,onChange:D,inlineSearch:T=!1,dismissRef:P,onFooterClick:k,open:O,onOpenChange:_,onInlineQueryChange:L,customMultiSelectTagsRenderer:N})=>{const H=g.useId(),[z,se]=g.useState(!1),M=O!==void 0,I=M?!!O:z,G=g.useCallback(q=>{M||se(q),_?.(q)},[M,_]),[K,oe]=g.useState(T&&l||""),ve=g.useRef(null),Y=g.useCallback(q=>{q!==K&&(oe(q||""),L?.(q||""))},[L,K]),j=s!==void 0,[be,J]=g.useState(o),ie=j?s:be,U=g.useMemo(()=>t?Array.isArray(ie)?ie:[]:typeof ie=="string"?[ie]:[],[ie,t]),ae=g.useMemo(()=>{const q=K.trim().toLowerCase();return q?e.filter(Ve=>Ve.label.toLowerCase().includes(q)):e},[e,K]);g.useEffect(()=>{!I&&!T&&Y("")},[T,I,Y]),g.useEffect(()=>{T&&!I&&l&&Y(l||"")},[l,T,I,Y]);const V=g.useCallback(q=>{j||J(q),D?.(q)},[j,D]),ue=g.useCallback(q=>{if(t){const Ve=new Set(U);Ve.has(q)?Ve.delete(q):Ve.add(q),V(Array.from(Ve));return}if(V(q),T){const Ve=e.find(pi=>pi.value===q);Ve&&(Y(Ve.label),L?.(Ve.label))}G(!1)},[t,V,T,G,U,e,Y,L]),pe=g.useCallback((q,Ve)=>{if(q.stopPropagation(),!t){V("");return}const pi=U.filter(Nn=>Nn!==Ve);V(pi)},[t,U,V]),Te=g.useMemo(()=>ae.filter(q=>!q.disabled),[ae]),Re=g.useMemo(()=>Te.filter(q=>U.includes(q.value)).length,[Te,U]),le=q=>{T&&!t&&!q&&ue(K),G(q)},Ee=Te.length>0&&Re===Te.length,De=Re>0&&!Ee,Pe=()=>{if(!(!t||Te.length===0))if(Ee){const q=new Set(Te.map(pi=>pi.value)),Ve=U.filter(pi=>!q.has(pi));V(Ve)}else{const q=new Set(U);Te.forEach(Ve=>q.add(Ve.value)),V(Array.from(q))}},Ce=U.length>0;g.useEffect(()=>{I&&T&&!t&&!b&&requestAnimationFrame(()=>{const q=ve.current;if(!q)return;q.focus();const Ve=q.value?.length??0;q.setSelectionRange?.(Ve,Ve)})},[I,T,t,b]);const Ie=!t&&Ce?U[0]:void 0,He=g.useMemo(()=>Ie?e.find(q=>q.value===Ie):void 0,[e,Ie]),kt=g.useCallback(()=>!t||U.length===0?null:f.jsx(K1,{options:e,selectedValues:U,handleRemoveTag:pe}),[t,e,U,pe]),et=g.useCallback(()=>t?Ce?N?.(e,U,pe)||kt():f.jsx("span",{className:"text-secondary truncate",children:c}):He?f.jsxs(f.Fragment,{children:[He.icon&&f.jsx(Ue,{icon:He.icon}),f.jsx(bt,{text:a?`${a} ${He.label}`:He.label}),He?.description&&f.jsx("div",{className:"text-secondary dial-small-text",children:He.description})]}):l&&s?l:f.jsx("span",{className:"text-secondary truncate",children:c}),[Ce,t,l,a,s,c,kt,He,e,U,pe,N]);g.useImperativeHandle(P,()=>({dismiss:()=>{G(!1)}}));const mt=g.useCallback(()=>{Y(U.length===1?He?.label??K:"")},[K,U.length,Y,He?.label]),je=g.useCallback(()=>{b||(G(!I),T&&!t&&(mt(),ve.current?.focus()))},[b,T,I,t,mt,G]);return f.jsx(Nt,{open:I,onOpenChange:le,disabled:b,closable:S,onClose:F,placement:"bottom-start",allowedPlacements:["bottom-start","top-start"],maxDropdownHeight:d?null:lN,listClassName:y,renderOverlay:()=>f.jsxs("div",{id:`list-${i||H}`,role:"listbox","aria-multiselectable":t||void 0,className:nN,children:[E&&f.jsx(f.Fragment,{children:typeof E=="function"?E():E}),(d||S)&&e.length>8&&f.jsxs("div",{className:"flex items-center gap-2 px-2 pt-2",children:[d&&f.jsx(kp,{placeholder:u,onChange:Y,value:K,id:`search-${i||H}`,containerClassName:"w-full"}),S&&f.jsx(di,{"aria-label":"Close select",className:"shrink-0",iconBefore:f.jsx(W.IconX,{size:St.SM}),onClick:q=>{F?.(q),G(!1)}})]}),t&&h&&Te.length>0&&f.jsx("div",{className:ge(Kd,"mt-2"),children:f.jsx(au,{id:`${i||H}-selectAll`,label:m,checked:Ee,indeterminate:De,onChange:Pe,ariaLabel:m})}),f.jsx("div",{className:ge("overflow-y-auto max-h-[352px]",T&&ae.length===0?"":"py-1"),children:ae.length===0?!T&&f.jsx("div",{className:"px-2 py-3",children:f.jsx(zr,{icon:w??f.jsx(W.IconClipboardX,{size:St.LG,stroke:.5}),title:v,description:C})}):ae.map(q=>{const Ve=U.includes(q.value);return t?f.jsxs("div",{role:"option","aria-selected":Ve,"aria-disabled":!!q.disabled,className:ge(Kd,Ve&&rN,q.disabled&&gm,"w-full"),children:[f.jsx(au,{id:`${i||H}-${q.value}`,label:f.jsxs("span",{className:"flex w-full flex-1 pl-2 min-w-0 items-center gap-2 text-primary",children:[q.icon&&f.jsx(Ue,{icon:q.icon}),f.jsx("span",{className:"truncate",children:q.label})]}),checked:Ve,disabled:q.disabled,onChange:()=>!q.disabled&&ue(q.value),ariaLabel:q.label}),q.description&&f.jsx("div",{className:"text-secondary dial-small-text",children:q.description})]},q.value):f.jsx("button",{role:"option",type:"button","aria-selected":Ve,"aria-disabled":!!q.disabled,disabled:q.disabled,className:ge(Kd,Ve&&aN,q.disabled&&gm),onClick:()=>!q.disabled&&ue(q.value),children:f.jsxs("div",{className:"flex items-center gap-2 w-full",children:[q.icon&&f.jsx(Ue,{icon:q.icon}),f.jsx(bt,{text:q.label}),q.description&&f.jsx("div",{className:"text-secondary dial-small-text",children:q.description})]})},q.value)})}),R&&f.jsx("div",{onClick:q=>{k?.(q),k&&G(!1)},children:typeof R=="function"?R():R})]}),children:f.jsxs("div",{role:"button",tabIndex:0,"aria-roledescription":"button to open select list","aria-haspopup":"listbox","aria-expanded":I,"aria-controls":`list-${i||H}`,className:ne(oN,b&&"opacity-75 !cursor-not-allowed",r===_l.Sm?"min-h-[25px] px-1.5 py-1":"min-h-[38px] px-3 py-2",p&&"dial-input-error",n===Ul.Secondary?"!bg-layer-4 !h-auto":"",x),onMouseDown:q=>{b||T&&!t&&(mt(),q.preventDefault())},onClick:()=>{je()},onKeyDown:q=>{(q.key===" "||q.code==="Space")&&(q.preventDefault(),je())},children:[T&&!t?f.jsx("div",{className:"flex min-w-0 items-center gap-2 text-primary flex-1",children:f.jsx("input",{id:`inline-${i||H}`,type:"text",placeholder:u??c,value:K||"",onChange:q=>Y(q.currentTarget.value.trimStart()),onFocus:()=>!b&&G(!0),onMouseDown:q=>{mt(),q.stopPropagation()},onClick:q=>{q.stopPropagation()},onKeyDown:q=>{q.stopPropagation()},className:"bg-transparent outline-none w-full dial-small-text",ref:ve,disabled:b,"aria-disabled":b,autoComplete:"off"})}):f.jsx("div",{className:"flex w-full min-w-0 items-center gap-2 text-primary",children:et()}),!T&&f.jsx(Ue,{icon:cN,className:ge("text-primary",I&&"rotate-180")})]})})},dN=({label:e,required:t,captionDescription:i,containerClassName:s,selectClassName:o,error:n,id:r,caption:a,readonly:l,value:c,defaultEmptyText:d,...u})=>{const h=g.useCallback(()=>{if(!c||Array.isArray(c)&&c.length===0)return d??"None";if(Array.isArray(c))return f.jsx(K1,{options:u.options,selectedValues:c});{const p=u.options?.find(m=>m.value===c);return f.jsx("span",{"aria-readonly":!0,className:"text-primary",children:p?.label||c})}},[c,u.options,d]);return f.jsx(ql,{id:r,label:e,required:t,description:a,error:n,captionDescription:i,className:s,readonly:l,value:h(),defaultEmptyText:d,children:f.jsx(bo,{className:o,value:c,elementId:r,invalid:!!n,...u})})};function Y1(e){let t=null;return()=>(t==null&&(t=e()),t)}function uN(e,t){return e.filter(i=>i!==t)}function hN(e,t){const i=new Set,s=n=>i.add(n);e.forEach(s),t.forEach(s);const o=[];return i.forEach(n=>o.push(n)),o}class pN{enter(t){const i=this.entered.length,s=o=>this.isNodeInDocument(o)&&(!o.contains||o.contains(t));return this.entered=hN(this.entered.filter(s),[t]),i===0&&this.entered.length>0}leave(t){const i=this.entered.length;return this.entered=uN(this.entered.filter(this.isNodeInDocument),t),i>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class gN{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const i={};Object.keys(this.config.exposeProperties).forEach(s=>{const o=this.config.exposeProperties[s];o!=null&&(i[s]={value:o(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,i)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,i){return i===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Ip="__NATIVE_FILE__",Z1="__NATIVE_URL__",X1="__NATIVE_TEXT__",Q1="__NATIVE_HTML__",fm=Object.freeze(Object.defineProperty({__proto__:null,FILE:Ip,HTML:Q1,TEXT:X1,URL:Z1},Symbol.toStringTag,{value:"Module"}));function Yd(e,t,i){const s=t.reduce((o,n)=>o||e.getData(n),"");return s??i}const Ju={[Ip]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Q1]:{exposeProperties:{html:(e,t)=>Yd(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Z1]:{exposeProperties:{urls:(e,t)=>Yd(e,t,"").split(`
69
- `),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[X1]:{exposeProperties:{text:(e,t)=>Yd(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function fN(e,t){const i=Ju[e];if(!i)throw new Error(`native type ${e} has no configuration`);const s=new gN(i);return s.loadDataTransfer(t),s}function Zd(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Ju).filter(i=>{const s=Ju[i];return s?.matchesTypes?s.matchesTypes.some(o=>t.indexOf(o)>-1):!1})[0]||null}const mN=Y1(()=>/firefox/i.test(navigator.userAgent)),J1=Y1(()=>!!window.safari);class mm{interpolate(t){const{xs:i,ys:s,c1s:o,c2s:n,c3s:r}=this;let a=i.length-1;if(t===i[a])return s[a];let l=0,c=r.length-1,d;for(;l<=c;){d=Math.floor(.5*(l+c));const p=i[d];if(p<t)l=d+1;else if(p>t)c=d-1;else return s[d]}a=Math.max(0,c);const u=t-i[a],h=u*u;return s[a]+o[a]*u+n[a]*h+r[a]*u*h}constructor(t,i){const{length:s}=t,o=[];for(let p=0;p<s;p++)o.push(p);o.sort((p,m)=>t[p]<t[m]?-1:1);const n=[],r=[];let a,l;for(let p=0;p<s-1;p++)a=t[p+1]-t[p],l=i[p+1]-i[p],n.push(a),r.push(l/a);const c=[r[0]];for(let p=0;p<n.length-1;p++){const m=r[p],v=r[p+1];if(m*v<=0)c.push(0);else{a=n[p];const C=n[p+1],w=a+C;c.push(3*w/((w+C)/m+(w+a)/v))}}c.push(r[r.length-1]);const d=[],u=[];let h;for(let p=0;p<c.length-1;p++){h=r[p];const m=c[p],v=1/n[p],C=m+c[p+1]-h-h;d.push((h-m-C)*v),u.push(C*v*v)}this.xs=t,this.ys=i,this.c1s=c,this.c2s=d,this.c3s=u}}const vN=1;function eb(e){const t=e.nodeType===vN?e:e.parentElement;if(!t)return null;const{top:i,left:s}=t.getBoundingClientRect();return{x:s,y:i}}function $a(e){return{x:e.clientX,y:e.clientY}}function CN(e){var t;return e.nodeName==="IMG"&&(mN()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function wN(e,t,i,s){let o=e?t.width:i,n=e?t.height:s;return J1()&&e&&(n/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:n}}function bN(e,t,i,s,o){const n=CN(t),a=eb(n?e:t),l={x:i.x-a.x,y:i.y-a.y},{offsetWidth:c,offsetHeight:d}=e,{anchorX:u,anchorY:h}=s,{dragPreviewWidth:p,dragPreviewHeight:m}=wN(n,t,c,d),v=()=>{let E=new mm([0,.5,1],[l.y,l.y/d*m,l.y+m-d]).interpolate(h);return J1()&&n&&(E+=(window.devicePixelRatio-1)*m),E},C=()=>new mm([0,.5,1],[l.x,l.x/c*p,l.x+p-c]).interpolate(u),{offsetX:w,offsetY:b}=o,x=w===0||w,y=b===0||b;return{x:x?w:C(),y:y?b:v()}}class xN{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,i){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=i}}function yN(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function vm(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{},s=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(s=s.concat(Object.getOwnPropertySymbols(i).filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable}))),s.forEach(function(o){yN(e,o,i[o])})}return e}class SN{profile(){var t,i;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((i=this.dragOverTargetIds)===null||i===void 0?void 0:i.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var i;(i=this.window)===null||i===void 0||i.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,i,s){return this.sourcePreviewNodeOptions.set(t,s),this.sourcePreviewNodes.set(t,i),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,i,s){this.sourceNodes.set(t,i),this.sourceNodeOptions.set(t,s);const o=r=>this.handleDragStart(r,t),n=r=>this.handleSelectStart(r);return i.setAttribute("draggable","true"),i.addEventListener("dragstart",o),i.addEventListener("selectstart",n),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),i.removeEventListener("dragstart",o),i.removeEventListener("selectstart",n),i.setAttribute("draggable","false")}}connectDropTarget(t,i){const s=r=>this.handleDragEnter(r,t),o=r=>this.handleDragOver(r,t),n=r=>this.handleDrop(r,t);return i.addEventListener("dragenter",s),i.addEventListener("dragover",o),i.addEventListener("drop",n),()=>{i.removeEventListener("dragenter",s),i.removeEventListener("dragover",o),i.removeEventListener("drop",n)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),i=this.sourceNodeOptions.get(t);return vm({dropEffect:this.altKeyPressed?"copy":"move"},i||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),i=this.sourcePreviewNodeOptions.get(t);return vm({anchorX:.5,anchorY:.5,captureDraggingState:!1},i||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(fm).some(i=>fm[i]===t)}beginDragNativeItem(t,i){this.clearCurrentDragSourceNode(),this.currentNativeSource=fN(t,i),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const i=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var s;return(s=this.rootElement)===null||s===void 0?void 0:s.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},i)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,i){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(i))}handleDragEnter(t,i){this.dragEnterTargetIds.unshift(i)}handleDragOver(t,i){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(i)}handleDrop(t,i){this.dropTargetIds.unshift(i)}constructor(t,i,s){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=o=>{const n=this.sourceNodes.get(o);return n&&eb(n)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=o=>!!(o&&this.document&&this.document.body&&this.document.body.contains(o)),this.endDragIfSourceWasRemovedFromDOM=()=>{const o=this.currentDragSourceNode;o==null||this.isNodeInDocument(o)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=o=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(o||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=o=>{if(o.defaultPrevented)return;const{dragStartSourceIds:n}=this;this.dragStartSourceIds=null;const r=$a(o);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(n||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});const{dataTransfer:a}=o,l=Zd(a);if(this.monitor.isDragging()){if(a&&typeof a.setDragImage=="function"){const d=this.monitor.getSourceId(),u=this.sourceNodes.get(d),h=this.sourcePreviewNodes.get(d)||u;if(h){const{anchorX:p,anchorY:m,offsetX:v,offsetY:C}=this.getCurrentSourcePreviewNodeOptions(),x=bN(u,h,r,{anchorX:p,anchorY:m},{offsetX:v,offsetY:C});a.setDragImage(h,x.x,x.y)}}try{a?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(o.target);const{captureDraggingState:c}=this.getCurrentSourcePreviewNodeOptions();c?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(a&&!a.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=o=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var n;(n=this.currentNativeSource)===null||n===void 0||n.loadDataTransfer(o.dataTransfer)}if(!this.enterLeaveCounter.enter(o.target)||this.monitor.isDragging())return;const{dataTransfer:a}=o,l=Zd(a);l&&this.beginDragNativeItem(l,a)},this.handleTopDragEnter=o=>{const{dragEnterTargetIds:n}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=o.altKey,n.length>0&&this.actions.hover(n,{clientOffset:$a(o)}),n.some(a=>this.monitor.canDropOnTarget(a))&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=o=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var n;(n=this.currentNativeSource)===null||n===void 0||n.loadDataTransfer(o.dataTransfer)}},this.handleTopDragOver=o=>{const{dragOverTargetIds:n}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}this.altKeyPressed=o.altKey,this.lastClientOffset=$a(o),this.scheduleHover(n),(n||[]).some(a=>this.monitor.canDropOnTarget(a))?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=o=>{this.isDraggingNativeItem()&&o.preventDefault(),this.enterLeaveCounter.leave(o.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=o=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var n;o.preventDefault(),(n=this.currentNativeSource)===null||n===void 0||n.loadDataTransfer(o.dataTransfer)}else Zd(o.dataTransfer)&&o.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=o=>{const{dropTargetIds:n}=this;this.dropTargetIds=[],this.actions.hover(n,{clientOffset:$a(o)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=o=>{const n=o.target;typeof n.dragDrop=="function"&&(n.tagName==="INPUT"||n.tagName==="SELECT"||n.tagName==="TEXTAREA"||n.isContentEditable||(o.preventDefault(),n.dragDrop()))},this.options=new xN(i,s),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new pN(this.isNodeInDocument)}}const RN=function(t,i,s){return new SN(t,i,s)},FN=({onChange:e,emptyTextFirstLine:t,emptyTextSecondLine:i,emptyButtonLabel:s,acceptTypes:o,maxFilesCount:n,multiple:r,fileFormatError:a,fileCountError:l,fileSizeError:c,getIsFileFormatError:d,getIsFileSizeError:u})=>{const h=g.useRef(null),p=g.useRef(null),[m,v]=g.useState([]),[C,w]=g.useState(!1),[b,x]=g.useState(!1),y=g.useCallback(N=>{const H=N.target.files;if(H&&H.length>0){const z=Array.from(H),se=d?.(z),M=u?.(z);se?w(!0):M?x(!0):e(z)}},[d,u,e]),S=g.useCallback(N=>n&&N?.length>n,[n]),E=g.useMemo(()=>C||b||S(m),[C,b,S,m]),R=()=>{v([]),w(!1),x(!1)},F=g.useMemo(()=>C?f.jsx(bi,{text:a}):b?f.jsx(bi,{text:c}):S(m)?f.jsx(bi,{text:l}):null,[l,a,c,m,S,C,b]);g.useEffect(()=>{R()},[o]);const[{isOver:D,canDrop:T},P]=rv(()=>({accept:[Ip],drop(N){const H=N.files;!d?.(H)&&!u?.(H)&&!S(H)&&e(H),R()},collect:N=>({isOver:N.isOver(),canDrop:N.canDrop()})}),[y]),k=N=>{(N.key==="Enter"||N.key==="Space")&&(N.preventDefault(),p.current?.click())},O=N=>{N?.preventDefault();const H=Array.from(N.dataTransfer?.items??[]);w(!!d?.(H)),x(!!u?.(H)),v(H)},_=N=>{N.target===N.currentTarget&&R()},L=ge("border border-dashed rounded w-full cursor-pointer relative h-full hover:border-hover",!T&&!E&&"border-primary",T&&(D?"border-accent-primary":"border-hover"),E&&"border-error");return P(h),f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:L,ref:h,onDragOver:O,onDragLeave:_,children:[f.jsxs("label",{htmlFor:"file",tabIndex:0,onKeyDown:k,className:"flex flex-col items-center cursor-pointer size-full text-secondary dial-tiny-text justify-center",children:[t&&f.jsx("p",{className:"mb-1",children:t}),i&&f.jsx("p",{className:"mb-0.5",children:i}),s&&f.jsx(Ni,{appearance:Ae.Ghost,label:s,onClick:()=>p.current?.click()})]}),f.jsx("input",{multiple:r,id:"file",type:"file",ref:p,hidden:!0,accept:o,onChange:y})]}),f.jsx(f.Fragment,{children:F})]})},EN=({iconBefore:e,className:t,...i})=>{const s=i.invalid,o=()=>f.jsx("div",{className:"mr-2",children:s?f.jsx(W.IconExclamationCircle,{...ee,className:"text-error"}):e});return f.jsx(is,{...i,iconBefore:o(),containerClassName:"h-[40px] p-0",className:ge("rounded-r-none border-r-0",s&&"text-error",t)})},tb=e=>{const{files:t,iconBeforeInput:i,dynamicIcon:s,onChange:o,isInvalid:n,errorText:r,removeButtonAriaLabel:a,getIsMultiFilesSizeError:l,multiFilesSizeError:c}=e,d=(p,m)=>{p.stopPropagation(),o(t?.filter(v=>v.name!==m)||[])},u=p=>f.jsx(bc,{"aria-label":a,onClick:m=>d(m,p)}),h=p=>{o(p)};return!t||t.length===0?f.jsx(Py,{backend:RN,children:f.jsx(FN,{...e,onChange:h})}):f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"flex-1 min-h-0 border border-solid border-primary rounded p-2 overflow-y-auto",children:t&&t.length>0&&f.jsx("div",{className:"flex flex-col gap-y-1",children:t.map((p,m)=>f.jsx(EN,{id:p.name,value:p.name,iconAfter:u(p.name),iconBefore:i||s?.(p.name),invalid:n?.(p),error:r},p.name+m))})}),l?.(t)&&f.jsx(bi,{text:c})]})},DN=({onChange:e,fieldTitle:t,elementId:i,files:s,maxFilesCount:o,maxFileSize:n,maxMultiFilesSize:r,fileFormatError:a,fileCountError:l,fileSizeError:c,multiFilesSizeError:d,multiple:u=!0,acceptTypes:h,deleteAllButtonLabel:p,addButtonLabel:m,additionalActionButtons:v,...C})=>{const w=g.useRef(null),b=()=>w.current?.click(),x=()=>{e([])},y=g.useCallback(F=>F?.some(D=>!(h==="/"||h?.toLowerCase()?.includes(D?.type?.toLowerCase()))),[h]),S=g.useCallback(F=>{if(!n)return!1;const D=n*(1024*1024);return F?.some(T=>{const P=T.size;return!!P&&P>D})},[n]),E=g.useCallback(F=>{if(!r||!u)return!1;const D=r*1024*1024;return F.reduce((P,k)=>P+k.size,0)>D},[r,u]),R=g.useCallback(F=>{const D=F.target.files;if(D&&D.length>0){const T=Array.from(D),P=y(T),k=S(T);!P&&!k&&e([...s||[],...T])}},[y,S,e,s]);return f.jsxs("div",{className:"h-full flex flex-col",children:[f.jsxs("div",{className:"flex justify-between items-center pb-1 min-h-[42px]",children:[f.jsx(So,{label:`${t}: ${u?s?.length||0:""}`,htmlFor:i}),u&&!!s?.length&&f.jsxs("div",{className:"flex flex-row items-center gap-x-2",children:[f.jsx(Vi,{label:p,iconBefore:f.jsx(W.IconTrashX,{...ee}),onClick:x}),(o?o>s?.length:!0)&&f.jsx(Ni,{appearance:Ae.Ghost,iconBefore:f.jsx(W.IconPlus,{...ee}),label:m,onClick:b}),v]})]}),s&&s.length>0&&f.jsx("input",{id:"file",type:"file",multiple:u,ref:w,hidden:!0,accept:h,onChange:R}),f.jsx(tb,{files:s,onChange:e,acceptTypes:h,maxFilesCount:o,multiple:u,fileFormatError:a,fileCountError:l,fileSizeError:c,multiFilesSizeError:d,getIsFileFormatError:y,getIsFileSizeError:S,getIsMultiFilesSizeError:E,...C})]})},PN=f.jsx(W.IconChevronDown,{size:St.SM}),TN=f.jsx(W.IconChevronUp,{size:St.SM}),eh=({variant:e,appearance:t,items:i,...s})=>{const[o,n]=g.useState(!1),r=g.useMemo(()=>o?TN:PN,[o]);return f.jsx("div",{children:f.jsx(Nt,{menu:{items:i},onOpenChange:a=>n(a),children:f.jsx(di,{...s,iconAfter:r,variant:e||Ye.Primary,appearance:t||Ae.Solid})})})},ib=e=>ye.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.1812 1.2002H2.80615C2.43319 1.2002 2.07551 1.34835 1.81178 1.61208C1.54806 1.8758 1.3999 2.23348 1.3999 2.60645V5.48145C1.3999 5.85441 1.54806 6.21209 1.81178 6.47581C2.07551 6.73954 2.43319 6.8877 2.80615 6.8877H15.1812C15.5541 6.8877 15.9118 6.73954 16.1755 6.47581C16.4392 6.21209 16.5874 5.85441 16.5874 5.48145V2.60645C16.5874 2.23348 16.4392 1.8758 16.1755 1.61208C15.9118 1.34835 15.5541 1.2002 15.1812 1.2002ZM14.8999 5.2002H3.0874V2.8877H14.8999V5.2002ZM12 7.80017C12.3107 7.80017 12.5625 8.05201 12.5625 8.36267V11.7377H15.9375C16.2482 11.7377 16.5 11.9895 16.5 12.3002C16.5 12.6108 16.2482 12.8627 15.9375 12.8627H12.5625V16.2377C12.5625 16.5483 12.3107 16.8002 12 16.8002C11.6893 16.8002 11.4375 16.5483 11.4375 16.2377V12.8627H8.0625C7.75184 12.8627 7.5 12.6108 7.5 12.3002C7.5 11.9895 7.75184 11.7377 8.0625 11.7377H11.4375V8.36267C11.4375 8.05201 11.6893 7.80017 12 7.80017ZM2.41188 12.5883C2.14816 12.3246 2 11.9669 2 11.5939V9.00018H3.6875V11.3127H6.1001V13.0002H3.40625C3.03329 13.0002 2.6756 12.852 2.41188 12.5883Z",fill:"currentColor"})),sb=e=>ye.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M9.00049 7.7998C9.3108 7.80007 9.56279 8.05198 9.56299 8.3623V11.7373H12.938C13.2483 11.7376 13.5003 11.9895 13.5005 12.2998C13.5005 12.6103 13.2484 12.862 12.938 12.8623H9.56299V16.2373C9.56299 16.5478 9.31092 16.7995 9.00049 16.7998C8.68983 16.7998 8.43799 16.548 8.43799 16.2373V12.8623H5.06299C4.75233 12.8623 4.50049 12.6105 4.50049 12.2998C4.50069 11.9893 4.75245 11.7373 5.06299 11.7373H8.43799V8.3623C8.43819 8.05181 8.68995 7.7998 9.00049 7.7998ZM15.1812 1.2002C15.5541 1.2002 15.9116 1.34858 16.1753 1.6123C16.439 1.87603 16.5874 2.23348 16.5874 2.60645V5.48145C16.5874 5.85441 16.439 6.21186 16.1753 6.47559C15.9116 6.73931 15.5541 6.8877 15.1812 6.8877H2.80615C2.43319 6.8877 2.07573 6.73931 1.81201 6.47559C1.54829 6.21186 1.3999 5.85441 1.3999 5.48145V2.60645C1.3999 2.23348 1.54829 1.87603 1.81201 1.6123C2.07573 1.34858 2.43319 1.2002 2.80615 1.2002H15.1812ZM3.0874 2.8877V5.2002H14.8999V2.8877H3.0874Z",fill:"currentColor"})),Mp=e=>ye.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M3.009 12.5527C2.77901 12.4216 2.5877 12.2321 2.45443 12.0034C2.32116 11.7746 2.25064 11.5147 2.25 11.25V3.75C2.25 2.925 2.925 2.25 3.75 2.25H11.25C11.8125 2.25 12.1185 2.53875 12.375 3M10.5 15.75H7.25025C6.98757 15.75 6.72747 15.6983 6.48479 15.5977C6.24211 15.4972 6.0216 15.3499 5.83586 15.1641C5.65012 14.9784 5.50278 14.7579 5.40226 14.5152C5.30174 14.2725 5.25 14.0124 5.25 13.7498V7.25025C5.25 6.71975 5.46074 6.21098 5.83586 5.83586C6.21098 5.46074 6.71975 5.25 7.25025 5.25H13.7498C14.0124 5.25 14.2725 5.30174 14.5152 5.40226C14.7579 5.50278 14.9784 5.65012 15.1641 5.83586C15.3499 6.0216 15.4972 6.24211 15.5977 6.48479C15.6983 6.72747 15.75 6.98757 15.75 7.25025V10.5M12.75 16.5L16.5 12.75M16.5 12.75V16.125M16.5 12.75H13.125",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ap=e=>ye.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M9.75 14.25H3.75C3.35218 14.25 2.97064 14.092 2.68934 13.8107C2.40804 13.5294 2.25 13.1478 2.25 12.75V4.5C2.25 4.10218 2.40804 3.72064 2.68934 3.43934C2.97064 3.15804 3.35218 3 3.75 3H6.75L9 5.25H14.25C14.6478 5.25 15.0294 5.40804 15.3107 5.68934C15.592 5.97064 15.75 6.35218 15.75 6.75V9.75M12 16.5L15.75 12.75M15.75 12.75V16.125M15.75 12.75H12.375",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Lp=e=>ye.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M4.5 15.75V14.25C4.5 13.4544 4.81607 12.6913 5.37868 12.1287C5.94129 11.5661 6.70435 11.25 7.5 11.25H9.75M15.75 12.75L12 16.5M12 16.5V13.125M12 16.5H15.375M6 5.25C6 6.04565 6.31607 6.80871 6.87868 7.37132C7.44129 7.93393 8.20435 8.25 9 8.25C9.79565 8.25 10.5587 7.93393 11.1213 7.37132C11.6839 6.80871 12 6.04565 12 5.25C12 4.45435 11.6839 3.69129 11.1213 3.12868C10.5587 2.56607 9.79565 2.25 9 2.25C8.20435 2.25 7.44129 2.56607 6.87868 3.12868C6.31607 3.69129 6 4.45435 6 5.25Z",stroke:"#7F8792",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));var on=(e=>(e.MyFiles="my_files",e.Shared="shared",e.Organization="organization",e.Review="review",e))(on||{}),Z=(e=>(e.AddSibling="addSibling",e.AddChild="addChild",e.Duplicate="duplicate",e.Copy="copy",e.Move="move",e.Download="download",e.Delete="delete",e.Rename="rename",e.Info="info",e.Unshare="unshare",e.RemoveAccess="removeAccess",e.ManagePermissions="managePermissions",e.Preview="preview",e.OpenInNewTab="openInNewTab",e))(Z||{}),ht=(e=>(e.Replace="replace",e.Duplicate="duplicate",e.Cancel="cancel",e))(ht||{}),$t=(e=>(e.ReplaceAll="replaceAll",e.DuplicateAll="duplicateAll",e.DecideForEach="decideForEach",e))($t||{}),pt=(e=>(e.Copy="copy",e.Move="move",e))(pt||{}),mn=(e=>(e.Tree="tree",e.Grid="grid",e))(mn||{}),gt=(e=>(e.Name="name",e.UpdatedAt="updatedAt",e.Size="size",e.Author="author",e.Owner="owner",e.Path="path",e.Actions="__actions",e.Version="version",e))(gt||{});const kN="w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-1",Cm="w-full text-secondary flex items-center gap-2",IN="flex min-h-0 min-w-0 h-full gap-4 overflow-hidden",MN="flex flex-col flex-1 min-h-0 min-w-0 h-full gap-4",AN="h-full rounded bg-layer-3 text-secondary min-w-0",LN="flex-1 w-full rounded text-secondary overflow-auto min-h-0 min-w-0",ON="opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto",NN=280,HN="Files",xs=20,BN="Files",Xd=".dial_folder",GN=280,VN=460,Qd=44,zN=56,WN=800,jN=[gt.Name,gt.UpdatedAt,gt.Size,gt.Author,gt.Actions];var we=(e=>(e.ITEM="item",e.FOLDER="folder",e))(we||{}),Op=(e=>(e.FILE="FILE",e.PROMPT="PROMPT",e.CONVERSATION="CONVERSATION",e.APPLICATION="APPLICATION",e.TOOLSET="TOOL_SET",e))(Op||{}),Po=(e=>(e.READ="READ",e.WRITE="WRITE",e.SHARE="SHARE",e))(Po||{});const wm=({open:e,onClose:t,onReplace:i,onDuplicate:s,onDecideForEach:o,conflictingFiles:n,singleFileTitle:r="Replace Or Duplicate Item",multipleFilesTitle:a="Replace Or Duplicate Items",message:l,actionLabels:c,strategyLabels:d,confirmLabel:u="Confirm",cancelLabel:h="Cancel",nameColumnLabel:p="Name",actionColumnLabel:m="Action"})=>{const v=n.length===1,C=v?n[0]?.name:"",w=c?.[ht.Replace]??"Replace",b=c?.[ht.Duplicate]??"Duplicate",x=c?.[ht.Cancel]??"Cancel",y=d?.[$t.ReplaceAll]??"Replace all",S=d?.[$t.DuplicateAll]??"Duplicate all",E=d?.[$t.DecideForEach]??"Decide for each",[R,F]=g.useState(ht.Replace),[D,T]=g.useState($t.ReplaceAll),[P,k]=g.useState(new Map(n.map(Y=>[Y.path,ht.Replace]))),[O,_]=g.useState(void 0),L=v?r:a,N=f.jsxs(f.Fragment,{children:["Item with the name ",f.jsxs("span",{className:"text-primary",children:['"',C,'"']})," ","already exists in this destination."]}),H=`${n.length} items with the same names already exist in this destination.`,z=l??(v?N:H),se=g.useMemo(()=>[{id:ht.Replace,name:w},{id:ht.Duplicate,name:b}],[w,b]),M=g.useMemo(()=>n.map(Y=>({id:Y.path,name:Y.name,path:Y.path,nodeType:Y.nodeType??we.ITEM,action:P.get(Y.path)||ht.Replace})),[n,P]),I=g.useMemo(()=>[{field:"name",headerName:p,flex:1,minWidth:200,floatingFilter:!1,filter:!1,resizable:!1,cellRenderer:Y=>Y.data?.nodeType===we.FOLDER?f.jsx(tc,{name:Y.data.name,iconSize:xs}):f.jsx(ec,{name:Y.data.name,iconSize:xs})},{field:"action",headerName:m,width:140,suppressSizeToFit:!0,sortable:!1,filter:!1,floatingFilter:!1,resizable:!1,cellRenderer:Y=>{if(!Y.data)return null;const j=[{key:ht.Replace,label:w,icon:f.jsx(W.IconCircleFilled,{size:10,className:"text-accent-tertiary"})},{key:ht.Duplicate,label:b,icon:f.jsx(W.IconCircleFilled,{size:10,className:"text-accent-secondary"})},{key:ht.Cancel,label:x,icon:f.jsx(W.IconCircleFilled,{size:10,className:"text-error"})}],be=j.find(ie=>ie.key===Y.data.action),J=O===Y.data.path;return f.jsx("div",{className:"flex items-center h-full",children:f.jsx(Nt,{trigger:[Yt.Click],open:J,menu:{items:j,onClick:({key:ie})=>{k(U=>{const ae=new Map(U);return ae.set(Y.data.path,ie),ae}),_(void 0)}},placement:"bottom-start",matchReferenceWidth:!1,allowedPlacements:["bottom-start","top-start"],onOpenChange:ie=>{_(ie?Y.data.path:void 0)},children:f.jsxs("button",{type:"button",className:"flex items-center gap-2",children:[f.jsxs("span",{className:"flex items-center gap-2",children:[be?.icon,be?.label??w]}),f.jsx(W.IconChevronDown,{size:St.SM,className:ge("text-secondary transition-transform",J&&"rotate-180")})]})})})}}],[p,m,w,b,x,O]),G=g.useMemo(()=>[{id:$t.ReplaceAll,name:y},{id:$t.DuplicateAll,name:S},{id:$t.DecideForEach,name:E,content:D===$t.DecideForEach?f.jsx("div",{className:"mt-4",children:f.jsx(Dp,{columnDefs:I,rowData:M,getRowId:Y=>Y.id,wrapCustomCellRenderers:!1,alternateOddRowColors:!1,additionalGridOptions:{domLayout:"autoHeight"}})}):void 0}],[y,S,E,D,I,M]),K=g.useCallback(()=>{F(ht.Replace),T($t.ReplaceAll),k(new Map(n.map(Y=>[Y.path,ht.Replace])))},[n]),oe=g.useCallback(()=>{K(),t()},[K,t]),ve=g.useCallback(()=>{if(K(),v)R===ht.Replace?i():s();else if(D===$t.ReplaceAll)i();else if(D===$t.DuplicateAll)s();else if(D===$t.DecideForEach&&o){const Y=n.map(j=>({file:j,action:P.get(j.path)||ht.Replace}));o(Y)}},[K,v,R,i,s,D,o,n,P]);return f.jsx(Do,{open:e,onClose:oe,size:v?Xt.Sm:Xt.Md,className:ge([!v&&"w-[600px]"]),header:L,dividers:!1,preventKeyboardOnOpen:!0,footer:f.jsxs("div",{className:"flex justify-end gap-3 py-4 px-6 border-t border-tertiary",children:[f.jsx(Vi,{onClick:oe,label:h}),f.jsx(Ni,{onClick:ve,label:u})]}),children:f.jsxs("div",{className:"px-6 py-4",children:[f.jsx("p",{className:"text-secondary mb-4 break-words",children:z}),v?f.jsx(hl,{elementId:"single-file-conflict",radioButtons:se,activeRadioButton:R,orientation:ro.Column,onChange:Y=>F(Y)}):f.jsx(hl,{elementId:"multiple-files-conflict",radioButtons:G,activeRadioButton:D,orientation:ro.Column,onChange:Y=>T(Y),formItemChildrenClassName:"gap-3"})]})})},_N=({getContextMenuItems:e,isRowDisabled:t,allowedFileTypes:i,maxSelectableFileSize:s,buttonClassName:o})=>{const n=g.useRef(e);g.useEffect(()=>{n.current=e},[e]);const r=g.useCallback(l=>{if(!l.data||t(l.data,i,s))return null;const d=l.data?n.current?.(l.data)??[]:[];return d.length?f.jsx(Nt,{placement:"bottom-start",allowedPlacements:["top-start","top-end","bottom-start"],menu:{items:d},className:ne("sticky right-0",o),children:f.jsx(Ue,{className:"text-secondary mx-2 flex flex-row gap-2 hover:text-accent-primary cursor-default",icon:f.jsx(W.IconDotsVertical,{...ee})})}):null},[i,s,o,t]);return{actionsColumnDef:g.useMemo(()=>({colId:"__actions",headerName:"",width:44,minWidth:44,maxWidth:44,suppressSizeToFit:!0,sortable:!1,resizable:!1,filter:!1,floatingFilter:!1,cellRenderer:r}),[r])}},UN=({onRename:e})=>{const[t,i]=g.useState(mn.Grid),s=g.useCallback(n=>{e(n),i(mn.Grid)},[e]),o=g.useCallback(n=>{e(n),i(mn.Tree)},[e]);return{renameTriggerView:t,onGridRename:s,onTreeRename:o}};function $N(e,t){const i=g.useRef(null),[s,o]=g.useState(!1);return g.useEffect(()=>{if(!i.current)return;const n=new ResizeObserver(([r])=>{const a=r.contentRect.width;o(a<e)});return n.observe(t?.current||i?.current),()=>n.disconnect()},[e,t]),{containerRef:i,isBelowBreakpoint:s}}var Jd={};const qN={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/ace+json":{source:"iana",compressible:!0},"application/ace-groupcomm+cbor":{source:"iana"},"application/ace-trl+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/aif+cbor":{source:"iana"},"application/aif+json":{source:"iana",compressible:!0},"application/alto-cdni+json":{source:"iana",compressible:!0},"application/alto-cdnifilter+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-propmap+json":{source:"iana",compressible:!0},"application/alto-propmapparams+json":{source:"iana",compressible:!0},"application/alto-tips+json":{source:"iana",compressible:!0},"application/alto-tipsparams+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/appinstaller":{compressible:!1,extensions:["appinstaller"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/appx":{compressible:!1,extensions:["appx"]},"application/appxbundle":{compressible:!1,extensions:["appxbundle"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/automationml-aml+xml":{source:"iana",compressible:!0,extensions:["aml"]},"application/automationml-amlx+zip":{source:"iana",compressible:!1,extensions:["amlx"]},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/bufr":{source:"iana"},"application/c2pa":{source:"iana"},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/ce+cbor":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/cid-edhoc+cbor-seq":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/city+json-seq":{source:"iana"},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-eap":{source:"iana"},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/concise-problem-details+cbor":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cose-x509":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwl":{source:"iana",extensions:["cwl"]},"application/cwl+json":{source:"iana",compressible:!0},"application/cwl+yaml":{source:"iana"},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana",extensions:["dcm"]},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dpop+jwt":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/eat+cwt":{source:"iana"},"application/eat+jwt":{source:"iana"},"application/eat-bun+cbor":{source:"iana"},"application/eat-bun+json":{source:"iana",compressible:!0},"application/eat-ucs+cbor":{source:"iana"},"application/eat-ucs+json":{source:"iana",compressible:!0},"application/ecmascript":{source:"apache",compressible:!0,extensions:["ecma"]},"application/edhoc+cbor-seq":{source:"iana"},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.legacyesn+json":{source:"iana",compressible:!0},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/entity-statement+jwt":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdf":{source:"iana",extensions:["fdf"]},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geopose+json":{source:"iana",compressible:!0},"application/geoxacml+json":{source:"iana",compressible:!0},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gnap-binding-jws":{source:"iana"},"application/gnap-binding-jwsd":{source:"iana"},"application/gnap-binding-rotation-jws":{source:"iana"},"application/gnap-binding-rotation-jwsd":{source:"iana"},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/grib":{source:"iana"},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"iana",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"apache",charset:"UTF-8",compressible:!0,extensions:["js"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/jscontact+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jsonpath":{source:"iana"},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwk-set+jwt":{source:"iana"},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/linkset":{source:"iana"},"application/linkset+json":{source:"iana",compressible:!0},"application/load-control+xml":{source:"iana",compressible:!0},"application/logout+jwt":{source:"iana"},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4","mpg4","mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msix":{compressible:!1,extensions:["msix"]},"application/msixbundle":{compressible:!1,extensions:["msixbundle"]},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!0,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/ohttp-keys":{source:"iana"},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg","one","onea"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["sig","asc"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/private-token-issuer-directory":{source:"iana"},"application/private-token-request":{source:"iana"},"application/private-token-response":{source:"iana"},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/provided-claims+jwt":{source:"iana"},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.implied-document+xml":{source:"iana",compressible:!0},"application/prs.implied-executable":{source:"iana"},"application/prs.implied-object+json":{source:"iana",compressible:!0},"application/prs.implied-object+json-seq":{source:"iana"},"application/prs.implied-object+yaml":{source:"iana"},"application/prs.implied-structure":{source:"iana"},"application/prs.mayfile":{source:"iana"},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.vcfbzip2":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0,extensions:["xsf"]},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"apache"},"application/reputon+json":{source:"iana",compressible:!0},"application/resolve-response+jwt":{source:"iana"},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-checklist":{source:"iana"},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-signed-tal":{source:"iana"},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"apache"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana",extensions:["sql"]},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/sslkeylogfile":{source:"iana"},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/st2110-41":{source:"iana"},"application/stix+json":{source:"iana",compressible:!0},"application/stratum":{source:"iana"},"application/swid+cbor":{source:"iana"},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tm+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/toc+cbor":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{source:"iana",compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/trust-chain+json":{source:"iana",compressible:!0},"application/trust-mark+jwt":{source:"iana"},"application/trust-mark-delegation+jwt":{source:"iana"},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/uccs+cbor":{source:"iana"},"application/ujcs+json":{source:"iana",compressible:!0},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vc":{source:"iana"},"application/vc+cose":{source:"iana"},"application/vc+jwt":{source:"iana"},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.1ob":{source:"iana"},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3a+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ach+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc8+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.5gsa2x":{source:"iana"},"application/vnd.3gpp.5gsa2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gsv2x":{source:"iana"},"application/vnd.3gpp.5gsv2x-local-service-information":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.crs+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.current-location-discovery+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-msgstore-ctrl-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-regroup+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-regroup+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-regroup+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.pinapp-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.seal-group-doc+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-network-qos-management-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-ue-config-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-unicast-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-user-profile-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.v2x":{source:"iana"},"application/vnd.3gpp.vae-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acm.addressxfer+json":{source:"iana",compressible:!0},"application/vnd.acm.chatbot+json":{source:"iana",compressible:!0},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"apache",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"apache"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.parquet":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.apexlang":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"apache"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autodesk.fbx":{extensions:["fbx"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.belightsoft.lhzd+zip":{source:"iana",compressible:!1},"application/vnd.belightsoft.lhzl+zip":{source:"iana",compressible:!1},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.bzip3":{source:"iana"},"application/vnd.c3voc.schedule+xml":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.cncf.helm.chart.content.v1.tar+gzip":{source:"iana"},"application/vnd.cncf.helm.chart.provenance.v1.prov":{source:"iana"},"application/vnd.cncf.helm.config.v1+json":{source:"iana",compressible:!0},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datalog":{source:"iana"},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.dcmp+xml":{source:"iana",compressible:!0,extensions:["dcmp"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.eln+zip":{source:"iana",compressible:!1},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.erofs":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"apache",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.fdsn.stationxml+xml":{source:"iana",charset:"XML-BASED",compressible:!0},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.freelog.comic":{source:"iana"},"application/vnd.frogans.fnc":{source:"apache",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"apache",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.ga4gh.passport+jwt":{source:"iana"},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.genozip":{source:"iana"},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.gentoo.catmetadata+xml":{source:"iana",compressible:!0},"application/vnd.gentoo.ebuild":{source:"iana"},"application/vnd.gentoo.eclass":{source:"iana"},"application/vnd.gentoo.gpkg":{source:"iana"},"application/vnd.gentoo.manifest":{source:"iana"},"application/vnd.gentoo.pkgmetadata+xml":{source:"iana",compressible:!0},"application/vnd.gentoo.xpak":{source:"iana"},"application/vnd.geo+json":{source:"apache",compressible:!0},"application/vnd.geocube+xml":{source:"apache",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.pinboard":{source:"iana"},"application/vnd.geogebra.slides":{source:"iana",extensions:["ggs"]},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.gnu.taler.exchange+json":{source:"iana",compressible:!0},"application/vnd.gnu.taler.merchant+json":{source:"iana",compressible:!0},"application/vnd.google-apps.audio":{},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.drawing":{compressible:!1,extensions:["gdraw"]},"application/vnd.google-apps.drive-sdk":{compressible:!1},"application/vnd.google-apps.file":{},"application/vnd.google-apps.folder":{compressible:!1},"application/vnd.google-apps.form":{compressible:!1,extensions:["gform"]},"application/vnd.google-apps.fusiontable":{},"application/vnd.google-apps.jam":{compressible:!1,extensions:["gjam"]},"application/vnd.google-apps.mail-layout":{},"application/vnd.google-apps.map":{compressible:!1,extensions:["gmap"]},"application/vnd.google-apps.photo":{},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.script":{compressible:!1,extensions:["gscript"]},"application/vnd.google-apps.shortcut":{},"application/vnd.google-apps.site":{compressible:!1,extensions:["gsite"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-apps.unknown":{},"application/vnd.google-apps.video":{},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"apache",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0,extensions:["xdcf"]},"application/vnd.gpxsee.map+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.hsl":{source:"iana"},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"apache"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"apache",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"apache"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.ipfs.ipns-record":{source:"iana"},"application/vnd.ipld.car":{source:"iana"},"application/vnd.ipld.dag-cbor":{source:"iana"},"application/vnd.ipld.dag-json":{source:"iana"},"application/vnd.ipld.raw":{source:"iana"},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kdl":{source:"iana"},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.keyman.kmp+zip":{source:"iana",compressible:!1},"application/vnd.keyman.kmx":{source:"iana"},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.ldev.productlicensing":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.mdl":{source:"iana"},"application/vnd.mdl-mbsdf":{source:"iana"},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.medicalholodeck.recordxr":{source:"iana"},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mermaid":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.modl":{source:"iana"},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-visio.viewer":{extensions:["vdx"]},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msgpack":{source:"iana"},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.nato.bindingdataobject+cbor":{source:"iana"},"application/vnd.nato.bindingdataobject+json":{source:"iana",compressible:!0},"application/vnd.nato.bindingdataobject+xml":{source:"iana",compressible:!0,extensions:["bdo"]},"application/vnd.nato.openxmlformats-package.iepd+zip":{source:"iana",compressible:!1},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"apache",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oai.workflows":{source:"iana"},"application/vnd.oai.workflows+json":{source:"iana",compressible:!0},"application/vnd.oai.workflows+yaml":{source:"iana"},"application/vnd.oasis.opendocument.base":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"apache",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-master-template":{source:"iana"},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"apache",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"apache",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.onvif.metadata":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openvpi.dspx+json":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.procrate.brushset":{extensions:["brushset"]},"application/vnd.procreate.brush":{extensions:["brush"]},"application/vnd.procreate.dream":{extensions:["drm"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.pt.mundusmundi":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0,extensions:["xhtm"]},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.relpipe":{source:"iana"},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.sketchometry":{source:"iana"},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.smintio.portals.archive":{source:"iana"},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sybyl.mol2":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uic.osdm+json":{source:"iana",compressible:!0},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml","uo"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.veraison.tsm-report+cbor":{source:"iana"},"application/vnd.veraison.tsm-report+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw","vsdx","vtx"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vocalshaper.vsp4":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.wasmflow.wafl":{source:"iana"},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordlift":{source:"iana"},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xarin.cpj":{source:"iana"},"application/vnd.xecrets-encrypted":{source:"iana"},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/voucher-jws+json":{source:"iana",compressible:!0},"application/vp":{source:"iana"},"application/vp+cose":{source:"iana"},"application/vp+jwt":{source:"iana"},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blender":{extensions:["blend"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-compressed":{extensions:["rar"]},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-ipynb+json":{compressible:!0,extensions:["ipynb"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zip-compressed":{extensions:["zip"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xfdf":{source:"iana",extensions:["xfdf"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yaml":{source:"iana"},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+cbor":{source:"iana"},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yang-sid+json":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zip+dotlottie":{extensions:["lottie"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana",extensions:["adts","aac"]},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flac":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/matroska":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/midi-clip":{source:"iana"},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a","m4b"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"apache"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{source:"iana",compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp","dib"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/dpx":{source:"iana",extensions:["dpx"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/j2c":{source:"iana"},"image/jaii":{source:"iana",extensions:["jaii"]},"image/jais":{source:"iana",extensions:["jais"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpg","jpeg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm","jpgm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxl":{source:"iana",extensions:["jxl"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1,extensions:["jfif"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif","btf"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.clip":{source:"iana"},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"iana",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-adobe-dng":{extensions:["dng"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-emf":{source:"iana"},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-wmf":{source:"iana"},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/bhttp":{source:"iana"},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/mls":{source:"iana"},"message/news":{source:"apache"},"message/ohttp-req":{source:"iana"},"message/ohttp-res":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime","mht","mhtml"]},"message/s-http":{source:"apache"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"apache"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/jt":{source:"iana",extensions:["jt"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/prc":{source:"iana",extensions:["prc"]},"model/step":{source:"iana",extensions:["step","stp","stpnc","p21","210"]},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/u3d":{source:"iana",extensions:["u3d"]},"model/vnd.bary":{source:"iana",extensions:["bary"]},"model/vnd.cld":{source:"iana",extensions:["cld"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana",extensions:["pyo","pyox"]},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usda":{source:"iana",extensions:["usda"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"apache"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/hl7v2":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["md","markdown"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/prs.texi":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.exchangeable":{source:"iana"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"apache"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.vcf":{source:"iana"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vnd.zoo.kcl":{source:"iana"},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/wgsl":{source:"iana",extensions:["wgsl"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/evc":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/h266":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/lottie+json":{source:"iana",compressible:!0},"video/matroska":{source:"iana"},"video/matroska-3d":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts","m2t","m2ts","mts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.planar":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"apache"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};var eu,bm;function KN(){return bm||(bm=1,eu=qN),eu}const YN={},ZN=Object.freeze(Object.defineProperty({__proto__:null,default:YN},Symbol.toStringTag,{value:"Module"})),XN=qb(ZN);var tu,xm;function QN(){if(xm)return tu;xm=1;var e={"prs.":100,"x-":200,"x.":300,"vnd.":400,default:900},t={nginx:10,apache:20,iana:40,default:30},i={application:1,font:2,audio:2,video:3,default:0};return tu=function(o,n="default"){if(o==="application/octet-stream")return 0;const[r,a]=o.split("/"),l=a.replace(/(\.|x-).*/,"$1"),c=e[l]||e.default,d=t[n]||t.default,u=i[r]||i.default,h=1-o.length/100;return c+d+u+h},tu}var ym;function JN(){return ym||(ym=1,(function(e){var t=KN(),i=XN.extname,s=QN(),o=/^\s*([^;\s]*)(?:;|\s|$)/,n=/^text\//i;e.charset=r,e.charsets={lookup:r},e.contentType=a,e.extension=l,e.extensions=Object.create(null),e.lookup=c,e.types=Object.create(null),e._extensionConflicts=[],d(e.extensions,e.types);function r(p){if(!p||typeof p!="string")return!1;var m=o.exec(p),v=m&&t[m[1].toLowerCase()];return v&&v.charset?v.charset:m&&n.test(m[1])?"UTF-8":!1}function a(p){if(!p||typeof p!="string")return!1;var m=p.indexOf("/")===-1?e.lookup(p):p;if(!m)return!1;if(m.indexOf("charset")===-1){var v=e.charset(m);v&&(m+="; charset="+v.toLowerCase())}return m}function l(p){if(!p||typeof p!="string")return!1;var m=o.exec(p),v=m&&e.extensions[m[1].toLowerCase()];return!v||!v.length?!1:v[0]}function c(p){if(!p||typeof p!="string")return!1;var m=i("x."+p).toLowerCase().slice(1);return m&&e.types[m]||!1}function d(p,m){Object.keys(t).forEach(function(C){var w=t[C],b=w.extensions;if(!(!b||!b.length)){p[C]=b;for(var x=0;x<b.length;x++){var y=b[x];m[y]=u(y,m[y],C);const S=h(y,m[y],C);S!==m[y]&&e._extensionConflicts.push([y,S,m[y]])}}})}function u(p,m,v){var C=m?s(m,t[m].source):0,w=v?s(v,t[v].source):0;return C>w?m:v}function h(p,m,v){var C=["nginx","apache",void 0,"iana"],w=m?C.indexOf(t[m].source):0,b=v?C.indexOf(t[v].source):0;return e.types[l]!=="application/octet-stream"&&(w>b||w===b&&e.types[l]?.slice(0,12)==="application/")||w>b?m:v}})(Jd)),Jd}var Sm=JN();const Qi=(e,t)=>{if(!(!e||!e.length||!t))for(const i of e){if(i.path===t)return i;const s=Qi(i.items,t);if(s)return s}},iu=(e,t)=>{if(!e?.length)return;if(!t)return e[0];const i=Qi(e,t);if(i&&i.nodeType===we.FOLDER)return i;const s=t.split("/").filter(Boolean);if(s.length<=1)return e[0];const o="/"+s.slice(0,s.length-1).join("/");return Qi(e,o)??e[0]},vn=e=>(e??"").toLowerCase(),eH=e=>vn(e).replace(/^\./,""),tH=e=>{if(!e)return[];const t=[],i=s=>{const o=s.items??[];for(const n of o)t.push(n),n.nodeType===we.FOLDER&&i(n)};return i(e),t},ob=e=>(e.name??e.path.split("/").pop()??"").startsWith("."),Hr=e=>{if(!e)return"0 bytes";const t=1024,i=t*1024;return e>=i?`${(e/i).toFixed(1)} MB`:e>=t?`${(e/t).toFixed(0)} KB`:`${e} bytes`},iH=(e,t="en-US",i={year:"numeric",month:"short",day:"2-digit"})=>{if(!e)return"";try{return new Intl.DateTimeFormat(t,i).format(new Date(e))}catch{return e}};function nb(e,t,i){if(!e||e.includes("*/*"))return!0;const s=t.toLowerCase(),o=i&&i.includes(".")?`.${i.split(".").at(-1).toLowerCase()}`:void 0;return e.some(n=>{const r=n.toLowerCase();if(r.startsWith("."))return o===r;if(r.endsWith("/*")){const a=r.slice(0,-1);return s.startsWith(a)}return s===r})}const sH=e=>e?.map(t=>t.endsWith("/*")?t.replace("/*","s"):oH(t).flat().map(i=>`.${i}`)).flat().join(", ")||"",oH=e=>{const[t,i]=e.split("/");return t==="*"?["all"]:i==="*"?Object.entries(Sm.extensions).reduce((s,[o,n])=>{const[r]=o.split("/");return r===t&&s.push(...n),s},[]):Sm.extensions[e]||[]},yc=e=>{if(!e)return;const t=e.flags.replace(/[gy]/g,"");return new RegExp(e.source,t)};function Np(e,t,i){if(t&&yc(t)?.test(e.name))return i??`This ${e.isFolder?"folder":"file"} contains forbidden characters in its name. Please rename it.`}const nH=(e,t,i,s,o)=>{if(e.nodeType===we.FOLDER)return;const n=!e.contentLength||i==null||e.contentLength<=i;if(!(!e.contentType||nb(t,e.contentType,e.name)))return s??(t?.length?`Unsupported file type. Supported types: ${sH(t)}.`:"Unsupported file type.");if(!n)return o??`File is too large. Maximum size: ${Hr(i)}.`},rH=e=>{const[t,i]=g.useState(e?.showHiddenFiles??!1),s=!!e?.onShowHiddenFilesChange,o=s?e.showHiddenFiles??!1:t,n=g.useCallback(a=>{s?e?.onShowHiddenFilesChange?.(a):i(a)},[s,e]),r=g.useCallback(()=>{const a=!o;s?e?.onShowHiddenFilesChange?.(a):i(a)},[o,s,e]);return{areHiddenFilesVisible:o,toggleHiddenFilesVisibility:r,setAreHiddenFilesVisible:n}},aH=e=>{const[t,i]=g.useState(e?.collapsed??!1),s=!!e?.onCollapseChange,o=s?e.collapsed??!1:t,n=g.useCallback(a=>{s?e?.onCollapseChange?.(a):i(a)},[s,e]),r=g.useCallback(()=>{const a=!o;s?e?.onCollapseChange?.(a):i(a)},[o,s,e]);return{isTreeCollapsed:o,toggleTreeCollapse:r,setIsTreeCollapsed:n}},Rm=(e,t,i)=>{if(!t.has(e))return e;const s=i===we.FOLDER?(o,n)=>`${o} (${n})`:(o,n)=>{const r=o.lastIndexOf("."),a=r>0,l=a?o.slice(0,r):o,c=a?o.slice(r):"";return`${l} (${n})${c}`};for(let o=1;;o++){const n=s(e,o);if(!t.has(n))return n}},su=e=>e.name,rb=({getDestinationFiles:e,onResolve:t})=>{const[i,s]=g.useState([]),[o,n]=g.useState(!1),[r,a]=g.useState(null),l=g.useRef(!1),c=g.useCallback(x=>{l.current=!0,s(x),n(!0)},[]),d=g.useCallback(()=>{l.current=!1,n(!1),s([]),a(null)},[]),u=g.useCallback((x,y)=>{const S=e(x),E=new Set(S.map(su)),R=y.filter(F=>E.has(F.name));return{hasConflicts:R.length>0,conflicts:R}},[e]),h=g.useCallback((x,y,S,E)=>{const R=e(x),F=new Set(R.map(su));return y.map(D=>{const T=D.name,P=F.has(T),k=S&&P?T:Rm(T,F,D.nodeType);return(!S||!P)&&F.add(k),{sourceUrl:D.path,destinationUrl:`${x}/${k}`,overwrite:S&&P,nodeType:D.nodeType??we.ITEM,...E??{}}})},[e]),p=g.useCallback((x,y,S,E)=>{const R=e(x),F=new Set(R.map(su));return y.filter(T=>S.get(T.path)!==ht.Cancel).map(T=>{const P=S.get(T.path),k=F.has(T.name),O=P===ht.Replace&&k,_=O?T.name:Rm(T.name,F,T.nodeType);return O||F.add(_),{sourceUrl:T.path,destinationUrl:`${x}/${_}`,overwrite:O,nodeType:T.nodeType??we.ITEM,...E??{}}})},[e]),m=g.useCallback((x,y,S)=>{const E=u(x,y);return E.hasConflicts&&(a({files:y,destinationFolder:x,metadata:S}),c(E.conflicts)),E},[u,c]),v=g.useCallback(()=>{if(!r)return;const{files:x,destinationFolder:y,metadata:S}=r,E=h(y,x,!0,S);t?.(E,y),d()},[r,h,t,d]),C=g.useCallback(()=>{if(!r)return;const{files:x,destinationFolder:y,metadata:S}=r,E=h(y,x,!1,S);t?.(E,y),d()},[r,h,t,d]),w=g.useCallback(()=>{if(!r)return;const{files:x,destinationFolder:y,metadata:S}=r,E=p(y,x,new Map(i.map(R=>[R.path,ht.Cancel])),S);t?.(E,y),d()},[d,i,t,r,p]),b=g.useCallback(x=>{if(!r)return;const{files:y,destinationFolder:S,metadata:E}=r,R=new Map(x.map(D=>[D.file.path,D.action])),F=p(S,y,R,E);t?.(F,S),d()},[r,p,t,d]);return{conflictingFiles:i,conflictResolutionOpen:o,hasActiveConflictRef:l,checkForConflicts:u,startConflictResolution:m,resolveConflictsWithStrategy:h,resolveConflictsWithDecisions:p,openConflictResolution:c,closeConflictResolution:d,handleReplaceAll:v,handleDuplicateAll:C,handleCancelAll:w,handleDecideForEach:b}},lH=({getDestinationFiles:e,onCopyFiles:t,onMoveToFiles:i,onCopySuccess:s,onMoveSuccess:o,onDuplicateSuccess:n,getCopyHeader:r,getMoveHeader:a})=>{const[l,c]=g.useState(!1),[d,u]=g.useState([]),[h,p]=g.useState([]),[m,v]=g.useState(pt.Copy),[C,w]=g.useState(),[b,x]=g.useState(null),{conflictingFiles:y,conflictResolutionOpen:S,hasActiveConflictRef:E,startConflictResolution:R,resolveConflictsWithStrategy:F,closeConflictResolution:D,openConflictResolution:T,handleReplaceAll:P,handleDuplicateAll:k,handleCancelAll:O,handleDecideForEach:_}=rb({getDestinationFiles:e,onResolve:(J,ie)=>{J?.length&&(b?.type===pt.Copy?(t?.(J,ie),s?.()):b?.type===pt.Move&&b.sourceFolder&&(i?.(J,b.sourceFolder,ie),o?.()))}}),L=g.useCallback(()=>{u([]),p([]),x(null),w(void 0)},[]),N=g.useCallback(J=>{const ie=R(J,d,{type:pt.Copy});if(x({type:pt.Copy}),!ie.hasConflicts){const U=F(J,d,!1);t?.(U,J),s?.(),L()}},[d,R,F,t,s,L]),H=g.useCallback((J,ie)=>{const U=ie||(b?.sourceFolder??"/");if(!R(J,h,{type:pt.Move,sourceFolderPath:U}).hasConflicts){const V=F(J,h,!0);i?.(V,U,J),o?.(),L()}},[h,R,F,i,o,L,b]),z=g.useCallback(()=>{P(),L()},[P,L]),se=g.useCallback(()=>{k(),L()},[k,L]),M=g.useCallback(()=>{O(),L()},[O,L]),I=g.useCallback(J=>{_(J),L()},[_,L]),G=g.useCallback(J=>{const ie=J.at(0)?.parentPath??"/",U=F(ie,J,!1);t?.(U,ie),n?.()},[t,n,F]),K=g.useCallback(J=>{v(J),c(!0)},[]),oe=g.useCallback(()=>{c(!1),E.current||L()},[L,E]),[ve,Y]=g.useState(),j=g.useCallback(J=>{u(J);const ie=J[0]?.parentPath??J[0]?.folderId;w(ie),r&&J.length>0?Y(r(J.length,J[0]?.name)):Y(void 0)},[r]),be=g.useCallback(J=>{p(J);const ie=J[0]?.parentPath??J[0]?.folderId;w(ie),x({type:pt.Move,sourceFolder:ie}),a&&J.length>0?Y(a(J.length,J[0]?.name)):Y(void 0)},[a]);return{handleDuplicate:G,handleCloseDestinationFolderPopup:oe,handleOpenDestinationFolderPopup:K,handleCopyTo:N,handleMoveTo:H,openDestinationFolderPopup:l,destinationFolderMode:m,destinationFolderTitle:ve,handleSetCopiedFiles:j,handleSetMovedFiles:be,clearState:L,conflictingFiles:y,conflictResolutionOpen:S,openConflictResolution:T,closeConflictResolution:D,handleConflictReplace:z,handleConflictCancel:M,handleConflictDuplicate:se,handleConflictDecideForEach:I,sourceFolder:C}},cH=({path:e,defaultPath:t,onPathChange:i,onSelectionClear:s})=>{const o=e!==void 0,[n,r]=g.useState(t),a=o?e:n,l=g.useCallback(d=>{o||r(d),i?.(d)},[o,i]),c=g.useCallback(d=>{l(d),s?.()},[l,s]);return{currentPath:a,setCurrentPath:l,handlePathChange:c}},dH=({onDeleteFiles:e,onDeleteSuccess:t})=>{const[i,s]=g.useState(!1),[o,n]=g.useState([]),[r,a]=g.useState(""),l=g.useCallback((u,h)=>{n(u),a(h),s(!0)},[]),c=g.useCallback(()=>{s(!1),n([])},[]),d=g.useCallback(()=>{if(e&&o.length>0){const u=o.map(h=>({sourceUrl:h.path,nodeType:h.nodeType}));e(u,r),t?.()}c()},[o,e,t,c,r]);return{deleteConfirmationOpen:i,itemsToDelete:o,openDeleteConfirmation:l,closeDeleteConfirmation:c,confirmDelete:d}},uH=({onDownloadFiles:e,customDownloadItemsAction:t,onDownloadSuccess:i})=>({handleDownloadFiles:g.useCallback(o=>{t&&o.length>0?t(o):e&&o.length>0&&(e(o),i?.())},[e,i,t])}),hH=e=>"dataTransfer"in e&&e.dataTransfer!==null,pH=({onUploadFiles:e,onValidateUpload:t,maxFileSize:i,allowedFileTypes:s,validationMessages:o={},onUploadArchive:n,uploadEnabled:r=!0,currentFolder:a}={})=>{const[l,c]=g.useState(!1),[d,u]=g.useState(!1),[h,p]=g.useState(),m=g.useRef(null),v=g.useRef(""),C=g.useRef([]),w=g.useMemo(()=>!!a?.permissions?.includes(Po.WRITE),[a]),[b,x]=g.useState(new Map),[y,S]=g.useState(null),E=g.useCallback(V=>!s||s.includes("*/*")?V:V.filter(({fileContent:ue,name:pe})=>nb(s,ue.type,pe)),[s]),R=g.useCallback(()=>{x(new Map),S(null)},[]),{conflictingFiles:F,conflictResolutionOpen:D,hasActiveConflictRef:T,startConflictResolution:P,closeConflictResolution:k,openConflictResolution:O,handleReplaceAll:_,handleDuplicateAll:L,handleCancelAll:N,handleDecideForEach:H}=rb({getDestinationFiles:()=>C.current,onResolve:(V,ue)=>{if(!r||!w){R();return}if(!y)return;const pe=V.map(Te=>{const Re=b.get(Te.sourceUrl);if(!Re)return;const le=Te.destinationUrl.split("/").pop();return{fileContent:Re.fileContent,name:le}}).filter(Boolean);if(pe[0]?.fileContent?.type==="application/zip"){const{fileContent:Te,name:Re}=pe[0];n?.(Te,Re,ue)}else pe.length>0&&e?.(pe,ue);R()}});g.useEffect(()=>{r&&w||(c(!1),u(!1),p(void 0),k(),R())},[r,k,R,w]),g.useEffect(()=>{if(!r||!w)return;let V=0;const ue=le=>{hH(le)&&le.dataTransfer.types.includes(BN)&&(V++,u(!0))},pe=()=>{V--,V===0&&u(!1)},Te=()=>{V=0,u(!1)},Re=le=>{le.preventDefault()};return window.addEventListener("dragenter",ue),window.addEventListener("dragleave",pe),window.addEventListener("drop",Te),window.addEventListener("dragover",Re),()=>{window.removeEventListener("dragenter",ue),window.removeEventListener("dragleave",pe),window.removeEventListener("drop",Te),window.removeEventListener("dragover",Re)}},[r,w]);const z=g.useCallback(V=>i?V.filter(ue=>ue.fileContent.size>i).map(ue=>ue.name):[],[i]),se=g.useCallback((V,ue)=>V.map(pe=>({id:pe.name,name:pe.name,folderId:ue,path:pe.name,nodeType:we.ITEM,parentPath:ue,contentLength:pe.fileContent.size})),[]),M=g.useCallback(async(V,ue,pe)=>{if(!r||!w)return!1;p(void 0),C.current=pe;const Te=z(V);if(Te.length>0){const De=i?(i/1048576).toFixed(2):0,Pe=o.oversizedFiles||`Files exceed maximum size (${De}MB): ${Te.join(", ")}`;return p(Pe),!1}if(t)try{const De=await t(V,pe,ue);if(!De.valid)return p(De.message||o.validationFailed||"Validation failed"),!1}catch{return p(o.validationError||"Validation error occurred"),!1}const Re=new Map(V.map(De=>[De.name,De]));x(Re);const le=se(V,ue);return S({destinationFolder:ue}),P(ue,le,{destinationFolder:ue}).hasConflicts?!1:(e?.(V,ue),R(),!0)},[r,e,t,z,i,o,se,P,R,w]),I=g.useCallback(()=>{_(),R()},[_,R]),G=g.useCallback(()=>{L(),R()},[L,R]),K=g.useCallback(()=>{N(),R()},[N,R]),oe=g.useCallback(V=>{H(V),R()},[H,R]),ve=g.useCallback(()=>{k(),T.current||R()},[k,T,R]),Y=g.useCallback(V=>{!r||!w||(V.preventDefault(),V.stopPropagation(),V.dataTransfer.types.includes("Files")&&c(!0))},[r,w]),j=g.useCallback(V=>{if(!r||!w)return;V.preventDefault(),V.stopPropagation();const ue=V.currentTarget.getBoundingClientRect(),pe=V.clientX,Te=V.clientY;(pe<=ue.left||pe>=ue.right||Te<=ue.top||Te>=ue.bottom)&&c(!1)},[r,w]),be=g.useCallback(V=>{!r||!w||(V.preventDefault(),V.stopPropagation(),V.dataTransfer.types.includes("Files")&&(V.dataTransfer.dropEffect="copy"))},[r,w]),J=g.useCallback(async(V,ue,pe)=>{if(!r||!w||(V.preventDefault(),V.stopPropagation(),c(!1),!V.dataTransfer.types.includes("Files")))return;const Te=Array.from(V.dataTransfer.items||[]),Re=[];let le=!1;if(Te.length>0&&Te.forEach(Pe=>{if(Pe.kind==="file"){if(Pe.webkitGetAsEntry?.()?.isDirectory){le=!0;return}const Ie=Pe.getAsFile?.();Ie&&Re.push(Ie)}}),Re.length===0&&V.dataTransfer.files?.length&&Re.push(...Array.from(V.dataTransfer.files)),Re.length===0){le&&p(o.foldersNotSupported||"Folder upload is not supported");return}const Ee=Re.map(Pe=>({fileContent:Pe,name:Pe.name})),De=E(Ee);if(De.length===0){p(o.unsupportedFiles||"Selected files are not supported");return}await M(De,ue,pe)},[r,E,M,o,w]);g.useEffect(()=>{let V=m.current;V||(V=document.createElement("input"),V.type="file",V.multiple=!0,V.style.display="none",document.body.appendChild(V),m.current=V),s&&s.length>0?V.accept=s.join(","):V.removeAttribute("accept");const ue=async()=>{if(!r||!w){V&&(V.value="");return}if(!V?.files?.length)return;const Te=Array.from(V.files).map(le=>({fileContent:le,name:le.name})),Re=E(Te);if(Re.length===0){p(o.unsupportedFiles||"Selected files are not supported"),V.value="";return}await M(Re,v.current,C.current),V.value=""};return V.addEventListener("change",ue),()=>{V&&(V.removeEventListener("change",ue),m.current===V&&(document.body.removeChild(V),m.current=null))}},[r,s,E,M,o,w]);const ie=g.useCallback((V,ue)=>{!r||!w||(v.current=V,C.current=ue,m.current&&m.current.click())},[r,w]),U=g.useCallback((V,ue)=>{if(!n||!r||!w)return;const pe=document.createElement("input");pe.type="file",pe.accept=".zip,application/zip",pe.multiple=!1,pe.style.display="none";const Te=()=>{const Re=pe.files?.[0];if(!Re){document.body.removeChild(pe);return}const le=Re.name.replace(/\.zip$/i,""),Ee={id:le,name:le,folderId:V,path:`${V}/${le}`,nodeType:we.FOLDER,parentPath:V,contentLength:Re.size,contentType:Re.type};if(C.current=ue,S({destinationFolder:V}),x(new Map([[Ee.path,{fileContent:Re,name:le}]])),P(V,[Ee],{destinationFolder:V}).hasConflicts){document.body.removeChild(pe);return}try{n(Re,le,V)}finally{document.body.removeChild(pe)}};pe.addEventListener("change",Te),document.body.appendChild(pe),pe.click()},[n,r,w,P]),ae=g.useCallback(()=>{p(void 0)},[]);return{isDragging:l,isDraggingOverWindow:d,uploadError:h,handleDragEnter:Y,handleDragLeave:j,handleDragOver:be,handleDrop:J,clearError:ae,handleUpload:M,openFileDialog:ie,openArchiveDialog:U,fileInputRef:m,uploadConflictingFiles:F,uploadConflictResolutionOpen:D,hasActiveUploadConflictRef:T,openUploadConflictResolution:O,closeUploadConflictResolution:ve,handleUploadConflictReplace:I,handleUploadConflictDuplicate:G,handleUploadConflictCancel:K,handleUploadConflictDecideForEach:oe}},ab=g.createContext(void 0),lb={hiddenItemWarning:`${Ci.Warning}__A dot at the start of the name will make the item hidden`},gH={emptyName:"Name cannot be empty",duplicateName:"An item with this name already exists",hiddenItemWarning:lb.hiddenItemWarning};function fH(e){let t=e.length;for(;t>0&&e[t-1]==="/";)t--;return e.slice(0,t)}function mH(e,t){const i=fH(e),s=i.lastIndexOf("/");return s===-1?t:i.slice(0,s+1)+t}function vH(e){const t=e.lastIndexOf(".");return t===-1||t===0?e:e.substring(0,t)}function Fm(e){const t=e.lastIndexOf(".");return t===-1||t===0?"":e.substring(t)}const CH=({items:e,onRenameValidate:t,validationMessages:i,onMoveToFiles:s})=>{const[o,n]=g.useState(),r=g.useMemo(()=>({...gH,...i}),[i]),a=g.useMemo(()=>o?.path,[o]),l=g.useCallback(p=>{const m=Qi(e,p);m&&n(m)},[e]),c=g.useCallback(()=>{n(void 0)},[]),d=g.useCallback(p=>{if(!o||!s){n(void 0);return}const m=o.nodeType===we.ITEM;let v=p.trim();if(m){const x=Fm(o.name);x&&!v.endsWith(x)&&(v=v+x)}if(v===o.name){n(void 0);return}const C=mH(o.path,v),w=o.parentPath;if(!w){n(void 0);return}const b={sourceUrl:o.path,destinationUrl:C,nodeType:o.nodeType};s([b],w,w),n(void 0)},[o,s]),u=g.useCallback((p,m)=>{const v=p.trim();if(!v)return r.emptyName;if(v.startsWith("."))return r.hiddenItemWarning;const C=m.nodeType===we.ITEM;let w=v;if(C){const x=Fm(m.name);x&&!w.endsWith(x)&&(w=w+x)}const b=m.parentPath;if(b){const x=Qi(e,b);if(x&&new Set((x.items??[]).filter(S=>S.path!==m.path).map(S=>S.name.toLowerCase())).has(w.toLowerCase()))return r.duplicateName}if(t){const x=t(w,m);if(x)return x}return null},[t,r,e]),h=g.useCallback(p=>p.nodeType===we.ITEM?vH(p.name):p.name,[]);return{renamedPath:a,renamedItem:o,renameHandler:l,renameSaveHandler:d,renameCancelHandler:c,renameValidateHandler:u,getDisplayName:h}},cb=e=>{const[t,i]=g.useState(e?.expandedPaths??new Set),s=g.useMemo(()=>!!e?.onExpandedPathsChange,[e?.onExpandedPathsChange]),o=g.useMemo(()=>s?e?.expandedPaths??new Set:t,[s,e?.expandedPaths,t]);g.useEffect(()=>{s&&e?.expandedPaths&&i(new Set(e.expandedPaths))},[s,e?.expandedPaths]);const n=g.useCallback(d=>{s?e?.onExpandedPathsChange?.(d):i(d)},[s,e]),r=g.useCallback(d=>{const u=new Set(o);u.has(d)?u.delete(d):u.add(d),n(u)},[o,n]),a=g.useCallback(()=>{n(new Set)},[n]),l=g.useCallback(d=>{const u=new Set(o);u.add(d),n(u)},[o,n]),c=g.useCallback(d=>{const u=new Set(o);u.delete(d),n(u)},[o,n]);return{expandedPaths:o,setExpandedPaths:n,togglePath:r,collapseAll:a,expandPath:l,collapsePath:c,isControlled:s}},wH=({newActions:e,currentFolder:t,onUploadFiles:i,onCreateFolder:s,onUploadArchive:o,onCreateNewItem:n,isNewButtonDisabled:r})=>{const a=g.useMemo(()=>{const d=[];return e&&(e.newFolder&&d.push({key:"new-folder",label:e.newFolder.label,icon:e?.newFolder?.icon!==void 0?e?.newFolder?.icon:f.jsx(W.IconFolder,{...ee,className:"text-secondary"}),onClick:()=>{s&&s()}}),e.newItem&&d.push({key:"new-item",label:e.newItem.label,icon:e?.newItem?.icon!==void 0?e?.newItem?.icon:f.jsx(W.IconPlus,{...ee,className:"text-secondary"}),onClick:()=>{n&&n()}}),e.uploadFiles&&d.push({key:"upload-file",label:e.uploadFiles.label,icon:e?.uploadFiles?.icon!==void 0?e?.uploadFiles?.icon:f.jsx(W.IconFile,{...ee,className:"text-secondary"}),onClick:()=>{i&&i()}}),e.uploadArchive&&d.push({key:"upload-archive",label:e.uploadArchive.label,icon:e?.uploadArchive?.icon!==void 0?e?.uploadArchive?.icon:f.jsx(W.IconFileZip,{...ee,className:"text-secondary"}),onClick:()=>{o&&o()}})),d},[e,s,i,o,n]),l=g.useMemo(()=>a?.length>0,[a]),c=g.useMemo(()=>!t?.permissions?.includes(Po.WRITE)||!!r,[t,r]);return{newActions:a,isNewButtonVisible:l,isNewButtonDisabled:c}},bH={emptyName:"Folder name cannot be empty",duplicateName:"A folder with this name already exists",hiddenItemWarning:lb.hiddenItemWarning},xH=({currentFolder:e,onCreateFolder:t,onValidateFolderName:i,validationMessages:s})=>{const[o,n]=g.useState(!1),[r,a]=g.useState(null),l=g.useRef(e?.path),c=g.useMemo(()=>({...bH,...s}),[s]);g.useEffect(()=>{const m=e?.path;l.current!==m&&o&&(n(!1),a(null)),l.current=m},[e?.path,o]);const d=g.useCallback(()=>{if(o)return;const m=`__new_folder_${Date.now()}`;a(m),n(!0)},[o]),u=g.useCallback(()=>{n(!1),a(null)},[]),h=g.useCallback(m=>{const v=m.trim();if(!v)return c.emptyName;if(v.startsWith(".")&&v.length>1)return c.hiddenItemWarning;if(e&&new Set((e.items??[]).filter(w=>w.nodeType===we.FOLDER).map(w=>w.name.toLowerCase())).has(v.toLowerCase()))return c.duplicateName;if(i&&e){const C=i(v,e);if(C)return C}return null},[e,i,c]),p=g.useCallback(async m=>{const v=m.trim();if(!v)return;const w=`${e?.path??"/"}/${v}`,b=`${w}/${Xd}`,y={fileContent:new File([],Xd,{type:"text/plain"}),name:Xd};t&&await t(y,w,b),u()},[e,t,u]);return{isCreatingFolder:o,newFolderTempId:r,startFolderCreation:d,cancelFolderCreation:u,saveFolderCreation:p,validateFolderName:h}},yH=({additionalButtons:e,expandedPathsLength:t,collapseAll:i})=>{const s=t===0;return{additionalButtons:g.useMemo(()=>{const n=ne(["hover:text-accent-primary",s&&"controls-secondary-disable hover:controls-secondary-disable disabled:hover:cursor-default"]);return f.jsxs(f.Fragment,{children:[e,f.jsx(Is,{disabled:s,className:n,size:xt.Small,onClick:i,icon:f.jsx(W.IconCopyMinus,{size:St.LG,stroke:1.5}),"aria-label":"collapse-all"})]})},[e,s,i])}},SH=({onGetInfo:e})=>{const[t,i]=g.useState(!1),[s,o]=g.useState(void 0),n=g.useCallback(async a=>{o(a),i(!0),e&&await e(a)},[e]),r=g.useCallback(()=>{i(!1),o(void 0)},[]);return{isMetadataPopupOpen:t,selectedFileForMetadata:s,openMetadataPopup:n,closeMetadataPopup:r}};function RH(e){const t=[];function i(s){for(const o of s)t.push(o),o.items&&i(o.items)}return i(e),t}function Em(e,t){const i=vn(t);return e.filter(s=>vn(s.name).includes(i))}function FH({onSearchFiles:e,clearSearchResults:t,currentPath:i,searchResults:s=[],searchInProgress:o=!1,navigationPanelValue:n,onNavigationPanelSearchChange:r,allItems:a=[],activeTab:l}){const[c,d]=g.useState(""),u=g.useRef(!1),h=g.useRef(!1),p=g.useRef([]),m=g.useRef(i),v=g.useRef(l);g.useEffect(()=>{n!=null&&d(String(n))},[n]);const C=String(n??c??"").trim(),w=h.current&&(o||s.length>0||C!==""),b=g.useCallback(E=>{const R=E.trim();if(!R){h.current=!1,u.current=!1;return}h.current=!0,e&&i&&!u.current&&(u.current=!0,e(i,R))},[e,i]),x=g.useCallback(()=>{u.current=!1,h.current=!1,p.current=[],d(""),r?.(""),t?.()},[t,r]),y=g.useCallback(E=>{const R=String(E??"");d(R),r?.(R),R.trim()?b(R):x()},[r,b,x]);g.useEffect(()=>{(m.current!==i||v.current!==l)&&(m.current=i,v.current=l,u.current=!1,h.current=!1,p.current=[],d(""),r?.(""),t?.())},[i,l,r,t]),g.useEffect(()=>{o||(p.current=s)},[s,o]);const S=g.useMemo(()=>{if(e){const R=o?p.current:s;return!C||R.length===0?R:Em(R,C)}if(!C||!a.length)return[];const E=RH(a);return Em(E,C)},[e,s,o,C,a]);return{isSearchMode:w,searchValue:c,effectiveSearchValue:C,setSearchValue:d,handleSearchChange:y,handleSearchActivate:b,handleSearchClear:x,searchResultsRows:S}}function EH({selectedPaths:e,defaultSelectedPaths:t,onSelectedPathsChange:i}){const s=e!==void 0,[o,n]=g.useState(()=>t??new Set),r=g.useMemo(()=>s?e:o,[s,e,o]),a=g.useCallback(c=>{const d=new Set(c);i?.(d),s||n(d)},[s,i]),l=g.useCallback(()=>{a(new Set)},[a]);return{selectedPaths:r,setSelectedPaths:a,clearSelection:l,isControlled:s}}const db=':;,=/{}%&\\"',Hp=`(\r
70
- |
71
- |\r| )|[\0-]`,DH=`[${db.replace(/\\/g,"\\\\")}]`,ub=new RegExp(`${DH}|${Hp}`),PH=new RegExp(Hp),hb=({managerLabel:e,children:t,className:i,items:s=[],rootItem:o,path:n,defaultPath:r,filesLoading:a,selectedPaths:l,defaultSelectedPaths:c,onSelectedPathsChange:d,showHiddenFiles:u,onShowHiddenFilesChange:h,treeOptions:p,showNavigationPanel:m=!0,navigationPanelOptions:v,deleteConfirmationOptions:C,gridOptions:w,toolbarOptions:b,bulkActionsToolbarOptions:x,destinationFolderPopupOptions:y,conflictResolutionPopupOptions:S,onPathChange:E,onTableFileClick:R,handleSelectionClick:F,onGridApiChange:D,onCopyFiles:T,onMoveToFiles:P,onDeleteFiles:k,onDownloadFiles:O,onRenameValidate:_,onAddSibling:L,onAddChild:N,renameValidationMessages:H,forbiddenSymbolsRegExp:z=ub,forbiddenSymbolsTooltip:se,onUploadFiles:M,onValidateUpload:I,uploadEnabled:G,uploadValidationMessages:K,maxFileSize:oe,onUploadArchive:ve,onCreateFolder:Y,onCreateFolderValidate:j,folderCreationValidationMessages:be,fileMetadataPopupOptions:J,onGetInfo:ie,onUnshareFiles:U,onRemoveFilesAccess:ae,actionsRef:V,sharedByMePaths:ue,onSearchFiles:pe,searchResults:Te,searchInProgress:Re,clearSearchResults:le,allowedFileTypes:Ee,maxSelectableFileSize:De,getDisabledTooltip:Pe,fileTooLargeTooltip:Ce,unsupportedFileTypeTooltip:Ie,emptyStateIcon:He,emptyStateTitle:kt,emptyStateDescription:et,sharedWithMeIds:mt,onFolderPopupPathChange:je,onManagePermissions:q,onPreview:Ve,onOpenInNewTab:pi,previewExtensions:Nn,isRenameFileAvailable:Rc,isDuplicateFolderAvailable:Fc,customUploadFileAction:Bs,customCreateNewItemAction:Hn,customDuplicateAction:To,customDeleteItemsAction:Zr,customDownloadItemsAction:ko,customBreakpointRef:Xr,gridClassName:Qr,nonClickableTableColumns:Jr,hideSearchPathItemName:Ec,showHiddenFileSwitcherInDestinationPopup:Dc,autoSelectUploadedItems:ns=!1})=>{const{selectedPaths:Wi,clearSelection:ji,setSelectedPaths:Gs}=EH({selectedPaths:l,defaultSelectedPaths:c,onSelectedPathsChange:d}),rs=g.useRef(null),Pc=g.useCallback((Fe,Ge,qe)=>{if(ns){const gi=Ge.lastIndexOf("/"),Qc=gi>=0?Ge.slice(gi+1):Ge,Le=gi>=0?Ge.slice(0,gi):"";rs.current={fileNames:new Set([Qc]),destinationFolder:Le}}Y?.(Fe,Ge,qe)},[Y,ns]),Tc=g.useCallback((Fe,Ge)=>{ns&&(rs.current={fileNames:new Set(Fe.map(qe=>qe.name)),destinationFolder:Ge}),M?.(Fe,Ge)},[M,ns]),kc=g.useCallback((Fe,Ge,qe)=>{ns&&(rs.current={fileNames:new Set([Ge]),destinationFolder:qe}),ve?.(Fe,Ge,qe)},[ve,ns]),Ic=g.useMemo(()=>{const Fe=new Map;return Wi.forEach(Ge=>{const qe=Qi(s,Ge);qe&&Fe.set(Ge,qe)}),Fe},[Wi,s]);g.useEffect(()=>{if(Wi.size===0)return;let Fe=!1;for(const Ge of Wi)if(!Qi(s,Ge)){Fe=!0;break}if(Fe){const Ge=new Set;for(const qe of Wi)Qi(s,qe)&&Ge.add(qe);Gs(Ge)}},[s,Wi,Gs]);const{currentPath:nt,setCurrentPath:Mc,handlePathChange:Rt}=cH({path:n,defaultPath:r,onPathChange:E,onSelectionClear:ji}),Bn=g.useMemo(()=>{const{showFiles:Fe=!0,showFolders:Ge=!0,...qe}=w||{};return{showFiles:Fe,showFolders:Ge,...qe}},[w]),Gn=Bn.showFiles,Vn=Bn.showFolders,[Io,Mo]=g.useState(),Ac=y?.destinationFolderPath??Io,Ao=g.useCallback(Fe=>{y?.setDestinationFolderPath?y.setDestinationFolderPath(Fe):Mo(Fe)},[y]),{areHiddenFilesVisible:_i,toggleHiddenFilesVisibility:ea}=rH({showHiddenFiles:u,onShowHiddenFilesChange:h}),{isTreeCollapsed:ta,toggleTreeCollapse:ia,setIsTreeCollapsed:Lo}=aH({collapsed:p?.collapsed,onCollapseChange:p?.onCollapseChange}),{renamedPath:Lc,renamedItem:Oo,renameHandler:Oc,renameSaveHandler:Nc,renameCancelHandler:Hc,renameValidateHandler:Bc,getDisplayName:Gc}=CH({items:s,onRenameValidate:_,validationMessages:H,onMoveToFiles:P}),{isSearchMode:zn,searchValue:sa,effectiveSearchValue:No,setSearchValue:Vc,handleSearchChange:Wn,handleSearchClear:Ft,searchResultsRows:oa}=FH({onSearchFiles:pe,clearSearchResults:le,currentPath:nt,searchResults:Te,searchInProgress:Re,navigationPanelValue:v?.value,onNavigationPanelSearchChange:v?.onSearchChange,allItems:s,activeTab:b?.activeTab}),dt=g.useMemo(()=>iu(s,nt)??s[0],[s,nt]),{handleCopyTo:na,handleMoveTo:ra,handleDuplicate:aa,handleOpenDestinationFolderPopup:la,handleCloseDestinationFolderPopup:Ho,openDestinationFolderPopup:Bo,handleSetCopiedFiles:Go,handleSetMovedFiles:zc,destinationFolderMode:ca,destinationFolderTitle:jn,conflictingFiles:Wc,conflictResolutionOpen:jc,closeConflictResolution:_c,handleConflictReplace:Uc,handleConflictDuplicate:$c,handleConflictCancel:da,handleConflictDecideForEach:ua,sourceFolder:ha}=lH({getDestinationFiles:Fe=>iu(s,Fe)?.items??[],onCopyFiles:T,onMoveToFiles:P,onCopySuccess:ji,onMoveSuccess:ji,onDuplicateSuccess:ji,getCopyHeader:y?.getCopyHeader,getMoveHeader:y?.getMoveHeader});g.useEffect(()=>{Bo||Ao(void 0)},[Bo,Ao]);const{deleteConfirmationOpen:Vo,itemsToDelete:as,openDeleteConfirmation:qc,closeDeleteConfirmation:Bt,confirmDelete:Kc}=dH({onDeleteFiles:k,onDeleteSuccess:ji}),{handleDownloadFiles:_n}=uH({onDownloadFiles:O,customDownloadItemsAction:ko,onDownloadSuccess:ji}),{isDragging:zo,isDraggingOverWindow:Vs,uploadError:pa,handleDragEnter:ga,handleDragLeave:fa,handleDragOver:ma,handleDrop:Un,clearError:Yc,openFileDialog:va,fileInputRef:Ca,openArchiveDialog:Wo,uploadConflictingFiles:Zc,uploadConflictResolutionOpen:Xc,closeUploadConflictResolution:$n,handleUploadConflictReplace:wa,handleUploadConflictDuplicate:ba,handleUploadConflictCancel:xa,handleUploadConflictDecideForEach:ya}=pH({onUploadFiles:Tc,onValidateUpload:I,maxFileSize:oe,onUploadArchive:kc,allowedFileTypes:Ee,validationMessages:K,uploadEnabled:G,currentFolder:dt}),Sa=g.useCallback(Fe=>{Ft();const Ge=nt??"",qe=dt?.items??[];Un(Fe,Ge,qe)},[nt,dt,Un,Ft]),Ra=g.useCallback(()=>{Ft();const Fe=nt??"",Ge=dt?.items??[];va(Fe,Ge)},[nt,dt,va,Ft]),X=g.useCallback(()=>{Ft();const Fe=nt??"",Ge=dt?.items??[];Wo(Fe,Ge)},[nt,dt,Wo,Ft]),Ze=g.useCallback(()=>{Ft(),Bs?.(nt,dt)},[Bs,nt,dt,Ft]),tt=g.useCallback(()=>{Ft(),Hn?.(nt,dt)},[Hn,nt,dt,Ft]),ti=g.useCallback(Fe=>{To?.(Fe)},[To]),{isCreatingFolder:Fi,newFolderTempId:jo,startFolderCreation:jp,cancelFolderCreation:Eb,saveFolderCreation:Db,validateFolderName:Pb}=xH({currentFolder:dt,onCreateFolder:Pc,onValidateFolderName:j,validationMessages:be}),_p=g.useCallback(()=>{Ft(),jp()},[Ft,jp]),{newActions:Tb,isNewButtonVisible:kb,isNewButtonDisabled:Ib}=wH({newActions:b?.newActions,currentFolder:dt,onUploadFiles:Bs?Ze:Ra,onUploadArchive:X,onCreateFolder:_p,onCreateNewItem:tt,isNewButtonDisabled:b?.isNewButtonDisabled}),Mb=g.useMemo(()=>{if(zn){let Le=oa;Gn||(Le=Le.filter(Xe=>Xe.nodeType!==we.ITEM)),Vn||(Le=Le.filter(Xe=>Xe.nodeType!==we.FOLDER)),_i||(Le=Le.filter(Xe=>!Xe.path.split("/").filter(Boolean).some(Kn=>Kn.startsWith("."))));const qn=Le.map(Xe=>({...Xe,id:Xe.id??Xe.path,name:Xe.name??Xe.path.split("/").pop()??"",updatedAt:Xe.updatedAt,size:Xe.contentLength,contentLength:Xe.contentLength,author:Xe.author,path:Xe.path,nodeType:Xe.nodeType,extension:Xe.extension,isTemporary:!1,owner:Xe.owner,folderId:Xe.folderId}));return Fi&&jo&&qn.unshift({id:jo,name:"",updatedAt:void 0,author:void 0,path:nt??"/",nodeType:we.FOLDER,extension:void 0,isTemporary:!0,owner:void 0}),qn}const Fe=vn(No).trim(),Ge=dt?.items??[];let qe=Fe?tH(dt):Ge;Gn||(qe=qe.filter(Le=>Le.nodeType!==we.ITEM)),Vn||(qe=qe.filter(Le=>Le.nodeType!==we.FOLDER)),_i||(qe=qe.filter(Le=>Fe?!Le.path.split("/").filter(Boolean).some(Xe=>Xe.startsWith(".")):!ob(Le)));const gi=qe.map(Le=>({...Le,id:Le.id??Le.path,name:Le.name??Le.path.split("/").pop()??"",updatedAt:Le.updatedAt,size:Le.contentLength,author:Le.author,path:Le.path,nodeType:Le.nodeType,extension:Le.extension,isTemporary:!1,owner:Le.owner,contentType:Le.contentType,contentLength:Le.contentLength,folderId:Le.folderId}));if(Fi&&jo&&!Fe&&gi.unshift({id:jo,name:"",updatedAt:void 0,author:void 0,path:nt??"/",nodeType:we.FOLDER,extension:void 0,isTemporary:!0,owner:void 0}),!Fe)return gi;const Qc=Fe.split(/\s+/).filter(Boolean);return gi.filter(Le=>{if(Le.isTemporary)return!0;const qn=vn(Le.name),Xe=vn(Le.author),qp=eH(Le.extension);return Qc.every(Kn=>qn.includes(Kn)||Xe.includes(Kn)||qp.includes(Kn))})},[zn,oa,dt,No,_i,Fi,jo,Gn,Vn,nt]);g.useEffect(()=>{const Fe=rs.current;if(!Fe)return;if((nt??"")!==Fe.destinationFolder){rs.current=null;return}const Ge=iu(s,Fe.destinationFolder);if(!Ge?.items)return;const qe=new Set;for(const gi of Ge.items)Fe.fileNames.has(gi.name)&&qe.add(gi.path);qe.size>0&&(Gs(qe),rs.current=null)},[s,nt,Gs]);const Ab=g.useCallback(Fe=>{Rt(Fe.path)},[Rt]),Lb=g.useCallback(Fe=>{Rt(Fe)},[Rt]),Ob=g.useCallback(Fe=>{Fe.nodeType===we.FOLDER?Rt(Fe.path):R?.(Fe)},[Rt,R]),{expandedPaths:Up,setExpandedPaths:Nb,collapseAll:Hb}=cb({expandedPaths:p?.expandedPaths,onExpandedPathsChange:p?.onExpandedPathsChange}),{additionalButtons:Bb}=yH({collapseAll:Hb,expandedPathsLength:Up.size,additionalButtons:p?.additionalButtons}),{isMetadataPopupOpen:Gb,selectedFileForMetadata:Vb,openMetadataPopup:zb,closeMetadataPopup:$p}=SH({onGetInfo:ie}),Wb=g.useCallback(()=>{$p(),J?.clearMetadata?.()},[$p,J]),jb=g.useMemo(()=>{if(z)return yc(z)},[z]),_b={managerLabel:e,className:i,items:s,allowedFileTypes:Ee,maxSelectableFileSize:De,rootItem:o,filesLoading:a,treeOptions:{...p,expandedPaths:Up,onExpandedPathsChange:Nb,additionalButtons:Bb},showNavigationPanel:m,navigationPanelOptions:v,gridOptions:Bn,toolbarOptions:b,bulkActionsToolbarOptions:x,deleteConfirmationOptions:C,destinationFolderPopupOptions:{...y,destinationFolderPath:Ac,setDestinationFolderPath:Ao,header:jn,onCreateFolder:Y,onCreateFolderValidate:j,folderCreationValidationMessages:be,sourceFolder:ha},currentPath:nt,setCurrentPath:Mc,searchValue:sa,effectiveSearchValue:No,setSearchValue:Vc,areHiddenFilesVisible:_i,toggleHiddenFilesVisibility:ea,isTreeCollapsed:ta,toggleTreeCollapse:ia,setIsTreeCollapsed:Lo,selectedPaths:Wi,selectedFiles:Ic,setSelectedPaths:Gs,clearSelection:ji,currentFolder:dt,gridRows:Mb,handleCopyTo:na,handleMoveTo:ra,handleDuplicate:To?ti:aa,handleSetCopiedFiles:Go,handleSetMovedFiles:zc,openDestinationFolderPopup:Bo,handleCloseDestinationFolderPopup:Ho,handleOpenDestinationFolderPopup:la,destinationFolderMode:ca,handleAddSibling:L,handleAddChild:N,handleDownloadFiles:_n,renamedPath:Lc,renamedItem:Oo,forbiddenSymbolsRegExp:jb,forbiddenSymbolsTooltip:se,onRename:Oc,onRenameSave:Nc,onRenameCancel:Hc,onRenameValidate:Bc,getDisplayName:Gc,openDeleteConfirmation:Zr||qc,closeDeleteConfirmation:Bt,confirmDelete:Kc,deleteConfirmationOpen:Vo,itemsToDelete:as,handlePathChange:Rt,handleTreeItemClick:Ab,handleBreadcrumbItemClick:Lb,handleSearchChange:Wn,handleTableRowClick:Ob,onTableFileClick:R,handleSelectionClick:F,onGridApiChange:D,isDragging:zo,uploadError:pa,handleDragEnter:ga,handleDragLeave:fa,handleDragOver:ma,handleDrop:Sa,clearUploadError:Yc,onUploadFiles:M,onValidateUpload:I,maxFileSize:oe,isDraggingOverWindow:Vs,openFileDialog:Ra,fileInputRef:Ca,newActions:Tb,isNewButtonVisible:kb,isNewButtonDisabled:Ib,isCreatingFolder:Fi,newFolderTempId:jo,startFolderCreation:_p,cancelFolderCreation:Eb,saveFolderCreation:Db,validateFolderName:Pb,conflictResolutionPopupOptions:S,conflictingFiles:Wc,conflictResolutionOpen:jc,closeConflictResolution:_c,handleConflictReplace:Uc,handleConflictDuplicate:$c,handleConflictCancel:da,handleConflictDecideForEach:ua,uploadConflictingFiles:Zc,uploadConflictResolutionOpen:Xc,closeUploadConflictResolution:$n,handleUploadConflictReplace:wa,handleUploadConflictDuplicate:ba,handleUploadConflictCancel:xa,handleUploadConflictDecideForEach:ya,fileMetadataPopupOptions:J,isMetadataPopupOpen:Gb,selectedFileForMetadata:Vb,openMetadataPopup:zb,closeMetadataPopup:Wb,onGetInfo:ie,onUnshareFiles:U,onRemoveFilesAccess:ae,actionsRef:V,sharedByMePaths:ue,onSearchFiles:pe,searchInProgress:Re,searchResults:Te,clearSearchResults:le,isSearchMode:zn,emptyStateIcon:He,emptyStateTitle:kt,emptyStateDescription:et,gridClassName:Qr,sharedWithMeIds:mt,onFolderPopupPathChange:je,onManagePermissions:q,onPreview:Ve,onOpenInNewTab:pi,previewExtensions:Nn,isRenameFileAvailable:Rc,isDuplicateFolderAvailable:Fc,customUploadFileAction:Bs,customBreakpointRef:Xr,nonClickableTableColumns:Jr,hideSearchPathItemName:Ec,getDisabledTooltip:Pe,fileTooLargeTooltip:Ce,unsupportedFileTypeTooltip:Ie,showHiddenFileSwitcherInDestinationPopup:Dc};return f.jsx(ab.Provider,{value:_b,children:t})},TH=({disabledGridRowIds:e,gridRows:t,getDisabledTooltip:i,getRowDisabledTooltip:s,allowedFileTypes:o,maxSelectableFileSize:n})=>{const[r,a]=g.useState(null),[l,c]=g.useState(null);g.useEffect(()=>{const h=()=>{a(null),c(null)};return window.addEventListener("scroll",h,!0),()=>window.removeEventListener("scroll",h,!0)},[]),g.useEffect(()=>{const h=v=>{const w=v.target.closest(".ag-row");if(!w){a(x=>x&&null);return}const b=new DOMParser().parseFromString(w.getAttribute("row-id")||"","text/html").documentElement.textContent;b&&e.has(b)?a(x=>x!==b?(c(w.getBoundingClientRect()),b):x):a(x=>x&&null)},p=()=>{a(null),c(null)},m=document.querySelector('[aria-label="File Manager Grid View"]');if(m)return m.addEventListener("mousemove",h),m.addEventListener("mouseleave",p),()=>{m.removeEventListener("mousemove",h),m.removeEventListener("mouseleave",p)}},[e]);const d=g.useMemo(()=>{if(r)return t.find(h=>h.path===r)},[r,t]),u=g.useMemo(()=>{if(d)return i&&d.folderId?i(d):s(d,o,n)},[d,i,s,o,n]);return f.jsx(f.Fragment,{children:u&&l&&Dn.createPortal(f.jsxs(sh,{open:!0,placement:"top",children:[f.jsx(nh,{asChild:!0,children:f.jsx("div",{className:ge("fixed z-[-1]",u&&"pointer-events-none"),style:{top:l.top,left:l.left,width:l.width,height:l.height}})}),f.jsx(oh,{className:"max-w-[300px] rounded border border-ui-outline-primary bg-ui-popover px-3 py-1.5 text-center text-primary shadow-md fill-ui-popover",children:u})]}),document.body)})},Bp=()=>{const[e,t]=g.useState(um());return g.useEffect(()=>{const i=()=>t(um());return window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[]),e},pb=({onClose:e,onConfirm:t,onFolderPopupPathChange:i,setDestinationFolderPath:s,open:o,copyLabel:n="Copy",moveLabel:r="Move",addFolderLabel:a="Add folder",mode:l=pt.Copy,hiddenFilesSwitcherLabel:c="Show hidden files",showHiddenFileSwitcher:d=!0,onUploadFiles:u,onValidateUpload:h,maxFileSize:p,header:m,sourceFolder:v,disabledPathTooltip:C="Unavailable for the original path. Please select another folder",path:w,collapsedFileTree:b=!1,alertProps:x,...y})=>{const[S,E]=g.useState(!1),[R,F]=g.useState(!1),D=g.useRef(null),T=Bp(),P=g.useCallback(N=>{E(N)},[]),k=g.useMemo(()=>{const N=[{key:"add-folder",label:a,icon:f.jsx(W.IconFolderPlus,{...ee,className:"text-secondary"}),onClick:()=>{D.current?.createFolder(),F(!1)}}];return d&&N.push({key:"show-hidden-files",label:c,icon:f.jsx(W.IconEye,{...ee,className:"text-secondary"}),onClick:()=>{E(H=>!H),F(!1)}}),N},[a,c,d]),O=g.useCallback(N=>{N&&(i?.(N),s?.(N))},[i,s]),_=l===pt.Copy?"Copy to":"Move to",L=g.useMemo(()=>!w||!v?!1:v===w,[w,v]);return f.jsx(Do,{open:o,onClose:()=>{e()},size:Xt.Lg,dividerFooter:!0,dividers:!1,className:"md:!h-[800px] !bg-layer-2",footer:f.jsxs("div",{className:"flex justify-between items-center gap-2 p-4 md:px-6",children:[f.jsx("div",{className:"flex items-center gap-4 min-w-0",children:T?f.jsx(Nt,{menu:{items:k},open:R,onOpenChange:F,children:f.jsx(di,{className:"size-9 shrink-0","aria-label":"More options",iconBefore:f.jsx(W.IconDotsVertical,{...ee,className:"text-secondary"})})}):f.jsxs(f.Fragment,{children:[f.jsx(Ni,{label:a,appearance:Ae.Ghost,iconBefore:f.jsx(W.IconFolderPlus,{...ee}),onClick:()=>{D.current?.createFolder()}}),d&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"w-px h-[26px] bg-controls-disable-accent my-2"}),f.jsx("div",{className:"inline-flex items-center cursor-pointer",children:f.jsx(xc,{label:c,isOn:S,onChange:P,switchId:"hidden-files-switch-modal"})})]})]})}),f.jsxs("div",{className:"flex space-x-4 items-center",children:[f.jsx(Vi,{onClick:e,label:"Cancel"}),L?f.jsx(jt,{tooltip:C,children:f.jsx(Ni,{onClick:t,label:l==="copy"?n:r,disabled:L,"aria-disabled":L})}):f.jsx(Ni,{onClick:t,label:l==="copy"?n:r})]})]}),header:m??_,children:f.jsxs("div",{className:"bg-layer-2 h-full flex flex-col",children:[x&&f.jsx("div",{className:"px-6 mb-4 pt-4",children:f.jsx(qm,{...x})}),f.jsx("div",{className:"flex-1 min-h-0",children:f.jsx(bb,{...y,gridClassName:"size-full",className:ne(y.className,"bg-layer-2 h-full flex pt-0"),actionsRef:D,path:w,showHiddenFiles:S,onShowHiddenFilesChange:P,treeOptions:{...y.treeOptions,collapsed:b,expandedPaths:new Set([y.rootItem?.path||"/"]),header:y.treeOptions?.header},gridOptions:{...y.gridOptions,selectionMode:void 0},navigationPanelOptions:{elementId:"file-manager-destination-search",...y.navigationPanelOptions},onUploadFiles:u,onValidateUpload:h,onPathChange:O,maxFileSize:p})})]})})},kH=12,IH=8;var Zs=(e=>(e.Normal="normal",e.Reverse="reverse",e))(Zs||{});function MH({actions:e,direction:t=Zs.Normal,moreButtonWidth:i=qt,actionsGap:s=8,containerPadding:o=8,dependencies:n=[]}){const r=g.useRef(null),a=g.useRef(null),l=g.useRef(null),c=g.useRef(null),d=g.useRef([]),[u,h]=g.useState(e.length),p=g.useCallback((C,w)=>{const b=l.current?.offsetWidth??0,x=c.current?.offsetWidth??0,y=b+x,E=w.getBoundingClientRect().width-y-i-s*2-o*2;let R=0,F=0;if(t===Zs.Reverse)for(let D=C.length-1;D>=0&&(R+=C[D]+s,!(R>E));D--)F++;else for(const D of C){if(R+=D+s,R>E)break;F++}h(F)},[s,o,t,i]);g.useLayoutEffect(()=>{if(!a.current||!r.current)return;const w=Array.from(a.current.children).map(b=>Math.ceil(b.getBoundingClientRect().width));d.current=w,w.length!==0&&p(w,r.current)},[e,p,...n]),g.useEffect(()=>{if(!r.current)return;let C=null;const w=()=>{C&&cancelAnimationFrame(C),C=requestAnimationFrame(()=>{if(!r.current)return;const x=r.current,y=d.current;y.length!==0&&p(y,x)})},b=new ResizeObserver(w);return b.observe(r.current),w(),()=>{C&&cancelAnimationFrame(C),b.disconnect()}},[e.length,p,...n]);const m=t===Zs.Reverse?e.slice(0,e.length-u):e.slice(u);return{visibleActions:t===Zs.Reverse?e.slice(e.length-u):e.slice(0,u),hiddenActions:m,refs:{containerRef:r,measureRef:a,leftSectionRef:l,rightSectionRef:c}}}const AH=({getSelectionLabel:e,onClearSelection:t,actions:i,selectedCount:s})=>{const o=Bp(),{refs:{containerRef:n,leftSectionRef:r,measureRef:a},visibleActions:l,hiddenActions:c}=MH({actions:i,direction:Zs.Reverse,dependencies:[o],actionsGap:kH,containerPadding:IH}),d=e(s);return f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:a,className:"absolute top-0 left-0 invisible pointer-events-none overflow-hidden whitespace-nowrap flex gap-3",children:i.map(({key:u,icon:h,title:p})=>f.jsx(Vi,{iconBefore:h,label:p,hideTitleOnMobile:!0},u))}),f.jsxs("div",{ref:n,className:"rounded bg-layer-0 p-2 flex justify-between items-center w-full",role:"toolbar","aria-label":"File bulk actions",children:[f.jsx("div",{ref:r,children:f.jsx(Ni,{label:d,onClick:t,textClassName:"text-accent-primary whitespace-nowrap",appearance:Ae.Ghost,iconBefore:f.jsx(W.IconX,{...ee,className:"text-accent-primary"})})}),f.jsxs("div",{className:"flex flex-1 w-full gap-3 items-center justify-end",children:[c.length>0&&f.jsx(Nt,{menu:{items:c},allowedPlacements:["bottom","bottom-start"],children:f.jsx(di,{className:"h-[38px]",iconBefore:f.jsx(W.IconDotsVertical,{...ee,className:"text-secondary hover:text-accent-primary"})})}),l.map(({key:u,icon:h,tooltip:p,title:m,onClick:v,disabled:C})=>f.jsx(Vi,{className:"!p-[9px]",iconBefore:h,label:m,hideTitleOnMobile:!0,disabled:C,tooltipProps:{tooltip:p},onClick:w=>v?.({key:u,domEvent:w})},u))]})]})]})},LH=({open:e,itemsToDelete:t,onClose:i,onConfirm:s,cancelLabel:o="Cancel",confirmLabel:n="Delete",titleRenderer:r,contentRenderer:a})=>{const l=t.map(p=>p.name),d=r?.(l)||"Confirm Deleting Items",u=f.jsxs("div",{className:"px-6 py-3 dial-small-text",children:[f.jsx("p",{className:"text-secondary mb-3",children:t.length===1?f.jsxs(f.Fragment,{children:["Do you want to delete file or folder"," ",f.jsxs("span",{className:"text-primary break-all",children:['"',t[0].name,'"']}),"?"]}):f.jsxs(f.Fragment,{children:["Do you want to delete the following"," ",f.jsx("span",{className:"text-primary",children:t.length})," items?"]})}),t.length>1&&f.jsx(f.Fragment,{children:t.length<=10?f.jsx("ul",{className:"space-y-1 text-primary list-none",children:t.map(p=>f.jsx("li",{className:"truncate",children:p.name},p.path))}):f.jsxs(f.Fragment,{children:[f.jsx("ul",{className:"space-y-1 text-primary list-none mb-2",children:t.slice(0,10).map(p=>f.jsx("li",{className:"truncate",children:p.name},p.path))}),f.jsxs("p",{className:"text-secondary italic",children:["... and ",t.length-10," more"]})]})})]}),h=a?.(l)||u;return f.jsx(z1,{open:e,header:d,confirmLabel:n,cancelLabel:o,variant:En.Danger,onClose:i,onConfirm:s,children:h})},Dm=e=>e.split("/").map(t=>t.trim()).filter(Boolean),OH="w-full flex items-center justify-between gap-4",NH="min-w-0 h-[38px] flex-1 overflow-hidden bg-layer-3 px-3 flex items-center rounded",HH="w-[260px]",BH=({ariaLabel:e="Breadcrumb",labelClassName:t,onItemClick:i,path:s,makeHref:o,rootItemPath:n,rootItemLabel:r,breadcrumbsHiddenPathPart:a,className:l,breadcrumbClassName:c,searchable:d=!0,value:u,elementId:h="file-manager-search",disabled:p,invalid:m,onSearchChange:v,searchClassName:C,searchContainerClassName:w,isCompactView:b=!1})=>{const x=g.useMemo(()=>{if(!s)return;let D=Dm(s);const T=[...D];let P=0;if(a){const O=Dm(a);if(O.length){const _=D.findIndex((L,N)=>O.every((H,z)=>D[N+z]===H));_!==-1&&(P=O.length,D=[...D.slice(0,_),...D.slice(_+O.length)])}}if(!D.length)return[{label:"/"}];const k=D.map((O,_)=>{const L=_<D.length-P?_:_+P,N=T.slice(0,L+1),H=typeof o=="function"?o(N,L):void 0;return{label:O,href:H,onClick:i?z=>{z.preventDefault(),i(H)}:void 0}});if(n&&r){const O=n.split("/").filter(Boolean),_=s.split("/").filter(Boolean);if(O.every((N,H)=>_[H]===N)&&k.length>0){const N=k.slice(O.length);return[{label:r,href:n,onClick:i?H=>{H.preventDefault(),i(n)}:void 0},...N]}}return k},[s,a,n,r,o,i]),[y,S]=g.useState(!1),E=g.useCallback(()=>{if(b&&!y){S(!0);const D=document.getElementById(h);D&&D.focus()}},[h,y,b]),R=g.useCallback(()=>{(!u||String(u).trim()==="")&&v?.("")},[u,v]),F=g.useCallback(()=>b&&y?f.jsx(Vi,{className:"!p-[9px]",iconBefore:f.jsx(W.IconArrowLeft,{...ee}),onClick:()=>{S(!1),v?.("")}}):f.jsx("div",{className:NH,children:f.jsx(H1,{pathItems:x,ariaLabel:e,labelClassName:t,className:c})}),[e,c,x,y,b,t,v]);return f.jsxs("div",{className:ne(OH,{"gap-3":b},l),"aria-label":"navigation-panel",children:[F(),d&&f.jsx("div",{className:ne(HH,{"w-[40px]":b&&!y,"w-full":b&&y}),role:"search","aria-label":"Search",onClick:E,children:f.jsx(kp,{id:h,value:u??"",onChange:v,disabled:p,onBlur:R,invalid:m,className:C,wrapperClassName:b&&!y?"pl-2.5":"",containerClassName:w})})]})},GH=({tabs:e,activeTab:t,onTabChange:i,areHiddenFilesVisible:s,onToggleHiddenFiles:o,isNewButtonVisible:n,isNewButtonDisabled:r,newButtonVariant:a=Ye.Primary,newButtonDropdownItems:l=[],newButtonLabel:c="New",hiddenFilesSwitcherLabel:d="Hidden files",showHiddenFilesLabel:u="Show hidden files",hideHiddenFilesLabel:h="Hide hidden files",showHiddenFilesToggle:p=!0,disabledNewButtonTooltip:m})=>{const v=Bp(),C=g.useMemo(()=>[{key:"hidden-files-switch",label:s?h:u,icon:s?f.jsx(W.IconEyeOff,{...ee,className:"text-secondary"}):f.jsx(W.IconEye,{...ee,className:"text-secondary"}),onClick:()=>o?.(!s)}],[s,h,u,o]),w=()=>e&&t&&i?f.jsx(A1,{tabs:e,activeTab:t,onClick:y=>i(y),screenThreshold:jl.Tablet,smallScreenContainerClassName:"w-fit bg-transparent h-[38px] overflow-hidden",smallScreenDropdownItemClassName:"px-3 h-[38px]"}):null,b=()=>f.jsxs(f.Fragment,{children:[p&&f.jsxs(f.Fragment,{children:[f.jsx(xc,{switchId:"hidden-files-switch",label:d,isOn:s,onChange:o}),f.jsx("div",{className:"h-6 border-l border-primary"})]}),n&&f.jsx(jt,{tooltip:r&&m?m:void 0,children:f.jsx(eh,{label:c,variant:a,items:l,disabled:r})})]}),x=()=>f.jsxs(f.Fragment,{children:[f.jsx(Nt,{menu:{items:C},allowedPlacements:["bottom","bottom-start"],children:f.jsx(di,{className:"h-[38px]",iconBefore:f.jsx(W.IconDotsVertical,{...ee,className:"text-secondary hover:text-accent-primary"})})}),n?f.jsx(jt,{tooltip:r&&m?m:void 0,children:f.jsx(eh,{label:c,variant:a,items:l,disabled:r})}):null]});return f.jsxs("div",{className:"flex w-full justify-between gap-4 items-center overflow-x-auto",children:[f.jsx("div",{className:"flex-1 min-w-0",children:w()}),f.jsx("div",{className:"flex gap-4 shrink-0 items-center",children:v?x():b()})]})},VH=100,sr=16,Pi="text-secondary",qa="text-primary min-w-0",zH="text-primary break-words min-w-0",or="bg-layer-2",WH=({open:e,onClose:t,fileMetadata:i,loading:s=!1,header:o="Information",nameLabel:n="Name:",pathLabel:r="Path:",modifiedDateLabel:a="Modified Date:",sizeLabel:l="Size:",authorLabel:c="Author:",dateLocale:d="en-US",dateOptions:u})=>f.jsx(Do,{open:e,onClose:t,size:Xt.Sm,header:o,dividers:!1,children:f.jsx("div",{className:"px-6 py-4",children:f.jsx("div",{className:"grid gap-4 items-center dial-small-text",style:{gridTemplateColumns:`${VH}px 1fr`},children:s?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:Pi,children:n}),f.jsx(Yo,{variant:ai.Text,width:"100%",height:sr,className:or}),f.jsx("div",{className:Pi,children:a}),f.jsx(Yo,{variant:ai.Text,width:"90%",height:sr,className:or}),f.jsx("div",{className:Pi,children:l}),f.jsx(Yo,{variant:ai.Text,width:"60%",height:sr,className:or}),f.jsx("div",{className:Pi,children:c}),f.jsx(Yo,{variant:ai.Text,width:"80%",height:sr,className:or}),f.jsx("div",{className:Pi,children:r}),f.jsx(Yo,{variant:ai.Text,width:"70%",height:sr,className:or})]}):i?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:Pi,children:n}),f.jsx("div",{className:qa,children:f.jsx(bt,{text:i.name})}),f.jsx("div",{className:Pi,children:a}),f.jsx("div",{className:qa,children:f.jsx(bt,{text:iH(i.updatedAt,d,u)})}),f.jsx("div",{className:Pi,children:l}),f.jsx("div",{className:qa,children:f.jsx(bt,{text:Hr(i.contentLength)})}),f.jsx("div",{className:Pi,children:c}),f.jsx("div",{className:qa,children:f.jsx(bt,{text:i.author||"—"})}),f.jsx("div",{className:Pi,children:r}),f.jsx("div",{className:zH,children:decodeURIComponent(i.path)})]}):null})})}),jH={size:10,stroke:2},_H=26;var Qt=(e=>(e.File="file",e.Folder="folder",e))(Qt||{});const UH=({name:e,type:t,shared:i=!1,loading:s=!1,sharedIndicatorClassName:o,sharedIndicatorTooltip:n,fileExtension:r,...a})=>{const l=c=>f.jsxs("span",{className:"inline-flex relative text-secondary",role:"img",children:[c,i&&f.jsx("span",{className:"absolute -bottom-0.5 -left-0.5",children:f.jsx(Sr,{className:o,sharedIndicatorTooltip:n})})]});if(s)return l(f.jsx(Vr,{}));if(t===Qt.File){const c=r||(e.includes(".")?e.split(".").pop():void 0);return f.jsx(hh,{...a,extension:c??"",className:"text-secondary",indicator:i?f.jsx(Sr,{className:o,sharedIndicatorTooltip:n}):null,label:"File type icon"})}return t===Qt.Folder?l(f.jsx(Ue,{icon:f.jsx(W.IconFolder,{className:a.className,size:a.size??ee.size,stroke:a.stroke??ee.stroke}),className:"inline-block align-middle"})):null},$H=({name:e,type:t,elementId:i,loading:s=!1,shared:o=!1,iconClassName:n,iconIndicator:r,iconLabel:a,iconSize:l,iconStroke:c,inputInvalid:d,inputInvalidMessage:u,inputContainerClassName:h,inputIconAfter:p,inputRef:m,onChange:v,sharedIndicatorClassName:C,sharedIndicatorTooltip:w,fileExtension:b})=>{const x=()=>{const y=u?.startsWith(`${Ci.Warning}__`);if(!d&&!y)return null;const S=u?.replace(`${Ci.Warning}__`,"");return f.jsx(jt,{tooltip:S,children:p||(y?f.jsx(W.IconAlertTriangleFilled,{...ee,className:"text-warning-icon","aria-label":"warning"}):f.jsx(W.IconAlertCircleFilled,{...ee,className:"text-error","aria-label":"alert"}))})};return f.jsxs("div",{className:"flex gap-2 items-center",children:[f.jsx(UH,{name:e,type:t,label:a,className:n,indicator:r,size:l,stroke:c,loading:s,shared:o,fileExtension:b,sharedIndicatorClassName:C,sharedIndicatorTooltip:w}),f.jsx(is,{containerClassName:ne("!h-6 py-[1px] pl-[7px] pr-[7px]",h),id:i,value:e,onChange:v,invalid:d,iconAfter:x(),inputRef:m})]})};function gb({value:e,isEditing:t,restoreOnCancel:i=!0,onValidate:s,onSave:o,onCancel:n}){const[r,a]=g.useState(e),[l,c]=g.useState(!1),[d,u]=g.useState(""),h=g.useRef(null),p=g.useCallback((b=!1,x="")=>{c(b),u(x)},[]),m=g.useCallback(b=>{if(!s)return p(),!0;const x=s(b);return x?x.startsWith(`${Ci.Warning}__`)?(p(!1,x),!0):(p(!0,x),!1):(p(),!0)},[s,p]),v=g.useCallback(b=>{const x=b??"";a(x),m(x)},[m]),C=g.useCallback(()=>{m(r)?o?.(r):h.current?.focus()},[m,o,r]),w=g.useCallback(()=>{i&&a(e),p(),n?.()},[e,n,i,p]);return g.useEffect(()=>{t&&(a(e),p(),requestAnimationFrame(()=>{h.current?.focus(),h.current?.select()}))},[t,e,p]),g.useEffect(()=>{const b=h.current;if(!t||!b)return;const x=y=>{y.key==="Enter"?(y.preventDefault(),h.current?.blur()):y.key==="Escape"&&(y.preventDefault(),w())};return b.addEventListener("keydown",x),()=>b.removeEventListener("keydown",x)},[t,C,w]),g.useEffect(()=>{if(!t)return;const b=h.current;if(!b)return;const x=y=>{const S=y.relatedTarget;S&&b.contains(S)||(m(r)?C():b.focus())};return b.addEventListener("blur",x),()=>{b.removeEventListener("blur",x)}},[t,r,m,C]),{inputRef:h,value:r,onChange:v,invalid:l,invalidMessage:d}}const $l=({name:e,type:t,elementId:i,editing:s=!1,loading:o=!1,shared:n=!1,iconSize:r=qt,validate:a,onSave:l,fileExtension:c,onCancel:d,inputContainerClassName:u,sharedIndicatorClassName:h,sharedIndicatorTooltip:p,hideTooltip:m=!1,forbiddenSymbolsRegExp:v,forbiddenSymbolsTooltip:C,...w})=>{const{value:b,invalid:x,invalidMessage:y,onChange:S,inputRef:E}=gb({value:e,isEditing:s,onValidate:a,onCancel:d,onSave:l});if(!s){const R=Np({name:e,isFolder:t===Qt.Folder},v,C),F=!!R;return t===Qt.Folder?f.jsx(tc,{name:e,loading:o,shared:n,iconSize:r,className:"max-w-[428px] truncate",sharedIndicatorClassName:h,hideTooltip:m,isInvalidName:F,tooltipContent:R}):f.jsx(ec,{className:"max-w-[428px]",...w,name:e,shared:n,iconSize:r,sharedIndicatorClassName:h,hideTooltip:m,isInvalidName:F,tooltipContent:R})}return f.jsx($H,{type:t,name:b,elementId:i,inputInvalid:x,inputInvalidMessage:y,inputRef:E,onChange:S,iconSize:r,fileExtension:c,inputContainerClassName:u,sharedIndicatorTooltip:p,sharedIndicatorClassName:h})},qH=({items:e,showFiles:t=!1,expandedPaths:i,loadingPaths:s=new Set,loadedPaths:o=new Set,sharedByMePaths:n=new Set,selectedPath:r,emptyStateTitle:a="No Folders",emptyStateDescription:l,emptyStateIcon:c,areHiddenFilesVisible:d=!1,renamedPath:u,rootItemLabel:h,rootItemPath:p,onItemClick:m,getContextMenuItems:v,onRenameSave:C,onRenameCancel:w,onRenameValidate:b,onExpandedPathsChange:x,forbiddenSymbolsRegExp:y,forbiddenSymbolsTooltip:S})=>{const{expandedPaths:E,togglePath:R}=cb({expandedPaths:i??new Set,onExpandedPathsChange:x}),F=T=>{m?.(T),R(T.path)},D=(T,P)=>T.map(k=>{const{path:O,nodeType:_,name:L,items:N}=k,H=_===we.FOLDER;if(!d&&ob(k))return null;if(!H&&!t)return;const z=Array.isArray(N)&&N.length>0&&N.some(ie=>ie.nodeType===we.FOLDER||t),se=E.has(O),M=r===O,I=s.has(O),G=u===O,K=o.has(O),oe=n.has(O),ve=p&&h&&O===p&&H,Y=b&&(ie=>b(ie,k)),j=M?"bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded":"border-l-2 border-l-transparent",be=ve?[]:v?.(k)??[],J=y?Np({name:k.name,isFolder:H},y,S):void 0;return f.jsx("div",{className:"cursor-pointer text-secondary",children:f.jsxs("div",{className:"flex flex-col w-full","aria-label":"folder",children:[f.jsx(Nt,{trigger:[Yt.ContextMenu],className:"w-full",anchorToMouse:!0,menu:{items:be},children:f.jsxs("div",{style:{paddingLeft:`${P*_H}px`},className:ne("py-1 gap-[2px] dial-small-text flex justify-between hover:bg-accent-primary-alpha rounded group/item w-full mb-[2px] relative",j),"aria-selected":M,children:[!G&&f.jsx("div",{className:"absolute size-full left-0 top-0 z-0",onClick:()=>F(k)}),f.jsx("div",{className:"relative flex flex-row truncate items-center w-fit h-6 gap-x-1 pl-1",onClick:()=>!G&&F(k),children:f.jsxs(f.Fragment,{children:[H&&f.jsx(W.IconCaretRightFilled,{...jH,className:ge("flex-shrink-0",se&&"rotate-90 transition-all",K&&!z&&"text-transparent")}),f.jsx($l,{elementId:`${O}-tree-item`,name:ve?h:L,type:H?Qt.Folder:Qt.File,loading:I,shared:oe,sharedIndicatorClassName:ne("group-hover/item:bg-accent-primary-alpha",M&&"bg-accent-primary-alpha"),iconSize:xs,forbiddenSymbolsRegExp:y,forbiddenSymbolsTooltip:J,...!ve&&{editing:G,onSave:C,onCancel:w,validate:Y}})]})}),be.length>0&&!G&&!ve&&f.jsx("div",{className:"flex-1 flex justify-end",children:f.jsx(Nt,{placement:"bottom-start",allowedPlacements:["top-start","top-end"],menu:{items:be},className:"sticky right-0",children:f.jsx(Ue,{className:"invisible group-hover/item:visible text-secondary mx-2 flex flex-row gap-2 hover:text-accent-primary",icon:f.jsx(W.IconDotsVertical,{...ee})})})})]})}),se&&N&&D(N,P+1)]})},`${O}-children`)});return f.jsx("div",{className:"flex-1 size-full overflow-y-auto","aria-label":"folders-tree",children:e.length>0?D(e,0):f.jsx(zr,{title:a,description:l,icon:c})})},KH=({selectedFiles:e,actionLabels:t,onDuplicate:i,onCopy:s,onMove:o,onDownload:n,onUnshare:r,onRemoveAccess:a,onDelete:l,getCurrentFolderPath:c,sharedWithMeIds:d,sharedByMePaths:u,onClearSelection:h,forbiddenSymbolsRegExp:p})=>g.useMemo(()=>{const m=[],v=Array.from(e.values());if(!v.length||!t)return m;const C=yc(p),w=C?v.some(b=>C.test(b.name)):!1;if(t[Z.Move]&&!w&&m.push({key:Z.Move,label:t[Z.Move],title:t[Z.Move],icon:f.jsx(Ap,{width:ee.size,height:ee.size,className:"text-secondary"}),onClick:()=>o(v)}),t[Z.Copy]&&!w&&m.push({key:Z.Copy,label:t[Z.Copy],title:t[Z.Copy],icon:f.jsx(Mp,{width:ee.size,height:ee.size,className:"text-secondary"}),onClick:()=>s(v)}),t[Z.Duplicate]&&!w&&m.push({key:Z.Duplicate,label:t[Z.Duplicate],title:t[Z.Duplicate],icon:f.jsx(W.IconCopy,{...ee,className:"text-secondary"}),onClick:()=>i(v)}),t[Z.Delete]){const b=v.some(x=>x.permissions&&!x.permissions.includes(Po.WRITE));m.push({key:Z.Delete,label:t[Z.Delete],title:t[Z.Delete],icon:f.jsx(W.IconTrashX,{...ee,className:"text-secondary"}),disabled:b,tooltip:b?"Selected items contain item which can not be deleted":void 0,onClick:()=>{const x=c();l(v,x)}})}if(t[Z.Download]&&!w&&m.push({key:Z.Download,label:t[Z.Download],title:t[Z.Download],icon:f.jsx(W.IconDownload,{...ee,className:"text-secondary"}),onClick:()=>n(v)}),t[Z.Unshare]&&r){const b=v.some(x=>!d?.includes(x.path));m.push({key:Z.Unshare,label:t[Z.Unshare],title:t[Z.Unshare],disabled:b,tooltip:b?"Selected items contain item which can not be unshared":void 0,icon:f.jsx(Lp,{width:ee.size,height:ee.size,className:"text-secondary"}),onClick:()=>{r(v),h()}})}if(t[Z.RemoveAccess]&&a){const b=v.some(x=>!u?.has(x.path));m.push({key:Z.RemoveAccess,label:t[Z.RemoveAccess],title:t[Z.RemoveAccess],disabled:b,icon:f.jsx(W.IconUserX,{size:ee.size,className:"text-secondary"}),onClick:()=>{a(v),h()}})}return m},[e,t,r,a,o,s,i,c,l,n,d,h,u,p]);function Gp(e){if(!e)return null;if(e instanceof Date)return isFinite(e.getTime())?e:null;if(typeof e=="number"){const t=new Date(e);return isFinite(t.getTime())?t:null}if(typeof e=="string"){const t=e.trim();if(/^-?\d+$/.test(t)){const s=Number(t);return Gp(s)}const i=new Date(t);return isFinite(i.getTime())?i:null}return null}const fb=({value:e,locale:t=k1,options:i=I1,emptyPlaceholder:s,className:o,hideTooltip:n=!1})=>{const r=Gp(e),a=g.useMemo(()=>r?new Intl.DateTimeFormat(t,i).format(r):s,[r,s,t,i]),l=r?r.toISOString():void 0;return f.jsx(bt,{text:l?f.jsx("time",{dateTime:l,children:a}):f.jsx("span",{children:a}),className:ge(fO,o),hideTooltip:n})},YH=({id:e,name:t,nodeType:i,size:s,updatedAt:o,dateLocale:n,dateOptions:r,shared:a,sharedIndicatorClassName:l,hideTooltip:c=!1,forbiddenSymbolsRegExp:d,forbiddenSymbolsTooltip:u})=>f.jsx("div",{className:"flex",children:f.jsx("div",{className:"flex flex-1 min-w-0",children:f.jsx($l,{type:i===we.FOLDER?Qt.Folder:Qt.File,name:t,elementId:e,shared:a,iconSize:xs,sharedIndicatorClassName:l,hideTooltip:c,forbiddenSymbolsRegExp:d,forbiddenSymbolsTooltip:u,details:f.jsxs("div",{className:"flex items-center gap-1 dial-tiny-text text-secondary",children:[f.jsx("span",{children:i===we.ITEM?Hr(s):""}),o&&s&&f.jsx(W.IconCircleFilled,{size:2,className:"text-secondary"}),o?f.jsx("span",{children:f.jsx(fb,{value:o,locale:n?.toString(),options:r,className:"dial-tiny-text text-secondary",hideTooltip:c})}):null]})})})}),mb=e=>(t,i,s)=>({colId:gt.Name,field:"name",headerName:e,flex:1,minWidth:200,cellRenderer:o=>{const n=o.data.nodeType,{saveFolderCreation:r,validateFolderName:a,cancelFolderCreation:l,newFolderTempId:c,sharedByMePaths:d,selectedPaths:u,disabledRowIds:h}=o.context,p=d?.has(o.data.path),m=u?.has(o.data.path),v=h?.has(o.data.path)??!1,C=ne(["group-hover/grid-row:bg-accent-primary-alpha",m&&"bg-accent-primary-alpha"]);if(o.data?.isTemporary&&o.data.id===c)return f.jsx($l,{name:"",type:Qt.Folder,elementId:`new-folder-${o.data.id}`,editing:!0,shared:p,sharedIndicatorClassName:C,iconSize:xs,validate:a,onSave:r,onCancel:l,inputContainerClassName:ne(["!h-9",s&&n===we.ITEM&&"!h-10"])});const{renameTriggerView:w,renamedPath:b,renamedItem:x,getDisplayName:y,onRenameValidate:S,onRenameSave:E,onRenameCancel:R}=o.context;if(w===mn.Grid&&b===o.data?.path&&x&&o.data){const T=y(x);return f.jsx($l,{name:T,type:n===we.FOLDER?Qt.Folder:Qt.File,fileExtension:x.name.split(".").pop(),elementId:`rename-${o.data.id}`,editing:!0,shared:p,sharedIndicatorClassName:C,iconSize:xs,validate:P=>S(P,x),onSave:E,onCancel:R,inputContainerClassName:ne(["!h-9",s&&n===we.ITEM&&"!h-10"]),forbiddenSymbolsRegExp:o.context.forbiddenSymbolsRegExp})}if(s)return f.jsx(YH,{id:o.data.id,name:o.data.name,nodeType:n,size:o.data.size,shared:p,sharedIndicatorClassName:C,updatedAt:o.data.updatedAt,dateLocale:t,dateOptions:i,hideTooltip:v,forbiddenSymbolsRegExp:o.context.forbiddenSymbolsRegExp,forbiddenSymbolsTooltip:o.context.forbiddenSymbolsTooltip});const D=Np({name:o.data.name,isFolder:n===we.FOLDER},o.context.forbiddenSymbolsRegExp,o.context.forbiddenSymbolsTooltip);return n===we.FOLDER?f.jsx(tc,{name:o.data.name,shared:p,sharedIndicatorClassName:C,iconSize:xs,hideTooltip:v,isInvalidName:!!D,tooltipContent:D}):f.jsx(ec,{name:o.data.name,shared:p,sharedIndicatorClassName:C,iconSize:xs,hideTooltip:v,isInvalidName:!!D,tooltipContent:D})}}),vb=e=>(t,i)=>({colId:gt.UpdatedAt,field:"updatedAt",headerName:e,width:168,suppressSizeToFit:!0,cellRenderer:s=>{const o=s.context?.disabledRowIds?.has(s.data?.path)??!1;return f.jsx(fb,{...s,hideTooltip:o})},cellRendererParams:{locale:t,options:i},filterValueGetter:s=>{const o=s.data[s.colDef.field||""],n=Gp(o);return n?new Intl.DateTimeFormat(t||k1,i||I1).format(n):""}}),Cb=e=>({colId:gt.Size,field:"size",headerName:e,width:120,suppressSizeToFit:!0,cellRenderer:t=>t.data.nodeType===we.ITEM?Hr(t.data.contentLength):"",filterValueGetter:t=>t.data.nodeType===we.ITEM?Hr(t.data.contentLength):""}),ZH=e=>{const t=e.event;if(!(t?.target??null)?.closest("input")||!t)return!1;switch(t.key){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":case"Home":case"End":return!0;default:return!1}};function XH({userColumnDefs:e,filterable:t,dateLocale:i,dateOptions:s,effectiveVisibleColumns:o,isCompactView:n,hasActions:r,actionsColumnDef:a,rootItemLabel:l,rootItemPath:c}){const d=g.useMemo(()=>[mb("Name")(i,s,n),{colId:gt.Path,field:"path",headerName:"Path",flex:1,minWidth:200,cellRenderer:h=>{const p=h.context?.disabledRowIds?.has(h.data.path)??!1;let m=h.data.path;if(h.context?.hideSearchPathItemName&&(h.data.parentPath?m=h.data.parentPath:m=m.replace(/\/[^/]+\/?$/,"")||"/"),!c||!l)return f.jsx(bt,{text:m,hideTooltip:p});const v=m.replace(c,l);return f.jsx(bt,{text:v,hideTooltip:p})}},vb("Modified Date")(i,s),Cb("Size"),{colId:gt.Author,field:"author",headerName:"Author",width:200,suppressSizeToFit:!0,cellRenderer:h=>h.data.author},{colId:gt.Owner,field:"owner",headerName:"Owner",width:200,suppressSizeToFit:!0,cellRenderer:h=>h.data.owner}],[i,s,n,l,c]);return{columnDefs:g.useMemo(()=>{const h=e?.map(v=>typeof v=="function"?v(i,s,n):v);let p=h??d;h||(p=p.filter(v=>v.colId&&o.includes(v.colId))),r&&(n&&(p=p.slice(0,1)),p.push(a));const m=v=>v.colId===gt.Name;return p.map(v=>{const C={...v,filter:t?v.filter:!1,floatingFilter:t?v.floatingFilter:!1};return m(v)&&!v.suppressKeyboardEvent&&(C.suppressKeyboardEvent=ZH),C})},[a,i,s,d,o,t,r,n,e])}}const wb=()=>{const e=g.useContext(ab);if(!e)throw new Error("useFileManagerContext must be used within <FileManagerProvider>");return e},QH=({actionLabels:e,onDuplicate:t,onCopy:i,onMove:s,onDownload:o,onRename:n,onDelete:r,onInfo:a,onUnshare:l,onRemoveAccess:c,sharedWithMeIds:d,sharedByMePaths:u,onAddSibling:h,onAddChild:p,onManagePermissions:m,onPreview:v,onOpenInNewTab:C,previewExtensions:w,isRenameFileAvailable:b=!0,isDuplicateFolderAvailable:x=!0,forbiddenSymbolsRegExp:y})=>g.useMemo(()=>S=>{const E=[];if(!e)return E;const R=yc(y)?.test(S.name);e[Z.AddSibling]&&typeof h=="function"&&S.nodeType===we.FOLDER&&E.push({key:"addSibling",label:e[Z.AddSibling],icon:f.jsx(sb,{width:ee.size,height:ee.size,className:"text-secondary"}),onClick:()=>h(S)}),e[Z.AddChild]&&typeof p=="function"&&S.nodeType===we.FOLDER&&!R&&E.push({key:"addChild",label:e[Z.AddChild],icon:f.jsx(ib,{width:ee.size,height:ee.size,className:"text-secondary"}),onClick:()=>p(S)},{key:"divider",type:Fn.Divider}),e[Z.OpenInNewTab]&&typeof C=="function"&&S.nodeType===we.ITEM&&!R&&E.push({key:Z.OpenInNewTab,label:e[Z.OpenInNewTab],icon:f.jsx(W.IconExternalLink,{...ee,className:"text-secondary"}),onClick:()=>C?.(S)});const F=S.nodeType===we.ITEM||S.nodeType===we.FOLDER&&x;e[Z.Duplicate]&&F&&!R&&E.push({key:Z.Duplicate,label:e[Z.Duplicate],icon:f.jsx(W.IconCopy,{...ee,className:"text-secondary"}),onClick:()=>t(S)}),e[Z.Copy]&&!R&&E.push({key:Z.Copy,label:e[Z.Copy],icon:f.jsx(Mp,{width:ee.size,height:ee.size,className:"text-secondary"}),onClick:()=>i(S)}),e[Z.Move]&&!R&&E.push({key:Z.Move,label:e[Z.Move],icon:f.jsx(Ap,{width:ee.size,height:ee.size,className:"text-secondary"}),onClick:()=>s(S)}),e[Z.Download]&&!R&&E.push({key:Z.Download,label:e[Z.Download],icon:f.jsx(W.IconDownload,{...ee,className:"text-secondary"}),onClick:()=>o(S)}),e[Z.ManagePermissions]&&typeof m=="function"&&S.nodeType===we.FOLDER&&!R&&E.push({key:Z.ManagePermissions,label:e[Z.ManagePermissions],icon:f.jsx(W.IconExternalLink,{...ee,className:"text-secondary"}),onClick:()=>m?.(S.path)});const D=S.name.split("."),T=D.length>1?D[D.length-1]:"",P=T&&w?.includes(`.${T}`);e[Z.Preview]&&typeof v=="function"&&S.nodeType===we.ITEM&&P&&!R&&E.push({key:Z.Preview,label:e[Z.Preview],icon:f.jsx(W.IconEye,{...ee,className:"text-secondary"}),onClick:()=>v?.(S.path)});const k=!S.permissions||S.permissions.includes(Po.WRITE);e[Z.Delete]&&k&&E.push({key:Z.Delete,label:e[Z.Delete],icon:f.jsx(W.IconTrashX,{...ee,className:"text-secondary"}),onClick:()=>r(S,S.parentPath??"")});const O=S.nodeType===we.FOLDER||S.nodeType===we.ITEM&&b;return e[Z.Rename]&&O&&E.push({key:Z.Rename,label:e[Z.Rename],icon:f.jsx(W.IconPencilMinus,{...ee,className:"text-secondary"}),onClick:()=>n(S.path)}),e[Z.Info]&&S.nodeType===we.ITEM&&!R&&E.push({key:Z.Info,label:e[Z.Info],icon:f.jsx(W.IconInfoCircle,{...ee,className:"text-secondary"}),onClick:()=>a(S)}),e[Z.Unshare]&&d?.includes(S.path)&&E.push({key:Z.Unshare,label:e[Z.Unshare],icon:f.jsx(Lp,{width:ee.size,height:ee.size,className:"text-secondary"}),onClick:()=>l(S)}),e[Z.RemoveAccess]&&u?.has(S.path)&&c&&E.push({key:Z.RemoveAccess,label:e[Z.RemoveAccess],icon:f.jsx(W.IconUserX,{size:ee.size,className:"text-secondary"}),onClick:()=>c(S)}),E},[e,h,p,t,i,s,o,r,n,a,l,c,d,u,m,v,C,w,b,x,y]),bb=e=>f.jsx(hb,{...e,children:f.jsx(JH,{})}),JH=()=>{const{managerLabel:e,className:t,items:i,rootItem:s,filesLoading:o,treeOptions:n,showNavigationPanel:r,navigationPanelOptions:a,gridOptions:l,toolbarOptions:c,bulkActionsToolbarOptions:d,deleteConfirmationOptions:u,destinationFolderPopupOptions:h,conflictResolutionPopupOptions:p,compactViewWidthBreakpoint:m=WN,customBreakpointRef:v,sharedByMePaths:C,allowedFileTypes:w,maxSelectableFileSize:b,areHiddenFilesVisible:x,toggleHiddenFilesVisibility:y,isTreeCollapsed:S,toggleTreeCollapse:E,currentPath:R,gridRows:F,selectedPaths:D,selectedFiles:T,clearSelection:P,setSelectedPaths:k,effectiveSearchValue:O,handleBreadcrumbItemClick:_,handleSearchChange:L,handleTreeItemClick:N,handleTableRowClick:H,handleSelectionClick:z,onGridApiChange:se,handleOpenDestinationFolderPopup:M,handleCloseDestinationFolderPopup:I,openDestinationFolderPopup:G,destinationFolderMode:K,handleSetCopiedFiles:oe,handleSetMovedFiles:ve,handleDuplicate:Y,handleCopyTo:j,handleMoveTo:be,handleAddSibling:J,handleAddChild:ie,handleDownloadFiles:U,openDeleteConfirmation:ae,closeDeleteConfirmation:V,confirmDelete:ue,deleteConfirmationOpen:pe,itemsToDelete:Te,renamedPath:Re,renamedItem:le,onRename:Ee,onRenameSave:De,onRenameCancel:Pe,onRenameValidate:Ce,forbiddenSymbolsRegExp:Ie,forbiddenSymbolsTooltip:He,getDisplayName:kt,isDragging:et,isDraggingOverWindow:mt,handleDragEnter:je,handleDragLeave:q,handleDragOver:Ve,handleDrop:pi,onUploadFiles:Nn,onValidateUpload:Rc,maxFileSize:Fc,newActions:Bs,isNewButtonVisible:Hn,isNewButtonDisabled:To,newFolderTempId:Zr,cancelFolderCreation:ko,saveFolderCreation:Xr,validateFolderName:Qr,startFolderCreation:Jr,conflictingFiles:Ec,conflictResolutionOpen:Dc,handleConflictReplace:ns,handleConflictDuplicate:Wi,handleConflictCancel:ji,handleConflictDecideForEach:Gs,uploadConflictingFiles:rs,uploadConflictResolutionOpen:Pc,handleUploadConflictReplace:Tc,handleUploadConflictDuplicate:kc,handleUploadConflictCancel:Ic,handleUploadConflictDecideForEach:nt,openMetadataPopup:Mc,fileMetadataPopupOptions:Rt,isMetadataPopupOpen:Bn,selectedFileForMetadata:Gn,closeMetadataPopup:Vn,onUnshareFiles:Io,onRemoveFilesAccess:Mo,actionsRef:Ac,searchInProgress:Ao,isSearchMode:_i,emptyStateIcon:ea,emptyStateTitle:ta="You don't have any files",emptyStateDescription:ia="Upload or drag and drop files",sharedWithMeIds:Lo,onFolderPopupPathChange:Lc,onManagePermissions:Oo,onPreview:Oc,onOpenInNewTab:Nc,previewExtensions:Hc,isRenameFileAvailable:Bc,isDuplicateFolderAvailable:Gc,getDisabledTooltip:zn,fileTooLargeTooltip:sa,unsupportedFileTypeTooltip:No,gridClassName:Vc,nonClickableTableColumns:Wn,hideSearchPathItemName:Ft,showHiddenFileSwitcherInDestinationPopup:oa}=wb(),{width:dt=NN,header:na=HN,containerClassName:ra=AN,additionalButtons:aa,...la}=n??{},[Ho,Bo]=g.useState(dt),{renameTriggerView:Go,onGridRename:zc,onTreeRename:ca}=UN({onRename:Ee}),jn=g.useRef(null),Wc=X=>{jn.current===null&&(jn.current=requestAnimationFrame(()=>{Bo(X),jn.current=null}))},{columnDefs:jc,filterable:_c=!0,dateLocale:Uc,dateOptions:$c,selectionMode:da,wrapCustomCellRenderers:ua,visibleColumns:ha=jN,allowDisabledContextMenu:Vo=!1,...as}=l??{},{containerRef:qc,isBelowBreakpoint:Bt}=$N(m,v),Kc=g.useMemo(()=>_i?[gt.Name,gt.Path,gt.Actions]:ha,[_i,ha]),_n=g.useCallback((X,Ze,tt)=>nH(X,Ze,tt,No,sa),[sa,No]),zo=g.useCallback((X,Ze,tt)=>!!_n(X,Ze,tt),[_n]),Vs=g.useMemo(()=>{const X=new Set;for(const Ze of F)zo(Ze,w,b)&&X.add(Ze.path);return X},[w,b,F,zo]),pa=g.useCallback(X=>{const Ze=[],tt=[],ti=!X.parentPath,Fi=Ie?.test(X.name);return n?.actionLabels&&(n.actionLabels[Z.AddSibling]&&typeof J=="function"&&X.nodeType===we.FOLDER&&!ti&&Ze.push({key:"addSibling",label:n.actionLabels[Z.AddSibling],icon:f.jsx(sb,{width:ee.size,height:ee.size,className:"text-secondary"}),onClick:()=>J([X])}),n.actionLabels[Z.AddChild]&&typeof ie=="function"&&X.nodeType===we.FOLDER&&!Fi&&Ze.push({key:"addChild",label:n.actionLabels[Z.AddChild],icon:f.jsx(ib,{width:ee.size,height:ee.size,className:"text-secondary"}),onClick:()=>ie([X])}),n.actionLabels[Z.Duplicate]&&!ti&&!Fi&&tt.push({key:"duplicate",label:n.actionLabels[Z.Duplicate],icon:f.jsx(W.IconCopy,{...ee,className:"text-secondary"}),onClick:()=>Y([X])}),n.actionLabels[Z.Copy]&&!ti&&!Fi&&tt.push({key:pt.Copy,label:n.actionLabels[Z.Copy],icon:f.jsx(Mp,{width:ee.size,height:ee.size,className:"text-secondary"}),onClick:()=>{oe([X]),M(pt.Copy)}}),n.actionLabels[Z.Move]&&!ti&&!Fi&&tt.push({key:pt.Move,label:n.actionLabels[Z.Move],icon:f.jsx(Ap,{width:ee.size,height:ee.size,className:"text-secondary"}),onClick:()=>{ve([X]),M(pt.Move)}}),n.actionLabels[Z.Download]&&!ti&&!Fi&&tt.push({key:"download",label:n.actionLabels[Z.Download],icon:f.jsx(W.IconDownload,{...ee,className:"text-secondary"}),onClick:()=>U([X])}),n.actionLabels[Z.Rename]&&!ti&&tt.push({key:"rename",label:n.actionLabels[Z.Rename],icon:f.jsx(W.IconPencilMinus,{...ee,className:"text-secondary"}),onClick:()=>ca(X.path)}),n.actionLabels[Z.Unshare]&&Lo?.includes(X.path)&&!ti&&tt.push({key:"unshare",label:n.actionLabels[Z.Unshare],icon:f.jsx(Lp,{width:ee.size,height:ee.size,className:"text-secondary"}),onClick:()=>Io?.([X])}),n.actionLabels[Z.RemoveAccess]&&C?.has(X.path)&&!ti&&tt.push({key:Z.RemoveAccess,label:n.actionLabels[Z.RemoveAccess],icon:f.jsx(W.IconUserX,{size:ee.size,className:"text-secondary"}),onClick:()=>Mo?.([X])}),n.actionLabels[Z.ManagePermissions]&&typeof Oo=="function"&&X.nodeType===we.FOLDER&&!ti&&tt.push({key:Z.ManagePermissions,label:n.actionLabels[Z.ManagePermissions],icon:f.jsx(W.IconExternalLink,{...ee,className:"text-secondary"}),onClick:()=>Oo?.(X.path)}),n.actionLabels[Z.Delete]&&X.permissions?.includes(Po.WRITE)&&!ti&&tt.push({key:"delete",label:n.actionLabels[Z.Delete],icon:f.jsx(W.IconTrashX,{...ee,className:"text-secondary"}),onClick:()=>ae([X],X.parentPath??"")})),Ze.length?tt.length===0?Ze:Ze.length===0?tt:[...Ze,{key:"divider",type:Fn.Divider},...tt]:tt},[n?.actionLabels,J,Ie,ie,Oo,Y,oe,M,ve,U,ca,Io,Mo,Lo,C,ae]),ga=g.useMemo(()=>{const X=new Set;return T.forEach((Ze,tt)=>X.add(tt)),X},[T]),fa=g.useCallback((X,Ze)=>{k(X),z?.(Ze)},[z,k]),ma=KH({selectedFiles:T,actionLabels:d?.actionLabels,onDuplicate:Y,onCopy:X=>{oe(X),M(pt.Copy)},onMove:X=>{ve(X),M(pt.Move)},onDownload:U,onDelete:ae,onUnshare:Io,onRemoveAccess:Mo,getCurrentFolderPath:()=>R??"/",sharedWithMeIds:Lo,sharedByMePaths:C,onClearSelection:P,forbiddenSymbolsRegExp:Ie}),Un=g.useCallback(X=>{c?.onTabChange?.(X),ko()},[c,ko]),Yc=g.useCallback(()=>c&&D.size===0?f.jsxs("div",{className:Cm,role:"toolbar","aria-label":"File Manager Toolbar",children:[e,f.jsx(GH,{...c,onTabChange:Un,areHiddenFilesVisible:x,onToggleHiddenFiles:y,isNewButtonVisible:Hn,isNewButtonDisabled:To,newButtonDropdownItems:Bs})]}):D.size>0&&d?f.jsx("div",{className:Cm,role:"toolbar","aria-label":"File Manager Toolbar",children:f.jsx(AH,{...d,selectedCount:D.size,onClearSelection:P,actions:ma})}):null,[Un,d,D,P,ma,x,y,c,Hn,To,Bs,e]);g.useImperativeHandle(Ac,()=>({createFolder:Jr}),[Jr]);const va=g.useCallback(()=>Bt?null:f.jsx("aside",{role:"region","aria-label":"File Manager Tree Navigation",className:"min-h-0 min-w-0 h-full flex-none",children:f.jsx(lv,{defaultWidth:Ho,width:Ho,onResizeStop:Bo,onResize:Wc,minWidth:GN,maxWidth:VN,enabled:!S,children:f.jsx(Km,{width:Ho,title:na,containerClassName:ra,titleClassName:"dial-body-text text-primary",additionalButtons:aa,isOpened:!S,onToggle:E,children:f.jsx(qH,{...la,items:i,rootItemPath:s?.path,rootItemLabel:s?.label,selectedPath:R,sharedByMePaths:C,forbiddenSymbolsRegExp:Ie,forbiddenSymbolsTooltip:He,onItemClick:N,areHiddenFilesVisible:x,getContextMenuItems:pa,renamedPath:Go===mn.Tree?Re:void 0,onRenameSave:De,onRenameCancel:Pe,onRenameValidate:Ce})})})}),[Bt,Ho,S,na,ra,aa,E,la,i,s?.path,s?.label,R,C,Ie,He,N,x,pa,Go,Re,De,Pe,Ce]),Ca=QH({actionLabels:l?.actionLabels,onDuplicate:X=>Y([X]),onCopy:X=>{oe([X]),M(pt.Copy)},onMove:X=>{ve([X]),M(pt.Move)},onDownload:X=>U([X]),onRename:zc,onDelete:(X,Ze)=>ae([X],Ze),onInfo:X=>Mc(X),onUnshare:X=>Io?.([X]),onRemoveAccess:X=>Mo?.([X]),sharedWithMeIds:Lo,sharedByMePaths:C,onAddChild:X=>ie?.([X]),onAddSibling:X=>J?.([X]),onManagePermissions:X=>Oo?.(X),onPreview:X=>Oc?.(X),onOpenInNewTab:X=>Nc?.(X),previewExtensions:Hc,isRenameFileAvailable:Bc,isDuplicateFolderAvailable:Gc,forbiddenSymbolsRegExp:Ie}),Wo=g.useCallback(X=>{const Ze=Qi(i,X.path);return Ze?Ca(Ze):[]},[i,Ca]),Zc=g.useCallback((X,Ze,tt)=>Vo?!1:zo(X,Ze,tt),[Vo,zo]),{actionsColumnDef:Xc}=_N({getContextMenuItems:Wo,isRowDisabled:Zc,allowedFileTypes:w,buttonClassName:Bt?"":ON}),{columnDefs:$n}=XH({userColumnDefs:jc,filterable:_c,dateLocale:Uc,dateOptions:$c,effectiveVisibleColumns:Kc,isCompactView:Bt,hasActions:!!l?.actionLabels,actionsColumnDef:Xc,rootItemLabel:s?.label,rootItemPath:s?.path}),wa=g.useCallback(X=>{X.colDef.colId==="ag-Grid-SelectionColumn"||X.colDef.colId===gt.Actions||Re&&X.data?.path===Re||X.data?.isTemporary||Wn&&Wn.includes(X.colDef.colId)||X.data&&H(X.data)},[Re,H,Wn]),ba=g.useCallback(()=>f.jsx(zr,{title:ta,description:ia,descriptionClassName:"text-sm",containerClassName:"gap-3 size-full bg-layer-2 border rounded-[4px] border-primary",titleClassName:"mt-2 !text-lg",icon:ea||f.jsx(W.IconFileDescription,{size:100,stroke:.5,className:"text-secondary"})}),[ia,ea,ta]),xa=g.useMemo(()=>X=>X.path,[]),ya=g.useMemo(()=>ge("min-h-[248px] overflow-auto md:min-h-[266px]",et?"border border-dashed border-accent-primary":"",mt&&!et?"border border-dashed border-primary":""),[et,mt]),Sa=g.useMemo(()=>({...as.additionalGridOptions,onCellClicked:wa,headerHeight:Qd,rowHeight:Qd,rowClass:"group/grid-row",defaultColDef:{...as.additionalGridOptions?.defaultColDef,floatingFilter:a?.searchable?!1:as.additionalGridOptions?.defaultColDef?.floatingFilter},...Bt?{getRowHeight:X=>X.data?.nodeType===we.FOLDER?Qd:zN}:{},context:{cancelFolderCreation:ko,saveFolderCreation:Xr,getDisplayName:kt,onRenameCancel:Pe,onRenameSave:De,onRenameValidate:Ce,renameTriggerView:Go,validateFolderName:Qr,renamedItem:le,renamedPath:Re,newFolderTempId:Zr,sharedByMePaths:C,selectedPaths:D,disabledRowIds:Vs,forbiddenSymbolsRegExp:Ie,forbiddenSymbolsTooltip:He,hideSearchPathItemName:Ft}}),[as.additionalGridOptions,wa,a?.searchable,Bt,ko,Xr,kt,Pe,De,Ce,Go,Qr,le,Re,Zr,C,D,Vs,Ie,He,Ft]),Ra=g.useMemo(()=>F.length===0&&!_i&&!o?ba():f.jsx(Dp,{columnDefs:$n,rowData:F,getRowId:xa,loading:o||Ao,getContextMenuItems:Wo,withoutHeaderBorders:Bt,onGridApiChange:se,className:ya,...as,selectionMode:da,wrapCustomCellRenderers:ua,additionalGridOptions:Sa,selectedRowIds:ga,onSelectionChange:fa,wrapperBorder:!et&&!mt,disabledRowIds:Vs,allowDisabledContextMenu:Vo}),[F,_i,o,ba,$n,xa,Ao,Wo,Bt,se,ya,as,da,ua,Sa,ga,fa,et,mt,Vs,Vo]);return f.jsx("section",{ref:qc,className:"size-full",children:f.jsxs("div",{className:ne(kN,{"gap-3 pt-4":d&&D.size>0,"gap-4 p-3 pt-4":Bt,"gap-2 pt-2":Bt&&d&&D.size>0},t),children:[Yc(),f.jsxs("div",{className:ne(IN,Vc),children:[va(),f.jsxs("div",{className:ne(MN,{"gap-3":Bt}),children:[r&&f.jsx(BH,{...a??{},makeHref:X=>X.join("/"),path:R,onItemClick:_,rootItemPath:s?.path,rootItemLabel:s?.label,value:O,onSearchChange:L,isCompactView:Bt,labelClassName:"dial-tiny-text"}),f.jsxs("section",{role:"region","aria-label":"File Manager Grid View",className:ne(LN,"relative"),onDragEnter:je,onDragLeave:q,onDragOver:Ve,onDrop:pi,children:[Ra,f.jsx(TH,{disabledGridRowIds:Vs,gridRows:F,getDisabledTooltip:zn,getRowDisabledTooltip:_n,allowedFileTypes:w,maxSelectableFileSize:b})]})]})]}),f.jsx(LH,{...u,open:pe,itemsToDelete:Te,onClose:V,onConfirm:ue}),f.jsx(pb,{...h,open:G,onClose:I,onConfirm:()=>{const X=h?.destinationFolderPath??"/";K===pt.Copy?j(X):be(X),I()},mode:K,items:i,rootItem:s,gridOptions:{columnDefs:$n.filter(X=>X.colId!==gt.Actions),loading:o},onUploadFiles:Nn,onValidateUpload:Rc,maxFileSize:Fc,path:h?.destinationFolderPath??h?.sourceFolder??R,onPathChange:X=>{h?.setDestinationFolderPath?.(X)},sourceFolder:h?.sourceFolder??R,treeOptions:{header:n?.header},onFolderPopupPathChange:Lc,showHiddenFileSwitcher:oa,hideSearchPathItemName:Ft}),f.jsx(wm,{...p,open:Dc,onClose:ji,onReplace:ns,onDuplicate:Wi,onDecideForEach:Gs,conflictingFiles:Ec}),f.jsx(wm,{...p,open:Pc,onClose:Ic,onReplace:Tc,onDuplicate:kc,onDecideForEach:nt,conflictingFiles:rs}),f.jsx(WH,{open:Bn,onClose:Vn,fileMetadata:Rt?.fileMetadata??Gn,loading:Rt?.loading,header:Rt?.header,nameLabel:Rt?.nameLabel,pathLabel:Rt?.pathLabel,modifiedDateLabel:Rt?.modifiedDateLabel,sizeLabel:Rt?.sizeLabel,authorLabel:Rt?.authorLabel,dateLocale:l?.dateLocale,dateOptions:l?.dateOptions})]})})},eB=(e,t=on.MyFiles)=>{const i=Object.values(on).includes(t)?t:on.MyFiles,[s,o]=g.useState(i),n=a=>{o(a)},r=g.useMemo(()=>{if(e)return Object.values(on).map(a=>({id:a,label:e?.[a]||a.replace("_"," ")}))},[e]);return{activeTab:s,handleTabChange:n,tabs:r}},tB="application/octet-stream";function iB(e,t){if(!e||e.length===0)return[];const i=e.find(l=>l.parentPath===""&&l.nodeType==="FOLDER");if(!i)return[];const s=i.path||i.url||"",o=ou(s,!0),n=e.filter(l=>l!==i).map(l=>{const c=l.path||l.url||"",d=sB(l.nodeType),u=d===we.FOLDER,h=ou(c,u);let p;return l.parentPath===null||l.parentPath===void 0?p=o:l.parentPath===""?p="":p=ou(l.parentPath,!0),{...l,originalPath:c,path:h,parentPath:p,nodeType:d}}),r=new Map;n.forEach(l=>{const c={...l,id:l.originalPath,name:l.name,path:l.path,parentPath:l.parentPath,nodeType:l.nodeType,resourceType:oB(l.resourceType),folderId:t,updatedAt:l.updatedAt?new Date(l.updatedAt).toISOString():new Date().toISOString(),items:l.nodeType===we.FOLDER?[]:void 0};l.nodeType===we.ITEM&&(c.extension=nB(l.name),c.contentType=l.contentType||tB,c.contentLength=l.contentLength||0),r.set(l.path,c)});const a=[];return r.forEach(l=>{if(l.parentPath===o)a.push(l);else{const c=l.path.lastIndexOf(l.name||""),d=l.path.slice(0,c),u=r.get(d);u&&u.nodeType===we.FOLDER?(u.items=u.items||[],u.items.push(l)):a.push(l)}}),a}function ou(e,t){try{let i=decodeURIComponent(e);return t?i.endsWith("/")||(i+="/"):i.endsWith("/")&&(i=i.slice(0,-1)),i}catch{return t&&!e.endsWith("/")?e+"/":!t&&e.endsWith("/")?e.slice(0,-1):e}}function sB(e){return e.toUpperCase()==="FOLDER"?we.FOLDER:we.ITEM}function oB(e){if(!e)return;const t=e.toUpperCase();return Object.values(Op).find(s=>s.toUpperCase()===t)}function nB(e){const t=e.split(".");return t.length>1?t[t.length-1]:""}function rB(e,t="Prompts",i="prompts/public/",s="root"){const o=iB(e,s);return[{id:s,name:t,path:i,parentPath:"",nodeType:we.FOLDER,folderId:s,items:o}]}var xr=(e=>(e.Sections="sections",e.Flat="flat",e.FlatSections="flat-sections",e))(xr||{}),Br=(e=>(e.Select="select",e.Radio="radio",e))(Br||{}),Sc=(e=>(e.Row="row",e.Column="column",e))(Sc||{}),_e=(e=>(e.String="string",e.Number="number",e.Integer="integer",e.Boolean="boolean",e.Object="object",e.Array="array",e.Null="null",e))(_e||{});const aB={noItemSchema:"No item schema defined.",noItemsYet:"No items yet. Add one below.",addItem:"Add Item",selectTypeToAdd:"Select type to add…",noConfigurableProperties:"No configurable properties.",noFieldsYet:"No fields yet. Add one below.",keyColumnHeader:"Key",valueColumnHeader:"Value",addField:"Add Field",keyInputPlaceholder:"Enter key",stringInputPlaceholder:"Enter a value",integerInputPlaceholder:"Enter a whole number",numberInputPlaceholder:"Enter a number",enumSelectPlaceholder:"Select an option",selectTypePlaceholder:"Select type",removeItemAriaLabel:"Remove item",removeFieldAriaLabel:"Remove field"},xb=g.createContext(null);function Hs(){const e=g.useContext(xb);if(!e)throw new Error("useSchemaContext must be used inside DialSchemaRenderer");return e}function ze(e,t,i=0){if(!e.$ref||i>10)return e;const s=e.$ref.replace(/^#\//,"").split("/");let o=t;for(const c of s)o=o?.[c];if(!o||typeof o!="object")return e;const{$ref:n,...r}=e,a=o;return{...a.$ref?ze(a,t,i+1):a,...r}}function yb(e){return e==null||e===""}function On(e){return e.type===_e.Object||e.properties!=null&&e.oneOf==null&&e.anyOf==null&&e.type==null}function Vp(e){return e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\b\w/g,t=>t.toUpperCase())}function Sb(e,t){return e.type===_e.Null?"null":e.$ref?ze(e,t).title??e.$ref.split("/").pop()??"Option":e.title?e.title:e.type?Array.isArray(e.type)?e.type.join(" | "):e.type:e.discriminator?Object.keys(e.discriminator.mapping).join(" | "):e.const!=null?String(e.const):e.oneOf?"One of options":"Option"}function xo(e,t,i=0){if(i>15)return;const s=ze(e,t);if("default"in s)return s.default;if(On(s)&&s.properties){const o={};let n=!1;for(const[r,a]of Object.entries(s.properties)){const l=xo(a,t,i+1);l!==void 0&&(o[r]=l,n=!0)}return n?o:void 0}}function Xs(e,t,i,s="",o=0){if(o>15)return[];const n=[],r=ze(t,i);if(r.anyOf){const c=r.anyOf.filter(d=>d.type!==_e.Null);return e!=null&&c.length===1?Xs(e,c[0],i,s,o+1):n}if(r.oneOf&&r.discriminator){const c=r.discriminator.propertyName,d=e?.[c];if(d&&r.discriminator.mapping[d]){const u={$ref:r.discriminator.mapping[d]},h=ze(u,i);return Xs(e,h,i,s,o+1)}return n}if(r.type===_e.Array||!r.type&&Array.isArray(e)){if(Array.isArray(e)&&r.items)for(let c=0;c<e.length;c++){const d=Xs(e[c],r.items,i,`${s}[${c}]`,o+1);n.push(...d)}return n}if(!On(r))return n;const a=r.required??[],l=e;for(const c of a){const d=s?`${s}.${c}`:c,u=l?.[c];if(yb(u)){const p=r.properties?.[c]?.title??Vp(c);n.push({path:d,message:`${p} is required`})}}if(l&&r.properties)for(const[c,d]of Object.entries(r.properties)){const u=s?`${s}.${c}`:c,h=l[c];if(h!=null){const p=Xs(h,d,i,u,o+1);n.push(...p)}}return n}function zp(e,t,i){const s=ze(t,i);if(Array.isArray(e))return`${e.length} item${e.length!==1?"s":""}`;if(On(s)&&s.properties){const o=Object.keys(s.properties).length,n=e;return`${Object.keys(s.properties).filter(a=>{const l=n?.[a];return l!=null&&l!==""}).length}/${o} fields`}return""}function lB(e,t,i){if(e==null){const s=t.findIndex(o=>o.type===_e.Null);return s>=0?s:0}if(Array.isArray(e)){const s=t.findIndex(o=>ze(o,i).type===_e.Array);return s>=0?s:0}if(typeof e=="boolean"){const s=t.findIndex(o=>ze(o,i).type===_e.Boolean);return s>=0?s:0}if(typeof e=="number"){const s=t.findIndex(o=>{const n=ze(o,i);return n.type===_e.Number||n.type===_e.Integer});return s>=0?s:0}if(typeof e=="string"){const s=t.findIndex(o=>ze(o,i).type===_e.String);return s>=0?s:0}if(typeof e=="object"){const s=e;for(let o=0;o<t.length;o++){const n=ze(t[o],i);if(n.discriminator&&n.discriminator.propertyName in s)return o}for(let o=0;o<t.length;o++){const n=ze(t[o],i);if(On(n)||n.oneOf)return o}return 0}return 0}function cB(e,t,i){if(t&&typeof e=="object"&&e!==null){const s=e[t];if(s)return`Item ${i+1}: ${s}`}if(typeof e=="object"&&e!==null){const s=e,o=s.name??s.title??s.id;if(o)return`Item ${i+1}: ${o}`}return`Item ${i+1}`}function dB(e){switch(Array.isArray(e.type)?e.type[0]:e.type){case _e.String:return"";case _e.Boolean:return!1;case _e.Array:return[];case _e.Integer:case _e.Number:return;default:return{}}}const Wp=({title:e,description:t,summary:i,errorCount:s=0,level:o=0,children:n,onRemove:r,defaultExpanded:a=!0,removeItemAriaLabel:l="Remove item"})=>{const[c,d]=g.useState(a),u=o===0,h="rounded border border-secondary",p=ne("flex items-center gap-2 cursor-pointer select-none transition-colors",u?"px-4 py-3 bg-layer-3 hover:bg-layer-4":"px-3 py-2 bg-layer-4 hover:bg-layer-3",c?"rounded-t":"rounded"),m=ne("border-t border-secondary",u?"p-4":"p-3");return f.jsxs("div",{className:h,children:[f.jsxs("div",{className:p,onClick:()=>d(v=>!v),role:"button","aria-expanded":c,children:[f.jsx("span",{className:"shrink-0 text-secondary",children:c?f.jsx(W.IconChevronDown,{size:16,stroke:2}):f.jsx(W.IconChevronRight,{size:16,stroke:2})}),f.jsx("span",{className:ne("flex-1 truncate",u?"dial-small-semi-text text-primary":"dial-small-text text-primary"),children:e}),t&&f.jsx($m,{caption:t}),i&&f.jsx("span",{className:"dial-tiny-text text-secondary whitespace-nowrap ml-2",children:i}),s>0?f.jsxs("span",{className:"flex items-center gap-1 dial-tiny-text text-error whitespace-nowrap",children:[f.jsx(Ue,{icon:f.jsx(W.IconAlertTriangle,{size:13,stroke:2})}),s," error",s>1?"s":""]}):f.jsx(Ue,{icon:f.jsx(W.IconCheck,{size:13,stroke:2}),className:"text-success shrink-0"}),r&&f.jsx(bc,{size:xt.Small,onClick:v=>{v.stopPropagation(),r()},"aria-label":l,className:"ml-1 shrink-0 p-0.5"})]}),c&&f.jsx("div",{className:m,children:n})]})},Rb=({schema:e,value:t,onChange:i,path:s,level:o=0,required:n,label:r})=>{const{rootSchema:a,defaultExpanded:l=!0,touchedPaths:c=new Set,skipUntouched:d=!1}=Hs(),u=ze(e,a),h=On(u),p=u.type===_e.Array;if(h||p){const C=zp(t,u,a),w=Xs(t,u,a,s.join(".")),b=s.join("."),x=b+".",y=!d||c.has(b)||[...c].some(S=>S.startsWith(x));return f.jsx(Wp,{title:r??u.title??s[s.length-1]??"Section",description:u.description,level:o,summary:C,errorCount:y?w.length:0,defaultExpanded:l,children:f.jsx(Ts,{schema:u,value:t,onChange:i,path:s,level:o+1,required:n})})}const v=(!d||c.has(s.join(".")))&&n&&yb(t)?`${r??"Field"} is required`:void 0;return f.jsx(ql,{label:r,required:n,description:u.description,error:v,children:f.jsx(Ts,{schema:u,value:t,onChange:i,path:s,level:o,required:n})})},cl=({schema:e,value:t,onChange:i,path:s,level:o})=>{const{rootSchema:n,texts:r}=Hs(),a=ze(e,n),l=Object.entries(a.properties??{}),c=a.required??[],d=t??{};return l.length===0?f.jsx("p",{className:"dial-tiny-text text-secondary italic",children:r.noConfigurableProperties}):f.jsx("div",{className:"flex flex-col gap-4",children:l.map(([u,h])=>{const m=ze(h,n).title??h.title??Vp(u),v=c.includes(u);return f.jsx(Rb,{schema:h,value:d[u],onChange:C=>i({...d,[u]:C}),path:[...s,u],level:o,required:v,label:m},u)})})},uB=({schema:e,value:t,onChange:i,path:s,level:o})=>{const{rootSchema:n,texts:r,readonly:a=!1,defaultExpanded:l=!0}=Hs(),c=Array.isArray(t)?t:[],d=e.items,[u,h]=g.useState(void 0);if(!d)return f.jsx("p",{className:"dial-tiny-text text-secondary italic",children:r.noItemSchema});const p=g.useMemo(()=>ze(d,n),[d,n]),m=g.useMemo(()=>p.discriminator,[p]),v=g.useMemo(()=>m?.propertyName,[m]),C=g.useMemo(()=>m?Object.keys(m.mapping).map(y=>({value:y,label:y})):[],[m]),w=()=>{const y=u??C[0]?.value;let S;if(m&&y){const E=ze({$ref:m.mapping[y]},n);S={...xo(E,n)??{},[m.propertyName]:y}}else S=xo(p,n)??dB(p);i([...c,S])},b=y=>{i(c.filter((S,E)=>E!==y))},x=(y,S)=>{i(c.map((E,R)=>R===y?S:E))};return f.jsxs("div",{className:"flex flex-col gap-3",children:[c.length===0&&f.jsx("p",{className:"dial-tiny-text text-secondary italic",children:r.noItemsYet}),c.map((y,S)=>{const E=cB(y,v,S),R=zp(y,p,n),F=Xs(y,p,n,`${s.join(".")}[${S}]`);return f.jsx(Wp,{title:E,level:o,summary:R,errorCount:F.length,onRemove:a?void 0:()=>b(S),defaultExpanded:l,removeItemAriaLabel:r.removeItemAriaLabel,children:f.jsx(Ts,{schema:d,value:y,onChange:D=>x(S,D),path:[...s,String(S)],level:o+1})},S)}),!a&&f.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[C.length>0&&f.jsx("div",{className:"flex-1 max-w-[280px]",children:f.jsx(bo,{options:C,value:u??C[0]?.value,placeholder:r.selectTypeToAdd,onChange:y=>{const S=typeof y=="string"?y:y[0];h(S)}})}),f.jsx(Tp,{label:r.addItem,iconBefore:f.jsx(W.IconPlus,{size:16,stroke:2}),onClick:w})]})]})},hB=({schema:e,value:t,onChange:i,path:s,level:o})=>{const{rootSchema:n,texts:r,readonly:a=!1}=Hs(),l=g.useId(),c=e.discriminator;if(c){const C=c.propertyName,w=c.mapping,b=Object.keys(w).map(E=>({value:E,label:E})),x=typeof t=="object"&&t!==null?t[C]:void 0,y=x?ze({$ref:w[x]},n):void 0,S=E=>{const R=ze({$ref:w[E]},n),F=xo(R,n)??{};i({...F,[C]:E})};if(e.discriminatorDisplay===Br.Radio){const E=e.discriminatorOrientation===Sc.Row,R=x?(()=>{const F=ze({$ref:w[x]},n),{[C]:D,...T}=F.properties??{};return{...F,properties:T}})():void 0;return E?f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsx("div",{role:"radiogroup",className:"flex flex-row flex-wrap gap-4",children:Object.keys(w).map(F=>{const D=ze({$ref:w[F]},n);return f.jsx(Qs,{name:l,value:F,inputId:`${l}-${F}`,label:D.title??F,checked:x===F,disabled:a,onChange:()=>S(F)},F)})}),R&&f.jsx(cl,{schema:R,value:t,onChange:i,path:s,level:o})]}):f.jsx("div",{role:"radiogroup",className:"flex flex-col gap-2",children:Object.keys(w).map(F=>{const D=ze({$ref:w[F]},n),T=x===F,{[C]:P,...k}=D.properties??{},O={...D,properties:k};return f.jsxs("div",{className:"flex flex-col",children:[f.jsx(Qs,{name:l,value:F,inputId:`${l}-${F}`,label:D.title??F,checked:T,disabled:a,onChange:()=>S(F)}),T&&f.jsx("div",{className:"ml-6 mt-2",children:f.jsx(cl,{schema:O,value:t,onChange:i,path:s,level:o})})]},F)})})}return f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsx("div",{className:"flex-1 max-w-[280px]",children:f.jsx(bo,{options:b,value:x,placeholder:r.selectTypePlaceholder,disabled:a,onChange:E=>{const R=typeof E=="string"?E:E[0];R&&S(R)}})}),y&&f.jsx("div",{className:"pl-3 border-l-2 border-secondary",children:f.jsx(cl,{schema:y,value:t,onChange:i,path:s,level:o})})]})}const d=e.oneOf??[],h=(()=>{if(t==null)return 0;if(typeof t=="object"&&!Array.isArray(t)){for(let C=0;C<d.length;C++)if(ze(d[C],n).required?.every(b=>b in t))return C}return 0})(),p=C=>{const w=ze(d[C],n),b=xo(w,n);i(b??null)},m=d[h];if(e.discriminatorDisplay===Br.Radio)return f.jsx("div",{role:"radiogroup",className:"flex flex-col gap-2",children:d.map((C,w)=>{const b=ze(C,n),x=Sb(C,n)??`Option ${w+1}`,y=h===w;return f.jsxs("div",{className:"flex flex-col",children:[f.jsx(Qs,{name:l,value:String(w),inputId:`${l}-${w}`,label:x,checked:y,disabled:a,onChange:()=>p(w)}),y&&b&&f.jsx("div",{className:"ml-6 mt-2",children:f.jsx(Ts,{schema:b,value:t,onChange:i,path:s,level:o})})]},w)})});const v=d.map((C,w)=>{const b=ze(C,n);return{value:String(w),label:b.title??`Option ${w+1}`}});return f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsx("div",{className:"flex-1 max-w-[280px]",children:f.jsx(bo,{options:v,value:String(h),disabled:a,onChange:C=>{const w=typeof C=="string"?C:C[0];p(Number(w))}})}),m&&f.jsx("div",{className:"pl-3 border-l-2 border-secondary",children:f.jsx(Ts,{schema:m,value:t,onChange:i,path:s,level:o})})]})},pB=({schema:e,value:t,onChange:i,path:s,level:o})=>{const{rootSchema:n,readonly:r=!1}=Hs(),a=e.anyOf??[],l=a.map((m,v)=>({value:String(v),label:Sb(m,n)})),c=lB(t,a,n),d=a[c],h=ze(d,n).type===_e.Null,p=m=>{const v=ze(a[m],n);if(v.type===_e.Null){i(null);return}const C=xo(v,n);if(C!==void 0){i(C);return}switch(v.type){case _e.Array:i([]);break;case _e.String:i("");break;case _e.Boolean:i(!1);break;case _e.Integer:case _e.Number:i(0);break;default:i({});break}};return f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsx("div",{className:"flex-1 max-w-[280px]",children:f.jsx(bo,{options:l,value:String(c),disabled:r,onChange:m=>{const v=typeof m=="string"?m:m[0];p(Number(v))}})}),!h&&d&&f.jsx("div",{className:"pl-3 border-l-2 border-secondary",children:f.jsx(Ts,{schema:d,value:t,onChange:i,path:s,level:o})})]})},Fb=({schema:e,value:t,onChange:i,invalid:s})=>{const o=g.useId(),{texts:n,readonly:r=!1,inputClassName:a}=Hs(),l=e.const!==void 0,c=Array.isArray(e.enum)&&e.enum.length>0;if(l)return f.jsx(is,{value:String(e.const??""),disabled:!0,onChange:void 0,className:"opacity-60"});if(c&&e.enumDisplay===Br.Radio){const d=e.enumOrientation===Sc.Row;return f.jsx("div",{role:"radiogroup",className:d?"flex flex-row flex-wrap gap-x-4 gap-y-2":"flex flex-col gap-2",children:e.enum.map(u=>{const h=String(u);return f.jsx(Qs,{name:o,value:h,inputId:`${o}-${h}`,label:h,checked:t!=null?String(t)===h:!1,disabled:r,onChange:p=>i(p)},h)})})}if(c){const d=e.enum.map(u=>({value:String(u),label:String(u)}));return f.jsx(bo,{options:d,value:t!=null?String(t):void 0,invalid:s,disabled:r,onChange:u=>i(typeof u=="string"?u:u[0]),placeholder:n.enumSelectPlaceholder})}switch(e.type){case _e.Boolean:return f.jsx(xc,{switchId:o,isOn:!!t,disabled:r,onChange:d=>i(d)});case _e.Integer:return f.jsx(Qu,{integer:!0,value:t!=null?String(t):"",invalid:s,disabled:r,onChange:d=>i(d!==void 0?Number(d):void 0),placeholder:n.integerInputPlaceholder,containerClassName:a});case _e.Number:return f.jsx(Qu,{value:t!=null?String(t):"",invalid:s,disabled:r,onChange:d=>i(d!==void 0?Number(d):void 0),placeholder:n.numberInputPlaceholder,containerClassName:a});default:return e.isProtected?f.jsx(q1,{value:t!=null?String(t):"",invalid:s,disabled:r,onChange:d=>i(d??void 0),placeholder:n.stringInputPlaceholder,containerClassName:a}):f.jsx(is,{value:t!=null?String(t):"",invalid:s,disabled:r,onChange:d=>i(d??void 0),placeholder:n.stringInputPlaceholder,containerClassName:a})}},Pm=(e,t)=>({id:Math.random().toString(36).slice(2),key:e,value:t}),gB=({pairKey:e,pairValue:t,valueSchema:i,onKeyChange:s,onValueChange:o,onRemove:n,keyInputPlaceholder:r,removeFieldAriaLabel:a,readonly:l=!1,inputClassName:c})=>{const[d,u]=g.useState(e);return f.jsxs("div",{className:"flex gap-2 items-center",children:[f.jsx("div",{className:"w-2/5 min-w-0",children:f.jsx(is,{value:d,disabled:l,onChange:h=>u(h??""),onBlur:()=>{d!==e&&s(d)},placeholder:r,containerClassName:c})}),f.jsx("div",{className:"flex-1 min-w-0",children:f.jsx(Fb,{schema:i,value:t,onChange:o})}),!l&&f.jsx(bc,{size:xt.Small,onClick:n,"aria-label":a,className:"shrink-0 p-1"})]})},fB=({schema:e,value:t,onChange:i})=>{const{texts:s,readonly:o=!1,inputClassName:n}=Hs(),r=e.additionalProperties===!0||e.additionalProperties==null?{type:"string"}:typeof e.additionalProperties=="object"?e.additionalProperties:{type:"string"},[a,l]=g.useState(()=>Object.entries(t??{}).map(([m,v])=>Pm(m,v))),c=m=>Object.fromEntries(m.filter(v=>v.key!=="").map(v=>[v.key,v.value])),d=(m,v)=>{const C=a.map((w,b)=>b===m?{...w,key:v}:w);l(C),i(c(C))},u=(m,v)=>{const C=a.map((w,b)=>b===m?{...w,value:v}:w);l(C),i(c(C))},h=()=>{l(m=>[...m,Pm("","")])},p=m=>{const v=a.filter((C,w)=>w!==m);l(v),i(c(v))};return f.jsxs("div",{className:"flex flex-col gap-2",children:[a.length===0&&f.jsx("p",{className:"dial-tiny-text text-secondary italic",children:s.noFieldsYet}),a.length>0&&f.jsxs("div",{className:"flex gap-2 mb-1 pr-7",children:[f.jsx("span",{className:"w-2/5 dial-tiny-text text-secondary font-medium",children:s.keyColumnHeader}),f.jsx("span",{className:"flex-1 dial-tiny-text text-secondary font-medium",children:s.valueColumnHeader})]}),a.map((m,v)=>f.jsx(gB,{pairKey:m.key,pairValue:m.value,valueSchema:r,onKeyChange:C=>d(v,C),onValueChange:C=>u(v,C),onRemove:()=>p(v),keyInputPlaceholder:s.keyInputPlaceholder,removeFieldAriaLabel:s.removeFieldAriaLabel,readonly:o,inputClassName:n},m.id)),!o&&f.jsx("div",{className:"pt-1",children:f.jsx(Tp,{label:s.addField,iconBefore:f.jsx(W.IconPlus,{size:16,stroke:2}),onClick:h})})]})},Ts=({schema:e,value:t,onChange:i,path:s,level:o,required:n})=>{const{rootSchema:r,renderField:a,markTouched:l=()=>{},touchedPaths:c=new Set}=Hs(),d=ze(e,r),u=m=>{l(s.join(".")),i(m)},h=c.has(s.join("."));let p;if(d.oneOf)p=f.jsx(hB,{schema:d,value:t,onChange:u,path:s,level:o});else if(d.anyOf)p=f.jsx(pB,{schema:d,value:t,onChange:u,path:s,level:o});else if(On(d)){const m=d.additionalProperties!=null&&d.additionalProperties!==!1,v=!d.properties||Object.keys(d.properties).length===0;m&&v?p=f.jsx(fB,{schema:d,value:t,onChange:u}):p=f.jsx(cl,{schema:d,value:t,onChange:u,path:s,level:o})}else d.type===_e.Array?p=f.jsx(uB,{schema:d,value:t,onChange:u,path:s,level:o}):p=f.jsx(Fb,{schema:d,value:t,onChange:u,invalid:h&&n&&(t==null||t==="")});return a?a(s,d,p):p},mB=({schema:e,defaultValue:t,texts:i,className:s,readonly:o=!1,defaultExpanded:n=!0,inputClassName:r,variant:a=xr.Sections,onChange:l,onPropertyChange:c,onDefaultValues:d,renderField:u,skipUntouched:h=!1})=>{const p=g.useMemo(()=>({...aB,...i}),[i]),m=g.useMemo(()=>t||(xo(e,e)??{}),[]),[v,C]=g.useState(m),[w,b]=g.useState(new Set),x=g.useCallback(R=>{b(F=>F.has(R)?F:new Set([...F,R]))},[]);g.useEffect(()=>{d?.(m)},[]);const y=(R,F)=>{const D={...v,[R]:F};C(D),l?.(D),c?.(R,F)},S=Object.entries(e.properties??{}),E=e.required??[];return f.jsx(xb.Provider,{value:{rootSchema:e,texts:p,readonly:o,defaultExpanded:n,inputClassName:r,renderField:u,touchedPaths:w,markTouched:x,skipUntouched:h},children:f.jsx("div",{className:ne("flex flex-col gap-4",s),children:S.map(([R,F])=>{const D=ze(F,e),T=D.title??F.title??Vp(R),P=E.includes(R),k=v[R];if(a===xr.Flat)return f.jsx(Rb,{schema:F,value:k,onChange:H=>y(R,H),path:[R],level:0,required:P,label:T},R);if(a===xr.FlatSections)return f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsx("h2",{className:"dial-small-semi-text text-primary",children:T}),f.jsx(Ts,{schema:F,value:k,onChange:H=>y(R,H),path:[R],level:0,required:P})]},R);const O=zp(k,D,e),_=Xs(k,D,e,R),L=R+".",N=!h||w.has(R)||[...w].some(H=>H.startsWith(L));return f.jsx(Wp,{title:T,description:D.description,level:0,summary:O,defaultExpanded:n,errorCount:N?P&&k==null?Math.max(_.length,1):_.length:0,children:f.jsx(Ts,{schema:F,value:k,onChange:H=>y(R,H),path:[R],level:1,required:P})},R)})})})};exports.AlertVariant=Ci;exports.BASE_ICON_PROPS=ee;exports.BASE_ICON_SIZE=qt;exports.ButtonAppearance=Ae;exports.ButtonVariant=Ye;exports.ConfirmationPopupVariant=En;exports.DIAL_ICON_SIZE=St;exports.DialAlert=qm;exports.DialAutocompleteInputValue=j1;exports.DialBreadcrumb=H1;exports.DialBreadcrumbItem=lr;exports.DialButton=di;exports.DialButtonDropdown=eh;exports.DialCaptionText=Gr;exports.DialCheckbox=au;exports.DialCloseButton=Ep;exports.DialCollapsibleSidebar=Km;exports.DialConditionalResizableContainer=lv;exports.DialConfirmationPopup=z1;exports.DialDestinationFolderPopup=pb;exports.DialDraggableItem=cS;exports.DialDropdown=Nt;exports.DialEllipsisTooltip=bt;exports.DialErrorButton=G1;exports.DialErrorIconButton=V1;exports.DialErrorText=bi;exports.DialFileIcon=hh;exports.DialFileManager=bb;exports.DialFileManagerActions=Z;exports.DialFileManagerTabs=on;exports.DialFileName=ec;exports.DialFileNodeType=we;exports.DialFilePermission=Po;exports.DialFileResourceType=Op;exports.DialFolderName=tc;exports.DialFormItem=ql;exports.DialFormPopup=YO;exports.DialGhostButton=Tp;exports.DialGhostIconButton=OO;exports.DialGrid=Dp;exports.DialIcon=Ue;exports.DialIconButton=Is;exports.DialInput=is;exports.DialInputPopup=_1;exports.DialItemType=Qt;exports.DialLabel=So;exports.DialLabelledText=rx;exports.DialLinkButton=PO;exports.DialLoadFileArea=tb;exports.DialLoadFileAreaField=DN;exports.DialLoader=Vr;exports.DialNeutralButton=Vi;exports.DialNeutralIconButton=IO;exports.DialNoDataContent=zr;exports.DialNumberInput=Qu;exports.DialPasswordInput=q1;exports.DialPopup=Do;exports.DialPrimaryButton=Ni;exports.DialPrimaryIconButton=kO;exports.DialRadioButton=Qs;exports.DialRadioGroup=hl;exports.DialRadioGroupPopupField=UO;exports.DialRemoveButton=bc;exports.DialResizableContainer=av;exports.DialSchemaRenderer=mB;exports.DialSearch=kp;exports.DialSecondaryIconButton=MO;exports.DialSelect=bo;exports.DialSelectField=dN;exports.DialSharedEntityIndicator=Sr;exports.DialSkeleton=Yo;exports.DialSkeletonAvatarShape=pl;exports.DialSkeletonAvatarSize=dr;exports.DialSkeletonVariant=ai;exports.DialSteps=ex;exports.DialSuccessIconButton=LO;exports.DialSwitch=xc;exports.DialTabs=A1;exports.DialTag=Qo;exports.DialTagInput=W1;exports.DialTertiaryIconButton=AO;exports.DialTextarea=NO;exports.DialTooltip=jt;exports.DropdownItemType=Fn;exports.DropdownTrigger=Yt;exports.DropdownType=T1;exports.ElementSize=xt;exports.FileManagerColumnKey=gt;exports.FileManagerProvider=hb;exports.FlexibleActionsDirection=Zs;exports.FormItemOrientation=yr;exports.GridSelectionMode=br;exports.JsonSchemaType=_e;exports.NAME_COLUMN=mb;exports.NOT_ALLOWED_SPACES=Hp;exports.NOT_ALLOWED_SPACES_REGEXP=PH;exports.NOT_ALLOWED_SYMBOLS=db;exports.NOT_ALLOWED_SYMBOLS_REGEXP=ub;exports.PopupSize=Xt;exports.RadioGroupOrientation=ro;exports.ResizableContainerSide=Rr;exports.SIZE_COLUMN=Cb;exports.SchemaDisplayMode=Br;exports.SchemaOrientation=Sc;exports.SchemaRendererVariant=xr;exports.SelectSize=_l;exports.SelectVariant=Ul;exports.StepStatus=Zt;exports.TabOrientation=Wl;exports.TagVariant=Kl;exports.UPDATED_AT_COLUMN=vb;exports.mergeClasses=ne;exports.useDialFileManagerTabs=eB;exports.useEditableItem=gb;exports.useFileManagerContext=wb;exports.wrapInRootFolder=rB;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-BwReoFLu.cjs");exports.AlertVariant=a.AlertVariant;exports.BASE_ICON_PROPS=a.BASE_ICON_PROPS;exports.BASE_ICON_SIZE=a.BASE_ICON_SIZE;exports.ButtonAppearance=a.ButtonAppearance;exports.ButtonVariant=a.ButtonVariant;exports.ConfirmationPopupVariant=a.ConfirmationPopupVariant;exports.DIAL_ICON_SIZE=a.DIAL_ICON_SIZE;exports.DialAlert=a.DialAlert;exports.DialAutocompleteInputValue=a.DialAutocompleteInputValue;exports.DialBreadcrumb=a.DialBreadcrumb;exports.DialBreadcrumbItem=a.DialBreadcrumbItem;exports.DialButton=a.DialButton;exports.DialButtonDropdown=a.DialButtonDropdown;exports.DialCaptionText=a.DialCaptionText;exports.DialCheckbox=a.DialCheckbox;exports.DialCloseButton=a.DialCloseButton;exports.DialCollapsibleSidebar=a.DialCollapsibleSidebar;exports.DialConditionalResizableContainer=a.DialConditionalResizableContainer;exports.DialConfirmationPopup=a.DialConfirmationPopup;exports.DialDestinationFolderPopup=a.DialDestinationFolderPopup;exports.DialDraggableItem=a.DialDraggableItem;exports.DialDropdown=a.DialDropdown;exports.DialDropdownIcon=a.DialDropdownIcon;exports.DialEllipsisTooltip=a.DialEllipsisTooltip;exports.DialErrorButton=a.DialErrorButton;exports.DialErrorIconButton=a.DialErrorIconButton;exports.DialErrorText=a.DialErrorText;exports.DialFabButton=a.DialFabButton;exports.DialFileIcon=a.DialFileIcon;exports.DialFileManager=a.DialFileManager;exports.DialFileManagerActions=a.DialFileManagerActions;exports.DialFileManagerTabs=a.DialFileManagerTabs;exports.DialFileName=a.DialFileName;exports.DialFileNodeType=a.DialFileNodeType;exports.DialFilePermission=a.DialFilePermission;exports.DialFileResourceType=a.DialFileResourceType;exports.DialFolderName=a.DialFolderName;exports.DialFormItem=a.DialFormItem;exports.DialFormPopup=a.DialFormPopup;exports.DialGhostButton=a.DialGhostButton;exports.DialGhostIconButton=a.DialGhostIconButton;exports.DialGrid=a.DialGrid;exports.DialIcon=a.DialIcon;exports.DialIconButton=a.DialIconButton;exports.DialInput=a.DialInput;exports.DialInputPopup=a.DialInputPopup;exports.DialItemType=a.DialItemType;exports.DialLabel=a.DialLabel;exports.DialLabelledText=a.DialLabelledText;exports.DialLinkButton=a.DialLinkButton;exports.DialLoadFileArea=a.DialLoadFileArea;exports.DialLoadFileAreaField=a.DialLoadFileAreaField;exports.DialLoader=a.DialLoader;exports.DialNeutralButton=a.DialNeutralButton;exports.DialNeutralIconButton=a.DialNeutralIconButton;exports.DialNoDataContent=a.DialNoDataContent;exports.DialNumberInput=a.DialNumberInput;exports.DialPagination=a.DialPagination;exports.DialPasswordInput=a.DialPasswordInput;exports.DialPopup=a.DialPopup;exports.DialPrimaryButton=a.DialPrimaryButton;exports.DialPrimaryIconButton=a.DialPrimaryIconButton;exports.DialProgressBar=a.DialProgressBar;exports.DialProgressBarSize=a.DialProgressBarSize;exports.DialRadioButton=a.DialRadioButton;exports.DialRadioGroup=a.DialRadioGroup;exports.DialRadioGroupPopupField=a.DialRadioGroupPopupField;exports.DialRemoveButton=a.DialRemoveButton;exports.DialResizableContainer=a.DialResizableContainer;exports.DialRoundedButton=a.DialRoundedButton;exports.DialSchemaRenderer=a.DialSchemaRenderer;exports.DialSearch=a.DialSearch;exports.DialSecondaryIconButton=a.DialSecondaryIconButton;exports.DialSelect=a.DialSelect;exports.DialSelectField=a.DialSelectField;exports.DialSharedEntityIndicator=a.DialSharedEntityIndicator;exports.DialSkeleton=a.DialSkeleton;exports.DialSkeletonAvatarShape=a.DialSkeletonAvatarShape;exports.DialSkeletonAvatarSize=a.DialSkeletonAvatarSize;exports.DialSkeletonVariant=a.DialSkeletonVariant;exports.DialSpinner=a.DialSpinner;exports.DialSteps=a.DialSteps;exports.DialSuccessIconButton=a.DialSuccessIconButton;exports.DialSwitch=a.DialSwitch;exports.DialTabs=a.DialTabs;exports.DialTag=a.DialTag;exports.DialTagInput=a.DialTagInput;exports.DialTertiaryIconButton=a.DialTertiaryIconButton;exports.DialTextarea=a.DialTextarea;exports.DialTooltip=a.DialTooltip;exports.DropdownItemType=a.DropdownItemType;exports.DropdownTrigger=a.DropdownTrigger;exports.DropdownType=a.DropdownType;exports.ElementSize=a.ElementSize;exports.FileManagerColumnKey=a.FileManagerColumnKey;exports.FileManagerProvider=a.FileManagerProvider;exports.FlexibleActionsDirection=a.FlexibleActionsDirection;exports.FormItemOrientation=a.FormItemOrientation;exports.GridSelectionMode=a.GridSelectionMode;exports.JsonSchemaType=a.JsonSchemaType;exports.LazyDialJsonEditor=a.LazyDialJsonEditor;exports.LazyDialMarkdownEditor=a.LazyDialMarkdownEditor;exports.NAME_COLUMN=a.NAME_COLUMN;exports.NOT_ALLOWED_SPACES=a.NOT_ALLOWED_SPACES;exports.NOT_ALLOWED_SPACES_REGEXP=a.NOT_ALLOWED_SPACES_REGEXP;exports.NOT_ALLOWED_SYMBOLS=a.NOT_ALLOWED_SYMBOLS;exports.NOT_ALLOWED_SYMBOLS_REGEXP=a.NOT_ALLOWED_SYMBOLS_REGEXP;exports.PopupSize=a.PopupSize;exports.RadioGroupOrientation=a.RadioGroupOrientation;exports.ResizableContainerSide=a.ResizableContainerSide;exports.SIZE_COLUMN=a.SIZE_COLUMN;exports.SchemaDisplayMode=a.SchemaDisplayMode;exports.SchemaOrientation=a.SchemaOrientation;exports.SchemaRendererVariant=a.SchemaRendererVariant;exports.SelectSize=a.SelectSize;exports.SelectVariant=a.SelectVariant;exports.StepStatus=a.StepStatus;exports.TabOrientation=a.TabOrientation;exports.TagVariant=a.TagVariant;exports.UPDATED_AT_COLUMN=a.UPDATED_AT_COLUMN;exports.mergeClasses=a.mergeClasses;exports.useDialFileManagerTabs=a.useDialFileManagerTabs;exports.useEditableItem=a.useEditableItem;exports.useFileManagerContext=a.useFileManagerContext;exports.wrapInRootFolder=a.wrapInRootFolder;