@linked365/pptb-mockaroo-data-munger 0.2.3 → 0.3.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.
@@ -0,0 +1,70 @@
1
+ (function(){"use strict";var DC=document.createElement("style");DC.textContent=`*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:linear-gradient(135deg,#667eea,#764ba2);color:#333;line-height:1.6;padding:2px;min-height:100vh}#root{margin:0 auto}.header{text-align:center;color:#fff;margin-bottom:30px}.header h1{font-size:2.5rem;margin-bottom:10px;text-shadow:2px 2px 4px rgba(0,0,0,.3)}.subtitle{font-size:1.1rem;opacity:.95}.card{background:#fff;border-radius:12px;padding:25px;margin-bottom:25px;box-shadow:0 10px 30px #0003}.card h2{color:#667eea;margin-bottom:20px;font-size:1.5rem;border-bottom:2px solid #f0f0f0;padding-bottom:10px}.card h3{color:#555;margin:15px 0 10px;font-size:1.1rem}.info-box{background:#f8f9fa;border-left:4px solid #667eea;padding:15px;border-radius:6px;margin:10px 0}.info-box.success{background:#d4edda;border-left-color:#28a745}.info-box.error{background:#f8d7da;border-left-color:#dc3545}.info-box.warning{background:#fff3cd;border-left-color:#ffc107}.loading{display:flex;align-items:center;gap:10px}.loading:before{content:"";width:16px;height:16px;border:2px solid #667eea;border-top-color:transparent;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.connection-details{display:grid;gap:8px}.connection-item{display:flex;gap:10px}.connection-item strong{min-width:100px;color:#667eea}.env-badge{display:inline-block;padding:4px 12px;border-radius:12px;font-size:.85rem;font-weight:600;text-transform:uppercase}.env-badge.production{background:#dc3545;color:#fff}.env-badge.sandbox{background:#ffc107;color:#333}.env-badge.dev{background:#17a2b8;color:#fff}.btn{background:#667eea;color:#fff;border:none;padding:10px 20px;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;transition:all .3s ease;margin:5px}.btn:hover:not(:disabled){background:#5568d3;transform:translateY(-2px);box-shadow:0 4px 8px #667eea4d}.btn:active:not(:disabled){transform:translateY(0)}.btn:disabled{background:#ccc;cursor:not-allowed;opacity:.6}.btn-primary{background:#0078d4}.btn-primary:hover:not(:disabled){background:#106ebe}.btn-success{background:#28a745}.btn-success:hover:not(:disabled){background:#218838}.btn-info{background:#17a2b8}.btn-info:hover:not(:disabled){background:#138496}.btn-warning{background:#ffc107;color:#333}.btn-warning:hover:not(:disabled){background:#e0a800}.btn-error{background:#dc3545}.btn-error:hover:not(:disabled){background:#c82333}.btn-secondary{background:#6c757d}.btn-secondary:hover:not(:disabled){background:#5a6268}.button-group{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.input-group{margin:15px 0}.input-group label{display:block;margin-bottom:5px;font-weight:600;color:#555}.input-group input{width:100%;padding:10px;border:2px solid #e0e0e0;border-radius:6px;font-size:14px;transition:border-color .3s ease}.input-group input:focus{outline:none;border-color:#667eea}.example-group{margin:20px 0;padding:15px;background:#f8f9fa;border-radius:8px}.output{background:#1e1e1e;color:#d4d4d4;padding:15px;border-radius:6px;font-family:Consolas,Monaco,Courier New,monospace;font-size:13px;white-space:pre-wrap;word-wrap:break-word;max-height:300px;overflow-y:auto;margin-top:10px;min-height:50px}.output:empty:before{content:"No output yet...";color:#666;font-style:italic}.log{background:#1e1e1e;color:#d4d4d4;padding:15px;border-radius:6px;font-family:Consolas,Monaco,Courier New,monospace;font-size:13px;max-height:300px;overflow-y:auto;margin-top:10px}.log-entry{padding:8px;margin:4px 0;border-radius:4px;border-left:3px solid #667eea;background:#2d2d30}.log-entry.error{border-left-color:#dc3545;background:#3d2d2e}.log-entry.success{border-left-color:#28a745;background:#2d3d2e}.log-entry.warning{border-left-color:#ffc107;background:#3d3d2e}.log-timestamp{color:#858585;font-size:11px;margin-right:10px}@media(max-width:768px){body{padding:10px}.header h1{font-size:2rem}.card{padding:15px}.button-group{flex-direction:column}.btn{width:100%}}.output::-webkit-scrollbar,.log::-webkit-scrollbar{width:8px}.output::-webkit-scrollbar-track,.log::-webkit-scrollbar-track{background:#2d2d30}.output::-webkit-scrollbar-thumb,.log::-webkit-scrollbar-thumb{background:#667eea;border-radius:4px}.output::-webkit-scrollbar-thumb:hover,.log::-webkit-scrollbar-thumb:hover{background:#5568d3}
2
+ /*$vite$:1*/`,document.head.appendChild(DC);var $f=typeof document<"u"?document.currentScript:null;function MC(e,t){for(var o=0;o<t.length;o++){const r=t[o];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(r,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Kf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xf={exports:{}},al={},Zf={exports:{}},He={};var AC;function DD(){if(AC)return He;AC=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;function g(L){return L===null||typeof L!="object"?null:(L=p&&L[p]||L["@@iterator"],typeof L=="function"?L:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,C={};function S(L,N,Y){this.props=L,this.context=N,this.refs=C,this.updater=Y||v}S.prototype.isReactComponent={},S.prototype.setState=function(L,N){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,N,"setState")},S.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function k(){}k.prototype=S.prototype;function F(L,N,Y){this.props=L,this.context=N,this.refs=C,this.updater=Y||v}var R=F.prototype=new k;R.constructor=F,b(R,S.prototype),R.isPureReactComponent=!0;var P=Array.isArray,T=Object.prototype.hasOwnProperty,D={current:null},M={key:!0,ref:!0,__self:!0,__source:!0};function O(L,N,Y){var ne,ge={},Fe=null,We=null;if(N!=null)for(ne in N.ref!==void 0&&(We=N.ref),N.key!==void 0&&(Fe=""+N.key),N)T.call(N,ne)&&!M.hasOwnProperty(ne)&&(ge[ne]=N[ne]);var Ge=arguments.length-2;if(Ge===1)ge.children=Y;else if(1<Ge){for(var Ue=Array(Ge),Pe=0;Pe<Ge;Pe++)Ue[Pe]=arguments[Pe+2];ge.children=Ue}if(L&&L.defaultProps)for(ne in Ge=L.defaultProps,Ge)ge[ne]===void 0&&(ge[ne]=Ge[ne]);return{$$typeof:e,type:L,key:Fe,ref:We,props:ge,_owner:D.current}}function I(L,N){return{$$typeof:e,type:L.type,key:N,ref:L.ref,props:L.props,_owner:L._owner}}function z(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function U(L){var N={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(Y){return N[Y]})}var q=/\/+/g;function A(L,N){return typeof L=="object"&&L!==null&&L.key!=null?U(""+L.key):N.toString(36)}function K(L,N,Y,ne,ge){var Fe=typeof L;(Fe==="undefined"||Fe==="boolean")&&(L=null);var We=!1;if(L===null)We=!0;else switch(Fe){case"string":case"number":We=!0;break;case"object":switch(L.$$typeof){case e:case t:We=!0}}if(We)return We=L,ge=ge(We),L=ne===""?"."+A(We,0):ne,P(ge)?(Y="",L!=null&&(Y=L.replace(q,"$&/")+"/"),K(ge,N,Y,"",function(Pe){return Pe})):ge!=null&&(z(ge)&&(ge=I(ge,Y+(!ge.key||We&&We.key===ge.key?"":(""+ge.key).replace(q,"$&/")+"/")+L)),N.push(ge)),1;if(We=0,ne=ne===""?".":ne+":",P(L))for(var Ge=0;Ge<L.length;Ge++){Fe=L[Ge];var Ue=ne+A(Fe,Ge);We+=K(Fe,N,Y,Ue,ge)}else if(Ue=g(L),typeof Ue=="function")for(L=Ue.call(L),Ge=0;!(Fe=L.next()).done;)Fe=Fe.value,Ue=ne+A(Fe,Ge++),We+=K(Fe,N,Y,Ue,ge);else if(Fe==="object")throw N=String(L),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.");return We}function $(L,N,Y){if(L==null)return L;var ne=[],ge=0;return K(L,ne,"","",function(Fe){return N.call(Y,Fe,ge++)}),ne}function Z(L){if(L._status===-1){var N=L._result;N=N(),N.then(function(Y){(L._status===0||L._status===-1)&&(L._status=1,L._result=Y)},function(Y){(L._status===0||L._status===-1)&&(L._status=2,L._result=Y)}),L._status===-1&&(L._status=0,L._result=N)}if(L._status===1)return L._result.default;throw L._result}var W={current:null},_={transition:null},V={ReactCurrentDispatcher:W,ReactCurrentBatchConfig:_,ReactCurrentOwner:D};function j(){throw Error("act(...) is not supported in production builds of React.")}return He.Children={map:$,forEach:function(L,N,Y){$(L,function(){N.apply(this,arguments)},Y)},count:function(L){var N=0;return $(L,function(){N++}),N},toArray:function(L){return $(L,function(N){return N})||[]},only:function(L){if(!z(L))throw Error("React.Children.only expected to receive a single React element child.");return L}},He.Component=S,He.Fragment=o,He.Profiler=n,He.PureComponent=F,He.StrictMode=r,He.Suspense=u,He.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,He.act=j,He.cloneElement=function(L,N,Y){if(L==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+L+".");var ne=b({},L.props),ge=L.key,Fe=L.ref,We=L._owner;if(N!=null){if(N.ref!==void 0&&(Fe=N.ref,We=D.current),N.key!==void 0&&(ge=""+N.key),L.type&&L.type.defaultProps)var Ge=L.type.defaultProps;for(Ue in N)T.call(N,Ue)&&!M.hasOwnProperty(Ue)&&(ne[Ue]=N[Ue]===void 0&&Ge!==void 0?Ge[Ue]:N[Ue])}var Ue=arguments.length-2;if(Ue===1)ne.children=Y;else if(1<Ue){Ge=Array(Ue);for(var Pe=0;Pe<Ue;Pe++)Ge[Pe]=arguments[Pe+2];ne.children=Ge}return{$$typeof:e,type:L.type,key:ge,ref:Fe,props:ne,_owner:We}},He.createContext=function(L){return L={$$typeof:s,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},L.Provider={$$typeof:i,_context:L},L.Consumer=L},He.createElement=O,He.createFactory=function(L){var N=O.bind(null,L);return N.type=L,N},He.createRef=function(){return{current:null}},He.forwardRef=function(L){return{$$typeof:l,render:L}},He.isValidElement=z,He.lazy=function(L){return{$$typeof:h,_payload:{_status:-1,_result:L},_init:Z}},He.memo=function(L,N){return{$$typeof:d,type:L,compare:N===void 0?null:N}},He.startTransition=function(L){var N=_.transition;_.transition={};try{L()}finally{_.transition=N}},He.unstable_act=j,He.useCallback=function(L,N){return W.current.useCallback(L,N)},He.useContext=function(L){return W.current.useContext(L)},He.useDebugValue=function(){},He.useDeferredValue=function(L){return W.current.useDeferredValue(L)},He.useEffect=function(L,N){return W.current.useEffect(L,N)},He.useId=function(){return W.current.useId()},He.useImperativeHandle=function(L,N,Y){return W.current.useImperativeHandle(L,N,Y)},He.useInsertionEffect=function(L,N){return W.current.useInsertionEffect(L,N)},He.useLayoutEffect=function(L,N){return W.current.useLayoutEffect(L,N)},He.useMemo=function(L,N){return W.current.useMemo(L,N)},He.useReducer=function(L,N,Y){return W.current.useReducer(L,N,Y)},He.useRef=function(L){return W.current.useRef(L)},He.useState=function(L){return W.current.useState(L)},He.useSyncExternalStore=function(L,N,Y){return W.current.useSyncExternalStore(L,N,Y)},He.useTransition=function(){return W.current.useTransition()},He.version="18.3.1",He}var _C;function hu(){return _C||(_C=1,Zf.exports=DD()),Zf.exports}var IC;function MD(){if(IC)return al;IC=1;var e=hu(),t=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(l,u,d){var h,p={},g=null,v=null;d!==void 0&&(g=""+d),u.key!==void 0&&(g=""+u.key),u.ref!==void 0&&(v=u.ref);for(h in u)r.call(u,h)&&!i.hasOwnProperty(h)&&(p[h]=u[h]);if(l&&l.defaultProps)for(h in u=l.defaultProps,u)p[h]===void 0&&(p[h]=u[h]);return{$$typeof:t,type:l,key:g,ref:v,props:p,_owner:n.current}}return al.Fragment=o,al.jsx=s,al.jsxs=s,al}var BC;function AD(){return BC||(BC=1,Xf.exports=MD()),Xf.exports}var oe=AD();const _D=MC({__proto__:null,default:Kf(oe)},[oe]);var y=hu();const re=Kf(y),fu=MC({__proto__:null,default:re},[y]);var pu={},Yf={exports:{}},vo={},Qf={exports:{}},Jf={};var OC;function ID(){return OC||(OC=1,(function(e){function t(_,V){var j=_.length;_.push(V);e:for(;0<j;){var L=j-1>>>1,N=_[L];if(0<n(N,V))_[L]=V,_[j]=N,j=L;else break e}}function o(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var V=_[0],j=_.pop();if(j!==V){_[0]=j;e:for(var L=0,N=_.length,Y=N>>>1;L<Y;){var ne=2*(L+1)-1,ge=_[ne],Fe=ne+1,We=_[Fe];if(0>n(ge,j))Fe<N&&0>n(We,ge)?(_[L]=We,_[Fe]=j,L=Fe):(_[L]=ge,_[ne]=j,L=ne);else if(Fe<N&&0>n(We,j))_[L]=We,_[Fe]=j,L=Fe;else break e}}return V}function n(_,V){var j=_.sortIndex-V.sortIndex;return j!==0?j:_.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],d=[],h=1,p=null,g=3,v=!1,b=!1,C=!1,S=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(_){for(var V=o(d);V!==null;){if(V.callback===null)r(d);else if(V.startTime<=_)r(d),V.sortIndex=V.expirationTime,t(u,V);else break;V=o(d)}}function P(_){if(C=!1,R(_),!b)if(o(u)!==null)b=!0,Z(T);else{var V=o(d);V!==null&&W(P,V.startTime-_)}}function T(_,V){b=!1,C&&(C=!1,k(O),O=-1),v=!0;var j=g;try{for(R(V),p=o(u);p!==null&&(!(p.expirationTime>V)||_&&!U());){var L=p.callback;if(typeof L=="function"){p.callback=null,g=p.priorityLevel;var N=L(p.expirationTime<=V);V=e.unstable_now(),typeof N=="function"?p.callback=N:p===o(u)&&r(u),R(V)}else r(u);p=o(u)}if(p!==null)var Y=!0;else{var ne=o(d);ne!==null&&W(P,ne.startTime-V),Y=!1}return Y}finally{p=null,g=j,v=!1}}var D=!1,M=null,O=-1,I=5,z=-1;function U(){return!(e.unstable_now()-z<I)}function q(){if(M!==null){var _=e.unstable_now();z=_;var V=!0;try{V=M(!0,_)}finally{V?A():(D=!1,M=null)}}else D=!1}var A;if(typeof F=="function")A=function(){F(q)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,$=K.port2;K.port1.onmessage=q,A=function(){$.postMessage(null)}}else A=function(){S(q,0)};function Z(_){M=_,D||(D=!0,A())}function W(_,V){O=S(function(){_(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(_){_.callback=null},e.unstable_continueExecution=function(){b||v||(b=!0,Z(T))},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return o(u)},e.unstable_next=function(_){switch(g){case 1:case 2:case 3:var V=3;break;default:V=g}var j=g;g=V;try{return _()}finally{g=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,V){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var j=g;g=_;try{return V()}finally{g=j}},e.unstable_scheduleCallback=function(_,V,j){var L=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?L+j:L):j=L,_){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=j+N,_={id:h++,callback:V,priorityLevel:_,startTime:j,expirationTime:N,sortIndex:-1},j>L?(_.sortIndex=j,t(d,_),o(u)===null&&_===o(d)&&(C?(k(O),O=-1):C=!0,W(P,j-L))):(_.sortIndex=N,t(u,_),b||v||(b=!0,Z(T))),_},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(_){var V=g;return function(){var j=g;g=V;try{return _.apply(this,arguments)}finally{g=j}}}})(Jf)),Jf}var LC;function BD(){return LC||(LC=1,Qf.exports=ID()),Qf.exports}var NC;function OD(){if(NC)return vo;NC=1;var e=hu(),t=BD();function o(a){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+a,f=1;f<arguments.length;f++)c+="&args[]="+encodeURIComponent(arguments[f]);return"Minified React error #"+a+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,n={};function i(a,c){s(a,c),s(a+"Capture",c)}function s(a,c){for(n[a]=c,a=0;a<c.length;a++)r.add(c[a])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function g(a){return u.call(p,a)?!0:u.call(h,a)?!1:d.test(a)?p[a]=!0:(h[a]=!0,!1)}function v(a,c,f,m){if(f!==null&&f.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return m?!1:f!==null?!f.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function b(a,c,f,m){if(c===null||typeof c>"u"||v(a,c,f,m))return!0;if(m)return!1;if(f!==null)switch(f.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function C(a,c,f,m,w,x,E){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=m,this.attributeNamespace=w,this.mustUseProperty=f,this.propertyName=a,this.type=c,this.sanitizeURL=x,this.removeEmptyString=E}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){S[a]=new C(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var c=a[0];S[c]=new C(c,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){S[a]=new C(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){S[a]=new C(a,2,!1,a,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){S[a]=new C(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){S[a]=new C(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){S[a]=new C(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){S[a]=new C(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){S[a]=new C(a,5,!1,a.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function F(a){return a[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var c=a.replace(k,F);S[c]=new C(c,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var c=a.replace(k,F);S[c]=new C(c,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var c=a.replace(k,F);S[c]=new C(c,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){S[a]=new C(a,1,!1,a.toLowerCase(),null,!1,!1)}),S.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){S[a]=new C(a,1,!1,a.toLowerCase(),null,!0,!0)});function R(a,c,f,m){var w=S.hasOwnProperty(c)?S[c]:null;(w!==null?w.type!==0:m||!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(b(c,f,w,m)&&(f=null),m||w===null?g(c)&&(f===null?a.removeAttribute(c):a.setAttribute(c,""+f)):w.mustUseProperty?a[w.propertyName]=f===null?w.type===3?!1:"":f:(c=w.attributeName,m=w.attributeNamespace,f===null?a.removeAttribute(c):(w=w.type,f=w===3||w===4&&f===!0?"":""+f,m?a.setAttributeNS(m,c,f):a.setAttribute(c,f))))}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),D=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),z=Symbol.for("react.provider"),U=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),_=Symbol.iterator;function V(a){return a===null||typeof a!="object"?null:(a=_&&a[_]||a["@@iterator"],typeof a=="function"?a:null)}var j=Object.assign,L;function N(a){if(L===void 0)try{throw Error()}catch(f){var c=f.stack.trim().match(/\n( *(at )?)/);L=c&&c[1]||""}return`
3
+ `+L+a}var Y=!1;function ne(a,c){if(!a||Y)return"";Y=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(ee){var m=ee}Reflect.construct(a,[],c)}else{try{c.call()}catch(ee){m=ee}a.call(c.prototype)}else{try{throw Error()}catch(ee){m=ee}a()}}catch(ee){if(ee&&m&&typeof ee.stack=="string"){for(var w=ee.stack.split(`
4
+ `),x=m.stack.split(`
5
+ `),E=w.length-1,B=x.length-1;1<=E&&0<=B&&w[E]!==x[B];)B--;for(;1<=E&&0<=B;E--,B--)if(w[E]!==x[B]){if(E!==1||B!==1)do if(E--,B--,0>B||w[E]!==x[B]){var H=`
6
+ `+w[E].replace(" at new "," at ");return a.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",a.displayName)),H}while(1<=E&&0<=B);break}}}finally{Y=!1,Error.prepareStackTrace=f}return(a=a?a.displayName||a.name:"")?N(a):""}function ge(a){switch(a.tag){case 5:return N(a.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return a=ne(a.type,!1),a;case 11:return a=ne(a.type.render,!1),a;case 1:return a=ne(a.type,!0),a;default:return""}}function Fe(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case M:return"Fragment";case D:return"Portal";case I:return"Profiler";case O:return"StrictMode";case A:return"Suspense";case K:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case U:return(a.displayName||"Context")+".Consumer";case z:return(a._context.displayName||"Context")+".Provider";case q:var c=a.render;return a=a.displayName,a||(a=c.displayName||c.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case $:return c=a.displayName||null,c!==null?c:Fe(a.type)||"Memo";case Z:c=a._payload,a=a._init;try{return Fe(a(c))}catch{}}return null}function We(a){var c=a.type;switch(a.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=c.render,a=a.displayName||a.name||"",c.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Fe(c);case 8:return c===O?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function Ge(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Ue(a){var c=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Pe(a){var c=Ue(a)?"checked":"value",f=Object.getOwnPropertyDescriptor(a.constructor.prototype,c),m=""+a[c];if(!a.hasOwnProperty(c)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var w=f.get,x=f.set;return Object.defineProperty(a,c,{configurable:!0,get:function(){return w.call(this)},set:function(E){m=""+E,x.call(this,E)}}),Object.defineProperty(a,c,{enumerable:f.enumerable}),{getValue:function(){return m},setValue:function(E){m=""+E},stopTracking:function(){a._valueTracker=null,delete a[c]}}}}function Be(a){a._valueTracker||(a._valueTracker=Pe(a))}function Ne(a){if(!a)return!1;var c=a._valueTracker;if(!c)return!0;var f=c.getValue(),m="";return a&&(m=Ue(a)?a.checked?"true":"false":a.value),a=m,a!==f?(c.setValue(a),!0):!1}function at(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function Go(a,c){var f=c.checked;return j({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??a._wrapperState.initialChecked})}function Dr(a,c){var f=c.defaultValue==null?"":c.defaultValue,m=c.checked!=null?c.checked:c.defaultChecked;f=Ge(c.value!=null?c.value:f),a._wrapperState={initialChecked:m,initialValue:f,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function us(a,c){c=c.checked,c!=null&&R(a,"checked",c,!1)}function Le(a,c){us(a,c);var f=Ge(c.value),m=c.type;if(f!=null)m==="number"?(f===0&&a.value===""||a.value!=f)&&(a.value=""+f):a.value!==""+f&&(a.value=""+f);else if(m==="submit"||m==="reset"){a.removeAttribute("value");return}c.hasOwnProperty("value")?_t(a,c.type,f):c.hasOwnProperty("defaultValue")&&_t(a,c.type,Ge(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(a.defaultChecked=!!c.defaultChecked)}function ot(a,c,f){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var m=c.type;if(!(m!=="submit"&&m!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+a._wrapperState.initialValue,f||c===a.value||(a.value=c),a.defaultValue=c}f=a.name,f!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,f!==""&&(a.name=f)}function _t(a,c,f){(c!=="number"||at(a.ownerDocument)!==a)&&(f==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+f&&(a.defaultValue=""+f))}var ht=Array.isArray;function Ee(a,c,f,m){if(a=a.options,c){c={};for(var w=0;w<f.length;w++)c["$"+f[w]]=!0;for(f=0;f<a.length;f++)w=c.hasOwnProperty("$"+a[f].value),a[f].selected!==w&&(a[f].selected=w),w&&m&&(a[f].defaultSelected=!0)}else{for(f=""+Ge(f),c=null,w=0;w<a.length;w++){if(a[w].value===f){a[w].selected=!0,m&&(a[w].defaultSelected=!0);return}c!==null||a[w].disabled||(c=a[w])}c!==null&&(c.selected=!0)}}function ft(a,c){if(c.dangerouslySetInnerHTML!=null)throw Error(o(91));return j({},c,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function Yt(a,c){var f=c.value;if(f==null){if(f=c.children,c=c.defaultValue,f!=null){if(c!=null)throw Error(o(92));if(ht(f)){if(1<f.length)throw Error(o(93));f=f[0]}c=f}c==null&&(c=""),f=c}a._wrapperState={initialValue:Ge(f)}}function jo(a,c){var f=Ge(c.value),m=Ge(c.defaultValue);f!=null&&(f=""+f,f!==a.value&&(a.value=f),c.defaultValue==null&&a.defaultValue!==f&&(a.defaultValue=f)),m!=null&&(a.defaultValue=""+m)}function Qt(a){var c=a.textContent;c===a._wrapperState.initialValue&&c!==""&&c!==null&&(a.value=c)}function bi(a){switch(a){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Oa(a,c){return a==null||a==="http://www.w3.org/1999/xhtml"?bi(c):a==="http://www.w3.org/2000/svg"&&c==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var lt,lo=(function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(c,f,m,w){MSApp.execUnsafeLocalFunction(function(){return a(c,f,m,w)})}:a})(function(a,c){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=c;else{for(lt=lt||document.createElement("div"),lt.innerHTML="<svg>"+c.valueOf().toString()+"</svg>",c=lt.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;c.firstChild;)a.appendChild(c.firstChild)}});function ds(a,c){if(c){var f=a.firstChild;if(f&&f===a.lastChild&&f.nodeType===3){f.nodeValue=c;return}}a.textContent=c}var Ec={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kQ=["Webkit","ms","Moz","O"];Object.keys(Ec).forEach(function(a){kQ.forEach(function(c){c=c+a.charAt(0).toUpperCase()+a.substring(1),Ec[c]=Ec[a]})});function GP(a,c,f){return c==null||typeof c=="boolean"||c===""?"":f||typeof c!="number"||c===0||Ec.hasOwnProperty(a)&&Ec[a]?(""+c).trim():c+"px"}function jP(a,c){a=a.style;for(var f in c)if(c.hasOwnProperty(f)){var m=f.indexOf("--")===0,w=GP(f,c[f],m);f==="float"&&(f="cssFloat"),m?a.setProperty(f,w):a[f]=w}}var FQ=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Gv(a,c){if(c){if(FQ[a]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(o(137,a));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(o(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(o(61))}if(c.style!=null&&typeof c.style!="object")throw Error(o(62))}}function jv(a,c){if(a.indexOf("-")===-1)return typeof c.is=="string";switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Wv=null;function qv(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Uv=null,La=null,Na=null;function WP(a){if(a=Zc(a)){if(typeof Uv!="function")throw Error(o(280));var c=a.stateNode;c&&(c=lf(c),Uv(a.stateNode,a.type,c))}}function qP(a){La?Na?Na.push(a):Na=[a]:La=a}function UP(){if(La){var a=La,c=Na;if(Na=La=null,WP(a),c)for(a=0;a<c.length;a++)WP(c[a])}}function $P(a,c){return a(c)}function KP(){}var $v=!1;function XP(a,c,f){if($v)return a(c,f);$v=!0;try{return $P(a,c,f)}finally{$v=!1,(La!==null||Na!==null)&&(KP(),UP())}}function Tc(a,c){var f=a.stateNode;if(f===null)return null;var m=lf(f);if(m===null)return null;f=m[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(a=a.type,m=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!m;break e;default:a=!1}if(a)return null;if(f&&typeof f!="function")throw Error(o(231,c,typeof f));return f}var Kv=!1;if(l)try{var Dc={};Object.defineProperty(Dc,"passive",{get:function(){Kv=!0}}),window.addEventListener("test",Dc,Dc),window.removeEventListener("test",Dc,Dc)}catch{Kv=!1}function RQ(a,c,f,m,w,x,E,B,H){var ee=Array.prototype.slice.call(arguments,3);try{c.apply(f,ee)}catch(le){this.onError(le)}}var Mc=!1,zh=null,Hh=!1,Xv=null,PQ={onError:function(a){Mc=!0,zh=a}};function EQ(a,c,f,m,w,x,E,B,H){Mc=!1,zh=null,RQ.apply(PQ,arguments)}function TQ(a,c,f,m,w,x,E,B,H){if(EQ.apply(this,arguments),Mc){if(Mc){var ee=zh;Mc=!1,zh=null}else throw Error(o(198));Hh||(Hh=!0,Xv=ee)}}function hs(a){var c=a,f=a;if(a.alternate)for(;c.return;)c=c.return;else{a=c;do c=a,(c.flags&4098)!==0&&(f=c.return),a=c.return;while(a)}return c.tag===3?f:null}function ZP(a){if(a.tag===13){var c=a.memoizedState;if(c===null&&(a=a.alternate,a!==null&&(c=a.memoizedState)),c!==null)return c.dehydrated}return null}function YP(a){if(hs(a)!==a)throw Error(o(188))}function DQ(a){var c=a.alternate;if(!c){if(c=hs(a),c===null)throw Error(o(188));return c!==a?null:a}for(var f=a,m=c;;){var w=f.return;if(w===null)break;var x=w.alternate;if(x===null){if(m=w.return,m!==null){f=m;continue}break}if(w.child===x.child){for(x=w.child;x;){if(x===f)return YP(w),a;if(x===m)return YP(w),c;x=x.sibling}throw Error(o(188))}if(f.return!==m.return)f=w,m=x;else{for(var E=!1,B=w.child;B;){if(B===f){E=!0,f=w,m=x;break}if(B===m){E=!0,m=w,f=x;break}B=B.sibling}if(!E){for(B=x.child;B;){if(B===f){E=!0,f=x,m=w;break}if(B===m){E=!0,m=x,f=w;break}B=B.sibling}if(!E)throw Error(o(189))}}if(f.alternate!==m)throw Error(o(190))}if(f.tag!==3)throw Error(o(188));return f.stateNode.current===f?a:c}function QP(a){return a=DQ(a),a!==null?JP(a):null}function JP(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var c=JP(a);if(c!==null)return c;a=a.sibling}return null}var eE=t.unstable_scheduleCallback,tE=t.unstable_cancelCallback,MQ=t.unstable_shouldYield,AQ=t.unstable_requestPaint,It=t.unstable_now,_Q=t.unstable_getCurrentPriorityLevel,Zv=t.unstable_ImmediatePriority,oE=t.unstable_UserBlockingPriority,Vh=t.unstable_NormalPriority,IQ=t.unstable_LowPriority,rE=t.unstable_IdlePriority,Gh=null,cn=null;function BQ(a){if(cn&&typeof cn.onCommitFiberRoot=="function")try{cn.onCommitFiberRoot(Gh,a,void 0,(a.current.flags&128)===128)}catch{}}var Mr=Math.clz32?Math.clz32:NQ,OQ=Math.log,LQ=Math.LN2;function NQ(a){return a>>>=0,a===0?32:31-(OQ(a)/LQ|0)|0}var jh=64,Wh=4194304;function Ac(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function qh(a,c){var f=a.pendingLanes;if(f===0)return 0;var m=0,w=a.suspendedLanes,x=a.pingedLanes,E=f&268435455;if(E!==0){var B=E&~w;B!==0?m=Ac(B):(x&=E,x!==0&&(m=Ac(x)))}else E=f&~w,E!==0?m=Ac(E):x!==0&&(m=Ac(x));if(m===0)return 0;if(c!==0&&c!==m&&(c&w)===0&&(w=m&-m,x=c&-c,w>=x||w===16&&(x&4194240)!==0))return c;if((m&4)!==0&&(m|=f&16),c=a.entangledLanes,c!==0)for(a=a.entanglements,c&=m;0<c;)f=31-Mr(c),w=1<<f,m|=a[f],c&=~w;return m}function zQ(a,c){switch(a){case 1:case 2:case 4:return c+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function HQ(a,c){for(var f=a.suspendedLanes,m=a.pingedLanes,w=a.expirationTimes,x=a.pendingLanes;0<x;){var E=31-Mr(x),B=1<<E,H=w[E];H===-1?((B&f)===0||(B&m)!==0)&&(w[E]=zQ(B,c)):H<=c&&(a.expiredLanes|=B),x&=~B}}function Yv(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function nE(){var a=jh;return jh<<=1,(jh&4194240)===0&&(jh=64),a}function Qv(a){for(var c=[],f=0;31>f;f++)c.push(a);return c}function _c(a,c,f){a.pendingLanes|=c,c!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,c=31-Mr(c),a[c]=f}function VQ(a,c){var f=a.pendingLanes&~c;a.pendingLanes=c,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=c,a.mutableReadLanes&=c,a.entangledLanes&=c,c=a.entanglements;var m=a.eventTimes;for(a=a.expirationTimes;0<f;){var w=31-Mr(f),x=1<<w;c[w]=0,m[w]=-1,a[w]=-1,f&=~x}}function Jv(a,c){var f=a.entangledLanes|=c;for(a=a.entanglements;f;){var m=31-Mr(f),w=1<<m;w&c|a[m]&c&&(a[m]|=c),f&=~w}}var nt=0;function iE(a){return a&=-a,1<a?4<a?(a&268435455)!==0?16:536870912:4:1}var sE,eb,aE,lE,cE,tb=!1,Uh=[],Ci=null,wi=null,yi=null,Ic=new Map,Bc=new Map,Si=[],GQ="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function uE(a,c){switch(a){case"focusin":case"focusout":Ci=null;break;case"dragenter":case"dragleave":wi=null;break;case"mouseover":case"mouseout":yi=null;break;case"pointerover":case"pointerout":Ic.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bc.delete(c.pointerId)}}function Oc(a,c,f,m,w,x){return a===null||a.nativeEvent!==x?(a={blockedOn:c,domEventName:f,eventSystemFlags:m,nativeEvent:x,targetContainers:[w]},c!==null&&(c=Zc(c),c!==null&&eb(c)),a):(a.eventSystemFlags|=m,c=a.targetContainers,w!==null&&c.indexOf(w)===-1&&c.push(w),a)}function jQ(a,c,f,m,w){switch(c){case"focusin":return Ci=Oc(Ci,a,c,f,m,w),!0;case"dragenter":return wi=Oc(wi,a,c,f,m,w),!0;case"mouseover":return yi=Oc(yi,a,c,f,m,w),!0;case"pointerover":var x=w.pointerId;return Ic.set(x,Oc(Ic.get(x)||null,a,c,f,m,w)),!0;case"gotpointercapture":return x=w.pointerId,Bc.set(x,Oc(Bc.get(x)||null,a,c,f,m,w)),!0}return!1}function dE(a){var c=fs(a.target);if(c!==null){var f=hs(c);if(f!==null){if(c=f.tag,c===13){if(c=ZP(f),c!==null){a.blockedOn=c,cE(a.priority,function(){aE(f)});return}}else if(c===3&&f.stateNode.current.memoizedState.isDehydrated){a.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}a.blockedOn=null}function $h(a){if(a.blockedOn!==null)return!1;for(var c=a.targetContainers;0<c.length;){var f=rb(a.domEventName,a.eventSystemFlags,c[0],a.nativeEvent);if(f===null){f=a.nativeEvent;var m=new f.constructor(f.type,f);Wv=m,f.target.dispatchEvent(m),Wv=null}else return c=Zc(f),c!==null&&eb(c),a.blockedOn=f,!1;c.shift()}return!0}function hE(a,c,f){$h(a)&&f.delete(c)}function WQ(){tb=!1,Ci!==null&&$h(Ci)&&(Ci=null),wi!==null&&$h(wi)&&(wi=null),yi!==null&&$h(yi)&&(yi=null),Ic.forEach(hE),Bc.forEach(hE)}function Lc(a,c){a.blockedOn===c&&(a.blockedOn=null,tb||(tb=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,WQ)))}function Nc(a){function c(w){return Lc(w,a)}if(0<Uh.length){Lc(Uh[0],a);for(var f=1;f<Uh.length;f++){var m=Uh[f];m.blockedOn===a&&(m.blockedOn=null)}}for(Ci!==null&&Lc(Ci,a),wi!==null&&Lc(wi,a),yi!==null&&Lc(yi,a),Ic.forEach(c),Bc.forEach(c),f=0;f<Si.length;f++)m=Si[f],m.blockedOn===a&&(m.blockedOn=null);for(;0<Si.length&&(f=Si[0],f.blockedOn===null);)dE(f),f.blockedOn===null&&Si.shift()}var za=P.ReactCurrentBatchConfig,Kh=!0;function qQ(a,c,f,m){var w=nt,x=za.transition;za.transition=null;try{nt=1,ob(a,c,f,m)}finally{nt=w,za.transition=x}}function UQ(a,c,f,m){var w=nt,x=za.transition;za.transition=null;try{nt=4,ob(a,c,f,m)}finally{nt=w,za.transition=x}}function ob(a,c,f,m){if(Kh){var w=rb(a,c,f,m);if(w===null)wb(a,c,m,Xh,f),uE(a,m);else if(jQ(w,a,c,f,m))m.stopPropagation();else if(uE(a,m),c&4&&-1<GQ.indexOf(a)){for(;w!==null;){var x=Zc(w);if(x!==null&&sE(x),x=rb(a,c,f,m),x===null&&wb(a,c,m,Xh,f),x===w)break;w=x}w!==null&&m.stopPropagation()}else wb(a,c,m,null,f)}}var Xh=null;function rb(a,c,f,m){if(Xh=null,a=qv(m),a=fs(a),a!==null)if(c=hs(a),c===null)a=null;else if(f=c.tag,f===13){if(a=ZP(c),a!==null)return a;a=null}else if(f===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;a=null}else c!==a&&(a=null);return Xh=a,null}function fE(a){switch(a){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(_Q()){case Zv:return 1;case oE:return 4;case Vh:case IQ:return 16;case rE:return 536870912;default:return 16}default:return 16}}var xi=null,nb=null,Zh=null;function pE(){if(Zh)return Zh;var a,c=nb,f=c.length,m,w="value"in xi?xi.value:xi.textContent,x=w.length;for(a=0;a<f&&c[a]===w[a];a++);var E=f-a;for(m=1;m<=E&&c[f-m]===w[x-m];m++);return Zh=w.slice(a,1<m?1-m:void 0)}function Yh(a){var c=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&c===13&&(a=13)):a=c,a===10&&(a=13),32<=a||a===13?a:0}function Qh(){return!0}function gE(){return!1}function Wo(a){function c(f,m,w,x,E){this._reactName=f,this._targetInst=w,this.type=m,this.nativeEvent=x,this.target=E,this.currentTarget=null;for(var B in a)a.hasOwnProperty(B)&&(f=a[B],this[B]=f?f(x):x[B]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Qh:gE,this.isPropagationStopped=gE,this}return j(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=Qh)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=Qh)},persist:function(){},isPersistent:Qh}),c}var Ha={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ib=Wo(Ha),zc=j({},Ha,{view:0,detail:0}),$Q=Wo(zc),sb,ab,Hc,Jh=j({},zc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cb,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Hc&&(Hc&&a.type==="mousemove"?(sb=a.screenX-Hc.screenX,ab=a.screenY-Hc.screenY):ab=sb=0,Hc=a),sb)},movementY:function(a){return"movementY"in a?a.movementY:ab}}),mE=Wo(Jh),KQ=j({},Jh,{dataTransfer:0}),XQ=Wo(KQ),ZQ=j({},zc,{relatedTarget:0}),lb=Wo(ZQ),YQ=j({},Ha,{animationName:0,elapsedTime:0,pseudoElement:0}),QQ=Wo(YQ),JQ=j({},Ha,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),eJ=Wo(JQ),tJ=j({},Ha,{data:0}),vE=Wo(tJ),oJ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rJ={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},nJ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iJ(a){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(a):(a=nJ[a])?!!c[a]:!1}function cb(){return iJ}var sJ=j({},zc,{key:function(a){if(a.key){var c=oJ[a.key]||a.key;if(c!=="Unidentified")return c}return a.type==="keypress"?(a=Yh(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?rJ[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cb,charCode:function(a){return a.type==="keypress"?Yh(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Yh(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),aJ=Wo(sJ),lJ=j({},Jh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bE=Wo(lJ),cJ=j({},zc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cb}),uJ=Wo(cJ),dJ=j({},Ha,{propertyName:0,elapsedTime:0,pseudoElement:0}),hJ=Wo(dJ),fJ=j({},Jh,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),pJ=Wo(fJ),gJ=[9,13,27,32],ub=l&&"CompositionEvent"in window,Vc=null;l&&"documentMode"in document&&(Vc=document.documentMode);var mJ=l&&"TextEvent"in window&&!Vc,CE=l&&(!ub||Vc&&8<Vc&&11>=Vc),wE=" ",yE=!1;function SE(a,c){switch(a){case"keyup":return gJ.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xE(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Va=!1;function vJ(a,c){switch(a){case"compositionend":return xE(c);case"keypress":return c.which!==32?null:(yE=!0,wE);case"textInput":return a=c.data,a===wE&&yE?null:a;default:return null}}function bJ(a,c){if(Va)return a==="compositionend"||!ub&&SE(a,c)?(a=pE(),Zh=nb=xi=null,Va=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return CE&&c.locale!=="ko"?null:c.data;default:return null}}var CJ={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function kE(a){var c=a&&a.nodeName&&a.nodeName.toLowerCase();return c==="input"?!!CJ[a.type]:c==="textarea"}function FE(a,c,f,m){qP(m),c=nf(c,"onChange"),0<c.length&&(f=new ib("onChange","change",null,f,m),a.push({event:f,listeners:c}))}var Gc=null,jc=null;function wJ(a){jE(a,0)}function ef(a){var c=Ua(a);if(Ne(c))return a}function yJ(a,c){if(a==="change")return c}var RE=!1;if(l){var db;if(l){var hb="oninput"in document;if(!hb){var PE=document.createElement("div");PE.setAttribute("oninput","return;"),hb=typeof PE.oninput=="function"}db=hb}else db=!1;RE=db&&(!document.documentMode||9<document.documentMode)}function EE(){Gc&&(Gc.detachEvent("onpropertychange",TE),jc=Gc=null)}function TE(a){if(a.propertyName==="value"&&ef(jc)){var c=[];FE(c,jc,a,qv(a)),XP(wJ,c)}}function SJ(a,c,f){a==="focusin"?(EE(),Gc=c,jc=f,Gc.attachEvent("onpropertychange",TE)):a==="focusout"&&EE()}function xJ(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return ef(jc)}function kJ(a,c){if(a==="click")return ef(c)}function FJ(a,c){if(a==="input"||a==="change")return ef(c)}function RJ(a,c){return a===c&&(a!==0||1/a===1/c)||a!==a&&c!==c}var Ar=typeof Object.is=="function"?Object.is:RJ;function Wc(a,c){if(Ar(a,c))return!0;if(typeof a!="object"||a===null||typeof c!="object"||c===null)return!1;var f=Object.keys(a),m=Object.keys(c);if(f.length!==m.length)return!1;for(m=0;m<f.length;m++){var w=f[m];if(!u.call(c,w)||!Ar(a[w],c[w]))return!1}return!0}function DE(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function ME(a,c){var f=DE(a);a=0;for(var m;f;){if(f.nodeType===3){if(m=a+f.textContent.length,a<=c&&m>=c)return{node:f,offset:c-a};a=m}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=DE(f)}}function AE(a,c){return a&&c?a===c?!0:a&&a.nodeType===3?!1:c&&c.nodeType===3?AE(a,c.parentNode):"contains"in a?a.contains(c):a.compareDocumentPosition?!!(a.compareDocumentPosition(c)&16):!1:!1}function _E(){for(var a=window,c=at();c instanceof a.HTMLIFrameElement;){try{var f=typeof c.contentWindow.location.href=="string"}catch{f=!1}if(f)a=c.contentWindow;else break;c=at(a.document)}return c}function fb(a){var c=a&&a.nodeName&&a.nodeName.toLowerCase();return c&&(c==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||c==="textarea"||a.contentEditable==="true")}function PJ(a){var c=_E(),f=a.focusedElem,m=a.selectionRange;if(c!==f&&f&&f.ownerDocument&&AE(f.ownerDocument.documentElement,f)){if(m!==null&&fb(f)){if(c=m.start,a=m.end,a===void 0&&(a=c),"selectionStart"in f)f.selectionStart=c,f.selectionEnd=Math.min(a,f.value.length);else if(a=(c=f.ownerDocument||document)&&c.defaultView||window,a.getSelection){a=a.getSelection();var w=f.textContent.length,x=Math.min(m.start,w);m=m.end===void 0?x:Math.min(m.end,w),!a.extend&&x>m&&(w=m,m=x,x=w),w=ME(f,x);var E=ME(f,m);w&&E&&(a.rangeCount!==1||a.anchorNode!==w.node||a.anchorOffset!==w.offset||a.focusNode!==E.node||a.focusOffset!==E.offset)&&(c=c.createRange(),c.setStart(w.node,w.offset),a.removeAllRanges(),x>m?(a.addRange(c),a.extend(E.node,E.offset)):(c.setEnd(E.node,E.offset),a.addRange(c)))}}for(c=[],a=f;a=a.parentNode;)a.nodeType===1&&c.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<c.length;f++)a=c[f],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var EJ=l&&"documentMode"in document&&11>=document.documentMode,Ga=null,pb=null,qc=null,gb=!1;function IE(a,c,f){var m=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;gb||Ga==null||Ga!==at(m)||(m=Ga,"selectionStart"in m&&fb(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),qc&&Wc(qc,m)||(qc=m,m=nf(pb,"onSelect"),0<m.length&&(c=new ib("onSelect","select",null,c,f),a.push({event:c,listeners:m}),c.target=Ga)))}function tf(a,c){var f={};return f[a.toLowerCase()]=c.toLowerCase(),f["Webkit"+a]="webkit"+c,f["Moz"+a]="moz"+c,f}var ja={animationend:tf("Animation","AnimationEnd"),animationiteration:tf("Animation","AnimationIteration"),animationstart:tf("Animation","AnimationStart"),transitionend:tf("Transition","TransitionEnd")},mb={},BE={};l&&(BE=document.createElement("div").style,"AnimationEvent"in window||(delete ja.animationend.animation,delete ja.animationiteration.animation,delete ja.animationstart.animation),"TransitionEvent"in window||delete ja.transitionend.transition);function of(a){if(mb[a])return mb[a];if(!ja[a])return a;var c=ja[a],f;for(f in c)if(c.hasOwnProperty(f)&&f in BE)return mb[a]=c[f];return a}var OE=of("animationend"),LE=of("animationiteration"),NE=of("animationstart"),zE=of("transitionend"),HE=new Map,VE="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ki(a,c){HE.set(a,c),i(c,[a])}for(var vb=0;vb<VE.length;vb++){var bb=VE[vb],TJ=bb.toLowerCase(),DJ=bb[0].toUpperCase()+bb.slice(1);ki(TJ,"on"+DJ)}ki(OE,"onAnimationEnd"),ki(LE,"onAnimationIteration"),ki(NE,"onAnimationStart"),ki("dblclick","onDoubleClick"),ki("focusin","onFocus"),ki("focusout","onBlur"),ki(zE,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Uc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),MJ=new Set("cancel close invalid load scroll toggle".split(" ").concat(Uc));function GE(a,c,f){var m=a.type||"unknown-event";a.currentTarget=f,TQ(m,c,void 0,a),a.currentTarget=null}function jE(a,c){c=(c&4)!==0;for(var f=0;f<a.length;f++){var m=a[f],w=m.event;m=m.listeners;e:{var x=void 0;if(c)for(var E=m.length-1;0<=E;E--){var B=m[E],H=B.instance,ee=B.currentTarget;if(B=B.listener,H!==x&&w.isPropagationStopped())break e;GE(w,B,ee),x=H}else for(E=0;E<m.length;E++){if(B=m[E],H=B.instance,ee=B.currentTarget,B=B.listener,H!==x&&w.isPropagationStopped())break e;GE(w,B,ee),x=H}}}if(Hh)throw a=Xv,Hh=!1,Xv=null,a}function mt(a,c){var f=c[Rb];f===void 0&&(f=c[Rb]=new Set);var m=a+"__bubble";f.has(m)||(WE(c,a,2,!1),f.add(m))}function Cb(a,c,f){var m=0;c&&(m|=4),WE(f,a,m,c)}var rf="_reactListening"+Math.random().toString(36).slice(2);function $c(a){if(!a[rf]){a[rf]=!0,r.forEach(function(f){f!=="selectionchange"&&(MJ.has(f)||Cb(f,!1,a),Cb(f,!0,a))});var c=a.nodeType===9?a:a.ownerDocument;c===null||c[rf]||(c[rf]=!0,Cb("selectionchange",!1,c))}}function WE(a,c,f,m){switch(fE(c)){case 1:var w=qQ;break;case 4:w=UQ;break;default:w=ob}f=w.bind(null,c,f,a),w=void 0,!Kv||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(w=!0),m?w!==void 0?a.addEventListener(c,f,{capture:!0,passive:w}):a.addEventListener(c,f,!0):w!==void 0?a.addEventListener(c,f,{passive:w}):a.addEventListener(c,f,!1)}function wb(a,c,f,m,w){var x=m;if((c&1)===0&&(c&2)===0&&m!==null)e:for(;;){if(m===null)return;var E=m.tag;if(E===3||E===4){var B=m.stateNode.containerInfo;if(B===w||B.nodeType===8&&B.parentNode===w)break;if(E===4)for(E=m.return;E!==null;){var H=E.tag;if((H===3||H===4)&&(H=E.stateNode.containerInfo,H===w||H.nodeType===8&&H.parentNode===w))return;E=E.return}for(;B!==null;){if(E=fs(B),E===null)return;if(H=E.tag,H===5||H===6){m=x=E;continue e}B=B.parentNode}}m=m.return}XP(function(){var ee=x,le=qv(f),ce=[];e:{var se=HE.get(a);if(se!==void 0){var ve=ib,we=a;switch(a){case"keypress":if(Yh(f)===0)break e;case"keydown":case"keyup":ve=aJ;break;case"focusin":we="focus",ve=lb;break;case"focusout":we="blur",ve=lb;break;case"beforeblur":case"afterblur":ve=lb;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ve=mE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ve=XQ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ve=uJ;break;case OE:case LE:case NE:ve=QQ;break;case zE:ve=hJ;break;case"scroll":ve=$Q;break;case"wheel":ve=pJ;break;case"copy":case"cut":case"paste":ve=eJ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ve=bE}var Se=(c&4)!==0,Bt=!Se&&a==="scroll",X=Se?se!==null?se+"Capture":null:se;Se=[];for(var G=ee,Q;G!==null;){Q=G;var de=Q.stateNode;if(Q.tag===5&&de!==null&&(Q=de,X!==null&&(de=Tc(G,X),de!=null&&Se.push(Kc(G,de,Q)))),Bt)break;G=G.return}0<Se.length&&(se=new ve(se,we,null,f,le),ce.push({event:se,listeners:Se}))}}if((c&7)===0){e:{if(se=a==="mouseover"||a==="pointerover",ve=a==="mouseout"||a==="pointerout",se&&f!==Wv&&(we=f.relatedTarget||f.fromElement)&&(fs(we)||we[Nn]))break e;if((ve||se)&&(se=le.window===le?le:(se=le.ownerDocument)?se.defaultView||se.parentWindow:window,ve?(we=f.relatedTarget||f.toElement,ve=ee,we=we?fs(we):null,we!==null&&(Bt=hs(we),we!==Bt||we.tag!==5&&we.tag!==6)&&(we=null)):(ve=null,we=ee),ve!==we)){if(Se=mE,de="onMouseLeave",X="onMouseEnter",G="mouse",(a==="pointerout"||a==="pointerover")&&(Se=bE,de="onPointerLeave",X="onPointerEnter",G="pointer"),Bt=ve==null?se:Ua(ve),Q=we==null?se:Ua(we),se=new Se(de,G+"leave",ve,f,le),se.target=Bt,se.relatedTarget=Q,de=null,fs(le)===ee&&(Se=new Se(X,G+"enter",we,f,le),Se.target=Q,Se.relatedTarget=Bt,de=Se),Bt=de,ve&&we)t:{for(Se=ve,X=we,G=0,Q=Se;Q;Q=Wa(Q))G++;for(Q=0,de=X;de;de=Wa(de))Q++;for(;0<G-Q;)Se=Wa(Se),G--;for(;0<Q-G;)X=Wa(X),Q--;for(;G--;){if(Se===X||X!==null&&Se===X.alternate)break t;Se=Wa(Se),X=Wa(X)}Se=null}else Se=null;ve!==null&&qE(ce,se,ve,Se,!1),we!==null&&Bt!==null&&qE(ce,Bt,we,Se,!0)}}e:{if(se=ee?Ua(ee):window,ve=se.nodeName&&se.nodeName.toLowerCase(),ve==="select"||ve==="input"&&se.type==="file")var ke=yJ;else if(kE(se))if(RE)ke=FJ;else{ke=xJ;var Te=SJ}else(ve=se.nodeName)&&ve.toLowerCase()==="input"&&(se.type==="checkbox"||se.type==="radio")&&(ke=kJ);if(ke&&(ke=ke(a,ee))){FE(ce,ke,f,le);break e}Te&&Te(a,se,ee),a==="focusout"&&(Te=se._wrapperState)&&Te.controlled&&se.type==="number"&&_t(se,"number",se.value)}switch(Te=ee?Ua(ee):window,a){case"focusin":(kE(Te)||Te.contentEditable==="true")&&(Ga=Te,pb=ee,qc=null);break;case"focusout":qc=pb=Ga=null;break;case"mousedown":gb=!0;break;case"contextmenu":case"mouseup":case"dragend":gb=!1,IE(ce,f,le);break;case"selectionchange":if(EJ)break;case"keydown":case"keyup":IE(ce,f,le)}var De;if(ub)e:{switch(a){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else Va?SE(a,f)&&(Oe="onCompositionEnd"):a==="keydown"&&f.keyCode===229&&(Oe="onCompositionStart");Oe&&(CE&&f.locale!=="ko"&&(Va||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Va&&(De=pE()):(xi=le,nb="value"in xi?xi.value:xi.textContent,Va=!0)),Te=nf(ee,Oe),0<Te.length&&(Oe=new vE(Oe,a,null,f,le),ce.push({event:Oe,listeners:Te}),De?Oe.data=De:(De=xE(f),De!==null&&(Oe.data=De)))),(De=mJ?vJ(a,f):bJ(a,f))&&(ee=nf(ee,"onBeforeInput"),0<ee.length&&(le=new vE("onBeforeInput","beforeinput",null,f,le),ce.push({event:le,listeners:ee}),le.data=De))}jE(ce,c)})}function Kc(a,c,f){return{instance:a,listener:c,currentTarget:f}}function nf(a,c){for(var f=c+"Capture",m=[];a!==null;){var w=a,x=w.stateNode;w.tag===5&&x!==null&&(w=x,x=Tc(a,f),x!=null&&m.unshift(Kc(a,x,w)),x=Tc(a,c),x!=null&&m.push(Kc(a,x,w))),a=a.return}return m}function Wa(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function qE(a,c,f,m,w){for(var x=c._reactName,E=[];f!==null&&f!==m;){var B=f,H=B.alternate,ee=B.stateNode;if(H!==null&&H===m)break;B.tag===5&&ee!==null&&(B=ee,w?(H=Tc(f,x),H!=null&&E.unshift(Kc(f,H,B))):w||(H=Tc(f,x),H!=null&&E.push(Kc(f,H,B)))),f=f.return}E.length!==0&&a.push({event:c,listeners:E})}var AJ=/\r\n?/g,_J=/\u0000|\uFFFD/g;function UE(a){return(typeof a=="string"?a:""+a).replace(AJ,`
7
+ `).replace(_J,"")}function sf(a,c,f){if(c=UE(c),UE(a)!==c&&f)throw Error(o(425))}function af(){}var yb=null,Sb=null;function xb(a,c){return a==="textarea"||a==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var kb=typeof setTimeout=="function"?setTimeout:void 0,IJ=typeof clearTimeout=="function"?clearTimeout:void 0,$E=typeof Promise=="function"?Promise:void 0,BJ=typeof queueMicrotask=="function"?queueMicrotask:typeof $E<"u"?function(a){return $E.resolve(null).then(a).catch(OJ)}:kb;function OJ(a){setTimeout(function(){throw a})}function Fb(a,c){var f=c,m=0;do{var w=f.nextSibling;if(a.removeChild(f),w&&w.nodeType===8)if(f=w.data,f==="/$"){if(m===0){a.removeChild(w),Nc(c);return}m--}else f!=="$"&&f!=="$?"&&f!=="$!"||m++;f=w}while(f);Nc(c)}function Fi(a){for(;a!=null;a=a.nextSibling){var c=a.nodeType;if(c===1||c===3)break;if(c===8){if(c=a.data,c==="$"||c==="$!"||c==="$?")break;if(c==="/$")return null}}return a}function KE(a){a=a.previousSibling;for(var c=0;a;){if(a.nodeType===8){var f=a.data;if(f==="$"||f==="$!"||f==="$?"){if(c===0)return a;c--}else f==="/$"&&c++}a=a.previousSibling}return null}var qa=Math.random().toString(36).slice(2),un="__reactFiber$"+qa,Xc="__reactProps$"+qa,Nn="__reactContainer$"+qa,Rb="__reactEvents$"+qa,LJ="__reactListeners$"+qa,NJ="__reactHandles$"+qa;function fs(a){var c=a[un];if(c)return c;for(var f=a.parentNode;f;){if(c=f[Nn]||f[un]){if(f=c.alternate,c.child!==null||f!==null&&f.child!==null)for(a=KE(a);a!==null;){if(f=a[un])return f;a=KE(a)}return c}a=f,f=a.parentNode}return null}function Zc(a){return a=a[un]||a[Nn],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function Ua(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(o(33))}function lf(a){return a[Xc]||null}var Pb=[],$a=-1;function Ri(a){return{current:a}}function vt(a){0>$a||(a.current=Pb[$a],Pb[$a]=null,$a--)}function pt(a,c){$a++,Pb[$a]=a.current,a.current=c}var Pi={},co=Ri(Pi),Po=Ri(!1),ps=Pi;function Ka(a,c){var f=a.type.contextTypes;if(!f)return Pi;var m=a.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===c)return m.__reactInternalMemoizedMaskedChildContext;var w={},x;for(x in f)w[x]=c[x];return m&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=c,a.__reactInternalMemoizedMaskedChildContext=w),w}function Eo(a){return a=a.childContextTypes,a!=null}function cf(){vt(Po),vt(co)}function XE(a,c,f){if(co.current!==Pi)throw Error(o(168));pt(co,c),pt(Po,f)}function ZE(a,c,f){var m=a.stateNode;if(c=c.childContextTypes,typeof m.getChildContext!="function")return f;m=m.getChildContext();for(var w in m)if(!(w in c))throw Error(o(108,We(a)||"Unknown",w));return j({},f,m)}function uf(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Pi,ps=co.current,pt(co,a),pt(Po,Po.current),!0}function YE(a,c,f){var m=a.stateNode;if(!m)throw Error(o(169));f?(a=ZE(a,c,ps),m.__reactInternalMemoizedMergedChildContext=a,vt(Po),vt(co),pt(co,a)):vt(Po),pt(Po,f)}var zn=null,df=!1,Eb=!1;function QE(a){zn===null?zn=[a]:zn.push(a)}function zJ(a){df=!0,QE(a)}function Ei(){if(!Eb&&zn!==null){Eb=!0;var a=0,c=nt;try{var f=zn;for(nt=1;a<f.length;a++){var m=f[a];do m=m(!0);while(m!==null)}zn=null,df=!1}catch(w){throw zn!==null&&(zn=zn.slice(a+1)),eE(Zv,Ei),w}finally{nt=c,Eb=!1}}return null}var Xa=[],Za=0,hf=null,ff=0,ar=[],lr=0,gs=null,Hn=1,Vn="";function ms(a,c){Xa[Za++]=ff,Xa[Za++]=hf,hf=a,ff=c}function JE(a,c,f){ar[lr++]=Hn,ar[lr++]=Vn,ar[lr++]=gs,gs=a;var m=Hn;a=Vn;var w=32-Mr(m)-1;m&=~(1<<w),f+=1;var x=32-Mr(c)+w;if(30<x){var E=w-w%5;x=(m&(1<<E)-1).toString(32),m>>=E,w-=E,Hn=1<<32-Mr(c)+w|f<<w|m,Vn=x+a}else Hn=1<<x|f<<w|m,Vn=a}function Tb(a){a.return!==null&&(ms(a,1),JE(a,1,0))}function Db(a){for(;a===hf;)hf=Xa[--Za],Xa[Za]=null,ff=Xa[--Za],Xa[Za]=null;for(;a===gs;)gs=ar[--lr],ar[lr]=null,Vn=ar[--lr],ar[lr]=null,Hn=ar[--lr],ar[lr]=null}var qo=null,Uo=null,Ct=!1,_r=null;function eT(a,c){var f=hr(5,null,null,0);f.elementType="DELETED",f.stateNode=c,f.return=a,c=a.deletions,c===null?(a.deletions=[f],a.flags|=16):c.push(f)}function tT(a,c){switch(a.tag){case 5:var f=a.type;return c=c.nodeType!==1||f.toLowerCase()!==c.nodeName.toLowerCase()?null:c,c!==null?(a.stateNode=c,qo=a,Uo=Fi(c.firstChild),!0):!1;case 6:return c=a.pendingProps===""||c.nodeType!==3?null:c,c!==null?(a.stateNode=c,qo=a,Uo=null,!0):!1;case 13:return c=c.nodeType!==8?null:c,c!==null?(f=gs!==null?{id:Hn,overflow:Vn}:null,a.memoizedState={dehydrated:c,treeContext:f,retryLane:1073741824},f=hr(18,null,null,0),f.stateNode=c,f.return=a,a.child=f,qo=a,Uo=null,!0):!1;default:return!1}}function Mb(a){return(a.mode&1)!==0&&(a.flags&128)===0}function Ab(a){if(Ct){var c=Uo;if(c){var f=c;if(!tT(a,c)){if(Mb(a))throw Error(o(418));c=Fi(f.nextSibling);var m=qo;c&&tT(a,c)?eT(m,f):(a.flags=a.flags&-4097|2,Ct=!1,qo=a)}}else{if(Mb(a))throw Error(o(418));a.flags=a.flags&-4097|2,Ct=!1,qo=a}}}function oT(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;qo=a}function pf(a){if(a!==qo)return!1;if(!Ct)return oT(a),Ct=!0,!1;var c;if((c=a.tag!==3)&&!(c=a.tag!==5)&&(c=a.type,c=c!=="head"&&c!=="body"&&!xb(a.type,a.memoizedProps)),c&&(c=Uo)){if(Mb(a))throw rT(),Error(o(418));for(;c;)eT(a,c),c=Fi(c.nextSibling)}if(oT(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(o(317));e:{for(a=a.nextSibling,c=0;a;){if(a.nodeType===8){var f=a.data;if(f==="/$"){if(c===0){Uo=Fi(a.nextSibling);break e}c--}else f!=="$"&&f!=="$!"&&f!=="$?"||c++}a=a.nextSibling}Uo=null}}else Uo=qo?Fi(a.stateNode.nextSibling):null;return!0}function rT(){for(var a=Uo;a;)a=Fi(a.nextSibling)}function Ya(){Uo=qo=null,Ct=!1}function _b(a){_r===null?_r=[a]:_r.push(a)}var HJ=P.ReactCurrentBatchConfig;function Yc(a,c,f){if(a=f.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(f._owner){if(f=f._owner,f){if(f.tag!==1)throw Error(o(309));var m=f.stateNode}if(!m)throw Error(o(147,a));var w=m,x=""+a;return c!==null&&c.ref!==null&&typeof c.ref=="function"&&c.ref._stringRef===x?c.ref:(c=function(E){var B=w.refs;E===null?delete B[x]:B[x]=E},c._stringRef=x,c)}if(typeof a!="string")throw Error(o(284));if(!f._owner)throw Error(o(290,a))}return a}function gf(a,c){throw a=Object.prototype.toString.call(c),Error(o(31,a==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":a))}function nT(a){var c=a._init;return c(a._payload)}function iT(a){function c(X,G){if(a){var Q=X.deletions;Q===null?(X.deletions=[G],X.flags|=16):Q.push(G)}}function f(X,G){if(!a)return null;for(;G!==null;)c(X,G),G=G.sibling;return null}function m(X,G){for(X=new Map;G!==null;)G.key!==null?X.set(G.key,G):X.set(G.index,G),G=G.sibling;return X}function w(X,G){return X=Oi(X,G),X.index=0,X.sibling=null,X}function x(X,G,Q){return X.index=Q,a?(Q=X.alternate,Q!==null?(Q=Q.index,Q<G?(X.flags|=2,G):Q):(X.flags|=2,G)):(X.flags|=1048576,G)}function E(X){return a&&X.alternate===null&&(X.flags|=2),X}function B(X,G,Q,de){return G===null||G.tag!==6?(G=kC(Q,X.mode,de),G.return=X,G):(G=w(G,Q),G.return=X,G)}function H(X,G,Q,de){var ke=Q.type;return ke===M?le(X,G,Q.props.children,de,Q.key):G!==null&&(G.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===Z&&nT(ke)===G.type)?(de=w(G,Q.props),de.ref=Yc(X,G,Q),de.return=X,de):(de=zf(Q.type,Q.key,Q.props,null,X.mode,de),de.ref=Yc(X,G,Q),de.return=X,de)}function ee(X,G,Q,de){return G===null||G.tag!==4||G.stateNode.containerInfo!==Q.containerInfo||G.stateNode.implementation!==Q.implementation?(G=FC(Q,X.mode,de),G.return=X,G):(G=w(G,Q.children||[]),G.return=X,G)}function le(X,G,Q,de,ke){return G===null||G.tag!==7?(G=ks(Q,X.mode,de,ke),G.return=X,G):(G=w(G,Q),G.return=X,G)}function ce(X,G,Q){if(typeof G=="string"&&G!==""||typeof G=="number")return G=kC(""+G,X.mode,Q),G.return=X,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case T:return Q=zf(G.type,G.key,G.props,null,X.mode,Q),Q.ref=Yc(X,null,G),Q.return=X,Q;case D:return G=FC(G,X.mode,Q),G.return=X,G;case Z:var de=G._init;return ce(X,de(G._payload),Q)}if(ht(G)||V(G))return G=ks(G,X.mode,Q,null),G.return=X,G;gf(X,G)}return null}function se(X,G,Q,de){var ke=G!==null?G.key:null;if(typeof Q=="string"&&Q!==""||typeof Q=="number")return ke!==null?null:B(X,G,""+Q,de);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case T:return Q.key===ke?H(X,G,Q,de):null;case D:return Q.key===ke?ee(X,G,Q,de):null;case Z:return ke=Q._init,se(X,G,ke(Q._payload),de)}if(ht(Q)||V(Q))return ke!==null?null:le(X,G,Q,de,null);gf(X,Q)}return null}function ve(X,G,Q,de,ke){if(typeof de=="string"&&de!==""||typeof de=="number")return X=X.get(Q)||null,B(G,X,""+de,ke);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case T:return X=X.get(de.key===null?Q:de.key)||null,H(G,X,de,ke);case D:return X=X.get(de.key===null?Q:de.key)||null,ee(G,X,de,ke);case Z:var Te=de._init;return ve(X,G,Q,Te(de._payload),ke)}if(ht(de)||V(de))return X=X.get(Q)||null,le(G,X,de,ke,null);gf(G,de)}return null}function we(X,G,Q,de){for(var ke=null,Te=null,De=G,Oe=G=0,Kt=null;De!==null&&Oe<Q.length;Oe++){De.index>Oe?(Kt=De,De=null):Kt=De.sibling;var Je=se(X,De,Q[Oe],de);if(Je===null){De===null&&(De=Kt);break}a&&De&&Je.alternate===null&&c(X,De),G=x(Je,G,Oe),Te===null?ke=Je:Te.sibling=Je,Te=Je,De=Kt}if(Oe===Q.length)return f(X,De),Ct&&ms(X,Oe),ke;if(De===null){for(;Oe<Q.length;Oe++)De=ce(X,Q[Oe],de),De!==null&&(G=x(De,G,Oe),Te===null?ke=De:Te.sibling=De,Te=De);return Ct&&ms(X,Oe),ke}for(De=m(X,De);Oe<Q.length;Oe++)Kt=ve(De,X,Oe,Q[Oe],de),Kt!==null&&(a&&Kt.alternate!==null&&De.delete(Kt.key===null?Oe:Kt.key),G=x(Kt,G,Oe),Te===null?ke=Kt:Te.sibling=Kt,Te=Kt);return a&&De.forEach(function(Li){return c(X,Li)}),Ct&&ms(X,Oe),ke}function Se(X,G,Q,de){var ke=V(Q);if(typeof ke!="function")throw Error(o(150));if(Q=ke.call(Q),Q==null)throw Error(o(151));for(var Te=ke=null,De=G,Oe=G=0,Kt=null,Je=Q.next();De!==null&&!Je.done;Oe++,Je=Q.next()){De.index>Oe?(Kt=De,De=null):Kt=De.sibling;var Li=se(X,De,Je.value,de);if(Li===null){De===null&&(De=Kt);break}a&&De&&Li.alternate===null&&c(X,De),G=x(Li,G,Oe),Te===null?ke=Li:Te.sibling=Li,Te=Li,De=Kt}if(Je.done)return f(X,De),Ct&&ms(X,Oe),ke;if(De===null){for(;!Je.done;Oe++,Je=Q.next())Je=ce(X,Je.value,de),Je!==null&&(G=x(Je,G,Oe),Te===null?ke=Je:Te.sibling=Je,Te=Je);return Ct&&ms(X,Oe),ke}for(De=m(X,De);!Je.done;Oe++,Je=Q.next())Je=ve(De,X,Oe,Je.value,de),Je!==null&&(a&&Je.alternate!==null&&De.delete(Je.key===null?Oe:Je.key),G=x(Je,G,Oe),Te===null?ke=Je:Te.sibling=Je,Te=Je);return a&&De.forEach(function(Cee){return c(X,Cee)}),Ct&&ms(X,Oe),ke}function Bt(X,G,Q,de){if(typeof Q=="object"&&Q!==null&&Q.type===M&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case T:e:{for(var ke=Q.key,Te=G;Te!==null;){if(Te.key===ke){if(ke=Q.type,ke===M){if(Te.tag===7){f(X,Te.sibling),G=w(Te,Q.props.children),G.return=X,X=G;break e}}else if(Te.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===Z&&nT(ke)===Te.type){f(X,Te.sibling),G=w(Te,Q.props),G.ref=Yc(X,Te,Q),G.return=X,X=G;break e}f(X,Te);break}else c(X,Te);Te=Te.sibling}Q.type===M?(G=ks(Q.props.children,X.mode,de,Q.key),G.return=X,X=G):(de=zf(Q.type,Q.key,Q.props,null,X.mode,de),de.ref=Yc(X,G,Q),de.return=X,X=de)}return E(X);case D:e:{for(Te=Q.key;G!==null;){if(G.key===Te)if(G.tag===4&&G.stateNode.containerInfo===Q.containerInfo&&G.stateNode.implementation===Q.implementation){f(X,G.sibling),G=w(G,Q.children||[]),G.return=X,X=G;break e}else{f(X,G);break}else c(X,G);G=G.sibling}G=FC(Q,X.mode,de),G.return=X,X=G}return E(X);case Z:return Te=Q._init,Bt(X,G,Te(Q._payload),de)}if(ht(Q))return we(X,G,Q,de);if(V(Q))return Se(X,G,Q,de);gf(X,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"?(Q=""+Q,G!==null&&G.tag===6?(f(X,G.sibling),G=w(G,Q),G.return=X,X=G):(f(X,G),G=kC(Q,X.mode,de),G.return=X,X=G),E(X)):f(X,G)}return Bt}var Qa=iT(!0),sT=iT(!1),mf=Ri(null),vf=null,Ja=null,Ib=null;function Bb(){Ib=Ja=vf=null}function Ob(a){var c=mf.current;vt(mf),a._currentValue=c}function Lb(a,c,f){for(;a!==null;){var m=a.alternate;if((a.childLanes&c)!==c?(a.childLanes|=c,m!==null&&(m.childLanes|=c)):m!==null&&(m.childLanes&c)!==c&&(m.childLanes|=c),a===f)break;a=a.return}}function el(a,c){vf=a,Ib=Ja=null,a=a.dependencies,a!==null&&a.firstContext!==null&&((a.lanes&c)!==0&&(To=!0),a.firstContext=null)}function cr(a){var c=a._currentValue;if(Ib!==a)if(a={context:a,memoizedValue:c,next:null},Ja===null){if(vf===null)throw Error(o(308));Ja=a,vf.dependencies={lanes:0,firstContext:a}}else Ja=Ja.next=a;return c}var vs=null;function Nb(a){vs===null?vs=[a]:vs.push(a)}function aT(a,c,f,m){var w=c.interleaved;return w===null?(f.next=f,Nb(c)):(f.next=w.next,w.next=f),c.interleaved=f,Gn(a,m)}function Gn(a,c){a.lanes|=c;var f=a.alternate;for(f!==null&&(f.lanes|=c),f=a,a=a.return;a!==null;)a.childLanes|=c,f=a.alternate,f!==null&&(f.childLanes|=c),f=a,a=a.return;return f.tag===3?f.stateNode:null}var Ti=!1;function zb(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lT(a,c){a=a.updateQueue,c.updateQueue===a&&(c.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function jn(a,c){return{eventTime:a,lane:c,tag:0,payload:null,callback:null,next:null}}function Di(a,c,f){var m=a.updateQueue;if(m===null)return null;if(m=m.shared,(Ze&2)!==0){var w=m.pending;return w===null?c.next=c:(c.next=w.next,w.next=c),m.pending=c,Gn(a,f)}return w=m.interleaved,w===null?(c.next=c,Nb(m)):(c.next=w.next,w.next=c),m.interleaved=c,Gn(a,f)}function bf(a,c,f){if(c=c.updateQueue,c!==null&&(c=c.shared,(f&4194240)!==0)){var m=c.lanes;m&=a.pendingLanes,f|=m,c.lanes=f,Jv(a,f)}}function cT(a,c){var f=a.updateQueue,m=a.alternate;if(m!==null&&(m=m.updateQueue,f===m)){var w=null,x=null;if(f=f.firstBaseUpdate,f!==null){do{var E={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};x===null?w=x=E:x=x.next=E,f=f.next}while(f!==null);x===null?w=x=c:x=x.next=c}else w=x=c;f={baseState:m.baseState,firstBaseUpdate:w,lastBaseUpdate:x,shared:m.shared,effects:m.effects},a.updateQueue=f;return}a=f.lastBaseUpdate,a===null?f.firstBaseUpdate=c:a.next=c,f.lastBaseUpdate=c}function Cf(a,c,f,m){var w=a.updateQueue;Ti=!1;var x=w.firstBaseUpdate,E=w.lastBaseUpdate,B=w.shared.pending;if(B!==null){w.shared.pending=null;var H=B,ee=H.next;H.next=null,E===null?x=ee:E.next=ee,E=H;var le=a.alternate;le!==null&&(le=le.updateQueue,B=le.lastBaseUpdate,B!==E&&(B===null?le.firstBaseUpdate=ee:B.next=ee,le.lastBaseUpdate=H))}if(x!==null){var ce=w.baseState;E=0,le=ee=H=null,B=x;do{var se=B.lane,ve=B.eventTime;if((m&se)===se){le!==null&&(le=le.next={eventTime:ve,lane:0,tag:B.tag,payload:B.payload,callback:B.callback,next:null});e:{var we=a,Se=B;switch(se=c,ve=f,Se.tag){case 1:if(we=Se.payload,typeof we=="function"){ce=we.call(ve,ce,se);break e}ce=we;break e;case 3:we.flags=we.flags&-65537|128;case 0:if(we=Se.payload,se=typeof we=="function"?we.call(ve,ce,se):we,se==null)break e;ce=j({},ce,se);break e;case 2:Ti=!0}}B.callback!==null&&B.lane!==0&&(a.flags|=64,se=w.effects,se===null?w.effects=[B]:se.push(B))}else ve={eventTime:ve,lane:se,tag:B.tag,payload:B.payload,callback:B.callback,next:null},le===null?(ee=le=ve,H=ce):le=le.next=ve,E|=se;if(B=B.next,B===null){if(B=w.shared.pending,B===null)break;se=B,B=se.next,se.next=null,w.lastBaseUpdate=se,w.shared.pending=null}}while(!0);if(le===null&&(H=ce),w.baseState=H,w.firstBaseUpdate=ee,w.lastBaseUpdate=le,c=w.shared.interleaved,c!==null){w=c;do E|=w.lane,w=w.next;while(w!==c)}else x===null&&(w.shared.lanes=0);ws|=E,a.lanes=E,a.memoizedState=ce}}function uT(a,c,f){if(a=c.effects,c.effects=null,a!==null)for(c=0;c<a.length;c++){var m=a[c],w=m.callback;if(w!==null){if(m.callback=null,m=f,typeof w!="function")throw Error(o(191,w));w.call(m)}}}var Qc={},dn=Ri(Qc),Jc=Ri(Qc),eu=Ri(Qc);function bs(a){if(a===Qc)throw Error(o(174));return a}function Hb(a,c){switch(pt(eu,c),pt(Jc,a),pt(dn,Qc),a=c.nodeType,a){case 9:case 11:c=(c=c.documentElement)?c.namespaceURI:Oa(null,"");break;default:a=a===8?c.parentNode:c,c=a.namespaceURI||null,a=a.tagName,c=Oa(c,a)}vt(dn),pt(dn,c)}function tl(){vt(dn),vt(Jc),vt(eu)}function dT(a){bs(eu.current);var c=bs(dn.current),f=Oa(c,a.type);c!==f&&(pt(Jc,a),pt(dn,f))}function Vb(a){Jc.current===a&&(vt(dn),vt(Jc))}var St=Ri(0);function wf(a){for(var c=a;c!==null;){if(c.tag===13){var f=c.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||f.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===a)break;for(;c.sibling===null;){if(c.return===null||c.return===a)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var Gb=[];function jb(){for(var a=0;a<Gb.length;a++)Gb[a]._workInProgressVersionPrimary=null;Gb.length=0}var yf=P.ReactCurrentDispatcher,Wb=P.ReactCurrentBatchConfig,Cs=0,xt=null,Vt=null,Ut=null,Sf=!1,tu=!1,ou=0,VJ=0;function uo(){throw Error(o(321))}function qb(a,c){if(c===null)return!1;for(var f=0;f<c.length&&f<a.length;f++)if(!Ar(a[f],c[f]))return!1;return!0}function Ub(a,c,f,m,w,x){if(Cs=x,xt=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,yf.current=a===null||a.memoizedState===null?qJ:UJ,a=f(m,w),tu){x=0;do{if(tu=!1,ou=0,25<=x)throw Error(o(301));x+=1,Ut=Vt=null,c.updateQueue=null,yf.current=$J,a=f(m,w)}while(tu)}if(yf.current=Ff,c=Vt!==null&&Vt.next!==null,Cs=0,Ut=Vt=xt=null,Sf=!1,c)throw Error(o(300));return a}function $b(){var a=ou!==0;return ou=0,a}function hn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ut===null?xt.memoizedState=Ut=a:Ut=Ut.next=a,Ut}function ur(){if(Vt===null){var a=xt.alternate;a=a!==null?a.memoizedState:null}else a=Vt.next;var c=Ut===null?xt.memoizedState:Ut.next;if(c!==null)Ut=c,Vt=a;else{if(a===null)throw Error(o(310));Vt=a,a={memoizedState:Vt.memoizedState,baseState:Vt.baseState,baseQueue:Vt.baseQueue,queue:Vt.queue,next:null},Ut===null?xt.memoizedState=Ut=a:Ut=Ut.next=a}return Ut}function ru(a,c){return typeof c=="function"?c(a):c}function Kb(a){var c=ur(),f=c.queue;if(f===null)throw Error(o(311));f.lastRenderedReducer=a;var m=Vt,w=m.baseQueue,x=f.pending;if(x!==null){if(w!==null){var E=w.next;w.next=x.next,x.next=E}m.baseQueue=w=x,f.pending=null}if(w!==null){x=w.next,m=m.baseState;var B=E=null,H=null,ee=x;do{var le=ee.lane;if((Cs&le)===le)H!==null&&(H=H.next={lane:0,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),m=ee.hasEagerState?ee.eagerState:a(m,ee.action);else{var ce={lane:le,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null};H===null?(B=H=ce,E=m):H=H.next=ce,xt.lanes|=le,ws|=le}ee=ee.next}while(ee!==null&&ee!==x);H===null?E=m:H.next=B,Ar(m,c.memoizedState)||(To=!0),c.memoizedState=m,c.baseState=E,c.baseQueue=H,f.lastRenderedState=m}if(a=f.interleaved,a!==null){w=a;do x=w.lane,xt.lanes|=x,ws|=x,w=w.next;while(w!==a)}else w===null&&(f.lanes=0);return[c.memoizedState,f.dispatch]}function Xb(a){var c=ur(),f=c.queue;if(f===null)throw Error(o(311));f.lastRenderedReducer=a;var m=f.dispatch,w=f.pending,x=c.memoizedState;if(w!==null){f.pending=null;var E=w=w.next;do x=a(x,E.action),E=E.next;while(E!==w);Ar(x,c.memoizedState)||(To=!0),c.memoizedState=x,c.baseQueue===null&&(c.baseState=x),f.lastRenderedState=x}return[x,m]}function hT(){}function fT(a,c){var f=xt,m=ur(),w=c(),x=!Ar(m.memoizedState,w);if(x&&(m.memoizedState=w,To=!0),m=m.queue,Zb(mT.bind(null,f,m,a),[a]),m.getSnapshot!==c||x||Ut!==null&&Ut.memoizedState.tag&1){if(f.flags|=2048,nu(9,gT.bind(null,f,m,w,c),void 0,null),$t===null)throw Error(o(349));(Cs&30)!==0||pT(f,c,w)}return w}function pT(a,c,f){a.flags|=16384,a={getSnapshot:c,value:f},c=xt.updateQueue,c===null?(c={lastEffect:null,stores:null},xt.updateQueue=c,c.stores=[a]):(f=c.stores,f===null?c.stores=[a]:f.push(a))}function gT(a,c,f,m){c.value=f,c.getSnapshot=m,vT(c)&&bT(a)}function mT(a,c,f){return f(function(){vT(c)&&bT(a)})}function vT(a){var c=a.getSnapshot;a=a.value;try{var f=c();return!Ar(a,f)}catch{return!0}}function bT(a){var c=Gn(a,1);c!==null&&Lr(c,a,1,-1)}function CT(a){var c=hn();return typeof a=="function"&&(a=a()),c.memoizedState=c.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ru,lastRenderedState:a},c.queue=a,a=a.dispatch=WJ.bind(null,xt,a),[c.memoizedState,a]}function nu(a,c,f,m){return a={tag:a,create:c,destroy:f,deps:m,next:null},c=xt.updateQueue,c===null?(c={lastEffect:null,stores:null},xt.updateQueue=c,c.lastEffect=a.next=a):(f=c.lastEffect,f===null?c.lastEffect=a.next=a:(m=f.next,f.next=a,a.next=m,c.lastEffect=a)),a}function wT(){return ur().memoizedState}function xf(a,c,f,m){var w=hn();xt.flags|=a,w.memoizedState=nu(1|c,f,void 0,m===void 0?null:m)}function kf(a,c,f,m){var w=ur();m=m===void 0?null:m;var x=void 0;if(Vt!==null){var E=Vt.memoizedState;if(x=E.destroy,m!==null&&qb(m,E.deps)){w.memoizedState=nu(c,f,x,m);return}}xt.flags|=a,w.memoizedState=nu(1|c,f,x,m)}function yT(a,c){return xf(8390656,8,a,c)}function Zb(a,c){return kf(2048,8,a,c)}function ST(a,c){return kf(4,2,a,c)}function xT(a,c){return kf(4,4,a,c)}function kT(a,c){if(typeof c=="function")return a=a(),c(a),function(){c(null)};if(c!=null)return a=a(),c.current=a,function(){c.current=null}}function FT(a,c,f){return f=f!=null?f.concat([a]):null,kf(4,4,kT.bind(null,c,a),f)}function Yb(){}function RT(a,c){var f=ur();c=c===void 0?null:c;var m=f.memoizedState;return m!==null&&c!==null&&qb(c,m[1])?m[0]:(f.memoizedState=[a,c],a)}function PT(a,c){var f=ur();c=c===void 0?null:c;var m=f.memoizedState;return m!==null&&c!==null&&qb(c,m[1])?m[0]:(a=a(),f.memoizedState=[a,c],a)}function ET(a,c,f){return(Cs&21)===0?(a.baseState&&(a.baseState=!1,To=!0),a.memoizedState=f):(Ar(f,c)||(f=nE(),xt.lanes|=f,ws|=f,a.baseState=!0),c)}function GJ(a,c){var f=nt;nt=f!==0&&4>f?f:4,a(!0);var m=Wb.transition;Wb.transition={};try{a(!1),c()}finally{nt=f,Wb.transition=m}}function TT(){return ur().memoizedState}function jJ(a,c,f){var m=Ii(a);if(f={lane:m,action:f,hasEagerState:!1,eagerState:null,next:null},DT(a))MT(c,f);else if(f=aT(a,c,f,m),f!==null){var w=mo();Lr(f,a,m,w),AT(f,c,m)}}function WJ(a,c,f){var m=Ii(a),w={lane:m,action:f,hasEagerState:!1,eagerState:null,next:null};if(DT(a))MT(c,w);else{var x=a.alternate;if(a.lanes===0&&(x===null||x.lanes===0)&&(x=c.lastRenderedReducer,x!==null))try{var E=c.lastRenderedState,B=x(E,f);if(w.hasEagerState=!0,w.eagerState=B,Ar(B,E)){var H=c.interleaved;H===null?(w.next=w,Nb(c)):(w.next=H.next,H.next=w),c.interleaved=w;return}}catch{}f=aT(a,c,w,m),f!==null&&(w=mo(),Lr(f,a,m,w),AT(f,c,m))}}function DT(a){var c=a.alternate;return a===xt||c!==null&&c===xt}function MT(a,c){tu=Sf=!0;var f=a.pending;f===null?c.next=c:(c.next=f.next,f.next=c),a.pending=c}function AT(a,c,f){if((f&4194240)!==0){var m=c.lanes;m&=a.pendingLanes,f|=m,c.lanes=f,Jv(a,f)}}var Ff={readContext:cr,useCallback:uo,useContext:uo,useEffect:uo,useImperativeHandle:uo,useInsertionEffect:uo,useLayoutEffect:uo,useMemo:uo,useReducer:uo,useRef:uo,useState:uo,useDebugValue:uo,useDeferredValue:uo,useTransition:uo,useMutableSource:uo,useSyncExternalStore:uo,useId:uo,unstable_isNewReconciler:!1},qJ={readContext:cr,useCallback:function(a,c){return hn().memoizedState=[a,c===void 0?null:c],a},useContext:cr,useEffect:yT,useImperativeHandle:function(a,c,f){return f=f!=null?f.concat([a]):null,xf(4194308,4,kT.bind(null,c,a),f)},useLayoutEffect:function(a,c){return xf(4194308,4,a,c)},useInsertionEffect:function(a,c){return xf(4,2,a,c)},useMemo:function(a,c){var f=hn();return c=c===void 0?null:c,a=a(),f.memoizedState=[a,c],a},useReducer:function(a,c,f){var m=hn();return c=f!==void 0?f(c):c,m.memoizedState=m.baseState=c,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:c},m.queue=a,a=a.dispatch=jJ.bind(null,xt,a),[m.memoizedState,a]},useRef:function(a){var c=hn();return a={current:a},c.memoizedState=a},useState:CT,useDebugValue:Yb,useDeferredValue:function(a){return hn().memoizedState=a},useTransition:function(){var a=CT(!1),c=a[0];return a=GJ.bind(null,a[1]),hn().memoizedState=a,[c,a]},useMutableSource:function(){},useSyncExternalStore:function(a,c,f){var m=xt,w=hn();if(Ct){if(f===void 0)throw Error(o(407));f=f()}else{if(f=c(),$t===null)throw Error(o(349));(Cs&30)!==0||pT(m,c,f)}w.memoizedState=f;var x={value:f,getSnapshot:c};return w.queue=x,yT(mT.bind(null,m,x,a),[a]),m.flags|=2048,nu(9,gT.bind(null,m,x,f,c),void 0,null),f},useId:function(){var a=hn(),c=$t.identifierPrefix;if(Ct){var f=Vn,m=Hn;f=(m&~(1<<32-Mr(m)-1)).toString(32)+f,c=":"+c+"R"+f,f=ou++,0<f&&(c+="H"+f.toString(32)),c+=":"}else f=VJ++,c=":"+c+"r"+f.toString(32)+":";return a.memoizedState=c},unstable_isNewReconciler:!1},UJ={readContext:cr,useCallback:RT,useContext:cr,useEffect:Zb,useImperativeHandle:FT,useInsertionEffect:ST,useLayoutEffect:xT,useMemo:PT,useReducer:Kb,useRef:wT,useState:function(){return Kb(ru)},useDebugValue:Yb,useDeferredValue:function(a){var c=ur();return ET(c,Vt.memoizedState,a)},useTransition:function(){var a=Kb(ru)[0],c=ur().memoizedState;return[a,c]},useMutableSource:hT,useSyncExternalStore:fT,useId:TT,unstable_isNewReconciler:!1},$J={readContext:cr,useCallback:RT,useContext:cr,useEffect:Zb,useImperativeHandle:FT,useInsertionEffect:ST,useLayoutEffect:xT,useMemo:PT,useReducer:Xb,useRef:wT,useState:function(){return Xb(ru)},useDebugValue:Yb,useDeferredValue:function(a){var c=ur();return Vt===null?c.memoizedState=a:ET(c,Vt.memoizedState,a)},useTransition:function(){var a=Xb(ru)[0],c=ur().memoizedState;return[a,c]},useMutableSource:hT,useSyncExternalStore:fT,useId:TT,unstable_isNewReconciler:!1};function Ir(a,c){if(a&&a.defaultProps){c=j({},c),a=a.defaultProps;for(var f in a)c[f]===void 0&&(c[f]=a[f]);return c}return c}function Qb(a,c,f,m){c=a.memoizedState,f=f(m,c),f=f==null?c:j({},c,f),a.memoizedState=f,a.lanes===0&&(a.updateQueue.baseState=f)}var Rf={isMounted:function(a){return(a=a._reactInternals)?hs(a)===a:!1},enqueueSetState:function(a,c,f){a=a._reactInternals;var m=mo(),w=Ii(a),x=jn(m,w);x.payload=c,f!=null&&(x.callback=f),c=Di(a,x,w),c!==null&&(Lr(c,a,w,m),bf(c,a,w))},enqueueReplaceState:function(a,c,f){a=a._reactInternals;var m=mo(),w=Ii(a),x=jn(m,w);x.tag=1,x.payload=c,f!=null&&(x.callback=f),c=Di(a,x,w),c!==null&&(Lr(c,a,w,m),bf(c,a,w))},enqueueForceUpdate:function(a,c){a=a._reactInternals;var f=mo(),m=Ii(a),w=jn(f,m);w.tag=2,c!=null&&(w.callback=c),c=Di(a,w,m),c!==null&&(Lr(c,a,m,f),bf(c,a,m))}};function _T(a,c,f,m,w,x,E){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(m,x,E):c.prototype&&c.prototype.isPureReactComponent?!Wc(f,m)||!Wc(w,x):!0}function IT(a,c,f){var m=!1,w=Pi,x=c.contextType;return typeof x=="object"&&x!==null?x=cr(x):(w=Eo(c)?ps:co.current,m=c.contextTypes,x=(m=m!=null)?Ka(a,w):Pi),c=new c(f,x),a.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Rf,a.stateNode=c,c._reactInternals=a,m&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=w,a.__reactInternalMemoizedMaskedChildContext=x),c}function BT(a,c,f,m){a=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(f,m),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(f,m),c.state!==a&&Rf.enqueueReplaceState(c,c.state,null)}function Jb(a,c,f,m){var w=a.stateNode;w.props=f,w.state=a.memoizedState,w.refs={},zb(a);var x=c.contextType;typeof x=="object"&&x!==null?w.context=cr(x):(x=Eo(c)?ps:co.current,w.context=Ka(a,x)),w.state=a.memoizedState,x=c.getDerivedStateFromProps,typeof x=="function"&&(Qb(a,c,x,f),w.state=a.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(c=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),c!==w.state&&Rf.enqueueReplaceState(w,w.state,null),Cf(a,f,w,m),w.state=a.memoizedState),typeof w.componentDidMount=="function"&&(a.flags|=4194308)}function ol(a,c){try{var f="",m=c;do f+=ge(m),m=m.return;while(m);var w=f}catch(x){w=`
8
+ Error generating stack: `+x.message+`
9
+ `+x.stack}return{value:a,source:c,stack:w,digest:null}}function eC(a,c,f){return{value:a,source:null,stack:f??null,digest:c??null}}function tC(a,c){try{console.error(c.value)}catch(f){setTimeout(function(){throw f})}}var KJ=typeof WeakMap=="function"?WeakMap:Map;function OT(a,c,f){f=jn(-1,f),f.tag=3,f.payload={element:null};var m=c.value;return f.callback=function(){_f||(_f=!0,mC=m),tC(a,c)},f}function LT(a,c,f){f=jn(-1,f),f.tag=3;var m=a.type.getDerivedStateFromError;if(typeof m=="function"){var w=c.value;f.payload=function(){return m(w)},f.callback=function(){tC(a,c)}}var x=a.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(f.callback=function(){tC(a,c),typeof m!="function"&&(Ai===null?Ai=new Set([this]):Ai.add(this));var E=c.stack;this.componentDidCatch(c.value,{componentStack:E!==null?E:""})}),f}function NT(a,c,f){var m=a.pingCache;if(m===null){m=a.pingCache=new KJ;var w=new Set;m.set(c,w)}else w=m.get(c),w===void 0&&(w=new Set,m.set(c,w));w.has(f)||(w.add(f),a=lee.bind(null,a,c,f),c.then(a,a))}function zT(a){do{var c;if((c=a.tag===13)&&(c=a.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return a;a=a.return}while(a!==null);return null}function HT(a,c,f,m,w){return(a.mode&1)===0?(a===c?a.flags|=65536:(a.flags|=128,f.flags|=131072,f.flags&=-52805,f.tag===1&&(f.alternate===null?f.tag=17:(c=jn(-1,1),c.tag=2,Di(f,c,1))),f.lanes|=1),a):(a.flags|=65536,a.lanes=w,a)}var XJ=P.ReactCurrentOwner,To=!1;function go(a,c,f,m){c.child=a===null?sT(c,null,f,m):Qa(c,a.child,f,m)}function VT(a,c,f,m,w){f=f.render;var x=c.ref;return el(c,w),m=Ub(a,c,f,m,x,w),f=$b(),a!==null&&!To?(c.updateQueue=a.updateQueue,c.flags&=-2053,a.lanes&=~w,Wn(a,c,w)):(Ct&&f&&Tb(c),c.flags|=1,go(a,c,m,w),c.child)}function GT(a,c,f,m,w){if(a===null){var x=f.type;return typeof x=="function"&&!xC(x)&&x.defaultProps===void 0&&f.compare===null&&f.defaultProps===void 0?(c.tag=15,c.type=x,jT(a,c,x,m,w)):(a=zf(f.type,null,m,c,c.mode,w),a.ref=c.ref,a.return=c,c.child=a)}if(x=a.child,(a.lanes&w)===0){var E=x.memoizedProps;if(f=f.compare,f=f!==null?f:Wc,f(E,m)&&a.ref===c.ref)return Wn(a,c,w)}return c.flags|=1,a=Oi(x,m),a.ref=c.ref,a.return=c,c.child=a}function jT(a,c,f,m,w){if(a!==null){var x=a.memoizedProps;if(Wc(x,m)&&a.ref===c.ref)if(To=!1,c.pendingProps=m=x,(a.lanes&w)!==0)(a.flags&131072)!==0&&(To=!0);else return c.lanes=a.lanes,Wn(a,c,w)}return oC(a,c,f,m,w)}function WT(a,c,f){var m=c.pendingProps,w=m.children,x=a!==null?a.memoizedState:null;if(m.mode==="hidden")if((c.mode&1)===0)c.memoizedState={baseLanes:0,cachePool:null,transitions:null},pt(nl,$o),$o|=f;else{if((f&1073741824)===0)return a=x!==null?x.baseLanes|f:f,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:a,cachePool:null,transitions:null},c.updateQueue=null,pt(nl,$o),$o|=a,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},m=x!==null?x.baseLanes:f,pt(nl,$o),$o|=m}else x!==null?(m=x.baseLanes|f,c.memoizedState=null):m=f,pt(nl,$o),$o|=m;return go(a,c,w,f),c.child}function qT(a,c){var f=c.ref;(a===null&&f!==null||a!==null&&a.ref!==f)&&(c.flags|=512,c.flags|=2097152)}function oC(a,c,f,m,w){var x=Eo(f)?ps:co.current;return x=Ka(c,x),el(c,w),f=Ub(a,c,f,m,x,w),m=$b(),a!==null&&!To?(c.updateQueue=a.updateQueue,c.flags&=-2053,a.lanes&=~w,Wn(a,c,w)):(Ct&&m&&Tb(c),c.flags|=1,go(a,c,f,w),c.child)}function UT(a,c,f,m,w){if(Eo(f)){var x=!0;uf(c)}else x=!1;if(el(c,w),c.stateNode===null)Ef(a,c),IT(c,f,m),Jb(c,f,m,w),m=!0;else if(a===null){var E=c.stateNode,B=c.memoizedProps;E.props=B;var H=E.context,ee=f.contextType;typeof ee=="object"&&ee!==null?ee=cr(ee):(ee=Eo(f)?ps:co.current,ee=Ka(c,ee));var le=f.getDerivedStateFromProps,ce=typeof le=="function"||typeof E.getSnapshotBeforeUpdate=="function";ce||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(B!==m||H!==ee)&&BT(c,E,m,ee),Ti=!1;var se=c.memoizedState;E.state=se,Cf(c,m,E,w),H=c.memoizedState,B!==m||se!==H||Po.current||Ti?(typeof le=="function"&&(Qb(c,f,le,m),H=c.memoizedState),(B=Ti||_T(c,f,B,m,se,H,ee))?(ce||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(c.flags|=4194308)):(typeof E.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=m,c.memoizedState=H),E.props=m,E.state=H,E.context=ee,m=B):(typeof E.componentDidMount=="function"&&(c.flags|=4194308),m=!1)}else{E=c.stateNode,lT(a,c),B=c.memoizedProps,ee=c.type===c.elementType?B:Ir(c.type,B),E.props=ee,ce=c.pendingProps,se=E.context,H=f.contextType,typeof H=="object"&&H!==null?H=cr(H):(H=Eo(f)?ps:co.current,H=Ka(c,H));var ve=f.getDerivedStateFromProps;(le=typeof ve=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(B!==ce||se!==H)&&BT(c,E,m,H),Ti=!1,se=c.memoizedState,E.state=se,Cf(c,m,E,w);var we=c.memoizedState;B!==ce||se!==we||Po.current||Ti?(typeof ve=="function"&&(Qb(c,f,ve,m),we=c.memoizedState),(ee=Ti||_T(c,f,ee,m,se,we,H)||!1)?(le||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(m,we,H),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(m,we,H)),typeof E.componentDidUpdate=="function"&&(c.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof E.componentDidUpdate!="function"||B===a.memoizedProps&&se===a.memoizedState||(c.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||B===a.memoizedProps&&se===a.memoizedState||(c.flags|=1024),c.memoizedProps=m,c.memoizedState=we),E.props=m,E.state=we,E.context=H,m=ee):(typeof E.componentDidUpdate!="function"||B===a.memoizedProps&&se===a.memoizedState||(c.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||B===a.memoizedProps&&se===a.memoizedState||(c.flags|=1024),m=!1)}return rC(a,c,f,m,x,w)}function rC(a,c,f,m,w,x){qT(a,c);var E=(c.flags&128)!==0;if(!m&&!E)return w&&YE(c,f,!1),Wn(a,c,x);m=c.stateNode,XJ.current=c;var B=E&&typeof f.getDerivedStateFromError!="function"?null:m.render();return c.flags|=1,a!==null&&E?(c.child=Qa(c,a.child,null,x),c.child=Qa(c,null,B,x)):go(a,c,B,x),c.memoizedState=m.state,w&&YE(c,f,!0),c.child}function $T(a){var c=a.stateNode;c.pendingContext?XE(a,c.pendingContext,c.pendingContext!==c.context):c.context&&XE(a,c.context,!1),Hb(a,c.containerInfo)}function KT(a,c,f,m,w){return Ya(),_b(w),c.flags|=256,go(a,c,f,m),c.child}var nC={dehydrated:null,treeContext:null,retryLane:0};function iC(a){return{baseLanes:a,cachePool:null,transitions:null}}function XT(a,c,f){var m=c.pendingProps,w=St.current,x=!1,E=(c.flags&128)!==0,B;if((B=E)||(B=a!==null&&a.memoizedState===null?!1:(w&2)!==0),B?(x=!0,c.flags&=-129):(a===null||a.memoizedState!==null)&&(w|=1),pt(St,w&1),a===null)return Ab(c),a=c.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?((c.mode&1)===0?c.lanes=1:a.data==="$!"?c.lanes=8:c.lanes=1073741824,null):(E=m.children,a=m.fallback,x?(m=c.mode,x=c.child,E={mode:"hidden",children:E},(m&1)===0&&x!==null?(x.childLanes=0,x.pendingProps=E):x=Hf(E,m,0,null),a=ks(a,m,f,null),x.return=c,a.return=c,x.sibling=a,c.child=x,c.child.memoizedState=iC(f),c.memoizedState=nC,a):sC(c,E));if(w=a.memoizedState,w!==null&&(B=w.dehydrated,B!==null))return ZJ(a,c,E,m,B,w,f);if(x){x=m.fallback,E=c.mode,w=a.child,B=w.sibling;var H={mode:"hidden",children:m.children};return(E&1)===0&&c.child!==w?(m=c.child,m.childLanes=0,m.pendingProps=H,c.deletions=null):(m=Oi(w,H),m.subtreeFlags=w.subtreeFlags&14680064),B!==null?x=Oi(B,x):(x=ks(x,E,f,null),x.flags|=2),x.return=c,m.return=c,m.sibling=x,c.child=m,m=x,x=c.child,E=a.child.memoizedState,E=E===null?iC(f):{baseLanes:E.baseLanes|f,cachePool:null,transitions:E.transitions},x.memoizedState=E,x.childLanes=a.childLanes&~f,c.memoizedState=nC,m}return x=a.child,a=x.sibling,m=Oi(x,{mode:"visible",children:m.children}),(c.mode&1)===0&&(m.lanes=f),m.return=c,m.sibling=null,a!==null&&(f=c.deletions,f===null?(c.deletions=[a],c.flags|=16):f.push(a)),c.child=m,c.memoizedState=null,m}function sC(a,c){return c=Hf({mode:"visible",children:c},a.mode,0,null),c.return=a,a.child=c}function Pf(a,c,f,m){return m!==null&&_b(m),Qa(c,a.child,null,f),a=sC(c,c.pendingProps.children),a.flags|=2,c.memoizedState=null,a}function ZJ(a,c,f,m,w,x,E){if(f)return c.flags&256?(c.flags&=-257,m=eC(Error(o(422))),Pf(a,c,E,m)):c.memoizedState!==null?(c.child=a.child,c.flags|=128,null):(x=m.fallback,w=c.mode,m=Hf({mode:"visible",children:m.children},w,0,null),x=ks(x,w,E,null),x.flags|=2,m.return=c,x.return=c,m.sibling=x,c.child=m,(c.mode&1)!==0&&Qa(c,a.child,null,E),c.child.memoizedState=iC(E),c.memoizedState=nC,x);if((c.mode&1)===0)return Pf(a,c,E,null);if(w.data==="$!"){if(m=w.nextSibling&&w.nextSibling.dataset,m)var B=m.dgst;return m=B,x=Error(o(419)),m=eC(x,m,void 0),Pf(a,c,E,m)}if(B=(E&a.childLanes)!==0,To||B){if(m=$t,m!==null){switch(E&-E){case 4:w=2;break;case 16:w=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:w=32;break;case 536870912:w=268435456;break;default:w=0}w=(w&(m.suspendedLanes|E))!==0?0:w,w!==0&&w!==x.retryLane&&(x.retryLane=w,Gn(a,w),Lr(m,a,w,-1))}return SC(),m=eC(Error(o(421))),Pf(a,c,E,m)}return w.data==="$?"?(c.flags|=128,c.child=a.child,c=cee.bind(null,a),w._reactRetry=c,null):(a=x.treeContext,Uo=Fi(w.nextSibling),qo=c,Ct=!0,_r=null,a!==null&&(ar[lr++]=Hn,ar[lr++]=Vn,ar[lr++]=gs,Hn=a.id,Vn=a.overflow,gs=c),c=sC(c,m.children),c.flags|=4096,c)}function ZT(a,c,f){a.lanes|=c;var m=a.alternate;m!==null&&(m.lanes|=c),Lb(a.return,c,f)}function aC(a,c,f,m,w){var x=a.memoizedState;x===null?a.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:m,tail:f,tailMode:w}:(x.isBackwards=c,x.rendering=null,x.renderingStartTime=0,x.last=m,x.tail=f,x.tailMode=w)}function YT(a,c,f){var m=c.pendingProps,w=m.revealOrder,x=m.tail;if(go(a,c,m.children,f),m=St.current,(m&2)!==0)m=m&1|2,c.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=c.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&ZT(a,f,c);else if(a.tag===19)ZT(a,f,c);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===c)break e;for(;a.sibling===null;){if(a.return===null||a.return===c)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}m&=1}if(pt(St,m),(c.mode&1)===0)c.memoizedState=null;else switch(w){case"forwards":for(f=c.child,w=null;f!==null;)a=f.alternate,a!==null&&wf(a)===null&&(w=f),f=f.sibling;f=w,f===null?(w=c.child,c.child=null):(w=f.sibling,f.sibling=null),aC(c,!1,w,f,x);break;case"backwards":for(f=null,w=c.child,c.child=null;w!==null;){if(a=w.alternate,a!==null&&wf(a)===null){c.child=w;break}a=w.sibling,w.sibling=f,f=w,w=a}aC(c,!0,f,null,x);break;case"together":aC(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function Ef(a,c){(c.mode&1)===0&&a!==null&&(a.alternate=null,c.alternate=null,c.flags|=2)}function Wn(a,c,f){if(a!==null&&(c.dependencies=a.dependencies),ws|=c.lanes,(f&c.childLanes)===0)return null;if(a!==null&&c.child!==a.child)throw Error(o(153));if(c.child!==null){for(a=c.child,f=Oi(a,a.pendingProps),c.child=f,f.return=c;a.sibling!==null;)a=a.sibling,f=f.sibling=Oi(a,a.pendingProps),f.return=c;f.sibling=null}return c.child}function YJ(a,c,f){switch(c.tag){case 3:$T(c),Ya();break;case 5:dT(c);break;case 1:Eo(c.type)&&uf(c);break;case 4:Hb(c,c.stateNode.containerInfo);break;case 10:var m=c.type._context,w=c.memoizedProps.value;pt(mf,m._currentValue),m._currentValue=w;break;case 13:if(m=c.memoizedState,m!==null)return m.dehydrated!==null?(pt(St,St.current&1),c.flags|=128,null):(f&c.child.childLanes)!==0?XT(a,c,f):(pt(St,St.current&1),a=Wn(a,c,f),a!==null?a.sibling:null);pt(St,St.current&1);break;case 19:if(m=(f&c.childLanes)!==0,(a.flags&128)!==0){if(m)return YT(a,c,f);c.flags|=128}if(w=c.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),pt(St,St.current),m)break;return null;case 22:case 23:return c.lanes=0,WT(a,c,f)}return Wn(a,c,f)}var QT,lC,JT,eD;QT=function(a,c){for(var f=c.child;f!==null;){if(f.tag===5||f.tag===6)a.appendChild(f.stateNode);else if(f.tag!==4&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===c)break;for(;f.sibling===null;){if(f.return===null||f.return===c)return;f=f.return}f.sibling.return=f.return,f=f.sibling}},lC=function(){},JT=function(a,c,f,m){var w=a.memoizedProps;if(w!==m){a=c.stateNode,bs(dn.current);var x=null;switch(f){case"input":w=Go(a,w),m=Go(a,m),x=[];break;case"select":w=j({},w,{value:void 0}),m=j({},m,{value:void 0}),x=[];break;case"textarea":w=ft(a,w),m=ft(a,m),x=[];break;default:typeof w.onClick!="function"&&typeof m.onClick=="function"&&(a.onclick=af)}Gv(f,m);var E;f=null;for(ee in w)if(!m.hasOwnProperty(ee)&&w.hasOwnProperty(ee)&&w[ee]!=null)if(ee==="style"){var B=w[ee];for(E in B)B.hasOwnProperty(E)&&(f||(f={}),f[E]="")}else ee!=="dangerouslySetInnerHTML"&&ee!=="children"&&ee!=="suppressContentEditableWarning"&&ee!=="suppressHydrationWarning"&&ee!=="autoFocus"&&(n.hasOwnProperty(ee)?x||(x=[]):(x=x||[]).push(ee,null));for(ee in m){var H=m[ee];if(B=w?.[ee],m.hasOwnProperty(ee)&&H!==B&&(H!=null||B!=null))if(ee==="style")if(B){for(E in B)!B.hasOwnProperty(E)||H&&H.hasOwnProperty(E)||(f||(f={}),f[E]="");for(E in H)H.hasOwnProperty(E)&&B[E]!==H[E]&&(f||(f={}),f[E]=H[E])}else f||(x||(x=[]),x.push(ee,f)),f=H;else ee==="dangerouslySetInnerHTML"?(H=H?H.__html:void 0,B=B?B.__html:void 0,H!=null&&B!==H&&(x=x||[]).push(ee,H)):ee==="children"?typeof H!="string"&&typeof H!="number"||(x=x||[]).push(ee,""+H):ee!=="suppressContentEditableWarning"&&ee!=="suppressHydrationWarning"&&(n.hasOwnProperty(ee)?(H!=null&&ee==="onScroll"&&mt("scroll",a),x||B===H||(x=[])):(x=x||[]).push(ee,H))}f&&(x=x||[]).push("style",f);var ee=x;(c.updateQueue=ee)&&(c.flags|=4)}},eD=function(a,c,f,m){f!==m&&(c.flags|=4)};function iu(a,c){if(!Ct)switch(a.tailMode){case"hidden":c=a.tail;for(var f=null;c!==null;)c.alternate!==null&&(f=c),c=c.sibling;f===null?a.tail=null:f.sibling=null;break;case"collapsed":f=a.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?c||a.tail===null?a.tail=null:a.tail.sibling=null:m.sibling=null}}function ho(a){var c=a.alternate!==null&&a.alternate.child===a.child,f=0,m=0;if(c)for(var w=a.child;w!==null;)f|=w.lanes|w.childLanes,m|=w.subtreeFlags&14680064,m|=w.flags&14680064,w.return=a,w=w.sibling;else for(w=a.child;w!==null;)f|=w.lanes|w.childLanes,m|=w.subtreeFlags,m|=w.flags,w.return=a,w=w.sibling;return a.subtreeFlags|=m,a.childLanes=f,c}function QJ(a,c,f){var m=c.pendingProps;switch(Db(c),c.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ho(c),null;case 1:return Eo(c.type)&&cf(),ho(c),null;case 3:return m=c.stateNode,tl(),vt(Po),vt(co),jb(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(a===null||a.child===null)&&(pf(c)?c.flags|=4:a===null||a.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,_r!==null&&(CC(_r),_r=null))),lC(a,c),ho(c),null;case 5:Vb(c);var w=bs(eu.current);if(f=c.type,a!==null&&c.stateNode!=null)JT(a,c,f,m,w),a.ref!==c.ref&&(c.flags|=512,c.flags|=2097152);else{if(!m){if(c.stateNode===null)throw Error(o(166));return ho(c),null}if(a=bs(dn.current),pf(c)){m=c.stateNode,f=c.type;var x=c.memoizedProps;switch(m[un]=c,m[Xc]=x,a=(c.mode&1)!==0,f){case"dialog":mt("cancel",m),mt("close",m);break;case"iframe":case"object":case"embed":mt("load",m);break;case"video":case"audio":for(w=0;w<Uc.length;w++)mt(Uc[w],m);break;case"source":mt("error",m);break;case"img":case"image":case"link":mt("error",m),mt("load",m);break;case"details":mt("toggle",m);break;case"input":Dr(m,x),mt("invalid",m);break;case"select":m._wrapperState={wasMultiple:!!x.multiple},mt("invalid",m);break;case"textarea":Yt(m,x),mt("invalid",m)}Gv(f,x),w=null;for(var E in x)if(x.hasOwnProperty(E)){var B=x[E];E==="children"?typeof B=="string"?m.textContent!==B&&(x.suppressHydrationWarning!==!0&&sf(m.textContent,B,a),w=["children",B]):typeof B=="number"&&m.textContent!==""+B&&(x.suppressHydrationWarning!==!0&&sf(m.textContent,B,a),w=["children",""+B]):n.hasOwnProperty(E)&&B!=null&&E==="onScroll"&&mt("scroll",m)}switch(f){case"input":Be(m),ot(m,x,!0);break;case"textarea":Be(m),Qt(m);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(m.onclick=af)}m=w,c.updateQueue=m,m!==null&&(c.flags|=4)}else{E=w.nodeType===9?w:w.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=bi(f)),a==="http://www.w3.org/1999/xhtml"?f==="script"?(a=E.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof m.is=="string"?a=E.createElement(f,{is:m.is}):(a=E.createElement(f),f==="select"&&(E=a,m.multiple?E.multiple=!0:m.size&&(E.size=m.size))):a=E.createElementNS(a,f),a[un]=c,a[Xc]=m,QT(a,c,!1,!1),c.stateNode=a;e:{switch(E=jv(f,m),f){case"dialog":mt("cancel",a),mt("close",a),w=m;break;case"iframe":case"object":case"embed":mt("load",a),w=m;break;case"video":case"audio":for(w=0;w<Uc.length;w++)mt(Uc[w],a);w=m;break;case"source":mt("error",a),w=m;break;case"img":case"image":case"link":mt("error",a),mt("load",a),w=m;break;case"details":mt("toggle",a),w=m;break;case"input":Dr(a,m),w=Go(a,m),mt("invalid",a);break;case"option":w=m;break;case"select":a._wrapperState={wasMultiple:!!m.multiple},w=j({},m,{value:void 0}),mt("invalid",a);break;case"textarea":Yt(a,m),w=ft(a,m),mt("invalid",a);break;default:w=m}Gv(f,w),B=w;for(x in B)if(B.hasOwnProperty(x)){var H=B[x];x==="style"?jP(a,H):x==="dangerouslySetInnerHTML"?(H=H?H.__html:void 0,H!=null&&lo(a,H)):x==="children"?typeof H=="string"?(f!=="textarea"||H!=="")&&ds(a,H):typeof H=="number"&&ds(a,""+H):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(n.hasOwnProperty(x)?H!=null&&x==="onScroll"&&mt("scroll",a):H!=null&&R(a,x,H,E))}switch(f){case"input":Be(a),ot(a,m,!1);break;case"textarea":Be(a),Qt(a);break;case"option":m.value!=null&&a.setAttribute("value",""+Ge(m.value));break;case"select":a.multiple=!!m.multiple,x=m.value,x!=null?Ee(a,!!m.multiple,x,!1):m.defaultValue!=null&&Ee(a,!!m.multiple,m.defaultValue,!0);break;default:typeof w.onClick=="function"&&(a.onclick=af)}switch(f){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}}m&&(c.flags|=4)}c.ref!==null&&(c.flags|=512,c.flags|=2097152)}return ho(c),null;case 6:if(a&&c.stateNode!=null)eD(a,c,a.memoizedProps,m);else{if(typeof m!="string"&&c.stateNode===null)throw Error(o(166));if(f=bs(eu.current),bs(dn.current),pf(c)){if(m=c.stateNode,f=c.memoizedProps,m[un]=c,(x=m.nodeValue!==f)&&(a=qo,a!==null))switch(a.tag){case 3:sf(m.nodeValue,f,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&sf(m.nodeValue,f,(a.mode&1)!==0)}x&&(c.flags|=4)}else m=(f.nodeType===9?f:f.ownerDocument).createTextNode(m),m[un]=c,c.stateNode=m}return ho(c),null;case 13:if(vt(St),m=c.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(Ct&&Uo!==null&&(c.mode&1)!==0&&(c.flags&128)===0)rT(),Ya(),c.flags|=98560,x=!1;else if(x=pf(c),m!==null&&m.dehydrated!==null){if(a===null){if(!x)throw Error(o(318));if(x=c.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(o(317));x[un]=c}else Ya(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;ho(c),x=!1}else _r!==null&&(CC(_r),_r=null),x=!0;if(!x)return c.flags&65536?c:null}return(c.flags&128)!==0?(c.lanes=f,c):(m=m!==null,m!==(a!==null&&a.memoizedState!==null)&&m&&(c.child.flags|=8192,(c.mode&1)!==0&&(a===null||(St.current&1)!==0?Gt===0&&(Gt=3):SC())),c.updateQueue!==null&&(c.flags|=4),ho(c),null);case 4:return tl(),lC(a,c),a===null&&$c(c.stateNode.containerInfo),ho(c),null;case 10:return Ob(c.type._context),ho(c),null;case 17:return Eo(c.type)&&cf(),ho(c),null;case 19:if(vt(St),x=c.memoizedState,x===null)return ho(c),null;if(m=(c.flags&128)!==0,E=x.rendering,E===null)if(m)iu(x,!1);else{if(Gt!==0||a!==null&&(a.flags&128)!==0)for(a=c.child;a!==null;){if(E=wf(a),E!==null){for(c.flags|=128,iu(x,!1),m=E.updateQueue,m!==null&&(c.updateQueue=m,c.flags|=4),c.subtreeFlags=0,m=f,f=c.child;f!==null;)x=f,a=m,x.flags&=14680066,E=x.alternate,E===null?(x.childLanes=0,x.lanes=a,x.child=null,x.subtreeFlags=0,x.memoizedProps=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null,x.stateNode=null):(x.childLanes=E.childLanes,x.lanes=E.lanes,x.child=E.child,x.subtreeFlags=0,x.deletions=null,x.memoizedProps=E.memoizedProps,x.memoizedState=E.memoizedState,x.updateQueue=E.updateQueue,x.type=E.type,a=E.dependencies,x.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),f=f.sibling;return pt(St,St.current&1|2),c.child}a=a.sibling}x.tail!==null&&It()>il&&(c.flags|=128,m=!0,iu(x,!1),c.lanes=4194304)}else{if(!m)if(a=wf(E),a!==null){if(c.flags|=128,m=!0,f=a.updateQueue,f!==null&&(c.updateQueue=f,c.flags|=4),iu(x,!0),x.tail===null&&x.tailMode==="hidden"&&!E.alternate&&!Ct)return ho(c),null}else 2*It()-x.renderingStartTime>il&&f!==1073741824&&(c.flags|=128,m=!0,iu(x,!1),c.lanes=4194304);x.isBackwards?(E.sibling=c.child,c.child=E):(f=x.last,f!==null?f.sibling=E:c.child=E,x.last=E)}return x.tail!==null?(c=x.tail,x.rendering=c,x.tail=c.sibling,x.renderingStartTime=It(),c.sibling=null,f=St.current,pt(St,m?f&1|2:f&1),c):(ho(c),null);case 22:case 23:return yC(),m=c.memoizedState!==null,a!==null&&a.memoizedState!==null!==m&&(c.flags|=8192),m&&(c.mode&1)!==0?($o&1073741824)!==0&&(ho(c),c.subtreeFlags&6&&(c.flags|=8192)):ho(c),null;case 24:return null;case 25:return null}throw Error(o(156,c.tag))}function JJ(a,c){switch(Db(c),c.tag){case 1:return Eo(c.type)&&cf(),a=c.flags,a&65536?(c.flags=a&-65537|128,c):null;case 3:return tl(),vt(Po),vt(co),jb(),a=c.flags,(a&65536)!==0&&(a&128)===0?(c.flags=a&-65537|128,c):null;case 5:return Vb(c),null;case 13:if(vt(St),a=c.memoizedState,a!==null&&a.dehydrated!==null){if(c.alternate===null)throw Error(o(340));Ya()}return a=c.flags,a&65536?(c.flags=a&-65537|128,c):null;case 19:return vt(St),null;case 4:return tl(),null;case 10:return Ob(c.type._context),null;case 22:case 23:return yC(),null;case 24:return null;default:return null}}var Tf=!1,fo=!1,eee=typeof WeakSet=="function"?WeakSet:Set,be=null;function rl(a,c){var f=a.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(m){Tt(a,c,m)}else f.current=null}function cC(a,c,f){try{f()}catch(m){Tt(a,c,m)}}var tD=!1;function tee(a,c){if(yb=Kh,a=_E(),fb(a)){if("selectionStart"in a)var f={start:a.selectionStart,end:a.selectionEnd};else e:{f=(f=a.ownerDocument)&&f.defaultView||window;var m=f.getSelection&&f.getSelection();if(m&&m.rangeCount!==0){f=m.anchorNode;var w=m.anchorOffset,x=m.focusNode;m=m.focusOffset;try{f.nodeType,x.nodeType}catch{f=null;break e}var E=0,B=-1,H=-1,ee=0,le=0,ce=a,se=null;t:for(;;){for(var ve;ce!==f||w!==0&&ce.nodeType!==3||(B=E+w),ce!==x||m!==0&&ce.nodeType!==3||(H=E+m),ce.nodeType===3&&(E+=ce.nodeValue.length),(ve=ce.firstChild)!==null;)se=ce,ce=ve;for(;;){if(ce===a)break t;if(se===f&&++ee===w&&(B=E),se===x&&++le===m&&(H=E),(ve=ce.nextSibling)!==null)break;ce=se,se=ce.parentNode}ce=ve}f=B===-1||H===-1?null:{start:B,end:H}}else f=null}f=f||{start:0,end:0}}else f=null;for(Sb={focusedElem:a,selectionRange:f},Kh=!1,be=c;be!==null;)if(c=be,a=c.child,(c.subtreeFlags&1028)!==0&&a!==null)a.return=c,be=a;else for(;be!==null;){c=be;try{var we=c.alternate;if((c.flags&1024)!==0)switch(c.tag){case 0:case 11:case 15:break;case 1:if(we!==null){var Se=we.memoizedProps,Bt=we.memoizedState,X=c.stateNode,G=X.getSnapshotBeforeUpdate(c.elementType===c.type?Se:Ir(c.type,Se),Bt);X.__reactInternalSnapshotBeforeUpdate=G}break;case 3:var Q=c.stateNode.containerInfo;Q.nodeType===1?Q.textContent="":Q.nodeType===9&&Q.documentElement&&Q.removeChild(Q.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(de){Tt(c,c.return,de)}if(a=c.sibling,a!==null){a.return=c.return,be=a;break}be=c.return}return we=tD,tD=!1,we}function su(a,c,f){var m=c.updateQueue;if(m=m!==null?m.lastEffect:null,m!==null){var w=m=m.next;do{if((w.tag&a)===a){var x=w.destroy;w.destroy=void 0,x!==void 0&&cC(c,f,x)}w=w.next}while(w!==m)}}function Df(a,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var f=c=c.next;do{if((f.tag&a)===a){var m=f.create;f.destroy=m()}f=f.next}while(f!==c)}}function uC(a){var c=a.ref;if(c!==null){var f=a.stateNode;a.tag,a=f,typeof c=="function"?c(a):c.current=a}}function oD(a){var c=a.alternate;c!==null&&(a.alternate=null,oD(c)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(c=a.stateNode,c!==null&&(delete c[un],delete c[Xc],delete c[Rb],delete c[LJ],delete c[NJ])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function rD(a){return a.tag===5||a.tag===3||a.tag===4}function nD(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||rD(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function dC(a,c,f){var m=a.tag;if(m===5||m===6)a=a.stateNode,c?f.nodeType===8?f.parentNode.insertBefore(a,c):f.insertBefore(a,c):(f.nodeType===8?(c=f.parentNode,c.insertBefore(a,f)):(c=f,c.appendChild(a)),f=f._reactRootContainer,f!=null||c.onclick!==null||(c.onclick=af));else if(m!==4&&(a=a.child,a!==null))for(dC(a,c,f),a=a.sibling;a!==null;)dC(a,c,f),a=a.sibling}function hC(a,c,f){var m=a.tag;if(m===5||m===6)a=a.stateNode,c?f.insertBefore(a,c):f.appendChild(a);else if(m!==4&&(a=a.child,a!==null))for(hC(a,c,f),a=a.sibling;a!==null;)hC(a,c,f),a=a.sibling}var Jt=null,Br=!1;function Mi(a,c,f){for(f=f.child;f!==null;)iD(a,c,f),f=f.sibling}function iD(a,c,f){if(cn&&typeof cn.onCommitFiberUnmount=="function")try{cn.onCommitFiberUnmount(Gh,f)}catch{}switch(f.tag){case 5:fo||rl(f,c);case 6:var m=Jt,w=Br;Jt=null,Mi(a,c,f),Jt=m,Br=w,Jt!==null&&(Br?(a=Jt,f=f.stateNode,a.nodeType===8?a.parentNode.removeChild(f):a.removeChild(f)):Jt.removeChild(f.stateNode));break;case 18:Jt!==null&&(Br?(a=Jt,f=f.stateNode,a.nodeType===8?Fb(a.parentNode,f):a.nodeType===1&&Fb(a,f),Nc(a)):Fb(Jt,f.stateNode));break;case 4:m=Jt,w=Br,Jt=f.stateNode.containerInfo,Br=!0,Mi(a,c,f),Jt=m,Br=w;break;case 0:case 11:case 14:case 15:if(!fo&&(m=f.updateQueue,m!==null&&(m=m.lastEffect,m!==null))){w=m=m.next;do{var x=w,E=x.destroy;x=x.tag,E!==void 0&&((x&2)!==0||(x&4)!==0)&&cC(f,c,E),w=w.next}while(w!==m)}Mi(a,c,f);break;case 1:if(!fo&&(rl(f,c),m=f.stateNode,typeof m.componentWillUnmount=="function"))try{m.props=f.memoizedProps,m.state=f.memoizedState,m.componentWillUnmount()}catch(B){Tt(f,c,B)}Mi(a,c,f);break;case 21:Mi(a,c,f);break;case 22:f.mode&1?(fo=(m=fo)||f.memoizedState!==null,Mi(a,c,f),fo=m):Mi(a,c,f);break;default:Mi(a,c,f)}}function sD(a){var c=a.updateQueue;if(c!==null){a.updateQueue=null;var f=a.stateNode;f===null&&(f=a.stateNode=new eee),c.forEach(function(m){var w=uee.bind(null,a,m);f.has(m)||(f.add(m),m.then(w,w))})}}function Or(a,c){var f=c.deletions;if(f!==null)for(var m=0;m<f.length;m++){var w=f[m];try{var x=a,E=c,B=E;e:for(;B!==null;){switch(B.tag){case 5:Jt=B.stateNode,Br=!1;break e;case 3:Jt=B.stateNode.containerInfo,Br=!0;break e;case 4:Jt=B.stateNode.containerInfo,Br=!0;break e}B=B.return}if(Jt===null)throw Error(o(160));iD(x,E,w),Jt=null,Br=!1;var H=w.alternate;H!==null&&(H.return=null),w.return=null}catch(ee){Tt(w,c,ee)}}if(c.subtreeFlags&12854)for(c=c.child;c!==null;)aD(c,a),c=c.sibling}function aD(a,c){var f=a.alternate,m=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(Or(c,a),fn(a),m&4){try{su(3,a,a.return),Df(3,a)}catch(Se){Tt(a,a.return,Se)}try{su(5,a,a.return)}catch(Se){Tt(a,a.return,Se)}}break;case 1:Or(c,a),fn(a),m&512&&f!==null&&rl(f,f.return);break;case 5:if(Or(c,a),fn(a),m&512&&f!==null&&rl(f,f.return),a.flags&32){var w=a.stateNode;try{ds(w,"")}catch(Se){Tt(a,a.return,Se)}}if(m&4&&(w=a.stateNode,w!=null)){var x=a.memoizedProps,E=f!==null?f.memoizedProps:x,B=a.type,H=a.updateQueue;if(a.updateQueue=null,H!==null)try{B==="input"&&x.type==="radio"&&x.name!=null&&us(w,x),jv(B,E);var ee=jv(B,x);for(E=0;E<H.length;E+=2){var le=H[E],ce=H[E+1];le==="style"?jP(w,ce):le==="dangerouslySetInnerHTML"?lo(w,ce):le==="children"?ds(w,ce):R(w,le,ce,ee)}switch(B){case"input":Le(w,x);break;case"textarea":jo(w,x);break;case"select":var se=w._wrapperState.wasMultiple;w._wrapperState.wasMultiple=!!x.multiple;var ve=x.value;ve!=null?Ee(w,!!x.multiple,ve,!1):se!==!!x.multiple&&(x.defaultValue!=null?Ee(w,!!x.multiple,x.defaultValue,!0):Ee(w,!!x.multiple,x.multiple?[]:"",!1))}w[Xc]=x}catch(Se){Tt(a,a.return,Se)}}break;case 6:if(Or(c,a),fn(a),m&4){if(a.stateNode===null)throw Error(o(162));w=a.stateNode,x=a.memoizedProps;try{w.nodeValue=x}catch(Se){Tt(a,a.return,Se)}}break;case 3:if(Or(c,a),fn(a),m&4&&f!==null&&f.memoizedState.isDehydrated)try{Nc(c.containerInfo)}catch(Se){Tt(a,a.return,Se)}break;case 4:Or(c,a),fn(a);break;case 13:Or(c,a),fn(a),w=a.child,w.flags&8192&&(x=w.memoizedState!==null,w.stateNode.isHidden=x,!x||w.alternate!==null&&w.alternate.memoizedState!==null||(gC=It())),m&4&&sD(a);break;case 22:if(le=f!==null&&f.memoizedState!==null,a.mode&1?(fo=(ee=fo)||le,Or(c,a),fo=ee):Or(c,a),fn(a),m&8192){if(ee=a.memoizedState!==null,(a.stateNode.isHidden=ee)&&!le&&(a.mode&1)!==0)for(be=a,le=a.child;le!==null;){for(ce=be=le;be!==null;){switch(se=be,ve=se.child,se.tag){case 0:case 11:case 14:case 15:su(4,se,se.return);break;case 1:rl(se,se.return);var we=se.stateNode;if(typeof we.componentWillUnmount=="function"){m=se,f=se.return;try{c=m,we.props=c.memoizedProps,we.state=c.memoizedState,we.componentWillUnmount()}catch(Se){Tt(m,f,Se)}}break;case 5:rl(se,se.return);break;case 22:if(se.memoizedState!==null){uD(ce);continue}}ve!==null?(ve.return=se,be=ve):uD(ce)}le=le.sibling}e:for(le=null,ce=a;;){if(ce.tag===5){if(le===null){le=ce;try{w=ce.stateNode,ee?(x=w.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none"):(B=ce.stateNode,H=ce.memoizedProps.style,E=H!=null&&H.hasOwnProperty("display")?H.display:null,B.style.display=GP("display",E))}catch(Se){Tt(a,a.return,Se)}}}else if(ce.tag===6){if(le===null)try{ce.stateNode.nodeValue=ee?"":ce.memoizedProps}catch(Se){Tt(a,a.return,Se)}}else if((ce.tag!==22&&ce.tag!==23||ce.memoizedState===null||ce===a)&&ce.child!==null){ce.child.return=ce,ce=ce.child;continue}if(ce===a)break e;for(;ce.sibling===null;){if(ce.return===null||ce.return===a)break e;le===ce&&(le=null),ce=ce.return}le===ce&&(le=null),ce.sibling.return=ce.return,ce=ce.sibling}}break;case 19:Or(c,a),fn(a),m&4&&sD(a);break;case 21:break;default:Or(c,a),fn(a)}}function fn(a){var c=a.flags;if(c&2){try{e:{for(var f=a.return;f!==null;){if(rD(f)){var m=f;break e}f=f.return}throw Error(o(160))}switch(m.tag){case 5:var w=m.stateNode;m.flags&32&&(ds(w,""),m.flags&=-33);var x=nD(a);hC(a,x,w);break;case 3:case 4:var E=m.stateNode.containerInfo,B=nD(a);dC(a,B,E);break;default:throw Error(o(161))}}catch(H){Tt(a,a.return,H)}a.flags&=-3}c&4096&&(a.flags&=-4097)}function oee(a,c,f){be=a,lD(a)}function lD(a,c,f){for(var m=(a.mode&1)!==0;be!==null;){var w=be,x=w.child;if(w.tag===22&&m){var E=w.memoizedState!==null||Tf;if(!E){var B=w.alternate,H=B!==null&&B.memoizedState!==null||fo;B=Tf;var ee=fo;if(Tf=E,(fo=H)&&!ee)for(be=w;be!==null;)E=be,H=E.child,E.tag===22&&E.memoizedState!==null?dD(w):H!==null?(H.return=E,be=H):dD(w);for(;x!==null;)be=x,lD(x),x=x.sibling;be=w,Tf=B,fo=ee}cD(a)}else(w.subtreeFlags&8772)!==0&&x!==null?(x.return=w,be=x):cD(a)}}function cD(a){for(;be!==null;){var c=be;if((c.flags&8772)!==0){var f=c.alternate;try{if((c.flags&8772)!==0)switch(c.tag){case 0:case 11:case 15:fo||Df(5,c);break;case 1:var m=c.stateNode;if(c.flags&4&&!fo)if(f===null)m.componentDidMount();else{var w=c.elementType===c.type?f.memoizedProps:Ir(c.type,f.memoizedProps);m.componentDidUpdate(w,f.memoizedState,m.__reactInternalSnapshotBeforeUpdate)}var x=c.updateQueue;x!==null&&uT(c,x,m);break;case 3:var E=c.updateQueue;if(E!==null){if(f=null,c.child!==null)switch(c.child.tag){case 5:f=c.child.stateNode;break;case 1:f=c.child.stateNode}uT(c,E,f)}break;case 5:var B=c.stateNode;if(f===null&&c.flags&4){f=B;var H=c.memoizedProps;switch(c.type){case"button":case"input":case"select":case"textarea":H.autoFocus&&f.focus();break;case"img":H.src&&(f.src=H.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(c.memoizedState===null){var ee=c.alternate;if(ee!==null){var le=ee.memoizedState;if(le!==null){var ce=le.dehydrated;ce!==null&&Nc(ce)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}fo||c.flags&512&&uC(c)}catch(se){Tt(c,c.return,se)}}if(c===a){be=null;break}if(f=c.sibling,f!==null){f.return=c.return,be=f;break}be=c.return}}function uD(a){for(;be!==null;){var c=be;if(c===a){be=null;break}var f=c.sibling;if(f!==null){f.return=c.return,be=f;break}be=c.return}}function dD(a){for(;be!==null;){var c=be;try{switch(c.tag){case 0:case 11:case 15:var f=c.return;try{Df(4,c)}catch(H){Tt(c,f,H)}break;case 1:var m=c.stateNode;if(typeof m.componentDidMount=="function"){var w=c.return;try{m.componentDidMount()}catch(H){Tt(c,w,H)}}var x=c.return;try{uC(c)}catch(H){Tt(c,x,H)}break;case 5:var E=c.return;try{uC(c)}catch(H){Tt(c,E,H)}}}catch(H){Tt(c,c.return,H)}if(c===a){be=null;break}var B=c.sibling;if(B!==null){B.return=c.return,be=B;break}be=c.return}}var ree=Math.ceil,Mf=P.ReactCurrentDispatcher,fC=P.ReactCurrentOwner,dr=P.ReactCurrentBatchConfig,Ze=0,$t=null,zt=null,eo=0,$o=0,nl=Ri(0),Gt=0,au=null,ws=0,Af=0,pC=0,lu=null,Do=null,gC=0,il=1/0,qn=null,_f=!1,mC=null,Ai=null,If=!1,_i=null,Bf=0,cu=0,vC=null,Of=-1,Lf=0;function mo(){return(Ze&6)!==0?It():Of!==-1?Of:Of=It()}function Ii(a){return(a.mode&1)===0?1:(Ze&2)!==0&&eo!==0?eo&-eo:HJ.transition!==null?(Lf===0&&(Lf=nE()),Lf):(a=nt,a!==0||(a=window.event,a=a===void 0?16:fE(a.type)),a)}function Lr(a,c,f,m){if(50<cu)throw cu=0,vC=null,Error(o(185));_c(a,f,m),((Ze&2)===0||a!==$t)&&(a===$t&&((Ze&2)===0&&(Af|=f),Gt===4&&Bi(a,eo)),Mo(a,m),f===1&&Ze===0&&(c.mode&1)===0&&(il=It()+500,df&&Ei()))}function Mo(a,c){var f=a.callbackNode;HQ(a,c);var m=qh(a,a===$t?eo:0);if(m===0)f!==null&&tE(f),a.callbackNode=null,a.callbackPriority=0;else if(c=m&-m,a.callbackPriority!==c){if(f!=null&&tE(f),c===1)a.tag===0?zJ(fD.bind(null,a)):QE(fD.bind(null,a)),BJ(function(){(Ze&6)===0&&Ei()}),f=null;else{switch(iE(m)){case 1:f=Zv;break;case 4:f=oE;break;case 16:f=Vh;break;case 536870912:f=rE;break;default:f=Vh}f=yD(f,hD.bind(null,a))}a.callbackPriority=c,a.callbackNode=f}}function hD(a,c){if(Of=-1,Lf=0,(Ze&6)!==0)throw Error(o(327));var f=a.callbackNode;if(sl()&&a.callbackNode!==f)return null;var m=qh(a,a===$t?eo:0);if(m===0)return null;if((m&30)!==0||(m&a.expiredLanes)!==0||c)c=Nf(a,m);else{c=m;var w=Ze;Ze|=2;var x=gD();($t!==a||eo!==c)&&(qn=null,il=It()+500,Ss(a,c));do try{see();break}catch(B){pD(a,B)}while(!0);Bb(),Mf.current=x,Ze=w,zt!==null?c=0:($t=null,eo=0,c=Gt)}if(c!==0){if(c===2&&(w=Yv(a),w!==0&&(m=w,c=bC(a,w))),c===1)throw f=au,Ss(a,0),Bi(a,m),Mo(a,It()),f;if(c===6)Bi(a,m);else{if(w=a.current.alternate,(m&30)===0&&!nee(w)&&(c=Nf(a,m),c===2&&(x=Yv(a),x!==0&&(m=x,c=bC(a,x))),c===1))throw f=au,Ss(a,0),Bi(a,m),Mo(a,It()),f;switch(a.finishedWork=w,a.finishedLanes=m,c){case 0:case 1:throw Error(o(345));case 2:xs(a,Do,qn);break;case 3:if(Bi(a,m),(m&130023424)===m&&(c=gC+500-It(),10<c)){if(qh(a,0)!==0)break;if(w=a.suspendedLanes,(w&m)!==m){mo(),a.pingedLanes|=a.suspendedLanes&w;break}a.timeoutHandle=kb(xs.bind(null,a,Do,qn),c);break}xs(a,Do,qn);break;case 4:if(Bi(a,m),(m&4194240)===m)break;for(c=a.eventTimes,w=-1;0<m;){var E=31-Mr(m);x=1<<E,E=c[E],E>w&&(w=E),m&=~x}if(m=w,m=It()-m,m=(120>m?120:480>m?480:1080>m?1080:1920>m?1920:3e3>m?3e3:4320>m?4320:1960*ree(m/1960))-m,10<m){a.timeoutHandle=kb(xs.bind(null,a,Do,qn),m);break}xs(a,Do,qn);break;case 5:xs(a,Do,qn);break;default:throw Error(o(329))}}}return Mo(a,It()),a.callbackNode===f?hD.bind(null,a):null}function bC(a,c){var f=lu;return a.current.memoizedState.isDehydrated&&(Ss(a,c).flags|=256),a=Nf(a,c),a!==2&&(c=Do,Do=f,c!==null&&CC(c)),a}function CC(a){Do===null?Do=a:Do.push.apply(Do,a)}function nee(a){for(var c=a;;){if(c.flags&16384){var f=c.updateQueue;if(f!==null&&(f=f.stores,f!==null))for(var m=0;m<f.length;m++){var w=f[m],x=w.getSnapshot;w=w.value;try{if(!Ar(x(),w))return!1}catch{return!1}}}if(f=c.child,c.subtreeFlags&16384&&f!==null)f.return=c,c=f;else{if(c===a)break;for(;c.sibling===null;){if(c.return===null||c.return===a)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function Bi(a,c){for(c&=~pC,c&=~Af,a.suspendedLanes|=c,a.pingedLanes&=~c,a=a.expirationTimes;0<c;){var f=31-Mr(c),m=1<<f;a[f]=-1,c&=~m}}function fD(a){if((Ze&6)!==0)throw Error(o(327));sl();var c=qh(a,0);if((c&1)===0)return Mo(a,It()),null;var f=Nf(a,c);if(a.tag!==0&&f===2){var m=Yv(a);m!==0&&(c=m,f=bC(a,m))}if(f===1)throw f=au,Ss(a,0),Bi(a,c),Mo(a,It()),f;if(f===6)throw Error(o(345));return a.finishedWork=a.current.alternate,a.finishedLanes=c,xs(a,Do,qn),Mo(a,It()),null}function wC(a,c){var f=Ze;Ze|=1;try{return a(c)}finally{Ze=f,Ze===0&&(il=It()+500,df&&Ei())}}function ys(a){_i!==null&&_i.tag===0&&(Ze&6)===0&&sl();var c=Ze;Ze|=1;var f=dr.transition,m=nt;try{if(dr.transition=null,nt=1,a)return a()}finally{nt=m,dr.transition=f,Ze=c,(Ze&6)===0&&Ei()}}function yC(){$o=nl.current,vt(nl)}function Ss(a,c){a.finishedWork=null,a.finishedLanes=0;var f=a.timeoutHandle;if(f!==-1&&(a.timeoutHandle=-1,IJ(f)),zt!==null)for(f=zt.return;f!==null;){var m=f;switch(Db(m),m.tag){case 1:m=m.type.childContextTypes,m!=null&&cf();break;case 3:tl(),vt(Po),vt(co),jb();break;case 5:Vb(m);break;case 4:tl();break;case 13:vt(St);break;case 19:vt(St);break;case 10:Ob(m.type._context);break;case 22:case 23:yC()}f=f.return}if($t=a,zt=a=Oi(a.current,null),eo=$o=c,Gt=0,au=null,pC=Af=ws=0,Do=lu=null,vs!==null){for(c=0;c<vs.length;c++)if(f=vs[c],m=f.interleaved,m!==null){f.interleaved=null;var w=m.next,x=f.pending;if(x!==null){var E=x.next;x.next=w,m.next=E}f.pending=m}vs=null}return a}function pD(a,c){do{var f=zt;try{if(Bb(),yf.current=Ff,Sf){for(var m=xt.memoizedState;m!==null;){var w=m.queue;w!==null&&(w.pending=null),m=m.next}Sf=!1}if(Cs=0,Ut=Vt=xt=null,tu=!1,ou=0,fC.current=null,f===null||f.return===null){Gt=1,au=c,zt=null;break}e:{var x=a,E=f.return,B=f,H=c;if(c=eo,B.flags|=32768,H!==null&&typeof H=="object"&&typeof H.then=="function"){var ee=H,le=B,ce=le.tag;if((le.mode&1)===0&&(ce===0||ce===11||ce===15)){var se=le.alternate;se?(le.updateQueue=se.updateQueue,le.memoizedState=se.memoizedState,le.lanes=se.lanes):(le.updateQueue=null,le.memoizedState=null)}var ve=zT(E);if(ve!==null){ve.flags&=-257,HT(ve,E,B,x,c),ve.mode&1&&NT(x,ee,c),c=ve,H=ee;var we=c.updateQueue;if(we===null){var Se=new Set;Se.add(H),c.updateQueue=Se}else we.add(H);break e}else{if((c&1)===0){NT(x,ee,c),SC();break e}H=Error(o(426))}}else if(Ct&&B.mode&1){var Bt=zT(E);if(Bt!==null){(Bt.flags&65536)===0&&(Bt.flags|=256),HT(Bt,E,B,x,c),_b(ol(H,B));break e}}x=H=ol(H,B),Gt!==4&&(Gt=2),lu===null?lu=[x]:lu.push(x),x=E;do{switch(x.tag){case 3:x.flags|=65536,c&=-c,x.lanes|=c;var X=OT(x,H,c);cT(x,X);break e;case 1:B=H;var G=x.type,Q=x.stateNode;if((x.flags&128)===0&&(typeof G.getDerivedStateFromError=="function"||Q!==null&&typeof Q.componentDidCatch=="function"&&(Ai===null||!Ai.has(Q)))){x.flags|=65536,c&=-c,x.lanes|=c;var de=LT(x,B,c);cT(x,de);break e}}x=x.return}while(x!==null)}vD(f)}catch(ke){c=ke,zt===f&&f!==null&&(zt=f=f.return);continue}break}while(!0)}function gD(){var a=Mf.current;return Mf.current=Ff,a===null?Ff:a}function SC(){(Gt===0||Gt===3||Gt===2)&&(Gt=4),$t===null||(ws&268435455)===0&&(Af&268435455)===0||Bi($t,eo)}function Nf(a,c){var f=Ze;Ze|=2;var m=gD();($t!==a||eo!==c)&&(qn=null,Ss(a,c));do try{iee();break}catch(w){pD(a,w)}while(!0);if(Bb(),Ze=f,Mf.current=m,zt!==null)throw Error(o(261));return $t=null,eo=0,Gt}function iee(){for(;zt!==null;)mD(zt)}function see(){for(;zt!==null&&!MQ();)mD(zt)}function mD(a){var c=wD(a.alternate,a,$o);a.memoizedProps=a.pendingProps,c===null?vD(a):zt=c,fC.current=null}function vD(a){var c=a;do{var f=c.alternate;if(a=c.return,(c.flags&32768)===0){if(f=QJ(f,c,$o),f!==null){zt=f;return}}else{if(f=JJ(f,c),f!==null){f.flags&=32767,zt=f;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{Gt=6,zt=null;return}}if(c=c.sibling,c!==null){zt=c;return}zt=c=a}while(c!==null);Gt===0&&(Gt=5)}function xs(a,c,f){var m=nt,w=dr.transition;try{dr.transition=null,nt=1,aee(a,c,f,m)}finally{dr.transition=w,nt=m}return null}function aee(a,c,f,m){do sl();while(_i!==null);if((Ze&6)!==0)throw Error(o(327));f=a.finishedWork;var w=a.finishedLanes;if(f===null)return null;if(a.finishedWork=null,a.finishedLanes=0,f===a.current)throw Error(o(177));a.callbackNode=null,a.callbackPriority=0;var x=f.lanes|f.childLanes;if(VQ(a,x),a===$t&&(zt=$t=null,eo=0),(f.subtreeFlags&2064)===0&&(f.flags&2064)===0||If||(If=!0,yD(Vh,function(){return sl(),null})),x=(f.flags&15990)!==0,(f.subtreeFlags&15990)!==0||x){x=dr.transition,dr.transition=null;var E=nt;nt=1;var B=Ze;Ze|=4,fC.current=null,tee(a,f),aD(f,a),PJ(Sb),Kh=!!yb,Sb=yb=null,a.current=f,oee(f),AQ(),Ze=B,nt=E,dr.transition=x}else a.current=f;if(If&&(If=!1,_i=a,Bf=w),x=a.pendingLanes,x===0&&(Ai=null),BQ(f.stateNode),Mo(a,It()),c!==null)for(m=a.onRecoverableError,f=0;f<c.length;f++)w=c[f],m(w.value,{componentStack:w.stack,digest:w.digest});if(_f)throw _f=!1,a=mC,mC=null,a;return(Bf&1)!==0&&a.tag!==0&&sl(),x=a.pendingLanes,(x&1)!==0?a===vC?cu++:(cu=0,vC=a):cu=0,Ei(),null}function sl(){if(_i!==null){var a=iE(Bf),c=dr.transition,f=nt;try{if(dr.transition=null,nt=16>a?16:a,_i===null)var m=!1;else{if(a=_i,_i=null,Bf=0,(Ze&6)!==0)throw Error(o(331));var w=Ze;for(Ze|=4,be=a.current;be!==null;){var x=be,E=x.child;if((be.flags&16)!==0){var B=x.deletions;if(B!==null){for(var H=0;H<B.length;H++){var ee=B[H];for(be=ee;be!==null;){var le=be;switch(le.tag){case 0:case 11:case 15:su(8,le,x)}var ce=le.child;if(ce!==null)ce.return=le,be=ce;else for(;be!==null;){le=be;var se=le.sibling,ve=le.return;if(oD(le),le===ee){be=null;break}if(se!==null){se.return=ve,be=se;break}be=ve}}}var we=x.alternate;if(we!==null){var Se=we.child;if(Se!==null){we.child=null;do{var Bt=Se.sibling;Se.sibling=null,Se=Bt}while(Se!==null)}}be=x}}if((x.subtreeFlags&2064)!==0&&E!==null)E.return=x,be=E;else e:for(;be!==null;){if(x=be,(x.flags&2048)!==0)switch(x.tag){case 0:case 11:case 15:su(9,x,x.return)}var X=x.sibling;if(X!==null){X.return=x.return,be=X;break e}be=x.return}}var G=a.current;for(be=G;be!==null;){E=be;var Q=E.child;if((E.subtreeFlags&2064)!==0&&Q!==null)Q.return=E,be=Q;else e:for(E=G;be!==null;){if(B=be,(B.flags&2048)!==0)try{switch(B.tag){case 0:case 11:case 15:Df(9,B)}}catch(ke){Tt(B,B.return,ke)}if(B===E){be=null;break e}var de=B.sibling;if(de!==null){de.return=B.return,be=de;break e}be=B.return}}if(Ze=w,Ei(),cn&&typeof cn.onPostCommitFiberRoot=="function")try{cn.onPostCommitFiberRoot(Gh,a)}catch{}m=!0}return m}finally{nt=f,dr.transition=c}}return!1}function bD(a,c,f){c=ol(f,c),c=OT(a,c,1),a=Di(a,c,1),c=mo(),a!==null&&(_c(a,1,c),Mo(a,c))}function Tt(a,c,f){if(a.tag===3)bD(a,a,f);else for(;c!==null;){if(c.tag===3){bD(c,a,f);break}else if(c.tag===1){var m=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Ai===null||!Ai.has(m))){a=ol(f,a),a=LT(c,a,1),c=Di(c,a,1),a=mo(),c!==null&&(_c(c,1,a),Mo(c,a));break}}c=c.return}}function lee(a,c,f){var m=a.pingCache;m!==null&&m.delete(c),c=mo(),a.pingedLanes|=a.suspendedLanes&f,$t===a&&(eo&f)===f&&(Gt===4||Gt===3&&(eo&130023424)===eo&&500>It()-gC?Ss(a,0):pC|=f),Mo(a,c)}function CD(a,c){c===0&&((a.mode&1)===0?c=1:(c=Wh,Wh<<=1,(Wh&130023424)===0&&(Wh=4194304)));var f=mo();a=Gn(a,c),a!==null&&(_c(a,c,f),Mo(a,f))}function cee(a){var c=a.memoizedState,f=0;c!==null&&(f=c.retryLane),CD(a,f)}function uee(a,c){var f=0;switch(a.tag){case 13:var m=a.stateNode,w=a.memoizedState;w!==null&&(f=w.retryLane);break;case 19:m=a.stateNode;break;default:throw Error(o(314))}m!==null&&m.delete(c),CD(a,f)}var wD;wD=function(a,c,f){if(a!==null)if(a.memoizedProps!==c.pendingProps||Po.current)To=!0;else{if((a.lanes&f)===0&&(c.flags&128)===0)return To=!1,YJ(a,c,f);To=(a.flags&131072)!==0}else To=!1,Ct&&(c.flags&1048576)!==0&&JE(c,ff,c.index);switch(c.lanes=0,c.tag){case 2:var m=c.type;Ef(a,c),a=c.pendingProps;var w=Ka(c,co.current);el(c,f),w=Ub(null,c,m,a,w,f);var x=$b();return c.flags|=1,typeof w=="object"&&w!==null&&typeof w.render=="function"&&w.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,Eo(m)?(x=!0,uf(c)):x=!1,c.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,zb(c),w.updater=Rf,c.stateNode=w,w._reactInternals=c,Jb(c,m,a,f),c=rC(null,c,m,!0,x,f)):(c.tag=0,Ct&&x&&Tb(c),go(null,c,w,f),c=c.child),c;case 16:m=c.elementType;e:{switch(Ef(a,c),a=c.pendingProps,w=m._init,m=w(m._payload),c.type=m,w=c.tag=hee(m),a=Ir(m,a),w){case 0:c=oC(null,c,m,a,f);break e;case 1:c=UT(null,c,m,a,f);break e;case 11:c=VT(null,c,m,a,f);break e;case 14:c=GT(null,c,m,Ir(m.type,a),f);break e}throw Error(o(306,m,""))}return c;case 0:return m=c.type,w=c.pendingProps,w=c.elementType===m?w:Ir(m,w),oC(a,c,m,w,f);case 1:return m=c.type,w=c.pendingProps,w=c.elementType===m?w:Ir(m,w),UT(a,c,m,w,f);case 3:e:{if($T(c),a===null)throw Error(o(387));m=c.pendingProps,x=c.memoizedState,w=x.element,lT(a,c),Cf(c,m,null,f);var E=c.memoizedState;if(m=E.element,x.isDehydrated)if(x={element:m,isDehydrated:!1,cache:E.cache,pendingSuspenseBoundaries:E.pendingSuspenseBoundaries,transitions:E.transitions},c.updateQueue.baseState=x,c.memoizedState=x,c.flags&256){w=ol(Error(o(423)),c),c=KT(a,c,m,f,w);break e}else if(m!==w){w=ol(Error(o(424)),c),c=KT(a,c,m,f,w);break e}else for(Uo=Fi(c.stateNode.containerInfo.firstChild),qo=c,Ct=!0,_r=null,f=sT(c,null,m,f),c.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(Ya(),m===w){c=Wn(a,c,f);break e}go(a,c,m,f)}c=c.child}return c;case 5:return dT(c),a===null&&Ab(c),m=c.type,w=c.pendingProps,x=a!==null?a.memoizedProps:null,E=w.children,xb(m,w)?E=null:x!==null&&xb(m,x)&&(c.flags|=32),qT(a,c),go(a,c,E,f),c.child;case 6:return a===null&&Ab(c),null;case 13:return XT(a,c,f);case 4:return Hb(c,c.stateNode.containerInfo),m=c.pendingProps,a===null?c.child=Qa(c,null,m,f):go(a,c,m,f),c.child;case 11:return m=c.type,w=c.pendingProps,w=c.elementType===m?w:Ir(m,w),VT(a,c,m,w,f);case 7:return go(a,c,c.pendingProps,f),c.child;case 8:return go(a,c,c.pendingProps.children,f),c.child;case 12:return go(a,c,c.pendingProps.children,f),c.child;case 10:e:{if(m=c.type._context,w=c.pendingProps,x=c.memoizedProps,E=w.value,pt(mf,m._currentValue),m._currentValue=E,x!==null)if(Ar(x.value,E)){if(x.children===w.children&&!Po.current){c=Wn(a,c,f);break e}}else for(x=c.child,x!==null&&(x.return=c);x!==null;){var B=x.dependencies;if(B!==null){E=x.child;for(var H=B.firstContext;H!==null;){if(H.context===m){if(x.tag===1){H=jn(-1,f&-f),H.tag=2;var ee=x.updateQueue;if(ee!==null){ee=ee.shared;var le=ee.pending;le===null?H.next=H:(H.next=le.next,le.next=H),ee.pending=H}}x.lanes|=f,H=x.alternate,H!==null&&(H.lanes|=f),Lb(x.return,f,c),B.lanes|=f;break}H=H.next}}else if(x.tag===10)E=x.type===c.type?null:x.child;else if(x.tag===18){if(E=x.return,E===null)throw Error(o(341));E.lanes|=f,B=E.alternate,B!==null&&(B.lanes|=f),Lb(E,f,c),E=x.sibling}else E=x.child;if(E!==null)E.return=x;else for(E=x;E!==null;){if(E===c){E=null;break}if(x=E.sibling,x!==null){x.return=E.return,E=x;break}E=E.return}x=E}go(a,c,w.children,f),c=c.child}return c;case 9:return w=c.type,m=c.pendingProps.children,el(c,f),w=cr(w),m=m(w),c.flags|=1,go(a,c,m,f),c.child;case 14:return m=c.type,w=Ir(m,c.pendingProps),w=Ir(m.type,w),GT(a,c,m,w,f);case 15:return jT(a,c,c.type,c.pendingProps,f);case 17:return m=c.type,w=c.pendingProps,w=c.elementType===m?w:Ir(m,w),Ef(a,c),c.tag=1,Eo(m)?(a=!0,uf(c)):a=!1,el(c,f),IT(c,m,w),Jb(c,m,w,f),rC(null,c,m,!0,a,f);case 19:return YT(a,c,f);case 22:return WT(a,c,f)}throw Error(o(156,c.tag))};function yD(a,c){return eE(a,c)}function dee(a,c,f,m){this.tag=a,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hr(a,c,f,m){return new dee(a,c,f,m)}function xC(a){return a=a.prototype,!(!a||!a.isReactComponent)}function hee(a){if(typeof a=="function")return xC(a)?1:0;if(a!=null){if(a=a.$$typeof,a===q)return 11;if(a===$)return 14}return 2}function Oi(a,c){var f=a.alternate;return f===null?(f=hr(a.tag,c,a.key,a.mode),f.elementType=a.elementType,f.type=a.type,f.stateNode=a.stateNode,f.alternate=a,a.alternate=f):(f.pendingProps=c,f.type=a.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=a.flags&14680064,f.childLanes=a.childLanes,f.lanes=a.lanes,f.child=a.child,f.memoizedProps=a.memoizedProps,f.memoizedState=a.memoizedState,f.updateQueue=a.updateQueue,c=a.dependencies,f.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},f.sibling=a.sibling,f.index=a.index,f.ref=a.ref,f}function zf(a,c,f,m,w,x){var E=2;if(m=a,typeof a=="function")xC(a)&&(E=1);else if(typeof a=="string")E=5;else e:switch(a){case M:return ks(f.children,w,x,c);case O:E=8,w|=8;break;case I:return a=hr(12,f,c,w|2),a.elementType=I,a.lanes=x,a;case A:return a=hr(13,f,c,w),a.elementType=A,a.lanes=x,a;case K:return a=hr(19,f,c,w),a.elementType=K,a.lanes=x,a;case W:return Hf(f,w,x,c);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case z:E=10;break e;case U:E=9;break e;case q:E=11;break e;case $:E=14;break e;case Z:E=16,m=null;break e}throw Error(o(130,a==null?a:typeof a,""))}return c=hr(E,f,c,w),c.elementType=a,c.type=m,c.lanes=x,c}function ks(a,c,f,m){return a=hr(7,a,m,c),a.lanes=f,a}function Hf(a,c,f,m){return a=hr(22,a,m,c),a.elementType=W,a.lanes=f,a.stateNode={isHidden:!1},a}function kC(a,c,f){return a=hr(6,a,null,c),a.lanes=f,a}function FC(a,c,f){return c=hr(4,a.children!==null?a.children:[],a.key,c),c.lanes=f,c.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},c}function fee(a,c,f,m,w){this.tag=c,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Qv(0),this.expirationTimes=Qv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qv(0),this.identifierPrefix=m,this.onRecoverableError=w,this.mutableSourceEagerHydrationData=null}function RC(a,c,f,m,w,x,E,B,H){return a=new fee(a,c,f,B,H),c===1?(c=1,x===!0&&(c|=8)):c=0,x=hr(3,null,null,c),a.current=x,x.stateNode=a,x.memoizedState={element:m,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},zb(x),a}function pee(a,c,f){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:D,key:m==null?null:""+m,children:a,containerInfo:c,implementation:f}}function SD(a){if(!a)return Pi;a=a._reactInternals;e:{if(hs(a)!==a||a.tag!==1)throw Error(o(170));var c=a;do{switch(c.tag){case 3:c=c.stateNode.context;break e;case 1:if(Eo(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break e}}c=c.return}while(c!==null);throw Error(o(171))}if(a.tag===1){var f=a.type;if(Eo(f))return ZE(a,f,c)}return c}function xD(a,c,f,m,w,x,E,B,H){return a=RC(f,m,!0,a,w,x,E,B,H),a.context=SD(null),f=a.current,m=mo(),w=Ii(f),x=jn(m,w),x.callback=c??null,Di(f,x,w),a.current.lanes=w,_c(a,w,m),Mo(a,m),a}function Vf(a,c,f,m){var w=c.current,x=mo(),E=Ii(w);return f=SD(f),c.context===null?c.context=f:c.pendingContext=f,c=jn(x,E),c.payload={element:a},m=m===void 0?null:m,m!==null&&(c.callback=m),a=Di(w,c,E),a!==null&&(Lr(a,w,E,x),bf(a,w,E)),E}function Gf(a){return a=a.current,a.child?(a.child.tag===5,a.child.stateNode):null}function kD(a,c){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var f=a.retryLane;a.retryLane=f!==0&&f<c?f:c}}function PC(a,c){kD(a,c),(a=a.alternate)&&kD(a,c)}function gee(){return null}var FD=typeof reportError=="function"?reportError:function(a){console.error(a)};function EC(a){this._internalRoot=a}jf.prototype.render=EC.prototype.render=function(a){var c=this._internalRoot;if(c===null)throw Error(o(409));Vf(a,c,null,null)},jf.prototype.unmount=EC.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var c=a.containerInfo;ys(function(){Vf(null,a,null,null)}),c[Nn]=null}};function jf(a){this._internalRoot=a}jf.prototype.unstable_scheduleHydration=function(a){if(a){var c=lE();a={blockedOn:null,target:a,priority:c};for(var f=0;f<Si.length&&c!==0&&c<Si[f].priority;f++);Si.splice(f,0,a),f===0&&dE(a)}};function TC(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function Wf(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function RD(){}function mee(a,c,f,m,w){if(w){if(typeof m=="function"){var x=m;m=function(){var ee=Gf(E);x.call(ee)}}var E=xD(c,m,a,0,null,!1,!1,"",RD);return a._reactRootContainer=E,a[Nn]=E.current,$c(a.nodeType===8?a.parentNode:a),ys(),E}for(;w=a.lastChild;)a.removeChild(w);if(typeof m=="function"){var B=m;m=function(){var ee=Gf(H);B.call(ee)}}var H=RC(a,0,!1,null,null,!1,!1,"",RD);return a._reactRootContainer=H,a[Nn]=H.current,$c(a.nodeType===8?a.parentNode:a),ys(function(){Vf(c,H,f,m)}),H}function qf(a,c,f,m,w){var x=f._reactRootContainer;if(x){var E=x;if(typeof w=="function"){var B=w;w=function(){var H=Gf(E);B.call(H)}}Vf(c,E,a,w)}else E=mee(f,c,a,w,m);return Gf(E)}sE=function(a){switch(a.tag){case 3:var c=a.stateNode;if(c.current.memoizedState.isDehydrated){var f=Ac(c.pendingLanes);f!==0&&(Jv(c,f|1),Mo(c,It()),(Ze&6)===0&&(il=It()+500,Ei()))}break;case 13:ys(function(){var m=Gn(a,1);if(m!==null){var w=mo();Lr(m,a,1,w)}}),PC(a,1)}},eb=function(a){if(a.tag===13){var c=Gn(a,134217728);if(c!==null){var f=mo();Lr(c,a,134217728,f)}PC(a,134217728)}},aE=function(a){if(a.tag===13){var c=Ii(a),f=Gn(a,c);if(f!==null){var m=mo();Lr(f,a,c,m)}PC(a,c)}},lE=function(){return nt},cE=function(a,c){var f=nt;try{return nt=a,c()}finally{nt=f}},Uv=function(a,c,f){switch(c){case"input":if(Le(a,f),c=f.name,f.type==="radio"&&c!=null){for(f=a;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll("input[name="+JSON.stringify(""+c)+'][type="radio"]'),c=0;c<f.length;c++){var m=f[c];if(m!==a&&m.form===a.form){var w=lf(m);if(!w)throw Error(o(90));Ne(m),Le(m,w)}}}break;case"textarea":jo(a,f);break;case"select":c=f.value,c!=null&&Ee(a,!!f.multiple,c,!1)}},$P=wC,KP=ys;var vee={usingClientEntryPoint:!1,Events:[Zc,Ua,lf,qP,UP,wC]},uu={findFiberByHostInstance:fs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},bee={bundleType:uu.bundleType,version:uu.version,rendererPackageName:uu.rendererPackageName,rendererConfig:uu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:P.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=QP(a),a===null?null:a.stateNode},findFiberByHostInstance:uu.findFiberByHostInstance||gee,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Uf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Uf.isDisabled&&Uf.supportsFiber)try{Gh=Uf.inject(bee),cn=Uf}catch{}}return vo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vee,vo.createPortal=function(a,c){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!TC(c))throw Error(o(200));return pee(a,c,null,f)},vo.createRoot=function(a,c){if(!TC(a))throw Error(o(299));var f=!1,m="",w=FD;return c!=null&&(c.unstable_strictMode===!0&&(f=!0),c.identifierPrefix!==void 0&&(m=c.identifierPrefix),c.onRecoverableError!==void 0&&(w=c.onRecoverableError)),c=RC(a,1,!1,null,null,f,!1,m,w),a[Nn]=c.current,$c(a.nodeType===8?a.parentNode:a),new EC(c)},vo.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var c=a._reactInternals;if(c===void 0)throw typeof a.render=="function"?Error(o(188)):(a=Object.keys(a).join(","),Error(o(268,a)));return a=QP(c),a=a===null?null:a.stateNode,a},vo.flushSync=function(a){return ys(a)},vo.hydrate=function(a,c,f){if(!Wf(c))throw Error(o(200));return qf(null,a,c,!0,f)},vo.hydrateRoot=function(a,c,f){if(!TC(a))throw Error(o(405));var m=f!=null&&f.hydratedSources||null,w=!1,x="",E=FD;if(f!=null&&(f.unstable_strictMode===!0&&(w=!0),f.identifierPrefix!==void 0&&(x=f.identifierPrefix),f.onRecoverableError!==void 0&&(E=f.onRecoverableError)),c=xD(c,null,a,1,f??null,w,!1,x,E),a[Nn]=c.current,$c(a),m)for(a=0;a<m.length;a++)f=m[a],w=f._getVersion,w=w(f._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[f,w]:c.mutableSourceEagerHydrationData.push(f,w);return new jf(c)},vo.render=function(a,c,f){if(!Wf(c))throw Error(o(200));return qf(null,a,c,!1,f)},vo.unmountComponentAtNode=function(a){if(!Wf(a))throw Error(o(40));return a._reactRootContainer?(ys(function(){qf(null,null,a,!1,function(){a._reactRootContainer=null,a[Nn]=null})}),!0):!1},vo.unstable_batchedUpdates=wC,vo.unstable_renderSubtreeIntoContainer=function(a,c,f,m){if(!Wf(f))throw Error(o(200));if(a==null||a._reactInternals===void 0)throw Error(o(38));return qf(a,c,f,!1,m)},vo.version="18.3.1-next-f1338f8080-20240426",vo}var zC;function HC(){if(zC)return Yf.exports;zC=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Yf.exports=OD(),Yf.exports}var VC;function LD(){if(VC)return pu;VC=1;var e=HC();return pu.createRoot=e.createRoot,pu.hydrateRoot=e.hydrateRoot,pu}var ND=LD();const yee="modulepreload",See=function(e,t){return new URL(e,t).href},xee={},zD=function(t,o,r){let n=Promise.resolve();function i(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return n.then(s=>{for(const l of s||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})};function $e(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(o.length?" "+o.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var HD={};function gu(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:HD}var GC=Object.assign,mu=Object.getOwnPropertyDescriptor,Nr=Object.defineProperty,ll=Object.prototype,ep=[];Object.freeze(ep);var jC={};Object.freeze(jC);var VD=typeof Proxy<"u",GD=Object.toString();function WC(){VD||$e("Proxy not available")}function qC(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Fs=function(){};function fr(e){return typeof e=="function"}function Ni(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function vu(e){return e!==null&&typeof e=="object"}function pn(e){if(!vu(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var o=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o.toString()===GD}function UC(e){var t=e?.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function cl(e,t,o){Nr(e,t,{enumerable:!1,writable:!0,configurable:!0,value:o})}function $C(e,t,o){Nr(e,t,{enumerable:!1,writable:!1,configurable:!0,value:o})}function $n(e,t){var o="isMobX"+e;return t.prototype[o]=!0,function(r){return vu(r)&&r[o]===!0}}function Rs(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function jD(e){var t=Object.getPrototypeOf(e),o=Object.getPrototypeOf(t),r=Object.getPrototypeOf(o);return r===null}function gn(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var KC=typeof Object.getOwnPropertySymbols<"u";function WD(e){var t=Object.keys(e);if(!KC)return t;var o=Object.getOwnPropertySymbols(e);return o.length?[].concat(t,o.filter(function(r){return ll.propertyIsEnumerable.call(e,r)})):t}var Ps=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:KC?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function XC(e){return e===null?null:typeof e=="object"?""+e:e}function mn(e,t){return ll.hasOwnProperty.call(e,t)}var qD=Object.getOwnPropertyDescriptors||function(t){var o={};return Ps(t).forEach(function(r){o[r]=mu(t,r)}),o};function Ao(e,t){return!!(e&t)}function _o(e,t,o){return o?e|=t:e&=~t,e}function ZC(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=Array(t);o<t;o++)r[o]=e[o];return r}function UD(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,KD(r.key),r)}}function Es(e,t,o){return t&&UD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ts(e,t){var o=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=XD(e))||t){o&&(e=o);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
10
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},zi.apply(null,arguments)}function YC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,tp(e,t)}function tp(e,t){return tp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,r){return o.__proto__=r,o},tp(e,t)}function $D(e,t){if(typeof e!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function KD(e){var t=$D(e,"string");return typeof t=="symbol"?t:t+""}function XD(e,t){if(e){if(typeof e=="string")return ZC(e,t);var o={}.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ZC(e,t):void 0}}var zr=Symbol("mobx-stored-annotations");function Hr(e){function t(o,r){if(dl(r))return e.decorate_20223_(o,r);ul(o,r,e)}return Object.assign(t,e)}function ul(e,t,o){mn(e,zr)||cl(e,zr,zi({},e[zr])),o2(o)||(e[zr][t]=o)}function ZD(e){return mn(e,zr)||cl(e,zr,zi({},e[zr])),e[zr]}function dl(e){return typeof e=="object"&&typeof e.kind=="string"}var _e=Symbol("mobx administration"),Kn=(function(){function e(o){o===void 0&&(o="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=Ye.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=o}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.reportObserved=function(){return m0(this)},t.reportChanged=function(){Ko(),v0(this),Xo()},t.toString=function(){return this.name_},Es(e,[{key:"isBeingObserved",get:function(){return Ao(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=_o(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return Ao(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=_o(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return Ao(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=_o(this.flags_,e.diffValueMask_,r===1)}}])})();Kn.isBeingObservedMask_=1,Kn.isPendingUnobservationMask_=2,Kn.diffValueMask_=4;var op=$n("Atom",Kn);function QC(e,t,o){t===void 0&&(t=Fs),o===void 0&&(o=Fs);var r=new Kn(e);return t!==Fs&&lM(r,t),o!==Fs&&S0(r,o),r}function YD(e,t){return W0(e,t)}function QD(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var bu={structural:YD,default:QD};function Hi(e,t,o){return fp(e)?e:Array.isArray(e)?jt.array(e,{name:o}):pn(e)?jt.object(e,void 0,{name:o}):Rs(e)?jt.map(e,{name:o}):gn(e)?jt.set(e,{name:o}):typeof e=="function"&&!Ms(e)&&!vl(e)?UC(e)?As(e):ml(o,e):e}function JD(e,t,o){if(e==null||yl(e)||wl(e)||Yn(e)||br(e))return e;if(Array.isArray(e))return jt.array(e,{name:o,deep:!1});if(pn(e))return jt.object(e,void 0,{name:o,deep:!1});if(Rs(e))return jt.map(e,{name:o,deep:!1});if(gn(e))return jt.set(e,{name:o,deep:!1})}function Cu(e){return e}function e2(e,t){return W0(e,t)?t:e}var t2="override";function o2(e){return e.annotationType_===t2}function hl(e,t){return{annotationType_:e,options_:t,make_:r2,extend_:n2,decorate_20223_:i2}}function r2(e,t,o,r){var n;if((n=this.options_)!=null&&n.bound)return this.extend_(e,t,o,!1)===null?0:1;if(r===e.target_)return this.extend_(e,t,o,!1)===null?0:2;if(Ms(o.value))return 1;var i=JC(e,this,t,o,!1);return Nr(r,t,i),2}function n2(e,t,o,r){var n=JC(e,this,t,o);return e.defineProperty_(t,n,r)}function i2(e,t){var o=t.kind,r=t.name,n=t.addInitializer,i=this,s=function(d){var h,p,g,v;return Vi((h=(p=i.options_)==null?void 0:p.name)!=null?h:r.toString(),d,(g=(v=i.options_)==null?void 0:v.autoAction)!=null?g:!1)};if(o=="field")return function(u){var d,h=u;return Ms(h)||(h=s(h)),(d=i.options_)!=null&&d.bound&&(h=h.bind(this),h.isMobxAction=!0),h};if(o=="method"){var l;return Ms(e)||(e=s(e)),(l=this.options_)!=null&&l.bound&&n(function(){var u=this,d=u[r].bind(u);d.isMobxAction=!0,u[r]=d}),e}$e("Cannot apply '"+i.annotationType_+"' to '"+String(r)+"' (kind: "+o+"):"+(`
11
+ '`+i.annotationType_+"' can only be used on properties with a function value."))}function s2(e,t,o,r){t.annotationType_,r.value}function JC(e,t,o,r,n){var i,s,l,u,d,h,p;n===void 0&&(n=fe.safeDescriptors),s2(e,t,o,r);var g=r.value;if((i=t.options_)!=null&&i.bound){var v;g=g.bind((v=e.proxy_)!=null?v:e.target_)}return{value:Vi((s=(l=t.options_)==null?void 0:l.name)!=null?s:o.toString(),g,(u=(d=t.options_)==null?void 0:d.autoAction)!=null?u:!1,(h=t.options_)!=null&&h.bound?(p=e.proxy_)!=null?p:e.target_:void 0),configurable:n?e.isPlainObject_:!0,enumerable:!1,writable:!n}}function e0(e,t){return{annotationType_:e,options_:t,make_:a2,extend_:l2,decorate_20223_:c2}}function a2(e,t,o,r){var n;if(r===e.target_)return this.extend_(e,t,o,!1)===null?0:2;if((n=this.options_)!=null&&n.bound&&(!mn(e.target_,t)||!vl(e.target_[t]))&&this.extend_(e,t,o,!1)===null)return 0;if(vl(o.value))return 1;var i=t0(e,this,t,o,!1,!1);return Nr(r,t,i),2}function l2(e,t,o,r){var n,i=t0(e,this,t,o,(n=this.options_)==null?void 0:n.bound);return e.defineProperty_(t,i,r)}function c2(e,t){var o,r=t.name,n=t.addInitializer;return vl(e)||(e=As(e)),(o=this.options_)!=null&&o.bound&&n(function(){var i=this,s=i[r].bind(i);s.isMobXFlow=!0,i[r]=s}),e}function u2(e,t,o,r){t.annotationType_,r.value}function t0(e,t,o,r,n,i){i===void 0&&(i=fe.safeDescriptors),u2(e,t,o,r);var s=r.value;if(vl(s)||(s=As(s)),n){var l;s=s.bind((l=e.proxy_)!=null?l:e.target_),s.isMobXFlow=!0}return{value:s,configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function rp(e,t){return{annotationType_:e,options_:t,make_:d2,extend_:h2,decorate_20223_:f2}}function d2(e,t,o){return this.extend_(e,t,o,!1)===null?0:1}function h2(e,t,o,r){return p2(e,this,t,o),e.defineComputedProperty_(t,zi({},this.options_,{get:o.get,set:o.set}),r)}function f2(e,t){var o=this,r=t.name,n=t.addInitializer;return n(function(){var i=ji(this)[_e],s=zi({},o.options_,{get:e,context:this});s.name||(s.name="ObservableObject."+r.toString()),i.values_.set(r,new pr(s))}),function(){return this[_e].getObservablePropValue_(r)}}function p2(e,t,o,r){t.annotationType_,r.get}function wu(e,t){return{annotationType_:e,options_:t,make_:g2,extend_:m2,decorate_20223_:v2}}function g2(e,t,o){return this.extend_(e,t,o,!1)===null?0:1}function m2(e,t,o,r){var n,i;return b2(e,this),e.defineObservableProperty_(t,o.value,(n=(i=this.options_)==null?void 0:i.enhancer)!=null?n:Hi,r)}function v2(e,t){var o=this,r=t.kind,n=t.name,i=new WeakSet;function s(l,u){var d,h,p=ji(l)[_e],g=new Xn(u,(d=(h=o.options_)==null?void 0:h.enhancer)!=null?d:Hi,"ObservableObject."+n.toString(),!1);p.values_.set(n,g),i.add(l)}if(r=="accessor")return{get:function(){return i.has(this)||s(this,e.get.call(this)),this[_e].getObservablePropValue_(n)},set:function(u){return i.has(this)||s(this,u),this[_e].setObservablePropValue_(n,u)},init:function(u){return i.has(this)||s(this,u),u}}}function b2(e,t,o,r){t.annotationType_}var C2="true",w2=o0();function o0(e){return{annotationType_:C2,options_:e,make_:y2,extend_:S2,decorate_20223_:x2}}function y2(e,t,o,r){var n,i;if(o.get)return xu.make_(e,t,o,r);if(o.set){var s=Ms(o.set)?o.set:Vi(t.toString(),o.set);return r===e.target_?e.defineProperty_(t,{configurable:fe.safeDescriptors?e.isPlainObject_:!0,set:s})===null?0:2:(Nr(r,t,{configurable:!0,set:s}),2)}if(r!==e.target_&&typeof o.value=="function"){var l;if(UC(o.value)){var u,d=(u=this.options_)!=null&&u.autoBind?As.bound:As;return d.make_(e,t,o,r)}var h=(l=this.options_)!=null&&l.autoBind?ml.bound:ml;return h.make_(e,t,o,r)}var p=((n=this.options_)==null?void 0:n.deep)===!1?jt.ref:jt;if(typeof o.value=="function"&&(i=this.options_)!=null&&i.autoBind){var g;o.value=o.value.bind((g=e.proxy_)!=null?g:e.target_)}return p.make_(e,t,o,r)}function S2(e,t,o,r){var n,i;if(o.get)return xu.extend_(e,t,o,r);if(o.set)return e.defineProperty_(t,{configurable:fe.safeDescriptors?e.isPlainObject_:!0,set:Vi(t.toString(),o.set)},r);if(typeof o.value=="function"&&(n=this.options_)!=null&&n.autoBind){var s;o.value=o.value.bind((s=e.proxy_)!=null?s:e.target_)}var l=((i=this.options_)==null?void 0:i.deep)===!1?jt.ref:jt;return l.extend_(e,t,o,r)}function x2(e,t){$e("'"+this.annotationType_+"' cannot be used as a decorator")}var k2="observable",F2="observable.ref",R2="observable.shallow",P2="observable.struct",r0={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(r0);function yu(e){return e||r0}var np=wu(k2),E2=wu(F2,{enhancer:Cu}),T2=wu(R2,{enhancer:JD}),D2=wu(P2,{enhancer:e2}),n0=Hr(np);function Su(e){return e.deep===!0?Hi:e.deep===!1?Cu:A2(e.defaultDecorator)}function M2(e){var t;return e?(t=e.defaultDecorator)!=null?t:o0(e):void 0}function A2(e){var t,o;return e&&(t=(o=e.options_)==null?void 0:o.enhancer)!=null?t:Hi}function i0(e,t,o){if(dl(t))return np.decorate_20223_(e,t);if(Ni(t)){ul(e,t,np);return}return fp(e)?e:pn(e)?jt.object(e,t,o):Array.isArray(e)?jt.array(e,t):Rs(e)?jt.map(e,t):gn(e)?jt.set(e,t):typeof e=="object"&&e!==null?e:jt.box(e,t)}GC(i0,n0);var _2={box:function(t,o){var r=yu(o);return new Xn(t,Su(r),r.name,!0,r.equals)},array:function(t,o){var r=yu(o);return(fe.useProxies===!1||r.proxy===!1?_M:xM)(t,Su(r),r.name)},map:function(t,o){var r=yu(o);return new M0(t,Su(r),r.name)},set:function(t,o){var r=yu(o);return new _0(t,Su(r),r.name)},object:function(t,o,r){return Qn(function(){return k0(fe.useProxies===!1||r?.proxy===!1?ji({},r):CM({},r),t,o)})},ref:Hr(E2),shallow:Hr(T2),deep:n0,struct:Hr(D2)},jt=GC(i0,_2),s0="computed",I2="computed.struct",ip=rp(s0),B2=rp(I2,{equals:bu.structural}),xu=function(t,o){if(dl(o))return ip.decorate_20223_(t,o);if(Ni(o))return ul(t,o,ip);if(pn(t))return Hr(rp(s0,t));var r=pn(o)?o:{};return r.get=t,r.name||(r.name=t.name||""),new pr(r)};Object.assign(xu,ip),xu.struct=Hr(B2);var a0,l0,ku=0,O2=1,L2=(a0=(l0=mu(function(){},"name"))==null?void 0:l0.configurable)!=null?a0:!1,c0={value:"action",configurable:!0,writable:!1,enumerable:!1};function Vi(e,t,o,r){o===void 0&&(o=!1);function n(){return N2(e,o,t,r||this,arguments)}return n.isMobxAction=!0,n.toString=function(){return t.toString()},L2&&(c0.value=e,Nr(n,"name",c0)),n}function N2(e,t,o,r,n){var i=z2(e,t);try{return o.apply(r,n)}catch(s){throw i.error_=s,s}finally{H2(i)}}function z2(e,t,o,r){var n=!1,i=0,s=fe.trackingDerivation,l=!t||!s;Ko();var u=fe.allowStateChanges;l&&(Gi(),u=Fu(!0));var d=lp(!0),h={runAsAction_:l,prevDerivation_:s,prevAllowStateChanges_:u,prevAllowStateReads_:d,notifySpy_:n,startTime_:i,actionId_:O2++,parentActionId_:ku};return ku=h.actionId_,h}function H2(e){ku!==e.actionId_&&$e(30),ku=e.parentActionId_,e.error_!==void 0&&(fe.suppressReactionErrors=!0),Ru(e.prevAllowStateChanges_),pl(e.prevAllowStateReads_),Xo(),e.runAsAction_&&vn(e.prevDerivation_),fe.suppressReactionErrors=!1}function V2(e,t){var o=Fu(e);try{return t()}finally{Ru(o)}}function Fu(e){var t=fe.allowStateChanges;return fe.allowStateChanges=e,t}function Ru(e){fe.allowStateChanges=e}var Xn=(function(e){function t(r,n,i,s,l){var u;return i===void 0&&(i="ObservableValue"),l===void 0&&(l=bu.default),u=e.call(this,i)||this,u.enhancer=void 0,u.name_=void 0,u.equals=void 0,u.hasUnreportedChange_=!1,u.interceptors_=void 0,u.changeListeners_=void 0,u.value_=void 0,u.dehancer=void 0,u.enhancer=n,u.name_=i,u.equals=l,u.value_=n(r,void 0,i),u}YC(t,e);var o=t.prototype;return o.dehanceValue=function(n){return this.dehancer!==void 0?this.dehancer(n):n},o.set=function(n){this.value_,n=this.prepareNewValue_(n),n!==fe.UNCHANGED&&this.setNewValue_(n)},o.prepareNewValue_=function(n){if(Zo(this)){var i=Yo(this,{object:this,type:Gr,newValue:n});if(!i)return fe.UNCHANGED;n=i.newValue}return n=this.enhancer(n,this.value_,this.name_),this.equals(this.value_,n)?fe.UNCHANGED:n},o.setNewValue_=function(n){var i=this.value_;this.value_=n,this.reportChanged(),gr(this)&&mr(this,{type:Gr,object:this,newValue:n,oldValue:i})},o.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},o.intercept_=function(n){return bl(this,n)},o.observe_=function(n,i){return i&&n({observableKind:"value",debugObjectName:this.name_,object:this,type:Gr,newValue:this.value_,oldValue:void 0}),Cl(this,n)},o.raw=function(){return this.value_},o.toJSON=function(){return this.get()},o.toString=function(){return this.name_+"["+this.value_+"]"},o.valueOf=function(){return XC(this.get())},o[Symbol.toPrimitive]=function(){return this.valueOf()},t})(Kn),G2=$n("ObservableValue",Xn),pr=(function(){function e(o){this.dependenciesState_=Ye.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ye.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Eu(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Pu.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,o.get||$e(31),this.derivation=o.get,this.name_=o.name||"ComputedValue",o.set&&(this.setter_=Vi("ComputedValue-setter",o.set)),this.equals_=o.equals||(o.compareStructural||o.struct?bu.structural:bu.default),this.scope_=o.context,this.requiresReaction_=o.requiresReaction,this.keepAlive_=!!o.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){$2(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.get=function(){if(this.isComputing&&$e(32,this.name_,this.derivation),fe.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)sp(this)&&(this.warnAboutUntrackedRead_(),Ko(),this.value_=this.computeValue_(!1),Xo());else if(m0(this),sp(this)){var r=fe.trackingContext;this.keepAlive_&&!r&&(fe.trackingContext=this),this.trackAndCompute()&&U2(this),fe.trackingContext=r}var n=this.value_;if(Tu(n))throw n.cause;return n},t.set=function(r){if(this.setter_){this.isRunningSetter&&$e(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,r)}finally{this.isRunningSetter=!1}}else $e(34,this.name_)},t.trackAndCompute=function(){var r=this.value_,n=this.dependenciesState_===Ye.NOT_TRACKING_,i=this.computeValue_(!0),s=n||Tu(r)||Tu(i)||!this.equals_(r,i);return s&&(this.value_=i),s},t.computeValue_=function(r){this.isComputing=!0;var n=Fu(!1),i;if(r)i=u0(this,this.derivation,this.scope_);else if(fe.disableErrorBoundaries===!0)i=this.derivation.call(this.scope_);else try{i=this.derivation.call(this.scope_)}catch(s){i=new Eu(s)}return Ru(n),this.isComputing=!1,i},t.suspend_=function(){this.keepAlive_||(ap(this),this.value_=void 0)},t.observe_=function(r,n){var i=this,s=!0,l=void 0;return rM(function(){var u=i.get();if(!s||n){var d=Gi();r({observableKind:"computed",debugObjectName:i.name_,type:Gr,object:i,newValue:u,oldValue:l}),vn(d)}s=!1,l=u})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return XC(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},Es(e,[{key:"isComputing",get:function(){return Ao(this.flags_,e.isComputingMask_)},set:function(r){this.flags_=_o(this.flags_,e.isComputingMask_,r)}},{key:"isRunningSetter",get:function(){return Ao(this.flags_,e.isRunningSetterMask_)},set:function(r){this.flags_=_o(this.flags_,e.isRunningSetterMask_,r)}},{key:"isBeingObserved",get:function(){return Ao(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=_o(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return Ao(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=_o(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return Ao(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=_o(this.flags_,e.diffValueMask_,r===1)}}])})();pr.isComputingMask_=1,pr.isRunningSetterMask_=2,pr.isBeingObservedMask_=4,pr.isPendingUnobservationMask_=8,pr.diffValueMask_=16;var fl=$n("ComputedValue",pr),Ye;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(Ye||(Ye={}));var Pu;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(Pu||(Pu={}));var Eu=function(t){this.cause=void 0,this.cause=t};function Tu(e){return e instanceof Eu}function sp(e){switch(e.dependenciesState_){case Ye.UP_TO_DATE_:return!1;case Ye.NOT_TRACKING_:case Ye.STALE_:return!0;case Ye.POSSIBLY_STALE_:{for(var t=lp(!0),o=Gi(),r=e.observing_,n=r.length,i=0;i<n;i++){var s=r[i];if(fl(s)){if(fe.disableErrorBoundaries)s.get();else try{s.get()}catch{return vn(o),pl(t),!0}if(e.dependenciesState_===Ye.STALE_)return vn(o),pl(t),!0}}return h0(e),vn(o),pl(t),!1}}}function kee(e){}function u0(e,t,o){var r=lp(!0);h0(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++fe.runId;var n=fe.trackingDerivation;fe.trackingDerivation=e,fe.inBatch++;var i;if(fe.disableErrorBoundaries===!0)i=t.call(o);else try{i=t.call(o)}catch(s){i=new Eu(s)}return fe.inBatch--,fe.trackingDerivation=n,j2(e),pl(r),i}function j2(e){for(var t=e.observing_,o=e.observing_=e.newObserving_,r=Ye.UP_TO_DATE_,n=0,i=e.unboundDepsCount_,s=0;s<i;s++){var l=o[s];l.diffValue===0&&(l.diffValue=1,n!==s&&(o[n]=l),n++),l.dependenciesState_>r&&(r=l.dependenciesState_)}for(o.length=n,e.newObserving_=null,i=t.length;i--;){var u=t[i];u.diffValue===0&&p0(u,e),u.diffValue=0}for(;n--;){var d=o[n];d.diffValue===1&&(d.diffValue=0,q2(d,e))}r!==Ye.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function ap(e){var t=e.observing_;e.observing_=[];for(var o=t.length;o--;)p0(t[o],e);e.dependenciesState_=Ye.NOT_TRACKING_}function d0(e){var t=Gi();try{return e()}finally{vn(t)}}function Gi(){var e=fe.trackingDerivation;return fe.trackingDerivation=null,e}function vn(e){fe.trackingDerivation=e}function lp(e){var t=fe.allowStateReads;return fe.allowStateReads=e,t}function pl(e){fe.allowStateReads=e}function h0(e){if(e.dependenciesState_!==Ye.UP_TO_DATE_){e.dependenciesState_=Ye.UP_TO_DATE_;for(var t=e.observing_,o=t.length;o--;)t[o].lowestObserverState_=Ye.UP_TO_DATE_}}var Du=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Mu=!0,f0=!1,fe=(function(){var e=gu();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Mu=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Du().version&&(Mu=!1),Mu?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Du):(setTimeout(function(){f0||$e(35)},1),new Du)})();function W2(){if((fe.pendingReactions.length||fe.inBatch||fe.isRunningReactions)&&$e(36),f0=!0,Mu){var e=gu();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),fe=new Du}}function q2(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function p0(e,t){e.observers_.delete(t),e.observers_.size===0&&g0(e)}function g0(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,fe.pendingUnobservations.push(e))}function Ko(){fe.inBatch++}function Xo(){if(--fe.inBatch===0){b0();for(var e=fe.pendingUnobservations,t=0;t<e.length;t++){var o=e[t];o.isPendingUnobservation=!1,o.observers_.size===0&&(o.isBeingObserved&&(o.isBeingObserved=!1,o.onBUO()),o instanceof pr&&o.suspend_())}fe.pendingUnobservations=[]}}function m0(e){var t=fe.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&fe.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&fe.inBatch>0&&g0(e),!1)}function v0(e){e.lowestObserverState_!==Ye.STALE_&&(e.lowestObserverState_=Ye.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===Ye.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=Ye.STALE_}))}function U2(e){e.lowestObserverState_!==Ye.STALE_&&(e.lowestObserverState_=Ye.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===Ye.POSSIBLY_STALE_?t.dependenciesState_=Ye.STALE_:t.dependenciesState_===Ye.UP_TO_DATE_&&(e.lowestObserverState_=Ye.UP_TO_DATE_)}))}function $2(e){e.lowestObserverState_===Ye.UP_TO_DATE_&&(e.lowestObserverState_=Ye.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===Ye.UP_TO_DATE_&&(t.dependenciesState_=Ye.POSSIBLY_STALE_,t.onBecomeStale_())}))}var Vr=(function(){function e(o,r,n,i){o===void 0&&(o="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Ye.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Pu.NONE,this.name_=o,this.onInvalidate_=r,this.errorHandler_=n,this.requiresObservable_=i}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,fe.pendingReactions.push(this),b0())},t.runReaction_=function(){if(!this.isDisposed){Ko(),this.isScheduled=!1;var r=fe.trackingContext;if(fe.trackingContext=this,sp(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(n){this.reportExceptionInDerivation_(n)}}fe.trackingContext=r,Xo()}},t.track=function(r){if(!this.isDisposed){Ko(),this.isRunning=!0;var n=fe.trackingContext;fe.trackingContext=this;var i=u0(this,r,void 0);fe.trackingContext=n,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&ap(this),Tu(i)&&this.reportExceptionInDerivation_(i.cause),Xo()}},t.reportExceptionInDerivation_=function(r){var n=this;if(this.errorHandler_){this.errorHandler_(r,this);return}if(fe.disableErrorBoundaries)throw r;var i="[mobx] uncaught error in '"+this+"'";fe.suppressReactionErrors||console.error(i,r),fe.globalReactionErrorHandlers.forEach(function(s){return s(r,n)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(Ko(),ap(this),Xo()))},t.getDisposer_=function(r){var n=this,i=function s(){n.dispose(),r==null||r.removeEventListener==null||r.removeEventListener("abort",s)};return r==null||r.addEventListener==null||r.addEventListener("abort",i),i[_e]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(i[Symbol.dispose]=i),i},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(r){},Es(e,[{key:"isDisposed",get:function(){return Ao(this.flags_,e.isDisposedMask_)},set:function(r){this.flags_=_o(this.flags_,e.isDisposedMask_,r)}},{key:"isScheduled",get:function(){return Ao(this.flags_,e.isScheduledMask_)},set:function(r){this.flags_=_o(this.flags_,e.isScheduledMask_,r)}},{key:"isTrackPending",get:function(){return Ao(this.flags_,e.isTrackPendingMask_)},set:function(r){this.flags_=_o(this.flags_,e.isTrackPendingMask_,r)}},{key:"isRunning",get:function(){return Ao(this.flags_,e.isRunningMask_)},set:function(r){this.flags_=_o(this.flags_,e.isRunningMask_,r)}},{key:"diffValue",get:function(){return Ao(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=_o(this.flags_,e.diffValueMask_,r===1)}}])})();Vr.isDisposedMask_=1,Vr.isScheduledMask_=2,Vr.isTrackPendingMask_=4,Vr.isRunningMask_=8,Vr.diffValueMask_=16;var K2=100,cp=function(t){return t()};function b0(){fe.inBatch>0||fe.isRunningReactions||cp(X2)}function X2(){fe.isRunningReactions=!0;for(var e=fe.pendingReactions,t=0;e.length>0;){++t===K2&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var o=e.splice(0),r=0,n=o.length;r<n;r++)o[r].runReaction_()}fe.isRunningReactions=!1}var Au=$n("Reaction",Vr);function Z2(e){var t=cp;cp=function(r){return e(function(){return t(r)})}}function gl(){return!1}function Fee(e){}function Ree(e){}function Pee(e){}function Y2(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var C0="action",Q2="action.bound",w0="autoAction",J2="autoAction.bound",eM="<unnamed action>",up=hl(C0),tM=hl(Q2,{bound:!0}),dp=hl(w0,{autoAction:!0}),oM=hl(J2,{autoAction:!0,bound:!0});function y0(e){var t=function(r,n){if(fr(r))return Vi(r.name||eM,r,e);if(fr(n))return Vi(r,n,e);if(dl(n))return(e?dp:up).decorate_20223_(r,n);if(Ni(n))return ul(r,n,e?dp:up);if(Ni(r))return Hr(hl(e?w0:C0,{name:r,autoAction:e}))};return t}var Ds=y0(!1);Object.assign(Ds,up);var ml=y0(!0);Object.assign(ml,dp),Ds.bound=Hr(tM),ml.bound=Hr(oM);function Ms(e){return fr(e)&&e.isMobxAction===!0}function rM(e,t){var o,r,n,i;t===void 0&&(t=jC);var s=(o=(r=t)==null?void 0:r.name)!=null?o:"Autorun",l=!t.scheduler&&!t.delay,u;if(l)u=new Vr(s,function(){this.track(p)},t.onError,t.requiresObservable);else{var d=iM(t),h=!1;u=new Vr(s,function(){h||(h=!0,d(function(){h=!1,u.isDisposed||u.track(p)}))},t.onError,t.requiresObservable)}function p(){e(u)}return(n=t)!=null&&(n=n.signal)!=null&&n.aborted||u.schedule_(),u.getDisposer_((i=t)==null?void 0:i.signal)}var nM=function(t){return t()};function iM(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:nM}var sM="onBO",aM="onBUO";function lM(e,t,o){return x0(sM,e,t,o)}function S0(e,t,o){return x0(aM,e,t,o)}function x0(e,t,o,r){var n=Nu(t),i=fr(r)?r:o,s=e+"L";return n[s]?n[s].add(i):n[s]=new Set([i]),function(){var l=n[s];l&&(l.delete(i),l.size===0&&delete n[s])}}var cM="never",_u="always",uM="observed";function dM(e){e.isolateGlobalState===!0&&W2();var t=e.useProxies,o=e.enforceActions;if(t!==void 0&&(fe.useProxies=t===_u?!0:t===cM?!1:typeof Proxy<"u"),t==="ifavailable"&&(fe.verifyProxies=!0),o!==void 0){var r=o===_u?_u:o===uM;fe.enforceActions=r,fe.allowStateChanges=!(r===!0||r===_u)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(n){n in e&&(fe[n]=!!e[n])}),fe.allowStateReads=!fe.observableRequiresReaction,e.reactionScheduler&&Z2(e.reactionScheduler)}function k0(e,t,o,r){var n=qD(t);return Qn(function(){var i=ji(e,r)[_e];Ps(n).forEach(function(s){i.extend_(s,n[s],o&&s in o?o[s]:!0)})}),e}function hM(e,t){return F0(Nu(e,t))}function F0(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=fM(e.observing_).map(F0)),t}function fM(e){return Array.from(new Set(e))}var pM=0;function R0(){this.message="FLOW_CANCELLED"}R0.prototype=Object.create(Error.prototype);var hp=e0("flow"),gM=e0("flow.bound",{bound:!0}),As=Object.assign(function(t,o){if(dl(o))return hp.decorate_20223_(t,o);if(Ni(o))return ul(t,o,hp);var r=t,n=r.name||"<unnamed flow>",i=function(){var l=this,u=arguments,d=++pM,h=Ds(n+" - runid: "+d+" - init",r).apply(l,u),p,g=void 0,v=new Promise(function(b,C){var S=0;p=C;function k(P){g=void 0;var T;try{T=Ds(n+" - runid: "+d+" - yield "+S++,h.next).call(h,P)}catch(D){return C(D)}R(T)}function F(P){g=void 0;var T;try{T=Ds(n+" - runid: "+d+" - yield "+S++,h.throw).call(h,P)}catch(D){return C(D)}R(T)}function R(P){if(fr(P?.then)){P.then(R,C);return}return P.done?b(P.value):(g=Promise.resolve(P.value),g.then(k,F))}k(void 0)});return v.cancel=Ds(n+" - runid: "+d+" - cancel",function(){try{g&&P0(g);var b=h.return(void 0),C=Promise.resolve(b.value);C.then(Fs,Fs),P0(C),p(new R0)}catch(S){p(S)}}),v};return i.isMobXFlow=!0,i},hp);As.bound=Hr(gM);function P0(e){fr(e.cancel)&&e.cancel()}function vl(e){return e?.isMobXFlow===!0}function mM(e,t){return e?yl(e)||!!e[_e]||op(e)||Au(e)||fl(e):!1}function fp(e){return mM(e)}function vM(e){if(yl(e))return e[_e].ownKeys_();$e(38)}function Iu(e,t,o){return e.set(t,o),o}function _s(e,t){if(e==null||typeof e!="object"||e instanceof Date||!fp(e))return e;if(G2(e)||fl(e))return _s(e.get(),t);if(t.has(e))return t.get(e);if(wl(e)){var o=Iu(t,e,new Array(e.length));return e.forEach(function(s,l){o[l]=_s(s,t)}),o}if(br(e)){var r=Iu(t,e,new Set);return e.forEach(function(s){r.add(_s(s,t))}),r}if(Yn(e)){var n=Iu(t,e,new Map);return e.forEach(function(s,l){n.set(l,_s(s,t))}),n}else{var i=Iu(t,e,{});return vM(e).forEach(function(s){ll.propertyIsEnumerable.call(e,s)&&(i[s]=_s(e[s],t))}),i}}function E0(e,t){return _s(e,new Map)}function bn(e,t){t===void 0&&(t=void 0),Ko();try{return e.apply(t)}finally{Xo()}}function Is(e){return e[_e]}var bM={has:function(t,o){return Is(t).has_(o)},get:function(t,o){return Is(t).get_(o)},set:function(t,o,r){var n;return Ni(o)?(n=Is(t).set_(o,r,!0))!=null?n:!0:!1},deleteProperty:function(t,o){var r;return Ni(o)?(r=Is(t).delete_(o,!0))!=null?r:!0:!1},defineProperty:function(t,o,r){var n;return(n=Is(t).defineProperty_(o,r))!=null?n:!0},ownKeys:function(t){return Is(t).ownKeys_()},preventExtensions:function(t){$e(13)}};function CM(e,t){var o,r;return WC(),e=ji(e,t),(r=(o=e[_e]).proxy_)!=null?r:o.proxy_=new Proxy(e,bM)}function Zo(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function bl(e,t){var o=e.interceptors_||(e.interceptors_=[]);return o.push(t),qC(function(){var r=o.indexOf(t);r!==-1&&o.splice(r,1)})}function Yo(e,t){var o=Gi();try{for(var r=[].concat(e.interceptors_||[]),n=0,i=r.length;n<i&&(t=r[n](t),t&&!t.type&&$e(14),!!t);n++);return t}finally{vn(o)}}function gr(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function Cl(e,t){var o=e.changeListeners_||(e.changeListeners_=[]);return o.push(t),qC(function(){var r=o.indexOf(t);r!==-1&&o.splice(r,1)})}function mr(e,t){var o=Gi(),r=e.changeListeners_;if(r){r=r.slice();for(var n=0,i=r.length;n<i;n++)r[n](t);vn(o)}}function wM(e,t,o){return Qn(function(){var r,n=ji(e,o)[_e];(r=t)!=null||(t=ZD(e)),Ps(t).forEach(function(i){return n.make_(i,t[i])})}),e}var pp=Symbol("mobx-keys");function Bu(e,t,o){return pn(e)?k0(e,e,t,o):(Qn(function(){var r=ji(e,o)[_e];if(!e[pp]){var n=Object.getPrototypeOf(e),i=new Set([].concat(Ps(e),Ps(n)));i.delete("constructor"),i.delete(_e),cl(n,pp,i)}e[pp].forEach(function(s){return r.make_(s,t&&s in t?t[s]:!0)})}),e)}var T0="splice",Gr="update",yM=1e4,SM={get:function(t,o){var r=t[_e];return o===_e?r:o==="length"?r.getArrayLength_():typeof o=="string"&&!isNaN(o)?r.get_(parseInt(o)):mn(Ou,o)?Ou[o]:t[o]},set:function(t,o,r){var n=t[_e];return o==="length"&&n.setArrayLength_(r),typeof o=="symbol"||isNaN(o)?t[o]=r:n.set_(parseInt(o),r),!0},preventExtensions:function(){$e(15)}},gp=(function(){function e(o,r,n,i){o===void 0&&(o="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=i,this.atom_=new Kn(o),this.enhancer_=function(s,l){return r(s,l,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.dehanceValues_=function(r){return this.dehancer!==void 0&&r.length>0?r.map(this.dehancer):r},t.intercept_=function(r){return bl(this,r)},t.observe_=function(r,n){return n===void 0&&(n=!1),n&&r({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Cl(this,r)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(r){(typeof r!="number"||isNaN(r)||r<0)&&$e("Out of range: "+r);var n=this.values_.length;if(r!==n)if(r>n){for(var i=new Array(r-n),s=0;s<r-n;s++)i[s]=void 0;this.spliceWithArray_(n,0,i)}else this.spliceWithArray_(r,n-r)},t.updateArrayLength_=function(r,n){r!==this.lastKnownLength_&&$e(16),this.lastKnownLength_+=n,this.legacyMode_&&n>0&&G0(r+n+1)},t.spliceWithArray_=function(r,n,i){var s=this;this.atom_;var l=this.values_.length;if(r===void 0?r=0:r>l?r=l:r<0&&(r=Math.max(0,l+r)),arguments.length===1?n=l-r:n==null?n=0:n=Math.max(0,Math.min(n,l-r)),i===void 0&&(i=ep),Zo(this)){var u=Yo(this,{object:this.proxy_,type:T0,index:r,removedCount:n,added:i});if(!u)return ep;n=u.removedCount,i=u.added}if(i=i.length===0?i:i.map(function(p){return s.enhancer_(p,void 0)}),this.legacyMode_){var d=i.length-n;this.updateArrayLength_(l,d)}var h=this.spliceItemsIntoValues_(r,n,i);return(n!==0||i.length!==0)&&this.notifyArraySplice_(r,i,h),this.dehanceValues_(h)},t.spliceItemsIntoValues_=function(r,n,i){if(i.length<yM){var s;return(s=this.values_).splice.apply(s,[r,n].concat(i))}else{var l=this.values_.slice(r,r+n),u=this.values_.slice(r+n);this.values_.length+=i.length-n;for(var d=0;d<i.length;d++)this.values_[r+d]=i[d];for(var h=0;h<u.length;h++)this.values_[r+i.length+h]=u[h];return l}},t.notifyArrayChildUpdate_=function(r,n,i){var s=!this.owned_&&gl(),l=gr(this),u=l||s?{observableKind:"array",object:this.proxy_,type:Gr,debugObjectName:this.atom_.name_,index:r,newValue:n,oldValue:i}:null;this.atom_.reportChanged(),l&&mr(this,u)},t.notifyArraySplice_=function(r,n,i){var s=!this.owned_&&gl(),l=gr(this),u=l||s?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:T0,index:r,removed:i,added:n,removedCount:i.length,addedCount:n.length}:null;this.atom_.reportChanged(),l&&mr(this,u)},t.get_=function(r){if(this.legacyMode_&&r>=this.values_.length){console.warn("[mobx] Out of bounds read: "+r);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[r])},t.set_=function(r,n){var i=this.values_;if(this.legacyMode_&&r>i.length&&$e(17,r,i.length),r<i.length){this.atom_;var s=i[r];if(Zo(this)){var l=Yo(this,{type:Gr,object:this.proxy_,index:r,newValue:n});if(!l)return;n=l.newValue}n=this.enhancer_(n,s);var u=n!==s;u&&(i[r]=n,this.notifyArrayChildUpdate_(r,n,s))}else{for(var d=new Array(r+1-i.length),h=0;h<d.length-1;h++)d[h]=void 0;d[d.length-1]=n,this.spliceWithArray_(i.length,0,d)}},e})();function xM(e,t,o,r){return o===void 0&&(o="ObservableArray"),r===void 0&&(r=!1),WC(),Qn(function(){var n=new gp(o,t,r,!1);$C(n.values_,_e,n);var i=new Proxy(n.values_,SM);return n.proxy_=i,e&&e.length&&n.spliceWithArray_(0,0,e),i})}var Ou={clear:function(){return this.splice(0)},replace:function(t){var o=this[_e];return o.spliceWithArray_(0,o.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,o){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];var s=this[_e];switch(arguments.length){case 0:return[];case 1:return s.spliceWithArray_(t);case 2:return s.spliceWithArray_(t,o)}return s.spliceWithArray_(t,o,n)},spliceWithArray:function(t,o,r){return this[_e].spliceWithArray_(t,o,r)},push:function(){for(var t=this[_e],o=arguments.length,r=new Array(o),n=0;n<o;n++)r[n]=arguments[n];return t.spliceWithArray_(t.values_.length,0,r),t.values_.length},pop:function(){return this.splice(Math.max(this[_e].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[_e],o=arguments.length,r=new Array(o),n=0;n<o;n++)r[n]=arguments[n];return t.spliceWithArray_(0,0,r),t.values_.length},reverse:function(){return fe.trackingDerivation&&$e(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){fe.trackingDerivation&&$e(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var o=this[_e],r=o.dehanceValues_(o.values_).indexOf(t);return r>-1?(this.splice(r,1),!0):!1}};ct("at",Io),ct("concat",Io),ct("flat",Io),ct("includes",Io),ct("indexOf",Io),ct("join",Io),ct("lastIndexOf",Io),ct("slice",Io),ct("toString",Io),ct("toLocaleString",Io),ct("toSorted",Io),ct("toSpliced",Io),ct("with",Io),ct("every",vr),ct("filter",vr),ct("find",vr),ct("findIndex",vr),ct("findLast",vr),ct("findLastIndex",vr),ct("flatMap",vr),ct("forEach",vr),ct("map",vr),ct("some",vr),ct("toReversed",vr),ct("reduce",D0),ct("reduceRight",D0);function ct(e,t){typeof Array.prototype[e]=="function"&&(Ou[e]=t(e))}function Io(e){return function(){var t=this[_e];t.atom_.reportObserved();var o=t.dehanceValues_(t.values_);return o[e].apply(o,arguments)}}function vr(e){return function(t,o){var r=this,n=this[_e];n.atom_.reportObserved();var i=n.dehanceValues_(n.values_);return i[e](function(s,l){return t.call(o,s,l,r)})}}function D0(e){return function(){var t=this,o=this[_e];o.atom_.reportObserved();var r=o.dehanceValues_(o.values_),n=arguments[0];return arguments[0]=function(i,s,l){return n(i,s,l,t)},r[e].apply(r,arguments)}}var kM=$n("ObservableArrayAdministration",gp);function wl(e){return vu(e)&&kM(e[_e])}var FM={},Zn="add",Lu="delete",M0=(function(){function e(o,r,n){var i=this;r===void 0&&(r=Hi),n===void 0&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[_e]=FM,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=r,this.name_=n,fr(Map)||$e(18),Qn(function(){i.keysAtom_=QC("ObservableMap.keys()"),i.data_=new Map,i.hasMap_=new Map,o&&i.merge(o)})}var t=e.prototype;return t.has_=function(r){return this.data_.has(r)},t.has=function(r){var n=this;if(!fe.trackingDerivation)return this.has_(r);var i=this.hasMap_.get(r);if(!i){var s=i=new Xn(this.has_(r),Cu,"ObservableMap.key?",!1);this.hasMap_.set(r,s),S0(s,function(){return n.hasMap_.delete(r)})}return i.get()},t.set=function(r,n){var i=this.has_(r);if(Zo(this)){var s=Yo(this,{type:i?Gr:Zn,object:this,newValue:n,name:r});if(!s)return this;n=s.newValue}return i?this.updateValue_(r,n):this.addValue_(r,n),this},t.delete=function(r){var n=this;if(this.keysAtom_,Zo(this)){var i=Yo(this,{type:Lu,object:this,name:r});if(!i)return!1}if(this.has_(r)){var s=gl(),l=gr(this),u=l||s?{observableKind:"map",debugObjectName:this.name_,type:Lu,object:this,oldValue:this.data_.get(r).value_,name:r}:null;return bn(function(){var d;n.keysAtom_.reportChanged(),(d=n.hasMap_.get(r))==null||d.setNewValue_(!1);var h=n.data_.get(r);h.setNewValue_(void 0),n.data_.delete(r)}),l&&mr(this,u),!0}return!1},t.updateValue_=function(r,n){var i=this.data_.get(r);if(n=i.prepareNewValue_(n),n!==fe.UNCHANGED){var s=gl(),l=gr(this),u=l||s?{observableKind:"map",debugObjectName:this.name_,type:Gr,object:this,oldValue:i.value_,name:r,newValue:n}:null;i.setNewValue_(n),l&&mr(this,u)}},t.addValue_=function(r,n){var i=this;this.keysAtom_,bn(function(){var d,h=new Xn(n,i.enhancer_,"ObservableMap.key",!1);i.data_.set(r,h),n=h.value_,(d=i.hasMap_.get(r))==null||d.setNewValue_(!0),i.keysAtom_.reportChanged()});var s=gl(),l=gr(this),u=l||s?{observableKind:"map",debugObjectName:this.name_,type:Zn,object:this,name:r,newValue:n}:null;l&&mr(this,u)},t.get=function(r){return this.has(r)?this.dehanceValue_(this.data_.get(r).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var r=this,n=this.keys();return A0({next:function(){var s=n.next(),l=s.done,u=s.value;return{done:l,value:l?void 0:r.get(u)}}})},t.entries=function(){var r=this,n=this.keys();return A0({next:function(){var s=n.next(),l=s.done,u=s.value;return{done:l,value:l?void 0:[u,r.get(u)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(r,n){for(var i=Ts(this),s;!(s=i()).done;){var l=s.value,u=l[0],d=l[1];r.call(n,d,u,this)}},t.merge=function(r){var n=this;return Yn(r)&&(r=new Map(r)),bn(function(){pn(r)?WD(r).forEach(function(i){return n.set(i,r[i])}):Array.isArray(r)?r.forEach(function(i){var s=i[0],l=i[1];return n.set(s,l)}):Rs(r)?(jD(r)||$e(19,r),r.forEach(function(i,s){return n.set(s,i)})):r!=null&&$e(20,r)}),this},t.clear=function(){var r=this;bn(function(){d0(function(){for(var n=Ts(r.keys()),i;!(i=n()).done;){var s=i.value;r.delete(s)}})})},t.replace=function(r){var n=this;return bn(function(){for(var i=RM(r),s=new Map,l=!1,u=Ts(n.data_.keys()),d;!(d=u()).done;){var h=d.value;if(!i.has(h)){var p=n.delete(h);if(p)l=!0;else{var g=n.data_.get(h);s.set(h,g)}}}for(var v=Ts(i.entries()),b;!(b=v()).done;){var C=b.value,S=C[0],k=C[1],F=n.data_.has(S);if(n.set(S,k),n.data_.has(S)){var R=n.data_.get(S);s.set(S,R),F||(l=!0)}}if(!l)if(n.data_.size!==s.size)n.keysAtom_.reportChanged();else for(var P=n.data_.keys(),T=s.keys(),D=P.next(),M=T.next();!D.done;){if(D.value!==M.value){n.keysAtom_.reportChanged();break}D=P.next(),M=T.next()}n.data_=s}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(r,n){return Cl(this,r)},t.intercept_=function(r){return bl(this,r)},Es(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])})(),Yn=$n("ObservableMap",M0);function A0(e){return e[Symbol.toStringTag]="MapIterator",wp(e)}function RM(e){if(Rs(e)||Yn(e))return e;if(Array.isArray(e))return new Map(e);if(pn(e)){var t=new Map;for(var o in e)t.set(o,e[o]);return t}else return $e(21,e)}var PM={},_0=(function(){function e(o,r,n){var i=this;r===void 0&&(r=Hi),n===void 0&&(n="ObservableSet"),this.name_=void 0,this[_e]=PM,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,fr(Set)||$e(22),this.enhancer_=function(s,l){return r(s,l,n)},Qn(function(){i.atom_=QC(i.name_),o&&i.replace(o)})}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.clear=function(){var r=this;bn(function(){d0(function(){for(var n=Ts(r.data_.values()),i;!(i=n()).done;){var s=i.value;r.delete(s)}})})},t.forEach=function(r,n){for(var i=Ts(this),s;!(s=i()).done;){var l=s.value;r.call(n,l,l,this)}},t.add=function(r){var n=this;if(this.atom_,Zo(this)){var i=Yo(this,{type:Zn,object:this,newValue:r});if(!i)return this;r=i.newValue}if(!this.has(r)){bn(function(){n.data_.add(n.enhancer_(r,void 0)),n.atom_.reportChanged()});var s=!1,l=gr(this),u=l||s?{observableKind:"set",debugObjectName:this.name_,type:Zn,object:this,newValue:r}:null;l&&mr(this,u)}return this},t.delete=function(r){var n=this;if(Zo(this)){var i=Yo(this,{type:Lu,object:this,oldValue:r});if(!i)return!1}if(this.has(r)){var s=!1,l=gr(this),u=l||s?{observableKind:"set",debugObjectName:this.name_,type:Lu,object:this,oldValue:r}:null;return bn(function(){n.atom_.reportChanged(),n.data_.delete(r)}),l&&mr(this,u),!0}return!1},t.has=function(r){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(r))},t.entries=function(){var r=this.values();return I0({next:function(){var i=r.next(),s=i.value,l=i.done;return l?{value:void 0,done:l}:{value:[s,s],done:l}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var r=this,n=this.data_.values();return I0({next:function(){var s=n.next(),l=s.value,u=s.done;return u?{value:void 0,done:u}:{value:r.dehanceValue_(l),done:u}}})},t.intersection=function(r){if(gn(r)&&!br(r))return r.intersection(this);var n=new Set(this);return n.intersection(r)},t.union=function(r){if(gn(r)&&!br(r))return r.union(this);var n=new Set(this);return n.union(r)},t.difference=function(r){return new Set(this).difference(r)},t.symmetricDifference=function(r){if(gn(r)&&!br(r))return r.symmetricDifference(this);var n=new Set(this);return n.symmetricDifference(r)},t.isSubsetOf=function(r){return new Set(this).isSubsetOf(r)},t.isSupersetOf=function(r){return new Set(this).isSupersetOf(r)},t.isDisjointFrom=function(r){if(gn(r)&&!br(r))return r.isDisjointFrom(this);var n=new Set(this);return n.isDisjointFrom(r)},t.replace=function(r){var n=this;return br(r)&&(r=new Set(r)),bn(function(){Array.isArray(r)?(n.clear(),r.forEach(function(i){return n.add(i)})):gn(r)?(n.clear(),r.forEach(function(i){return n.add(i)})):r!=null&&$e("Cannot initialize set from "+r)}),this},t.observe_=function(r,n){return Cl(this,r)},t.intercept_=function(r){return bl(this,r)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},Es(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])})(),br=$n("ObservableSet",_0);function I0(e){return e[Symbol.toStringTag]="SetIterator",wp(e)}var B0=Object.create(null),O0="remove",L0=(function(){function e(o,r,n,i){r===void 0&&(r=new Map),i===void 0&&(i=w2),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=o,this.values_=r,this.name_=n,this.defaultAnnotation_=i,this.keysAtom_=new Kn("ObservableObject.keys"),this.isPlainObject_=pn(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(r){return this.values_.get(r).get()},t.setObservablePropValue_=function(r,n){var i=this.values_.get(r);if(i instanceof pr)return i.set(n),!0;if(Zo(this)){var s=Yo(this,{type:Gr,object:this.proxy_||this.target_,name:r,newValue:n});if(!s)return null;n=s.newValue}if(n=i.prepareNewValue_(n),n!==fe.UNCHANGED){var l=gr(this),u=!1,d=l||u?{type:Gr,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:i.value_,name:r,newValue:n}:null;i.setNewValue_(n),l&&mr(this,d)}return!0},t.get_=function(r){return fe.trackingDerivation&&!mn(this.target_,r)&&this.has_(r),this.target_[r]},t.set_=function(r,n,i){return i===void 0&&(i=!1),mn(this.target_,r)?this.values_.has(r)?this.setObservablePropValue_(r,n):i?Reflect.set(this.target_,r,n):(this.target_[r]=n,!0):this.extend_(r,{value:n,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,i)},t.has_=function(r){if(!fe.trackingDerivation)return r in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var n=this.pendingKeys_.get(r);return n||(n=new Xn(r in this.target_,Cu,"ObservableObject.key?",!1),this.pendingKeys_.set(r,n)),n.get()},t.make_=function(r,n){if(n===!0&&(n=this.defaultAnnotation_),n!==!1){if(!(r in this.target_)){var i;if((i=this.target_[zr])!=null&&i[r])return;$e(1,n.annotationType_,this.name_+"."+r.toString())}for(var s=this.target_;s&&s!==ll;){var l=mu(s,r);if(l){var u=n.make_(this,r,l,s);if(u===0)return;if(u===1)break}s=Object.getPrototypeOf(s)}z0(this,n,r)}},t.extend_=function(r,n,i,s){if(s===void 0&&(s=!1),i===!0&&(i=this.defaultAnnotation_),i===!1)return this.defineProperty_(r,n,s);var l=i.extend_(this,r,n,s);return l&&z0(this,i,r),l},t.defineProperty_=function(r,n,i){i===void 0&&(i=!1),this.keysAtom_;try{Ko();var s=this.delete_(r);if(!s)return s;if(Zo(this)){var l=Yo(this,{object:this.proxy_||this.target_,name:r,type:Zn,newValue:n.value});if(!l)return null;var u=l.newValue;n.value!==u&&(n=zi({},n,{value:u}))}if(i){if(!Reflect.defineProperty(this.target_,r,n))return!1}else Nr(this.target_,r,n);this.notifyPropertyAddition_(r,n.value)}finally{Xo()}return!0},t.defineObservableProperty_=function(r,n,i,s){s===void 0&&(s=!1),this.keysAtom_;try{Ko();var l=this.delete_(r);if(!l)return l;if(Zo(this)){var u=Yo(this,{object:this.proxy_||this.target_,name:r,type:Zn,newValue:n});if(!u)return null;n=u.newValue}var d=N0(r),h={configurable:fe.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:d.get,set:d.set};if(s){if(!Reflect.defineProperty(this.target_,r,h))return!1}else Nr(this.target_,r,h);var p=new Xn(n,i,"ObservableObject.key",!1);this.values_.set(r,p),this.notifyPropertyAddition_(r,p.value_)}finally{Xo()}return!0},t.defineComputedProperty_=function(r,n,i){i===void 0&&(i=!1),this.keysAtom_;try{Ko();var s=this.delete_(r);if(!s)return s;if(Zo(this)){var l=Yo(this,{object:this.proxy_||this.target_,name:r,type:Zn,newValue:void 0});if(!l)return null}n.name||(n.name="ObservableObject.key"),n.context=this.proxy_||this.target_;var u=N0(r),d={configurable:fe.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:u.get,set:u.set};if(i){if(!Reflect.defineProperty(this.target_,r,d))return!1}else Nr(this.target_,r,d);this.values_.set(r,new pr(n)),this.notifyPropertyAddition_(r,void 0)}finally{Xo()}return!0},t.delete_=function(r,n){if(n===void 0&&(n=!1),this.keysAtom_,!mn(this.target_,r))return!0;if(Zo(this)){var i=Yo(this,{object:this.proxy_||this.target_,name:r,type:O0});if(!i)return null}try{var s;Ko();var l=gr(this),u=!1,d=this.values_.get(r),h=void 0;if(!d&&(l||u)){var p;h=(p=mu(this.target_,r))==null?void 0:p.value}if(n){if(!Reflect.deleteProperty(this.target_,r))return!1}else delete this.target_[r];if(d&&(this.values_.delete(r),d instanceof Xn&&(h=d.value_),v0(d)),this.keysAtom_.reportChanged(),(s=this.pendingKeys_)==null||(s=s.get(r))==null||s.set(r in this.target_),l||u){var g={type:O0,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:h,name:r};l&&mr(this,g)}}finally{Xo()}return!0},t.observe_=function(r,n){return Cl(this,r)},t.intercept_=function(r){return bl(this,r)},t.notifyPropertyAddition_=function(r,n){var i,s=gr(this),l=!1;if(s||l){var u=s||l?{type:Zn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:r,newValue:n}:null;s&&mr(this,u)}(i=this.pendingKeys_)==null||(i=i.get(r))==null||i.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),Ps(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e})();function ji(e,t){var o;if(mn(e,_e))return e;var r=(o=t?.name)!=null?o:"ObservableObject",n=new L0(e,new Map,String(r),M2(t));return cl(e,_e,n),e}var EM=$n("ObservableObjectAdministration",L0);function N0(e){return B0[e]||(B0[e]={get:function(){return this[_e].getObservablePropValue_(e)},set:function(o){return this[_e].setObservablePropValue_(e,o)}})}function yl(e){return vu(e)?EM(e[_e]):!1}function z0(e,t,o){var r;(r=e.target_[zr])==null||delete r[o]}var TM=V0(0),DM=(function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1})(),mp=0,H0=function(){};function MM(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}MM(H0,Array.prototype);var vp=(function(e){function t(r,n,i,s){var l;return i===void 0&&(i="ObservableArray"),s===void 0&&(s=!1),l=e.call(this)||this,Qn(function(){var u=new gp(i,n,s,!0);u.proxy_=l,$C(l,_e,u),r&&r.length&&l.spliceWithArray(0,0,r),DM&&Object.defineProperty(l,"0",TM)}),l}YC(t,e);var o=t.prototype;return o.concat=function(){this[_e].atom_.reportObserved();for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return Array.prototype.concat.apply(this.slice(),i.map(function(l){return wl(l)?l.slice():l}))},o[Symbol.iterator]=function(){var r=this,n=0;return wp({next:function(){return n<r.length?{value:r[n++],done:!1}:{done:!0,value:void 0}}})},Es(t,[{key:"length",get:function(){return this[_e].getArrayLength_()},set:function(n){this[_e].setArrayLength_(n)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])})(H0);Object.entries(Ou).forEach(function(e){var t=e[0],o=e[1];t!=="concat"&&cl(vp.prototype,t,o)});function V0(e){return{enumerable:!1,configurable:!0,get:function(){return this[_e].get_(e)},set:function(o){this[_e].set_(e,o)}}}function AM(e){Nr(vp.prototype,""+e,V0(e))}function G0(e){if(e>mp){for(var t=mp;t<e+100;t++)AM(t);mp=e}}G0(1e3);function _M(e,t,o){return new vp(e,t,o)}function Nu(e,t){if(typeof e=="object"&&e!==null){if(wl(e))return t!==void 0&&$e(23),e[_e].atom_;if(br(e))return e.atom_;if(Yn(e)){if(t===void 0)return e.keysAtom_;var o=e.data_.get(t)||e.hasMap_.get(t);return o||$e(25,t,bp(e)),o}if(yl(e)){if(!t)return $e(26);var r=e[_e].values_.get(t);return r||$e(27,t,bp(e)),r}if(op(e)||fl(e)||Au(e))return e}else if(fr(e)&&Au(e[_e]))return e[_e];$e(28)}function IM(e,t){if(e||$e(29),op(e)||fl(e)||Au(e)||Yn(e)||br(e))return e;if(e[_e])return e[_e];$e(24,e)}function bp(e,t){var o;if(t!==void 0)o=Nu(e,t);else{if(Ms(e))return e.name;yl(e)||Yn(e)||br(e)?o=IM(e):o=Nu(e)}return o.name_}function Qn(e){var t=Gi(),o=Fu(!0);Ko();try{return e()}finally{Xo(),Ru(o),vn(t)}}var j0=ll.toString;function W0(e,t,o){return o===void 0&&(o=-1),Cp(e,t,o)}function Cp(e,t,o,r,n){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var i=typeof e;if(i!=="function"&&i!=="object"&&typeof t!="object")return!1;var s=j0.call(e);if(s!==j0.call(t))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":o>=0&&o++;break}e=q0(e),t=q0(t);var l=s==="[object Array]";if(!l){if(typeof e!="object"||typeof t!="object")return!1;var u=e.constructor,d=t.constructor;if(u!==d&&!(fr(u)&&u instanceof u&&fr(d)&&d instanceof d)&&"constructor"in e&&"constructor"in t)return!1}if(o===0)return!1;o<0&&(o=-1),r=r||[],n=n||[];for(var h=r.length;h--;)if(r[h]===e)return n[h]===t;if(r.push(e),n.push(t),l){if(h=e.length,h!==t.length)return!1;for(;h--;)if(!Cp(e[h],t[h],o-1,r,n))return!1}else{var p=Object.keys(e),g=p.length;if(Object.keys(t).length!==g)return!1;for(var v=0;v<g;v++){var b=p[v];if(!(mn(t,b)&&Cp(e[b],t[b],o-1,r,n)))return!1}}return r.pop(),n.pop(),!0}function q0(e){return wl(e)?e.slice():Rs(e)||Yn(e)||gn(e)||br(e)?Array.from(e.entries()):e}var U0,BM=((U0=gu().Iterator)==null?void 0:U0.prototype)||{};function wp(e){return e[Symbol.iterator]=OM,Object.assign(Object.create(BM),e)}function OM(){return this}if(["Symbol","Map","Set"].forEach(function(e){var t=gu();typeof t[e]>"u"&&$e("MobX requires global '"+e+"' to be available or polyfilled")}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Y2,extras:{getDebugName:bp},$mobx:_e}),!y.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!wM)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var Wi=HC();const LM=Kf(Wi);function NM(e){e()}function zM(e){e||(e=NM),dM({reactionScheduler:e})}function HM(e){return hM(e)}var VM=1e4,GM=1e4,jM=(function(){function e(t){var o=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(r){r===void 0&&(r=VM),clearTimeout(o.sweepTimeout),o.sweepTimeout=void 0;var n=Date.now();o.registrations.forEach(function(i,s){n-i.registeredAt>=r&&(o.finalize(i.value),o.registrations.delete(s))}),o.registrations.size>0&&o.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){o.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,o,r){this.registrations.set(r,{value:o,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,GM))}}),e})(),WM=typeof FinalizationRegistry<"u"?FinalizationRegistry:jM,Sl=new WM(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),yp={exports:{}},Sp={};var $0;function qM(){if($0)return Sp;$0=1;var e=hu();function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var o=typeof Object.is=="function"?Object.is:t,r=e.useState,n=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function l(p,g){var v=g(),b=r({inst:{value:v,getSnapshot:g}}),C=b[0].inst,S=b[1];return i(function(){C.value=v,C.getSnapshot=g,u(C)&&S({inst:C})},[p,v,g]),n(function(){return u(C)&&S({inst:C}),p(function(){u(C)&&S({inst:C})})},[p]),s(v),v}function u(p){var g=p.getSnapshot;p=p.value;try{var v=g();return!o(p,v)}catch{return!0}}function d(p,g){return g()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return Sp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,Sp}var K0;function UM(){return K0||(K0=1,yp.exports=qM()),yp.exports}var $M=UM();function X0(e){e.reaction=new Vr("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function KM(e,t){t===void 0&&(t="observed");var o=re.useRef(null);if(!o.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(l){return Sl.unregister(r),r.onStoreChange=l,r.reaction||(X0(r),r.stateVersion=Symbol()),function(){var u;r.onStoreChange=null,(u=r.reaction)===null||u===void 0||u.dispose(),r.reaction=null}},getSnapshot:function(){return r.stateVersion}};o.current=r}var n=o.current;n.reaction||(X0(n),Sl.register(o,n,n)),re.useDebugValue(n.reaction,HM),$M.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot);var i,s;if(n.reaction.track(function(){try{i=e()}catch(l){s=l}}),s)throw s;return i}var xp,kp,Z0=typeof Symbol=="function"&&Symbol.for,XM=(kp=(xp=Object.getOwnPropertyDescriptor(function(){},"name"))===null||xp===void 0?void 0:xp.configurable)!==null&&kp!==void 0?kp:!1,Y0=Z0?Symbol.for("react.forward_ref"):typeof y.forwardRef=="function"&&y.forwardRef(function(e){return null}).$$typeof,Q0=Z0?Symbol.for("react.memo"):typeof y.memo=="function"&&y.memo(function(e){return null}).$$typeof;function ZM(e,t){var o;if(Q0&&e.$$typeof===Q0)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var r=(o=void 0)!==null&&o!==void 0?o:!1,n=e,i=e.displayName||e.name;if(Y0&&e.$$typeof===Y0&&(r=!0,n=e.render,typeof n!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s=function(l,u){return KM(function(){return n(l,u)},i)};return s.displayName=e.displayName,XM&&Object.defineProperty(s,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(s.contextTypes=e.contextTypes),r&&(s=y.forwardRef(s)),s=y.memo(s),QM(e,s),s}var YM={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function QM(e,t){Object.keys(e).forEach(function(o){YM[o]||Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}var Fp;zM(Wi.unstable_batchedUpdates),Fp=Sl.finalizeAllImmediately;function JM(e,t){if(J0(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;for(var n=0;n<o.length;n++)if(!Object.hasOwnProperty.call(t,o[n])||!J0(e[o[n]],t[o[n]]))return!1;return!0}function J0(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var ew=Symbol("patchMixins"),tw=Symbol("patchedDefinition");function eA(e,t){var o=e[ew]=e[ew]||{},r=o[t]=o[t]||{};return r.locks=r.locks||0,r.methods=r.methods||[],r}function ow(e,t){for(var o=this,r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];t.locks++;try{var s;return e!=null&&(s=e.apply(this,n)),s}finally{t.locks--,t.locks===0&&t.methods.forEach(function(l){l.apply(o,n)})}}function rw(e,t){var o=function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];ow.call.apply(ow,[this,e,t].concat(i))};return o}function tA(e,t,o){var r=eA(e,t);r.methods.indexOf(o)<0&&r.methods.push(o);var n=Object.getOwnPropertyDescriptor(e,t);if(!(n&&n[tw])){var i=e[t],s=nw(e,t,n?n.enumerable:void 0,r,i);Object.defineProperty(e,t,s)}}function nw(e,t,o,r,n){var i,s=rw(n,r);return i={},i[tw]=!0,i.get=function(){return s},i.set=function(u){if(this===e)s=rw(u,r);else{var d=nw(this,t,o,r,u);Object.defineProperty(this,t,d)}},i.configurable=!0,i.enumerable=o,i}var iw=Symbol("ObserverAdministration"),sw=Symbol("isMobXReactObserver");function Rp(e){var t;return(t=e[iw])!=null?t:e[iw]={reaction:null,mounted:!1,reactionInvalidatedBeforeMount:!1,forceUpdate:null,name:Pp(e.constructor),state:void 0,props:void 0,context:void 0}}function oA(e){var t=e.prototype;if(e[sw]){var o=Pp(e);throw new Error("The provided component class ("+o+") has already been declared as an observer component.")}else e[sw]=!0;if(t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==y.PureComponent){if(!t.shouldComponentUpdate)t.shouldComponentUpdate=aw;else if(t.shouldComponentUpdate!==aw)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}var r=t.render;if(typeof r!="function"){var n=Pp(e);throw new Error("[mobx-react] class component ("+n+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}t.render=function(){return Object.defineProperty(this,"render",{configurable:!1,writable:!1,value:rA.call(this,r)}),this.render()};var i=t.componentDidMount;return t.componentDidMount=function(){var s=this,l=Rp(this);return l.mounted=!0,Sl.unregister(this),l.forceUpdate=function(){return s.forceUpdate()},(!l.reaction||l.reactionInvalidatedBeforeMount)&&l.forceUpdate(),i?.apply(this,arguments)},tA(t,"componentWillUnmount",function(){var s,l=Rp(this);(s=l.reaction)==null||s.dispose(),l.reaction=null,l.forceUpdate=null,l.mounted=!1,l.reactionInvalidatedBeforeMount=!1}),e}function Pp(e){return e.displayName||e.name||"<component>"}function rA(e){var t=e.bind(this),o=Rp(this);function r(){o.reaction||(o.reaction=nA(o),o.mounted||Sl.register(this,o,this));var n=void 0,i=void 0;if(o.reaction.track(function(){try{i=V2(!1,t)}catch(s){n=s}}),n)throw n;return i}return r}function nA(e){return new Vr(e.name+".render()",function(){if(!e.mounted){e.reactionInvalidatedBeforeMount=!0;return}try{e.forceUpdate==null||e.forceUpdate()}catch{var t;(t=e.reaction)==null||t.dispose(),e.reaction=null}})}function aw(e,t){return this.state!==t?!0:!JM(this.props,e)}function Cn(e,t){return e.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(y.Component,e)||Object.prototype.isPrototypeOf.call(y.PureComponent,e)?oA(e):ZM(e)}if(re.version.split(".")[0],!y.Component)throw new Error("mobx-react requires React to be available");if(!jt)throw new Error("mobx-react requires mobx to be available");const Ep=typeof window>"u"?global:window,Tp="@griffel/";function iA(e,t){return Ep[Symbol.for(Tp+e)]||(Ep[Symbol.for(Tp+e)]=t),Ep[Symbol.for(Tp+e)]}const Dp=iA("DEFINITION_LOOKUP_TABLE",{}),xl="data-make-styles-bucket",sA="data-priority",Mp="f",Ap=7,_p="___",aA=_p.length+Ap,lA=0,cA=1,uA={all:1,borderColor:1,borderStyle:1,borderWidth:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1},Ip="DO_NOT_USE_DIRECTLY: @griffel/reset-value";function kl(e){for(var t=0,o,r=0,n=e.length;n>=4;++r,n-=4)o=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function dA(e){const t=e.length;if(t===Ap)return e;for(let o=t;o<Ap;o++)e+="0";return e}function lw(e,t,o=[]){return _p+dA(kl(e+t))}function cw(e,t){let o="",r="";for(const n in e){const i=e[n];if(i===0){r+=n+" ";continue}const s=Array.isArray(i),l=t==="rtl"?(s?i[1]:i)+" ":(s?i[0]:i)+" ";o+=l,r+=l}return[o.slice(0,-1),r.slice(0,-1)]}function zu(e,t){const o={};for(const r in e){const[n,i]=cw(e[r],t);if(i===""){o[r]="";continue}const s=lw(i,t),l=s+(n===""?"":" "+n);Dp[s]=[e[r],t],o[r]=l}return o}const uw={};function me(){let e=null,t="",o="";const r=new Array(arguments.length);for(let p=0;p<arguments.length;p++){const g=arguments[p];if(typeof g=="string"&&g!==""){const v=g.indexOf(_p);if(v===-1)t+=g+" ";else{const b=g.substr(v,aA);v>0&&(t+=g.slice(0,v)),o+=b,r[p]=b}}}if(o==="")return t.slice(0,-1);const n=uw[o];if(n!==void 0)return t+n;const i=[];for(let p=0;p<arguments.length;p++){const g=r[p];if(g){const v=Dp[g];v&&(i.push(v[lA]),e=v[cA])}}const s=Object.assign.apply(Object,[{}].concat(i)),[l,u]=cw(s,e),d=lw(u,e,r),h=d+" "+l;return uw[o]=h,Dp[d]=[s,e],t+h}function hA(e){return Array.isArray(e)?e:[e]}function fA(e,t,o,r){const n=[];if(r[xl]=t,r[sA]=String(o),e)for(const s in r)e.setAttribute(s,r[s]);function i(s){return e?.sheet?e.sheet.insertRule(s,e.sheet.cssRules.length):n.push(s)}return{elementAttributes:r,insertRule:i,element:e,bucketName:t,cssRules(){return e?.sheet?Array.from(e.sheet.cssRules).map(s=>s.cssText):n}}}const dw=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"].reduce((e,t,o)=>(e[t]=o,e),{});function pA(e,t,o){return(e==="m"?e+t:e)+o}function gA(e,t,o,r,n={}){var i,s;const l=e==="m",u=(i=n.m)!==null&&i!==void 0?i:"0",d=(s=n.p)!==null&&s!==void 0?s:0,h=pA(e,u,d);if(!r.stylesheets[h]){const p=t&&t.createElement("style"),g=fA(p,e,d,Object.assign({},r.styleElementAttributes,l&&{media:u}));r.stylesheets[h]=g,t?.head&&p&&t.head.insertBefore(p,vA(t,o,e,r,n))}return r.stylesheets[h]}function mA(e,t,o){var r,n;const i=t+((r=o.m)!==null&&r!==void 0?r:""),s=e.getAttribute(xl)+((n=e.media)!==null&&n!==void 0?n:"");return i===s}function vA(e,t,o,r,n={}){var i,s;const l=dw[o],u=(i=n.m)!==null&&i!==void 0?i:"",d=(s=n.p)!==null&&s!==void 0?s:0;let h=C=>l-dw[C.getAttribute(xl)],p=e.head.querySelectorAll(`[${xl}]`);if(o==="m"){const C=e.head.querySelectorAll(`[${xl}="${o}"]`);C.length&&(p=C,h=S=>r.compareMediaQueries(u,S.media))}const g=C=>mA(C,o,n)?d-Number(C.getAttribute("data-priority")):h(C),v=p.length;let b=v-1;for(;b>=0;){const C=p.item(b);if(g(C)>0)return C.nextSibling;b--}return v>0?p.item(0):t?t.nextSibling:null}function hw(e,t){try{e.insertRule(t)}catch{}}let bA=0;const CA=(e,t)=>e<t?-1:e>t?1:0;function wA(e=typeof document>"u"?void 0:document,t={}){const{classNameHashSalt:o,unstable_filterCSSRule:r,insertionPoint:n,styleElementAttributes:i,compareMediaQueries:s=CA}=t,l={classNameHashSalt:o,insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(i),compareMediaQueries:s,id:`d${bA++}`,insertCSSRules(u){for(const d in u){const h=u[d];for(let p=0,g=h.length;p<g;p++){const[v,b]=hA(h[p]),C=gA(d,e,n||null,l,b);l.insertionCache[v]||(l.insertionCache[v]=d,r?r(v)&&hw(C,v):hw(C,v))}}}};return l}const Bp=()=>{const e={};return function(o,r){e[o.id]===void 0&&(o.insertCSSRules(r),e[o.id]=!0)}};function fw(e){return e.reduce(function(t,o){var r=o[0],n=o[1];return t[r]=n,t[n]=r,t},{})}function yA(e){return typeof e=="boolean"}function SA(e){return typeof e=="function"}function Fl(e){return typeof e=="number"}function xA(e){return e===null||typeof e>"u"}function kA(e){return e&&typeof e=="object"}function FA(e){return typeof e=="string"}function Hu(e,t){return e.indexOf(t)!==-1}function RA(e){return parseFloat(e)===0?e:e[0]==="-"?e.slice(1):"-"+e}function Vu(e,t,o,r){return t+RA(o)+r}function PA(e){var t=e.indexOf(".");if(t===-1)e=100-parseFloat(e)+"%";else{var o=e.length-t-2;e=100-parseFloat(e),e=e.toFixed(o)+"%"}return e}function pw(e){return e.replace(/ +/g," ").split(" ").map(function(t){return t.trim()}).filter(Boolean).reduce(function(t,o){var r=t.list,n=t.state,i=(o.match(/\(/g)||[]).length,s=(o.match(/\)/g)||[]).length;return n.parensDepth>0?r[r.length-1]=r[r.length-1]+" "+o:r.push(o),n.parensDepth+=i-s,{list:r,state:n}},{list:[],state:{parensDepth:0}}).list}function gw(e){var t=pw(e);if(t.length<=3||t.length>4)return e;var o=t[0],r=t[1],n=t[2],i=t[3];return[o,i,n,r].join(" ")}function EA(e){return!yA(e)&&!xA(e)}function TA(e){for(var t=[],o=0,r=0,n=!1;r<e.length;)!n&&e[r]===","?(t.push(e.substring(o,r).trim()),r++,o=r):e[r]==="("?(n=!0,r++):(e[r]===")"&&(n=!1),r++);return o!=r&&t.push(e.substring(o,r+1)),t}var ae={padding:function(t){var o=t.value;return Fl(o)?o:gw(o)},textShadow:function(t){var o=t.value,r=TA(o).map(function(n){return n.replace(/(^|\s)(-*)([.|\d]+)/,function(i,s,l,u){if(u==="0")return i;var d=l===""?"-":"";return""+s+d+u})});return r.join(",")},borderColor:function(t){var o=t.value;return gw(o)},borderRadius:function(t){var o=t.value;if(Fl(o))return o;if(Hu(o,"/")){var r=o.split("/"),n=r[0],i=r[1],s=ae.borderRadius({value:n.trim()}),l=ae.borderRadius({value:i.trim()});return s+" / "+l}var u=pw(o);switch(u.length){case 2:return u.reverse().join(" ");case 4:{var d=u[0],h=u[1],p=u[2],g=u[3];return[h,d,g,p].join(" ")}default:return o}},background:function(t){var o=t.value,r=t.valuesToConvert,n=t.isRtl,i=t.bgImgDirectionRegex,s=t.bgPosDirectionRegex;if(Fl(o))return o;var l=o.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return o=o.replace(l,ae.backgroundPosition({value:l,valuesToConvert:r,isRtl:n,bgPosDirectionRegex:s})),ae.backgroundImage({value:o,valuesToConvert:r,bgImgDirectionRegex:i})},backgroundImage:function(t){var o=t.value,r=t.valuesToConvert,n=t.bgImgDirectionRegex;return!Hu(o,"url(")&&!Hu(o,"linear-gradient(")?o:o.replace(n,function(i,s,l){return i.replace(l,r[l])})},backgroundPosition:function(t){var o=t.value,r=t.valuesToConvert,n=t.isRtl,i=t.bgPosDirectionRegex;return o.replace(n?/^((-|\d|\.)+%)/:null,function(s,l){return PA(l)}).replace(i,function(s){return r[s]})},backgroundPositionX:function(t){var o=t.value,r=t.valuesToConvert,n=t.isRtl,i=t.bgPosDirectionRegex;return Fl(o)?o:ae.backgroundPosition({value:o,valuesToConvert:r,isRtl:n,bgPosDirectionRegex:i})},transition:function(t){var o=t.value,r=t.propertiesToConvert;return o.split(/,\s*/g).map(function(n){var i=n.split(" ");return i[0]=r[i[0]]||i[0],i.join(" ")}).join(", ")},transitionProperty:function(t){var o=t.value,r=t.propertiesToConvert;return o.split(/,\s*/g).map(function(n){return r[n]||n}).join(", ")},transform:function(t){var o=t.value,r="[^\\u0020-\\u007e]",n="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",i="((?:-?"+("(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+n+")")+("(?:[_a-z0-9-]|"+r+"|"+n+")")+"*")+")?")+")|(?:inherit|auto))",s=new RegExp("(translateX\\s*\\(\\s*)"+i+"(\\s*\\))","gi"),l=new RegExp("(translate\\s*\\(\\s*)"+i+"((?:\\s*,\\s*"+i+"){0,1}\\s*\\))","gi"),u=new RegExp("(translate3d\\s*\\(\\s*)"+i+"((?:\\s*,\\s*"+i+"){0,2}\\s*\\))","gi"),d=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+i+"(\\s*\\))","gi");return o.replace(s,Vu).replace(l,Vu).replace(u,Vu).replace(d,Vu)}};ae.objectPosition=ae.backgroundPosition,ae.margin=ae.padding,ae.borderWidth=ae.padding,ae.boxShadow=ae.textShadow,ae.webkitBoxShadow=ae.boxShadow,ae.mozBoxShadow=ae.boxShadow,ae.WebkitBoxShadow=ae.boxShadow,ae.MozBoxShadow=ae.boxShadow,ae.borderStyle=ae.borderColor,ae.webkitTransform=ae.transform,ae.mozTransform=ae.transform,ae.WebkitTransform=ae.transform,ae.MozTransform=ae.transform,ae.transformOrigin=ae.backgroundPosition,ae.webkitTransformOrigin=ae.transformOrigin,ae.mozTransformOrigin=ae.transformOrigin,ae.WebkitTransformOrigin=ae.transformOrigin,ae.MozTransformOrigin=ae.transformOrigin,ae.webkitTransition=ae.transition,ae.mozTransition=ae.transition,ae.WebkitTransition=ae.transition,ae.MozTransition=ae.transition,ae.webkitTransitionProperty=ae.transitionProperty,ae.mozTransitionProperty=ae.transitionProperty,ae.WebkitTransitionProperty=ae.transitionProperty,ae.MozTransitionProperty=ae.transitionProperty,ae["text-shadow"]=ae.textShadow,ae["border-color"]=ae.borderColor,ae["border-radius"]=ae.borderRadius,ae["background-image"]=ae.backgroundImage,ae["background-position"]=ae.backgroundPosition,ae["background-position-x"]=ae.backgroundPositionX,ae["object-position"]=ae.objectPosition,ae["border-width"]=ae.padding,ae["box-shadow"]=ae.textShadow,ae["-webkit-box-shadow"]=ae.textShadow,ae["-moz-box-shadow"]=ae.textShadow,ae["border-style"]=ae.borderColor,ae["-webkit-transform"]=ae.transform,ae["-moz-transform"]=ae.transform,ae["transform-origin"]=ae.transformOrigin,ae["-webkit-transform-origin"]=ae.transformOrigin,ae["-moz-transform-origin"]=ae.transformOrigin,ae["-webkit-transition"]=ae.transition,ae["-moz-transition"]=ae.transition,ae["transition-property"]=ae.transitionProperty,ae["-webkit-transition-property"]=ae.transitionProperty,ae["-moz-transition-property"]=ae.transitionProperty;var mw=fw([["paddingLeft","paddingRight"],["marginLeft","marginRight"],["left","right"],["borderLeft","borderRight"],["borderLeftColor","borderRightColor"],["borderLeftStyle","borderRightStyle"],["borderLeftWidth","borderRightWidth"],["borderTopLeftRadius","borderTopRightRadius"],["borderBottomLeftRadius","borderBottomRightRadius"],["padding-left","padding-right"],["margin-left","margin-right"],["border-left","border-right"],["border-left-color","border-right-color"],["border-left-style","border-right-style"],["border-left-width","border-right-width"],["border-top-left-radius","border-top-right-radius"],["border-bottom-left-radius","border-bottom-right-radius"]]),DA=["content"],vw=fw([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),MA=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),AA=new RegExp("(left)|(right)");function bw(e){return Object.keys(e).reduce(function(t,o){var r=e[o];if(FA(r)&&(r=r.trim()),Hu(DA,o))return t[o]=r,t;var n=Op(o,r),i=n.key,s=n.value;return t[i]=s,t},Array.isArray(e)?[]:{})}function Op(e,t){var o=/\/\*\s?@noflip\s?\*\//.test(t),r=o?e:_A(e),n=o?t:IA(r,t);return{key:r,value:n}}function _A(e){return mw[e]||e}function IA(e,t){if(!EA(t))return t;if(kA(t))return bw(t);var o=Fl(t),r=SA(t),n=o||r?t:t.replace(/ !important.*?$/,""),i=!o&&n.length!==t.length,s=ae[e],l;return s?l=s({value:n,valuesToConvert:vw,propertiesToConvert:mw,isRtl:!0,bgImgDirectionRegex:MA,bgPosDirectionRegex:AA}):l=vw[n]||n,i?l+" !important":l}const BA=/[A-Z]/g,OA=/^ms-/,Lp={};function LA(e){return"-"+e.toLowerCase()}function Bs(e){if(Object.prototype.hasOwnProperty.call(Lp,e))return Lp[e];if(e.substr(0,2)==="--")return e;const t=e.replace(BA,LA);return Lp[e]=OA.test(t)?"-"+t:t}function Cw(e){return e.charAt(0)==="&"?e.slice(1):e}var Rl="-moz-",Cr="-webkit-",ww="comm",Gu="rule",Np="decl",NA="@media",zA="@import",HA="@supports",VA="@namespace",GA="@keyframes",yw="@layer",Sw=Math.abs,ju=String.fromCharCode,jA=Object.assign;function WA(e,t){return to(e,0)^45?(((t<<2^to(e,0))<<2^to(e,1))<<2^to(e,2))<<2^to(e,3):0}function xw(e){return e.trim()}function kw(e,t){return(e=t.exec(e))?e[0]:e}function bo(e,t,o){return e.replace(t,o)}function Fw(e,t,o){return e.indexOf(t,o)}function to(e,t){return e.charCodeAt(t)|0}function Os(e,t,o){return e.slice(t,o)}function wr(e){return e.length}function Rw(e){return e.length}function qi(e,t){return t.push(e),e}function qA(e,t){return e.map(t).join("")}var Wu=1,Ls=1,Pw=0,Bo=0,wt=0,Ns="";function qu(e,t,o,r,n,i,s,l){return{value:e,root:t,parent:o,type:r,props:n,children:i,line:Wu,column:Ls,length:s,return:"",siblings:l}}function zp(e,t){return jA(qu("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function UA(){return wt}function $A(){return wt=Bo>0?to(Ns,--Bo):0,Ls--,wt===10&&(Ls=1,Wu--),wt}function Qo(){return wt=Bo<Pw?to(Ns,Bo++):0,Ls++,wt===10&&(Ls=1,Wu++),wt}function Jn(){return to(Ns,Bo)}function Uu(){return Bo}function $u(e,t){return Os(Ns,e,t)}function zs(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ew(e){return Wu=Ls=1,Pw=wr(Ns=e),Bo=0,[]}function Tw(e){return Ns="",e}function Ku(e){return xw($u(Bo-1,Hp(e===91?e+2:e===40?e+1:e)))}function KA(e){return Tw(ZA(Ew(e)))}function XA(e){for(;(wt=Jn())&&wt<33;)Qo();return zs(e)>2||zs(wt)>3?"":" "}function ZA(e){for(;Qo();)switch(zs(wt)){case 0:qi(Dw(Bo-1),e);break;case 2:qi(Ku(wt),e);break;default:qi(ju(wt),e)}return e}function YA(e,t){for(;--t&&Qo()&&!(wt<48||wt>102||wt>57&&wt<65||wt>70&&wt<97););return $u(e,Uu()+(t<6&&Jn()==32&&Qo()==32))}function Hp(e){for(;Qo();)switch(wt){case e:return Bo;case 34:case 39:e!==34&&e!==39&&Hp(wt);break;case 40:e===41&&Hp(e);break;case 92:Qo();break}return Bo}function QA(e,t){for(;Qo()&&e+wt!==57;)if(e+wt===84&&Jn()===47)break;return"/*"+$u(t,Bo-1)+"*"+ju(e===47?e:Qo())}function Dw(e){for(;!zs(Jn());)Qo();return $u(e,Bo)}function Mw(e){return Tw(Xu("",null,null,null,[""],e=Ew(e),0,[0],e))}function Xu(e,t,o,r,n,i,s,l,u){for(var d=0,h=0,p=s,g=0,v=0,b=0,C=1,S=1,k=1,F=0,R="",P=n,T=i,D=r,M=R;S;)switch(b=F,F=Qo()){case 40:if(b!=108&&to(M,p-1)==58){Fw(M+=bo(Ku(F),"&","&\f"),"&\f",Sw(d?l[d-1]:0))!=-1&&(k=-1);break}case 34:case 39:case 91:M+=Ku(F);break;case 9:case 10:case 13:case 32:M+=XA(b);break;case 92:M+=YA(Uu()-1,7);continue;case 47:switch(Jn()){case 42:case 47:qi(JA(QA(Qo(),Uu()),t,o,u),u),(zs(b||1)==5||zs(Jn()||1)==5)&&wr(M)&&Os(M,-1,void 0)!==" "&&(M+=" ");break;default:M+="/"}break;case 123*C:l[d++]=wr(M)*k;case 125*C:case 59:case 0:switch(F){case 0:case 125:S=0;case 59+h:k==-1&&(M=bo(M,/\f/g,"")),v>0&&(wr(M)-p||C===0&&b===47)&&qi(v>32?_w(M+";",r,o,p-1,u):_w(bo(M," ","")+";",r,o,p-2,u),u);break;case 59:M+=";";default:if(qi(D=Aw(M,t,o,d,h,n,l,R,P=[],T=[],p,i),i),F===123)if(h===0)Xu(M,t,D,D,P,i,p,l,T);else{switch(g){case 99:if(to(M,3)===110)break;case 108:if(to(M,2)===97)break;default:h=0;case 100:case 109:case 115:}h?Xu(e,D,D,r&&qi(Aw(e,D,D,0,0,n,l,R,n,P=[],p,T),T),n,T,p,l,r?P:T):Xu(M,D,D,D,[""],T,0,l,T)}}d=h=v=0,C=k=1,R=M="",p=s;break;case 58:p=1+wr(M),v=b;default:if(C<1){if(F==123)--C;else if(F==125&&C++==0&&$A()==125)continue}switch(M+=ju(F),F*C){case 38:k=h>0?1:(M+="\f",-1);break;case 44:l[d++]=(wr(M)-1)*k,k=1;break;case 64:Jn()===45&&(M+=Ku(Qo())),g=Jn(),h=p=wr(R=M+=Dw(Uu())),F++;break;case 45:b===45&&wr(M)==2&&(C=0)}}return i}function Aw(e,t,o,r,n,i,s,l,u,d,h,p){for(var g=n-1,v=n===0?i:[""],b=Rw(v),C=0,S=0,k=0;C<r;++C)for(var F=0,R=Os(e,g+1,g=Sw(S=s[C])),P=e;F<b;++F)(P=xw(S>0?v[F]+" "+R:bo(R,/&\f/g,v[F])))&&(u[k++]=P);return qu(e,t,o,n===0?Gu:l,u,d,h,p)}function JA(e,t,o,r){return qu(e,t,o,ww,ju(UA()),Os(e,2,-2),0,r)}function _w(e,t,o,r,n){return qu(e,t,o,Np,Os(e,0,r),Os(e,r+1,-1),r,n)}function Hs(e,t){for(var o="",r=0;r<e.length;r++)o+=t(e[r],r,e,t)||"";return o}function Iw(e,t,o,r){switch(e.type){case yw:if(e.children.length)break;case zA:case VA:case Np:return e.return=e.return||e.value;case ww:return"";case GA:return e.return=e.value+"{"+Hs(e.children,r)+"}";case Gu:if(!wr(e.value=e.props.join(",")))return""}return wr(o=Hs(e.children,r))?e.return=e.value+"{"+o+"}":""}function Bw(e){var t=Rw(e);return function(o,r,n,i){for(var s="",l=0;l<t;l++)s+=e[l](o,r,n,i)||"";return s}}function Ow(e){return function(t){t.root||(t=t.return)&&e(t)}}const e_=e=>{switch(e.type){case Gu:if(typeof e.props=="string")return;e.props=e.props.map(t=>t.indexOf(":global(")===-1?t:KA(t).reduce((o,r,n,i)=>{if(r==="")return o;if(r===":"&&i[n+1]==="global"){const s=i[n+2].slice(1,-1)+" ";return o.unshift(s),i[n+1]="",i[n+2]="",o}return o.push(r),o},[]).join(""))}};function Lw(e,t,o){switch(WA(e,t)){case 5103:return Cr+"print-"+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return Cr+e+e;case 4215:if(to(e,9)===102||to(e,t+1)===116)return Cr+e+e;break;case 4789:return Rl+e+e;case 5349:case 4246:case 6968:return Cr+e+Rl+e+e;case 6187:if(!kw(e,/grab/))return bo(bo(bo(e,/(zoom-|grab)/,Cr+"$1"),/(image-set)/,Cr+"$1"),e,"")+e;case 5495:case 3959:return bo(e,/(image-set\([^]*)/,Cr+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return bo(e,/(.+)-inline(.+)/,Cr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(wr(e)-1-t>6)switch(to(e,t+1)){case 102:if(to(e,t+3)===108)return bo(e,/(.+:)(.+)-([^]+)/,"$1"+Cr+"$2-$3$1"+Rl+(to(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Fw(e,"stretch")?Lw(bo(e,"stretch","fill-available"),t)+e:e}break}return e}function Nw(e,t,o,r){if(e.length>-1&&!e.return)switch(e.type){case Np:e.return=Lw(e.value,e.length);return;case Gu:if(e.length)return qA(e.props,function(n){switch(kw(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hs([zp(e,{props:[bo(n,/:(read-\w+)/,":"+Rl+"$1")]})],r);case"::placeholder":return Hs([zp(e,{props:[bo(n,/:(plac\w+)/,":"+Cr+"input-$1")]}),zp(e,{props:[bo(n,/:(plac\w+)/,":"+Rl+"$1")]})],r)}return""})}}function t_(e){switch(e.type){case"@container":case NA:case HA:case yw:return!0}return!1}const o_=e=>{t_(e)&&Array.isArray(e.children)&&e.children.sort((t,o)=>t.props[0]>o.props[0]?1:-1)};function r_(e,t){const o=[];return Hs(Mw(e),Bw([e_,o_,Nw,Iw,Ow(r=>o.push(r))])),o}const n_=/,( *[^ &])/g;function i_(e){return"&"+Cw(e.replace(n_,",&$1"))}function zw(e,t,o){let r=t;return o.length>0&&(r=o.reduceRight((n,i)=>`${i_(i)} { ${n} }`,t)),`${e}{${r}}`}function Hw(e,t){const{className:o,selectors:r,property:n,rtlClassName:i,rtlProperty:s,rtlValue:l,value:u}=e,{container:d,layer:h,media:p,supports:g}=t,v=`.${o}`,b=Array.isArray(u)?`${u.map(S=>`${Bs(n)}: ${S}`).join(";")};`:`${Bs(n)}: ${u};`;let C=zw(v,b,r);if(s&&i){const S=`.${i}`,k=Array.isArray(l)?`${l.map(F=>`${Bs(s)}: ${F}`).join(";")};`:`${Bs(s)}: ${l};`;C+=zw(S,k,r)}return p&&(C=`@media ${p} { ${C} }`),h&&(C=`@layer ${h} { ${C} }`),g&&(C=`@supports ${g} { ${C} }`),d&&(C=`@container ${d} { ${C} }`),r_(C)}function s_(e){let t="";for(const o in e){const r=e[o];if(typeof r=="string"||typeof r=="number"){t+=Bs(o)+":"+r+";";continue}if(Array.isArray(r))for(const n of r)t+=Bs(o)+":"+n+";"}return t}function Vw(e){let t="";for(const o in e)t+=`${o}{${s_(e[o])}}`;return t}function Gw(e,t){const o=`@keyframes ${e} {${t}}`,r=[];return Hs(Mw(o),Bw([Iw,Nw,Ow(n=>r.push(n))])),r}const a_={animation:[-1,["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimeline","animationTimingFunction"]],animationRange:[-1,["animationRangeEnd","animationRangeStart"]],background:[-2,["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"]],backgroundPosition:[-1,["backgroundPositionX","backgroundPositionY"]],border:[-2,["borderBottom","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderTop","borderTopColor","borderTopStyle","borderTopWidth"]],borderBottom:[-1,["borderBottomColor","borderBottomStyle","borderBottomWidth"]],borderImage:[-1,["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"]],borderLeft:[-1,["borderLeftColor","borderLeftStyle","borderLeftWidth"]],borderRadius:[-1,["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"]],borderRight:[-1,["borderRightColor","borderRightStyle","borderRightWidth"]],borderTop:[-1,["borderTopColor","borderTopStyle","borderTopWidth"]],caret:[-1,["caretColor","caretShape"]],columnRule:[-1,["columnRuleColor","columnRuleStyle","columnRuleWidth"]],columns:[-1,["columnCount","columnWidth"]],containIntrinsicSize:[-1,["containIntrinsicHeight","containIntrinsicWidth"]],container:[-1,["containerName","containerType"]],flex:[-1,["flexBasis","flexGrow","flexShrink"]],flexFlow:[-1,["flexDirection","flexWrap"]],font:[-1,["fontFamily","fontSize","fontStretch","fontStyle","fontVariant","fontWeight","lineHeight"]],gap:[-1,["columnGap","rowGap"]],grid:[-1,["columnGap","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumnGap","gridRowGap","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","rowGap"]],gridArea:[-1,["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"]],gridColumn:[-1,["gridColumnEnd","gridColumnStart"]],gridRow:[-1,["gridRowEnd","gridRowStart"]],gridTemplate:[-1,["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"]],inset:[-1,["bottom","left","right","top"]],insetBlock:[-1,["insetBlockEnd","insetBlockStart"]],insetInline:[-1,["insetInlineEnd","insetInlineStart"]],listStyle:[-1,["listStyleImage","listStylePosition","listStyleType"]],margin:[-1,["marginBottom","marginLeft","marginRight","marginTop"]],marginBlock:[-1,["marginBlockEnd","marginBlockStart"]],marginInline:[-1,["marginInlineEnd","marginInlineStart"]],mask:[-1,["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPosition","maskRepeat","maskSize"]],maskBorder:[-1,["maskBorderMode","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth"]],offset:[-1,["offsetAnchor","offsetDistance","offsetPath","offsetPosition","offsetRotate"]],outline:[-1,["outlineColor","outlineStyle","outlineWidth"]],overflow:[-1,["overflowX","overflowY"]],overscrollBehavior:[-1,["overscrollBehaviorX","overscrollBehaviorY"]],padding:[-1,["paddingBottom","paddingLeft","paddingRight","paddingTop"]],paddingBlock:[-1,["paddingBlockEnd","paddingBlockStart"]],paddingInline:[-1,["paddingInlineEnd","paddingInlineStart"]],placeContent:[-1,["alignContent","justifyContent"]],placeItems:[-1,["alignItems","justifyItems"]],placeSelf:[-1,["alignSelf","justifySelf"]],scrollMargin:[-1,["scrollMarginBottom","scrollMarginLeft","scrollMarginRight","scrollMarginTop"]],scrollMarginBlock:[-1,["scrollMarginBlockEnd","scrollMarginBlockStart"]],scrollMarginInline:[-1,["scrollMarginInlineEnd","scrollMarginInlineStart"]],scrollPadding:[-1,["scrollPaddingBottom","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop"]],scrollPaddingBlock:[-1,["scrollPaddingBlockEnd","scrollPaddingBlockStart"]],scrollPaddingInline:[-1,["scrollPaddingInlineEnd","scrollPaddingInlineStart"]],scrollTimeline:[-1,["scrollTimelineAxis","scrollTimelineName"]],textDecoration:[-1,["textDecorationColor","textDecorationLine","textDecorationStyle","textDecorationThickness"]],textEmphasis:[-1,["textEmphasisColor","textEmphasisStyle"]],transition:[-1,["transitionBehavior","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"]],viewTimeline:[-1,["viewTimelineAxis","viewTimelineName"]]};function jw(e,t){return e.length===0?t:`${e} and ${t}`}function l_(e){return e.substr(0,6)==="@media"}function c_(e){return e.substr(0,6)==="@layer"}const u_=/^(:|\[|>|&)/;function d_(e){return u_.test(e)}function h_(e){return e.substr(0,9)==="@supports"}function f_(e){return e.substring(0,10)==="@container"}function p_(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}const Ww={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function qw(e,t){if(t.media)return"m";if(t.layer||t.supports)return"t";if(t.container)return"c";if(e.length>0){const o=e[0].trim();if(o.charCodeAt(0)===58)return Ww[o.slice(4,8)]||Ww[o.slice(3,5)]||"d"}return"d"}function Zu(e,t){return e&&t+e}function Uw(e){return Zu(e.container,"c")+Zu(e.media,"m")+Zu(e.layer,"l")+Zu(e.supports,"s")}function Vp(e,t,o){const r=e+Uw(o)+t,n=kl(r),i=n.charCodeAt(0);return i>=48&&i<=57?String.fromCharCode(i+17)+n.slice(1):n}function Yu({property:e,selector:t,salt:o,value:r},n){return Mp+kl(o+t+Uw(n)+e+r.trim())}function g_(e){return e===Ip}function Gp(e){return e.replace(/>\s+/g,">")}function Tee(e,t){}function $w(e){return a_[e]}function Kw(e){var t;return(t=e?.[0])!==null&&t!==void 0?t:0}function jp(e,t,o,r){e[t]=r?[o,r]:o}function Xw(e,t){return t.length>0?[e,Object.fromEntries(t)]:e}function Wp(e,t,o,r,n,i){var s;const l=[];i!==0&&l.push(["p",i]),t==="m"&&n&&l.push(["m",n]),(s=e[t])!==null&&s!==void 0||(e[t]=[]),o&&e[t].push(Xw(o,l)),r&&e[t].push(Xw(r,l))}function wn(e,t="",o=[],r={container:"",layer:"",media:"",supports:""},n={},i={},s){for(const l in e){if(uA.hasOwnProperty(l)){e[l];continue}const u=e[l];if(u!=null){if(g_(u)){const d=Gp(o.join("")),h=Vp(d,l,r);jp(n,h,0,void 0);continue}if(typeof u=="string"||typeof u=="number"){const d=Gp(o.join("")),h=$w(l);if(h){const P=h[1],T=Object.fromEntries(P.map(D=>[D,Ip]));wn(T,t,o,r,n,i)}const p=Vp(d,l,r),g=Yu({value:u.toString(),salt:t,selector:d,property:l},r),v=s&&{key:l,value:s}||Op(l,u),b=v.key!==l||v.value!==u,C=b?Yu({value:v.value.toString(),property:v.key,salt:t,selector:d},r):void 0,S=b?{rtlClassName:C,rtlProperty:v.key,rtlValue:v.value}:void 0,k=qw(o,r),[F,R]=Hw(Object.assign({className:g,selectors:o,property:l,value:u},S),r);jp(n,p,g,C),Wp(i,k,F,R,r.media,Kw(h))}else if(l==="animationName"){const d=Array.isArray(u)?u:[u],h=[],p=[];for(const g of d){const v=Vw(g),b=Vw(bw(g)),C=Mp+kl(v);let S;const k=Gw(C,v);let F=[];v===b?S=C:(S=Mp+kl(b),F=Gw(S,b));for(let R=0;R<k.length;R++)Wp(i,"k",k[R],F[R],r.media,0);h.push(C),p.push(S)}wn({animationName:h.join(", ")},t,o,r,n,i,p.join(", "))}else if(Array.isArray(u)){if(u.length===0)continue;const d=Gp(o.join("")),h=$w(l);if(h){const T=h[1],D=Object.fromEntries(T.map(M=>[M,Ip]));wn(D,t,o,r,n,i)}const p=Vp(d,l,r),g=Yu({value:u.map(T=>(T??"").toString()).join(";"),salt:t,selector:d,property:l},r),v=u.map(T=>Op(l,T));if(!!v.some(T=>T.key!==v[0].key))continue;const C=v[0].key!==l||v.some((T,D)=>T.value!==u[D]),S=C?Yu({value:v.map(T=>{var D;return((D=T?.value)!==null&&D!==void 0?D:"").toString()}).join(";"),salt:t,property:v[0].key,selector:d},r):void 0,k=C?{rtlClassName:S,rtlProperty:v[0].key,rtlValue:v.map(T=>T.value)}:void 0,F=qw(o,r),[R,P]=Hw(Object.assign({className:g,selectors:o,property:l,value:u},k),r);jp(n,p,g,S),Wp(i,F,R,P,r.media,Kw(h))}else if(p_(u)){if(d_(l))wn(u,t,o.concat(Cw(l)),r,n,i);else if(l_(l)){const d=jw(r.media,l.slice(6).trim());wn(u,t,o,Object.assign({},r,{media:d}),n,i)}else if(c_(l)){const d=(r.layer?`${r.layer}.`:"")+l.slice(6).trim();wn(u,t,o,Object.assign({},r,{layer:d}),n,i)}else if(h_(l)){const d=jw(r.supports,l.slice(9).trim());wn(u,t,o,Object.assign({},r,{supports:d}),n,i)}else if(f_(l)){const d=l.slice(10).trim();wn(u,t,o,Object.assign({},r,{container:d}),n,i)}}}}return[n,i]}function m_(e,t=""){const o={},r={};for(const n in e){const i=e[n],[s,l]=wn(i,t);o[n]=s,Object.keys(l).forEach(u=>{r[u]=(r[u]||[]).concat(l[u])})}return[o,r]}function v_(e,t=Bp){const o=t();let r=null,n=null,i=null,s=null;function l(u){const{dir:d,renderer:h}=u;r===null&&([r,n]=m_(e,h.classNameHashSalt));const p=d==="ltr";return p?i===null&&(i=zu(r,d)):s===null&&(s=zu(r,d)),o(h,n),p?i:s}return l}function Zw(e,t,o=Bp){const r=o();let n=null,i=null;function s(l){const{dir:u,renderer:d}=l,h=u==="ltr";return h?n===null&&(n=zu(e,u)):i===null&&(i=zu(e,u)),r(d,t),h?n:i}return s}function b_(e,t,o,r=Bp){const n=r();function i(s){const{dir:l,renderer:u}=s,d=l==="ltr"?e:t||e;return n(u,Array.isArray(o)?{r:o}:o),d}return i}function C_(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const Yw=fu.useInsertionEffect?fu.useInsertionEffect:void 0,qp=()=>{const e={};return function(o,r){if(Yw&&C_()){Yw(()=>{o.insertCSSRules(r)},[o,r]);return}e[o.id]===void 0&&(o.insertCSSRules(r),e[o.id]=!0)}},w_=y.createContext(wA());function Pl(){return y.useContext(w_)}const Qw=y.createContext("ltr"),y_=({children:e,dir:t})=>y.createElement(Qw.Provider,{value:t},e);function Up(){return y.useContext(Qw)}function $p(e){const t=v_(e,qp);return function(){const r=Up(),n=Pl();return t({dir:r,renderer:n})}}function ye(e,t){const o=Zw(e,t,qp);return function(){const n=Up(),i=Pl();return o({dir:n,renderer:i})}}function Ke(e,t,o){const r=b_(e,t,o,qp);return function(){const i=Up(),s=Pl();return r({dir:i,renderer:s})}}function S_(e,t){if(t){const o=Object.keys(t).reduce((r,n)=>`${r}--${n}: ${t[n]}; `,"");return`${e} { ${o} }`}return`${e} {}`}const Qu=Symbol.for("fui.slotRenderFunction"),Vs=Symbol.for("fui.slotElementType"),Jw=Symbol.for("fui.slotClassNameProp");function Xe(e,t){const{defaultProps:o,elementType:r}=t,n=ey(e),i={...o,...n,[Vs]:r,[Jw]:n?.className||o?.className};return n&&typeof n.children=="function"&&(i[Qu]=n.children,i.children=o?.children),i}function qe(e,t){if(!(e===null||e===void 0&&!t.renderByDefault))return Xe(e,t)}function ey(e){return typeof e=="string"||typeof e=="number"||x_(e)||y.isValidElement(e)?{children:e}:e}const x_=e=>typeof e=="object"&&e!==null&&Symbol.iterator in e;function Kp(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&!y.isValidElement(e)}function ty(e){return!!e?.hasOwnProperty(Vs)}const ut=(...e)=>{const t={};for(const o of e){const r=Array.isArray(o)?o:Object.keys(o);for(const n of r)t[n]=1}return t},k_=ut(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),F_=ut(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","popover","focusgroup","ref","role","style","tabIndex","title","translate","spellCheck","name"]),R_=ut(["itemID","itemProp","itemRef","itemScope","itemType"]),Ot=ut(F_,k_,R_),P_=ut(Ot,["form"]),oy=ut(Ot,["height","loop","muted","preload","src","width"]),E_=ut(oy,["poster"]),T_=ut(Ot,["start"]),D_=ut(Ot,["value"]),M_=ut(Ot,["download","href","hrefLang","media","referrerPolicy","rel","target","type"]),A_=ut(Ot,["dateTime"]),Ju=ut(Ot,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","popoverTarget","popoverTargetAction","type","value"]),__=ut(Ju,["accept","alt","autoCorrect","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),I_=ut(Ju,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),B_=ut(Ju,["form","multiple","required"]),O_=ut(Ot,["selected","value"]),L_=ut(Ot,["cellPadding","cellSpacing"]),N_=Ot,z_=ut(Ot,["colSpan","rowSpan","scope"]),H_=ut(Ot,["colSpan","headers","rowSpan","scope"]),V_=ut(Ot,["span"]),G_=ut(Ot,["span"]),j_=ut(Ot,["disabled","form"]),W_=ut(Ot,["acceptCharset","action","encType","encType","method","noValidate","target"]),q_=ut(Ot,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),U_=ut(Ot,["alt","crossOrigin","height","src","srcSet","useMap","width"]),$_=ut(Ot,["open","onCancel","onClose"]);function K_(e,t,o){const r=Array.isArray(t),n={},i=Object.keys(e);for(const s of i)(!r&&t[s]||r&&t.indexOf(s)>=0||s.indexOf("data-")===0||s.indexOf("aria-")===0)&&(!o||o?.indexOf(s)===-1)&&(n[s]=e[s]);return n}const X_={label:P_,audio:oy,video:E_,ol:T_,li:D_,a:M_,button:Ju,input:__,textarea:I_,select:B_,option:O_,table:L_,tr:N_,th:z_,td:H_,colGroup:V_,col:G_,fieldset:j_,form:W_,iframe:q_,img:U_,time:A_,dialog:$_};function ry(e,t,o){const r=e&&X_[e]||Ot;return r.as=1,K_(t,r,o)}const Xp=({primarySlotTagName:e,props:t,excludedPropNames:o})=>({root:{style:t.style,className:t.className},primary:ry(e,t,[...o||[],"style","className"])}),Lt=(e,t,o)=>{var r;return ry((r=t.as)!==null&&r!==void 0?r:e,t,o)};function Z_(e,t){const o={};for(const r in e)t.indexOf(r)===-1&&e.hasOwnProperty(r)&&(o[r]=e[r]);return o}function ny(e,t){const o=y.useRef(void 0),r=y.useCallback((i,s)=>(o.current!==void 0&&t(o.current),o.current=e(i,s),o.current),[t,e]),n=y.useCallback(()=>{o.current!==void 0&&(t(o.current),o.current=void 0)},[t]);return y.useEffect(()=>n,[n]),[r,n]}const iy=y.createContext(void 0),Y_=iy.Provider,sy=y.createContext(void 0),Q_="",J_=sy.Provider;function eI(){var e;return(e=y.useContext(sy))!==null&&e!==void 0?e:Q_}const ay=y.createContext(void 0),tI={},oI=ay.Provider;function rI(){var e;return(e=y.useContext(ay))!==null&&e!==void 0?e:tI}const ly=y.createContext(void 0),nI={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},iI=ly.Provider;function Dt(){var e;return(e=y.useContext(ly))!==null&&e!==void 0?e:nI}const cy=y.createContext(void 0),sI=cy.Provider;function uy(){var e;return(e=y.useContext(cy))!==null&&e!==void 0?e:{}}const Zp=y.createContext(void 0),aI=()=>{},lI=Zp.Provider,dt=e=>{var t,o;return(o=(t=y.useContext(Zp))===null||t===void 0?void 0:t[e])!==null&&o!==void 0?o:aI},dy=y.createContext(void 0);dy.Provider;function cI(){return y.useContext(dy)}const uI=e=>(e(0),0),dI=e=>e;function hI(){const{targetDocument:e}=Dt(),t=e?.defaultView,o=t?t.requestAnimationFrame:uI,r=t?t.cancelAnimationFrame:dI;return ny(o,r)}function fI(e){return typeof e=="function"}const Co=e=>{"use no memo";const[t,o]=y.useState(()=>e.defaultState===void 0?e.initialState:pI(e.defaultState)?e.defaultState():e.defaultState),r=y.useRef(e.state);y.useEffect(()=>{r.current=e.state},[e.state]);const n=y.useCallback(i=>{fI(i)&&i(r.current)},[]);return gI(e.state)?[e.state,n]:[t,o]};function pI(e){return typeof e=="function"}const gI=e=>{"use no memo";const[t]=y.useState(()=>e!==void 0);return t};function ed(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const hy={current:0},mI=y.createContext(void 0);function fy(){var e;return(e=y.useContext(mI))!==null&&e!==void 0?e:hy}function vI(){const e=fy()!==hy,[t,o]=y.useState(e);return ed()&&e&&y.useLayoutEffect(()=>{o(!1)},[]),t}const oo=ed()?y.useLayoutEffect:y.useEffect,Ce=e=>{const t=y.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return oo(()=>{t.current=e},[e]),y.useCallback((...o)=>{const r=t.current;return r(...o)},[t])};function py(){const e=y.useRef(!0);return y.useEffect(()=>{e.current&&(e.current=!1)},[]),e.current}function bI(){return y.useReducer(e=>e+1,0)[1]}const gy=y.createContext(void 0);gy.Provider;function CI(){return y.useContext(gy)||""}function Oo(e="fui-",t){"use no memo";const o=fy(),r=CI(),n=fu.useId;if(n){const i=n(),s=y.useMemo(()=>i.replace(/:/g,""),[i]);return t||`${r}${e}${s}`}return y.useMemo(()=>t||`${r}${e}${++o.current}`,[r,e,t,o])}function Mt(...e){"use no memo";const t=y.useCallback(o=>{t.current=o;for(const r of e)typeof r=="function"?r(o):r&&(r.current=o)},[...e]);return t}const my=(e,t)=>!!e?.contains(t),wI=e=>{const{targetDocument:t}=Dt(),o=t?.defaultView,{refs:r,callback:n,element:i,disabled:s,disabledFocusOnIframe:l,contains:u=my}=e,d=y.useRef(void 0);SI({element:i,disabled:l||s,callback:n,refs:r,contains:u});const h=y.useRef(!1),p=Ce(v=>{if(h.current){h.current=!1;return}const b=v.composedPath()[0];r.every(S=>!u(S.current||null,b))&&!s&&n(v)}),g=Ce(v=>{h.current=r.some(b=>u(b.current||null,v.target))});y.useEffect(()=>{if(s)return;let v=yI(o);const b=C=>{if(C===v){v=void 0;return}p(C)};return i?.addEventListener("click",b,!0),i?.addEventListener("touchstart",b,!0),i?.addEventListener("contextmenu",b,!0),i?.addEventListener("mousedown",g,!0),d.current=o?.setTimeout(()=>{v=void 0},1),()=>{i?.removeEventListener("click",b,!0),i?.removeEventListener("touchstart",b,!0),i?.removeEventListener("contextmenu",b,!0),i?.removeEventListener("mousedown",g,!0),o?.clearTimeout(d.current),v=void 0}},[p,i,s,g,o])},yI=e=>{if(e){var t,o;if(typeof e.window=="object"&&e.window===e)return e.event;var r;return(r=(o=e.ownerDocument)===null||o===void 0||(t=o.defaultView)===null||t===void 0?void 0:t.event)!==null&&r!==void 0?r:void 0}},Yp="fuiframefocus",SI=e=>{const{disabled:t,element:o,callback:r,contains:n=my,pollDuration:i=100,refs:s}=e,l=y.useRef(void 0),u=Ce(d=>{s.every(p=>!n(p.current||null,d.target))&&!t&&r(d)});y.useEffect(()=>{if(!t)return o?.addEventListener(Yp,u,!0),()=>{o?.removeEventListener(Yp,u,!0)}},[o,t,u]),y.useEffect(()=>{var d;if(!t)return l.current=o==null||(d=o.defaultView)===null||d===void 0?void 0:d.setInterval(()=>{const h=o?.activeElement;if(h?.tagName==="IFRAME"||h?.tagName==="WEBVIEW"){const p=new CustomEvent(Yp,{bubbles:!0});h.dispatchEvent(p)}},i),()=>{var h;o==null||(h=o.defaultView)===null||h===void 0||h.clearInterval(l.current)}},[o,t,i])},xI=e=>-1,kI=e=>{};function FI(){const{targetDocument:e}=Dt(),t=e?.defaultView,o=t?t.setTimeout:xI,r=t?t.clearTimeout:kI;return ny(o,r)}const RI=parseInt(y.version,10)>=19;function Qp(e){if(e)return RI?e.props.ref:e.ref}function tt(e,t){return(...o)=>{e?.(...o),t?.(...o)}}function Gs(e,t){var o;const r=e;var n;return!!(!(r==null||(o=r.ownerDocument)===null||o===void 0)&&o.defaultView&&r instanceof r.ownerDocument.defaultView[(n=void 0)!==null&&n!==void 0?n:"HTMLElement"])}function vy(e){return!!e.type.isFluentTriggerComponent}function by(e,t){return typeof e=="function"?e(t):e?Cy(e,t):e||null}function Cy(e,t){if(!y.isValidElement(e)||e.type===y.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(vy(e)){const o=Cy(e.props.children,t);return y.cloneElement(e,void 0,o)}else return y.cloneElement(e,t)}function Jp(e){return y.isValidElement(e)?vy(e)?Jp(e.props.children):e:null}function wy(e){return e instanceof Set?e:new Set(e)}function yy(e){const[t,o]=Co({initialState:new Set,defaultState:y.useMemo(()=>e.defaultSelectedItems&&wy(e.defaultSelectedItems),[e.defaultSelectedItems]),state:y.useMemo(()=>e.selectedItems&&wy(e.selectedItems),[e.selectedItems])});return[t,(n,i)=>{var s;(s=e.onSelectionChange)===null||s===void 0||s.call(e,n,{selectedItems:i}),o(i)}]}function PI(e){const[t,o]=yy(e);return[t,{deselectItem:n=>o(n,new Set),selectItem:(n,i)=>o(n,new Set([i])),toggleAllItems:()=>{},toggleItem:(n,i)=>o(n,new Set([i])),clearItems:n=>o(n,new Set),isSelected:n=>{var i;return(i=t.has(n))!==null&&i!==void 0?i:!1}}]}function EI(e){const[t,o]=yy(e);return[t,{toggleItem:(n,i)=>{const s=new Set(t);t.has(i)?s.delete(i):s.add(i),o(n,s)},selectItem:(n,i)=>{const s=new Set(t);s.add(i),o(n,s)},deselectItem:(n,i)=>{const s=new Set(t);s.delete(i),o(n,s)},clearItems:n=>{o(n,new Set)},isSelected:n=>t.has(n),toggleAllItems:(n,i)=>{const s=i.every(u=>t.has(u)),l=new Set(t);s?l.clear():i.forEach(u=>l.add(u)),o(n,l)}}]}function TI(e){"use no memo";return e.selectionMode==="multiselect"?EI(e):PI(e)}function DI(e){return e&&!!e._virtual}function MI(e){return DI(e)&&e._virtual.parent||null}function Sy(e,t={}){if(!e)return null;if(!t.skipVirtual){const r=MI(e);if(r)return r}const o=e.parentNode;return o&&o.nodeType===11?o.host:o}function AI(e,t){if(!e||!t)return!1;if(e===t)return!0;{const o=new WeakSet;for(;t;){const r=Sy(t,{skipVirtual:o.has(t)});if(o.add(t),r===e)return!0;t=r}}return!1}function xy(e,t){e&&Object.assign(e,{_virtual:{parent:t}})}function _I(e,t){return{...t,[Vs]:e}}var eg={exports:{}},it={};var ky;function II(){if(ky)return it;ky=1;var e=60103,t=60106,o=60107,r=60108,n=60114,i=60109,s=60110,l=60112,u=60113,d=60120,h=60115,p=60116,g=60121,v=60122,b=60117,C=60129,S=60131;if(typeof Symbol=="function"&&Symbol.for){var k=Symbol.for;e=k("react.element"),t=k("react.portal"),o=k("react.fragment"),r=k("react.strict_mode"),n=k("react.profiler"),i=k("react.provider"),s=k("react.context"),l=k("react.forward_ref"),u=k("react.suspense"),d=k("react.suspense_list"),h=k("react.memo"),p=k("react.lazy"),g=k("react.block"),v=k("react.server.block"),b=k("react.fundamental"),C=k("react.debug_trace_mode"),S=k("react.legacy_hidden")}function F(A){if(typeof A=="object"&&A!==null){var K=A.$$typeof;switch(K){case e:switch(A=A.type,A){case o:case n:case r:case u:case d:return A;default:switch(A=A&&A.$$typeof,A){case s:case l:case p:case h:case i:return A;default:return K}}case t:return K}}}var R=i,P=e,T=l,D=o,M=p,O=h,I=t,z=n,U=r,q=u;return it.ContextConsumer=s,it.ContextProvider=R,it.Element=P,it.ForwardRef=T,it.Fragment=D,it.Lazy=M,it.Memo=O,it.Portal=I,it.Profiler=z,it.StrictMode=U,it.Suspense=q,it.isAsyncMode=function(){return!1},it.isConcurrentMode=function(){return!1},it.isContextConsumer=function(A){return F(A)===s},it.isContextProvider=function(A){return F(A)===i},it.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===e},it.isForwardRef=function(A){return F(A)===l},it.isFragment=function(A){return F(A)===o},it.isLazy=function(A){return F(A)===p},it.isMemo=function(A){return F(A)===h},it.isPortal=function(A){return F(A)===t},it.isProfiler=function(A){return F(A)===n},it.isStrictMode=function(A){return F(A)===r},it.isSuspense=function(A){return F(A)===u},it.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===o||A===n||A===C||A===r||A===u||A===d||A===S||typeof A=="object"&&A!==null&&(A.$$typeof===p||A.$$typeof===h||A.$$typeof===i||A.$$typeof===s||A.$$typeof===l||A.$$typeof===b||A.$$typeof===g||A[0]===v)},it.typeOf=F,it}var Fy;function BI(){return Fy||(Fy=1,eg.exports=II()),eg.exports}BI();function Ry(e,t){return function(r,n,i,s,l){return ty(n)?t(_I(r,n),null,i,s,l):ty(r)?t(r,n,i,s,l):e(r,n,i,s,l)}}function Py(e){const{as:t,[Jw]:o,[Vs]:r,[Qu]:n,...i}=e,s=i,l=typeof r=="string"?t??r:r;return typeof l!="string"&&t&&(s.as=t),{elementType:l,props:s,renderFunction:n}}const Ui=_D,OI=(e,t,o)=>{const{elementType:r,renderFunction:n,props:i}=Py(e),s={...i,...t};return n?Ui.jsx(y.Fragment,{children:n(r,s)},o):Ui.jsx(r,s,o)},LI=(e,t,o)=>{const{elementType:r,renderFunction:n,props:i}=Py(e),s={...i,...t};return n?Ui.jsx(y.Fragment,{children:n(r,{...s,children:Ui.jsxs(y.Fragment,{children:s.children},void 0)})},o):Ui.jsxs(r,s,o)},he=Ry(Ui.jsx,OI),kt=Ry(Ui.jsxs,LI),Ey=y.createContext(void 0),NI={},zI=Ey.Provider,HI=()=>{const e=y.useContext(Ey);return e??NI},VI=(e,t)=>he(iI,{value:t.provider,children:he(Y_,{value:t.theme,children:he(J_,{value:t.themeClassName,children:he(lI,{value:t.customStyleHooks_unstable,children:he(oI,{value:t.tooltip,children:he(y_,{dir:t.textDirection,children:he(zI,{value:t.iconDirection,children:he(sI,{value:t.overrides_unstable,children:kt(e.root,{children:[ed()?null:he("style",{dangerouslySetInnerHTML:{__html:e.serverStyleProps.cssRule},...e.serverStyleProps.attributes}),e.root.children]})})})})})})})})});var GI=typeof WeakRef<"u",Ty=class{constructor(e){GI&&typeof e=="object"?this._weakRef=new WeakRef(e):this._instance=e}deref(){var e,t;let o;return this._weakRef?(o=(e=this._weakRef)==null?void 0:e.deref(),o||delete this._weakRef):(o=this._instance,(t=o?.isDisposed)!=null&&t.call(o)&&delete this._instance),o}},Lo="keyborg:focusin",El="keyborg:focusout";function jI(e){const t=e.HTMLElement,o=t.prototype.focus;let r=!1;return t.prototype.focus=function(){r=!0},e.document.createElement("button").focus(),t.prototype.focus=o,r}var tg=!1;function jr(e){const t=e.focus;t.__keyborgNativeFocus?t.__keyborgNativeFocus.call(e):e.focus()}function WI(e){const t=e;tg||(tg=jI(t));const o=t.HTMLElement.prototype.focus;if(o.__keyborgNativeFocus)return;t.HTMLElement.prototype.focus=u;const r=new Set,n=h=>{const p=h.target;if(!p)return;const g=new CustomEvent(El,{cancelable:!0,bubbles:!0,composed:!0,detail:{originalEvent:h}});p.dispatchEvent(g)},i=h=>{const p=h.target;if(!p)return;let g=h.composedPath()[0];const v=new Set;for(;g;)g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?(v.add(g),g=g.host):g=g.parentNode;for(const b of r){const C=b.deref();(!C||!v.has(C))&&(r.delete(b),C&&(C.removeEventListener("focusin",i,!0),C.removeEventListener("focusout",n,!0)))}s(p,h.relatedTarget||void 0)},s=(h,p,g)=>{var v;const b=h.shadowRoot;if(b){for(const k of r)if(k.deref()===b)return;b.addEventListener("focusin",i,!0),b.addEventListener("focusout",n,!0),r.add(new Ty(b));return}const C={relatedTarget:p,originalEvent:g},S=new CustomEvent(Lo,{cancelable:!0,bubbles:!0,composed:!0,detail:C});S.details=C,(tg||l.lastFocusedProgrammatically)&&(C.isFocusedProgrammatically=h===((v=l.lastFocusedProgrammatically)==null?void 0:v.deref()),l.lastFocusedProgrammatically=void 0),h.dispatchEvent(S)},l=t.__keyborgData={focusInHandler:i,focusOutHandler:n,shadowTargets:r};t.document.addEventListener("focusin",t.__keyborgData.focusInHandler,!0),t.document.addEventListener("focusout",t.__keyborgData.focusOutHandler,!0);function u(){const h=t.__keyborgData;return h&&(h.lastFocusedProgrammatically=new Ty(this)),o.apply(this,arguments)}let d=t.document.activeElement;for(;d&&d.shadowRoot;)s(d),d=d.shadowRoot.activeElement;u.__keyborgNativeFocus=o}function qI(e){const t=e,o=t.HTMLElement.prototype,r=o.focus.__keyborgNativeFocus,n=t.__keyborgData;if(n){t.document.removeEventListener("focusin",n.focusInHandler,!0),t.document.removeEventListener("focusout",n.focusOutHandler,!0);for(const i of n.shadowTargets){const s=i.deref();s&&(s.removeEventListener("focusin",n.focusInHandler,!0),s.removeEventListener("focusout",n.focusOutHandler,!0))}n.shadowTargets.clear(),delete t.__keyborgData}r&&(o.focus=r)}var UI=500,Dy=0,$I=class{constructor(e,t){this._isNavigatingWithKeyboard_DO_NOT_USE=!1,this._onFocusIn=r=>{if(this._isMouseOrTouchUsedTimer||this.isNavigatingWithKeyboard)return;const n=r.detail;n.relatedTarget&&(n.isFocusedProgrammatically||n.isFocusedProgrammatically===void 0||(this.isNavigatingWithKeyboard=!0))},this._onMouseDown=r=>{r.buttons===0||r.clientX===0&&r.clientY===0&&r.screenX===0&&r.screenY===0||this._onMouseOrTouch()},this._onMouseOrTouch=()=>{const r=this._win;r&&(this._isMouseOrTouchUsedTimer&&r.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=r.setTimeout(()=>{delete this._isMouseOrTouchUsedTimer},1e3)),this.isNavigatingWithKeyboard=!1},this._onKeyDown=r=>{this.isNavigatingWithKeyboard?this._shouldDismissKeyboardNavigation(r)&&this._scheduleDismiss():this._shouldTriggerKeyboardNavigation(r)&&(this.isNavigatingWithKeyboard=!0)},this.id="c"+ ++Dy,this._win=e;const o=e.document;if(t){const r=t.triggerKeys,n=t.dismissKeys;r?.length&&(this._triggerKeys=new Set(r)),n?.length&&(this._dismissKeys=new Set(n))}o.addEventListener(Lo,this._onFocusIn,!0),o.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("keydown",this._onKeyDown,!0),o.addEventListener("touchstart",this._onMouseOrTouch,!0),o.addEventListener("touchend",this._onMouseOrTouch,!0),o.addEventListener("touchcancel",this._onMouseOrTouch,!0),WI(e)}get isNavigatingWithKeyboard(){return this._isNavigatingWithKeyboard_DO_NOT_USE}set isNavigatingWithKeyboard(e){this._isNavigatingWithKeyboard_DO_NOT_USE!==e&&(this._isNavigatingWithKeyboard_DO_NOT_USE=e,this.update())}dispose(){const e=this._win;if(e){this._isMouseOrTouchUsedTimer&&(e.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=void 0),this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),qI(e);const t=e.document;t.removeEventListener(Lo,this._onFocusIn,!0),t.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener("touchstart",this._onMouseOrTouch,!0),t.removeEventListener("touchend",this._onMouseOrTouch,!0),t.removeEventListener("touchcancel",this._onMouseOrTouch,!0),delete this._win}}isDisposed(){return!!this._win}update(){var e,t;const o=(t=(e=this._win)==null?void 0:e.__keyborg)==null?void 0:t.refs;if(o)for(const r of Object.keys(o))og.update(o[r],this.isNavigatingWithKeyboard)}_shouldTriggerKeyboardNavigation(e){var t;if(e.key==="Tab")return!0;const o=(t=this._win)==null?void 0:t.document.activeElement,r=!this._triggerKeys||this._triggerKeys.has(e.keyCode),n=o&&(o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.isContentEditable);return r&&!n}_shouldDismissKeyboardNavigation(e){var t;return(t=this._dismissKeys)==null?void 0:t.has(e.keyCode)}_scheduleDismiss(){const e=this._win;if(e){this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const t=e.document.activeElement;this._dismissTimer=e.setTimeout(()=>{this._dismissTimer=void 0;const o=e.document.activeElement;t&&o&&t===o&&(this.isNavigatingWithKeyboard=!1)},UI)}}},og=class PD{constructor(t,o){this._cb=[],this._id="k"+ ++Dy,this._win=t;const r=t.__keyborg;r?(this._core=r.core,r.refs[this._id]=this):(this._core=new $I(t,o),t.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(t,o){return new PD(t,o)}static dispose(t){t.dispose()}static update(t,o){t._cb.forEach(r=>r(o))}dispose(){var t;const o=(t=this._win)==null?void 0:t.__keyborg;o?.refs[this._id]&&(delete o.refs[this._id],Object.keys(o.refs).length===0&&(o.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){var t;return!!((t=this._core)!=null&&t.isNavigatingWithKeyboard)}subscribe(t){this._cb.push(t)}unsubscribe(t){const o=this._cb.indexOf(t);o>=0&&this._cb.splice(o,1)}setVal(t){this._core&&(this._core.isNavigatingWithKeyboard=t)}};function td(e,t){return og.create(e,t)}function od(e){og.dispose(e)}const yr="data-tabster",KI="data-tabster-dummy",My=`:is(${["a[href]","button","input","select","textarea","*[tabindex]","*[contenteditable]","details > summary","audio[controls]","video[controls]"].join(", ")}):not(:disabled)`,yn={EscapeGroupper:1,Restorer:2,Deloser:3},ei={Invisible:0,PartiallyVisible:1,Visible:2},js={Source:0,Target:1},Sr={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},Ft={ArrowUp:1,ArrowDown:2,ArrowLeft:3,ArrowRight:4,PageUp:5,PageDown:6,Home:7,End:8},rd={Unlimited:0,Limited:1,LimitedTrapFocus:2},Tl={Enter:1,Escape:2},XI={Outside:2};function Xt(e,t){var o;return(o=e.storageEntry(t))===null||o===void 0?void 0:o.tabster}function Ay(e,t,o){var r,n,i;const s=o||e._noop?void 0:t.getAttribute(yr);let l=e.storageEntry(t),u;if(s)if(s!==((r=l?.attr)===null||r===void 0?void 0:r.string))try{const g=JSON.parse(s);if(typeof g!="object")throw new Error(`Value is not a JSON object, got '${s}'.`);u={string:s,object:g}}catch{}else return;else if(!l)return;l||(l=e.storageEntry(t,!0)),l.tabster||(l.tabster={});const d=l.tabster||{},h=((n=l.attr)===null||n===void 0?void 0:n.object)||{},p=u?.object||{};for(const g of Object.keys(h))if(!p[g]){if(g==="root"){const v=d[g];v&&e.root.onRoot(v,!0)}switch(g){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const v=d[g];v&&(v.dispose(),delete d[g]);break;case"observed":delete d[g],e.observedElement&&e.observedElement.onObservedElementUpdate(t);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete d[g];break}}for(const g of Object.keys(p)){const v=p.sys;switch(g){case"deloser":d.deloser?d.deloser.setProps(p.deloser):e.deloser&&(d.deloser=e.deloser.createDeloser(t,p.deloser));break;case"root":d.root?d.root.setProps(p.root):d.root=e.root.createRoot(t,p.root,v),e.root.onRoot(d.root);break;case"modalizer":{let b;const C=e.modalizer;if(d.modalizer){const S=p.modalizer,k=S.id;k&&((i=h?.modalizer)===null||i===void 0?void 0:i.id)!==k?(d.modalizer.dispose(),b=S):d.modalizer.setProps(S)}else C&&(b=p.modalizer);C&&b&&(d.modalizer=C.createModalizer(t,b,v))}break;case"restorer":d.restorer?d.restorer.setProps(p.restorer):e.restorer&&p.restorer&&(d.restorer=e.restorer.createRestorer(t,p.restorer));break;case"focusable":d.focusable=p.focusable;break;case"groupper":d.groupper?d.groupper.setProps(p.groupper):e.groupper&&(d.groupper=e.groupper.createGroupper(t,p.groupper,v));break;case"mover":d.mover?d.mover.setProps(p.mover):e.mover&&(d.mover=e.mover.createMover(t,p.mover,v));break;case"observed":e.observedElement&&(d.observed=p.observed,e.observedElement.onObservedElementUpdate(t));break;case"uncontrolled":d.uncontrolled=p.uncontrolled;break;case"outline":e.outline&&(d.outline=p.outline);break;case"sys":d.sys=p.sys;break;default:console.error(`Unknown key '${g}' in data-tabster attribute value.`)}}u?l.attr=u:(Object.keys(d).length===0&&(delete l.tabster,delete l.attr),e.storageEntry(t,!1))}const ZI="tabster:focusin",YI="tabster:focusout",QI="tabster:movefocus",JI="tabster:modalizer:active",eB="tabster:modalizer:inactive",tB="tabster:mover:state",rg="tabster:mover:movefocus",_y="tabster:mover:memorized-element",ng="tabster:groupper:movefocus",ig="tabster:restorer:restore-focus",oB="tabster:root:focus",rB="tabster:root:blur",nB=typeof CustomEvent<"u"?CustomEvent:function(){};class xr extends nB{constructor(t,o){super(t,{bubbles:!0,cancelable:!0,composed:!0,detail:o}),this.details=o}}class iB extends xr{constructor(t){super(ZI,t)}}class sB extends xr{constructor(t){super(YI,t)}}class ti extends xr{constructor(t){super(QI,t)}}class Iy extends xr{constructor(t){super(tB,t)}}class aB extends xr{constructor(t){super(rg,t)}}class sg extends xr{constructor(t){super(ng,t)}}class lB extends xr{constructor(t){super(JI,t)}}class cB extends xr{constructor(t){super(eB,t)}}class By extends xr{constructor(){super(ig)}}class uB extends xr{constructor(t){super(oB,t)}}class dB extends xr{constructor(t){super(rB,t)}}const ie={createMutationObserver:e=>new MutationObserver(e),createTreeWalker:(e,t,o,r)=>e.createTreeWalker(t,o,r),getParentNode:e=>e?e.parentNode:null,getParentElement:e=>e?e.parentElement:null,nodeContains:(e,t)=>!!(t&&e?.contains(t)),getActiveElement:e=>e.activeElement,querySelector:(e,t)=>e.querySelector(t),querySelectorAll:(e,t)=>Array.prototype.slice.call(e.querySelectorAll(t),0),getElementById:(e,t)=>e.getElementById(t),getFirstChild:e=>e?.firstChild||null,getLastChild:e=>e?.lastChild||null,getNextSibling:e=>e?.nextSibling||null,getPreviousSibling:e=>e?.previousSibling||null,getFirstElementChild:e=>e?.firstElementChild||null,getLastElementChild:e=>e?.lastElementChild||null,getNextElementSibling:e=>e?.nextElementSibling||null,getPreviousElementSibling:e=>e?.previousElementSibling||null,appendChild:(e,t)=>e.appendChild(t),insertBefore:(e,t,o)=>e.insertBefore(t,o),getSelection:e=>{var t;return((t=e.ownerDocument)===null||t===void 0?void 0:t.getSelection())||null},getElementsByName:(e,t)=>e.ownerDocument.getElementsByName(t)};function hB(e){for(const t of Object.keys(e))ie[t]=e[t]}let ag;const Oy=typeof DOMRect<"u"?DOMRect:class{constructor(e,t,o,r){this.left=e||0,this.top=t||0,this.right=(e||0)+(o||0),this.bottom=(t||0)+(r||0)}};let fB=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),ag=!1}catch{ag=!0}const lg=100;function Sn(e){const t=e();let o=t.__tabsterInstanceContext;return o||(o={elementByUId:{},basics:{Promise:t.Promise||void 0,WeakRef:t.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},t.__tabsterInstanceContext=o),o}function pB(e){const t=e.__tabsterInstanceContext;t&&(t.elementByUId={},delete t.WeakRef,t.containerBoundingRectCache={},t.containerBoundingRectCacheTimer&&e.clearTimeout(t.containerBoundingRectCacheTimer),t.fakeWeakRefsTimer&&e.clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefs=[],delete e.__tabsterInstanceContext)}function gB(e){const t=e.__tabsterInstanceContext;return new(t?.basics.WeakMap||WeakMap)}function mB(e){return!!e.querySelector(My)}class Ly{constructor(t){this._target=t}deref(){return this._target}static cleanup(t,o){return t._target?o||!ug(t._target.ownerDocument,t._target)?(delete t._target,!0):!1:!0}}class No{constructor(t,o,r){const n=Sn(t);let i;n.WeakRef?i=new n.WeakRef(o):(i=new Ly(o),n.fakeWeakRefs.push(i)),this._ref=i,this._data=r}get(){const t=this._ref;let o;return t&&(o=t.deref(),o||delete this._ref),o}getData(){return this._data}}function Ny(e,t){const o=Sn(e);o.fakeWeakRefs=o.fakeWeakRefs.filter(r=>!Ly.cleanup(r,t))}function zy(e){const t=Sn(e);t.fakeWeakRefsStarted||(t.fakeWeakRefsStarted=!0,t.WeakRef=SB(t)),t.fakeWeakRefsTimer||(t.fakeWeakRefsTimer=e().setTimeout(()=>{t.fakeWeakRefsTimer=void 0,Ny(e),zy(e)},120*1e3))}function vB(e){const t=Sn(e);t.fakeWeakRefsStarted=!1,t.fakeWeakRefsTimer&&(e().clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefsTimer=void 0,t.fakeWeakRefs=[])}function cg(e,t,o){if(t.nodeType!==Node.ELEMENT_NODE)return;const r=ag?o:{acceptNode:o};return ie.createTreeWalker(e,t,NodeFilter.SHOW_ELEMENT,r,!1)}function Hy(e,t){let o=t.__tabsterCacheId;const r=Sn(e),n=o?r.containerBoundingRectCache[o]:void 0;if(n)return n.rect;const i=t.ownerDocument&&t.ownerDocument.documentElement;if(!i)return new Oy;let s=0,l=0,u=i.clientWidth,d=i.clientHeight;if(t!==i){const p=t.getBoundingClientRect();s=Math.max(s,p.left),l=Math.max(l,p.top),u=Math.min(u,p.right),d=Math.min(d,p.bottom)}const h=new Oy(s<u?s:-1,l<d?l:-1,s<u?u-s:0,l<d?d-l:0);return o||(o="r-"+ ++r.lastContainerBoundingRectCacheId,t.__tabsterCacheId=o),r.containerBoundingRectCache[o]={rect:h,element:t},r.containerBoundingRectCacheTimer||(r.containerBoundingRectCacheTimer=window.setTimeout(()=>{r.containerBoundingRectCacheTimer=void 0;for(const p of Object.keys(r.containerBoundingRectCache))delete r.containerBoundingRectCache[p].element.__tabsterCacheId;r.containerBoundingRectCache={}},50)),h}function Vy(e,t,o){const r=Gy(t);if(!r)return!1;const n=Hy(e,r),i=t.getBoundingClientRect(),s=i.height*(1-o),l=Math.max(0,n.top-i.top),u=Math.max(0,i.bottom-n.bottom),d=l+u;return d===0||d<=s}function bB(e,t,o){const r=Gy(t);if(r){const n=Hy(e,r),i=t.getBoundingClientRect();o?r.scrollTop+=i.top-n.top:r.scrollTop+=i.bottom-n.bottom}}function Gy(e){const t=e.ownerDocument;if(t){for(let o=ie.getParentElement(e);o;o=ie.getParentElement(o))if(o.scrollWidth>o.clientWidth||o.scrollHeight>o.clientHeight)return o;return t.documentElement}return null}function CB(e){e.__shouldIgnoreFocus=!0}function jy(e){return!!e.__shouldIgnoreFocus}function wB(e){const t=new Uint32Array(4);if(e.crypto&&e.crypto.getRandomValues)e.crypto.getRandomValues(t);else if(e.msCrypto&&e.msCrypto.getRandomValues)e.msCrypto.getRandomValues(t);else for(let r=0;r<t.length;r++)t[r]=4294967295*Math.random();const o=[];for(let r=0;r<t.length;r++)o.push(t[r].toString(36));return o.push("|"),o.push((++fB).toString(36)),o.push("|"),o.push(Date.now().toString(36)),o.join("")}function nd(e,t){const o=Sn(e);let r=t.__tabsterElementUID;return r||(r=t.__tabsterElementUID=wB(e())),!o.elementByUId[r]&&ug(t.ownerDocument,t)&&(o.elementByUId[r]=new No(e,t)),r}function Wy(e,t){const o=Sn(e);for(const r of Object.keys(o.elementByUId)){const n=o.elementByUId[r],i=n&&n.get();i&&t&&!ie.nodeContains(t,i)||delete o.elementByUId[r]}}function ug(e,t){return ie.nodeContains(e?.body,t)}function qy(e,t){const o=e.matches||e.matchesSelector||e.msMatchesSelector||e.webkitMatchesSelector;return o&&o.call(e,t)}function yB(e){const t=Sn(e);if(t.basics.Promise)return t.basics.Promise;throw new Error("No Promise defined.")}function SB(e){return e.basics.WeakRef}let xB=0;class Dl{constructor(t,o,r){const n=t.getWindow;this._tabster=t,this._element=new No(n,o),this._props={...r},this.id="i"+ ++xB}getElement(){return this._element.get()}getProps(){return this._props}setProps(t){this._props={...t}}}class id{constructor(t,o,r,n,i){var s;this._focusIn=h=>{if(this._fixedTarget){const g=this._fixedTarget.get();g&&jr(g);return}const p=this.input;if(this.onFocusIn&&p){const g=h.relatedTarget;this.onFocusIn(this,this._isBackward(!0,p,g),g)}},this._focusOut=h=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const p=this.input;if(this.onFocusOut&&p){const g=h.relatedTarget;this.onFocusOut(this,this._isBackward(!1,p,g),g)}};const l=t(),u=l.document.createElement("i");u.tabIndex=0,u.setAttribute("role","none"),u.setAttribute(KI,""),u.setAttribute("aria-hidden","true");const d=u.style;d.position="fixed",d.width=d.height="1px",d.opacity="0.001",d.zIndex="-1",d.setProperty("content-visibility","hidden"),CB(u),this.input=u,this.isFirst=r.isFirst,this.isOutside=o,this._isPhantom=(s=r.isPhantom)!==null&&s!==void 0?s:!1,this._fixedTarget=i,u.addEventListener("focusin",this._focusIn),u.addEventListener("focusout",this._focusOut),u.__tabsterDummyContainer=n,this._isPhantom&&(this._disposeTimer=l.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(l.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var t;this._clearDisposeTimeout&&this._clearDisposeTimeout();const o=this.input;o&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,o.removeEventListener("focusin",this._focusIn),o.removeEventListener("focusout",this._focusOut),delete o.__tabsterDummyContainer,(t=ie.getParentNode(o))===null||t===void 0||t.removeChild(o))}setTopLeft(t,o){var r;const n=(r=this.input)===null||r===void 0?void 0:r.style;n&&(n.top=`${t}px`,n.left=`${o}px`)}_isBackward(t,o,r){return t&&!r?!this.isFirst:!!(r&&o.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING)}}const sd={Root:1,Modalizer:2,Mover:3,Groupper:4};class Ws{constructor(t,o,r,n,i,s){this._element=o,this._instance=new FB(t,o,this,r,n,i,s)}_setHandlers(t,o){this._onFocusIn=t,this._onFocusOut=o}moveOut(t){var o;(o=this._instance)===null||o===void 0||o.moveOut(t)}moveOutWithDefaultAction(t,o){var r;(r=this._instance)===null||r===void 0||r.moveOutWithDefaultAction(t,o)}getHandler(t){return t?this._onFocusIn:this._onFocusOut}setTabbable(t){var o;(o=this._instance)===null||o===void 0||o.setTabbable(this,t)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(t,o,r,n,i){const l=new id(t.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(l){let u,d;if(o.tagName==="BODY")u=o,d=r&&n||!r&&!n?ie.getFirstElementChild(o):null;else{r&&(!n||n&&!t.focusable.isFocusable(o,!1,!0,!0))?(u=o,d=n?o.firstElementChild:null):(u=ie.getParentElement(o),d=r&&n||!r&&!n?o:ie.getNextElementSibling(o));let h,p;do h=r&&n||!r&&!n?ie.getPreviousElementSibling(d):d,p=qs(h),p===o?d=r&&n||!r&&!n?h:ie.getNextElementSibling(h):p=null;while(p)}u?.dispatchEvent(new ti({by:"root",owner:u,next:null,relatedEvent:i}))&&(ie.insertBefore(u,l,d),jr(l))}}static addPhantomDummyWithTarget(t,o,r,n){const s=new id(t.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new No(t.getWindow,n)).input;if(s){let l,u;mB(o)&&!r?(l=o,u=ie.getFirstElementChild(o)):(l=ie.getParentElement(o),u=r?o:ie.getNextElementSibling(o)),l&&ie.insertBefore(l,s,u)}}}class kB{constructor(t){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=o=>{var r;this._changedParents.has(o)||(this._changedParents.add(o),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(r=this._win)===null||r===void 0?void 0:r.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const n of this._dummyElements){const i=n.get();if(i){const s=this._dummyCallbacks.get(i);if(s){const l=ie.getParentNode(i);(!l||this._changedParents.has(l))&&s()}}}this._changedParents=new WeakSet},lg)))},this._win=t}add(t,o){!this._dummyCallbacks.has(t)&&this._win&&(this._dummyElements.push(new No(this._win,t)),this._dummyCallbacks.set(t,o),this.domChanged=this._domChanged)}remove(t){this._dummyElements=this._dummyElements.filter(o=>{const r=o.get();return r&&r!==t}),this._dummyCallbacks.delete(t),this._dummyElements.length===0&&delete this.domChanged}dispose(){var t;const o=(t=this._win)===null||t===void 0?void 0:t.call(this);this._updateTimer&&(o?.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(o?.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(t){this._win&&(this._updateQueue.add(t),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var t;this._updateTimer||(this._updateTimer=(t=this._win)===null||t===void 0?void 0:t.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+lg<=Date.now()){const o=new Map,r=[];for(const n of this._updateQueue)r.push(n(o));this._updateQueue.clear();for(const n of r)n();o.clear()}else this._scheduledUpdatePositions()},lg))}}class FB{constructor(t,o,r,n,i,s,l){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(v,b,C)=>{this._onFocus(!0,v,b,C)},this._onFocusOut=(v,b,C)=>{this._onFocus(!1,v,b,C)},this.moveOut=v=>{var b;const C=this._firstDummy,S=this._lastDummy;if(C&&S){this._ensurePosition();const k=C.input,F=S.input,R=(b=this._element)===null||b===void 0?void 0:b.get();if(k&&F&&R){let P;v?(k.tabIndex=0,P=k):(F.tabIndex=0,P=F),P&&jr(P)}}},this.moveOutWithDefaultAction=(v,b)=>{var C;const S=this._firstDummy,k=this._lastDummy;if(S&&k){this._ensurePosition();const F=S.input,R=k.input,P=(C=this._element)===null||C===void 0?void 0:C.get();if(F&&R&&P){let T;v?!S.isOutside&&this._tabster.focusable.isFocusable(P,!0,!0,!0)?T=P:(S.useDefaultAction=!0,F.tabIndex=0,T=F):(k.useDefaultAction=!0,R.tabIndex=0,T=R),T&&P.dispatchEvent(new ti({by:"root",owner:P,next:null,relatedEvent:b}))&&jr(T)}}},this.setTabbable=(v,b)=>{var C,S;for(const F of this._wrappers)if(F.manager===v){F.tabbable=b;break}const k=this._getCurrent();if(k){const F=k.tabbable?0:-1;let R=(C=this._firstDummy)===null||C===void 0?void 0:C.input;R&&(R.tabIndex=F),R=(S=this._lastDummy)===null||S===void 0?void 0:S.input,R&&(R.tabIndex=F)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=v=>{var b,C;const S=((b=this._firstDummy)===null||b===void 0?void 0:b.input)||((C=this._lastDummy)===null||C===void 0?void 0:C.input),k=this._transformElements,F=new Set;let R=0,P=0;const T=this._getWindow();for(let D=S;D&&D.nodeType===Node.ELEMENT_NODE;D=ie.getParentElement(D)){let M=v.get(D);if(M===void 0){const O=T.getComputedStyle(D).transform;O&&O!=="none"&&(M={scrollTop:D.scrollTop,scrollLeft:D.scrollLeft}),v.set(D,M||null)}M&&(F.add(D),k.has(D)||D.addEventListener("scroll",this._addTransformOffsets),R+=M.scrollTop,P+=M.scrollLeft)}for(const D of k)F.has(D)||D.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=F,()=>{var D,M;(D=this._firstDummy)===null||D===void 0||D.setTopLeft(R,P),(M=this._lastDummy)===null||M===void 0||M.setTopLeft(R,P)}};const u=o.get();if(!u)throw new Error("No element");this._tabster=t,this._getWindow=t.getWindow,this._callForDefaultAction=l;const d=u.__tabsterDummy;if((d||this)._wrappers.push({manager:r,priority:n,tabbable:!0}),d)return d;u.__tabsterDummy=this;const h=i?.dummyInputsPosition,p=u.tagName;this._isOutside=h?h===XI.Outside:(s||p==="UL"||p==="OL"||p==="TABLE")&&!(p==="LI"||p==="TD"||p==="TH"),this._firstDummy=new id(this._getWindow,this._isOutside,{isFirst:!0},o),this._lastDummy=new id(this._getWindow,this._isOutside,{isFirst:!1},o);const g=this._firstDummy.input;g&&t._dummyObserver.add(g,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=o,this._addDummyInputs()}dispose(t,o){var r,n,i,s;if((this._wrappers=this._wrappers.filter(u=>u.manager!==t&&!o)).length===0){delete((r=this._element)===null||r===void 0?void 0:r.get()).__tabsterDummy;for(const h of this._transformElements)h.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const u=this._getWindow();this._addTimer&&(u.clearTimeout(this._addTimer),delete this._addTimer);const d=(n=this._firstDummy)===null||n===void 0?void 0:n.input;d&&this._tabster._dummyObserver.remove(d),(i=this._firstDummy)===null||i===void 0||i.dispose(),(s=this._lastDummy)===null||s===void 0||s.dispose()}}_onFocus(t,o,r,n){var i;const s=this._getCurrent();s&&(!o.useDefaultAction||this._callForDefaultAction)&&((i=s.manager.getHandler(t))===null||i===void 0||i(o,r,n))}_getCurrent(){return this._wrappers.sort((t,o)=>t.tabbable!==o.tabbable?t.tabbable?-1:1:t.priority-o.priority),this._wrappers[0]}_ensurePosition(){var t,o,r;const n=(t=this._element)===null||t===void 0?void 0:t.get(),i=(o=this._firstDummy)===null||o===void 0?void 0:o.input,s=(r=this._lastDummy)===null||r===void 0?void 0:r.input;if(!(!n||!i||!s))if(this._isOutside){const l=ie.getParentNode(n);if(l){const u=ie.getNextSibling(n);u!==s&&ie.insertBefore(l,s,u),ie.getPreviousElementSibling(n)!==i&&ie.insertBefore(l,i,n)}}else{ie.getLastElementChild(n)!==s&&ie.appendChild(n,s);const l=ie.getFirstElementChild(n);l&&l!==i&&l.parentNode&&ie.insertBefore(l.parentNode,i,l)}}}function Uy(e){let t=null;for(let o=ie.getLastElementChild(e);o;o=ie.getLastElementChild(o))t=o;return t||void 0}function RB(e,t){let o=e,r=null;for(;o&&!r;)r=t?ie.getPreviousElementSibling(o):ie.getNextElementSibling(o),o=ie.getParentElement(o);return r||void 0}function dg(e,t,o,r){const n=e.storageEntry(t,!0);let i=!1;if(!n.aug){if(r===void 0)return i;n.aug={}}if(r===void 0){if(o in n.aug){const s=n.aug[o];delete n.aug[o],s===null?t.removeAttribute(o):t.setAttribute(o,s),i=!0}}else{let s;o in n.aug||(s=t.getAttribute(o)),s!==void 0&&s!==r&&(n.aug[o]=s,r===null?t.removeAttribute(o):t.setAttribute(o,r),i=!0)}return r===void 0&&Object.keys(n.aug).length===0&&(delete n.aug,e.storageEntry(t,!1)),i}function PB(e){var t,o;const r=e.ownerDocument,n=(t=r.defaultView)===null||t===void 0?void 0:t.getComputedStyle(e);return e.offsetParent===null&&r.body!==e&&n?.position!=="fixed"||n?.visibility==="hidden"||n?.position==="fixed"&&(n.display==="none"||((o=e.parentElement)===null||o===void 0?void 0:o.offsetParent)===null&&r.body!==e.parentElement)}function hg(e){return e.tagName==="INPUT"&&!!e.name&&e.type==="radio"}function EB(e){if(!hg(e))return;const t=e.name;let o=Array.from(ie.getElementsByName(e,t)),r;return o=o.filter(n=>hg(n)?(n.checked&&(r=n),!0):!1),{name:t,buttons:new Set(o),checked:r}}function qs(e){var t;return((t=e?.__tabsterDummyContainer)===null||t===void 0?void 0:t.get())||null}function $y(e,t){return JSON.stringify(e)}function TB(e,t){for(const o of Object.keys(t)){const r=t[o];r?e[o]=r:delete e[o]}}function DB(e,t,o){let r;{const n=e.getAttribute(yr);if(n)try{r=JSON.parse(n)}catch{}}r||(r={}),TB(r,t),Object.keys(r).length>0?e.setAttribute(yr,$y(r)):e.removeAttribute(yr)}class Ky extends Ws{constructor(t,o,r,n){super(t,o,sd.Root,n,void 0,!0),this._onDummyInputFocus=i=>{var s;if(i.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const l=this._element.get();if(l){this._setFocused(!0);const u=this._tabster.focusedElement.getFirstOrLastTabbable(i.isFirst,{container:l,ignoreAccessibility:!0});if(u){jr(u);return}}(s=i.input)===null||s===void 0||s.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=t,this._setFocused=r}}class MB extends Dl{constructor(t,o,r,n,i){super(t,o,n),this._isFocused=!1,this._setFocused=d=>{var h;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===d)return;const p=this._element.get();p&&(d?(this._isFocused=!0,(h=this._dummyManager)===null||h===void 0||h.setTabbable(!1),p.dispatchEvent(new uB({element:p}))):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var g;delete this._setFocusedTimer,this._isFocused=!1,(g=this._dummyManager)===null||g===void 0||g.setTabbable(!0),p.dispatchEvent(new dB({element:p}))},0))},this._onFocusIn=d=>{const h=this._tabster.getParent,p=this._element.get();let g=d.composedPath()[0];do{if(g===p){this._setFocused(!0);return}g=g&&h(g)}while(g)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=r;const s=t.getWindow;this.uid=nd(s,o),this._sys=i,(t.controlTab||t.rootDummyInputs)&&this.addDummyInputs();const u=s().document;u.addEventListener(Lo,this._onFocusIn),u.addEventListener(El,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new Ky(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var t;this._onDispose(this);const o=this._tabster.getWindow(),r=o.document;r.removeEventListener(Lo,this._onFocusIn),r.removeEventListener(El,this._onFocusOut),this._setFocusedTimer&&(o.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(t=this._dummyManager)===null||t===void 0||t.dispose(),this._remove()}moveOutWithDefaultAction(t,o){const r=this._dummyManager;if(r)r.moveOutWithDefaultAction(t,o);else{const n=this.getElement();n&&Ky.moveWithPhantomDummy(this._tabster,n,!0,t,o)}}_add(){}_remove(){}}class rt{constructor(t,o){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var r;const n=this._win().document,i=n.body;if(i){this._autoRootUnwait(n);const s=this._autoRoot;if(s)return DB(i,{root:s}),Ay(this._tabster,i),(r=Xt(this._tabster,i))===null||r===void 0?void 0:r.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,n.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=r=>{delete this._roots[r.id]},this._tabster=t,this._win=t.getWindow,this._autoRoot=o,t.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(t){t.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const t=this._win();this._autoRootUnwait(t.document),delete this._autoRoot,Object.keys(this._roots).forEach(o=>{this._roots[o]&&(this._roots[o].dispose(),delete this._roots[o])}),this.rootById={}}createRoot(t,o,r){const n=new MB(this._tabster,t,this._onRootDispose,o,r);return this._roots[n.id]=n,this._forceDummy&&n.addDummyInputs(),n}addDummyInputs(){this._forceDummy=!0;const t=this._roots;for(const o of Object.keys(t))t[o].addDummyInputs()}static getRootByUId(t,o){const r=t().__tabsterInstance;return r&&r.root.rootById[o]}static getTabsterContext(t,o,r={}){var n,i,s,l;if(!o.ownerDocument)return;const{checkRtl:u,referenceElement:d}=r,h=t.getParent;t.drainInitQueue();let p,g,v,b,C=!1,S,k,F,R,P=d||o;const T={};for(;P&&(!p||u);){const M=Xt(t,P);if(u&&F===void 0){const q=P.dir;q&&(F=q.toLowerCase()==="rtl")}if(!M){P=h(P);continue}const O=P.tagName;(M.uncontrolled||O==="IFRAME"||O==="WEBVIEW")&&t.focusable.isVisible(P)&&(R=P),!b&&(!((n=M.focusable)===null||n===void 0)&&n.excludeFromMover)&&!v&&(C=!0);const I=M.modalizer,z=M.groupper,U=M.mover;!g&&I&&(g=I),!v&&z&&(!g||I)&&(g?(!z.isActive()&&z.getProps().tabbability&&g.userId!==((i=t.modalizer)===null||i===void 0?void 0:i.activeId)&&(g=void 0,v=z),k=z):v=z),!b&&U&&(!g||I)&&(!z||P!==o)&&P.contains(o)&&(b=U,S=!!v&&v!==z),M.root&&(p=M.root),!((s=M.focusable)===null||s===void 0)&&s.ignoreKeydown&&Object.assign(T,M.focusable.ignoreKeydown),P=h(P)}if(!p){const M=t.root;M._autoRoot&&!((l=o.ownerDocument)===null||l===void 0)&&l.body&&(p=M._autoRootCreate())}return v&&!b&&(S=!0),p?{root:p,modalizer:g,groupper:v,mover:b,groupperBeforeMover:S,modalizerInGroupper:k,rtl:u?!!F:void 0,uncontrolled:R,excludedFromMover:C,ignoreKeydown:M=>!!T[M.key]}:void 0}static getRoot(t,o){var r;const n=t.getParent;for(let i=o;i;i=n(i)){const s=(r=Xt(t,i))===null||r===void 0?void 0:r.root;if(s)return s}}onRoot(t,o){o?delete this.rootById[t.uid]:this.rootById[t.uid]=t}}class Xy{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(t){const o=this._callbacks;o.indexOf(t)<0&&o.push(t)}subscribeFirst(t){const o=this._callbacks,r=o.indexOf(t);r>=0&&o.splice(r,1),o.unshift(t)}unsubscribe(t){const o=this._callbacks.indexOf(t);o>=0&&this._callbacks.splice(o,1)}setVal(t,o){this._val!==t&&(this._val=t,this._callCallbacks(t,o))}getVal(){return this._val}trigger(t,o){this._callCallbacks(t,o)}_callCallbacks(t,o){this._callbacks.forEach(r=>r(t,o))}}class AB{constructor(t){this._tabster=t}dispose(){}getProps(t){const o=Xt(this._tabster,t);return o&&o.focusable||{}}isFocusable(t,o,r,n){return qy(t,My)&&(o||t.tabIndex!==-1)?(r||this.isVisible(t))&&(n||this.isAccessible(t)):!1}isVisible(t){if(!t.ownerDocument||t.nodeType!==Node.ELEMENT_NODE||PB(t))return!1;const o=t.ownerDocument.body.getBoundingClientRect();return!(o.width===0&&o.height===0)}isAccessible(t){var o;for(let r=t;r;r=ie.getParentElement(r)){const n=Xt(this._tabster,r);if(this._isHidden(r)||!((o=n?.focusable)===null||o===void 0?void 0:o.ignoreAriaDisabled)&&this._isDisabled(r))return!1}return!0}_isDisabled(t){return t.hasAttribute("disabled")}_isHidden(t){var o;const r=t.getAttribute("aria-hidden");return!!(r&&r.toLowerCase()==="true"&&!(!((o=this._tabster.modalizer)===null||o===void 0)&&o.isAugmented(t)))}findFirst(t,o){return this.findElement({...t},o)}findLast(t,o){return this.findElement({isBackward:!0,...t},o)}findNext(t,o){return this.findElement({...t},o)}findPrev(t,o){return this.findElement({...t,isBackward:!0},o)}findDefault(t,o){return this.findElement({...t,acceptCondition:r=>this.isFocusable(r,t.includeProgrammaticallyFocusable)&&!!this.getProps(r).isDefault},o)||null}findAll(t){return this._findElements(!0,t)||[]}findElement(t,o){const r=this._findElements(!1,t,o);return r&&r[0]}_findElements(t,o,r){var n,i,s;const{container:l,currentElement:u=null,includeProgrammaticallyFocusable:d,useActiveModalizer:h,ignoreAccessibility:p,modalizerId:g,isBackward:v,onElement:b}=o;r||(r={});const C=[];let{acceptCondition:S}=o;const k=!!S;if(!l)return null;S||(S=T=>this.isFocusable(T,d,!1,p));const F={container:l,modalizerUserId:g===void 0&&h?(n=this._tabster.modalizer)===null||n===void 0?void 0:n.activeId:g||((s=(i=rt.getTabsterContext(this._tabster,l))===null||i===void 0?void 0:i.modalizer)===null||s===void 0?void 0:s.userId),from:u||l,isBackward:v,isFindAll:t,acceptCondition:S,hasCustomCondition:k,includeProgrammaticallyFocusable:d,ignoreAccessibility:p,cachedGrouppers:{},cachedRadioGroups:{}},R=cg(l.ownerDocument,l,T=>this._acceptElement(T,F));if(!R)return null;const P=T=>{var D,M;const O=(D=F.foundElement)!==null&&D!==void 0?D:F.foundBackward;return O&&C.push(O),t?O&&(F.found=!1,delete F.foundElement,delete F.foundBackward,delete F.fromCtx,F.from=O,b&&!b(O))?!1:!!(O||T):(O&&r&&(r.uncontrolled=(M=rt.getTabsterContext(this._tabster,O))===null||M===void 0?void 0:M.uncontrolled),!!(T&&!O))};if(u||(r.outOfDOMOrder=!0),u&&ie.nodeContains(l,u))R.currentNode=u;else if(v){const T=Uy(l);if(!T)return null;if(this._acceptElement(T,F)===NodeFilter.FILTER_ACCEPT&&!P(!0))return F.skippedFocusable&&(r.outOfDOMOrder=!0),C;R.currentNode=T}do v?R.previousNode():R.nextNode();while(P());return F.skippedFocusable&&(r.outOfDOMOrder=!0),C.length?C:null}_acceptElement(t,o){var r,n,i;if(o.found)return NodeFilter.FILTER_ACCEPT;const s=o.foundBackward;if(s&&(t===s||!ie.nodeContains(s,t)))return o.found=!0,o.foundElement=s,NodeFilter.FILTER_ACCEPT;const l=o.container;if(t===l)return NodeFilter.FILTER_SKIP;if(!ie.nodeContains(l,t)||qs(t)||ie.nodeContains(o.rejectElementsFrom,t))return NodeFilter.FILTER_REJECT;const u=o.currentCtx=rt.getTabsterContext(this._tabster,t);if(!u)return NodeFilter.FILTER_SKIP;if(jy(t))return this.isFocusable(t,void 0,!0,!0)&&(o.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!o.hasCustomCondition&&(t.tagName==="IFRAME"||t.tagName==="WEBVIEW"))return this.isVisible(t)&&((r=u.modalizer)===null||r===void 0?void 0:r.userId)===((n=this._tabster.modalizer)===null||n===void 0?void 0:n.activeId)?(o.found=!0,o.rejectElementsFrom=o.foundElement=t,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!o.ignoreAccessibility&&!this.isAccessible(t))return this.isFocusable(t,!1,!0,!0)&&(o.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let d,h=o.fromCtx;h||(h=o.fromCtx=rt.getTabsterContext(this._tabster,o.from));const p=h?.mover;let g=u.groupper,v=u.mover;if(d=(i=this._tabster.modalizer)===null||i===void 0?void 0:i.acceptElement(t,o),d!==void 0&&(o.skippedFocusable=!0),d===void 0&&(g||v||p)){const b=g?.getElement(),C=p?.getElement();let S=v?.getElement();if(S&&ie.nodeContains(C,S)&&ie.nodeContains(l,C)&&(!b||!v||ie.nodeContains(C,b))&&(v=p,S=C),b){if(b===l||!ie.nodeContains(l,b))g=void 0;else if(!ie.nodeContains(b,t))return NodeFilter.FILTER_REJECT}if(S){if(!ie.nodeContains(l,S))v=void 0;else if(!ie.nodeContains(S,t))return NodeFilter.FILTER_REJECT}g&&v&&(S&&b&&!ie.nodeContains(b,S)?v=void 0:g=void 0),g&&(d=g.acceptElement(t,o)),v&&(d=v.acceptElement(t,o))}if(d===void 0&&(d=o.acceptCondition(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,d===NodeFilter.FILTER_SKIP&&this.isFocusable(t,!1,!0,!0)&&(o.skippedFocusable=!0)),d===NodeFilter.FILTER_ACCEPT&&!o.found){if(!o.isFindAll&&hg(t)&&!t.checked){const b=t.name;let C=o.cachedRadioGroups[b];if(C||(C=EB(t),C&&(o.cachedRadioGroups[b]=C)),C?.checked&&C.checked!==t)return NodeFilter.FILTER_SKIP}o.isBackward?(o.foundBackward=t,d=NodeFilter.FILTER_SKIP):(o.found=!0,o.foundElement=t)}return d}}const Rt={Tab:"Tab",Enter:"Enter",Escape:"Escape",PageUp:"PageUp",PageDown:"PageDown",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"};function _B(e,t){var o;const r=e.getParent;let n=t;do{const i=(o=Xt(e,n))===null||o===void 0?void 0:o.uncontrolled;if(i&&e.uncontrolled.isUncontrolledCompletely(n,!!i.completely))return n;n=r(n)}while(n)}const Zy={[yn.Restorer]:0,[yn.Deloser]:1,[yn.EscapeGroupper]:2};class Pt extends Xy{constructor(t,o){super(),this._init=()=>{const r=this._win(),n=r.document;n.addEventListener(Lo,this._onFocusIn,!0),n.addEventListener(El,this._onFocusOut,!0),r.addEventListener("keydown",this._onKeyDown,!0);const i=ie.getActiveElement(n);i&&i!==n.body&&this._setFocusedElement(i),this.subscribe(this._onChanged)},this._onFocusIn=r=>{const n=r.composedPath()[0];n&&this._setFocusedElement(n,r.detail.relatedTarget,r.detail.isFocusedProgrammatically)},this._onFocusOut=r=>{var n;this._setFocusedElement(void 0,(n=r.detail)===null||n===void 0?void 0:n.originalEvent.relatedTarget)},this._validateFocusedElement=r=>{},this._onKeyDown=r=>{if(r.key!==Rt.Tab||r.ctrlKey)return;const n=this.getVal();if(!n||!n.ownerDocument||n.contentEditable==="true")return;const i=this._tabster,s=i.controlTab,l=rt.getTabsterContext(i,n);if(!l||l.ignoreKeydown(r))return;const u=r.shiftKey,d=Pt.findNextTabbable(i,l,void 0,n,void 0,u,!0),h=l.root.getElement();if(!h)return;const p=d?.element,g=_B(i,n);if(p){const v=d.uncontrolled;if(l.uncontrolled||ie.nodeContains(v,n)){if(!d.outOfDOMOrder&&v===l.uncontrolled||g&&!ie.nodeContains(g,p))return;Ws.addPhantomDummyWithTarget(i,n,u,p);return}if(v&&i.focusable.isVisible(v)||p.tagName==="IFRAME"&&i.focusable.isVisible(p)){h.dispatchEvent(new ti({by:"root",owner:h,next:p,relatedEvent:r}))&&Ws.moveWithPhantomDummy(i,v??p,!1,u,r);return}(s||d?.outOfDOMOrder)&&h.dispatchEvent(new ti({by:"root",owner:h,next:p,relatedEvent:r}))&&(r.preventDefault(),r.stopImmediatePropagation(),jr(p))}else!g&&h.dispatchEvent(new ti({by:"root",owner:h,next:null,relatedEvent:r}))&&l.root.moveOutWithDefaultAction(u,r)},this._onChanged=(r,n)=>{var i,s;if(r)r.dispatchEvent(new iB(n));else{const l=(i=this._lastVal)===null||i===void 0?void 0:i.get();if(l){const u={...n},d=rt.getTabsterContext(this._tabster,l),h=(s=d?.modalizer)===null||s===void 0?void 0:s.userId;h&&(u.modalizerId=h),l.dispatchEvent(new sB(u))}}},this._tabster=t,this._win=o,t.queueInit(this._init)}dispose(){super.dispose();const t=this._win(),o=t.document;o.removeEventListener(Lo,this._onFocusIn,!0),o.removeEventListener(El,this._onFocusOut,!0),t.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged);const r=this._asyncFocus;r&&(t.clearTimeout(r.timeout),delete this._asyncFocus),delete Pt._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(t,o){var r,n;let i=Pt._lastResetElement,s=i&&i.get();s&&ie.nodeContains(o,s)&&delete Pt._lastResetElement,s=(n=(r=t._nextVal)===null||r===void 0?void 0:r.element)===null||n===void 0?void 0:n.get(),s&&ie.nodeContains(o,s)&&delete t._nextVal,i=t._lastVal,s=i&&i.get(),s&&ie.nodeContains(o,s)&&delete t._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var t;let o=(t=this._lastVal)===null||t===void 0?void 0:t.get();return(!o||o&&!ug(o.ownerDocument,o))&&(this._lastVal=o=void 0),o}focus(t,o,r,n){return this._tabster.focusable.isFocusable(t,o,!1,r)?(t.focus({preventScroll:n}),!0):!1}focusDefault(t){const o=this._tabster.focusable.findDefault({container:t});return o?(this._tabster.focusedElement.focus(o),!0):!1}getFirstOrLastTabbable(t,o){var r;const{container:n,ignoreAccessibility:i}=o;let s;if(n){const l=rt.getTabsterContext(this._tabster,n);l&&(s=(r=Pt.findNextTabbable(this._tabster,l,n,void 0,void 0,!t,i))===null||r===void 0?void 0:r.element)}return s&&!ie.nodeContains(n,s)&&(s=void 0),s||void 0}_focusFirstOrLast(t,o){const r=this.getFirstOrLastTabbable(t,o);return r?(this.focus(r,!1,!0),!0):!1}focusFirst(t){return this._focusFirstOrLast(!0,t)}focusLast(t){return this._focusFirstOrLast(!1,t)}resetFocus(t){if(!this._tabster.focusable.isVisible(t))return!1;if(this._tabster.focusable.isFocusable(t,!0,!0,!0))this.focus(t);else{const o=t.getAttribute("tabindex"),r=t.getAttribute("aria-hidden");t.tabIndex=-1,t.setAttribute("aria-hidden","true"),Pt._lastResetElement=new No(this._win,t),this.focus(t,!0,!0),this._setOrRemoveAttribute(t,"tabindex",o),this._setOrRemoveAttribute(t,"aria-hidden",r)}return!0}requestAsyncFocus(t,o,r){const n=this._tabster.getWindow(),i=this._asyncFocus;if(i){if(Zy[t]>Zy[i.source])return;n.clearTimeout(i.timeout)}this._asyncFocus={source:t,callback:o,timeout:n.setTimeout(()=>{this._asyncFocus=void 0,o()},r)}}cancelAsyncFocus(t){const o=this._asyncFocus;o?.source===t&&(this._tabster.getWindow().clearTimeout(o.timeout),this._asyncFocus=void 0)}_setOrRemoveAttribute(t,o,r){r===null?t.removeAttribute(o):t.setAttribute(o,r)}_setFocusedElement(t,o,r){var n,i;if(this._tabster._noop)return;const s={relatedTarget:o};if(t){const u=(n=Pt._lastResetElement)===null||n===void 0?void 0:n.get();if(Pt._lastResetElement=void 0,u===t||jy(t))return;s.isFocusedProgrammatically=r;const d=rt.getTabsterContext(this._tabster,t),h=(i=d?.modalizer)===null||i===void 0?void 0:i.userId;h&&(s.modalizerId=h)}const l=this._nextVal={element:t?new No(this._win,t):void 0,detail:s};t&&t!==this._val&&this._validateFocusedElement(t),this._nextVal===l&&this.setVal(t,s),this._nextVal=void 0}setVal(t,o){super.setVal(t,o),t&&(this._lastVal=new No(this._win,t))}static findNextTabbable(t,o,r,n,i,s,l){const u=r||o.root.getElement();if(!u)return null;let d=null;const h=Pt._isTabbingTimer,p=t.getWindow();h&&p.clearTimeout(h),Pt.isTabbing=!0,Pt._isTabbingTimer=p.setTimeout(()=>{delete Pt._isTabbingTimer,Pt.isTabbing=!1},0);const g=o.modalizer,v=o.groupper,b=o.mover,C=S=>{if(d=S.findNextTabbable(n,i,s,l),n&&!d?.element){const k=S!==g&&ie.getParentElement(S.getElement());if(k){const F=rt.getTabsterContext(t,n,{referenceElement:k});if(F){const R=S.getElement(),P=s?R:R&&Uy(R)||R;P&&(d=Pt.findNextTabbable(t,F,r,P,k,s,l),d&&(d.outOfDOMOrder=!0))}}}};if(v&&b)C(o.groupperBeforeMover?v:b);else if(v)C(v);else if(b)C(b);else if(g)C(g);else{const S={container:u,currentElement:n,referenceElement:i,ignoreAccessibility:l,useActiveModalizer:!0},k={};d={element:t.focusable[s?"findPrev":"findNext"](S,k),outOfDOMOrder:k.outOfDOMOrder,uncontrolled:k.uncontrolled}}return d}}Pt.isTabbing=!1;class IB extends Ws{constructor(t,o,r,n){super(r,t,sd.Groupper,n,!0),this._setHandlers((i,s,l)=>{var u,d;const h=t.get(),p=i.input;if(h&&p){const g=rt.getTabsterContext(r,p);if(g){let v;v=(u=o.findNextTabbable(l||void 0,void 0,s,!0))===null||u===void 0?void 0:u.element,v||(v=(d=Pt.findNextTabbable(r,g,void 0,i.isOutside?p:RB(h,!s),void 0,s,!0))===null||d===void 0?void 0:d.element),v&&jr(v)}}})}}class BB extends Dl{constructor(t,o,r,n,i){super(t,o,n),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=r,t.controlTab||(this.dummyManager=new IB(this._element,this,t,i))}dispose(){var t;this._onDispose(this),this._element.get(),(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(t,o,r,n){const i=this.getElement();if(!i)return null;const s=qs(t)===i;if(!this._shouldTabInside&&t&&ie.nodeContains(i,t)&&!s)return{element:void 0,outOfDOMOrder:!0};const l=this.getFirst(!0);if(!t||!ie.nodeContains(i,t)||s)return{element:l,outOfDOMOrder:!0};const u=this._tabster;let d=null,h=!1,p;if(this._shouldTabInside&&l){const g={container:i,currentElement:t,referenceElement:o,ignoreAccessibility:n,useActiveModalizer:!0},v={};d=u.focusable[r?"findPrev":"findNext"](g,v),h=!!v.outOfDOMOrder,!d&&this._props.tabbability===rd.LimitedTrapFocus&&(d=u.focusable[r?"findLast":"findFirst"]({container:i,ignoreAccessibility:n,useActiveModalizer:!0},v),h=!0),p=v.uncontrolled}return{element:d,uncontrolled:p,outOfDOMOrder:h}}makeTabbable(t){this._shouldTabInside=t||!this._props.tabbability}isActive(t){var o;const r=this.getElement()||null;let n=!0;for(let s=ie.getParentElement(r);s;s=ie.getParentElement(s)){const l=(o=Xt(this._tabster,s))===null||o===void 0?void 0:o.groupper;l&&(l._shouldTabInside||(n=!1))}let i=n?this._props.tabbability?this._shouldTabInside:!1:void 0;if(i&&t){const s=this._tabster.focusedElement.getFocusedElement();s&&(i=s!==this.getFirst(!0))}return i}getFirst(t){var o;const r=this.getElement();let n;if(r){if(t&&this._tabster.focusable.isFocusable(r))return r;n=(o=this._first)===null||o===void 0?void 0:o.get(),n||(n=this._tabster.focusable.findFirst({container:r,useActiveModalizer:!0})||void 0,n&&this.setFirst(n))}return n}setFirst(t){t?this._first=new No(this._tabster.getWindow,t):delete this._first}acceptElement(t,o){const r=o.cachedGrouppers,n=ie.getParentElement(this.getElement()),i=n&&rt.getTabsterContext(this._tabster,n),s=i?.groupper,l=i?.groupperBeforeMover?s:void 0;let u;const d=g=>{let v=r[g.id],b;return v?b=v.isActive:(b=this.isActive(!0),v=r[g.id]={isActive:b}),b};if(l&&(u=l.getElement(),!d(l)&&u&&o.container!==u&&ie.nodeContains(o.container,u)))return o.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const h=d(this),p=this.getElement();if(p&&h!==!0){if(p===t&&s&&(u||(u=s.getElement()),u&&!d(s)&&ie.nodeContains(o.container,u)&&u!==o.container)||p!==t&&ie.nodeContains(p,t))return o.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const g=r[this.id];let v;if("first"in g?v=g.first:v=g.first=this.getFirst(!0),v&&o.acceptCondition(v))return o.rejectElementsFrom=p,o.skippedFocusable=!0,v!==o.from?(o.found=!0,o.foundElement=v,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class OB{constructor(t,o){this._current={},this._grouppers={},this._init=()=>{const r=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus);const n=r.document,i=ie.getActiveElement(n);i&&this._onFocus(i),n.addEventListener("mousedown",this._onMouseDown,!0),r.addEventListener("keydown",this._onKeyDown,!0),r.addEventListener(ng,this._onMoveFocus)},this._onGroupperDispose=r=>{delete this._grouppers[r.id]},this._onFocus=r=>{r&&this._updateCurrent(r)},this._onMouseDown=r=>{let n=r.target;for(;n&&!this._tabster.focusable.isFocusable(n);)n=this._tabster.getParent(n);n&&this._updateCurrent(n)},this._onKeyDown=r=>{if(r.key!==Rt.Enter&&r.key!==Rt.Escape||r.ctrlKey||r.altKey||r.shiftKey||r.metaKey)return;const n=this._tabster.focusedElement.getFocusedElement();n&&this.handleKeyPress(n,r)},this._onMoveFocus=r=>{var n;const i=r.composedPath()[0],s=(n=r.detail)===null||n===void 0?void 0:n.action;i&&s!==void 0&&!r.defaultPrevented&&(s===Tl.Enter?this._enterGroupper(i):this._escapeGroupper(i),r.stopImmediatePropagation())},this._tabster=t,this._win=o,t.queueInit(this._init)}dispose(){const t=this._win();this._tabster.focusedElement.cancelAsyncFocus(yn.EscapeGroupper),this._current={},this._updateTimer&&(t.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),t.document.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener(ng,this._onMoveFocus),Object.keys(this._grouppers).forEach(o=>{this._grouppers[o]&&(this._grouppers[o].dispose(),delete this._grouppers[o])})}createGroupper(t,o,r){const n=this._tabster,i=new BB(n,t,this._onGroupperDispose,o,r);this._grouppers[i.id]=i;const s=n.focusedElement.getFocusedElement();return s&&ie.nodeContains(t,s)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,s===n.focusedElement.getFocusedElement()&&this._updateCurrent(s)},0)),i}forgetCurrentGrouppers(){this._current={}}_updateCurrent(t){var o;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const r=this._tabster,n={};for(let i=r.getParent(t);i;i=r.getParent(i)){const s=(o=Xt(r,i))===null||o===void 0?void 0:o.groupper;if(s){n[s.id]=!0,this._current[s.id]=s;const l=s.isActive()||t!==i&&(!s.getProps().delegated||s.getFirst(!1)!==t);s.makeTabbable(l)}}for(const i of Object.keys(this._current)){const s=this._current[i];s.id in n||(s.makeTabbable(!1),s.setFirst(void 0),delete this._current[i])}}_enterGroupper(t,o){const r=this._tabster,n=rt.getTabsterContext(r,t),i=n?.groupper||n?.modalizerInGroupper,s=i?.getElement();if(i&&s&&(t===s||i.getProps().delegated&&t===i.getFirst(!1))){const l=r.focusable.findNext({container:s,currentElement:t,useActiveModalizer:!0});if(l&&(!o||o&&s.dispatchEvent(new ti({by:"groupper",owner:s,next:l,relatedEvent:o}))))return o&&(o.preventDefault(),o.stopImmediatePropagation()),l.focus(),l}return null}_escapeGroupper(t,o,r){const n=this._tabster,i=rt.getTabsterContext(n,t);let s=i?.groupper||i?.modalizerInGroupper;const l=s?.getElement();if(s&&l&&ie.nodeContains(l,t)){let u;if(t!==l||r)u=s.getFirst(!0);else{const d=ie.getParentElement(l),h=d?rt.getTabsterContext(n,d):void 0;s=h?.groupper,u=s?.getFirst(!0)}if(u&&(!o||o&&l.dispatchEvent(new ti({by:"groupper",owner:l,next:u,relatedEvent:o}))))return s&&s.makeTabbable(!1),u.focus(),u}return null}moveFocus(t,o){return o===Tl.Enter?this._enterGroupper(t):this._escapeGroupper(t)}handleKeyPress(t,o,r){const n=this._tabster,i=rt.getTabsterContext(n,t);if(i&&(i?.groupper||i?.modalizerInGroupper)){if(n.focusedElement.cancelAsyncFocus(yn.EscapeGroupper),i.ignoreKeydown(o))return;if(o.key===Rt.Enter)this._enterGroupper(t,o);else if(o.key===Rt.Escape){const s=n.focusedElement.getFocusedElement();n.focusedElement.requestAsyncFocus(yn.EscapeGroupper,()=>{s!==n.focusedElement.getFocusedElement()&&(r&&!s||!r)||this._escapeGroupper(t,o,r)},0)}}}}class LB extends Xy{constructor(t){super(),this._onChange=o=>{this.setVal(o,void 0)},this._keyborg=td(t()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),od(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(t){var o;(o=this._keyborg)===null||o===void 0||o.setVal(t)}isNavigatingWithKeyboard(){var t;return!!(!((t=this._keyborg)===null||t===void 0)&&t.isNavigatingWithKeyboard())}}let NB=0;const fg="aria-hidden";class zB extends Ws{constructor(t,o,r){super(o,t,sd.Modalizer,r),this._setHandlers((n,i)=>{var s,l;const u=t.get(),d=u&&((s=rt.getRoot(o,u))===null||s===void 0?void 0:s.getElement()),h=n.input;let p;if(d&&h){const g=qs(h),v=rt.getTabsterContext(o,g||h);v&&(p=(l=Pt.findNextTabbable(o,v,d,h,void 0,i,!0))===null||l===void 0?void 0:l.element),p&&jr(p)}})}}class HB extends Dl{constructor(t,o,r,n,i,s){super(t,o,n),this._wasFocused=0,this.userId=n.id,this._onDispose=r,this._activeElements=s,t.controlTab||(this.dummyManager=new zB(this._element,t,i))}makeActive(t){if(this._isActive!==t){this._isActive=t;const o=this.getElement();if(o){const r=this._activeElements,n=r.map(i=>i.get()).indexOf(o);t?n<0&&r.push(new No(this._tabster.getWindow,o)):n>=0&&r.splice(n,1)}this._dispatchEvent(t)}}focused(t){return t||(this._wasFocused=++NB),this._wasFocused}setProps(t){t.id&&(this.userId=t.id),this._props={...t}}dispose(){var t;this.makeActive(!1),this._onDispose(this),(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(t){return ie.nodeContains(this.getElement(),t)}findNextTabbable(t,o,r,n){var i,s;if(!this.getElement())return null;const u=this._tabster;let d=null,h=!1,p;const g=t&&((i=rt.getRoot(u,t))===null||i===void 0?void 0:i.getElement());if(g){const v={container:g,currentElement:t,referenceElement:o,ignoreAccessibility:n,useActiveModalizer:!0},b={};d=u.focusable[r?"findPrev":"findNext"](v,b),!d&&this._props.isTrapped&&(!((s=u.modalizer)===null||s===void 0)&&s.activeId)?(d=u.focusable[r?"findLast":"findFirst"]({container:g,ignoreAccessibility:n,useActiveModalizer:!0},b),d===null&&(d=t),h=!0):h=!!b.outOfDOMOrder,p=b.uncontrolled}return{element:d,uncontrolled:p,outOfDOMOrder:h}}_dispatchEvent(t,o){const r=this.getElement();let n=!1;if(r){const i=o?this._activeElements.map(s=>s.get()):[r];for(const s of i)if(s){const l={id:this.userId,element:r},u=t?new lB(l):new cB(l);s.dispatchEvent(u),u.defaultPrevented&&(n=!0)}}return n}_remove(){}}class VB{constructor(t,o,r){this._onModalizerDispose=i=>{const s=i.id,l=i.userId,u=this._parts[l];if(delete this._modalizers[s],u&&(delete u[s],Object.keys(u).length===0)){delete this._parts[l];const d=this._activationHistory,h=[];let p;for(let g=d.length;g--;){const v=d[g];v!==l&&v!==p&&(p=v,(v||h.length>0)&&h.unshift(v))}if(this._activationHistory=h,this.activeId===l){const g=h[0],v=g?Object.values(this._parts[g])[0]:void 0;this.setActive(v)}}},this._onKeyDown=i=>{var s;if(i.key!==Rt.Escape)return;const l=this._tabster,u=l.focusedElement.getFocusedElement();if(u){const d=rt.getTabsterContext(l,u),h=d?.modalizer;if(d&&!d.groupper&&h?.isActive()&&!d.ignoreKeydown(i)){const p=h.userId;if(p){const g=this._parts[p];if(g){const v=Object.keys(g).map(b=>{var C;const S=g[b],k=S.getElement();let F;return k&&(F=(C=Xt(l,k))===null||C===void 0?void 0:C.groupper),S&&k&&F?{el:k,focusedSince:S.focused(!0)}:{focusedSince:0}}).filter(b=>b.focusedSince>0).sort((b,C)=>b.focusedSince>C.focusedSince?-1:b.focusedSince<C.focusedSince?1:0);if(v.length){const b=v[0].el;b&&((s=l.groupper)===null||s===void 0||s.handleKeyPress(b,i,!0))}}}}}},this._onFocus=(i,s)=>{var l;const u=this._tabster,d=i&&rt.getTabsterContext(u,i);if(!d||!i)return;const h=this._augMap;for(let b=i;b;b=ie.getParentElement(b))h.has(b)&&(h.delete(b),dg(u,b,fg));let p=d.modalizer;const g=Xt(u,i),v=g?.modalizer;if(v&&(v.focused(),v.userId===this.activeId&&g.groupper)){const b=u.getParent(i),C=b&&((l=rt.getTabsterContext(u,b))===null||l===void 0?void 0:l.modalizer);if(C)p=C;else{this.setActive(void 0);return}}if(p?.focused(),p?.userId===this.activeId){this.currentIsOthersAccessible=p?.getProps().isOthersAccessible;return}if(s.isFocusedProgrammatically||this.currentIsOthersAccessible||p?.getProps().isAlwaysAccessible)this.setActive(p);else{const b=this._win();b.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=b.setTimeout(()=>this._restoreModalizerFocus(i),100)}},this._tabster=t,this._win=t.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=o,this._accessibleCheck=r,this._activationHistory=[],this.activeElements=[],t.controlTab||t.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),t.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const t=this._win();t.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(o=>{this._modalizers[o]&&(this._modalizers[o].dispose(),delete this._modalizers[o])}),t.clearTimeout(this._restoreModalizerFocusTimer),t.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(t,o,r){var n;const i=new HB(this._tabster,t,this._onModalizerDispose,o,r,this.activeElements),s=i.id,l=o.id;this._modalizers[s]=i;let u=this._parts[l];u||(u=this._parts[l]={}),u[s]=i;const d=(n=this._tabster.focusedElement.getFocusedElement())!==null&&n!==void 0?n:null;return t!==d&&ie.nodeContains(t,d)&&(l!==this.activeId?this.setActive(i):i.makeActive(!0)),i}isAugmented(t){return this._augMap.has(t)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(t){const o=t?.userId,r=this.activeId;if(r===o)return;if(this.activeId=o,r){const i=this._parts[r];if(i)for(const s of Object.keys(i))i[s].makeActive(!1)}if(o){const i=this._parts[o];if(i)for(const s of Object.keys(i))i[s].makeActive(!0)}this.currentIsOthersAccessible=t?.getProps().isOthersAccessible,this.hiddenUpdate();const n=this._activationHistory;n[0]!==o&&(o!==void 0||n.length>0)&&n.unshift(o)}focus(t,o,r){const n=this._tabster,i=rt.getTabsterContext(n,t),s=i?.modalizer;if(s){this.setActive(s);const l=s.getProps(),u=s.getElement();if(u){if(o===void 0&&(o=l.isNoFocusFirst),!o&&n.keyboardNavigation.isNavigatingWithKeyboard()&&n.focusedElement.focusFirst({container:u})||(r===void 0&&(r=l.isNoFocusDefault),!r&&n.focusedElement.focusDefault(u)))return!0;n.focusedElement.resetFocus(u)}}return!1}activate(t){var o;const r=t?(o=rt.getTabsterContext(this._tabster,t))===null||o===void 0?void 0:o.modalizer:void 0;return!t||r?(this.setActive(r),!0):!1}acceptElement(t,o){var r;const n=o.modalizerUserId,i=(r=o.currentCtx)===null||r===void 0?void 0:r.modalizer;if(n)for(const l of this.activeElements){const u=l.get();if(u&&(ie.nodeContains(t,u)||u===t))return NodeFilter.FILTER_SKIP}const s=n===i?.userId||!n&&i?.getProps().isAlwaysAccessible?void 0:NodeFilter.FILTER_SKIP;return s!==void 0&&(o.skippedFocusable=!0),s}_hiddenUpdate(){var t;const o=this._tabster,r=o.getWindow().document.body,n=this.activeId,i=this._parts,s=[],l=[],u=this._alwaysAccessibleSelector,d=u?Array.from(ie.querySelectorAll(r,u)):[],h=[];for(const k of Object.keys(i)){const F=i[k];for(const R of Object.keys(F)){const P=F[R],T=P.getElement(),M=P.getProps().isAlwaysAccessible;T&&(k===n?(h.push(T),this.currentIsOthersAccessible||s.push(T)):M?d.push(T):l.push(T))}}const p=this._augMap,g=s.length>0?[...s,...d]:void 0,v=[],b=new WeakMap,C=(k,F)=>{var R;const P=k.tagName;if(P==="SCRIPT"||P==="STYLE")return;let T=!1;p.has(k)?F?T=!0:(p.delete(k),dg(o,k,fg)):F&&!(!((R=this._accessibleCheck)===null||R===void 0)&&R.call(this,k,h))&&dg(o,k,fg,"true")&&(p.set(k,!0),T=!0),T&&(v.push(new No(o.getWindow,k)),b.set(k,!0))},S=k=>{var F;for(let R=ie.getFirstElementChild(k);R;R=ie.getNextElementSibling(R)){let P=!1,T=!1,D=!1;if(g){const M=o.getParent(R);for(const O of g){if(R===O){P=!0;break}if(ie.nodeContains(R,O)){T=!0;break}else ie.nodeContains(O,M)&&(D=!0)}T||!((F=R.__tabsterElementFlags)===null||F===void 0)&&F.noDirectAriaHidden?S(R):!P&&!D&&C(R,!0)}else C(R,!1)}};g||d.forEach(k=>C(k,!1)),l.forEach(k=>C(k,!0)),r&&S(r),(t=this._aug)===null||t===void 0||t.map(k=>k.get()).forEach(k=>{k&&!b.get(k)&&C(k,!1)}),this._aug=v,this._augMap=b}_restoreModalizerFocus(t){var o;const r=t?.ownerDocument;if(!t||!r)return;const n=this._tabster.focusedElement.getFocusedElement(),i=n&&((o=rt.getTabsterContext(this._tabster,n))===null||o===void 0?void 0:o.modalizer);if(!n||n&&i?.userId===this.activeId)return;const s=this._tabster,l=rt.getTabsterContext(s,t),u=l?.modalizer,d=this.activeId;if(!u&&!d||u&&d===u.userId)return;const h=l?.root.getElement();if(h){let p=s.focusable.findFirst({container:h,useActiveModalizer:!0});if(p){if(t.compareDocumentPosition(p)&document.DOCUMENT_POSITION_PRECEDING&&(p=s.focusable.findLast({container:h,useActiveModalizer:!0}),!p))throw new Error("Something went wrong.");s.focusedElement.focus(p);return}}t.blur()}}const GB=["input","textarea","*[contenteditable]"].join(", ");class jB extends Ws{constructor(t,o,r,n){super(o,t,sd.Mover,n),this._onFocusDummyInput=i=>{var s,l;const u=this._element.get(),d=i.input;if(u&&d){const h=rt.getTabsterContext(this._tabster,u);let p;h&&(p=(s=Pt.findNextTabbable(this._tabster,h,void 0,d,void 0,!i.isFirst,!0))===null||s===void 0?void 0:s.element);const g=(l=this._getMemorized())===null||l===void 0?void 0:l.get();g&&this._tabster.focusable.isFocusable(g)&&(p=g),p&&jr(p)}},this._tabster=o,this._getMemorized=r,this._setHandlers(this._onFocusDummyInput)}}const pg=1,Yy=2,Qy=3;class WB extends Dl{constructor(t,o,r,n,i){var s;super(t,o,n),this._visible={},this._onIntersection=u=>{for(const d of u){const h=d.target,p=nd(this._win,h);let g,v=this._fullyVisible;if(d.intersectionRatio>=.25?(g=d.intersectionRatio>=.75?ei.Visible:ei.PartiallyVisible,g===ei.Visible&&(v=p)):g=ei.Invisible,this._visible[p]!==g){g===void 0?(delete this._visible[p],v===p&&delete this._fullyVisible):(this._visible[p]=g,this._fullyVisible=v);const b=this.getState(h);b&&h.dispatchEvent(new Iy(b))}}},this._win=t.getWindow,this.visibilityTolerance=(s=n.visibilityTolerance)!==null&&s!==void 0?s:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=r;const l=()=>n.memorizeCurrent?this._current:void 0;t.controlTab||(this.dummyManager=new jB(this._element,t,l,i))}dispose(){var t;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const o=this._win();this._setCurrentTimer&&(o.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(o.clearTimeout(this._updateTimer),delete this._updateTimer),(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager}setCurrent(t){t?this._current=new No(this._win,t):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var o;delete this._setCurrentTimer;const r=[];this._current!==this._prevCurrent&&(r.push(this._current),r.push(this._prevCurrent),this._prevCurrent=this._current);for(const n of r){const i=n?.get();if(i&&((o=this._allElements)===null||o===void 0?void 0:o.get(i))===this){const s=this._props;if(i&&(s.visibilityAware!==void 0||s.trackState)){const l=this.getState(i);l&&i.dispatchEvent(new Iy(l))}}}}))}getCurrent(){var t;return((t=this._current)===null||t===void 0?void 0:t.get())||null}findNextTabbable(t,o,r,n){const i=this.getElement(),s=i&&qs(t)===i;if(!i)return null;let l=null,u=!1,d;if(this._props.tabbable||s||t&&!ie.nodeContains(i,t)){const h={currentElement:t,referenceElement:o,container:i,ignoreAccessibility:n,useActiveModalizer:!0},p={};l=this._tabster.focusable[r?"findPrev":"findNext"](h,p),u=!!p.outOfDOMOrder,d=p.uncontrolled}return{element:l,uncontrolled:d,outOfDOMOrder:u}}acceptElement(t,o){var r,n;if(!Pt.isTabbing)return!((r=o.currentCtx)===null||r===void 0)&&r.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:i,visibilityAware:s,hasDefault:l=!0}=this._props,u=this.getElement();if(u&&(i||s||l)&&(!ie.nodeContains(u,o.from)||qs(o.from)===u)){let d;if(i){const h=(n=this._current)===null||n===void 0?void 0:n.get();h&&o.acceptCondition(h)&&(d=h)}if(!d&&l&&(d=this._tabster.focusable.findDefault({container:u,useActiveModalizer:!0})),!d&&s&&(d=this._tabster.focusable.findElement({container:u,useActiveModalizer:!0,isBackward:o.isBackward,acceptCondition:h=>{var p;const g=nd(this._win,h),v=this._visible[g];return u!==h&&!!(!((p=this._allElements)===null||p===void 0)&&p.get(h))&&o.acceptCondition(h)&&(v===ei.Visible||v===ei.PartiallyVisible&&(s===ei.PartiallyVisible||!this._fullyVisible))}})),d)return o.found=!0,o.foundElement=d,o.rejectElementsFrom=u,o.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const t=this.getElement();if(this._unobserve||!t||typeof MutationObserver>"u")return;const o=this._win(),r=this._allElements=new WeakMap,n=this._tabster.focusable;let i=this._updateQueue=[];const s=ie.createMutationObserver(v=>{for(const b of v){const C=b.target,S=b.removedNodes,k=b.addedNodes;if(b.type==="attributes")b.attributeName==="tabindex"&&i.push({element:C,type:Yy});else{for(let F=0;F<S.length;F++)i.push({element:S[F],type:Qy});for(let F=0;F<k.length;F++)i.push({element:k[F],type:pg})}}p()}),l=(v,b)=>{var C,S;const k=r.get(v);k&&b&&((C=this._intersectionObserver)===null||C===void 0||C.unobserve(v),r.delete(v)),!k&&!b&&(r.set(v,this),(S=this._intersectionObserver)===null||S===void 0||S.observe(v))},u=v=>{const b=n.isFocusable(v);r.get(v)?b||l(v,!0):b&&l(v)},d=v=>{const{mover:b}=g(v);if(b&&b!==this)if(b.getElement()===v&&n.isFocusable(v))l(v);else return;const C=cg(o.document,v,S=>{const{mover:k,groupper:F}=g(S);if(k&&k!==this)return NodeFilter.FILTER_REJECT;const R=F?.getFirst(!0);return F&&F.getElement()!==S&&R&&R!==S?NodeFilter.FILTER_REJECT:(n.isFocusable(S)&&l(S),NodeFilter.FILTER_SKIP)});if(C)for(C.currentNode=v;C.nextNode(););},h=v=>{r.get(v)&&l(v,!0);for(let C=ie.getFirstElementChild(v);C;C=ie.getNextElementSibling(C))h(C)},p=()=>{!this._updateTimer&&i.length&&(this._updateTimer=o.setTimeout(()=>{delete this._updateTimer;for(const{element:v,type:b}of i)switch(b){case Yy:u(v);break;case pg:d(v);break;case Qy:h(v);break}i=this._updateQueue=[]},0))},g=v=>{const b={};for(let C=v;C;C=ie.getParentElement(C)){const S=Xt(this._tabster,C);if(S&&(S.groupper&&!b.groupper&&(b.groupper=S.groupper),S.mover)){b.mover=S.mover;break}}return b};i.push({element:t,type:pg}),p(),s.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{s.disconnect()}}getState(t){const o=nd(this._win,t);if(o in this._visible){const r=this._visible[o]||ei.Invisible;return{isCurrent:this._current?this._current.get()===t:void 0,visibility:r}}}}function qB(e,t,o,r,n,i,s,l){const u=o<n?n-o:s<e?e-s:0,d=r<i?i-r:l<t?t-l:0;return u===0?d:d===0?u:Math.sqrt(u*u+d*d)}class UB{constructor(t,o){this._init=()=>{const r=this._win();r.addEventListener("keydown",this._onKeyDown,!0),r.addEventListener(rg,this._onMoveFocus),r.addEventListener(_y,this._onMemorizedElement),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=r=>{delete this._movers[r.id]},this._onFocus=r=>{var n;let i=r,s=r;for(let l=ie.getParentElement(r);l;l=ie.getParentElement(l)){const u=(n=Xt(this._tabster,l))===null||n===void 0?void 0:n.mover;u&&(u.setCurrent(s),i=void 0),!i&&this._tabster.focusable.isFocusable(l)&&(i=s=l)}},this._onKeyDown=async r=>{var n;if(this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(n=this._ignoredInputResolve)===null||n===void 0||n.call(this,!1),r.ctrlKey||r.altKey||r.shiftKey||r.metaKey)return;const i=r.key;let s;if(i===Rt.ArrowDown?s=Ft.ArrowDown:i===Rt.ArrowRight?s=Ft.ArrowRight:i===Rt.ArrowUp?s=Ft.ArrowUp:i===Rt.ArrowLeft?s=Ft.ArrowLeft:i===Rt.PageDown?s=Ft.PageDown:i===Rt.PageUp?s=Ft.PageUp:i===Rt.Home?s=Ft.Home:i===Rt.End&&(s=Ft.End),!s)return;const l=this._tabster.focusedElement.getFocusedElement();!l||await this._isIgnoredInput(l,i)||this._moveFocus(l,s,r)},this._onMoveFocus=r=>{var n;const i=r.composedPath()[0],s=(n=r.detail)===null||n===void 0?void 0:n.key;i&&s!==void 0&&!r.defaultPrevented&&(this._moveFocus(i,s),r.stopImmediatePropagation())},this._onMemorizedElement=r=>{var n;const i=r.composedPath()[0];let s=(n=r.detail)===null||n===void 0?void 0:n.memorizedElement;if(i){const l=rt.getTabsterContext(this._tabster,i),u=l?.mover;u&&(s&&!ie.nodeContains(u.getElement(),s)&&(s=void 0),u.setCurrent(s),r.stopImmediatePropagation())}},this._tabster=t,this._win=o,this._movers={},t.queueInit(this._init)}dispose(){var t;const o=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(t=this._ignoredInputResolve)===null||t===void 0||t.call(this,!1),this._ignoredInputTimer&&(o.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),o.removeEventListener("keydown",this._onKeyDown,!0),o.removeEventListener(rg,this._onMoveFocus),o.removeEventListener(_y,this._onMemorizedElement),Object.keys(this._movers).forEach(r=>{this._movers[r]&&(this._movers[r].dispose(),delete this._movers[r])})}createMover(t,o,r){const n=new WB(this._tabster,t,this._onMoverDispose,o,r);return this._movers[n.id]=n,n}moveFocus(t,o){return this._moveFocus(t,o)}_moveFocus(t,o,r){var n,i;const s=this._tabster,l=rt.getTabsterContext(s,t,{checkRtl:!0});if(!l||!l.mover||l.excludedFromMover||r&&l.ignoreKeydown(r))return null;const u=l.mover,d=u.getElement();if(l.groupperBeforeMover){const O=l.groupper;if(O&&!O.isActive(!0)){for(let I=ie.getParentElement(O.getElement());I&&I!==d;I=ie.getParentElement(I))if(!((i=(n=Xt(s,I))===null||n===void 0?void 0:n.groupper)===null||i===void 0)&&i.isActive(!0))return null}else return null}if(!d)return null;const h=s.focusable,p=u.getProps(),g=p.direction||Sr.Both,v=g===Sr.Both,b=v||g===Sr.Vertical,C=v||g===Sr.Horizontal,S=g===Sr.GridLinear,k=S||g===Sr.Grid,F=p.cyclic;let R,P,T,D=0,M=0;if(k&&(T=t.getBoundingClientRect(),D=Math.ceil(T.left),M=Math.floor(T.right)),l.rtl&&(o===Ft.ArrowRight?o=Ft.ArrowLeft:o===Ft.ArrowLeft&&(o=Ft.ArrowRight)),o===Ft.ArrowDown&&b||o===Ft.ArrowRight&&(C||k))if(R=h.findNext({currentElement:t,container:d,useActiveModalizer:!0}),R&&k){const O=Math.ceil(R.getBoundingClientRect().left);!S&&M>O&&(R=void 0)}else!R&&F&&(R=h.findFirst({container:d,useActiveModalizer:!0}));else if(o===Ft.ArrowUp&&b||o===Ft.ArrowLeft&&(C||k))if(R=h.findPrev({currentElement:t,container:d,useActiveModalizer:!0}),R&&k){const O=Math.floor(R.getBoundingClientRect().right);!S&&O>D&&(R=void 0)}else!R&&F&&(R=h.findLast({container:d,useActiveModalizer:!0}));else if(o===Ft.Home)k?h.findElement({container:d,currentElement:t,useActiveModalizer:!0,isBackward:!0,acceptCondition:O=>{var I;if(!h.isFocusable(O))return!1;const z=Math.ceil((I=O.getBoundingClientRect().left)!==null&&I!==void 0?I:0);return O!==t&&D<=z?!0:(R=O,!1)}}):R=h.findFirst({container:d,useActiveModalizer:!0});else if(o===Ft.End)k?h.findElement({container:d,currentElement:t,useActiveModalizer:!0,acceptCondition:O=>{var I;if(!h.isFocusable(O))return!1;const z=Math.ceil((I=O.getBoundingClientRect().left)!==null&&I!==void 0?I:0);return O!==t&&D>=z?!0:(R=O,!1)}}):R=h.findLast({container:d,useActiveModalizer:!0});else if(o===Ft.PageUp){if(h.findElement({currentElement:t,container:d,useActiveModalizer:!0,isBackward:!0,acceptCondition:O=>h.isFocusable(O)?Vy(this._win,O,u.visibilityTolerance)?(R=O,!1):!0:!1}),k&&R){const O=Math.ceil(R.getBoundingClientRect().left);h.findElement({currentElement:R,container:d,useActiveModalizer:!0,acceptCondition:I=>{if(!h.isFocusable(I))return!1;const z=Math.ceil(I.getBoundingClientRect().left);return D<z||O>=z?!0:(R=I,!1)}})}P=!1}else if(o===Ft.PageDown){if(h.findElement({currentElement:t,container:d,useActiveModalizer:!0,acceptCondition:O=>h.isFocusable(O)?Vy(this._win,O,u.visibilityTolerance)?(R=O,!1):!0:!1}),k&&R){const O=Math.ceil(R.getBoundingClientRect().left);h.findElement({currentElement:R,container:d,useActiveModalizer:!0,isBackward:!0,acceptCondition:I=>{if(!h.isFocusable(I))return!1;const z=Math.ceil(I.getBoundingClientRect().left);return D>z||O<=z?!0:(R=I,!1)}})}P=!0}else if(k){const O=o===Ft.ArrowUp,I=D,z=Math.ceil(T.top),U=M,q=Math.floor(T.bottom);let A,K,$=0;h.findAll({container:d,currentElement:t,isBackward:O,onElement:Z=>{const W=Z.getBoundingClientRect(),_=Math.ceil(W.left),V=Math.ceil(W.top),j=Math.floor(W.right),L=Math.floor(W.bottom);if(O&&z<L||!O&&q>V)return!0;const N=Math.ceil(Math.min(U,j))-Math.floor(Math.max(I,_)),Y=Math.ceil(Math.min(U-I,j-_));if(N>0&&Y>=N){const ne=N/Y;ne>$&&(A=Z,$=ne)}else if($===0){const ne=qB(I,z,U,q,_,V,j,L);(K===void 0||ne<K)&&(K=ne,A=Z)}else if($>0)return!1;return!0}}),R=A}return R&&(!r||r&&d.dispatchEvent(new ti({by:"mover",owner:d,next:R,relatedEvent:r})))?(P!==void 0&&bB(this._win,R,P),r&&(r.preventDefault(),r.stopImmediatePropagation()),jr(R),R):null}async _isIgnoredInput(t,o){if(t.getAttribute("aria-expanded")==="true"&&(t.hasAttribute("aria-activedescendant")||t.getAttribute("role")==="combobox"))return!0;if(qy(t,GB)){let r=0,n=0,i=0,s;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"){const l=t.type;if(i=(t.value||"").length,l==="email"||l==="number"){if(i){const d=ie.getSelection(t);if(d){const h=d.toString().length,p=o===Rt.ArrowLeft||o===Rt.ArrowUp;if(d.modify("extend",p?"backward":"forward","character"),h!==d.toString().length)return d.modify("extend",p?"forward":"backward","character"),!0;i=0}}}else{const d=t.selectionStart;if(d===null)return l==="hidden";r=d||0,n=t.selectionEnd||0}}else t.contentEditable==="true"&&(s=new(yB(this._win))(l=>{this._ignoredInputResolve=v=>{delete this._ignoredInputResolve,l(v)};const u=this._win();this._ignoredInputTimer&&u.clearTimeout(this._ignoredInputTimer);const{anchorNode:d,focusNode:h,anchorOffset:p,focusOffset:g}=ie.getSelection(t)||{};this._ignoredInputTimer=u.setTimeout(()=>{var v,b,C;delete this._ignoredInputTimer;const{anchorNode:S,focusNode:k,anchorOffset:F,focusOffset:R}=ie.getSelection(t)||{};if(S!==d||k!==h||F!==p||R!==g){(v=this._ignoredInputResolve)===null||v===void 0||v.call(this,!1);return}if(r=F||0,n=R||0,i=((b=t.textContent)===null||b===void 0?void 0:b.length)||0,S&&k&&ie.nodeContains(t,S)&&ie.nodeContains(t,k)&&S!==t){let P=!1;const T=D=>{if(D===S)P=!0;else if(D===k)return!0;const M=D.textContent;if(M&&!ie.getFirstChild(D)){const I=M.length;P?k!==S&&(n+=I):(r+=I,n+=I)}let O=!1;for(let I=ie.getFirstChild(D);I&&!O;I=I.nextSibling)O=T(I);return O};T(t)}(C=this._ignoredInputResolve)===null||C===void 0||C.call(this,!0)},0)}));if(s&&!await s||r!==n||r>0&&(o===Rt.ArrowLeft||o===Rt.ArrowUp||o===Rt.Home)||r<i&&(o===Rt.ArrowRight||o===Rt.ArrowDown||o===Rt.End))return!0}return!1}}function $B(e,t,o,r){if(typeof MutationObserver>"u")return()=>{};const n=t.getWindow;let i;const s=h=>{var p,g,v,b,C;const S=new Set;for(const k of h){const F=k.target,R=k.removedNodes,P=k.addedNodes;if(k.type==="attributes")k.attributeName===yr&&(S.has(F)||o(t,F));else{for(let T=0;T<R.length;T++){const D=R[T];S.add(D),l(D,!0),(g=(p=t._dummyObserver).domChanged)===null||g===void 0||g.call(p,F)}for(let T=0;T<P.length;T++)l(P[T]),(b=(v=t._dummyObserver).domChanged)===null||b===void 0||b.call(v,F)}}S.clear(),(C=t.modalizer)===null||C===void 0||C.hiddenUpdate()};function l(h,p){i||(i=Sn(n).elementByUId),u(h,p);const g=cg(e,h,v=>u(v,p));if(g)for(;g.nextNode(););}function u(h,p){var g;if(!h.getAttribute)return NodeFilter.FILTER_SKIP;const v=h.__tabsterElementUID;return v&&i&&(p?delete i[v]:(g=i[v])!==null&&g!==void 0||(i[v]=new No(n,h))),(Xt(t,h)||h.hasAttribute(yr))&&o(t,h,p),NodeFilter.FILTER_SKIP}const d=ie.createMutationObserver(s);return r&&l(n().document.body),d.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[yr]}),()=>{d.disconnect()}}class KB{constructor(t){this._isUncontrolledCompletely=t}isUncontrolledCompletely(t,o){var r;const n=(r=this._isUncontrolledCompletely)===null||r===void 0?void 0:r.call(this,t,o);return n===void 0?o:n}}class XB extends Dl{constructor(t,o,r){var n;if(super(t,o,r),this._hasFocus=!1,this._onFocusOut=i=>{var s;const l=(s=this._element)===null||s===void 0?void 0:s.get();l&&i.relatedTarget===null&&l.dispatchEvent(new By),l&&!ie.nodeContains(l,i.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===js.Source){const i=(n=this._element)===null||n===void 0?void 0:n.get();i?.addEventListener("focusout",this._onFocusOut),i?.addEventListener("focusin",this._onFocusIn),this._hasFocus=ie.nodeContains(i,i&&ie.getActiveElement(i.ownerDocument))}}dispose(){var t;if(this._props.type===js.Source){const o=(t=this._element)===null||t===void 0?void 0:t.get();o?.removeEventListener("focusout",this._onFocusOut),o?.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&this._tabster.getWindow().document.body.dispatchEvent(new By)}}}class ad{constructor(t){this._stack=[],this._getWindow=t}push(t){var o;((o=this._stack[this._stack.length-1])===null||o===void 0?void 0:o.get())!==t&&(this._stack.length>ad.DEPTH&&this._stack.shift(),this._stack.push(new No(this._getWindow,t)))}pop(t=()=>!0){var o;const r=this._getWindow().document;for(let n=this._stack.length-1;n>=0;n--){const i=(o=this._stack.pop())===null||o===void 0?void 0:o.get();if(i&&ie.nodeContains(r.body,ie.getParentElement(i))&&t(i))return i}}}ad.DEPTH=10;class ZB{constructor(t){this._onRestoreFocus=o=>{var r,n;this._focusedElementState.cancelAsyncFocus(yn.Restorer);const i=o.composedPath()[0];if(i){const s=(n=(r=Xt(this._tabster,i))===null||r===void 0?void 0:r.restorer)===null||n===void 0?void 0:n.getProps().id;this._focusedElementState.requestAsyncFocus(yn.Restorer,()=>this._restoreFocus(i,s),0)}},this._onFocusIn=o=>{var r;if(!o)return;const n=Xt(this._tabster,o);((r=n?.restorer)===null||r===void 0?void 0:r.getProps().type)===js.Target&&this._history.push(o)},this._restoreFocus=(o,r)=>{var n;const i=this._getWindow().document;if(ie.getActiveElement(i)!==i.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&ie.nodeContains(i.body,o))return;const s=l=>{var u,d;const h=(d=(u=Xt(this._tabster,l))===null||u===void 0?void 0:u.restorer)===null||d===void 0?void 0:d.getProps();return h?h.id:null};(n=this._history.pop(l=>r===s(l)))===null||n===void 0||n.focus()},this._tabster=t,this._getWindow=t.getWindow,this._getWindow().addEventListener(ig,this._onRestoreFocus),this._history=new ad(this._getWindow),this._keyboardNavState=t.keyboardNavigation,this._focusedElementState=t.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const t=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),this._focusedElementState.cancelAsyncFocus(yn.Restorer),t.removeEventListener(ig,this._onRestoreFocus)}createRestorer(t,o){const r=new XB(this._tabster,t,o);return o.type===js.Target&&ie.getActiveElement(t.ownerDocument)===t&&this._history.push(t),r}}class YB{constructor(t){this.keyboardNavigation=t.keyboardNavigation,this.focusedElement=t.focusedElement,this.focusable=t.focusable,this.root=t.root,this.uncontrolled=t.uncontrolled,this.core=t}}class QB{constructor(t,o){var r,n;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="8.7.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=gB(t),this._win=t;const i=this.getWindow;o?.DOMAPI&&hB({...o.DOMAPI}),this.keyboardNavigation=new LB(i),this.focusedElement=new Pt(this,i),this.focusable=new AB(this),this.root=new rt(this,o?.autoRoot),this.uncontrolled=new KB(o?.checkUncontrolledCompletely||o?.checkUncontrolledTrappingFocus),this.controlTab=(r=o?.controlTab)!==null&&r!==void 0?r:!0,this.rootDummyInputs=!!o?.rootDummyInputs,this._dummyObserver=new kB(i),this.getParent=(n=o?.getParent)!==null&&n!==void 0?n:ie.getParentNode,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:s=>{if(!this._unobserve){const l=i().document;this._unobserve=$B(l,this,Ay,s)}}},zy(i),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(t){var o;t&&(this.getParent=(o=t.getParent)!==null&&o!==void 0?o:this.getParent)}createTabster(t,o){const r=new YB(this);return t||this._wrappers.add(r),this._mergeProps(o),r}disposeTabster(t,o){o?this._wrappers.clear():this._wrappers.delete(t),this._wrappers.size===0&&this.dispose()}dispose(){var t,o,r,n,i,s,l,u;this.internal.stopObserver();const d=this._win;d?.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],d&&this._forgetMemorizedTimer&&(d.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(t=this.outline)===null||t===void 0||t.dispose(),(o=this.crossOrigin)===null||o===void 0||o.dispose(),(r=this.deloser)===null||r===void 0||r.dispose(),(n=this.groupper)===null||n===void 0||n.dispose(),(i=this.mover)===null||i===void 0||i.dispose(),(s=this.modalizer)===null||s===void 0||s.dispose(),(l=this.observedElement)===null||l===void 0||l.dispose(),(u=this.restorer)===null||u===void 0||u.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),vB(this.getWindow),Wy(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),d&&(pB(d),delete d.__tabsterInstance,delete this._win)}storageEntry(t,o){const r=this._storage;let n=r.get(t);return n?o===!1&&Object.keys(n).length===0&&r.delete(t):o===!0&&(n={},r.set(t,n)),n}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let t=this._forgetMemorizedElements.shift();t;t=this._forgetMemorizedElements.shift())Wy(this.getWindow,t),Pt.forgetMemorized(this.focusedElement,t)},0),Ny(this.getWindow,!0)))}queueInit(t){var o;this._win&&(this._initQueue.push(t),this._initTimer||(this._initTimer=(o=this._win)===null||o===void 0?void 0:o.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const t=this._initQueue;this._initQueue=[],t.forEach(o=>o())}}function JB(e,t){let o=i5(e);return o?o.createTabster(!1,t):(o=new QB(e,t),e.__tabsterInstance=o,o.createTabster())}function e5(e){const t=e.core;return t.groupper||(t.groupper=new OB(t,t.getWindow)),t.groupper}function t5(e){const t=e.core;return t.mover||(t.mover=new UB(t,t.getWindow)),t.mover}function o5(e,t,o){const r=e.core;return r.modalizer||(r.modalizer=new VB(r,t,o)),r.modalizer}function r5(e){const t=e.core;return t.restorer||(t.restorer=new ZB(t)),t.restorer}function n5(e,t){e.core.disposeTabster(e,t)}function i5(e){return e.__tabsterInstance}const s5=e=>e;function a5(e){const t=e?.defaultView||void 0,o=t?.__tabsterShadowDOMAPI;if(t)return JB(t,{autoRoot:{},controlTab:!1,getParent:Sy,checkUncontrolledCompletely:r=>{var n;return((n=r.firstElementChild)===null||n===void 0?void 0:n.hasAttribute("data-is-focus-trap-zone-bumper"))===!0||void 0},DOMAPI:o})}function Ml(e=s5){const{targetDocument:t}=Dt(),o=y.useRef(null);return oo(()=>{const r=a5(t);if(r)return o.current=e(r),()=>{n5(r),o.current=null}},[t,e]),o}const Al=e=>{Ml();const t=$y(e);return y.useMemo(()=>({[yr]:t}),[t])},_l=(e={})=>{const{circular:t,axis:o,memorizeCurrent:r=!0,tabbable:n,ignoreDefaultKeydown:i,unstable_hasDefault:s}=e;return Ml(t5),Al({mover:{cyclic:!!t,direction:l5(o??"vertical"),memorizeCurrent:r,tabbable:n,hasDefault:s},...i&&{focusable:{ignoreKeydown:i}}})};function l5(e){switch(e){case"horizontal":return Sr.Horizontal;case"grid":return Sr.Grid;case"grid-linear":return Sr.GridLinear;case"both":return Sr.Both;default:return Sr.Vertical}}const c5=e=>(Ml(e5),Al({groupper:{tabbability:u5(e?.tabBehavior)},focusable:{ignoreKeydown:e?.ignoreDefaultKeydown}})),u5=e=>{switch(e){case"unlimited":return rd.Unlimited;case"limited":return rd.Limited;case"limited-trap-focus":return rd.LimitedTrapFocus;default:return}},gg=()=>{const e=Ml(),{targetDocument:t}=Dt(),o=y.useCallback((l,u)=>{var d;return l&&((d=e.current)===null||d===void 0?void 0:d.focusable.findAll({container:l,acceptCondition:u}))||[]},[e]),r=y.useCallback(l=>{var u;return l&&((u=e.current)===null||u===void 0?void 0:u.focusable.findFirst({container:l}))},[e]),n=y.useCallback(l=>{var u;return l&&((u=e.current)===null||u===void 0?void 0:u.focusable.findLast({container:l}))},[e]),i=y.useCallback((l,u={})=>{if(!e.current||!t||!l)return null;const{container:d=t.body}=u;return e.current.focusable.findNext({currentElement:l,container:d})},[e,t]),s=y.useCallback((l,u={})=>{if(!e.current||!t||!l)return null;const{container:d=t.body}=u;return e.current.focusable.findPrev({currentElement:l,container:d})},[e,t]);return{findAllFocusable:o,findFirstFocusable:r,findLastFocusable:n,findNextFocusable:i,findPrevFocusable:s}},Jy="data-fui-focus-visible",e1="data-fui-focus-within";function d5(e,t){if(t1(e))return()=>{};const o={current:void 0},r=td(t);function n(u){r.isNavigatingWithKeyboard()&&Gs(u)&&(o.current=u,u.setAttribute(Jy,""))}function i(){o.current&&(o.current.removeAttribute(Jy),o.current=void 0)}r.subscribe(u=>{u?n(t.document.activeElement):i()});const s=u=>{i();const d=u.composedPath()[0];n(d)},l=u=>{(!u.relatedTarget||Gs(u.relatedTarget)&&!e.contains(u.relatedTarget))&&i()};return e.addEventListener(Lo,s),e.addEventListener("focusout",l),e.focusVisible=!0,e.contains(t.document.activeElement)&&n(t.document.activeElement),()=>{i(),e.removeEventListener(Lo,s),e.removeEventListener("focusout",l),e.focusVisible=void 0,od(r)}}function t1(e){return e?e.focusVisible?!0:t1(e?.parentElement):!1}function o1(e={}){const t=Dt(),o=y.useRef(null);var r;const n=(r=e.targetDocument)!==null&&r!==void 0?r:t.targetDocument;return y.useEffect(()=>{if(n?.defaultView&&o.current)return d5(o.current,n.defaultView)},[o,n]),o}function h5(e,t){const o=td(t);o.subscribe(i=>{i||r1(e)});const r=i=>{o.isNavigatingWithKeyboard()&&n1(i.target)&&f5(e)},n=i=>{(!i.relatedTarget||n1(i.relatedTarget)&&!e.contains(i.relatedTarget))&&r1(e)};return e.addEventListener(Lo,r),e.addEventListener("focusout",n),()=>{e.removeEventListener(Lo,r),e.removeEventListener("focusout",n),od(o)}}function f5(e){e.setAttribute(e1,"")}function r1(e){e.removeAttribute(e1)}function n1(e){return e?!!(e&&typeof e=="object"&&"classList"in e&&"contains"in e):!1}function p5(){const{targetDocument:e}=Dt(),t=y.useRef(null);return y.useEffect(()=>{if(e?.defaultView&&t.current)return h5(t.current,e.defaultView)},[t,e]),t}function mg(){const{targetDocument:e}=Dt(),t=y.useRef(null);return y.useEffect(()=>{const o=e?.defaultView;if(o){const r=td(o);return t.current=r,()=>{od(r),t.current=null}}},[e]),t}function i1(e){const t=mg(),o=Ce(e);y.useEffect(()=>{const r=t.current;if(r){const n=i=>{o(i)};return r.subscribe(n),n(r.isNavigatingWithKeyboard()),()=>{r.unsubscribe(n)}}},[t,o])}const g5="data-tabster-never-hide",m5=e=>e.hasAttribute(g5);function v5(e){o5(e,void 0,m5),r5(e)}const s1=(e={})=>{const{trapFocus:t,alwaysFocusable:o,legacyTrapFocus:r}=e;Ml(v5);const n=Oo("modal-",e.id),i=Al({restorer:{type:js.Source},...t&&{modalizer:{id:n,isOthersAccessible:!t,isAlwaysAccessible:o,isTrapped:r&&t}}}),s=Al({restorer:{type:js.Target}});return{modalAttributes:i,triggerAttributes:s}},b5=(...e)=>{"use no memo";const t=e.reduce((o,r)=>(r?.[yr]&&o.push(r[yr]),o),[]);return y.useMemo(()=>({[yr]:t.length>0?t.reduce(C5):void 0}),t)},C5=(e,t)=>JSON.stringify(Object.assign(a1(e),a1(t))),a1=e=>{try{return JSON.parse(e)}catch{return{}}};function w5(){const e=mg();return y.useCallback(()=>{var t,o;return(o=(t=e.current)===null||t===void 0?void 0:t.isNavigatingWithKeyboard())!==null&&o!==void 0?o:!1},[e])}function y5(){const e=mg();return y.useCallback(t=>{var o;(o=e.current)===null||o===void 0||o.setVal(t)},[e])}const J={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",60:"#999999",68:"#adadad",70:"#b3b3b3",74:"#bdbdbd",78:"#c7c7c7",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa",99:"#fcfcfc"},ro={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)"},Jo={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)"},S5={50:"rgba(26, 26, 26, 0.5)"},x5={70:"rgba(31, 31, 31, 0.7)"},l1={50:"rgba(36, 36, 36, 0.5)",80:"rgba(36, 36, 36, 0.8)"},Ie="#ffffff",ld="#000000",k5={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},c1={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},F5={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},R5={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},P5={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},E5={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},T5={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},D5={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},M5={shade50:"#282400",shade40:"#4c4400",shade30:"#817400",shade20:"#c0ad00",shade10:"#e4cc00",primary:"#fde300",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},A5={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},_5={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},I5={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},B5={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},O5={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},L5={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},u1={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},N5={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},z5={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},H5={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},V5={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},G5={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},j5={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},W5={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},q5={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},U5={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},$5={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},K5={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},X5={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},Z5={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},Y5={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},Q5={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},J5={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},eO={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},tO={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},oO={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},rO={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},et={red:F5,green:u1,darkOrange:R5,yellow:M5,berry:X5,lightGreen:L5,marigold:D5},oi={darkRed:k5,cranberry:c1,pumpkin:P5,peach:T5,gold:A5,brass:_5,brown:I5,forest:B5,seafoam:O5,darkGreen:N5,lightTeal:z5,teal:H5,steel:V5,blue:G5,royalBlue:j5,cornflower:W5,navy:q5,lavender:U5,purple:$5,grape:K5,lilac:Z5,pink:Y5,magenta:Q5,plum:J5,beige:eO,mink:tO,platinum:oO,anchor:rO},Qe={cranberry:c1,green:u1,orange:E5},d1=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],h1=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],wo={success:"green",warning:"orange",danger:"cranberry"},Il=d1.reduce((e,t)=>{const o=t.slice(0,1).toUpperCase()+t.slice(1),r={[`colorPalette${o}Background1`]:et[t].tint60,[`colorPalette${o}Background2`]:et[t].tint40,[`colorPalette${o}Background3`]:et[t].primary,[`colorPalette${o}Foreground1`]:et[t].shade10,[`colorPalette${o}Foreground2`]:et[t].shade30,[`colorPalette${o}Foreground3`]:et[t].primary,[`colorPalette${o}BorderActive`]:et[t].primary,[`colorPalette${o}Border1`]:et[t].tint40,[`colorPalette${o}Border2`]:et[t].primary};return Object.assign(e,r)},{});Il.colorPaletteYellowForeground1=et.yellow.shade30,Il.colorPaletteRedForegroundInverted=et.red.tint20,Il.colorPaletteGreenForegroundInverted=et.green.tint20,Il.colorPaletteYellowForegroundInverted=et.yellow.tint40;const nO=h1.reduce((e,t)=>{const o=t.slice(0,1).toUpperCase()+t.slice(1),r={[`colorPalette${o}Background2`]:oi[t].tint40,[`colorPalette${o}Foreground2`]:oi[t].shade30,[`colorPalette${o}BorderActive`]:oi[t].primary};return Object.assign(e,r)},{}),iO={...Il,...nO},Us=Object.entries(wo).reduce((e,[t,o])=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorStatus${r}Background1`]:Qe[o].tint60,[`colorStatus${r}Background2`]:Qe[o].tint40,[`colorStatus${r}Background3`]:Qe[o].primary,[`colorStatus${r}Foreground1`]:Qe[o].shade10,[`colorStatus${r}Foreground2`]:Qe[o].shade30,[`colorStatus${r}Foreground3`]:Qe[o].primary,[`colorStatus${r}ForegroundInverted`]:Qe[o].tint30,[`colorStatus${r}BorderActive`]:Qe[o].primary,[`colorStatus${r}Border1`]:Qe[o].tint40,[`colorStatus${r}Border2`]:Qe[o].primary};return Object.assign(e,n)},{});Us.colorStatusDangerBackground3Hover=Qe[wo.danger].shade10,Us.colorStatusDangerBackground3Pressed=Qe[wo.danger].shade20,Us.colorStatusWarningForeground1=Qe[wo.warning].shade20,Us.colorStatusWarningForeground3=Qe[wo.warning].shade20,Us.colorStatusWarningBorder2=Qe[wo.warning].shade20;const sO=e=>({colorNeutralForeground1:J[14],colorNeutralForeground1Hover:J[14],colorNeutralForeground1Pressed:J[14],colorNeutralForeground1Selected:J[14],colorNeutralForeground2:J[26],colorNeutralForeground2Hover:J[14],colorNeutralForeground2Pressed:J[14],colorNeutralForeground2Selected:J[14],colorNeutralForeground2BrandHover:e[80],colorNeutralForeground2BrandPressed:e[70],colorNeutralForeground2BrandSelected:e[80],colorNeutralForeground3:J[38],colorNeutralForeground3Hover:J[26],colorNeutralForeground3Pressed:J[26],colorNeutralForeground3Selected:J[26],colorNeutralForeground3BrandHover:e[80],colorNeutralForeground3BrandPressed:e[70],colorNeutralForeground3BrandSelected:e[80],colorNeutralForeground4:J[44],colorNeutralForeground5:J[38],colorNeutralForeground5Hover:J[14],colorNeutralForeground5Pressed:J[14],colorNeutralForeground5Selected:J[14],colorNeutralForegroundDisabled:J[74],colorNeutralForegroundInvertedDisabled:ro[40],colorBrandForegroundLink:e[70],colorBrandForegroundLinkHover:e[60],colorBrandForegroundLinkPressed:e[40],colorBrandForegroundLinkSelected:e[70],colorNeutralForeground2Link:J[26],colorNeutralForeground2LinkHover:J[14],colorNeutralForeground2LinkPressed:J[14],colorNeutralForeground2LinkSelected:J[14],colorCompoundBrandForeground1:e[80],colorCompoundBrandForeground1Hover:e[70],colorCompoundBrandForeground1Pressed:e[60],colorBrandForeground1:e[80],colorBrandForeground2:e[70],colorBrandForeground2Hover:e[60],colorBrandForeground2Pressed:e[30],colorNeutralForeground1Static:J[14],colorNeutralForegroundStaticInverted:Ie,colorNeutralForegroundInverted:Ie,colorNeutralForegroundInvertedHover:Ie,colorNeutralForegroundInvertedPressed:Ie,colorNeutralForegroundInvertedSelected:Ie,colorNeutralForegroundInverted2:Ie,colorNeutralForegroundOnBrand:Ie,colorNeutralForegroundInvertedLink:Ie,colorNeutralForegroundInvertedLinkHover:Ie,colorNeutralForegroundInvertedLinkPressed:Ie,colorNeutralForegroundInvertedLinkSelected:Ie,colorBrandForegroundInverted:e[100],colorBrandForegroundInvertedHover:e[110],colorBrandForegroundInvertedPressed:e[100],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:Ie,colorNeutralBackground1Hover:J[96],colorNeutralBackground1Pressed:J[88],colorNeutralBackground1Selected:J[92],colorNeutralBackground2:J[98],colorNeutralBackground2Hover:J[94],colorNeutralBackground2Pressed:J[86],colorNeutralBackground2Selected:J[90],colorNeutralBackground3:J[96],colorNeutralBackground3Hover:J[92],colorNeutralBackground3Pressed:J[84],colorNeutralBackground3Selected:J[88],colorNeutralBackground4:J[94],colorNeutralBackground4Hover:J[98],colorNeutralBackground4Pressed:J[96],colorNeutralBackground4Selected:Ie,colorNeutralBackground5:J[92],colorNeutralBackground5Hover:J[96],colorNeutralBackground5Pressed:J[94],colorNeutralBackground5Selected:J[98],colorNeutralBackground6:J[90],colorNeutralBackground7:"#00000000",colorNeutralBackground7Hover:J[92],colorNeutralBackground7Pressed:J[84],colorNeutralBackground7Selected:"#00000000",colorNeutralBackground8:J[99],colorNeutralBackgroundInverted:J[16],colorNeutralBackgroundInvertedHover:J[24],colorNeutralBackgroundInvertedPressed:J[12],colorNeutralBackgroundInvertedSelected:J[22],colorNeutralBackgroundStatic:J[20],colorNeutralBackgroundAlpha:ro[50],colorNeutralBackgroundAlpha2:ro[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:J[96],colorSubtleBackgroundPressed:J[88],colorSubtleBackgroundSelected:J[92],colorSubtleBackgroundLightAlphaHover:ro[70],colorSubtleBackgroundLightAlphaPressed:ro[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:Jo[10],colorSubtleBackgroundInvertedPressed:Jo[30],colorSubtleBackgroundInvertedSelected:Jo[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:J[94],colorNeutralBackgroundDisabled2:Ie,colorNeutralBackgroundInvertedDisabled:ro[10],colorNeutralStencil1:J[90],colorNeutralStencil2:J[98],colorNeutralStencil1Alpha:Jo[10],colorNeutralStencil2Alpha:Jo[5],colorBackgroundOverlay:Jo[40],colorScrollbarOverlay:Jo[50],colorBrandBackground:e[80],colorBrandBackgroundHover:e[70],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[80],colorCompoundBrandBackgroundHover:e[70],colorCompoundBrandBackgroundPressed:e[60],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[160],colorBrandBackground2Hover:e[150],colorBrandBackground2Pressed:e[130],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:Ie,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:J[98],colorNeutralCardBackgroundHover:Ie,colorNeutralCardBackgroundPressed:J[96],colorNeutralCardBackgroundSelected:J[92],colorNeutralCardBackgroundDisabled:J[94],colorNeutralStrokeAccessible:J[38],colorNeutralStrokeAccessibleHover:J[34],colorNeutralStrokeAccessiblePressed:J[30],colorNeutralStrokeAccessibleSelected:e[80],colorNeutralStroke1:J[82],colorNeutralStroke1Hover:J[78],colorNeutralStroke1Pressed:J[70],colorNeutralStroke1Selected:J[74],colorNeutralStroke2:J[88],colorNeutralStroke3:J[94],colorNeutralStroke4:J[92],colorNeutralStroke4Hover:J[88],colorNeutralStroke4Pressed:J[84],colorNeutralStroke4Selected:J[92],colorNeutralStrokeSubtle:J[88],colorNeutralStrokeOnBrand:Ie,colorNeutralStrokeOnBrand2:Ie,colorNeutralStrokeOnBrand2Hover:Ie,colorNeutralStrokeOnBrand2Pressed:Ie,colorNeutralStrokeOnBrand2Selected:Ie,colorBrandStroke1:e[80],colorBrandStroke2:e[140],colorBrandStroke2Hover:e[120],colorBrandStroke2Pressed:e[80],colorBrandStroke2Contrast:e[140],colorCompoundBrandStroke:e[80],colorCompoundBrandStrokeHover:e[70],colorCompoundBrandStrokePressed:e[60],colorNeutralStrokeDisabled:J[88],colorNeutralStrokeDisabled2:J[92],colorNeutralStrokeInvertedDisabled:ro[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:Jo[5],colorNeutralStrokeAlpha2:ro[20],colorStrokeFocus1:Ie,colorStrokeFocus2:ld,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),f1={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadius2XLarge:"12px",borderRadius3XLarge:"16px",borderRadius4XLarge:"24px",borderRadius5XLarge:"32px",borderRadius6XLarge:"40px",borderRadiusCircular:"10000px"},p1={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},g1={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},m1={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},v1={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},b1={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},C1={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},Et={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},w1={spacingHorizontalNone:Et.none,spacingHorizontalXXS:Et.xxs,spacingHorizontalXS:Et.xs,spacingHorizontalSNudge:Et.sNudge,spacingHorizontalS:Et.s,spacingHorizontalMNudge:Et.mNudge,spacingHorizontalM:Et.m,spacingHorizontalL:Et.l,spacingHorizontalXL:Et.xl,spacingHorizontalXXL:Et.xxl,spacingHorizontalXXXL:Et.xxxl},y1={spacingVerticalNone:Et.none,spacingVerticalXXS:Et.xxs,spacingVerticalXS:Et.xs,spacingVerticalSNudge:Et.sNudge,spacingVerticalS:Et.s,spacingVerticalMNudge:Et.mNudge,spacingVerticalM:Et.m,spacingVerticalL:Et.l,spacingVerticalXL:Et.xl,spacingVerticalXXL:Et.xxl,spacingVerticalXXXL:Et.xxxl},S1={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},$s={colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralStroke1:"var(--colorNeutralStroke1)"};function cd(e,t,o=""){return{[`shadow2${o}`]:`0 0 2px ${e}, 0 1px 2px ${t}`,[`shadow4${o}`]:`0 0 2px ${e}, 0 2px 4px ${t}`,[`shadow8${o}`]:`0 0 2px ${e}, 0 4px 8px ${t}`,[`shadow16${o}`]:`0 0 2px ${e}, 0 8px 16px ${t}`,[`shadow28${o}`]:`0 0 8px ${e}, 0 14px 28px ${t}`,[`shadow64${o}`]:`0 0 8px ${e}, 0 32px 64px ${t}`}}const aO=e=>{const t=sO(e);return{...f1,...m1,...v1,...C1,...b1,...S1,...w1,...y1,...g1,...p1,...t,...iO,...Us,...cd(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...cd(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}},x1={10:"#061724",20:"#082338",30:"#0a2e4a",40:"#0c3b5e",50:"#0e4775",60:"#0f548c",70:"#115ea3",80:"#0f6cbd",90:"#2886de",100:"#479ef5",110:"#62abf5",120:"#77b7f7",130:"#96c6fa",140:"#b4d6fa",150:"#cfe4fa",160:"#ebf3fc"},Wr=d1.reduce((e,t)=>{const o=t.slice(0,1).toUpperCase()+t.slice(1),r={[`colorPalette${o}Background1`]:et[t].shade40,[`colorPalette${o}Background2`]:et[t].shade30,[`colorPalette${o}Background3`]:et[t].primary,[`colorPalette${o}Foreground1`]:et[t].tint30,[`colorPalette${o}Foreground2`]:et[t].tint40,[`colorPalette${o}Foreground3`]:et[t].tint20,[`colorPalette${o}BorderActive`]:et[t].tint30,[`colorPalette${o}Border1`]:et[t].primary,[`colorPalette${o}Border2`]:et[t].tint20};return Object.assign(e,r)},{});Wr.colorPaletteRedForeground3=et.red.tint30,Wr.colorPaletteRedBorder2=et.red.tint30,Wr.colorPaletteGreenForeground3=et.green.tint40,Wr.colorPaletteGreenBorder2=et.green.tint40,Wr.colorPaletteDarkOrangeForeground3=et.darkOrange.tint30,Wr.colorPaletteDarkOrangeBorder2=et.darkOrange.tint30,Wr.colorPaletteRedForegroundInverted=et.red.primary,Wr.colorPaletteGreenForegroundInverted=et.green.primary,Wr.colorPaletteYellowForegroundInverted=et.yellow.shade30;const vg=h1.reduce((e,t)=>{const o=t.slice(0,1).toUpperCase()+t.slice(1),r={[`colorPalette${o}Background2`]:oi[t].shade30,[`colorPalette${o}Foreground2`]:oi[t].tint40,[`colorPalette${o}BorderActive`]:oi[t].tint30};return Object.assign(e,r)},{});vg.colorPaletteDarkRedBackground2=oi.darkRed.shade20,vg.colorPalettePlumBackground2=oi.plum.shade20;const lO={...Wr,...vg},ri=Object.entries(wo).reduce((e,[t,o])=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorStatus${r}Background1`]:Qe[o].shade40,[`colorStatus${r}Background2`]:Qe[o].shade30,[`colorStatus${r}Background3`]:Qe[o].primary,[`colorStatus${r}Foreground1`]:Qe[o].tint30,[`colorStatus${r}Foreground2`]:Qe[o].tint40,[`colorStatus${r}Foreground3`]:Qe[o].tint20,[`colorStatus${r}BorderActive`]:Qe[o].tint30,[`colorStatus${r}ForegroundInverted`]:Qe[o].shade10,[`colorStatus${r}Border1`]:Qe[o].primary,[`colorStatus${r}Border2`]:Qe[o].tint20};return Object.assign(e,n)},{});ri.colorStatusDangerBackground3Hover=Qe[wo.danger].shade10,ri.colorStatusDangerBackground3Pressed=Qe[wo.danger].shade20,ri.colorStatusDangerForeground3=Qe[wo.danger].tint40,ri.colorStatusDangerBorder2=Qe[wo.danger].tint30,ri.colorStatusSuccessForeground3=Qe[wo.success].tint40,ri.colorStatusSuccessBorder2=Qe[wo.success].tint40,ri.colorStatusWarningForegroundInverted=Qe[wo.warning].shade20;const cO=aO(x1),uO=e=>({colorNeutralForeground1:Ie,colorNeutralForeground1Hover:Ie,colorNeutralForeground1Pressed:Ie,colorNeutralForeground1Selected:Ie,colorNeutralForeground2:J[84],colorNeutralForeground2Hover:Ie,colorNeutralForeground2Pressed:Ie,colorNeutralForeground2Selected:Ie,colorNeutralForeground2BrandHover:e[100],colorNeutralForeground2BrandPressed:e[90],colorNeutralForeground2BrandSelected:e[100],colorNeutralForeground3:J[68],colorNeutralForeground3Hover:J[84],colorNeutralForeground3Pressed:J[84],colorNeutralForeground3Selected:J[84],colorNeutralForeground3BrandHover:e[100],colorNeutralForeground3BrandPressed:e[90],colorNeutralForeground3BrandSelected:e[100],colorNeutralForeground4:J[60],colorNeutralForeground5:J[68],colorNeutralForeground5Hover:Ie,colorNeutralForeground5Pressed:Ie,colorNeutralForeground5Selected:Ie,colorNeutralForegroundDisabled:J[36],colorNeutralForegroundInvertedDisabled:ro[40],colorBrandForegroundLink:e[100],colorBrandForegroundLinkHover:e[110],colorBrandForegroundLinkPressed:e[90],colorBrandForegroundLinkSelected:e[100],colorNeutralForeground2Link:J[84],colorNeutralForeground2LinkHover:Ie,colorNeutralForeground2LinkPressed:Ie,colorNeutralForeground2LinkSelected:Ie,colorCompoundBrandForeground1:e[100],colorCompoundBrandForeground1Hover:e[110],colorCompoundBrandForeground1Pressed:e[90],colorBrandForeground1:e[100],colorBrandForeground2:e[110],colorBrandForeground2Hover:e[130],colorBrandForeground2Pressed:e[160],colorNeutralForeground1Static:J[14],colorNeutralForegroundStaticInverted:Ie,colorNeutralForegroundInverted:J[14],colorNeutralForegroundInvertedHover:J[14],colorNeutralForegroundInvertedPressed:J[14],colorNeutralForegroundInvertedSelected:J[14],colorNeutralForegroundInverted2:J[14],colorNeutralForegroundOnBrand:Ie,colorNeutralForegroundInvertedLink:Ie,colorNeutralForegroundInvertedLinkHover:Ie,colorNeutralForegroundInvertedLinkPressed:Ie,colorNeutralForegroundInvertedLinkSelected:Ie,colorBrandForegroundInverted:e[80],colorBrandForegroundInvertedHover:e[70],colorBrandForegroundInvertedPressed:e[60],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:J[16],colorNeutralBackground1Hover:J[24],colorNeutralBackground1Pressed:J[12],colorNeutralBackground1Selected:J[22],colorNeutralBackground2:J[12],colorNeutralBackground2Hover:J[20],colorNeutralBackground2Pressed:J[8],colorNeutralBackground2Selected:J[18],colorNeutralBackground3:J[8],colorNeutralBackground3Hover:J[16],colorNeutralBackground3Pressed:J[4],colorNeutralBackground3Selected:J[14],colorNeutralBackground4:J[4],colorNeutralBackground4Hover:J[12],colorNeutralBackground4Pressed:ld,colorNeutralBackground4Selected:J[10],colorNeutralBackground5:ld,colorNeutralBackground5Hover:J[8],colorNeutralBackground5Pressed:J[2],colorNeutralBackground5Selected:J[6],colorNeutralBackground6:J[20],colorNeutralBackground7:"#00000000",colorNeutralBackground7Hover:J[10],colorNeutralBackground7Pressed:J[4],colorNeutralBackground7Selected:"#00000000",colorNeutralBackground8:J[16],colorNeutralBackgroundInverted:Ie,colorNeutralBackgroundInvertedHover:J[96],colorNeutralBackgroundInvertedPressed:J[88],colorNeutralBackgroundInvertedSelected:J[92],colorNeutralBackgroundStatic:J[24],colorNeutralBackgroundAlpha:S5[50],colorNeutralBackgroundAlpha2:x5[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:J[22],colorSubtleBackgroundPressed:J[18],colorSubtleBackgroundSelected:J[20],colorSubtleBackgroundLightAlphaHover:l1[80],colorSubtleBackgroundLightAlphaPressed:l1[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:Jo[10],colorSubtleBackgroundInvertedPressed:Jo[30],colorSubtleBackgroundInvertedSelected:Jo[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:J[8],colorNeutralBackgroundDisabled2:J[16],colorNeutralBackgroundInvertedDisabled:ro[10],colorNeutralStencil1:J[34],colorNeutralStencil2:J[20],colorNeutralStencil1Alpha:ro[10],colorNeutralStencil2Alpha:ro[5],colorBackgroundOverlay:Jo[50],colorScrollbarOverlay:ro[60],colorBrandBackground:e[70],colorBrandBackgroundHover:e[80],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[100],colorCompoundBrandBackgroundHover:e[110],colorCompoundBrandBackgroundPressed:e[90],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[20],colorBrandBackground2Hover:e[40],colorBrandBackground2Pressed:e[10],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:Ie,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:J[20],colorNeutralCardBackgroundHover:J[24],colorNeutralCardBackgroundPressed:J[18],colorNeutralCardBackgroundSelected:J[22],colorNeutralCardBackgroundDisabled:J[8],colorNeutralStrokeAccessible:J[68],colorNeutralStrokeAccessibleHover:J[74],colorNeutralStrokeAccessiblePressed:J[70],colorNeutralStrokeAccessibleSelected:e[100],colorNeutralStroke1:J[40],colorNeutralStroke1Hover:J[46],colorNeutralStroke1Pressed:J[42],colorNeutralStroke1Selected:J[44],colorNeutralStroke2:J[32],colorNeutralStroke3:J[24],colorNeutralStroke4:J[24],colorNeutralStroke4Hover:J[18],colorNeutralStroke4Pressed:J[14],colorNeutralStroke4Selected:J[24],colorNeutralStrokeSubtle:J[4],colorNeutralStrokeOnBrand:J[16],colorNeutralStrokeOnBrand2:Ie,colorNeutralStrokeOnBrand2Hover:Ie,colorNeutralStrokeOnBrand2Pressed:Ie,colorNeutralStrokeOnBrand2Selected:Ie,colorBrandStroke1:e[100],colorBrandStroke2:e[50],colorBrandStroke2Hover:e[50],colorBrandStroke2Pressed:e[30],colorBrandStroke2Contrast:e[50],colorCompoundBrandStroke:e[100],colorCompoundBrandStrokeHover:e[110],colorCompoundBrandStrokePressed:e[90],colorNeutralStrokeDisabled:J[26],colorNeutralStrokeDisabled2:J[24],colorNeutralStrokeInvertedDisabled:ro[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:ro[10],colorNeutralStrokeAlpha2:ro[20],colorStrokeFocus1:ld,colorStrokeFocus2:Ie,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),dO=(e=>{const t=uO(e);return{...f1,...m1,...v1,...C1,...b1,...S1,...w1,...y1,...g1,...p1,...t,...lO,...ri,...cd(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...cd(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}})(x1),k1={root:"fui-FluentProvider"},hO=Zw({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),fO=e=>{"use no memo";const t=Pl(),o=hO({dir:e.dir,renderer:t});return e.root.className=me(k1.root,e.themeClassName,o.root,e.root.className),e},pO=y.useInsertionEffect?y.useInsertionEffect:oo,gO=(e,t)=>{if(!e?.head)return;const o=e.createElement("style");return Object.keys(t).forEach(r=>{o.setAttribute(r,t[r])}),e.head.appendChild(o),o},mO=(e,t)=>{const o=e.sheet;o&&(o.cssRules.length>0&&o.deleteRule(0),o.insertRule(t,0))},vO=e=>{"use no memo";const{targetDocument:t,theme:o,rendererAttributes:r}=e,n=y.useRef(void 0),i=Oo(k1.root),s=r,l=y.useMemo(()=>S_(`.${i}`,o),[o,i]);return bO(t,i),pO(()=>{const u=t?.getElementById(i);return u?n.current=u:(n.current=gO(t,{...s,id:i}),n.current&&mO(n.current,l)),()=>{var d;(d=n.current)===null||d===void 0||d.remove()}},[i,t,l,s]),{styleTagId:i,rule:l}};function bO(e,t){y.useState(()=>{if(!e)return;const o=e.getElementById(t);o&&e.head.append(o)})}const CO={},wO={},yO=(e,t)=>{"use no memo";const o=Dt(),r=SO(),n=uy(),i=y.useContext(Zp)||CO,{applyStylesToPortals:s=!0,customStyleHooks_unstable:l,dir:u=o.dir,targetDocument:d=o.targetDocument,theme:h,overrides_unstable:p={}}=e,g=bg(r,h),v=bg(n,p),b=bg(i,l),C=Pl();var S;const{styleTagId:k,rule:F}=vO({theme:g,targetDocument:d,rendererAttributes:(S=C.styleElementAttributes)!==null&&S!==void 0?S:wO});return{applyStylesToPortals:s,customStyleHooks_unstable:b,dir:u,targetDocument:d,theme:g,overrides_unstable:v,themeClassName:k,components:{root:"div"},root:Xe(Lt("div",{...e,dir:u,ref:Mt(t,o1({targetDocument:d}))}),{elementType:"div"}),serverStyleProps:{cssRule:F,attributes:{...C.styleElementAttributes,id:k}}}};function bg(e,t){return e&&t?{...e,...t}:e||t}function SO(){return y.useContext(iy)}function xO(e){const{applyStylesToPortals:t,customStyleHooks_unstable:o,dir:r,root:n,targetDocument:i,theme:s,themeClassName:l,overrides_unstable:u}=e,d=y.useMemo(()=>({dir:r,targetDocument:i}),[r,i]),[h]=y.useState(()=>({})),p=y.useMemo(()=>({textDirection:r}),[r]);return{customStyleHooks_unstable:o,overrides_unstable:u,provider:d,textDirection:r,iconDirection:p,tooltip:h,theme:s,themeClassName:t?n.className:l}}const F1=y.forwardRef((e,t)=>{const o=yO(e,t);fO(o);const r=xO(o);return VI(o,r)});F1.displayName="FluentProvider";var Cg={exports:{}},wg={};var R1;function kO(){return R1||(R1=1,(function(e){function t(Z,W){var _=Z.length;Z.push(W);e:for(;0<_;){var V=_-1>>>1,j=Z[V];if(0<n(j,W))Z[V]=W,Z[_]=j,_=V;else break e}}function o(Z){return Z.length===0?null:Z[0]}function r(Z){if(Z.length===0)return null;var W=Z[0],_=Z.pop();if(_!==W){Z[0]=_;e:for(var V=0,j=Z.length,L=j>>>1;V<L;){var N=2*(V+1)-1,Y=Z[N],ne=N+1,ge=Z[ne];if(0>n(Y,_))ne<j&&0>n(ge,Y)?(Z[V]=ge,Z[ne]=_,V=ne):(Z[V]=Y,Z[N]=_,V=N);else if(ne<j&&0>n(ge,_))Z[V]=ge,Z[ne]=_,V=ne;else break e}}return W}function n(Z,W){var _=Z.sortIndex-W.sortIndex;return _!==0?_:Z.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],d=[],h=1,p=null,g=3,v=!1,b=!1,C=!1,S=!1,k=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function P(Z){for(var W=o(d);W!==null;){if(W.callback===null)r(d);else if(W.startTime<=Z)r(d),W.sortIndex=W.expirationTime,t(u,W);else break;W=o(d)}}function T(Z){if(C=!1,P(Z),!b)if(o(u)!==null)b=!0,D||(D=!0,q());else{var W=o(d);W!==null&&$(T,W.startTime-Z)}}var D=!1,M=-1,O=5,I=-1;function z(){return S?!0:!(e.unstable_now()-I<O)}function U(){if(S=!1,D){var Z=e.unstable_now();I=Z;var W=!0;try{e:{b=!1,C&&(C=!1,F(M),M=-1),v=!0;var _=g;try{t:{for(P(Z),p=o(u);p!==null&&!(p.expirationTime>Z&&z());){var V=p.callback;if(typeof V=="function"){p.callback=null,g=p.priorityLevel;var j=V(p.expirationTime<=Z);if(Z=e.unstable_now(),typeof j=="function"){p.callback=j,P(Z),W=!0;break t}p===o(u)&&r(u),P(Z)}else r(u);p=o(u)}if(p!==null)W=!0;else{var L=o(d);L!==null&&$(T,L.startTime-Z),W=!1}}break e}finally{p=null,g=_,v=!1}W=void 0}}finally{W?q():D=!1}}}var q;if(typeof R=="function")q=function(){R(U)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,K=A.port2;A.port1.onmessage=U,q=function(){K.postMessage(null)}}else q=function(){k(U,0)};function $(Z,W){M=k(function(){Z(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Z){Z.callback=null},e.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<Z?Math.floor(1e3/Z):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(Z){switch(g){case 1:case 2:case 3:var W=3;break;default:W=g}var _=g;g=W;try{return Z()}finally{g=_}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(Z,W){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var _=g;g=Z;try{return W()}finally{g=_}},e.unstable_scheduleCallback=function(Z,W,_){var V=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?V+_:V):_=V,Z){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=_+j,Z={id:h++,callback:W,priorityLevel:Z,startTime:_,expirationTime:j,sortIndex:-1},_>V?(Z.sortIndex=_,t(d,Z),o(u)===null&&Z===o(d)&&(C?(F(M),M=-1):C=!0,$(T,_-V))):(Z.sortIndex=j,t(u,Z),b||v||(b=!0,D||(D=!0,q()))),Z},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(Z){var W=g;return function(){var _=g;g=W;try{return Z.apply(this,arguments)}finally{g=_}}}})(wg)),wg}var P1;function FO(){return P1||(P1=1,Cg.exports=kO()),Cg.exports}var E1=FO();const RO=e=>o=>{const r=y.useRef(o.value),n=y.useRef(0),i=y.useRef(null);return i.current||(i.current={value:r,version:n,listeners:[]}),oo(()=>{r.current=o.value,n.current+=1,E1.unstable_runWithPriority(E1.unstable_NormalPriority,()=>{i.current.listeners.forEach(s=>{s([n.current,o.value])})})},[o.value]),y.createElement(e,{value:i.current},o.children)},Ks=e=>{const t=y.createContext({value:{current:e},version:{current:-1},listeners:[]});return t.Provider=RO(t.Provider),delete t.Consumer,t},Bl=(e,t)=>{const o=y.useContext(e),{value:{current:r},version:{current:n},listeners:i}=o,s=t(r),[l,u]=y.useState([r,s]),d=p=>{u(g=>{if(!p)return[r,s];if(p[0]<=n)return Object.is(g[1],s)?g:[r,s];try{if(Object.is(g[0],p[1]))return g;const v=t(p[1]);return Object.is(g[1],v)?g:[p[1],v]}catch{}return[g[0],g[1]]})};Object.is(l[1],s)||d(void 0);const h=Ce(d);return oo(()=>(i.push(h),()=>{const p=i.indexOf(h);i.splice(p,1)}),[h,i]),l[1]};function yg(e){const t=y.useContext(e);return t.version?t.version.current!==-1:!1}const Xs="Enter",xn=" ",PO="Tab",Sg="ArrowDown",T1="ArrowLeft",D1="ArrowRight",ud="ArrowUp",EO="End",TO="Home",DO="PageDown",MO="PageUp",AO="Backspace",_O="Delete",xg="Escape";function M1(e,t){const{disabled:o,disabledFocusable:r=!1,["aria-disabled"]:n,onClick:i,onKeyDown:s,onKeyUp:l,...u}=t??{},d=typeof n=="string"?n==="true":n,h=o||r||d,p=Ce(b=>{h?(b.preventDefault(),b.stopPropagation()):i?.(b)}),g=Ce(b=>{if(s?.(b),b.isDefaultPrevented())return;const C=b.key;if(h&&(C===Xs||C===xn)){b.preventDefault(),b.stopPropagation();return}if(C===xn){b.preventDefault();return}else C===Xs&&(b.preventDefault(),b.currentTarget.click())}),v=Ce(b=>{if(l?.(b),b.isDefaultPrevented())return;const C=b.key;if(h&&(C===Xs||C===xn)){b.preventDefault(),b.stopPropagation();return}C===xn&&(b.preventDefault(),b.currentTarget.click())});if(e==="button"||e===void 0)return{...u,disabled:o&&!r,"aria-disabled":r?!0:d,onClick:r?void 0:p,onKeyUp:r?void 0:l,onKeyDown:r?void 0:s};{const b=!!u.href;let C=b?void 0:"button";!C&&h&&(C="link");const S={role:C,tabIndex:r||!b&&!o?0:void 0,...u,onClick:p,onKeyUp:v,onKeyDown:g,"aria-disabled":h};return e==="a"&&h&&(S.href=void 0),S}}const yo=()=>{},IO={controller:{active:yo,blur:yo,find:yo,first:yo,focus:yo,focusLastActive:yo,scrollActiveIntoView:yo,last:yo,next:yo,prev:yo,showAttributes:yo,hideAttributes:yo,showFocusVisibleAttributes:yo,hideFocusVisibleAttributes:yo}},kg=y.createContext(void 0),A1=kg.Provider,_1=()=>{var e;return(e=y.useContext(kg))!==null&&e!==void 0?e:IO},BO=()=>!!y.useContext(kg);function OO(e){const{matchOption:t}=e,{targetDocument:o}=Dt(),r=y.useRef(null),n=y.useRef(null),i=y.useCallback(u=>Gs(u)&&t(u)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,[t]),s=y.useCallback(u=>{u&&o?(n.current=u,r.current=o.createTreeWalker(u,NodeFilter.SHOW_ELEMENT,i)):(n.current=null,r.current=null)},[o,i]);return{optionWalker:y.useMemo(()=>({first:()=>!r.current||!n.current?null:(r.current.currentNode=n.current,r.current.firstChild()),last:()=>!r.current||!n.current?null:(r.current.currentNode=n.current,r.current.lastChild()),next:()=>r.current?r.current.nextNode():null,prev:()=>r.current?r.current.previousNode():null,find:(u,d)=>{if(!r.current||!n.current)return null;const h=d?o?.getElementById(d):null;r.current.currentNode=h??n.current;let p=r.current.currentNode;for(;p&&!u(p.id);)p=r.current.nextNode();return p},setCurrent:u=>{r.current&&(r.current.currentNode=u)}}),[o]),listboxCallbackRef:s}}const I1="data-activedescendant",Zs="data-activedescendant-focusvisible",B1=e=>{if(!e)return;const t=O1(e.parentElement);if(!t)return;const{offsetHeight:o}=e,r=L1(e,t),{scrollMarginTop:n,scrollMarginBottom:i}=LO(e),{offsetHeight:s,scrollTop:l}=t,u=r-n<l,d=r+o+i>l+s,h=2;u?t.scrollTo(0,r-n-h):d&&t.scrollTo(0,r+o+i-s+h)},O1=e=>e?e.scrollHeight>e.offsetHeight?e:O1(e.parentElement):null,L1=(e,t)=>!e||e===t?0:e.contains(t)?t.offsetTop*-1:e.offsetTop+L1(e.offsetParent,t),LO=e=>{var t;const o=(t=e.ownerDocument)===null||t===void 0?void 0:t.defaultView;if(!o)return{scrollMarginTop:0,scrollMarginBottom:0};const r=o.getComputedStyle(e);var n;const i=(n=dd(r.scrollMarginTop))!==null&&n!==void 0?n:dd(r.scrollMarginBlockStart);var s;const l=(s=dd(r.scrollMarginBottom))!==null&&s!==void 0?s:dd(r.scrollMarginBlockEnd);return{scrollMarginTop:i,scrollMarginBottom:l}},dd=e=>e?parseInt(e,10):0,NO=e=>new CustomEvent("activedescendantchange",{bubbles:!0,cancelable:!1,composed:!0,detail:e});function N1(e){const{imperativeRef:t,matchOption:o}=e,r=y.useRef(!1),n=y.useRef(!0),i=y.useRef(null),s=y.useRef(null),l=y.useRef(null),u=y.useRef(!0),d=y.useCallback(()=>{var P;(P=l.current)===null||P===void 0||P.removeAttribute("aria-activedescendant")},[]),h=y.useCallback(P=>{if(P&&(i.current=P),u.current&&i.current){var T;(T=l.current)===null||T===void 0||T.setAttribute("aria-activedescendant",i.current)}},[]);i1(P=>{r.current=P;const T=C();T&&(P&&n.current?T.setAttribute(Zs,""):T.removeAttribute(Zs))});const p=Ce(o),g=y.useRef(null),{optionWalker:v,listboxCallbackRef:b}=OO({matchOption:p}),C=y.useCallback(()=>{var P;return(P=g.current)===null||P===void 0?void 0:P.querySelector(`#${i.current}`)},[g]),S=y.useCallback(P=>{n.current=P;const T=C();T&&(P&&r.current?T.setAttribute(Zs,""):T.removeAttribute(Zs))},[C]),k=y.useCallback(()=>{const P=C();P&&(P.removeAttribute(I1),P.removeAttribute(Zs)),d(),s.current=i.current,i.current=null;var T;return(T=P?.id)!==null&&T!==void 0?T:null},[C,d]),F=y.useCallback(P=>{if(!P)return;const T=k();B1(P),h(P.id),P.setAttribute(I1,""),r.current&&n.current&&P.setAttribute(Zs,"");const D=NO({id:P.id,previousId:T});P.dispatchEvent(D)},[k,h]),R=y.useMemo(()=>({first:({passive:P}={})=>{const T=v.first();return P||F(T),T?.id},last:({passive:P}={})=>{const T=v.last();return P||F(T),T?.id},next:({passive:P}={})=>{const T=C();if(!T)return;v.setCurrent(T);const D=v.next();return P||F(D),D?.id},prev:({passive:P}={})=>{const T=C();if(!T)return;v.setCurrent(T);const D=v.prev();return P||F(D),D?.id},blur:()=>{k()},active:()=>{var P;return(P=C())===null||P===void 0?void 0:P.id},focus:P=>{if(!g.current)return;const T=g.current.querySelector(`#${P}`);T&&F(T)},focusLastActive:()=>{if(!g.current||!s.current)return;const P=g.current.querySelector(`#${s.current}`);if(P)return F(P),!0},find(P,{passive:T,startFrom:D}={}){const M=v.find(P,D);return T||F(M),M?.id},scrollActiveIntoView:()=>{if(!g.current)return;const P=C();P&&B1(P)},showAttributes(){u.current=!0,h()},hideAttributes(){u.current=!1,d()},showFocusVisibleAttributes(){S(!0)},hideFocusVisibleAttributes(){S(!1)}}),[v,g,h,d,F,k,C,S]);return y.useImperativeHandle(t,()=>R),{listboxRef:Mt(g,b),activeParentRef:l,controller:R}}const zO=ye({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{transform:scaleX(-1);}"]}),HO=(e,t)=>{const{title:o,primaryFill:r="currentColor",...n}=e,i={...n,title:void 0,fill:r},s=zO(),l=HI();return i.className=me(s.root,t?.flipInRtl&&l?.textDirection==="rtl"&&s.rtl,i.className),o&&(i["aria-label"]=o),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},VO=ye({root:{B8gzw0y:"f1dd5bof"}},{m:[["@media (forced-colors: active){.f1dd5bof{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]]}),GO="fui-Icon",Re=(e,t,o,r)=>{const n=t==="1em"?"20":t,i=y.forwardRef((s,l)=>{const u=VO(),d=HO(s,{flipInRtl:r?.flipInRtl}),h={...d,className:me(GO,d.className,u.root),ref:l,width:t,height:t,viewBox:`0 0 ${n} ${n}`,xmlns:"http://www.w3.org/2000/svg"};return typeof o=="string"?y.createElement("svg",{...h,dangerouslySetInnerHTML:{__html:o}}):y.createElement("svg",h,...o.map(p=>y.createElement("path",{d:p,fill:h.fill})))});return i.displayName=e,i},jO=Re("SearchRegular","1em",["M13.73 14.44a6.5 6.5 0 1 1 .7-.7l3.42 3.4a.5.5 0 0 1-.63.77l-.07-.06-3.42-3.41Zm-.71-.71A5.54 5.54 0 0 0 15 9.5a5.5 5.5 0 1 0-1.98 4.23Z"]),WO=Re("DatabaseArrowUpFilled","1em",["M10 8c3.31 0 6-1.34 6-3s-2.69-3-6-3-6 1.34-6 3 2.69 3 6 3Zm4.69.02c.47-.24.93-.54 1.31-.9v2.09A5.5 5.5 0 0 0 10.26 18H10c-3.31 0-6-1.34-6-3V7.12c.38.36.84.66 1.31.9C6.56 8.64 8.22 9 10 9c1.78 0 3.44-.36 4.69-.98ZM10 14.5a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0Zm4.85-2.35a.5.5 0 0 0-.35-.15.5.5 0 0 0-.35.15l-2 2a.5.5 0 0 0 .7.7L14 13.71v2.79a.5.5 0 0 0 1 0v-2.8l1.15 1.15a.5.5 0 0 0 .7-.7l-2-2Z"]),qO=Re("DatabaseCheckmarkFilled","1em",["M10 8c3.31 0 6-1.34 6-3s-2.69-3-6-3-6 1.34-6 3 2.69 3 6 3Zm4.69.02c.47-.24.93-.54 1.31-.9v2.09A5.5 5.5 0 0 0 10.26 18H10c-3.31 0-6-1.34-6-3V7.12c.38.36.84.66 1.31.9C6.56 8.64 8.22 9 10 9c1.78 0 3.44-.36 4.69-.98ZM19 14.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-2.15-1.85a.5.5 0 0 0-.7 0l-2.65 2.64-.65-.64a.5.5 0 0 0-.7.7l1 1c.2.2.5.2.7 0l3-3a.5.5 0 0 0 0-.7Z"]),UO=Re("SettingsFilled","1em",["M1.91 7.38A8.5 8.5 0 0 1 3.7 4.3a.5.5 0 0 1 .54-.13l1.92.68a1 1 0 0 0 1.32-.76l.36-2a.5.5 0 0 1 .4-.4 8.53 8.53 0 0 1 3.55 0c.2.04.35.2.38.4l.37 2a1 1 0 0 0 1.32.76l1.92-.68a.5.5 0 0 1 .54.13 8.5 8.5 0 0 1 1.78 3.08c.06.2 0 .4-.15.54l-1.56 1.32a1 1 0 0 0 0 1.52l1.56 1.32a.5.5 0 0 1 .15.54 8.5 8.5 0 0 1-1.78 3.08.5.5 0 0 1-.54.13l-1.92-.68a1 1 0 0 0-1.32.76l-.37 2a.5.5 0 0 1-.38.4 8.53 8.53 0 0 1-3.56 0 .5.5 0 0 1-.39-.4l-.36-2a1 1 0 0 0-1.32-.76l-1.92.68a.5.5 0 0 1-.54-.13 8.5 8.5 0 0 1-1.78-3.08.5.5 0 0 1 .15-.54l1.56-1.32a1 1 0 0 0 0-1.52L2.06 7.92a.5.5 0 0 1-.15-.54ZM8 10a2 2 0 1 0 4 0 2 2 0 0 0-4 0Z"]),$O=Re("PersonRegular","1em",["M10 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8ZM7 6a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm-2 5a2 2 0 0 0-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0 0 10 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0 0 17 13a2 2 0 0 0-2-2H5Zm-1 2a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0 1 10 17a8.16 8.16 0 0 1-4.33-1.05A3.36 3.36 0 0 1 4 13Z"]),KO=Re("SaveRegular","1em",["M3 5c0-1.1.9-2 2-2h8.38a2 2 0 0 1 1.41.59l1.62 1.62A2 2 0 0 1 17 6.62V15a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm2-1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1v-4.5c0-.83.67-1.5 1.5-1.5h7c.83 0 1.5.67 1.5 1.5V16a1 1 0 0 0 1-1V6.62a1 1 0 0 0-.3-.7L14.1 4.28a1 1 0 0 0-.71-.29H13v2.5c0 .83-.67 1.5-1.5 1.5h-4A1.5 1.5 0 0 1 6 6.5V4H5Zm2 0v2.5c0 .28.22.5.5.5h4a.5.5 0 0 0 .5-.5V4H7Zm7 12v-4.5a.5.5 0 0 0-.5-.5h-7a.5.5 0 0 0-.5.5V16h8Z"]),XO=Re("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),ZO=Re("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),YO=Re("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),Fg=Re("DismissRegular","1em",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),QO=Re("Warning12Filled","12",["M5.21 1.46a.9.9 0 0 1 1.58 0l4.09 7.17a.92.92 0 0 1-.79 1.37H1.91a.92.92 0 0 1-.79-1.37l4.1-7.17ZM5.5 4.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0ZM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"]),z1=Re("PresenceAvailable10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10Zm2.1-5.9L4.85 6.35a.5.5 0 0 1-.7 0l-1-1a.5.5 0 0 1 .7-.7l.65.64 1.9-1.9a.5.5 0 0 1 .7.71Z"]),H1=Re("PresenceAvailable10Regular","10",["M5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm6.1-1.6c.2.2.2.5 0 .7L4.85 6.35a.5.5 0 0 1-.7 0l-1-1a.5.5 0 1 1 .7-.7l.65.64 1.9-1.9c.2-.19.5-.19.7 0Z"]),JO=Re("PresenceAvailable12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm2.53-6.72L5.78 8.03c-.3.3-.77.3-1.06 0l-1-1a.75.75 0 0 1 1.06-1.06l.47.47 2.22-2.22a.75.75 0 0 1 1.06 1.06Z"]),eL=Re("PresenceAvailable12Regular","12",["M6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0Zm7.03-1.78c.3.3.3.77 0 1.06L5.78 8.03c-.3.3-.77.3-1.06 0l-1-1a.75.75 0 0 1 1.06-1.06l.47.47 2.22-2.22c.3-.3.77-.3 1.06 0Z"]),tL=Re("PresenceAvailable16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Zm3.7-9.3-4 4a1 1 0 0 1-1.41 0l-2-2a1 1 0 1 1 1.42-1.4L7 8.58l3.3-3.3a1 1 0 0 1 1.4 1.42Z"]),oL=Re("PresenceAvailable16Regular","16",["M11.7 6.7a1 1 0 0 0-1.4-1.4L7 8.58l-1.3-1.3a1 1 0 0 0-1.4 1.42l2 2a1 1 0 0 0 1.4 0l4-4ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),V1=Re("PresenceAvailable20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm4.2-11.8-4.5 4.5a1 1 0 0 1-1.4 0l-2-2a1 1 0 1 1 1.4-1.4L9 10.58l3.8-3.8a1 1 0 1 1 1.4 1.42Z"]),G1=Re("PresenceAvailable20Regular","20",["M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm12.2-3.2a1 1 0 0 1 0 1.4l-4.5 4.5a1 1 0 0 1-1.4 0l-2-2a1 1 0 0 1 1.4-1.4L9 10.58l3.8-3.8a1 1 0 0 1 1.4 0Z"]),j1=Re("PresenceAway10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10Zm0-7v1.8l1.35 1.35a.5.5 0 1 1-.7.7l-1.5-1.5A.5.5 0 0 1 4 5V3a.5.5 0 0 1 1 0Z"]),rL=Re("PresenceAway12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm.5-8.75v2.4l1.49 1.28A.75.75 0 1 1 7 8.07l-1.75-1.5A.75.75 0 0 1 5 6V3.25a.75.75 0 0 1 1.5 0Z"]),nL=Re("PresenceAway16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Zm.5-11.5v3.02l2.12 1.7a1 1 0 1 1-1.24 1.56l-2.5-2A1 1 0 0 1 6.5 8V4.5a1 1 0 0 1 2 0Z"]),W1=Re("PresenceAway20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm0-14V9.6l2.7 2.7a1 1 0 0 1-1.4 1.42l-3-3A1 1 0 0 1 8 10V6a1 1 0 1 1 2 0Z"]),q1=Re("PresenceBlocked10Regular","10",["M10 5A5 5 0 1 0 0 5a5 5 0 0 0 10 0ZM9 5a4 4 0 0 1-6.45 3.16l5.61-5.61C8.69 3.22 9 4.08 9 5ZM7.45 1.84 1.84 7.45a4 4 0 0 1 5.61-5.61Z"]),iL=Re("PresenceBlocked12Regular","12",["M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0Zm-1.5 0c0-.97-.3-1.87-.83-2.6L3.39 9.66A4.5 4.5 0 0 0 10.5 6ZM8.6 2.33a4.5 4.5 0 0 0-6.28 6.28l6.29-6.28Z"]),sL=Re("PresenceBlocked16Regular","16",["M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-2 0c0-1.3-.41-2.5-1.1-3.48L4.51 12.9A6 6 0 0 0 14 8Zm-2.52-4.9a6 6 0 0 0-8.37 8.37l8.37-8.36Z"]),U1=Re("PresenceBlocked20Regular","20",["M20 10a10 10 0 1 0-20 0 10 10 0 0 0 20 0Zm-2 0a8 8 0 0 1-12.9 6.32L16.31 5.09A7.97 7.97 0 0 1 18 10Zm-3.1-6.32L3.69 14.91A8 8 0 0 1 14.91 3.68Z"]),$1=Re("PresenceBusy10Filled","10",["M10 5A5 5 0 1 1 0 5a5 5 0 0 1 10 0Z"]),aL=Re("PresenceBusy12Filled","12",["M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0Z"]),lL=Re("PresenceBusy16Filled","16",["M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Z"]),K1=Re("PresenceBusy20Filled","20",["M20 10a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z"]),X1=Re("PresenceDnd10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10ZM3.5 4.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1Z"]),Z1=Re("PresenceDnd10Regular","10",["M5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm2 0c0-.28.22-.5.5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 3 5Z"]),cL=Re("PresenceDnd12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12ZM3.75 5.25h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5Z"]),uL=Re("PresenceDnd12Regular","12",["M6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3 6c0-.41.34-.75.75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5A.75.75 0 0 1 3 6Z"]),dL=Re("PresenceDnd16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16ZM5.25 7h5.5a1 1 0 1 1 0 2h-5.5a1 1 0 1 1 0-2Z"]),hL=Re("PresenceDnd16Regular","16",["M5.25 7a1 1 0 0 0 0 2h5.5a1 1 0 1 0 0-2h-5.5ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),Y1=Re("PresenceDnd20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20ZM7 9h6a1 1 0 1 1 0 2H7a1 1 0 1 1 0-2Z"]),Q1=Re("PresenceDnd20Regular","20",["M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm4 0a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z"]),J1=Re("PresenceOffline10Regular","10",["M6.85 3.15c.2.2.2.5 0 .7L5.71 5l1.14 1.15a.5.5 0 1 1-.7.7L5 5.71 3.85 6.85a.5.5 0 1 1-.7-.7L4.29 5 3.15 3.85a.5.5 0 1 1 .7-.7L5 4.29l1.15-1.14c.2-.2.5-.2.7 0ZM0 5a5 5 0 1 1 10 0A5 5 0 0 1 0 5Zm5-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"]),fL=Re("PresenceOffline12Regular","12",["M8.03 3.97c.3.3.3.77 0 1.06L7.06 6l.97.97a.75.75 0 0 1-1.06 1.06L6 7.06l-.97.97a.75.75 0 0 1-1.06-1.06L4.94 6l-.97-.97a.75.75 0 0 1 1.06-1.06l.97.97.97-.97c.3-.3.77-.3 1.06 0ZM0 6a6 6 0 1 1 12 0A6 6 0 0 1 0 6Zm6-4.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),pL=Re("PresenceOffline16Regular","16",["M10.7 5.3a1 1 0 0 1 0 1.4L9.42 8l1.3 1.3a1 1 0 0 1-1.42 1.4L8 9.42l-1.3 1.3a1 1 0 0 1-1.4-1.42L6.58 8l-1.3-1.3a1 1 0 0 1 1.42-1.4L8 6.58l1.3-1.3a1 1 0 0 1 1.4 0ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),eS=Re("PresenceOffline20Regular","20",["M13.7 6.3a1 1 0 0 1 0 1.4L11.42 10l2.3 2.3a1 1 0 0 1-1.42 1.4L10 11.42l-2.3 2.3a1 1 0 0 1-1.4-1.42L8.58 10l-2.3-2.3a1 1 0 0 1 1.42-1.4L10 8.58l2.3-2.3a1 1 0 0 1 1.4 0ZM0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0Zm10-8a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),tS=Re("PresenceOof10Regular","10",["M5.35 3.85a.5.5 0 1 0-.7-.7l-1.5 1.5a.5.5 0 0 0 0 .7l1.5 1.5a.5.5 0 1 0 .7-.7L4.7 5.5h1.8a.5.5 0 1 0 0-1H4.7l.65-.65ZM5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Z"]),gL=Re("PresenceOof12Regular","12",["M6.28 4.53a.75.75 0 0 0-1.06-1.06l-2 2c-.3.3-.3.77 0 1.06l2 2a.75.75 0 0 0 1.06-1.06l-.72-.72h2.69a.75.75 0 1 0 0-1.5h-2.7l.73-.72ZM6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0Z"]),mL=Re("PresenceOof16Regular","16",["M8.2 6.2a1 1 0 1 0-1.4-1.4L4.3 7.3a1 1 0 0 0 0 1.4l2.5 2.5a1 1 0 0 0 1.4-1.4L7.42 9H11a1 1 0 1 0 0-2H7.41l.8-.8ZM8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z"]),oS=Re("PresenceOof20Regular","20",["M10.7 7.7A1 1 0 1 0 9.28 6.3l-3 3a1 1 0 0 0 0 1.41l3 3a1 1 0 1 0 1.42-1.41l-1.3-1.3H13a1 1 0 1 0 0-2H9.4l1.3-1.29ZM10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"]),rS=Re("PresenceUnknown10Regular","10",["M5 1a4 4 0 1 0 0 8 4 4 0 0 0 0-8ZM0 5a5 5 0 1 1 10 0A5 5 0 0 1 0 5Z"]),vL=Re("PresenceUnknown12Regular","12",["M6 1.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9ZM0 6a6 6 0 1 1 12 0A6 6 0 0 1 0 6Z"]),bL=Re("PresenceUnknown16Regular","16",["M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Z"]),nS=Re("PresenceUnknown20Regular","20",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16ZM0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0Z"]),iS=Re("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),CL=Re("Checkmark16Filled","16",["M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 0 1 4.9 12L2.22 9.28a.75.75 0 1 1 1.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 0 1 1.06.04Z"]),wL=Re("CheckmarkCircle12Filled","12",["M1 6a5 5 0 1 1 10 0A5 5 0 0 1 1 6Zm7.35-.9a.5.5 0 1 0-.7-.7L5.5 6.54 4.35 5.4a.5.5 0 1 0-.7.7l1.5 1.5c.2.2.5.2.7 0l2.5-2.5Z"]),yL=Re("Square12Filled","12",["M2 4c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Z"]),SL=Re("Square16Filled","16",["M2 4.5A2.5 2.5 0 0 1 4.5 2h7A2.5 2.5 0 0 1 14 4.5v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 11.5v-7Z"]),xL=Re("ErrorCircle12Filled","12",["M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10Zm-.75-2.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Zm.26-4.84a.5.5 0 0 1 .98 0l.01.09v2.59a.5.5 0 0 1-1 0V3.41Z"]),kL=Re("Dismiss20Regular","20",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),Wt={...{durationUltraFast:50,durationFaster:100,durationFast:150,durationNormal:200,durationGentle:250,durationSlow:300,durationSlower:400,durationUltraSlow:500},...{curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"}};function FL(e){if(e.playState==="running"){var t;if(e.overallProgress!==void 0){var o;const l=(o=e.overallProgress)!==null&&o!==void 0?o:0;return l>0&&l<1}var r;const i=Number((r=e.currentTime)!==null&&r!==void 0?r:0);var n;const s=Number((n=(t=e.effect)===null||t===void 0?void 0:t.getTiming().duration)!==null&&n!==void 0?n:0);return i>0&&i<s}return!1}const RL={fill:"forwards"},PL={duration:1};function EL(e){return{set playbackRate(t){e.forEach(o=>{o.playbackRate=t})},setMotionEndCallbacks(t,o){const r=e.map(n=>new Promise((i,s)=>{n.onfinish=()=>i(),n.oncancel=()=>s()}));Promise.all(r).then(()=>{t()}).catch(()=>{o()})},isRunning(){return e.some(t=>FL(t))},dispose:()=>{e.length=0},cancel:()=>{e.forEach(t=>{t.cancel()})},pause:()=>{e.forEach(t=>{t.pause()})},play:()=>{e.forEach(t=>{t.play()})},finish:()=>{e.forEach(t=>{t.finish()})},reverse:()=>{e.forEach(t=>{t.reverse()})}}}function TL(){var e;const t=typeof window<"u"&&typeof((e=window.Animation)===null||e===void 0?void 0:e.prototype.persist)=="function";return y.useCallback((o,r,n)=>{const i=Array.isArray(r)?r:[r],{isReducedMotion:s}=n,l=i.map(u=>{const{keyframes:d,reducedMotion:h=PL,...p}=u,{keyframes:g=d,...v}=h,b=s?g:d,C={...RL,...p,...s&&v};try{const k=o.animate(b,C);if(t)k?.persist();else{const F=b[b.length-1];var S;Object.assign((S=o.style)!==null&&S!==void 0?S:{},F)}return k}catch{return null}}).filter(u=>!!u);return EL(l)},[t])}function sS(){"use no memo";return TL()}function aS(e){const t=y.useRef(void 0);return y.useImperativeHandle(e,()=>({setPlayState:o=>{if(o==="running"){var r;(r=t.current)===null||r===void 0||r.play()}if(o==="paused"){var n;(n=t.current)===null||n===void 0||n.pause()}},setPlaybackRate:o=>{t.current&&(t.current.playbackRate=o)}})),t}const DL="screen and (prefers-reduced-motion: reduce)";function lS(){const{targetDocument:e}=Dt();var t;const o=(t=e?.defaultView)!==null&&t!==void 0?t:null,r=y.useRef(!1),n=y.useCallback(()=>r.current,[]);return oo(()=>{if(o===null||typeof o.matchMedia!="function")return;const i=o.matchMedia(DL);i.matches&&(r.current=!0);const s=l=>{r.current=l.matches};return i.addEventListener("change",s),()=>{i.removeEventListener("change",s)}},[o]),n}const ML=["@fluentui/react-motion: Invalid child element.",`
12
+ `,"Motion factories require a single child element to be passed. ","That element element should support ref forwarding i.e. it should be either an intrinsic element (e.g. div) or a component that uses React.forwardRef()."].join("");function cS(e,t=!0){const o=y.useRef(null);y.useEffect(()=>{},[t]);try{const r=y.Children.only(e);if(y.isValidElement(r))return[y.cloneElement(r,{ref:Mt(o,Qp(r))}),o]}catch{}throw new Error(ML)}const uS=y.createContext(void 0);uS.Provider;const dS=()=>{var e;return(e=y.useContext(uS))!==null&&e!==void 0?e:"default"},AL=Symbol("MOTION_DEFINITION");function hS(e){return Object.assign(o=>{"use no memo";const{children:r,imperativeRef:n,onMotionFinish:i,onMotionStart:s,onMotionCancel:l,...u}=o,d=u,[h,p]=cS(r),g=aS(n),v=dS()==="skip",b=y.useRef({skipMotions:v,params:d}),C=sS(),S=lS(),k=Ce(()=>{s?.(null)}),F=Ce(()=>{i?.(null)}),R=Ce(()=>{l?.(null)});return oo(()=>{b.current={skipMotions:v,params:d}}),oo(()=>{const P=p.current;if(P){const T=typeof e=="function"?e({element:P,...b.current.params}):e;k();const D=C(P,T,{isReducedMotion:S()});return g.current=D,D.setMotionEndCallbacks(F,R),b.current.skipMotions&&D.finish(),()=>{D.cancel()}}},[C,p,g,S,F,k,R]),h},{[AL]:typeof e=="function"?e:()=>e})}const fS=y.createContext(void 0);fS.Provider;function _L(e=!1,t=!1){const o=y.useRef(t?e:!0),r=bI(),n=y.useCallback(i=>{o.current!==i&&(o.current=i,r())},[r]);return y.useEffect(()=>{e&&(o.current=e)}),[e||o.current,n]}const pS=Symbol("PRESENCE_MOTION_DEFINITION"),IL=Symbol.for("interruptablePresence");function Rg(e){return Object.assign(t=>{"use no memo";const r={...y.useContext(fS),...t},n=dS()==="skip",{appear:i,children:s,imperativeRef:l,onExit:u,onMotionFinish:d,onMotionStart:h,onMotionCancel:p,visible:g,unmountOnExit:v,...b}=r,C=b,[S,k]=_L(g,v),[F,R]=cS(s,S),P=aS(l),T=y.useRef({appear:i,params:C,skipMotions:n}),D=sS(),M=py(),O=lS(),I=Ce(q=>{h?.(null,{direction:q})}),z=Ce(q=>{d?.(null,{direction:q}),q==="exit"&&v&&(k(!1),u?.())}),U=Ce(q=>{p?.(null,{direction:q})});return oo(()=>{T.current={appear:i,params:C,skipMotions:n}}),oo(()=>{const q=R.current;if(!q)return;let A;function K(){A&&(Z&&A.isRunning()||(A.cancel(),P.current=void 0))}const $=typeof e=="function"?e({element:q,...T.current.params}):e,Z=$[IL];if(Z&&(A=P.current,A&&A.isRunning()))return A.reverse(),K;const W=g?$.enter:$.exit,_=g?"enter":"exit",V=!T.current.appear&&M,j=T.current.skipMotions;return V||I(_),A=D(q,W,{isReducedMotion:O()}),V?(A.finish(),K):(P.current=A,A.setMotionEndCallbacks(()=>z(_),()=>U(_)),j&&A.finish(),K)},[D,R,P,O,z,I,U,g]),y.useEffect(()=>{if(v&&!S){var q;(q=P.current)===null||q===void 0||q.dispose()}},[P,v,S]),S?F:null},{[pS]:typeof e=="function"?e:()=>e},{In:hS(typeof e=="function"?(...t)=>e(...t).enter:e.enter),Out:hS(typeof e=="function"?(...t)=>e(...t).exit:e.exit)})}function BL(e,t){return r=>e({...t,...r})}function Ol(e,t){const o=e[pS],r=BL(o,t);return Rg(r)}function gS(e,t){const{as:o,children:r,...n}=e??{};if(e===null){const s=!t.defaultProps.visible&&t.defaultProps.unmountOnExit,l=(u,d)=>s?null:y.createElement(y.Fragment,null,d.children);return{[Qu]:l,[Vs]:t.elementType}}const i={...t.defaultProps,...n,[Vs]:t.elementType};return typeof r=="function"&&(i[Qu]=r),i}const hd=({direction:e,duration:t,easing:o=Wt.curveLinear,delay:r=0,outOpacity:n=0,inOpacity:i=1})=>{const s=[{opacity:n},{opacity:i}];return e==="exit"&&s.reverse(),{keyframes:s,duration:t,easing:o,delay:r,fill:"both"}},mS=Rg(({duration:e=Wt.durationNormal,easing:t=Wt.curveEasyEase,delay:o=0,exitDuration:r=e,exitEasing:n=t,exitDelay:i=o,outOpacity:s=0,inOpacity:l=1})=>({enter:hd({direction:"enter",duration:e,easing:t,delay:o,outOpacity:s,inOpacity:l}),exit:hd({direction:"exit",duration:r,easing:n,delay:i,outOpacity:s,inOpacity:l})}));Ol(mS,{duration:Wt.durationFast});const OL=Ol(mS,{duration:Wt.durationGentle}),vS=({direction:e,duration:t,easing:o=Wt.curveLinear,delay:r=0,outScale:n=.9,inScale:i=1})=>{const s=[{scale:n},{scale:i}];return e==="exit"&&s.reverse(),{keyframes:s,duration:t,easing:o,delay:r}},Pg=Rg(({duration:e=Wt.durationGentle,easing:t=Wt.curveDecelerateMax,delay:o=0,exitDuration:r=Wt.durationNormal,exitEasing:n=Wt.curveAccelerateMax,exitDelay:i=o,outScale:s=.9,inScale:l=1,animateOpacity:u=!0})=>{const d=[vS({direction:"enter",duration:e,easing:t,delay:o,outScale:s,inScale:l})],h=[vS({direction:"exit",duration:r,easing:n,delay:i,outScale:s,inScale:l})];return u&&(d.push(hd({direction:"enter",duration:e,easing:t,delay:o})),h.push(hd({direction:"exit",duration:r,easing:n,delay:i}))),{enter:d,exit:h}});Ol(Pg,{duration:Wt.durationNormal,exitDuration:Wt.durationFast}),Ol(Pg,{duration:Wt.durationSlow,exitDuration:Wt.durationGentle});const LL=e=>kt(e.root,{children:[e.initials&&he(e.initials,{}),e.icon&&he(e.icon,{}),e.image&&he(e.image,{}),e.badge&&he(e.badge,{}),e.activeAriaLabelElement]}),NL=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,zL=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,HL=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,VL=/\s+/g,GL=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function jL(e,t,o){let r="";const n=e.split(" ");return n.length!==0&&(r+=n[0].charAt(0).toUpperCase()),o||(n.length===2?r+=n[1].charAt(0).toUpperCase():n.length===3&&(r+=n[2].charAt(0).toUpperCase())),t&&r.length>1?r.charAt(1)+r.charAt(0):r}function WL(e){return e=e.replace(NL,""),e=e.replace(zL,""),e=e.replace(VL," "),e=e.trim(),e}function qL(e,t,o){return!e||(e=WL(e),GL.test(e)||!o?.allowPhoneInitials&&HL.test(e))?"":jL(e,t,o?.firstInitialOnly)}const UL=(e,t)=>{const{shape:o="circular",size:r="medium",iconPosition:n="before",appearance:i="filled",color:s="brand"}=e;return{shape:o,size:r,iconPosition:n,appearance:i,color:s,components:{root:"div",icon:"span"},root:Xe(Lt("div",{ref:t,...e}),{elementType:"div"}),icon:qe(e.icon,{elementType:"span"})}},$L=e=>kt(e.root,{children:[e.iconPosition==="before"&&e.icon&&he(e.icon,{}),e.root.children,e.iconPosition==="after"&&e.icon&&he(e.icon,{})]}),KL={tiny:j1,"extra-small":j1,small:rL,medium:nL,large:W1,"extra-large":W1},XL={tiny:H1,"extra-small":H1,small:eL,medium:oL,large:G1,"extra-large":G1},ZL={tiny:z1,"extra-small":z1,small:JO,medium:tL,large:V1,"extra-large":V1},YL={tiny:q1,"extra-small":q1,small:iL,medium:sL,large:U1,"extra-large":U1},QL={tiny:$1,"extra-small":$1,small:aL,medium:lL,large:K1,"extra-large":K1},JL={tiny:X1,"extra-small":X1,small:cL,medium:dL,large:Y1,"extra-large":Y1},eN={tiny:Z1,"extra-small":Z1,small:uL,medium:hL,large:Q1,"extra-large":Q1},Eg={tiny:tS,"extra-small":tS,small:gL,medium:mL,large:oS,"extra-large":oS},tN={tiny:J1,"extra-small":J1,small:fL,medium:pL,large:eS,"extra-large":eS},bS={tiny:rS,"extra-small":rS,small:vL,medium:bL,large:nS,"extra-large":nS},oN=(e,t,o)=>{switch(e){case"available":return t?XL[o]:ZL[o];case"away":return t?Eg[o]:KL[o];case"blocked":return YL[o];case"busy":return t?bS[o]:QL[o];case"do-not-disturb":return t?eN[o]:JL[o];case"offline":return t?Eg[o]:tN[o];case"out-of-office":return Eg[o];case"unknown":return bS[o]}},CS={busy:"busy","out-of-office":"out of office",away:"away",available:"available",offline:"offline","do-not-disturb":"do not disturb",unknown:"unknown",blocked:"blocked"},rN=(e,t)=>{const{size:o="medium",status:r="available",outOfOffice:n=!1}=e,i=CS[r],s=e.outOfOffice&&e.status!=="out-of-office"?` ${CS["out-of-office"]}`:"",l=oN(r,n,o);return{...UL({"aria-label":i+s,role:"img",...e,size:o,icon:qe(e.icon,{defaultProps:{children:l?y.createElement(l,null):null},renderByDefault:!0,elementType:"span"})},t),status:r,outOfOffice:n}},wS={root:"fui-PresenceBadge",icon:"fui-PresenceBadge__icon"},nN=e=>e==="busy"||e==="do-not-disturb"||e==="blocked",iN=Ke("r832ydo",null,[".r832ydo{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;border-radius:var(--borderRadiusCircular);background-color:var(--colorNeutralBackground1);padding:1px;background-clip:content-box;}"]),sN=Ke("r11ag4qr",null,[".r11ag4qr{display:flex;margin:-1px;}"]),aN=ye({statusBusy:{sj55zd:"fvi85wt"},statusAway:{sj55zd:"f14k8a89"},statusAvailable:{sj55zd:"fqa5hgp"},statusOffline:{sj55zd:"f11d4kpn"},statusOutOfOffice:{sj55zd:"fdce8r3"},statusUnknown:{sj55zd:"f11d4kpn"},outOfOffice:{sj55zd:"fr0bkrk"},outOfOfficeAvailable:{sj55zd:"fqa5hgp"},outOfOfficeBusy:{sj55zd:"fvi85wt"},outOfOfficeUnknown:{sj55zd:"f11d4kpn"},tiny:{Bubjx69:"f9ikmtg",a9b677:"f16dn6v3",B2eet1l:"f1w2irj7",B5pe6w7:"fab5kbq",p4uzdd:"f1ms1d91"},large:{Bubjx69:"f9ikmtg",a9b677:"f64fuq3",B5pe6w7:"f1vfi1yj",p4uzdd:"f15s34gz"},extraLarge:{Bubjx69:"f9ikmtg",a9b677:"f1w9dchk",B5pe6w7:"f14efy9b",p4uzdd:"fhipgdu"}},{d:[".fvi85wt{color:var(--colorPaletteRedBackground3);}",".f14k8a89{color:var(--colorPaletteMarigoldBackground3);}",".fqa5hgp{color:var(--colorPaletteLightGreenForeground3);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".fdce8r3{color:var(--colorPaletteBerryForeground3);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f9ikmtg{aspect-ratio:1;}",".f16dn6v3{width:6px;}",".f1w2irj7{background-clip:unset;}",".fab5kbq svg{width:6px!important;}",".f1ms1d91 svg{height:6px!important;}",".f64fuq3{width:20px;}",".f1vfi1yj svg{width:20px!important;}",".f15s34gz svg{height:20px!important;}",".f1w9dchk{width:28px;}",".f14efy9b svg{width:28px!important;}",".fhipgdu svg{height:28px!important;}"]}),lN=e=>{"use no memo";const t=iN(),o=sN(),r=aN(),n=nN(e.status);return e.root.className=me(wS.root,t,n&&r.statusBusy,e.status==="away"&&r.statusAway,e.status==="available"&&r.statusAvailable,e.status==="offline"&&r.statusOffline,e.status==="out-of-office"&&r.statusOutOfOffice,e.status==="unknown"&&r.statusUnknown,e.outOfOffice&&r.outOfOffice,e.outOfOffice&&e.status==="available"&&r.outOfOfficeAvailable,e.outOfOffice&&n&&r.outOfOfficeBusy,e.outOfOffice&&(e.status==="out-of-office"||e.status==="away"||e.status==="offline")&&r.statusOutOfOffice,e.outOfOffice&&e.status==="unknown"&&r.outOfOfficeUnknown,e.size==="tiny"&&r.tiny,e.size==="large"&&r.large,e.size==="extra-large"&&r.extraLarge,e.root.className),e.icon&&(e.icon.className=me(wS.icon,o,e.icon.className)),e},Tg=y.forwardRef((e,t)=>{const o=rN(e,t);return lN(o),dt("usePresenceBadgeStyles_unstable")(o),$L(o)});Tg.displayName="PresenceBadge";const yS=y.createContext(void 0),cN={},uN=yS.Provider,dN=()=>{var e;return(e=y.useContext(yS))!==null&&e!==void 0?e:cN},hN={active:"active",inactive:"inactive"},fN=(e,t)=>{const{dir:o}=Dt(),{shape:r,size:n}=dN(),{name:i,size:s=n??32,shape:l=r??"circular",active:u="unset",activeAppearance:d="ring",idForColor:h}=e;let{color:p="neutral"}=e;if(p==="colorful"){var g;p=SS[gN((g=h??i)!==null&&g!==void 0?g:"")%SS.length]}const v=Oo("avatar-"),b=Xe(Lt("span",{role:"img",id:v,...e,ref:t},["name"]),{elementType:"span"}),[C,S]=y.useState(void 0);let k=qe(e.image,{defaultProps:{alt:"",role:"presentation","aria-hidden":!0,hidden:C},elementType:"img"});k?.src||(k=void 0),k&&(k.onError=tt(k.onError,()=>S(!0)),k.onLoad=tt(k.onLoad,()=>S(void 0)));let F=qe(e.initials,{renderByDefault:!0,defaultProps:{children:qL(i,o==="rtl",{firstInitialOnly:s<=16}),id:v+"__initials"},elementType:"span"});F?.children||(F=void 0);let R;!F&&(!k||C)&&(R=qe(e.icon,{renderByDefault:!0,defaultProps:{children:y.createElement($O,null),"aria-hidden":!0},elementType:"span"}));const P=qe(e.badge,{defaultProps:{size:pN(s),id:v+"__badge"},elementType:Tg});let T;if(!b["aria-label"]&&!b["aria-labelledby"]&&(i?(b["aria-label"]=i,P&&(b["aria-labelledby"]=b.id+" "+P.id)):F&&(b["aria-labelledby"]=F.id+(P?" "+P.id:"")),u==="active"||u==="inactive")){const D=hN[u];if(b["aria-labelledby"]){const M=v+"__active";b["aria-labelledby"]+=" "+M,T=y.createElement("span",{hidden:!0,id:M},D)}else b["aria-label"]&&(b["aria-label"]+=" "+D)}return{size:s,shape:l,active:u,activeAppearance:d,activeAriaLabelElement:T,color:p,components:{root:"span",initials:"span",icon:"span",image:"img",badge:Tg},root:b,initials:F,icon:R,image:k,badge:P}},pN=e=>e>=96?"extra-large":e>=64?"large":e>=56?"medium":e>=40?"small":e>=28?"extra-small":"tiny",SS=["dark-red","cranberry","red","pumpkin","peach","marigold","gold","brass","brown","forest","seafoam","dark-green","light-teal","teal","steel","blue","royal-blue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],gN=e=>{let t=0;for(let o=e.length-1;o>=0;o--){const r=e.charCodeAt(o),n=o%8;t^=(r<<n)+(r>>8-n)}return t},Ll={root:"fui-Avatar",image:"fui-Avatar__image",initials:"fui-Avatar__initials",icon:"fui-Avatar__icon",badge:"fui-Avatar__badge"},mN=Ke("r81b29z","r1aatmv",{r:[".r81b29z{display:inline-block;flex-shrink:0;position:relative;vertical-align:middle;border-radius:var(--borderRadiusCircular);font-family:var(--fontFamilyBase);font-weight:var(--fontWeightSemibold);font-size:var(--fontSizeBase300);width:32px;height:32px;}",".r81b29z::before,.r81b29z::after{position:absolute;top:0;left:0;bottom:0;right:0;z-index:-1;margin:calc(-2 * var(--fui-Avatar-ringWidth, 0px));border-radius:inherit;transition-property:margin,opacity;transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);transition-duration:var(--durationUltraSlow),var(--durationSlower);}",".r81b29z::before{border-style:solid;border-width:var(--fui-Avatar-ringWidth);}",".r1aatmv{display:inline-block;flex-shrink:0;position:relative;vertical-align:middle;border-radius:var(--borderRadiusCircular);font-family:var(--fontFamilyBase);font-weight:var(--fontWeightSemibold);font-size:var(--fontSizeBase300);width:32px;height:32px;}",".r1aatmv::before,.r1aatmv::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;margin:calc(-2 * var(--fui-Avatar-ringWidth, 0px));border-radius:inherit;transition-property:margin,opacity;transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);transition-duration:var(--durationUltraSlow),var(--durationSlower);}",".r1aatmv::before{border-style:solid;border-width:var(--fui-Avatar-ringWidth);}"],s:["@media screen and (prefers-reduced-motion: reduce){.r81b29z::before,.r81b29z::after{transition-duration:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1aatmv::before,.r1aatmv::after{transition-duration:0.01ms;}}"]}),vN=Ke("r136dc0n","rjly0nl",[".r136dc0n{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;object-fit:cover;vertical-align:top;}",".rjly0nl{position:absolute;top:0;right:0;width:100%;height:100%;border-radius:inherit;object-fit:cover;vertical-align:top;}"]),bN=Ke("rip04v","r31uzil",[".rip04v{position:absolute;box-sizing:border-box;top:0;left:0;width:100%;height:100%;line-height:1;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);display:flex;align-items:center;justify-content:center;vertical-align:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:inherit;}",".r31uzil{position:absolute;box-sizing:border-box;top:0;right:0;width:100%;height:100%;line-height:1;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);display:flex;align-items:center;justify-content:center;vertical-align:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:inherit;}"]),CN=ye({textCaption2Strong:{Be2twd7:"f13mqy1h"},textCaption1Strong:{Be2twd7:"fy9rknc"},textSubtitle2:{Be2twd7:"fod5ikn"},textSubtitle1:{Be2twd7:"f1pp30po"},textTitle3:{Be2twd7:"f1x0m3f5"},squareSmall:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fq9zq91"},squareMedium:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},squareLarge:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1o0qvyv"},squareXLarge:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1kijzfu"},activeOrInactive:{Bz10aip:"ftfx35i",Bmy1vo4:"fv0atk9",B3o57yi:"f1iry5bo",Bkqvd7p:"f15n41j8",Bg24rqe:"f9ttr0w"},ring:{Ftih45:"f1wl9k8s"},ringBadgeCutout:{f4a502:"fp2gujx"},ringThick:{of393c:"fq1w1vq"},ringThicker:{of393c:"fzg6ace"},ringThickest:{of393c:"f1nu8p71"},shadow:{Bsft5z2:"f13zj6fq"},shadow4:{Be6vj1x:"fcjn15l"},shadow8:{Be6vj1x:"f1tm8t9f"},shadow16:{Be6vj1x:"f1a1aohj"},shadow28:{Be6vj1x:"fond6v5"},inactive:{abs64n:"fp25eh",Bz10aip:"f1clczzi",Bkqvd7p:"f1l3s34x",Bfgortx:0,Bnvr3x9:0,b2tv09:0,Bucmhp4:0,iayac2:"flkahu5",b6ubon:"fw457kn",Bqinb2h:"f1wmllxl"},badge:{qhf8xq:"f1euv43f",B5kzvoi:"f1yab3r1",j35jbq:["f1e31b4d","f1vgc2s3"]},badgeCutout:{btxmck:"f1eugkqs"},badgeAlign:{Dnlfbu:["f1tlnv9o","f1y9kyih"]},tiny:{Bdjeniz:"f1uwoubl",niu6jh:"fid048z"},"extra-small":{Bdjeniz:"f13ar0e0",niu6jh:"fid048z"},small:{Bdjeniz:"fwwuruf",niu6jh:"fid048z"},medium:{Bdjeniz:"f1af27q5",niu6jh:"fid048z"},large:{Bdjeniz:"f18yy57a",niu6jh:"f924bxt"},"extra-large":{Bdjeniz:"f2jg042",niu6jh:"f924bxt"},icon12:{Be2twd7:"f1ugzwwg"},icon16:{Be2twd7:"f4ybsrx"},icon20:{Be2twd7:"fe5j1ua"},icon24:{Be2twd7:"f1rt2boy"},icon28:{Be2twd7:"f24l1pt"},icon32:{Be2twd7:"ffl51b"},icon48:{Be2twd7:"f18m8u13"}},{d:[".f13mqy1h{font-size:var(--fontSizeBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",[".fq9zq91{border-radius:var(--borderRadiusSmall);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f1o0qvyv{border-radius:var(--borderRadiusLarge);}",{p:-1}],[".f1kijzfu{border-radius:var(--borderRadiusXLarge);}",{p:-1}],".ftfx35i{transform:perspective(1px);}",".fv0atk9{transition-property:transform,opacity;}",".f1iry5bo{transition-duration:var(--durationUltraSlow),var(--durationFaster);}",".f15n41j8{transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);}",'.f1wl9k8s::before{content:"";}',".fp2gujx::before{-webkit-mask-image:radial-gradient(circle at bottom calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)) var(--fui-Avatar-badgeAlign) calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));mask-image:radial-gradient(circle at bottom calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)) var(--fui-Avatar-badgeAlign) calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));}",".fq1w1vq{--fui-Avatar-ringWidth:var(--strokeWidthThick);}",".fzg6ace{--fui-Avatar-ringWidth:var(--strokeWidthThicker);}",".f1nu8p71{--fui-Avatar-ringWidth:var(--strokeWidthThickest);}",'.f13zj6fq::after{content:"";}',".fcjn15l::after{box-shadow:var(--shadow4);}",".f1tm8t9f::after{box-shadow:var(--shadow8);}",".f1a1aohj::after{box-shadow:var(--shadow16);}",".fond6v5::after{box-shadow:var(--shadow28);}",".fp25eh{opacity:0.8;}",".f1clczzi{transform:scale(0.875);}",".f1l3s34x{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}",[".flkahu5::before,.flkahu5::after{margin:0;}",{p:-1}],".fw457kn::before,.fw457kn::after{opacity:0;}",".f1wmllxl::before,.f1wmllxl::after{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}",".f1euv43f{position:absolute;}",".f1yab3r1{bottom:0;}",".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1eugkqs{-webkit-mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));}",".f1tlnv9o{--fui-Avatar-badgeAlign:right;}",".f1y9kyih{--fui-Avatar-badgeAlign:left;}",".f1uwoubl{--fui-Avatar-badgeRadius:3px;}",".fid048z{--fui-Avatar-badgeGap:var(--strokeWidthThin);}",".f13ar0e0{--fui-Avatar-badgeRadius:5px;}",".fwwuruf{--fui-Avatar-badgeRadius:6px;}",".f1af27q5{--fui-Avatar-badgeRadius:8px;}",".f18yy57a{--fui-Avatar-badgeRadius:10px;}",".f924bxt{--fui-Avatar-badgeGap:var(--strokeWidthThick);}",".f2jg042{--fui-Avatar-badgeRadius:14px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f24l1pt{font-size:28px;}",".ffl51b{font-size:32px;}",".f18m8u13{font-size:48px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f9ttr0w{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),wN=ye({16:{a9b677:"fjw5fx7",Bqenvij:"fd461yt"},20:{a9b677:"f64fuq3",Bqenvij:"fjamq6b"},24:{a9b677:"fq4mcun",Bqenvij:"frvgh55"},28:{a9b677:"f1w9dchk",Bqenvij:"fxldao9"},32:{a9b677:"f1szoe96",Bqenvij:"f1d2rq10"},36:{a9b677:"fpdz1er",Bqenvij:"f8ljn23"},40:{a9b677:"feqmc2u",Bqenvij:"fbhnoac"},48:{a9b677:"f124akge",Bqenvij:"ff2sm71"},56:{a9b677:"f1u66zr1",Bqenvij:"fzki0ko"},64:{a9b677:"fa9ln6p",Bqenvij:"f16k9i2m"},72:{a9b677:"fhcae8x",Bqenvij:"f1shusfg"},96:{a9b677:"f1kyr2gn",Bqenvij:"fypu0ge"},120:{a9b677:"fwfqyga",Bqenvij:"fjr5b71"},128:{a9b677:"f1iksgmy",Bqenvij:"fele2au"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f1w9dchk{width:28px;}",".fxldao9{height:28px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fpdz1er{width:36px;}",".f8ljn23{height:36px;}",".feqmc2u{width:40px;}",".fbhnoac{height:40px;}",".f124akge{width:48px;}",".ff2sm71{height:48px;}",".f1u66zr1{width:56px;}",".fzki0ko{height:56px;}",".fa9ln6p{width:64px;}",".f16k9i2m{height:64px;}",".fhcae8x{width:72px;}",".f1shusfg{height:72px;}",".f1kyr2gn{width:96px;}",".fypu0ge{height:96px;}",".fwfqyga{width:120px;}",".fjr5b71{height:120px;}",".f1iksgmy{width:128px;}",".fele2au{height:128px;}"]}),yN=ye({neutral:{sj55zd:"f11d4kpn",De3pzq:"f18f03hv"},brand:{sj55zd:"fonrgv7",De3pzq:"f1blnnmj"},"dark-red":{sj55zd:"fqjd1y1",De3pzq:"f1vq2oo4"},cranberry:{sj55zd:"fg9gses",De3pzq:"f1lwxszt"},red:{sj55zd:"f23f7i0",De3pzq:"f1q9qhfq"},pumpkin:{sj55zd:"fjnan08",De3pzq:"fz91bi3"},peach:{sj55zd:"fknu15p",De3pzq:"f1b9nr51"},marigold:{sj55zd:"f9603vw",De3pzq:"f3z4w6d"},gold:{sj55zd:"fmq0uwp",De3pzq:"fg50kya"},brass:{sj55zd:"f28g5vo",De3pzq:"f4w2gd0"},brown:{sj55zd:"ftl572b",De3pzq:"f14wu1f4"},forest:{sj55zd:"f1gymlvd",De3pzq:"f19ut4y6"},seafoam:{sj55zd:"fnnb6wn",De3pzq:"f1n057jc"},"dark-green":{sj55zd:"ff58qw8",De3pzq:"f11t05wk"},"light-teal":{sj55zd:"f1up9qbj",De3pzq:"f42feg1"},teal:{sj55zd:"f135dsb4",De3pzq:"f6hvv1p"},steel:{sj55zd:"f151dlcp",De3pzq:"f1lnp8zf"},blue:{sj55zd:"f1rjv50u",De3pzq:"f1ggcpy6"},"royal-blue":{sj55zd:"f1emykk5",De3pzq:"f12rj61f"},cornflower:{sj55zd:"fqsigj7",De3pzq:"f8k7hur"},navy:{sj55zd:"f1nj97xi",De3pzq:"f19gw0ux"},lavender:{sj55zd:"fwctg0i",De3pzq:"ff379vm"},purple:{sj55zd:"fjrsgpu",De3pzq:"f1mzf1e1"},grape:{sj55zd:"f1fiiydq",De3pzq:"f1o4k8oy"},lilac:{sj55zd:"f1res9jt",De3pzq:"f1x6mz1o"},pink:{sj55zd:"fv3fbbi",De3pzq:"fydlv6t"},magenta:{sj55zd:"f1f1fwnz",De3pzq:"f4xb6j5"},plum:{sj55zd:"f8ptl6j",De3pzq:"fqo8e26"},beige:{sj55zd:"f1ntv3ld",De3pzq:"f101elhj"},mink:{sj55zd:"f1fscmp",De3pzq:"f13g8o5c"},platinum:{sj55zd:"f1dr00v2",De3pzq:"fkh7blw"},anchor:{sj55zd:"f1f3ti53",De3pzq:"fu4yj0j"}},{d:[".f11d4kpn{color:var(--colorNeutralForeground3);}",".f18f03hv{background-color:var(--colorNeutralBackground6);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1blnnmj{background-color:var(--colorBrandBackgroundStatic);}",".fqjd1y1{color:var(--colorPaletteDarkRedForeground2);}",".f1vq2oo4{background-color:var(--colorPaletteDarkRedBackground2);}",".fg9gses{color:var(--colorPaletteCranberryForeground2);}",".f1lwxszt{background-color:var(--colorPaletteCranberryBackground2);}",".f23f7i0{color:var(--colorPaletteRedForeground2);}",".f1q9qhfq{background-color:var(--colorPaletteRedBackground2);}",".fjnan08{color:var(--colorPalettePumpkinForeground2);}",".fz91bi3{background-color:var(--colorPalettePumpkinBackground2);}",".fknu15p{color:var(--colorPalettePeachForeground2);}",".f1b9nr51{background-color:var(--colorPalettePeachBackground2);}",".f9603vw{color:var(--colorPaletteMarigoldForeground2);}",".f3z4w6d{background-color:var(--colorPaletteMarigoldBackground2);}",".fmq0uwp{color:var(--colorPaletteGoldForeground2);}",".fg50kya{background-color:var(--colorPaletteGoldBackground2);}",".f28g5vo{color:var(--colorPaletteBrassForeground2);}",".f4w2gd0{background-color:var(--colorPaletteBrassBackground2);}",".ftl572b{color:var(--colorPaletteBrownForeground2);}",".f14wu1f4{background-color:var(--colorPaletteBrownBackground2);}",".f1gymlvd{color:var(--colorPaletteForestForeground2);}",".f19ut4y6{background-color:var(--colorPaletteForestBackground2);}",".fnnb6wn{color:var(--colorPaletteSeafoamForeground2);}",".f1n057jc{background-color:var(--colorPaletteSeafoamBackground2);}",".ff58qw8{color:var(--colorPaletteDarkGreenForeground2);}",".f11t05wk{background-color:var(--colorPaletteDarkGreenBackground2);}",".f1up9qbj{color:var(--colorPaletteLightTealForeground2);}",".f42feg1{background-color:var(--colorPaletteLightTealBackground2);}",".f135dsb4{color:var(--colorPaletteTealForeground2);}",".f6hvv1p{background-color:var(--colorPaletteTealBackground2);}",".f151dlcp{color:var(--colorPaletteSteelForeground2);}",".f1lnp8zf{background-color:var(--colorPaletteSteelBackground2);}",".f1rjv50u{color:var(--colorPaletteBlueForeground2);}",".f1ggcpy6{background-color:var(--colorPaletteBlueBackground2);}",".f1emykk5{color:var(--colorPaletteRoyalBlueForeground2);}",".f12rj61f{background-color:var(--colorPaletteRoyalBlueBackground2);}",".fqsigj7{color:var(--colorPaletteCornflowerForeground2);}",".f8k7hur{background-color:var(--colorPaletteCornflowerBackground2);}",".f1nj97xi{color:var(--colorPaletteNavyForeground2);}",".f19gw0ux{background-color:var(--colorPaletteNavyBackground2);}",".fwctg0i{color:var(--colorPaletteLavenderForeground2);}",".ff379vm{background-color:var(--colorPaletteLavenderBackground2);}",".fjrsgpu{color:var(--colorPalettePurpleForeground2);}",".f1mzf1e1{background-color:var(--colorPalettePurpleBackground2);}",".f1fiiydq{color:var(--colorPaletteGrapeForeground2);}",".f1o4k8oy{background-color:var(--colorPaletteGrapeBackground2);}",".f1res9jt{color:var(--colorPaletteLilacForeground2);}",".f1x6mz1o{background-color:var(--colorPaletteLilacBackground2);}",".fv3fbbi{color:var(--colorPalettePinkForeground2);}",".fydlv6t{background-color:var(--colorPalettePinkBackground2);}",".f1f1fwnz{color:var(--colorPaletteMagentaForeground2);}",".f4xb6j5{background-color:var(--colorPaletteMagentaBackground2);}",".f8ptl6j{color:var(--colorPalettePlumForeground2);}",".fqo8e26{background-color:var(--colorPalettePlumBackground2);}",".f1ntv3ld{color:var(--colorPaletteBeigeForeground2);}",".f101elhj{background-color:var(--colorPaletteBeigeBackground2);}",".f1fscmp{color:var(--colorPaletteMinkForeground2);}",".f13g8o5c{background-color:var(--colorPaletteMinkBackground2);}",".f1dr00v2{color:var(--colorPalettePlatinumForeground2);}",".fkh7blw{background-color:var(--colorPalettePlatinumBackground2);}",".f1f3ti53{color:var(--colorPaletteAnchorForeground2);}",".fu4yj0j{background-color:var(--colorPaletteAnchorBackground2);}"]}),SN=ye({neutral:{Bic5iru:"f1uuiafn"},brand:{Bic5iru:"f1uuiafn"},"dark-red":{Bic5iru:"f1t2x9on"},cranberry:{Bic5iru:"f1pvshc9"},red:{Bic5iru:"f1ectbk9"},pumpkin:{Bic5iru:"fvzpl0b"},peach:{Bic5iru:"fwj2kd7"},marigold:{Bic5iru:"fr120vy"},gold:{Bic5iru:"f8xmmar"},brass:{Bic5iru:"f1hbety2"},brown:{Bic5iru:"f1vg3s4g"},forest:{Bic5iru:"f1m3olm5"},seafoam:{Bic5iru:"f17xiqtr"},"dark-green":{Bic5iru:"fx32vyh"},"light-teal":{Bic5iru:"f1mkihwv"},teal:{Bic5iru:"fecnooh"},steel:{Bic5iru:"f15hfgzm"},blue:{Bic5iru:"fqproka"},"royal-blue":{Bic5iru:"f17v2w59"},cornflower:{Bic5iru:"fp0q1mo"},navy:{Bic5iru:"f1nlym55"},lavender:{Bic5iru:"f62vk8h"},purple:{Bic5iru:"f15zl69q"},grape:{Bic5iru:"f53w4j7"},lilac:{Bic5iru:"fu2771t"},pink:{Bic5iru:"fzflscs"},magenta:{Bic5iru:"fb6rmqc"},plum:{Bic5iru:"f1a4gm5b"},beige:{Bic5iru:"f1qpf9z1"},mink:{Bic5iru:"f1l7or83"},platinum:{Bic5iru:"fzrj0iu"},anchor:{Bic5iru:"f8oz6wf"}},{d:[".f1uuiafn::before{color:var(--colorBrandStroke1);}",".f1t2x9on::before{color:var(--colorPaletteDarkRedBorderActive);}",".f1pvshc9::before{color:var(--colorPaletteCranberryBorderActive);}",".f1ectbk9::before{color:var(--colorPaletteRedBorderActive);}",".fvzpl0b::before{color:var(--colorPalettePumpkinBorderActive);}",".fwj2kd7::before{color:var(--colorPalettePeachBorderActive);}",".fr120vy::before{color:var(--colorPaletteMarigoldBorderActive);}",".f8xmmar::before{color:var(--colorPaletteGoldBorderActive);}",".f1hbety2::before{color:var(--colorPaletteBrassBorderActive);}",".f1vg3s4g::before{color:var(--colorPaletteBrownBorderActive);}",".f1m3olm5::before{color:var(--colorPaletteForestBorderActive);}",".f17xiqtr::before{color:var(--colorPaletteSeafoamBorderActive);}",".fx32vyh::before{color:var(--colorPaletteDarkGreenBorderActive);}",".f1mkihwv::before{color:var(--colorPaletteLightTealBorderActive);}",".fecnooh::before{color:var(--colorPaletteTealBorderActive);}",".f15hfgzm::before{color:var(--colorPaletteSteelBorderActive);}",".fqproka::before{color:var(--colorPaletteBlueBorderActive);}",".f17v2w59::before{color:var(--colorPaletteRoyalBlueBorderActive);}",".fp0q1mo::before{color:var(--colorPaletteCornflowerBorderActive);}",".f1nlym55::before{color:var(--colorPaletteNavyBorderActive);}",".f62vk8h::before{color:var(--colorPaletteLavenderBorderActive);}",".f15zl69q::before{color:var(--colorPalettePurpleBorderActive);}",".f53w4j7::before{color:var(--colorPaletteGrapeBorderActive);}",".fu2771t::before{color:var(--colorPaletteLilacBorderActive);}",".fzflscs::before{color:var(--colorPalettePinkBorderActive);}",".fb6rmqc::before{color:var(--colorPaletteMagentaBorderActive);}",".f1a4gm5b::before{color:var(--colorPalettePlumBorderActive);}",".f1qpf9z1::before{color:var(--colorPaletteBeigeBorderActive);}",".f1l7or83::before{color:var(--colorPaletteMinkBorderActive);}",".fzrj0iu::before{color:var(--colorPalettePlatinumBorderActive);}",".f8oz6wf::before{color:var(--colorPaletteAnchorBorderActive);}"]}),xN=e=>{"use no memo";const{size:t,shape:o,active:r,activeAppearance:n,color:i}=e,s=mN(),l=vN(),u=bN(),d=CN(),h=wN(),p=yN(),g=SN(),v=[s,t!==32&&h[t]];if(e.badge&&v.push(d.badgeAlign,d[e.badge.size||"medium"]),t<=24?v.push(d.textCaption2Strong):t<=28?v.push(d.textCaption1Strong):t<=40||(t<=56?v.push(d.textSubtitle2):t<=96?v.push(d.textSubtitle1):v.push(d.textTitle3)),o==="square"&&(t<=24?v.push(d.squareSmall):t<=48?v.push(d.squareMedium):t<=72?v.push(d.squareLarge):v.push(d.squareXLarge)),(r==="active"||r==="inactive")&&(v.push(d.activeOrInactive),(n==="ring"||n==="ring-shadow")&&(v.push(d.ring,g[i]),e.badge&&v.push(d.ringBadgeCutout),t<=48?v.push(d.ringThick):t<=64?v.push(d.ringThicker):v.push(d.ringThickest)),(n==="shadow"||n==="ring-shadow")&&(v.push(d.shadow),t<=28?v.push(d.shadow4):t<=48?v.push(d.shadow8):t<=64?v.push(d.shadow16):v.push(d.shadow28)),r==="inactive"&&v.push(d.inactive)),e.root.className=me(Ll.root,...v,e.root.className),e.badge&&(e.badge.className=me(Ll.badge,d.badge,e.badge.className)),e.image&&(e.image.className=me(Ll.image,l,p[i],e.badge&&d.badgeCutout,e.image.className)),e.initials&&(e.initials.className=me(Ll.initials,u,p[i],e.badge&&d.badgeCutout,e.initials.className)),e.icon){let b;t<=16?b=d.icon12:t<=24?b=d.icon16:t<=40?b=d.icon20:t<=48?b=d.icon24:t<=56?b=d.icon28:t<=72?b=d.icon32:b=d.icon48,e.icon.className=me(Ll.icon,u,b,p[i],e.badge&&d.badgeCutout,e.icon.className)}return e},xS=y.forwardRef((e,t)=>{const o=fN(e,t);return xN(o),dt("useAvatarStyles_unstable")(o),LL(o)});xS.displayName="Avatar";const kS="data-popper-is-intersecting",FS="data-popper-escaped",RS="data-popper-reference-hidden",kN="data-popper-placement",Dg="fui-positioningend",FN=({options:e})=>e,PS=y.createContext(void 0);PS.Provider;const RN=()=>{var e;return(e=y.useContext(PS))!==null&&e!==void 0?e:FN},PN=["top","right","bottom","left"],$i=Math.min,er=Math.max,fd=Math.round,qr=e=>({x:e,y:e}),EN={left:"right",right:"left",bottom:"top",top:"bottom"},TN={start:"end",end:"start"};function Mg(e,t,o){return er(e,$i(t,o))}function kn(e,t){return typeof e=="function"?e(t):e}function Fn(e){return e.split("-")[0]}function Ys(e){return e.split("-")[1]}function Ag(e){return e==="x"?"y":"x"}function _g(e){return e==="y"?"height":"width"}const DN=new Set(["top","bottom"]);function Ur(e){return DN.has(Fn(e))?"y":"x"}function Ig(e){return Ag(Ur(e))}function MN(e,t,o){o===void 0&&(o=!1);const r=Ys(e),n=Ig(e),i=_g(n);let s=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=pd(s)),[s,pd(s)]}function AN(e){const t=pd(e);return[Bg(e),t,Bg(t)]}function Bg(e){return e.replace(/start|end/g,t=>TN[t])}const ES=["left","right"],TS=["right","left"],_N=["top","bottom"],IN=["bottom","top"];function BN(e,t,o){switch(e){case"top":case"bottom":return o?t?TS:ES:t?ES:TS;case"left":case"right":return t?_N:IN;default:return[]}}function ON(e,t,o,r){const n=Ys(e);let i=BN(Fn(e),o==="start",r);return n&&(i=i.map(s=>s+"-"+n),t&&(i=i.concat(i.map(Bg)))),i}function pd(e){return e.replace(/left|right|bottom|top/g,t=>EN[t])}function LN(e){return{top:0,right:0,bottom:0,left:0,...e}}function DS(e){return typeof e!="number"?LN(e):{top:e,right:e,bottom:e,left:e}}function gd(e){const{x:t,y:o,width:r,height:n}=e;return{width:r,height:n,top:o,left:t,right:t+r,bottom:o+n,x:t,y:o}}function MS(e,t,o){let{reference:r,floating:n}=e;const i=Ur(t),s=Ig(t),l=_g(s),u=Fn(t),d=i==="y",h=r.x+r.width/2-n.width/2,p=r.y+r.height/2-n.height/2,g=r[l]/2-n[l]/2;let v;switch(u){case"top":v={x:h,y:r.y-n.height};break;case"bottom":v={x:h,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:p};break;case"left":v={x:r.x-n.width,y:p};break;default:v={x:r.x,y:r.y}}switch(Ys(t)){case"start":v[s]-=g*(o&&d?-1:1);break;case"end":v[s]+=g*(o&&d?-1:1);break}return v}const NN=async(e,t,o)=>{const{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:s}=o,l=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:h,y:p}=MS(d,r,u),g=r,v={},b=0;for(let C=0;C<l.length;C++){const{name:S,fn:k}=l[C],{x:F,y:R,data:P,reset:T}=await k({x:h,y:p,initialPlacement:r,placement:g,strategy:n,middlewareData:v,rects:d,platform:s,elements:{reference:e,floating:t}});h=F??h,p=R??p,v={...v,[S]:{...v[S],...P}},T&&b<=50&&(b++,typeof T=="object"&&(T.placement&&(g=T.placement),T.rects&&(d=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):T.rects),{x:h,y:p}=MS(d,g,u)),C=-1)}return{x:h,y:p,placement:g,strategy:n,middlewareData:v}};async function Qs(e,t){var o;t===void 0&&(t={});const{x:r,y:n,platform:i,rects:s,elements:l,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:g=!1,padding:v=0}=kn(t,e),b=DS(v),S=l[g?p==="floating"?"reference":"floating":p],k=gd(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(S)))==null||o?S:S.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:h,strategy:u})),F=p==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),P=await(i.isElement==null?void 0:i.isElement(R))?await(i.getScale==null?void 0:i.getScale(R))||{x:1,y:1}:{x:1,y:1},T=gd(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:F,offsetParent:R,strategy:u}):F);return{top:(k.top-T.top+b.top)/P.y,bottom:(T.bottom-k.bottom+b.bottom)/P.y,left:(k.left-T.left+b.left)/P.x,right:(T.right-k.right+b.right)/P.x}}const zN=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:r,placement:n,rects:i,platform:s,elements:l,middlewareData:u}=t,{element:d,padding:h=0}=kn(e,t)||{};if(d==null)return{};const p=DS(h),g={x:o,y:r},v=Ig(n),b=_g(v),C=await s.getDimensions(d),S=v==="y",k=S?"top":"left",F=S?"bottom":"right",R=S?"clientHeight":"clientWidth",P=i.reference[b]+i.reference[v]-g[v]-i.floating[b],T=g[v]-i.reference[v],D=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let M=D?D[R]:0;(!M||!await(s.isElement==null?void 0:s.isElement(D)))&&(M=l.floating[R]||i.floating[b]);const O=P/2-T/2,I=M/2-C[b]/2-1,z=$i(p[k],I),U=$i(p[F],I),q=z,A=M-C[b]-U,K=M/2-C[b]/2+O,$=Mg(q,K,A),Z=!u.arrow&&Ys(n)!=null&&K!==$&&i.reference[b]/2-(K<q?z:U)-C[b]/2<0,W=Z?K<q?K-q:K-A:0;return{[v]:g[v]+W,data:{[v]:$,centerOffset:K-$-W,...Z&&{alignmentOffset:W}},reset:Z}}}),HN=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;const{placement:n,middlewareData:i,rects:s,initialPlacement:l,platform:u,elements:d}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:C=!0,...S}=kn(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};const k=Fn(n),F=Ur(l),R=Fn(l)===l,P=await(u.isRTL==null?void 0:u.isRTL(d.floating)),T=g||(R||!C?[pd(l)]:AN(l)),D=b!=="none";!g&&D&&T.push(...ON(l,C,b,P));const M=[l,...T],O=await Qs(t,S),I=[];let z=((r=i.flip)==null?void 0:r.overflows)||[];if(h&&I.push(O[k]),p){const K=MN(n,s,P);I.push(O[K[0]],O[K[1]])}if(z=[...z,{placement:n,overflows:I}],!I.every(K=>K<=0)){var U,q;const K=(((U=i.flip)==null?void 0:U.index)||0)+1,$=M[K];if($&&(!(p==="alignment"?F!==Ur($):!1)||z.every(_=>Ur(_.placement)===F?_.overflows[0]>0:!0)))return{data:{index:K,overflows:z},reset:{placement:$}};let Z=(q=z.filter(W=>W.overflows[0]<=0).sort((W,_)=>W.overflows[1]-_.overflows[1])[0])==null?void 0:q.placement;if(!Z)switch(v){case"bestFit":{var A;const W=(A=z.filter(_=>{if(D){const V=Ur(_.placement);return V===F||V==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(V=>V>0).reduce((V,j)=>V+j,0)]).sort((_,V)=>_[1]-V[1])[0])==null?void 0:A[0];W&&(Z=W);break}case"initialPlacement":Z=l;break}if(n!==Z)return{reset:{placement:Z}}}return{}}}};function AS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _S(e){return PN.some(t=>e[t]>=0)}const VN=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:o}=t,{strategy:r="referenceHidden",...n}=kn(e,t);switch(r){case"referenceHidden":{const i=await Qs(t,{...n,elementContext:"reference"}),s=AS(i,o.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:_S(s)}}}case"escaped":{const i=await Qs(t,{...n,altBoundary:!0}),s=AS(i,o.floating);return{data:{escapedOffsets:s,escaped:_S(s)}}}default:return{}}}}},IS=new Set(["left","top"]);async function GN(e,t){const{placement:o,platform:r,elements:n}=e,i=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=Fn(o),l=Ys(o),u=Ur(o)==="y",d=IS.has(s)?-1:1,h=i&&u?-1:1,p=kn(t,e);let{mainAxis:g,crossAxis:v,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof b=="number"&&(v=l==="end"?b*-1:b),u?{x:v*h,y:g*d}:{x:g*d,y:v*h}}const jN=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;const{x:n,y:i,placement:s,middlewareData:l}=t,u=await GN(t,e);return s===((o=l.offset)==null?void 0:o.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:n+u.x,y:i+u.y,data:{...u,placement:s}}}}},WN=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:r,placement:n}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:S=>{let{x:k,y:F}=S;return{x:k,y:F}}},...u}=kn(e,t),d={x:o,y:r},h=await Qs(t,u),p=Ur(Fn(n)),g=Ag(p);let v=d[g],b=d[p];if(i){const S=g==="y"?"top":"left",k=g==="y"?"bottom":"right",F=v+h[S],R=v-h[k];v=Mg(F,v,R)}if(s){const S=p==="y"?"top":"left",k=p==="y"?"bottom":"right",F=b+h[S],R=b-h[k];b=Mg(F,b,R)}const C=l.fn({...t,[g]:v,[p]:b});return{...C,data:{x:C.x-o,y:C.y-r,enabled:{[g]:i,[p]:s}}}}}},qN=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:o,y:r,placement:n,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:u=!0,crossAxis:d=!0}=kn(e,t),h={x:o,y:r},p=Ur(n),g=Ag(p);let v=h[g],b=h[p];const C=kn(l,t),S=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:0,crossAxis:0,...C};if(u){const R=g==="y"?"height":"width",P=i.reference[g]-i.floating[R]+S.mainAxis,T=i.reference[g]+i.reference[R]-S.mainAxis;v<P?v=P:v>T&&(v=T)}if(d){var k,F;const R=g==="y"?"width":"height",P=IS.has(Fn(n)),T=i.reference[p]-i.floating[R]+(P&&((k=s.offset)==null?void 0:k[p])||0)+(P?0:S.crossAxis),D=i.reference[p]+i.reference[R]+(P?0:((F=s.offset)==null?void 0:F[p])||0)-(P?S.crossAxis:0);b<T?b=T:b>D&&(b=D)}return{[g]:v,[p]:b}}}},UN=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,r;const{placement:n,rects:i,platform:s,elements:l}=t,{apply:u=()=>{},...d}=kn(e,t),h=await Qs(t,d),p=Fn(n),g=Ys(n),v=Ur(n)==="y",{width:b,height:C}=i.floating;let S,k;p==="top"||p==="bottom"?(S=p,k=g===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(k=p,S=g==="end"?"top":"bottom");const F=C-h.top-h.bottom,R=b-h.left-h.right,P=$i(C-h[S],F),T=$i(b-h[k],R),D=!t.middlewareData.shift;let M=P,O=T;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(O=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=F),D&&!g){const z=er(h.left,0),U=er(h.right,0),q=er(h.top,0),A=er(h.bottom,0);v?O=b-2*(z!==0||U!==0?z+U:er(h.left,h.right)):M=C-2*(q!==0||A!==0?q+A:er(h.top,h.bottom))}await u({...t,availableWidth:O,availableHeight:M});const I=await s.getDimensions(l.floating);return b!==I.width||C!==I.height?{reset:{rects:!0}}:{}}}};function md(){return typeof window<"u"}function Js(e){return BS(e)?(e.nodeName||"").toLowerCase():"#document"}function zo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rn(e){var t;return(t=(BS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function BS(e){return md()?e instanceof Node||e instanceof zo(e).Node:!1}function kr(e){return md()?e instanceof Element||e instanceof zo(e).Element:!1}function $r(e){return md()?e instanceof HTMLElement||e instanceof zo(e).HTMLElement:!1}function OS(e){return!md()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof zo(e).ShadowRoot}const $N=new Set(["inline","contents"]);function Nl(e){const{overflow:t,overflowX:o,overflowY:r,display:n}=Fr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!$N.has(n)}const KN=new Set(["table","td","th"]);function XN(e){return KN.has(Js(e))}const ZN=[":popover-open",":modal"];function vd(e){return ZN.some(t=>{try{return e.matches(t)}catch{return!1}})}const YN=["transform","translate","scale","rotate","perspective"],QN=["transform","translate","scale","rotate","perspective","filter"],JN=["paint","layout","strict","content"];function Og(e){const t=Lg(),o=kr(e)?Fr(e):e;return YN.some(r=>o[r]?o[r]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||QN.some(r=>(o.willChange||"").includes(r))||JN.some(r=>(o.contain||"").includes(r))}function e3(e){let t=ni(e);for(;$r(t)&&!ea(t);){if(Og(t))return t;if(vd(t))return null;t=ni(t)}return null}function Lg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const t3=new Set(["html","body","#document"]);function ea(e){return t3.has(Js(e))}function Fr(e){return zo(e).getComputedStyle(e)}function bd(e){return kr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ni(e){if(Js(e)==="html")return e;const t=e.assignedSlot||e.parentNode||OS(e)&&e.host||Rn(e);return OS(t)?t.host:t}function LS(e){const t=ni(e);return ea(t)?e.ownerDocument?e.ownerDocument.body:e.body:$r(t)&&Nl(t)?t:LS(t)}function NS(e,t,o){var r;t===void 0&&(t=[]);const n=LS(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),s=zo(n);return i?(Ng(s),t.concat(s,s.visualViewport||[],Nl(n)?n:[],[])):t.concat(n,NS(n,[]))}function Ng(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zS(e){const t=Fr(e);let o=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const n=$r(e),i=n?e.offsetWidth:o,s=n?e.offsetHeight:r,l=fd(o)!==i||fd(r)!==s;return l&&(o=i,r=s),{width:o,height:r,$:l}}function HS(e){return kr(e)?e:e.contextElement}function ta(e){const t=HS(e);if(!$r(t))return qr(1);const o=t.getBoundingClientRect(),{width:r,height:n,$:i}=zS(t);let s=(i?fd(o.width):o.width)/r,l=(i?fd(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const o3=qr(0);function VS(e){const t=zo(e);return!Lg()||!t.visualViewport?o3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function r3(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==zo(e)?!1:t}function zl(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);const n=e.getBoundingClientRect(),i=HS(e);let s=qr(1);t&&(r?kr(r)&&(s=ta(r)):s=ta(e));const l=r3(i,o,r)?VS(i):qr(0);let u=(n.left+l.x)/s.x,d=(n.top+l.y)/s.y,h=n.width/s.x,p=n.height/s.y;if(i){const g=zo(i),v=r&&kr(r)?zo(r):r;let b=g,C=Ng(b);for(;C&&r&&v!==b;){const S=ta(C),k=C.getBoundingClientRect(),F=Fr(C),R=k.left+(C.clientLeft+parseFloat(F.paddingLeft))*S.x,P=k.top+(C.clientTop+parseFloat(F.paddingTop))*S.y;u*=S.x,d*=S.y,h*=S.x,p*=S.y,u+=R,d+=P,b=zo(C),C=Ng(b)}}return gd({width:h,height:p,x:u,y:d})}function Cd(e,t){const o=bd(e).scrollLeft;return t?t.left+o:zl(Rn(e)).left+o}function GS(e,t){const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-Cd(e,o),n=o.top+t.scrollTop;return{x:r,y:n}}function n3(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e;const i=n==="fixed",s=Rn(r),l=t?vd(t.floating):!1;if(r===s||l&&i)return o;let u={scrollLeft:0,scrollTop:0},d=qr(1);const h=qr(0),p=$r(r);if((p||!p&&!i)&&((Js(r)!=="body"||Nl(s))&&(u=bd(r)),$r(r))){const v=zl(r);d=ta(r),h.x=v.x+r.clientLeft,h.y=v.y+r.clientTop}const g=s&&!p&&!i?GS(s,u):qr(0);return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-u.scrollLeft*d.x+h.x+g.x,y:o.y*d.y-u.scrollTop*d.y+h.y+g.y}}function i3(e){return Array.from(e.getClientRects())}function s3(e){const t=Rn(e),o=bd(e),r=e.ownerDocument.body,n=er(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=er(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-o.scrollLeft+Cd(e);const l=-o.scrollTop;return Fr(r).direction==="rtl"&&(s+=er(t.clientWidth,r.clientWidth)-n),{width:n,height:i,x:s,y:l}}const jS=25;function a3(e,t){const o=zo(e),r=Rn(e),n=o.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,u=0;if(n){i=n.width,s=n.height;const h=Lg();(!h||h&&t==="fixed")&&(l=n.offsetLeft,u=n.offsetTop)}const d=Cd(r);if(d<=0){const h=r.ownerDocument,p=h.body,g=getComputedStyle(p),v=h.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,b=Math.abs(r.clientWidth-p.clientWidth-v);b<=jS&&(i-=b)}else d<=jS&&(i+=d);return{width:i,height:s,x:l,y:u}}const l3=new Set(["absolute","fixed"]);function c3(e,t){const o=zl(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,i=$r(e)?ta(e):qr(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,u=n*i.x,d=r*i.y;return{width:s,height:l,x:u,y:d}}function WS(e,t,o){let r;if(t==="viewport")r=a3(e,o);else if(t==="document")r=s3(Rn(e));else if(kr(t))r=c3(t,o);else{const n=VS(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return gd(r)}function qS(e,t){const o=ni(e);return o===t||!kr(o)||ea(o)?!1:Fr(o).position==="fixed"||qS(o,t)}function u3(e,t){const o=t.get(e);if(o)return o;let r=NS(e,[]).filter(l=>kr(l)&&Js(l)!=="body"),n=null;const i=Fr(e).position==="fixed";let s=i?ni(e):e;for(;kr(s)&&!ea(s);){const l=Fr(s),u=Og(s);!u&&l.position==="fixed"&&(n=null),(i?!u&&!n:!u&&l.position==="static"&&!!n&&l3.has(n.position)||Nl(s)&&!u&&qS(e,s))?r=r.filter(h=>h!==s):n=l,s=ni(s)}return t.set(e,r),r}function d3(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e;const s=[...o==="clippingAncestors"?vd(t)?[]:u3(t,this._c):[].concat(o),r],l=s[0],u=s.reduce((d,h)=>{const p=WS(t,h,n);return d.top=er(p.top,d.top),d.right=$i(p.right,d.right),d.bottom=$i(p.bottom,d.bottom),d.left=er(p.left,d.left),d},WS(t,l,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function h3(e){const{width:t,height:o}=zS(e);return{width:t,height:o}}function f3(e,t,o){const r=$r(t),n=Rn(t),i=o==="fixed",s=zl(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const u=qr(0);function d(){u.x=Cd(n)}if(r||!r&&!i)if((Js(t)!=="body"||Nl(n))&&(l=bd(t)),r){const v=zl(t,!0,i,t);u.x=v.x+t.clientLeft,u.y=v.y+t.clientTop}else n&&d();i&&!r&&n&&d();const h=n&&!r&&!i?GS(n,l):qr(0),p=s.left+l.scrollLeft-u.x-h.x,g=s.top+l.scrollTop-u.y-h.y;return{x:p,y:g,width:s.width,height:s.height}}function zg(e){return Fr(e).position==="static"}function US(e,t){if(!$r(e)||Fr(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Rn(e)===o&&(o=o.ownerDocument.body),o}function $S(e,t){const o=zo(e);if(vd(e))return o;if(!$r(e)){let n=ni(e);for(;n&&!ea(n);){if(kr(n)&&!zg(n))return n;n=ni(n)}return o}let r=US(e,t);for(;r&&XN(r)&&zg(r);)r=US(r,t);return r&&ea(r)&&zg(r)&&!Og(r)?o:r||e3(e)||o}const p3=async function(e){const t=this.getOffsetParent||$S,o=this.getDimensions,r=await o(e.floating);return{reference:f3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function g3(e){return Fr(e).direction==="rtl"}const m3={convertOffsetParentRelativeRectToViewportRelativeRect:n3,getDocumentElement:Rn,getClippingRect:d3,getOffsetParent:$S,getElementRects:p3,getClientRects:i3,getDimensions:h3,getScale:ta,isElement:kr,isRTL:g3},v3=Qs,b3=jN,C3=WN,w3=HN,y3=UN,KS=VN,S3=zN,XS=qN,x3=(e,t,o)=>{const r=new Map,n={platform:m3,...o},i={...n.platform,_c:r};return NN(e,t,{...n,platform:i})};function ZS(e){const t=e.split("-");return{side:t[0],alignment:t[1]}}const k3=e=>e.nodeName==="HTML"?e:e.parentNode||e.host,F3=e=>{var t;if(e.nodeType!==1)return{};const o=(t=e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return o?o.getComputedStyle(e,null):{}},wd=e=>{const t=e&&k3(e);if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:o,overflowX:r,overflowY:n}=F3(t);return/(auto|scroll|overlay)/.test(o+n+r)?t:wd(t)},R3=e=>{var t;const o=wd(e);return o?o!==((t=o.ownerDocument)===null||t===void 0?void 0:t.body):!1};function Hg(e,t){if(t==="window")return e?.ownerDocument.documentElement;if(t==="clippingParents")return"clippingAncestors";if(t==="scrollParent"){let o=wd(e);return o.nodeName==="BODY"&&(o=e?.ownerDocument.documentElement),o}return t}function P3(e,t){return typeof e=="number"||typeof e=="object"&&e!==null?Vg(e,t):typeof e=="function"?o=>{const r=e(o);return Vg(r,t)}:{mainAxis:t}}const Vg=(e,t)=>{if(typeof e=="number")return{mainAxis:e+t};var o;return{...e,mainAxis:((o=e.mainAxis)!==null&&o!==void 0?o:0)+t}};function YS(e,t){if(typeof e=="number")return e;const{start:o,end:r,...n}=e,i=n,s=t?"end":"start",l=t?"start":"end";return e[s]&&(i.left=e[s]),e[l]&&(i.right=e[l]),i}const E3=e=>({above:"top",below:"bottom",before:e?"right":"left",after:e?"left":"right"}),T3=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),D3=(e,t)=>{const o=e==="above"||e==="below",r=t==="top"||t==="bottom";return o&&r||!o&&!r},QS=(e,t,o)=>{const r=D3(t,e)?"center":e,n=t&&E3(o)[t],i=r&&T3()[r];return n&&i?`${n}-${i}`:n},M3=()=>({top:"above",bottom:"below",right:"after",left:"before"}),A3=e=>e==="above"||e==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},_3=e=>{const{side:t,alignment:o}=ZS(e),r=M3()[t],n=o&&A3(r)[o];return{position:r,alignment:n}},I3={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function Gg(e){return e==null?{}:typeof e=="string"?I3[e]:e}function jg(e,t,o){const r=y.useRef(!0),[n]=y.useState(()=>({value:e,callback:t,facade:{get current(){return n.value},set current(i){const s=n.value;s!==i&&(n.value=i,n.callback(i,s))}}}));return oo(()=>{r.current=!1},[]),n.callback=t,n.facade}function B3(e){let t;return()=>(t||(t=new Promise(o=>{Promise.resolve().then(()=>{t=void 0,o(e())})})),t)}function O3(e){const{arrow:t,middlewareData:o}=e;if(!o.arrow||!t)return;const{x:r,y:n}=o.arrow;Object.assign(t.style,{left:r!=null?`${r}px`:"",top:n!=null?`${n}px`:""})}function L3(e){var t,o,r;const{container:n,placement:i,middlewareData:s,strategy:l,lowPPI:u,coordinates:d,useTransform:h=!0}=e;if(!n)return;n.setAttribute(kN,i),n.removeAttribute(kS),s.intersectionObserver.intersecting&&n.setAttribute(kS,""),n.removeAttribute(FS),!((t=s.hide)===null||t===void 0)&&t.escaped&&n.setAttribute(FS,""),n.removeAttribute(RS),!((o=s.hide)===null||o===void 0)&&o.referenceHidden&&n.setAttribute(RS,"");const p=((r=n.ownerDocument.defaultView)===null||r===void 0?void 0:r.devicePixelRatio)||1,g=Math.round(d.x*p)/p,v=Math.round(d.y*p)/p;if(Object.assign(n.style,{position:l}),h){Object.assign(n.style,{transform:u?`translate(${g}px, ${v}px)`:`translate3d(${g}px, ${v}px, 0)`});return}Object.assign(n.style,{left:`${g}px`,top:`${v}px`})}const N3=e=>{switch(e){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function JS(e){const t=[];let o=e;for(;o;){const r=wd(o);if(e.ownerDocument.body===r){t.push(r);break}if(r.nodeName==="BODY"&&r!==e.ownerDocument.body)break;t.push(r),o=r}return t}function z3(e,t){return new e.ResizeObserver(t)}function H3(e){let t=!1;const{container:o,target:r,arrow:n,strategy:i,middleware:s,placement:l,useTransform:u=!0,disableUpdateOnResize:d=!1}=e,h=o.ownerDocument.defaultView;if(!r||!o||!h)return{updatePosition:()=>{},dispose:()=>{}};const p=d?null:z3(h,k=>{k.every(R=>R.contentRect.width>0&&R.contentRect.height>0)&&C()});let g=!0;const v=new Set;Object.assign(o.style,{position:"fixed",left:0,top:0,margin:0});const b=()=>{t||(g&&(JS(o).forEach(k=>v.add(k)),Gs(r)&&JS(r).forEach(k=>v.add(k)),v.forEach(k=>{k.addEventListener("scroll",C,{passive:!0})}),p?.observe(o),Gs(r)&&p?.observe(r),g=!1),Object.assign(o.style,{position:i}),x3(r,o,{placement:l,middleware:s,strategy:i}).then(({x:k,y:F,middlewareData:R,placement:P})=>{t||(O3({arrow:n,middlewareData:R}),L3({container:o,middlewareData:R,placement:P,coordinates:{x:k,y:F},lowPPI:(h?.devicePixelRatio||1)<=1,strategy:i,useTransform:u}),o.dispatchEvent(new CustomEvent(Dg)))}).catch(k=>{}))},C=B3(()=>b()),S=()=>{t=!0,h&&(h.removeEventListener("scroll",C),h.removeEventListener("resize",C)),v.forEach(k=>{k.removeEventListener("scroll",C)}),v.clear(),p?.disconnect()};return h&&(h.addEventListener("scroll",C,{passive:!0}),h.addEventListener("resize",C)),C(),{updatePosition:C,dispose:S}}function V3(){return{name:"coverTarget",fn:e=>{const{placement:t,rects:o,x:r,y:n}=e,i=ZS(t).side,s={x:r,y:n};switch(i){case"bottom":s.y-=o.reference.height;break;case"top":s.y+=o.reference.height;break;case"left":s.x+=o.reference.width;break;case"right":s.x-=o.reference.width;break}return s}}}function G3(e){const{hasScrollableElement:t,flipBoundary:o,container:r,fallbackPositions:n=[],isRtl:i}=e,s=n.reduce((l,u)=>{const{position:d,align:h}=Gg(u),p=QS(h,d,i);return p&&l.push(p),l},[]);return w3({...t&&{boundary:"clippingAncestors"},...o&&{altBoundary:!0,boundary:Hg(r,o)},fallbackStrategy:"bestFit",...s.length&&{fallbackPlacements:s}})}function j3(){return{name:"intersectionObserver",fn:async e=>{const t=e.rects.floating,o=await v3(e,{altBoundary:!0}),r=o.top<t.height&&o.top>0,n=o.bottom<t.height&&o.bottom>0;return{data:{intersecting:r||n}}}}}const W3=e=>({name:"resetMaxSize",fn({middlewareData:t,elements:o}){var r;if(!((r=t.resetMaxSize)===null||r===void 0)&&r.maxSizeAlreadyReset)return{};const{applyMaxWidth:n,applyMaxHeight:i}=e;return n&&(o.floating.style.removeProperty("box-sizing"),o.floating.style.removeProperty("max-width"),o.floating.style.removeProperty("width")),i&&(o.floating.style.removeProperty("box-sizing"),o.floating.style.removeProperty("max-height"),o.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function q3(e,t){const{container:o,overflowBoundary:r,overflowBoundaryPadding:n,isRtl:i}=t;return y3({...n&&{padding:YS(n,i)},...r&&{altBoundary:!0,boundary:Hg(o,r)},apply({availableHeight:s,availableWidth:l,elements:u,rects:d}){const h=(v,b,C)=>{if(v&&(u.floating.style.setProperty("box-sizing","border-box"),u.floating.style.setProperty(`max-${b}`,`${C}px`),d.floating[b]>C)){u.floating.style.setProperty(b,`${C}px`);const S=b==="width"?"x":"y";u.floating.style.getPropertyValue(`overflow-${S}`)||u.floating.style.setProperty(`overflow-${S}`,"auto")}},{applyMaxWidth:p,applyMaxHeight:g}=e;h(p,"width",l),h(g,"height",s)}})}function U3(e){return!e||typeof e=="number"||typeof e=="object"?e:({rects:{floating:t,reference:o},placement:r})=>{const{position:n,alignment:i}=_3(r);return e({positionedRect:t,targetRect:o,position:n,alignment:i})}}function $3(e){const t=U3(e);return b3(t)}function K3(e){const{hasScrollableElement:t,shiftToCoverTarget:o,disableTether:r,overflowBoundary:n,container:i,overflowBoundaryPadding:s,isRtl:l}=e;return C3({...t&&{boundary:"clippingAncestors"},...o&&{crossAxis:!0,limiter:XS({crossAxis:!0,mainAxis:!1})},...r&&{crossAxis:r==="all",limiter:XS({crossAxis:r!=="all",mainAxis:!1})},...s&&{padding:YS(s,l)},...n&&{altBoundary:!0,boundary:Hg(i,n)}})}const ex="--fui-match-target-size";function X3(){return{name:"matchTargetSize",fn:async e=>{const{rects:{reference:t,floating:o},elements:{floating:r},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:n=!1}={}}}=e;if(t.width===o.width||n)return{};const{width:i}=t;return r.style.setProperty(ex,`${i}px`),r.style.width||(r.style.width=`var(${ex})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function Z3(e,t){const{align:o,arrowPadding:r,autoSize:n,coverTarget:i,disableUpdateOnResize:s,flipBoundary:l,offset:u,overflowBoundary:d,pinned:h,position:p,unstable_disableTether:g,strategy:v,overflowBoundaryPadding:b,fallbackPositions:C,useTransform:S,matchTargetSize:k,shiftToCoverTarget:F}=t;return y.useCallback((R,P)=>e({container:R,arrow:P,options:{autoSize:n,disableUpdateOnResize:s,matchTargetSize:k,offset:u,strategy:v,coverTarget:i,flipBoundary:l,overflowBoundary:d,useTransform:S,overflowBoundaryPadding:b,pinned:h,arrowPadding:r,align:o,fallbackPositions:C,shiftToCoverTarget:F,position:p,unstable_disableTether:g}}),[n,s,k,u,v,i,l,d,S,b,h,r,o,C,F,p,g,e])}function Y3(e){const{dir:t,targetDocument:o}=Dt(),r=t==="rtl",n=Z3(RN(),e),{positionFixed:i}=e;return y.useCallback((s,l)=>{const u=R3(s),d=n(s,l),{autoSize:h,disableUpdateOnResize:p,matchTargetSize:g,offset:v,coverTarget:b,flipBoundary:C,overflowBoundary:S,useTransform:k,overflowBoundaryPadding:F,pinned:R,position:P,arrowPadding:T,strategy:D,align:M,fallbackPositions:O,shiftToCoverTarget:I,unstable_disableTether:z}=d,U=N3(h),q=[U&&W3(U),g&&X3(),v&&$3(v),b&&V3(),!R&&G3({container:s,flipBoundary:C,hasScrollableElement:u,isRtl:r,fallbackPositions:O}),K3({container:s,hasScrollableElement:u,overflowBoundary:S,disableTether:z,overflowBoundaryPadding:F,isRtl:r,shiftToCoverTarget:I}),U&&q3(U,{container:s,overflowBoundary:S,overflowBoundaryPadding:F,isRtl:r}),j3(),l&&S3({element:l,padding:T}),KS({strategy:"referenceHidden"}),KS({strategy:"escaped"}),!1].filter(Boolean);return{placement:QS(M,P,r),middleware:q,strategy:D??i?"fixed":"absolute",disableUpdateOnResize:p,useTransform:k}},[n,r,o,i])}function tx(e){"use no memo";const t=y.useRef(null),o=y.useRef(null),r=y.useRef(null),n=y.useRef(null),i=y.useRef(null),{enabled:s=!0}=e,l=Y3(e),u=y.useCallback(()=>{t.current&&t.current.dispose(),t.current=null;var b;const C=(b=r.current)!==null&&b!==void 0?b:o.current;s&&ed()&&C&&n.current&&(t.current=H3({container:n.current,target:C,arrow:i.current,...l(n.current,i.current)}))},[s,l]),d=Ce(b=>{r.current=b,u()});y.useImperativeHandle(e.positioningRef,()=>({updatePosition:()=>{var b;return(b=t.current)===null||b===void 0?void 0:b.updatePosition()},setTarget:b=>{e.target,d(b)}}),[e.target,d]),oo(()=>{var b;d((b=e.target)!==null&&b!==void 0?b:null)},[e.target,d]),oo(()=>{u()},[u]);const h=jg(null,b=>{o.current!==b&&(o.current=b,u())}),p=Ce(()=>{var b;return(b=e.onPositioningEnd)===null||b===void 0?void 0:b.call(e)}),g=jg(null,b=>{if(n.current!==b){var C;(C=n.current)===null||C===void 0||C.removeEventListener(Dg,p),b?.addEventListener(Dg,p),n.current=b,u()}}),v=jg(null,b=>{i.current!==b&&(i.current=b,u())});return{targetRef:h,containerRef:g,arrowRef:v}}function Q3(e){return Gs(e)?{element:e}:typeof e=="object"?e===null?{element:null}:e:{}}const J3=ye({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),ox=fu.useInsertionEffect,e4=e=>{"use no memo";const{className:t,dir:o,focusVisibleRef:r,targetNode:n}=e,i=y.useMemo(()=>{if(n===void 0||e.disabled)return null;const s=n.ownerDocument.createElement("div");return n.appendChild(s),s},[n,e.disabled]);return y.useMemo(()=>{i&&(i.className=t,i.setAttribute("dir",o),i.setAttribute("data-portal-node","true"),r.current=i)},[t,o,i,r]),y.useEffect(()=>()=>{i?.remove()},[i]),i},t4=()=>{let e;function t(r,n){return e||(n&&(e=r.ownerDocument.createElement("div"),r.appendChild(e)),e)}function o(){e&&(e.remove(),e=void 0)}return{get:t,dispose:o}},o4=ox?e=>{"use no memo";const{className:t,dir:o,focusVisibleRef:r,targetNode:n}=e,[i]=y.useState(t4),s=y.useMemo(()=>n===void 0||e.disabled?null:new Proxy({},{get(l,u){if(u==="nodeType")return 1;if(u==="remove"){const p=i.get(n,!1);return p&&p.childNodes.length===0&&i.dispose(),()=>{}}const d=i.get(n,!0),h=d?d[u]:void 0;return typeof h=="function"?h.bind(d):h},set(l,u,d){const h=u==="_virtual"||u==="focusVisible",p=h?i.get(n,!1):i.get(n,!0);return h&&!p?!0:p?(Object.assign(p,{[u]:d}),!0):!1}}),[i,n,e.disabled]);return ox(()=>{if(!s)return;const l=t.split(" ").filter(Boolean);return s.classList.add(...l),s.setAttribute("dir",o),s.setAttribute("data-portal-node","true"),r.current=s,()=>{s.classList.remove(...l),s.removeAttribute("dir")}},[t,o,s,r]),y.useEffect(()=>()=>{s?.remove()},[s]),s}:e4,r4=e=>{"use no memo";const{targetDocument:t,dir:o}=Dt(),r=cI(),n=o1(),i=J3(),s=eI(),l={dir:o,disabled:e.disabled,focusVisibleRef:n,className:me(s,i.root,e.className),targetNode:r??t?.body};return o4(l)},n4=e=>{const{element:t,className:o}=Q3(e.mountNode),r=y.useRef(null),n=r4({disabled:!!t,className:o}),i=t??n,s={children:e.children,mountNode:i,virtualParentRootRef:r};return y.useEffect(()=>{if(!i)return;const l=r.current,u=i.contains(l);if(l&&!u)return xy(i,l),()=>{xy(i,void 0)}},[r,i]),s},i4=e=>y.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&Wi.createPortal(y.createElement(y.Fragment,null,e.children,y.createElement("span",{hidden:!0})),e.mountNode)),yd=e=>{const t=n4(e);return i4(t)};yd.displayName="Portal";const s4=6,a4=4,l4=e=>-1,c4=e=>{};function u4(e){const{targetDocument:t}=Dt(),o=t?.defaultView,r=o?o.setTimeout:l4,n=o?o.clearTimeout:c4,i=y.useRef(void 0),s=y.useCallback((u,d)=>(i.current!==void 0&&n(i.current),i.current=r(u,d??0),i.current),[n,r]),l=y.useCallback(()=>{i.current!==void 0&&(n(i.current),i.current=void 0)},[n]);return y.useEffect(()=>{const u=e.current;return()=>{(!u||!u.isConnected)&&l()}},[l,e]),[s,l]}const d4=e=>{"use no memo";var t,o,r,n,i,s,l;const u=rI(),d=vI(),{targetDocument:h}=Dt(),[p,g]=Co({state:e.visible,initialState:!1}),{children:v,content:b,withArrow:C=!1,positioning:S="above",onVisibleChange:k,relationship:F,showDelay:R=250,hideDelay:P=250,mountNode:T}=e,D={withArrow:C,positioning:S,showDelay:R,hideDelay:P,relationship:F,visible:p,shouldRenderTooltip:p,mountNode:T,components:{content:"div"},content:Xe(b,{defaultProps:{role:"tooltip"},elementType:"div"})};D.content.id=Oo("tooltip-",D.content.id);const M={enabled:D.visible,arrowPadding:2*a4,position:"above",align:"center",offset:4,...Gg(D.positioning)};D.withArrow&&(M.offset=P3(M.offset,s4));const{targetRef:O,containerRef:I,arrowRef:z}=tx(M),[U,q]=u4(I),A=y.useCallback((N,Y)=>{q(),g(ne=>(Y.visible!==ne&&k?.(N,Y),Y.visible))},[q,g,k]);D.content.ref=Mt(D.content.ref,I),D.arrowRef=z,oo(()=>{if(p){var N;const Y={hide:ge=>A(void 0,{visible:!1,documentKeyboardEvent:ge})};(N=u.visibleTooltip)===null||N===void 0||N.hide(),u.visibleTooltip=Y;const ne=ge=>{ge.key===xg&&!ge.defaultPrevented&&(Y.hide(ge),ge.preventDefault())};return h?.addEventListener("keydown",ne,{capture:!0}),()=>{u.visibleTooltip===Y&&(u.visibleTooltip=void 0),h?.removeEventListener("keydown",ne,{capture:!0})}}},[u,h,p,A]);const K=y.useRef(!1),$=y.useCallback(N=>{if(N.type==="focus"&&K.current){K.current=!1;return}const Y=u.visibleTooltip?0:D.showDelay;U(()=>{A(N,{visible:!0})},Y),N.persist()},[U,A,D.showDelay,u]),Z=w5(),[W]=y.useState(()=>{const N=ne=>{var ge;!((ge=ne.detail)===null||ge===void 0)&&ge.isFocusedProgrammatically&&!Z()&&(K.current=!0)};let Y=null;return ne=>{Y?.removeEventListener(Lo,N),ne?.addEventListener(Lo,N),Y=ne}}),_=y.useCallback(N=>{let Y=D.hideDelay;N.type==="blur"&&(Y=0,K.current=h?.activeElement===N.target),U(()=>{A(N,{visible:!1})},Y),N.persist()},[U,A,D.hideDelay,h]);D.content.onPointerEnter=tt(D.content.onPointerEnter,q),D.content.onPointerLeave=tt(D.content.onPointerLeave,_),D.content.onFocus=tt(D.content.onFocus,q),D.content.onBlur=tt(D.content.onBlur,_);const V=Jp(v),j={},L=(V==null||(t=V.props)===null||t===void 0?void 0:t["aria-haspopup"])&&((V==null||(o=V.props)===null||o===void 0?void 0:o["aria-expanded"])===!0||(V==null||(r=V.props)===null||r===void 0?void 0:r["aria-expanded"])==="true");return F==="label"?typeof D.content.children=="string"?j["aria-label"]=D.content.children:(j["aria-labelledby"]=D.content.id,D.shouldRenderTooltip=!0):F==="description"&&(j["aria-describedby"]=D.content.id,D.shouldRenderTooltip=!0),(d||L)&&(D.shouldRenderTooltip=!1),D.children=by(v,{...j,...V?.props,ref:Mt(Qp(V),W,M.target===void 0?O:void 0),onPointerEnter:Ce(tt(V==null||(n=V.props)===null||n===void 0?void 0:n.onPointerEnter,$)),onPointerLeave:Ce(tt(V==null||(i=V.props)===null||i===void 0?void 0:i.onPointerLeave,_)),onFocus:Ce(tt(V==null||(s=V.props)===null||s===void 0?void 0:s.onFocus,$)),onBlur:Ce(tt(V==null||(l=V.props)===null||l===void 0?void 0:l.onBlur,_))}),D},h4=e=>{"use no memo";const{appearance:t="normal"}=e,o=d4(e);return{appearance:t,...o}},f4=e=>kt(y.Fragment,{children:[e.children,e.shouldRenderTooltip&&he(yd,{mountNode:e.mountNode,children:kt(e.content,{children:[e.withArrow&&he("div",{ref:e.arrowRef,className:e.arrowClassName}),e.content.children]})})]}),p4={content:"fui-Tooltip__content"},g4=ye({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f9ggezi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1bzqsji",De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{B7ck84d:"f1ewtqcl",qhf8xq:"f1euv43f",Bj3rh1h:"f1bsuimh",rhnwrx:"f1s3jn22",Bdy53xb:"fv40uqz",De3pzq:"f1u2r49w",B2eet1l:"fqhgnl",Beyfa6y:"f17bz04i",Bz10aip:"f36o3x3",Bqenvij:"fzofk8q",a9b677:"f1wbx1ie",Ftih45:"f1wl9k8s",Br0sdwz:"f1aocrix",cmx5o7:"f1ljr5q2",susq4k:0,Biibvgv:0,Bicfajf:0,qehafq:0,Brs5u8j:"f155f1qt",Ccq8qp:"f9mhzq7",Baz25je:"fr6rhvx",Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f1kc0wz4",r59vdv:"fgq90dz",Bkw5xw4:"fq0y47f",hl6cv3:"f1pwrbz6",aea9ga:"f1hxxcvm",yayu3t:"fw8rgyo",Bhsv975:"f1wnzycx",rhl9o9:"f1730wal",B7gxrvb:"f1fy4ixr",B6q6orb:"fobkauc",B0lu1f8:"f16bqv1l"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],[".f1bzqsji{padding:4px 11px 6px 11px;}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1bsuimh{z-index:-1;}",".f1s3jn22{--fui-positioning-arrow-height:8.484px;}",".fv40uqz{--fui-positioning-arrow-offset:-4.242px;}",".f1u2r49w{background-color:inherit;}",".fqhgnl{background-clip:content-box;}",".f17bz04i{border-bottom-left-radius:var(--borderRadiusSmall);}",".f36o3x3{transform:rotate(var(--fui-positioning-arrow-angle));}",".fzofk8q{height:var(--fui-positioning-arrow-height);}",".f1wbx1ie{width:var(--fui-positioning-arrow-height);}",'.f1wl9k8s::before{content:"";}',".f1aocrix::before{display:block;}",".f1ljr5q2::before{background-color:inherit;}",[".f155f1qt::before{margin:-1px;}",{p:-1}],".f9mhzq7::before{width:100%;}",".fr6rhvx::before{height:100%;}",[".f1kc0wz4::before{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fgq90dz::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".fq0y47f::before{clip-path:polygon(0% 0%, 100% 100%, 0% 100%);}",'[data-popper-placement^="top"] .f1pwrbz6{bottom:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="top"] .f1hxxcvm{--fui-positioning-arrow-angle:-45deg;}','[data-popper-placement^="right"] .fw8rgyo{left:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="right"] .f1wnzycx{--fui-positioning-arrow-angle:45deg;}','[data-popper-placement^="bottom"] .f1730wal{top:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="bottom"] .f1fy4ixr{--fui-positioning-arrow-angle:135deg;}','[data-popper-placement^="left"] .fobkauc{right:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="left"] .f16bqv1l{--fui-positioning-arrow-angle:225deg;}']}),m4=e=>{"use no memo";const t=g4();return e.content.className=me(p4.content,t.root,e.appearance==="inverted"&&t.inverted,e.visible&&t.visible,e.content.className),e.arrowClassName=t.arrow,e},Sd=e=>{const t=h4(e);return m4(t),dt("useTooltipStyles_unstable")(t),f4(t)};Sd.displayName="Tooltip",Sd.isFluentTriggerComponent=!0;const v4=e=>{const{iconOnly:t,iconPosition:o}=e;return kt(e.root,{children:[o!=="after"&&e.icon&&he(e.icon,{}),!t&&e.root.children,o==="after"&&e.icon&&he(e.icon,{})]})},rx=y.createContext(void 0),b4={};rx.Provider;const C4=()=>{var e;return(e=y.useContext(rx))!==null&&e!==void 0?e:b4},w4=(e,t)=>{const{as:o="button",disabled:r=!1,disabledFocusable:n=!1,icon:i,iconPosition:s="before"}=e,l=qe(i,{elementType:"span"});return{disabled:r,disabledFocusable:n,iconPosition:s,iconOnly:!!(l?.children&&!e.children),components:{root:"button",icon:"span"},root:Xe(Lt(o,M1(e.as,e)),{elementType:"button",defaultProps:{ref:t,type:o==="button"?"button":void 0}}),icon:l}},y4=(e,t)=>{const{size:o}=C4(),{appearance:r="secondary",shape:n="rounded",size:i=o??"medium"}=e,s=w4(e,t);return{appearance:r,shape:n,size:i,...s}},nx={root:"fui-Button",icon:"fui-Button__icon"},S4=Ke("r1f29ykk",null,{r:[".r1f29ykk{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1f29ykk:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1f29ykk:hover:active,.r1f29ykk:active:focus-visible{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1f29ykk[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1f29ykk{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1f29ykk:focus{border-color:ButtonText;}.r1f29ykk:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1f29ykk:hover:active,.r1f29ykk:active:focus-visible{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1f29ykk[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),x4=Ke("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),k4=ye({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",Bpjbzib:"fkoldzo"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",Bpjbzib:"f1ksv2xa",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"f1d6mv4x",By8wz76:"f1nz3ub2",Bcq6wej:"fag2qd2",Jcjdmf:["fmvhcg7","f14bpyus"],sc4o1m:"f1o3dhpw",Bosien3:["f14bpyus","fmvhcg7"],B7iucu3:"fqc85l4",B8gzw0y:"f1h3a8gf",Bbkh6qg:"fkiggi6",F230oe:"f8gmj8i",Bdw8ktp:["f1ap8nzx","fjag8bx"],Bj1xduy:"f1igan7k",Bhh2cfd:["fjag8bx","f1ap8nzx"],Bahaeuw:"f1v3eptx",Bv2bamp:"f1ysmecq",vxuvv6:"faulsx",Bli9q98:["f79t15f","f8qmx7k"],Bx2tt8t:"fbtzoaq",yad0b3:["f8qmx7k","f79t15f"],j2fop7:"fd4bjan"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",Bpjbzib:"f1q1yqic",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"fwga7ee",Bqou3pl:"f1nhwcv0",Bsnehw8:"f1gm6xmp",wsxvnf:"f1xxsver",Bahaeuw:"f1v3eptx",Buhizc3:"fivsta0",j2fop7:"fd4bjan",Bqabnb4:"f3m6zum"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bpjbzib:"fkoldzo",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"f1l983o9",Bqou3pl:"f1nhwcv0",Bsnehw8:"f1gm6xmp",Bbkh6qg:"fxoo9op",Bahaeuw:"f1v3eptx",Bv2bamp:"f1i0gk12",j2fop7:"fd4bjan"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"},rounded:{},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},small:{Bf4jedk:"fh7ncta",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fneth5b",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f4db1ww",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],".fh7ncta{min-width:64px;}",[".fneth5b{padding:3px var(--spacingHorizontalS);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",[".f4db1ww{padding:8px var(--spacingHorizontalL);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fkoldzo:hover:active,.fkoldzo:active:focus-visible{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".f1ksv2xa:hover:active,.f1ksv2xa:active:focus-visible{background-color:var(--colorBrandBackgroundPressed);}",".fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;}",".fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;}",".f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;}",".f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{border-bottom-color:transparent;}",".f1d6mv4x:hover:active,.f1d6mv4x:active:focus-visible{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".f1q1yqic:hover:active,.f1q1yqic:active:focus-visible{background-color:var(--colorSubtleBackgroundPressed);}",".fwga7ee:hover:active,.fwga7ee:active:focus-visible{color:var(--colorNeutralForeground2Pressed);}",".f1nhwcv0:hover:active .fui-Icon-filled,.f1nhwcv0:active:focus-visible .fui-Icon-filled{display:inline;}",".f1gm6xmp:hover:active .fui-Icon-regular,.f1gm6xmp:active:focus-visible .fui-Icon-regular{display:none;}",".f1xxsver:hover:active .fui-Button__icon,.f1xxsver:active:focus-visible .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1l983o9:hover:active,.f1l983o9:active:focus-visible{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fag2qd2{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14bpyus{border-left-color:HighlightText;}.fmvhcg7{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o3dhpw{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqc85l4{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkiggi6:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f8gmj8i:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ap8nzx:hover{border-right-color:Highlight;}.fjag8bx:hover{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1igan7k:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ysmecq:hover:active,.f1ysmecq:active:focus-visible{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.faulsx:hover:active,.faulsx:active:focus-visible{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f79t15f:hover:active,.f79t15f:active:focus-visible{border-right-color:Highlight;}.f8qmx7k:hover:active,.f8qmx7k:active:focus-visible{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbtzoaq:hover:active,.fbtzoaq:active:focus-visible{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fd4bjan:hover:active,.fd4bjan:active:focus-visible{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fivsta0:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3m6zum:hover:active .fui-Button__icon,.f3m6zum:active:focus-visible .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fxoo9op:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1i0gk12:hover:active,.f1i0gk12:active:focus-visible{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),F4=ye({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",Bpjbzib:"f1jct5ie",im15vp:"f13txml0",Hjvxdg:["f1ncddno","f1axfvow"],Gpfmf1:"f1z04ada",ustxxc:["f1axfvow","f1ncddno"],Brsut9c:"f1uhomfy",Bses4qk:"fy9mucy",Bqou3pl:"f1g9va8i",Bsnehw8:"fwgvudy",wsxvnf:"fom6jww"},highContrast:{By8wz76:"f14ptb23",Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"],B7iucu3:"f1cyfu5x",Grqk0h:"f127ot8j",h3ptyc:"f19etb0b",Buw724y:["f4f984j","fw441p0"],Buk7464:"f3d22hf",Hwei09:["fw441p0","f4f984j"],Bbkh6qg:"fj8k9ua",F230oe:"fifrq0d",Bdw8ktp:["f196mwp7","fnekfq"],Bj1xduy:"f1l6uprw",Bhh2cfd:["fnekfq","f196mwp7"],Bahaeuw:"fa9u7a5",Buhizc3:"f1m71e0y",Bv2bamp:"fw24f3",vxuvv6:"f1nznrny",Bli9q98:["fq8nxuu","f1ao3jkc"],Bx2tt8t:"ftoixeo",yad0b3:["f1ao3jkc","fq8nxuu"],j2fop7:"fpmuzpx",Bqabnb4:"f168odog"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",Bpjbzib:"f9r0db0"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bpjbzib:"f9r0db0",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bpjbzib:"f9r0db0",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1jct5ie:hover:active,.f1jct5ie:active:focus-visible{background-color:var(--colorNeutralBackgroundDisabled);}",".f13txml0:hover:active,.f13txml0:active:focus-visible{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ncddno:hover:active,.f1ncddno:active:focus-visible{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1axfvow:hover:active,.f1axfvow:active:focus-visible{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1z04ada:hover:active,.f1z04ada:active:focus-visible{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1uhomfy:hover:active,.f1uhomfy:active:focus-visible{color:var(--colorNeutralForegroundDisabled);}",".fy9mucy:hover:active,.fy9mucy:active:focus-visible{cursor:not-allowed;}",".f1g9va8i:hover:active .fui-Icon-filled,.f1g9va8i:active:focus-visible .fui-Icon-filled{display:none;}",".fwgvudy:hover:active .fui-Icon-regular,.fwgvudy:active:focus-visible .fui-Icon-regular{display:inline;}",".fom6jww:hover:active .fui-Button__icon,.fom6jww:active:focus-visible .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f9r0db0:hover:active,.f9r0db0:active:focus-visible{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;}",".fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;}",".f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;}",".f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f14ptb23{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f127ot8j .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f19etb0b:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4f984j:focus{border-right-color:GrayText;}.fw441p0:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3d22hf:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj8k9ua:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fifrq0d:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f196mwp7:hover{border-right-color:GrayText;}.fnekfq:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1l6uprw:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fa9u7a5:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1m71e0y:hover .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fw24f3:hover:active,.fw24f3:active:focus-visible{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nznrny:hover:active,.f1nznrny:active:focus-visible{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ao3jkc:hover:active,.f1ao3jkc:active:focus-visible{border-left-color:GrayText;}.fq8nxuu:hover:active,.fq8nxuu:active:focus-visible{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ftoixeo:hover:active,.ftoixeo:active:focus-visible{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpmuzpx:hover:active,.fpmuzpx:active:focus-visible{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f168odog:hover:active .fui-Button__icon,.f168odog:active:focus-visible .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),R4=ye({circular:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1062rbf"},rounded:{},square:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fj0ryk1"},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Bqsb82s:["fixhny3","f18mfu3r"],jg1oma:"feygou5"},small:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fazmxh"},medium:{},large:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1b6alqh"}},{d:[[".f1062rbf[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".fj0ryk1[data-fui-focus-visible]{border-radius:var(--borderRadiusNone);}",{p:-1}],".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",[".fazmxh[data-fui-focus-visible]{border-radius:var(--borderRadiusSmall);}",{p:-1}],[".f1b6alqh[data-fui-focus-visible]{border-radius:var(--borderRadiusLarge);}",{p:-1}]],t:["@supports (-moz-appearance:button){.f18mfu3r[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fixhny3[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.feygou5[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),P4=ye({small:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fu97m5z",Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f18ktai2",Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1hbd1aw",Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[[".fu97m5z{padding:1px;}",{p:-1}],".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",[".f18ktai2{padding:5px;}",{p:-1}],".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",[".f1hbd1aw{padding:7px;}",{p:-1}],".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),E4=ye({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),T4=e=>{"use no memo";const t=S4(),o=x4(),r=k4(),n=F4(),i=R4(),s=P4(),l=E4(),{appearance:u,disabled:d,disabledFocusable:h,icon:p,iconOnly:g,iconPosition:v,shape:b,size:C}=e;return e.root.className=me(nx.root,t,u&&r[u],r[C],p&&C==="small"&&r.smallWithIcon,p&&C==="large"&&r.largeWithIcon,r[b],(d||h)&&n.base,(d||h)&&n.highContrast,u&&(d||h)&&n[u],u==="primary"&&i.primary,i[C],i[b],g&&s[C],e.root.className),e.icon&&(e.icon.className=me(nx.icon,o,!!e.root.children&&l[v],l[C],e.icon.className)),e},So=y.forwardRef((e,t)=>{const o=y4(e,t);return T4(o),dt("useButtonStyles_unstable")(o),v4(o)});So.displayName="Button";const ix=y.createContext(void 0),D4=ix.Provider,M4=()=>y.useContext(ix),A4=e=>{var t,o,r,n;const{generatedControlId:i,orientation:s,required:l,size:u,validationState:d}=e,h=(t=e.label)===null||t===void 0?void 0:t.htmlFor,p=(o=e.label)===null||o===void 0?void 0:o.id,g=(r=e.validationMessage)===null||r===void 0?void 0:r.id,v=(n=e.hint)===null||n===void 0?void 0:n.id;return{field:y.useMemo(()=>({generatedControlId:i,hintId:v,labelFor:h,labelId:p,orientation:s,required:l,size:u,validationMessageId:g,validationState:d}),[i,v,h,p,s,l,u,g,d])}};function xd(e,t){return sx(M4(),e,t)}function sx(e,t,o){if(!e)return t;t={...t};const{generatedControlId:r,hintId:n,labelFor:i,labelId:s,required:l,validationMessageId:u,validationState:d}=e;if(r){var h,p;(p=(h=t).id)!==null&&p!==void 0||(h.id=r)}if(s&&(!o?.supportsLabelFor||i!==t.id)){var g,v,b;(b=(g=t)[v="aria-labelledby"])!==null&&b!==void 0||(g[v]=s)}if((u||n)&&(t["aria-describedby"]=[u,n,t?.["aria-describedby"]].filter(Boolean).join(" ")),d==="error"){var C,S,k;(k=(C=t)[S="aria-invalid"])!==null&&k!==void 0||(C[S]=!0)}if(l)if(o?.supportsRequired){var F,R;(R=(F=t).required)!==null&&R!==void 0||(F.required=!0)}else{var P,T,D;(D=(P=t)[T="aria-required"])!==null&&D!==void 0||(P[T]=!0)}if(o?.supportsSize){var M,O;(O=(M=t).size)!==null&&O!==void 0||(M.size=e.size)}return t}const _4=(e,t)=>{let{children:o}=e;return typeof o=="function"&&(o=o(sx(t.field)||{})),he(D4,{value:t?.field,children:kt(e.root,{children:[e.label&&he(e.label,{}),o,e.validationMessage&&kt(e.validationMessage,{children:[e.validationMessageIcon&&he(e.validationMessageIcon,{}),e.validationMessage.children]}),e.hint&&he(e.hint,{})]})})},I4=(e,t)=>{const{disabled:o=!1,required:r=!1,weight:n="regular",size:i="medium"}=e;return{disabled:o,required:qe(r===!0?"*":r||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:n,size:i,components:{root:"label",required:"span"},root:Xe(Lt("label",{ref:t,...e}),{elementType:"label"})}},B4=e=>kt(e.root,{children:[e.root.children,e.required&&he(e.required,{})]}),ax={root:"fui-Label",required:"fui-Label__required"},O4=ye({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o",B7iucu3:"f1cyfu5x"},required:{sj55zd:"f1whyuy6",uwmqm3:["fruq291","f7x41pl"]},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),L4=e=>{"use no memo";const t=O4();return e.root.className=me(ax.root,t.root,e.disabled&&t.disabled,t[e.size],e.weight==="semibold"&&t.semibold,e.root.className),e.required&&(e.required.className=me(ax.required,t.required,e.disabled&&t.disabled,e.required.className)),e},ii=y.forwardRef((e,t)=>{const o=I4(e,t);return L4(o),dt("useLabelStyles_unstable")(o),B4(o)});ii.displayName="Label";const N4={error:y.createElement(xL,null),warning:y.createElement(QO,null),success:y.createElement(wL,null),none:void 0},z4=(e,t)=>{const{children:o,orientation:r="vertical",required:n=!1,validationState:i=e.validationMessage?"error":"none",size:s="medium"}=e,l=Oo("field-"),u=l+"__control",d=Xe(Lt("div",{...e,ref:t},["children"]),{elementType:"div"}),h=qe(e.label,{defaultProps:{htmlFor:u,id:l+"__label",required:n,size:s},elementType:ii}),p=qe(e.validationMessage,{defaultProps:{id:l+"__validationMessage",role:i==="error"||i==="warning"?"alert":void 0},elementType:"div"}),g=qe(e.hint,{defaultProps:{id:l+"__hint"},elementType:"div"}),v=N4[i],b=qe(e.validationMessageIcon,{renderByDefault:!!v,defaultProps:{children:v},elementType:"span"});return{children:o,generatedControlId:u,orientation:r,required:n,size:s,validationState:i,components:{root:"div",label:ii,validationMessage:"div",validationMessageIcon:"span",hint:"div"},root:d,label:h,validationMessageIcon:b,validationMessage:p,hint:g}},Hl={root:"fui-Field",label:"fui-Field__label",validationMessage:"fui-Field__validationMessage",validationMessageIcon:"fui-Field__validationMessageIcon",hint:"fui-Field__hint"},H4=ye({base:{mc9l5x:"f13qh94s"},horizontal:{Budl1dq:"f2wwaib",wkccdc:"f1645dqt"},horizontalNoLabel:{uwmqm3:["f15jqgz8","fggqkej"],Budl1dq:"f1c2z91y"}},{d:[".f13qh94s{display:grid;}",".f2wwaib{grid-template-columns:33% 1fr;}",".f1645dqt{grid-template-rows:auto auto auto 1fr;}",".f15jqgz8{padding-left:33%;}",".fggqkej{padding-right:33%;}",".f1c2z91y{grid-template-columns:1fr;}"]}),V4=ye({base:{B2u0y6b:"f6nezus",Bxyxcbc:"f1iqmcbn"},vertical:{z8tnut:"fclwglc",Byoj8tv:"fywfov9",jrapky:"fyacil5"},verticalLarge:{z8tnut:"f1sl3k7w",Byoj8tv:"f1brlhvm",jrapky:"f8l5zjj"},horizontal:{z8tnut:"fp2oml8",Byoj8tv:"f1tdddsa",t21cq0:["fkujibs","f199hnxi"],Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z"},horizontalSmall:{z8tnut:"f1ywm7hm",Byoj8tv:"f14wxoun"},horizontalLarge:{z8tnut:"f1hqyr95",Byoj8tv:"fm4hlj0"}},{d:[".f6nezus{max-width:max-content;}",".f1iqmcbn{max-height:max-content;}",".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".fyacil5{margin-bottom:var(--spacingVerticalXXS);}",".f1sl3k7w{padding-top:1px;}",".f1brlhvm{padding-bottom:1px;}",".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".f1hqyr95{padding-top:9px;}",".fm4hlj0{padding-bottom:9px;}"]}),G4=Ke("r5c4z9l",null,[".r5c4z9l{margin-top:var(--spacingVerticalXXS);color:var(--colorNeutralForeground3);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),j4=ye({error:{sj55zd:"f1hcrxcs"},withIcon:{uwmqm3:["frawy03","fg4c52"]}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".frawy03{padding-left:calc(12px + var(--spacingHorizontalXS));}",".fg4c52{padding-right:calc(12px + var(--spacingHorizontalXS));}"]}),W4=Ke("ra7h1uk","r1rh6bd7",[".ra7h1uk{display:inline-block;font-size:12px;margin-left:calc(-12px - var(--spacingHorizontalXS));margin-right:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}",".r1rh6bd7{display:inline-block;font-size:12px;margin-right:calc(-12px - var(--spacingHorizontalXS));margin-left:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}"]),q4=ye({error:{sj55zd:"f1hcrxcs"},warning:{sj55zd:"f1k5f75o"},success:{sj55zd:"ffmvakt"}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]}),U4=e=>{"use no memo";const{validationState:t,size:o}=e,r=e.orientation==="horizontal",n=H4();e.root.className=me(Hl.root,n.base,r&&n.horizontal,r&&!e.label&&n.horizontalNoLabel,e.root.className);const i=V4();e.label&&(e.label.className=me(Hl.label,i.base,r&&i.horizontal,r&&o==="small"&&i.horizontalSmall,r&&o==="large"&&i.horizontalLarge,!r&&i.vertical,!r&&o==="large"&&i.verticalLarge,e.label.className));const s=W4(),l=q4();e.validationMessageIcon&&(e.validationMessageIcon.className=me(Hl.validationMessageIcon,s,t!=="none"&&l[t],e.validationMessageIcon.className));const u=G4(),d=j4();return e.validationMessage&&(e.validationMessage.className=me(Hl.validationMessage,u,t==="error"&&d.error,!!e.validationMessageIcon&&d.withIcon,e.validationMessage.className)),e.hint&&(e.hint.className=me(Hl.hint,u,e.hint.className)),e},Pn=y.forwardRef((e,t)=>{const o=z4(e,t);U4(o),dt("useFieldStyles_unstable")(o);const r=A4(o);return _4(o,r)});Pn.displayName="Field";const $4=(e,t)=>{"use no memo";e=xd(e,{supportsLabelFor:!0,supportsRequired:!0});const{disabled:o=!1,required:r,shape:n="square",size:i="medium",labelPosition:s="after",onChange:l}=e,[u,d]=Co({defaultState:e.defaultChecked,state:e.checked,initialState:!1}),h=Xp({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","size","onChange"]}),p=u==="mixed",g=Oo("checkbox-",h.primary.id);let v;p?n==="circular"?v=y.createElement(XO,null):v=i==="large"?y.createElement(SL,null):y.createElement(yL,null):u&&(v=i==="large"?y.createElement(CL,null):y.createElement(iS,null));const b={shape:n,checked:u,disabled:o,size:i,labelPosition:s,components:{root:"span",input:"input",indicator:"div",label:ii},root:Xe(e.root,{defaultProps:{ref:p5(),...h.root},elementType:"span"}),input:Xe(e.input,{defaultProps:{type:"checkbox",id:g,ref:t,checked:u===!0,...h.primary},elementType:"input"}),label:qe(e.label,{defaultProps:{htmlFor:g,disabled:o,required:r,size:"medium"},elementType:ii}),indicator:qe(e.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0,children:v},elementType:"div"})};b.input.onChange=Ce(S=>{const k=S.currentTarget.indeterminate?"mixed":S.currentTarget.checked;l?.(S,{checked:k}),d(k)});const C=Mt(b.input.ref);return b.input.ref=C,oo(()=>{C.current&&(C.current.indeterminate=p)},[C,p]),b},K4=e=>kt(e.root,{children:[he(e.input,{}),e.labelPosition==="before"&&e.label&&he(e.label,{}),e.indicator&&he(e.indicator,{}),e.labelPosition==="after"&&e.label&&he(e.label,{})]}),kd={root:"fui-Checkbox",label:"fui-Checkbox__label",input:"fui-Checkbox__input",indicator:"fui-Checkbox__indicator"},X4=Ke("r1nzur1d","r128arqq",{r:[".r1nzur1d{position:relative;display:inline-flex;cursor:pointer;max-width:fit-content;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r1nzur1d:focus{outline-style:none;}",".r1nzur1d:focus-visible{outline-style:none;}",".r1nzur1d[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1nzur1d[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r128arqq{position:relative;display:inline-flex;cursor:pointer;max-width:fit-content;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r128arqq:focus{outline-style:none;}",".r128arqq:focus-visible{outline-style:none;}",".r128arqq[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r128arqq[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1nzur1d[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r128arqq[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),Z4=ye({unchecked:{Bi91k9c:"f3p8bqa",pv5h1i:"fium13f",lj723h:"f1r2dosr",Hnthvo:"f1729es6"},checked:{sj55zd:"f19n0e5",wkncrt:"f35ds98",zxk7z7:"f12mnkne",Hmsnfy:"fei9a8h",e6czan:"fix56y3",pv5h1i:"f1bcv2js",qbydtz:"f7dr4go",Hnthvo:"f1r5cpua"},mixed:{sj55zd:"f19n0e5",Hmsnfy:"f1l27tf0",zxk7z7:"fcilktj",pv5h1i:"f1lphd54",Bunfa6h:"f1obkvq7",Hnthvo:"f2gmbuh",B15ykmv:"f1oy4fa1"},disabled:{Bceei9c:"f158kwzp",sj55zd:"f1s2aq7o",Hmsnfy:"f1w7mfl5",zxk7z7:"fcoafq6",B7iucu3:"f1cyfu5x",Bptavk6:"f1lwde8o"}},{h:[".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".fium13f:hover{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessibleHover);}",".fix56y3:hover{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundHover);}",".f1bcv2js:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundHover);}",".f1lphd54:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokeHover);}",".f1obkvq7:hover{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Hover);}"],a:[".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".f1729es6:active{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessiblePressed);}",".f7dr4go:active{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundPressed);}",".f1r5cpua:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundPressed);}",".f2gmbuh:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokePressed);}",".f1oy4fa1:active{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Pressed);}"],d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f35ds98{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackground);}",".f12mnkne{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundInverted);}",".fei9a8h{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackground);}",".f1l27tf0{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStroke);}",".fcilktj{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1);}",".f158kwzp{cursor:default;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1w7mfl5{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeDisabled);}",".fcoafq6{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lwde8o{--fui-Checkbox__indicator--color:GrayText;}}",{m:"(forced-colors: active)"}]]}),Y4=Ke("ruo9svu",null,[".ruo9svu{box-sizing:border-box;cursor:inherit;height:100%;margin:0;opacity:0;position:absolute;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));}"]),Q4=ye({before:{j35jbq:["f1e31b4d","f1vgc2s3"]},after:{oyh7mz:["f1vgc2s3","f1e31b4d"]},large:{a9b677:"f1mq5jt6"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1mq5jt6{width:calc(20px + 2 * var(--spacingHorizontalS));}"]}),J4=Ke("rl7ci6d",null,[".rl7ci6d{align-self:flex-start;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--fui-Checkbox__indicator--color);background-color:var(--fui-Checkbox__indicator--backgroundColor);border-color:var(--fui-Checkbox__indicator--borderColor, var(--colorNeutralStrokeAccessible));border-style:solid;border-width:var(--strokeWidthThin);border-radius:var(--borderRadiusSmall);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;font-size:12px;height:16px;width:16px;}"]),ez=ye({large:{Be2twd7:"f4ybsrx",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"}},{d:[".f4ybsrx{font-size:16px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}]]}),tz=ye({base:{qb2dma:"f7nlbp4",sj55zd:"f1ym3bx4",Bceei9c:"fpo1scq",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1f5q0n8"},before:{z189sj:["f7x41pl","fruq291"]},after:{uwmqm3:["fruq291","f7x41pl"]},medium:{B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},large:{B6of3ja:"f1xlvstr",jrapky:"f49ad5g"}},{d:[".f7nlbp4{align-self:center;}",".f1ym3bx4{color:inherit;}",".fpo1scq{cursor:inherit;}",[".f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}",{p:-1}],".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}"]}),oz=e=>{"use no memo";const{checked:t,disabled:o,labelPosition:r,shape:n,size:i}=e,s=X4(),l=Z4();e.root.className=me(kd.root,s,o?l.disabled:t==="mixed"?l.mixed:t?l.checked:l.unchecked,e.root.className);const u=Y4(),d=Q4();e.input.className=me(kd.input,u,i==="large"&&d.large,d[r],e.input.className);const h=J4(),p=ez();e.indicator&&(e.indicator.className=me(kd.indicator,h,i==="large"&&p.large,n==="circular"&&p.circular,e.indicator.className));const g=tz();return e.label&&(e.label.className=me(kd.label,g.base,g[i],g[r],e.label.className)),e},Fd=y.forwardRef((e,t)=>{const o=$4(e,t);return oz(o),dt("useCheckboxStyles_unstable")(o),K4(o)});Fd.displayName="Checkbox";const lx=Ks({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});lx.Provider;const rz={activeOption:void 0,focusVisible:!1,multiselect:!1,getOptionById(){},getOptionsMatchingValue(){return[]},registerOption(){return()=>{}},selectedOptions:[],onOptionClick(){},onActiveDescendantChange(){},selectOption(){},setActiveOption(){}},Vl=Ks(void 0),Ho=e=>Bl(Vl,(t=rz)=>e(t)),nz=Vl.Provider;function iz(e){const{appearance:t,open:o,getOptionById:r,getOptionsMatchingValue:n,registerOption:i,selectedOptions:s,selectOption:l,setOpen:u,size:d,activeDescendantController:h,onOptionClick:p,onActiveDescendantChange:g}=e,v={activeOption:void 0,appearance:t,focusVisible:!1,open:o,registerOption:i,selectedOptions:s,selectOption:l,setActiveOption:()=>null,setOpen:u,size:d},b={activeOption:void 0,focusVisible:!1,getOptionById:r,getOptionsMatchingValue:n,registerOption:i,selectedOptions:s,selectOption:l,setActiveOption:()=>null,onOptionClick:p,onActiveDescendantChange:g},C=y.useMemo(()=>({controller:h}),[h]);return{combobox:v,activeDescendant:C,listbox:b}}function sz(e){const t=yg(Vl),{getOptionById:o,getOptionsMatchingValue:r,multiselect:n,registerOption:i,selectedOptions:s,selectOption:l,activeDescendantController:u}=e,d=Ho(C=>C.registerOption),h=Ho(C=>C.onOptionClick),p=Ho(C=>C.onActiveDescendantChange),v={activeOption:void 0,focusVisible:!1,getOptionById:o,getOptionsMatchingValue:r,multiselect:n,registerOption:t?d:i,selectedOptions:s,selectOption:l,setActiveOption:()=>{},onOptionClick:h,onActiveDescendantChange:p},b=y.useMemo(()=>({controller:u}),[u]);return{listbox:v,activeDescendant:b}}function Rd(e,t={}){const{open:o=!0,multiselect:r=!1}=t,n=e.key,{altKey:i,ctrlKey:s,key:l,metaKey:u}=e;return l.length===1&&n!==xn&&!i&&!s&&!u?"Type":o?n===ud&&i||n===Xs||!r&&n===xn?"CloseSelect":r&&n===xn?"Select":n===xg?"Close":n===Sg?"Next":n===ud?"Previous":n===TO?"First":n===EO?"Last":n===MO?"PageUp":n===DO?"PageDown":n===PO?"Tab":"None":n===Sg||n===ud||n===Xs||n===xn?"Open":"None"}const cx=()=>{const e=y.useRef(new Map),t=y.useMemo(()=>({getCount:()=>e.current.size,getOptionAtIndex:()=>{},getIndexOfId:()=>-1,getOptionById:d=>e.current.get(d),getOptionsMatchingText:d=>Array.from(e.current.values()).filter(({text:h})=>d(h)),getOptionsMatchingValue:d=>{const h=[];for(const p of e.current.values())d(p.value)&&h.push(p);return h}}),[]),o=y.useCallback(r=>(e.current.set(r.id,r),()=>e.current.delete(r.id)),[]);return{...t,options:Array.from(e.current.values()),registerOption:o}},ux=e=>{const{defaultSelectedOptions:t,multiselect:o,onOptionSelect:r}=e,[n,i]=Co({state:e.selectedOptions,defaultState:t,initialState:[]}),s=y.useCallback((u,d)=>{if(d.disabled)return;let h=[d.value];if(o){const p=n.findIndex(g=>g===d.value);p>-1?h=[...n.slice(0,p),...n.slice(p+1)]:h=[...n,d.value]}i(h),r?.(u,{optionValue:d.value,optionText:d.text,selectedOptions:h})},[r,o,n,i]);return{clearSelection:u=>{i([]),r?.(u,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:s,selectedOptions:n}},Pd={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},az=ye({root:{Bt984gj:"f122n59",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fm5eomj",qhf8xq:"f10pi13n",Jwef8y:"f1knas48",Bi91k9c:"feu1g3u",zqbkvg:"fo79ri9",h82x05:["f1osiabc","f1e8le25"],cqj998:"f1yusjty",j3hlsh:["f1e8le25","f1osiabc"],ecr2s2:"fb40n2d",lj723h:"f1g4hkjv",Btxx2vb:"f1lnr2zp",sltcwy:["f1ogfk9z","f1g7j8ec"],dnwvvm:"fiuf46r",Blyvkvs:["f1g7j8ec","f1ogfk9z"]},active:{Bowz1zl:"f11vrvdw",oxogb1:"f17hxjb7",Ix2sn8:"f1dha69c",q7v32p:"f1lm7500",B7cbj04:0,Bewtojm:0,b50fsz:0,B1wzb3v:0,Bqwk70n:0,B37u8z8:0,avt0cx:0,f0sref:0,B9fkznv:0,Be3o27t:0,Bertapg:0,B53xpsf:0,Bsv72rj:0,B39dzdd:0,Btq9bd3:0,Bqfxd14:0,atup0s:"fo7xqb",Fffuxt:0,Bttcd12:0,Beitzug:0,Bqougee:0,B86i8pi:"f1kurthe",Bhijsxg:"fwq15dy",kktds4:"f1pb3wry",Bmau3bo:["ftjv2f4","f1flhb1f"],npektv:["f1flhb1f","ftjv2f4"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",Bi91k9c:"fvgxktp",zqbkvg:"f185j3qj",h82x05:["f1dligi3","f1vydzie"],cqj998:"fjw1di3",j3hlsh:["f1vydzie","f1dligi3"],ecr2s2:"fgj9um3",lj723h:"f19wldhg",Btxx2vb:"f1ss0kt2",sltcwy:["f1t6oli3","fjy9ci8"],dnwvvm:"fresaxk",Blyvkvs:["fjy9ci8","f1t6oli3"],B7iucu3:"f1cyfu5x"},selected:{},checkIcon:{Bnnss6s:"fi64zpg",Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f1l3cf7o",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fq9zq91",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",B7iucu3:"f1cyfu5x"},multiselectCheckDisabled:{g2u3we:"f1r1t4y1",h3c5rm:["fmj8ijw","figx54m"],B9xav0g:"f360ss8",zhjwy3:["figx54m","fmj8ijw"]}},{d:[".f122n59{align-items:center;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".fm5eomj{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalS);}",{p:-1}],".f10pi13n{position:relative;}",'.f11vrvdw[data-activedescendant-focusvisible]::after{content:"";}',".f17hxjb7[data-activedescendant-focusvisible]::after{position:absolute;}",".f1dha69c[data-activedescendant-focusvisible]::after{pointer-events:none;}",".f1lm7500[data-activedescendant-focusvisible]::after{z-index:1;}",[".fo7xqb[data-activedescendant-focusvisible]::after{border:2px solid var(--colorStrokeFocus2);}",{p:-2}],[".f1kurthe[data-activedescendant-focusvisible]::after{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fwq15dy[data-activedescendant-focusvisible]::after{top:-2px;}",".f1pb3wry[data-activedescendant-focusvisible]::after{bottom:-2px;}",".ftjv2f4[data-activedescendant-focusvisible]::after{left:-2px;}",".f1flhb1f[data-activedescendant-focusvisible]::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fi64zpg{flex-shrink:0;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",[".f1l3cf7o{border:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}",{p:-2}],[".fq9zq91{border-radius:var(--borderRadiusSmall);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}",".f1r1t4y1{border-top-color:var(--colorNeutralForegroundDisabled);}",".fmj8ijw{border-right-color:var(--colorNeutralForegroundDisabled);}",".figx54m{border-left-color:var(--colorNeutralForegroundDisabled);}",".f360ss8{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".fo79ri9:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1osiabc:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1e8le25:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".f1yusjty:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f185j3qj:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1dligi3:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".f1vydzie:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fjw1di3:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f1lnr2zp:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1ogfk9z:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1g7j8ec:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".fiuf46r:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1ss0kt2:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1t6oli3:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".fjy9ci8:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fresaxk:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),lz=e=>{"use no memo";const{disabled:t,multiselect:o,selected:r}=e,n=az();return e.root.className=me(Pd.root,n.root,n.active,t&&n.disabled,r&&n.selected,e.root.className),e.checkIcon&&(e.checkIcon.className=me(Pd.checkIcon,n.checkIcon,o&&n.multiselectCheck,r&&n.selectedCheck,r&&o&&n.selectedMultiselectCheck,t&&n.checkDisabled,t&&o&&n.multiselectCheckDisabled,e.checkIcon.className)),e},dx={activeOption:void 0,focusVisible:!1,setActiveOption:()=>null},cz=(e,t)=>{"use no memo";const{multiselect:o,disableAutoFocus:r=!1}=e,n=cx(),{listboxRef:i,activeParentRef:s,controller:l}=N1({matchOption:K=>K.classList.contains(Pd.root)}),u=yg(Vl),d=Ho(K=>K.onActiveDescendantChange),h=Ho(K=>K.getOptionById),p=Ho(K=>K.getOptionsMatchingValue),g=u?h:n.getOptionById,v=u?p:n.getOptionsMatchingValue,b=y.useMemo(()=>{let K=null;const $=Z=>{d?.(Z)};return Z=>{if(!Z){K?.removeEventListener("activedescendantchange",$);return}K=Z,K.addEventListener("activedescendantchange",$)}},[d]),[C,S]=y.useState(!1);i1(S);const k=_1(),F=BO(),R=F?k.controller:l,{clearSelection:P,selectedOptions:T,selectOption:D}=ux(e),M=K=>{const $=Rd(K,{open:!0}),Z=R.active(),W=Z?g(Z):null;switch($){case"First":case"Last":case"Next":case"Previous":case"PageDown":case"PageUp":case"CloseSelect":case"Select":K.preventDefault();break}switch($){case"Next":W?R.next():R.first();break;case"Previous":W?R.prev():R.first();break;case"PageUp":case"First":R.first();break;case"PageDown":case"Last":R.last();break;case"Select":case"CloseSelect":W&&D(K,W);break}},O=Ho(K=>K.selectedOptions),I=Ho(K=>K.selectOption),z=u?{selectedOptions:O,selectOption:I,...dx}:{selectedOptions:T,selectOption:D,...dx};y.useEffect(()=>{if(!F){if(R.hideFocusVisibleAttributes(),!r)if(!o&&z.selectedOptions.length>0){const K=v($=>$===z.selectedOptions[0]).pop();K?.id&&R.focus(K.id)}else R.first();return()=>{R.blur()}}},[]);const U=y.useCallback(()=>{F||(R.showFocusVisibleAttributes(),C&&R.scrollActiveIntoView())},[R,F,C]),q=y.useCallback(()=>{F||R.hideFocusVisibleAttributes()},[R,F]),A={components:{root:"div"},root:Xe(Lt("div",{ref:Mt(t,s,i,b),role:o?"menu":"listbox",tabIndex:0,...e}),{elementType:"div"}),standalone:!u,multiselect:o,clearSelection:P,activeDescendantController:R,onActiveDescendantChange:d,...n,...z};return A.root.onKeyDown=Ce(tt(A.root.onKeyDown,M)),A.root.onFocus=Ce(tt(A.root.onFocus,U)),A.root.onBlur=Ce(tt(A.root.onBlur,q)),A},uz=(e,t)=>he(A1,{value:t.activeDescendant,children:he(Vl.Provider,{value:t.listbox,children:he(e.root,{})})}),dz={root:"fui-Listbox"},hz=ye({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bw0xxkn:0,oeaueh:0,Bpd4iqm:0,Befb4lg:"f1iepc6i",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1t35pdg",Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",[".f1iepc6i{outline:1px solid var(--colorTransparentStroke);}",{p:-1}],[".f1t35pdg{padding:var(--spacingHorizontalXS);}",{p:-1}],".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),fz=e=>{"use no memo";const t=hz();return e.root.className=me(dz.root,t.root,e.root.className),e},Wg=y.forwardRef((e,t)=>{const o=cz(e,t),r=sz(o);return fz(o),dt("useListboxStyles_unstable")(o),uz(o,r)});Wg.displayName="Listbox";function pz(e,t){if(e!==void 0)return e;let o="",r=!1;return y.Children.forEach(t,n=>{typeof n=="string"?o+=n:r=!0}),r&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),o}const gz=(e,t)=>{const{children:o,disabled:r,text:n,value:i}=e,s=y.useRef(null),l=pz(n,o),u=i??l,d=Oo("fluent-option",e.id),h=y.useMemo(()=>({id:d,disabled:r,text:l,value:u}),[d,r,l,u]),{controller:p}=_1(),g=Ho(P=>P.multiselect),v=Ho(P=>P.registerOption),b=Ho(P=>{const T=P.selectedOptions;return u!==void 0&&T.find(D=>D===u)!==void 0}),C=Ho(P=>P.selectOption),S=Ho(P=>P.onOptionClick);let k=y.createElement(ZO,null);g&&(k=b?y.createElement(iS,null):"");const F=P=>{var T;if(r){P.preventDefault();return}p.focus(d),C(P,h),S(P),(T=e.onClick)===null||T===void 0||T.call(e,P)};y.useEffect(()=>{if(d&&s.current)return v(h,s.current)},[d,h,v]);const R=g?{role:"menuitemcheckbox","aria-checked":b}:{role:"option","aria-selected":b};return{components:{root:"div",checkIcon:"span"},root:Xe(Lt("div",{ref:Mt(t,s),"aria-disabled":r?"true":void 0,id:d,...R,...e,onClick:F}),{elementType:"div"}),checkIcon:qe(e.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:k},elementType:"span"}),disabled:r,multiselect:g,selected:b,focusVisible:!1,active:!1}},mz=e=>kt(e.root,{children:[e.checkIcon&&he(e.checkIcon,{}),e.root.children]}),Gl=y.forwardRef((e,t)=>{const o=gz(e,t);return lz(o),dt("useOptionStyles_unstable")(o),mz(o)});Gl.displayName="Option";const vz=e=>{"use no memo";const{appearance:t="outline",disableAutoFocus:o,children:r,clearable:n=!1,editable:i=!1,inlinePopup:s=!1,mountNode:l=void 0,multiselect:u,onOpenChange:d,size:h="medium",activeDescendantController:p,freeform:g=!1,disabled:v=!1,onActiveOptionChange:b=null}=e,C=cx(),{getOptionsMatchingValue:S}=C,{getOptionById:k}=C,F=y.useCallback(()=>{const N=p.active();return N?k(N):void 0},[p,k]),R=F(),P=y.useCallback(N=>{let Y;if(typeof N=="function"){const ne=F();Y=N(ne)}Y?p.focus(Y.id):p.blur()},[p,F]),[T,D]=y.useState(!1),[M,O]=y.useState(!1),I=y.useRef(!1),z=py(),[U,q]=Co({state:e.value,initialState:void 0}),{selectedOptions:A,selectOption:K,clearSelection:$}=ux(e),Z=y.useCallback((N,Y)=>{Wi.unstable_batchedUpdates(()=>{q(void 0),K(N,Y)})},[q,K]),W=y.useMemo(()=>{if(U!==void 0)return U;if(z&&e.defaultValue!==void 0)return e.defaultValue;const N=S(Y=>A.includes(Y)).map(Y=>Y.text);return u?i?"":N.join(", "):N[0]},[U,i,S,u,A]),[_,V]=Co({state:e.open,defaultState:e.defaultOpen,initialState:!1}),j=y.useCallback((N,Y)=>{v||(d?.(N,{open:Y}),Wi.unstable_batchedUpdates(()=>{!Y&&!g&&q(void 0),V(Y)}))},[d,V,q,g,v]);y.useEffect(()=>{if(_){if(!u&&A.length>0){const N=S(Y=>Y===A[0]).pop();N?.id&&p.focus(N.id)}}else p.blur()},[_,p]),y.useEffect(()=>{_&&!o&&!p.active()&&p.first()},[_,r,o,p,k]);const L=Ce(N=>{const Y=N.detail.previousId?C.getOptionById(N.detail.previousId):null,ne=C.getOptionById(N.detail.id);b?.(N,{event:N,type:"change",previousOption:Y,nextOption:ne})});return{...C,freeform:g,disabled:v,selectOption:Z,clearSelection:$,selectedOptions:A,activeOption:R,appearance:t,clearable:n,focusVisible:T,ignoreNextBlur:I,inlinePopup:s,mountNode:l,open:_,hasFocus:M,setActiveOption:P,setFocusVisible:D,setHasFocus:O,setOpen:j,setValue:q,size:h,value:W,multiselect:u,onOptionClick:Ce(N=>{u||j(N,!1)}),onActiveDescendantChange:L}};function bz(e){const{positioning:t}=e,r={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",autoSize:!0,...Gg(t)},{targetRef:n,containerRef:i}=tx(r);return[i,n]}function Cz(e,t,o){const{state:{multiselect:r},triggerRef:n,defaultProps:i}=o,s=Oo("fluent-listbox",Kp(e)?e.id:void 0),l=qe(e,{renderByDefault:!0,elementType:Wg,defaultProps:{id:s,multiselect:r,tabIndex:void 0,...i}}),u=xd({id:s},{supportsLabelFor:!0});l&&!l["aria-label"]&&!l["aria-labelledby"]&&u["aria-labelledby"]&&(l["aria-labelledby"]=u["aria-labelledby"]);const d=Ce(tt(g=>{g.preventDefault()},l?.onMouseDown)),h=Ce(tt(g=>{var v;g.preventDefault(),(v=n.current)===null||v===void 0||v.focus()},l?.onClick)),p=Mt(l?.ref,t);return l&&(l.ref=p,l.onMouseDown=d,l.onClick=h),l}function wz(e,t,o){const{state:{open:r,setOpen:n,setHasFocus:i},defaultProps:s,elementType:l,activeDescendantController:u}=o,d=Xe(e,{defaultProps:{type:"text","aria-expanded":r,role:"combobox",...typeof s=="object"&&s},elementType:l}),h=y.useRef(null);return d.ref=Mt(h,d.ref,t),d.onBlur=tt(p=>{n(p,!1),i(!1)},d.onBlur),d.onFocus=tt(p=>{p.target===p.currentTarget&&i(!0)},d.onFocus),d.onClick=tt(p=>{n(p,!r)},d.onClick),d.onKeyDown=tt(yz({activeDescendantController:u,...o.state}),d.onKeyDown),d}function yz(e){const{activeDescendantController:t,getOptionById:o,setOpen:r,selectOption:n,multiselect:i,open:s}=e,l=y.useCallback(()=>{const C=t.active();return C?o(C):void 0},[t,o]),u=()=>{t.first()},d=()=>{t.last()},h=C=>{C?t.next():t.first()},p=C=>{C?t.prev():t.first()},g=()=>{for(let C=0;C<10;C++)t.prev()},v=()=>{for(let C=0;C<10;C++)t.next()},b=y5();return Ce(C=>{const S=Rd(C,{open:s,multiselect:i}),k=l();switch(S){case"First":case"Last":case"Next":case"Previous":case"PageDown":case"PageUp":case"Open":case"Close":case"CloseSelect":case"Select":C.preventDefault();break}switch(b(!0),S){case"First":u();break;case"Last":d();break;case"Next":h(k);break;case"Previous":p(k);break;case"PageDown":v();break;case"PageUp":g();break;case"Open":r(C,!0);break;case"Close":C.stopPropagation(),r(C,!1);break;case"CloseSelect":!i&&!k?.disabled&&r(C,!1);case"Select":k&&n(C,k);break;case"Tab":!i&&k&&n(C,k);break}})}function Sz(e,t,o){"use no memo";const{state:{open:r,value:n,selectOption:i,setValue:s,multiselect:l,selectedOptions:u,clearSelection:d,getOptionById:h,setOpen:p},freeform:g,defaultProps:v,activeDescendantController:b}=o,C=O=>{if(!r&&!g){const I=b.active(),z=I?h(I):null;n&&z&&n.trim().toLowerCase()===z?.text.toLowerCase()&&i(O,z),s(void 0)}},S=O=>{const I=O?.trim().toLowerCase();if(!I||I.length===0){b.blur();return}const z=q=>q.toLowerCase().indexOf(I)===0,U=b.find(q=>{const A=h(q);return!!A&&z(A.text)});if(!U){b.blur();return}return h(U)},k=O=>{const I=O.target.value;s(I);const z=S(I);!l&&u.length===1&&(I.length<1||!z)&&d(O)},F=wz(e,t,{state:o.state,defaultProps:v,elementType:"input",activeDescendantController:b});F.onChange=tt(F.onChange,k),F.onBlur=tt(F.onBlur,C);const[R,P]=y.useState(!1),T=y.useRef(!1),D=F.onKeyDown,M=Ce(O=>{!r&&Rd(O)==="Type"&&p(O,!0),O.key===T1||O.key===D1?P(!0):P(!1);const I=Rd(O,{open:r,multiselect:l});if(I==="Type"?T.current=!0:(I==="Open"&&O.key!==" "||I==="Next"||I==="Previous"||I==="First"||I==="Last"||I==="PageUp"||I==="PageDown")&&(T.current=!1),(T.current||!r)&&O.key===" "){var z;e==null||(z=e.onKeyDown)===null||z===void 0||z.call(e,O);return}D?.(O)});return F.onKeyDown=M,R&&(F["aria-activedescendant"]=void 0),F}const xz=(e,t)=>{"use no memo";var o,r;e=xd(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const{listboxRef:n,activeParentRef:i,controller:s}=N1({matchOption:N=>N.classList.contains(Pd.root)}),l=vz({...e,editable:!0,activeDescendantController:s}),{clearable:u,clearSelection:d,disabled:h,multiselect:p,open:g,selectedOptions:v,setOpen:b,value:C,hasFocus:S}=l,[k,F]=bz(e),{disableAutoFocus:R=!1,freeform:P,inlinePopup:T}=e,D=Oo("combobox-"),{primary:M,root:O}=Xp({props:e,primarySlotTagName:"input",excludedPropNames:["children","size"]}),I=y.useRef(null),z=Cz(e.listbox,Mt(k,n),{state:l,triggerRef:I,defaultProps:{children:e.children,disableAutoFocus:R}});var U;const q=Sz((U=e.input)!==null&&U!==void 0?U:{},Mt(I,i,t),{state:l,freeform:P,defaultProps:{type:"text",value:C??"","aria-controls":g?z?.id:void 0,...M},activeDescendantController:s}),A=Xe(e.root,{defaultProps:{"aria-owns":!T&&g?z?.id:void 0,...O},elementType:"div"});A.ref=Mt(A.ref,F);const K=v.length>0&&!h&&u&&!p,$={components:{root:"div",input:"input",expandIcon:"span",listbox:Wg,clearIcon:"span"},root:A,input:q,listbox:g||S?z:void 0,clearIcon:qe(e.clearIcon,{defaultProps:{"aria-hidden":"true",children:y.createElement(Fg,null)},elementType:"span",renderByDefault:!0}),expandIcon:qe(e.expandIcon,{renderByDefault:!0,defaultProps:{"aria-disabled":h?"true":void 0,"aria-expanded":g,children:y.createElement(YO,null),role:"button"},elementType:"span"}),showClearIcon:K,activeDescendantController:s,...l},{targetDocument:Z}=Dt();wI({element:Z,callback:N=>b(N,!1),refs:[I,k,F],disabled:!g});const{onMouseDown:W}=$.expandIcon||{},_=Ce(tt(W,N=>{var Y;N.preventDefault(),$.setOpen(N,!$.open),(Y=I.current)===null||Y===void 0||Y.focus()}));if($.expandIcon){$.expandIcon.onMouseDown=_;const N=$.expandIcon["aria-label"]||$.expandIcon["aria-labelledby"],Y="Open";if(!N)if(e["aria-labelledby"]){var V;const ne=(V=$.expandIcon.id)!==null&&V!==void 0?V:`${D}-chevron`,ge=`${ne} ${$.input["aria-labelledby"]}`;$.expandIcon["aria-label"]=Y,$.expandIcon.id=ne,$.expandIcon["aria-labelledby"]=ge}else e["aria-label"]?$.expandIcon["aria-label"]=`${Y} ${e["aria-label"]}`:$.expandIcon["aria-label"]=Y}const j=Ce(tt((o=$.clearIcon)===null||o===void 0?void 0:o.onMouseDown,N=>{N.preventDefault()})),L=Ce(tt((r=$.clearIcon)===null||r===void 0?void 0:r.onClick,N=>{d(N)}));return $.clearIcon&&($.clearIcon.onMouseDown=j,$.clearIcon.onClick=L),p&&($.clearIcon=void 0),$},kz=(e,t)=>he(e.root,{children:he(A1,{value:t.activeDescendant,children:he(nz,{value:t.listbox,children:kt(lx.Provider,{value:t.combobox,children:[he(e.input,{}),e.clearIcon&&he(e.clearIcon,{}),e.expandIcon&&he(e.expandIcon,{}),e.listbox&&(e.inlinePopup?he(e.listbox,{}):he(yd,{mountNode:e.mountNode,children:he(e.listbox,{})}))]})})})}),jl={root:"fui-Combobox",input:"fui-Combobox__input",expandIcon:"fui-Combobox__expandIcon",clearIcon:"fui-Combobox__clearIcon",listbox:"fui-Combobox__listbox"},Fz=ye({root:{Bt984gj:"f122n59",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",B7ck84d:"f1ewtqcl",i8kkvl:"f14mj54c",mc9l5x:"fwk3njj",Budl1dq:"fz17x9o",Brf1p80:"f1869bpl",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",ha4doy:"fmrv4ls",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"f145g4dw",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],B1q35kw:0,Bw17bha:0,Bcgy8vk:0,Bjuhk93:"f1mnjydx",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",wi16st:"fsrmcvb",ywj3b2:"f1t3k7v9",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",Bnupc0a:"fx04xgm",bing71:"f1c7in40",Bercvud:"f1ibeo51"},listbox:{E5pizo:"f1hg901r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bxyxcbc:"fmmk62d",B7ck84d:"f1ewtqcl"},listboxCollapsed:{mc9l5x:"fjseox"},inlineListbox:{Bj3rh1h:"f19g0ac"},small:{Bqenvij:"frvgh55",z189sj:["fdw0yi8","fk8j09s"]},medium:{Bqenvij:"f1d2rq10",z189sj:["f11gcy0p","f1ng84yb"]},large:{i8kkvl:"f1rjii52",Bqenvij:"fbhnoac",z189sj:["fw5db7e","f1uw59to"]},outline:{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:"f1c1zstj",oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fhz96rm"},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"f1z0osm6",B50zh58:["f4ruux4","f1assf6x"],Bvq3b66:"f1b473iu",Brahy3i:["f381qr8","ft4skwv"],zoxjo1:"f1qzcrsd",an54nd:["ft4skwv","f381qr8"]},underline:{De3pzq:"f1c21dwh",B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f9ez7ne",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779"},"filled-lighter":{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f88035w"},"filled-darker":{De3pzq:"f16xq7d1",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f88035w"},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"]}},{d:[".f122n59{align-items:center;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fwk3njj{display:inline-grid;}",".fz17x9o{grid-template-columns:1fr auto;}",".f1869bpl{justify-content:space-between;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".fmrv4ls{vertical-align:middle;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".f145g4dw::after{height:max(2px, var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",[".f1mnjydx::after{border-bottom:var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);}",{p:-1}],".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".f19g0ac{z-index:1;}",".frvgh55{height:24px;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1d2rq10{height:32px;}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fbhnoac{height:40px;}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".fhz96rm{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}",{p:-2}],".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f9ez7ne{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}",{p:-1}],[".fokr779{border-radius:0;}",{p:-1}],[".f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",[".f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-2}],".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".f1b473iu:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".f381qr8:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".ft4skwv:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1qzcrsd:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fsrmcvb::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1t3k7v9::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fx04xgm:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1c7in40:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"]}),Rz=ye({input:{qb2dma:"f1ub7u0d",De3pzq:"f1c21dwh",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",sj55zd:"f19n0e5",Bahqtrf:"fk6fouc",Brovlpu:"ftqa4ok",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["fxe2rs","f1gflqzi"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["fzy81xo","f58b53b"]},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f1kdav7a","footqm6"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1ub7u0d{align-self:stretch;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f3bhgqh{border:none;}",{p:-2}],".f19n0e5{color:var(--colorNeutralForeground1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",[".fxe2rs{padding:0 0 0 calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f1gflqzi{padding:0 calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS)) 0 0;}",{p:-1}],".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".fzy81xo{padding:0 0 0 calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f58b53b{padding:0 calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS)) 0 0;}",{p:-1}],".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f1kdav7a{padding:0 0 0 calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",{p:-1}],[".footqm6{padding:0 calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge)) 0 0;}",{p:-1}],".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"],f:[".ftqa4ok:focus{outline-style:none;}"]}),Pz=ye({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",Bceei9c:"f1k6fduh",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Bo70h7d:"fvc9v3g"},hidden:{mc9l5x:"fjseox"},visuallyHidden:{Bh84pgu:"f1ekcaio",Bqenvij:"f1mpe4l3",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1jlpb2r",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1c5fvqg",a9b677:"frkrog8",qhf8xq:"f1euv43f"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".f1k6fduh{cursor:pointer;}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fvc9v3g svg{display:block;}",".fjseox{display:none;}",".f1ekcaio{clip:rect(0px, 0px, 0px, 0px);}",".f1mpe4l3{height:1px;}",[".f1jlpb2r{margin:-1px;}",{p:-1}],[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".f1c5fvqg{padding:0px;}",{p:-1}],".frkrog8{width:1px;}",".f1euv43f{position:absolute;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}"]}),Ez=e=>{"use no memo";const{appearance:t,open:o,size:r,showClearIcon:n}=e,i=`${e.input["aria-invalid"]}`=="true",s=e.input.disabled,l=Fz(),u=Pz(),d=Rz();return e.root.className=me(jl.root,l.root,l[t],l[r],!s&&t==="outline"&&l.outlineInteractive,i&&t!=="underline"&&l.invalid,i&&t==="underline"&&l.invalidUnderline,s&&l.disabled,e.root.className),e.input.className=me(jl.input,d.input,d[r],s&&d.disabled,e.input.className),e.listbox&&(e.listbox.className=me(jl.listbox,l.listbox,e.inlinePopup&&l.inlineListbox,!o&&l.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=me(jl.expandIcon,u.icon,u[r],s&&u.disabled,n&&u.visuallyHidden,e.expandIcon.className)),e.clearIcon&&(e.clearIcon.className=me(jl.clearIcon,u.icon,u[r],s&&u.disabled,!n&&u.hidden,e.clearIcon.className)),e},Wl=y.forwardRef((e,t)=>{const o=xz(e,t),r=iz(o);return Ez(o),dt("useComboboxStyles_unstable")(o),kz(o,r)});Wl.displayName="Combobox";const hx=(e,t)=>{e=xd(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const o=uy();var r;const{size:n="medium",appearance:i=(r=o.inputDefaultAppearance)!==null&&r!==void 0?r:"outline",onChange:s}=e,[l,u]=Co({state:e.value,defaultState:e.defaultValue,initialState:""}),d=Xp({props:e,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),h={size:n,appearance:i,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:Xe(e.input,{defaultProps:{type:"text",ref:t,...d.primary},elementType:"input"}),contentAfter:qe(e.contentAfter,{elementType:"span"}),contentBefore:qe(e.contentBefore,{elementType:"span"}),root:Xe(e.root,{defaultProps:d.root,elementType:"span"})};return h.input.value=l,h.input.onChange=Ce(p=>{const g=p.target.value;s?.(p,{value:g}),u(g)}),h},Tz=e=>kt(e.root,{children:[e.contentBefore&&he(e.contentBefore,{}),he(e.input,{}),e.contentAfter&&he(e.contentAfter,{})]}),Ed={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},Dz=Ke("r1oeeo9n","r9sxh5",{r:[".r1oeeo9n{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1oeeo9n::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1oeeo9n:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1oeeo9n:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1oeeo9n:focus-within{outline:2px solid transparent;}",".r9sxh5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r9sxh5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r9sxh5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r9sxh5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r9sxh5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),Mz=ye({small:{sshi5w:"f1pha7fy",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:0,Belr9w4:0,rmohyg:"f1eyhf9v"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"f2ale1x"},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"},smallWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},smallWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},mediumWithContentBefore:{uwmqm3:["f1ng84yb","f11gcy0p"]},mediumWithContentAfter:{z189sj:["f11gcy0p","f1ng84yb"]},largeWithContentBefore:{uwmqm3:["f1uw59to","fw5db7e"]},largeWithContentAfter:{z189sj:["fw5db7e","f1uw59to"]}},{d:[".f1pha7fy{min-height:24px;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f1eyhf9v{gap:var(--spacingHorizontalSNudge);}",{p:-1}],".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".fokr779{border-radius:0;}",{p:-1}],".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",[".f2ale1x::after{border-radius:0;}",{p:-1}],".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),Az=Ke("r12stul0",null,[".r12stul0{align-self:stretch;box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalM);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".r12stul0::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),_z=ye({small:{uwmqm3:["f1f5gg8d","f1vdfbxk"],z189sj:["f1vdfbxk","f1f5gg8d"]},medium:{},large:{uwmqm3:["fnphzt9","flt1dlf"],z189sj:["flt1dlf","fnphzt9"]},smallWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},smallWithContentAfter:{z189sj:["ffczdla","fgiv446"]},mediumWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},mediumWithContentAfter:{z189sj:["ffczdla","fgiv446"]},largeWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},largeWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),Iz=Ke("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),Bz=ye({disabled:{sj55zd:"f1s2aq7o"},small:{Duoase:"f3qv9w"},medium:{},large:{Duoase:"f16u2scb"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3qv9w>svg{font-size:16px;}",".f16u2scb>svg{font-size:24px;}"]}),fx=e=>{"use no memo";const{size:t,appearance:o}=e,r=e.input.disabled,n=`${e.input["aria-invalid"]}`=="true",i=o.startsWith("filled"),s=Mz(),l=_z(),u=Bz();e.root.className=me(Ed.root,Dz(),s[t],e.contentBefore&&s[`${t}WithContentBefore`],e.contentAfter&&s[`${t}WithContentAfter`],s[o],!r&&o==="outline"&&s.outlineInteractive,!r&&o==="underline"&&s.underlineInteractive,!r&&i&&s.filledInteractive,i&&s.filled,!r&&n&&s.invalid,r&&s.disabled,e.root.className),e.input.className=me(Ed.input,Az(),l[t],e.contentBefore&&l[`${t}WithContentBefore`],e.contentAfter&&l[`${t}WithContentAfter`],r&&l.disabled,e.input.className);const d=[Iz(),r&&u.disabled,u[t]];return e.contentBefore&&(e.contentBefore.className=me(Ed.contentBefore,...d,e.contentBefore.className)),e.contentAfter&&(e.contentAfter.className=me(Ed.contentAfter,...d,e.contentAfter.className)),e},oa=y.forwardRef((e,t)=>{const o=hx(e,t);return fx(o),dt("useInputStyles_unstable")(o),Tz(o)});oa.displayName="Input";const px=y.createContext(void 0),Oz={};px.Provider;const Lz=()=>{var e;return(e=y.useContext(px))!==null&&e!==void 0?e:Oz},Nz=(e,t)=>{const{size:o}=Lz(),{appearance:r="primary",labelPosition:n="after",size:i=o??"medium",delay:s=0}=e,l=Oo("spinner"),{role:u="progressbar",...d}=e,h=Xe(Lt("div",{ref:t,role:u,...d},["size"]),{elementType:"div"}),[p,g]=y.useState(!1),[v,b]=FI();y.useEffect(()=>{if(!(s<=0))return v(()=>{g(!0)},s),()=>{b()}},[v,b,s]);const C=qe(e.label,{defaultProps:{id:l},renderByDefault:!1,elementType:ii}),S=qe(e.spinner,{renderByDefault:!0,elementType:"span"});return C&&h&&!h["aria-labelledby"]&&(h["aria-labelledby"]=C.id),{appearance:r,delay:s,labelPosition:n,size:i,shouldRenderSpinner:!s||p,components:{root:"div",spinner:"span",spinnerTail:"span",label:ii},root:h,spinner:S,spinnerTail:Xe(e.spinnerTail,{elementType:"span"}),label:C}},zz=e=>{const{labelPosition:t,shouldRenderSpinner:o}=e;return kt(e.root,{children:[e.label&&o&&(t==="above"||t==="before")&&he(e.label,{}),e.spinner&&o&&he(e.spinner,{children:e.spinnerTail&&he(e.spinnerTail,{})}),e.label&&o&&(t==="below"||t==="after")&&he(e.label,{})]})},Td={root:"fui-Spinner",spinner:"fui-Spinner__spinner",spinnerTail:"fui-Spinner__spinnerTail",label:"fui-Spinner__label"},Hz=Ke("rpp59a7",null,[".rpp59a7{display:flex;align-items:center;justify-content:center;line-height:0;gap:8px;overflow:hidden;min-width:min-content;}"]),Vz=ye({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),Gz=Ke("rvgcg50","r15nd2jo",{r:[".rvgcg50{position:relative;flex-shrink:0;-webkit-mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);background-color:var(--colorBrandStroke2Contrast);color:var(--colorBrandStroke1);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:rb7n1on;}","@keyframes rb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}",".r15nd2jo{position:relative;flex-shrink:0;-webkit-mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);background-color:var(--colorBrandStroke2Contrast);color:var(--colorBrandStroke1);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:r1gx3jof;}","@keyframes r1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],s:["@media screen and (forced-colors: active){.rvgcg50{background-color:HighlightText;color:Highlight;forced-color-adjust:none;}}","@media screen and (prefers-reduced-motion: reduce){.rvgcg50{animation-duration:1.8s;}}","@media screen and (forced-colors: active){.r15nd2jo{background-color:HighlightText;color:Highlight;forced-color-adjust:none;}}","@media screen and (prefers-reduced-motion: reduce){.r15nd2jo{animation-duration:1.8s;}}"]}),jz=Ke("rxov3xa","r1o544mv",{r:[".rxov3xa{position:absolute;display:block;width:100%;height:100%;-webkit-mask-image:conic-gradient(transparent 105deg, white 105deg);mask-image:conic-gradient(transparent 105deg, white 105deg);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:var(--curveEasyEase);animation-name:r15mim6k;}",'.rxov3xa::before,.rxov3xa::after{content:"";position:absolute;display:block;width:100%;height:100%;animation:inherit;background-image:conic-gradient(currentcolor 135deg, transparent 135deg);}',"@keyframes r15mim6k{0%{transform:rotate(-135deg);}50%{transform:rotate(0deg);}100%{transform:rotate(225deg);}}",".rxov3xa::before{animation-name:r18vhmn8;}","@keyframes r18vhmn8{0%{transform:rotate(0deg);}50%{transform:rotate(105deg);}100%{transform:rotate(0deg);}}",".rxov3xa::after{animation-name:rkgrvoi;}","@keyframes rkgrvoi{0%{transform:rotate(0deg);}50%{transform:rotate(225deg);}100%{transform:rotate(0deg);}}",".r1o544mv{position:absolute;display:block;width:100%;height:100%;-webkit-mask-image:conic-gradient(transparent 105deg, white 105deg);mask-image:conic-gradient(transparent 105deg, white 105deg);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:var(--curveEasyEase);animation-name:r109gmi5;}",'.r1o544mv::before,.r1o544mv::after{content:"";position:absolute;display:block;width:100%;height:100%;animation:inherit;background-image:conic-gradient(currentcolor 135deg, transparent 135deg);}',"@keyframes r109gmi5{0%{transform:rotate(135deg);}50%{transform:rotate(0deg);}100%{transform:rotate(-225deg);}}",".r1o544mv::before{animation-name:r17whflh;}","@keyframes r17whflh{0%{transform:rotate(0deg);}50%{transform:rotate(-105deg);}100%{transform:rotate(0deg);}}",".r1o544mv::after{animation-name:re4odhl;}","@keyframes re4odhl{0%{transform:rotate(0deg);}50%{transform:rotate(-225deg);}100%{transform:rotate(0deg);}}"],s:["@media screen and (prefers-reduced-motion: reduce){.rxov3xa{animation-iteration-count:0;background-image:conic-gradient(transparent 120deg, currentcolor 360deg);}.rxov3xa::before,.rxov3xa::after{content:none;}}","@media screen and (prefers-reduced-motion: reduce){.r1o544mv{animation-iteration-count:0;background-image:conic-gradient(transparent 120deg, currentcolor 360deg);}.r1o544mv::before,.r1o544mv::after{content:none;}}"]}),Wz=ye({inverted:{De3pzq:"fr407j0",sj55zd:"f1f7voed"},rtlTail:{btxmck:"f179dep3",gb5jj2:"fbz9ihp",Bdya8wy:"f1pme1qz"},"extra-tiny":{Bqenvij:"fd461yt",a9b677:"fjw5fx7",qmp6fs:"f1v3ph3m"},tiny:{Bqenvij:"fjamq6b",a9b677:"f64fuq3",qmp6fs:"f1v3ph3m"},"extra-small":{Bqenvij:"frvgh55",a9b677:"fq4mcun",qmp6fs:"f1v3ph3m"},small:{Bqenvij:"fxldao9",a9b677:"f1w9dchk",qmp6fs:"f1v3ph3m"},medium:{Bqenvij:"f1d2rq10",a9b677:"f1szoe96",qmp6fs:"fb52u90"},large:{Bqenvij:"f8ljn23",a9b677:"fpdz1er",qmp6fs:"fb52u90"},"extra-large":{Bqenvij:"fbhnoac",a9b677:"feqmc2u",qmp6fs:"fb52u90"},huge:{Bqenvij:"f1ft4266",a9b677:"fksc0bp",qmp6fs:"fa3u9ii"}},{d:[".fr407j0{background-color:var(--colorNeutralStrokeAlpha2);}",".f1f7voed{color:var(--colorNeutralStrokeOnBrand2);}",".f179dep3{-webkit-mask-image:conic-gradient(white 255deg, transparent 255deg);mask-image:conic-gradient(white 255deg, transparent 255deg);}",".fbz9ihp::before,.fbz9ihp::after{background-image:conic-gradient(transparent 225deg, currentcolor 225deg);}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".f1v3ph3m{--fui-Spinner--strokeWidth:var(--strokeWidthThick);}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxldao9{height:28px;}",".f1w9dchk{width:28px;}",".f1d2rq10{height:32px;}",".f1szoe96{width:32px;}",".fb52u90{--fui-Spinner--strokeWidth:var(--strokeWidthThicker);}",".f8ljn23{height:36px;}",".fpdz1er{width:36px;}",".fbhnoac{height:40px;}",".feqmc2u{width:40px;}",".f1ft4266{height:44px;}",".fksc0bp{width:44px;}",".fa3u9ii{--fui-Spinner--strokeWidth:var(--strokeWidthThickest);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1pme1qz{background-image:conic-gradient(currentcolor 0deg, transparent 240deg);}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),qz=ye({inverted:{sj55zd:"fonrgv7"},"extra-tiny":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},tiny:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},huge:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),Uz=e=>{"use no memo";const{labelPosition:t,size:o,appearance:r}=e,{dir:n}=Dt(),i=Hz(),s=Vz(),l=Gz(),u=Wz(),d=jz(),h=qz();return e.root.className=me(Td.root,i,(t==="above"||t==="below")&&s.vertical,e.root.className),e.spinner&&(e.spinner.className=me(Td.spinner,l,u[o],r==="inverted"&&u.inverted,e.spinner.className)),e.spinnerTail&&(e.spinnerTail.className=me(Td.spinnerTail,d,n==="rtl"&&u.rtlTail,e.spinnerTail.className)),e.label&&(e.label.className=me(Td.label,h[o],r==="inverted"&&h.inverted,e.label.className)),e},qg=y.forwardRef((e,t)=>{const o=Nz(e,t);return Uz(o),dt("useSpinnerStyles_unstable")(o),zz(o)});qg.displayName="Spinner";const $z=(e,t)=>{const{appearance:o="transparent",reserveSelectedTabSpace:r=!0,size:n="medium"}=e,i=Kz(e,t),s=Xz({vertical:i.vertical});return{...i,root:{...i.root,...s},appearance:o,reserveSelectedTabSpace:r,size:n}},Kz=(e,t)=>{const{disabled:o=!1,onTabSelect:r,selectTabOnFocus:n=!1,vertical:i=!1,selectedValue:s,defaultSelectedValue:l,...u}=e,d=y.useRef(null),[h,p]=Co({state:s,defaultState:l,initialState:void 0}),g=y.useRef(void 0),v=y.useRef(void 0);y.useEffect(()=>{v.current=g.current,g.current=h},[h]);const b=Ce((R,P)=>{p(P.value),r?.(R,P)}),C=y.useRef({}),S=Ce(R=>{const P=JSON.stringify(R.value);C.current[P]=R}),k=Ce(R=>{delete C.current[JSON.stringify(R.value)]}),F=y.useCallback(()=>({selectedValue:g.current,previousSelectedValue:v.current,registeredTabs:C.current}),[]);return{components:{root:"div"},root:Xe({ref:Mt(t,d),role:"tablist","aria-orientation":i?"vertical":"horizontal",...u},{elementType:"div"}),disabled:o,selectTabOnFocus:n,selectedValue:h,onRegister:S,onUnregister:k,onSelect:b,getRegisteredTabs:F,vertical:i}},Xz=({vertical:e})=>_l({circular:!0,axis:e?"vertical":"horizontal",memorizeCurrent:!1,unstable_hasDefault:!0}),Zz={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},gx=Ks(void 0),Yz=gx.Provider,Rr=e=>Bl(gx,(t=Zz)=>e(t)),Qz=(e,t)=>he(e.root,{children:he(Yz,{value:t.tabList,children:e.root.children})}),Jz={root:"fui-TabList"},e6=ye({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bnnss6s:"fi64zpg",Eh141a:"flvyvdh",qhf8xq:"f10pi13n"},horizontal:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1063pyq"},vertical:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1vx9l62"},roundedSmall:{i8kkvl:0,Belr9w4:0,rmohyg:"f1eyhf9v"},rounded:{i8kkvl:0,Belr9w4:0,rmohyg:"faqewft"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fi64zpg{flex-shrink:0;}",".flvyvdh{flex-wrap:nowrap;}",".f10pi13n{position:relative;}",".f1q9h2pe{align-items:stretch;}",".f1vx9l62{flex-direction:column;}",[".f1eyhf9v{gap:var(--spacingHorizontalSNudge);}",{p:-1}],[".faqewft{gap:var(--spacingHorizontalS);}",{p:-1}]]}),t6=e=>{"use no memo";const{appearance:t,vertical:o,size:r}=e,n=e6(),i=t==="subtle-circular"||t==="filled-circular";return e.root.className=me(Jz.root,n.root,o?n.vertical:n.horizontal,i&&(r==="small"?n.roundedSmall:n.rounded),e.root.className),e};function o6(e){const{appearance:t,reserveSelectedTabSpace:o,disabled:r,selectTabOnFocus:n,selectedValue:i,onRegister:s,onUnregister:l,onSelect:u,getRegisteredTabs:d,size:h,vertical:p}=e;return{tabList:{appearance:t,reserveSelectedTabSpace:o,disabled:r,selectTabOnFocus:n,selectedValue:i,onSelect:u,onRegister:s,onUnregister:l,getRegisteredTabs:d,size:h,vertical:p}}}const mx=y.forwardRef((e,t)=>{const o=$z(e,t),r=o6(o);return t6(o),dt("useTabListStyles_unstable")(o),Qz(o,r)});mx.displayName="TabList";const r6=(e,t)=>{const{content:o}=e,r=n6(e,t),n=i6(r),i=Rr(d=>d.appearance),s=Rr(d=>d.reserveSelectedTabSpace),l=Rr(d=>{var h;return(h=d.size)!==null&&h!==void 0?h:"medium"}),u=o&&typeof o=="object"?Z_(o,["ref"]):o;return{...r,components:{...r.components,contentReservedSpace:"span"},root:{...r.root,...n},contentReservedSpace:qe(u,{renderByDefault:!r.selected&&!r.iconOnly&&s,defaultProps:{children:e.children},elementType:"span"}),appearance:i,size:l}},n6=(e,t)=>{const{content:o,disabled:r=!1,icon:n,onClick:i,onFocus:s,value:l,...u}=e,d=Rr(O=>O.selectTabOnFocus),h=Rr(O=>O.disabled),p=Rr(O=>O.selectedValue===l),g=Rr(O=>O.onRegister),v=Rr(O=>O.onUnregister),b=Rr(O=>O.onSelect),C=Rr(O=>!!O.vertical),S=h||r,k=y.useRef(null),F=O=>b(O,{value:l}),R=Ce(tt(i,F)),P=Ce(tt(s,F));y.useEffect(()=>(g({value:l,ref:k}),()=>{v({value:l,ref:k})}),[g,v,k,l]);const T=qe(n,{elementType:"span"}),D=Xe(o,{defaultProps:{children:e.children},elementType:"span"}),M=!!(T?.children&&!D.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:Xe({ref:Mt(t,k),role:"tab",type:"button","aria-selected":S?void 0:`${p}`,value:l,...u,disabled:S,onClick:R,onFocus:d?P:s},{elementType:"button"}),icon:T,iconOnly:M,content:D,disabled:S,selected:p,value:l,vertical:C}},i6=({selected:e})=>Al({focusable:{isDefault:e}}),s6=e=>kt(e.root,{children:[e.icon&&he(e.icon,{}),!e.iconOnly&&he(e.content,{}),e.contentReservedSpace&&he(e.contentReservedSpace,{})]}),vx={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},a6=ye({base:{B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg"},animated:{Ba2ppi3:"fhwpy7i",F2fol1:"f6zz20j",B1dyfl9:"f1ai4sc1",Bu93a1u:"f1rnm8gg",Bdasjez:"f1x3cmqg"},horizontal:{sjv3b2:["fug4aj8","f1i5xzg7"],b1kco5:"f1q7ujh"},vertical:{sjv3b2:"f1hqboyk",b1kco5:"f1dxupa6"}},{d:[[".f1gl81tg{overflow:visible;}",{p:-1}],".fhwpy7i::after{transition-property:transform;}",".f6zz20j::after{transition-duration:var(--durationSlow);}",".f1ai4sc1::after{transition-timing-function:var(--curveDecelerateMax);}",".fug4aj8::after{transform-origin:left;}",".f1i5xzg7::after{transform-origin:right;}",".f1q7ujh::after{transform:translateX(var(--fui-Tab__indicator--offset)) scaleX(var(--fui-Tab__indicator--scale));}",".f1hqboyk::after{transform-origin:top;}",".f1dxupa6::after{transform:translateY(var(--fui-Tab__indicator--offset)) scaleY(var(--fui-Tab__indicator--scale));}"],m:[["@media (prefers-reduced-motion: reduce){.f1rnm8gg::after{transition-property:none;}}",{m:"(prefers-reduced-motion: reduce)"}],["@media (prefers-reduced-motion: reduce){.f1x3cmqg::after{transition-duration:0.01ms;}}",{m:"(prefers-reduced-motion: reduce)"}]]}),l6=e=>{if(e){var t;const o=((t=e.parentElement)===null||t===void 0?void 0:t.getBoundingClientRect())||{x:0,y:0},r=e.getBoundingClientRect();return{x:r.x-o.x,y:r.y-o.y,width:r.width,height:r.height}}},bx=(e,t)=>{var o;const r=Ug(t)?(o=e[JSON.stringify(t)])===null||o===void 0?void 0:o.ref.current:void 0;return r?l6(r):void 0},Ug=e=>e!=null,c6=e=>{const{disabled:t,selected:o,vertical:r}=e,n=a6(),[i,s]=y.useState(),[l,u]=y.useState({offset:0,scale:1}),d=Rr(v=>v.getRegisteredTabs),[h]=hI();if(o){const{previousSelectedValue:v,selectedValue:b,registeredTabs:C}=d();if(Ug(v)&&i!==v){const S=bx(C,v),k=bx(C,b);if(k&&S){const F=r?S.y-k.y:S.x-k.x,R=r?S.height/k.height:S.width/k.width;u({offset:F,scale:R}),s(v),h(()=>u({offset:0,scale:1}))}}}else Ug(i)&&s(void 0);if(t)return e;const p=l.offset===0&&l.scale===1;e.root.className=me(e.root.className,o&&n.base,o&&p&&n.animated,o&&(r?n.vertical:n.horizontal));const g={[vx.offsetVar]:`${l.offset}px`,[vx.scaleVar]:`${l.scale}`};return e.root.style={...g,...e.root.style},e},$g={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},u6={content:"fui-Tab__content--reserved-space"},Cx=ye({root:{Bt984gj:"f122n59",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n"},button:{Bt984gj:"f122n59",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",Bahqtrf:"fk6fouc",Bg96gwp:"f1i3iumi",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",B9bfxx9:"f1cxpek8"},horizontal:{Brf1p80:"f4d9j23"},vertical:{Brf1p80:"f1s9ku6b"},smallHorizontal:{i8kkvl:"f14mj54c",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1wmopi4"},smallVertical:{i8kkvl:"f14mj54c",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f12or63q"},mediumHorizontal:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1w08f2p"},mediumVertical:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fymxs25"},largeHorizontal:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1ssfvub"},largeVertical:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fwkd1rq"},transparent:{De3pzq:"f1c21dwh",B95qlz1:"f9rvdkv",B7xitij:"f1051ucx",Bptxc3x:"fmmjozx",Bwqhzpy:"fqhzt5g",iyk698:"f7l5cgy",cl4aha:"fpkze5g",B0q3jbp:"f1iywnoi",Be9ayug:"f9n45c4"},subtle:{De3pzq:"fhovq9v",B95qlz1:"f1bifk9c",B7xitij:"fo6hitd",Bptxc3x:"fmmjozx",Bwqhzpy:"fqhzt5g",iyk698:"f7l5cgy",cl4aha:"fpkze5g",B0q3jbp:"f1iywnoi",Be9ayug:"f9n45c4"},disabledCursor:{Bceei9c:"fdrzuqr"},disabled:{De3pzq:"f1c21dwh",Bptxc3x:"fato7r6",cl4aha:"fao1bnu"},selected:{Bptxc3x:"f1cadz5z",Bwqhzpy:"fwhdxxj",iyk698:"fintccb",cl4aha:"ffplhdr",B0q3jbp:"fjo17wb",Be9ayug:"f148789c"}},{d:[".f122n59{align-items:center;}",".f13qh94s{display:grid;}",".fi64zpg{flex-shrink:0;}",".f1u07yai{grid-auto-flow:column;}",".frn2hmy{grid-template-columns:auto;}",".f1olsevy{grid-template-rows:auto;}",".f1s6fcnf{outline-style:none;}",".f10pi13n{position:relative;}",[".f3bhgqh{border:none;}",{p:-2}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1k6fduh{cursor:pointer;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1cxpek8{text-transform:none;}",".f4d9j23{justify-content:center;}",".f1s9ku6b{justify-content:start;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",[".f1wmopi4{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalSNudge);}",{p:-1}],[".f12or63q{padding:var(--spacingVerticalXXS) var(--spacingHorizontalSNudge);}",{p:-1}],".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",[".f1w08f2p{padding:var(--spacingVerticalM) var(--spacingHorizontalMNudge);}",{p:-1}],[".fymxs25{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalMNudge);}",{p:-1}],[".f1ssfvub{padding:var(--spacingVerticalL) var(--spacingHorizontalMNudge);}",{p:-1}],[".fwkd1rq{padding:var(--spacingVerticalS) var(--spacingHorizontalMNudge);}",{p:-1}],".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f9rvdkv:enabled:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1051ucx:enabled:active{background-color:var(--colorTransparentBackgroundPressed);}",".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}",".fqhzt5g:enabled:hover .fui-Tab__icon{color:var(--colorNeutralForeground2Hover);}",".f7l5cgy:enabled:active .fui-Tab__icon{color:var(--colorNeutralForeground2Pressed);}",".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}",".f1iywnoi:enabled:hover .fui-Tab__content{color:var(--colorNeutralForeground2Hover);}",".f9n45c4:enabled:active .fui-Tab__content{color:var(--colorNeutralForeground2Pressed);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".f1bifk9c:enabled:hover{background-color:var(--colorSubtleBackgroundHover);}",".fo6hitd:enabled:active{background-color:var(--colorSubtleBackgroundPressed);}",".fdrzuqr{cursor:not-allowed;}",".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}",".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}",".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}",".fwhdxxj:enabled:hover .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Hover);}",".fintccb:enabled:active .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Pressed);}",".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}",".fjo17wb:enabled:hover .fui-Tab__content{color:var(--colorNeutralForeground1Hover);}",".f148789c:enabled:active .fui-Tab__content{color:var(--colorNeutralForeground1Pressed);}"]}),d6=ye({base:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fp7rvkm",Bptxc3x:"ftorr8m",cl4aha:"f16lqpmv"},small:{Dbcxam:0,rjzwhg:0,Bblux5w:"fzklhed"},medium:{Dbcxam:0,rjzwhg:0,Bblux5w:"f1j721cc"},large:{Dbcxam:0,rjzwhg:0,Bblux5w:"frx9knr"},subtle:{De3pzq:"fhovq9v",sj55zd:"fkfq4zb",B95qlz1:"f1bifk9c",Eo63ln:0,r9osk6:0,Itrz8y:0,zeg6vx:0,l65xgk:0,Bw4olcx:0,Folb0i:0,I2h8y4:0,Bgxgoyi:0,Bvlkotb:0,Fwyncl:0,Byh5edv:0,Becqvjq:0,uumbiq:0,B73q3dg:0,Bblwbaf:0,B0ezav:"ft57sj0",r4wkhp:"f1fcoy83",B7xitij:"fo6hitd",d3wsvi:0,Hdqn7s:0,zu5y1p:0,owqphb:0,g9c53k:0,Btmu08z:0,Bthxvy6:0,gluvuq:0,tb88gp:0,wns6jk:0,kdfdk4:0,Bbw008l:0,Bayi1ib:0,B1kkfu3:0,J1oqyp:0,kem6az:0,goa3yj:"fhn220o",p743kt:"f15qf7sh",wmvzou:0,sc4o1m:0,wymq9i:0,u9orzk:0,puiv5t:0,Bosien3:0,b2z72d:0,Beulxaw:0,B57pkaw:0,Jcjdmf:0,B8qgbzl:0,Bbmb0sr:0,B14q8qp:0,Bcq6wej:0,Byz1pjr:0,kr9cjb:0,Ff9ifp:"f1mljprk"},subtleSelected:{De3pzq:"f16xkysk",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f1c2pc3t",sj55zd:"faj9fo0",B95qlz1:"fsm7zmf",Eo63ln:0,r9osk6:0,Itrz8y:0,zeg6vx:0,l65xgk:0,Bw4olcx:0,Folb0i:0,I2h8y4:0,Bgxgoyi:0,Bvlkotb:0,Fwyncl:0,Byh5edv:0,Becqvjq:0,uumbiq:0,B73q3dg:0,Bblwbaf:0,B0ezav:"f1wo0sfq",r4wkhp:"f1afuynh",B7xitij:"f94ddyl",d3wsvi:0,Hdqn7s:0,zu5y1p:0,owqphb:0,g9c53k:0,Btmu08z:0,Bthxvy6:0,gluvuq:0,tb88gp:0,wns6jk:0,kdfdk4:0,Bbw008l:0,Bayi1ib:0,B1kkfu3:0,J1oqyp:0,kem6az:0,goa3yj:"fmle6oo",p743kt:"f1d3itm4",wmvzou:0,sc4o1m:0,wymq9i:0,u9orzk:0,puiv5t:0,Bosien3:0,b2z72d:0,Beulxaw:0,B57pkaw:0,Jcjdmf:0,B8qgbzl:0,Bbmb0sr:0,B14q8qp:0,Bcq6wej:0,Byz1pjr:0,kr9cjb:0,Ff9ifp:"f1e9l2u"},subtleDisabled:{De3pzq:"fhovq9v",sj55zd:"f1s2aq7o"},subtleDisabledSelected:{De3pzq:"f1bg9a2p",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fegtqic",sj55zd:"f1s2aq7o"},filled:{De3pzq:"f16xq7d1",sj55zd:"fkfq4zb",B95qlz1:"fwwxidx",r4wkhp:"f1fcoy83",B7xitij:"f14i52sd",p743kt:"f15qf7sh",Hhssn:"f1cpi5f4",uaurb9:"f6pj1s0",B401qx7:"f12sz5kj",Buyp1jb:"f17588c3",gsp74p:"fnthgdt"},filledSelected:{De3pzq:"ffp7eso",sj55zd:"f1phragk",B95qlz1:"f1lm9dni",r4wkhp:"f1mn5ei1",B7xitij:"f1g6ncd0",p743kt:"fl71aob",Gedr8k:"f14zl92z",Bm69vlq:"f16zy3eu",Bodipah:"f1gdgb7p",B5kpen0:"f1tua9ng"},filledDisabled:{De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o"},filledDisabledSelected:{De3pzq:"f1bg9a2p",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fegtqic",sj55zd:"f1s2aq7o"}},{d:[[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".fp7rvkm{border:solid var(--strokeWidthThin) var(--colorTransparentStroke);}",{p:-2}],".ftorr8m .fui-Tab__icon{color:inherit;}",".f16lqpmv .fui-Tab__content{color:inherit;}",[".fzklhed{padding-block:calc(var(--spacingVerticalXXS) - var(--strokeWidthThin));}",{p:-1}],[".f1j721cc{padding-block:calc(var(--spacingVerticalSNudge) - var(--strokeWidthThin));}",{p:-1}],[".frx9knr{padding-block:calc(var(--spacingVerticalS) - var(--strokeWidthThin));}",{p:-1}],".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1bifk9c:enabled:hover{background-color:var(--colorSubtleBackgroundHover);}",[".ft57sj0:enabled:hover{border:solid var(--strokeWidthThin) var(--colorNeutralStroke1Hover);}",{p:-2}],".f1fcoy83:enabled:hover{color:var(--colorNeutralForeground2Hover);}",".fo6hitd:enabled:active{background-color:var(--colorSubtleBackgroundPressed);}",[".fhn220o:enabled:active{border:solid var(--strokeWidthThin) var(--colorNeutralStroke1Pressed);}",{p:-2}],".f15qf7sh:enabled:active{color:var(--colorNeutralForeground2Pressed);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",[".f1c2pc3t{border:solid var(--strokeWidthThin) var(--colorCompoundBrandStroke);}",{p:-2}],".faj9fo0{color:var(--colorBrandForeground2);}",".fsm7zmf:enabled:hover{background-color:var(--colorBrandBackground2Hover);}",[".f1wo0sfq:enabled:hover{border:solid var(--strokeWidthThin) var(--colorCompoundBrandStrokeHover);}",{p:-2}],".f1afuynh:enabled:hover{color:var(--colorBrandForeground2Hover);}",".f94ddyl:enabled:active{background-color:var(--colorBrandBackground2Pressed);}",[".fmle6oo:enabled:active{border:solid var(--strokeWidthThin) var(--colorCompoundBrandStrokePressed);}",{p:-2}],".f1d3itm4:enabled:active{color:var(--colorBrandForeground2Pressed);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",[".fegtqic{border:solid var(--strokeWidthThin) var(--colorNeutralStrokeDisabled);}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fwwxidx:enabled:hover{background-color:var(--colorNeutralBackground3Hover);}",".f14i52sd:enabled:active{background-color:var(--colorNeutralBackground3Pressed);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".f1lm9dni:enabled:hover{background-color:var(--colorBrandBackgroundHover);}",".f1mn5ei1:enabled:hover{color:var(--colorNeutralForegroundOnBrand);}",".f1g6ncd0:enabled:active{background-color:var(--colorBrandBackgroundPressed);}",".fl71aob:enabled:active{color:var(--colorNeutralForegroundOnBrand);}",[".fegtqic{border:solid var(--strokeWidthThin) var(--colorNeutralStrokeDisabled);}",{p:-2}]],m:[["@media (forced-colors: active){.f1mljprk{border:solid var(--strokeWidthThin) Canvas;}}",{p:-2,m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1e9l2u{border:solid var(--strokeWidthThin) Highlight;}}",{p:-2,m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cpi5f4:enabled:hover{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f6pj1s0:enabled:hover{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f12sz5kj:enabled:hover .fui-Tab__content{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f17588c3:enabled:hover .fui-Icon-filled{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnthgdt:enabled:hover .fui-Icon-regular{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14zl92z:enabled{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16zy3eu:enabled .fui-Tab__content{color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1gdgb7p:enabled .fui-Tab__content{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tua9ng:enabled .fui-Tab__icon{color:ButtonFace;}}",{m:"(forced-colors: active)"}]]}),h6=ye({base:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fqa318h","fqa318h"],Bhxq17a:"f1vjpng2"},circular:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fzgyhws","fqxug60"],Bhxq17a:"f1vjpng2"}},{d:[".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",".f1p7hgxw[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);}",".f1way5bb[data-fui-focus-visible]{outline-color:transparent;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqa318h[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2);}",".f1vjpng2[data-fui-focus-visible]{z-index:1;}",".fzgyhws[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2),0 0 0 var(--strokeWidthThin) var(--colorNeutralStrokeOnBrand) inset;}",".fqxug60[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2),0 0 0 var(--strokeWidthThin) var(--colorNeutralStrokeOnBrand) inset;}"]}),f6=ye({base:{az7l2e:"fhw179n",vqofr:0,Bv4n3vi:0,Bgqb9hq:0,B0uxbk8:0,Bf3jju6:"fg9j5n4",amg5m6:"f1kmhr4c",zkfqfm:"fl1ydde",Bkydozb:"f1y7maxz",Bka2azo:0,vzq8l0:0,csmgbd:0,Br4ovkg:0,aelrif:"fceyvr4",y36c18:"f16cxu0",B1ctymy:"f1nwgacf",xzc5d:"fm6alxz",h5yqg8:"fhx32z1"},disabled:{az7l2e:"f1ut20fw",Bkydozb:"fhrzcfn",xzc5d:"fw15awd",h5yqg8:"faqmq51"},smallHorizontal:{lawp4y:"fchca7p",Baz25je:"f1r53b5e",Fbdkly:["f1s6rxz5","fo35v8s"],mdwyqc:["fo35v8s","f1s6rxz5"]},smallVertical:{lawp4y:"fze4zud",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"fdp32p8",Ccq8qp:"f1aij3q"},mediumHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},mediumVertical:{lawp4y:"f17jracn",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f117lcb2",Ccq8qp:"f1aij3q"},largeHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},largeVertical:{lawp4y:"fel9d3z",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f6vqlre",Ccq8qp:"f1aij3q"}},{h:[".fhw179n:hover::before{background-color:var(--colorNeutralStroke1Hover);}",[".fg9j5n4:hover::before{border-radius:var(--borderRadiusCircular);}",{p:-1}],'.f1kmhr4c:hover::before{content:"";}',".fl1ydde:hover::before{position:absolute;}",".f1ut20fw:hover::before{background-color:var(--colorTransparentStroke);}"],a:[".f1y7maxz:active::before{background-color:var(--colorNeutralStroke1Pressed);}",[".fceyvr4:active::before{border-radius:var(--borderRadiusCircular);}",{p:-1}],'.f16cxu0:active::before{content:"";}',".f1nwgacf:active::before{position:absolute;}",".fhrzcfn:active::before{background-color:var(--colorTransparentStroke);}"],m:[["@media (forced-colors: active){.fm6alxz:hover::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fhx32z1:active::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fw15awd:hover::before{background-color:transparent;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.faqmq51:active::before{background-color:transparent;}}",{m:"(forced-colors: active)"}]],d:[".fchca7p::before{bottom:0;}",".f1r53b5e::before{height:var(--strokeWidthThick);}",".f1s6rxz5::before{left:var(--spacingHorizontalSNudge);}",".fo35v8s::before{right:var(--spacingHorizontalSNudge);}",".fze4zud::before{bottom:var(--spacingVerticalXS);}",".f1fzr1x6::before{left:0;}",".f1f351id::before{right:0;}",".fdp32p8::before{top:var(--spacingVerticalXS);}",".f1aij3q::before{width:var(--strokeWidthThicker);}",".f1s2r9ax::before{height:var(--strokeWidthThicker);}",".f1o0nnkk::before{left:var(--spacingHorizontalM);}",".fxb7rol::before{right:var(--spacingHorizontalM);}",".f17jracn::before{bottom:var(--spacingVerticalS);}",".f117lcb2::before{top:var(--spacingVerticalS);}",".fel9d3z::before{bottom:var(--spacingVerticalMNudge);}",".f6vqlre::before{top:var(--spacingVerticalMNudge);}"]}),p6=ye({base:{Bjyk6c5:"f1rp0jgh",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"f3b9emi",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9"},selected:{Bjyk6c5:"f1ksivud",Bej4dhw:"f1476jrx",B7wqxwa:"f18q216b",Hwb57:"f1wf6u82",Beg08s0:"f1xwit7m",Bo27r1v:"f1ksfgwi"},disabled:{Bjyk6c5:"f13lkzet"},smallHorizontal:{By385i5:"fo72kxq",Dlnsje:"f9bb2ob",Eqx8gd:["f1q70ajw","f18rbzdx"],B1piin3:["f18rbzdx","f1q70ajw"]},smallVertical:{By385i5:"fqbue9b",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fk1klkt",a2br6o:"f1o25lip"},mediumHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},mediumVertical:{By385i5:"fipylg0",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fqchiol",a2br6o:"f1o25lip"},largeHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},largeVertical:{By385i5:"f1w7dm5g",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"f1p6em4m",a2br6o:"f1o25lip"}},{d:[".f1rp0jgh::after{background-color:var(--colorTransparentStroke);}",[".f3b9emi::after{border-radius:var(--borderRadiusCircular);}",{p:-1}],'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}",".f1476jrx:enabled:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}",".f18q216b:enabled:active::after{background-color:var(--colorCompoundBrandStrokePressed);}",".f13lkzet::after{background-color:var(--colorNeutralForegroundDisabled);}",".fo72kxq::after{bottom:0;}",".f9bb2ob::after{height:var(--strokeWidthThick);}",".f1q70ajw::after{left:var(--spacingHorizontalSNudge);}",".f18rbzdx::after{right:var(--spacingHorizontalSNudge);}",".fqbue9b::after{bottom:var(--spacingVerticalXS);}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fk1klkt::after{top:var(--spacingVerticalXS);}",".f1o25lip::after{width:var(--strokeWidthThicker);}",".f1vx7lu8::after{height:var(--strokeWidthThicker);}",".fna7m5n::after{left:var(--spacingHorizontalM);}",".f1oxpfwv::after{right:var(--spacingHorizontalM);}",".fipylg0::after{bottom:var(--spacingVerticalS);}",".fqchiol::after{top:var(--spacingVerticalS);}",".f1w7dm5g::after{bottom:var(--spacingVerticalMNudge);}",".f1p6em4m::after{top:var(--spacingVerticalMNudge);}"],m:[["@media (forced-colors: active){.f1wf6u82::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1xwit7m:enabled:hover::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ksfgwi:enabled:active::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}]]}),g6=ye({base:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94",Bt984gj:"f122n59",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",D0sxk3:"f16u1re",t6yez3:"f8bsbmo"},small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},medium:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun"},selected:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"}},{d:[".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".f4d9j23{justify-content:center;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f16u1re .fui-Icon-filled{display:none;}",".f8bsbmo .fui-Icon-regular{display:inline;}",".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}"]}),m6=ye({base:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1bwptpd"},selected:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"},largeSelected:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},noIconBefore:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94"},iconBefore:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},placeholder:{Bcdw1i0:"fd7fpy0"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".f1bwptpd{padding:var(--spacingVerticalNone) var(--spacingHorizontalXXS);}",{p:-1}],".fl43uef{font-weight:var(--fontWeightSemibold);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".fd46tj4{grid-column-start:2;}",".fd7fpy0{visibility:hidden;}"]}),v6=e=>{"use no memo";return b6(e),C6(e,e.root),w6(e),e},b6=e=>{"use no memo";const t=Cx(),o=f6(),r=p6(),{appearance:n,disabled:i,selected:s,size:l,vertical:u}=e,d=[$g.root,t.root];return n!=="subtle-circular"&&n!=="filled-circular"&&d.push(o.base,l==="small"&&(u?o.smallVertical:o.smallHorizontal),l==="medium"&&(u?o.mediumVertical:o.mediumHorizontal),l==="large"&&(u?o.largeVertical:o.largeHorizontal),i&&o.disabled,s&&r.base,s&&!i&&r.selected,s&&l==="small"&&(u?r.smallVertical:r.smallHorizontal),s&&l==="medium"&&(u?r.mediumVertical:r.mediumHorizontal),s&&l==="large"&&(u?r.largeVertical:r.largeHorizontal),s&&i&&r.disabled),e.root.className=me(...d,e.root.className),c6(e),e},C6=(e,t)=>{"use no memo";const o=Cx(),r=h6(),n=d6(),{appearance:i,disabled:s,selected:l,size:u,vertical:d}=e,h=i==="subtle-circular",p=i==="filled-circular",g=h||p,v=[n.base,r.circular,u==="small"&&n.small,u==="medium"&&n.medium,u==="large"&&n.large,h&&n.subtle,l&&h&&n.subtleSelected,s&&h&&n.subtleDisabled,l&&s&&h&&n.subtleDisabledSelected,p&&n.filled,l&&p&&n.filledSelected,s&&p&&n.filledDisabled,l&&s&&p&&n.filledDisabledSelected],b=[r.base,!s&&i==="subtle"&&o.subtle,!s&&i==="transparent"&&o.transparent,!s&&l&&o.selected,s&&o.disabled];return t.className=me(o.button,d?o.vertical:o.horizontal,u==="small"&&(d?o.smallVertical:o.smallHorizontal),u==="medium"&&(d?o.mediumVertical:o.mediumHorizontal),u==="large"&&(d?o.largeVertical:o.largeHorizontal),...g?v:b,s&&o.disabledCursor,t.className),e},w6=e=>{"use no memo";const t=g6(),o=m6(),{selected:r,size:n}=e;return e.icon&&(e.icon.className=me($g.icon,t.base,t[n],r&&t.selected,e.icon.className)),e.contentReservedSpace&&(e.contentReservedSpace.className=me(u6.content,o.base,n==="large"?o.largeSelected:o.selected,e.icon?o.iconBefore:o.noIconBefore,o.placeholder,e.content.className),e.contentReservedSpaceClassName=e.contentReservedSpace.className),e.content.className=me($g.content,o.base,n==="large"&&o.large,r&&(n==="large"?o.largeSelected:o.selected),e.icon?o.iconBefore:o.noIconBefore,e.content.className),e},Dd=y.forwardRef((e,t)=>{const o=r6(e,t);return v6(o),dt("useTabStyles_unstable")(o),s6(o)});Dd.displayName="Tab";const y6=Ke("r6pzz3z",null,[".r6pzz3z{overflow-y:hidden;overflow-y:clip;scrollbar-gutter:stable;}"]),S6=Ke("r144vlu9",null,[".r144vlu9{overflow-y:hidden;}"]);function x6(){const e=y6(),t=S6(),{targetDocument:o}=Dt(),r=y.useCallback(()=>{var i;if(!o)return;var s;Math.floor(o.body.getBoundingClientRect().height)>((s=(i=o.defaultView)===null||i===void 0?void 0:i.innerHeight)!==null&&s!==void 0?s:0)&&(o.documentElement.classList.add(e),o.body.classList.add(t))},[o,e,t]),n=y.useCallback(()=>{o&&(o.documentElement.classList.remove(e),o.body.classList.remove(t))},[o,e,t]);return{disableBodyScroll:r,enableBodyScroll:n}}function k6(e,t){const{findFirstFocusable:o}=gg(),{targetDocument:r}=Dt(),n=y.useRef(null);return y.useEffect(()=>{if(!e)return;const i=n.current&&o(n.current);if(i)i.focus();else{var s;(s=n.current)===null||s===void 0||s.focus()}},[o,e,t,r]),n}const F6={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,unmountOnClose:!0,dialogRef:{current:null},requestOpenChange(){}},Kg=Ks(void 0),R6=Kg.Provider,Pr=e=>Bl(Kg,(t=F6)=>e(t)),P6=!1,wx=y.createContext(void 0),yx=wx.Provider,E6=()=>{var e;return(e=y.useContext(wx))!==null&&e!==void 0?e:P6},Sx=Ol(Pg,{outScale:.85,easing:Wt.curveDecelerateMid,duration:Wt.durationGentle,exitEasing:Wt.curveAccelerateMin,exitDuration:Wt.durationGentle}),T6=e=>{const{children:t,modalType:o="modal",onOpenChange:r,inertTrapFocus:n=!1,unmountOnClose:i=!0}=e,s=Oo("dialog-title-"),[l,u]=D6(t),[d,h]=Co({state:e.open,defaultState:e.defaultOpen,initialState:!1}),p=Ce(S=>{r?.(S.event,S),S.event.isDefaultPrevented()||h(S.open)}),g=k6(d,o),{modalAttributes:v,triggerAttributes:b}=s1({trapFocus:o!=="non-modal",legacyTrapFocus:!n}),C=yg(Kg);return{components:{surfaceMotion:Sx},inertTrapFocus:n,open:d,modalType:o,content:u,trigger:l,requestOpenChange:p,dialogTitleId:s,isNestedDialog:C,unmountOnClose:i,dialogRef:g,modalAttributes:v,triggerAttributes:b,surfaceMotion:gS(e.surfaceMotion,{elementType:Sx,defaultProps:{visible:d,appear:i,unmountOnExit:i}})}};function D6(e){const t=y.Children.toArray(e);switch(t.length){case 2:return t;case 1:return[void 0,t[0]];default:return[void 0,void 0]}}const xx=y.createContext(void 0);function M6(){return y.useContext(xx)}const A6=y.forwardRef((e,t)=>y.createElement(xx.Provider,{value:t},e.children)),_6=(e,t)=>he(R6,{value:t.dialog,children:kt(yx,{value:t.dialogSurface,children:[e.trigger,e.content&&he(e.surfaceMotion,{children:he(A6,{children:e.content})})]})});function I6(e){const{modalType:t,open:o,dialogRef:r,dialogTitleId:n,isNestedDialog:i,inertTrapFocus:s,requestOpenChange:l,modalAttributes:u,triggerAttributes:d,unmountOnClose:h}=e;return{dialog:{open:o,modalType:t,dialogRef:r,dialogTitleId:n,isNestedDialog:i,inertTrapFocus:s,modalAttributes:u,triggerAttributes:d,unmountOnClose:h,requestOpenChange:l},dialogSurface:!1}}const Md=y.memo(e=>{const t=T6(e),o=I6(t);return _6(t,o)});Md.displayName="Dialog";const B6=e=>{const t=E6(),{children:o,disableButtonEnhancement:r=!1,action:n=t?"close":"open"}=e,i=Jp(o),s=Pr(p=>p.requestOpenChange),{triggerAttributes:l}=s1(),u=Ce(p=>{var g,v;i==null||(g=(v=i.props).onClick)===null||g===void 0||g.call(v,p),p.isDefaultPrevented()||s({event:p,type:"triggerClick",open:n==="open"})}),d={...i?.props,ref:Qp(i),onClick:u,...l},h=M1(i?.type==="button"||i?.type==="a"?i.type:"div",{...d,type:"button"});return{children:by(o,r?d:h)}},O6=e=>e.children,ql=e=>{const t=B6(e);return O6(t)};ql.displayName="DialogTrigger",ql.isFluentTriggerComponent=!0;const L6=(e,t)=>{const{position:o="end",fluid:r=!1}=e;return{components:{root:"div"},root:Xe(Lt("div",{ref:t,...e}),{elementType:"div"}),position:o,fluid:r}},N6=e=>he(e.root,{}),z6={root:"fui-DialogActions"},H6=Ke("rhfpeu0",null,{r:[".rhfpeu0{gap:8px;height:fit-content;box-sizing:border-box;display:flex;grid-row-start:3;grid-row-end:3;}"],s:["@media screen and (max-width: 480px){.rhfpeu0{flex-direction:column;justify-self:stretch;}}"]}),V6=ye({gridPositionEnd:{Bdqf98w:"f1a7i8kp",Br312pm:"fd46tj4",Bw0ie65:"fsyjsko",Btsd7tp:"f1n00o3b",ufxxby:"f1mvsp37",Bq5p579:"flbz1vp"},gridPositionStart:{Bdqf98w:"fsxvdwy",Br312pm:"fwpfdsa",Bw0ie65:"f1e2fz10",Ew0qkd:"f119phc2",ufxxby:"f1j719yo",Bq5p579:"flbz1vp"},fluidStart:{Bw0ie65:"fsyjsko"},fluidEnd:{Br312pm:"fwpfdsa"}},{d:[".f1a7i8kp{justify-self:end;}",".fd46tj4{grid-column-start:2;}",".fsyjsko{grid-column-end:4;}",".fsxvdwy{justify-self:start;}",".fwpfdsa{grid-column-start:1;}",".f1e2fz10{grid-column-end:2;}"],m:[["@media screen and (max-width: 480px){.f1n00o3b{grid-column-start:1;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1mvsp37{grid-row-start:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.flbz1vp{grid-row-end:auto;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f119phc2{grid-column-end:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1j719yo{grid-row-start:3;}}",{m:"screen and (max-width: 480px)"}]]}),G6=e=>{"use no memo";const t=H6(),o=V6();return e.root.className=me(z6.root,t,e.position==="start"&&o.gridPositionStart,e.position==="end"&&o.gridPositionEnd,e.fluid&&e.position==="start"&&o.fluidStart,e.fluid&&e.position==="end"&&o.fluidEnd,e.root.className),e},Ad=y.forwardRef((e,t)=>{const o=L6(e,t);return G6(o),dt("useDialogActionsStyles_unstable")(o),N6(o)});Ad.displayName="DialogActions";const j6=(e,t)=>{var o;return{components:{root:"div"},root:Xe(Lt((o=e.as)!==null&&o!==void 0?o:"div",{ref:t,...e}),{elementType:"div"})}},W6=e=>he(e.root,{}),q6={root:"fui-DialogBody"},U6=Ke("rhwx3p8",null,{r:[".rhwx3p8{overflow:unset;gap:8px;display:grid;max-height:calc(100vh - 2 * 24px);max-height:calc(100dvh - 2 * 24px);box-sizing:border-box;grid-template-rows:auto 1fr;grid-template-columns:1fr 1fr auto;}"],s:["@media screen and (max-width: 480px){.rhwx3p8{max-width:100vw;grid-template-rows:auto 1fr auto;}}","@media screen and (max-height: 359px){.rhwx3p8{max-height:unset;}}"]}),$6=e=>{"use no memo";const t=U6();return e.root.className=me(q6.root,t,e.root.className),e},_d=y.forwardRef((e,t)=>{const o=j6(e,t);return $6(o),dt("useDialogBodyStyles_unstable")(o),W6(o)});_d.displayName="DialogBody";const kx={root:"fui-DialogTitle",action:"fui-DialogTitle__action"},K6=Ke("rxjm636",null,[".rxjm636{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}"]),X6=ye({rootWithoutAction:{Bw0ie65:"fsyjsko"}},{d:[".fsyjsko{grid-column-end:4;}"]}),Z6=Ke("r13kcrze",null,[".r13kcrze{grid-row-start:1;grid-row-end:1;grid-column-start:3;justify-self:end;align-self:start;}"]),Y6=Ke("r2avt6e","roj2bbc",{r:[".r2avt6e{overflow:visible;padding:0;border-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".r2avt6e:focus{outline-style:none;}",".r2avt6e:focus-visible{outline-style:none;}",".r2avt6e[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r2avt6e[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".roj2bbc{overflow:visible;padding:0;border-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".roj2bbc:focus{outline-style:none;}",".roj2bbc:focus-visible{outline-style:none;}",".roj2bbc[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.roj2bbc[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r2avt6e[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.roj2bbc[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),Q6=e=>{"use no memo";const t=K6(),o=Z6(),r=X6();return e.root.className=me(kx.root,t,!e.action&&r.rootWithoutAction,e.root.className),e.action&&(e.action.className=me(kx.action,o,e.action.className)),e},J6=(e,t)=>{const{action:o}=e,r=Pr(i=>i.modalType),n=Y6();return{components:{root:"h2",action:"div"},root:Xe(Lt("h2",{ref:t,id:Pr(i=>i.dialogTitleId),...e}),{elementType:"h2"}),action:qe(o,{renderByDefault:r==="non-modal",defaultProps:{children:y.createElement(ql,{disableButtonEnhancement:!0,action:"close"},y.createElement("button",{type:"button",className:n,"aria-label":"close"},y.createElement(kL,null)))},elementType:"div"})}},eH=e=>kt(y.Fragment,{children:[he(e.root,{children:e.root.children}),e.action&&he(e.action,{})]}),Id=y.forwardRef((e,t)=>{const o=J6(e,t);return Q6(o),dt("useDialogTitleStyles_unstable")(o),eH(o)});Id.displayName="DialogTitle";const Fx=OL,tH=(e,t)=>{const o=M6(),r=Pr(S=>S.modalType),n=Pr(S=>S.isNestedDialog),i=Pr(S=>S.modalAttributes),s=Pr(S=>S.dialogRef),l=Pr(S=>S.requestOpenChange),u=Pr(S=>S.dialogTitleId),d=Pr(S=>S.open),h=Pr(S=>S.unmountOnClose),p=Ce(S=>{if(Kp(e.backdrop)){var k,F;(k=(F=e.backdrop).onClick)===null||k===void 0||k.call(F,S)}r==="modal"&&!S.isDefaultPrevented()&&l({event:S,open:!1,type:"backdropClick"})}),g=Ce(S=>{var k;(k=e.onKeyDown)===null||k===void 0||k.call(e,S),S.key===xg&&!S.isDefaultPrevented()&&(l({event:S,open:!1,type:"escapeKeyDown"}),S.preventDefault())}),v=qe(e.backdrop,{renderByDefault:r!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"});v&&(v.onClick=p);const{disableBodyScroll:b,enableBodyScroll:C}=x6();return oo(()=>{if(!d){C();return}if(!(n||r==="non-modal"))return b(),()=>C()},[d,r,n,b,C]),{components:{backdrop:"div",root:"div",backdropMotion:Fx},open:d,backdrop:v,isNestedDialog:n,unmountOnClose:h,mountNode:e.mountNode,root:Xe(Lt("div",{tabIndex:-1,role:r==="alert"?"alertdialog":"dialog","aria-modal":r!=="non-modal","aria-labelledby":e["aria-label"]?void 0:u,"aria-hidden":!h&&!d?!0:void 0,...e,...i,onKeyDown:g,ref:Mt(t,o,s)}),{elementType:"div"}),backdropMotion:gS(e.backdropMotion,{elementType:Fx,defaultProps:{appear:h,visible:d}}),transitionStatus:void 0}},oH=(e,t)=>kt(yd,{mountNode:e.mountNode,children:[e.backdrop&&e.backdropMotion&&he(e.backdropMotion,{children:he(e.backdrop,{})}),he(yx,{value:t.dialogSurface,children:he(e.root,{})})]}),Rx={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},rH=Ke("r1u3t6p6","r5coedp",{r:[".r1u3t6p6{inset:0;padding:24px;margin:auto;border-style:none;overflow:unset;border:1px solid var(--colorTransparentStroke);border-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;max-height:100dvh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);box-shadow:var(--shadow64);}",".r1u3t6p6:focus{outline-style:none;}",".r1u3t6p6:focus-visible{outline-style:none;}",".r1u3t6p6[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1u3t6p6[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r5coedp{inset:0;padding:24px;margin:auto;border-style:none;overflow:unset;border:1px solid var(--colorTransparentStroke);border-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;max-height:100dvh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);box-shadow:var(--shadow64);}",".r5coedp:focus{outline-style:none;}",".r5coedp:focus-visible{outline-style:none;}",".r5coedp[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r5coedp[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1u3t6p6[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media screen and (max-width: 480px){.r1u3t6p6{max-width:100vw;}}","@media screen and (max-height: 359px){.r1u3t6p6{overflow-y:auto;padding-right:calc(24px - 4px);border-right-width:4px;border-top-width:4px;border-bottom-width:4px;}}","@media (forced-colors: active){.r5coedp[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}","@media screen and (max-width: 480px){.r5coedp{max-width:100vw;}}","@media screen and (max-height: 359px){.r5coedp{overflow-y:auto;padding-left:calc(24px - 4px);border-left-width:4px;border-top-width:4px;border-bottom-width:4px;}}"]}),nH=Ke("r1e18s3l",null,[".r1e18s3l{inset:0px;background-color:var(--colorBackgroundOverlay);position:fixed;}"]),iH=ye({nestedDialogBackdrop:{De3pzq:"f1c21dwh"},dialogHidden:{Bkecrkj:"f1aehjj5"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1aehjj5{pointer-events:none;}"]}),sH=e=>{"use no memo";const{isNestedDialog:t,root:o,backdrop:r,open:n,unmountOnClose:i}=e,s=rH(),l=nH(),u=iH(),d=!i&&!n;return o.className=me(Rx.root,s,d&&u.dialogHidden,o.className),r&&(r.className=me(Rx.backdrop,l,t&&u.nestedDialogBackdrop,d&&u.dialogHidden,r.className)),e};function aH(e){return{dialogSurface:!0}}const Bd=y.forwardRef((e,t)=>{const o=tH(e,t),r=aH();return sH(o),dt("useDialogSurfaceStyles_unstable")(o),oH(o,r)});Bd.displayName="DialogSurface";const lH=(e,t)=>{var o;return{components:{root:"div"},root:Xe(Lt((o=e.as)!==null&&o!==void 0?o:"div",{ref:t,...e}),{elementType:"div"})}},cH=e=>he(e.root,{}),uH={root:"fui-DialogContent"},dH=Ke("r1v5zwsm",null,{r:[".r1v5zwsm{padding:var(--strokeWidthThick);margin:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}"],s:["@media screen and (max-height: 359px){.r1v5zwsm{overflow-y:unset;}}"]}),hH=e=>{"use no memo";const t=dH();return e.root.className=me(uH.root,t,e.root.className),e},Od=y.forwardRef((e,t)=>{const o=lH(e,t);return hH(o),dt("useDialogContentStyles_unstable")(o),cH(o)});Od.displayName="DialogContent";const Px=Ks(void 0),fH={size:"medium",handleToggleButton:()=>null,handleRadio:()=>null,vertical:!1,checkedValues:{}},pH=e=>Bl(Px,(t=fH)=>e(t)),gH=(e,t)=>{const{size:o="medium"}=e,r=mH(e,t),n=bH();return{size:o,...r,root:{...r.root,...n}}},mH=(e,t)=>{const{vertical:o=!1}=e,r={vertical:o,components:{root:"div"},root:Xe(Lt("div",{role:"toolbar",ref:t,...o&&{"aria-orientation":"vertical"},...e}),{elementType:"div"})},[n,i]=vH({checkedValues:e.checkedValues,defaultCheckedValues:e.defaultCheckedValues,onCheckedValueChange:e.onCheckedValueChange}),s=Ce((u,d,h,p)=>{if(d&&h){const v=[...n?.[d]||[]];p?v.splice(v.indexOf(h),1):v.push(h),i?.(u,{name:d,checkedItems:v})}}),l=Ce((u,d,h,p)=>{d&&h&&i?.(u,{name:d,checkedItems:[h]})});return{...r,handleToggleButton:s,handleRadio:l,checkedValues:n??{}}},vH=e=>{const[t,o]=Co({state:e.checkedValues,defaultState:e.defaultCheckedValues,initialState:{}}),{onCheckedValueChange:r}=e,n=Ce((i,{name:s,checkedItems:l})=>{r&&r(i,{name:s,checkedItems:l}),o(u=>u?{...u,[s]:l}:{[s]:l})});return[t,n]},bH=()=>_l({circular:!0,axis:"both"}),CH=(e,t)=>he(Px.Provider,{value:t.toolbar,children:he(e.root,{children:e.root.children})}),wH={root:"fui-Toolbar"},yH=ye({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1yqiaad"},vertical:{Beiy3e4:"f1vx9l62",a9b677:"f1acs6jw"},small:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fvz760z"},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1yqiaad"},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1ms6bdn"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",[".f1yqiaad{padding:4px 8px;}",{p:-1}],".f1vx9l62{flex-direction:column;}",".f1acs6jw{width:fit-content;}",[".fvz760z{padding:0px 4px;}",{p:-1}],[".f1yqiaad{padding:4px 8px;}",{p:-1}],[".f1ms6bdn{padding:4px 20px;}",{p:-1}]]}),SH=e=>{"use no memo";const t=yH(),{vertical:o,size:r}=e;return e.root.className=me(wH.root,t.root,o&&t.vertical,r==="small"&&!o&&t.small,r==="medium"&&!o&&t.medium,r==="large"&&!o&&t.large,e.root.className),e};function xH(e){const{size:t,handleToggleButton:o,vertical:r,checkedValues:n,handleRadio:i}=e;return{toolbar:{size:t,vertical:r,handleToggleButton:o,handleRadio:i,checkedValues:n}}}const Ex=y.forwardRef((e,t)=>{const o=gH(e,t),r=xH(o);return SH(o),dt("useToolbarStyles_unstable")(o),CH(o,r)});Ex.displayName="Toolbar";const kH=(e,t)=>FH(e,t),FH=(e,t)=>{const o=pH(r=>r.vertical);return{components:{root:"div"},root:Xe(Lt("div",{ref:t,role:"presentation",...e}),{elementType:"div"}),vertical:o}},RH={root:"fui-ToolbarGroup"},PH=ye({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59"},vertical:{Beiy3e4:"f1vx9l62",a9b677:"f1acs6jw"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f1vx9l62{flex-direction:column;}",".f1acs6jw{width:fit-content;}"]}),EH=e=>{"use no memo";const{vertical:t}=e,o=PH();return e.root.className=me(RH.root,o.root,t&&o.vertical,e.root.className),e},TH=e=>he(e.root,{children:e.root.children}),Xg=y.forwardRef((e,t)=>{const o=kH(e,t);return EH(o),dt("useToolbarGroupStyles_unstable")(o),TH(o)});Xg.displayName="ToolbarGroup";const Tx=y.createContext(void 0),DH={handleTagDismiss:()=>({}),size:"medium",role:"toolbar",handleTagSelect:void 0},MH=Tx.Provider,AH=()=>{var e;return(e=y.useContext(Tx))!==null&&e!==void 0?e:DH},_H={medium:28,small:20,"extra-small":16},IH={rounded:"square",circular:"circular"},BH=(e,t)=>{const{handleTagDismiss:o,size:r,disabled:n,appearance:i,dismissible:s,role:l}=AH(),u=Oo("fui-Tag",e.id),{appearance:d=i??"filled",disabled:h=!1,dismissible:p=s??!1,selected:g,shape:v="rounded",size:b=r,value:C=u}=e,S=Ce(T=>{var D;(D=e.onClick)===null||D===void 0||D.call(e,T),T.defaultPrevented||o?.(T,{value:C})}),k=Ce(T=>{var D;e==null||(D=e.onKeyDown)===null||D===void 0||D.call(e,T),!T.defaultPrevented&&(T.key===_O||T.key===AO)&&o?.(T,{value:C})}),F=p?"button":"span",R=l==="listbox"?"aria-selected":"aria-pressed",P=typeof g=="boolean"||l==="listbox";return{appearance:d,avatarShape:IH[v],avatarSize:_H[b],disabled:n?!0:h,dismissible:p,selected:!!g,shape:v,size:b,components:{root:F,media:"span",icon:"span",primaryText:"span",secondaryText:"span",dismissIcon:"span"},root:Xe(Lt(F,{ref:t,role:l==="listbox"?"option":void 0,[R]:P?g:void 0,...e,disabled:n?!0:h,id:u,...p&&{onClick:S,onKeyDown:k}}),{defaultProps:{type:F==="button"?"button":void 0},elementType:F}),media:qe(e.media,{elementType:"span"}),icon:qe(e.icon,{elementType:"span"}),primaryText:qe(e.primaryText,{renderByDefault:!0,defaultProps:{children:e.children},elementType:"span"}),secondaryText:qe(e.secondaryText,{elementType:"span"}),dismissIcon:qe(e.dismissIcon,{renderByDefault:p,defaultProps:{children:y.createElement(Fg,null)},elementType:"span"})}},OH=(e,t)=>kt(e.root,{children:[e.media&&he(uN,{value:t.avatar,children:he(e.media,{})}),e.icon&&he(e.icon,{}),e.primaryText&&he(e.primaryText,{}),e.secondaryText&&he(e.secondaryText,{}),e.dismissIcon&&e.dismissible&&he(e.dismissIcon,{})]}),ra={root:"fui-Tag",media:"fui-Tag__media",icon:"fui-Tag__icon",primaryText:"fui-Tag__primaryText",secondaryText:"fui-Tag__secondaryText",dismissIcon:"fui-Tag__dismissIcon"},LH=Ke("r18f5o0q","r1u2q8zc",{r:['.r18f5o0q{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r18f5o0q[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",'.r1u2q8zc{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r1u2q8zc[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.r18f5o0q{position:relative;}.r18f5o0q::before{content:"";border-top:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);}}','@media (forced-colors: active){.r1u2q8zc{position:relative;}.r1u2q8zc::before{content:"";border-top:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);}}']}),NH=Ke("r1mko7zc","r1wx1e29",{r:['.r1mko7zc{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r1mko7zc[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",'.r1wx1e29{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r1wx1e29[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.r1mko7zc{position:relative;}.r1mko7zc::before{content:"";border-top:var(--strokeWidthThin) solid;border-left:var(--strokeWidthThin) solid;border-right:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-radius:var(--borderRadiusCircular);}}','@media (forced-colors: active){.r1wx1e29{position:relative;}.r1wx1e29::before{content:"";border-top:var(--strokeWidthThin) solid;border-right:var(--strokeWidthThin) solid;border-left:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-radius:var(--borderRadiusCircular);}}']}),zH=ye({filled:{De3pzq:"f16xq7d1",sj55zd:"fkfq4zb"},outline:{De3pzq:"fhovq9v",sj55zd:"fkfq4zb",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"]},brand:{De3pzq:"f16xkysk",sj55zd:"faj9fo0"},selected:{De3pzq:"ffp7eso",sj55zd:"f1phragk",g2u3we:"fk9qgl1",h3c5rm:["f1vfbj5f","f1qpacp7"],B9xav0g:"fdf0ba2",zhjwy3:["f1qpacp7","f1vfbj5f"],B8gzw0y:"f1h3a8gf",By8wz76:"f1nz3ub2",B7iucu3:"fqc85l4"},medium:{Bqenvij:"f1d2rq10"},small:{Bqenvij:"frvgh55"},"extra-small":{qhf8xq:"f10pi13n",Bqenvij:"fjamq6b",Ie5t1m:"fru8nlv",G6hvz8:"f5nasji",wgw0td:"f45hpys",Bbwa3xj:["f1sbfcjn","f1le4i14"],m3mfg4:"fq6y7a1",B9s7hj8:"f1jr4pq3",B9e1dac:"f1tfer7m"}},{d:[".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fk9qgl1{border-top-color:var(--colorBrandStroke1);}",".f1vfbj5f{border-right-color:var(--colorBrandStroke1);}",".f1qpacp7{border-left-color:var(--colorBrandStroke1);}",".fdf0ba2{border-bottom-color:var(--colorBrandStroke1);}",".f1d2rq10{height:32px;}",".frvgh55{height:24px;}",".f10pi13n{position:relative;}",".fjamq6b{height:20px;}"],m:[["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqc85l4{color:HighlightText;}}",{m:"(forced-colors: active)"}],['@media (forced-colors: none){.fru8nlv:before,.fru8nlv:after{content:"";}}',{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f5nasji:before,.f5nasji:after{position:absolute;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f45hpys:before,.f45hpys:after{height:2px;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f1le4i14:before,.f1le4i14:after{right:0;}.f1sbfcjn:before,.f1sbfcjn:after{left:0;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.fq6y7a1:before,.fq6y7a1:after{width:100%;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f1jr4pq3:before{bottom:100%;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f1tfer7m:after{top:100%;}}",{m:"(forced-colors: none)"}]]}),HH=ye({filled:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]},outline:{Bceei9c:"fdrzuqr",De3pzq:"fhovq9v",sj55zd:"f1s2aq7o",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"]},brand:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]}},{d:[".fdrzuqr{cursor:not-allowed;}",".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fgig46g{border-top-color:var(--colorTransparentStrokeDisabled);}",".f1mxt3zg{border-right-color:var(--colorTransparentStrokeDisabled);}",".fziff3p{border-left-color:var(--colorTransparentStrokeDisabled);}",".f250w3l{border-bottom-color:var(--colorTransparentStrokeDisabled);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"]}),VH=ye({medium:{uwmqm3:["f1rtp3s9","f18k1jr3"]},small:{uwmqm3:["f15vdbe4","fwiuce9"]},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"]}},{d:[".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}"]}),GH=ye({medium:{z189sj:["f18k1jr3","f1rtp3s9"]},small:{z189sj:["fwiuce9","f15vdbe4"]},"extra-small":{z189sj:["fwiuce9","f15vdbe4"]}},{d:[".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}"]}),jH=ye({base:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:"fujjg13",mc9l5x:"f22iagw",B7ck84d:"f1e4lqlz"},medium:{uwmqm3:["f1rtp3s9","f18k1jr3"],z189sj:["f7x41pl","fruq291"],a9b677:"f64fuq3",Be2twd7:"fe5j1ua"},small:{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"fjw5fx7",Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"frx94fk",Be2twd7:"f1ugzwwg"}},{d:[[".fujjg13{grid-area:media;}",{p:-1}],".f22iagw{display:flex;}",".f1e4lqlz{box-sizing:content-box;}",".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f64fuq3{width:20px;}",".fe5j1ua{font-size:20px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".fjw5fx7{width:16px;}",".f4ybsrx{font-size:16px;}",".frx94fk{width:12px;}",".f1ugzwwg{font-size:12px;}"]}),WH=ye({base:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:"fujjg13",mc9l5x:"f22iagw",uwmqm3:["f10xn8zz","f136y8j8"]},medium:{z189sj:["f1vdfbxk","f1f5gg8d"]},small:{z189sj:["fdw0yi8","fk8j09s"]},"extra-small":{z189sj:["fdw0yi8","fk8j09s"]}},{d:[[".fujjg13{grid-area:media;}",{p:-1}],".f22iagw{display:flex;}",".f10xn8zz{padding-left:1px;}",".f136y8j8{padding-right:1px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}"]}),qH=ye({base:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:"f1k1gsvr",mc9l5x:"f22iagw",Bahaeuw:"f1v3eptx",Boo3t63:"f1rfz71x"},medium:{uwmqm3:["fruq291","f7x41pl"],z189sj:["f18k1jr3","f1rtp3s9"],Be2twd7:"fe5j1ua"},small:{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f1ugzwwg"},filled:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},outline:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},brand:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},selected:{Bi91k9c:"f1rq72xc",lj723h:"f18otbis"}},{d:[[".f1k1gsvr{grid-area:dismissIcon;}",{p:-1}],".f22iagw{display:flex;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fe5j1ua{font-size:20px;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".f4ybsrx{font-size:16px;}",".f1ugzwwg{font-size:12px;}"],m:[["@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rfz71x:active{color:Highlight;}}",{m:"(forced-colors: active)"}]],h:[".f8491dx:hover{cursor:pointer;}",".f3ymbdj:hover{color:var(--colorCompoundBrandForeground1Hover);}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}"],a:[".fryz5bw:active{color:var(--colorCompoundBrandForeground1Pressed);}",".f18otbis:active{color:var(--colorNeutralForegroundOnBrand);}"]}),UH=ye({base:{Huce71:"fz5stix",uwmqm3:["fgiv446","ffczdla"],z189sj:["ffczdla","fgiv446"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},withoutSecondaryText:{Br312pm:"faqcfhe",Ijaq50:"f1q3ipgb",nk6f5a:"fc0ab3q",Byoj8tv:"f1g03r3y"},withSecondaryText:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:"f1ebragv",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",B6of3ja:"f1ryq6si"}},{d:[".fz5stix{white-space:nowrap;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".faqcfhe{grid-column-start:primary;}",".f1q3ipgb{grid-row-start:primary;}",".fc0ab3q{grid-row-end:secondary;}",".f1g03r3y{padding-bottom:var(--spacingHorizontalXXS);}",[".f1ebragv{grid-area:primary;}",{p:-1}],".f1ryq6si{margin-top:-2px;}"]}),$H=Ke("r7hv1ps","rnrslm9",[".r7hv1ps{grid-area:secondary;padding-left:var(--spacingHorizontalXXS);padding-right:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}",".rnrslm9{grid-area:secondary;padding-right:var(--spacingHorizontalXXS);padding-left:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}"]),KH=e=>{"use no memo";const t=LH(),o=NH(),r=zH(),n=HH(),i=VH(),s=GH(),l=jH(),u=WH(),d=qH(),h=UH(),p=$H(),{disabled:g,shape:v,size:b,appearance:C,selected:S}=e;return e.root.className=me(ra.root,v==="rounded"?t:o,g?n[C]:r[C],S&&!g&&r.selected,r[b],!e.media&&!e.icon&&i[b],!e.dismissIcon&&s[b],e.root.className),e.media&&(e.media.className=me(ra.media,u.base,u[b],e.media.className)),e.icon&&(e.icon.className=me(ra.icon,l.base,l[b],e.icon.className)),e.primaryText&&(e.primaryText.className=me(ra.primaryText,h.base,h[b],e.secondaryText?h.withSecondaryText:h.withoutSecondaryText,e.primaryText.className)),e.secondaryText&&(e.secondaryText.className=me(ra.secondaryText,p,e.secondaryText.className)),e.dismissIcon&&(e.dismissIcon.className=me(ra.dismissIcon,d.base,d[b],!g&&d[C],S&&!g&&d.selected,e.dismissIcon.className)),e};function XH(e){const{avatarSize:t,avatarShape:o}=e;return{avatar:y.useMemo(()=>({size:t,shape:o}),[o,t])}}const Dx=y.forwardRef((e,t)=>{const o=BH(e,t);return KH(o),dt("useTagStyles_unstable")(o),OH(o,XH(o))});Dx.displayName="Tag";const ZH={root:"fui-InteractionTagSecondary"},YH=(e,t)=>{const{onDismiss:o,disabled:r=!1,defaultSelectedValues:n,size:i="medium",appearance:s="filled",dismissible:l=!1,role:u="toolbar",onTagSelect:d,selectedValues:h,...p}=e,g=y.useRef(void 0),{targetDocument:v}=Dt(),{findNextFocusable:b,findPrevFocusable:C}=gg(),[S,k]=Co({defaultState:n,state:h,initialState:[]}),F=Ce((T,D)=>{var M;o?.(T,D);const O=v?.activeElement;if(!((M=g.current)===null||M===void 0)&&M.contains(O)){const I=b(O,{container:g.current});if(I){I.focus();return}if(O?.className.includes(ZH.root)){const z=C(O.parentElement,{container:g.current});z?.focus()}else{const z=C(O,{container:g.current});z?.focus()}}}),R=Ce(tt(d,(T,D)=>{S.includes(D.value)?k(S.filter(M=>M!==D.value)):k([...S,D.value])})),P=_l({circular:!0,axis:"both",memorizeCurrent:!0});return{handleTagDismiss:F,handleTagSelect:d?R:void 0,selectedValues:S,role:u,size:i,disabled:r,appearance:s,dismissible:l,components:{root:"div"},root:Xe(Lt("div",{ref:Mt(t,g),role:u,"aria-disabled":r,...P,...p}),{elementType:"div"})}},QH=(e,t)=>he(MH,{value:t.tagGroup,children:he(e.root,{})}),JH={root:"fui-TagGroup"},e8=ye({base:{mc9l5x:"ftuwxu6"},medium:{i8kkvl:"fsnqrgy"},small:{i8kkvl:"f1rjii52"},"extra-small":{i8kkvl:"f1ufnopg"}},{d:[".ftuwxu6{display:inline-flex;}",".fsnqrgy{column-gap:var(--spacingHorizontalS);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}"]}),t8=e=>{"use no memo";const t=e8(),{size:o}=e;return e.root.className=me(JH.root,t.base,t[o],e.root.className),e};function o8(e){const{handleTagDismiss:t,handleTagSelect:o,selectedValues:r,size:n,disabled:i,appearance:s,dismissible:l,role:u}=e;return{tagGroup:y.useMemo(()=>({handleTagDismiss:t,handleTagSelect:o,selectedValues:r,size:n,disabled:i,appearance:s,dismissible:l,role:u}),[t,o,r,n,i,s,l,u])}}const Mx=y.forwardRef((e,t)=>{const o=YH(e,t);return t8(o),dt("useTagGroupStyles_unstable")(o),QH(o,o8(o))});Mx.displayName="TagGroup";const r8=(e,t)=>{const{size:o="medium",disabled:r=!1,root:n,contentBefore:i,dismiss:s,contentAfter:l,value:u,defaultValue:d,...h}=e,p=y.useRef(null),g=y.useRef(null),[v,b]=Co({state:u,defaultState:d,initialState:""}),[C,S]=y.useState(!1),k=y.useCallback(()=>{S(!0)},[S]),F=y.useCallback(M=>{var O;S(!!(!((O=p.current)===null||O===void 0)&&O.contains(M.relatedTarget)))},[S]),R=ey(n),P=Ce(M=>{var O,I;if(Kp(s)){var z;(z=s.onClick)===null||z===void 0||z.call(s,M)}const U="";b(U),(O=e.onChange)===null||O===void 0||O.call(e,M,{value:U}),(I=g.current)===null||I===void 0||I.focus()}),T=hx({type:"search",disabled:r,size:o,value:v,root:Xe({...R,ref:Mt(R?.ref,p),onFocus:tt(R?.onFocus,k),onBlur:tt(R?.onBlur,F)},{elementType:"span"}),contentBefore:qe(i,{renderByDefault:!0,defaultProps:{children:y.createElement(jO,null)},elementType:"span"}),contentAfter:qe(l,{renderByDefault:!0,elementType:"span"}),...h,onChange:Ce(M=>{var O;const I=M.target.value;(O=e.onChange)===null||O===void 0||O.call(e,M,{value:I}),b(I)})},Mt(g,t)),D={...T,components:{...T.components,dismiss:"span"},dismiss:qe(s,{defaultProps:{children:y.createElement(Fg,null),role:"button","aria-label":"clear",tabIndex:-1},renderByDefault:!0,elementType:"span"}),disabled:r,focused:C,size:o};return D.dismiss&&(D.dismiss.onClick=P),D},n8=e=>kt(e.root,{children:[e.contentBefore&&he(e.contentBefore,{}),he(e.input,{}),e.contentAfter&&kt(e.contentAfter,{children:[e.contentAfter.children,e.dismiss&&he(e.dismiss,{})]})]}),Ul={root:"fui-SearchBox",dismiss:"fui-SearchBox__dismiss",contentAfter:"fui-SearchBox__contentAfter",contentBefore:"fui-SearchBox__contentBefore",input:"fui-SearchBox__input"},i8=ye({small:{i8kkvl:"fjuset5",B2u0y6b:"f1xzfw5u",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},medium:{i8kkvl:"fjuset5",B2u0y6b:"f1xzfw5u",uwmqm3:["f1f5gg8d","f1vdfbxk"],z189sj:["f1vdfbxk","f1f5gg8d"]},large:{i8kkvl:"fjuset5",B2u0y6b:"f1xzfw5u",uwmqm3:["f1ng84yb","f11gcy0p"],z189sj:["f11gcy0p","f1ng84yb"]},input:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fhxju0i","f1cnd47f"],Boqhc8c:"f18izjht",B8uat0v:"fcoa6sg"},unfocusedNoContentAfter:{z189sj:["fhxju0i","f1cnd47f"]}},{d:[".fjuset5{column-gap:0;}",".f1xzfw5u{max-width:468px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f18izjht::-webkit-search-decoration{display:none;}",".fcoa6sg::-webkit-search-cancel-button{display:none;}"]}),s8=ye({small:{z189sj:["fdw0yi8","fk8j09s"]},medium:{z189sj:["f1vdfbxk","f1f5gg8d"]},large:{z189sj:["f11gcy0p","f1ng84yb"]}},{d:[".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}"]}),a8=ye({contentAfter:{uwmqm3:["f1uw59to","fw5db7e"],i8kkvl:"f1ufnopg"},rest:{Bqenvij:"fniina8",a9b677:"f3tsq5r",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp"}},{d:[".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".fniina8{height:0;}",".f3tsq5r{width:0;}",".f1cnd47f{padding-left:0;}",".fhxju0i{padding-right:0;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}]]}),l8=Ke("r1pvzcuu",null,[".r1pvzcuu{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;cursor:pointer;}",".r1pvzcuu>svg{font-size:20px;}"]),c8=ye({disabled:{sj55zd:"f1s2aq7o"},small:{Duoase:"f3qv9w"},medium:{},large:{Duoase:"f16u2scb"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3qv9w>svg{font-size:16px;}",".f16u2scb>svg{font-size:24px;}"]}),u8=e=>{"use no memo";const{disabled:t,focused:o,size:r}=e,n=i8(),i=s8(),s=a8(),l=l8(),u=c8();return e.root.className=me(Ul.root,n[r],!o&&n.unfocusedNoContentAfter,e.root.className),e.input.className=me(Ul.input,n.input,!o&&i[r],e.input.className),e.dismiss&&(e.dismiss.className=me(Ul.dismiss,l,t&&u.disabled,u[r],e.dismiss.className)),e.contentBefore&&(e.contentBefore.className=me(Ul.contentBefore,e.contentBefore.className)),e.contentAfter?e.contentAfter.className=me(Ul.contentAfter,s.contentAfter,!o&&s.rest,e.contentAfter.className):e.dismiss&&(e.dismiss.className=me(e.dismiss.className,s.contentAfter)),fx(e),e},Ax=y.forwardRef((e,t)=>{const o=r8(e,t);return u8(o),dt("useSearchBoxStyles_unstable")(o),n8(o)});Ax.displayName="SearchBox";function d8(e={selectionMode:"multiselect"}){const{selectionMode:t,defaultSelectedItems:o,onSelectionChange:r}=e,[n,i]=Co({state:e.selectedItems,defaultState:o,initialState:[]}),[s,l]=TI({selectionMode:t,defaultSelectedItems:o,selectedItems:n,onSelectionChange:(b,C)=>{i(C.selectedItems),r?.(b,C)}}),u=Ce((b,C)=>l.toggleItem(b,C)),d=Ce((b,C)=>{l.toggleAllItems(b,C)}),h=Ce((b,C)=>l.deselectItem(b,C)),p=Ce((b,C)=>l.selectItem(b,C)),g=Ce(b=>l.clearItems(b));return{selectedItems:y.useMemo(()=>Array.from(s),[s]),toggleItem:u,toggleAllItems:d,deselectItem:h,selectItem:p,setSelectedItems:i,isSelected:b=>l.isSelected(b),clearSelection:g}}const h8=(e,t)=>e==="composite"?"grid":t?"listbox":"list",f8=e=>{switch(e){case"list":return"listitem";case"listbox":return"option";case"grid":return"row";default:return"listitem"}},p8="ul",g8=(e,t)=>{const{navigationMode:o,selectionMode:r,selectedItems:n,defaultSelectedItems:i,onSelectionChange:s}=e,l=e.as||o==="composite"?"div":p8,u=_l({axis:"vertical",memorizeCurrent:!0}),[d,h]=Co({state:n,defaultState:i,initialState:[]}),p=Ce((S,k)=>{const F=Array.from(k.selectedItems);h(F),s?.(S,{event:S,type:"change",selectedItems:F})}),g=d8({onSelectionChange:p,selectionMode:r||"multiselect",selectedItems:d}),v=e.role||h8(o,!!r),b=f8(v);gg();const C=Ce(S=>{});return{components:{root:l},root:Xe(Lt(l,{ref:t,role:v,...r&&{"aria-multiselectable":r==="multiselect"?!0:void 0},...u,...e}),{elementType:l}),listItemRole:b,validateListItem:C,navigationMode:o,selection:r?g:void 0}},m8={selection:void 0,validateListItem:()=>{}},_x=Ks(void 0),v8=_x.Provider,Ld=e=>Bl(_x,(t=m8)=>e(t)),Ix=y.createContext(void 0),b8=Ix.Provider,C8=()=>y.useContext(Ix)||{navigationMode:void 0,listItemRole:"listitem"},w8=(e,t)=>he(v8,{value:t.listContext,children:he(b8,{value:t.synchronousContext,children:he(e.root,{})})}),y8={root:"fui-List"},S8=Ke("r1m6yby2",null,[".r1m6yby2{padding:0;margin:0;text-indent:0;list-style-type:none;}"]),x8=e=>{"use no memo";const t=S8();return e.root.className=me(y8.root,t,e.root.className),e};function k8(e){const{selection:t,navigationMode:o,listItemRole:r,validateListItem:n}=e,i={selection:t,navigationMode:o,validateListItem:n},s=y.useMemo(()=>({listItemRole:r,navigationMode:o}),[r,o]);return{listContext:i,synchronousContext:s}}const Zg=y.forwardRef((e,t)=>{const o=g8(e,t),r=k8(o);return x8(o),dt("useListStyles_unstable")(o),w8(o,r)});Zg.displayName="List";const Bx="ListItemAction",F8=e=>new CustomEvent(Bx,{cancelable:!0,bubbles:!0,detail:{originalEvent:e}}),R8="li",P8=(e,t)=>{const o=Oo("listItem"),{value:r=o,onKeyDown:n,onClick:i,tabIndex:s,role:l,onAction:u,disabledSelection:d}=e,h=Ld(_=>{var V;return(V=_.selection)===null||V===void 0?void 0:V.toggleItem}),{navigationMode:p,listItemRole:g}=C8(),v=Ld(_=>!!_.selection);var b;const C=(b=Ld(_=>{var V;return(V=_.selection)===null||V===void 0?void 0:V.isSelected(r)}))!==null&&b!==void 0?b:!1,S=Ld(_=>_.validateListItem),k=e.as||p==="composite"?"div":R8,F=l||g,R=!!(v||p||s===0),P=y.useRef(null),T=y.useRef(null),D=Ce(_=>{u?.(_,{event:_,value:r,type:Bx}),!_.defaultPrevented&&v&&!d&&h?.(_.detail.originalEvent,r)});y.useEffect(()=>{P.current&&S(P.current)},[S]);const M=_=>{const V=F8(_);D(V),_.target.dispatchEvent(V)},O=c5({ignoreDefaultKeydown:{Enter:!0},tabBehavior:"limited-trap-focus"}),I=Ce(_=>{i?.(_),!(_.defaultPrevented||AI(T.current,_.target))&&M(_)}),z=Ce(_=>{if(n?.(_),!_.defaultPrevented){if(_.target!==_.currentTarget){if(R){switch(_.key){case T1:_.target.dispatchEvent(new sg({action:Tl.Escape}));break;case Sg:case ud:_.preventDefault(),_.target.dispatchEvent(new sg({action:Tl.Escape})),_.currentTarget.dispatchEvent(new aB({key:Ft[_.key]}))}return}return}switch(_.key){case xn:_.preventDefault(),v?d||h?.(_,r):M(_);break;case Xs:M(_);break;case D1:p==="composite"&&_.target.dispatchEvent(new sg({action:Tl.Enter}));break}}}),U=Ce((_,V)=>{!v||_.defaultPrevented||h?.(_,r)}),q=_l({axis:"horizontal"}),A=b5(R?q:{},O,e),K=Xe(Lt(k,{ref:Mt(P,t),tabIndex:R?0:void 0,role:F,id:String(r),...v&&{"aria-selected":C,"aria-disabled":d&&!u||void 0},...e,...A,onKeyDown:z,onClick:v||i||u?I:void 0}),{elementType:k}),$=qe(e.checkmark,{defaultProps:{checked:C,tabIndex:-1,disabled:d},renderByDefault:v,elementType:Fd}),Z=Mt($?.ref,T);return $&&($.onChange=tt($.onChange,U),$.ref=Z),{components:{root:k,checkmark:Fd},root:K,checkmark:$,disabled:d&&!u,selectable:v,navigable:R}},E8=e=>kt(e.root,{children:[e.checkmark&&he(e.checkmark,{}),e.root.children]}),Ox={root:"fui-ListItem",checkmark:"fui-ListItem__checkmark"},T8=Ke("rikgcmv",null,[".rikgcmv{padding:0;margin:0;text-indent:0;list-style-type:none;}",".rikgcmv[data-fui-focus-visible]{outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);}"]),D8=ye({root:{qb2dma:"f7nlbp4",Bpb5tq4:0,Biccaaf:0,Gaeyjg:0,ldoezw:0,B6gmeee:"f1bgo3o3"}},{d:[".f7nlbp4{align-self:center;}",[".f1bgo3o3 .fui-Checkbox__indicator{margin:4px;}",{p:-1}]]}),M8=ye({rootClickableOrSelectable:{mc9l5x:"f22iagw",Bceei9c:"f1k6fduh"},disabled:{Bceei9c:"f158kwzp"}},{d:[".f22iagw{display:flex;}",".f1k6fduh{cursor:pointer;}",".f158kwzp{cursor:default;}"]}),A8=e=>{"use no memo";const t=T8(),o=D8(),r=M8();return e.root.className=me(Ox.root,t,(e.selectable||e.navigable)&&r.rootClickableOrSelectable,e.disabled&&r.disabled,e.root.className),e.checkmark&&(e.checkmark.className=me(Ox.checkmark,o.root,e.checkmark.className)),e},Yg=y.forwardRef((e,t)=>{const o=P8(e,t);return A8(o),dt("useListItemStyles_unstable")(o),E8(o)});Yg.displayName="ListItem";var Ki=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,o){const r=t?this.allAsyncListeners:this.allSyncListeners;let n=r.get(e);return!n&&o&&(n=new Set,r.set(e,n)),n}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,o=!1){this.getListeners(e,o,!0).add(t)}removeEventListener(e,t,o=!1){const r=this.getListeners(e,o,!1);r&&(r.delete(t),r.size===0&&(o?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){this.getGlobalListeners(t).add(e)}removeGlobalListener(e,t=!1){this.getGlobalListeners(t).delete(e)}dispatchEvent(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const o=e.type;if(t&&"event"in e){const l=e.event;l instanceof Event&&(e.eventPath=l.composedPath())}const{frameworkOverrides:r}=this,n=l=>{const u=r?()=>r.wrapIncoming(l):l;t?this.dispatchAsync(u):u()},i=this.getListeners(o,t,!1);if((i?.size??0)>0){const l=new Set(i);for(const u of l)i?.has(u)&&n(()=>u(e))}const s=this.getGlobalListeners(t);if(s.size>0){const l=new Set(s);for(const u of l)n(()=>u(o,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)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[];for(const t of e)t()}},si=e=>e==null||e===""?null:e;function xe(e){return e!=null&&e!==""}function Ht(e){return!xe(e)}var Qg=e=>e!=null&&typeof e.toString=="function"?e.toString():null,Lx=(e,t)=>{const o=e?JSON.stringify(e):null,r=t?JSON.stringify(t):null;return o===r},_8=(e,t,o=!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()),!o||typeof e!="string"?e>t?1:e<t?-1:0:e.localeCompare(t)),I8=/[&<>"']/g,B8={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function $l(e){return e?.toString().toString()??null}function Kl(e){return $l(e)?.replace(I8,t=>B8[t])??null}function Nx(e){return typeof e=="string"&&e.startsWith("=")&&e.length>1}function Kr(e){return e.eRootDiv.getRootNode()}function At(e){return Kr(e).activeElement}function Zt(e){const{gos:t,eRootDiv:o}=e;let r=null;const n=t.get("getDocument");return n&&xe(n)?r=n():o&&(r=o.ownerDocument),r&&xe(r)?r:document}function Jg(e){const t=At(e);return t===null||t===Zt(e).body}function zx(e){return Zt(e).defaultView||window}function em(e){let t=null,o=null;try{t=Zt(e).fullscreenElement}catch{}finally{t||(t=Kr(e));const r=t.querySelector("body");r?o=r:t instanceof ShadowRoot?o=t:t instanceof Document?o=t?.documentElement:o=t}return o}function O8(e){return em(e)?.clientWidth??(window.innerWidth||-1)}function L8(e){return em(e)?.clientHeight??(window.innerHeight||-1)}function Xr(e,t,o){o==null||typeof o=="string"&&o==""?Hx(e,t):Zr(e,t,o)}function Zr(e,t,o){e.setAttribute(Vx(t),o.toString())}function Hx(e,t){e.removeAttribute(Vx(t))}function Vx(e){return`aria-${e}`}function Xl(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function N8(e){const t=e?.direction;return t==="asc"?"ascending":t==="desc"?"descending":t==="mixed"?"other":"none"}function z8(e){return e.getAttribute("aria-label")}function na(e,t){Xr(e,"label",t)}function Zl(e,t){Xr(e,"labelledby",t)}function Gx(e,t){Xr(e,"live",t)}function H8(e,t){Xr(e,"atomic",t)}function V8(e,t){Xr(e,"relevant",t)}function jx(e,t){Xr(e,"invalid",t)}function Wx(e,t){Xr(e,"hidden",t)}function tm(e,t){Zr(e,"expanded",t)}function G8(e,t){Zr(e,"setsize",t)}function j8(e,t){Zr(e,"posinset",t)}function W8(e,t){Zr(e,"rowcount",t)}function q8(e,t){Zr(e,"rowindex",t)}function U8(e,t){Zr(e,"colcount",t)}function qx(e,t){Zr(e,"colindex",t)}function $8(e,t){Zr(e,"colspan",t)}function K8(e,t){Zr(e,"sort",t)}function X8(e){Hx(e,"sort")}function Z8(e,t){Xr(e,"selected",t)}function Y8(e,t){Xr(e,"controls",t)}function Q8(e,t){Y8(e,t.id),Zl(t,e.id)}function Ux(e,t){Xr(e,"owns",t)}function $x(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var J8="[tabindex], input, select, button, textarea, [href]",Kx="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function Yl(e){return!e||!e.matches("input, select, button, textarea")||!e.matches(Kx)?!1:Tn(e)}function gt(e,t,o={}){const{skipAriaHidden:r}=o;e.classList.toggle("ag-hidden",!t),r||Wx(e,!t)}function eV(e,t,o={}){const{skipAriaHidden:r}=o;e.classList.toggle("ag-invisible",!t),r||Wx(e,!t)}function Ql(e,t){const o="disabled",r=t?i=>i.setAttribute(o,""):i=>i.removeAttribute(o);r(e);const n=e.querySelectorAll("input")??[];for(const i of n)r(i)}function Xi(e,t,o){let r=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof o=="number"){if(++r>o)break}else if(e===o)break}return!1}function Zi(e){const{height:t,width:o,borderTopWidth:r,borderRightWidth:n,borderBottomWidth:i,borderLeftWidth:s,paddingTop:l,paddingRight:u,paddingBottom:d,paddingLeft:h,marginTop:p,marginRight:g,marginBottom:v,marginLeft:b,boxSizing:C}=window.getComputedStyle(e),S=Number.parseFloat;return{height:S(t||"0"),width:S(o||"0"),borderTopWidth:S(r||"0"),borderRightWidth:S(n||"0"),borderBottomWidth:S(i||"0"),borderLeftWidth:S(s||"0"),paddingTop:S(l||"0"),paddingRight:S(u||"0"),paddingBottom:S(d||"0"),paddingLeft:S(h||"0"),marginTop:S(p||"0"),marginRight:S(g||"0"),marginBottom:S(v||"0"),marginLeft:S(b||"0"),boxSizing:C}}function om(e){const t=Zi(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom-t.borderTopWidth-t.borderBottomWidth:t.height}function Nd(e){const t=Zi(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight-t.borderLeftWidth-t.borderRightWidth:t.width}function Xx(e){const{height:t,marginBottom:o,marginTop:r}=Zi(e);return Math.floor(t+o+r)}function zd(e){const{width:t,marginLeft:o,marginRight:r}=Zi(e);return Math.floor(t+o+r)}function Zx(e){const t=e.getBoundingClientRect(),{borderTopWidth:o,borderLeftWidth:r,borderRightWidth:n,borderBottomWidth:i}=Zi(e);return{top:t.top+(o||0),left:t.left+(r||0),right:t.right+(n||0),bottom:t.bottom+(i||0)}}function Hd(e,t){let o=e.scrollLeft;return t&&(o=Math.abs(o)),o}function Vd(e,t,o){o&&(t*=-1),e.scrollLeft=t}function En(e){for(;e?.firstChild;)e.firstChild.remove()}function ia(e){e?.parentNode&&e.remove()}function rm(e){return!!e.offsetParent}function Tn(e){return e.checkVisibility?e.checkVisibility({checkVisibilityCSS:!0}):!(!rm(e)||window.getComputedStyle(e).visibility!=="visible")}function nm(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function Gd(e){return()=>{const t=e();return t?im(t)||Yx(t):!0}}function im(e){return e.clientWidth<e.scrollWidth}function Yx(e){return e.clientHeight<e.scrollHeight}function jd(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Yr(e,t)}function Yr(e,t){t=sm(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function Jl(e,t){t=sm(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function sm(e){return typeof e=="number"?`${e}px`:e}function Qx(e){return e instanceof Node||e instanceof HTMLElement}function Er(e,t,o){o==null||o===""?e.removeAttribute(t):e.setAttribute(t,o.toString())}function Dn(e,t,o){const n=zx(e).ResizeObserver,i=n?new n(o):null;return i?.observe(t),()=>i?.disconnect()}function Mn(e,t){const o=zx(e);o.requestAnimationFrame?o.requestAnimationFrame(t):o.webkitRequestAnimationFrame?o.webkitRequestAnimationFrame(t):o.setTimeout(t,0)}var Jx="data-ref",am;function ek(){return am??(am=document.createTextNode(" ")),am.cloneNode()}function ai(e){const{attrs:t,children:o,cls:r,ref:n,role:i,tag:s}=e,l=document.createElement(s);if(r&&(l.className=r),n&&l.setAttribute(Jx,n),i&&l.setAttribute("role",i),t)for(const u of Object.keys(t))l.setAttribute(u,t[u]);if(o)if(typeof o=="string")l.textContent=o;else{let u=!0;for(const d of o)d&&(typeof d=="string"?(l.appendChild(document.createTextNode(d)),u=!1):typeof d=="function"?l.appendChild(d()):(u&&(l.appendChild(ek()),u=!1),l.append(ai(d)),l.appendChild(ek())))}return l}var tV=["touchstart","touchend","touchmove","touchcancel","scroll"],oV=["wheel"],lm={},tk=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return o=>{if(typeof lm[o]=="boolean")return lm[o];const r=document.createElement(e[o]||"div");return o="on"+o,lm[o]=o in r}})();function rV(e,t){return!t||!e?!1:iV(t).indexOf(e)>=0}function nV(e){const t=[];let o=e.target;for(;o;)t.push(o),o=o.parentElement;return t}function iV(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():nV(t)}function sV(e,t,o){const r=aV(t);let n;r!=null&&(n={passive:r}),e.addEventListener(t,o,n)}var aV=e=>{const t=tV.includes(e),o=oV.includes(e);if(t)return!0;if(o)return!1};function ok(e,t,o){if(o===0)return!1;const r=Math.abs(e.clientX-t.clientX),n=Math.abs(e.clientY-t.clientY);return Math.max(r,n)<=o}var sa=(e,t)=>{const o=e.identifier;for(let r=0,n=t.length;r<n;++r){const i=t[r];if(i.identifier===o)return i}return null};function ec(e,t){return e.gos.isElementInThisInstance(t.target)}function lV(e,t,o){const n=e.getBoundingClientRect().height,i=O8(o)-2,s=L8(o)-2;if(!e.offsetParent)return;const u=Zx(e.offsetParent),{clientY:d,clientX:h}=t;let p=d-u.top-n/2,g=h-u.left-10;const v=Zt(o),b=v.defaultView||window,C=b.pageYOffset||v.documentElement.scrollTop,S=b.pageXOffset||v.documentElement.scrollLeft;i>0&&g+e.clientWidth>i+S&&(g=i+S-e.clientWidth),g<0&&(g=0),s>0&&p+e.clientHeight>s+C&&(p=s+C-e.clientHeight),p<0&&(p=0),e.style.left=`${g}px`,e.style.top=`${p}px`}var Wd=(e,...t)=>{for(const o of t){const[r,n,i,s]=o;r.addEventListener(n,i,s),e.push(o)}},cm=e=>{if(e){for(const[t,o,r,n]of e)t.removeEventListener(o,r,n);e.length=0}},aa=e=>{e.cancelable&&e.preventDefault()};function cV(e,t){return t}function rk(e){return e?.getLocaleTextFunc()??cV}function uV(e,t,o,r){const n=t[o];return e.getLocaleTextFunc()(o,typeof n=="function"?n(r):n,r)}var xo=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){const{destroyFunctions:e}=this;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,t,o){this.localEventService||(this.localEventService=new Ki),this.localEventService.addEventListener(e,t,o)}removeEventListener(e,t,o){this.localEventService?.removeEventListener(e,t,o)}dispatchLocalEvent(e){this.localEventService?.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventSvc,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){const o=[];for(const r of Object.keys(t)){const n=t[r];n&&o.push(this._setupListener(e,r,n))}return o}_setupListener(e,t,o){if(this.destroyed)return()=>null;let r;if(dV(e))e.__addEventListener(t,o),r=()=>(e.__removeEventListener(t,o),null);else{const n=hV(e);e instanceof HTMLElement?sV(e,t,o):n?e.addListener(t,o):e.addEventListener(t,o),r=n?()=>(e.removeListener(t,o),null):()=>(e.removeEventListener(t,o),null)}return this.destroyFunctions.push(r),()=>(r(),this.destroyFunctions=this.destroyFunctions.filter(n=>n!==r),null)}setupPropertyListener(e,t){const{gos:o}=this;o.addPropertyEventListener(e,t);const r=()=>(o.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(r),()=>(r(),this.destroyFunctions=this.destroyFunctions.filter(n=>n!==r),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupPropertyListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const o=e.join("-")+this.propertyListenerId++,r=n=>{if(n.changeSet){if(n.changeSet&&n.changeSet.id===this.lastChangeSetIdLookup[o])return;this.lastChangeSetIdLookup[o]=n.changeSet.id}const i={type:"propertyChanged",changeSet:n.changeSet,source:n.source};t(i)};for(const n of e)this.setupPropertyListener(n,r)}getLocaleTextFunc(){return rk(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){const o=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),o}createBean(e,t,o){return(t||this.stubContext).createBean(e,o)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function dV(e){return e.__addEventListener!==void 0}function hV(e){return e.eventServiceType==="global"}var ue=class extends xo{},um=new Set,qd=(e,t)=>{um.has(t)||(um.add(t),e())};qd._set=um;var fV={pending:!1,funcs:[]},pV={pending:!1,funcs:[]};function dm(e,t="setTimeout",o){const r=t==="raf"?pV:fV;if(r.funcs.push(e),r.pending)return;r.pending=!0;const n=()=>{const i=r.funcs.slice();r.funcs.length=0,r.pending=!1;for(const s of i)s()};t==="raf"?Mn(o,n):window.setTimeout(n,0)}function An(e,t,o){let r;return function(...n){const i=this;return window.clearTimeout(r),r=window.setTimeout(function(){e.isAlive()&&t.apply(i,n)},o),r}}function nk(e,t){let o=0;return function(...r){const n=this,i=Date.now();i-o<t||(o=i,e.apply(n,r))}}function gV(e,t,o,r=100){const n=Date.now();let i=null,s=!1;const l=()=>{i!=null&&(window.clearInterval(i),i=null)};e.addDestroyFunc(l);const u=()=>{const d=Date.now()-n>r;(t()||d)&&(o(),s=!0,l())};u(),s||(i=window.setInterval(u,10))}var mV=new Set(["__proto__","constructor","prototype"]);function vV(e,t){if(e!=null){if(Array.isArray(e)){for(let o=0;o<e.length;o++)t(o.toString(),e[o]);return}for(const o of Object.keys(e).filter(r=>!mV.has(r)))t(o,e[o])}}function po(e,t,o=!0,r=!1){xe(t)&&vV(t,(n,i)=>{let s=e[n];s!==i&&(r&&s==null&&i!=null&&typeof i=="object"&&i.constructor===Object&&(s={},e[n]=s),ik(i)&&ik(s)&&!Array.isArray(s)?po(s,i,o,r):(o||i!==void 0)&&(e[n]=i))})}function ik(e){return typeof e=="object"&&e!==null}var hm=class Un{static applyGlobalGridOptions(t){if(!Un.gridOptions)return{...t};let o={};return po(o,Un.gridOptions,!0,!0),Un.mergeStrategy==="deep"?po(o,t,!0,!0):o={...o,...t},Un.gridOptions.context&&(o.context=Un.gridOptions.context),t.context&&(Un.mergeStrategy==="deep"&&o.context&&po(t.context,o.context,!0,!0),o.context=t.context),o}static applyGlobalGridOption(t,o){if(Un.mergeStrategy==="deep"){const r=sk(t);if(r&&typeof r=="object"&&typeof o=="object")return Un.applyGlobalGridOptions({[t]:o})[t]}return o}};hm.gridOptions=void 0,hm.mergeStrategy="shallow";var fm=hm;function sk(e){return fm.gridOptions?.[e]}var ak={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:" ",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,cellFlashDuration:500,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,refreshAfterGroupEdit:!1,rowDragInsertDelay:500,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:"never",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:"clientSide",asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSidePivotResultFieldSeparator:"_",viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:"xy",suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1,columnMenu:"new",reactiveCustomComponents:!0,suppressSetFilterByDefault:!1,enableFilterHandlers:!1},lk="https://www.ag-grid.com";function Ud(e,t,...o){e.get("debug")&&console.log("AG Grid: "+t,...o)}function tc(e,...t){qd(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function la(e,...t){qd(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var ck=new Set,$d={},Yi={},Kd,uk=!1,dk=!1,bV=!1;function CV(e){const[t,o]=e.version.split(".")||[],[r,n]=Kd.split(".")||[];return t===r&&o===n}function wV(e){Kd||(Kd=e.version);const t=r=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${r} Please update all modules to the same version.`;e.version?CV(e)||la(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${Kd}.`)):la(t(`'${e.moduleName}' is incompatible.`));const o=e.validate?.();o&&!o.isValid&&la(`${o.message}`)}function oc(e,t,o=!1){o||(uk=!0),wV(e);const r=e.rowModels??["all"];ck.add(e);let n;t!==void 0?(dk=!0,Yi[t]===void 0&&(Yi[t]={}),n=Yi[t]):n=$d;for(const i of r)n[i]===void 0&&(n[i]={}),n[i][e.moduleName]=e;if(e.dependsOn)for(const i of e.dependsOn)oc(i,t,o)}function yV(e){delete Yi[e]}function pm(e,t,o){const r=n=>!!$d[n]?.[e]||!!Yi[t]?.[n]?.[e];return r(o)||r("all")}function gm(){return dk}function SV(e,t){const o=Yi[e]??{};return[...Object.values($d.all??{}),...Object.values(o.all??{}),...Object.values($d[t]??{}),...Object.values(o[t]??{})]}function xV(){return new Set(ck)}function kV(e,t){const o=Yi[e]??{};return[...Object.values(o.all??{}),...Object.values(o[t]??{})]}function FV(){return uk}function hk(){return bV}var fk=class{static register(e){oc(e,void 0)}static registerModules(e){for(const t of e)oc(t,void 0)}},ze="35.0.1",pk=2e3,gk=100,mk="_version_",vk=null,ca=`${lk}/javascript-data-grid`;function RV(e){vk=e}function PV(e){ca=e}function bk(e,t,o){return vk?.(e,t)??[MV(e,t,o)]}function mm(e,t,o,r,n){e(`${r?"warning":"error"} #${t}`,...bk(t,o,n))}function EV(e){if(!e)return String(e);const t={};for(const o of Object.keys(e))typeof e[o]!="object"&&typeof e[o]!="function"&&(t[o]=e[o]);return JSON.stringify(t)}function TV(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=EV(e)),t}function Xd(e){return e===void 0?"undefined":e===null?"null":e}function vm(e,t){return`${e}?${t.toString()}`}function DV(e,t,o){const r=Array.from(t.entries()).sort((i,s)=>s[1].length-i[1].length);let n=vm(e,t);for(const[i,s]of r){if(i===mk)continue;const l=n.length-o;if(l<=0)break;const u="...",d=l+u.length,h=s.length-d>gk?s.slice(0,s.length-d)+u:s.slice(0,gk)+u;t.set(i,h),n=vm(e,t)}return n}function Ck(e,t){const o=new URLSearchParams;if(o.append(mk,ze),t)for(const i of Object.keys(t))o.append(i,TV(t[i]));const r=`${ca}/errors/${e}`,n=vm(r,o);return n.length<=pk?n:DV(r,o,pk)}var MV=(e,t,o)=>{const r=Ck(e,t);return`${`${o?o+`
13
+ `:""}Visit ${r}`}${o?"":`
14
+ Alternatively register the ValidationModule to see the full message in the console.`}`};function pe(...e){mm(tc,e[0],e[1],!0)}function yt(...e){mm(la,e[0],e[1],!1)}function rc(e,t,o){mm(la,e,t,!1,o)}function AV(e,t){const o=t[0];return`error #${o} `+bk(o,t[1],e).join(" ")}function Qr(...e){return AV(void 0,e)}function wk(e,t){return e.get("rowModelType")===t}function Qi(e,t){return wk(e,"clientSide")}function yk(e,t){return wk(e,"serverSide")}function no(e,t){return e.get("domLayout")===t}function Sk(e){return zV(e)!==void 0}function xk(e){return typeof e.get("getRowHeight")=="function"}function _V(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function IV({gos:e,formula:t}){const o=e.get("rowNumbers");return o||!!t?.active&&o!==!1}function Zd(e,t,o=!1,r){const{gos:n,environment:i}=e;if(r==null&&(r=i.getDefaultRowHeight()),xk(n)){if(o)return{height:r,estimated:!0};const u={node:t,data:t.data},d=n.getCallback("getRowHeight")(u);if(bm(d))return d===0&&pe(23),{height:Math.max(1,d),estimated:!1}}if(t.detail&&n.get("masterDetail"))return BV(n);const s=n.get("rowHeight");return{height:s&&bm(s)?s:r,estimated:!1}}function BV(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return bm(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function kk(e){const{environment:t,gos:o}=e,r=o.get("rowHeight");if(!r||Ht(r))return t.getDefaultRowHeight();const n=t.refreshRowHeightVariable();return n!==-1?n:(pe(24),t.getDefaultRowHeight())}function bm(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function Fk(e,t,o){const r=t[e.getDomDataKey()];return r?r[o]:void 0}function Ji(e,t,o,r){const n=e.getDomDataKey();let i=t[n];Ht(i)&&(i={},t[n]=i),i[o]=r}function ua(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function Rk(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||no(e,"print"))}function _n(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function Cm(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function Pk(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function OV(e,t,o){return!!t.group&&!t.footer&&Pk(e,o)}function wm(e){const t=e.getCallback("getRowId");return t===void 0?t:o=>{let r=t(o);return typeof r!="string"&&(qd(()=>pe(25,{id:r}),"getRowIdString"),r=String(r)),r}}function LV(e){return e?.checkboxes??!0}function NV(e){if(typeof e=="object")return e.checkboxLocation??"selectionColumn"}function nc(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function da(e){const t=e.get("cellSelection")??!1;return(typeof t=="object"&&t.enableColumnSelection)??!1}function zV(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 HV(e){const t=e.get("rowSelection");if(typeof t=="string"){const o=e.get("groupSelectsChildren"),r=e.get("groupSelectsFiltered");return o&&r?"filteredDescendants":o?"descendants":"self"}return t?.mode==="multiRow"?t.groupSelects:void 0}function VV(e,t=!0){const o=e.get("rowSelection");return typeof o!="object"?t?"all":void 0:o.mode==="multiRow"?o.selectAll:"all"}function GV(e){const t=e.get("rowSelection");return typeof t=="string"?!1:t?.mode==="multiRow"?t.ctrlASelectsRows??!1:!1}function jV(e){const t=HV(e);return t==="descendants"||t==="filteredDescendants"}function WV(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function Vo(e){return e.get("columnMenu")==="legacy"}function qV(e){return!Vo(e)}function UV(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function $V(e,t,o){typeof e!="object"&&(e={});const r={...e};for(const n of o){const i=t[n];typeof i<"u"&&(r[n]=i)}return r}function KV(e,t){if(!e)return;const o={};let r=!1;for(const s of Object.keys(e))o[s]=e[s],r=!0;if(!r)return;const n={type:"gridOptionsChanged",options:o};t.dispatchEvent(n);const i={type:"componentStateChanged",...o};t.dispatchEvent(i)}function je(e,t){return e.addCommon(t)}function Yd(e,t){return e[t]??e.gridOptions?.[t]??sk(t)??ak[t]}function XV({gos:e},t){return t.button===2||t.ctrlKey&&e.get("allowContextMenuWithControlKey")}var ZV={resizable:!0,sortable:!0},YV=0;function Ek(){return YV++}function li(e){return e instanceof ha}var QV=["asc","desc",null],JV=[{type:"absolute",direction:"asc"},{type:"absolute",direction:"desc"},null],ha=class extends ue{constructor(e,t,o,r){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=o,this.primary=r,this.isColumn=!0,this.instanceId=Ek(),this.autoHeaderHeight=null,this.sortDef=Tr(),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 Ki,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=Kl(o)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}initState(){const{colDef:e,beans:{sortSvc:t,pinnedCols:o,colFlex:r}}=this;t?.initCol(this);const n=e.hide;n!==void 0?this.visible=!n:this.visible=!e.initialHide,o?.initCol(this),r?.initCol(this)}setColDef(e,t,o){const r=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),r&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent("colDefChanged",o)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.initState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip(),this.initRowSpan(),this.addPivotListener()}initDotNotation(){const{gos:e,colDef:{field:t,tooltipField:o}}=this,r=e.get("suppressFieldDotNotation");this.fieldContainsDots=xe(t)&&t.includes(".")&&!r,this.tooltipFieldContainsDots=xe(o)&&o.includes(".")&&!r}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:o=>{const r=e.recreateColDef(this.colDef);this.setColDef(r,r,o.source)}})}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){let t;const o=e.width,r=e.initialWidth;return o!=null?t=o:r!=null?t=r:t=200,Math.max(Math.min(t,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){return this.beans.showRowGroupCols?.isRowGroupDisplayed(this,e)??!1}isPrimary(){return this.primary}isFilterAllowed(){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 o=this.frameworkEventListenerService?.wrap(e,t)??t;this.colEventSvc.addEventListener(e,o)}removeEventListener(e,t){const o=this.frameworkEventListenerService?.unwrap(e,t)??t;this.colEventSvc.removeEventListener(e,o)}createColumnFunctionCallbackParams(e){return je(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]??ZV[e]}isColumnFunc(e,t){if(typeof t=="boolean")return t;if(typeof t=="function"){const o=this.createColumnFunctionCallbackParams(e);return t(o)}return!1}createColumnEvent(e,t){return je(this.gos,{type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sortDef.direction}getSortDef(){return this.sortDef.direction?this.sortDef:null}getColDefAllowedSortTypes(){const e=[],{sort:t,initialSort:o}=this.colDef,r=t===null?t:In(t?.type),n=o===null?o:In(o?.type);return r&&e.push(r),n&&e.push(n),e}getSortingOrder(){const e=this.getColDefAllowedSortTypes().includes("absolute")?JV:QV;return(this.colDef.sortingOrder??this.gos.get("sortingOrder")??e).map(t=>Tr(t))}getAvailableSortTypes(){const e=this.getSortingOrder().reduce((t,o)=>(o.direction&&t.push(o.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 Ht(this.getSort())}isSorting(){return xe(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 pe(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 o=e===!0;this.visible!==o&&(this.visible=o,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 o=!0;for(;e;){if(!e.isPadding()){o=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:o}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return je(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(Ht(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),o=this.colDef.colSpan(t);return Math.max(o,1)}getRowSpan(e){if(Ht(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),o=this.colDef.rowSpan(t);return Math.max(o,1)}setActualWidth(e,t,o=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,this.flex!=null&&t!=="flex"&&t!=="gridInitializing"&&(this.flex=null),o||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.dispatchColEvent("widthChanged",e)}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return 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,o){const r=this.createColumnEvent(e,t);o&&po(r,o),this.colEventSvc.dispatchEvent(r)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function Tr(e){return fa(e)?{direction:e.direction,type:e.type}:{direction:Jd(e),type:In(e)}}function ci(e){return e==="asc"||e==="desc"||e===null}function ym(e){return e==="default"||e==="absolute"}function fa(e){if(!e||typeof e!="object")return!1;const t=e;return ym(t.type)&&ci(t.direction)}function Qd(e,t){return e?t?e.type===t.type&&e.direction===t.direction:e?e.direction===null:!0:t?t.direction===null:!0}function Jd(e){return ci(e)?e:null}function In(e){return ym(e)?e:"default"}function io(e){return e instanceof eh}var eh=class extends ue{constructor(e,t,o,r){super(),this.colGroupDef=e,this.groupId=t,this.padding=o,this.level=r,this.isColumn=!1,this.expandable=!1,this.instanceId=Ek(),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)li(t)?e(t):io(t)&&t.forEachLeafColumn(e)}addLeafColumns(e){if(this.children)for(const t of this.children)li(t)?e.push(t):io(t)&&t.addLeafColumns(e)}getColumnGroupShow(){const e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const e=this.onColumnVisibilityChanged.bind(this);for(const t of this.getLeafColumns())t.__addEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=()=>{for(const t of this.getLeafColumns())t.__removeEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,o=!1;const r=this.findChildrenRemovingPadding();for(let i=0,s=r.length;i<s;i++){const l=r[i];if(!l.isVisible())continue;const u=l.getColumnGroupShow();u==="open"?(e=!0,o=!0):u==="closed"?(t=!0,o=!0):(e=!0,t=!0)}const n=e&&t&&o;this.expandable!==n&&(this.expandable=n,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){const e=[],t=o=>{for(const r of o)io(r)&&r.isPadding()?t(r.children):e.push(r)};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},e7={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function Tk(e,t,o){const r={},n=e.gos;return Object.assign(r,n.get("defaultColGroupDef")),Object.assign(r,t),n.validateColDef(r,o),r}var t7=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=Qg(e);let o=0;for(;;){let r=e??t;if(r?o!==0&&(r+="_"+o):r=o,!this.existingKeys[r]){const n=String(r);return e&&o>0&&pe(273,{providedId:e,usedId:n}),this.existingKeys[n]=!0,n}o++}}};function st(e){if(e?.length)return e[e.length-1]}function ic(e,t,o){if(e===t)return!0;if(!e||!t)return e==null&&t==null;const r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n++)if(e[n]!==t[n]&&!o?.(e[n],t[n]))return!1;return!0}function sc(e,t){if(e){for(const o of e)if(t(o))return!0}}function pa(e,t){const o=e.indexOf(t);o>=0&&e.splice(o,1)}function Dk(e,t,o){for(let r=0;r<t.length;r++)pa(e,t[r]);for(let r=t.length-1;r>=0;r--)e.splice(o,0,t[r])}var th="ag-Grid-AutoColumn",o7="ag-Grid-SelectionColumn",r7="ag-Grid-RowNumbersColumn";function n7(e){const t=[],o=r=>{for(let n=0;n<r.length;n++){const i=r[n];li(i)?t.push(i):io(i)&&o(i.getChildren())}};return o(e),t}function ga(e){return e.reduce((t,o)=>t+o.getActualWidth(),0)}function Mk(e,t,o){const r={};if(!t)return;Bn(null,t,i=>{r[i.getInstanceId()]=i}),o&&Bn(null,o,i=>{r[i.getInstanceId()]=null});const n=Object.values(r).filter(i=>i!=null);e.context.destroyBeans(n)}function i7(e){return e.getId().startsWith(th)}function Sm(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(o7)??!1}function ma(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(r7)??!1}function oh(e){let t=[];return e instanceof Array?t=e:typeof e=="string"&&(t=e.split(",")),t}function rh(e){return e==="optionsUpdated"?"gridOptionsChanged":e}function s7(e,t){const o=e===t,r=e.getColDef()===t,n=e.getColId()==t;return o||r||n}var a7=(e,t)=>(o,r)=>{const n={value1:void 0,value2:void 0};let i=!1;return e&&(e[o]!==void 0&&(n.value1=e[o],i=!0),xe(r)&&e[r]!==void 0&&(n.value2=e[r],i=!0)),!i&&t&&(t[o]!==void 0&&(n.value1=t[o]),xe(r)&&t[r]!==void 0&&(n.value2=t[r])),n};function l7(e){const{sort:t,initialSort:o}=e,r=fa(t)||ci(t),n=fa(o)||ci(o);return r?Tr(t):n?Tr(o):null}var c7=(e,t)=>{io(e)&&e.setupExpandable(),e.originalParent=t};function u7(e,t=null,o,r,n){const i=new t7,{existingCols:s,existingGroups:l,existingColKeys:u}=d7(r);i.addExistingKeys(u);const d=Ak(e,t,0,o,s,i,l,n),{colGroupSvc:h}=e,p=h?.findMaxDepth(d,0)??0,g=h?h.balanceColumnTree(d,0,p,i):d;return Bn(null,g,c7),{columnTree:g,treeDepth:p}}function d7(e){const t=[],o=[],r=[];return e&&Bn(null,e,n=>{if(io(n)){const i=n;o.push(i)}else{const i=n;r.push(i.getId()),t.push(i)}}),{existingCols:t,existingGroups:o,existingColKeys:r}}function Ak(e,t,o,r,n,i,s,l){if(!t)return[];const{colGroupSvc:u}=e,d=new Array(t.length);for(let h=0;h<d.length;h++){const p=t[h];u&&v7(p)?d[h]=u.createProvidedColumnGroup(r,p,o,n,i,s,l):d[h]=h7(e,r,p,n,i,l)}return d}function h7(e,t,o,r,n,i){const s=p7(o,r);s&&r?.splice(s.idx,1);let l=s?.column;if(l){const u=xm(e,o,l.getColId());l.setColDef(u,o,i),f7(e,l,u,i)}else{const u=n.getUniqueKey(o.colId,o.field),d=xm(e,o,u);l=new ha(d,o,u,t),e.context.createBean(l)}return e.dataTypeSvc?.addColumnListeners(l),l}function _k(e,t,o,r,n,i,s,l){const{sortSvc:u,pinnedCols:d,colFlex:h}=e;o!==void 0&&t.setVisible(!o,l),u&&(u.updateColSort(t,r,l),n!==void 0&&u.setColSortIndex(t,n)),i!==void 0&&d?.setColPinned(t,i),s!==void 0&&h?.setColFlex(t,s)}function f7(e,t,o,r){_k(e,t,o.hide,o.sort,o.sortIndex,o.pinned,o.flex,r);const n=t.getFlex();if(!(n!=null&&n>0))if(o.width!=null)t.setActualWidth(o.width,r);else{const i=t.getActualWidth();t.setActualWidth(i,r)}}function p7(e,t){if(t)for(let o=0;o<t.length;o++){const r=t[o].getUserProvidedColDef();if(!r)continue;if(e.colId!=null){if(t[o].getId()===e.colId)return{idx:o,column:t[o]};continue}if(e.field!=null){if(r.field===e.field)return{idx:o,column:t[o]};continue}if(r===e)return{idx:o,column:t[o]}}}function xm(e,t,o,r){const{gos:n,dataTypeSvc:i}=e,s={},l=n.get("defaultColDef");po(s,l,!1,!0);const u=g7(e,s,t,o);u&&m7(e,u,s);const d=s.cellDataType;po(s,t,!1,!0),d!==void 0&&(s.cellDataType=d);const h=n.get("autoGroupColumnDef"),p=_n(n);return t.rowGroup&&h&&p&&po(s,{sort:h.sort,initialSort:h.initialSort},!1,!0),i?.postProcess(s),i?.validateColDef(s),n.validateColDef(s,o,r),s}function g7(e,t,o,r){const n=e.dataTypeSvc?.updateColDefAndGetColumnType(t,o,r),i=o.type??n??t.type;return t.type=i,i?oh(i):void 0}function m7(e,t,o){if(!t.length)return;const r=Object.assign({},e7),n=e.gos.get("columnTypes")||{};for(const i of Object.keys(n)){const s=n[i];i in r?pe(34,{key:i}):(s.type&&pe(35),r[i]=s)}for(const i of t){const s=r[i.trim()];s?po(o,s,!1,!0):pe(36,{t:i})}}function v7(e){return e.children!==void 0}function Bn(e,t,o){if(t)for(let r=0;r<t.length;r++){const n=t[r];io(n)&&Bn(n,n.getChildren(),o),o(n,e)}}function Ik(e,t){const o=[],r=[],n=[];return e.forEach(s=>{const l=s.getColDef().lockPosition;l==="right"?n.push(s):l==="left"||l===!0?o.push(s):r.push(s)}),t.get("enableRtl")?[...n,...r,...o]:[...o,...r,...n]}function Bk(e,t){let o=!0;return Bn(null,t,r=>{if(!io(r))return;const n=r;if(!n.getColGroupDef()?.marryChildren)return;const l=[];for(const g of n.getLeafColumns()){const v=e.indexOf(g);l.push(v)}const u=Math.max.apply(Math,l),d=Math.min.apply(Math,l),h=u-d,p=n.getLeafColumns().length-1;h>p&&(o=!1)}),o}function Ok(e,t){if(!e||e.length==0)return;const o=t(e[0]);for(let r=1;r<e.length;r++)if(o!==t(e[r]))return;return o}function Lk(e,t,o){if(!t.length)return;const r=t.length===1?t[0]:null,n=Ok(t,i=>i.getPinned());e.dispatchEvent({type:"columnPinned",pinned:n??null,columns:t,column:r,source:o})}function b7(e,t,o){if(!t.length)return;const r=t.length===1?t[0]:null,n=Ok(t,i=>i.isVisible());e.dispatchEvent({type:"columnVisible",visible:n,columns:t,column:r,source:o})}function C7(e,t,o,r){e.dispatchEvent({type:t,columns:o,column:o&&o.length==1?o[0]:null,source:r})}function nh(e,t,o,r,n=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:t.length===1?t[0]:null,flexColumns:n,finished:o,source:r})}function Nk(e,t,o){const{colModel:r,rowGroupColsSvc:n,pivotColsSvc:i,autoColSvc:s,selectionColSvc:l,colAnimation:u,visibleCols:d,pivotResultCols:h,environment:p,valueColsSvc:g,eventSvc:v,gos:b}=e,C=r.getColDefCols()??[],S=l?.getColumns();if(!C.length&&!S?.length)return!1;if(t?.state&&!t.state.forEach)return pe(32),!1;const k=(T,D,M,O,I)=>{if(!T)return;const z=a7(D,t.defaultState),U=z("flex").value1,q=z("sort").value1,A=z("sortType").value1,K=ci(q)||ym(A),$=In(A),Z=Jd(q),W=K?{type:$,direction:Z}:void 0;if(_k(e,T,z("hide").value1,W,z("sortIndex").value1,z("pinned").value1,U,o),U==null){const _=z("width").value1;if(_!=null){const V=T.getColDef().minWidth??p.getDefaultColumnMinWidth();V!=null&&_>=V&&T.setActualWidth(_,o)}}I||!T.isPrimary()||(g?.syncColumnWithState(T,o,z),n?.syncColumnWithState(T,o,z,M),i?.syncColumnWithState(T,o,z,O))},F=(T,D,M)=>{const O=zk(e,o),I=D.slice(),z={},U={},q=[],A=[],K=[];let $=0;const Z=n?.columns.slice()??[],W=i?.columns.slice()??[];for(const j of T){const L=j.colId;if(L.startsWith(th)){q.push(j),K.push(j);continue}if(Sm(L)){A.push(j),K.push(j);continue}const Y=M(L);Y?(k(Y,j,z,U,!1),pa(I,Y)):(K.push(j),$+=1)}const _=j=>k(j,null,z,U,!1);I.forEach(_),n?.sortColumns(Vk.bind(n,z,Z)),i?.sortColumns(Vk.bind(i,U,W)),r.refreshCols(!1,o);const V=(j,L,N=[])=>{for(const Y of L){const ne=j(Y.colId);pa(N,ne),k(ne,Y,null,null,!0)}N.forEach(_)};return V(j=>s?.getColumn(j)??null,q,s?.getColumns()?.slice()),V(j=>l?.getColumn(j)??null,A,l?.getColumns()?.slice()),y7(t,r,b),d.refresh(o),v.dispatchEvent({type:"columnEverythingChanged",source:o}),O(),{unmatchedAndAutoStates:K,unmatchedCount:$}};u?.start();let{unmatchedAndAutoStates:R,unmatchedCount:P}=F(t.state||[],C,T=>r.getColDefCol(T));if(R.length>0||xe(t.defaultState)){const T=h?.getPivotResultCols()?.list??[];P=F(R,T,D=>h?.getPivotResultCol(D)??null).unmatchedCount}return u?.finish(),P===0}function zk(e,t){const{rowGroupColsSvc:o,pivotColsSvc:r,valueColsSvc:n,colModel:i,sortSvc:s,eventSvc:l}=e,u={rowGroupColumns:o?.columns.slice()??[],pivotColumns:r?.columns.slice()??[],valueColumns:n?.columns.slice()??[]},d=Hk(e),h={};for(const p of d)h[p.colId]=p;return()=>{const p=(D,M,O,I)=>{const z=M.map(I),U=O.map(I);if(ic(z,U))return;const A=new Set(M);for(const $ of O)A.delete($)||A.add($);const K=[...A];l.dispatchEvent({type:D,columns:K,column:K.length===1?K[0]:null,source:t})},g=D=>{const M=[];return i.forAllCols(O=>{const I=h[O.getColId()];I&&D(I,O)&&M.push(O)}),M},v=D=>D.getColId();p("columnRowGroupChanged",u.rowGroupColumns,o?.columns??[],v),p("columnPivotChanged",u.pivotColumns,r?.columns??[],v);const C=g((D,M)=>{const O=D.aggFunc!=null,I=O!=M.isValueActive(),z=O&&D.aggFunc!=M.getAggFunc();return I||z});C.length>0&&C7(l,"columnValueChanged",C,t),nh(l,g((D,M)=>D.width!=M.getActualWidth()),!0,t),Lk(l,g((D,M)=>D.pinned!=M.getPinned()),t),b7(l,g((D,M)=>D.hide==M.isVisible()),t);const P=g((D,M)=>!Qd(M.getSortDef(),{type:In(D.sortType),direction:Jd(D.sort)})||D.sortIndex!=M.getSortIndex());P.length>0&&s?.dispatchSortChangedEvents(t,P);const T=Hk(e);x7(d,T,t,i,l)}}function Hk(e){const{colModel:t,rowGroupColsSvc:o,pivotColsSvc:r}=e,n=t.getColDefCols();if(Ht(n)||!t.isAlive())return[];const i=o?.columns,s=r?.columns,l=[],u=h=>{const p=h.isRowGroupActive()&&i?i.indexOf(h):null,g=h.isPivotActive()&&s?s.indexOf(h):null,v=h.isValueActive()?h.getAggFunc():null,b=h.getSortIndex()!=null?h.getSortIndex():null;l.push({colId:h.getColId(),width:h.getActualWidth(),hide:!h.isVisible(),pinned:h.getPinned(),sort:h.getSort(),sortType:h.getSortDef()?.type,sortIndex:b,aggFunc:v,rowGroup:h.isRowGroupActive(),rowGroupIndex:p,pivot:h.isPivotActive(),pivotIndex:g,flex:h.getFlex()??null})};t.forAllCols(h=>u(h));const d=new Map(t.getCols().map((h,p)=>[h.getColId(),p]));return l.sort((h,p)=>{const g=d.has(h.colId)?d.get(h.colId):-1,v=d.has(p.colId)?d.get(p.colId):-1;return g-v}),l}function w7(e){const t=(S,k)=>S??k??null,o=e.getColDef(),r=Tr(t(o.sort,o.initialSort)),n=r.direction,i=r.type,s=t(o.sortIndex,o.initialSortIndex),l=t(o.hide,o.initialHide),u=t(o.pinned,o.initialPinned),d=t(o.width,o.initialWidth),h=t(o.flex,o.initialFlex);let p=t(o.rowGroupIndex,o.initialRowGroupIndex),g=t(o.rowGroup,o.initialRowGroup);p==null&&!g&&(p=null,g=null);let v=t(o.pivotIndex,o.initialPivotIndex),b=t(o.pivot,o.initialPivot);v==null&&!b&&(v=null,b=null);const C=t(o.aggFunc,o.initialAggFunc);return{colId:e.getColId(),sort:n,sortType:i,sortIndex:s,hide:l,pinned:u,width:d,flex:h,rowGroup:g,rowGroupIndex:p,pivot:b,pivotIndex:v,aggFunc:C}}function y7(e,t,o){if(!e.applyOrder||!e.state)return;const r=[];for(const n of e.state)n.colId!=null&&r.push(n.colId);S7(t.cols,r,t,o)}function S7(e,t,o,r){if(e==null)return;let n=[];const i={};for(const l of t){if(i[l])continue;const u=e.map[l];u&&(n.push(u),i[l]=!0)}let s=0;for(const l of e.list){const u=l.getColId();if(i[u]!=null)continue;u.startsWith(th)?n.splice(s++,0,l):n.push(l)}if(n=Ik(n,r),!Bk(n,o.getColTree())){pe(39);return}e.list=n}function x7(e,t,o,r,n){const i={};for(const h of t)i[h.colId]=h;const s={};for(const h of e)i[h.colId]&&(s[h.colId]=!0);const l=e.filter(h=>s[h.colId]),u=t.filter(h=>s[h.colId]),d=[];u.forEach((h,p)=>{const g=l?.[p];if(g&&g.colId!==h.colId){const v=r.getCol(g.colId);v&&d.push(v)}}),d.length&&n.dispatchEvent({type:"columnMoved",columns:d,column:d.length===1?d[0]:null,finished:!0,source:o})}var Vk=(e,t,o,r)=>{const n=e[o.getId()],i=e[r.getId()],s=n!=null,l=i!=null;if(s&&l)return n-i;if(s)return-1;if(l)return 1;const u=t.indexOf(o),d=t.indexOf(r),h=u>=0,p=d>=0;return h&&p?u-d:h?-1:1},k7=class extends ue{constructor(){super(...arguments),this.beanName="colModel",this.pivotMode=!1,this.ready=!1,this.changeEventsDispatching=!1}postConstruct(){this.pivotMode=this.gos.get("pivotMode"),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents","rowNumbers","hidePaddedHeaderRows"],e=>this.refreshAll(rh(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],this.recreateColumnDefs.bind(this)),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),rh(e.source)))}createColsFromColDefs(e){const{beans:t}=this,{valueCache:o,colAutosize:r,rowGroupColsSvc:n,pivotColsSvc:i,valueColsSvc:s,visibleCols:l,eventSvc:u,groupHierarchyColSvc:d}=t,h=this.colDefs?zk(t,e):void 0;o?.expire();const p=this.colDefCols?.list,g=this.colDefCols?.tree,v=u7(t,this.colDefs,!0,g,e);Mk(t,this.colDefCols?.tree,v.columnTree);const b=v.columnTree,C=v.treeDepth,S=n7(b),k={};for(const F of S)k[F.getId()]=F;this.colDefCols={tree:b,treeDepth:C,list:S,map:k},this.createColumnsForService([d],this.colDefCols,e),n?.extractCols(e,p),i?.extractCols(e,p),s?.extractCols(e,p),this.ready=!0,this.changeEventsDispatching=!0,this.refreshCols(!0,e),this.changeEventsDispatching=!1,l.refresh(e),u.dispatchEvent({type:"columnEverythingChanged",source:e}),h&&(this.changeEventsDispatching=!0,h(),this.changeEventsDispatching=!1),u.dispatchEvent({type:"newColumnsLoaded",source:e}),e==="gridInitializing"&&r?.applyAutosizeStrategy()}refreshCols(e,t){if(!this.colDefCols)return;const o=this.cols?.tree;this.saveColOrder();const{autoColSvc:r,selectionColSvc:n,rowNumbersSvc:i,quickFilter:s,pivotResultCols:l,showRowGroupCols:u,rowAutoHeight:d,visibleCols:h,colViewport:p,eventSvc:g,formula:v}=this.beans,b=this.selectCols(l,this.colDefCols);v?.setFormulasActive(b),this.createColumnsForService([r,n,i],b,t);const C=_V(this.gos,this.showingPivotResult);(!e||C)&&this.restoreColOrder(b),this.positionLockedCols(b),u?.refresh(),s?.refreshCols(),this.setColSpanActive(),d?.setAutoHeightActive(b),h.clear(),p.clear(),ic(o,this.cols.tree)||g.dispatchEvent({type:"gridColumnsChanged"})}createColumnsForService(e,t,o){for(const r of e)r&&(r.createColumns(t,n=>{this.lastOrder=n(this.lastOrder),this.lastPivotOrder=n(this.lastPivotOrder)},o),r.addColumns(t))}selectCols(e,t){const o=e?.getPivotResultCols()??null;this.showingPivotResult=o!=null;const{map:r,list:n,tree:i,treeDepth:s}=o??t;return this.cols={list:n.slice(),map:{...r},tree:i.slice(),treeDepth:s},o&&(o.list.some(u=>this.cols?.map[u.getColId()]!==void 0)||(this.lastPivotOrder=null)),this.cols}getColsToShow(){if(!this.cols)return[];const{beans:e,showingPivotResult:t,cols:o}=this,{valueColsSvc:r,selectionColSvc:n}=e,i=this.isPivotMode()&&!t,s=n?.isSelectionColumnEnabled(),l=IV(e),u=r?.columns;return o.list.filter(h=>{const p=i7(h);if(i){const g=u?.includes(h);return p||g||s&&Sm(h)||l&&ma(h)}else return p||h.isVisible()})}refreshAll(e){this.ready&&(this.refreshCols(!1,e),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,o){Nk(this.beans,{state:e.map(r=>({colId:typeof r=="string"?r:r.getColId(),hide:!t}))},o)}restoreColOrder(e){const t=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!t)return;const o=t.filter(p=>e.map[p.getId()]!=null);if(o.length===0)return;if(o.length===e.list.length){e.list=o;return}const r=p=>{const g=p.getOriginalParent();return g?g.getChildren().length>1?!0:r(g):!1};if(!o.some(p=>r(p))){const p=new Set(o);for(const g of e.list)p.has(g)||o.push(g);e.list=o;return}const n=new Map;for(let p=0;p<o.length;p++){const g=o[p];n.set(g,p)}const i=e.list.filter(p=>!n.has(p));if(i.length===0){e.list=o;return}const s=(p,g)=>{const v=g?g.getOriginalParent():p.getOriginalParent();if(!v)return null;let b=null,C=null;for(const S of v.getChildren())if(!(S===g||S===p)){if(S instanceof ha){const k=n.get(S);if(k==null)continue;(b==null||b<k)&&(b=k,C=S);continue}S.forEachLeafColumn(k=>{const F=n.get(k);F!=null&&(b==null||b<F)&&(b=F,C=k)})}return C??s(p,v)},l=[],u=new Map;for(const p of i){const g=s(p,null);if(g==null){l.push(p);continue}const v=u.get(g);v===void 0?u.set(g,p):Array.isArray(v)?v.push(p):u.set(g,[v,p])}const d=new Array(e.list.length);let h=d.length-1;for(let p=l.length-1;p>=0;p--)d[h--]=l[p];for(let p=o.length-1;p>=0;p--){const g=o[p],v=u.get(g);if(v)if(Array.isArray(v))for(let b=v.length-1;b>=0;b--){const C=v[b];d[h--]=C}else d[h--]=v;d[h--]=g}e.list=d}positionLockedCols(e){e.list=Ik(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:o,eventSvc:r}=this.beans;o.refresh(t),r.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=rh(e.source);this.createColsFromColDefs(t)}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){Mk(this.beans,this.colDefCols?.tree),super.destroy()}getColTree(){return this.cols?.tree??[]}getColDefColTree(){return this.colDefCols?.tree??[]}getColDefCols(){return this.colDefCols?.list??null}getCols(){return this.cols?.list??[]}forAllCols(e){const{pivotResultCols:t,autoColSvc:o,selectionColSvc:r,groupHierarchyColSvc:n}=this.beans;sc(this.colDefCols?.list,e)||sc(o?.columns?.list,e)||sc(r?.columns?.list,e)||sc(n?.columns?.list,e)||sc(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:o,list:r}=t;if(typeof e=="string"&&o[e])return o[e];for(let l=0;l<r.length;l++)if(s7(r[l],e))return r[l];const{autoColSvc:n,selectionColSvc:i,groupHierarchyColSvc:s}=this.beans;return n?.getColumn(e)??i?.getColumn(e)??s?.getColumn(e)??null}},F7=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let o;return typeof t!="number"?o=0:o=t+1,this.existingIds[e]=o,o}},va=class extends ue{};function ac(e,t,o){return o&&e.addDestroyFunc(()=>t.destroyBean(o)),o??e}var Me=null;function Gk(e){return typeof e?.getGui=="function"}var lc=class{constructor(e){this.cssClassStates={},this.getGui=e}toggleCss(e,t){if(!e)return;if(e.includes(" ")){const r=(e||"").split(" ");if(r.length>1){for(const n of r)this.toggleCss(n,t);return}}this.cssClassStates[e]!==t&&e.length&&(this.getGui()?.classList.toggle(e,t),this.cssClassStates[e]=t)}},R7=0,cc=class extends xo{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=R7++,this.cssManager=new lc(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(o=>[o.selector,o])),e&&this.setTemplate(e)}preConstruct(){this.wireTemplate(this.getGui());const e="component-"+Object.getPrototypeOf(this)?.constructor?.name;for(const t of this.css??[])this.beans.environment.addGlobalCSS(t,e)}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute(Jx):null}applyElementsToComponent(e,t,o,r=null){if(t===void 0&&(t=this.getDataRefAttribute(e)),t){const n=this[t];if(n===Me)this[t]=r??e;else{const i=o?.[t];if(!this.suppressDataRefValidation&&!i)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${n}`)}}}createChildComponentsFromTags(e,t){const o=[];for(const r of e.childNodes??[])o.push(r);for(const r of o){if(!(r instanceof HTMLElement))continue;const n=this.createComponentFromElement(r,i=>{const s=i.getGui();if(s)for(const l of r.attributes??[])s.setAttribute(l.name,l.value)},t);if(n){if(n.addItems&&r.children.length){this.createChildComponentsFromTags(r,t);const i=Array.prototype.slice.call(r.children);n.addItems(i)}this.swapComponentForNode(n,e,r)}else r.childNodes&&this.createChildComponentsFromTags(r,t)}}createComponentFromElement(e,t,o){const r=e.nodeName,n=this.getDataRefAttribute(e),i=r.indexOf("AG-")===0,s=i?this.componentSelectors.get(r):null;let l=null;if(s){const u=o&&n?o[n]:void 0;l=new s.component(u),l.setParentComponent(this),this.createBean(l,null,t)}else if(i)throw new Error(`selector: ${r}`);return this.applyElementsToComponent(e,n,o,l),l}swapComponentForNode(e,t,o){const r=e.getGui();t.replaceChild(r,o),t.insertBefore(document.createComment(o.nodeName),r),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e,t){const o=t??this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui());for(const r of e)r.setAttribute("tabindex",o.toString())}setTemplate(e,t,o){let r;typeof e=="string"||e==null?r=nm(e):r=ai(e),this.setTemplateFromElement(r,t,o)}setTemplateFromElement(e,t,o,r=!1){if(this.eGui=e,this.suppressDataRefValidation=r,t)for(let n=0;n<t.length;n++){const i=t[n];this.componentSelectors.set(i.selector,i)}this.wireTemplate(e,o)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(e){this.parentComponent=e}getParentComponent(){return this.parentComponent}setGui(e){this.eGui=e}queryForHtmlElement(e){return this.eGui.querySelector(e)}getContainerAndElement(e,t){let o=t;return e==null?null:(o||(o=this.eGui),Qx(e)?{element:e,parent:o}:{element:e.getGui(),parent:o})}prependChild(e,t){const{element:o,parent:r}=this.getContainerAndElement(e,t)||{};!o||!r||r.insertAdjacentElement("afterbegin",o)}appendChild(e,t){const{element:o,parent:r}=this.getContainerAndElement(e,t)||{};!o||!r||r.appendChild(o)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:o}=t;eV(this.eGui,e,{skipAriaHidden:o})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:o}=t;gt(this.eGui,e,{skipAriaHidden:o});const r={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(r)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(e,t,o){this.eGui.addEventListener(e,t,o),this.addDestroyFunc(()=>this.eGui.removeEventListener(e,t))}addCss(e){this.cssManager.toggleCss(e,!0)}removeCss(e){this.cssManager.toggleCss(e,!1)}toggleCss(e,t){this.cssManager.toggleCss(e,t)}registerCSS(e){this.css||(this.css=[]),this.css.push(e)}},ko=class extends cc{};function jk(e){return typeof e=="object"&&!!e.component}function P7(e,t){return new Ve(o=>{o(window.setInterval(e,t))})}var Ve=class du{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(o=>this.onDone(o),o=>this.onReject(o))}static all(t){return t.length?new du(o=>{let r=t.length;const n=new Array(r);t.forEach((i,s)=>{i.then(l=>{n[s]=l,r--,r===0&&o(n)})})}):du.resolve()}static resolve(t=null){return new du(o=>o(t))}then(t){return new du(o=>{this.status===1?o(t(this.resolution)):this.waiters.push(r=>o(t(r)))})}onDone(t){this.status=1,this.resolution=t;for(const o of this.waiters)o(t)}onReject(t){}};function E7(e){return e?e.prototype&&"getGui"in e.prototype:!1}function Wk(e,t,o,r){const{name:n}=o;let i,s,l,u,d,h;if(t){const p=t,g=p[n+"Selector"],v=g?g(r):null,b=C=>{typeof C=="string"?i=C:C!=null&&C!==!0&&(e.isFrameworkComponent(C)?l=C:s=C)};v?(b(v.component),u=v.params,d=v.popup,h=v.popupPosition):b(p[n])}return{compName:i,jsComp:s,fwComp:l,paramsFromSelector:u,popupFromSelector:d,popupPositionFromSelector:h}}var T7=class extends ue{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(e){this.agCompUtils=e.agCompUtils,this.registry=e.registry,this.frameworkCompWrapper=e.frameworkCompWrapper,this.gridOptions=e.gridOptions}getCompDetailsFromGridOptions(e,t,o,r=!1){return this.getCompDetails(this.gridOptions,e,t,o,r)}getCompDetails(e,t,o,r,n=!1){const{name:i,cellRenderer:s}=t;let{compName:l,jsComp:u,fwComp:d,paramsFromSelector:h,popupFromSelector:p,popupPositionFromSelector:g}=Wk(this.beans.frameworkOverrides,e,t,r),v,b;const C=R=>{const P=this.registry.getUserComponent(i,R);P&&(u=P.componentFromFramework?void 0:P.component,d=P.componentFromFramework?P.component:void 0,v=P.params,b=P.processParams)};if(l!=null&&C(l),u==null&&d==null&&o!=null&&C(o),u&&s&&!E7(u)&&(u=this.agCompUtils?.adaptFunction(t,u)),!u&&!d){const{validation:R}=this.beans;n&&(l!==o||!o)?l?R?.isProvidedUserComp(l)||yt(50,{compName:l}):o?R||yt(260,{...this.gos.getModuleErrorParams(),propName:i,compName:o}):yt(216,{name:i}):o&&!R&&yt(146,{comp:o});return}const S=this.mergeParams(e,t,r,h,v,b),k=u==null,F=u??d;return{componentFromFramework:k,componentClass:F,params:S,type:t,popupFromSelector:p,popupPositionFromSelector:g,newAgStackInstance:()=>this.newAgStackInstance(F,k,S,t)}}newAgStackInstance(e,t,o,r){const n=!t;let i;n?i=new e:i=this.frameworkCompWrapper.wrap(e,r.mandatoryMethods,r.optionalMethods,r),this.createBean(i);const s=i.init?.(o);return s==null?Ve.resolve(i):s.then(()=>i)}mergeParams(e,t,o,r=null,n,i){const s={...o,...n},u=e?.[t.name+"Params"];if(typeof u=="function"){const d=u(o);po(s,d)}else typeof u=="object"&&po(s,u);return po(s,r),i?i(s):s}},D7={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},M7={name:"headerComponent",optionalMethods:["refresh"]},A7={name:"innerHeaderComponent"},_7={name:"innerHeaderGroupComponent"},I7={name:"headerGroupComponent"},B7={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},O7={name:"loadingCellRenderer",cellRenderer:!0},L7={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},N7={name:"tooltipComponent"},km={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},z7={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},H7={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},V7={name:"loadingCellRenderer",cellRenderer:!0},G7={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},j7={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function W7(e,t){return e.getCompDetailsFromGridOptions(D7,"agDragAndDropImage",t,!0)}function q7(e,t,o){return e.getCompDetails(t,M7,"agColumnHeader",o)}function U7(e,t,o){return e.getCompDetails(t,A7,void 0,o)}function $7(e,t){const o=t.columnGroup.getColGroupDef();return e.getCompDetails(o,I7,"agColumnGroupHeader",t)}function K7(e,t,o){return e.getCompDetails(t,_7,void 0,o)}function X7(e,t){return e.getCompDetailsFromGridOptions(H7,void 0,t,!0)}function Z7(e,t){return e.getCompDetailsFromGridOptions(V7,"agLoadingCellRenderer",t,!0)}function Y7(e,t){return e.getCompDetailsFromGridOptions(G7,"agGroupRowRenderer",t,!0)}function Q7(e,t){return e.getCompDetailsFromGridOptions(j7,"agDetailCellRenderer",t,!0)}function qk(e,t,o){return e.getCompDetails(t,B7,void 0,o)}function Uk(e,t,o){return e.getCompDetails(t,O7,"agSkeletonCellRenderer",o,!0)}function $k(e,t,o){return e.getCompDetails(t,L7,"agCellEditor",o,!0)}function J7(e,t,o,r){const n=t.filter;return jk(n)&&(t={filter:n.component,filterParams:t.filterParams}),e.getCompDetails(t,km,r,o,!0)}function e9(e,t){return e.getCompDetails(t.colDef,N7,"agTooltipComponent",t,!0)}function t9(e,t,o,r){return e.getCompDetails(t,z7,r,o)}function Kk(e,t){return Wk(e,t,km)}function Fm(e,t,o){return e.mergeParams(t,km,o)}function Rm(e){const t=e;return t?.getFrameworkComponentInstance!=null?t.getFrameworkComponentInstance():e}function o9(e){return typeof e=="object"&&!!e.getComp}var te={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"},r9=65,n9=67,i9=86,s9=68,a9=90,l9=89;function Xk(e){const{keyCode:t}=e;let o;switch(t){case r9:o=te.A;break;case n9:o=te.C;break;case i9:o=te.V;break;case s9:o=te.D;break;case a9:o=te.Z;break;case l9:o=te.Y;break;default:o=e.code}return o}var Pm=class extends cc{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()}},Em,Tm,Dm,Mm,Am,_m,Im;function uc(){return Em===void 0&&(Em=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Em}function Zk(){return Tm===void 0&&(Tm=/(firefox)/i.test(navigator.userAgent)),Tm}function Yk(){return Dm===void 0&&(Dm=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Dm}function es(){return Mm===void 0&&(Mm=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),Mm}function Bm(e){if(!e)return null;const t=e.tabIndex,o=e.getAttribute("tabIndex");return t===-1&&(o===null||o===""&&!Zk())?null:t.toString()}function c9(){if(Im!==void 0)return Im;if(!document.body)return-1;let e=1e6;const t=Zk()?6e6:1e9,o=document.createElement("div");for(document.body.appendChild(o);;){const r=e*2;if(o.style.height=r+"px",r>t||o.clientHeight!==r)break;e=r}return o.remove(),Im=e,e}function u9(){return _m==null&&Qk(),_m}function Qk(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let o=t.offsetWidth-t.clientWidth;o===0&&t.clientWidth===0&&(o=null),t.parentNode&&t.remove(),o!=null&&(_m=o,Am=o===0)}function Jk(){return Am==null&&Qk(),Am}var Om=!1,ih=0;function d9(e){ih>0||(e.addEventListener("keydown",sh),e.addEventListener("mousedown",sh))}function h9(e){ih>0||(e.removeEventListener("keydown",sh),e.removeEventListener("mousedown",sh))}function sh(e){const t=Om,o=e.type==="keydown";o&&(e.ctrlKey||e.metaKey||e.altKey)||t!==o&&(Om=o)}function f9(e){const t=Zt(e);return d9(t),ih++,()=>{ih--,h9(t)}}function eF(){return Om}function ba(e,t,o=!1){const r=J8;let n=Kx;t&&(n+=", "+t),o&&(n+=', [tabindex="-1"]');const i=Array.prototype.slice.apply(e.querySelectorAll(r)).filter(u=>Tn(u)),s=Array.prototype.slice.apply(e.querySelectorAll(n));return s.length?((u,d)=>u.filter(h=>d.indexOf(h)===-1))(i,s):i}function ts(e,t=!1,o=!1,r=!1){const n=ba(e,r?".ag-tab-guard":null,o),i=t?st(n):n[0];return i?(i.focus({preventScroll:!0}),!0):!1}function Ca(e,t,o,r){const n=ba(t,o?':not([tabindex="-1"])':null),i=At(e);let s;o?s=n.findIndex(u=>u.contains(i)):s=n.indexOf(i);const l=s+(r?-1:1);return l<0||l>=n.length?null:n[l]}function tF(e,t=5){let o=0;for(;e&&Bm(e)===null&&++o<=t;)e=e.parentElement;return Bm(e)===null?null:e}var p9="ag-focus-managed",oF=class extends xo{constructor(e,t={isStopPropagation:()=>!1,stopPropagation:()=>{}},o={}){super(),this.eFocusable=e,this.stopPropagationCallbacks=t,this.callbacks=o,this.callbacks={shouldStopEventPropagation:()=>!1,onTabKeyDown:r=>{if(r.defaultPrevented)return;const n=Ca(this.beans,this.eFocusable,!1,r.shiftKey);n&&(n.focus(),r.preventDefault())},...o}}postConstruct(){const{eFocusable:e,callbacks:{onFocusIn:t,onFocusOut:o}}=this;e.classList.add(p9),this.addKeyDownListeners(e),t&&this.addManagedElementListeners(e,{focusin:t}),o&&this.addManagedElementListeners(e,{focusout:o})}addKeyDownListeners(e){this.addManagedElementListeners(e,{keydown:t=>{if(t.defaultPrevented||this.stopPropagationCallbacks.isStopPropagation(t))return;const{callbacks:o}=this;if(o.shouldStopEventPropagation(t)){this.stopPropagationCallbacks.stopPropagation(t);return}t.key===te.TAB?o.onTabKeyDown(t):o.handleKeyDown&&o.handleKeyDown(t)}})}},Lm={TAB_GUARD:"ag-tab-guard",TAB_GUARD_TOP:"ag-tab-guard-top",TAB_GUARD_BOTTOM:"ag-tab-guard-bottom"},g9=class extends xo{constructor(e,t){super(),this.stopPropagationCallbacks=t,this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;const{comp:o,eTopGuard:r,eBottomGuard:n,focusTrapActive:i,forceFocusOutWhenTabGuardsAreEmpty:s,isFocusableContainer:l,focusInnerElement:u,onFocusIn:d,onFocusOut:h,shouldStopEventPropagation:p,onTabKeyDown:g,handleKeyDown:v,isEmpty:b,eFocusableElement:C}=e;this.comp=o,this.eTopGuard=r,this.eBottomGuard=n,this.providedFocusInnerElement=u,this.eFocusableElement=C,this.focusTrapActive=!!i,this.forceFocusOutWhenTabGuardsAreEmpty=!!s,this.isFocusableContainer=!!l,this.providedFocusIn=d,this.providedFocusOut=h,this.providedShouldStopEventPropagation=p,this.providedOnTabKeyDown=g,this.providedHandleKeyDown=v,this.providedIsEmpty=b}postConstruct(){this.createManagedBean(new oF(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():ba(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=Zt(this.beans),o=ba(t.body,null,!0),r=o.indexOf(e?this.eTopGuard:this.eBottomGuard);if(r===-1)return;let n,i;e?(n=0,i=r):(n=r+1,i=o.length);const s=o.slice(n,i),l=this.gos.get("tabIndex");s.sort((u,d)=>{const h=Number.parseInt(u.getAttribute("tabindex")||"0"),p=Number.parseInt(d.getAttribute("tabindex")||"0");return p===l?1:h===l?-1:h===0?1:p===0?-1:h-p}),s[e?s.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 o=this.getNextFocusableElement(e.shiftKey);t&&setTimeout(()=>this.activateTabGuards(),0),o&&(o.focus(),e.preventDefault())}focusInnerElement(e=!1){const t=ba(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 Ca(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}},rF="ag-resizer-wrapper",ui=(e,t)=>({tag:"div",ref:`${e}Resizer`,cls:`ag-resizer ag-resizer-${t}`}),m9={tag:"div",cls:rF,children:[ui("eTopLeft","topLeft"),ui("eTop","top"),ui("eTopRight","topRight"),ui("eRight","right"),ui("eBottomRight","bottomRight"),ui("eBottom","bottom"),ui("eBottomLeft","bottomLeft"),ui("eLeft","left")]},v9=class extends xo{constructor(e,t){super(),this.element=e,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0},this.lastSize={width:-1,height:-1},this.positioned=!1,this.resizersAdded=!1,this.resizeListeners=[],this.boundaryEl=null,this.isResizing=!1,this.isMoving=!1,this.resizable={},this.movable=!1,this.currentResizer=null,this.config={popup:!1,...t}}wireBeans(e){this.popupSvc=e.popupSvc,this.dragSvc=e.dragSvc}center(e){const{clientHeight:t,clientWidth:o}=this.offsetParent,r=o/2-this.getWidth()/2,n=t/2-this.getHeight()/2;this.offsetElement(r,n,e)}initialisePosition(e){if(this.positioned)return;const{centered:t,forcePopupParentAsOffsetParent:o,minWidth:r,width:n,minHeight:i,height:s,x:l,y:u}=this.config;this.offsetParent||this.setOffsetParent();let d=0,h=0;const p=Tn(this.element);if(p){const g=this.findBoundaryElement(),v=window.getComputedStyle(g);if(v.minWidth!=null){const b=g.offsetWidth-this.element.offsetWidth;h=Number.parseInt(v.minWidth,10)-b}if(v.minHeight!=null){const b=g.offsetHeight-this.element.offsetHeight;d=Number.parseInt(v.minHeight,10)-b}}if(this.minHeight=i||d,this.minWidth=r||h,n&&this.setWidth(n),s&&this.setHeight(s),(!n||!s)&&this.refreshSize(),t)this.center(e);else if(l||u)this.offsetElement(l,u,e);else if(p&&o){let g=this.boundaryEl,v=!0;if(g||(g=this.findBoundaryElement(),v=!1),g){const b=Number.parseFloat(g.style.top),C=Number.parseFloat(g.style.left);v?this.offsetElement(Number.isNaN(C)?0:C,Number.isNaN(b)?0:b,e):this.setPosition(C,b)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(e,t){if(!this.config.popup||e===this.movable)return;this.movable=e;const o=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragSvc?.addDragSource(o),this.moveElementDragListener=o):(this.dragSvc?.removeDragSource(o),this.moveElementDragListener=void 0)}setResizable(e){if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),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 o=!!e[t],r=this.getResizerElement(t),n={dragStartPixels:0,eElement:r,onDragStart:i=>this.onResizeStart(i,t),onDragging:this.onResize.bind(this),onDragStop:i=>this.onResizeEnd(i,t)};(o||!this.isAlive()&&!o)&&(o?(this.dragSvc?.addDragSource(n),this.resizeListeners.push(n),r.style.pointerEvents="all"):r.style.pointerEvents="none",this.resizable[t]=o)}}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";const{height:e,width:t}=this.lastSize;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,o=this.element;let r=!1;if(typeof e=="string"&&e.includes("%"))Jl(o,e),e=Xx(o),r=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const n=this.getAvailableHeight();n&&e>n&&(e=n)}this.getHeight()!==e&&(r?(o.style.maxHeight="unset",o.style.minHeight="unset"):t?Jl(o,e):(o.style.height=`${e}px`,o.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:o}=this.offsetParent;if(!o)return null;const r=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),i=e?this.position.y:r.top,s=e?0:n.top;let l=0;if(t){const d=this.element.parentElement;if(d){const{bottom:h}=d.getBoundingClientRect();l=h-r.bottom}}return o+s-i-l}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element,{popup:o}=this.config;let r=!1;if(typeof e=="string"&&e.includes("%"))Yr(t,e),e=zd(t),r=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{clientWidth:n}=this.offsetParent,i=o?this.position.x:this.element.getBoundingClientRect().left;n&&e+i>n&&(e=n-i)}this.getWidth()!==e&&(r?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?Yr(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,o){const{forcePopupParentAsOffsetParent:r}=this.config,n=r?this.boundaryEl:this.element;n&&(this.popupSvc?.positionPopup({ePopup:n,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t}),postProcessCallback:o}),this.setPosition(Number.parseFloat(n.style.left),Number.parseFloat(n.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;const t=()=>{const o=this.getAvailableHeight();this.element.style.setProperty("max-height",`${o}px`)};e&&this.popupSvc?(this.resizeObserverSubscriber?.(),this.resizeObserverSubscriber=Dn(this.beans,this.popupSvc?.getPopupParent(),t)):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(e,t){this.position.x=e,this.position.y=t}updateDragStartPosition(e,t){this.dragStartPosition={x:e,y:t}}calculateMouseMovement(e){const{e:t,isLeft:o,isTop:r,anywhereWithin:n,topBuffer:i}=e,s=t.clientX-this.dragStartPosition.x,l=t.clientY-this.dragStartPosition.y,u=this.shouldSkipX(t,!!o,!!n,s)?0:s,d=this.shouldSkipY(t,!!r,i,l)?0:l;return{movementX:u,movementY:d}}shouldSkipX(e,t,o,r){const n=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),l=this.config.popup?this.position.x:n.left;let u=l<=0&&i.left>=e.clientX||i.right<=e.clientX&&i.right<=s.right;return u?!0:(t?u=r<0&&e.clientX>l+i.left||r>0&&e.clientX<l+i.left:o?u=r<0&&e.clientX>s.right||r>0&&e.clientX<l+i.left:u=r<0&&e.clientX>s.right||r>0&&e.clientX<s.right,u)}shouldSkipY(e,t,o=0,r){const n=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),l=this.config.popup?this.position.y:n.top;let u=l<=0&&i.top>=e.clientY||i.bottom<=e.clientY&&i.bottom<=s.bottom;return u?!0:(t?u=r<0&&e.clientY>l+i.top+o||r>0&&e.clientY<l+i.top:u=r<0&&e.clientY>s.bottom||r>0&&e.clientY<s.bottom,u)}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(ai(m9)),this.createResizeMap(),this.resizersAdded=!0)}removeResizers(){this.resizerMap=void 0,this.element.querySelector(`.${rF}`)?.remove(),this.resizersAdded=!1}getResizerElement(e){return this.resizerMap[e].element}onResizeStart(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");const{popup:o,forcePopupParentAsOffsetParent:r}=this.config;!o&&!r&&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(o=>!o.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,o=0;for(const r of e){const n=!!r.style.flex&&r.style.flex!=="0 0 auto";if(r===this.element)continue;let i=this.minHeight||0,s=this.minWidth||0;if(n){const l=window.getComputedStyle(r);l.minHeight&&(i=Number.parseInt(l.minHeight,10)),l.minWidth&&(s=Number.parseInt(l.minWidth,10))}else i=r.offsetHeight,s=r.offsetWidth;t+=i,o+=s}return{height:t,width:o}}applySizeToSiblings(e){let t=null;const o=this.getSiblings();if(o){for(let r=0;r<o.length;r++){const n=o[r];n!==t&&(e?n.style.height=`${n.offsetHeight}px`:n.style.width=`${n.offsetWidth}px`,n.style.flex="0 0 auto",n===this.element&&(t=o[r+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}}isResizable(){return Object.values(this.resizable).some(e=>e)}onResize(e){if(!this.isResizing||!this.currentResizer)return;const{popup:t,forcePopupParentAsOffsetParent:o}=this.config,{isTop:r,isRight:n,isBottom:i,isLeft:s}=this.currentResizer,l=n||s,u=i||r,{movementX:d,movementY:h}=this.calculateMouseMovement({e,isLeft:s,isTop:r}),p=this.position.x,g=this.position.y;let v=0,b=0;if(l&&d){const C=s?-1:1,S=this.getWidth(),k=S+d*C;let F=!1;s&&(v=S-k,(p+v<=0||k<=this.minWidth)&&(F=!0,v=0)),F||this.setWidth(k)}if(u&&h){const C=r?-1:1,S=this.getHeight(),k=S+h*C;let F=!1;r?(b=S-k,(g+b<=0||k<=this.minHeight)&&(F=!0,b=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&S<k&&this.getMinSizeOfSiblings().height+k>this.element.parentElement.offsetHeight&&(F=!0),F||this.setHeight(k)}this.updateDragStartPosition(e.clientX,e.clientY),((t||o)&&v||b)&&this.offsetElement(p+v,g+b)}onResizeEnd(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){const e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))}onMoveStart(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)}onMove(e){if(!this.isMoving)return;const{x:t,y:o}=this.position;let r;this.config.calculateTopBuffer&&(r=this.config.calculateTopBuffer());const{movementX:n,movementY:i}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:r});this.offsetElement(t+n,o+i),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()}},Nm="T",b9=new RegExp(`[${Nm} ]`),C9=new RegExp(`^\\d{4}-\\d{2}-\\d{2}(${Nm}\\d{2}:\\d{2}:\\d{2}\\D?)?`);function os(e,t){return e.toString().padStart(t,"0")}function nF(e,t=!0,o=Nm){if(!e)return null;let r=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(n=>os(n,2)).join("-");return t&&(r+=o+[e.getHours(),e.getMinutes(),e.getSeconds()].map(n=>os(n,2)).join(":")),r}function ah(e,t=!0){return e?t?[String(e.getFullYear()),String(e.getMonth()+1),os(e.getDate(),2),os(e.getHours(),2),`:${os(e.getMinutes(),2)}`,`:${os(e.getSeconds(),2)}`]:[e.getFullYear(),e.getMonth()+1,os(e.getDate(),2)].map(String):null}function lh(e,t=!1){return!!zm(e,t)}function w9(e){return lh(e,!0)}function zm(e,t=!1,o){if(!e||!C9.test(e))return null;const[r,n]=e.split(b9);if(!r)return null;const i=r.split("-").map(v=>Number.parseInt(v,10));if(i.filter(v=>!isNaN(v)).length!==3)return null;const[s,l,u]=i,d=new Date(s,l-1,u);if(d.getFullYear()!==s||d.getMonth()!==l-1||d.getDate()!==u||!n&&t)return null;if(!n||n==="00:00:00")return d;const[h,p,g]=n.split(":").map(v=>Number.parseInt(v,10));if(h>=0&&h<24)d.setHours(h);else if(t)return null;if(p>=0&&p<60)d.setMinutes(p);else if(t)return null;if(g>=0&&g<60)d.setSeconds(g);else if(t)return null;return d}function Hm(e){const{inputValue:t,allSuggestions:o,hideIrrelevant:r,filterByPercentageOfBestMatch:n}=e;let i=(o??[]).map((u,d)=>({value:u,relevance:y9(t,u),idx:d}));if(i.sort((u,d)=>u.relevance-d.relevance),r&&(i=i.filter(u=>u.relevance<Math.max(u.value.length,t.length))),i.length>0&&n&&n>0){const d=i[0].relevance*n;i=i.filter(h=>d-h.relevance<0)}const s=[],l=[];for(const u of i)s.push(u.value),l.push(u.idx);return{values:s,indices:l}}function y9(e,t){const o=e.length,r=t.length;if(r===0)return o||0;let n=e.toLocaleLowerCase(),i=t.toLocaleLowerCase(),s;e.length<t.length&&(s=i,i=n,n=s,s=t,t=e,e=s);let l=new Uint16Array(r+1),u=new Uint16Array(r+1);for(let p=0;p<=r;p++)l[p]=p;let d=0;const h=o/2-10;for(let p=1;p<=o;p++){const g=e[p-1],v=n[p-1];u[0]=p;for(let b=1;b<=r;b++){const C=t[b-1],S=i[b-1];if(v!==S){const k=u[b-1],F=l[b],R=l[b-1];let P=k<F?k:F;R<P&&(P=R),u[b]=P+1|0;continue}if(d++,g===C&&d++,p>1&&b>1){const k=e[p-2],F=n[p-2],R=t[b-2],P=i[b-2];F===P&&(d++,k===R&&d++)}p<h&&d++,u[b]=l[b-1]}s=l,l=u,u=s}return l[r]/(d+1)}function iF(e){return e.altKey||e.ctrlKey||e.metaKey?!1:e.key?.length===1}var S9=".ag-label{white-space:nowrap}:where(.ag-ltr) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-label-align-right) .ag-label{order:1}:where(.ag-ltr) :where(.ag-label-align-right) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) :where(.ag-label-align-right) .ag-label{margin-right:var(--ag-spacing)}.ag-label-align-right>*{flex:none}.ag-label-align-top{align-items:flex-start;flex-direction:column;>*{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-label-align-top) .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}",x9=class extends cc{constructor(e,t,o){super(t,o),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{},this.registerCSS(S9)}postConstruct(){this.addCss("ag-labeled"),this.eLabel.classList.add("ag-label");const{labelSeparator:e,label:t,labelWidth:o,labelAlignment:r,disabled:n,labelEllipsis:i}=this.config;n!=null&&this.setDisabled(n),e!=null&&this.setLabelSeparator(e),t!=null&&this.setLabel(t),o!=null&&this.setLabelWidth(o),i!=null&&this.setLabelEllipsis(i),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()}refreshLabel(){const{label:e,eLabel:t}=this;En(t),typeof e=="string"?t.innerText=e+this.labelSeparator:e&&t.appendChild(e),e===""?(gt(t,!1),Xl(t,"presentation")):(gt(t,!0),Xl(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 o=this.getGui().classList;return o.toggle("ag-label-align-left",e==="left"),o.toggle("ag-label-align-right",e==="right"),o.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:(jd(this.eLabel,e),this)}setDisabled(e){e=!!e;const t=this.getGui();return Ql(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},sF=class extends x9{constructor(e,t,o,r){super(e,t,o),this.className=r}postConstruct(){super.postConstruct();const{width:e,value:t,onValueChange:o,ariaLabel:r}=this.config;e!=null&&this.setWidth(e),t!=null&&this.setValue(t),o!=null&&this.onValueChange(o),r!=null&&this.setAriaLabel(r),this.className&&this.addCss(this.className),this.refreshAriaLabelledBy()}setLabel(e){return super.setLabel(e),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){const e=this.getAriaElement(),t=this.getLabelId(),o=this.getLabel();o==null||o==""||z8(e)!==null?Zl(e,""):Zl(e,t??"")}setAriaLabel(e){return na(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 Yr(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 k9(e){return{tag:"div",role:"presentation",children:[{tag:"div",ref:"eLabel",cls:"ag-input-field-label"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-input-wrapper",role:"presentation",children:[{tag:e,ref:"eInput",cls:"ag-input-field-input"}]}]}}var wa=class extends sF{constructor(e,t,o="text",r="input"){super(e,e?.template??k9(r),[],t),this.inputType=o,this.displayFieldTag=r,this.eLabel=Me,this.eWrapper=Me,this.eInput=Me}postConstruct(){super.postConstruct(),this.setInputType(this.inputType);const{eLabel:e,eWrapper:t,eInput:o,className:r}=this;e.classList.add(`${r}-label`),t.classList.add(`${r}-input-wrapper`),o.classList.add(`${r}-input`),this.addCss("ag-input-field"),o.id=o.id||`ag-${this.getCompId()}-input`;const{inputName:n,inputWidth:i,inputPlaceholder:s,autoComplete:l,tabIndex:u}=this.config;n!=null&&this.setInputName(n),i!=null&&this.setInputWidth(i),s!=null&&this.setInputPlaceholder(s),l!=null&&this.setAutoComplete(l),this.addInputListeners(),this.activateTabIndex([o],u)}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>this.setValue(e.target.value)})}setInputType(e){this.displayFieldTag==="input"&&(this.inputType=e,Er(this.eInput,"type",e))}getInputElement(){return this.eInput}getWrapperElement(){return this.eWrapper}setInputWidth(e){return jd(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 Er(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return na(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return Ql(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(e===!0)Er(this.eInput,"autocomplete",null);else{const t=typeof e=="string"?e:"off";Er(this.eInput,"autocomplete",t)}return this}},aF=class extends wa{constructor(e,t="ag-checkbox",o="checkbox"){super(e,t,o),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();const{readOnly:e,passive:t,name:o}=this.config;typeof e=="boolean"&&this.setReadOnly(e),typeof t=="boolean"&&this.setPassive(t),o!=null&&this.setName(o)}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 o=this.eInput;o.checked=e,o.indeterminate=e===void 0,t||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(e,t,o){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:t,event:o});const r=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:r.id,name:r.name,selected:e,previousValue:t})}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;const t=this.isSelected(),o=this.selected=e.target.checked;this.refreshSelectedClass(o),this.dispatchChange(o,t,e)}refreshSelectedClass(e){const t=this.eWrapper.classList;t.toggle("ag-checked",e===!0),t.toggle("ag-indeterminate",e==null)}},lF={selector:"AG-CHECKBOX",component:aF},F9=class extends aF{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)}},Vm=class extends wa{constructor(e,t="ag-text-field",o="text"){super(e,t,o)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,t){const o=this.eInput;return o.value!==e&&(o.value=xe(e)?e:""),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}setCustomValidity(e){const t=this.eInput,o=e.length>0;t.setCustomValidity(e),o&&t.reportValidity(),jx(t,o)}preventDisallowedCharacters(){const e=new RegExp(`[${this.config.allowedCharPattern}]`),t=o=>{iF(o)&&o.key&&!e.test(o.key)&&o.preventDefault()};this.addManagedListeners(this.eInput,{keydown:t,paste:o=>{o.clipboardData?.getData("text")?.split("").some(n=>!e.test(n))&&o.preventDefault()}})}},R9=class extends Vm{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct();const e=this.eInput;this.addManagedListeners(e,{blur:()=>{const i=Number.parseFloat(e.value),s=isNaN(i)?"":this.normalizeValue(i.toString());this.value!==s&&this.setValue(s)},wheel:this.onWheel.bind(this)}),e.step="any";const{precision:t,min:o,max:r,step:n}=this.config;typeof t=="number"&&this.setPrecision(t),typeof o=="number"&&this.setMin(o),typeof r=="number"&&this.setMax(r),typeof n=="number"&&this.setStep(n)}onWheel(e){At(this.beans)===this.eInput&&e.preventDefault()}normalizeValue(e){return e===""?"":(this.precision!=null&&(e=this.adjustPrecision(e)),e)}adjustPrecision(e,t){const o=this.precision;if(o==null)return e;if(t){const n=Number.parseFloat(e).toFixed(o);return Number.parseFloat(n).toString()}const r=String(e).split(".");if(r.length>1){if(r[1].length<=o)return e;if(o>0)return`${r[0]}.${r[1].slice(0,o)}`}return r[0]}setMin(e){return this.min===e?this:(this.min=e,Er(this.eInput,"min",e),this)}setMax(e){return this.max===e?this:(this.max=e,Er(this.eInput,"max",e),this)}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e?this:(this.step=e,Er(this.eInput,"step",e),this)}setValue(e,t){return this.setValueOrInputValue(o=>super.setValue(o,t),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(t=>super.setValue(t,!0),t=>{this.eInput.value=t},e)}setValueOrInputValue(e,t,o){if(xe(o)){let r=this.isScientificNotation(o);if(r&&this.eInput.validity.valid)return e(o);if(!r){o=this.adjustPrecision(o);const n=this.normalizeValue(o);r=o!=n}if(r)return t(o)}return e(o)}getValue(e=!1){const t=this.eInput;if(!t.validity.valid&&!e)return;const o=t.value;return this.isScientificNotation(o)?this.adjustPrecision(o,!0):super.getValue()}isScientificNotation(e){return typeof e=="string"&&e.includes("e")}},P9={selector:"AG-INPUT-NUMBER-FIELD",component:R9},E9=".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)}}",T9="ag-active-item",D9=(e,t)=>({tag:"div",cls:`ag-list-item ag-${e}-list-item`,attrs:{role:"option"},children:[{tag:"span",ref:"eText",children:t}]}),M9=class extends cc{constructor(e,t,o){super(D9(e,t)),this.label=t,this.value=o,this.eText=Me}postConstruct(){this.createTooltip(),this.addEventListeners()}setHighlighted(e){const t=this.getGui();t.classList.toggle(T9,e),Z8(t,e),this.dispatchLocalEvent({type:"itemHighlighted",highlighted:e})}getHeight(){return this.getGui().clientHeight}setIndex(e,t){const o=this.getGui();j8(o,e),G8(o,t)}createTooltip(){const e={getTooltipValue:()=>this.label,getGui:()=>this.getGui(),getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>im(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)}))}},A9=class extends cc{constructor(e="default"){super({tag:"div",cls:`ag-list ag-${e}-list`}),this.cssIdentifier=e,this.options=[],this.listItems=[],this.highlightedItem=null,this.registerCSS(E9)}postConstruct(){const e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()})}handleKeyDown(e){const t=e.key;switch(t){case te.ENTER:if(!this.highlightedItem)this.setValue(this.getValue());else{const o=this.listItems.indexOf(this.highlightedItem);this.setValueByIndex(o)}break;case te.DOWN:case te.UP:e.preventDefault(),this.navigate(t);break;case te.PAGE_DOWN:case te.PAGE_UP:case te.PAGE_HOME:case te.PAGE_END:e.preventDefault(),this.navigateToPage(t);break}}addOptions(e){for(const t of e)this.addOption(t);return this}addOption(e){const{value:t,text:o}=e,r=o??t;return this.options.push({value:t,text:r}),this.renderOption(t,r),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0);for(const e of this.listItems)e.destroy();En(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 o=this.options.findIndex(r=>r.value===e);if(o!==-1){const r=this.options[o];this.value=r.value,this.displayValue=r.text,this.highlightItem(this.listItems[o]),t||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();const e=this.options.findIndex(t=>t.value===this.value);e!==-1&&this.highlightItem(this.listItems[e])}highlightItem(e){const t=e.getGui();if(!Tn(t))return;this.clearHighlighted(),e.setHighlighted(!0),this.highlightedItem=e;const o=this.getGui(),{scrollTop:r,clientHeight:n}=o,{offsetTop:i,offsetHeight:s}=t;(i+s>r+n||i<r)&&t.scrollIntoView({block:"nearest"})}hideItemTooltip(){this.highlightedItem?.tooltipFeature?.attemptToHideTooltip()}destroy(){this.hideItemTooltip(),super.destroy()}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}clearHighlighted(){this.highlightedItem?.setHighlighted(!1),this.highlightedItem=null}renderOption(e,t){const o=new M9(this.cssIdentifier,t,e);o.setParentComponent(this);const r=this.createManagedBean(o);this.listItems.push(r),this.getGui().appendChild(r.getGui())}navigate(e){const t=e===te.DOWN;let o;const{listItems:r,highlightedItem:n}=this;if(!n)o=t?r[0]:st(r);else{let s=r.indexOf(n)+(t?1:-1);s=Math.min(Math.max(s,0),r.length-1),o=r[s]}this.highlightItem(o)}navigateToPage(e){const{listItems:t,highlightedItem:o}=this;if(!o||t.length===0)return;const r=t.indexOf(o),n=this.options.length-1,i=t[0].getHeight(),s=Math.floor(this.getGui().clientHeight/i);let l=-1;e===te.PAGE_HOME?l=0:e===te.PAGE_END?l=n:e===te.PAGE_DOWN?l=Math.min(r+s,n):e===te.PAGE_UP&&(l=Math.max(r-s,0)),l!==-1&&this.highlightItem(t[l])}refreshAriaRole(){Xl(this.getGui(),this.options.length===0?"presentation":"listbox")}updateIndices(){this.refreshAriaRole();const e=this.listItems,t=e.length;e.forEach((o,r)=>{o.setIndex(r+1,t)})}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},_9=".ag-picker-field-display{flex:1 1 auto}.ag-picker-field{align-items:center;display:flex}.ag-picker-field-icon{border:0;cursor:pointer;display:flex;margin:0;padding:0}.ag-picker-field-wrapper{background-color:var(--ag-picker-button-background-color);border:var(--ag-picker-button-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:where(.ag-picker-has-focus),&:where(:focus-within){background-color:var(--ag-picker-button-focus-background-color);border:var(--ag-picker-button-focus-border);box-shadow:var(--ag-focus-shadow);&:where(.invalid){box-shadow:var(--ag-focus-error-shadow)}}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:disabled{opacity:.5}}",I9={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"}}]}]},B9=class extends sF{constructor(e){if(super(e,e?.template||I9,e?.agComponents||[],e?.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=Me,this.eWrapper=Me,this.eDisplayField=Me,this.eIcon=Me,this.registerCSS(_9),this.ariaRole=e?.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:o,variableWidth:r,minPickerWidth:n,maxPickerWidth:i}=e;t!=null&&(this.pickerGap=t),this.variableWidth=!!r,o!=null&&this.setPickerMaxHeight(o),n!=null&&this.setPickerMinWidth(n),i!=null&&this.setPickerMaxWidth(i)}postConstruct(){super.postConstruct(),this.setupAria();const e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",e);const t=this.getAriaElement();this.addManagedElementListeners(t,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});const{pickerIcon:o,inputWidth:r}=this.config;if(o){const n=this.beans.iconSvc.createIconNoSpan(o);n&&this.eIcon.appendChild(n)}r!=null&&this.setInputWidth(r)}setupAria(){const e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),tm(e,!1),this.ariaRole&&Xl(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 te.UP:case te.DOWN:case te.ENTER:case te.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case te.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());const e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){const e=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));const t=this.getLocaleTextFunc(),{config:{pickerAriaLabelKey:o,pickerAriaLabelValue:r,modalPicker:n=!0},maxPickerHeight:i,minPickerWidth:s,maxPickerWidth:l,variableWidth:u,beans:d,eWrapper:h}=this,p={modal:n,eChild:e,closeOnEsc:!0,closedCallback:()=>{const C=Jg(d);this.beforeHidePicker(),C&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(o,r),anchorToElement:h};e.style.position="absolute";const g=d.popupSvc,v=g.addPopup(p);u?(s&&(e.style.minWidth=s),e.style.width=sm(zd(h)),l&&(e.style.maxWidth=l)):jd(e,l??zd(h));const b=i??`${om(g.getPopupParent())}px`;return e.style.setProperty("max-height",b),this.alignPickerToComponent(),v.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerGap:e,config:{pickerType:t},beans:{popupSvc:o,gos:r},eWrapper:n,pickerComponent:i}=this,s=r.get("enableRtl")?"right":"left";o.positionPopupByComponent({type:t,eventSource:n,ePopup:i.getGui(),position:"under",alignSide:s,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();tm(t,e);const o=this.eWrapper.classList;o.toggle("ag-picker-expanded",e),o.toggle("ag-picker-collapsed",!e)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){this.pickerComponent?.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)}hidePicker(){this.hideCurrentPicker&&(this.hideCurrentPicker(),this.dispatchLocalEvent({type:"pickerHidden"}))}setInputWidth(e){return jd(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()}},O9=".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}:where(.ag-select){.ag-picker-field-wrapper{cursor:default}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}&:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}:where(.ag-ltr) :where(.ag-select){.ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding)/2);padding-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-select){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-cell-horizontal-padding)/2)}}.ag-select-list{background-color:var(--ag-picker-list-background-color);border:var(--ag-picker-list-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow:hidden auto}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;:where(span){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}:where(.ag-ltr) .ag-select-list-item{padding-left:calc(var(--ag-cell-horizontal-padding)/2)}:where(.ag-rtl) .ag-select-list-item{padding-right:calc(var(--ag-cell-horizontal-padding)/2)}",L9=class extends B9{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox",...e}),this.registerCSS(O9)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:Gd(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{options:e,value:t,placeholder:o}=this.config;e!=null&&this.addOptions(e),t!=null&&this.setValue(t,!0),o&&t==null&&(this.eDisplayField.textContent=o),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){const e=this.createBean(new A9("select"));this.listComponent=e,e.setParentComponent(this);const t=e.getAriaElement(),o=`ag-select-list-${e.getCompId()}`;t.setAttribute("id",o),Q8(this.getAriaElement(),t),e.addManagedElementListeners(e.getGui(),{mousedown:r=>{r?.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===te.TAB&&this.hidePicker(),t){case te.ENTER:case te.UP:case te.DOWN:case te.PAGE_UP:case te.PAGE_DOWN:case te.PAGE_HOME:case te.PAGE_END:e.preventDefault(),this.isPickerDisplayed?this.listComponent?.handleKeyDown(e):super.onKeyDown(e);break;case te.ESCAPE:super.onKeyDown(e);break;case te.SPACE:this.isPickerDisplayed?e.preventDefault():super.onKeyDown(e);break}}showPicker(){const e=this.listComponent;e&&(super.showPicker(),e.refreshHighlighted())}addOptions(e){for(const t of e)this.addOption(t);return this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){return this.listComponent?.clearOptions(),this.setValue(void 0,!0),this}updateOptions(e){return this.listComponent?.updateOptions(e)&&this.setValue(void 0,!0),this}setValue(e,t,o){const{listComponent:r,config:{placeholder:n},eDisplayField:i,tooltipFeature:s}=this;if(this.value===e||!r)return this;if(o||r.setValue(e,!0),r.getValue()===this.getValue())return this;let u=r.getDisplayValue();return u==null&&n&&(u=n),i.textContent=u,s?.setTooltipAndRefresh(u??null),super.setValue(e,t)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},N9=':where(.ag-root-wrapper,.ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart),:where(.ag-root-wrapper,.ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]){box-sizing:border-box;&:after,&:before{box-sizing:border-box}&:where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:none;&:where(.invalid){box-shadow:inset var(--ag-focus-error-shadow)}}&:where(button){color:inherit}}:where(.ag-root-wrapper,ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]) ::-ms-clear{display:none}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-tab-guard{display:block;height:0;position:absolute;width:0}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-measurement-container{height:0;overflow:hidden;visibility:hidden;width:0}.ag-measurement-element-border{display:inline-block;&:before{border-left:var(--ag-internal-measurement-border);content:"";display:block}}.ag-popup-child{top:0;z-index:5;&:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}.ag-input-field-input:where(:not([type=checkbox],[type=radio])){flex:1 1 auto;min-width:0;width:100%}.ag-chart,.ag-dnd-ghost,.ag-external,.ag-popup,.ag-root-wrapper{cursor:default;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;background-color:var(--ag-background-color);color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);--ag-indentation-level:0}:where(.ag-icon):before{align-items:center;background-color:currentcolor;color:inherit;content:"";display:flex;font-family:inherit;font-size:var(--ag-icon-size);font-style:normal;font-variant:normal;height:var(--ag-icon-size);justify-content:center;line-height:var(--ag-icon-size);-webkit-mask-size:contain;mask-size:contain;text-transform:none;width:var(--ag-icon-size)}.ag-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;color:var(--ag-icon-color);display:block;height:var(--ag-icon-size);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}.ag-disabled,[disabled]{.ag-icon{opacity:.5}&.ag-icon-grip{opacity:.35}}.ag-resizer{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}:where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize;height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{cursor:nesw-resize;height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;cursor:nwse-resize;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;cursor:nesw-resize;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}',Gm=typeof window!="object"||!window?.document?.fonts?.forEach,ya=(e,t,o,r,n,i)=>{if(Gm)return;r&&(e=`@layer ${CSS.escape(r).replaceAll("\\.",".")} { ${e} }`);let s=Sa.map.get(t);if(s||(s=[],Sa.map.set(t,s)),s.some(h=>h.css===e))return;const l=document.createElement("style");i&&l.setAttribute("nonce",i),l.dataset.agGlobalCss=o,l.textContent=e;const u={css:e,el:l,priority:n};let d;for(const h of s){if(h.priority>n)break;d=h}if(d){d.el.insertAdjacentElement("afterend",l);const h=s.indexOf(d);s.splice(h+1,0,u)}else t.insertBefore(l,t.querySelector(":not(title, meta)")),s.push(u)},cF=(e,t,o,r)=>{ya(N9,e,"shared",t,0,o),r?.forEach((n,i)=>n.forEach(s=>ya(s,e,i,t,0,o)))},z9=e=>{Sa.grids.add(e)},H9=e=>{if(Sa.grids.delete(e),Sa.grids.size===0){Sa.map=new WeakMap;for(const t of document.head.querySelectorAll("style[data-ag-global-css]"))t.remove()}},uF,Sa=(uF=typeof window=="object"?window:{}).agStyleInjectionState??(uF.agStyleInjectionState={map:new WeakMap,grids:new Set}),Jr=e=>new dF(e),di="$default",V9=0,dF=class{constructor({feature:e,params:t,modeParams:o={},css:r,cssImports:n}){this.feature=e,this.css=r,this.cssImports=n,this.modeParams={[di]:{...o[di]??{},...t??{}},...o}}use(e,t,o){let r=this._inject;if(r==null){let{css:n}=this;if(n){const i=`ag-theme-${this.feature??"part"}-${++V9}`;typeof n=="function"&&(n=n()),n=`:where(.${i}) {
15
+ ${n}
16
+ }
17
+ `;for(const s of this.cssImports??[])n=`@import url(${JSON.stringify(s)});
18
+ ${n}`;r={css:n,class:i}}else r=!1;this._inject=r}return r&&e&&ya(r.css,e,r.class,t,1,o),r?r.class:!1}},G9=e=>e.replace(/[A-Z]/g,t=>`-${t}`).toLowerCase(),hF=e=>`--ag-${G9(e)}`,en=e=>`var(${hF(e)})`,j9=(e,t,o)=>Math.max(t,Math.min(o,e)),W9=e=>{const t=new Map;return o=>{const r=o;return t.has(r)||t.set(r,e(o)),t.get(r)}},tn=e=>({ref:"accentColor",mix:e}),tr=e=>({ref:"foregroundColor",mix:e}),or=e=>({ref:"foregroundColor",mix:e,onto:"backgroundColor"}),q9=e=>({ref:"foregroundColor",mix:e,onto:"headerBackgroundColor"}),Fo={ref:"backgroundColor"},xa={ref:"foregroundColor"},On={ref:"accentColor"},ch={backgroundColor:"#fff",foregroundColor:"#181d1f",borderColor:tr(.15),chromeBackgroundColor:or(.02),browserColorScheme:"light"},U9={...ch,textColor:xa,accentColor:"#2196f3",invalidColor:"#e02525",fontFamily:["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],subtleTextColor:{ref:"textColor",mix:.5},borderWidth:1,borderRadius:4,spacing:8,fontSize:14,focusShadow:{spread:3,color:tn(.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:Fo,dragAndDropImageBorder:!0,dragAndDropImageNotAllowedBorder:{color:{ref:"invalidColor",onto:"dragAndDropImageBackgroundColor",mix:.5}},dragAndDropImageShadow:{ref:"popupShadow"},iconSize:16,iconColor:"inherit",toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonOnBackgroundColor:On,toggleButtonOffBackgroundColor:or(.3),toggleButtonSwitchBackgroundColor:Fo,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}}},$9=["colorScheme","color","length","scale","borderStyle","border","shadow","image","fontFamily","fontWeight","duration"],K9=W9(e=>(e=e.toLowerCase(),$9.find(t=>e.endsWith(t.toLowerCase()))??"length")),uh=e=>typeof e=="object"&&e?.ref?en(e.ref):typeof e=="string"?e:typeof e=="number"?String(e):!1,jm=e=>{if(typeof e=="string")return e;if(e&&"ref"in e){const t=en(e.ref);return e.mix==null?t:`color-mix(in srgb, ${e.onto?en(e.onto):"transparent"}, ${t} ${j9(e.mix*100,0,100)}%)`}return!1},X9=uh,ka=e=>typeof e=="string"?e:typeof e=="number"?`${e}px`:e&&"calc"in e?`calc(${e.calc.replace(/ ?[*/+] ?/g," $& ").replace(/-?\b[a-z][a-z0-9]*\b(?![-(])/gi,o=>o[0]==="-"?o:" "+en(o)+" ")})`:e&&"ref"in e?en(e.ref):!1,Z9=uh,Wm=(e,t)=>typeof e=="string"?e:e===!0?Wm({},t):e===!1?t==="columnBorder"?Wm({color:"transparent"},t):"none":e&&"ref"in e?en(e.ref):fF(e.style??"solid")+" "+ka(e.width??{ref:"borderWidth"})+" "+jm(e.color??{ref:"borderColor"}),Y9=e=>typeof e=="string"?e:e===!1?"none":e&&"ref"in e?en(e.ref):[ka(e.offsetX??0),ka(e.offsetY??0),ka(e.radius??0),ka(e.spread??0),jm(e.color??{ref:"foregroundColor"})].join(" "),fF=uh,pF=e=>typeof e=="string"?e.includes(",")?e:gF(e):e&&"googleFont"in e?pF(e.googleFont):e&&"ref"in e?en(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),Q9=uh,mF=e=>typeof e=="string"?e:e&&"url"in e?`url(${JSON.stringify(e.url)})`:e&&"svg"in e?mF({url:`data:image/svg+xml,${encodeURIComponent(e.svg)}`}):e&&"ref"in e?en(e.ref):!1,J9=(e,t,o)=>typeof e=="string"?e:typeof e=="number"?(e>=10&&o.warn(104,{value:e,param:t}),`${e}s`):e&&"ref"in e?en(e.ref):!1,eG={color:jm,colorScheme:X9,length:ka,scale:Z9,border:Wm,borderStyle:fF,shadow:Y9,image:mF,fontFamily:pF,fontWeight:Q9,duration:J9},tG=(e,t,o)=>{const r=K9(e);return eG[r](t,e,o)},oG=e=>new vF(e),vF=class ED{constructor(t,o=[]){this.themeLogger=t,this.parts=o}withPart(t){return typeof t=="function"&&(t=t()),t instanceof dF?new ED(this.themeLogger,[...this.parts,t]):(this.themeLogger.preInitErr(259,"Invalid part",{part:t}),this)}withoutPart(t){return this.withPart(Jr({feature:t}))}withParams(t,o=di){return this.withPart(Jr({modeParams:{[o]:t}}))}_startUse({styleContainer:t,cssLayer:o,nonce:r,loadThemeGoogleFonts:n,moduleCss:i}){if(Gm)return;nG(),cF(t,o,r,i);const s=rG(this);if(s.length>0)for(const l of s)n&&iG(l,r);for(const l of this.parts)l.use(t,o,r)}_getCssClass(){return this._cssClassCache??(this._cssClassCache=bF(this.parts).map(t=>t.use(void 0,void 0,void 0)).filter(Boolean).join(" "))}_getModeParams(){let t=this._paramsCache;if(!t){const o={[di]:{...U9}};for(const r of bF(this.parts))for(const n of Object.keys(r.modeParams)){const i=r.modeParams[n];if(i){const s=o[n]??(o[n]={}),l=new Set;for(const u of Object.keys(i)){const d=i[u];d!==void 0&&(s[u]=d,l.add(u))}if(n===di)for(const u of Object.keys(o)){const d=o[u];if(u!==di)for(const h of l)delete d[h]}}}this._paramsCache=t=o}return t}_getPerInstanceCss(t){const o="##SELECTOR##";let r=this._paramsCssCache;if(!r){let n="",i="";const s=this._getModeParams();for(const u of Object.keys(s)){const d=s[u];if(u!==di){const p=`:where([data-ag-theme-mode="${typeof CSS=="object"?CSS.escape(u):u}"]) & {
19
+ `;n+=p,i+=p}for(const h of Object.keys(d).sort()){const p=d[h],g=tG(h,p,this.themeLogger);if(g===!1)this.themeLogger.error(107,{key:h,value:p});else{const v=hF(h),b=v.replace("--ag-","--ag-inherited-");n+=` ${v}: var(${b}, ${g});
20
+ `,i+=` ${b}: var(${v});
21
+ `}}u!==di&&(n+=`}
22
+ `,i+=`}
23
+ `)}let l=`${o} {
24
+ ${n}}
25
+ `;l+=`:has(> ${o}):not(${o}) {
26
+ ${i}}
27
+ `,this._paramsCssCache=r=l}return r.replaceAll(o,`:where(.${t})`)}},bF=e=>{const t=new Map;for(const r of e)t.set(r.feature,r);const o=[];for(const r of e)(!r.feature||t.get(r.feature)===r)&&o.push(r);return o},rG=e=>{const t=new Set,o=i=>{if(Array.isArray(i))i.forEach(o);else{const s=i?.googleFont;typeof s=="string"&&t.add(s)}};return Object.values(e._getModeParams()).flatMap(i=>Object.values(i)).forEach(o),Array.from(t).sort()},CF=!1,nG=()=>{if(!CF){CF=!0;for(const e of Array.from(document.head.querySelectorAll('style[data-ag-scope="legacy"]')))e.remove()}},iG=async(e,t)=>{const o=`@import url('https://${sG}/css2?family=${encodeURIComponent(e)}:wght@100;200;300;400;500;600;700;800;900&display=swap');
28
+ `;ya(o,document.head,`googleFont:${e}`,void 0,0,t)},sG="fonts.googleapis.com",aG=1,lG=class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,this.instanceId=aG++,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 o=new t;o.beanName?this.beans[o.beanName]=o:console.error(`Bean ${t.name} is missing beanName`),this.createdBeans.push(o)}for(const t of e.derivedBeans??[]){const{beanName:o,bean:r}=t(this);this.beans[o]=r,this.createdBeans.push(r)}e.beanInitComparator&&this.createdBeans.sort(e.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(e,t){return this.initBeans([e],t),e}initBeans(e,t){const o=this.beans;for(const r of e)r.preWireBeans?.(o),r.wireBeans?.(o);for(const r of e)r.preConstruct?.();t&&e.forEach(t);for(const r of e)r.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}},cG=0,wF={cssName:"--ag-list-item-height",changeKey:"listItemHeightChanged",defaultValue:24},uG=class extends xo{constructor(){super(...arguments),this.beanName="environment",this.sizeEls=new Map,this.lastKnownValues=new Map,this.sizesMeasured=!1,this.paramsClass=`ag-theme-params-${++cG}`,this.globalCSS=[]}wireBeans(e){this.eRootDiv=e.eRootDiv}postConstruct(){const{gos:e,eRootDiv:t}=this;e.setInstanceDomData(t);const o=e.get("themeStyleContainer"),r=typeof ShadowRoot<"u",n=r&&t.getRootNode()instanceof ShadowRoot;this.eStyleContainer=(typeof o=="function"?o():o)??(n?t:document.head),!o&&!n&&r&&dG(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(wF),this.initVariables(),this.addDestroyFunc(()=>H9(this)),this.mutationObserver=new MutationObserver(()=>{this.fireStylesChangedEvent("themeChanged")}),this.addDestroyFunc(()=>this.mutationObserver.disconnect())}applyThemeClasses(e,t=[]){const{theme:o}=this;let r;o?r=`${this.paramsClass} ${o._getCssClass()}`:r=this.applyLegacyThemeClasses();for(const n of Array.from(e.classList))n.startsWith("ag-theme-")&&e.classList.remove(n);if(r){const n=e.className;e.className=`${n}${n?" ":""}${r}${t?.length?" "+t.join(" "):""}`}}applyLegacyThemeClasses(){let e="";this.mutationObserver.disconnect();let t=this.eRootDiv;for(;t;){let o=!1;for(const r of Array.from(t.classList))r.startsWith("ag-theme-")&&(o=!0,e=e?`${e} ${r}`:r);o&&this.mutationObserver.observe(t,{attributes:!0,attributeFilter:["class"]}),t=t.parentElement}return e}addGlobalCSS(e,t){this.theme?ya(e,this.eStyleContainer,t,this.cssLayer,0,this.styleNonce):this.globalCSS.push([e,t])}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(wF)}getCSSVariablePixelValue(e){const t=this.lastKnownValues.get(e);if(t!=null)return t;const o=this.measureSizeEl(e);return o==="detached"||o==="no-styles"?(e.cacheDefault&&this.lastKnownValues.set(e,e.defaultValue),e.defaultValue):(this.lastKnownValues.set(e,o),o)}measureSizeEl(e){const t=this.getSizeEl(e);if(t.offsetParent==null)return"detached";const o=t.offsetWidth;return o===qm?"no-styles":(this.sizesMeasured=!0,o)}getMeasurementContainer(){let e=this.eMeasurementContainer;return e||(e=this.eMeasurementContainer=ai({tag:"div",cls:"ag-measurement-container"}),this.eRootDiv.appendChild(e)),e}getSizeEl(e){let t=this.sizeEls.get(e);if(t)return t;const o=this.getMeasurementContainer();t=ai({tag:"div"});const{border:r,noWarn:n}=e;r?(t.className="ag-measurement-element-border",t.style.setProperty("--ag-internal-measurement-border",`var(${e.cssName}, solid ${qm}px)`)):t.style.width=`var(${e.cssName}, ${qm}px)`,o.appendChild(t),this.sizeEls.set(e,t);let i=this.measureSizeEl(e);i==="no-styles"&&!n&&this.varError(e);const s=Dn(this.beans,t,()=>{const l=this.measureSizeEl(e);l==="detached"||l==="no-styles"||(this.lastKnownValues.set(e,l),l!==i&&(i=l,this.fireStylesChangedEvent(e.changeKey)))});return this.addDestroyFunc(()=>s()),t}handleThemeChange(){const{gos:e,theme:t}=this,o=e.get("theme");let r;if(o==="legacy")r=void 0;else{const n=o??this.getDefaultTheme();n instanceof vF?r=n:this.themeError(n)}r!==t&&this.handleNewTheme(r),this.postProcessThemeChange(r,o)}handleNewTheme(e){const{gos:t,eRootDiv:o,globalCSS:r}=this,n=this.getAdditionalCss();if(e){z9(this),cF(this.eStyleContainer,this.cssLayer,this.styleNonce,n);for(const[s,l]of r)ya(s,this.eStyleContainer,l,this.cssLayer,0,this.styleNonce);r.length=0}this.theme=e,e?._startUse({loadThemeGoogleFonts:t.get("loadThemeGoogleFonts"),styleContainer:this.eStyleContainer,cssLayer:this.cssLayer,nonce:this.styleNonce,moduleCss:n});let i=this.eParamsStyle;if(!i){i=this.eParamsStyle=ai({tag:"style"});const s=t.get("styleNonce");s&&i.setAttribute("nonce",s),o.appendChild(i)}Gm||(i.textContent=e?._getPerInstanceCss(this.paramsClass)||""),this.applyThemeClasses(o),this.fireStylesChangedEvent("themeChanged")}fireStylesChangedEvent(e){this.eventSvc.dispatchEvent({type:"stylesChanged",[e]:!0})}},qm=15538,dG=(e,t,o)=>{let r=60;const n=setInterval(()=>{typeof ShadowRoot<"u"&&e.getRootNode()instanceof ShadowRoot&&(t(),clearInterval(n)),(rm(e)||--r<0)&&clearInterval(n)},1e3);o(()=>clearInterval(n))},hG=class extends xo{constructor(){super(...arguments),this.beanName="registry"}registerDynamicBeans(e){if(e){this.dynamicBeans??(this.dynamicBeans={});for(const t of Object.keys(e))this.dynamicBeans[t]=e[t]}}createDynamicBean(e,t,...o){if(!this.dynamicBeans)throw new Error(this.getDynamicError(e,!0));const r=this.dynamicBeans[e];if(r==null){if(t)throw new Error(this.getDynamicError(e,!1));return}return new r(...o)}},fG=class extends xo{constructor(){super(...arguments),this.beanName="eventSvc",this.eventServiceType="global",this.globalSvc=new Ki}addListener(e,t,o){this.globalSvc.addEventListener(e,t,o)}removeListener(e,t,o){this.globalSvc.removeEventListener(e,t,o)}addGlobalListener(e,t=!1){this.globalSvc.addGlobalListener(e,t)}removeGlobalListener(e,t=!1){this.globalSvc.removeGlobalListener(e,t)}dispatchEvent(e){this.globalSvc.dispatchEvent(this.gos.addCommon(e))}dispatchEventOnce(e){this.globalSvc.dispatchEventOnce(this.gos.addCommon(e))}},yF=class extends xo{constructor(e,t){super(),this.ctrl=e,t&&(this.beans=t)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(e,t){const o="title",r=this.ctrl.getGui();r&&(e!=null&&(e!=""||t)?r.setAttribute(o,e):r.removeAttribute(o))}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()}},pG=1e3,gG=1e3,SF=100,xF,dh=!1,mG=class extends xo{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 e==="show"?this.tooltipCtrl.getTooltipShowDelayOverride?.()??this.getGridOptionsTooltipDelay("tooltipShowDelay"):this.tooltipCtrl.getTooltipHideDelayOverride?.()??this.getGridOptionsTooltipDelay("tooltipHideDelay")}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){const e=this.gos.get("tooltipTrigger");return!e||e==="hover"?0:1}onMouseEnter(e){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!es()&&(dh?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(e)},SF):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,o=this.tooltipCtrl.getGui(),r=this.tooltipComp?.getGui();this.isInteractingWithTooltip||o.contains(t)||this.interactionEnabled&&r?.contains(t)||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(e){if(this.state!=0||dh)return;let t=0;e&&(t=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.state=1}isLastTooltipHiddenRecently(){return Date.now()-xF<pG}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(!xe(e)||t.shouldDisplayTooltip&&!t.shouldDisplayTooltip()){this.setToDoNothing();return}const o=this.gos.addCommon({location:t.getLocation?.()??"UNKNOWN",value:e,hideTooltipCallback:()=>this.hideTooltip(!0),...t.getAdditionalParams?.()});this.state=2,this.tooltipInstanceCount++;const r=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.createTooltipComp(o,r)}hideTooltip(e){!e&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),xF=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 r=t.getGui();this.tooltipComp=t,r.classList.contains("ag-tooltip")||r.classList.add("ag-tooltip-custom"),this.tooltipTrigger===0&&r.classList.add("ag-tooltip-animate"),this.interactionEnabled&&r.classList.add("ag-tooltip-interactive");const n=this.getLocaleTextFunc(),i=this.popupSvc?.addPopup({eChild:r,ariaLabel:n("ariaLabelTooltip","Tooltip")});if(i&&(this.tooltipPopupDestroyFunc=i.hideFunc),this.positionTooltip(),this.tooltipTrigger===1){const s=()=>this.setToDoNothing();[this.onBodyScrollEventCallback]=this.addManagedEventListeners({bodyScroll:s}),this.setEventHandlers(s)}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(r,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(Zt(this.beans),{keydown:s=>{r.contains(s?.target)||this.onKeyDown()}}),this.tooltipTrigger===1&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(r,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:r,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=At(this.beans);return!!e&&e.contains(t)}onTooltipFocusOut(e){const t=this.tooltipCtrl.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,t.contains(e.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){const e={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupSvc?.positionPopupUnderMouseEvent({...e,mouseEvent:this.lastMouseEvent}):this.popupSvc?.positionPopupByComponent({...e,eventSource:this.tooltipCtrl.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5})}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");const e=this.tooltipPopupDestroyFunc,t=this.tooltipComp,o=this.tooltipTrigger===0?gG:0;window.setTimeout(()=>{e(),this.destroyBean(t)},o),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){for(const e of[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener])e&&e();this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){dh=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},SF)}unlockService(){dh=!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()}},vG=class extends yF{constructor(e,t,o){super(e,o),this.highlightTracker=t,this.onHighlight=this.onHighlight.bind(this)}postConstruct(){super.postConstruct(),this.wireHighlightListeners()}wireHighlightListeners(){this.addManagedPropertyListener("tooltipTrigger",({currentValue:e})=>{this.setTooltipMode(e)}),this.setTooltipMode(this.gos.get("tooltipTrigger")),this.highlightTracker.addEventListener("itemHighlighted",this.onHighlight)}onHighlight(e){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()}},hh=0,bG=200,CG=class extends xo{constructor(){super(...arguments),this.beanName="popupSvc",this.popupList=[]}postConstruct(){this.addManagedEventListeners({stylesChanged:this.handleThemeChange.bind(this)})}getPopupParent(){const e=this.gos.get("popupParent");return e||this.getDefaultPopupParent()}positionPopupUnderMouseEvent(e){const{ePopup:t,nudgeX:o,nudgeY:r,skipObserver:n}=e;this.positionPopup({ePopup:t,nudgeX:o,nudgeY:r,keepWithinBounds:!0,skipObserver:n,updatePosition:()=>this.calculatePointerAlign(e.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,e.type,e.ePopup,null,e.mouseEvent)})}calculatePointerAlign(e){const t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}positionPopupByComponent(e){const{ePopup:t,nudgeX:o,nudgeY:r,keepWithinBounds:n,eventSource:i,alignSide:s="left",position:l="over",type:u}=e,d=i.getBoundingClientRect(),h=this.getParentRect();this.setAlignedTo(i,t);const p=()=>{let g=d.left-h.left;s==="right"&&(g-=t.offsetWidth-d.width);let v;return l==="over"?(v=d.top-h.top,this.setAlignedStyles(t,"over")):(this.setAlignedStyles(t,"under"),this.shouldRenderUnderOrAbove(t,d,h,e.nudgeY||0)==="under"?v=d.top-h.top+d.height:v=d.top-t.offsetHeight-(r||0)*2-h.top),{x:g,y:v}};this.positionPopup({ePopup:t,nudgeX:o,nudgeY:r,keepWithinBounds:n,updatePosition:p,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,u,t,i,null)})}positionPopupForMenu(e){const{eventSource:t,ePopup:o,event:r}=e,n=t.getBoundingClientRect(),i=this.getParentRect();this.setAlignedTo(t,o);let s=!1;const l=()=>{const u=this.keepXYWithinBounds(o,n.top-i.top,0),d=o.clientWidth>0?o.clientWidth:200;s||(o.style.minWidth=`${d}px`,s=!0);const p=i.right-i.left-d;let g;return this.gos.get("enableRtl")?(g=b(),g<0&&(g=v(),this.setAlignedStyles(o,"left")),g>p&&(g=0,this.setAlignedStyles(o,"right"))):(g=v(),g>p&&(g=b(),this.setAlignedStyles(o,"right")),g<0&&(g=0,this.setAlignedStyles(o,"left"))),{x:g,y:u};function v(){return n.right-i.left-2}function b(){return n.left-i.left-d}};this.positionPopup({ePopup:o,keepWithinBounds:!0,updatePosition:l,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,"subMenu",o,t,r instanceof MouseEvent?r:void 0)})}shouldRenderUnderOrAbove(e,t,o,r){const n=o.bottom-t.bottom,i=t.top-o.top,s=e.offsetHeight+r;return n>s?"under":i>s||i>n?"above":"under"}setAlignedStyles(e,t){const o=this.getPopupIndex(e);if(o===-1)return;const r=this.popupList[o],{alignedToElement:n}=r;if(!n)return;const i=["right","left","over","above","under"];for(const s of i)n.classList.remove(`ag-has-popup-positioned-${s}`),e.classList.remove(`ag-popup-positioned-${s}`);t&&(n.classList.add(`ag-has-popup-positioned-${t}`),e.classList.add(`ag-popup-positioned-${t}`))}setAlignedTo(e,t){const o=this.getPopupIndex(t);if(o!==-1){const r=this.popupList[o];r.alignedToElement=e}}positionPopup(e){const{ePopup:t,keepWithinBounds:o,nudgeX:r,nudgeY:n,skipObserver:i,updatePosition:s}=e,l={width:0,height:0},u=(d=!1)=>{let{x:h,y:p}=s();d&&t.clientWidth===l.width&&t.clientHeight===l.height||(l.width=t.clientWidth,l.height=t.clientHeight,r&&(h+=r),n&&(p+=n),o&&(h=this.keepXYWithinBounds(t,h,1),p=this.keepXYWithinBounds(t,p,0)),t.style.left=`${h}px`,t.style.top=`${p}px`,e.postProcessCallback&&e.postProcessCallback())};if(u(),!i){const d=Dn(this.beans,t,()=>u(!0));setTimeout(()=>d(),bG)}}getParentRect(){const e=Zt(this.beans);let t=this.getPopupParent();return t===e.body?t=e.documentElement:getComputedStyle(t).position==="static"&&(t=t.offsetParent),Zx(t)}keepXYWithinBounds(e,t,o){const r=o===0,n=r?"clientHeight":"clientWidth",i=r?"top":"left",s=r?"height":"width",l=r?"scrollTop":"scrollLeft",u=Zt(this.beans),d=u.documentElement,h=this.getPopupParent(),p=e.getBoundingClientRect(),g=h.getBoundingClientRect(),v=u.documentElement.getBoundingClientRect(),b=h===u.body,C=Math.ceil(p[s]);let k=b?(r?Xx:zd)(d)+d[l]:h[n];b&&(k-=Math.abs(v[i]-g[i]));const F=k-C;return Math.min(Math.max(t,0),Math.max(F,0))}addPopup(e){const{eChild:t,ariaLabel:o,ariaOwns:r,alwaysOnTop:n,positionCallback:i,anchorToElement:s}=e,l=this.getPopupIndex(t);if(l!==-1)return{hideFunc:this.popupList[l].hideFunc};this.initialisePopupPosition(t);const u=this.createPopupWrapper(t,!!n,o,r),d=this.addEventListenersToPopup({...e,wrapperEl:u});return i&&i(),this.addPopupToPopupList(t,u,d,s),{hideFunc:d}}initialisePopupPosition(e){const o=this.getPopupParent().getBoundingClientRect();xe(e.style.top)||(e.style.top=`${o.top*-1}px`),xe(e.style.left)||(e.style.left=`${o.left*-1}px`)}createPopupWrapper(e,t,o,r){const n=this.getPopupParent(),{environment:i,gos:s}=this.beans,l=ai({tag:"div"});return i.applyThemeClasses(l),l.classList.add("ag-popup"),e.classList.add(s.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),e.hasAttribute("role")||Xl(e,"dialog"),o?na(e,o):r&&(e.id||(e.id=`popup-component-${hh}`),Ux(r,e.id)),l.appendChild(e),n.appendChild(l),t?this.setAlwaysOnTop(e,!0):this.bringPopupToFront(e),l}addEventListenersToPopup(e){const t=this.beans,o=Zt(t),{wrapperEl:r,eChild:n,closedCallback:i,afterGuiAttached:s,closeOnEsc:l,modal:u,ariaOwns:d}=e;let h=!1;const p=C=>{if(!r.contains(At(t)))return;C.key===te.ESCAPE&&!this.isStopPropagation(C)&&b({keyboardEvent:C})},g=C=>b({mouseEvent:C}),v=C=>b({touchEvent:C}),b=(C={})=>{const{mouseEvent:S,touchEvent:k,keyboardEvent:F,forceHide:R}=C;!R&&(this.isEventFromCurrentPopup({mouseEvent:S,touchEvent:k},n)||h)||(h=!0,r.remove(),o.removeEventListener("keydown",p),o.removeEventListener("mousedown",g),o.removeEventListener("touchstart",v),o.removeEventListener("contextmenu",g),this.eventSvc.removeListener("dragStarted",g),i&&i(S||k||F),this.removePopupFromPopupList(n,d))};return s&&s({hidePopup:b}),window.setTimeout(()=>{l&&o.addEventListener("keydown",p),u&&(o.addEventListener("mousedown",g),this.eventSvc.addListener("dragStarted",g),o.addEventListener("touchstart",v),o.addEventListener("contextmenu",g))},0),b}addPopupToPopupList(e,t,o,r){this.popupList.push({element:e,wrapper:t,hideFunc:o,instanceId:hh,isAnchored:!!r}),r&&this.setPopupPositionRelatedToElement(e,r),hh=hh+1}getPopupIndex(e){return this.popupList.findIndex(t=>t.element===e)}setPopupPositionRelatedToElement(e,t){const o=this.getPopupIndex(e);if(o===-1)return;const r=this.popupList[o];if(r.stopAnchoringPromise&&r.stopAnchoringPromise.then(i=>i&&i()),r.stopAnchoringPromise=void 0,r.isAnchored=!1,!t)return;const n=this.keepPopupPositionedRelativeTo({element:t,ePopup:e,hidePopup:r.hideFunc});return r.stopAnchoringPromise=n,r.isAnchored=!0,n}removePopupFromPopupList(e,t){this.setAlignedStyles(e,null),this.setPopupPositionRelatedToElement(e,null),t&&Ux(t,null),this.popupList=this.popupList.filter(o=>o.element!==e)}keepPopupPositionedRelativeTo(e){const t=this.getPopupParent(),o=t.getBoundingClientRect(),{element:r,ePopup:n}=e,i=r.getBoundingClientRect(),s=p=>Number.parseInt(p.substring(0,p.length-1),10),l=(p,g)=>{const v=o[p]-i[p],b=s(n.style[p]);return{initialDiff:v,lastDiff:v,initial:b,last:b,direction:g}},u=l("top",0),d=l("left",1),h=this.beans.frameworkOverrides;return new Ve(p=>{h.wrapIncoming(()=>{P7(()=>{const g=t.getBoundingClientRect(),v=r.getBoundingClientRect();if(v.top==0&&v.left==0&&v.height==0&&v.width==0){e.hidePopup();return}const C=(S,k)=>{const F=s(n.style[k]);S.last!==F&&(S.initial=F,S.last=F);const R=g[k]-v[k];if(R!=S.lastDiff){const P=this.keepXYWithinBounds(n,S.initial+S.initialDiff-R,S.direction);n.style[k]=`${P}px`,S.last=P}S.lastDiff=R};C(u,"top"),C(d,"left")},200).then(g=>{p(()=>{g!=null&&window.clearInterval(g)})})},"popupPositioning")})}isEventFromCurrentPopup(e,t){const{mouseEvent:o,touchEvent:r}=e,n=o||r;if(!n)return!1;const i=this.getPopupIndex(t);if(i===-1)return!1;for(let s=i;s<this.popupList.length;s++){const l=this.popupList[s];if(rV(l.element,n))return!0}return this.isElementWithinCustomPopup(n.target)}isElementWithinCustomPopup(e){const t=Zt(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 o=this.getWrapper(e);o&&(o.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(o))}bringPopupToFront(e){const t=this.getPopupParent(),o=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),r=o.length,n=this.getWrapper(e);if(!n||r<=1||!t.contains(e))return;const i=[],s=[];for(const g of o)g!==n&&(g.classList.contains("ag-always-on-top")?s.push(g):i.push(g));const l=[],u=s.length,p=n.classList.contains("ag-always-on-top")||!u?[...i,...s,n]:[...i,n,...s];for(let g=0;g<=r;g++){const v=p[g];if(o[g]===p[g]||v===n)continue;const b=v.querySelectorAll("div");for(const C of b)C.scrollTop!==0&&l.push([C,C.scrollTop]);g===0?t.insertAdjacentElement("afterbegin",v):p[g-1].insertAdjacentElement("afterend",v)}for(;l.length;){const g=l.pop();g[0].scrollTop=g[1]}}handleThemeChange(e){if(e.themeChanged){const t=this.beans.environment;for(const o of this.popupList)t.applyThemeClasses(o.wrapper)}}},wG=class extends Pm{constructor(){super({tag:"div",cls:"ag-tooltip"})}init(e){const{value:t}=e,o=this.getGui();o.textContent=$l(t);const r=e.location.replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase();o.classList.add(`ag-${r}-tooltip`)}},kF=(e,t)=>{if(t!=null&&e?.setPointerCapture)try{return e.setPointerCapture(t),e.hasPointerCapture(t)}catch{}return!1},yG=(e,t)=>{if(typeof PointerEvent>"u"||!(t instanceof PointerEvent))return null;const o=t.pointerId;if(!kF(e,o))return null;const r={eElement:e,pointerId:o,onLost(n){xG(r,n)}};return e.addEventListener("lostpointercapture",r.onLost),r},SG=e=>{if(!e)return;FF(e);const{eElement:t,pointerId:o}=e;if(t){try{t.releasePointerCapture(o)}catch{}e.eElement=null}},FF=e=>{const{eElement:t,onLost:o}=e;t&&o&&(t.removeEventListener("lostpointercapture",o),e.onLost=null)},xG=(e,t)=>{FF(e);const{eElement:o,pointerId:r}=e;o&&t.pointerId===r&&kF(o,r)},Fa,Ra,Um={passive:!0},hi={passive:!1},on=e=>{if(!Ra)Ra=new WeakSet;else if(Ra.has(e))return!1;return Ra.add(e),!0},kG=class extends xo{constructor(){super(...arguments),this.beanName="dragSvc",this.dragging=!1,this.drag=null,this.dragSources=[]}get startTarget(){return this.drag?.start.target??null}isPointer(){return!!Fa?.has(Kr(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)RF(t);e.length=0,super.destroy()}removeDragSource(e){const t=this.dragSources;for(let o=0,r=t.length;o<r;++o){const n=t[o];if(n.params===e){t.splice(o,1),RF(n);break}}}addDragSource(e){if(!this.isAlive())return;const{eElement:t,includeTouch:o}=e,r=[];let n;if(o){const d=t.style;d&&(n=d.touchAction,d.touchAction="none")}const i={handlers:r,params:e,oldTouchAction:n};this.dragSources.push(i),Wd(r,[t,"pointerdown",d=>this.onPointerDown(e,d),hi],[t,"mousedown",d=>this.onMouseDown(e,d)]);const u=this.gos.get("suppressTouch");o&&!u&&Wd(r,[t,"touchstart",h=>this.onTouchStart(e,h),hi])}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&&ec(this.beans,e)&&!Yl(Km(e))}initDrag(e,...t){this.drag=e;const o=this.beans,r=l=>this.onScroll(l),n=l=>this.onKeyDown(l),i=Kr(o),s=Zt(o);Wd(e.handlers,[i,"contextmenu",aa],[i,"keydown",n],[s,"scroll",r,{capture:!0}],[s.defaultView||window,"scroll",r],...t)}destroyDrag(){this.dragging=!1;const e=this.drag;if(e){const t=e.rootEl;Fa?.get(t)===e&&Fa.delete(t),this.drag=null,SG(e.pointerCapture),cm(e.handlers)}}onPointerDown(e,t){if(this.isPointer())return;const o=this.beans;if(Ra?.has(t))return;const r=t.pointerType;if(r==="touch"&&(o.gos.get("suppressTouch")||!e.includeTouch||(e.stopPropagationForTouch&&t.stopPropagation(),Yl(Km(t))))||!t.isPrimary||r==="mouse"&&t.button!==0)return;this.destroyDrag();const n=Kr(o),i=e.eElement,s=t.pointerId,l=new $m(n,e,t,s);Fa??(Fa=new WeakMap),Fa.set(n,l);const u=g=>{g.pointerId===s&&this.onMouseOrPointerMove(g)},d=g=>{g.pointerId===s&&this.onMouseOrPointerUp(g)},h=g=>{g.pointerId===s&&on(g)&&this.cancelDrag()},p=g=>this.draggingPreventDefault(g);this.initDrag(l,[n,"pointerup",d],[n,"pointercancel",h],[n,"pointermove",u,hi],[n,"touchmove",p,hi],[i,"mousemove",p,hi]),e.dragStartPixels===0?this.onMouseOrPointerMove(t):on(t)}onTouchStart(e,t){if(this.gos.get("suppressTouch")||!e.includeTouch||!on(t)||Yl(Km(t)))return;if(e.stopPropagationForTouch&&t.stopPropagation(),this.isPointer()){this.dragging&&aa(t);return}this.destroyDrag();const r=this.beans,n=Kr(r),i=new $m(n,e,t.touches[0]),s=g=>this.onTouchMove(g),l=g=>this.onTouchUp(g),u=g=>this.onTouchCancel(g),d=g=>this.draggingPreventDefault(g),h=Kr(r),p=t.target??e.eElement;this.initDrag(i,[p,"touchmove",s,Um],[p,"touchend",l,Um],[p,"touchcancel",u,Um],[h,"touchmove",d,hi],[h,"touchend",l,hi],[h,"touchcancel",u,hi]),e.dragStartPixels===0&&this.onMove(i.start)}draggingPreventDefault(e){this.dragging&&aa(e)}onMouseDown(e,t){if(t.button!==0||Ra?.has(t)||this.isPointer())return;const o=this.beans;this.destroyDrag();const r=new $m(Kr(o),e,t),n=l=>this.onMouseOrPointerMove(l),i=l=>this.onMouseOrPointerUp(l),s=Kr(o);this.initDrag(r,[s,"mousemove",n],[s,"mouseup",i]),e.dragStartPixels===0?this.onMouseOrPointerMove(t):on(t)}onScroll(e){if(!on(e))return;const t=this.drag,o=t?.lastDrag;o&&this.dragging&&t.params?.onDragging?.(o)}onMouseOrPointerMove(e){on(e)&&(uc()&&Zt(this.beans).getSelection()?.removeAllRanges(),this.shouldPreventMouseEvent(e)&&aa(e),this.onMove(e))}onTouchCancel(e){const t=this.drag;!t||!on(e)||sa(t.start,e.changedTouches)&&this.cancelDrag()}onTouchMove(e){const t=this.drag;if(!t||!on(e))return;const o=sa(t.start,e.touches);o&&(this.onMove(o),this.draggingPreventDefault(e))}onMove(e){const t=this.drag;if(!t)return;t.lastDrag=e;const o=t.params;if(!this.dragging){const r=t.start,i=o.dragStartPixels??4;if(ok(e,r,i)||(this.dragging=!0,o.capturePointer&&(t.pointerCapture=yG(this.beans.eRootDiv,e)),this.eventSvc.dispatchEvent({type:"dragStarted",target:o.eElement}),o.onDragStart?.(r),this.drag!==t)||(o.onDragging?.(r),this.drag!==t))return}o.onDragging?.(e)}onTouchUp(e){const t=this.drag;t&&on(e)&&this.onUp(sa(t.start,e.changedTouches))}onMouseOrPointerUp(e){on(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===te.ESCAPE&&this.cancelDrag()}},RF=e=>{cm(e.handlers);const t=e.oldTouchAction;if(t!=null){const o=e.params.eElement.style;o&&(o.touchAction=t)}},$m=class{constructor(e,t,o,r=null){this.rootEl=e,this.params=t,this.start=o,this.pointerId=r,this.handlers=[],this.lastDrag=null,this.pointerCapture=null,this.eElement=t.eElement}},Km=e=>{const t=e.target;return t instanceof Element?t:null},FG=class extends xo{constructor(){super(...arguments),this.beanName="dragAndDrop",this.dragSourceAndParamsList=[],this.dragItem=null,this.dragInitialSourcePointerOffsetX=0,this.dragInitialSourcePointerOffsetY=0,this.lastMouseEvent=null,this.lastDraggingEvent=null,this.dragSource=null,this.dragImageCompPromise=null,this.dragImageComp=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0,this.dropTargets=[],this.externalDropZoneCount=0,this.lastDropTarget=null}addDragSource(e,t=!1){const o={capturePointer:!0,dragSource:e,eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:r=>this.onDragStart(e,r),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push(o),this.beans.dragSvc.addDragSource(o)}setDragImageCompIcon(e,t=!1){const o=this.dragImageComp;o&&(t||this.dragImageLastIcon!==e)&&(this.dragImageLastIcon=e,o.setIcon(e,t))}removeDragSource(e){const{dragSourceAndParamsList:t,beans:o}=this;for(let r=0,n=t.length;r<n;r++)if(t[r].dragSource===e){const i=t[r];o.dragSvc?.removeDragSource(i),t.splice(r,1);break}}destroy(){const{dragSourceAndParamsList:e,dropTargets:t,beans:o}=this,r=o.dragSvc;for(const n of e)r?.removeDragSource(n);e.length=0,t.length=0,this.externalDropZoneCount=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){const e=this.lastMouseEvent;e&&this.onDragging(e,!0)}onDragStart(e,t){this.lastMouseEvent=t,this.dragSource=e,this.dragItem=e.getDragItem();const o=e.eElement.getBoundingClientRect();this.dragInitialSourcePointerOffsetX=t.clientX-o.left,this.dragInitialSourcePointerOffsetY=t.clientY-o.top,e.onDragStarted?.(),this.createAndUpdateDragImageComp(e)}onDragStop(e){const{dragSource:t,lastDropTarget:o}=this;if(t?.onDragStopped?.(),o){const r=this.dropTargetEvent(o,e,!1);o.onDragStop?.(r)}this.clearDragAndDropProperties()}onDragCancel(){const{dragSource:e,lastDropTarget:t,lastMouseEvent:o}=this;if(e?.onDragCancelled?.(),t&&o){const r=this.dropTargetEvent(t,o,!1);t.onDragCancel?.(r)}this.clearDragAndDropProperties()}onDragging(e,t=!1){this.positionDragImageComp(e);const o=this.findCurrentDropTarget(e),{lastDropTarget:r,dragSource:n,dragItem:i}=this;let s=!1;if(o!==r){if(s=!0,r){const l=this.dropTargetEvent(r,e,t);r.onDragLeave?.(l)}if(r!==null&&!o?this.handleExit(n,i):r===null&&o&&this.handleEnter(n,i),o){const l=this.dropTargetEvent(o,e,t);o.onDragEnter?.(l)}this.lastDropTarget=o}else if(o){const l=this.dropTargetEvent(o,e,t);o.onDragging?.(l),l?.changed&&(s=!0)}this.lastMouseEvent=e,s&&this.updateDragImageComp()}clearDragAndDropProperties(){this.removeDragImageComp(this.dragImageComp),this.dragImageCompPromise=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0,this.lastMouseEvent=null,this.lastDraggingEvent=null,this.lastDropTarget=null,this.dragItem=null,this.dragInitialSourcePointerOffsetX=0,this.dragInitialSourcePointerOffsetY=0,this.dragSource=null}getAllContainersFromDropTarget(e){const t=e.getContainer(),o=e.getSecondaryContainers?.(),r=o?.length;if(!r)return[[t]];const n=new Array(r+1);n[0]=[t];for(let i=0;i<r;++i)n[i+1]=o[i];return n}isMouseOnDropTarget(e,t){const o=this.getAllContainersFromDropTarget(t);let r=!1;const n=(l,u)=>{for(const d of u){const{width:h,height:p,left:g,right:v,top:b,bottom:C}=d.getBoundingClientRect();if(h===0||p===0)return!1;const S=l.clientX>=g&&l.clientX<v,k=l.clientY>=b&&l.clientY<C;if(!S||!k)return!1}return!0};for(const l of o)if(n(e,l)){r=!0;break}const{eElement:i,type:s}=this.dragSource;return t.targetContainsSource&&!t.getContainer().contains(i)?!1:r&&t.isInterestedIn(s,i)}findCurrentDropTarget(e){const t=[],o=this.dropTargets;for(let s=0,l=o.length;s<l;++s){const u=o[s];this.isMouseOnDropTarget(e,u)&&t.push(u)}const r=t.length;if(r===0)return null;if(r===1)return t[0];const i=Kr(this.beans).elementsFromPoint(e.clientX,e.clientY);for(let s=0,l=i.length;s<l;++s){const u=i[s];for(let d=0,h=t.length;d<h;d++){const p=t[d],g=this.getAllContainersFromDropTarget(p);let v=!1;for(let b=0,C=g.length;b<C&&!v;b++){const S=g[b];for(let k=0,F=S.length;k<F;k++)if(S[k]===u){v=!0;break}}if(v)return p}}return null}addDropTarget(e){this.dropTargets.push(e),e.external&&this.externalDropZoneCount++}removeDropTarget(e){const t=e.getContainer(),o=this.dropTargets;let r=0;for(let n=0,i=o.length;n<i;++n){const s=o[n];if(s.getContainer()===t){s.external&&--this.externalDropZoneCount;continue}r!==n&&(o[r]=s),++r}o.length=r}hasExternalDropZones(){return this.externalDropZoneCount>0}findExternalZone(e){const t=this.dropTargets;for(let o=0,r=t.length;o<r;++o){const n=t[o];if(n.external&&n.getContainer()===e)return n}return null}dropTargetEvent(e,t,o){const{dragSource:r,dragItem:n,lastDraggingEvent:i,lastMouseEvent:s,dragInitialSourcePointerOffsetX:l,dragInitialSourcePointerOffsetY:u}=this,d=e.getContainer(),h=d.getBoundingClientRect(),{clientX:p,clientY:g}=t,v=p-(s?.clientX||0),b=g-(s?.clientY||0),C=this.createEvent({event:t,x:p-h.left,y:g-h.top,vDirection:b>0?"down":b<0?"up":null,hDirection:v<0?"left":v>0?"right":null,initialSourcePointerOffsetX:l,initialSourcePointerOffsetY:u,dragSource:r,fromNudge:o,dragItem:n,dropZoneTarget:d,dropTarget:i?.dropTarget??null,changed:!!i?.changed});return this.lastDraggingEvent=C,C}positionDragImageComp(e){const t=this.dragImageComp?.getGui();t&&lV(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(o=>{if(t!==this.dragImageCompPromise||!this.lastMouseEvent||!this.isAlive()){this.destroyBean(o);return}this.dragImageCompPromise=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0;const r=this.dragImageComp;r!==o&&(this.dragImageComp=o,this.removeDragImageComp(r)),o&&(this.appendDragImageComp(o),this.updateDragImageComp())})}appendDragImageComp(e){const t=e.getGui(),o=t.style;o.position="absolute",o.zIndex="9999",this.beans.dragSvc?.hasPointerCapture()&&(o.pointerEvents="none"),this.gos.setInstanceDomData(t),this.beans.environment.applyThemeClasses(t),o.top="20px",o.left="20px";const r=em(this.beans);r?r.appendChild(t):this.warnNoBody()}updateDragImageComp(){const{dragImageComp:e,dragSource:t,lastDropTarget:o,lastDraggingEvent:r,dragImageLastLabel:n}=this;if(!e)return;this.setDragImageCompIcon(o?.getIconName?.(r)??null);let i=t?.dragItemName;typeof i=="function"&&(i=i(r)),i||(i=""),n!==i&&(this.dragImageLastLabel=i,e.setLabel(i))}},RG=class extends FG{createEvent(e){return je(this.gos,e)}createDragImageComp(e){const{gos:t,beans:o}=this;return W7(o.userCompFactory,je(t,{dragSource:e}))?.newAgStackInstance()}handleEnter(e,t){e?.onGridEnter?.(t)}handleExit(e,t){e?.onGridExit?.(t)}warnNoBody(){pe(54)}isDropZoneWithinThisGrid(e){return this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody.contains(e.dropZoneTarget)}registerGridDropTarget(e,t){const o={getContainer:e,isInterestedIn:r=>r===1||r===0,getIconName:()=>"notAllowed"};this.addDropTarget(o),t.addDestroyFunc(()=>this.removeDropTarget(o))}};function PF(e,t){return e+"_"+t}function Nt(e){return e instanceof dc}var dc=class extends ue{constructor(e,t,o,r){super(),this.providedColumnGroup=e,this.groupId=t,this.partId=o,this.pinned=r,this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null,this.colIdSanitised=Kl(this.getUniqueId())}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}getUniqueId(){return PF(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)Nt(e)&&e.checkLeft();if(this.displayedChildren.length>0)if(this.gos.get("enableRtl")){const t=st(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??[])li(t)?e.push(t):Nt(t)&&t.addDisplayedLeafColumns(e)}addLeafColumns(e){for(const t of this.children??[])li(t)?e.push(t):Nt(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 o of this.children??[]){if(Nt(o)&&!o.displayedChildren?.length)continue;switch(o.getColumnGroupShow()){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(o);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(o);break;default:this.displayedChildren.push(o);break}}this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},EF="row-group-",PG="t-",EG="b-",TG=0,TF=class{constructor(e){this.id=void 0,this.destroyed=!1,this._groupData=void 0,this.master=!1,this.detail=void 0,this.rowIndex=null,this.field=null,this.rowGroupColumn=null,this.key=null,this.sourceRowIndex=-1,this._leafs=void 0,this.childrenMapped=null,this.treeParent=null,this.treeNodeFlags=0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=TG++,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 allLeafChildren(){const e=this._leafs;return e===void 0?this.beans.groupStage?.loadLeafs?.(this)??null:e}set allLeafChildren(e){this._leafs=e}setData(e){this.setDataCommon(e,!1)}updateData(e){this.setDataCommon(e,!0)}setDataCommon(e,t){const{valueCache:o,eventSvc:r}=this.beans,n=this.data;this.data=e,o?.onDataChanged(),this.updateDataOnDetailNode(),this.resetQuickFilterAggregateText();const i=this.createDataChangedEvent(e,n,t);if(this.__localEventService?.dispatchEvent(i),this.sibling){this.sibling.data=e;const l=this.sibling.createDataChangedEvent(e,n,t);this.sibling.__localEventService?.dispatchEvent(l)}r.dispatchEvent({type:"rowNodeDataChanged",node:this});const s=this.pinnedSibling;s&&(s.data=e,s.__localEventService?.dispatchEvent(s.createDataChangedEvent(e,n,t)),r.dispatchEvent({type:"rowNodeDataChanged",node:s}))}updateDataOnDetailNode(){const e=this.detailNode;e&&(e.data=this.data)}createDataChangedEvent(e,t,o){return{type:"dataChanged",node:this,oldData:t,newData:e,update:o}}getRowIndexString(){return this.rowIndex==null?(yt(13),null):this.rowPinned==="top"?PG+this.rowIndex:this.rowPinned==="bottom"?EG+this.rowIndex:this.rowIndex.toString()}setDataAndId(e,t){const{selectionSvc:o}=this.beans,r=o?.createDaemonNode?.(this),n=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),o&&(o.updateRowSelectable(this),o.syncInRowNode(this,r));const i=this.createDataChangedEvent(e,n,!1);this.__localEventService?.dispatchEvent(i)}setId(e){const t=wm(this.beans.gos);if(t)if(this.data){const o=this.parent?.getRoute()??[];this.id=t({data:this.data,parentKeys:o.length>0?o:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(EF)&&yt(14,{groupPrefix:EF})}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,o){this.beans.expansionSvc?.setExpanded(this,e,t,o)}setDataValue(e,t,o){const{colModel:r,valueSvc:n,gos:i,editSvc:s}=this.beans,l=typeof e!="string"?e:r.getCol(e)??r.getColDefCol(e);if(!l)return!1;const u=n.getValueForDisplay({column:l,node:this,source:"api"}).value;if(i.get("readOnlyEdit")){const{beans:{eventSvc:h},data:p,rowIndex:g,rowPinned:v}=this;return h.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:g,rowPinned:v,column:l,colDef:l.colDef,data:p,node:this,oldValue:u,newValue:t,value:t,source:o}),!1}if(s&&!s.committing){const h=s.setDataValue({rowNode:this,column:l},t,o);if(h!=null)return h}const d=n.setValue(this,l,t,o);return this.dispatchCellChangedEvent(l,t,u),d&&this.pinnedSibling?.dispatchCellChangedEvent(l,t,u),d}updateHasChildren(){let e=this.group&&!this.footer||!!this.childrenAfterGroup?.length;const{rowChildrenSvc:t}=this.beans;t&&(e=t.getHasChildrenValue(this)),e!==this.__hasChildren&&(this.__hasChildren=!!e,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(e,t,o){const r={type:"cellChanged",node:this,column:e,newValue:t,oldValue:o};this.__localEventService?.dispatchEvent(r)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){return this.beans.expansionSvc?.isExpandable(this)??!1}isSelected(){if(this.footer)return this.sibling.isSelected();const e=this.rowPinned&&this.pinnedSibling;return e?e.isSelected():this.__selected}depthFirstSearch(e){const t=this.childrenAfterGroup;if(t)for(let o=0,r=t.length;o<r;++o)t[o].depthFirstSearch(e);e(this)}dispatchRowEvent(e){this.__localEventService?.dispatchEvent({type:e,node:this})}setSelected(e,t=!1,o="api"){this.beans.selectionSvc?.setNodesSelected({nodes:[this],newValue:e,clearSelection:t,source:o})}isRowPinned(){return!!this.rowPinned}__addEventListener(e,t){(this.__localEventService??(this.__localEventService=new Ki)).addEventListener(e,t)}__removeEventListener(e,t){this.removeLocalListener(e,t)}addEventListener(e,t){this.beans.validation?.checkRowEvents(e);const o=this.__localEventService??(this.__localEventService=new Ki);this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,o);const r=this.frameworkEventListenerService?.wrap(e,t)??t;o.addEventListener(e,r)}removeEventListener(e,t){const o=this.frameworkEventListenerService?.unwrap(e,t)??t;this.removeLocalListener(e,o)}removeLocalListener(e,t){const o=this.__localEventService;o&&(o.removeEventListener(e,t),o.noRegisteredListenersExist()&&(this.__localEventService=null))}isFullWidthCell(){if(pe(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;if(this.destroyed=!0,e?this.clearRowTopAndRowIndex():(this.setRowTop(null),this.setRowIndex(null)),!this.footer){const t=this.detailNode;t&&t._destroy(e);const o=this.sibling;o&&o._destroy(e)}return!0}},DF={agSetColumnFilter:"agSetColumnFilterHandler",agMultiColumnFilter:"agMultiColumnFilterHandler",agGroupColumnFilter:"agGroupColumnFilterHandler",agNumberColumnFilter:"agNumberColumnFilterHandler",agDateColumnFilter:"agDateColumnFilterHandler",agTextColumnFilter:"agTextColumnFilterHandler"},DG=new Set(Object.values(DF));function fi(e,t){const o=e.filterUi;if(!o)return null;if(o.created)return o.promise;if(t)return null;const r=o.create(o.refreshed),n=o;return n.created=!0,n.promise=r,r}function MG(e,t,o,r,n,i,s){return t.refresh?.({...o,model:r,source:i,additionalEventAttributes:s}),e().then(l=>{if(l){const{filter:u,filterParams:d}=l;MF(u,d,r,n,i,s)}})}function MF(e,t,o,r,n,i){e?.refresh?.({...t,model:o,state:r,source:n,additionalEventAttributes:i})}function AF(e,t,o,r){const n=e();n?.created&&n.promise.then(i=>{const s=t();MF(i,n.filterParams,s,o()??{model:s},"ui",r)})}function _F(e){let t,o=!1,r;const{action:n,filterParams:i,getFilterUi:s,getModel:l,getState:u,updateState:d,updateModel:h,processModelToApply:p}=e;switch(n){case"apply":{const g=u();r=g?.model??null,p&&(r=p(r)),t={state:g?.state,model:r},o=!0;break}case"clear":{t={model:null},i?.buttons?.includes("apply")||(o=!0,r=null);break}case"reset":{t={model:null},o=!0,r=null;break}case"cancel":{t={model:l()};break}}d(t),o?h(r):AF(s,l,u,{fromAction:n})}function qt(e,t){return e[t]??null}function pi(e){return ai(e)}function AG(e){return{tag:"div",cls:e}}var _G=class extends ko{constructor(e){const{className:t="ag-filter-apply-panel"}=e??{};super(AG(t)),this.listeners=[],this.validationMessage=null,this.className=t}updateButtons(e,t){const o=this.buttons;if(this.buttons=e,o===e)return;const r=this.getGui();En(r);let n;this.destroyListeners();const i=document.createDocumentFragment(),s=this.className,l=({type:d,label:h})=>{const p=k=>{this.dispatchLocalEvent({type:d,event:k})};["apply","clear","reset","cancel"].includes(d)||pe(75);const g=d==="apply",b=pi({tag:"button",attrs:{type:g&&t?"submit":"button"},ref:`${d}FilterButton`,cls:`ag-button ag-standard-button ${s}-button${g?" "+s+"-apply-button":""}`,children:h});this.activateTabIndex([b]),g&&(n=b);const C=k=>{k.key===te.ENTER&&(k.preventDefault(),p(k))},S=this.listeners;b.addEventListener("click",p),S.push(()=>b.removeEventListener("click",p)),b.addEventListener("keydown",C),S.push(()=>b.removeEventListener("keydown",C)),i.append(b)};for(const d of e)l(d);this.eApply=n;const u=this.validationTooltipFeature;n&&!u?this.validationTooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eApply,getLocation:()=>"advancedFilter",getTooltipShowDelayOverride:()=>1e3})):!n&&u&&(this.validationTooltipFeature=this.destroyBean(u)),r.append(i)}getApplyButton(){return this.eApply}updateValidity(e,t=null){const o=this.eApply;o&&(Ql(o,!e),this.validationMessage=t,this.validationTooltipFeature?.setTooltipAndRefresh(this.validationMessage))}destroyListeners(){for(const e of this.listeners)e();this.listeners=[]}destroy(){this.destroyListeners(),super.destroy()}},IG={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd",filterSummaryInactive:"is (All)",filterSummaryContains:"contains",filterSummaryNotContains:"does not contain",filterSummaryTextEquals:"equals",filterSummaryTextNotEqual:"does not equal",filterSummaryStartsWith:"begins with",filterSummaryEndsWith:"ends with",filterSummaryBlank:"is blank",filterSummaryNotBlank:"is not blank",filterSummaryEquals:"=",filterSummaryNotEqual:"!=",filterSummaryGreaterThan:">",filterSummaryGreaterThanOrEqual:">=",filterSummaryLessThan:"<",filterSummaryLessThanOrEqual:"<=",filterSummaryInRange:"between",filterSummaryInRangeValues:e=>`(${e[0]}, ${e[1]})`,filterSummaryTextQuote:e=>`"${e[0]}"`,minDateValidation:e=>`Date must be after ${e[0]}`,maxDateValidation:e=>`Date must be before ${e[0]}`,strictMinValueValidation:e=>`Must be greater than ${e[0]}`,strictMaxValueValidation:e=>`Must be less than ${e[0]}`};function rn(e,t,o){return uV(e,IG,t,o)}function IF(e,t){const{debounceMs:o}=e;return fh(e)?(o!=null&&pe(71),0):o??t}function fh(e){return(e.buttons?.indexOf("apply")??-1)>=0}function BF(e,t,o,r){let n=rn(e,o);if(typeof t=="function"){const i=rn(e,r);n=t({filterOptionKey:r,filterOption:i,placeholder:n})}else typeof t=="string"&&(n=t);return n}var BG=class extends ko{constructor(e,t,o,r,n,i){super(),this.column=e,this.wrapper=t,this.eventParent=o,this.updateModel=r,this.isGlobalButtons=n,this.enableGlobalButtonCheck=i,this.hidePopup=null,this.applyActive=!1}postConstruct(){const{comp:e,params:t}=this.wrapper,o=t,r=o.useForm,n=r?"form":"div";this.setTemplate({tag:n,cls:"ag-filter-wrapper"}),r&&this.addManagedElementListeners(this.getGui(),{submit:i=>{i?.preventDefault()},keydown:this.handleKeyDown.bind(this)}),this.appendChild(e.getGui()),this.params=o,this.resetButtonsPanel(o),this.addManagedListeners(this.eventParent,{filterParamsChanged:({column:i,params:s})=>{i===this.column&&this.resetButtonsPanel(s,this.params)},filterStateChanged:({column:i,state:s})=>{i===this.column&&this.eButtons?.updateValidity(s.valid!==!1)},filterAction:({column:i,action:s,event:l})=>{i===this.column&&this.afterAction(s,l)},...this.enableGlobalButtonCheck?{filterGlobalButtons:({isGlobal:i})=>{if(i!==this.isGlobalButtons){this.isGlobalButtons=i;const s=this.params;this.resetButtonsPanel(s,s,!0)}}}:void 0})}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup)}resetButtonsPanel(e,t,o){const{buttons:r,readOnly:n}=t??{},{buttons:i,readOnly:s,useForm:l}=e;if(!o&&n===s&&Lx(r,i))return;const u=i&&i.length>0&&!e.readOnly&&!this.isGlobalButtons;let d=this.eButtons;if(u){const h=i.map(p=>{const g=`${p}Filter`;return{type:p,label:rn(this,g)}});if(this.applyActive=fh(this.params),!d){d=this.createBean(new _G),this.appendChild(d.getGui());const p=this.column,g=v=>({event:b})=>{this.updateModel(p,v,{fromButtons:!0}),this.afterAction(v,b)};d?.addManagedListeners(d,{apply:g("apply"),clear:g("clear"),reset:g("reset"),cancel:g("cancel")}),this.eButtons=d}d.updateButtons(h,l)}else this.applyActive=!1,d&&(ia(d.getGui()),this.eButtons=this.destroyBean(d))}close(e){const t=this.hidePopup;if(!t)return;const o=e,r=o?.key;let n;(r===te.ENTER||r===te.SPACE)&&(n={keyboardEvent:o}),t(n),this.hidePopup=null}afterAction(e,t){const{params:o,applyActive:r}=this,n=o?.closeOnApply;switch(e){case"apply":{t?.preventDefault(),n&&r&&this.close(t);break}case"reset":{n&&r&&this.close();break}case"cancel":{n&&this.close(t);break}}}handleKeyDown(e){!e.defaultPrevented&&e.key===te.ENTER&&this.applyActive&&(this.updateModel(this.column,"apply",{fromButtons:!0}),this.afterAction("apply",e))}destroy(){this.hidePopup=null,this.eButtons=this.destroyBean(this.eButtons)}},OG={tag:"div",cls:"ag-filter"},LG=class extends ko{constructor(e,t,o){super(OG),this.column=e,this.source=t,this.enableGlobalButtonCheck=o,this.wrapper=null}postConstruct(){this.beans.colFilter?.activeFilterComps.add(this),this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return this.wrapper!=null}getFilter(){return this.wrapper?.then(e=>e.comp)??null}afterInit(){return this.wrapper?.then(()=>{})??Ve.resolve()}afterGuiAttached(e){this.afterGuiAttachedParams=e,this.wrapper?.then(t=>{this.comp?.afterGuiAttached(e),t?.comp?.afterGuiAttached?.(e)})}afterGuiDetached(){this.wrapper?.then(e=>{e?.comp?.afterGuiDetached?.()})}createFilter(e){const{column:t,source:o,beans:{colFilter:r}}=this,n=r.getFilterUiForDisplay(t)??null;this.wrapper=n,n?.then(i=>{if(!i)return;const{isHandler:s,comp:l}=i;let u;if(s){const d=!!this.enableGlobalButtonCheck,h=this.createBean(new BG(t,i,r,r.updateModel.bind(r),d&&r.isGlobalButtons,d));this.comp=h,u=h.getGui()}else u=l.getGui(),xe(u)||pe(69,{guiFromFilter:u});this.appendChild(u),e?this.eventSvc.dispatchEvent({type:"filterOpened",column:t,source:o,eGui:this.getGui()}):l.afterGuiAttached?.(this.afterGuiAttachedParams)})}onFilterDestroyed(e){const{source:t,column:o}=e;(t==="api"||t==="paramsUpdated")&&o.getId()===this.column.getId()&&this.beans.colModel.getColDefCol(this.column)&&(En(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()}},OF={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},LF=["january","february","march","april","may","june","july","august","september","october","november","december"];function NG(e,t){return e==null?-1:t==null?1:Number.parseFloat(e)-Number.parseFloat(t)}function NF(e){return e instanceof Date&&!isNaN(e.getTime())}var Xm={number:()=>{},boolean:()=>({maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:(e,t)=>t,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(e,t)=>t===!1,numberOfInputs:0}]}),date:()=>({isValidDate:NF}),dateString:({dataTypeDefinition:e})=>({comparator:(t,o)=>{const r=e.dateParser(o);return o==null||r<t?-1:r>t?1:0},isValidDate:t=>typeof t=="string"&&NF(e.dateParser(t))}),dateTime:e=>Xm.date(e),dateTimeString:e=>Xm.dateString(e),object:()=>{},text:()=>{}},Zm={number:()=>({comparator:NG}),boolean:({t:e})=>({valueFormatter:t=>xe(t.value)?e(String(t.value),t.value?"True":"False"):e("blanks","(Blanks)")}),date:({formatValue:e,t})=>({valueFormatter:o=>{const r=e(o);return xe(r)?r:t("blanks","(Blanks)")},treeList:!0,treeListFormatter:(o,r)=>{if(o==="NaN")return t("invalidDate","Invalid Date");if(r===1&&o!=null){const n=LF[Number(o)-1];return t(n,OF[n])}return o??t("blanks","(Blanks)")},treeListPathGetter:o=>ah(o,!1)}),dateString:({formatValue:e,dataTypeDefinition:t,t:o})=>({valueFormatter:r=>{const n=e(r);return xe(n)?n:o("blanks","(Blanks)")},treeList:!0,treeListPathGetter:r=>ah(t.dateParser(r??void 0),!1),treeListFormatter:(r,n)=>{if(n===1&&r!=null){const i=LF[Number(r)-1];return o(i,OF[i])}return r??o("blanks","(Blanks)")}}),dateTime:e=>{const t=Zm.date(e);return t.treeListPathGetter=ah,t},dateTimeString(e){const t=e.dataTypeDefinition.dateParser,o=Zm.dateString(e);return o.treeListPathGetter=r=>ah(t(r??void 0)),o},object:({formatValue:e,t})=>({valueFormatter:o=>{const r=e(o);return xe(r)?r:t("blanks","(Blanks)")}}),text:()=>{}};function zG(e,t,o,r,n,i,s){let l=t,u=o;const d=e==="agSetColumnFilter";!u&&r.baseDataType==="object"&&!d&&(u=({column:v,node:b})=>n({column:v,node:b,value:i.valueSvc.getValue(v,b)}));const p=(d?Zm:Xm)[r.baseDataType],g=p({dataTypeDefinition:r,formatValue:n,t:s});return l=typeof t=="object"?{...g,...t}:g,{filterParams:l,filterValueGetter:u}}var HG={boolean:"agTextColumnFilter",date:"agDateColumnFilter",dateString:"agDateColumnFilter",dateTime:"agDateColumnFilter",dateTimeString:"agDateColumnFilter",number:"agNumberColumnFilter",object:"agTextColumnFilter",text:"agTextColumnFilter"},VG={boolean:"agTextColumnFloatingFilter",date:"agDateColumnFloatingFilter",dateString:"agDateColumnFloatingFilter",dateTime:"agDateColumnFloatingFilter",dateTimeString:"agDateColumnFloatingFilter",number:"agNumberColumnFloatingFilter",object:"agTextColumnFloatingFilter",text:"agTextColumnFloatingFilter"};function GG(e,t=!1){return(t?VG:HG)[e??"text"]}var jG=class extends v9{},zF="__ag_Grid_Stop_Propagation";function hc(e){e[zF]=!0}function Ln(e){return e[zF]===!0}var HF={isStopPropagation:Ln,stopPropagation:hc},fc=class extends oF{constructor(e,t){super(e,HF,t)}},WG=class extends ko{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 fc(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=this.createBean(new jG(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}))}handleKeyDown(e){}init(e){const t=e;this.setParams(t),this.setModelIntoUi(t.state.model,!0).then(()=>this.updateUiVisibility())}areStatesEqual(e,t){return e===t}refresh(e){const t=e,o=this.params;this.params=t;const{source:r,state:n,additionalEventAttributes:i}=t;r==="colDef"&&this.updateParams(t,o);const s=this.state;this.state=n;const l=i?.fromAction;return(l&&l!=="apply"||n.model!==s.model||!this.areStatesEqual(n.state,s.state))&&this.setModelIntoUi(n.model),!0}setParams(e){this.params=e,this.state=e.state,this.commonUpdateParams(e)}updateParams(e,t){this.commonUpdateParams(e,t)}commonUpdateParams(e,t){this.applyActive=fh(e),this.setupApplyDebounced()}doesFilterPass(e){pe(283);const{getHandler:t,model:o,column:r}=this.params;return t().doesFilterPass({...e,model:o,handlerParams:this.beans.colFilter.getHandlerParams(r)})}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return pe(284),this.params.model!=null}setupApplyDebounced(){const e=IF(this.params,this.defaultDebounceMs),t=An(this,this.checkApplyDebounce.bind(this),e);this.applyDebounced=()=>{this.debouncePending=!0,t()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.doApplyModel())}getModel(){return pe(285),this.params.model}setModel(e){pe(286);const{beans:t,params:o}=this;return t.colFilter.setModelForColumnLegacy(o.column,e)}applyModel(e="api"){return this.doApplyModel()}canApply(e){return!0}doApplyModel(e){const{params:t,state:{valid:o=!0,model:r}}=this;if(!o)return!1;const n=!this.areModelsEqual(t.model,r);return n&&t.onAction("apply",e),n}onNewRowsLoaded(){}onUiChanged(e,t=!1){this.updateUiVisibility();const o=this.getModelFromUi(),r={model:o,state:this.getState(),valid:this.canApply(o)};this.state=r;const{params:n,gos:i,eventSvc:s,applyActive:l}=this;n.onStateChange(r),n.onUiChange(this.getUiChangeEventParams()),i.get("enableFilterHandlers")||s.dispatchEvent({type:"filterModified",column:n.column,filterInstance:this}),r.valid&&(e??(e=l?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:o}=this;if(!t)return;const r=e==="floatingFilter"||e==="columnFilter";r?(t.restoreLastSize(),t.setResizable(o.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(t.removeSizeFromEl(),t.setResizable(!1)),t.constrainSizeToAvailableHeight(r)}afterGuiDetached(){this.checkApplyDebounce(),this.positionableFeature?.constrainSizeToAvailableHeight(!1)}destroy(){this.positionableFeature=this.destroyBean(this.positionableFeature),super.destroy()}translate(e,t){return rn(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)}};function VF(e){return!!e.operator}function qG(e,t,o){if(t==null)return null;let r=null;const{compName:n,jsComp:i,fwComp:s}=Kk(e,t);return n?r={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[n]:i==null&&s==null&&t.filter===!0&&(r=o()),r}var ph={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"},Ym=class extends ue{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"},o=t.autoHeight?ph.AUTO_HEIGHT:t.print?ph.PRINT:ph.NORMAL;this.view.updateLayoutClasses(o,t)}},gi="Viewport",GF="fakeVScrollComp",Qm=["fakeHScrollComp","centerHeader","topCenter","bottomCenter","stickyTopCenter","stickyBottomCenter"],jF=100,Jm=150,UG=class extends ue{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=An(this,()=>this.lastScrollSource[1]=null,Jm),this.resetLastVScrollDebounced=An(this,()=>this.lastScrollSource[0]=null,Jm)}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,o=>{this.centerRowsCtrl=o.center,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()})}invalidateHorizontalScroll(){this.isHorizontalPositionInvalidated=!0}invalidateVerticalScroll(){this.isVerticalPositionInvalidated=!0}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.centerRowsCtrl.eViewport,{scroll:this.onHScroll.bind(this,gi)});for(const e of Qm){const t=this.ctrlsSvc.get(e);this.registerScrollPartner(t,this.onHScroll.bind(this,e))}}addVerticalScrollListeners(){const e=this.ctrlsSvc.get("fakeVScrollComp"),t=this.gos.get("debounceVerticalScrollbar"),o=t?An(this,this.onVScroll.bind(this,gi),jF):this.onVScroll.bind(this,gi),r=t?An(this,this.onVScroll.bind(this,GF),jF):this.onVScroll.bind(this,GF);this.addManagedElementListeners(this.eBodyViewport,{scroll:o}),this.registerScrollPartner(e,r)}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[...Qm,gi]){if(this.lastScrollSource[1]===t)continue;const o=this.getViewportForSource(t);Vd(o,e,this.enableRtl)}}getViewportForSource(e){return e===gi?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:o}=t;if(this.shouldBlockScrollUpdate(1,o,!0))return;const r=Hd(this.getViewportForSource(e),this.enableRtl);this.doHorizontalScroll(r),this.resetLastHScrollDebounced()}onVScroll(e){if(!this.isControllingScroll(e,0))return;let t;if(e===gi?t=this.eBodyViewport.scrollTop:t=this.ctrlsSvc.get("fakeVScrollComp").getScrollPosition(),this.shouldBlockScrollUpdate(0,t,!0))return;const{animationFrameSvc:o}=this;o?.setScrollTop(t),this.nextScrollTop=t,e===gi?this.ctrlsSvc.get("fakeVScrollComp").setScrollPosition(t):this.eBodyViewport.scrollTop=t,o?.active?o.schedule():this.scrollGridIfNeeded(!0),this.resetLastVScrollDebounced()}doHorizontalScroll(e){const t=this.ctrlsSvc.get("fakeHScrollComp").getScrollPosition();this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}isScrolling(){return this.isScrollActive}fireScrollEvent(e){const t={type:"bodyScroll",direction: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"})},Jm)}shouldBlockScrollUpdate(e,t,o=!1){return o&&!es()?!1:e===0?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t)}shouldBlockVerticalScroll(e){const t=om(this.eBodyViewport),{scrollHeight:o}=this.eBodyViewport;return e<0||e+t>o}shouldBlockHorizontalScroll(e){const t=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:o}=this.centerRowsCtrl.eViewport;if(this.enableRtl){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>o}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){const e=this.scrollLeft;let t=!1;for(const o of Qm)if(this.getViewportForSource(o).scrollLeft!==e){t=!0;break}t&&this.onHScroll(gi)}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 r=this.centerRowsCtrl.eViewport.scrollWidth-this.centerRowsCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(1,e)&&(this.enableRtl?e=e>0?0:r:e=Math.min(Math.max(e,0),r)),Vd(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:o,lastScrollTop:r}=this;return{top:r,bottom:r+o}}this.isVerticalPositionInvalidated=!1;const{scrollTop:e,offsetHeight:t}=this.eBodyViewport;return this.lastScrollTop=e,this.lastOffsetHeight=t,{top:e,bottom:e+t}}getApproximateVScollPosition(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()}getHScrollPosition(){return this.centerRowsCtrl.getHScrollPosition()}isHorizontalScrollShowing(){return this.isHorizontalPositionInvalidated&&(this.lastIsHorizontalScrollShowing=this.centerRowsCtrl.isHorizontalScrollShowing(),this.isHorizontalPositionInvalidated=!1),this.lastIsHorizontalScrollShowing}scrollHorizontally(e){const t=this.centerRowsCtrl.eViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowsCtrl.eViewport.scrollLeft-t}scrollToTop(){this.eBodyViewport.scrollTop=0}ensureNodeVisible(e,t=null){const{rowModel:o}=this.beans,r=o.getRowCount();let n=-1;for(let i=0;i<r;i++){const s=o.getRow(i);if(typeof e=="function"){if(s&&e(s)){n=i;break}}else if(e===s||e===s.data){n=i;break}}n>=0&&this.ensureIndexVisible(n,t)}ensureIndexVisible(e,t,o=0){if(no(this.gos,"print"))return;const{rowModel:r}=this.beans,n=r.getRowCount();if(typeof e!="number"||e<0||e>=n){pe(88,{index:e});return}this.clearRetryListeners();const{frameworkOverrides:i,pageBounds:s,rowContainerHeight:l,rowRenderer:u}=this.beans;i.wrapIncoming(()=>{const d=this.ctrlsSvc.getGridBodyCtrl(),h=r.getRow(e);let p,g,v=0;this.invalidateVerticalScroll();do{const{stickyTopHeight:b,stickyBottomHeight:C}=d,S=h.rowTop,k=h.rowHeight,F=s.getPixelOffset(),R=h.rowTop-F,P=R+h.rowHeight,T=this.getVScrollPosition(),D=l.divStretchOffset,M=T.top+D,O=T.bottom+D,I=O-M,z=l.getScrollPositionForPixel(R),U=l.getScrollPositionForPixel(P-I),q=Math.min((z+U)/2,R),A=M+b>R,K=O-C<P;let $=null;t==="top"?$=z-b:t==="bottom"?$=U+C:t==="middle"?$=q:A?$=z-b:K&&(U-z>I?$=z-b:$=U+C),$!==null&&(this.setVerticalScrollPosition($),u.redraw({afterScroll:!0})),p=S!==h.rowTop||k!==h.rowHeight,g=b!==d.stickyTopHeight||C!==d.stickyBottomHeight,v++}while((p||g)&&v<10);if(this.animationFrameSvc?.flushAllFrames(),o<10&&(h?.stub||!this.beans.rowAutoHeight?.areRowsMeasured())){const b=this.getVScrollPosition().top;this.clearRetryListenerFncs=this.addManagedEventListeners({bodyScroll:()=>{const C=this.getVScrollPosition().top;b!==C&&this.clearRetryListeners()},modelUpdated:()=>{this.clearRetryListeners(),!(e>=r.getRowCount())&&this.ensureIndexVisible(e,t,o+1)}})}})}clearRetryListeners(){for(const e of this.clearRetryListenerFncs)e();this.clearRetryListenerFncs=[]}ensureColumnVisible(e,t="auto"){const{colModel:o,frameworkOverrides:r}=this.beans,n=o.getCol(e);if(!n||n.isPinned()||!this.visibleCols.isColDisplayed(n))return;const i=this.getPositionedHorizontalScroll(n,t);r.wrapIncoming(()=>{i!==null&&this.centerRowsCtrl.setCenterViewportScrollLeft(i),this.centerRowsCtrl.onHorizontalViewportChanged(),this.animationFrameSvc?.flushAllFrames()})}getPositionedHorizontalScroll(e,t){const{columnBeforeStart:o,columnAfterEnd:r}=this.isColumnOutsideViewport(e),n=this.centerRowsCtrl.getCenterWidth()<e.getActualWidth(),i=this.centerRowsCtrl.getCenterWidth(),s=this.enableRtl;let l=(s?o:r)||n,u=s?r:o;t!=="auto"&&(l=t==="start",u=t==="end");const d=t==="middle";if(l||u||d){const{colLeft:h,colMiddle:p,colRight:g}=this.getColumnBounds(e);return d?p-i/2:l?s?g:h:s?h-i:g-i}return null}isColumnOutsideViewport(e){const{start:t,end:o}=this.getViewportBounds(),{colLeft:r,colRight:n}=this.getColumnBounds(e),i=this.enableRtl,s=i?t>n:o<n,l=i?o<r:t>r;return{columnBeforeStart:s,columnAfterEnd:l}}getColumnBounds(e){const t=this.enableRtl,o=this.visibleCols.bodyWidth,r=e.getActualWidth(),n=e.getLeft(),i=t?-1:1,s=t?o-n:n,l=s+r*i,u=s+r/2*i;return{colLeft:s,colMiddle:u,colRight:l}}getViewportBounds(){const e=this.centerRowsCtrl.getCenterWidth(),t=this.centerRowsCtrl.getCenterViewportScrollLeft(),o=t,r=e+t;return{start:o,end:r,width:e}}},ev=class extends ue{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=no(this.gos,"print"),{visibleCols:t,scrollVisibleSvc:o}=this.beans,r=t.bodyWidth,n=t.getColsLeftWidth(),i=t.getDisplayedColumnsRightWidth();let s;e?s=r+n+i:(s=r,this.addSpacer&&(this.gos.get("enableRtl")?n:i)===0&&o.verticalScrollShowing&&(s+=o.getScrollbarWidth())),this.callback(s)}},$G=class extends ue{constructor(e){super(),this.centerContainerCtrl=e}wireBeans(e){this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.listenForResize()}),this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this)}),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],()=>{this.checkViewportAndScrolls()})}listenForResize(){const{beans:e,centerContainerCtrl:t,gridBodyCtrl:o}=this,r=()=>{Mn(e,()=>{this.onCenterViewportResized()})};t.registerViewportResizeListener(r),o.registerBodyViewportResizeListener(r)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleSvc.updateScrollGap(),this.centerContainerCtrl.isViewportInTheDOMTree()){const{pinnedCols:e,colFlex:t}=this.beans;e?.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();const o=this.centerContainerCtrl.getCenterWidth();o!==this.centerWidth&&(this.centerWidth=o,t?.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0}checkViewportAndScrolls(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.scrollFeature.checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(){const e=this.gridBodyCtrl.eBodyViewport,t=om(e);this.bodyHeight!==t&&(this.bodyHeight=t,this.eventSvc.dispatchEvent({type:"bodyHeightChanged"}))}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){if(!this.isAlive())return;const e={horizontalScrollShowing:this.centerContainerCtrl.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleSvc.setScrollsVisible(e)}onHorizontalViewportChanged(){const e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.beans.colViewport.setScrollPosition(e,t)}};function gh(e,t,o,r){const n=t.getColDef().cellRendererParams?.suppressMouseEventHandling;return WF(e,t,o,r,n)}function KG(e,t,o,r){const n=t?.suppressMouseEventHandling;return WF(e,void 0,o,r,n)}function WF(e,t,o,r,n){return n?n(je(e,{column:t,node:o,event:r})):!1}function qF(e,t,o){let r=t;for(;r;){const n=Fk(e,r,o);if(n)return n;r=r.parentElement}return null}var mh="cellCtrl";function tv(e,t){return qF(e,t,mh)}var vh="renderedRow";function XG(e,t){return qF(e,t,vh)}function ov(e,t,o,r,n){const i=r?r.getColDef().suppressKeyboardEvent:void 0;if(!i)return!1;const s=je(e,{event:t,editing:n,column:r,node:o,data:o.data,colDef:r.getColDef()});return!!(i&&i(s))}function ZG(e){const{pinnedRowModel:t,rowModel:o,rangeSvc:r,visibleCols:n}=e;if(!r||n.allCols.length===0)return;const i=t?.isEmpty("top")??!0,s=t?.isEmpty("bottom")??!0,l=i?null:"top";let u,d;s?(u=null,d=o.getRowCount()-1):(u="bottom",d=t?.getPinnedBottomRowCount()??-1),r.setCellRange({rowStartIndex:0,rowStartPinned:l,rowEndIndex:d,rowEndPinned:u})}var YG=class extends ue{constructor(e){super(),this.element=e}postConstruct(){this.addKeyboardListeners(),this.addMouseListeners(),this.beans.touchSvc?.mockRowContextMenu(this),this.editSvc=this.beans.editSvc}addKeyboardListeners(){const e="keydown",t=this.processKeyboardEvent.bind(this,e);this.addManagedElementListeners(this.element,{[e]:t})}addMouseListeners(){const t=["dblclick","contextmenu","mouseover","mouseout","click",tk("touchstart")?"touchstart":"mousedown"];for(const o of t){const r=this.processMouseEvent.bind(this,o);this.addManagedElementListeners(this.element,{[o]:r})}}processMouseEvent(e,t){if(!ec(this.beans,t)||Ln(t))return;const{cellCtrl:o,rowCtrl:r}=this.getControlsForEventTarget(t.target);e==="contextmenu"?(o?.column&&o.dispatchCellContextMenuEvent(t),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(t,void 0,r,o)):(o&&o.onMouseEvent(e,t),r&&r.onMouseEvent(e,t))}getControlsForEventTarget(e){const{gos:t}=this;return{cellCtrl:tv(t,e),rowCtrl:XG(t,e)}}processKeyboardEvent(e,t){const{cellCtrl:o,rowCtrl:r}=this.getControlsForEventTarget(t.target);t.defaultPrevented||(o?this.processCellKeyboardEvent(o,e,t):r?.isFullWidth()&&this.processFullWidthRowKeyboardEvent(r,e,t))}processCellKeyboardEvent(e,t,o){const r=this.editSvc?.isEditing(e,{withOpenEditor:!0})??!1;!ov(this.gos,o,e.rowNode,e.column,r)&&t==="keydown"&&(!r&&this.beans.navigation?.handlePageScrollingKey(o)||e.onKeyDown(o),this.doGridOperations(o,r),iF(o)&&e.processCharacter(o)),t==="keydown"&&this.eventSvc.dispatchEvent(e.createEvent(o,"cellKeyDown"))}processFullWidthRowKeyboardEvent(e,t,o){const{rowNode:r}=e,{focusSvc:n,navigation:i}=this.beans,l=n.getFocusedCell()?.column;if(!ov(this.gos,o,r,l,!1)){const d=o.key;if(t==="keydown")switch(d){case te.PAGE_HOME:case te.PAGE_END:case te.PAGE_UP:case te.PAGE_DOWN:i?.handlePageScrollingKey(o,!0);break;case te.LEFT:case te.RIGHT:if(!this.gos.get("embedFullWidthRows"))break;case te.UP:case te.DOWN:e.onKeyboardNavigate(o);break;case te.TAB:e.onTabKeyDown(o);break}}t==="keydown"&&this.eventSvc.dispatchEvent(e.createRowEvent("cellKeyDown",o))}doGridOperations(e,t){if(!e.ctrlKey&&!e.metaKey||t||!ec(this.beans,e))return;const o=Xk(e),{clipboardSvc:r,undoRedo:n}=this.beans;if(o===te.A)return this.onCtrlAndA(e);if(o===te.C)return this.onCtrlAndC(r,e);if(o===te.D)return this.onCtrlAndD(r,e);if(o===te.V)return this.onCtrlAndV(r,e);if(o===te.X)return this.onCtrlAndX(r,e);if(o===te.Y)return this.onCtrlAndY(n);if(o===te.Z)return this.onCtrlAndZ(n,e)}onCtrlAndA(e){const{beans:{rowModel:t,rangeSvc:o,selectionSvc:r},gos:n}=this;o&&nc(n)&&!GV(n)&&t.isRowsToRender()?ZG(this.beans):r&&r.selectAllRowNodes({source:"keyboardSelectAll",selectAll:VV(n)}),e.preventDefault()}onCtrlAndC(e,t){if(!e||this.gos.get("enableCellTextSelection"))return;const{cellCtrl:o}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(o,{withOpenEditor:!0})||(t.preventDefault(),e.copyToClipboard())}onCtrlAndX(e,t){if(!e||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;const{cellCtrl:o}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(o,{withOpenEditor:!0})||(t.preventDefault(),e.cutToClipboard(void 0,"ui"))}onCtrlAndV(e,t){const{cellCtrl:o}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(o,{withOpenEditor:!0})||e&&!this.gos.get("suppressClipboardPaste")&&e.pasteFromClipboard()}onCtrlAndD(e,t){e&&!this.gos.get("suppressClipboardPaste")&&e.copyRangeDown(),t.preventDefault()}onCtrlAndZ(e,t){!this.gos.get("undoRedoCellEditing")||!e||(t.preventDefault(),t.shiftKey?e.redo("ui"):e.undo("ui"))}onCtrlAndY(e){e?.redo("ui")}},UF=class extends ue{constructor(e,t){super(),this.eContainer=e,this.eViewport=t}postConstruct(){this.addManagedEventListeners({rowContainerHeightChanged:this.onHeightChanged.bind(this,this.beans.rowContainerHeight)})}onHeightChanged(e){const t=e.uiContainerHeight,o=t!=null?`${t}px`:"";this.eContainer.style.height=o,this.eViewport&&(this.eViewport.style.height=o)}},bh=e=>e.topRowCtrls,Ch=e=>e.getStickyTopRowCtrls(),wh=e=>e.getStickyBottomRowCtrls(),yh=e=>e.bottomRowCtrls,Sh=e=>e.allRowCtrls,rv=e=>e.getCtrls("top"),nv=e=>e.getCtrls("center"),iv=e=>e.getCtrls("bottom"),QG={center:{type:"center",name:"center-cols",getRowCtrls:Sh,getSpannedRowCtrls:nv},left:{type:"left",name:"pinned-left-cols",pinnedType:"left",getRowCtrls:Sh,getSpannedRowCtrls:nv},right:{type:"right",name:"pinned-right-cols",pinnedType:"right",getRowCtrls:Sh,getSpannedRowCtrls:nv},fullWidth:{type:"fullWidth",name:"full-width",fullWidth:!0,getRowCtrls:Sh},topCenter:{type:"center",name:"floating-top",getRowCtrls:bh,getSpannedRowCtrls:rv},topLeft:{type:"left",name:"pinned-left-floating",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:bh,getSpannedRowCtrls:rv},topRight:{type:"right",name:"pinned-right-floating",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:bh,getSpannedRowCtrls:rv},topFullWidth:{type:"fullWidth",name:"floating-top-full-width",fullWidth:!0,getRowCtrls:bh},stickyTopCenter:{type:"center",name:"sticky-top",getRowCtrls:Ch},stickyTopLeft:{type:"left",name:"pinned-left-sticky-top",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:Ch},stickyTopRight:{type:"right",name:"pinned-right-sticky-top",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:Ch},stickyTopFullWidth:{type:"fullWidth",name:"sticky-top-full-width",fullWidth:!0,getRowCtrls:Ch},stickyBottomCenter:{type:"center",name:"sticky-bottom",getRowCtrls:wh},stickyBottomLeft:{type:"left",name:"pinned-left-sticky-bottom",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:wh},stickyBottomRight:{type:"right",name:"pinned-right-sticky-bottom",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:wh},stickyBottomFullWidth:{type:"fullWidth",name:"sticky-bottom-full-width",fullWidth:!0,getRowCtrls:wh},bottomCenter:{type:"center",name:"floating-bottom",getRowCtrls:yh,getSpannedRowCtrls:iv},bottomLeft:{type:"left",name:"pinned-left-floating-bottom",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:yh,getSpannedRowCtrls:iv},bottomRight:{type:"right",name:"pinned-right-floating-bottom",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:yh,getSpannedRowCtrls:iv},bottomFullWidth:{type:"fullWidth",name:"floating-bottom-full-width",fullWidth:!0,getRowCtrls:yh}};function $F(e){return`ag-${pc(e).name}-viewport`}function xh(e){const t=pc(e);return t.container??`ag-${t.name}-container`}function JG(e){return`ag-${pc(e).name}-spanned-cells-container`}function pc(e){return QG[e]}var ej=["topCenter","topLeft","topRight"],tj=["bottomCenter","bottomLeft","bottomRight"],oj=["center","left","right"],rj=["center","left","right","fullWidth"],nj=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],ij=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],sj=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],KF=["stickyTopCenter","stickyTopLeft","stickyTopRight"],XF=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],aj=[...KF,"stickyTopFullWidth",...XF,"stickyBottomFullWidth"],lj=[...ej,...tj,...oj,...KF,...XF],cj=class extends ue{constructor(e){super(),this.name=e,this.visible=!0,this.EMPTY_CTRLS=[],this.options=pc(e)}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],()=>{this.viewportSizeFeature=this.createManagedBean(new $G(this)),this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)})})}onStickyTopOffsetChanged(e){this.comp.setOffsetTop(`${e.offset}px`)}registerWithCtrlsService(){this.options.fullWidth||this.beans.ctrlsSvc.register(this.name,this)}forContainers(e,t){e.indexOf(this.name)>=0&&t()}setComp(e,t,o,r){this.comp=e,this.eContainer=t,this.eSpannedContainer=o,this.eViewport=r,this.createManagedBean(new YG(this.eViewport??this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();const{pinnedCols:n,rangeSvc:i}=this.beans,s=()=>this.onPinnedWidthChanged();this.forContainers(ij,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(n?.createPinnedWidthFeature(!0,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({leftPinnedWidthChanged:s})}),this.forContainers(sj,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(n?.createPinnedWidthFeature(!1,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({rightPinnedWidthChanged:s})}),this.forContainers(rj,()=>this.createManagedBean(new UF(this.eContainer,this.name==="center"?r:void 0))),i&&this.forContainers(lj,()=>this.createManagedBean(i.createDragListenerFeature(this.eContainer))),this.forContainers(nj,()=>this.createManagedBean(new ev(l=>this.comp.setContainerWidth(`${l}px`)))),this.visible=this.isContainerVisible(),this.addListeners(),this.registerWithCtrlsService()}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}addListeners(){const{spannedRowRenderer:e,gos:t}=this.beans,o=this.onDisplayedColumnsChanged.bind(this);this.addManagedEventListeners({displayedColumnsChanged:o,displayedColumnsWidthChanged:o,displayedRowsChanged:r=>this.onDisplayedRowsChanged(r.afterScroll)}),o(),this.onDisplayedRowsChanged(),e&&this.options.getSpannedRowCtrls&&t.get("enableCellSpan")&&this.addManagedListeners(e,{spannedRowsUpdated:()=>{const r=this.options.getSpannedRowCtrls(e);r&&this.comp.setSpannedRowCtrls(r,!1)}})}listenOnDomOrder(){if(aj.indexOf(this.name)>=0){this.comp.setDomOrder(!0);return}const t=()=>{const o=this.gos.get("ensureDomOrder"),r=no(this.gos,"print");this.comp.setDomOrder(o||r)};this.addManagedPropertyListener("domLayout",t),t()}onDisplayedColumnsChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}addPreventScrollWhileDragging(){const{dragSvc:e}=this.beans;if(!e)return;const t=o=>{e.dragging&&o.cancelable&&o.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc(()=>this.eContainer.removeEventListener("touchmove",t))}onHorizontalViewportChanged(e=!1){const t=this.getCenterWidth(),o=this.getCenterViewportScrollLeft();this.beans.colViewport.setScrollPosition(t,o,e)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return Nd(this.eViewport)}getCenterViewportScrollLeft(){return Hd(this.eViewport,this.enableRtl)}registerViewportResizeListener(e){const t=Dn(this.beans,this.eViewport,e);this.addDestroyFunc(()=>t())}isViewportInTheDOMTree(){return rm(this.eViewport)}getViewportScrollLeft(){return Hd(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){return this.gos.get("alwaysShowHorizontalScroll")||im(this.eViewport)}setHorizontalScroll(e){this.comp.setHorizontalScroll(e)}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(e){Vd(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 o=no(this.gos,"print"),n=this.gos.get("embedFullWidthRows")||o,i=t.filter(s=>{const l=s.isFullWidth();return this.options.fullWidth?!n&&l:n||!l});this.comp.setRowCtrls({rowCtrls:i,useFlushSync:e})}},uj="ag-force-vertical-scroll",dj="ag-selectable",hj="ag-column-moving",fj=class extends ue{constructor(){super(...arguments),this.stickyTopHeight=0,this.stickyBottomHeight=0}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colModel=e.colModel,this.scrollVisibleSvc=e.scrollVisibleSvc,this.pinnedRowModel=e.pinnedRowModel,this.filterManager=e.filterManager,this.rowGroupColsSvc=e.rowGroupColsSvc}setComp(e,t,o,r,n,i,s){this.comp=e,this.eGridBody=t,this.eBodyViewport=o,this.eTop=r,this.eBottom=n,this.eStickyTop=i,this.eStickyBottom=s,this.eCenterColsViewport=o.querySelector(`.${$F("center")}`),this.eFullWidthContainer=o.querySelector(`.${xh("fullWidth")}`),this.eStickyTopFullWidthContainer=i.querySelector(`.${xh("stickyTopFullWidth")}`),this.eStickyBottomFullWidthContainer=s.querySelector(`.${xh("stickyBottomFullWidth")}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",l=>this.setCellTextSelection(l.currentValue)),this.createManagedBean(new Ym(this.comp)),this.scrollFeature=this.createManagedBean(new UG(o)),this.beans.rowDragSvc?.setupRowDrag(o,this),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([r,o,n,i,s]),this.setGridRootRole(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),this.filterManager?.setupAdvFilterHeaderComp(r),this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){const e=this.setFloatingHeights.bind(this),t=this.setGridRootRole.bind(this),o=this.toggleRowResizeStyles.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollGapChanged:this.updateScrollingClasses.bind(this),pinnedRowDataChanged:e,pinnedHeightChanged:e,pinnedRowsChanged:e,headerHeightChanged:this.setStickyTopOffsetTop.bind(this),columnRowGroupChanged:t,columnPivotChanged:t,rowResizeStarted:o,rowResizeEnded:o}),this.addManagedPropertyListener("treeData",t)}toggleRowResizeStyles(e){const t=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 o=t&&e.getScrollbarWidth()||0,r=Jk()?16:0,n=`calc(100% + ${o+r}px)`;Mn(this.beans,()=>this.comp.setBodyViewportWidth(n)),this.updateScrollingClasses()}setGridRootRole(){const{rowGroupColsSvc:e,colModel:t,gos:o}=this;let r=o.get("treeData");if(!r){const n=t.isPivotMode();r=(e?e.columns.length:0)>=(n?2:1)}this.comp.setGridRootRole(r?"treegrid":"grid")}addFocusListeners(e){for(const t of e)this.addManagedElementListeners(t,{focusin:o=>{const{target:r}=o,n=Xi(r,"ag-root",t);t.classList.toggle("ag-has-focus",!n)},focusout:o=>{const{target:r,relatedTarget:n}=o,i=t.contains(n),s=Xi(n,"ag-root",t);Xi(r,"ag-root",t)||(!i||s)&&t.classList.remove("ag-has-focus")}})}setColumnMovingCss(e){this.comp.setColumnMovingCss(hj,e)}setCellTextSelection(e=!1){this.comp.setCellSelectableCss(dj,e)}updateScrollingClasses(){const{eGridBody:{classList:e},scrollVisibleSvc:t}=this;e.toggle("ag-body-vertical-content-no-gap",!t.verticalScrollGap),e.toggle("ag-body-horizontal-content-no-gap",!t.horizontalScrollGap)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:e=>{if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}})}addStopEditingWhenGridLosesFocus(){this.beans.editSvc?.addStopEditingWhenGridLosesFocus([this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom])}updateRowCount(){const e=(this.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.filterManager?.getHeaderRowCount()??0),{rowModel:t}=this.beans,o=t.isLastRowIndexKnown()?t.getRowCount():-1,r=o===-1?-1:e+o;this.comp.setRowCount(r)}registerBodyViewportResizeListener(e){this.comp.registerBodyViewportResizeListener(e)}setVerticalScrollPaddingVisible(e){const t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)}isVerticalScrollShowing(){const e=this.gos.get("alwaysShowVerticalScroll"),t=e?uj:null,o=no(this.gos,"normal");return this.comp.setAlwaysVerticalScrollClass(t,e),e||o&&Yx(this.eBodyViewport)}setupRowAnimationCssClass(){const{rowContainerHeight:e,environment:t}=this.beans;let o=t.sizesMeasured;const r=()=>{const n=o&&ua(this.gos)&&!e.stretching,i=n?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(i,n)};r(),this.addManagedEventListeners({heightScaleChanged:r}),this.addManagedPropertyListener("animateRows",r),this.addManagedEventListeners({stylesChanged:()=>{!o&&t.sizesMeasured&&(o=!0,r())}})}addBodyViewportListener(){const{eBodyViewport:e,eStickyTop:t,eStickyBottom:o,eTop:r,eBottom:n,beans:{popupSvc:i,touchSvc:s}}=this,l=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(e,{contextmenu:l}),s?.mockBodyContextMenu(this,l),this.addManagedElementListeners(e,{wheel:this.onBodyViewportWheel.bind(this,i)});const u=this.onStickyWheel.bind(this);for(const h of[t,o,r,n])this.addManagedElementListeners(h,{wheel:u});const d=this.onHorizontalWheel.bind(this);for(const h of["left","right","topLeft","topRight","bottomLeft","bottomRight"])this.addManagedElementListeners(this.ctrlsSvc.get(h).eContainer,{wheel:d});this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:e=>this.onFullWidthContainerWheel(e)})}onFullWidthContainerWheel(e){const{deltaX:t,deltaY:o,shiftKey:r}=e;(r||Math.abs(t)>Math.abs(o))&&ec(this.beans,e)&&this.scrollGridBodyToMatchEvent(e)}onStickyWheel(e){const{deltaY:t}=e;this.scrollVertically(t)>0&&e.preventDefault()}onHorizontalWheel(e){const{deltaX:t,deltaY:o,shiftKey:r}=e;(r||Math.abs(t)>Math.abs(o))&&this.scrollGridBodyToMatchEvent(e)}scrollGridBodyToMatchEvent(e){const{deltaX:t,deltaY:o}=e;e.preventDefault(),this.eCenterColsViewport.scrollBy({left:t||o})}onBodyViewportContextMenu(e,t,o){if(!e&&!o)return;this.gos.get("preventDefaultOnContextMenu")&&(e||o).preventDefault();const{target:r}=e||t;(r===this.eBodyViewport||r===this.ctrlsSvc.get("center").eViewport)&&this.beans.contextMenuSvc?.showContextMenu({mouseEvent:e,touchEvent:o,value:null,anchorToElement:this.eGridBody,source:"ui"})}onBodyViewportWheel(e,t){this.gos.get("suppressScrollWhenPopupsAreOpen")&&e?.hasAnchoredPopup()&&t.preventDefault()}scrollVertically(e){const t=this.eBodyViewport.scrollTop;return this.scrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t}setFloatingHeights(){const{pinnedRowModel:e,beans:{environment:t}}=this,o=e?.getPinnedTopTotalHeight(),r=e?.getPinnedBottomTotalHeight(),n=t.getPinnedRowBorderWidth(),i=t.getRowBorderWidth(),s=n-i,l=o?s+o:0,u=r?s+r:0;this.comp.setTopHeight(l),this.comp.setBottomHeight(u),this.comp.setTopInvisible(l<=0),this.comp.setBottomInvisible(u<=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),o=this.pinnedRowModel?.getPinnedTopTotalHeight()??0;let r=0;t>0&&(r+=t),o>0&&(r+=o),r>0&&(r+=1),this.comp.setStickyTopTop(`${r}px`)}setStickyBottomOffsetBottom(){const{pinnedRowModel:e,scrollVisibleSvc:t,comp:o}=this,r=e?.getPinnedBottomTotalHeight()??0,i=t.horizontalScrollShowing&&t.getScrollbarWidth()||0,s=r+i;o.setStickyBottomBottom(`${s}px`)}};function pj(e,t){return tv(e,t.target)?.getFocusedCellPosition()??null}var ZF=class extends ko{constructor(e,t){super(),this.direction=t,this.eViewport=Me,this.eContainer=Me,this.hideTimeout=0,this.setTemplate(e)}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.toggleCss("ag-apple-scrollbar",Yk()||es())}destroy(){super.destroy(),window.clearTimeout(this.hideTimeout)}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=Jk(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){const e=this.getGui(),t=()=>this.toggleCss("ag-scrollbar-active",!0),o=()=>this.toggleCss("ag-scrollbar-active",!1);this.addManagedListeners(e,{mouseenter:t,mousedown:t,touchstart:t,mouseleave:o,touchend:o})}onScrollVisibilityChanged(){this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),Mn(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;gV(this,()=>Tn(t),()=>this.setScrollPosition(e),100)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}},gj={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"}]},mj=class extends ZF{constructor(){super(gj,"horizontal"),this.eLeftSpacer=Me,this.eRightSpacer=Me,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 ev(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 o=!this.enableRtl&&e,r=this.scrollVisibleSvc.getScrollbarWidth();o&&(t+=r),Yr(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=r);let n=this.visibleCols.getColsLeftWidth();this.enableRtl&&e&&(n+=r),Yr(this.eLeftSpacer,n),this.eLeftSpacer.classList.toggle("ag-scroller-corner",n<=r)}setScrollVisible(){const e=this.scrollVisibleSvc.horizontalScrollShowing,t=this.invisibleScrollbar,o=this.gos.get("suppressHorizontalScroll"),r=e&&this.scrollVisibleSvc.getScrollbarWidth()||0,i=o?0:r===0&&t?16:r,s=()=>{this.setScrollVisibleDebounce=0,this.toggleCss("ag-scrollbar-invisible",t),Jl(this.getGui(),i),Jl(this.eViewport,i),Jl(this.eContainer,i),i||this.eContainer.style.setProperty("min-height","1px"),this.setVisible(e,{skipAriaHidden:!0})};window.clearTimeout(this.setScrollVisibleDebounce),e?this.setScrollVisibleDebounce=window.setTimeout(s,100):s()}getScrollPosition(){return Hd(this.eViewport,this.enableRtl)}setScrollPosition(e){Tn(this.eViewport)||this.attemptSettingScrollPosition(e),Vd(this.eViewport,e,this.enableRtl)}},vj={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"}]}]},bj=class extends ZF{constructor(){super(vj,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new UF(this.eContainer));const{ctrlsSvc:e}=this.beans;e.register("fakeVScrollComp",this),this.addManagedEventListeners({rowContainerHeightChanged:this.onRowContainerHeightChanged.bind(this,e)})}setScrollVisible(){const{scrollVisibleSvc:e}=this.beans,t=e.verticalScrollShowing,o=this.invisibleScrollbar,r=t&&e.getScrollbarWidth()||0,n=r===0&&o?16:r;this.toggleCss("ag-scrollbar-invisible",o),Yr(this.getGui(),n),Yr(this.eViewport,n),Yr(this.eContainer,n),this.setDisplayed(t,{skipAriaHidden:!0})}onRowContainerHeightChanged(e){const o=e.getGridBodyCtrl().eBodyViewport,r=this.getScrollPosition(),n=o.scrollTop;r!=n&&this.setScrollPosition(n,!0)}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(e,t){!t&&!Tn(this.eViewport)&&this.attemptSettingScrollPosition(e),this.eViewport.scrollTop=e}},Cj="ag-column-first",wj="ag-column-last";function YF(e,t,o,r){return Ht(e)?[]:Sj(e.headerClass,e,t,o,r)}function QF(e,t,o){e.toggleCss(Cj,o.isColAtEdge(t,"first")),e.toggleCss(wj,o.isColAtEdge(t,"last"))}function yj(e,t,o,r){return je(t,{colDef:e,column:o,columnGroup:r})}function Sj(e,t,o,r,n){if(Ht(e))return[];let i;if(typeof e=="function"){const s=yj(t,o,r,n);i=e(s)}else i=e;return typeof i=="string"?[i]:Array.isArray(i)?[...i]:[]}function JF(e,t){const o=e.column===t.column,r=e.rowPinned===t.rowPinned,n=e.rowIndex===t.rowIndex;return o&&r&&n}function xj(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(xe(t.rowPinned))return t.rowPinned!=="top";break}return e.rowIndex<t.rowIndex}function kj(e){let t=0,o;const{pinnedRowModel:r,rowModel:n,pageBounds:i}=e;return r?.getPinnedTopRowCount()?o="top":n.getRowCount()?(o=null,t=i.getFirstRow()):r?.getPinnedBottomRowCount()&&(o="bottom"),o===void 0?null:{rowIndex:t,rowPinned:o}}function Fj(e){let t,o=null;const{pinnedRowModel:r,pageBounds:n}=e,i=r?.getPinnedBottomRowCount(),s=r?.getPinnedTopRowCount();return i?(o="bottom",t=i-1):e.rowModel.getRowCount()?t=n.getLastRow():s&&(o="top",t=s-1),t===void 0?null:{rowIndex:t,rowPinned:o}}function rs(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 gc(e,t){const o=e.spannedRowRenderer?.getCellByPosition(t);if(o)return o;const r=e.rowRenderer.getRowByPosition(t);return r?r.getCellCtrl(t.column):null}function Rj(e,t,o){const{rowModel:r,pinnedRowModel:n}=e;let i;return i??(i=r?.getRowNode(t)),o?i??(i=n?.getPinnedRowById(t,o)):(i??(i=n?.getPinnedRowById(t,"top")),i??(i=n?.getPinnedRowById(t,"bottom"))),i}function kh(e,t,o=!1){const{rowIndex:r,rowPinned:n}=t,{pageBounds:i,pinnedRowModel:s,rowModel:l}=e;if(r===0)return n==="top"?null:n==="bottom"&&l.isRowsToRender()?{rowIndex:i.getLastRow(),rowPinned:null}:s?.isRowsToRender("top")?{rowIndex:s.getPinnedTopRowCount()-1,rowPinned:"top"}:null;if(o){const u=n?void 0:l.getRow(r);return tR(e,u,!0)??{rowIndex:r-1,rowPinned:n}}return{rowIndex:r-1,rowPinned:n}}function eR(e,t,o=!1){const{rowIndex:r,rowPinned:n}=t,{pageBounds:i,pinnedRowModel:s,rowModel:l}=e;if(Pj(e,t))return n==="bottom"?null:n==="top"&&l.isRowsToRender()?{rowIndex:i.getFirstRow(),rowPinned:null}:s?.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;if(o){const u=n?void 0:l.getRow(r);return tR(e,u)??{rowIndex:r+1,rowPinned:n}}return{rowIndex:r+1,rowPinned:n}}function tR(e,t,o=!1){const{gos:r,rowRenderer:n}=e;if(!t?.sticky||!Rk(r))return;const i=n.getStickyTopRowCtrls(),s=n.getStickyBottomRowCtrls(),l=!s.some(p=>p.rowNode.rowIndex===t.rowIndex),u=l?i:s,d=(o?-1:1)*(l?-1:1);let h;for(let p=0;p<u.length;p++)if(u[p].rowNode.rowIndex===t.rowIndex){h=u[p+d];break}return h?{rowIndex:h.rowNode.rowIndex,rowPinned:null}:void 0}function Pj(e,t){const{rowPinned:o,rowIndex:r}=t,{pinnedRowModel:n,pageBounds:i}=e;return o==="top"?(n?.getPinnedTopRowCount()??0)-1<=r:o==="bottom"?(n?.getPinnedBottomRowCount()??0)-1<=r:i.getLastRow()<=r}function ns(e){return e.gos.get("suppressHeaderFocus")||!!e.overlays?.exclusive}function sv(e){return e.gos.get("suppressCellFocus")||!!e.overlays?.exclusive}function mc(e,t,o=!1){const r=e.ctrlsSvc.get("gridCtrl");return!o&&r.focusNextInnerContainer(t)?!0:((o||!t&&!r.isDetailGrid())&&r.forceFocusOutOfContainer(t),!1)}function Ej(e,t){const o=e.focusSvc,r=o.getFocusedCell();if(r&&t&&JF(r,t)){const{rowIndex:n,rowPinned:i,column:s}=t;Jg(e)&&o.setFocusedCell({rowIndex:n,column:s,rowPinned:i,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!eF()})}}function nn(e){return e.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0}function av(e){const t=[],o=e.ctrlsSvc.getHeaderRowContainerCtrls();for(const r of o){if(!r)continue;const n=r.getGroupRowCount()||0;for(let i=0;i<n;i++){const s=r.getGroupRowCtrlAtIndex(i),l=t[i];if(s){const u=Tj(e,s);(l==null||u>l)&&(t[i]=u)}}}return t}function Tj(e,t){let r=e.colModel.isPivotMode()?Mj(e):rR(e);const n=t.getHeaderCellCtrls();for(const i of n){const{column:s}=i,l=s.getAutoHeaderHeight();l!=null&&l>r&&s.isAutoHeaderHeight()&&(r=l)}return r}function lv(e){let o=e.colModel.isPivotMode()?Dj(e):Fh(e);return e.colModel.forAllCols(r=>{const n=r.getAutoHeaderHeight();n!=null&&n>o&&r.isAutoHeaderHeight()&&(o=n)}),o}function Fh(e){return e.gos.get("headerHeight")??e.environment.getDefaultHeaderHeight()}function oR(e){return e.gos.get("floatingFiltersHeight")??Fh(e)}function rR(e){return e.gos.get("groupHeaderHeight")??Fh(e)}function Dj(e){return e.gos.get("pivotHeaderHeight")??Fh(e)}function Mj(e){return e.gos.get("pivotGroupHeaderHeight")??rR(e)}function Aj(e,t){return e.headerRowIndex===t.headerRowIndex&&e.column===t.column}var _j=class extends ue{setComp(e,t,o){this.comp=e,this.eGui=t;const{beans:r}=this,{headerNavigation:n,touchSvc:i,ctrlsSvc:s}=r;n&&this.createManagedBean(new fc(o,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,r),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,r)}),this.onPivotModeChanged(r),this.setupHeaderHeight();const l=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:l}),i?.mockHeaderContextMenu(this,l),s.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:()=>Mn(this.beans,()=>e()),stylesChanged:e,advancedFilterEnabledChanged:e})}setHeaderHeight(){const{beans:e}=this;let t=0;const o=av(e).reduce((i,s)=>i+s,0),r=lv(e);if(e.filterManager?.hasFloatingFilters()&&(t+=oR(e)),t+=o,t+=r,this.headerHeight===t)return;this.headerHeight=t;const n=`${t+1}px`;this.comp.setHeightAndMinHeight(n),this.eventSvc.dispatchEvent({type:"headerHeightChanged"})}onPivotModeChanged(e){const t=e.colModel.isPivotMode();this.comp.toggleCss("ag-pivot-on",t),this.comp.toggleCss("ag-pivot-off",!t)}onDisplayedColumnsChanged(e){const o=e.visibleCols.allCols.some(r=>r.isSpanHeaderHeight());this.comp.toggleCss("ag-header-allow-overflow",o)}onTabKeyDown(e){const t=this.gos.get("enableRtl"),o=e.shiftKey,r=o!==t?"LEFT":"RIGHT",{beans:n}=this,{headerNavigation:i,focusSvc:s}=n;(i.navigateHorizontally(r,!0,e)||!o&&s.focusOverlay(!1)||mc(n,o,!0))&&e.preventDefault()}handleKeyDown(e){let t=null;const{headerNavigation:o}=this.beans;switch(e.key){case te.LEFT:t="LEFT";case te.RIGHT:{xe(t)||(t="RIGHT"),o.navigateHorizontally(t,!1,e)&&e.preventDefault();break}case te.UP:t="UP";case te.DOWN:{xe(t)||(t="DOWN"),o.navigateVertically(t,e)&&e.preventDefault();break}default:return}}onFocusOut(e){const{relatedTarget:t}=e,{eGui:o,beans:r}=this;!t&&o.contains(At(r))||o.contains(t)||(r.focusSvc.focusedHeader=null)}onHeaderContextMenu(e,t,o){const{menuSvc:r,ctrlsSvc:n}=this.beans;if(!e&&!o||!r?.isHeaderContextMenuEnabled())return;const{target:i}=e??t;(i===this.eGui||i===n.getHeaderRowContainerCtrl()?.eViewport)&&r.showHeaderContextMenu(void 0,e,o)}},cv=class extends ue{constructor(e,t,o,r){super(),this.columnOrGroup=e,this.eCell=t,this.colsSpanning=r,this.columnOrGroup=e,this.ariaEl=t.querySelector("[role=columnheader]")||t,this.beans=o}setColsSpanning(e){this.colsSpanning=e,this.onLeftChanged()}getColumnOrGroup(){const{beans:e,colsSpanning:t}=this;return e.gos.get("enableRtl")&&t?st(t):this.columnOrGroup}postConstruct(){const e=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:e}),this.setLeftFirstTime(),this.addManagedEventListeners({displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}setLeftFirstTime(){const{gos:e,colAnimation:t}=this.beans,o=e.get("suppressColumnMoveAnimation"),r=xe(this.columnOrGroup.getOldLeft());t?.isActive()&&r&&!o?this.animateInLeft():this.onLeftChanged()}animateInLeft(){const e=this.getColumnOrGroup(),t=this.modifyLeftForPrintLayout(e,e.getOldLeft()),o=this.modifyLeftForPrintLayout(e,e.getLeft());this.setLeft(t),this.actualLeft=o,this.beans.colAnimation.executeNextVMTurn(()=>{this.actualLeft===o&&this.setLeft(o)})}onLeftChanged(){const e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(e,t){const{gos:o,visibleCols:r}=this.beans;if(!no(o,"print")||e.getPinned()==="left")return t;const i=r.getColsLeftWidth();if(e.getPinned()==="right"){const s=r.bodyWidth;return i+s+t}return i+t}setLeft(e){if(xe(e)&&(this.eCell.style.left=`${e}px`),Nt(this.columnOrGroup)){const t=this.columnOrGroup.getLeafColumns();if(!t.length)return;t.length>1&&$8(this.ariaEl,t.length)}}},Ij=0,nR="headerCtrl",uv=class extends ue{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()+"-"+Ij++}postConstruct(){const e=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],e),this.addManagedEventListeners({overlayExclusiveChanged:e})}setComp(e,t,o,r,n){t.setAttribute("col-id",this.column.colIdSanitised),this.wireComp(e,t,o,r,n),this.reAttemptToFocus&&(this.reAttemptToFocus=!1,this.focus(this.lastFocusEvent??void 0))}shouldStopEventPropagation(e){const{headerRowIndex:t,column:o}=this.beans.focusSvc.focusedHeader,r=o.getDefinition(),n=r?.suppressHeaderKeyboardEvent;if(!xe(n))return!1;const i=je(this.gos,{colDef:r,column:o,headerRowIndex:t,event:e});return!!n(i)}getWrapperHasFocus(){return At(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 o;if(typeof t=="function"){const r=this.getHeaderClassParams();o=t(r)}else o=t;o&&this.comp.setUserStyles(o)}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(e){const{wrapperElement:t,checkMeasuringCallback:o,compBean:r}=e,{beans:n}=this,i=p=>{if(!this.isAlive()||!r.isAlive())return;const{paddingTop:g,paddingBottom:v,borderBottomWidth:b,borderTopWidth:C}=Zi(this.eGui),S=g+v+b+C,F=t.offsetHeight+S;if(p<5){const P=!Zt(n)?.contains(t),T=F==0;if(P||T){dm(()=>i(p+1),"raf",n);return}}this.setColHeaderHeight(this.column,F)};let s=!1,l;const u=()=>{const p=this.column.isAutoHeaderHeight();p&&!s&&d(),!p&&s&&h()},d=()=>{s=!0,this.comp.toggleCss("ag-header-cell-auto-height",!0),i(0),l=Dn(this.beans,t,()=>i(0))},h=()=>{s=!1,l&&l(),this.comp.toggleCss("ag-header-cell-auto-height",!1),l=void 0};u(),r.addDestroyFunc(()=>h()),r.addManagedListeners(this.column,{widthChanged:()=>s&&i(0)}),r.addManagedEventListeners({sortChanged:()=>{s&&window.setTimeout(()=>i(0))}}),o&&o(u)}onDisplayedColumnsChanged(){const{comp:e,column:t,beans:o,eGui:r}=this;!e||!t||!r||(QF(e,t,o.visibleCols),qx(r,o.visibleCols.getAriaColIndex(t)))}addResizeAndMoveKeyboardListeners(e){e.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){const e=ns(this.beans);this.eGui&&Er(this.eGui,"tabindex",e?null:"-1")}onGuiKeyDown(e){const t=At(this.beans),o=e.key===te.LEFT||e.key===te.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),t!==this.eGui||!e.shiftKey&&!e.altKey&&!e.ctrlKey&&!e.metaKey)return;if((this.isResizing||o)&&(e.preventDefault(),e.stopImmediatePropagation()),(e.ctrlKey||e.metaKey)&&Xk(e)===te.C)return this.beans.clipboardSvc?.copyToClipboard();if(!o)return;const i=e.key===te.LEFT!==this.gos.get("enableRtl")?"left":"right";if(e.altKey){this.isResizing=!0,this.resizeMultiplier+=1;const s=this.getViewportAdjustedResizeDiff(e);this.resizeHeader(s,e.shiftKey),this.resizeFeature?.toggleColumnResizing(!0)}else this.moveHeader(i)}moveHeader(e){this.beans.colMoves?.moveHeader(e,this.eGui,this.column,this.rowCtrl.pinned,this)}getViewportAdjustedResizeDiff(e){const t=this.getResizeDiff(e),{pinnedCols:o}=this.beans;return o?o.getHeaderResizeDiff(t,this.column):t}getResizeDiff(e){const{gos:t,column:o}=this;let r=e.key===te.LEFT!==t.get("enableRtl");const n=o.getPinned(),i=t.get("enableRtl");return n&&i!==(n==="right")&&(r=!r),(r?-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 te.PAGE_DOWN:case te.PAGE_UP:case te.PAGE_HOME:case te.PAGE_END:t&&e.preventDefault()}}addDomData(e){const t=nR,{eGui:o,gos:r}=this;Ji(r,o,t,this),e.addDestroyFunc(()=>Ji(r,o,t,null))}focus(e){if(!this.isAlive())return!1;const{eGui:t}=this;return t?(this.lastFocusEvent=e||null,t.focus()):this.reAttemptToFocus=!0,!0}focusThis(){this.beans.focusSvc.focusedHeader={headerRowIndex:this.rowCtrl.rowIndex,column:this.column}}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop?.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(e,t,o){const r=e??t,{menuSvc:n,gos:i}=this.beans;i.get("preventDefaultOnContextMenu")&&r.preventDefault(),n?.isHeaderContextMenuEnabled(o)&&n.showHeaderContextMenu(o,e,t),this.dispatchColumnMouseEvent("columnHeaderContextMenu",o)}dispatchColumnMouseEvent(e,t){this.eventSvc.dispatchEvent({type:e,column:t})}setColHeaderHeight(e,t){if(!e.setAutoHeaderHeight(t))return;const{eventSvc:o}=this;e.isColumn?o.dispatchEvent({type:"columnHeaderHeightChanged",column:e,columns:[e],source:"autosizeColumnHeaderHeight"}):o.dispatchEvent({type:"columnGroupHeaderHeightChanged",columnGroup:e,source:"autosizeColumnGroupHeaderHeight"})}clearComponent(){this.removeDragSource(),this.resizeFeature=null,this.comp=null,this.eGui=null}destroy(){super.destroy(),this.column=null,this.lastFocusEvent=null,this.rowCtrl=null}},Bj=class extends uv{constructor(){super(...arguments),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map}wireComp(e,t,o,r,n){this.comp=e;const{rowCtrl:i,column:s,beans:l}=this,{colResize:u,context:d,colHover:h,rangeSvc:p}=l,g=ac(this,d,n);this.setGui(t,g),this.updateState(),this.setupWidth(g),this.setupMovingCss(g),this.setupMenuClass(g),this.setupSortableClass(g),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:r,checkMeasuringCallback:b=>this.setRefreshFunction("measuring",b),compBean:g}),this.addColumnHoverListener(g),this.setupFilterClass(g),this.setupStylesFromColDef(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(g),this.setupSelectAll(g),this.setupUserComp(),this.refreshAria(),u?this.resizeFeature=g.createManagedBean(u.createResizeFeature(i.pinned,s,o,e,this)):gt(o,!1),h?.createHoverFeature(g,[s],t),p?.createRangeHighlightFeature(g,s,e),g.createManagedBean(new cv(s,t,l)),g.createManagedBean(new fc(t,{shouldStopEventPropagation:b=>this.shouldStopEventPropagation(b),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(g),g.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader","enableAdvancedFilter"],()=>this.refresh()),g.addManagedListeners(s,{colDefChanged:()=>this.refresh(),formulaRefChanged:()=>this.refresh(),headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});const v=()=>this.checkDisplayName();g.addManagedEventListeners({columnValueChanged:v,columnRowGroupChanged:v,columnPivotChanged:v,headerHeightChanged:this.onHeaderHeightChanged.bind(this)}),g.addDestroyFunc(()=>{this.refreshFunctions={},this.selectAllFeature=null,this.dragSourceElement=void 0,this.userCompDetails=null,this.userHeaderClasses.clear(),this.ariaDescriptionProperties.clear(),this.clearComponent()})}resizeHeader(e,t){this.beans.colResize?.resizeHeader(this.column,e,t)}getHeaderClassParams(){const{column:e,beans:t}=this,o=e.colDef;return je(t.gos,{colDef:o,column:e,floatingFilter:!1})}setupUserComp(){const e=this.lookupUserCompDetails();e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)}lookupUserCompDetails(){const e=this.createParams(),t=this.column.getColDef();return q7(this.beans.userCompFactory,t,e)}createParams(){const{menuSvc:e,sortSvc:t,colFilter:o,gos:r}=this.beans;return je(r,{column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!e?.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!!o&&(!this.openFilterEnabled||Vo(this.gos)),showColumnMenu:(i,s)=>{e?.showColumnMenu({column:this.column,buttonElement:i,positionBy:"button",onClosedCallback:s})},showColumnMenuAfterMouseClick:(i,s)=>{e?.showColumnMenu({column:this.column,mouseEvent:i,positionBy:"mouse",onClosedCallback:s})},showFilter:i=>{e?.showFilterMenu({column:this.column,buttonElement:i,containerType:"columnFilter",positionBy:"button"})},progressSort:i=>{t?.progressSort(this.column,!!i,"uiColumnSorted")},setSort:(i,s)=>{t?.setSortForColumn(this.column,Tr(i),!!s,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(i,s)=>{r.assertModuleRegistered("Tooltip",3),this.setupTooltip(i,s)}})}setupSelectAll(e){const{selectionSvc:t}=this.beans;t&&(this.selectAllFeature=e.createOptionalManagedBean(t.createSelectAllFeature(this.column)),this.selectAllFeature?.setComp(this),e.addManagedPropertyListener("rowSelection",()=>{const o=t.createSelectAllFeature(this.column);o&&!this.selectAllFeature?(this.selectAllFeature=e.createManagedBean(o),this.selectAllFeature?.setComp(this),this.comp.refreshSelectAllGui()):this.selectAllFeature&&!o&&(this.comp.removeSelectAllGui(),this.selectAllFeature=this.destroyBean(this.selectAllFeature))}))}getSelectAllGui(){return this.selectAllFeature?.getCheckboxGui()}handleKeyDown(e){super.handleKeyDown(e),e.key===te.SPACE?this.selectAllFeature?.onSpaceKeyDown(e):e.key===te.ENTER?this.onEnterKeyDown(e):e.key===te.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)}onEnterKeyDown(e){const{column:t,gos:o,sortable:r,beans:n}=this;let i=!1;(e.ctrlKey||e.metaKey)&&(i=this.showMenuOnKeyPress(e,!0)),i||(!e.altKey&&da(o)?n.rangeSvc?.handleColumnSelection(t,e):r&&n.sortSvc?.progressSort(t,e.shiftKey,"uiColumnSorted"))}showMenuOnKeyPress(e,t){const o=this.comp.getUserCompInstance();return iR(o)&&o.onMenuKeyboardShortcut(t)?(e.preventDefault(),!0):!1}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription()),eF()&&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(),o=YF(t,this.gos,this.column,null),r=this.userHeaderClasses;this.userHeaderClasses=new Set(o);for(const n of o)r.has(n)?r.delete(n):this.comp.toggleCss(n,!0);for(const n of r)this.comp.toggleCss(n,!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 o=this.column.getActualWidth();this.comp.setWidth(`${o}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 o=this.column.isFilterActive();this.comp.toggleCss("ag-header-cell-filtered",o),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,o=e===1;this.comp.toggleCss("ag-header-highlight-before",t),this.comp.toggleCss("ag-header-highlight-after",o)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){const{eGui:e,column:t,comp:o,beans:r}=this,n=av(this.beans),i=n.reduce((g,v)=>g+v,0)===0;if(o.toggleCss("ag-header-parent-hidden",i),!t.isSpanHeaderHeight()){e.style.removeProperty("top"),e.style.removeProperty("height"),o.toggleCss("ag-header-span-height",!1),o.toggleCss("ag-header-span-total",!1);return}const{numberOfParents:s,isSpanningTotal:l}=this.column.getColumnGroupPaddingInfo();o.toggleCss("ag-header-span-height",s>0);const u=lv(r);if(s===0){o.toggleCss("ag-header-span-total",!1),e.style.setProperty("top","0px"),e.style.setProperty("height",`${u}px`);return}o.toggleCss("ag-header-span-total",l);const d=(this.column.getFirstRealParent()?.getLevel()??-1)+1,h=n.length-d;let p=0;for(let g=0;g<h;g++)p+=n[n.length-1-g];e.style.setProperty("top",`${-p}px`),e.style.setProperty("height",`${u+p}px`)}refreshAriaSort(){let e=null;const{beans:t,column:o,comp:r,sortable:n}=this;if(n){const i=this.getLocaleTextFunc(),s=t.sortSvc?.getDisplaySortForColumn(o)??null;r.setAriaSort(N8(s)),e=i("ariaSortableColumn","Press ENTER to sort")}else r.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:o}=this;t&&!Vo(o)&&(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:o,beans:r}=this;if(da(t)){const i=this.getLocaleTextFunc(),s=r.rangeSvc?.isColumnInAnyRange(o);e=i("ariaColumnCellSelection",`Press CTRL+SPACE to ${s?"de":""}select all visible cells in this column`)}this.setAriaDescriptionProperty("cellSelection",e)}setAriaDescriptionProperty(e,t){const o=this.ariaDescriptionProperties;t!=null?o.set(e,t):o.delete(e)}announceAriaDescription(){const{beans:e,eGui:t,ariaDescriptionProperties:o}=this;if(!t.contains(At(e)))return;const r=Array.from(o.keys()).sort((n,i)=>n==="filter"?-1:i.charCodeAt(0)-n.charCodeAt(0)).map(n=>o.get(n)).join(". ");e.ariaAnnounce?.announceValue(r,"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=n=>this.handleMouseOverChange(n.type==="mouseenter"),o=()=>{this.setActiveHeader(!0),this.dispatchColumnMouseEvent("columnHeaderClicked",this.column)},r=n=>this.handleContextMenuMouseEvent(n,void 0,this.column);e.addManagedListeners(this.eGui,{mouseenter:t,mouseleave:t,click:o,contextmenu:r})}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 iR(t)?t.getAnchorElementForMenu(e):this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function iR(e){return typeof e?.getAnchorElementForMenu=="function"&&typeof e.onMenuKeyboardShortcut=="function"}var Oj=0,dv=class extends ue{constructor(e,t,o){super(),this.rowIndex=e,this.pinned=t,this.type=o,this.instanceId=Oj++,this.comp=null,this.allCtrls=[];let r="ag-header-row-column";o==="group"?r="ag-header-row-group":o==="filter"&&(r="ag-header-row-filter"),this.headerRowClass=`ag-header-row ${r}`}setRowIndex(e){this.rowIndex=e,this.comp?.setRowIndex(this.getAriaRowIndex()),this.onRowHeightChanged()}postConstruct(){this.isPrintLayout=no(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return this.comp?this.allCtrls.every(e=>e.eGui!=null):!1}setComp(e,t,o=!0){this.comp=e,t=ac(this,this.beans.context,t),o&&(this.setRowIndex(this.rowIndex),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(t)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(e){const t=this.onRowHeightChanged.bind(this),o=this.onDisplayedColumnsChanged.bind(this);e.addManagedEventListeners({columnResized:this.setWidth.bind(this),displayedColumnsChanged:o,virtualColumnsChanged:r=>this.onVirtualColumnsChanged(r.afterScroll),columnGroupHeaderHeightChanged:t,columnHeaderHeightChanged:t,stylesChanged:t,advancedFilterEnabledChanged:t}),e.addManagedPropertyListener("domLayout",o),e.addManagedPropertyListener("ensureDomOrder",r=>this.isEnsureDomOrder=r.currentValue),e.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],t)}onDisplayedColumnsChanged(){this.isPrintLayout=no(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=av(this.beans);for(let n=0;n<t.length;n++){if(n===this.rowIndex&&this.type==="group")return{topOffset:e,rowHeight:t[n]};e+=t[n]}const o=lv(this.beans);if(this.type==="column")return{topOffset:e,rowHeight:o};e+=o;const r=oR(this.beans);return{topOffset:e,rowHeight:r}}onVirtualColumnsChanged(e=!1){if(!this.comp)return;const t=this.getUpdatedHeaderCtrls(),o=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(t,o,e)}getUpdatedHeaderCtrls(){const e=this.ctrlsById;this.ctrlsById=new Map;const t=this.getColumnsInViewport();for(const r of t)this.recycleAndCreateHeaderCtrls(r,this.ctrlsById,e);const o=r=>{const{focusSvc:n,visibleCols:i}=this.beans;return n.isHeaderWrapperFocused(r)?i.isVisible(r.column):!1};if(e)for(const[r,n]of e)o(n)?this.ctrlsById.set(r,n):this.destroyBean(n);return this.allCtrls=Array.from(this.ctrlsById.values()),this.allCtrls}getHeaderCellCtrls(){return this.allCtrls}recycleAndCreateHeaderCtrls(e,t,o){if(e.isEmptyGroup())return;const r=e.getUniqueId();let n;if(o&&(n=o.get(r),o.delete(r)),n&&n.column!=e&&(this.destroyBean(n),n=void 0),n==null)switch(this.type){case"filter":{n=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",!0,e,this));break}case"group":n=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",!0,e,this));break;default:n=this.createBean(new Bj(e,this));break}t.set(r,n)}getColumnsInViewport(){if(!this.isPrintLayout)return this.getComponentsToRender();if(this.pinned)return[];const e=[];for(const t of["left",null,"right"])e.push(...this.getComponentsToRender(t));return e}getComponentsToRender(e=this.pinned){return this.type==="group"?this.beans.colViewport.getHeadersToRender(e,this.rowIndex):this.beans.colViewport.getColumnHeadersToRender(e)}focusHeader(e,t){const o=this.allCtrls.find(n=>n.column==e);return o?o.focus(t):!1}destroy(){this.allCtrls=this.destroyBeans(this.allCtrls),this.ctrlsById=void 0,this.comp=null,super.destroy()}},Lj=class extends ue{constructor(e){super(),this.pinned=e,this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[]}setComp(e,t){this.comp=e,this.eViewport=t;const{pinnedCols:o,ctrlsSvc:r,colModel:n,colMoves:i}=this.beans;this.setupCenterWidth(),o?.setupHeaderPinnedWidth(this),this.setupDragAndDrop(i,this.eViewport);const s=this.refresh.bind(this,!0);this.addManagedEventListeners({displayedColumnsChanged:s,advancedFilterEnabledChanged:s});const l=`${typeof this.pinned=="string"?this.pinned:"center"}Header`;r.register(l,this),n.ready&&this.refresh()}getAllCtrls(){const e=[...this.groupsRowCtrls];return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e}refresh(e=!1){const{focusSvc:t,filterManager:o,visibleCols:r}=this.beans;let n=0;const i=t.getFocusHeaderToUseAfterRefresh(),s=()=>{const p=r.headerGroupRowCount;n=p,e||(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls));const g=this.groupsRowCtrls.length;if(g!==p){if(g>p){for(let v=p;v<g;v++)this.destroyBean(this.groupsRowCtrls[v]);this.groupsRowCtrls.length=p;return}for(let v=g;v<p;v++){const b=this.createBean(new dv(v,this.pinned,"group"));this.groupsRowCtrls.push(b)}}},l=()=>{const p=n++;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 dv(p,this.pinned,"column"))):this.columnsRowCtrl.rowIndex!==p&&this.columnsRowCtrl.setRowIndex(p)},u=()=>{this.includeFloatingFilter=!!o?.hasFloatingFilters()&&!this.hidden;const p=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter){p();return}e||p();const g=n++;this.filtersRowCtrl?this.filtersRowCtrl.rowIndex!==g&&this.filtersRowCtrl.setRowIndex(g):this.filtersRowCtrl=this.createBean(new dv(g,this.pinned,"filter"))},d=this.getAllCtrls();s(),l(),u();const h=this.getAllCtrls();this.comp.setCtrls(h),this.restoreFocusOnHeader(t,i),d.length!==h.length&&this.beans.eventSvc.dispatchEvent({type:"headerRowsChanged"})}getHeaderCtrlForColumn(e){const t=o=>o?.getHeaderCellCtrls().find(r=>r.column===e);if(li(e))return t(this.columnsRowCtrl);if(this.groupsRowCtrls.length!==0)for(let o=0;o<this.groupsRowCtrls.length;o++){const r=t(this.groupsRowCtrls[o]);if(r)return r}}getHtmlElementForColumnHeader(e){return this.getHeaderCtrlForColumn(e)?.eGui??null}getRowType(e){return this.getAllCtrls()[e]?.type}focusHeader(e,t,o){const n=this.getAllCtrls()[e];return n?n.focusHeader(t,o):!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 o=e?.createBodyDropTarget(this.pinned,t);o&&this.createManagedBean(o)}restoreFocusOnHeader(e,t){if(!t)return;const{column:o}=t;o.getPinned()==this.pinned&&e.focusHeaderPosition({headerPosition:t,scroll:!1})}setupCenterWidth(){this.pinned==null&&this.createManagedBean(new ev(e=>this.comp.setCenterWidth(`${e}px`),!0))}},Nj=class extends ue{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(aR(this.beans),e,e.containerType,!0)}showHeaderContextMenu(e,t,o){this.activeMenuFactory?.showMenuAfterContextMenuEvent(e,t,o)}hidePopupMenu(){this.beans.contextMenuSvc?.hideActiveMenu(),this.activeMenuFactory?.hideActiveMenu()}hideFilterMenu(){aR(this.beans)?.hideActiveMenu()}isColumnMenuInHeaderEnabled(e){const{suppressHeaderMenuButton:t}=e.getColDef();return!t&&!!this.activeMenuFactory?.isMenuEnabled(e)&&(Vo(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){return!e.getColDef().suppressHeaderFilterButton&&!!this.beans.filterManager?.isFilterAllowed(e)}isHeaderContextMenuEnabled(e){return!(e&&li(e)?e.getColDef():e?.getColGroupDef())?.suppressHeaderContextMenu&&this.gos.get("columnMenu")==="new"}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){const e=!this.isSuppressMenuHide();return!(es()&&e)}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!Vo(this.gos)&&!this.isFloatingFilterButtonDisplayed(e)}isFilterMenuItemEnabled(e){return!!this.beans.filterManager?.isFilterAllowed(e)&&!Vo(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 Vo(e)?e.exists("suppressMenuHide")?t:!1:t}showColumnMenuCommon(e,t,o,r){const{positionBy:n,onClosedCallback:i}=t,s=t.column;if(n==="button"){const{buttonElement:l}=t;e?.showMenuAfterButtonClick(s,l,o,i,r)}else if(n==="mouse"){const{mouseEvent:l}=t;e?.showMenuAfterMouseEvent(s,l,o,i,r)}else if(s){const l=this.beans,u=l.ctrlsSvc;u.getScrollFeature().ensureColumnVisible(s,"auto"),Mn(l,()=>{const d=u.getHeaderRowContainerCtrl(s.getPinned())?.getHeaderCtrlForColumn(s);d&&e?.showMenuAfterButtonClick(s,d.getAnchorElementForMenu(r),o,i,r)})}}};function sR(e,t,o){e.menuVisible!==t&&(e.menuVisible=t,e.dispatchColEvent("menuVisibleChanged",o))}function aR(e){const{enterpriseMenuFactory:t,filterMenuFactory:o,gos:r}=e;return t&&Vo(r)?t:o}var lR=class extends Pm{constructor(){super(...arguments),this.errorMessages=null}init(e){this.params=e,this.initialiseEditor(e),this.eEditor.onValueChange(()=>e.validate())}destroy(){this.errorMessages=null}},Rh=class extends ko{constructor(){super()}};function zj(e,t,o){const r=mi(e,t,o);if(r){const{className:i}=r;if(typeof i=="string"&&i.includes("ag-icon")||typeof i=="object"&&i["ag-icon"])return r}const n=pi({tag:"span"});return n.appendChild(r),n}function mi(e,t,o){let r=null;e==="smallDown"?pe(262):e==="smallLeft"?pe(263):e==="smallRight"&&pe(264);const n=o?.getColDef().icons;if(n&&(r=n[e]),t.gos&&!r){const i=t.gos.get("icons");i&&(r=i[e])}if(r){let i;if(typeof r=="function")i=r();else if(typeof r=="string")i=r;else{pe(38,{iconName:e});return}if(typeof i=="string")return nm(i);if(Qx(i))return i;pe(133,{iconName:e});return}else{const i=t.registry.getIcon(e);return i||t.validation?.validateIcon(e),pi({tag:"span",cls:`ag-icon ag-icon-${i??e}`,role:"presentation",attrs:{unselectable:"on"}})}}var Hj={tag:"div",cls:"ag-overlay-loading-center",children:[{tag:"span",ref:"eLoadingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eLoadingText",cls:"ag-loading-text"}]},Vj=class extends Rh{constructor(){super(...arguments),this.eLoadingIcon=Me,this.eLoadingText=Me}init(e){const{beans:t,gos:o}=this,r=si(o.get("overlayLoadingTemplate")?.trim());if(this.setTemplate(r??Hj),!r){const n=mi("overlayLoading",t,null);n&&this.eLoadingIcon.appendChild(n);const i=e.loading?.overlayText??this.getLocaleTextFunc()("loadingOoo","Loading...");this.eLoadingText.textContent=i,t.ariaAnnounce.announceValue(i,"overlay")}}},Gj={tag:"div",cls:"ag-overlay-exporting-center",children:[{tag:"span",ref:"eExportingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eExportingText",cls:"ag-exporting-text"}]},jj=class extends Rh{constructor(){super(...arguments),this.eExportingIcon=Me,this.eExportingText=Me}init(e){const{beans:t}=this;this.setTemplate(Gj);const o=mi("overlayExporting",t,null);o&&this.eExportingIcon.appendChild(o);const r=e.exporting?.overlayText??this.getLocaleTextFunc()("exportingOoo","Exporting...");this.eExportingText.textContent=r,t.ariaAnnounce.announceValue(r,"overlay")}},Wj={tag:"span",cls:"ag-overlay-no-rows-center"},qj=class extends Rh{init(e){const{beans:t,gos:o}=this,r=si(o.get("overlayNoRowsTemplate")?.trim());if(this.setTemplate(r??Wj),!r){const n=e.noRows?.overlayText??this.getLocaleTextFunc()("noRowsToShow","No Rows To Show");this.getGui().textContent=n,t.ariaAnnounce.announceValue(n,"overlay")}}},Uj={tag:"span",cls:"ag-overlay-no-matching-rows-center"},$j=class extends Rh{init(e){const{beans:t}=this;this.setTemplate(Uj);const o=e.noMatchingRows?.overlayText??this.getLocaleTextFunc()("noMatchingRows","No Matching Rows");this.getGui().textContent=o,t.ariaAnnounce.announceValue(o,"overlay")}},Kj=".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)}",Xj={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"}]}]},Zj=class extends ko{constructor(){super(),this.dragSource=null,this.eIcon=Me,this.eLabel=Me,this.eGhost=Me,this.registerCSS(Kj)}postConstruct(){const e=t=>zj(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(Xj),this.beans.environment.applyThemeClasses(this.eGhost)}destroy(){this.dragSource=null,super.destroy()}setIcon(e,t){const{eGhost:o,eIcon:r,dragSource:n,dropIconMap:i,gos:s}=this;En(r);let l=null;e||(e=n?.getDefaultIconName?n.getDefaultIconName():"notAllowed"),l=i[e],o.classList.toggle("ag-dnd-ghost-not-allowed",e==="notAllowed"),r.classList.toggle("ag-shake-left-to-right",t),!(l===i.hide&&s.get("suppressDragLeaveHidesColumns"))&&l&&r.appendChild(l)}setLabel(e){this.eLabel.textContent=e}},Yj=".ag-checkbox-cell{height:100%}",Qj={tag:"div",cls:"ag-cell-wrapper ag-checkbox-cell",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},Jj=class extends ko{constructor(){super(Qj,[lF]),this.eCheckbox=Me,this.registerCSS(Yj)}init(e){this.refresh(e);const{eCheckbox:t,beans:o}=this,r=t.getInputElement();r.setAttribute("tabindex","-1"),Gx(r,"polite"),this.addManagedListeners(r,{click:n=>{if(hc(n),t.isDisabled())return;const i=t.getValue();this.onCheckboxChanged(i)},dblclick:n=>{hc(n)}}),this.addManagedElementListeners(e.eGridCell,{keydown:n=>{if(n.key===te.SPACE&&!t.isDisabled()){e.eGridCell===At(o)&&t.toggle();const i=t.getValue();this.onCheckboxChanged(i),n.preventDefault()}}})}refresh(e){return this.params=e,this.updateCheckbox(e),!0}updateCheckbox(e){let t,o=!0;const{value:r,column:n,node:i}=e;if(i.group&&n)if(typeof r=="boolean")t=r;else{const p=n.getColId();p.startsWith(th)?t=r==null||r===""?void 0:r==="true":i.aggData&&i.aggData[p]!==void 0||i.sourceRowIndex>=0?t=r??void 0:o=!1}else t=r??void 0;const{eCheckbox:s}=this;if(!o){s.setDisplayed(!1);return}s.setValue(t);const l=e.disabled??!n?.isCellEditable(i);s.setDisabled(l);const u=this.getLocaleTextFunc(),d=$x(u,t),h=l?d:`${u("ariaToggleCellValue","Press SPACE to toggle cell value")} (${d})`;s.setInputAriaLabel(h)}onCheckboxChanged(e){const{params:t}=this,{column:o,node:r,value:n}=t,{editSvc:i}=this.beans;if(!o)return;const s={rowNode:r,column:o};i?.dispatchCellEvent(s,null,"cellEditingStarted",{value:n});const l=r.setDataValue(o,e,"ui");i?.dispatchCellEvent(s,null,"cellEditingStopped",{oldValue:n,newValue:e,valueChanged:l}),l||this.updateCheckbox(t)}},eW=e=>{let t=e.childrenAfterGroup;for(;t?.length;){const o=t[0];if(o.sourceRowIndex>=0)return o;t=o.childrenAfterGroup}},hv=class{constructor(){this.reordered=!1,this.removals=[],this.updates=new Set,this.adds=new Set}};function tW(e){return!!(e.rowPinned&&e.pinnedSibling)}var oW=class extends g9{constructor(e){super(e,HF)}},rW=500,nW=550,Ph,iW=e=>{if(!Ph)Ph=new WeakSet;else if(Ph.has(e))return!1;return Ph.add(e),!0},Pa=class{constructor(e,t=!1){this.eElement=e,this.preventClick=t,this.startListener=null,this.handlers=[],this.eventSvc=void 0,this.touchStart=null,this.lastTapTime=null,this.longPressTimer=0,this.moved=!1}addEventListener(e,t){let o=this.eventSvc;if(!o){if(o===null)return;this.eventSvc=o=new Ki;const r=this.onTouchStart.bind(this);this.startListener=r,this.eElement.addEventListener("touchstart",r,{passive:!0})}o.addEventListener(e,t)}removeEventListener(e,t){this.eventSvc?.removeEventListener(e,t)}onTouchStart(e){if(this.touchStart||!iW(e))return;const t=e.touches[0];this.touchStart=t;const o=this.handlers;if(!o.length){const r=this.eElement,n=r.ownerDocument,i=this.onTouchMove.bind(this),s=this.onTouchEnd.bind(this),l=this.onTouchCancel.bind(this),u={passive:!0},d={passive:!1};Wd(o,[r,"touchmove",i,u],[n,"touchcancel",l,u],[n,"touchend",s,d],[n,"contextmenu",aa,d])}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}))},nW)}onTouchMove(e){const{moved:t,touchStart:o}=this;if(!t&&o){const r=sa(o,e.touches);r&&!ok(r,o,4)&&(this.clearLongPress(),this.moved=!0)}}onTouchEnd(e){const t=this.touchStart;!t||!sa(t,e.changedTouches)||(this.moved||(this.eventSvc?.dispatchEvent({type:"tap",touchStart:t}),this.checkDoubleTap(t)),this.preventClick&&aa(e),this.cancel())}onTouchCancel(e){const t=this.touchStart;!t||!sa(t,e.changedTouches)||(this.lastTapTime=null,this.cancel())}checkDoubleTap(e){let t=Date.now();const o=this.lastTapTime;o&&t-o>rW&&(this.eventSvc?.dispatchEvent({type:"doubleTap",touchStart:e}),t=null),this.lastTapTime=t}cancel(){this.clearLongPress(),cm(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}},cR=class{constructor(e="javascript"){this.frameworkName=e,this.renderingEngine="vanilla",this.batchFrameworkComps=!1,this.wrapIncoming=t=>t(),this.wrapOutgoing=t=>t(),this.baseDocLink=`${lk}/${this.frameworkName}-data-grid`,PV(this.baseDocLink)}frameworkComponent(e){return null}isFrameworkComponent(e){return!1}getDocLink(e){return this.baseDocLink+(e?"/"+e:"")}};function sW(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionSvc").api}}var aW=["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"],uR=Object.fromEntries(aW.map((e,t)=>[e,t]));function lW(e,t){const o=(e.beanName?uR[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER,r=(t.beanName?uR[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER;return o-r}function cW(e,t){return e?.beanName==="gridDestroySvc"?-1:t?.beanName==="gridDestroySvc"?1:0}var uW=class extends ue{constructor(){super(...arguments),this.additionalFocusableContainers=new Set}setComp(e,t,o){this.view=e,this.eGridHostDiv=t,this.eGui=o,this.eGui.setAttribute("grid-id",this.beans.context.getId());const{dragAndDrop:r,ctrlsSvc:n}=this.beans;r?.registerGridDropTarget(()=>this.eGui,this),this.createManagedBean(new Ym(this.view)),this.view.setRtlClass(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr");const i=Dn(this.beans,this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(()=>i()),n.register("gridCtrl",this)}isDetailGrid(){return tF(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;if(e===!1)t.setCursor(null);else{const o=e===1?"ew-resize":"ns-resize";t.setCursor(o)}}disableUserSelect(e){this.view.setUserSelect(e?"none":null)}focusNextInnerContainer(e){const t=this.getFocusableContainers(),{indexWithFocus:o,nextIndex:r}=this.getNextFocusableIndex(t,e);if(r<0||r>=t.length)return!1;if(r===0){if(o>0){const{visibleCols:n,focusSvc:i}=this.beans,s=n.allCols,l=st(s);if(i.focusGridView({column:l,backwards:!0}))return!0}return!1}return this.focusContainer(t[r],e)}focusInnerElement(e){if(this.gos.getCallback("focusGridInnerElement")?.({fromBottom:!!e}))return!0;const o=this.getFocusableContainers(),{focusSvc:r,visibleCols:n}=this.beans,i=n.allCols;if(e){if(o.length>1)return this.focusContainer(st(o),e);const s=st(i);if(r.focusGridView({column:s,backwards:e}))return!0}if(this.gos.get("headerHeight")===0||ns(this.beans)){if(r.focusGridView({column:i[0],backwards:e}))return!0;for(let s=1;s<o.length;s++)if(ts(o[s].getGui(),e))return!0;return!1}return r.focusFirstHeader()}forceFocusOutOfContainer(e=!1){this.view.forceFocusOutOfContainer(e)}addFocusableContainer(e){this.additionalFocusableContainers.add(e)}removeFocusableContainer(e){this.additionalFocusableContainers.delete(e)}allowFocusForNextCoreContainer(e){const t=this.view.getFocusableContainers(),{nextIndex:o}=this.getNextFocusableIndex(t,e),r=t[o];r?this.focusContainer(r):this.forceFocusOutOfContainer(e)}isFocusable(){const e=this.beans;return!sv(e)||!ns(e)||!!e.sideBar?.comp?.isDisplayed()}getNextFocusableIndex(e,t){const o=At(this.beans),r=e.findIndex(i=>i.getGui().contains(o)),n=r+(t?-1:1);return{indexWithFocus:r,nextIndex:n}}focusContainer(e,t){e.setAllowFocus?.(!0);const o=ts(e.getGui(),t,!1,!0);return e.setAllowFocus?.(!1),o}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}destroy(){this.additionalFocusableContainers.clear(),super.destroy()}},Ae=(e,t)=>{for(const o of Object.keys(t))t[o]=e;return t},dR={dispatchEvent:"CommunityCore",...Ae("CommunityCore",{destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0,isModuleRegistered:0}),...Ae("GridState",{getState:0,setState:0}),...Ae("SharedRowSelection",{setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0}),...Ae("RowApi",{redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRowIndex:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0}),...Ae("ScrollApi",{getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0}),...Ae("KeyboardNavigation",{getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0}),...Ae("EventApi",{addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0}),...Ae("ValueCache",{expireValueCache:0}),...Ae("CellApi",{getCellValue:0}),...Ae("SharedMenu",{showColumnMenu:0,hidePopupMenu:0}),...Ae("Sort",{onSortChanged:0}),...Ae("PinnedRow",{getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0,forEachPinnedRow:0}),...Ae("Overlay",{showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0}),...Ae("RenderApi",{setGridAriaProperty:0,refreshCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0}),...Ae("HighlightChanges",{flashCells:0}),...Ae("RowDrag",{addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0,getRowDropPositionIndicator:0,setRowDropPositionIndicator:0}),...Ae("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}),...Ae("ColumnAutoSize",{sizeColumnsToFit:0,autoSizeColumns:0,autoSizeAllColumns:0}),...Ae("ColumnGroup",{setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumnGroup:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0}),...Ae("ColumnMove",{moveColumnByIndex:0,moveColumns:0}),...Ae("ColumnResize",{setColumnWidths:0}),...Ae("ColumnHover",{isColumnHovered:0}),...Ae("EditCore",{getCellEditorInstances:0,getEditingCells:0,getEditRowValues:0,stopEditing:0,startEditingCell:0,isEditing:0,validateEdit:0}),...Ae("BatchEdit",{startBatchEdit:0,cancelBatchEdit:0,commitBatchEdit:0,isBatchEditing:0}),...Ae("UndoRedoEdit",{undoCellEditing:0,redoCellEditing:0,getCurrentUndoSize:0,getCurrentRedoSize:0}),...Ae("FilterCore",{isAnyFilterPresent:0,onFilterChanged:0}),...Ae("ColumnFilter",{isColumnFilterPresent:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0,hideColumnFilter:0,getColumnFilterHandler:0,doFilterAction:0}),...Ae("QuickFilter",{isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0}),...Ae("Find",{findGetActiveMatch:0,findGetTotalMatches:0,findGoTo:0,findNext:0,findPrevious:0,findGetNumMatches:0,findGetParts:0,findClearActive:0,findRefresh:0}),...Ae("Pagination",{paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0}),...Ae("CsrmSsrmSharedApi",{expandAll:0,collapseAll:0}),...Ae("SsrmInfiniteSharedApi",{setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0}),...Ae("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}),...Ae("CsvExport",{getDataAsCsv:0,exportDataAsCsv:0}),...Ae("InfiniteRowModel",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0}),...Ae("AdvancedFilter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0}),...Ae("IntegratedCharts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0}),...Ae("Clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0}),...Ae("ExcelExport",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0}),...Ae("SharedMasterDetail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0}),...Ae("ContextMenu",{showContextMenu:0}),...Ae("ColumnMenu",{showColumnChooser:0,hideColumnChooser:0}),...Ae("CellSelection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0}),...Ae("SharedRowGrouping",{setRowGroupColumns:0,removeRowGroupColumns:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0}),...Ae("SharedAggregation",{addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0}),...Ae("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}),...Ae("ServerSideRowModelApi",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0,onRowHeightChanged:0,resetRowHeights:0}),...Ae("SideBar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0}),...Ae("StatusBar",{getStatusPanel:0}),...Ae("AiToolkit",{getStructuredSchema:0})},fv={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},dW=(e,t)=>e.eventSvc.dispatchEvent(t),hR=class{};Reflect.defineProperty(hR,"name",{value:"GridApi"});var hW=class extends ue{constructor(){super(),this.beanName="apiFunctionSvc",this.api=new hR,this.fns={...fv,dispatchEvent:dW},this.preDestroyLink="";const{api:e}=this;for(const t of Object.keys(dR))e[t]=this.makeApi(t)[t]}postConstruct(){this.preDestroyLink=this.beans.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(e,t){const{fns:o,beans:r}=this;o!==fv&&(o[e]=r?.validation?.validateApiFunction(e,t)??t)}makeApi(e){return{[e]:(...t)=>{const{beans:o,fns:{[e]:r}}=this;return r?r(o,...t):this.apiNotFound(e)}}}apiNotFound(e){const{beans:t,gos:o,preDestroyLink:r}=this;if(!t)pe(26,{fnName:e,preDestroyLink:r});else{const n=dR[e];o.assertModuleRegistered(n,`api.${e}`)&&pe(27,{fnName:e,module:n})}}destroy(){super.destroy(),this.fns=fv,this.beans=null}};function fW(e){return e.context.getId()}function pW(e){e.gridDestroySvc.destroy()}function gW(e){return e.gridDestroySvc.destroyCalled}function mW(e,t){return e.gos.get(t)}function vW(e,t,o){fR(e,{[t]:o})}function fR(e,t){e.gos.updateGridOptions({options:t})}function bW(e,t){const o=t.replace(/Module$/,"");return e.gos.isModuleRegistered(o)}var CW=class extends kG{shouldPreventMouseEvent(e){return this.gos.get("enableCellTextSelection")&&super.shouldPreventMouseEvent(e)}},wW=class extends ue{constructor(){super(...arguments),this.beanName="horizontalResizeSvc"}addResizeBar(e){const t={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e),onDragCancel:this.onDragStop.bind(this,e),includeTouch:!0,stopPropagationForTouch:!0},{dragSvc:o}=this.beans;return o.addDragSource(t),()=>o.removeDragSource(t)}onDragStart(e,t){this.dragStartX=t.clientX,this.setResizeIcons();const o=t instanceof MouseEvent&&t.shiftKey===!0;e.onResizeStart(o)}setResizeIcons(){const e=this.beans.ctrlsSvc.get("gridCtrl");e.setResizeCursor(1),e.disableUserSelect(!0)}onDragStop(e){e.onResizeEnd(this.resizeAmount),this.resetIcons()}resetIcons(){const e=this.beans.ctrlsSvc.get("gridCtrl");e.setResizeCursor(!1),e.disableUserSelect(!1)}onDragging(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)}},pR=class{constructor(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}depthFirstSearchChangedPath(e,t){const{rowNode:o,children:r}=e;if(r)for(let n=0;n<r.length;++n)this.depthFirstSearchChangedPath(r[n],t);t(o)}depthFirstSearchEverything(e,t,o){const r=e.childrenAfterGroup;if(r)for(let n=0,i=r.length;n<i;++n){const s=r[n];s.childrenAfterGroup?this.depthFirstSearchEverything(s,t,o):o&&t(s)}t(e)}forEachChangedNodeDepthFirst(e,t=!1,o=!1){this.active&&!o?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)}executeFromRootNode(e){e(this.pathRoot.rowNode)}createPathItems(e){let t=e,o=0;for(;!this.mapToItems[t.id];){const r={rowNode:t,children:null};this.mapToItems[t.id]=r,o++,t=t.parent}return o}populateColumnsMap(e,t){if(!this.keepingColumns||!t)return;let o=e;for(;o;){this.nodeIdsToColumns[o.id]||(this.nodeIdsToColumns[o.id]={});for(const r of t)this.nodeIdsToColumns[o.id][r.getId()]=!0;o=o.parent}}linkPathItems(e,t){let o=e;for(let r=0;r<t;r++){const n=this.mapToItems[o.id],i=this.mapToItems[o.parent.id];i.children||(i.children=[]),i.children.push(n),o=o.parent}}addParentNode(e,t){if(!e||e.isRowPinned())return;const o=this.createPathItems(e);this.linkPathItems(e,o),this.populateColumnsMap(e,t)}canSkip(e){return this.active&&!this.mapToItems[e.id]}getValueColumnsForNode(e,t){if(!this.keepingColumns)return t;const o=this.nodeIdsToColumns[e.id];return t.filter(n=>o[n.getId()])}getNotValueColumnsForNode(e,t){if(!this.keepingColumns)return null;const o=this.nodeIdsToColumns[e.id];return t.filter(n=>!o[n.getId()])}},gR={moduleName:"Drag",version:ze,beans:[CW]},yW={moduleName:"SharedDragAndDrop",version:ze,beans:[RG],dependsOn:[gR],userComponents:{agDragAndDropImage:Zj},icons:{columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",rowDrag:"grip"}},SW={moduleName:"HorizontalResize",version:ze,beans:[wW],dependsOn:[gR]},xW=":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}}",kW=class extends ue{constructor(){super(...arguments),this.beanName="colAnimation",this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.activeNext=!1,this.suppressAnimation=!1,this.animationThreadCount=0}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>this.gridBodyCtrl=e.gridBodyCtrl)}isActive(){return this.active&&!this.suppressAnimation}setSuppressAnimation(e){this.suppressAnimation=e}start(){if(this.active)return;const{gos:e}=this;e.get("suppressColumnMoveAnimation")||e.get("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0,this.activeNext=!0)}finish(){this.active&&this.flush(()=>this.activeNext=!1,()=>this.active=!1)}executeNextVMTurn(e){this.activeNext?this.executeNextFuncs.push(e):e()}executeLaterVMTurn(e){this.active?this.executeLaterFuncs.push(e):e()}ensureAnimationCssClassPresent(){this.animationThreadCount++;const e=this.animationThreadCount,{gridBodyCtrl:t}=this;t.setColumnMovingCss(!0),this.executeLaterFuncs.push(()=>{this.animationThreadCount===e&&t.setColumnMovingCss(!1)})}flush(e,t){const{executeNextFuncs:o,executeLaterFuncs:r}=this;if(o.length===0&&r.length===0){e(),t();return}const n=i=>{for(;i.length;){const s=i.pop();s&&s()}};this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e(),n(o)},0),window.setTimeout(()=>{t(),n(r)},200)})}};function FW(e,t,o){e.colMoves?.moveColumnByIndex(t,o,"api")}function RW(e,t,o){e.colMoves?.moveColumns(t,o,"api")}var PW=class extends ue{constructor(e){super(),this.pinned=e,this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[]}onDragEnter(e){if(this.clearColumnsList(),this.gos.get("functionsReadOnly"))return;const t=e.dragItem.columns;if(t)for(const o of t)o.isPrimary()&&(o.isAnyFunctionActive()||(o.isAllowValue()?this.columnsToAggregate.push(o):o.isAllowRowGroup()?this.columnsToGroup.push(o):o.isAllowPivot()&&this.columnsToPivot.push(o)))}getIconName(){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:o,pivotColsSvc:r}=this.beans;this.columnsToAggregate.length>0&&t?.addColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&o?.addColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&r?.addColumns(this.columnsToPivot,"toolPanelDragAndDrop")}onDragCancel(){this.clearColumnsList()}};function EW(e,t){!t||t.length<=1||t.filter(r=>e.indexOf(r)<0).length>0||t.sort((r,n)=>{const i=e.indexOf(r),s=e.indexOf(n);return i-s})}function TW(e){const t=[...e];for(const o of e){let r=null,n=o.getParent();for(;n!=null&&n.getDisplayedLeafColumns().length===1;)r=n,n=n.getParent();if(r!=null){const s=!!r.getColGroupDef()?.marryChildren?r.getProvidedColumnGroup().getLeafColumns():r.getLeafColumns();for(const l of s)t.includes(l)||t.push(l)}}return t}function DW(e,t,o,r){const n=r.allCols;let i=null,s=null;for(let l=0;l<e.length;l++){const u=e[l],d=o.getProposedColumnOrder(t,u);if(!o.doesOrderPassRules(d))continue;const h=d.filter(g=>n.includes(g));if(s===null)s=h;else if(!ic(h,s))break;const p=AW(d);(i===null||p<i.fragCount)&&(i={move:u,fragCount:p})}return i}function mR(e){const{isFromHeader:t,fromLeft:o,xPosition:r,fromEnter:n,fakeEvent:i,pinned:s,gos:l,colModel:u,colMoves:d,visibleCols:h}=e;let{allMovingColumns:p}=e;t&&(p=TW(p));const g=p.slice();EW(u.getCols(),g);const v=IW({movingCols:g,draggingRight:o,xPosition:r,pinned:s,gos:l,colModel:u,visibleCols:h}),b=MW(g,u);if(v.length===0)return;const C=v[0];if(b!==null&&(t||!n)&&!i&&(!o&&C>=b||o&&C<=b))return;const k=DW(v,g,d,h);if(!k)return;const F=k.move;if(!(F>u.getCols().length-g.length))return{columns:g,toIndex:F}}function vR(e){const{columns:t,toIndex:o}=mR(e)||{},{finished:r,colMoves:n}=e;return!t||o==null?null:(n.moveColumns(t,o,"uiColumnMoved",r),r?null:{columns:t,toIndex:o})}function MW(e,t){const o=t.getCols(),r=e.map(u=>o.indexOf(u)).sort((u,d)=>u-d),n=r[0];return st(r)-n!==r.length-1?null:n}function AW(e){function t(r){const n=[];let i=r.getOriginalParent();for(;i!=null;)n.push(i),i=i.getOriginalParent();return n}let o=0;for(let r=0;r<e.length-1;r++){let n=t(e[r]),i=t(e[r+1]);[n,i]=n.length>i.length?[n,i]:[i,n];for(const s of n)i.indexOf(s)===-1&&o++}return o}function _W(e,t){switch(t){case"left":return e.leftCols;case"right":return e.rightCols;default:return e.centerCols}}function IW(e){const{movingCols:t,draggingRight:o,xPosition:r,pinned:n,gos:i,colModel:s,visibleCols:l}=e;if(i.get("suppressMovableColumns")||t.some(R=>R.getColDef().suppressMovable))return[];const d=_W(l,n),h=s.getCols(),p=d.filter(R=>t.includes(R)),g=d.filter(R=>!t.includes(R)),v=h.filter(R=>!t.includes(R));let b=0,C=r;if(o){let R=0;for(const P of p)R+=P.getActualWidth();C-=R}if(C>0){for(let R=0;R<g.length;R++){const P=g[R];if(C-=P.getActualWidth(),C<0)break;b++}o&&b++}let S;if(b>0){const R=g[b-1];S=v.indexOf(R)+1}else S=v.indexOf(g[0]),S===-1&&(S=0);const k=[S],F=(R,P)=>R-P;if(o){let R=S+1;const P=h.length-1;for(;R<=P;)k.push(R),R++;k.sort(F)}else{let R=S;const P=h.length-1;let T=h[R];for(;R<=P&&d.indexOf(T)<0;)R++,k.push(R),T=h[R];R=S-1;const D=0;for(;R>=D;)k.push(R),R--;k.sort(F).reverse()}return k}function pv(e){const{pinned:t,fromKeyboard:o,gos:r,ctrlsSvc:n,useHeaderRow:i,skipScrollPadding:s}=e;let l=n.getHeaderRowContainerCtrl(t)?.eViewport,{x:u}=e;return l?(o&&(u-=l.getBoundingClientRect().left),r.get("enableRtl")&&(i&&(l=l.querySelector(".ag-header-row")),u=l.clientWidth-u),t==null&&!s&&(u+=n.get("center").getCenterViewportScrollLeft()),u):0}function gv(e,t){for(const o of e)o.moving=t,o.dispatchColEvent("movingChanged","uiColumnMoved")}var bR=7,mv=100,Eh=mv/2,BW=5,OW=100,LW=class extends ue{constructor(e){super(),this.pinned=e,this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.isCenterContainer=!xe(e)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}getIconName(){const{pinned:e,lastDraggingEvent:t}=this,{dragItem:o}=t||{},r=o?.columns??[];for(const n of r){const i=n.getPinned();if(n.getColDef().lockPinned){if(i==e)return"move";continue}const s=o?.containerType;if(s===e||!e)return"move";if(e&&(!i||s!==e))return"pinned"}return"notAllowed"}onDragEnter(e){const t=e.dragItem,o=t.columns;if(e.dragSource.type===0)this.setColumnsVisible(o,!0,"uiColumnDragged");else{const n=t.visibleState,i=(o||[]).filter(s=>n[s.getId()]&&!s.isVisible());this.setColumnsVisible(i,!0,"uiColumnDragged")}this.gos.get("suppressMoveWhenColumnDragging")||this.attemptToPinColumns(o,this.pinned),this.onDragging(e,!0,!0)}onDragging(e=this.lastDraggingEvent,t=!1,o=!1,r=!1){const{gos:n,ctrlsSvc:i}=this.beans,s=n.get("suppressMoveWhenColumnDragging");if(r&&!s){this.finishColumnMoving();return}if(this.lastDraggingEvent=e,!e||!r&&Ht(e.hDirection))return;const l=pv({x:e.x,pinned:this.pinned,gos:n,ctrlsSvc:i});t||this.checkCenterForScrolling(l),s?this.handleColumnDragWhileSuppressingMovement(e,t,o,l,r):this.handleColumnDragWhileAllowingMovement(e,t,o,l,r)}onDragLeave(){this.ensureIntervalCleared(),this.clearHighlighted(),this.updateDragItemContainerType(),this.lastMovedInfo=null}onDragStop(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null}onDragCancel(){this.clearHighlighted(),this.ensureIntervalCleared(),this.lastMovedInfo=null}setColumnsVisible(e,t,o){if(!e?.length)return;const r=e.filter(n=>!n.getColDef().lockVisible);r.length&&this.beans.colModel.setColsVisible(r,t,o)}finishColumnMoving(){this.clearHighlighted();const e=this.lastMovedInfo;if(!e)return;const{columns:t,toIndex:o}=e;this.beans.colMoves.moveColumns(t,o,"uiColumnMoved",!0)}updateDragItemContainerType(){const{lastDraggingEvent:e}=this;if(this.gos.get("suppressMoveWhenColumnDragging")||!e)return;const t=e.dragItem;t&&(t.containerType=this.pinned)}handleColumnDragWhileSuppressingMovement(e,t,o,r,n){const i=this.getAllMovingColumns(e,!0);if(n){const s=this.isAttemptingToPin(i);s&&this.attemptToPinColumns(i,void 0,!0);const{fromLeft:l,xPosition:u}=this.getNormalisedXPositionInfo(i,s)||{};if(l==null||u==null){this.finishColumnMoving();return}this.moveColumnsAfterHighlight({allMovingColumns:i,xPosition:u,fromEnter:t,fakeEvent:o,fromLeft:l})}else{if(!this.beans.dragAndDrop.isDropZoneWithinThisGrid(e))return;this.highlightHoveredColumn(i,r)}}handleColumnDragWhileAllowingMovement(e,t,o,r,n){const i=this.getAllMovingColumns(e),s=this.normaliseDirection(e.hDirection)==="right",l=e.dragSource.type===1,u=this.getMoveColumnParams({allMovingColumns:i,isFromHeader:l,xPosition:r,fromLeft:s,fromEnter:t,fakeEvent:o}),d=vR({...u,finished:n});d&&(this.lastMovedInfo=d)}getAllMovingColumns(e,t=!1){const o=e.dragSource.getDragItem();let r=null;t?(r=o.columnsInSplit,r||(r=o.columns)):r=o.columns;const n=i=>i.getColDef().lockPinned?i.getPinned()==this.pinned:!0;return r?r.filter(n):[]}getMoveColumnParams(e){const{allMovingColumns:t,isFromHeader:o,xPosition:r,fromLeft:n,fromEnter:i,fakeEvent:s}=e,{gos:l,colModel:u,colMoves:d,visibleCols:h}=this.beans;return{allMovingColumns:t,isFromHeader:o,fromLeft:n,xPosition:r,pinned:this.pinned,fromEnter:i,fakeEvent:s,gos:l,colModel:u,colMoves:d,visibleCols:h}}highlightHoveredColumn(e,t){const{gos:o,colModel:r}=this.beans,n=o.get("enableRtl"),i=r.getCols().filter(h=>h.isVisible()&&h.getPinned()===this.pinned);let s=null,l=null,u=null;for(const h of i){if(l=h.getActualWidth(),s=this.getNormalisedColumnLeft(h,0,n),s!=null){const p=s+l;if(s<=t&&p>=t){u=h;break}}s=null,l=null}if(u)e.indexOf(u)!==-1&&(u=null);else{for(let h=i.length-1;h>=0;h--){const p=i[h],g=i[h].getParent();if(!g){u=p;break}const v=g?.getDisplayedLeafColumns();if(v.length){u=st(v);break}}if(!u)return;s=this.getNormalisedColumnLeft(u,0,n),l=u.getActualWidth()}if(this.lastHighlightedColumn?.column!==u&&this.clearHighlighted(),u==null||s==null||l==null)return;let d;t-s<l/2?d=0:d=1,CR(u,d),this.lastHighlightedColumn={column:u,position:d}}getNormalisedXPositionInfo(e,t){const{gos:o,visibleCols:r}=this.beans,n=o.get("enableRtl"),{firstMovingCol:i,column:s,position:l}=this.getColumnMoveAndTargetInfo(e,t,n);if(!i||!s||l==null)return;const u=r.allCols,d=u.indexOf(i),h=u.indexOf(s),p=l===0,g=d<h||d===h&&!p;let v=0;if(p?g&&(v-=1):g||(v+=1),h+v===d)return;const b=u[h+v];if(!b)return;const C=this.getNormalisedColumnLeft(b,20,n);return{fromLeft:g,xPosition:C}}getColumnMoveAndTargetInfo(e,t,o){const r=this.lastHighlightedColumn||{},{firstMovingCol:n,lastMovingCol:i}=NW(e);if(!n||!i||r.column||!t)return{firstMovingCol:n,...r};const l=this.getPinDirection()==="left";return{firstMovingCol:n,position:l?1:0,column:l!==o?n:i}}normaliseDirection(e){if(this.gos.get("enableRtl"))switch(e){case"left":return"right";case"right":return"left"}return e}getNormalisedColumnLeft(e,t,o){const{gos:r,ctrlsSvc:n}=this.beans,i=e.getLeft();if(i==null)return null;const s=e.getActualWidth();return pv({x:o?i+s-t:i+t,pinned:e.getPinned(),useHeaderRow:o,skipScrollPadding:!0,gos:r,ctrlsSvc:n})}isAttemptingToPin(e){const t=this.needToMoveLeft||this.needToMoveRight,o=this.failedMoveAttempts>bR;return t&&o||e.some(r=>r.getPinned()!==this.pinned)}moveColumnsAfterHighlight(e){const{allMovingColumns:t,xPosition:o,fromEnter:r,fakeEvent:n,fromLeft:i}=e,s=this.getMoveColumnParams({allMovingColumns:t,isFromHeader:!0,xPosition:o,fromLeft:i,fromEnter:r,fakeEvent:n}),{columns:l,toIndex:u}=mR(s)||{};l&&u!=null&&(this.lastMovedInfo={columns:l,toIndex:u}),this.finishColumnMoving()}clearHighlighted(){const{lastHighlightedColumn:e}=this;e&&(CR(e.column,null),this.lastHighlightedColumn=null)}checkCenterForScrolling(e){if(!this.isCenterContainer)return;const t=this.beans.ctrlsSvc.get("center"),o=t.getCenterViewportScrollLeft(),r=o+t.getCenterWidth();let n,i;this.gos.get("enableRtl")?(n=e<o+Eh,i=e>r-Eh):(i=e<o+Eh,n=e>r-Eh),this.needToMoveRight=n,this.needToMoveLeft=i,i||n?this.ensureIntervalStarted():this.ensureIntervalCleared()}ensureIntervalStarted(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),OW),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*BW,e>mv&&(e=mv);let t=null;const o=this.gridBodyCon.scrollFeature;if(this.needToMoveLeft?t=o.scrollHorizontally(-e):this.needToMoveRight&&(t=o.scrollHorizontally(e)),t!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;const{pinnedCols:r,dragAndDrop:n,gos:i}=this.beans;if(this.failedMoveAttempts<=bR+1||!r)return;if(n.setDragImageCompIcon("pinned"),!i.get("suppressMoveWhenColumnDragging")){const s=this.lastDraggingEvent?.dragItem.columns;this.attemptToPinColumns(s,void 0,!0)}}}getPinDirection(){if(this.needToMoveLeft||this.pinned==="left")return"left";if(this.needToMoveRight||this.pinned==="right")return"right"}attemptToPinColumns(e,t,o=!1){const r=(e||[]).filter(s=>!s.getColDef().lockPinned);if(!r.length)return 0;o&&(t=this.getPinDirection());const{pinnedCols:n,dragAndDrop:i}=this.beans;return n?.setColsPinned(r,t,"uiColumnDragged"),o&&i.nudge(),r.length}destroy(){super.destroy(),this.lastDraggingEvent=null,this.clearHighlighted(),this.lastMovedInfo=null}};function CR(e,t){e.highlighted!==t&&(e.highlighted=t,e.dispatchColEvent("headerHighlightChanged","uiColumnMoved"))}function NW(e){const t=e.length;let o,r;for(let n=0;n<t;n++){if(!o){const i=e[n];i.getLeft()!=null&&(o=i)}if(!r){const i=e[t-1-n];i.getLeft()!=null&&(r=i)}if(o&&r)break}return{firstMovingCol:o,lastMovingCol:r}}var zW=class extends ue{constructor(e,t){super(),this.pinned=e,this.eContainer=t}postConstruct(){const{ctrlsSvc:e,dragAndDrop:t}=this.beans,o=this.pinned;e.whenReady(this,r=>{let n;const i=r.gridBodyCtrl.eBodyViewport;switch(o){case"left":n=[[i,r.left.eContainer],[r.bottomLeft.eContainer],[r.topLeft.eContainer]];break;case"right":n=[[i,r.right.eContainer],[r.bottomRight.eContainer],[r.topRight.eContainer]];break;default:n=[[i,r.center.eViewport],[r.bottomCenter.eViewport],[r.topCenter.eViewport]];break}this.eSecondaryContainers=n}),this.moveColumnFeature=this.createManagedBean(new LW(o)),this.bodyDropPivotTarget=this.createManagedBean(new PW(o)),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()}},HW=class extends ue{constructor(){super(...arguments),this.beanName="colMoves"}moveColumnByIndex(e,t,o){const r=this.beans.colModel.getCols();if(!r)return;const n=r[e];this.moveColumns([n],t,o)}moveColumns(e,t,o,r=!0){const{colModel:n,colAnimation:i,visibleCols:s,eventSvc:l}=this.beans,u=n.getCols();if(!u)return;if(t>u.length-e.length){pe(30,{toIndex:t});return}i?.start();const d=n.getColsForKeys(e);this.doesMovePassRules(d,t)&&(Dk(n.getCols(),d,t),s.refresh(o),l.dispatchEvent({type:"columnMoved",columns:d,column:d.length===1?d[0]:null,toIndex:t,finished:r,source:o})),i?.finish()}doesMovePassRules(e,t){const o=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(o)}doesOrderPassRules(e){const{colModel:t,gos:o}=this.beans;return!(!Bk(e,t.getColTree())||!(n=>{const i=d=>d?d==="left"||d===!0?-1:1:0,s=o.get("enableRtl");let l=s?1:-1,u=!0;for(const d of n){const h=i(d.getColDef().lockPosition);s?h>l&&(u=!1):h<l&&(u=!1),l=h}return u})(e))}getProposedColumnOrder(e,t){const r=this.beans.colModel.getCols().slice();return Dk(r,e,t),r}createBodyDropTarget(e,t){return new zW(e,t)}moveHeader(e,t,o,r,n){const{ctrlsSvc:i,gos:s,colModel:l,visibleCols:u,focusSvc:d}=this.beans,h=t.getBoundingClientRect(),p=h.left,g=Nt(o),v=g?h.width:o.getActualWidth(),b=e==="left"!==s.get("enableRtl"),C=pv({x:b?p-20:p+v+20,pinned:r,fromKeyboard:!0,gos:s,ctrlsSvc:i}),S=d.focusedHeader;vR({allMovingColumns:g?o.getLeafColumns():[o],isFromHeader:!0,fromLeft:e==="right",xPosition:C,pinned:r,fromEnter:!1,fakeEvent:!1,gos:s,colModel:l,colMoves:this,visibleCols:u,finished:!0});let k;if(g){const F=o.getDisplayedLeafColumns();k=b?F[0]:st(F)}else k=o;if(i.getScrollFeature().ensureColumnVisible(k,"auto"),(!n.isAlive()||s.get("ensureDomOrder"))&&S){let F;if(g){const R=o.getGroupId(),P=o.getLeafColumns();if(!P.length)return;const T=P[0].getParent();if(!T)return;F=VW(T,R)}else F=o;F&&d.focusHeaderPosition({headerPosition:{...S,column:F}})}}setDragSourceForHeader(e,t,o){const{gos:r,colModel:n,dragAndDrop:i,visibleCols:s}=this.beans;let l=!r.get("suppressDragLeaveHidesColumns");const u=Nt(t),d=u?t.getProvidedColumnGroup().getLeafColumns():[t],p={type:1,eElement:e,getDefaultIconName:()=>l?"hide":"notAllowed",getDragItem:u?()=>jW(t,s.allCols):()=>GW(t),dragItemName:o,onDragStarted:()=>{l=!r.get("suppressDragLeaveHidesColumns"),gv(d,!0)},onDragStopped:()=>gv(d,!1),onDragCancelled:()=>gv(d,!1),onGridEnter:g=>{if(l){const{columns:v=[],visibleState:b}=g??{},C=u?k=>!b||b[k.getColId()]:()=>!0,S=v.filter(k=>!k.getColDef().lockVisible&&C(k));n.setColsVisible(S,!0,"uiColumnMoved")}},onGridExit:g=>{if(l){const v=g?.columns?.filter(b=>!b.getColDef().lockVisible)||[];n.setColsVisible(v,!1,"uiColumnMoved")}}};return i.addDragSource(p,!0),p}};function VW(e,t){for(;e;){if(e.getGroupId()===t)return e;e=e.getParent()}}function GW(e){const t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t,containerType:e.pinned}}function jW(e,t){const o=e.getProvidedColumnGroup().getLeafColumns(),r={};for(const l of o)r[l.getId()]=l.isVisible();const n=[];for(const l of t)o.indexOf(l)>=0&&(n.push(l),pa(o,l));for(const l of o)n.push(l);const i=[],s=e.getLeafColumns();for(const l of n)s.indexOf(l)!==-1&&i.push(l);return{columns:n,columnsInSplit:i,visibleState:r,containerType:i[0]?.pinned}}var WW={moduleName:"ColumnMove",version:ze,beans:[HW,kW],apiFunctions:{moveColumnByIndex:FW,moveColumns:RW},dependsOn:[yW],css:[xW]},qW=class extends ue{constructor(){super(...arguments),this.beanName="autoWidthCalc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowContainerCtrl=e.center})}getPreferredWidthForColumn(e,t){const o=this.getHeaderCellForColumn(e);if(!o)return-1;const r=this.beans.rowRenderer.getAllCellsNotSpanningForColumn(e);return t||r.push(o),this.getPreferredWidthForElements(r)}getPreferredWidthForColumnGroup(e){const t=this.getHeaderCellForColumn(e);return t?this.getPreferredWidthForElements([t]):-1}getPreferredWidthForElements(e,t){const o=document.createElement("form");o.style.position="fixed";const r=this.centerRowContainerCtrl.eContainer;for(const i of e)this.cloneItemIntoDummy(i,o);r.appendChild(o);const n=o.offsetWidth;return o.remove(),t=t??this.gos.get("autoSizePadding"),n+t}getHeaderCellForColumn(e){let t=null;for(const o of this.beans.ctrlsSvc.getHeaderRowContainerCtrls()){const r=o.getHtmlElementForColumnHeader(e);r!=null&&(t=r)}return t}cloneItemIntoDummy(e,t){const o=e.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";const r=document.createElement("div"),n=r.classList;["ag-header-cell","ag-header-group-cell"].some(l=>o.classList.contains(l))?(n.add("ag-header","ag-header-row"),r.style.position="static"):n.add("ag-row");let s=e.parentElement;for(;s;){if(["ag-header-row","ag-row"].some(u=>s.classList.contains(u))){for(let u=0;u<s.classList.length;u++){const d=s.classList[u];d!="ag-row-position-absolute"&&n.add(d)}break}s=s.parentElement}r.appendChild(o),t.appendChild(r)}},UW={moduleName:"AutoWidth",version:ze,beans:[qW]};function $W(e,t,o=!0,r="api"){e.colResize?.setColumnWidths(t,!1,o,r)}var KW=class extends ue{constructor(e,t,o,r){super(),this.comp=e,this.eResize=t,this.pinned=o,this.columnGroup=r}postConstruct(){if(!this.columnGroup.isResizable()){this.comp.setResizableDisplayed(!1);return}const{horizontalResizeSvc:e,gos:t,colAutosize:o}=this.beans,r=e.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(r),!t.get("suppressAutoSize")&&o&&this.addDestroyFunc(o.addColumnGroupResize(this.eResize,this.columnGroup,()=>this.resizeLeafColumnsToFit("uiColumnResized")))}onResizeStart(e){const{columnsToResize:t,resizeStartWidth:o,resizeRatios:r,groupAfterColumns:n,groupAfterStartWidth:i,groupAfterRatios:s}=this.getInitialValues(e);this.resizeCols=t,this.resizeStartWidth=o,this.resizeRatios=r,this.resizeTakeFromCols=n,this.resizeTakeFromStartWidth=i,this.resizeTakeFromRatios=s,this.toggleColumnResizing(!0)}onResizing(e,t,o="uiColumnResized"){const r=this.normaliseDragChange(t),n=this.resizeStartWidth+r;this.resizeColumnsFromLocalValues(n,o,e)}getInitialValues(e){const t=u=>u.reduce((d,h)=>d+h.getActualWidth(),0),o=(u,d)=>u.map(h=>h.getActualWidth()/d),r=this.getColumnsToResize(),n=t(r),i=o(r,n),s={columnsToResize:r,resizeStartWidth:n,resizeRatios:i};let l=null;if(e&&(l=this.beans.colGroupSvc?.getGroupAtDirection(this.columnGroup,"After")??null),l){const u=l.getDisplayedLeafColumns(),d=s.groupAfterColumns=u.filter(p=>p.isResizable()),h=s.groupAfterStartWidth=t(d);s.groupAfterRatios=o(d,h)}else s.groupAfterColumns=void 0,s.groupAfterStartWidth=void 0,s.groupAfterRatios=void 0;return s}resizeLeafColumnsToFit(e){const t=this.beans.autoWidthCalc.getPreferredWidthForColumnGroup(this.columnGroup),o=this.getInitialValues();t>o.resizeStartWidth&&this.resizeColumns(o,t,e,!0)}resizeColumnsFromLocalValues(e,t,o=!0){if(!this.resizeCols||!this.resizeRatios)return;const r={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:this.resizeTakeFromCols,groupAfterStartWidth:this.resizeTakeFromStartWidth,groupAfterRatios:this.resizeTakeFromRatios};this.resizeColumns(r,e,t,o)}resizeColumns(e,t,o,r=!0){const{columnsToResize:n,resizeStartWidth:i,resizeRatios:s,groupAfterColumns:l,groupAfterStartWidth:u,groupAfterRatios:d}=e,h=[];if(h.push({columns:n,ratios:s,width:t}),l){const p=t-i;h.push({columns:l,ratios:d,width:u-p})}this.beans.colResize?.resizeColumnSets({resizeSets:h,finished:r,source:o}),r&&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}},XW=class extends ue{constructor(e,t,o,r,n){super(),this.pinned=e,this.column=t,this.eResize=o,this.comp=r,this.ctrl=n}postConstruct(){const e=[];let t,o;const r=()=>{if(gt(this.eResize,t),!t)return;const{horizontalResizeSvc:s,colAutosize:l}=this.beans,u=s.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});e.push(u),o&&l&&e.push(l.addColumnAutosizeListeners(this.eResize,this.column))},n=()=>{for(const s of e)s();e.length=0},i=()=>{const s=this.column.isResizable(),l=!this.gos.get("suppressAutoSize")&&!this.column.getColDef().suppressAutoSize;(s!==t||l!==o)&&(t=s,o=l,n(),r())};i(),this.addDestroyFunc(n),this.ctrl.setRefreshFunction("resize",i)}onResizing(e,t){const{column:o,lastResizeAmount:r,resizeStartWidth:n,beans:i}=this,s=this.normaliseResizeAmount(t),l=n+s,u=[{key:o,newWidth:l}],{pinnedCols:d,ctrlsSvc:h,colResize:p}=i;if(this.column.getPinned()){const g=d?.leftWidth??0,v=d?.rightWidth??0,b=Nd(h.getGridBodyCtrl().eBodyViewport)-50;if(g+v+(s-r)>b)return}this.lastResizeAmount=s,p?.setColumnWidths(u,this.resizeWithShiftKey,e,"uiColumnResized"),e&&this.toggleColumnResizing(!1)}onResizeStart(e){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=e,this.toggleColumnResizing(!0)}toggleColumnResizing(e){this.column.resizing=e,this.comp.toggleCss("ag-column-resizing",e)}normaliseResizeAmount(e){let t=e;const o=this.pinned!=="left",r=this.pinned==="right";return this.gos.get("enableRtl")?o&&(t*=-1):r&&(t*=-1),t}},ZW=class extends ue{constructor(){super(...arguments),this.beanName="colResize"}setColumnWidths(e,t,o,r){const n=[],{colModel:i,gos:s,visibleCols:l}=this.beans;for(const u of e){const d=i.getColDefCol(u.key)||i.getCol(u.key);if(!d)continue;if(n.push({width:u.newWidth,ratios:[1],columns:[d]}),s.get("colResizeDefault")==="shift"&&(t=!t),t){const p=l.getColAfter(d);if(!p)continue;const g=d.getActualWidth()-u.newWidth,v=p.getActualWidth()+g;n.push({width:v,ratios:[1],columns:[p]})}}n.length!==0&&this.resizeColumnSets({resizeSets:n,finished:o,source:r})}resizeColumnSets(e){const{resizeSets:t,finished:o,source:r}=e;if(!(!t||t.every(h=>YW(h)))){if(o){const h=t&&t.length>0?t[0].columns:null;nh(this.eventSvc,h,o,r)}return}const i=[],s=[];for(const h of t){const{width:p,columns:g,ratios:v}=h,b={},C={};for(const F of g)s.push(F);let S=!0,k=0;for(;S;){if(k++,k>1e3){yt(31);break}S=!1;const F=[];let R=0,P=p;g.forEach((D,M)=>{if(C[D.getId()])P-=b[D.getId()];else{F.push(D);const I=v[M];R+=I}});const T=1/R;F.forEach((D,M)=>{const O=M===F.length-1;let I;O?I=P:(I=Math.round(v[M]*p*T),P-=I);const z=D.getMinWidth(),U=D.getMaxWidth();I<z?(I=z,C[D.getId()]=!0,S=!0):U>0&&I>U&&(I=U,C[D.getId()]=!0,S=!0),b[D.getId()]=I})}for(const F of g){const R=b[F.getId()];F.getActualWidth()!==R&&(F.setActualWidth(R,r),i.push(F))}}const l=i.length>0;let u=[];if(l){const{colFlex:h,visibleCols:p,colViewport:g}=this.beans;u=h?.refreshFlexedColumns({resizingCols:s,skipSetLeft:!0})??[],p.setLeftValues(r),p.updateBodyWidths(),g.checkViewportColumns()}const d=s.concat(u);(l||o)&&nh(this.eventSvc,d,o,r,u)}resizeHeader(e,t,o){if(!e.isResizable())return;const r=e.getActualWidth(),n=e.getMinWidth(),i=e.getMaxWidth(),s=Math.min(Math.max(r+t,n),i);this.setColumnWidths([{key:e,newWidth:s}],o,!0,"uiColumnResized")}createResizeFeature(e,t,o,r,n){return new XW(e,t,o,r,n)}createGroupResizeFeature(e,t,o,r){return new KW(e,t,o,r)}};function YW(e){const{columns:t,width:o}=e;let r=0,n=0,i=!0;for(const u of t){const d=u.getMinWidth();r+=d||0;const h=u.getMaxWidth();h>0?n+=h:i=!1}const s=o>=r,l=!i||o<=n;return s&&l}var QW={moduleName:"ColumnResize",version:ze,beans:[ZW],apiFunctions:{setColumnWidths:$W},dependsOn:[SW,UW]},JW=class extends ue{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)}},eq=class extends uv{constructor(){super(...arguments),this.onSuppressColMoveChange=()=>{!this.isAlive()||this.isSuppressMoving()?this.removeDragSource():this.dragSource||this.setDragSource(this.eGui)}}wireComp(e,t,o,r,n){const{column:i,beans:s}=this,{context:l,colNames:u,colHover:d,rangeSvc:h,colResize:p}=s;this.comp=e,n=ac(this,l,n),this.setGui(t,n),this.displayName=u.getDisplayNameForColumnGroup(i,"header"),this.refreshHeaderStyles(),this.addClasses(),this.setupMovingCss(n),this.setupExpandable(n),this.setupTooltip(),this.refreshAnnouncement(),this.setupAutoHeight({wrapperElement:r,compBean:n}),this.setupUserComp(),this.addHeaderMouseListeners(n,r),this.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this)),this.refreshMaxHeaderHeight();const g=this.rowCtrl.pinned,v=i.getProvidedColumnGroup().getLeafColumns();d?.createHoverFeature(n,v,t),h?.createRangeHighlightFeature(n,i,e),n.createManagedBean(new cv(i,t,s)),n.createManagedBean(new JW(e,i)),p?this.resizeFeature=n.createManagedBean(p.createGroupResizeFeature(e,o,g,i)):e.setResizableDisplayed(!1),n.createManagedBean(new fc(t,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addHighlightListeners(n,v),this.addManagedEventListeners({cellSelectionChanged:()=>this.refreshAnnouncement()}),n.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners(n),n.addDestroyFunc(()=>this.clearComponent())}getHeaderClassParams(){const{column:e,beans:t}=this,o=e.getDefinition();return je(t.gos,{colDef:o,columnGroup:e,floatingFilter:!1})}refreshMaxHeaderHeight(){const{gos:e,comp:t}=this,o=e.get("groupHeaderHeight");o!=null?o===0?t.setHeaderWrapperHidden(!0):t.setHeaderWrapperMaxHeight(o):(t.setHeaderWrapperHidden(!1),t.setHeaderWrapperMaxHeight(null))}addHighlightListeners(e,t){if(this.beans.gos.get("suppressMoveWhenColumnDragging"))for(const o of t)e.addManagedListeners(o,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,o)})}onLeafColumnHighlightChanged(e){const t=this.column.getDisplayedLeafColumns(),o=t[0]===e,r=st(t)===e;if(!o&&!r)return;const n=e.getHighlighted(),i=!!this.rowCtrl.getHeaderCellCtrls().find(u=>u.column.isMoving());let s=!1,l=!1;if(i){const u=this.beans.gos.get("enableRtl"),d=n===1,h=n===0;o&&(u?l=d:s=h),r&&(u?s=h:l=d)}this.comp.toggleCss("ag-header-highlight-before",s),this.comp.toggleCss("ag-header-highlight-after",l)}resizeHeader(e,t){const{resizeFeature:o}=this;if(!o)return;const r=o.getInitialValues(t);o.resizeColumns(r,r.resizeStartWidth+e,"uiColumnResized",!0)}resizeLeafColumnsToFit(e){this.resizeFeature?.resizeLeafColumnsToFit(e)}setupUserComp(){const{colGroupSvc:e,userCompFactory:t,gos:o,enterpriseMenuFactory:r}=this.beans,n=this.column,i=n.getProvidedColumnGroup(),s=je(o,{displayName:this.displayName,columnGroup:n,setExpanded:u=>{e.setColumnGroupOpened(i,u,"gridInitializing")},setTooltip:(u,d)=>{o.assertModuleRegistered("Tooltip",3),this.setupTooltip(u,d)},showColumnMenu:(u,d)=>r?.showMenuAfterButtonClick(i,u,"columnMenu",d),showColumnMenuAfterMouseClick:(u,d)=>r?.showMenuAfterMouseEvent(i,u,"columnMenu",d),eGridHeader:this.eGui}),l=$7(t,s);l&&this.comp.setUserCompDetails(l)}addHeaderMouseListeners(e,t){const{column:o,comp:r,beans:{rangeSvc:n},gos:i}=this,s=h=>this.handleMouseOverChange(h.type==="mouseenter"),l=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",o.getProvidedColumnGroup()),u=h=>this.handleContextMenuMouseEvent(h,void 0,o.getProvidedColumnGroup());e.addManagedListeners(this.eGui,{mouseenter:s,mouseleave:s,click:l,contextmenu:u}),r.toggleCss("ag-header-group-cell-selectable",da(i));const d=n?.createHeaderGroupCellMouseListenerFeature(this.column,t);d&&this.createManagedBean(d)}handleMouseOverChange(e){this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column.getProvidedColumnGroup()})}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderGroupTooltip(this.tooltipFeature,this,e,t)}setupExpandable(e){const t=this.column.getProvidedColumnGroup();this.refreshExpanded();const o=this.refreshExpanded.bind(this);e.addManagedListeners(t,{expandedChanged:o,expandableChanged:o})}refreshExpanded(){const{column:e}=this;this.expandable=e.isExpandable();const t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0),this.refreshHeaderStyles()}addClasses(){const{column:e}=this,t=e.getColGroupDef(),o=YF(t,this.gos,null,e);e.isPadding()?(o.push("ag-header-group-cell-no-group"),e.getLeafColumns().every(n=>n.isSpanHeaderHeight())&&o.push("ag-header-span-height")):(o.push("ag-header-group-cell-with-group"),t?.wrapHeaderText&&o.push("ag-header-cell-wrap-text"));for(const r of o)this.comp.toggleCss(r,!0)}setupMovingCss(e){const{column:t}=this,r=t.getProvidedColumnGroup().getLeafColumns(),n=()=>this.comp.toggleCss("ag-header-cell-moving",t.isMoving());for(const i of r)e.addManagedListeners(i,{movingChanged:n});n()}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription())}handleKeyDown(e){if(super.handleKeyDown(e),!this.getWrapperHasFocus())return;const{column:o,expandable:r,gos:n,beans:i}=this,s=da(n);if(e.key==te.ENTER){if(s&&!e.altKey)i.rangeSvc?.handleColumnSelection(o,e);else if(r){const l=!o.isExpanded();i.colGroupSvc.setColumnGroupOpened(o.getProvidedColumnGroup(),l,"uiColumnExpanded")}}}refreshAnnouncement(){let e;const{gos:t,column:o,beans:r}=this;if(da(t)){const i=this.getLocaleTextFunc(),s=r.rangeSvc?.isColumnInAnyRange(o);e=i("ariaColumnCellSelection",`Press CTRL+SPACE to ${s?"de":""}select all visible cells in this column group`)}this.ariaAnnouncement=e}announceAriaDescription(){const{beans:e,eGui:t,ariaAnnouncement:o}=this;!o||!t.contains(At(e))||e.ariaAnnounce?.announceValue(o,"columnHeader")}setDragSource(e){!this.isAlive()||this.isSuppressMoving()||(this.removeDragSource(),e&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null))}isSuppressMoving(){return this.gos.get("suppressMovableColumns")||this.column.getLeafColumns().some(e=>e.getColDef().suppressMovable||e.getColDef().lockPosition)}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function tq(e,t,o){e.colGroupSvc?.setColumnGroupOpened(t,o,"api")}function oq(e,t,o){return e.colGroupSvc?.getColumnGroup(t,o)??null}function rq(e,t){return e.colGroupSvc?.getProvidedColGroup(t)??null}function nq(e,t,o){return e.colNames.getDisplayNameForColumnGroup(t,o)||""}function iq(e){return e.colGroupSvc?.getColumnGroupState()??[]}function sq(e,t){e.colGroupSvc?.setColumnGroupState(t,"api")}function aq(e){e.colGroupSvc?.resetColumnGroupState("api")}function lq(e){return e.visibleCols.treeLeft}function cq(e){return e.visibleCols.treeCenter}function uq(e){return e.visibleCols.treeRight}function dq(e){return e.visibleCols.getAllTrees()}function hq(e,t){for(let o=0;o<t.length;o++){const r=e.indexOf(t[o]);r>=0&&(e[r]=e[e.length-1],e.pop())}}var fq=class extends ue{constructor(){super(...arguments),this.beanName="visibleCols",this.colsAndGroupsMap={},this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.headerGroupRowCount=0,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.isBodyWidthDirty=!0}refresh(e,t=!1){const{colFlex:o,colModel:r,colGroupSvc:n,colViewport:i,selectionColSvc:s}=this.beans;t||this.buildTrees(r,n),n?.updateOpenClosedVisibility(),this.leftCols=vv(this.treeLeft),this.centerCols=vv(this.treeCenter),this.rightCols=vv(this.treeRight),s?.refreshVisibility(this.leftCols,this.centerCols,this.rightCols),this.joinColsAriaOrder(r),this.joinCols(),this.headerGroupRowCount=this.getHeaderRowCount(),this.setLeftValues(e),this.autoHeightCols=this.allCols.filter(l=>l.isAutoHeight()),o?.refreshFlexedColumns(),this.updateBodyWidths(),this.setFirstRightAndLastLeftPinned(r,this.leftCols,this.rightCols,e),i.checkViewportColumns(!1),this.eventSvc.dispatchEvent({type:"displayedColumnsChanged",source:e})}getHeaderRowCount(){if(!this.gos.get("hidePaddedHeaderRows"))return this.beans.colModel.cols.treeDepth;let e=0;for(const t of this.allCols){let o=t.getParent();for(;o;){if(!o.isPadding()){const r=o.getProvidedColumnGroup().getLevel()+1;r>e&&(e=r);break}o=o.getParent()}}return e}updateBodyWidths(){const e=ga(this.centerCols),t=ga(this.leftCols),o=ga(this.rightCols);this.isBodyWidthDirty=this.bodyWidth!==e,(this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==o)&&(this.bodyWidth=e,this.leftWidth=t,this.rightWidth=o,this.eventSvc.dispatchEvent({type:"columnContainerWidthChanged"}),this.eventSvc.dispatchEvent({type:"displayedColumnsWidthChanged"}))}setLeftValues(e){this.setLeftValuesOfCols(e),this.setLeftValuesOfGroups()}setFirstRightAndLastLeftPinned(e,t,o,r){let n,i;this.gos.get("enableRtl")?(n=t?t[0]:null,i=o?st(o):null):(n=t?st(t):null,i=o?o[0]:null);for(const s of e.getCols())s.setLastLeftPinned(s===n,r),s.setFirstRightPinned(s===i,r)}buildTrees(e,t){const o=e.getColsToShow(),r=o.filter(u=>u.getPinned()=="left"),n=o.filter(u=>u.getPinned()=="right"),i=o.filter(u=>u.getPinned()!="left"&&u.getPinned()!="right"),s=new F7,l=u=>t?t.createColumnGroups(u):u.columns;this.treeLeft=l({columns:r,idCreator:s,pinned:"left",oldDisplayedGroups:this.treeLeft}),this.treeRight=l({columns:n,idCreator:s,pinned:"right",oldDisplayedGroups:this.treeRight}),this.treeCenter=l({columns:i,idCreator:s,pinned:null,oldDisplayedGroups:this.treeCenter}),this.updateColsAndGroupsMap()}clear(){this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.ariaOrderColumns=[]}joinColsAriaOrder(e){const t=e.getCols(),o=[],r=[],n=[];for(const i of t){const s=i.getPinned();s?s===!0||s==="left"?o.push(i):n.push(i):r.push(i)}this.ariaOrderColumns=o.concat(r).concat(n)}getAriaColIndex(e){let t;return Nt(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)Nt(t)&&t.checkLeft()}setLeftValuesOfCols(e){const{colModel:t}=this.beans;if(!t.getColDefCols())return;const r=t.getCols().slice(0),n=this.gos.get("enableRtl");for(const i of[this.leftCols,this.rightCols,this.centerCols]){if(n){let s=ga(i);for(const l of i)s-=l.getActualWidth(),l.setLeft(s,e)}else{let s=0;for(const l of i)l.setLeft(s,e),s+=l.getActualWidth()}hq(r,i)}for(const i of r)i.setLeft(null,e)}joinCols(){this.gos.get("enableRtl")?this.allCols=this.rightCols.concat(this.centerCols).concat(this.leftCols):this.allCols=this.leftCols.concat(this.centerCols).concat(this.rightCols)}getAllTrees(){return this.treeLeft&&this.treeRight&&this.treeCenter?this.treeLeft.concat(this.treeCenter).concat(this.treeRight):null}isColDisplayed(e){return this.allCols.indexOf(e)>=0}getLeftColsForRow(e){const{leftCols:t,beans:{colModel:o}}=this;return o.colSpanActive?this.getColsForRow(e,t):t}getRightColsForRow(e){const{rightCols:t,beans:{colModel:o}}=this;return o.colSpanActive?this.getColsForRow(e,t):t}getColsForRow(e,t,o,r){const n=[];let i=null;for(let s=0;s<t.length;s++){const l=t[s],u=t.length-s,d=Math.min(l.getColSpan(e),u),h=[l];if(d>1){const g=d-1;for(let v=1;v<=g;v++)h.push(t[s+v]);s+=g}let p;if(o){p=!1;for(const g of h)o(g)&&(p=!0)}else p=!0;p&&(n.length===0&&i&&r&&r(l)&&n.push(i),n.push(l)),i=l}return n}getContainerWidth(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}getColBefore(e){const t=this.allCols,o=t.indexOf(e);return o>0?t[o-1]:null}isPinningLeft(){return this.leftCols.length>0}isPinningRight(){return this.rightCols.length>0}updateColsAndGroupsMap(){this.colsAndGroupsMap={};const e=t=>{this.colsAndGroupsMap[t.getUniqueId()]=t};is(this.treeCenter,!1,e),is(this.treeLeft,!1,e),is(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 o=0;o<t.length;o++){const r=this[t[o]];if(r.length)return e?st(r):r[0]}return null}getColAfter(e){const t=this.allCols,o=t.indexOf(e);return o<t.length-1?t[o+1]:null}getColsLeftWidth(){return ga(this.leftCols)}getDisplayedColumnsRightWidth(){return ga(this.rightCols)}isColAtEdge(e,t){const o=this.allCols;if(!o.length)return!1;const r=t==="first";let n;if(Nt(e)){const i=e.getDisplayedLeafColumns();if(!i.length)return!1;n=r?i[0]:st(i)}else n=e;return(r?o[0]:st(o))===n}};function is(e,t,o){if(e)for(let r=0;r<e.length;r++){const n=e[r];if(Nt(n)){const i=t?n.getDisplayedChildren():n.getChildren();is(i,t,o)}o(n)}}function vv(e){const t=[];return is(e,!0,o=>{li(o)&&t.push(o)}),t}var pq=class extends ue{constructor(){super(...arguments),this.beanName="colGroupSvc"}getColumnGroupState(){const e=[],t=this.beans.colModel.getColTree();return Bn(null,t,o=>{io(o)&&e.push({groupId:o.getGroupId(),open:o.isExpanded()})}),e}resetColumnGroupState(e){const t=this.beans.colModel.getColDefColTree();if(!t)return;const o=[];Bn(null,t,r=>{if(io(r)){const n=r.getColGroupDef(),i={groupId:r.getGroupId(),open:n?n.openByDefault:void 0};o.push(i)}}),this.setColumnGroupState(o,e)}setColumnGroupState(e,t){const{colModel:o,colAnimation:r,visibleCols:n,eventSvc:i}=this.beans;if(!o.getColTree().length)return;r?.start();const l=[];for(const u of e){const d=u.groupId,h=u.open,p=this.getProvidedColGroup(d);p&&p.isExpanded()!==h&&(p.setExpanded(h),l.push(p))}n.refresh(t,!0),l.length&&i.dispatchEvent({type:"columnGroupOpened",columnGroup:l.length===1?l[0]:void 0,columnGroups:l}),r?.finish()}setColumnGroupOpened(e,t,o){let r;io(e)?r=e.getId():r=e||"",this.setColumnGroupState([{groupId:r,open:t}],o)}getProvidedColGroup(e){let t=null;return Bn(null,this.beans.colModel.getColTree(),o=>{io(o)&&o.getId()===e&&(t=o)}),t}getGroupAtDirection(e,t){const o=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),r=e.getDisplayedLeafColumns(),n=t==="After"?st(r):r[0],i=`getCol${t}`;for(;;){const s=this.beans.visibleCols[i](n);if(!s)return null;const l=this.getColGroupAtLevel(s,o);if(l!==e)return l}}getColGroupAtLevel(e,t){let o=e.getParent(),r,n;for(;r=o.getProvidedColumnGroup().getLevel(),n=o.getPaddingLevel(),!(r+n<=t);)o=o.getParent();return o}updateOpenClosedVisibility(){const e=this.beans.visibleCols.getAllTrees();is(e,!1,t=>{Nt(t)&&t.calculateDisplayedColumns()})}getColumnGroup(e,t){if(!e)return null;if(Nt(e))return e;const o=this.beans.visibleCols.getAllTrees(),r=typeof t=="number";let n=null;return is(o,!1,i=>{if(Nt(i)){const s=i;let l;r?l=e===s.getGroupId()&&t===s.getPartId():l=e===s.getGroupId(),l&&(n=s)}}),n}createColumnGroups(e){const{columns:t,idCreator:o,pinned:r,oldDisplayedGroups:n,isStandaloneStructure:i}=e,s=this.mapOldGroupsById(n),l=[];let u=t;for(;u.length;){const d=u;u=[];let h=0;const p=g=>{const v=h;h=g;const b=d[v],S=(Nt(b)?b.getProvidedColumnGroup():b).getOriginalParent();if(S==null){for(let F=v;F<g;F++)l.push(d[F]);return}const k=this.createColumnGroup(S,o,s,r,i);for(let F=v;F<g;F++)k.addChild(d[F]);u.push(k)};for(let g=1;g<d.length;g++){const v=d[g],C=(Nt(v)?v.getProvidedColumnGroup():v).getOriginalParent(),S=d[h],F=(Nt(S)?S.getProvidedColumnGroup():S).getOriginalParent();C!==F&&p(g)}h<d.length&&p(d.length)}return i||this.setupParentsIntoCols(l,null),l}createProvidedColumnGroup(e,t,o,r,n,i,s){const l=n.getUniqueKey(t.groupId||null,null),u=Tk(this.beans,t,l),d=new eh(u,l,!1,o);this.createBean(d);const h=this.findExistingGroup(t,i);h&&i.splice(h.idx,1);const p=h?.group;p&&d.setExpanded(p.isExpanded());const g=Ak(this.beans,u.children,o+1,e,r,n,i,s);return d.setChildren(g),d}balanceColumnTree(e,t,o,r){const n=[];for(let i=0;i<e.length;i++){const s=e[i];if(io(s)){const l=s,u=this.balanceColumnTree(l.getChildren(),t+1,o,r);l.setChildren(u),n.push(l)}else{let l,u;for(let d=t;d<o;d++){const h=r.getUniqueKey(null,null),p=Tk(this.beans,null,h),g=new eh(p,h,!0,d);this.createBean(g),u&&u.setChildren([g]),u=g,l||(l=u)}if(l&&u)if(n.push(l),e.some(h=>io(h))){u.setChildren([s]);continue}else{u.setChildren(e);break}n.push(s)}}return n}findDepth(e){let t=0,o=e;for(;o?.[0]&&io(o[0]);)t++,o=o[0].getChildren();return t}findMaxDepth(e,t){let o=t;for(let r=0;r<e.length;r++){const n=e[r];if(io(n)){const i=n,s=this.findMaxDepth(i.getChildren(),t+1);o<s&&(o=s)}}return o}balanceTreeForAutoCols(e,t){const o=[];for(const r of e){let n=r;for(let i=t-1;i>=0;i--){const s=new eh(null,`FAKE_PATH_${r.getId()}}_${i}`,!0,i);this.createBean(s),s.setChildren([n]),n.originalParent=s,n=s}t===0&&(r.originalParent=null),o.push(n)}return o}findExistingGroup(e,t){if(e.groupId!=null)for(let r=0;r<t.length;r++){const n=t[r];if(n.getColGroupDef()&&n.getId()===e.groupId)return{idx:r,group:n}}}createColumnGroup(e,t,o,r,n){const i=e.getGroupId(),s=t.getInstanceIdForKey(i),l=PF(i,s);let u=o[l];return u&&u.getProvidedColumnGroup()!==e&&(u=null),xe(u)?u.reset():(u=new dc(e,i,s,r),n||this.createBean(u)),u}mapOldGroupsById(e){const t={},o=r=>{for(const n of r)if(Nt(n)){const i=n;t[n.getUniqueId()]=i,o(i.getChildren())}};return e&&o(e),t}setupParentsIntoCols(e,t){for(const o of e??[])if(o.parent!==t&&(this.beans.colViewport.colsWithinViewportHash=""),o.parent=t,Nt(o)){const r=o;this.setupParentsIntoCols(r.getChildren(),r)}}},gq={moduleName:"ColumnGroup",version:ze,dynamicBeans:{headerGroupCellCtrl:eq},beans:[pq],apiFunctions:{getAllDisplayedColumnGroups:dq,getCenterDisplayedColumnGroups:cq,getColumnGroup:oq,getColumnGroupState:iq,getDisplayNameForColumnGroup:nq,getLeftDisplayedColumnGroups:lq,getProvidedColumnGroup:rq,getRightDisplayedColumnGroups:uq,resetColumnGroupState:aq,setColumnGroupOpened:tq,setColumnGroupState:sq}},mq={tag:"div",cls:"ag-skeleton-container"},vq=class extends ko{constructor(){super(mq)}init(t){const o=`ag-cell-skeleton-renderer-${this.getCompId()}`;this.getGui().setAttribute("id",o),this.addDestroyFunc(()=>Zl(t.eParentOfValue)),Zl(t.eParentOfValue,o),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 o=t("ariaSkeletonCellLoadingFailed","Row failed to load");na(this.getGui(),o)}setupLoading(t){const o=pi({tag:"div",cls:"ag-skeleton-effect"}),r=t.node.rowIndex;if(r!=null){const s=75+25*(r%2===0?Math.sin(r):Math.cos(r));o.style.width=`${s}%`}this.getGui().appendChild(o);const n=this.getLocaleTextFunc(),i=t.deferRender?n("ariaDeferSkeletonCellLoading","Cell is loading"):n("ariaSkeletonCellLoading","Row data is loading");na(this.getGui(),i)}refresh(t){return!1}},bq={moduleName:"CheckboxCellRenderer",version:ze,userComponents:{agCheckboxCellRenderer:Jj}},Cq={moduleName:"SkeletonCellRenderer",version:ze,userComponents:{agSkeletonCellRenderer:vq}},wq=class extends ue{constructor(){super(...arguments),this.beanName="colFlex",this.columnsHidden=!1}refreshFlexedColumns(e={}){const t=e.source??"flex";e.viewportWidth!=null&&(this.flexViewportWidth=e.viewportWidth);const o=this.flexViewportWidth,{visibleCols:r,colDelayRenderSvc:n}=this.beans,i=r.centerCols;let s=-1;if(e.resizingCols){const C=new Set(e.resizingCols);for(let S=i.length-1;S>=0;S--)if(C.has(i[S])){s=S;break}}let l=!1;const u=i.map((C,S)=>{const k=C.getFlex(),F=k!=null&&k>0&&S>s;return l||(l=F),{col:C,isFlex:F,flex:Math.max(0,k??0),initialSize:C.getActualWidth(),min:C.getMinWidth(),max:C.getMaxWidth(),targetSize:0}});if(l?(n?.hideColumns("colFlex"),this.columnsHidden=!0):this.columnsHidden&&this.revealColumns(n),!o||!l)return[];let d=u.length,h=u.reduce((C,S)=>C+S.flex,0),p=o;const g=(C,S)=>{C.frozenSize=S,C.col.setActualWidth(S,t),p-=S,h-=C.flex,d-=1},v=C=>C.frozenSize!=null;for(const C of u)C.isFlex||g(C,C.initialSize);for(;d>0;){const C=Math.round(h<1?p*h:p);let S,k=0,F=0;for(const T of u){if(v(T))continue;S=T,F+=C*(T.flex/h);const D=F-k,M=Math.round(D);T.targetSize=M,k+=M}S&&(S.targetSize+=C-k);let R=0;for(const T of u){if(v(T))continue;const D=T.targetSize,M=Math.min(Math.max(D,T.min),T.max);R+=M-D,T.violationType=M===D?void 0:M<D?"max":"min",T.targetSize=M}const P=R===0?"all":R>0?"min":"max";for(const T of u)v(T)||(P==="all"||T.violationType===P)&&g(T,T.targetSize)}e.skipSetLeft||r.setLeftValues(t),e.updateBodyWidths&&r.updateBodyWidths();const b=u.filter(C=>C.isFlex&&!C.violationType).map(C=>C.col);if(e.fireResizedEvent){const C=u.filter(k=>k.initialSize!==k.frozenSize).map(k=>k.col),S=u.filter(k=>k.flex).map(k=>k.col);nh(this.eventSvc,C,!0,t,S)}return this.revealColumns(n),b}revealColumns(e){this.columnsHidden&&(e?.revealColumns("colFlex"),this.columnsHidden=!1)}initCol(e){const{flex:t,initialFlex:o}=e.colDef;t!==void 0?e.flex=t:o!==void 0&&(e.flex=o)}setColFlex(e,t){e.flex=t??null,e.dispatchStateUpdatedEvent("flex")}};function vc(e,t,o){if(!t||!e)return;if(!o)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++){if(n==null)return;n=n[r[i]]}return n}var yq=["dateTimeString","dateString","text","number","boolean","date"],Sq=class extends ue{constructor(){super(...arguments),this.beanName="dataTypeSvc",this.dataTypeDefinitions={},this.isPendingInference=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[],this.columnDefinitionPropsPerDataType={number(){return{cellEditor:"agNumberCellEditor"}},boolean(){return{cellEditor:"agCheckboxCellEditor",cellRenderer:"agCheckboxCellRenderer",getFindText:()=>null,suppressKeyboardEvent:e=>!!e.colDef.editable&&e.event.key===te.SPACE}},date({formatValue:e}){return{cellEditor:"agDateCellEditor",keyCreator:e}},dateString({formatValue:e}){return{cellEditor:"agDateStringCellEditor",keyCreator:e}},dateTime(e){return this.date(e)},dateTimeString(e){return this.dateString(e)},object({formatValue:e,colModel:t,colId:o}){return{cellEditorParams:{useFormatter:!0},comparator:(r,n)=>{const i=t.getColDefCol(o),s=i?.getColDef();if(!i||!s)return 0;const l=r==null?"":e({column:i,node:null,value:r}),u=n==null?"":e({column:i,node:null,value:n});return l===u?0:l>u?1:-1},keyCreator:e}},text(){return{}}}}wireBeans(e){this.colModel=e.colModel}postConstruct(){this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",e=>{this.processDataTypeDefinitions(),this.colModel.recreateColumnDefs(e)})}processDataTypeDefinitions(){const e=this.getDefaultDataTypes(),t={},o={},r=h=>p=>{const{column:g,node:v,value:b}=p;let C=g.getColDef().valueFormatter;return C===h.groupSafeValueFormatter&&(C=h.valueFormatter),this.beans.valueSvc.formatValue(g,v,b,C)};for(const h of Object.keys(e)){const p=e[h],g={...p,groupSafeValueFormatter:SR(p,this.gos)};t[h]=g,o[h]=r(g)}const n=this.gos.get("dataTypeDefinitions")??{},i={};for(const h of Object.keys(n)){const p=n[h],g=this.processDataTypeDefinition(p,n,[h],e);g&&(t[h]=g,p.dataTypeMatcher&&(i[h]=p.dataTypeMatcher),o[h]=r(g))}const{valueParser:s,valueFormatter:l}=e.object,{valueParser:u,valueFormatter:d}=t.object;this.hasObjectValueParser=u!==s,this.hasObjectValueFormatter=d!==l,this.formatValueFuncs=o,this.dataTypeDefinitions=t,this.dataTypeMatchers=this.sortKeysInMatchers(i,e)}sortKeysInMatchers(e,t){const o={...e};for(const r of yq)delete o[r],o[r]=e[r]??t[r].dataTypeMatcher;return o}processDataTypeDefinition(e,t,o,r){let n;const i=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){let s=r[i];const l=t[i];if(s&&l&&(s=l),!yR(e,s,i))return;n=wR(s,e)}else{if(o.includes(i)){pe(44);return}const s=t[i];if(!yR(e,s,i))return;const l=this.processDataTypeDefinition(s,t,[...o,i],r);if(!l)return;n=wR(l,e)}return{...n,groupSafeValueFormatter:SR(n,this.gos)}}updateColDefAndGetColumnType(e,t,o){let{cellDataType:r}=t;const{field:n}=t;if(r===void 0&&(r=e.cellDataType),(r==null||r===!0)&&(r=this.canInferCellDataType(e,t)?this.inferCellDataType(n,o):!1),!r){e.cellDataType=!1;return}const i=this.dataTypeDefinitions[r];if(!i){pe(47,{cellDataType:r});return}return e.cellDataType=r,i.groupSafeValueFormatter&&(e.valueFormatter=i.groupSafeValueFormatter),i.valueParser&&(e.valueParser=i.valueParser),i.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,r,i,o),i.columnTypes}addColumnListeners(e){if(!this.isPendingInference)return;const t=this.columnStateUpdatesPendingInference[e.getColId()];if(!t)return;const o=r=>{t.add(r.key)};e.__addEventListener("columnStateUpdated",o),this.columnStateUpdateListenerDestroyFuncs.push(()=>e.__removeEventListener("columnStateUpdated",o))}canInferCellDataType(e,t){const{gos:o}=this;if(!Qi(o))return!1;const r={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(bv(t,r))return!1;const n=t.type===null?e.type:t.type;if(n){const i=o.get("columnTypes")??{};if(oh(n).some(l=>{const u=i[l.trim()];return u&&bv(u,r)}))return!1}return!bv(e,r)}inferCellDataType(e,t){if(!e)return;let o;const r=this.getInitialData();if(r){const i=e.includes(".")&&!this.gos.get("suppressFieldDotNotation");o=vc(r,e,i)}else this.initWaitForRowData(t);return o==null?void 0:Object.keys(this.dataTypeMatchers).find(i=>this.dataTypeMatchers[i](o))??"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:o,eventSvc:r}=this.beans;t&&o&&(o.shouldQueueResizeOperations=!0);const[n]=this.addManagedEventListeners({rowDataUpdateStarted:i=>{const{firstRowData:s}=i;s&&(n?.(),this.isPendingInference=!1,this.processColumnsPendingInference(s,t),this.columnStateUpdatesPendingInference={},t&&o?.processResizeOperations(),r.dispatchEvent({type:"dataTypesInferred"}))}})}processColumnsPendingInference(e,t){this.initialData=e;const o=[];this.destroyColumnStateUpdateListeners();const r={},n={};for(const i of Object.keys(this.columnStateUpdatesPendingInference)){const s=this.columnStateUpdatesPendingInference[i],l=this.colModel.getCol(i);if(!l)return;const u=l.getColDef();if(!this.resetColDefIntoCol(l,"cellDataTypeInferred"))return;const d=l.getColDef();if(t&&d.type&&d.type!==u.type){const h=kq(l,s);h.rowGroup&&h.rowGroupIndex==null&&(r[i]=h),h.pivot&&h.pivotIndex==null&&(n[i]=h),o.push(h)}}t&&o.push(...this.generateColumnStateForRowGroupAndPivotIndexes(r,n)),o.length&&Nk(this.beans,{state:o},"cellDataTypeInferred"),this.initialData=null}generateColumnStateForRowGroupAndPivotIndexes(e,t){const o={},{rowGroupColsSvc:r,pivotColsSvc:n}=this.beans;return r?.restoreColumnOrder(o,e),n?.restoreColumnOrder(o,t),Object.values(o)}resetColDefIntoCol(e,t){const o=e.getUserProvidedColDef();if(!o)return!1;const r=xm(this.beans,o,e.getColId());return e.setColDef(r,o,t),!0}getDateStringTypeDefinition(e){const{dateString:t}=this.dataTypeDefinitions;return e?this.getDataTypeDefinition(e)??t:t}getDateParserFunction(e){return this.getDateStringTypeDefinition(e).dateParser}getDateFormatterFunction(e){return this.getDateStringTypeDefinition(e).dateFormatter}getDateIncludesTimeFlag(e){return 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 o=this.getDataTypeDefinition(e)?.dataTypeMatcher;return!o||e.getColDef().allowFormula&&this.beans.formula?.isFormula(t)?!0:o(t)}validateColDef(e){const t=o=>pe(48,{property:o});if(e.cellDataType==="object"){const{object:o}=this.dataTypeDefinitions;e.valueFormatter===o.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&t("Formatter"),e.editable&&e.valueParser===o.valueParser&&!this.hasObjectValueParser&&t("Parser")}}postProcess(e){const t=e.cellDataType;if(!t||typeof t!="string")return;const{dataTypeDefinitions:o,beans:r,formatValueFuncs:n}=this,i=o[t];i&&r.colFilter?.setColDefPropsForDataType(e,i,n[t])}getFormatValue(e){return this.formatValueFuncs[e]}isColPendingInference(e){return this.isPendingInference&&!!this.columnStateUpdatesPendingInference[e]}setColDefPropertiesForBaseDataType(e,t,o,r){const n=this.formatValueFuncs[t],i=this.columnDefinitionPropsPerDataType[o.baseDataType]({colDef:e,cellDataType:t,colModel:this.colModel,dataTypeDefinition:o,colId:r,formatValue:n});Object.assign(e,i)}getDateObjectTypeDef(e){const t=this.getLocaleTextFunc(),o=this.getDateIncludesTimeFlag(e);return{baseDataType:e,valueParser:r=>zm(r.newValue&&String(r.newValue)),valueFormatter:r=>r.value==null?"":!(r.value instanceof Date)||isNaN(r.value.getTime())?t("invalidDate","Invalid Date"):nF(r.value,o)??"",dataTypeMatcher:r=>r instanceof Date}}getDateStringTypeDef(e){const t=this.getDateIncludesTimeFlag(e);return{baseDataType:e,dateParser:o=>zm(o)??void 0,dateFormatter:o=>nF(o??null,t)??void 0,valueParser:o=>lh(String(o.newValue))?o.newValue:null,valueFormatter:o=>lh(String(o.value))?String(o.value):"",dataTypeMatcher:o=>typeof o=="string"&&lh(o)}}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"},text:{baseDataType:"text",valueParser:t=>t.newValue===""?null:Qg(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"&&w9(t)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:t=>Qg(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 wR(e,t){const o={...e,...t};return e.columnTypes&&t.columnTypes&&t.appendColumnTypes&&(o.columnTypes=[...oh(e.columnTypes),...oh(t.columnTypes)]),o}function yR(e,t,o){return t?t.baseDataType!==e.baseDataType?(pe(46),!1):!0:(pe(45,{parentCellDataType:o}),!1)}function SR(e,t){if(e.valueFormatter)return o=>{if(o.node?.group){const r=(o.colDef.pivotValueColumn??o.column).getAggFunc();if(r){if(r==="first"||r==="last")return e.valueFormatter(o);if(e.baseDataType==="number"&&r!=="count"){if(typeof o.value=="number")return e.valueFormatter(o);if(typeof o.value=="object"){if(!o.value)return;if("toNumber"in o.value)return e.valueFormatter({...o,value:o.value.toNumber()});if("value"in o.value)return e.valueFormatter({...o,value:o.value.value})}}return}}else if(t.get("groupHideOpenParents")&&o.column.isRowGroupActive()&&typeof o.value=="string"&&!e.dataTypeMatcher?.(o.value))return;return e.valueFormatter(o)}}function xq(e,t,o,r){if(!t[o])return!1;const n=e[o];return n===null?(t[o]=!1,!1):r===void 0?!!n:n===r}function bv(e,t){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(([o,r])=>xq(e,t,o,r))}function kq(e,t){const o=w7(e);for(const r of t)delete o[r],r==="rowGroup"?delete o.rowGroupIndex:r==="pivot"&&delete o.pivotIndex;return o}var Fq={moduleName:"DataType",version:ze,beans:[Sq],dependsOn:[bq]},Rq={moduleName:"ColumnFlex",version:ze,beans:[wq]};function Pq(e){if(!e||e==null)return null;const t=/([a-z])([A-Z])/g,o=/([A-Z]+)([A-Z])([a-z])/g;return e.replace(t,"$1 $2").replace(o,"$1 $2$3").replace(/\./g," ").split(" ").map(n=>n.substring(0,1).toUpperCase()+(n.length>1?n.substring(1,n.length):"")).join(" ")}var Eq=class extends ue{constructor(){super(...arguments),this.beanName="colNames"}getDisplayNameForColumn(e,t,o=!1){if(!e)return null;const r=this.getHeaderName(e.getColDef(),e,null,null,t),{aggColNameSvc:n}=this.beans;return o&&n?n.getHeaderName(e,r):r}getDisplayNameForProvidedColumnGroup(e,t,o){const r=t?.getColGroupDef();return r?this.getHeaderName(r,null,e,t,o):null}getDisplayNameForColumnGroup(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)}getHeaderName(e,t,o,r,n){const i=e.headerValueGetter;if(i){const s=je(this.gos,{colDef:e,column:t,columnGroup:o,providedColumnGroup:r,location:n});return typeof i=="function"?i(s):typeof i=="string"?this.beans.expressionSvc?.evaluate(i,s)??null:""}else{if(e.headerName!=null)return e.headerName;if(e.field)return Pq(e.field)}return""}},Tq=class extends ue{constructor(){super(...arguments),this.beanName="colViewport",this.colsWithinViewport=[],this.headerColsWithinViewport=[],this.colsWithinViewportHash="",this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},this.columnsToRenderLeft=[],this.columnsToRenderRight=[],this.columnsToRenderCenter=[]}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel}postConstruct(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation")}setScrollPosition(e,t,o=!1){const{visibleCols:r}=this,n=r.isBodyWidthDirty;if(!(e===this.scrollWidth&&t===this.scrollPosition&&!n)){if(this.scrollWidth=e,this.scrollPosition=t,r.isBodyWidthDirty=!0,this.gos.get("enableRtl")){const s=r.bodyWidth;this.viewportLeft=s-t-e,this.viewportRight=s-t}else this.viewportLeft=t,this.viewportRight=e+t;this.colModel.ready&&this.checkViewportColumns(o)}}getColumnHeadersToRender(e){switch(e){case"left":return this.columnsToRenderLeft;case"right":return this.columnsToRenderRight;default:return this.columnsToRenderCenter}}getHeadersToRender(e,t){let o;switch(e){case"left":o=this.rowsOfHeadersToRenderLeft[t];break;case"right":o=this.rowsOfHeadersToRenderRight[t];break;default:o=this.rowsOfHeadersToRenderCenter[t];break}return o??[]}extractViewportColumns(){const e=this.visibleCols.centerCols;this.isColumnVirtualisationSuppressed()?(this.colsWithinViewport=e,this.headerColsWithinViewport=e):(this.colsWithinViewport=e.filter(this.isColumnInRowViewport.bind(this)),this.headerColsWithinViewport=e.filter(this.isColumnInHeaderViewport.bind(this)))}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||this.viewportRight===0}clear(){this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},this.colsWithinViewportHash=""}isColumnInHeaderViewport(e){return e.isAutoHeaderHeight()||Dq(e)?!0:this.isColumnInRowViewport(e)}isColumnInRowViewport(e){if(e.isAutoHeight())return!0;const t=e.getLeft()||0,o=t+e.getActualWidth(),r=this.viewportLeft-200,n=this.viewportRight+200,i=t<r&&o<r,s=t>n&&o>n;return!i&&!s}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=i=>{const s=i.getLeft();return xe(s)&&s>this.viewportLeft},o=this.isColumnVirtualisationSuppressed()?void 0:this.isColumnInRowViewport.bind(this),{visibleCols:r}=this,n=r.centerCols;return r.getColsForRow(e,n,o,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 o=r=>{const n=new Set,i={};for(const s of r){let l=s.getParent();const u=s.isSpanHeaderHeight();for(;l&&!n.has(l);){if(u&&l.isPadding()){l=l.getParent();continue}const h=l.getProvidedColumnGroup().getLevel();i[h]??(i[h]=[]),i[h].push(l),n.add(l),l=l.getParent()}}return i};this.rowsOfHeadersToRenderLeft=o(e),this.rowsOfHeadersToRenderRight=o(t),this.rowsOfHeadersToRenderCenter=o(this.headerColsWithinViewport)}extractViewport(){const e=r=>`${r.getId()}-${r.getPinned()||"normal"}`;this.extractViewportColumns();const t=this.getViewportColumns().map(e).join("#"),o=this.colsWithinViewportHash!==t;return o&&(this.colsWithinViewportHash=t,this.calculateHeaderRows()),o}};function Dq(e){for(;e;){if(e.isAutoHeaderHeight())return!0;e=e.getParent()}return!1}var Mq=class extends ue{constructor(){super(...arguments),this.beanName="agCompUtils"}adaptFunction(e,t){if(!e.cellRenderer)return null;class o{refresh(){return!1}getGui(){return this.eGui}init(n){const i=t(n),s=typeof i;if(s==="string"||s==="number"||s==="boolean"){this.eGui=nm("<span>"+i+"</span>");return}if(i==null){this.eGui=pi({tag:"span"});return}this.eGui=i}}return o}},Aq={moduleName:"CellRendererFunction",version:ze,beans:[Mq]},_q=class extends hG{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:o,dynamicBeans:r,selectors:n}=e;if(o){const i=(s,l,u,d)=>{this.agGridDefaults[s]=l,(u||d)&&(this.agGridDefaultOverrides[s]={params:u,processParams:d})};for(const s of Object.keys(o)){let l=o[s];if(o9(l)&&(l=l.getComp(this.beans)),typeof l=="object"){const{classImp:u,params:d,processParams:h}=l;i(s,u,d,h)}else i(s,l)}}this.registerDynamicBeans(r);for(const i of n??[])this.selectors[i.selector]=i;if(t)for(const i of Object.keys(t))this.icons[i]=t[i]}getUserComponent(e,t){const o=(l,u,d,h)=>({componentFromFramework:u,component:l,params:d,processParams:h}),{frameworkOverrides:r}=this.beans,n=r.frameworkComponent(t,this.gos.get("components"));if(n!=null)return o(n,!0);const i=this.jsComps[t];if(i){const l=r.isFrameworkComponent(i);return o(i,l)}const s=this.agGridDefaults[t];if(s){const l=this.agGridDefaultOverrides[t];return o(s,!1,l?.params,l?.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?Qr(279,{name:e}):this.beans.validation?.missingDynamicBean(e)??Qr(256)}},Iq=23,Bq=class extends ue{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===Iq&&e.every(t=>t?.isAlive()??!1)}whenReady(e,t){this.ready?t(this.params):this.readyCallbacks.push(t),e.addDestroyFunc(()=>{const o=this.readyCallbacks.indexOf(t);o>=0&&this.readyCallbacks.splice(o,1)})}register(e,t){this.params[e]=t,this.updateReady(),this.ready&&this.dispatchLocalEvent({type:"ready"}),t.addDestroyFunc(()=>{this.updateReady()})}get(e){return this.params[e]}getGridBodyCtrl(){return this.params.gridBodyCtrl}getHeaderRowContainerCtrls(){const{leftHeader:e,centerHeader:t,rightHeader:o}=this.params;return[e,o,t]}getHeaderRowContainerCtrl(e){const t=this.params;switch(e){case"left":return t.leftHeader;case"right":return t.rightHeader;default:return t.centerHeader}}getScrollFeature(){return this.getGridBodyCtrl().scrollFeature}},Oq='.ag-aria-description-container{border:0;z-index:9999;clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ag-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-selectable{-webkit-user-select:text;-moz-user-select:text;user-select:text}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{flex:1 1 auto;height:100%;min-width:0;overflow:hidden;position:relative}.ag-viewport{position:relative}.ag-spanning-container{position:absolute;top:0;z-index:1}.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{overflow-x:auto;-ms-overflow-style:none!important;scrollbar-width:none!important;&::-webkit-scrollbar{display:none!important}}.ag-body-viewport{display:flex;overflow-x:hidden;&:where(.ag-layout-normal){overflow-y:auto;-webkit-overflow-scrolling:touch}}.ag-floating-bottom-container,.ag-floating-top-container,.ag-sticky-bottom-container,.ag-sticky-top-container{min-height:1px}.ag-center-cols-viewport{min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-body-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-center-cols-container,.ag-floating-bottom-container,.ag-floating-bottom-full-width-container,.ag-floating-top-container,.ag-full-width-container,.ag-header-container,.ag-pinned-left-cols-container,.ag-pinned-right-cols-container,.ag-sticky-bottom-container,.ag-sticky-top-container{position:relative}.ag-floating-bottom-container,.ag-floating-top-container,.ag-header-container,.ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top,.ag-sticky-bottom-container,.ag-sticky-top-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container,.ag-full-width-container,.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{pointer-events:none;position:absolute;top:0}:where(.ag-ltr) .ag-floating-bottom-full-width-container,:where(.ag-ltr) .ag-floating-top-full-width-container,:where(.ag-ltr) .ag-full-width-container,:where(.ag-ltr) .ag-sticky-bottom-full-width-container,:where(.ag-ltr) .ag-sticky-top-full-width-container{left:0}:where(.ag-rtl) .ag-floating-bottom-full-width-container,:where(.ag-rtl) .ag-floating-top-full-width-container,:where(.ag-rtl) .ag-full-width-container,:where(.ag-rtl) .ag-sticky-bottom-full-width-container,:where(.ag-rtl) .ag-sticky-top-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;height:100%;overflow:hidden;width:100%}.ag-body{display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0;position:relative}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:flex;min-height:0;min-width:0;position:relative;&:where(.ag-scrollbar-invisible){bottom:0;position:absolute;&:where(.ag-apple-scrollbar){opacity:0;transition:opacity .4s;visibility:hidden;&:where(.ag-scrollbar-scrolling,.ag-scrollbar-active){opacity:1;visibility:visible}}}}.ag-body-horizontal-scroll{width:100%;&:where(.ag-scrollbar-invisible){left:0;right:0}}.ag-body-vertical-scroll{height:100%;&:where(.ag-scrollbar-invisible){top:0;z-index:10}}:where(.ag-ltr) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){right:0}}:where(.ag-rtl) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){left:0}}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll;&:where(.ag-scroller-corner){overflow-x:hidden}}:where(.ag-row-animation) .ag-row{transition:transform .4s,top .4s,opacity .2s;&:where(.ag-after-created){transition:transform .4s,top .4s,height .4s,opacity .2s}}:where(.ag-row-animation.ag-prevent-animation) .ag-row{transition:none!important;&:where(.ag-row.ag-after-created){transition:none!important}}:where(.ag-row-no-animation) .ag-row{transition:none}.ag-row-loading{align-items:center;display:flex}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{align-items:center;display:flex}.ag-cell{display:inline-block;height:100%;position:absolute;white-space:nowrap;&:focus-visible{box-shadow:none}}.ag-cell-value{flex:1 1 auto}.ag-cell-value:not(.ag-allow-overflow),.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-word}:where(.ag-cell) .ag-icon{display:inline-block;vertical-align:middle}.ag-floating-top{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-top:not(.ag-invisible)){border-bottom:var(--ag-pinned-row-border)}.ag-floating-bottom{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-bottom:not(.ag-invisible)){border-top:var(--ag-pinned-row-border)}.ag-sticky-bottom,.ag-sticky-top{background-color:var(--ag-data-background-color);display:flex;height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.ag-opacity-zero{opacity:0!important}.ag-cell-label-container{align-items:center;display:flex;flex-direction:row-reverse;height:100%;justify-content:space-between;width:100%}:where(.ag-right-aligned-header){.ag-cell-label-container{flex-direction:row}.ag-header-cell-text{text-align:end}}.ag-column-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr){direction:ltr;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row}}:where(.ag-rtl){direction:rtl;text-align:right;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row-reverse}.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{display:block}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(180deg)}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(-180deg)}}:where(.ag-ltr) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}:where(.ag-rtl) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}:where(.ag-ltr) .ag-row-group-leaf-indent{margin-left:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}:where(.ag-rtl) .ag-row-group-leaf-indent{margin-right:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-value-change-delta{padding:0 2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row,.ag-spanned-row{color:var(--ag-cell-text-color);font-family:var(--ag-cell-font-family);font-size:var(--ag-data-font-size);white-space:nowrap;--ag-internal-content-line-height:calc(min(var(--ag-row-height), var(--ag-line-height, 1000px)) - var(--ag-internal-row-border-width, 1px) - 2px)}.ag-row{background-color:var(--ag-data-background-color);border-bottom:var(--ag-row-border);height:var(--ag-row-height);width:100%;&.ag-row-editing-invalid{background-color:var(--ag-full-row-edit-invalid-background-color)}}:where(.ag-body-vertical-content-no-gap>div>div>div,.ag-body-vertical-content-no-gap>div>div>div>div)>.ag-row-last{border-bottom-color:transparent}.ag-sticky-bottom{border-top:var(--ag-row-border);box-sizing:content-box!important}.ag-group-contracted,.ag-group-expanded{cursor:pointer}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{border:1px solid transparent;line-height:var(--ag-internal-content-line-height);-webkit-font-smoothing:subpixel-antialiased}:where(.ag-ltr) .ag-cell{border-right:var(--ag-column-border)}:where(.ag-rtl) .ag-cell{border-left:var(--ag-column-border)}.ag-spanned-cell-wrapper{background-color:var(--ag-data-background-color);position:absolute}.ag-spanned-cell-wrapper>.ag-spanned-cell{display:block;position:relative}:where(.ag-ltr) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-right-color:transparent}:where(.ag-rtl) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-left-color:transparent}.ag-cell-wrapper{align-items:center;display:flex;>:where(:not(.ag-cell-value,.ag-group-value)){align-items:center;display:flex;height:var(--ag-internal-content-line-height)}&:where(.ag-row-group){align-items:flex-start}:where(.ag-full-width-row) &:where(.ag-row-group){align-items:center;height:100%}}:where(.ag-ltr) .ag-cell-wrapper{padding-left:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-rtl) .ag-cell-wrapper{padding-right:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-cell-wrap-text:not(.ag-cell-auto-height)) .ag-cell-wrapper{align-items:normal;height:100%;:where(.ag-cell-value){height:100%}}:where(.ag-ltr) .ag-row>.ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-row>.ag-cell-wrapper.ag-row-group{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-cell-range-single-cell,.ag-cell-range-single-cell.ag-cell-range-handle,.ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-context-menu-open .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,.ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}.ag-full-width-row.ag-row-focus:focus{box-shadow:none}:where(.ag-ltr) .ag-group-contracted,:where(.ag-ltr) .ag-group-expanded,:where(.ag-ltr) .ag-row-drag,:where(.ag-ltr) .ag-selection-checkbox{margin-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-group-contracted,:where(.ag-rtl) .ag-group-expanded,:where(.ag-rtl) .ag-row-drag,:where(.ag-rtl) .ag-selection-checkbox{margin-left:var(--ag-cell-widget-spacing)}.ag-drag-handle-disabled{opacity:.35;pointer-events:none}:where(.ag-ltr) .ag-group-child-count{margin-left:3px}:where(.ag-rtl) .ag-group-child-count{margin-right:3px}.ag-row-highlight-above:after,.ag-row-highlight-below:after,.ag-row-highlight-inside:after{background-color:var(--ag-row-drag-indicator-color);border-radius:calc(var(--ag-row-drag-indicator-width)/2);content:"";height:var(--ag-row-drag-indicator-width);pointer-events:none;position:absolute;width:calc(100% - 1px)}:where(.ag-ltr) .ag-row-highlight-above:after,:where(.ag-ltr) .ag-row-highlight-below:after,:where(.ag-ltr) .ag-row-highlight-inside:after{left:1px}:where(.ag-rtl) .ag-row-highlight-above:after,:where(.ag-rtl) .ag-row-highlight-below:after,:where(.ag-rtl) .ag-row-highlight-inside:after{right:1px}.ag-row-highlight-above:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-highlight-indent:after{display:block;width:auto}:where(.ag-ltr) .ag-row-highlight-indent:after{left:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size));right:1px}:where(.ag-rtl) .ag-row-highlight-indent:after{left:1px;right:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size))}.ag-row-highlight-inside:after{background-color:var(--ag-selected-row-background-color);border:1px solid var(--ag-range-selection-border-color);display:block;height:auto;inset:0;width:auto}.ag-body,.ag-floating-bottom,.ag-floating-top{background-color:var(--ag-data-background-color)}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-selected:before{background-color:var(--ag-selected-row-background-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-full-width-row.ag-row-group:before,.ag-row-hover:not(.ag-full-width-row):before{background-color:var(--ag-row-hover-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-row.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-header-range-highlight{background-color:var(--ag-range-header-highlight-color)}.ag-right-aligned-cell{font-variant-numeric:tabular-nums}:where(.ag-ltr) .ag-right-aligned-cell{text-align:right}:where(.ag-rtl) .ag-right-aligned-cell{text-align:left}.ag-right-aligned-cell .ag-cell-value,.ag-right-aligned-cell .ag-group-value{margin-left:auto}:where(.ag-ltr) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-ltr) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level));padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}:where(.ag-rtl) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-rtl) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-details-row{background-color:var(--ag-data-background-color);padding:calc(var(--ag-spacing)*3.75)}.ag-layout-auto-height,.ag-layout-print{.ag-center-cols-container,.ag-center-cols-viewport{min-height:150px}}.ag-overlay-exporting-wrapper,.ag-overlay-loading-wrapper,.ag-overlay-modal-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-skeleton-container{align-content:center;height:100%;width:100%}.ag-skeleton-effect{animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite;background-color:var(--ag-row-loading-skeleton-effect-color);border-radius:.25rem;height:1em;width:100%}:where(.ag-ltr) .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}:where(.ag-rtl) .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}@keyframes ag-skeleton-loading{0%{background-color:var(--ag-row-loading-skeleton-effect-color)}50%{background-color:color-mix(in srgb,transparent,var(--ag-row-loading-skeleton-effect-color) 40%)}to{background-color:var(--ag-row-loading-skeleton-effect-color)}}.ag-loading{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-ltr) .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-icon-loading{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ag-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);color:var(--ag-header-text-color);display:flex;font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight);overflow:hidden;white-space:nowrap;width:100%}.ag-header-row{height:var(--ag-header-height);position:absolute}.ag-floating-filter-button-button,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,:where(.ag-header-cell-sortable) .ag-header-cell-label,:where(.ag-header-group-cell-selectable) .ag-header-cell-comp-wrapper{cursor:pointer}:where(.ag-ltr) .ag-header-expand-icon{margin-left:4px}:where(.ag-rtl) .ag-header-expand-icon{margin-right:4px}.ag-header-row:where(:not(:first-child)){:where(.ag-header-cell:not(.ag-header-span-height.ag-header-span-total,.ag-header-parent-hidden),.ag-header-group-cell.ag-header-group-cell-with-group){border-top:var(--ag-header-row-border)}}.ag-header-row:where(:not(.ag-header-row-column-group)){overflow:hidden}:where(.ag-header.ag-header-allow-overflow) .ag-header-row{overflow:visible}.ag-header-cell{display:inline-flex;overflow:hidden}.ag-header-group-cell{contain:paint;display:flex}.ag-header-cell,.ag-header-group-cell{align-items:center;gap:var(--ag-cell-widget-spacing);height:100%;padding:0 var(--ag-cell-horizontal-padding);position:absolute}@property --ag-internal-moving-color{syntax:"<color>";inherits:false;initial-value:transparent}@property --ag-internal-hover-color{syntax:"<color>";inherits:false;initial-value:transparent}.ag-header-cell:where(:not(.ag-floating-filter)),.ag-header-group-cell{&:before{background-image:linear-gradient(var(--ag-internal-hover-color),var(--ag-internal-hover-color)),linear-gradient(var(--ag-internal-moving-color),var(--ag-internal-moving-color));content:"";inset:0;position:absolute;--ag-internal-moving-color:transparent;--ag-internal-hover-color:transparent;transition:--ag-internal-moving-color var(--ag-header-cell-background-transition-duration),--ag-internal-hover-color var(--ag-header-cell-background-transition-duration)}&:where(:hover):before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}&:where(.ag-header-cell-moving):before{--ag-internal-moving-color:var(--ag-header-cell-moving-background-color);--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}}:where(.ag-header-cell:not(.ag-floating-filter) *,.ag-header-group-cell *){position:relative;z-index:1}.ag-header-cell-menu-button:where(:not(.ag-header-menu-always-show)){opacity:0;transition:opacity .2s}.ag-header-cell-filter-button,:where(.ag-header-cell.ag-header-active) .ag-header-cell-menu-button{opacity:1}.ag-header-cell-label,.ag-header-group-cell-label{align-items:center;align-self:stretch;display:flex;flex:1 1 auto;overflow:hidden;padding:5px 0}:where(.ag-ltr) .ag-sort-indicator-icon{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-sort-indicator-icon{padding-right:var(--ag-spacing)}.ag-header-cell-label{text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{flex:none;max-width:100%;overflow:visible;position:sticky}:where(.ag-ltr) .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell-text,.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{word-break:break-word}.ag-header-cell-comp-wrapper{width:100%}:where(.ag-header-group-cell) .ag-header-cell-comp-wrapper{display:flex}:where(.ag-header-cell:not(.ag-header-cell-auto-height)) .ag-header-cell-comp-wrapper{align-items:center;display:flex;height:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-header-cell-comp-wrapper-limited-height>*{overflow:hidden}:where(.ag-right-aligned-header) .ag-header-cell-label{flex-direction:row-reverse}:where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{margin-right:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{margin-left:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{margin-left:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{margin-right:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}.ag-header-cell:after,.ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{content:"";height:var(--ag-header-column-border-height);position:absolute;top:calc(50% - var(--ag-header-column-border-height)*.5);z-index:1}:where(.ag-ltr) .ag-header-cell:after,:where(.ag-ltr) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-right:var(--ag-header-column-border);right:0}:where(.ag-rtl) .ag-header-cell:after,:where(.ag-rtl) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-left:var(--ag-header-column-border);left:0}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-column-drag-indicator-color);border-radius:calc(var(--ag-column-drag-indicator-width)/2);content:"";height:100%;position:absolute;top:0;width:var(--ag-column-drag-indicator-width)}:where(.ag-ltr) .ag-header-highlight-before:after{left:0}:where(.ag-rtl) .ag-header-highlight-before:after{right:0}:where(.ag-ltr) .ag-header-highlight-after:after{right:0;:where(.ag-pinned-left-header) &{right:1px}}:where(.ag-rtl) .ag-header-highlight-after:after{left:0;:where(.ag-pinned-left-header) &{left:1px}}.ag-header-cell-resize{align-items:center;cursor:ew-resize;display:flex;height:100%;position:absolute;top:0;width:8px;z-index:2;&:after{background-color:var(--ag-header-column-resize-handle-color);content:"";height:var(--ag-header-column-resize-handle-height);position:absolute;top:calc(50% - var(--ag-header-column-resize-handle-height)*.5);width:var(--ag-header-column-resize-handle-width);z-index:1}}:where(.ag-ltr) .ag-header-cell-resize{right:-3px;&:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-rtl) .ag-header-cell-resize{left:-3px;&:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-header-cell.ag-header-span-height) .ag-header-cell-resize:after{height:calc(100% - var(--ag-spacing)*4);top:calc(var(--ag-spacing)*2)}.ag-header-group-cell-no-group:where(.ag-header-span-height){display:none}.ag-sort-indicator-container{display:flex;gap:var(--ag-spacing)}.ag-layout-print{&.ag-body{display:block;height:unset}&.ag-root-wrapper{display:inline-block}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:none}&.ag-force-vertical-scroll{overflow-y:visible!important}}@media print{.ag-root-wrapper.ag-layout-print{display:table;.ag-body-horizontal-scroll-viewport,.ag-body-viewport,.ag-center-cols-container,.ag-center-cols-viewport,.ag-root,.ag-root-wrapper-body,.ag-virtual-list-viewport{display:block!important;height:auto!important;overflow:hidden!important}.ag-cell,.ag-row{-moz-column-break-inside:avoid;break-inside:avoid}}}ag-grid,ag-grid-angular{display:block}.ag-root-wrapper{border:var(--ag-wrapper-border);border-radius:var(--ag-wrapper-border-radius);display:flex;flex-direction:column;overflow:hidden;position:relative;&.ag-layout-normal{height:100%}}.ag-root-wrapper-body{display:flex;flex-direction:row;&.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}}.ag-root{display:flex;flex-direction:column;position:relative;&.ag-layout-auto-height,&.ag-layout-normal{flex:1 1 auto;overflow:hidden;width:0}&.ag-layout-normal{height:100%}}.ag-drag-handle{color:var(--ag-drag-handle-color);cursor:grab;:where(.ag-icon){color:var(--ag-drag-handle-color)}}.ag-chart-menu-icon,.ag-chart-settings-next,.ag-chart-settings-prev,.ag-column-group-icons,.ag-column-select-header-icon,.ag-filter-toolpanel-expand,.ag-floating-filter-button-button,.ag-group-title-bar-icon,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,.ag-panel-title-bar-button-icon,.ag-set-filter-group-icons,:where(.ag-group-contracted) .ag-icon,:where(.ag-group-expanded) .ag-icon{background-color:var(--ag-icon-button-background-color);border-radius:var(--ag-icon-button-border-radius);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-background-color);color:var(--ag-icon-button-color);&:hover{background-color:var(--ag-icon-button-hover-background-color);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-hover-background-color);color:var(--ag-icon-button-hover-color)}}:where(.ag-filter-active,.ag-filter-toolpanel-group-instance-header-icon,.ag-filter-toolpanel-instance-header-icon){position:relative;&:after{background-color:var(--ag-icon-button-active-indicator-color);border-radius:50%;content:"";height:6px;position:absolute;top:-1px;width:6px}}:where(.ag-ltr) :where(.ag-filter-active,.ag-filter-toolpanel-group-instance-header-icon,.ag-filter-toolpanel-instance-header-icon){&:after{right:-1px}}:where(.ag-rtl) :where(.ag-filter-active,.ag-filter-toolpanel-group-instance-header-icon,.ag-filter-toolpanel-instance-header-icon){&:after{left:-1px}}.ag-filter-active{background-image:linear-gradient(var(--ag-icon-button-active-background-color),var(--ag-icon-button-active-background-color));border-radius:1px;outline:solid var(--ag-icon-button-background-spread) var(--ag-icon-button-active-background-color);:where(.ag-icon-filter){clip-path:path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");color:var(--ag-icon-button-active-color)}}.ag-menu{background-color:var(--ag-menu-background-color);border:var(--ag-menu-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-menu-shadow);color:var(--ag-menu-text-color);max-height:100%;overflow-y:auto;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}',Lq={wrapperBorder:!0,rowBorder:!0,headerRowBorder:!0,footerRowBorder:{ref:"rowBorder"},columnBorder:{style:"solid",width:1,color:"transparent"},headerColumnBorder:!1,headerColumnBorderHeight:"100%",pinnedColumnBorder:!0,pinnedRowBorder:!0,sidePanelBorder:!0,sideBarPanelWidth:250,sideBarBackgroundColor:{ref:"chromeBackgroundColor"},sideButtonBarBackgroundColor:{ref:"sideBarBackgroundColor"},sideButtonBarTopPadding:0,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineColor:"transparent",sideButtonSelectedUnderlineTransitionDuration:0,sideButtonBackgroundColor:"transparent",sideButtonTextColor:{ref:"textColor"},sideButtonHoverBackgroundColor:{ref:"sideButtonBackgroundColor"},sideButtonHoverTextColor:{ref:"sideButtonTextColor"},sideButtonSelectedBackgroundColor:Fo,sideButtonSelectedTextColor:{ref:"sideButtonTextColor"},sideButtonBorder:"solid 1px transparent",sideButtonSelectedBorder:!0,sideButtonLeftPadding:{ref:"spacing"},sideButtonRightPadding:{ref:"spacing"},sideButtonVerticalPadding:{calc:"spacing * 3"},headerBackgroundColor:{ref:"chromeBackgroundColor"},headerFontFamily:{ref:"fontFamily"},cellFontFamily:{ref:"fontFamily"},headerFontWeight:500,headerFontSize:{ref:"fontSize"},dataFontSize:{ref:"fontSize"},headerTextColor:{ref:"textColor"},headerCellHoverBackgroundColor:"transparent",headerCellMovingBackgroundColor:{ref:"headerCellHoverBackgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:On,rangeSelectionBackgroundColor:tn(.2),rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:tn(.5),rangeHeaderHighlightColor:q9(.08),rowNumbersSelectedColor:tn(.5),rowHoverColor:tn(.08),columnHoverColor:tn(.05),selectedRowBackgroundColor:tn(.12),modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},dataBackgroundColor:Fo,oddRowBackgroundColor:{ref:"dataBackgroundColor"},wrapperBorderRadius:8,cellHorizontalPadding:{calc:"spacing * 2 * cellHorizontalPaddingScale"},cellWidgetSpacing:{calc:"spacing * 1.5"},cellHorizontalPaddingScale:1,rowGroupIndentSize:{calc:"cellWidgetSpacing + iconSize"},valueChangeDeltaUpColor:"#43a047",valueChangeDeltaDownColor:"#e53935",valueChangeValueHighlightBackgroundColor:"#16a08580",rowHeight:{calc:"max(iconSize, dataFontSize) + spacing * 3.25 * rowVerticalPaddingScale"},rowVerticalPaddingScale:1,headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4 * headerVerticalPaddingScale"},headerVerticalPaddingScale:1,paginationPanelHeight:{ref:"rowHeight",calc:"max(rowHeight, 22px)"},dragHandleColor:tr(.7),headerColumnResizeHandleHeight:"30%",headerColumnResizeHandleWidth:2,headerColumnResizeHandleColor:{ref:"borderColor"},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 1.5"},widgetHorizontalSpacing:{calc:"spacing * 1.5"},widgetVerticalSpacing:{ref:"spacing"},iconButtonColor:{ref:"iconColor"},iconButtonBackgroundColor:"transparent",iconButtonBackgroundSpread:4,iconButtonBorderRadius:1,iconButtonHoverColor:{ref:"iconButtonColor"},iconButtonHoverBackgroundColor:tr(.1),iconButtonActiveColor:On,iconButtonActiveBackgroundColor:tn(.28),iconButtonActiveIndicatorColor:On,menuBorder:{color:tr(.2)},menuBackgroundColor:or(.03),menuTextColor:or(.95),menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"},setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:tr(.8),dialogShadow:{ref:"popupShadow"},cellEditingBorder:{color:On},cellEditingShadow:{ref:"cardShadow"},fullRowEditInvalidBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.25},dialogBorder:{color:tr(.2)},panelBackgroundColor:Fo,panelTitleBarHeight:{ref:"headerHeight"},panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarIconColor:{ref:"headerTextColor"},panelTitleBarTextColor:{ref:"headerTextColor"},panelTitleBarFontWeight:{ref:"headerFontWeight"},panelTitleBarBorder:!0,columnSelectIndentSize:{ref:"iconSize"},toolPanelSeparatorBorder:!0,columnDropCellBackgroundColor:tr(.07),columnDropCellTextColor:{ref:"textColor"},columnDropCellDragHandleColor:{ref:"textColor"},columnDropCellBorder:{color:tr(.13)},selectCellBackgroundColor:tr(.07),selectCellBorder:{color:tr(.13)},advancedFilterBuilderButtonBarBorder:!0,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",filterPanelApplyButtonColor:Fo,filterPanelApplyButtonBackgroundColor:On,filterPanelCardSubtleColor:{ref:"textColor",mix:.7},filterPanelCardSubtleHoverColor:{ref:"textColor"},findMatchColor:xa,findMatchBackgroundColor:"#ffff00",findActiveMatchColor:xa,findActiveMatchBackgroundColor:"#ffa500",filterToolPanelGroupIndent:{ref:"spacing"},rowLoadingSkeletonEffectColor:tr(.15),statusBarLabelColor:xa,statusBarLabelFontWeight:500,statusBarValueColor:xa,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},Nq=".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)}",xR={cellBatchEditBackgroundColor:"rgba(220 181 139 / 16%)",cellBatchEditTextColor:"#422f00",rowBatchEditBackgroundColor:{ref:"cellBatchEditBackgroundColor"},rowBatchEditTextColor:{ref:"cellBatchEditTextColor"}},zq={...xR,cellBatchEditTextColor:"#f3d0b3"},Hq=()=>Jr({feature:"batchEditStyle",params:xR,css:Nq}),Vq=Hq(),Gq=":where(.ag-button){background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0;text-indent:inherit;text-shadow:inherit;text-transform:inherit;word-spacing:inherit;&:disabled{cursor:default}&:focus-visible{box-shadow:var(--ag-focus-shadow);outline:none}}.ag-standard-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--ag-button-background-color);border:var(--ag-button-border);border-radius:var(--ag-button-border-radius);color:var(--ag-button-text-color);cursor:pointer;font-weight:var(--ag-button-font-weight);padding:var(--ag-button-vertical-padding) var(--ag-button-horizontal-padding);&:hover{background-color:var(--ag-button-hover-background-color);border:var(--ag-button-hover-border);color:var(--ag-button-hover-text-color)}&:active{background-color:var(--ag-button-active-background-color);border:var(--ag-button-active-border);color:var(--ag-button-active-text-color)}&:disabled{background-color:var(--ag-button-disabled-background-color);border:var(--ag-button-disabled-border);color:var(--ag-button-disabled-text-color)}}",jq={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"}},Wq=()=>Jr({feature:"buttonStyle",params:{...jq,buttonBackgroundColor:Fo,buttonBorder:!0,buttonHoverBackgroundColor:{ref:"rowHoverColor"},buttonActiveBorder:{color:On}},css:Gq}),qq=Wq(),Uq=".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}",$q=()=>Jr({feature:"columnDropStyle",css:Uq}),kR=$q(),Kq={warn:(...e)=>{pe(e[0],e[1])},error:(...e)=>{yt(e[0],e[1])},preInitErr:(...e)=>{rc(e[0],e[2],e[1])}},Xq=()=>oG(Kq).withParams(Lq).withPart(qq).withPart(kR).withPart(Vq),Zq='.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{background-color:var(--ag-checkbox-unchecked-background-color);border:solid var(--ag-checkbox-border-width) var(--ag-checkbox-unchecked-border-color);flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);:where(input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-icon-size);margin:0;opacity:0;width:var(--ag-icon-size)}&:after{content:"";display:block;inset:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;pointer-events:none;position:absolute}&:where(.ag-checked){background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color);&:after{background-color:var(--ag-checkbox-checked-shape-color)}}&:where(:focus-within,:active){box-shadow:var(--ag-focus-shadow)}&:where(.ag-disabled){filter:grayscale();opacity:.5}}.ag-checkbox-input-wrapper{border-radius:var(--ag-checkbox-border-radius);&:where(.ag-checked):after{-webkit-mask-image:var(--ag-checkbox-checked-shape-image);mask-image:var(--ag-checkbox-checked-shape-image)}&:where(.ag-indeterminate){background-color:var(--ag-checkbox-indeterminate-background-color);border-color:var(--ag-checkbox-indeterminate-border-color);&:after{background-color:var(--ag-checkbox-indeterminate-shape-color);-webkit-mask-image:var(--ag-checkbox-indeterminate-shape-image);mask-image:var(--ag-checkbox-indeterminate-shape-image)}}}.ag-cell-editing-error .ag-checkbox-input-wrapper:focus-within{box-shadow:var(--ag-focus-error-shadow)}.ag-radio-button-input-wrapper{border-radius:100%;&:where(.ag-checked):after{-webkit-mask-image:var(--ag-radio-checked-shape-image);mask-image:var(--ag-radio-checked-shape-image)}}',Yq=()=>Jr({feature:"checkboxStyle",params:{checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:Fo,checkboxUncheckedBorderColor:or(.3),checkboxCheckedBackgroundColor:On,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:Fo,checkboxIndeterminateBackgroundColor:or(.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:Fo,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:Zq}),Qq=Yq(),FR=()=>({...ch,...zq,backgroundColor:"hsl(217, 0%, 17%)",foregroundColor:"#FFF",chromeBackgroundColor:or(.05),rowHoverColor:tn(.15),selectedRowBackgroundColor:tn(.2),menuBackgroundColor:or(.1),browserColorScheme:"dark",popupShadow:"0 0px 20px #000A",cardShadow:"0 1px 4px 1px #000A",advancedFilterBuilderJoinPillColor:"#7a3a37",advancedFilterBuilderColumnPillColor:"#355f2d",advancedFilterBuilderOptionPillColor:"#5a3168",advancedFilterBuilderValuePillColor:"#374c86",filterPanelApplyButtonColor:xa,findMatchColor:Fo,findActiveMatchColor:Fo,checkboxUncheckedBorderColor:or(.4),toggleButtonOffBackgroundColor:or(.4),rowBatchEditBackgroundColor:or(.1)}),Jq=()=>({...FR(),backgroundColor:"#1f2836"}),eU=()=>Jr({feature:"colorScheme",params:ch,modeParams:{light:ch,dark:FR(),"dark-blue":Jq()}}),tU=eU(),RR={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"/>'},PR={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>'},oU=(e={})=>{let t="";for(const o of[...Object.keys(RR),...Object.keys(PR)]){const r=rU(o,e.strokeWidth);t+=`.ag-icon-${o}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(r)}'); }
29
+ `}return t},rU=(e,t=1.5)=>{const o=PR[e];if(o)return o;const r=RR[e];if(!r)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>`+r+"</svg>"},nU=(e={})=>Jr({feature:"iconSet",css:()=>oU(e)}),iU=nU(),sU=':where(.ag-input-field-input[type=number]:not(.ag-number-field-input-stepper)){-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}}.ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color);outline:none}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&::-moz-placeholder{color:var(--ag-input-placeholder-text-color)}&::placeholder{color:var(--ag-input-placeholder-text-color)}}:where(.ag-ltr) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-left:var(--ag-input-padding-start)}:where(.ag-rtl) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-right:var(--ag-input-padding-start)}:where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter,.ag-filter-add-select,.ag-floating-filter-search-icon){.ag-input-wrapper:before{background-color:currentcolor;color:var(--ag-input-icon-color);content:"";display:block;height:12px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;opacity:.5;position:absolute;width:12px}}:where(.ag-ltr) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter,.ag-filter-add-select,.ag-floating-filter-search-icon){.ag-input-wrapper:before{margin-left:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-left:calc(var(--ag-spacing)*1.5 + 12px)}}:where(.ag-rtl) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter,.ag-filter-add-select,.ag-floating-filter-search-icon){.ag-input-wrapper:before{margin-right:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-right:calc(var(--ag-spacing)*1.5 + 12px)}}',aU=".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)}}}",lU={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},cU=()=>Jr({feature:"inputStyle",params:{...lU,inputBackgroundColor:Fo,inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:On},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:or(.06),inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}},pickerButtonBorder:!0,pickerListBorder:!0},css:()=>sU+aU}),uU=cU(),dU='.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;flex:1;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex}.ag-tabs-close-button-wrapper{align-items:center;border:0;display:flex;padding:var(--ag-spacing)}:where(.ag-ltr) .ag-tabs-close-button-wrapper{border-right:solid var(--ag-border-width) var(--ag-border-color)}:where(.ag-rtl) .ag-tabs-close-button-wrapper{border-left:solid var(--ag-border-width) var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative;&:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}&.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}&:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}&.ag-tab-selected:after{opacity:1}}:where(.ag-ltr) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-left-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-right-color:var(--ag-tab-selected-border-color)}}}:where(.ag-rtl) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-right-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-left-color:var(--ag-tab-selected-border-color)}}}',hU={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},fU=()=>Jr({feature:"tabStyle",params:{...hU,tabBarBorder:!0,tabBarBackgroundColor:tr(.05),tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:Fo},css:dU}),pU=fU(),gU=()=>Xq().withPart(Qq).withPart(tU).withPart(iU).withPart(pU).withPart(uU).withPart(kR).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]}),Cv=gU(),mU={cssName:"--ag-cell-horizontal-padding",changeKey:"cellHorizontalPaddingChanged",defaultValue:16},vU={cssName:"--ag-indentation-level",changeKey:"indentationLevelChanged",defaultValue:0,noWarn:!0,cacheDefault:!0},bU={cssName:"--ag-row-group-indent-size",changeKey:"rowGroupIndentSizeChanged",defaultValue:0},ER={cssName:"--ag-row-height",changeKey:"rowHeightChanged",defaultValue:42},TR={cssName:"--ag-header-height",changeKey:"headerHeightChanged",defaultValue:48},wv={cssName:"--ag-row-border",changeKey:"rowBorderWidthChanged",defaultValue:1,border:!0},DR={cssName:"--ag-pinned-row-border",changeKey:"pinnedRowBorderWidthChanged",defaultValue:1,border:!0};function CU(e,t){for(const o of t.sort((r,n)=>r.moduleName.localeCompare(n.moduleName))){const r=o.css;r&&e.set(`module-${o.moduleName}`,r)}}var wU=class extends uG{initVariables(){this.addManagedPropertyListener("rowHeight",()=>this.refreshRowHeightVariable()),this.getSizeEl(ER),this.getSizeEl(TR),this.getSizeEl(wv),this.getSizeEl(DR),this.refreshRowBorderWidthVariable()}getPinnedRowBorderWidth(){return this.getCSSVariablePixelValue(DR)}getRowBorderWidth(){return this.getCSSVariablePixelValue(wv)}getDefaultRowHeight(){return this.getCSSVariablePixelValue(ER)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(TR)}getDefaultCellHorizontalPadding(){return this.getCSSVariablePixelValue(mU)}getCellPaddingLeft(){const e=this.getDefaultCellHorizontalPadding(),t=this.getCSSVariablePixelValue(vU),o=this.getCSSVariablePixelValue(bU);return e-1+o*t}getCellPadding(){const e=this.getDefaultCellHorizontalPadding()-1;return this.getCellPaddingLeft()+e}getDefaultColumnMinWidth(){return Math.min(36,this.getDefaultRowHeight())}refreshRowHeightVariable(){const{eRootDiv:e}=this,t=e.style.getPropertyValue("--ag-line-height").trim(),o=this.gos.get("rowHeight");if(o==null||isNaN(o)||!isFinite(o))return t!==null&&e.style.setProperty("--ag-line-height",null),-1;const r=`${o}px`;return t!=r?(e.style.setProperty("--ag-line-height",r),o):t!=""?Number.parseFloat(t):-1}fireStylesChangedEvent(e){e==="rowBorderWidthChanged"&&this.refreshRowBorderWidthVariable(),super.fireStylesChangedEvent(e)}refreshRowBorderWidthVariable(){const e=this.getCSSVariablePixelValue(wv);this.eRootDiv.style.setProperty("--ag-internal-row-border-width",`${e}px`)}postProcessThemeChange(e,t){e&&getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded")&&yt(t?106:239)}getAdditionalCss(){const e=new Map;return e.set("core",[Oq]),CU(e,Array.from(xV())),e}getDefaultTheme(){return Cv}varError(e){pe(9,{variable:e})}themeError(e){yt(240,{theme:e})}shadowRootError(){yt(293)}},yU=class extends fG{postConstruct(){const{globalListener:e,globalSyncListener:t}=this.beans;e&&this.addGlobalListener(e,!0),t&&this.addGlobalListener(t,!1)}};function MR(e,t,o){const r=e.visibleCols.headerGroupRowCount;if(o>=r)return{column:t,headerRowIndex:o};let n=t.getParent();for(;n&&n.getProvidedColumnGroup().getLevel()>o;)n=n.getParent();const i=t.isSpanHeaderHeight();return!n||i&&n.isPadding()?{column:t,headerRowIndex:r}:{column:n,headerRowIndex:n.getProvidedColumnGroup().getLevel()}}var SU=class extends ue{constructor(){super(...arguments),this.beanName="headerNavigation",this.currentHeaderRowWithoutSpan=-1}postConstruct(){const e=this.beans;e.ctrlsSvc.whenReady(this,o=>{this.gridBodyCon=o.gridBodyCtrl});const t=Zt(e);this.addManagedElementListeners(t,{mousedown:()=>{this.currentHeaderRowWithoutSpan=-1}})}getHeaderPositionForColumn(e,t){let o;const{colModel:r,colGroupSvc:n,ctrlsSvc:i}=this.beans;if(typeof e=="string"?(o=r.getCol(e),o||(o=n?.getColumnGroup(e)??null)):o=e,!o)return null;const l=i.getHeaderRowContainerCtrl()?.getAllCtrls(),u=st(l||[]).type==="filter",d=nn(this.beans)-1;let h=-1,p=o;for(;p;)h++,p=p.getParent();let g=h;return t&&u&&g===d-1&&g++,g===-1?null:{headerRowIndex:g,column:o}}navigateVertically(e,t){const{focusSvc:o,visibleCols:r}=this.beans,{focusedHeader:n}=o;if(!n)return!1;const{headerRowIndex:i}=n,s=n.column,l=nn(this.beans),u=this.getHeaderRowType(i),d=r.headerGroupRowCount;let{headerRowIndex:h,column:p,headerRowIndexWithoutSpan:g}=e==="UP"?xU(u,s,i):kU(s,i,d),v=!1;return h<0&&(h=0,p=s,v=!0),h>=l?(h=-1,this.currentHeaderRowWithoutSpan=-1):g!==void 0&&(this.currentHeaderRowWithoutSpan=g),!v&&!p?!1:o.focusHeaderPosition({headerPosition:{headerRowIndex:h,column:p},allowUserOverride:!0,event:t})}navigateHorizontally(e,t=!1,o){const{focusSvc:r,gos:n}=this.beans,i={...r.focusedHeader};let s,l;this.currentHeaderRowWithoutSpan!==-1?i.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=i.headerRowIndex,e==="LEFT"!==n.get("enableRtl")?(l="Before",s=this.findHeader(i,l)):(l="After",s=this.findHeader(i,l));const u=n.getCallback("tabToNextHeader");if(t&&u){const d=r.focusHeaderPositionFromUserFunc({userFunc:u,headerPosition:s,direction:l});if(d){const{headerRowIndex:h}=r.focusedHeader||{};h!=null&&h!=i.headerRowIndex&&(this.currentHeaderRowWithoutSpan=h)}return d}return s||!t?r.focusHeaderPosition({headerPosition:s,direction:l,fromTab:t,allowUserOverride:!0,event:o}):this.focusNextHeaderRow(i,l,o)}focusNextHeaderRow(e,t,o){const r=this.beans,n=e.headerRowIndex;let i=null,s;const l=nn(r),u=this.beans.visibleCols.allCols;if(t==="Before"){if(n<=0)return!1;i=st(u),s=n-1,this.currentHeaderRowWithoutSpan-=1}else i=u[0],s=n+1,this.currentHeaderRowWithoutSpan<l?this.currentHeaderRowWithoutSpan+=1:this.currentHeaderRowWithoutSpan=-1;let{column:d,headerRowIndex:h}=MR(this.beans,i,s);return h>=l&&(h=-1),r.focusSvc.focusHeaderPosition({headerPosition:{column:d,headerRowIndex:h},direction:t,fromTab:!0,allowUserOverride:!0,event:o})}scrollToColumn(e,t="After"){if(e.getPinned())return;let o;if(Nt(e)){const r=e.getDisplayedLeafColumns();o=t==="Before"?st(r):r[0]}else o=e;this.gridBodyCon.scrollFeature.ensureColumnVisible(o)}findHeader(e,t){const{colGroupSvc:o,visibleCols:r}=this.beans;let n=e.column;if(n instanceof dc){const u=n.getDisplayedLeafColumns();n=t==="Before"?u[0]:u[u.length-1]}const i=t==="Before"?r.getColBefore(n):r.getColAfter(n);if(!i)return;const s=r.headerGroupRowCount;if(e.headerRowIndex>=s)return{headerRowIndex:e.headerRowIndex,column:i};const l=o?.getColGroupAtLevel(i,e.headerRowIndex);return l?l.isPadding()&&i.isSpanHeaderHeight()?{headerRowIndex:r.headerGroupRowCount,column:i}:{headerRowIndex:e.headerRowIndex,column:l??i}:{headerRowIndex:i instanceof ha&&i.isSpanHeaderHeight()?r.headerGroupRowCount:e.headerRowIndex,column:i}}getHeaderRowType(e){const t=this.beans.ctrlsSvc.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)}};function xU(e,t,o){const r=o-1;if(e!=="filter"){const n=t instanceof ha&&t.isSpanHeaderHeight();let i=t.getParent();for(;i&&(i.getProvidedColumnGroup().getLevel()>r||n&&i.isPadding());)i=i.getParent();if(i)return n?{column:i,headerRowIndex:i.getProvidedColumnGroup().getLevel(),headerRowIndexWithoutSpan:r}:{column:i,headerRowIndex:r,headerRowIndexWithoutSpan:r}}return{column:t,headerRowIndex:r,headerRowIndexWithoutSpan:r}}function kU(e,t,o){const r=t+1,n={column:e,headerRowIndex:r,headerRowIndexWithoutSpan:r};if(e instanceof dc){if(r>=o)return{column:e.getDisplayedLeafColumns()[0],headerRowIndex:o,headerRowIndexWithoutSpan:r};let s=e.getDisplayedChildren()[0];if(s instanceof dc&&s.isPadding()){const u=s.getDisplayedLeafColumns()[0];u.isSpanHeaderHeight()&&(s=u)}n.column=s,s instanceof ha&&s.isSpanHeaderHeight()&&(n.headerRowIndex=o,n.headerRowIndexWithoutSpan=r)}return n}var FU=class extends ue{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(f9(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(At(this.beans),nR)?null:this.focusedHeader}doesRowOrCellHaveBrowserFocus(){const e=At(this.beans);return this.isDomDataPresentInHierarchy(e,mh)?!0:this.isDomDataPresentInHierarchy(e,vh)}isDomDataPresentInHierarchy(e,t){let o=e;for(;o;){if(Fk(this.gos,o,t))return!0;o=o.parentNode}return!1}getFocusedCell(){return this.focusedCell}getFocusEventParams(e){const{rowIndex:t,rowPinned:o,column:r}=e,n={rowIndex:t,rowPinned:o,column:r,isFullWidthCell:!1},i=this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:o});return i&&(n.isFullWidthCell=i.isFullWidth()),n}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:o,rowPinned:r,forceBrowserFocus:n=!1,preventScrollOnBrowserFocus:i=!1,sourceEvent:s}=e,l=this.colModel.getCol(t);if(!l){this.focusedCell=null;return}this.focusedCell={rowIndex:o,rowPinned:si(r),column:l};const u=this.getFocusEventParams(this.focusedCell);this.eventSvc.dispatchEvent({type:"cellFocused",...u,...this.previousCellFocusParams&&{previousParams:this.previousCellFocusParams},forceBrowserFocus:n,preventScrollOnBrowserFocus:i,sourceEvent:s}),this.previousCellFocusParams=u}isCellFocused(e){return this.focusedCell==null?!1:JF(e,this.focusedCell)}isHeaderWrapperFocused(e){if(this.focusedHeader==null)return!1;const{column:t,rowCtrl:{rowIndex:o,pinned:r}}=e,{column:n,headerRowIndex:i}=this.focusedHeader;return t===n&&o===i&&r==n.getPinned()}focusHeaderPosition(e){if(this.setFocusRecovered(),ns(this.beans))return!1;const{direction:t,fromTab:o,allowUserOverride:r,event:n,fromCell:i,rowWithoutSpanValue:s,scroll:l=!0}=e;let{headerPosition:u}=e;if(i&&this.filterManager?.isAdvFilterHeaderActive())return this.focusAdvancedFilter(u);if(r){const d=this.focusedHeader,h=nn(this.beans);if(o){const p=this.gos.getCallback("tabToNextHeader");p&&(u=this.getHeaderPositionFromUserFunc({userFunc:p,direction:t,currentPosition:d,headerPosition:u,headerRowCount:h}))}else{const p=this.gos.getCallback("navigateToNextHeader");if(p&&n){const g={key:n.key,previousHeaderPosition:d,nextHeaderPosition:u,headerRowCount:h,event:n};u=p(g)}}}return u?this.focusProvidedHeaderPosition({headerPosition:u,direction:t,event:n,fromCell:i,rowWithoutSpanValue:s,scroll:l}):!1}focusHeaderPositionFromUserFunc(e){if(ns(this.beans))return!1;const{userFunc:t,headerPosition:o,direction:r,event:n}=e,i=this.focusedHeader,s=nn(this.beans),l=this.getHeaderPositionFromUserFunc({userFunc:t,direction:r,currentPosition:i,headerPosition:o,headerRowCount:s});return!!l&&this.focusProvidedHeaderPosition({headerPosition:l,direction:r,event:n})}getHeaderPositionFromUserFunc(e){const{userFunc:t,direction:o,currentPosition:r,headerPosition:n,headerRowCount:i}=e,l=t({backwards:o==="Before",previousHeaderPosition:r,nextHeaderPosition:n,headerRowCount:i});return l===!0?r:l===!1?null:l}focusProvidedHeaderPosition(e){const{headerPosition:t,direction:o,fromCell:r,rowWithoutSpanValue:n,event:i,scroll:s=!0}=e,{column:l,headerRowIndex:u}=t,{filterManager:d,ctrlsSvc:h,headerNavigation:p}=this.beans;if(this.focusedHeader&&Aj(e.headerPosition,this.focusedHeader))return!1;if(u===-1)return d?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(t):this.focusGridView({column:l,event:i});s&&p?.scrollToColumn(l,o);const v=h.getHeaderRowContainerCtrl(l.getPinned())?.focusHeader(t.headerRowIndex,l,i)||!1;return p&&v&&(n!=null||r)&&(p.currentHeaderRowWithoutSpan=n??-1),v}focusFirstHeader(){if(this.overlays?.exclusive&&this.focusOverlay())return!0;const e=this.visibleCols.allCols[0];if(!e)return!1;const t=MR(this.beans,e,0);return this.focusHeaderPosition({headerPosition:t,rowWithoutSpanValue:0})}focusLastHeader(e){if(this.overlays?.exclusive&&this.focusOverlay(!0))return!0;const t=nn(this.beans)-1,o=st(this.visibleCols.allCols);return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:o},rowWithoutSpanValue:-1,event:e})}focusPreviousFromFirstCell(e){return this.filterManager?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(e)}isAnyCellFocused(){return!!this.focusedCell}isRowFocused(e,t){return this.focusedCell==null?!1:this.focusedCell.rowIndex===e&&this.focusedCell.rowPinned===si(t)}focusOverlay(e){const t=this.overlays?.isVisible()&&this.overlays.eWrapper?.getGui();return!!t&&ts(t,e)}focusGridView(e){const{backwards:t=!1,canFocusOverlay:o=!0,event:r}=e;if(this.overlays?.exclusive)return o&&this.focusOverlay(t);if(sv(this.beans))return t&&!ns(this.beans)?this.focusLastHeader():o&&this.focusOverlay(t)?!0:t?!1:mc(this.beans,t);const n=t?Fj(this.beans):kj(this.beans);if(n){const i=e.column??this.focusedHeader?.column,{rowIndex:s,rowPinned:l}=n,u=rs(this.beans,n);if(!i||!u||s==null)return!1;if(i.isSuppressNavigable(u)){const d=this.gos.get("enableRtl");let h;return!r||r.key===te.TAB?h=d?te.LEFT:te.RIGHT:h=r.key,this.beans.navigation?.navigateToNextCell(null,h,{rowIndex:s,column:i,rowPinned:l||null},!0),!0}return this.navigation?.ensureCellVisible({rowIndex:s,column:i,rowPinned:l}),t&&this.rowRenderer.getRowByPosition(n)?.isFullWidth()&&this.navigation?.tryToFocusFullWidthRow(n,t)||(this.setFocusedCell({rowIndex:s,column:i,rowPinned:si(l),forceBrowserFocus:!0}),this.beans.rangeSvc?.setRangeToCell({rowIndex:s,rowPinned:l,column:i})),!0}return!!(o&&this.focusOverlay(t)||t&&this.focusLastHeader())}focusAdvancedFilter(e){return this.advFilterFocusColumn=e?.column,this.beans.advancedFilter?.getCtrl().focusHeaderComp()??!1}focusNextFromAdvancedFilter(e,t){const o=(t?void 0:this.advFilterFocusColumn)??this.visibleCols.allCols?.[0];return e?this.focusHeaderPosition({headerPosition:{column:o,headerRowIndex:nn(this.beans)-1}}):this.focusGridView({column:o})}clearAdvancedFilterColumn(){this.advFilterFocusColumn=void 0}},RU=class extends ue{constructor(){super(...arguments),this.beanName="scrollVisibleSvc"}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colAnimation=e.colAnimation}postConstruct(){this.horizontalScrollShowing=this.gos.get("alwaysShowHorizontalScroll")===!0,this.verticalScrollShowing=this.gos.get("alwaysShowVerticalScroll")===!0,this.getScrollbarWidth(),this.addManagedEventListeners({displayedColumnsChanged:this.updateScrollVisible.bind(this),displayedColumnsWidthChanged:this.updateScrollVisible.bind(this)})}updateScrollVisible(){const{colAnimation:e}=this;e?.isActive()?e.executeLaterVMTurn(()=>{e.executeLaterVMTurn(()=>this.updateScrollVisibleImpl())}):this.updateScrollVisibleImpl()}updateScrollVisibleImpl(){const e=this.ctrlsSvc.get("center");if(!e||this.colAnimation?.isActive())return;const t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.verticalScrollShowing};this.setScrollsVisible(t),this.updateScrollGap()}updateScrollGap(){const e=this.ctrlsSvc.get("center"),t=e.hasHorizontalScrollGap(),o=e.hasVerticalScrollGap();(this.horizontalScrollGap!==t||this.verticalScrollGap!==o)&&(this.horizontalScrollGap=t,this.verticalScrollGap=o,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"),o=typeof e=="number"&&e>=0?e:u9();o!=null&&(this.scrollbarWidth=o,this.eventSvc.dispatchEvent({type:"scrollbarWidthChanged"}))}return this.scrollbarWidth}},PU=class extends ue{constructor(){super(...arguments),this.beanName="gridDestroySvc",this.destroyCalled=!1}destroy(){if(this.destroyCalled)return;const{stateSvc:e,ctrlsSvc:t,context:o}=this.beans;this.eventSvc.dispatchEvent({type:"gridPreDestroyed",state:e?.getState()??{}}),this.destroyCalled=!0,t.get("gridCtrl")?.destroyGridUi(),o.destroy(),super.destroy()}},EU=new Set(["gridPreDestroyed","fillStart","pasteStart"]),TU=["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"],yv=TU.reduce((e,t)=>(e[t]=UV(t),e),{}),Ea={agSetColumnFilter:"SetFilter",agSetColumnFloatingFilter:"SetFilter",agMultiColumnFilter:"MultiFilter",agMultiColumnFloatingFilter:"MultiFilter",agGroupColumnFilter:"GroupFilter",agGroupColumnFloatingFilter:"GroupFilter",agGroupCellRenderer:"GroupCellRenderer",agGroupRowRenderer:"GroupCellRenderer",agRichSelect:"RichSelect",agRichSelectCellEditor:"RichSelect",agDetailCellRenderer:"SharedMasterDetail",agSparklineCellRenderer:"Sparklines",agDragAndDropImage:"SharedDragAndDrop",agColumnHeader:"ColumnHeaderComp",agColumnGroupHeader:"ColumnGroupHeaderComp",agSortIndicator:"Sort",agAnimateShowChangeCellRenderer:"HighlightChanges",agAnimateSlideCellRenderer:"HighlightChanges",agLoadingCellRenderer:"LoadingCellRenderer",agSkeletonCellRenderer:"SkeletonCellRenderer",agCheckboxCellRenderer:"CheckboxCellRenderer",agLoadingOverlay:"Overlay",agExportingOverlay:"Overlay",agNoRowsOverlay:"Overlay",agNoMatchingRowsOverlay:"Overlay",agTooltipComponent:"Tooltip",agReadOnlyFloatingFilter:"CustomFilter",agTextColumnFilter:"TextFilter",agNumberColumnFilter:"NumberFilter",agDateColumnFilter:"DateFilter",agDateInput:"DateFilter",agTextColumnFloatingFilter:"TextFilter",agNumberColumnFloatingFilter:"NumberFilter",agDateColumnFloatingFilter:"DateFilter",agCellEditor:"TextEditor",agSelectCellEditor:"SelectEditor",agTextCellEditor:"TextEditor",agNumberCellEditor:"NumberEditor",agDateCellEditor:"DateEditor",agDateStringCellEditor:"DateEditor",agCheckboxCellEditor:"CheckboxEditor",agLargeTextCellEditor:"LargeTextEditor",agMenuItem:"MenuItem",agColumnsToolPanel:"ColumnsToolPanel",agFiltersToolPanel:"FiltersToolPanel",agNewFiltersToolPanel:"NewFiltersToolPanel",agAggregationComponent:"StatusBar",agSelectedRowCountComponent:"StatusBar",agTotalRowCountComponent:"StatusBar",agFilteredRowCountComponent:"StatusBar",agTotalAndFilteredRowCountComponent:"StatusBar",agFindCellRenderer:"Find"};function AR(e){return`"${e}"`}var DU=()=>({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."}}),MU={allowFormula:"Formula",aggFunc:"SharedAggregation",autoHeight:"RowAutoHeight",cellClass:"CellStyle",cellClassRules:"CellStyle",cellEditor:({cellEditor:e,editable:t})=>t?typeof e=="string"?Ea[e]??"CustomEditor":"CustomEditor":null,cellRenderer:({cellRenderer:e})=>typeof e!="string"?null:Ea[e],cellStyle:"CellStyle",columnChooserParams:"ColumnMenu",contextMenuItems:"ContextMenu",dndSource:"DragAndDrop",dndSourceOnRowDrag:"DragAndDrop",editable:({editable:e,cellEditor:t})=>e&&!t?"TextEditor":null,enableCellChangeFlash:"HighlightChanges",enablePivot:"SharedPivot",enableRowGroup:"SharedRowGrouping",enableValue:"SharedAggregation",filter:({filter:e})=>e&&typeof e!="string"&&typeof e!="boolean"?"CustomFilter":typeof e=="string"?Ea[e]??"ColumnFilter":"ColumnFilter",floatingFilter:"ColumnFilter",getQuickFilterText:"QuickFilter",headerTooltip:"Tooltip",headerTooltipValueGetter:"Tooltip",mainMenuItems:"ColumnMenu",menuTabs:e=>{const t=["columnsMenuTab","generalMenuTab"];return e.menuTabs?.some(o=>t.includes(o))?"ColumnMenu":null},pivot:"SharedPivot",pivotIndex:"SharedPivot",rowDrag:"RowDrag",rowGroup:"SharedRowGrouping",rowGroupIndex:"SharedRowGrouping",tooltipField:"Tooltip",tooltipValueGetter:"Tooltip",tooltipComponentSelector:"Tooltip",spanRows:"CellSpan",groupHierarchy:"SharedRowGrouping"},AU=()=>({autoHeight:{supportedRowModels:["clientSide","serverSide"],validate:(t,{paginationAutoPageSize:o})=>o?"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,o)=>o.autoSizeStrategy?"colDef.flex is not supported with gridOptions.autoSizeStrategy":null},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(t,{rowSelection:o})=>o==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:o})=>o==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:o})=>o==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerValueGetter:{validate:t=>{const o=t.headerValueGetter;return typeof o=="function"||typeof o=="string"?null:"headerValueGetter must be a function or a valid string expression"}},icons:{validate:({icons:t})=>{if(t){if(t.smallDown)return Qr(262);if(t.smallLeft)return Qr(263);if(t.smallRight)return Qr(264)}return null}},sort:{validate:t=>fa(t.sort)||ci(t.sort)?null:`sort must be of type (SortDirection | SortDef), currently it is ${typeof t.sort=="object"?JSON.stringify(t.sort):Xd(t.sort)}`},initialSort:{validate:t=>fa(t.initialSort)||ci(t.initialSort)?null:`initialSort must be of non-null type (SortDirection | SortDef), currently it is ${typeof t.initialSort=="object"?JSON.stringify(t.initialSort):Xd(t.initialSort)}`},sortingOrder:{validate:t=>{const o=t.sortingOrder;if(Array.isArray(o)&&o.length>0){const r=o.filter(n=>!(fa(n)||ci(n)));if(r.length>0)return`sortingOrder must be an array of type non-null (SortDirection | SortDef)[], incorrect items are: [${r.map(n=>typeof n=="string"||n==null?Xd(n):JSON.stringify(n)).join(", ")}]`}else if(!Array.isArray(o)||!o.length)return`sortingOrder must be an array with at least one element, currently it is [${o}]`;return null}},type:{validate:t=>{const o=t.type;return o instanceof Array?o.some(n=>typeof n!="string")?"if colDef.type is supplied an array it should be of type 'string[]'":null:typeof o=="string"?null:"colDef.type should be of type 'string' | 'string[]'"}},rowSpan:{validate:(t,{suppressRowTransform:o})=>o?null:"colDef.rowSpan requires suppressRowTransform to be enabled."},spanRows:{dependencies:{editable:{required:[!1,void 0]},rowDrag:{required:[!1,void 0]},colSpan:{required:[void 0]},rowSpan:{required:[void 0]}},validate:(t,{rowSelection:o,cellSelection:r,suppressRowTransform:n,enableCellSpan:i,rowDragEntireRow:s,enableCellTextSelection:l})=>typeof o=="object"&&o?.mode==="singleRow"&&o?.enableClickSelection?"colDef.spanRows is not supported with rowSelection.clickSelection":r?"colDef.spanRows is not supported with cellSelection.":n?"colDef.spanRows is not supported with suppressRowTransform.":i?s?"colDef.spanRows is not supported with rowDragEntireRow.":l?"colDef.spanRows is not supported with enableCellTextSelection.":null:"colDef.spanRows requires enableCellSpan to be enabled."},groupHierarchy:{validate(t,{groupHierarchyConfig:o={}},r){const n=new Set(["year","quarter","month","formattedMonth","day","hour","minute","second"]),i=[];for(const s of t.groupHierarchy??[]){if(typeof s=="object"){r.validation?.validateColDef(s);continue}!n.has(s)&&!(s in o)&&i.push(AR(s))}if(i.length>0){const s=`The following parts of colDef.groupHierarchy are not recognised: ${i.join(", ")}.`,l=`Choose one of ${[...n].map(AR).join(", ")}, or define your own parts in gridOptions.groupHierarchyConfig.`;return`${s}
30
+ ${l}`}return null}}}),_U={headerName:void 0,columnGroupShow:void 0,headerStyle:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,headerTooltipValueGetter:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,spanRows:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,tooltipComponentSelector:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,context:void 0,dateComponent:void 0,dateComponentParams:void 0,getFindText:void 0,rowGroupingHierarchy:void 0,groupHierarchy:void 0,allowFormula:void 0},IU=()=>Object.keys(_U),BU=()=>({objectName:"colDef",allProperties:IU(),docsUrl:"column-properties/",deprecations:DU(),validations:AU()}),OU=["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"],LU=["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"],NU=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector","suppressOverlays"],_R=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDuration","cellFadeDuration","tabIndex","pivotMaxGeneratedColumns","rowDragInsertDelay"],zU=["theme","rowSelection"],HU=["cellSelection","sideBar","rowNumbers","suppressGroupChangesColumnVisibility","groupAggFiltering","suppressStickyTotalRow","groupHideParentOfSingleChild","enableRowPinning"],IR=["loadThemeGoogleFonts","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressColumnMoveAnimation","suppressMoveWhenColumnDragging","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","allowContextMenuWithControlKey","suppressContextMenu","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressFocusAfterRefresh","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","enableCellSpan","suppressClickEdit","rowDragEntireRow","rowDragManaged","refreshAfterGroupEdit","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","reactiveCustomComponents","applyQuickFilterBeforePivotOrAgg","suppressServerSideFullWidthLoadingRow","suppressAdvancedFilterEval","loading","maintainColumnOrder","enableStrictPivotColumnOrder","suppressSetFilterByDefault","enableFilterHandlers","suppressStartEditOnTab","hidePaddedHeaderRows","ssrmExpandAllAffectsAllRows","animateColumnResizing"],VU=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","overlayComponent","loadingOverlayComponent","noRowsOverlayComponent","overlayComponentSelector","activeOverlay","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getFullRowEditValidationErrors","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","sendToClipboard","focusGridInnerElement","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","chartMenuItems","groupTotalRow","alwaysPassFilter","isRowPinnable","isRowPinned","isRowValidDropPosition"],GU=()=>[...NU,...LU,...OU,..._R,...VU,...IR,...HU,...zU],jU=()=>({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 sn(e,t,o){return typeof t=="number"||t==null?t==null||t>=o?null:`${e}: value should be greater than or equal to ${o}`:`${e}: value should be a number`}var WU={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"},qU=()=>{const e={autoSizePadding:{validate({autoSizePadding:o}){return sn("autoSizePadding",o,0)}},cacheBlockSize:{supportedRowModels:["serverSide","infinite"],validate({cacheBlockSize:o}){return sn("cacheBlockSize",o,1)}},cacheOverflowSize:{validate({cacheOverflowSize:o}){return sn("cacheOverflowSize",o,1)}},datasource:{supportedRowModels:["infinite"]},domLayout:{validate:o=>{const r=o.domLayout,n=["autoHeight","normal","print"];return r&&!n.includes(r)?`domLayout must be one of [${n.join()}], currently it's ${r}`:null}},enableFillHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeSelection:{dependencies:{rowDragEntireRow:{required:[!1,void 0]}}},enableRowPinning:{supportedRowModels:["clientSide"],validate({enableRowPinning:o,pinnedTopRowData:r,pinnedBottomRowData:n}){return o&&(r||n)?"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:o,isRowPinnable:r,pinnedTopRowData:n,pinnedBottomRowData:i}){return r&&(n||i)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinnable`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!o&&r?"`isRowPinnable` requires `enableRowPinning` to be set.":null}},isRowPinned:{supportedRowModels:["clientSide"],validate({enableRowPinning:o,isRowPinned:r,pinnedTopRowData:n,pinnedBottomRowData:i}){return r&&(n||i)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinned`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!o&&r?"`isRowPinned` requires `enableRowPinning` to be set.":null}},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupHideOpenParents:{supportedRowModels:["clientSide","serverSide"],dependencies:{groupTotalRow:{required:[void 0,"bottom"]},treeData:{required:[void 0,!1],reason:"Tree Data has values at the group level so it doesn't make sense to hide them."}}},groupHideParentOfSingleChild:{dependencies:{groupHideOpenParents:{required:[void 0,!1]}}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveSingleChildren:{required:[void 0,!1]}}},groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveLowestSingleChildren:{required:[void 0,!1]}}},groupSelectsChildren:{dependencies:{rowSelection:{required:["multiple"]}}},groupHierarchyConfig:{validate({groupHierarchyConfig:o={}},r,n){for(const i of Object.keys(o))n.validation?.validateColDef(o[i]);return null}},icons:{validate:({icons:o})=>{if(o){if(o.smallDown)return Qr(262);if(o.smallLeft)return Qr(263);if(o.smallRight)return Qr(264)}return null}},infiniteInitialRowCount:{validate({infiniteInitialRowCount:o}){return sn("infiniteInitialRowCount",o,1)}},initialGroupOrderComparator:{supportedRowModels:["clientSide"]},ssrmExpandAllAffectsAllRows:{validate:o=>{if(typeof o.ssrmExpandAllAffectsAllRows=="boolean"){if(o.rowModelType!=="serverSide")return"'ssrmExpandAllAffectsAllRows' is only supported with the Server Side Row Model.";if(o.ssrmExpandAllAffectsAllRows&&typeof o.getRowId!="function")return"'getRowId' callback must be provided for Server Side Row Model grouping to work correctly."}return null}},keepDetailRowsCount:{validate({keepDetailRowsCount:o}){return sn("keepDetailRowsCount",o,1)}},paginationPageSize:{validate({paginationPageSize:o}){return sn("paginationPageSize",o,1)}},paginationPageSizeSelector:{validate:o=>{const r=o.paginationPageSizeSelector;return typeof r=="boolean"||r==null||r.length?null:`'paginationPageSizeSelector' cannot be an empty array.
31
+ 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:o}){return sn("rowBuffer",o,0)}},rowClass:{validate:o=>typeof o.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:o}){return o&&typeof o=="string"?'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.':o&&typeof o!="object"?"Expected `RowSelectionOptions` object for the `rowSelection` property.":o&&o.mode!=="multiRow"&&o.mode!=="singleRow"?`Selection mode "${o.mode}" is invalid. Use one of 'singleRow' or 'multiRow'.`:null}},rowStyle:{validate:o=>{const r=o.rowStyle;return r&&typeof r=="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:o}){return sn("serverSideInitialRowCount",o,1)}},serverSideOnlyRefreshFilteredGroups:{supportedRowModels:["serverSide"]},serverSideSortAllLevels:{supportedRowModels:["serverSide"]},sortingOrder:{validate:o=>{const r=o.sortingOrder;if(Array.isArray(r)&&r.length>0){const n=r.filter(i=>!Tr(i));if(n.length>0)return`sortingOrder must be an array of type (SortDirection | SortDef)[], incorrect items are: ${n.map(i=>typeof i=="string"||i==null?Xd(i):JSON.stringify(i))}]`}else if(!Array.isArray(r)||!r.length)return`sortingOrder must be an array with at least one element, currently it's ${r}`;return null}},tooltipHideDelay:{validate:o=>o.tooltipHideDelay&&o.tooltipHideDelay<0?"tooltipHideDelay should not be lower than 0":null},tooltipShowDelay:{validate:o=>o.tooltipShowDelay&&o.tooltipShowDelay<0?"tooltipShowDelay should not be lower than 0":null},treeData:{supportedRowModels:["clientSide","serverSide"],validate:o=>{const r=o.rowModelType??"clientSide";switch(r){case"clientSide":{const{treeDataChildrenField:n,treeDataParentIdField:i,getDataPath:s,getRowId:l}=o;if(!n&&!i&&!s)return"treeData requires either 'treeDataChildrenField' or 'treeDataParentIdField' or 'getDataPath' in the clientSide row model.";if(n){if(s)return"Cannot use both 'treeDataChildrenField' and 'getDataPath' at the same time.";if(i)return"Cannot use both 'treeDataChildrenField' and 'treeDataParentIdField' at the same time."}if(i){if(!l)return"getRowId callback not provided, tree data with parent id cannot be built.";if(s)return"Cannot use both 'treeDataParentIdField' and 'getDataPath' at the same time."}return null}case"serverSide":{const n=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${r} row model.`;return o.isServerSideGroup&&o.getServerSideGroupKey?null:n}}return null}},viewportDatasource:{supportedRowModels:["viewport"]},viewportRowModelBufferSize:{validate({viewportRowModelBufferSize:o}){return sn("viewportRowModelBufferSize",o,0)}},viewportRowModelPageSize:{validate({viewportRowModelPageSize:o}){return sn("viewportRowModelPageSize",o,1)}},rowDragEntireRow:{dependencies:{cellSelection:{required:[void 0]}}},autoGroupColumnDef:{validate({autoGroupColumnDef:o,showOpenedGroup:r}){return o?.field&&r?"autoGroupColumnDef.field and showOpenedGroup are not supported when used together.":o?.valueGetter&&r?"autoGroupColumnDef.valueGetter and showOpenedGroup are not supported when used together.":null}},renderingMode:{validate:o=>{const r=o.renderingMode,n=["default","legacy"];return r&&!n.includes(r)?`renderingMode must be one of [${n.join()}], currently it's ${r}`:null}},autoSizeStrategy:{validate:({autoSizeStrategy:o})=>{if(!o)return null;const r=["fitCellContents","fitGridWidth","fitProvidedWidth"],n=o.type;return n!=="fitCellContents"&&n!=="fitGridWidth"&&n!=="fitProvidedWidth"?`Invalid Auto-size strategy. \`autoSizeStrategy\` must be one of ${r.map(i=>'"'+i+'"').join(", ")}, currently it's ${n}`:n==="fitProvidedWidth"&&typeof o.width!="number"?`When using the 'fitProvidedWidth' auto-size strategy, must provide a numeric \`width\`. You provided ${o.width}`:null}}},t={};for(const o of IR)t[o]={expectedType:"boolean"};for(const o of _R)t[o]={expectedType:"number"};return po(t,e),t},UU=()=>({objectName:"gridOptions",allProperties:[...GU(),...Object.values(yv)],propertyExceptions:["api"],docsUrl:"grid-options/",deprecations:jU(),validations:qU()}),$U=0,KU=0,BR="__ag_grid_instance",XU=class extends ue{constructor(){super(...arguments),this.beanName="gos",this.domDataKey="__AG_"+Math.random().toString(),this.instanceId=KU++,this.gridReadyFired=!1,this.queueEvents=[],this.propEventSvc=new Ki,this.globalEventHandlerFactory=e=>(t,o)=>{if(!this.isAlive())return;const r=EU.has(t);if(r&&!e||!r&&e||!ZU(t))return;const n=(i,s)=>{const l=yv[i],u=this.gridOptions[l];typeof u=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>u(s))};if(this.gridReadyFired)n(t,o);else if(t==="gridReady"){n(t,o),this.gridReadyFired=!0;for(const i of this.queueEvents)n(i.eventName,i.event);this.queueEvents=[]}else this.queueEvents.push({eventName:t,event:o})}}wireBeans(e){this.gridOptions=e.gridOptions,this.validation=e.validation,this.api=e.gridApi,this.gridId=e.context.getId()}get gridOptionsContext(){return this.gridOptions.context}postConstruct(){this.validateGridOptions(this.gridOptions),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory().bind(this),!0),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.propEventSvc.setFrameworkOverrides(this.beans.frameworkOverrides),this.addManagedEventListeners({gridOptionsChanged:({options:e})=>{this.updateGridOptions({options:e,force:!0,source:"optionsUpdated"})}})}destroy(){super.destroy(),this.queueEvents=[]}get(e){return this.gridOptions[e]??ak[e]}getCallback(e){return this.mergeGridCommonParams(this.gridOptions[e])}exists(e){return xe(this.gridOptions[e])}mergeGridCommonParams(e){return e&&(o=>e(this.addCommon(o)))}updateGridOptions({options:e,force:t,source:o="api"}){const r={id:$U++,properties:[]},n=[],{gridOptions:i,validation:s}=this;for(const l of Object.keys(e)){const u=fm.applyGlobalGridOption(l,e[l]);s?.warnOnInitialPropertyUpdate(o,l);const d=t||typeof u=="object"&&o==="api",h=i[l];if(d||h!==u){i[l]=u;const p={type:l,currentValue:u,previousValue:h,changeSet:r,source:o};n.push(p)}}this.validateGridOptions(this.gridOptions),r.properties=n.map(l=>l.type);for(const l of n)Ud(this,`Updated property ${l.type} from`,l.previousValue," to ",l.currentValue),this.propEventSvc.dispatchEvent(l)}addPropertyEventListener(e,t){this.propEventSvc.addEventListener(e,t)}removePropertyEventListener(e,t){this.propEventSvc.removeEventListener(e,t)}getDomDataKey(){return this.domDataKey}addCommon(e){return e.api=this.api,e.context=this.gridOptionsContext,e}validateOptions(e,t){for(const o of Object.keys(e)){const r=e[o];if(r==null||r===!1)continue;let n=t[o];typeof n=="function"&&(n=n(e,this.gridOptions,this.beans)),n&&this.assertModuleRegistered(n,o)}}validateGridOptions(e){this.validateOptions(e,WU),this.validation?.processGridOptions(e)}validateColDef(e,t,o){(o||!this.beans.dataTypeSvc?.isColPendingInference(t))&&(this.validateOptions(e,MU),this.validation?.validateColDef(e))}assertModuleRegistered(e,t){const o=Array.isArray(e)?e.some(r=>this.isModuleRegistered(r)):this.isModuleRegistered(e);return o||yt(200,{...this.getModuleErrorParams(),moduleName:e,reasonOrId:t}),o}getModuleErrorParams(){return{gridId:this.gridId,gridScoped:gm(),rowModelType:this.get("rowModelType"),isUmd:hk()}}isModuleRegistered(e){return pm(e,this.gridId,this.get("rowModelType"))}setInstanceDomData(e){e[BR]=this.instanceId}isElementInThisInstance(e){let t=e;for(;t;){const o=t[BR];if(xe(o))return o===this.instanceId;t=t.parentElement}return!1}};function ZU(e){return!!yv[e]}var YU=class extends ue{constructor(e,t){super(),this.column=e,this.eGui=t,this.lastMovingChanged=0}postConstruct(){this.addManagedElementListeners(this.eGui,{click:e=>e&&this.onClick(e)}),this.addManagedListeners(this.column,{movingChanged:()=>{this.lastMovingChanged=Date.now()}})}onClick(e){const{sortSvc:t,rangeSvc:o,gos:r}=this.beans;if(!(da(r)?e.altKey:!0))o?.handleColumnSelection(this.column,e);else if(this.column.isSortable()){const i=this.column.isMoving(),l=Date.now()-this.lastMovingChanged<50;i||l||t?.progressSortFromEvent(this.column,e)}}};function QU(e,t){const o={"aria-hidden":"true"};return{tag:"div",cls:"ag-cell-label-container",role:"presentation",children:[{tag:"span",ref:"eMenu",cls:"ag-header-icon ag-header-cell-menu-button",attrs:o},{tag:"span",ref:"eFilterButton",cls:"ag-header-icon ag-header-cell-filter-button",attrs:o},{tag:"div",ref:"eLabel",cls:"ag-header-cell-label",role:"presentation",children:[e?{tag:"span",ref:"eColRef",cls:"ag-header-col-ref"}:null,{tag:"span",ref:"eText",cls:"ag-header-cell-text"},{tag:"span",ref:"eFilter",cls:"ag-header-icon ag-header-label-icon ag-filter-icon",attrs:o},t?{tag:"ag-sort-indicator",ref:"eSortIndicator"}:null]}]}}var JU=class extends ko{constructor(){super(...arguments),this.eFilter=Me,this.eFilterButton=Me,this.eSortIndicator=Me,this.eMenu=Me,this.eLabel=Me,this.eText=Me,this.eColRef=Me,this.eSortOrder=Me,this.eSortAsc=Me,this.eSortDesc=Me,this.eSortMixed=Me,this.eSortNone=Me,this.eSortAbsoluteAsc=Me,this.eSortAbsoluteDesc=Me,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 o={...e};po(o,e.innerHeaderComponentParams),this.innerHeaderComponent.refresh?.(o)}else this.setDisplayName(e);return!0}workOutTemplate(e,t){const{formula:o}=this.beans,r=e.template;return r?r?.trim?r.trim():r:QU(!!o?.active,t)}init(e){this.params=e;const{sortSvc:t,touchSvc:o,rowNumbersSvc:r,userCompFactory:n}=this.beans,i=t?.getSortIndicatorSelector();this.currentTemplate=this.workOutTemplate(e,!!i),this.setTemplate(this.currentTemplate,i?[i]:void 0),this.eLabel&&(this.mouseListener??(this.mouseListener=this.createManagedBean(new YU(e.column,this.eLabel)))),o?.setupForHeader(this),this.setMenu(),this.setupSort(),this.setupColumnRefIndicator(),r?.setupForHeader(this),this.setupFilterIcon(),this.setupFilterButton(),this.workOutInnerHeaderComponent(n,e),this.setDisplayName(e)}workOutInnerHeaderComponent(e,t){const o=U7(e,t,t);o&&(this.isLoadingInnerComponent=!0,o.newAgStackInstance().then(r=>{this.isLoadingInnerComponent=!1,r&&(this.isAlive()?(this.innerHeaderComponent=r,this.eText&&this.eText.appendChild(r.getGui())):this.destroyBean(r))}))}setDisplayName(e){const{displayName:t}=e,o=this.currentDisplayName;this.currentDisplayName=t,!(!this.eText||o===t||this.innerHeaderComponent||this.isLoadingInnerComponent)&&(this.eText.textContent=$l(t))}addInIcon(e,t,o){const r=mi(e,this.beans,o);r&&t.appendChild(r)}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){ia(this.eMenu),this.eMenu=void 0;return}const{gos:e,eMenu:t,params:o}=this,r=Vo(e);this.addInIcon(r?"menu":"menuAlt",t,o.column),t.classList.toggle("ag-header-menu-icon",!r);const n=this.shouldSuppressMenuHide();this.currentSuppressMenuHide=n,this.addManagedElementListeners(t,{click:()=>this.showColumnMenu(this.eMenu)}),this.toggleMenuAlwaysShow(n)}toggleMenuAlwaysShow(e){this.eMenu?.classList.toggle("ag-header-menu-always-show",e)}showColumnMenu(e){const{currentSuppressMenuHide:t,params:o}=this;t||this.toggleMenuAlwaysShow(!0),o.showColumnMenu(e,()=>{t||this.toggleMenuAlwaysShow(!1)})}onMenuKeyboardShortcut(e){const{params:t,gos:o,beans:r,eMenu:n,eFilterButton:i}=this,s=t.column,l=Vo(o);if(e&&!l){if(r.menuSvc?.isFilterMenuInHeaderEnabled(s))return t.showFilter(i??n??this.getGui()),!0}else if(t.enableMenu)return this.showColumnMenu(n??i??this.getGui()),!0;return!1}setupSort(){const{sortSvc:e}=this.beans;if(!e)return;const{enableSorting:t,column:o}=this.params;if(this.currentSort=t,!this.eSortIndicator){this.eSortIndicator=this.createBean(e.createSortIndicator(!0));const{eSortIndicator:r,eSortOrder:n,eSortAsc:i,eSortDesc:s,eSortMixed:l,eSortNone:u,eSortAbsoluteAsc:d,eSortAbsoluteDesc:h}=this;r.attachCustomElements(n,i,s,l,u,d,h)}this.eSortIndicator.setupSort(o),this.currentSort&&e.setupHeader(this,o)}setupColumnRefIndicator(){const{eColRef:e,beans:{editModelSvc:t},params:o}=this;e&&(this.currentRef=o.column.formulaRef,e.textContent=this.currentRef,gt(e,!1),this.addManagedEventListeners({cellEditingStarted:()=>{const r=t?.getEditPositions(),n=!!this.currentRef&&!!r?.some(i=>i.column.isAllowFormula());gt(e,n)},cellEditingStopped:()=>{gt(e,!1)}}))}setupFilterIcon(){const{eFilter:e,params:t}=this;if(!e)return;const o=()=>{const r=t.column.isFilterActive();gt(e,r,{skipAriaHidden:!0})};this.configureFilter(t.enableFilterIcon,e,o,"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,o,r){if(!e)return ia(t),!1;const n=this.params.column;return this.addInIcon(r,t,n),this.addManagedListeners(n,{filterChanged:o}),o(),!0}onFilterChangedButton(){const e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",e)}getAnchorElementForMenu(e){const{eFilterButton:t,eMenu:o}=this;return e?t??o??this.getGui():o??t??this.getGui()}destroy(){super.destroy(),this.innerHeaderComponent=this.destroyBean(this.innerHeaderComponent),this.mouseListener=this.destroyBean(this.mouseListener)}},e$={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"}]},t$=class extends ko{constructor(){super(e$),this.agOpened=Me,this.agClosed=Me,this.agLabel=Me,this.isLoadingInnerComponent=!1}init(e){const{userCompFactory:t,touchSvc:o}=this.beans;this.params=e,this.checkWarnings(),this.workOutInnerHeaderGroupComponent(t,e),this.setupLabel(e),this.addGroupExpandIcon(e),this.setupExpandIcons(),o?.setupForHeaderGroup(this)}checkWarnings(){this.params.template&&pe(89)}workOutInnerHeaderGroupComponent(e,t){const o=K7(e,t,t);o&&(this.isLoadingInnerComponent=!0,o.newAgStackInstance().then(r=>{this.isLoadingInnerComponent=!1,r&&(this.isAlive()?(this.innerHeaderGroupComponent=r,this.agLabel.appendChild(r.getGui())):this.destroyBean(r))}))}setupExpandIcons(){const{agOpened:e,agClosed:t,params:{columnGroup:o},beans:{colGroupSvc:r}}=this;this.addInIcon("columnGroupOpened",e),this.addInIcon("columnGroupClosed",t);const n=u=>{if(Ln(u))return;const d=!o.isExpanded();r.setColumnGroupOpened(o.getProvidedColumnGroup(),d,"uiColumnExpanded")};this.addTouchAndClickListeners(t,n),this.addTouchAndClickListeners(e,n);const i=u=>{hc(u)};this.addManagedElementListeners(t,{dblclick:i}),this.addManagedElementListeners(e,{dblclick:i}),this.addManagedElementListeners(this.getGui(),{dblclick:n}),this.updateIconVisibility();const s=o.getProvidedColumnGroup(),l=this.updateIconVisibility.bind(this);this.addManagedListeners(s,{expandedChanged:l,expandableChanged:l})}addTouchAndClickListeners(e,t){this.beans.touchSvc?.setupForHeaderGroupElement(this,e,t),this.addManagedElementListeners(e,{click:t})}updateIconVisibility(){const{agOpened:e,agClosed:t,params:{columnGroup:o}}=this;if(o.isExpandable()){const r=o.isExpanded();gt(e,r),gt(t,!r)}else gt(e,!1),gt(t,!1)}addInIcon(e,t){const o=mi(e,this.beans,null);o&&t.appendChild(o)}addGroupExpandIcon(e){if(!e.columnGroup.isExpandable()){const{agOpened:t,agClosed:o}=this;gt(t,!1),gt(o,!1)}}setupLabel(e){const{displayName:t,columnGroup:o}=e,{innerHeaderGroupComponent:r,isLoadingInnerComponent:n}=this,i=r||n;xe(t)&&!i&&(this.agLabel.textContent=$l(t)),this.toggleCss("ag-sticky-label",!o.getColGroupDef()?.suppressStickyLabel)}destroy(){super.destroy(),this.innerHeaderGroupComponent&&(this.destroyBean(this.innerHeaderGroupComponent),this.innerHeaderGroupComponent=void 0)}},o$={moduleName:"ColumnHeaderComp",version:ze,userComponents:{agColumnHeader:JU},icons:{menu:"menu",menuAlt:"menu-alt"}},r$={moduleName:"ColumnGroupHeaderComp",version:ze,userComponents:{agColumnGroupHeader:t$},icons:{columnGroupOpened:"expanded",columnGroupClosed:"contracted"}},n$=class extends ue{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&&pe(92)}createTask(e,t,o,r,n=!1){this.verify();let i=o;r&&this.batchFrameworkComps&&(i="f1");const s={task:e,index:t,createOrder:++this.taskCount,deferred:n};this.addTaskToList(this[i],s),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((o,r)=>o.deferred!==r.deferred?o.deferred?-1:1:o.index!==r.index?t*(r.index-o.index):r.createOrder-o.createOrder),e.sorted=!0}addDestroyTask(e){this.verify(),this.destroyTasks.push(e),this.schedule()}executeFrame(e){const{p1:t,p2:o,f1:r,destroyTasks:n,beans:i}=this,{ctrlsSvc:s,frameworkOverrides:l}=i,u=t.list,d=o.list,h=r.list,p=Date.now();let g=0;const v=e<=0,b=s.getScrollFeature();for(;v||g<e;){if(!b.scrollGridIfNeeded()){let S;if(u.length)this.sortTaskList(t),S=u.pop().task;else if(d.length)this.sortTaskList(o),S=d.pop().task;else if(h.length)l.wrapOutgoing(()=>{for(;(v||g<e)&&!b.scrollGridIfNeeded();){if(h.length)this.sortTaskList(r),S=h.pop().task,S();else break;g=Date.now()-p}}),S=()=>{};else if(n.length)S=n.pop();else break;S()}g=Date.now()-p}u.length||d.length||h.length||n.length?this.requestFrame():this.ticking=!1}flushAllFrames(){this.active&&this.executeFrame(-1)}schedule(){this.active&&(this.ticking||(this.ticking=!0,this.requestFrame()))}requestFrame(){const e=this.executeFrame.bind(this,60);Mn(this.beans,e)}isQueueEmpty(){return!this.ticking}},i$={moduleName:"AnimationFrame",version:ze,beans:[n$]},s$=class extends ue{constructor(){super(...arguments),this.beanName="iconSvc"}createIconNoSpan(e,t){return mi(e,this.beans,t?.column)}},a$=class extends ue{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(!es())return;const t=(o,r,n)=>{const{rowCtrl:i,cellCtrl:s}=e.getControlsForEventTarget(n?.target??null);s?.column&&s.dispatchCellContextMenuEvent(n??null),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(void 0,n,i,s)};this.mockContextMenu(e,e.element,t)}handleCellDoubleClick(e,t){return(()=>{if(!es()||tk("dblclick"))return!1;const r=Date.now(),n=r-e.lastIPadMouseClickEvent<200;return e.lastIPadMouseClickEvent=r,n})()?(e.onCellDoubleClicked(t),t.preventDefault(),!0):!1}setupForHeader(e){const{gos:t,sortSvc:o,menuSvc:r}=this.beans;if(t.get("suppressTouch"))return;const{params:n,eMenu:i,eFilterButton:s}=e,l=new Pa(e.getGui(),!0);e.addDestroyFunc(()=>l.destroy());const u=e.shouldSuppressMenuHide(),d=u&&xe(i)&&n.enableMenu;let h=l;if(d&&(h=new Pa(i,!0),e.addDestroyFunc(()=>h.destroy())),n.enableMenu||r?.isHeaderContextMenuEnabled(n.column)){const p=d?"tap":"longTap",g=v=>n.showColumnMenuAfterMouseClick(v.touchStart);e.addManagedListeners(h,{[p]:g}),e.addManagedListeners(l,{longTap:g})}if(n.enableSorting){const p=g=>{const v=g.touchStart.target;u&&(i?.contains(v)||s?.contains(v))||o?.progressSort(n.column,!1,"uiColumnSorted")};e.addManagedListeners(l,{tap:p})}if(n.enableFilterButton&&s){const p=new Pa(s,!0);e.addManagedListeners(p,{tap:()=>n.showFilter(s)}),e.addDestroyFunc(()=>p.destroy())}}setupForHeaderGroup(e){const t=e.params;if(this.beans.menuSvc?.isHeaderContextMenuEnabled(t.columnGroup.getProvidedColumnGroup())){const o=new Pa(t.eGridHeader,!0),r=n=>t.showColumnMenuAfterMouseClick(n.touchStart);e.addManagedListeners(o,{longTap:r}),e.addDestroyFunc(()=>o.destroy())}}setupForHeaderGroupElement(e,t,o){const r=new Pa(t,!0);e.addManagedListeners(r,{tap:o}),e.addDestroyFunc(()=>r.destroy())}mockContextMenu(e,t,o){if(!es())return;const r=new Pa(t),n=i=>{ec(this.beans,i.touchEvent)&&o(void 0,i.touchStart,i.touchEvent)};e.addManagedListeners(r,{longTap:n}),e.addDestroyFunc(()=>r.destroy())}},l$={moduleName:"Touch",version:ze,beans:[a$]},c$=class extends ue{constructor(){super(...arguments),this.beanName="cellNavigation"}wireBeans(e){this.rowSpanSvc=e.rowSpanSvc}getNextCellToFocus(e,t,o=!1){return o?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)}getNextCellToFocusWithCtrlPressed(e,t){const o=e===te.UP,r=e===te.DOWN,n=e===te.LEFT;let i,s;const{pageBounds:l,gos:u,visibleCols:d,pinnedRowModel:h}=this.beans,{rowPinned:p}=t;if(o||r)p&&h?o?s=0:s=p==="top"?h.getPinnedTopRowCount()-1:h.getPinnedBottomRowCount()-1:s=o?l.getFirstRow():l.getLastRow(),i=t.column;else{const g=u.get("enableRtl");s=t.rowIndex,i=(n!==g?d.allCols:[...d.allCols].reverse()).find(b=>this.isCellGoodToFocusOn({rowIndex:s,rowPinned:null,column:b}))}return i?{rowIndex:s,rowPinned:p,column:i}:null}getNextCellToFocusWithoutCtrlPressed(e,t){let o=t,r=!1;for(;!r;){switch(e){case te.UP:o=this.getCellAbove(o);break;case te.DOWN:o=this.getCellBelow(o);break;case te.RIGHT:o=this.gos.get("enableRtl")?this.getCellToLeft(o):this.getCellToRight(o);break;case te.LEFT:o=this.gos.get("enableRtl")?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,pe(8,{key:e});break}o?r=this.isCellGoodToFocusOn(o):r=!0}return o}isCellGoodToFocusOn(e){const t=e.column;let o;const{pinnedRowModel:r,rowModel:n}=this.beans;switch(e.rowPinned){case"top":o=r?.getPinnedTopRow(e.rowIndex);break;case"bottom":o=r?.getPinnedBottomRow(e.rowIndex);break;default:o=n.getRow(e.rowIndex);break}return o?!this.isSuppressNavigable(t,o):!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,o=eR(this.beans,t,!0);return o?{rowIndex:o.rowIndex,column:e.column,rowPinned:o.rowPinned}:null}getCellAbove(e){if(!e)return null;const t=this.rowSpanSvc?.getCellStart(e)??e,o=kh(this.beans,{rowIndex:t.rowIndex,rowPinned:t.rowPinned},!0);return o?{rowIndex:o.rowIndex,column:e.column,rowPinned:o.rowPinned}:null}getNextTabbedCell(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)}getNextTabbedCellForwards(e){const{visibleCols:t,pagination:o}=this.beans,r=t.allCols;let n=e.rowIndex,i=e.rowPinned,s=t.getColAfter(e.column);if(!s){s=r[0];const l=eR(this.beans,e,!0);if(Ht(l)||!l.rowPinned&&!(o?.isRowInPage(l.rowIndex)??!0))return null;n=l?l.rowIndex:null,i=l?l.rowPinned:null}return{rowIndex:n,column:s,rowPinned:i}}getNextTabbedCellBackwards(e){const{beans:t}=this,{visibleCols:o,pagination:r}=t,n=o.allCols;let i=e.rowIndex,s=e.rowPinned,l=o.getColBefore(e.column);if(!l){l=st(n);const u=kh(t,{rowIndex:e.rowIndex,rowPinned:e.rowPinned},!0);if(Ht(u)||!u.rowPinned&&!(r?.isRowInPage(u.rowIndex)??!0))return null;i=u?u.rowIndex:null,s=u?u.rowPinned:null}return{rowIndex:i,column:l,rowPinned:s}}isSuppressNavigable(e,t){const{suppressNavigable:o}=e.colDef;if(typeof o=="boolean")return o;if(typeof o=="function"){const r=e.createColumnFunctionCallbackParams(t);return o(r)}return!1}};function u$(e){return e.focusSvc.getFocusedCell()}function d$(e){return e.focusSvc.clearFocusedCell()}function h$(e,t,o,r){e.focusSvc.setFocusedCell({rowIndex:t,column:o,rowPinned:r,forceBrowserFocus:!0})}function f$(e,t){return e.navigation?.tabToNextCell(!1,t)??!1}function p$(e,t){return e.navigation?.tabToNextCell(!0,t)??!1}function g$(e,t,o=!1){const r=e.headerNavigation?.getHeaderPositionForColumn(t,o);r&&e.focusSvc.focusHeaderPosition({headerPosition:r})}var m$=class extends ue{constructor(){super(...arguments),this.beanName="editModelSvc",this.edits=new Map,this.cellValidations=new OR,this.rowValidations=new LR,this.suspendEdits=!1}suspend(e){this.suspendEdits=e}removeEdits({rowNode:e,column:t}){if(!this.hasEdits({rowNode:e})||!e)return;const o=this.getEditRow(e);t?o.delete(t):o.clear(),o.size===0&&this.edits.delete(e)}getEditRow(e,t={}){if(this.suspendEdits||this.edits.size===0)return;const o=e&&this.edits.get(e);if(o)return o;if(t.checkSiblings){const r=e.pinnedSibling;if(r)return this.getEditRow(r)}}getEditRowDataValue(e,{checkSiblings:t}={}){if(!e||this.edits.size===0)return;const o=this.getEditRow(e),r=e.pinnedSibling,n=t&&r&&this.getEditRow(r);if(!o&&!n)return;const i=Object.assign({},e.data),s=(l,u)=>l.forEach(({pendingValue:d},h)=>{d!==rr&&(u[h.getColId()]=d)});return o&&s(o,i),n&&s(n,i),i}getEdit(e,t){const o=this._getEdit(e);return t&&o?{...o}:o}_getEdit(e){if(!this.suspendEdits&&this.edits.size!==0)return e.rowNode&&e.column&&this.getEditRow(e.rowNode)?.get(e.column)}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((o,r)=>{const n=new Map;o.forEach(({editorState:i,...s},l)=>n.set(l,{...s})),t.set(r,n)}),t}setEditMap(e){this.edits.clear(),e.forEach((t,o)=>{const r=new Map;t.forEach((n,i)=>r.set(i,{...n})),this.edits.set(o,r)})}setEdit(e,t){(this.edits.size===0||!this.edits.has(e.rowNode))&&this.edits.set(e.rowNode,new Map);const o=this._getEdit(e),r=Object.assign({editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0},...o,...t});return this.getEditRow(e.rowNode).set(e.column,r),r}clearEditValue(e){const{rowNode:t,column:o}=e;if(t)if(o){const r=this._getEdit(e);r&&(r.editorValue=void 0,r.pendingValue=r.sourceValue,r.state="changed")}else this.getEditRow(t)?.forEach(r=>{r.editorValue=void 0,r.pendingValue=r.sourceValue,r.state="changed"})}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((o,r)=>{for(const n of o.keys()){const{editorState:i,...s}=o.get(n);t.push({rowNode:r,column:n,...s})}}),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:o,column:r}=e,{withOpenEditor:n}=t;if(o){const i=this.getEditRow(o,t);return i?r?n?this.getEdit(e)?.state==="editing":i.has(r)??!1:i.size!==0?n?Array.from(i.values()).some(({state:s})=>s==="editing"):!0:!1:!1}return n?this.getEditPositions().some(({state:i})=>i==="editing"):this.edits.size>0}start(e){const t=this.getEditRow(e.rowNode)??new Map,{rowNode:o,column:r}=e;r&&!t.has(r)&&t.set(r,{editorValue:void 0,pendingValue:rr,sourceValue:this.beans.valueSvc.getValue(r,o,!1,"api"),state:"editing",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}}),this.edits.set(o,t)}stop(e){this.hasEdits(e)&&(e?this.removeEdits(e):this.clear())}clear(){for(const e of this.edits.values())e.clear();this.edits.clear()}getCellValidationModel(){return this.cellValidations}getRowValidationModel(){return this.rowValidations}setCellValidationModel(e){this.cellValidations=e}setRowValidationModel(e){this.rowValidations=e}destroy(){super.destroy(),this.clear()}},OR=class{constructor(){this.cellValidations=new Map}getCellValidation(e){const{rowNode:t,column:o}=e||{};return this.cellValidations?.get(t)?.get(o)}hasCellValidation(e){return!e?.rowNode||!e.column?this.cellValidations.size>0:!!this.getCellValidation(e)}setCellValidation(e,t){const{rowNode:o,column:r}=e;this.cellValidations.has(o)||this.cellValidations.set(o,new Map),this.cellValidations.get(o).set(r,t)}clearCellValidation(e){const{rowNode:t,column:o}=e;this.cellValidations.get(t)?.delete(o)}setCellValidationMap(e){this.cellValidations=e}getCellValidationMap(){return this.cellValidations}clearCellValidationMap(){this.cellValidations.clear()}},LR=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 Th(e,t={}){const{rowIndex:o,rowId:r,rowCtrl:n,rowPinned:i}=t;if(n)return n;const{rowModel:s,rowRenderer:l}=e;let{rowNode:u}=t;return u||(r?u=Rj(e,r,i):o!=null&&(u=s.getRow(o))),l.getRowCtrls(u?[u]:[])?.[0]}function bt(e,t={}){const{cellCtrl:o,colId:r,columnId:n,column:i}=t;if(o)return o;const s=e.colModel.getCol(r??n??Sv(i)),l=t.rowCtrl??Th(e,t),u=l?.getCellCtrl(s)??void 0;if(u)return u;const d=t.rowNode??l?.rowNode;if(d)return e.rowRenderer.getCellCtrls([d],[s])?.[0]}function NR(e){const{editSvc:t}=e;t?.isBatchEditing()?(vi(e,{persist:!0}),Ma(e)):t?.stopEditing(void 0,{source:"api"})}function v$(e,t,o){const{gos:r,popupSvc:n}=t;if(!r.get("stopEditingWhenCellsLoseFocus"))return;const i=s=>{const l=s.relatedTarget;if(Bm(l)===null){NR(t);return}let u=o.some(d=>d.contains(l))&&r.isElementInThisInstance(l);u||(u=!!n&&(n.getActivePopups().some(d=>d.contains(l))||n.isElementWithinCustomPopup(l))),u||NR(t)};for(const s of o)e.addManagedElementListeners(s,{focusout:i})}function Sv(e){if(e)return typeof e=="string"?e:e.getColId()}var rr=Symbol("unedited");function zR(e,t={}){const o=[],r=e.rowRenderer.getCellCtrls(t.rowNodes,t.columns);for(const n of r){const i=n.comp?.getCellEditor();i&&o.push({ctrl:n,editor:Rm(i)})}return o}var b$=(e,t={})=>zR(e,t).map(o=>o.editor);function C$(e,t,o,r,n,i){t.length===0&&o?.rowNode&&o?.column&&Ta(e,o,{key:r,event:n,cellStartedEdit:i});const{valueSvc:s,editSvc:l,editModelSvc:u}=e,{rowNode:d,column:h}=o??{};for(const p of t){const{rowNode:g,column:v}=p,b=bt(e,p);if(!b){if(g&&v){const S=s.getValue(v,g,void 0,"api"),R=(o?.rowNode===g&&o?.column===v&&r||void 0)??l?.getCellDataValue(p,!1)??s.getValueForDisplay({column:v,node:g})?.value??S??rr;u?.setEdit(p,{pendingValue:Da(e,R,!1,v),sourceValue:S,state:"editing"})}continue}const C=i&&d===b.rowNode&&b.column===h;Ta(e,{rowNode:d,column:b.column},{key:C?r:null,event:C?n:null,cellStartedEdit:C&&i})}}function an({pendingValue:e,sourceValue:t}){return e===rr&&(e=t),e!==t}function Ta(e,t,o){const{key:r,event:n,cellStartedEdit:i,silent:s}=o??{},{editModelSvc:l,editSvc:u,gos:d,userCompFactory:h}=e,p=bt(e,t),g=p?.comp?.getCellEditor(),v=VR(e,t,r,i&&!s),b=t.column.isAllowFormula(),C=l?.getEdit(t),S=v.value??C?.sourceValue;if(g){l?.setEdit(t,{editorValue:Da(e,S,!0,t.column),state:"editing"}),g.refresh?.(v);return}const k=t.column.getColDef(),F=$k(h,b?{...k,cellEditor:"agTextCellEditor"}:k,v);if(!F)return;const{popupFromSelector:R,popupPositionFromSelector:P}=F,T=R??!!k.cellEditorPopup,D=P??k.cellEditorPopupPosition;if(GR(F.params,n),!p)return;const{rangeFeature:M,rowCtrl:O,comp:I,onEditorAttachedFuncs:z}=p;l?.setEdit(t,{editorValue:Da(e,S,!0,t.column),state:"editing"}),p.editCompDetails=F,z.push(()=>M?.unsetComp()),I?.setEditDetails(F,T,D,d.get("reactiveCustomComponents")),O?.refreshRow({suppressFlash:!0});const U=l?.getEdit(t,!0);!s&&!U?.editorState?.cellStartedEditing&&(u?.dispatchCellEvent(t,n,"cellEditingStarted",{value:S}),l?.setEdit(t,{editorState:{cellStartedEditing:!0}}))}function HR(e,t,o){const r={editorValueExists:!1};if(xv(e)&&(t.getValidationErrors?.()?.length??0)>0||o?.isCancelling)return r;if(o?.isStopping){const i=t?.isCancelAfterEnd?.();if(i)return{...r,isCancelAfterEnd:i}}return{editorValue:t.getValue(),editorValueExists:!0}}function VR(e,t,o,r){const{valueSvc:n,gos:i,editSvc:s}=e,l=e.gos.get("enableGroupEdit"),u=bt(e,t),d=t.rowNode?.rowIndex??void 0,h=s?.isBatchEditing(),p=e.colModel.getCol(t.column.getId()),{rowNode:g,column:v}=t,b=u.comp?.getCellEditor(),C=s?.getCellDataValue(t,!1),S=C===void 0?b?HR(e,b)?.editorValue:void 0:C,k=S===rr?n.getValueForDisplay({column:p,node:g})?.value:S;let F=l?S:k;return v.isAllowFormula()&&e.formula?.isFormula(F)&&(F=e.formula?.normaliseFormula(F,!0)??F),je(i,{value:F,eventKey:o??null,column:v,colDef:v.getColDef(),rowIndex:d,node:g,data:g.data,cellStartedEdit:r??!1,onKeyDown:u?.onKeyDown.bind(u),stopEditing:R=>{s.stopEditing(t,{source:h?"ui":"api",suppressNavigateAfterEdit:R}),bc(e,t)},eGridCell:u?.eGui,parseValue:R=>n.parseValue(p,g,R,u?.value),formatValue:u?.formatValue.bind(u),validate:()=>{s?.validateEdit()}})}function Dh(e,t){const{editModelSvc:o}=e;o?.getEditMap().forEach((r,n)=>{r.forEach((i,s)=>{!t&&(i.state==="editing"||i.pendingValue===rr)||!an(i)&&(i.state!=="editing"||t)&&o?.removeEdits({rowNode:n,column:s})})})}function w$(e,t){const o=t.comp?.getCellEditor();if(!o?.refresh)return;const{eventKey:r,cellStartedEdit:n}=t.editCompDetails.params,{column:i}=t,s=VR(e,t,r,n),l=i.getColDef(),u=$k(e.userCompFactory,l,s);o.refresh(GR(u.params,r))}function GR(e,t){return t instanceof KeyboardEvent&&e.column.getColDef().cellEditor==="agNumberCellEditor"?e.suppressPreventDefault=["-","+",".","e"].includes(t?.key??"")||e.suppressPreventDefault:t?.preventDefault?.(),e}function vi(e,t){for(const o of e.editModelSvc?.getEditPositions()??[]){const r=bt(e,o);if(!r)continue;const n=r.comp?.getCellEditor();if(!n)continue;const{editorValue:i,editorValueExists:s,isCancelAfterEnd:l}=HR(e,n,t);l&&e.editModelSvc?.setEdit(o,{editorState:{isCancelAfterEnd:l}}),Mh(e,o,i,void 0,!s,t)}}function Mh(e,t,o,r,n,i){const{editModelSvc:s,valueSvc:l}=e;if(!s)return;const{rowNode:u,column:d}=t;if(!(u&&d))return;let h=s.getEdit(t,!0);if(!h?.sourceValue){const p={sourceValue:l.getValue(d,u,void 0,"api"),pendingValue:h?Da(e,h.editorValue,!1,d):rr};i?.persist&&(p.state="changed"),h=s.setEdit(t,p)}s.setEdit(t,{editorValue:n?Da(e,h.sourceValue,!0,d):o}),i?.persist&&y$(e,t)}function Da(e,t,o,r){const{formula:n}=e;return r.isAllowFormula()&&n?.isFormula(t)?n?.normaliseFormula(t,o)??t:t}function y$(e,t){const{editModelSvc:o}=e,r=o?.getEdit(t,!0);o?.setEdit(t,{pendingValue:Da(e,r?.editorValue,!1,t.column)})}function Ma(e,t,o){t||(t=e.editModelSvc?.getEditPositions());for(const r of t??[])bc(e,r,o)}function bc(e,t,o,r=bt(e,t)){const n=e.gos.get("enableGroupEdit"),i=e.editModelSvc,s=i?.getEdit(t,!0);if(!r){s&&i?.setEdit(t,{state:"changed"});return}const l=r.comp,u=l?.getCellEditor();if(l&&!u){if(r?.refreshCell(),s){i?.setEdit(t,{state:"changed"});const h=n?jR(o,s):{valueChanged:!1,newValue:void 0,oldValue:s.sourceValue};WR(e,t,h,o)}return}if(xv(e)){const h=s&&u?.getValidationErrors?.(),p=i?.getCellValidationModel();h?.length?p?.setCellValidation(t,{errorMessages:h}):p?.clearCellValidation(t)}s&&i?.setEdit(t,{state:"changed"}),l?.setEditDetails(),l?.refreshEditStyles(!1,!1),r?.refreshCell({force:!0,suppressFlash:!0});const d=i?.getEdit(t);if(d&&d.state==="changed"){const h=n?jR(o,d):{valueChanged:an(d)&&!o?.cancel,newValue:o?.cancel||d.editorState.isCancelAfterEnd?void 0:d?.editorValue??s?.pendingValue,oldValue:d?.sourceValue};WR(e,t,h,o)}}function jR(e,t){return e?.cancel?{valueChanged:!1,oldValue:t.sourceValue,newValue:void 0,value:t.sourceValue}:{valueChanged:an(t),oldValue:t.sourceValue,newValue:t.pendingValue,value:t.sourceValue}}function WR(e,t,o,{silent:r,event:n}={}){const{editSvc:i,editModelSvc:s}=e,l=s?.getEdit(t),{editorState:u}=l||{},{isCancelBeforeStart:d}=u||{};!r&&!d&&(i?.dispatchCellEvent(t,n,"cellEditingStopped",o),s?.setEdit(t,{editorState:{cellStoppedEditing:!0}}))}function xv(e){const{gos:t,colModel:o}=e,r=!!t.get("getFullRowEditValidationErrors"),n=o.getColumnDefs()?.filter(s=>s.editable).some(({cellEditorParams:s})=>{const{minLength:l,maxLength:u,getValidationErrors:d,min:h,max:p}=s||{};return l!==void 0||u!==void 0||d!==void 0||h!==void 0||p!==void 0}),i=e.gridApi.getCellEditorInstances().some(s=>s.getValidationElement||s.getValidationErrors);return n||r||i}function ss(e,t){if(!(t||xv(e)))return;const o=zR(e),r=new OR,{ariaAnnounce:n,localeSvc:i,editModelSvc:s,gos:l}=e,u=l.get("editType")==="fullRow",h=rk(i)("ariaValidationErrorPrefix","Cell Editor Validation");for(const g of o){const{ctrl:v,editor:b}=g,{rowNode:C,column:S}=v,k=b.getValidationErrors?.()??[],F=b.getValidationElement?.(!1)||!b.isPopup?.()&&v.eGui;if(F){const R=k!=null&&k.length>0,P=R?k.join(". "):"";jx(F,R),R&&n.announceValue(`${h} ${k}`,"editorValidation"),F instanceof HTMLInputElement?F.setCustomValidity(P):F.classList.toggle("invalid",R)}k?.length>0&&r.setCellValidation({rowNode:C,column:S},{errorMessages:k})}vi(e,{persist:!1}),s?.setCellValidationModel(r);const p=new Set;for(const{ctrl:g}of o)p.add(g.rowCtrl);if(u){const g=S$(e);s?.setRowValidationModel(g)}for(const g of p.values()){g.rowEditStyleFeature?.applyRowStyles();for(const v of g.getAllCellCtrls())v.tooltipFeature?.refreshTooltip(!0),v.editorTooltipFeature?.refreshTooltip(!0),v.editStyleFeature?.applyCellStyles?.()}}var S$=e=>{const t=new LR,o=e.gos.get("getFullRowEditValidationErrors"),r=e.editModelSvc?.getEditMap();if(!r)return t;for(const n of r.keys()){const i=r.get(n);if(!i)continue;const s=[],{rowIndex:l,rowPinned:u}=n;for(const h of i.keys()){const p=i.get(h);if(!p)continue;const{editorValue:g,pendingValue:v,sourceValue:b}=p,C=g??(v===rr?void 0:v)??b;s.push({column:h,colId:h.getColId(),rowIndex:l,rowPinned:u,oldValue:b,newValue:C})}const d=o?.({editorsState:s})??[];d.length>0&&t.setRowValidation({rowNode:n},{errorMessages:d})}return t};function x$(e){ss(e,!0);const t=e.editModelSvc?.getCellValidationModel().getCellValidationMap();if(!t)return null;const o=[];return t.forEach((r,n)=>{r.forEach(({errorMessages:i},s)=>{o.push({column:s,rowIndex:n.rowIndex,rowPinned:n.rowPinned,messages:i??null})})}),o}function k$(e,t,o,{rowNode:r,column:n},i){return je(e.gos,{type:o,node:r,data:r.data,value:i,column:n,colDef:n.getColDef(),rowPinned:r.rowPinned,event:t,rowIndex:r.rowIndex})}function F$(e,t=!1){return e===te.DELETE?!0:!t&&e===te.BACKSPACE?Yk():!1}var R$=class extends ue{constructor(e,t,o,r){super(),this.cellCtrl=e,this.rowNode=o,this.rowCtrl=r,this.beans=t}init(){this.eGui=this.cellCtrl.eGui}onKeyDown(e){const t=e.key;switch(t){case te.ENTER:this.onEnterKeyDown(e);break;case te.F2:this.onF2KeyDown(e);break;case te.ESCAPE:this.onEscapeKeyDown(e);break;case te.TAB:this.onTabKeyDown(e);break;case te.BACKSPACE:case te.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case te.DOWN:case te.UP:case te.RIGHT:case te.LEFT:this.onNavigationKeyDown(e,t);break}}onNavigationKeyDown(e,t){const{cellCtrl:o,beans:r}=this;if(!r.editSvc?.isEditing(o,{withOpenEditor:!0})){if(e.shiftKey&&o.isRangeSelectionEnabled())this.onShiftRangeSelect(e);else{const n=o.getFocusedCellPosition();r.navigation?.navigateToNextCell(e,t,n,!0)}e.preventDefault()}}onShiftRangeSelect(e){const{rangeSvc:t,navigation:o}=this.beans;if(!t)return;const r=t.extendLatestRangeInDirection(e);r&&(e.key===te.LEFT||e.key===te.RIGHT?o?.ensureColumnVisible(r.column):o?.ensureRowVisible(r.rowIndex))}onTabKeyDown(e){this.beans.navigation?.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){const{cellCtrl:o,beans:r,rowNode:n}=this,{gos:i,rangeSvc:s,eventSvc:l,editSvc:u}=r;if(l.dispatchEvent({type:"keyShortcutChangedCellStart"}),F$(e,i.get("enableCellEditingOnBackspace"))&&!u?.isEditing(o,{withOpenEditor:!0})){if(s&&nc(i))s.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(o.isCellEditable()){const{column:d}=o,h=this.beans.valueSvc.getDeleteValue(d,n);n.setDataValue(d,h,"cellClear")}}else u?.isEditing(o,{withOpenEditor:!0})||r.editSvc?.startEditing(o,{startedEdit:!0,event:t});l.dispatchEvent({type:"keyShortcutChangedCellEnd"})}onEnterKeyDown(e){const{cellCtrl:t,beans:o}=this,{editSvc:r,navigation:n}=o,i=r?.isEditing(t,{withOpenEditor:!0}),s=t.rowNode,l=r?.isRowEditing(s,{withOpenEditor:!0}),u=d=>{r?.startEditing(d,{startedEdit:!0,event:e,source:"edit"})&&e.preventDefault()};if(i||l){if(this.isCtrlEnter(e)){r?.applyBulkEdit(t,o?.rangeSvc?.getCellRanges()||[]);return}if(ss(o),r?.checkNavWithValidation(void 0,e)==="block-stop")return;r?.isEditing(t,{withOpenEditor:!0})?r?.stopEditing(t,{event:e,source:"edit"}):l&&!t.isCellEditable()?r?.stopEditing({rowNode:s},{event:e,source:"edit"}):u(t)}else if(o.gos.get("enterNavigatesVertically")){const d=e.shiftKey?te.UP:te.DOWN;n?.navigateToNextCell(null,d,t.cellPosition,!1)}else{if(r?.hasValidationErrors())return;r?.hasValidationErrors(t)&&r.revertSingleCellEdit(t,!0),u(t)}}isCtrlEnter(e){return(e.ctrlKey||e.metaKey)&&e.key===te.ENTER}onF2KeyDown(e){const{cellCtrl:t,beans:{editSvc:o}}=this;o?.isEditing()&&(ss(this.beans),o?.checkNavWithValidation(void 0,e)==="block-stop")||o?.startEditing(t,{startedEdit:!0,event:e})}onEscapeKeyDown(e){const{cellCtrl:t,beans:{editSvc:o}}=this;o?.checkNavWithValidation(t,e)==="block-stop"&&o.revertSingleCellEdit(t),setTimeout(()=>{o?.stopEditing(t,{event:e,cancel:!0})})}processCharacter(e){const o=e.target!==this.eGui,{beans:{editSvc:r},cellCtrl:n}=this;if(o||r?.isEditing(n,{withOpenEditor:!0}))return;if(e.key===te.SPACE)this.onSpaceKeyDown(e);else if(r?.isCellEditable(n,"ui")){if(r?.hasValidationErrors()&&!r?.hasValidationErrors(n))return;r?.startEditing(n,{startedEdit:!0,event:e,source:"api"}),!n.editCompDetails?.params?.suppressPreventDefault&&e.preventDefault()}}onSpaceKeyDown(e){const{gos:t,editSvc:o}=this.beans,{rowNode:r}=this.cellCtrl;!o?.isEditing(this.cellCtrl,{withOpenEditor:!0})&&Sk(t)&&this.beans.selectionSvc?.handleSelectionEvent(e,r,"spaceKey"),e.preventDefault()}},P$=class extends ue{constructor(e,t,o){super(),this.cellCtrl=e,this.column=o,this.beans=t}onMouseEvent(e,t){if(!Ln(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t);break}}onCellClicked(e){if(this.beans.touchSvc?.handleCellDoubleClick(this,e))return;const{eventSvc:t,rangeSvc:o,editSvc:r,editModelSvc:n,frameworkOverrides:i,gos:s}=this.beans,l=e.ctrlKey||e.metaKey,{cellCtrl:u}=this,{column:d,cellPosition:h,rowNode:p}=u,g=gh(s,d,p,e);o&&l&&!g&&o.getCellRangeCount(h)>1&&o.intersectLastRange(!0);const v=u.createEvent(e,"cellClicked");v.isEventHandlingSuppressed=g,t.dispatchEvent(v);const b=d.getColDef();if(b.onCellClicked&&window.setTimeout(()=>{i.wrapOutgoing(()=>{b.onCellClicked(v)})},0),!g&&n?.getState(u)!=="editing"){const C=r?.isEditing(),S=n?.getCellValidationModel().getCellValidationMap().size??0,k=n?.getRowValidationModel().getRowValidationMap().size??0;if(C&&(S>0||k>0))return;r?.shouldStartEditing(u,e)?r?.startEditing(u,{event:e}):r?.shouldStopEditing(u,e)&&(this.beans.gos.get("editType")==="fullRow"?r?.stopEditing(u,{event:e,source:"edit"}):r?.stopEditing(void 0,{event:e,source:"edit"}))}}onCellDoubleClicked(e){const{column:t,beans:o,cellCtrl:r}=this,{eventSvc:n,frameworkOverrides:i,editSvc:s,editModelSvc:l,gos:u}=o,d=gh(u,r.column,r.rowNode,e),h=t.getColDef(),p=r.createEvent(e,"cellDoubleClicked");if(p.isEventHandlingSuppressed=d,n.dispatchEvent(p),typeof h.onCellDoubleClicked=="function"&&window.setTimeout(()=>{i.wrapOutgoing(()=>{h.onCellDoubleClicked(p)})},0),!d&&s?.shouldStartEditing(r,e)&&l?.getState(r)!=="editing"){const g=s?.isEditing(),v=l?.getCellValidationModel().getCellValidationMap().size??0,b=l?.getRowValidationModel().getRowValidationMap().size??0;if(g&&(v>0||b>0))return;s?.startEditing(r,{event:e})}}onMouseDown(e){const{shiftKey:t}=e,o=e.target,{cellCtrl:r,beans:n}=this,{eventSvc:i,rangeSvc:s,rowNumbersSvc:l,focusSvc:u,gos:d,editSvc:h}=n,{column:p,rowNode:g,cellPosition:v}=r,b=gh(d,p,g,e),C=()=>{const R=r.createEvent(e,"cellMouseDown");R.isEventHandlingSuppressed=b,i.dispatchEvent(R)};if(b){C();return}if(this.isRightClickInExistingRange(e))return;const S=s&&!s.isEmpty(),k=this.containsWidget(o),F=ma(p);if(!(l&&F&&!l.handleMouseDownOnCell(v,e))){if(!t||!S){const R=h?.isEditing(r),T=d.get("enableCellTextSelection")&&e.defaultPrevented,D=(uc()||T)&&!R&&!Yl(o)&&!k;r.focusCell(D,e)}if(t&&S&&!u.isCellFocused(v)){e.preventDefault();const R=u.getFocusedCell();if(R){const{column:P,rowIndex:T,rowPinned:D}=R;h?.isEditing(R)&&h?.stopEditing(R),u.setFocusedCell({column:P,rowIndex:T,rowPinned:D,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,sourceEvent:e})}}k||(s?.handleCellMouseDown(e,v),C())}}isRightClickInExistingRange(e){const{rangeSvc:t}=this.beans;if(t){const o=t.isCellInAnyRange(this.cellCtrl.cellPosition),r=XV(this.beans,e);if(o&&r)return!0}return!1}containsWidget(e){return Xi(e,"ag-selection-checkbox",3)||Xi(e,"ag-drag-handle",3)}onMouseOut(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:o}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),o?.clearMouseOver()}onMouseOver(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:o}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),o?.setMouseOver([this.column])}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;const t=this.cellCtrl.eGui,o=t.contains(e.target),r=t.contains(e.relatedTarget);return o&&r}},E$=class extends ue{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();ic(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,o=e.getColSpan(t),r=[];if(o===1)r.push(e);else{let n=e;const i=e.getPinned();for(let s=0;n&&s<o&&(r.push(n),n=this.beans.visibleCols.getColAfter(n),!(!n||Ht(n)||i!==n.getPinned()));s++);}return r}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=st(this.colsSpanning):e=this.column,e.getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.printLayout||this.column.getPinned()==="left")return e;const{visibleCols:t}=this.beans,o=t.getColsLeftWidth();if(this.column.getPinned()==="right"){const r=t.bodyWidth;return o+r+(e||0)}return o+(e||0)}_legacyApplyRowSpan(e){if(this.rowSpan===1&&!e)return;const o=kk(this.beans)*this.rowSpan;this.eContent.style.height=`${o}px`,this.eContent.style.zIndex="1"}destroy(){super.destroy()}},T$="ag-cell",D$="ag-cell-auto-height",M$="ag-cell-normal-height",A$="ag-cell-focus",_$="ag-cell-first-right-pinned",I$="ag-cell-last-left-pinned",B$="ag-cell-not-inline-editing",O$="ag-cell-wrap-text",L$=0,Cc=class extends ue{constructor(e,t,o,r){super(),this.column=e,this.rowNode=t,this.rowCtrl=r,this.rangeFeature=void 0,this.rowResizeFeature=void 0,this.positionFeature=void 0,this.customStyleFeature=void 0,this.editStyleFeature=void 0,this.mouseListener=void 0,this.keyboardListener=void 0,this.suppressRefreshCell=!1,this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.focusEventWhileNotReady=null,this.hasBeenFocused=!1,this.hasEdit=!1,this.tooltipFeature=void 0,this.editorTooltipFeature=void 0,this.formulaTooltipFeature=void 0,this.beans=o,this.gos=o.gos,this.editSvc=o.editSvc,this.hasEdit=!!o.editSvc;const{colId:n}=e;this.instanceId=n+"-"+L$++,this.createCellPosition(),this.updateAndFormatValue(!1)}addFeatures(){const{beans:e}=this;this.positionFeature=new E$(this,e),this.customStyleFeature=e.cellStyles?.createCellCustomStyleFeature(this),this.editStyleFeature=e.editSvc?.createCellStyleFeature(this),this.mouseListener=new P$(this,e,this.column),this.keyboardListener=new R$(this,e,this.rowNode,this.rowCtrl),this.enableTooltipFeature(),this.enableFormulaTooltipFeature();const{rangeSvc:t}=e;t&&nc(e.gos)&&(this.rangeFeature=t.createCellRangeFeature(this)),ma(this.column)&&(this.rowResizeFeature=this.beans.rowNumbersSvc.createRowNumbersRowResizerFeature(this))}isCellSpanning(){return!1}getCellSpan(){}removeFeatures(){const e=this.beans.context;this.positionFeature=e.destroyBean(this.positionFeature),this.editorTooltipFeature=e.destroyBean(this.editorTooltipFeature),this.customStyleFeature=e.destroyBean(this.customStyleFeature),this.editStyleFeature=e.destroyBean(this.editStyleFeature),this.mouseListener=e.destroyBean(this.mouseListener),this.keyboardListener=e.destroyBean(this.keyboardListener),this.rangeFeature=e.destroyBean(this.rangeFeature),this.rowResizeFeature=e.destroyBean(this.rowResizeFeature),this.disableTooltipFeature(),this.disableFormulaTooltipFeature()}enableTooltipFeature(e,t){this.tooltipFeature=this.beans.tooltipSvc?.enableCellTooltipFeature(this,e,t)}enableFormulaTooltipFeature(){this.formulaTooltipFeature=this.beans.tooltipSvc?.setupFormulaTooltip(this)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}disableFormulaTooltipFeature(){this.formulaTooltipFeature=this.beans.context.destroyBean(this.formulaTooltipFeature)}enableEditorTooltipFeature(e){this.editorTooltipFeature&&this.disableEditorTooltipFeature(),this.editorTooltipFeature=this.beans.tooltipSvc?.setupCellEditorTooltip(this,e),ss(this.beans)}disableEditorTooltipFeature(){this.editorTooltipFeature=this.beans.context.destroyBean(this.editorTooltipFeature)}setComp(e,t,o,r,n,i,s){if(this.comp=e,this.eGui=t,this.printLayout=n,s??(s=this),this.addDomData(s),this.addFeatures(),s.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(r,s),this.refreshFirstAndLastStyles(),this.checkFormulaError(),this.refreshAriaColIndex(),this.positionFeature?.init(),this.customStyleFeature?.setComp(e),this.editStyleFeature?.setComp(e),this.tooltipFeature?.refreshTooltip(),this.keyboardListener?.init(),this.rangeFeature?.setComp(e),this.rowResizeFeature?.refreshRowResizer(),i&&this.isCellEditable()||this.hasEdit&&this.editSvc?.isEditing(this,{withOpenEditor:!0})?this.editSvc?.startEditing(this,{startedEdit:!1,source:"api",silent:!0,continueEditing:!0}):this.showValue(!1,!0),this.onCompAttachedFuncs.length){for(const l of this.onCompAttachedFuncs)l();this.onCompAttachedFuncs=[]}}checkFormulaError(){const e=!!this.beans.formula?.getFormulaError(this.column,this.rowNode);this.eGui.classList.toggle("formula-error",e),this.formulaTooltipFeature?.refreshTooltip(),e?this.disableTooltipFeature():this.enableTooltipFeature()}setupAutoHeight(e,t){this.isAutoHeight=this.beans.rowAutoHeight?.setupCellAutoHeight(this,e,t)??!1}getCellAriaRole(){return this.column.getColDef().cellAriaRole??"gridcell"}isCellRenderer(){const e=this.column.getColDef();return e.cellRenderer!=null||e.cellRendererSelector!=null}getValueToDisplay(){return this.valueFormatted??this.value}getDeferLoadingCellRenderer(){const{beans:e,column:t}=this,{userCompFactory:o,ctrlsSvc:r,eventSvc:n}=e,i=t.getColDef(),s=this.createCellRendererParams();s.deferRender=!0;const l=Uk(o,i,s);if(r.getGridBodyCtrl()?.scrollFeature?.isScrolling()){let u;const d=new Ve(p=>{u=p}),[h]=this.addManagedListeners(n,{bodyScrollEnd:()=>{u(),h()}});return{loadingComp:l,onReady:d}}return{loadingComp:l,onReady:Ve.resolve()}}showValue(e,t){const{beans:o,column:r,rowNode:n,rangeFeature:i}=this,{userCompFactory:s}=o;let l=this.getValueToDisplay(),u;const d=n.stub&&n.groupData?.[r.getId()]==null,h=r.getColDef();if(d||this.isCellRenderer()){const p=this.createCellRendererParams();!d||ma(r)?u=qk(s,h,p):u=Uk(s,h,p)}if(!u&&!d&&o.findSvc?.isMatch(n,r)){const p=this.createCellRendererParams();u=qk(s,{...r.getColDef(),cellRenderer:"agFindCellRenderer"},p)}if(this.hasEdit&&this.editSvc.isBatchEditing()&&this.editSvc.isRowEditing(n,{checkSiblings:!0})){const p=this.editSvc.prepDetailsDuringBatch(this,{compDetails:u,valueToDisplay:l});p&&(p.compDetails?u=p.compDetails:p.valueToDisplay&&(l=p.valueToDisplay))}this.comp.setRenderDetails(u,l,e),this.customRowDragComp?.refreshVisibility(),!t&&i&&Mn(o,()=>i?.refreshHandle()),this.rowResizeFeature?.refreshRowResizer()}setupControlComps(){const e=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(e),!0),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.comp.setIncludeSelection(this.includeSelection),this.comp.setIncludeDndSource(this.includeDndSource),this.comp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}getCellValueClass(){const e="ag-cell-value",t=this.column.getColDef().cellRenderer==="agCheckboxCellRenderer";let o="";return t&&(o=" ag-allow-overflow"),`${e}${o}`}isIncludeControl(e,t=!1){return(this.rowNode.rowPinned==null||t&&tW(this.rowNode))&&!!e}isCheckboxSelection(e){const{rowSelection:t,groupDisplayType:o}=this.beans.gridOptions,r=NV(t),n=Sm(this.column);return o==="custom"&&r!=="selectionColumn"&&n?!1:e.checkboxSelection||n&&typeof t=="object"&&LV(t)}refreshShouldDestroy(){const e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(e),!0),o=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),r=this.includeDndSource!=this.isIncludeControl(e.dndSource),n=this.isAutoHeight!=this.column.isAutoHeight();return t||o||r||n}onPopupEditorClosed(){const{editSvc:e}=this.beans;e?.isEditing(this,{withOpenEditor:!0})&&e?.stopEditing(this,{source:e?.isBatchEditing()?"ui":"api"})}stopEditing(e=!1){const{editSvc:t}=this.beans;return t?.stopEditing(this,{cancel:e,source:t?.isBatchEditing()?"ui":"api"})??!1}createCellRendererParams(){const{value:e,valueFormatted:t,column:o,rowNode:r,comp:n,eGui:i,beans:{valueSvc:s,gos:l,editSvc:u}}=this;return je(l,{value:e,valueFormatted:t,getValue:()=>s.getValueForDisplay({column:o,node:r}).value,setValue:h=>u?.setDataValue({rowNode:r,column:o},h)||r.setDataValue(o,h),formatValue:this.formatValue.bind(this),data:r.data,node:r,pinned:o.getPinned(),colDef:o.getColDef(),column:o,refreshCell:this.refreshCell.bind(this),eGridCell:i,eParentOfValue:n.getParentOfValue(),registerRowDragger:(h,p,g,v)=>this.registerRowDragger(h,p,v),setTooltip:(h,p)=>{l.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(h,p),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:o}=this;!o?.getCellEditor()&&t.isEditing(this,{withOpenEditor:!0})&&t.startEditing(this,{startedEdit:!1,source:"api",silent:!0})}}refreshCell({force:e,suppressFlash:t,newData:o}={}){const{editStyleFeature:r,customStyleFeature:n,rowCtrl:{rowEditStyleFeature:i},beans:{cellFlashSvc:s,filterManager:l},column:u,comp:d,suppressRefreshCell:h,tooltipFeature:p}=this;if(h)return;const{field:g,valueGetter:v,showRowGroup:b,enableCellChangeFlash:C}=u.getColDef(),S=g==null&&v==null&&b==null,k=e||S||o,F=!!d,R=this.updateAndFormatValue(F),P=k||R;if(F){if(P){this.showValue(!!o,!1);const T=l?.isSuppressFlashingCellsBecauseFiltering();!t&&!T&&C&&s?.flashCell(this),r?.applyCellStyles?.(),n?.applyUserStyles(),n?.applyClassesFromColDef(),i?.applyRowStyles(),this.checkFormulaError()}p?.refreshTooltip(),n?.applyCellClassRules()}}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(e){return this.callValueFormatter(e)??e}callValueFormatter(e){return this.beans.valueSvc.formatValue(this.column,this.rowNode,e)}updateAndFormatValue(e){const t=this.value,o=this.valueFormatted,{value:r,valueFormatted:n}=this.beans.valueSvc.getValueForDisplay({column:this.column,node:this.rowNode,includeValueFormatted:!0});return this.value=r,this.valueFormatted=n,e?!this.valuesAreEqual(t,this.value)||this.valueFormatted!=o:!0}valuesAreEqual(e,t){const o=this.column.getColDef();return o.equals?o.equals(e,t):e===t}addDomData(e){const t=this.eGui;Ji(this.beans.gos,t,mh,this),e.addDestroyFunc(()=>Ji(this.beans.gos,t,mh,null))}createEvent(e,t){const{rowNode:o,column:r,value:n,beans:i}=this;return k$(i,e,t,{rowNode:o,column:r},n)}processCharacter(e){this.keyboardListener?.processCharacter(e)}onKeyDown(e){this.keyboardListener?.onKeyDown(e)}onMouseEvent(e,t){this.mouseListener?.onMouseEvent(e,t)}getColSpanningList(){return this.positionFeature?.getColSpanningList()??[]}onLeftChanged(){this.comp&&this.positionFeature?.onLeftChanged()}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){const{comp:e,column:t,beans:o}=this;QF(e,t,o.visibleCols)}refreshAriaColIndex(){const e=this.beans.visibleCols.getAriaColIndex(this.column);qx(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 o=this.editSvc?.allowedFocusTargetOnValidation(this);o&&o!==this||this.beans.focusSvc.setFocusedCell({...this.getFocusedCellPosition(),forceBrowserFocus:e,sourceEvent:t})}restoreFocus(e=!1){const{beans:{editSvc:t,focusSvc:o},comp:r}=this;if(!r||t?.isEditing(this)||!this.isCellFocused()||!o.shouldTakeFocus())return;const n=()=>{if(!this.isAlive())return;const i=r.getFocusableElement();this.isCellFocused()&&i.focus({preventScroll:!0})};if(e){setTimeout(n,0);return}n()}onRowIndexChanged(){this.createCellPosition(),this.onCellFocused(),this.restoreFocus(),this.rangeFeature?.onCellSelectionChanged(),this.rowResizeFeature?.refreshRowResizer()}onSuppressCellFocusChanged(e){const t=this.eGui;t&&(ma(this.column)&&(e=!0),Er(t,"tabindex",e?void 0:-1))}onFirstRightPinnedChanged(){if(!this.comp)return;const e=this.column.isFirstRightPinned();this.comp.toggleCss(_$,e)}onLastLeftPinnedChanged(){if(!this.comp)return;const e=this.column.isLastLeftPinned();this.comp.toggleCss(I$,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(sv(t))return;if(!this.comp){e&&(this.focusEventWhileNotReady=e);return}const o=this.isCellFocused(),r=t.editSvc?.isEditing(this)??!1;if(this.comp.toggleCss(A$,o),o&&e?.forceBrowserFocus){let n=this.comp.getFocusableElement();if(r){const i=ba(n,null,!0);i.length&&(n=i[0])}n.focus({preventScroll:!!e.preventScrollOnBrowserFocus})}o&&e&&this.rowCtrl.announceDescription()}createCellPosition(){const{rowIndex:e,rowPinned:t}=this.rowNode;this.cellPosition={rowIndex:e,rowPinned:si(t),column:this.column}}applyStaticCssClasses(){const{comp:e}=this;e.toggleCss(T$,!0),e.toggleCss(B$,!0);const t=this.column.isAutoHeight()==!0;e.toggleCss(D$,t),e.toggleCss(M$,!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(O$,e)}dispatchCellContextMenuEvent(e){const t=this.column.getColDef(),o=this.createEvent(e,"cellContextMenu"),{beans:r}=this;r.eventSvc.dispatchEvent(o),t.onCellContextMenu&&window.setTimeout(()=>{r.frameworkOverrides.wrapOutgoing(()=>{t.onCellContextMenu(o)})},0)}getCellRenderer(){return this.comp?.getCellRenderer()??null}destroy(){this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.isCellFocused()&&this.hasBrowserFocus()&&this.beans.focusSvc.attemptToRecoverFocus(),super.destroy()}hasBrowserFocus(){return this.eGui?.contains(At(this.beans))??!1}createSelectionCheckbox(){const e=this.beans.selectionSvc?.createCheckboxSelectionComponent();if(e)return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e}createDndSource(){const e=this.beans.registry.createDynamicBean("dndSourceComp",!1,this.rowNode,this.column,this.eGui);return e&&this.beans.context.createBean(e),e}registerRowDragger(e,t,o){if(this.customRowDragComp){this.customRowDragComp.setDragElement(e,t);return}const r=this.createRowDragComp(e,t,o);r&&(this.customRowDragComp=r,this.addDestroyFunc(()=>{this.beans.context.destroyBean(r),this.customRowDragComp=null}),r.refreshVisibility())}createRowDragComp(e,t,o){const r=this.beans.rowDragSvc?.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,e,t,o);if(r)return this.beans.context.createBean(r),r}cellEditorAttached(){for(const e of this.onEditorAttachedFuncs)e();this.onEditorAttachedFuncs=[]}setFocusedCellPosition(e){}getFocusedCellPosition(){return this.cellPosition}refreshAriaRowIndex(){}getRootElement(){return this.eGui}};function qR(e){if(e.group)return e.level;const t=e.parent;return t?t.level+1:0}var N$=0,kv=class extends ue{constructor(e,t,o,r,n){super(),this.rowNode=e,this.useAnimationFrameForCreate=r,this.printLayout=n,this.allRowGuis=[],this.active=!0,this.centerCellCtrls={list:[],map:{}},this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}},this.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.rowDragComps=[],this.lastMouseDownOnDragger=!1,this.emptyStyle={},this.updateColumnListsPending=!1,this.rowId=null,this.businessKey=null,this.beans=t,this.gos=t.gos,this.paginationPage=t.pagination?.getCurrentPage()??0,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=e.id+"-"+N$++,this.rowId=Kl(e.id),this.initRowBusinessKey(),this.rowFocused=t.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=qR(this.rowNode),this.setRowType(),this.setAnimateFlags(o),this.rowStyles=this.processStylesFromGridOptions(),this.rowEditStyleFeature=t.editSvc?.createRowStyleFeature(this),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if(typeof this.businessKeyForNodeFunc!="function")return;const e=this.businessKeyForNodeFunc(this.rowNode);this.businessKey=Kl(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,o,r){const{context:n,focusSvc:i}=this.beans;r=ac(this,n,r);const s={rowComp:e,element:t,containerType:o,compBean:r};this.allRowGuis.push(s),this.updateGui(o,s),this.initialiseRowComp(s);const l=this.rowNode,u=this.rowType==="FullWidthLoading"||l.stub,d=!l.data&&this.beans.rowModel.getType()==="infinite";!u&&!d&&!l.rowPinned&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent();const h=this.fullWidthGui?.element;h&&!this.beans.editSvc?.isEditing(this)&&i.isRowFocused(l.rowIndex,l.rowPinned)&&i.shouldTakeFocus()&&setTimeout(()=>h.focus({preventScroll:!0}),0)}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 o of this.allRowGuis)o.element.style.display=t}initialiseRowComp(e){const t=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.listenOnDomOrder(e),this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(!1,e),Sk(t)&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);const o=e.rowComp,r=this.getInitialRowClasses(e.containerType);for(const n of r)o.toggleCss(n,!0);this.executeSlideAndFadeAnimations(e),this.rowNode.group&&tm(e.element,this.rowNode.expanded==!0),this.setRowCompRowId(o),this.setRowCompRowBusinessKey(o),Ji(t,e.element,vh,this),e.compBean.addDestroyFunc(()=>Ji(t,e.element,vh,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=Kl(this.rowNode.id);this.rowId=t,t!=null&&e.setRowId(t)}executeSlideAndFadeAnimations(e){const{containerType:t}=e;this.slideInAnimation[t]&&(dm(()=>{this.onTopChanged()}),this.slideInAnimation[t]=!1),this.fadeInAnimation[t]&&(dm(()=>{e.rowComp.toggleCss("ag-opacity-zero",!1)}),this.fadeInAnimation[t]=!1)}addRowDraggerToRow(e){const t=this.beans.rowDragSvc?.createRowDragCompForRow(this.rowNode,e.element);if(!t)return;const o=this.createBean(t,this.beans.context);this.rowDragComps.push(o),e.compBean.addDestroyFunc(()=>{this.rowDragComps=this.rowDragComps.filter(r=>r!==o),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,this.beans.context),this.destroyBean(o,this.beans.context)})}setupFullWidth(e){const t=this.getPinnedForContainer(e.containerType),o=this.createFullWidthCompDetails(e.element,t);e.rowComp.showFullWidth(o)}getFullWidthCellRenderers(){return this.gos.get("embedFullWidthRows")?this.allRowGuis.map(e=>e?.rowComp?.getFullWidthCellRenderer()):[this.fullWidthGui?.rowComp?.getFullWidthCellRenderer()]}executeProcessRowPostCreateFunc(){const e=this.gos.getCallback("processRowPostCreate");if(!e||!this.areAllContainersReady())return;const t={eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)};e(t)}areAllContainersReady(){const{leftGui:e,centerGui:t,rightGui:o,beans:{visibleCols:r}}=this,n=!!e||!r.isPinningLeft(),i=!!t,s=!!o||!r.isPinningRight();return n&&i&&s}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:o}}=this,r=e.stub&&!t.get("suppressServerSideFullWidthLoadingRow")&&!t.get("groupHideOpenParents"),n=this.isNodeFullWidthCell(),i=t.get("masterDetail")&&e.detail,s=o.isPivotMode(),l=OV(t,e,s);r?this.rowType="FullWidthLoading":i?this.rowType="FullWidthDetail":n?this.rowType="FullWidth":l?this.rowType="FullWidthGroup":this.rowType="Normal"}updateColumnLists(e=!1,t=!1){if(this.isFullWidth())return;const{animationFrameSvc:o}=this.beans;if(!o?.active||e||this.printLayout){this.updateColumnListsImpl(t);return}this.updateColumnListsPending||(o.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 Cc(e,this.rowNode,this.beans,this)}isCorrectCtrlForSpan(e){return!this.beans.rowSpanSvc?.isCellSpanning(e.column,this.rowNode)}createCellCtrls(e,t,o=null){const r={list:[],map:{}},n=(d,h,p)=>{p!=null?r.list.splice(p,0,h):r.list.push(h),r.map[d]=h},i=[];for(const d of t){const h=d.getInstanceId();let p=e.map[h];p&&!this.isCorrectCtrlForSpan(p)&&(p.destroy(),p=void 0),p||(p=this.getNewCellCtrl(d)),p&&n(h,p)}for(const d of e.list){const h=d.column.getInstanceId();if(r.map[h]!=null)continue;!this.isCellEligibleToBeRemoved(d,o)?i.push([h,d]):d.destroy()}if(i.length)for(const[d,h]of i){const p=r.list.findIndex(v=>v.column.getLeft()>h.column.getLeft()),g=p===-1?void 0:Math.max(p-1,0);n(d,h,g)}const{focusSvc:s,visibleCols:l}=this.beans,u=s.getFocusedCell();if(u&&u.column.getPinned()==o){const d=u.column.getInstanceId();if(!r.map[d]&&l.allCols.includes(u.column)){const p=this.createFocusedCellCtrl();if(p){const g=r.list.findIndex(b=>b.column.getLeft()>p.column.getLeft()),v=g===-1?void 0:Math.max(g-1,0);n(d,p,v)}}}return r}createFocusedCellCtrl(){const{focusSvc:e,rowSpanSvc:t}=this.beans,o=e.getFocusedCell();if(!o)return;const r=t?.getCellSpan(o.column,this.rowNode);if(r){if(r.firstNode!==this.rowNode||!r.doesSpanContain(o))return}else if(!e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned))return;return this.getNewCellCtrl(o.column)}updateColumnListsImpl(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(e)}setCellCtrls(e){for(const t of this.allRowGuis){const o=this.getCellCtrlsForContainer(t.containerType);t.rowComp.setCellCtrls(o,e)}}getCellCtrlsForContainer(e){switch(e){case"left":return this.leftCellCtrls.list;case"right":return this.rightCellCtrls.list;case"fullWidth":return[];case"center":return this.centerCellCtrls.list}}createAllCellCtrls(){const e=this.beans.colViewport,t=this.beans.visibleCols;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,t.allCols),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{const o=e.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,o);const r=t.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,"left");const n=t.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,n,"right")}}isCellEligibleToBeRemoved(e,t){const{column:n}=e;if(n.getPinned()!=t||!this.isCorrectCtrlForSpan(e))return!0;const{visibleCols:i,editSvc:s}=this.beans,l=s?.isEditing(e),u=e.isCellFocused();return l||u?!(i.allCols.indexOf(n)>=0):!0}getDomOrder(){return this.gos.get("ensureDomOrder")||no(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=xe(this.rowNode.oldRowTop),{visibleCols:o}=this.beans,r=o.isPinningLeft(),n=o.isPinningRight();if(t){const{slideInAnimation:i}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){i.fullWidth=!0;return}i.center=!0,i.left=r,i.right=n}else{const{fadeInAnimation:i}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){i.fullWidth=!0;return}i.center=!0,i.left=r,i.right=n}}isFullWidth(){return this.rowType!=="Normal"}refreshFullWidth(){const e=(s,l)=>s?s.rowComp.refreshFullWidth(()=>this.createFullWidthCompDetails(s.element,l).params):!0,t=e(this.fullWidthGui,null),o=e(this.centerGui,null),r=e(this.leftGui,"left"),n=e(this.rightGui,"right");return t&&o&&r&&n}addListeners(){const{beans:e,gos:t,rowNode:o}=this,{expansionSvc:r,eventSvc:n,context:i,rowSpanSvc:s}=e;this.addManagedListeners(this.rowNode,{heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this),...r?.getRowExpandedListeners(this)??{}}),o.detail&&this.addManagedListeners(o.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(o,{dataChanged:this.onRowNodeDataChanged.bind(this),cellChanged:this.postProcessCss.bind(this),rowHighlightChanged:this.onRowNodeHighlightChanged.bind(this),draggingChanged:this.postProcessRowDragging.bind(this),uiLevelChanged:this.onUiLevelChanged.bind(this),rowPinned:this.onRowPinned.bind(this)}),this.addManagedListeners(n,{paginationPixelOffsetChanged:this.onPaginationPixelOffsetChanged.bind(this),heightScaleChanged:this.onTopChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:this.onVirtualColumnsChanged.bind(this),cellFocused:this.onCellFocusChanged.bind(this),cellFocusCleared:this.onCellFocusChanged.bind(this),paginationChanged:this.onPaginationChanged.bind(this),modelUpdated:this.refreshFirstAndLastRowStyles.bind(this),columnMoved:()=>this.updateColumnLists()}),s&&this.addManagedListeners(s,{spannedCellsUpdated:({pinned:l})=>{l&&!o.rowPinned||this.updateColumnLists()}}),this.addDestroyFunc(()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,i),this.tooltipFeature=this.destroyBean(this.tooltipFeature,i),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,i)}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{if(t.get("rowDragEntireRow")){for(const u of this.allRowGuis)this.addRowDraggerToRow(u);return}this.rowDragComps=this.destroyBeans(this.rowDragComps,i)}),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 o of this.getAllCellCtrls())o.refreshCell(e);for(const o of this.allRowGuis)this.setRowCompRowId(o.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(o.rowComp);this.onRowSelected(),this.postProcessCss()}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.rowEditStyleFeature?.applyRowStyles(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){const e=this.beans.rowDropHighlightSvc,t=e?.row===this.rowNode?e.position:"none",o=t==="above",r=t==="inside",n=t==="below",i=t!=="none",s=o||n,l=this.rowNode.uiLevel,u=s&&l>0,d=u?l.toString():"0";for(const h of this.allRowGuis){const p=h.rowComp;p.toggleCss("ag-row-highlight-above",o),p.toggleCss("ag-row-highlight-inside",r),p.toggleCss("ag-row-highlight-below",n),p.toggleCss("ag-row-highlight-indent",u),i?h.element.style.setProperty("--ag-row-highlight-level",d):h.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:si(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}onKeyboardNavigate(e){const t=this.findFullWidthInfoForEvent(e);if(!t)return;const{rowGui:o,column:r}=t;if(!(o.element===e.target))return;const s=this.rowNode,{focusSvc:l,navigation:u}=this.beans,d=l.getFocusedCell(),h={rowIndex:s.rowIndex,rowPinned:s.rowPinned,column:d?.column??r};u?.navigateToNextCell(e,e.key,h,!0),e.preventDefault()}onTabKeyDown(e){if(e.defaultPrevented||Ln(e))return;const t=this.allRowGuis.find(l=>l.element.contains(e.target)),o=t?t.element:null,r=o===e.target,n=At(this.beans);let i=!1;o&&n&&(i=o.contains(n)&&n.classList.contains("ag-cell"));let s=null;!r&&!i&&(s=Ca(this.beans,o,!1,e.shiftKey)),(this.isFullWidth()&&r||!s)&&this.beans.navigation?.onTabKeyDown(this,e)}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){const e=this.allRowGuis.find(t=>Tn(t.element))?.element;return e?e.getBoundingClientRect().top:0}onSuppressCellFocusChanged(e){const t=this.isFullWidth()&&e?void 0:this.gos.get("tabIndex");for(const o of this.allRowGuis)Er(o.element,"tabindex",t)}onFullWidthRowFocused(e){const t=this.rowNode,o=e?this.isFullWidth()&&e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned:!1;let r;if(this.fullWidthGui)r=this.fullWidthGui.element;else{const i=this.beans.colModel.getCol(e?.column)?.pinned;i?r=i==="right"?this.rightGui?.element:this.leftGui?.element:r=this.centerGui?.element}r&&(r.classList.toggle("ag-full-width-focus",o),o&&e?.forceBrowserFocus&&r.focus({preventScroll:!0}))}recreateCell(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),e.destroy(),this.updateColumnLists()}removeCellCtrl(e,t){const o={list:[],map:{}};for(const r of e.list)r!==t&&(o.list.push(r),o.map[r.column.getInstanceId()]=r);return o}onMouseEvent(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t);break}}createRowEvent(e,t){const{rowNode:o}=this;return je(this.gos,{type:e,node:o,data:o.data,rowIndex:o.rowIndex,rowPinned:o.rowPinned,event:t})}createRowEventWithSource(e,t){const o=this.createRowEvent(e,t);return o.source=this,o}onRowDblClick(e){if(Ln(e))return;const t=this.createRowEventWithSource("rowDoubleClicked",e);t.isEventHandlingSuppressed=this.isSuppressMouseEvent(e),this.beans.eventSvc.dispatchEvent(t)}findFullWidthInfoForEvent(e){if(!e)return;const t=this.findFullWidthRowGui(e.target),o=this.getColumnForFullWidth(t);if(!(!t||!o))return{rowGui:t,column:o}}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=Xi(e.target,"ag-row-drag",3),!this.isFullWidth()||this.isSuppressMouseEvent(e))return;const{rangeSvc:t,focusSvc:o}=this.beans;t?.removeAllCellRanges();const r=this.findFullWidthInfoForEvent(e);if(!r)return;const{rowGui:n,column:i}=r,s=n.element,l=e.target,u=this.rowNode;let d=e.defaultPrevented||uc();s&&s.contains(l)&&Yl(l)&&(d=!1),o.setFocusedCell({rowIndex:u.rowIndex,column:i,rowPinned:u.rowPinned,forceBrowserFocus:d})}isSuppressMouseEvent(e){const{gos:t,rowNode:o}=this;if(this.isFullWidth()){const n=this.findFullWidthRowGui(e.target);return KG(t,n?.rowComp.getFullWidthCellRendererParams(),o,e)}const r=tv(t,e.target);return r!=null&&gh(t,r.column,o,e)}onRowClick(e){if(Ln(e)||this.lastMouseDownOnDragger)return;const o=this.isSuppressMouseEvent(e),{eventSvc:r,selectionSvc:n}=this.beans,i=this.createRowEventWithSource("rowClicked",e);i.isEventHandlingSuppressed=o,r.dispatchEvent(i),!o&&n?.handleSelectionEvent(e,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(e){this.rowType==="FullWidthDetail"&&this.beans.masterDetailSvc?.setupDetailRowAutoHeight(this,e)}createFullWidthCompDetails(e,t){const{gos:o,rowNode:r}=this,n=je(o,{fullWidth:!0,data:r.data,node:r,value:r.key,valueFormatted:r.key,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(s,l,u,d)=>this.addFullWidthRowDragging(s,l,u,d),setTooltip:(s,l)=>{o.assertModuleRegistered("Tooltip",3),this.setupFullWidthRowTooltip(s,l)}}),i=this.beans.userCompFactory;switch(this.rowType){case"FullWidthDetail":return Q7(i,n);case"FullWidthGroup":{const{value:s,valueFormatted:l}=this.beans.valueSvc.getValueForDisplay({node:this.rowNode,includeValueFormatted:!0});return n.value=s,n.valueFormatted=l,Y7(i,n)}case"FullWidthLoading":return Z7(i,n);default:return X7(i,n)}}setupFullWidthRowTooltip(e,t){this.fullWidthGui&&(this.tooltipFeature=this.beans.tooltipSvc?.setupFullWidthRowTooltip(this.tooltipFeature,this,e,t))}addFullWidthRowDragging(e,t,o="",r){const{rowDragSvc:n,context:i}=this.beans;if(!n||!this.isFullWidth())return;const s=n.createRowDragComp(()=>o,this.rowNode,void 0,e,t,r);this.createBean(s,i),this.addDestroyFunc(()=>{this.destroyBean(s,i)})}onUiLevelChanged(){const e=qR(this.rowNode);if(this.rowLevel!=e){const t="ag-row-level-"+e,o="ag-row-level-"+this.rowLevel;for(const r of this.allRowGuis)r.rowComp.toggleCss(t,!0),r.rowComp.toggleCss(o,!1)}this.rowLevel=e}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getLastRow()}refreshFirstAndLastRowStyles(){const e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();if(this.firstRowOnPage!==e){this.firstRowOnPage=e;for(const o of this.allRowGuis)o.rowComp.toggleCss("ag-row-first",e)}if(this.lastRowOnPage!==t){this.lastRowOnPage=t;for(const o of this.allRowGuis)o.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 o of this.allRowGuis)o.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,o=>o.rowComp.setUserStyles(this.rowStyles))}getPinnedForContainer(e){return e==="left"||e==="right"?e:null}getInitialRowClasses(e){const t=this.getPinnedForContainer(e),o=this.isFullWidth(),{rowNode:r,beans:n}=this,i=[];i.push("ag-row"),i.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeInAnimation[e]&&i.push("ag-opacity-zero"),i.push(r.rowIndex%2===0?"ag-row-even":"ag-row-odd"),r.isRowPinned()&&(i.push("ag-row-pinned"),n.pinnedRowModel?.isManual()&&i.push("ag-row-pinned-manual")),!r.isRowPinned()&&r.pinnedSibling&&i.push("ag-row-pinned-source"),r.isSelected()&&i.push("ag-row-selected"),r.footer&&i.push("ag-row-footer"),i.push("ag-row-level-"+this.rowLevel),r.stub&&i.push("ag-row-loading"),o&&i.push("ag-full-width-row"),n.expansionSvc?.addExpandedCss(i,r),r.dragging&&i.push("ag-row-dragging");const{rowStyleSvc:s}=n;return s&&(s.processClassesFromGridOptions(i,r),s.preProcessRowClassRules(i,r)),i.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.isFirstRowOnPage()&&i.push("ag-row-first"),this.isLastRowOnPage()&&i.push("ag-row-last"),o&&(t==="left"&&i.push("ag-cell-last-left-pinned"),t==="right"&&i.push("ag-cell-first-right-pinned")),i}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:o}=e,{rowNode:r,beans:n,gos:i}=this;o.addManagedListeners(t,{pointerenter:s=>{s.pointerType==="mouse"&&r.dispatchRowEvent("mouseEnter")},pointerleave:s=>{s.pointerType==="mouse"&&r.dispatchRowEvent("mouseLeave")}}),o.addManagedListeners(r,{mouseEnter:()=>{!n.dragSvc?.dragging&&!i.get("suppressRowHoverHighlight")&&(t.classList.add("ag-row-hover"),r.setHovered(!0))},mouseLeave:()=>{this.resetHoveredStatus(t)}})}resetHoveredStatus(e){const t=e?[e]:this.allRowGuis.map(o=>o.element);for(const o of t)o.classList.remove("ag-row-hover");this.rowNode.setHovered(!1)}roundRowTopToBounds(e){const t=this.beans.ctrlsSvc.getScrollFeature().getApproximateVScollPosition(),o=this.applyPaginationOffset(t.top,!0)-100,r=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(o,e),r)}forEachGui(e,t){if(e)t(e);else for(const o of this.allRowGuis)t(o)}isRowRendered(){return this.allRowGuis.length>0}onRowHeightChanged(e){if(this.rowNode.rowHeight==null)return;const t=this.rowNode.rowHeight,o=this.beans.environment.getDefaultRowHeight(),n=xk(this.gos)?Zd(this.beans,this.rowNode).height:void 0,i=n?`${Math.min(o,n)-2}px`:void 0;this.forEachGui(e,s=>{s.element.style.height=`${t}px`,i&&s.element.style.setProperty("--ag-line-height",i)})}destroyFirstPass(e=!1){this.active=!1;const{rowNode:t}=this;if(!e&&ua(this.gos)&&!t.sticky)if(t.rowTop!=null){const n=this.roundRowTopToBounds(t.rowTop);this.setRowTop(n)}else for(const n of this.allRowGuis)n.rowComp.toggleCss("ag-opacity-zero",!0);this.fullWidthGui?.element.contains(At(this.beans))&&this.beans.focusSvc.attemptToRecoverFocus(),t.setHovered(!1);const o=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(o),this.beans.eventSvc.dispatchEvent(o),super.destroy()}destroySecondPass(){this.allRowGuis.length=0;const e=t=>{for(const o of t.list)o.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 o=this.beans.pageBounds.getPixelOffset();return e+o*(t?1:-1)}setRowTop(e){if(!this.printLayout&&xe(e)){const t=this.applyPaginationOffset(e),n=`${this.rowNode.isRowPinned()||this.rowNode.sticky?t:this.beans.rowContainerHeight.getRealPixelPosition(t)}px`;this.setRowTopStyle(n)}}getInitialRowTop(e){return this.suppressRowTransform?this.getInitialRowTopShared(e):void 0}getInitialTransform(e){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(e)})`}getInitialRowTopShared(e){if(this.printLayout)return"";const t=this.rowNode;let o;if(t.sticky)o=t.stickyRowTop;else{const r=this.slideInAnimation[e]?this.roundRowTopToBounds(t.oldRowTop):t.rowTop,n=this.applyPaginationOffset(r);o=t.isRowPinned()?n:this.beans.rowContainerHeight.getRealPixelPosition(n)}return o+"px"}setRowTopStyle(e){for(const t of this.allRowGuis)this.suppressRowTransform?t.rowComp.setTop(e):t.rowComp.setTransform(`translateY(${e})`)}getCellCtrl(e,t=!1){let o=null;for(const r of this.getAllCellCtrls())r.column==e&&(o=r);if(o!=null||t)return o;for(const r of this.getAllCellCtrls())r?.getColSpanningList().indexOf(e)>=0&&(o=r);return o}onRowIndexChanged(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}updateRowIndexes(e){const t=this.rowNode.getRowIndexString();if(t===null)return;const o=(this.beans.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.beans.filterManager?.getHeaderRowCount()??0),r=this.rowNode.rowIndex%2===0,n=o+this.rowNode.rowIndex+1;this.forEachGui(e,i=>{i.rowComp.setRowIndex(t),i.rowComp.toggleCss("ag-row-even",r),i.rowComp.toggleCss("ag-row-odd",!r),q8(i.element,n)})}},z$=class extends ue{constructor(){super(),this.beanName="navigation",this.onPageDown=nk(this.onPageDown,100),this.onPageUp=nk(this.onPageUp,100)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}handlePageScrollingKey(e,t=!1){const o=e.key,r=e.altKey,n=e.ctrlKey||e.metaKey,i=!!this.beans.rangeSvc&&e.shiftKey,s=pj(this.gos,e);let l=!1;switch(o){case te.PAGE_HOME:case te.PAGE_END:!n&&!r&&(this.onHomeOrEndKey(o),l=!0);break;case te.LEFT:case te.RIGHT:case te.UP:case te.DOWN:if(!s)return!1;n&&!r&&!i&&(this.onCtrlUpDownLeftRight(o,s),l=!0);break;case te.PAGE_DOWN:case te.PAGE_UP:!n&&!r&&(l=this.handlePageUpDown(o,s,t));break}return l&&e.preventDefault(),l}handlePageUpDown(e,t,o){return o&&(t=this.beans.focusSvc.getFocusedCell()),t?(e===te.PAGE_UP?this.onPageUp(t):this.onPageDown(t),!0):!1}navigateTo({scrollIndex:e,scrollType:t,scrollColumn:o,focusIndex:r,focusColumn:n,isAsync:i,rowPinned:s}){const{scrollFeature:l}=this.gridBodyCon;xe(o)&&!o.isPinned()&&l.ensureColumnVisible(o),xe(e)&&l.ensureIndexVisible(e,t),i||l.ensureIndexVisible(r);const{focusSvc:u,rangeSvc:d}=this.beans;u.setFocusedCell({rowIndex:r,column:n,rowPinned:s,forceBrowserFocus:!0}),d?.setRangeToCell({rowIndex:r,rowPinned:s,column:n})}onPageDown(e){const t=this.beans,o=Fv(t),r=this.getViewportHeight(),{pageBounds:n,rowModel:i,rowAutoHeight:s}=t,l=n.getPixelOffset(),u=o.top+r,d=i.getRowIndexAtPixel(u+l);s?.active?this.navigateToNextPageWithAutoHeight(e,d):this.navigateToNextPage(e,d)}onPageUp(e){const t=this.beans,o=Fv(t),{pageBounds:r,rowModel:n,rowAutoHeight:i}=t,s=r.getPixelOffset(),l=o.top,u=n.getRowIndexAtPixel(l+s);i?.active?this.navigateToNextPageWithAutoHeight(e,u,!0):this.navigateToNextPage(e,u,!0)}navigateToNextPage(e,t,o=!1){const{pageBounds:r,rowModel:n}=this.beans,i=this.getViewportHeight(),s=r.getFirstRow(),l=r.getLastRow(),u=r.getPixelOffset(),d=n.getRow(e.rowIndex),h=o?d?.rowHeight-i-u:i-u,p=d?.rowTop+h;let g=n.getRowIndexAtPixel(p+u);if(g===e.rowIndex){const b=o?-1:1;t=g=e.rowIndex+b}let v;o?(v="bottom",g<s&&(g=s),t<s&&(t=s)):(v="top",g>l&&(g=l),t>l&&(t=l)),this.isRowTallerThanView(n.getRow(g))&&(t=g,v="top"),this.navigateTo({scrollIndex:t,scrollType:v,scrollColumn:null,focusIndex:g,focusColumn:e.column})}navigateToNextPageWithAutoHeight(e,t,o=!1){this.navigateTo({scrollIndex:t,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout(()=>{const r=this.getNextFocusIndexForAutoHeight(e,o);this.navigateTo({scrollIndex:t,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:r,focusColumn:e.column,isAsync:!0})},50)}getNextFocusIndexForAutoHeight(e,t=!1){const o=t?-1:1,r=this.getViewportHeight(),{pageBounds:n,rowModel:i}=this.beans,s=n.getLastRow();let l=0,u=e.rowIndex;for(;u>=0&&u<=s;){const d=i.getRow(u);if(d){const h=d.rowHeight??0;if(l+h>r)break;l+=h}u+=o}return Math.max(0,Math.min(u,s))}getViewportHeight(){const e=this.beans,t=Fv(e),o=this.beans.scrollVisibleSvc.getScrollbarWidth();let r=t.bottom-t.top;return e.ctrlsSvc.get("center").isHorizontalScrollShowing()&&(r-=o),r}isRowTallerThanView(e){if(!e)return!1;const t=e.rowHeight;return typeof t!="number"?!1:t>this.getViewportHeight()}onCtrlUpDownLeftRight(e,t){const o=this.beans.cellNavigation.getNextCellToFocus(e,t,!0),r=this.getNormalisedPosition(o),{rowIndex:n,rowPinned:i,column:s}=r??o,l=s;this.navigateTo({scrollIndex:n,scrollType:null,scrollColumn:l,focusIndex:n,focusColumn:l,rowPinned:i})}onHomeOrEndKey(e){const t=e===te.PAGE_HOME,{visibleCols:o,pageBounds:r,rowModel:n}=this.beans,i=o.allCols,s=t?r.getFirstRow():r.getLastRow(),l=n.getRow(s);if(!l)return;const u=(t?i:[...i].reverse()).find(d=>!d.isSuppressNavigable(l));u&&this.navigateTo({scrollIndex:s,scrollType:null,scrollColumn:u,focusIndex:s,focusColumn:u})}onTabKeyDown(e,t){const o=t.shiftKey,r=this.tabToNextCellCommon(e,o,t),n=this.beans,{ctrlsSvc:i,pageBounds:s,focusSvc:l,gos:u}=n;if(r!==!1){r?t.preventDefault():r===null&&i.get("gridCtrl").allowFocusForNextCoreContainer(o);return}if(o){const{rowIndex:d,rowPinned:h}=e.getRowPosition();(h?d===0:d===s.getFirstRow())&&(u.get("headerHeight")===0||ns(n)?mc(n,!0,!0):(t.preventDefault(),l.focusPreviousFromFirstCell(t)))}else e instanceof Cc&&e.focusCell(!0),(l.focusOverlay(!1)||mc(n,o))&&t.preventDefault()}tabToNextCell(e,t){const o=this.beans,{focusSvc:r,rowRenderer:n}=o,i=r.getFocusedCell();if(!i)return!1;let s=gc(o,i);return!s&&(s=n.getRowByPosition(i),!s?.isFullWidth())?!1:!!this.tabToNextCellCommon(s,e,t,"api")}tabToNextCellCommon(e,t,o,r="ui"){const{editSvc:n,focusSvc:i}=this.beans;let s;const l=e instanceof Cc?e:e.getAllCellCtrls()?.[0];return n?.isEditing()?s=n?.moveToNextCell(l,t,o,r):s=this.moveToNextCellNotEditing(e,t,o),s===null?s:s||!!i.focusedHeader}moveToNextCellNotEditing(e,t,o){const r=this.beans.visibleCols.allCols;let n;if(e instanceof kv){if(n={...e.getRowPosition(),column:t?r[0]:st(r)},this.gos.get("embedFullWidthRows")&&o){const s=e.findFullWidthInfoForEvent(o);s&&(n.column=s.column)}}else n=e.getFocusedCellPosition();const i=this.findNextCellToFocusOn(n,{backwards:t,startEditing:!1});if(i===!1)return null;if(i instanceof Cc)i.focusCell(!0);else if(i)return this.tryToFocusFullWidthRow(i,t);return xe(i)}findNextCellToFocusOn(e,{backwards:t,startEditing:o,skipToNextEditableCell:r}){let n=e;const i=this.beans,{cellNavigation:s,gos:l,focusSvc:u,rowRenderer:d,rangeSvc:h}=i;for(;;){e!==n&&(e=n),t||(n=this.getLastCellOfColSpan(n)),n=s.getNextTabbedCell(n,t);const p=l.getCallback("tabToNextCell");if(xe(p)){const C=p({backwards:t,editing:o,previousCellPosition:e,nextCellPosition:n||null});if(C===!0)n=e;else{if(C===!1)return!1;n={rowIndex:C.rowIndex,column:C.column,rowPinned:C.rowPinned}}}if(!n)return null;if(n.rowIndex<0){const b=nn(i);return u.focusHeaderPosition({headerPosition:{headerRowIndex:b+n.rowIndex,column:n.column},fromCell:!0}),null}const g=l.get("editType")==="fullRow";if(o&&(!g||r)&&!this.isCellEditable(n))continue;this.ensureCellVisible(n);const v=gc(i,n);if(!v){const b=d.getRowByPosition(n);if(!b||!b.isFullWidth()||o)continue;return{...b.getRowPosition(),column:n?.column}}if(!s.isSuppressNavigable(v.column,v.rowNode))return v.setFocusedCellPosition(n),h?.setRangeToCell(n),v}}isCellEditable(e){const t=this.lookupRowNodeForCell(e);return t?e.column.isCellEditable(t):!1}lookupRowNodeForCell({rowIndex:e,rowPinned:t}){const{pinnedRowModel:o,rowModel:r}=this.beans;return t==="top"?o?.getPinnedTopRow(e):t==="bottom"?o?.getPinnedBottomRow(e):r.getRow(e)}navigateToNextCell(e,t,o,r){let n=o,i=!1;const s=this.beans,{cellNavigation:l,focusSvc:u,gos:d}=s;for(;n&&(n===o||!this.isValidNavigateCell(n));)d.get("enableRtl")?t===te.LEFT&&(n=this.getLastCellOfColSpan(n)):t===te.RIGHT&&(n=this.getLastCellOfColSpan(n)),n=l.getNextCellToFocus(t,n),i=Ht(n);if(i&&e&&e.key===te.UP&&(n={rowIndex:-1,rowPinned:null,column:o.column}),r){const p=d.getCallback("navigateToNextCell");if(xe(p)){const v=p({key:t,previousCellPosition:o,nextCellPosition:n||null,event:e});xe(v)?n={rowPinned:v.rowPinned,rowIndex:v.rowIndex,column:v.column}:n=null}}if(!n)return;if(n.rowIndex<0){const p=nn(s);u.focusHeaderPosition({headerPosition:{headerRowIndex:p+n.rowIndex,column:o.column},event:e||void 0,fromCell:!0});return}const h=this.getNormalisedPosition(n);h?this.focusPosition(h):this.tryToFocusFullWidthRow(n)}getNormalisedPosition(e){if(!!this.beans.spannedRowRenderer?.getCellByPosition(e))return e;this.ensureCellVisible(e);const o=gc(this.beans,e);return o?(e=o.getFocusedCellPosition(),this.ensureCellVisible(e),e):null}tryToFocusFullWidthRow(e,t){const{visibleCols:o,rowRenderer:r,focusSvc:n,eventSvc:i}=this.beans,s=o.allCols;if(!r.getRowByPosition(e)?.isFullWidth())return!1;const u=n.getFocusedCell(),d={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?st(s):s[0])};this.focusPosition(d);const h=t??(u!=null&&xj(d,u));return i.dispatchEvent({type:"fullWidthRowFocused",rowIndex:d.rowIndex,rowPinned:d.rowPinned,column:d.column,isFullWidthCell:!0,fromBelow:h}),!0}focusPosition(e){const{focusSvc:t,rangeSvc:o}=this.beans;t.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),o?.setRangeToCell(e)}isValidNavigateCell(e){return!!rs(this.beans,e)}getLastCellOfColSpan(e){const t=gc(this.beans,e);if(!t)return e;const o=t.getColSpanningList();return o.length===1?e:{rowIndex:e.rowIndex,column:st(o),rowPinned:e.rowPinned}}ensureCellVisible(e){const t=Rk(this.gos),o=this.beans.rowModel.getRow(e.rowIndex),r=t&&o?.sticky,{scrollFeature:n}=this.gridBodyCon;!r&&Ht(e.rowPinned)&&n.ensureIndexVisible(e.rowIndex),e.column.isPinned()||n.ensureColumnVisible(e.column)}ensureColumnVisible(e){const t=this.gridBodyCon.scrollFeature;e.isPinned()||t.ensureColumnVisible(e)}ensureRowVisible(e){this.gridBodyCon.scrollFeature.ensureIndexVisible(e)}};function Fv(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}var H$={moduleName:"KeyboardNavigation",version:ze,beans:[z$,c$,SU],apiFunctions:{getFocusedCell:u$,clearFocusedCell:d$,setFocusedCell:h$,setFocusedHeader:g$,tabToNextCell:f$,tabToPreviousCell:p$}},V$=class extends ue{constructor(){super(...arguments),this.beanName="pageBoundsListener"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this),recalculateRowBounds:this.calculatePages.bind(this)}),this.onModelUpdated()}onModelUpdated(e){this.calculatePages(),this.eventSvc.dispatchEvent({type:"paginationChanged",animate:e?.animate??!1,newData:e?.newData??!1,newPage:e?.newPage??!1,newPageSize:e?.newPageSize??!1,keepRenderedRows:e?.keepRenderedRows??!1})}calculatePages(){const{pageBounds:e,pagination:t,rowModel:o}=this.beans;t?t.calculatePages():e.calculateBounds(0,o.getRowCount()-1)}},G$=class extends ue{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,o=e?.rowTop??0,r=t?t.rowTop+t.rowHeight:0;return{pageFirstPixel:o,pageLastPixel:r}}calculateBounds(e,t){const{rowModel:o}=this.beans,r=o.getRowBounds(e);r&&(r.rowIndex=e),this.topRowBounds=r;const n=o.getRowBounds(t);n&&(n.rowIndex=t),this.bottomRowBounds=n,this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){const e=this.topRowBounds?.rowTop??0;this.pixelOffset!==e&&(this.pixelOffset=e,this.eventSvc.dispatchEvent({type:"paginationPixelOffsetChanged"}))}},j$=".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}",W$=class extends ue{constructor(e,t){super(),this.isLeft=e,this.elements=t,this.getWidth=e?()=>this.beans.pinnedCols.leftWidth:()=>this.beans.pinnedCols.rightWidth}postConstruct(){this.addManagedEventListeners({[`${this.isLeft?"left":"right"}PinnedWidthChanged`]:this.onPinnedWidthChanged.bind(this)})}onPinnedWidthChanged(){const e=this.getWidth(),t=e>0;for(const o of this.elements)o&&(gt(o,t),Yr(o,e))}},q$=class extends ue{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:o}=this.beans,r=no(e,"print"),n=r?0:t.getColsLeftWidth(),i=r?0:t.getDisplayedColumnsRightWidth();n!=this.leftWidth&&(this.leftWidth=n,o.dispatchEvent({type:"leftPinnedWidthChanged"})),i!=this.rightWidth&&(this.rightWidth=i,o.dispatchEvent({type:"rightPinnedWidthChanged"}))}keepPinnedColumnsNarrowerThanViewport(){const e=this.gridBodyCtrl.eBodyViewport,t=Nd(e);if(t<=50)return;const o=this.getPinnedColumnsOverflowingViewport(t-50),r=this.gos.getCallback("processUnpinnedColumns"),{columns:n,hasLockedPinned:i}=o;let s=n;!s.length&&!i||(r&&(s=r({columns:s,viewportWidth:t})),s?.length&&(s=s.filter(l=>!ma(l)),this.setColsPinned(s,null,"viewportSizeFeature")))}createPinnedWidthFeature(e,...t){return new W$(e,t)}setColsPinned(e,t,o){const{colModel:r,colAnimation:n,visibleCols:i,gos:s}=this.beans;if(!r.cols||!e?.length)return;if(no(s,"print")){pe(37);return}n?.start();let l;t===!0||t==="left"?l="left":t==="right"?l="right":l=null;const u=[];for(const d of e){if(!d)continue;const h=r.getCol(d);h&&h.getPinned()!==l&&(this.setColPinned(h,l),u.push(h))}u.length&&(i.refresh(o),Lk(this.eventSvc,u,o)),n?.finish()}initCol(e){const{pinned:t,initialPinned:o}=e.colDef;t!==void 0?this.setColPinned(e,t):this.setColPinned(e,o)}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 o=e.pinned==="left",r=e.pinned==="right";e.hidden=!0;const n=()=>{const i=o?this.leftWidth:this.rightWidth;if(i==null)return;const s=i==0,l=e.hidden!==s,u=this.gos.get("enableRtl"),d=t.getScrollbarWidth(),p=t.verticalScrollShowing&&(u&&o||!u&&r)?i+d:i;e.comp.setPinnedContainerWidth(`${p}px`),e.comp.setDisplayed(!s),l&&(e.hidden=s,e.refresh())};e.addManagedEventListeners({leftPinnedWidthChanged:n,rightPinnedWidthChanged:n,scrollVisibilityChanged:n,scrollbarWidthChanged:n})}getHeaderResizeDiff(e,t){if(t.getPinned()){const{leftWidth:r,rightWidth:n}=this,i=Nd(this.beans.ctrlsSvc.getGridBodyCtrl().eBodyViewport)-50;if(r+n+e>i)if(i>r+n)e=i-r-n;else return 0}return e}getPinnedColumnsOverflowingViewport(e){const t=this.rightWidth??0,o=this.leftWidth??0,r=t+o;let n=!1;if(r<e)return{columns:[],hasLockedPinned:n};const{visibleCols:i}=this.beans,s=[...i.leftCols],l=[...i.rightCols];let u=0,d=0;const h=0,p=[];let g=r-h-e;for(;(d<s.length||u<l.length)&&g>0;){if(u<l.length){const v=l[u++];if(v.colDef.lockPinned){n=!0;continue}g-=v.getActualWidth(),p.push(v)}if(d<s.length&&g>0){const v=s[d++];if(v.colDef.lockPinned){n=!0;continue}g-=v.getActualWidth(),p.push(v)}}return{columns:p,hasLockedPinned:n}}},U$={moduleName:"PinnedColumn",version:ze,beans:[q$],css:[j$]},$$=class extends xo{constructor(){super(),this.beanName="ariaAnnounce",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.lastAnnouncement="",this.updateAnnouncement=An(this,this.updateAnnouncement.bind(this),200)}postConstruct(){const e=this.beans,t=Zt(e),o=this.descriptionContainer=t.createElement("div");o.classList.add("ag-aria-description-container"),Gx(o,"polite"),V8(o,"additions text"),H8(o,!0),e.eRootDiv.appendChild(o)}announceValue(e,t){this.pendingAnnouncements.set(t,e),this.updateAnnouncement()}updateAnnouncement(){if(!this.descriptionContainer)return;const e=Array.from(this.pendingAnnouncements.values()).join(". ");this.pendingAnnouncements.clear(),this.descriptionContainer.textContent="",setTimeout(()=>{this.handleAnnouncementUpdate(e)},50)}handleAnnouncementUpdate(e){if(!this.isAlive()||!this.descriptionContainer)return;let t=e;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&&(En(e),e.remove()),this.descriptionContainer=null,this.pendingAnnouncements.clear()}},K$=class extends $${},X$={moduleName:"Aria",version:ze,beans:[K$]},Z$=":where(.ag-delay-render){.ag-cell,.ag-header-cell,.ag-header-group-cell,.ag-row,.ag-spanned-cell-wrapper{visibility:hidden}}",UR="ag-delay-render",Y$=class extends ue{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(UR)}),this.hideRequested=!0))}revealColumns(e){if(this.alreadyRevealed||!this.isAlive()||(this.requesters.delete(e),this.requesters.size>0))return;const{renderStatus:t,ctrlsSvc:o}=this.beans;if(t){if(!t.areHeaderCellsRendered()&&this.timesRetried<5){this.timesRetried++,setTimeout(()=>this.revealColumns(e));return}this.timesRetried=0}o.getGridBodyCtrl().eGridBody.classList.remove(UR),this.alreadyRevealed=!0}},Q$={moduleName:"ColumnDelayRender",version:ze,beans:[Y$],css:[Z$]};function J$(e){e.overlays?.showLoadingOverlay()}function eK(e){e.overlays?.showNoRowsOverlay()}function tK(e){e.overlays?.hideOverlay()}var oK=".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)}",rK={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"}]}]},$R=class extends ko{constructor(){super(rK),this.eOverlayWrapper=Me,this.activeOverlay=null,this.activePromise=null,this.activeCssClass=null,this.elToFocusAfter=null,this.overlayExclusive=!1,this.oldWrapperPadding=null,this.registerCSS(oK)}handleKeyDown(e){if(e.key!==te.TAB||e.defaultPrevented||Ln(e))return;const{beans:t,eOverlayWrapper:o}=this;if(o&&Ca(t,o,!1,e.shiftKey))return;let n=!1;e.shiftKey?n=t.focusSvc.focusGridView({column:st(t.visibleCols.allCols),backwards:!0,canFocusOverlay:!1}):n=mc(t,!1),n&&e.preventDefault()}updateLayoutClasses(e,t){const o=this.eOverlayWrapper;if(!o)return;const r=o.classList,{AUTO_HEIGHT:n,NORMAL:i,PRINT:s}=ph;r.toggle(n,t.autoHeight),r.toggle(i,t.normal),r.toggle(s,t.print)}postConstruct(){this.createManagedBean(new Ym(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,o){if(this.destroyActiveOverlay(),this.elToFocusAfter=null,this.activePromise=e,this.overlayExclusive=o,!e)return this.refreshWrapperPadding(),Ve.resolve();if(this.setWrapperTypeClass(t),this.setDisplayed(!0,{skipAriaHidden:!0}),this.refreshWrapperPadding(),o&&this.isGridFocused()){const r=At(this.beans);r&&!Jg(this.beans)&&(this.elToFocusAfter=r)}return e.then(r=>{const n=this.eOverlayWrapper;if(!n){this.destroyBean(r);return}if(this.activePromise!==e){this.activeOverlay!==r&&(this.destroyBean(r),r=null);return}this.activePromise=null,r&&(this.activeOverlay!==r&&(n.appendChild(r.getGui()),this.activeOverlay=r),o&&this.isGridFocused()&&ts(n))}),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 o=this.eOverlayWrapper;o&&En(o),t?.focus?.({preventScroll:!0}),this.refreshWrapperPadding()}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}isGridFocused(){const e=At(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}},nK={selector:"AG-OVERLAY-WRAPPER",component:$R},iK=["refresh"],wc=e=>({name:e,optionalMethods:iK}),as={id:"agLoadingOverlay",overlayType:"loading",comp:wc("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}},Aa={id:"agNoRowsOverlay",overlayType:"noRows",comp:wc("noRowsOverlayComponent"),wrapperCls:"ag-overlay-no-rows-wrapper",compKey:"noRowsOverlayComponent",paramsKey:"noRowsOverlayComponentParams",isSuppressed:e=>e.get("suppressNoRowsOverlay")},Rv={id:"agNoMatchingRowsOverlay",overlayType:"noMatchingRows",comp:wc("noMatchingRowsOverlayComponent"),wrapperCls:"ag-overlay-no-matching-rows-wrapper"},Ah={id:"agExportingOverlay",overlayType:"exporting",comp:wc("exportingOverlayComponent"),wrapperCls:"ag-overlay-exporting-wrapper",exclusive:!0},_h={id:"activeOverlay",comp:wc("activeOverlay"),wrapperCls:"ag-overlay-modal-wrapper",exclusive:!0},sK=e=>e?{agLoadingOverlay:as,agNoRowsOverlay:Aa,agNoMatchingRowsOverlay:Rv,agExportingOverlay:Ah}[e]??_h:null,aK=e=>e?{loading:as,noRows:Aa,noMatchingRows:Rv,exporting:Ah}[e]:null,lK=class extends ue{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=Qi(e);const t=()=>{this.userForcedNoRows||this.updateOverlay(!1)},[o,r,n,i]=this.addManagedEventListeners({newColumnsLoaded:t,rowCountReady:()=>{this.disableInitialOverlay(),t(),r()},rowDataUpdated:t,modelUpdated:t});this.newColumnsLoadedCleanup=o,this.addManagedPropertyListeners(["loading","activeOverlay","activeOverlayParams","overlayComponentParams","loadingOverlayComponentParams","noRowsOverlayComponentParams"],s=>this.onPropChange(new Set(s.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(as))return;const t=e.get("loading");!t&&t!==void 0||this.doShowOverlay(as)}showNoRowsOverlay(){this.showInitialOverlay=!1;const e=this.gos;!this.eWrapper||e.get("activeOverlay")||e.get("loading")||this.isDisabled(Aa)||(this.userForcedNoRows=!0,this.doShowOverlay(Aa))}async showExportOverlay(e){const{gos:t,beans:o}=this;if(!this.eWrapper||t.get("activeOverlay")||t.get("loading")||this.isDisabled(Ah)||this.userForcedNoRows&&this.currentDef===Aa){e();return}const r=this.getDesiredDefWithOverride(Ah);if(!r){e();return}this.exportsInProgress++,this.focusedCell=o.focusSvc.getFocusedCell(),await this.doShowOverlay(r),await new Promise(i=>setTimeout(()=>i()));const n=Date.now();try{e()}finally{const i=Date.now()-n,s=Math.max(0,300-i),l=()=>{this.exportsInProgress--,this.exportsInProgress===0&&(this.updateOverlay(!1),Ej(o,this.focusedCell),this.focusedCell=null)};s>0?setTimeout(()=>l(),s):l()}}hideOverlay(){const e=this.gos;this.showInitialOverlay=!1;const t=this.userForcedNoRows;if(this.userForcedNoRows=!1,e.get("loading")){pe(99);return}if(e.get("activeOverlay")){pe(296);return}if(this.currentDef===Rv){pe(297);return}this.doHideOverlay(),t&&this.getOverlayDef()!==Aa&&this.updateOverlay(!1)}getOverlayWrapperSelector(){return nK}getOverlayWrapperCompClass(){return $R}onPropChange(e){const t=e.has("activeOverlay");if((t||e.has("loading"))&&this.updateOverlay(t))return;const o=this.currentDef,r=this.eWrapper?.activeOverlay;if(r&&o){const n=e.has("activeOverlayParams");if(o===_h)n&&r.refresh?.(this.makeCompParams(!0));else{const i=o.paramsKey;(e.has("overlayComponentParams")||i&&e.has(i))&&r.refresh?.(this.makeCompParams(!1,i,o.overlayType))}}}updateOverlay(e){const t=this.eWrapper;if(!t)return this.currentDef=null,!1;const o=this.getDesiredDefWithOverride(),r=this.currentDef,n=o===_h&&e;return o!==r?o?(this.doShowOverlay(o),!0):(this.disableInitialOverlay(),this.doHideOverlay()):n&&o?(t.hideOverlay(),this.doShowOverlay(o),!0):(o||this.disableInitialOverlay(),!1)}getDesiredDefWithOverride(e){const{gos:t}=this;let o=sK(t.get("activeOverlay"));return o||(o=e??this.getOverlayDef(),o&&this.isDisabled(o)&&(o=null)),o}getOverlayDef(){const{gos:e,beans:t}=this,{colModel:o,rowModel:r}=t,n=e.get("loading");if(n!==void 0){if(this.disableInitialOverlay(),n)return as}else if(this.showInitialOverlay){if(!this.isDisabled(as)&&(!e.get("columnDefs")||!o.ready||!e.get("rowData")))return as;this.disableInitialOverlay()}else this.disableInitialOverlay();const s=r.getOverlayType();return aK(s)}disableInitialOverlay(){this.showInitialOverlay=!1,this.newColumnsLoadedCleanup?.(),this.newColumnsLoadedCleanup=null}doShowOverlay(e){const{gos:t,beans:o}=this,{userCompFactory:r}=o;this.currentDef=e;const n=e!==_h,i=!!e.exclusive;this.exclusive=i;let s;(e.paramsKey&&t.get(e.paramsKey)||e.compKey&&t.get(e.compKey))&&(s=e.paramsKey);let l;n&&(t.get("overlayComponent")||t.get("overlayComponentSelector"))&&(l=r.getCompDetailsFromGridOptions({name:"overlayComponent",optionalMethods:["refresh"]},void 0,this.makeCompParams(!1,e.paramsKey,e.overlayType))),l??(l=r.getCompDetailsFromGridOptions(e.comp,n?e.id:void 0,this.makeCompParams(!n,s,e.overlayType),!1));const u=l?.newAgStackInstance()??null,d=this.eWrapper?this.eWrapper.showOverlay(u,e.wrapperCls,i):Ve.resolve();return this.eWrapper?.refreshWrapperPadding(),this.setExclusive(i),d}makeCompParams(e,t,o){const{gos:r}=this,n=e?r.get("activeOverlayParams"):{...r.get("overlayComponentParams"),...t&&r.get(t)||null,overlayType:o};return je(r,n??{})}doHideOverlay(){let e=!1;this.currentDef&&(this.currentDef=null,e=!0),this.exclusive=!1;const t=this.eWrapper;return t&&(t.hideOverlay(),t.refreshWrapperPadding(),this.setExclusive(!1)),e}setExclusive(e){this.oldExclusive!==e&&(this.oldExclusive=e,this.eventSvc.dispatchEvent({type:"overlayExclusiveChanged"}))}isDisabled(e){const{gos:t}=this;return e.overlayType&&t.get("suppressOverlays")?.includes(e.overlayType)||e.isSuppressed?.(t)===!0}},cK={moduleName:"Overlay",version:ze,userComponents:{agLoadingOverlay:Vj,agNoRowsOverlay:qj,agNoMatchingRowsOverlay:$j,agExportingOverlay:jj},apiFunctions:{showLoadingOverlay:J$,showNoRowsOverlay:eK,hideOverlay:tK},icons:{overlayLoading:"loading",overlayExporting:"loading"},beans:[lK]},uK=class extends ue{constructor(){super(...arguments),this.beanName="rowContainerHeight",this.scrollY=0,this.uiBodyHeight=0}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)}),this.maxDivHeight=c9(),Ud(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;Ud(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(),o=e/t;return this.maxScrollY*o}},dK=400,hK=class extends ue{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 i of this.getAllCellCtrls())i.onCellSelectionChanged()},t=()=>{for(const i of this.getAllCellCtrls())i.updateRangeBordersIfRangeCount()},o=()=>{this.eventSvc.addListener("cellSelectionChanged",e),this.eventSvc.addListener("columnMoved",t),this.eventSvc.addListener("columnPinned",t),this.eventSvc.addListener("columnVisible",t)},r=()=>{this.eventSvc.removeListener("cellSelectionChanged",e),this.eventSvc.removeListener("columnMoved",t),this.eventSvc.removeListener("columnPinned",t),this.eventSvc.removeListener("columnVisible",t)};this.addDestroyFunc(()=>r()),this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{nc(this.gos)?o():r()}),nc(this.gos)&&o()}}wireBeans(e){this.pageBounds=e.pageBounds,this.colModel=e.colModel,this.pinnedRowModel=e.pinnedRowModel,this.rowModel=e.rowModel,this.focusSvc=e.focusSvc,this.rowContainerHeight=e.rowContainerHeight,this.ctrlsSvc=e.ctrlsSvc,this.editSvc=e.editSvc}postConstruct(){this.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.initialise()})}initialise(){this.addManagedEventListeners({paginationChanged:this.onPageLoaded.bind(this),pinnedRowDataChanged:this.onPinnedRowDataChanged.bind(this),pinnedRowsChanged:this.onPinnedRowsChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),bodyScroll:this.onBodyScroll.bind(this),bodyHeightChanged:this.redraw.bind(this,{})}),this.addManagedPropertyListeners(["domLayout","embedFullWidthRows"],()=>this.onDomLayoutChanged()),this.addManagedPropertyListeners(["suppressMaxRenderedRowRestriction","rowBuffer"],()=>this.redraw()),this.addManagedPropertyListener("suppressCellFocus",r=>this.onSuppressCellFocusChanged(r.currentValue)),this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],()=>this.redrawRows()),this.addManagedPropertyListener("cellSelection",({currentValue:r,previousValue:n})=>{(!n&&r||n&&!r)&&this.redrawRows()});const{stickyRowSvc:e,gos:t,showRowGroupCols:o}=this.beans;if(o&&this.addManagedPropertyListener("showOpenedGroup",()=>{const r=o.columns;r.length&&this.refreshCells({columns:r,force:!0})}),e)this.stickyRowFeature=e.createStickyRowFeature(this,this.createRowCon.bind(this),this.destroyRowCtrls.bind(this));else{const r=this.gridBodyCtrl;r.setStickyTopHeight(0),r.setStickyBottomHeight(0)}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=no(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 fK(t)}}getKeepDetailRowsCount(){return this.gos.get("keepDetailRowsCount")}getStickyTopRowCtrls(){return this.stickyRowFeature?.stickyTopRowCtrls??[]}getStickyBottomRowCtrls(){return this.stickyRowFeature?.stickyBottomRowCtrls??[]}updateAllRowCtrls(){const e=Object.values(this.rowCtrlsByRowIndex),t=Object.values(this.zombieRowCtrls),o=this.cachedRowCtrls?.getEntries()??[];t.length>0||o.length>0?this.allRowCtrls=[...e,...t,...o]:this.allRowCtrls=e}isCellBeingRendered(e,t){const o=this.rowCtrlsByRowIndex[e];return!t||!o?!!o:o.isFullWidth()?!0:!!this.beans.spannedRowRenderer?.getCellByPosition({rowIndex:e,column:t,rowPinned:null})||!!o.getCellCtrl(t)||!o.isRowRendered()}updateCellFocus(e){for(const t of this.getAllCellCtrls())t.onCellFocused(e);for(const t of this.getFullWidthRowCtrls())t.onFullWidthRowFocused(e)}onCellFocusChanged(e){if(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 o of this.getAllCellCtrls())t.onFlashCells(o,e)},columnHoverChanged:()=>{for(const e of this.getAllCellCtrls())e.onColumnHover()},displayedColumnsChanged:()=>{for(const e of this.getAllCellCtrls())e.onDisplayedColumnsChanged()},displayedColumnsWidthChanged:()=>{if(this.printLayout)for(const e of this.getAllCellCtrls())e.onLeftChanged()}}),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedEventListeners({gridColumnsChanged:this.refreshListenersToColumnsForCellComps.bind(this)}),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){for(const e of this.destroyFuncsForColumnListeners)e();this.destroyFuncsForColumnListeners.length=0}refreshListenersToColumnsForCellComps(){this.removeGridColumnListeners();const e=this.colModel.getCols();for(const t of e){const o=u=>{for(const d of this.getAllCellCtrls())d.column===t&&u(d)},r=()=>{o(u=>u.onLeftChanged())},n=()=>{o(u=>u.onWidthChanged())},i=()=>{o(u=>u.onFirstRightPinnedChanged())},s=()=>{o(u=>u.onLastLeftPinnedChanged())},l=()=>{o(u=>u.onColDefChanged())};t.__addEventListener("leftChanged",r),t.__addEventListener("widthChanged",n),t.__addEventListener("firstRightPinnedChanged",i),t.__addEventListener("lastLeftPinnedChanged",s),t.__addEventListener("colDefChanged",l),this.destroyFuncsForColumnListeners.push(()=>{t.__removeEventListener("leftChanged",r),t.__removeEventListener("widthChanged",n),t.__removeEventListener("firstRightPinnedChanged",i),t.__removeEventListener("lastLeftPinnedChanged",s),t.__removeEventListener("colDefChanged",l)})}}onDomLayoutChanged(){const e=no(this.gos,"print"),t=e||this.gos.get("embedFullWidthRows"),o=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,o&&this.redrawAfterModelUpdate({domLayoutChanged:!0})}datasourceChanged(){this.firstRenderedRow=0,this.lastRenderedRow=-1;const e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)}onPageLoaded(e){const t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)}getAllCellsNotSpanningForColumn(e){const t=[];for(const o of this.getAllRowCtrls()){const r=o.getCellCtrl(e,!0)?.eGui;r&&t.push(r)}return t}refreshFloatingRowComps(e=!0){this.refreshFloatingRows(this.topRowCtrls,"top",e),this.refreshFloatingRows(this.bottomRowCtrls,"bottom",e)}refreshFloatingRows(e,t,o){const{pinnedRowModel:r,beans:n,printLayout:i}=this,s=Object.fromEntries(e.map(u=>[u.rowNode.id,u]));r?.forEachPinnedRow(t,(u,d)=>{const h=e[d];h&&r.getPinnedRowById(h.rowNode.id,t)===void 0&&(h.destroyFirstPass(),h.destroySecondPass()),u.id in s&&o?(e[d]=s[u.id],delete s[u.id]):e[d]=new kv(u,n,!1,!1,i)});const l=(t==="top"?r?.getPinnedTopRowCount():r?.getPinnedBottomRowCount())??0;e.length=l}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 o=r=>{const n=r[e.rowIndex];n&&n.rowNode===e&&(n.destroyFirstPass(),n.destroySecondPass(),r[e.rowIndex]=this.createRowCon(e,!1,!1))};switch(e.rowPinned){case"top":o(this.topRowCtrls);break;case"bottom":o(this.bottomRowCtrls);break;default:o(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 r of e??[])this.redrawRow(r,!0);this.dispatchDisplayedRowsChanged(!1);return}this.redrawAfterModelUpdate()}redrawAfterModelUpdate(e={}){this.getLockOnRefresh();const t=this.beans.focusSvc?.getFocusCellToUseAfterRefresh();this.updateContainerHeights(),this.scrollToTopIfNewData(e);const o=!e.domLayoutChanged&&!!e.recycleRows,r=e.animate&&ua(this.gos),n=o?this.getRowsToRecycle():null;o||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender();const{stickyRowFeature:i,gos:s}=this;if(i){i.checkStickyRows();const l=i.extraTopHeight+i.extraBottomHeight;l&&this.updateContainerHeights(l)}this.recycleRows(n,r),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(s.get("enableRowPinning")?o:void 0),this.dispatchDisplayedRowsChanged(),t!=null&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()}scrollToTopIfNewData(e){const t=e.newData||e.newPage,o=this.gos.get("suppressScrollOnNewData");t&&!o&&(this.gridBodyCtrl.scrollFeature.scrollToTop(),this.stickyRowFeature?.resetOffsets())}updateContainerHeights(e=0){const{rowContainerHeight:t}=this;if(this.printLayout){t.setModelHeight(null);return}let o=this.pageBounds.getCurrentPageHeight();o===0&&(o=1),t.setModelHeight(o+e)}getLockOnRefresh(){if(this.refreshInProgress)throw new Error(Qr(252));this.refreshInProgress=!0,this.beans.frameworkOverrides.getLockOnRefresh?.()}releaseLockOnRefresh(){this.refreshInProgress=!1,this.beans.frameworkOverrides.releaseLockOnRefresh?.()}isRefreshInProgress(){return this.refreshInProgress}restoreFocusedCell(e){if(!e)return;const t=this.beans.focusSvc,o=this.findPositionToFocus(e);if(!o){t.focusHeaderPosition({headerPosition:{headerRowIndex:nn(this.beans)-1,column:e.column}});return}if(e.rowIndex!==o.rowIndex||e.rowPinned!=o.rowPinned){t.setFocusedCell({...o,preventScrollOnBrowserFocus:!0,forceBrowserFocus:!0});return}t.doesRowOrCellHaveBrowserFocus()||this.updateCellFocus(je(this.gos,{...o,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"cellFocused"}))}findPositionToFocus(e){const{pagination:t,pageBounds:o}=this.beans;let r=e;for(r.rowPinned==null&&t&&o&&!t.isRowInPage(r.rowIndex)&&(r={rowPinned:null,rowIndex:o.getFirstRow()});r;){if(r.rowPinned==null&&o)if(r.rowIndex<o.getFirstRow()){if(r=kh(this.beans,{rowPinned:null,rowIndex:0}),!r)return null}else r.rowIndex>o.getLastRow()&&(r={rowPinned:null,rowIndex:o.getLastRow()});const n=this.getRowByPosition(r);if(n?.isAlive())return{...n.getRowPosition(),column:e.column};r=kh(this.beans,r)}return null}getAllCellCtrls(){const e=[],t=this.getAllRowCtrls(),o=t.length;for(let r=0;r<o;r++){const n=t[r].getAllCellCtrls(),i=n.length;for(let s=0;s<i;s++)e.push(n[s])}return e}getAllRowCtrls(){const{spannedRowRenderer:e}=this.beans,t=this.getStickyTopRowCtrls(),o=this.getStickyBottomRowCtrls();return[...this.topRowCtrls,...this.bottomRowCtrls,...t,...o,...e?.getCtrls("top")??[],...e?.getCtrls("bottom")??[],...e?.getCtrls("center")??[],...Object.values(this.rowCtrlsByRowIndex)]}addRenderedRowListener(e,t,o){const r=this.rowCtrlsByRowIndex[t];r&&r.addEventListener(e,o)}refreshCells({rowNodes:e,columns:t,force:o,suppressFlash:r}={}){const n={force:o,newData:!1,suppressFlash:r};for(const i of this.getCellCtrls(e,t))i.refreshOrDestroyCell(n);this.refreshFullWidth(e)}refreshRows(e={}){for(const t of this.getRowCtrls(e.rowNodes))t.refreshRow(e);this.refreshFullWidth(e.rowNodes)}refreshFullWidth(e){if(!e)return;let t=!1;for(const o of this.getRowCtrls(e)){if(!o.isFullWidth())continue;o.refreshFullWidth()||(t=!0,this.redrawRow(o.rowNode,!0))}t&&this.dispatchDisplayedRowsChanged(!1)}getRowCtrls(e){const t=KR(e),o=this.getAllRowCtrls();return!e||!t?o:o.filter(r=>{const n=r.rowNode;return XR(n,t)})}getCellCtrls(e,t){let o;xe(t)&&(o={},t.forEach(n=>{const i=this.colModel.getCol(n);xe(i)&&(o[i.getId()]=!0)}));const r=[];for(const n of this.getRowCtrls(e))for(const i of n.getAllCellCtrls()){const s=i.column.getId();o&&!o[s]||r.push(i)}return r}destroy(){this.removeAllRowComps(!0),super.destroy()}removeAllRowComps(e=!1){const t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t,e),this.stickyRowFeature?.destroyStickyCtrls()}getRowsToRecycle(){const e=[];for(const o of Object.keys(this.rowCtrlsByRowIndex))this.rowCtrlsByRowIndex[o].rowNode.id==null&&e.push(o);this.removeRowCtrls(e);const t={};for(const o of Object.values(this.rowCtrlsByRowIndex)){const r=o.rowNode;t[r.id]=o}return this.rowCtrlsByRowIndex={},t}removeRowCtrls(e,t=!1){for(const o of e){const r=this.rowCtrlsByRowIndex[o];r&&(r.destroyFirstPass(t),r.destroySecondPass()),delete this.rowCtrlsByRowIndex[o]}}onBodyScroll(e){e.direction==="vertical"&&this.redraw({afterScroll:!0})}redraw(e={}){const{focusSvc:t,animationFrameSvc:o}=this.beans,{afterScroll:r}=e;let n;const i=this.stickyRowFeature;i&&(n=t?.getFocusCellToUseAfterRefresh()||void 0);const s=this.firstRenderedRow,l=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let u=!1;if(i){u=i.checkStickyRows();const h=i.extraTopHeight+i.extraBottomHeight;h&&this.updateContainerHeights(h)}const d=this.firstRenderedRow!==s||this.lastRenderedRow!==l;if(!(r&&!u&&!d)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,r),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(r&&!u),n!=null)){const h=t?.getFocusCellToUseAfterRefresh();n!=null&&h==null&&(o?.flushAllFrames(),this.restoreFocusedCell(n))}}removeRowCompsNotToDraw(e,t){const o={};for(const i of e)o[i]=!0;const n=Object.keys(this.rowCtrlsByRowIndex).filter(i=>!o[i]);this.removeRowCtrls(n,t)}calculateIndexesToDraw(e){const t=[];for(let s=this.firstRenderedRow;s<=this.lastRenderedRow;s++)t.push(s);const o=this.beans.pagination,r=this.beans.focusSvc?.getFocusedCell()?.rowIndex;r!=null&&(r<this.firstRenderedRow||r>this.lastRenderedRow)&&(!o||o.isRowInPage(r))&&r<this.rowModel.getRowCount()&&t.push(r);const n=s=>{const l=s.rowNode.rowIndex;l==null||l===r||(l<this.firstRenderedRow||l>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(s)&&t.push(l)};for(const s of Object.values(this.rowCtrlsByRowIndex))n(s);if(e)for(const s of Object.values(e))n(s);t.sort((s,l)=>s-l);const i=[];for(let s=0;s<t.length;s++){const l=t[s],u=this.rowModel.getRow(l);u&&!u.sticky&&i.push(l)}return i}recycleRows(e,t=!1,o=!1){const r=this.calculateIndexesToDraw(e);(this.printLayout||o)&&(t=!1),this.removeRowCompsNotToDraw(r,!t);for(const n of r)this.createOrUpdateRowCtrl(n,e,t,o);if(e){const{animationFrameSvc:n}=this.beans;n?.active&&o&&!this.printLayout?n.addDestroyTask(()=>{this.destroyRowCtrls(e,t),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(e,t)}this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(e=!1){this.eventSvc.dispatchEvent({type:"displayedRowsChanged",afterScroll:e})}onDisplayedColumnsChanged(){const{visibleCols:e}=this.beans,t=e.isPinningLeft(),o=e.isPinningRight();(this.pinningLeft!==t||o!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=o,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){const e=[];for(const t of this.getFullWidthRowCtrls()){const o=t.rowNode.rowIndex;e.push(o.toString())}this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(e){const t=KR(e);return this.getAllRowCtrls().filter(o=>{if(!o.isFullWidth())return!1;const r=o.rowNode;return!(t!=null&&!XR(r,t))})}createOrUpdateRowCtrl(e,t,o,r){let n,i=this.rowCtrlsByRowIndex[e];if(i||(n=this.rowModel.getRow(e),xe(n)&&xe(t)&&t[n.id]&&n.alreadyRendered&&(i=t[n.id],t[n.id]=null)),!i)if(n||(n=this.rowModel.getRow(e)),xe(n))i=this.createRowCon(n,o,r);else return;n&&(n.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=i}destroyRowCtrls(e,t){const o=[];if(e){for(const r of Object.values(e))if(r){if(this.cachedRowCtrls&&r.isCacheable()){this.cachedRowCtrls.addRow(r);continue}if(r.destroyFirstPass(!t),t){const n=r.instanceId;this.zombieRowCtrls[n]=r,o.push(()=>{r.destroySecondPass(),delete this.zombieRowCtrls[n]})}else r.destroySecondPass()}}t&&(o.push(()=>{this.isAlive()&&(this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged())}),window.setTimeout(()=>{for(const r of o)r()},dK))}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){const e=this.getRowBuffer(),t=kk(this.beans);return e*t}workOutFirstAndLastRowsToRender(){const{rowContainerHeight:e,pageBounds:t,rowModel:o}=this;e.updateOffset();let r,n;if(!o.isRowsToRender())r=0,n=-1;else if(this.printLayout)this.beans.environment.refreshRowHeightVariable(),r=t.getFirstRow(),n=t.getLastRow();else{const h=this.getRowBufferInPixels(),p=this.ctrlsSvc.getScrollFeature(),g=this.gos.get("suppressRowVirtualisation");let v=!1,b,C;do{const P=t.getPixelOffset(),{pageFirstPixel:T,pageLastPixel:D}=t.getCurrentPagePixelRange(),M=e.divStretchOffset,O=p.getVScrollPosition(),I=O.top,z=O.bottom;g?(b=T+M,C=D+M):(b=Math.max(I+P-h,T)+M,C=Math.min(z+P+h,D)+M),this.firstVisibleVPixel=Math.max(I+P,T)+M,this.lastVisibleVPixel=Math.min(z+P,D)+M,v=this.ensureAllRowsInRangeHaveHeightsCalculated(b,C)}while(v);let S=o.getRowIndexAtPixel(b),k=o.getRowIndexAtPixel(C);const F=t.getFirstRow(),R=t.getLastRow();S<F&&(S=F),k>R&&(k=R),r=S,n=k}const i=no(this.gos,"normal"),s=this.gos.get("suppressMaxRenderedRowRestriction"),l=Math.max(this.getRowBuffer(),500);i&&!s&&n-r>l&&(n=r+l);const u=r!==this.firstRenderedRow,d=n!==this.lastRenderedRow;(u||d)&&(this.firstRenderedRow=r,this.lastRenderedRow=n,this.eventSvc.dispatchEvent({type:"viewportChanged",firstRow:r,lastRow:n}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,Mn(this.beans,()=>{this.beans.eventSvc.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(e,t){const o=this.pinnedRowModel?.ensureRowHeightsValid(),r=this.stickyRowFeature?.ensureRowHeightsValid(),{pageBounds:n,rowModel:i}=this,s=i.ensureRowHeightsValid(e,t,n.getFirstRow(),n.getLastRow());return(s||r)&&this.eventSvc.dispatchEvent({type:"recalculateRowBounds"}),r||s||o?(this.updateContainerHeights(),!0):!1}doNotUnVirtualiseRow(e){const r=e.rowNode,n=this.focusSvc.isRowFocused(r.rowIndex,r.rowPinned),i=this.editSvc?.isEditing(e),s=r.detail;return n||i||s?!!this.isRowPresent(r):!1}isRowPresent(e){return this.rowModel.isRowPresent(e)?this.beans.pagination?.isRowInPage(e.rowIndex)??!0:!1}createRowCon(e,t,o){const r=this.cachedRowCtrls?.getRow(e)??null;if(r)return r;const n=o&&!this.printLayout&&!!this.beans.animationFrameSvc?.active;return new kv(e,this.beans,t,n,this.printLayout)}getRenderedNodes(){const e=Object.values(this.rowCtrlsByRowIndex).map(r=>r.rowNode),t=this.getStickyTopRowCtrls().map(r=>r.rowNode),o=this.getStickyBottomRowCtrls().map(r=>r.rowNode);return[...t,...e,...o]}getRowByPosition(e){let t;const{rowIndex:o}=e;switch(e.rowPinned){case"top":t=this.topRowCtrls[o];break;case"bottom":t=this.bottomRowCtrls[o];break;default:t=this.rowCtrlsByRowIndex[o],t||(t=this.getStickyTopRowCtrls().find(r=>r.rowNode.rowIndex===o)||null,t||(t=this.getStickyBottomRowCtrls().find(r=>r.rowNode.rowIndex===o)||null));break}return t}isRangeInRenderedViewport(e,t){if(e==null||t==null)return!1;const r=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!r}},fK=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,o=this.entriesMap[t];delete this.entriesMap[t],pa(this.entriesList,o)}removeFromCache(e){const t=e.rowNode.id;delete this.entriesMap[t],pa(this.entriesList,e)}getEntries(){return this.entriesList}};function KR(e){if(!e)return;const t={top:{},bottom:{},normal:{}};for(const o of e){const r=o.id;switch(o.rowPinned){case"top":t.top[r]=o;break;case"bottom":t.bottom[r]=o;break;default:t.normal[r]=o;break}}return t}function XR(e,t){const o=e.id;switch(e.rowPinned){case"top":return t.top[o]!=null;case"bottom":return t.bottom[o]!=null;default:return t.normal[o]!=null}}var pK=class extends ue{constructor(){super(...arguments),this.beanName="rowNodeSorter",this.accentedSort=!1,this.primaryColumnsSortGroups=!1,this.pivotActive=!1}postConstruct(){this.firstLeaf=Qi(this.gos)?eW:gK,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=_n(this.gos)}updatePivotModeState(){this.pivotActive=this.beans.colModel.isPivotActive()}doFullSortInPlace(e,t){return e.sort((o,r)=>this.compareRowNodes(t,o,r))}compareRowNodes(e,t,o){if(t===o)return 0;const r=this.accentedSort;for(let n=0,i=e.length;n<i;++n){const s=e[n],l=s.sort==="desc";let u=this.getValue(t,s.column),d=this.getValue(o,s.column),h;const p=this.getComparator(s,t);if(p?h=p(u,d,t,o,l):(s.type==="absolute"&&(u=ZR(u),d=ZR(d)),h=_8(u,d,r)),h)return s.sort==="asc"?h:-h}return 0}getComparator(e,t){const o=e.column.getColDef(),r=this.getComparatorFromColDef(o,e);if(r)return r;if(!o.showRowGroup)return;const n=!t.group&&o.field;if(!n)return;const i=this.beans.colModel.getColDefCol(n);if(i)return this.getComparatorFromColDef(i.getColDef(),e)}getComparatorFromColDef(e,t){const o=e.comparator;if(o!=null)return typeof o=="object"?o[In(t.type)]:o}getValue(e,t){const o=this.beans;if(this.primaryColumnsSortGroups){if(e.rowGroupColumn===t)return this.getGroupDataValue(e,t);if(e.group&&t.getColDef().showRowGroup)return}const r=o.valueSvc.getValue(t,e,!1,"api");if(t.isAllowFormula()){const n=o.formula;if(n?.isFormula(r))return n.resolveValue(t,e)}return r}getGroupDataValue(e,t){if(Pk(this.gos,this.pivotActive)){const r=this.firstLeaf(e);return r&&this.beans.valueSvc.getValue(t,r,!1,"api")}const o=this.beans.showRowGroupCols?.getShowRowGroupCol(t.getId());return o?e.groupData?.[o.getId()]:void 0}},gK=e=>{if(e.data)return e;let t=e.childrenAfterGroup;for(;t?.length;){const o=t[0];if(o.data)return o;t=o.childrenAfterGroup}},ZR=e=>{if(!e)return e;const t=Number(e);return isNaN(t)?e:Math.abs(t)};function mK(e){e.sortSvc?.onSortChanged("api")}var ls=(e,t)=>({tag:"span",ref:`eSort${e}`,cls:`ag-sort-indicator-icon ag-sort-${t} ag-hidden`,attrs:{"aria-hidden":"true"}}),vK={tag:"span",cls:"ag-sort-indicator-container",children:[ls("Order","order"),ls("Asc","ascending-icon"),ls("Desc","descending-icon"),ls("Mixed","mixed-icon"),ls("AbsoluteAsc","absolute-ascending-icon"),ls("AbsoluteDesc","absolute-descending-icon"),ls("None","none-icon")]},Pv=class extends ko{constructor(e){super(),this.eSortOrder=Me,this.eSortAsc=Me,this.eSortDesc=Me,this.eSortMixed=Me,this.eSortNone=Me,this.eSortAbsoluteAsc=Me,this.eSortAbsoluteDesc=Me,e||this.setTemplate(vK)}attachCustomElements(e,t,o,r,n,i,s){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=o,this.eSortMixed=r,this.eSortNone=n,this.eSortAbsoluteAsc=i,this.eSortAbsoluteDesc=s}setupSort(e,t=!1){if(this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),!e.isSortable()&&!e.getColDef().showRowGroup)return;this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("sortAbsoluteAscending",this.eSortAbsoluteAsc,e),this.addInIcon("sortAbsoluteDescending",this.eSortAbsoluteDesc,e);const o=this.updateIcons.bind(this),r=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",o),this.addManagedEventListeners({newColumnsLoaded:o,sortChanged:r,columnRowGroupChanged:r}),this.onSortChanged()}addInIcon(e,t,o){if(t==null)return;const r=mi(e,this.beans,o);r&&t.appendChild(r)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){const{eSortAsc:e,eSortDesc:t,eSortAbsoluteAsc:o,eSortAbsoluteDesc:r,eSortNone:n,column:i,gos:s,beans:l}=this,u=l.sortSvc.getDisplaySortForColumn(i),d=In(u?.type),h=Jd(u?.direction),p=i.getAvailableSortTypes(),g=p.has("default"),v=p.has("absolute"),b=d==="absolute",C=d==="default",S=h==="asc",k=h==="desc";if(e&&gt(e,S&&C&&g,{skipAriaHidden:!0}),t&&gt(t,k&&C&&g,{skipAriaHidden:!0}),n){const F=!i.getColDef().unSortIcon&&!s.get("unSortIcon");gt(n,!F&&!h,{skipAriaHidden:!0})}o&&gt(o,S&&b&&v,{skipAriaHidden:!0}),r&&gt(r,k&&b&&v,{skipAriaHidden:!0})}setupMultiSortIndicator(){const{eSortMixed:e,column:t,gos:o}=this;this.addInIcon("sortUnSort",e,t);const r=t.getColDef().showRowGroup;_n(o)&&r&&(this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)}),this.updateMultiSortIndicator())}updateMultiSortIndicator(){const{eSortMixed:e,beans:t,column:o}=this;if(e){const r=t.sortSvc.getDisplaySortForColumn(o)?.direction==="mixed";gt(e,r,{skipAriaHidden:!0})}}updateSortOrder(){const{eSortOrder:e,column:t,beans:{sortSvc:o}}=this;if(!e)return;const r=o.getColumnsWithSortingOrdered(),n=o.getDisplaySortIndexForColumn(t)??-1,i=r.some(l=>o.getDisplaySortIndexForColumn(l)??!1),s=n>=0&&i;gt(e,s,{skipAriaHidden:!0}),n>=0?e.textContent=(n+1).toString():En(e)}},bK={selector:"AG-SORT-INDICATOR",component:Pv},CK=class extends ue{constructor(){super(...arguments),this.beanName="sortSvc"}progressSort(e,t,o){const r=this.getNextSortDirection(e);this.setSortForColumn(e,r,t,o)}progressSortFromEvent(e,t){const r=this.gos.get("multiSortKey")==="ctrl"?t.ctrlKey||t.metaKey:t.shiftKey;this.progressSort(e,r,"uiColumnSorted")}setSortForColumn(e,t,o,r){const{gos:n,showRowGroupCols:i}=this.beans,s=_n(n);let l=[e];if(s&&e.getColDef().showRowGroup){const p=i?.getSourceColumnsForGroupColumn?.(e)?.filter(g=>g.isSortable());p&&(l=[e,...p])}for(const h of l)this.setColSort(h,t,r);const u=(o||n.get("alwaysMultiSort"))&&!n.get("suppressMultiSort"),d=[];if(!u){const h=this.clearSortBarTheseColumns(l,r);d.push(...h)}this.updateSortIndex(e),d.push(...l),this.dispatchSortChangedEvents(r,d)}updateSortIndex(e){const{gos:t,colModel:o,showRowGroupCols:r}=this.beans,n=_n(t),i=r?.getShowRowGroupCol(e.getId()),s=n&&i||e,l=this.getColumnsWithSortingOrdered();o.forAllCols(h=>this.setColSortIndex(h,null));const u=l.filter(h=>n&&h.getColDef().showRowGroup?!1:h!==s);(s.getSortDef()?[...u,s]:u).forEach((h,p)=>this.setColSortIndex(h,p))}onSortChanged(e,t){this.dispatchSortChangedEvents(e,t)}isSortActive(){let e=!1;return this.beans.colModel.forAllCols(t=>{if(t.getSortDef())return e=!0,!0}),e}dispatchSortChangedEvents(e,t){const o={type:"sortChanged",source:e};t&&(o.columns=t),this.eventSvc.dispatchEvent(o)}clearSortBarTheseColumns(e,t){const o=[];return this.beans.colModel.forAllCols(r=>{e.includes(r)||(r.getSortDef()&&o.push(r),this.setColSort(r,void 0,t))}),o}getNextSortDirection(e){const t=e.getSortingOrder(),o=e.getSortDef();let n=t.findIndex(i=>Qd(i,o))+1;return n>=t.length&&(n=0),Tr(t[n])}getIndexedSortMap(){const{gos:e,colModel:t,showRowGroupCols:o,rowGroupColsSvc:r}=this.beans;let n=[];if(t.forAllCols(d=>{d.getSortDef()&&n.push(d)}),t.isPivotMode()){const d=_n(e);n=n.filter(h=>{const p=!!h.getAggFunc(),g=!h.isPrimary(),v=d?o?.getShowRowGroupCol(h.getId()):h.getColDef().showRowGroup;return p||g||v})}const i=r?.columns.filter(d=>!!d.getSortDef())??[],s={};n.forEach((d,h)=>s[d.getId()]=h),n.sort((d,h)=>{const p=d.getSortIndex(),g=h.getSortIndex();if(p!=null&&g!=null)return p-g;if(p==null&&g==null){const v=s[d.getId()],b=s[h.getId()];return v>b?1:-1}else return g==null?-1:1});const l=_n(e)&&!!i.length;l&&(n=[...new Set(n.map(d=>o?.getShowRowGroupCol(d.getId())??d))]);const u=new Map;if(n.forEach((d,h)=>u.set(d,h)),l)for(const d of i){const h=o.getShowRowGroupCol(d.getId());u.set(d,u.get(h))}return u}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort(([,e],[,t])=>e-t).map(([e])=>e)}collectSortItems(e=!1){const t=[],o=this.getColumnsWithSortingOrdered();for(const r of o){const n=r.getSortDef()?.direction;if(!n)continue;const i=In(r.getSortDef()?.type),s={sort:n,type:i};e?s.colId=r.getId():s.column=r,t.push(s)}return t}getSortModel(){return this.collectSortItems(!0)}getSortOptions(){return this.collectSortItems()}canColumnDisplayMixedSort(e){const t=_n(this.gos),o=!!e.getColDef().showRowGroup;return t&&o}getDisplaySortForColumn(e){const t=this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!t?.length)return e.getSortDef();const r=e.getColDef().field!=null||!!e.getColDef().valueGetter?[e,...t]:t,n=r[0].getSortDef();return r.every(s=>Qd(s.getSortDef(),n))?n:{type:In(e.getSortDef()?.type),direction:"mixed"}}getDisplaySortIndexForColumn(e){return this.getIndexedSortMap().get(e)}setupHeader(e,t){const o=()=>{const{type:r,direction:n}=Tr(t.getSortDef());if(e.toggleCss("ag-header-cell-sorted-asc",n==="asc"),e.toggleCss("ag-header-cell-sorted-desc",n==="desc"),e.toggleCss("ag-header-cell-sorted-abs-asc",r==="absolute"&&n==="asc"),e.toggleCss("ag-header-cell-sorted-abs-desc",r==="absolute"&&n==="desc"),e.toggleCss("ag-header-cell-sorted-none",!n),t.getColDef().showRowGroup){const l=!this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(t)?.every(u=>n==u.getSortDef()?.direction);e.toggleCss("ag-header-cell-sorted-mixed",l)}};e.addManagedEventListeners({sortChanged:o,columnRowGroupChanged:o})}initCol(e){const{sortIndex:t,initialSortIndex:o}=e.colDef,r=l7(e.colDef);r&&e.setSortDef(r,!0),t!==void 0?t!==null&&(e.sortIndex=t):o!==null&&(e.sortIndex=o)}updateColSort(e,t,o){t!==void 0&&this.setColSort(e,Tr(t),o)}setColSort(e,t,o){Qd(e.getSortDef(),t)||(e.setSortDef(Tr(t),t===void 0),e.dispatchColEvent("sortChanged",o)),e.dispatchStateUpdatedEvent("sort")}setColSortIndex(e,t){e.sortIndex=t,e.dispatchStateUpdatedEvent("sortIndex")}createSortIndicator(e){return new Pv(e)}getSortIndicatorSelector(){return bK}},YR={moduleName:"Sort",version:ze,beans:[CK,pK],apiFunctions:{onSortChanged:mK},userComponents:{agSortIndicator:Pv},icons:{sortAscending:"asc",sortDescending:"desc",sortUnSort:"none",sortAbsoluteAscending:"aasc",sortAbsoluteDescending:"adesc"}},wK=class extends ue{constructor(){super(...arguments),this.beanName="syncSvc",this.waitingForColumns=!1}postConstruct(){this.addManagedPropertyListener("columnDefs",e=>this.setColumnDefs(e))}start(){this.beans.ctrlsSvc.whenReady(this,()=>{const e=this.gos.get("columnDefs");e?this.setColumnsAndData(e):this.waitingForColumns=!0,this.gridReady()})}setColumnsAndData(e){const{colModel:t,rowModel:o}=this.beans;t.setColumnDefs(e??[],"gridInitializing"),o.start()}gridReady(){const{eventSvc:e,gos:t}=this;e.dispatchEvent({type:"gridReady"}),Ud(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,rh(e.source))}}},yK="paste",SK=class extends ue{constructor(){super(...arguments),this.beanName="changeDetectionSvc",this.clientSideRowModel=null}postConstruct(){const{gos:e,rowModel:t}=this.beans;Qi(e)&&(this.clientSideRowModel=t),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}onCellValueChanged(e){const{gos:t,rowRenderer:o}=this.beans;if(e.source===yK||t.get("suppressChangeDetection"))return;const r=e.node,n=[r],i=this.clientSideRowModel,s=i?.rootNode;if(s&&!r.isRowPinned()){const l=t.get("aggregateOnlyChangedColumns"),u=new pR(l,s);u.addParentNode(r.parent,[e.column]),i.doAggregate(u),u.forEachChangedNodeDepthFirst(d=>{n.push(d),d.sibling&&n.push(d.sibling)})}o.refreshCells({rowNodes:n})}},xK=class extends ue{constructor(){super(...arguments),this.beanName="expressionSvc",this.cache={}}evaluate(e,t){if(typeof e=="string")return this.evaluateExpression(e,t);yt(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(o){return yt(16,{expression:e,params:t,e:o}),null}}createExpressionFunction(e){const t=this.cache;if(t[e])return t[e];const o=this.createFunctionBody(e),r=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",o);return t[e]=r,r}createFunctionBody(e){return e.includes("return")?e:"return "+e+";"}},kK={moduleName:"Expression",version:ze,beans:[xK]},FK={moduleName:"ChangeDetection",version:ze,beans:[SK]},RK=class extends ue{constructor(){super(...arguments),this.beanName="valueSvc",this.hasEditSvc=!1,this.initialised=!1,this.isSsrm=!1}wireBeans(e){this.expressionSvc=e.expressionSvc,this.colModel=e.colModel,this.valueCache=e.valueCache,this.dataTypeSvc=e.dataTypeSvc,this.editSvc=e.editSvc,this.hasEditSvc=!!e.editSvc,this.formulaDataSvc=e.formulaDataSvc}postConstruct(){this.initialised||this.init()}init(){const{gos:e,valueCache:t}=this;this.executeValueGetter=t?this.executeValueGetterWithValueCache.bind(this):this.executeValueGetterWithoutValueCache.bind(this),this.isSsrm=yk(e),this.cellExpressions=e.get("enableCellExpressions"),this.isTreeData=e.get("treeData"),this.initialised=!0;const o=r=>this.callColumnCellValueChangedHandler(r);this.eventSvc.addListener("cellValueChanged",o,!0),this.addDestroyFunc(()=>this.eventSvc.removeListener("cellValueChanged",o,!0)),this.addManagedPropertyListener("treeData",r=>this.isTreeData=r.currentValue)}getValueForDisplay(e){const{column:t,node:o,includeValueFormatted:r,useRawFormula:n,exporting:i,source:s="ui"}=e,{showRowGroupColValueSvc:l}=this.beans,u=!t&&o.group,d=t?.colDef.showRowGroup,h=!this.isTreeData||o.footer;if(l&&h&&(u||d)){const R=l.getGroupValue(o,t);if(R==null)return{value:null,valueFormatted:null};if(!r)return{value:R.value,valueFormatted:null};const P=l.formatAndPrefixGroupColValue(R,t,i);return{value:R.value,valueFormatted:P}}if(!t)return{value:o.key,valueFormatted:null};const p=o.leafGroup&&this.colModel.isPivotMode(),g=o.group&&o.expanded&&!o.footer&&!p,v=this.gos.get("groupSuppressBlankHeader")||!o.sibling,b=g&&!v;let C=this.getValue(t,o,b,s),S=C;const{formula:k}=this.beans,F=r&&!(i&&t.colDef.useValueFormatterForExport===!1);return t.isAllowFormula()&&k?.isFormula(C)&&(n?(C=k.normaliseFormula(C,!0),S=k.resolveValue(t,o)):(C=k.resolveValue(t,o),S=C)),{value:C,valueFormatted:F?this.formatValue(t,o,S):null}}getValue(e,t,o=!1,r="ui"){if(this.initialised||this.init(),!t)return;if(this.hasEditSvc&&r==="ui"){const l=this.editSvc;if(l.isEditing()){const u=l.getCellDataValue({rowNode:t,column:e},!0);if(u!==void 0)return u}}const i=e.getColDef().showRowGroup;if(typeof i=="string"&&(this.beans.rowGroupColsSvc?.getColumnIndex(i)??-1)>t.level)return null;let s=this.resolveValue(e,t,o);if(this.cellExpressions&&Nx(s)){const l=s.substring(1);s=this.executeValueGetter(l,t.data,e,t)}return s}getFormulaFromDataSource(e,t){const o=this.formulaDataSvc;if(!o?.hasDataSource()||!e.isAllowFormula())return;const r=o.getFormula({column:e,rowNode:t});return Nx(r)?r:void 0}resolveValue(e,t,o){const r=e.getColDef(),n=e.getColId(),i=this.isTreeData,s=this.getFormulaFromDataSource(e,t);if(s!==void 0)return s;const l=!o&&t.aggData&&t.aggData[n]!==void 0;if(i&&l)return t.aggData[n];const u=t.data,d=r.field;if(i&&r.valueGetter)return this.executeValueGetter(r.valueGetter,u,e,t);if(i&&d&&u)return vc(u,d,e.isFieldContainsDots());const h=t.groupData;if(h&&n in h)return t.groupData[n];if(l)return t.aggData[n];const g=r.showRowGroup,v=typeof g!="string"||!t.group,b=this.isSsrm&&o&&!!r.aggFunc,C=this.isSsrm&&t.footer&&t.field&&(g===!0||g===t.field);if(r.valueGetter&&!b)return v?this.executeValueGetter(r.valueGetter,u,e,t):void 0;if(C)return vc(u,t.field,e.isFieldContainsDots());if(d&&u&&!b)return v?vc(u,d,e.isFieldContainsDots()):void 0}parseValue(e,t,o,r){const n=e.getColDef();if(n.allowFormula&&this.beans.formula?.isFormula(o))return o;const i=n.valueParser;if(xe(i)){const s=je(this.gos,{node:t,data:t?.data,oldValue:r,newValue:o,colDef:n,column:e});return typeof i=="function"?i(s):this.expressionSvc?.evaluate(i,s)}return o}getDeleteValue(e,t){return xe(e.getColDef().valueParser)?this.parseValue(e,t,"",this.getValueForDisplay({column:e,node:t}).value)??null:null}formatValue(e,t,o,r,n=!0){const{expressionSvc:i}=this.beans;let s=null,l;const u=e.getColDef();if(r?l=r:n&&(l=u.valueFormatter),l){const d=t?t.data:null,h=je(this.gos,{value:o,node:t,data:d,colDef:u,column:e});typeof l=="function"?s=l(h):s=i?i.evaluate(l,h):null}else if(u.refData)return u.refData[o]||"";return s==null&&Array.isArray(o)&&(s=o.join(", ")),s}setValue(e,t,o,r){const n=this.colModel.getColDefCol(t);if(!e||!n)return!1;this.ensureRowData(e);const i=n.getColDef();if(!this.isSetValueSupported({column:n,newValue:o,colDef:i}))return!1;const s=je(this.gos,{node:e,data:e.data,oldValue:this.getValue(n,e,void 0,r),newValue:o,colDef:i,column:n});s.newValue=o;const l=this.handleExternalFormulaChange({column:n,eventSource:r,newValue:o,setterParams:s,rowNode:e});if(l!==null)return l;let u=this.computeValueChange({column:n,newValue:o,params:s,rowData:e.data,valueSetter:i.valueSetter,field:i.field});return u===void 0&&(u=!0),u?this.finishValueChange(e,n,s,r):!1}finishValueChange(e,t,o,r){e.resetQuickFilterAggregateText(),this.valueCache?.onDataChanged();const n=this.getValue(t,e);return this.dispatchCellValueChangedEvent(e,o,n,r),e.pinnedSibling&&this.dispatchCellValueChangedEvent(e.pinnedSibling,o,n,r),!0}ensureRowData(e){Ht(e.data)&&(e.data={})}isSetValueSupported(e){const{column:t,newValue:o,colDef:r}=e,{field:n,valueSetter:i}=r,s=this.beans.formula,l=t.isAllowFormula()&&s?.isFormula(o),u=!!this.formulaDataSvc?.hasDataSource();return Ht(n)&&Ht(i)&&!(u&&l)?(pe(17),!1):this.dataTypeSvc&&!this.dataTypeSvc.checkType(t,o)?(pe(135),!1):!0}handleExternalFormulaChange(e){const{column:t,rowNode:o,newValue:r,eventSource:n,setterParams:i}=e,s=this.beans.formula,l=this.formulaDataSvc;if(!l?.hasDataSource()||!t.isAllowFormula())return null;const u=s?.isFormula(r),d=l.getFormula({column:t,rowNode:o});if(u){if(!(d!==r))return!1;l.setFormula({column:t,rowNode:o,formula:r});const p=s?.resolveValue(t,o),g=t.getColDef();if(xe(g.valueSetter)||!Ht(g.field)){const v={...i,newValue:p};this.computeValueChange({column:t,newValue:p,params:v,rowData:o.data,valueSetter:g.valueSetter,field:g.field})}return this.finishValueChange(o,t,i,n)}return d!==void 0&&l.setFormula({column:t,rowNode:o,formula:void 0}),null}computeValueChange(e){const{valueSetter:t,params:o,rowData:r,field:n,column:i,newValue:s}=e;return xe(t)?typeof t=="function"?t(o):this.expressionSvc?.evaluate(t,o):this.setValueUsingField(r,n,s,i.isFieldContainsDots())}dispatchCellValueChangedEvent(e,t,o,r){this.eventSvc.dispatchEvent({type:"cellValueChanged",event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:t.column,colDef:t.colDef,data:e.data,node:e,oldValue:t.oldValue,newValue:o,value:o,source:r})}callColumnCellValueChangedHandler(e){const t=e.colDef.onCellValueChanged;typeof t=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>{t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,context:e.context})})}setValueUsingField(e,t,o,r){if(!t)return!1;let n=!1;if(!r)n=e[t]===o,n||(e[t]=o);else{const i=t.split(".");let s=e;for(;i.length>0&&s;){const l=i.shift();i.length===0?(n=s[l]===o,n||(s[l]=o)):s=s[l]}}return!n}executeValueGetterWithValueCache(e,t,o,r){const n=o.getColId(),i=this.valueCache.getValue(r,n);if(i!==void 0)return i;const s=this.executeValueGetterWithoutValueCache(e,t,o,r);return this.valueCache.setValue(r,n,s),s}executeValueGetterWithoutValueCache(e,t,o,r){const n=je(this.gos,{data:t,node:r,column:o,colDef:o.getColDef(),getValue:this.getValueCallback.bind(this,r)});let i;return typeof e=="function"?i=e(n):i=this.expressionSvc?.evaluate(e,n),i}getValueCallback(e,t){const o=this.colModel.getColDefCol(t);return o?this.getValue(o,e):null}getKeyForNode(e,t){const o=this.getValue(e,t),r=e.getColDef().keyCreator;let n=o;if(r){const i=je(this.gos,{value:o,colDef:e.getColDef(),column:e,node:t,data:t.data});n=r(i)}return typeof n=="string"||n==null||(n=String(n),n==="[object Object]"&&pe(121)),n}},PK={moduleName:"CommunityCore",version:ze,beans:[PU,hW,_q,T7,uK,fq,yU,XU,k7,G$,V$,hK,RK,FU,wU,RU,Bq,wK,Eq,Tq,s$],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:fW,destroy:pW,isDestroyed:gW,getGridOption:mW,setGridOption:vW,updateGridOptions:fR,isModuleRegistered:bW},dependsOn:[Fq,WW,QW,YR,o$,gq,r$,cK,FK,i$,H$,U$,X$,l$,Aq,Rq,kK,Cq,Q$]},QR={AdvancedFilter:1,AiToolkit:1,AllEnterprise:1,BatchEdit:1,CellSelection:1,Clipboard:1,ColumnMenu:1,ColumnsToolPanel:1,ContextMenu:1,ExcelExport:1,FiltersToolPanel:1,Find:1,GridCharts:1,IntegratedCharts:1,GroupFilter:1,MasterDetail:1,Menu:1,MultiFilter:1,NewFiltersToolPanel:1,Pivot:1,RangeSelection:1,RichSelect:1,RowNumbers:1,RowGrouping:1,RowGroupingPanel:1,ServerSideRowModelApi:1,ServerSideRowModel:1,SetFilter:1,SideBar:1,Sparklines:1,StatusBar:1,TreeData:1,ViewportRowModel:1,Formula:1},Ev=["TextFilter","NumberFilter","DateFilter","SetFilter","MultiFilter","GroupFilter","CustomFilter"],EK={EditCore:["TextEditor","NumberEditor","DateEditor","CheckboxEditor","LargeTextEditor","SelectEditor","RichSelect","CustomEditor"],CheckboxCellRenderer:["AllCommunity"],ClientSideRowModelHierarchy:["RowGrouping","Pivot","TreeData"],ColumnFilter:Ev,ColumnGroupHeaderComp:["AllCommunity"],ColumnGroup:["AllCommunity"],ColumnHeaderComp:["AllCommunity"],ColumnMove:["AllCommunity"],ColumnResize:["AllCommunity"],CommunityCore:["AllCommunity"],CsrmSsrmSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],RowModelSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],EnterpriseCore:["AllEnterprise"],FilterCore:[...Ev,"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:[...Ev,"ColumnMenu","ContextMenu"],SharedPivot:["Pivot","ServerSideRowModel"],SharedRowGrouping:["RowGrouping","ServerSideRowModel"],SharedRowSelection:["RowSelection","ServerSideRowModel"],SkeletonCellRenderer:["ServerSideRowModel"],Sort:["AllCommunity"],SsrmInfiniteSharedApi:["InfiniteRowModel","ServerSideRowModelApi"],SharedTreeData:["TreeData","ServerSideRowModel"]},TK={InfiniteRowModel:"infinite",ClientSideRowModelApi:"clientSide",ClientSideRowModel:"clientSide",ServerSideRowModelApi:"serverSide",ServerSideRowModel:"serverSide",ViewportRowModel:"viewport"};function DK(e,t){const o=[];for(const r of Array.isArray(e)?e:[e]){const n=EK[r];if(n)for(const i of n){const s=TK[i];(!s||s===t)&&o.push(i)}else o.push(r)}return o}var JR=()=>`No AG Grid modules are registered! It is recommended to start with all Community features via the AllCommunityModule:
32
+
33
+ import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community';
34
+
35
+ ModuleRegistry.registerModules([ AllCommunityModule ]);
36
+ `,MK=e=>{const t=e.map(r=>`import { ${yc(r)} } from '${QR[r]?"ag-grid-enterprise":"ag-grid-community"}';`);return e.some(r=>r==="IntegratedCharts"||r==="Sparklines")&&t.push("import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';"),`import { ModuleRegistry } from 'ag-grid-community';
37
+ ${t.join(`
38
+ `)}
39
+
40
+ ModuleRegistry.registerModules([ ${e.map(r=>yc(r,!0)).join(", ")} ]);
41
+
42
+ For more info see: ${ca}/modules/`};function yc(e,t=!1){return t&&(e==="IntegratedCharts"||e==="Sparklines")?`${e}Module.with(AgChartsEnterpriseModule)`:`${e}Module`}function AK(e,t){const o=t.filter(i=>i==="IntegratedCharts"||i==="Sparklines");let r="";return!globalThis?.agCharts&&o.length>0?r=`Unable to use ${e} as either the ag-charts-community or ag-charts-enterprise script needs to be included alongside ag-grid-enterprise.
43
+ `:t.some(i=>QR[i])&&(r=r+`Unable to use ${e} as that requires the ag-grid-enterprise script to be included.
44
+ `),r}function eP({moduleName:e,rowModelType:t}){return`To use the ${e}Module you must set the gridOption "rowModelType='${t}'"`}var tP=({reasonOrId:e,moduleName:t,gridScoped:o,gridId:r,rowModelType:n,additionalText:i,isUmd:s})=>{const l=DK(t,n),u=typeof e=="string"?e:OK[e];if(s)return AK(u,l);const d=l.filter(g=>g==="IntegratedCharts"||g==="Sparklines"),h=d.length>0?`${d.map(g=>yc(g)).join()} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.`:"";return`${`Unable to use ${u} as ${l.length>1?"one of "+l.map(g=>yc(g)).join(", "):yc(l[0])} is not registered${o?" for gridId: "+r:""}. ${h} Check if you have registered the module:
45
+ `}
46
+ ${MK(l)}`+(i?`
47
+
48
+ ${i}`:"")},oP=e=>`${e} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.
49
+
50
+ import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';
51
+ import { ModuleRegistry } from 'ag-grid-community';
52
+ import { ${e} } from 'ag-grid-enterprise';
53
+
54
+ ModuleRegistry.registerModules([${e}.with(AgChartsEnterpriseModule)]);
55
+ `,_K=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.`,IK={1:()=>"`rowData` must be an array",2:({nodeId:e})=>`Duplicate node id '${e}' detected from getRowId callback, this could cause issues in your grid.`,3:()=>"Calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.",4:({id:e})=>`Could not find row id=${e}, data item was not found for this id`,5:({data:e})=>["Could not find data item as object was not found.",e," Consider using getRowId to help the Grid find matching row data"],6:()=>"'groupHideOpenParents' only works when specifying specific columns for 'colDef.showRowGroup'",7:()=>"Pivoting is not supported with aligned grids as it may produce different columns in each grid.",8:({key:e})=>`Unknown key for navigation ${e}`,9:({variable:e})=>`No value for ${e?.cssName}. This usually means that the grid has been initialised before styles have been loaded. The default value of ${e?.defaultValue} will be used and updated when styles load.`,10:({eventType:e})=>`As of v33, the '${e}' event is deprecated. Use the global 'modelUpdated' event to determine when row children have changed.`,11:()=>"No gridOptions provided to createGrid",12:({colKey:e})=>["column ",e," not found"],13:()=>"Could not find rowIndex, this means tasks are being executed on a rowNode that has been removed from the grid.",14:({groupPrefix:e})=>`Row IDs cannot start with ${e}, this is a reserved prefix for AG Grid's row grouping feature.`,15:({expression:e})=>["value should be either a string or a function",e],16:({expression:e,params:t,e:o})=>["Processing of the expression failed","Expression = ",e,"Params = ",t,"Exception = ",o],17:()=>"you need either field or valueSetter set on colDef for editing to work",18:()=>"alignedGrids contains an undefined option.",19:()=>"alignedGrids - No api found on the linked grid.",20:()=>`You may want to configure via a callback to avoid setup race conditions:
56
+ "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.
57
+ Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.
58
+ 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}
59
+ ${_K(t)}`,41:()=>"Browser did not allow document.execCommand('copy'). Ensure 'api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons.",42:()=>"Browser does not support document.execCommand('copy') for clipboard operations",43:({iconName:e})=>`As of v33, icon '${e}' is deprecated. Use the icon CSS name instead.`,44:()=>'Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.',45:({parentCellDataType:e})=>`The data type definition ${e} does not exist.`,46:()=>'The "baseDataType" property of a data type definition must match that of its parent.',47:({cellDataType:e})=>`Missing data type definition - "${e}"`,48:({property:e})=>`Cell data type is "object" but no Value ${e} has been provided. Please either provide an object data type definition with a Value ${e}, or set "colDef.value${e}"`,49:({methodName:e})=>`Framework component is missing the method ${e}()`,50:({compName:e})=>`Could not find component ${e}, did you forget to configure this component?`,51:()=>"Export cancelled. Export is not allowed as per your configuration.",52:()=>"There is no `window` associated with the current `document`",53:()=>"unknown value type during csv conversion",54:()=>"Could not find document body, it is needed for drag and drop and context menu.",55:()=>"addRowDropZone - A container target needs to be provided",56:()=>"addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.",57:()=>"unable to show popup filter, filter instantiation failed",58:()=>"no values found for select cellEditor",59:()=>"cannot select pinned rows",60:()=>"cannot select node until it has finished loading",61:()=>"since version v32.2.0, rowNode.isFullWidthCell() has been deprecated. Instead check `rowNode.detail` followed by the user provided `isFullWidthRow` grid option.",62:({colId:e})=>`setFilterModel() - no column found for colId: ${e}`,63:({colId:e})=>`setFilterModel() - unable to fully apply model, filtering disabled for colId: ${e}`,64:({colId:e})=>`setFilterModel() - unable to fully apply model, unable to create filter for colId: ${e}`,65:()=>"filter missing setModel method, which is needed for setFilterModel",66:()=>"filter API missing getModel method, which is needed for getFilterModel",67:()=>"Filter is missing isFilterActive() method",68:()=>"Column Filter API methods have been disabled as Advanced Filters are enabled.",69:({guiFromFilter:e})=>`getGui method from filter returned ${e}; it should be a DOM element.`,70:({newFilter:e})=>`Grid option quickFilterText only supports string inputs, received: ${typeof e}`,71:()=>"debounceMs is ignored when apply button is present",72:({keys:e})=>["ignoring FilterOptionDef as it doesn't contain one of ",e],73:()=>"invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'",74:()=>"no filter options for filter",75:()=>"Unknown button type specified",76:({filterModelType:e})=>['Unexpected type of filter "',e,'", it looks like the filter was configured with incorrect Filter Options'],77:()=>"Filter model is missing 'conditions'",78:()=>'Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.',79:()=>'"filterParams.maxNumConditions" must be greater than or equal to zero.',80:()=>'"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.',81:()=>'"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".',82:({param:e})=>`DateFilter ${e} is not a number`,83:()=>"DateFilter minValidYear should be <= maxValidYear",84:()=>"DateFilter minValidDate should be <= maxValidDate",85:()=>"DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored.",86:()=>"DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored.",87:()=>"DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.",88:({index:e})=>`Invalid row index for ensureIndexVisible: ${e}`,89:()=>"A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)",90:()=>"datasource is missing getRows method",91:()=>"Filter is missing method doesFilterPass",92:()=>"AnimationFrameService called but animation frames are off",93:()=>"cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`",94:({paginationPageSizeOption:e,pageSizeSet:t,pageSizesSet:o,pageSizeOptions:r})=>`'paginationPageSize=${e}'${t?"":" (default value)"}, but ${e} is not included in${o?"":" the default"} paginationPageSizeSelector=[${r?.join(", ")}].`,95:({paginationPageSizeOption:e,paginationPageSizeSelector:t})=>`Either set '${t}' to an array that includes ${e} or to 'false' to disable the page size selector.`,96:({id:e,data:t})=>["Duplicate ID",e,"found for pinned row with data",t,"When `getRowId` is defined, it must return unique IDs for all pinned rows. Use the `rowPinned` parameter."],97:({colId:e})=>`cellEditor for column ${e} is missing getGui() method`,98:()=>"popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.",99:()=>"Since v32, `api.hideOverlay()` does not hide the loading overlay when `loading=true`. Set `loading=false` instead.",101:({propertyName:e,componentName:t,agGridDefaults:o,jsComps:r})=>{const n=[],i=[...Object.keys(o??[]).filter(l=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(l)),...Object.keys(r??[]).filter(l=>!!r[l])],s=Hm({inputValue:t,allSuggestions:i,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return n.push(`Could not find '${t}' component. It was configured as "${e}: '${t}'" but it wasn't found in the list of registered components.
60
+ `),s.length>0&&n.push(` Did you mean: [${s.slice(0,3)}]?
61
+ `),n.push("If using a custom component check it has been registered correctly."),n},102:()=>"selectAll: 'filtered' only works when gridOptions.rowModelType='clientSide'",103:()=>"Invalid selection state. When using client-side row model, the state must conform to `string[]`.",104:({value:e,param:t})=>`Numeric value ${e} passed to ${t} param will be interpreted as ${e} seconds. If this is intentional use "${e}s" to silence this warning.`,105:({e})=>["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: ${ca}/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 o=Hm({inputValue:e,allSuggestions:t,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return[`Could not find '${e}' aggregate function. It was configured as "aggFunc: '${e}'" but it wasn't found in the list of registered aggregations.`,o.length>0?` Did you mean: [${o.slice(0,3)}]?`:"","If using a custom aggregation function check it has been registered correctly."].join(`
62
+ `)},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.
63
+ Please turn off ${e} to enable Excel table exports.`,164:()=>"Unable to add data table to Excel sheet: A table already exists.",165:()=>"Unable to add data table to Excel sheet: Missing required parameters.",166:({unrecognisedGroupIds:e})=>["unable to find groups for these supplied groupIds:",e],167:({unrecognisedColIds:e})=>["unable to find columns for these supplied colIds:",e],168:()=>"detailCellRendererParams.template should be function or string",169:()=>'Reference to eDetailGrid was missing from the details template. Please add data-ref="eDetailGrid" to the template.',170:({providedStrategy:e})=>`invalid cellRendererParams.refreshStrategy = ${e} supplied, defaulting to refreshStrategy = 'rows'.`,171:()=>"could not find detail grid options for master detail, please set gridOptions.detailCellRendererParams.detailGridOptions",172:()=>"could not find getDetailRowData for master / detail, please set gridOptions.detailCellRendererParams.getDetailRowData",173:({group:e})=>`invalid chartGroupsDef config '${e}'`,174:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,175:({menuTabName:e,itemsToConsider:t})=>[`Trying to render an invalid menu item '${e}'. Check that your 'menuTabs' contains one of `,t],176:({key:e})=>`unknown menu item type ${e}`,177:()=>"valid values for cellSelection.handle.direction are 'x', 'y' and 'xy'. Default to 'xy'.",178:({colId:e})=>`column ${e} is not visible`,179:()=>"totalValueGetter should be either a function or a string (expression)",180:()=>"agRichSelectCellEditor requires cellEditorParams.values to be set",181:()=>"agRichSelectCellEditor cannot have `multiSelect` and `allowTyping` set to `true`. AllowTyping has been turned off.",182:()=>'you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data',183:()=>"Group Column Filter only works on group columns. Please use a different filter.",184:({parentGroupData:e,childNodeData:t})=>["duplicate group keys for row data, keys should be unique",[e,t]],185:({data:e})=>["getDataPath() should not return an empty path",[e]],186:({rowId:e,rowData:t,duplicateRowsData:o})=>["duplicate group keys for row data, keys should be unique",e,t,...o??[]],187:({rowId:e,firstData:t,secondData:o})=>[`Duplicate node id ${e}. Row IDs are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.`,"first instance",t,"second instance",o],188:e=>`getRowId callback must be provided for Server Side Row Model ${e?.feature||"selection"} to work correctly.`,189:({startRow:e})=>`invalid value ${e} for startRow, the value should be >= 0`,190:({rowGroupId:e,data:t})=>["null and undefined values are not allowed for server side row model keys",e?`column = ${e}`:"","data is ",t],194:({method:e})=>`calling gridApi.${e}() is only possible when using rowModelType=\`clientSide\`.`,195:({justCurrentPage:e})=>`selecting just ${e?"current page":"filtered"} only works when gridOptions.rowModelType='clientSide'`,196:({key:e})=>`Provided ids must be of string type. Invalid id provided: ${e}`,197:()=>"`toggledNodes` must be an array of string ids.",199:()=>"getSelectedNodes and getSelectedRows functions cannot be used with select all functionality with the server-side row model. Use `api.getServerSideSelectionState()` instead.",200:tP,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 ${ca}/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.
64
+ 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.
65
+ Your code probably called a grid API method while the grid was in the render stage.
66
+ To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0).
67
+ 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:()=>oP("IntegratedChartsModule"),258:()=>oP("SparklinesModule"),259:({part:e})=>`the argument to theme.withPart must be a Theming API part object, received: ${e}`,260:({propName:e,compName:t,gridScoped:o,gridId:r,rowModelType:n})=>tP({reasonOrId:`AG Grid '${e}' component: ${t}`,moduleName:Ea[t],gridId:r,gridScoped:o,rowModelType:n}),261:()=>"As of v33, `column.isHovered()` is deprecated. Use `api.isColumnHovered(column)` instead.",262:()=>'As of v33, icon key "smallDown" is deprecated. Use "advancedFilterBuilderSelect" for Advanced Filter Builder dropdown, "selectOpen" for Select cell editor and dropdowns (e.g. Integrated Charts menu), "richSelectOpen" for Rich Select cell editor.',263:()=>'As of v33, icon key "smallLeft" is deprecated. Use "panelDelimiterRtl" for Row Group Panel / Pivot Panel, "subMenuOpenRtl" for sub-menus.',264:()=>'As of v33, icon key "smallRight" is deprecated. Use "panelDelimiter" for Row Group Panel / Pivot Panel, "subMenuOpen" for sub-menus.',265:({colId:e})=>`Unable to infer chart data type for column '${e}' if first data entry is null. Please specify "chartDataType", or a "cellDataType" in the column definition. For more information, see ${ca}/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:()=>JR(),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:eP,276:()=>"Row Numbers Row Resizer cannot be used when Grid Columns have `autoHeight` enabled.",277:({colId:e})=>`'enableFilterHandlers' is set to true, but column '${e}' does not have 'filter.doesFilterPass' or 'filter.handler' set.`,278:({colId:e})=>`Unable to create filter handler for column '${e}'`,279:e=>{},280:({colId:e})=>`'name' must be provided for custom filter components for column '${e}`,281:({colId:e})=>`Filter for column '${e}' does not have 'filterParams.buttons', but the new Filters Tool Panel has buttons configured. Either configure buttons for the filter, or disable buttons on the Filters Tool Panel.`,282:()=>"New filter tool panel requires `enableFilterHandlers: true`.",283:()=>"As of v34, use the same method on the filter handler (`api.getColumnFilterHandler(colKey)`) instead.",284:()=>"As of v34, filters are active when they have a model. Use `api.getColumnFilterModel()` instead.",285:()=>"As of v34, use (`api.getColumnFilterModel()`) instead.",286:()=>"As of v34, use (`api.setColumnFilterModel()`) instead.",287:()=>"`api.doFilterAction()` requires `enableFilterHandlers = true",288:()=>"`api.getColumnFilterModel(key, true)` requires `enableFilterHandlers = true",289:({rowModelType:e})=>`Row Model '${e}' is not supported with Batch Editing`,290:({rowIndex:e,rowPinned:t})=>`Row with index '${e}' and pinned state '${t}' not found`,291:()=>"License Key being set multiple times with different values. This can result in an incorrect license key being used,",292:({colId:e})=>`The Multi Filter for column '${e}' has buttons configured against the child filters. When 'enableFilterHandlers=true', buttons must instead be provided against the parent Multi Filter params. The child filter buttons will be ignored.`,293:()=>"The grid was initialised detached from the DOM and was then inserted into a Shadow Root. Theme styles are probably broken. Pass the themeStyleContainer grid option to let the grid know where in the document to insert theme CSS.",294:()=>"When using the `agRichSelectCellEditor` setting `filterListAsync = true` requires `allowTyping = true` and the `values()` callback must return a Promise of filtered values.",295:({blockedService:e})=>`colDef.allowFormula is not supported with ${e}. Formulas has been turned off.`,296:()=>"Since v35, `api.hideOverlay()` does not hide the overlay when `activeOverlay` is set. Set `activeOverlay=null` instead.",297:()=>'`api.hideOverlay()` does not hide the no matching rows overlay as it is only controlled by grid state. Set `suppressOverlays=["noMatchingRows"] to not show it.'};function BK(e,t){const o=IK[e];if(!o)return[`Missing error text for error id ${e}!`];const r=o(t),i=`
68
+ See ${Ck(e,t)}`;return Array.isArray(r)?r.concat(i):[r,i]}var OK={1:"Charting Aggregation",2:"pivotResultFields",3:"setTooltip"},rP=new WeakMap,nP=new WeakMap,LK=1,NK=class{create(e,t,o,r,n,i){const s=fm.applyGlobalGridOptions(t),l=s.gridId??String(LK++),u=this.getRegisteredModules(n,l,s.rowModelType),d=this.createBeansList(s.rowModelType,u,l),h=this.createProvidedBeans(e,s,n);if(!d)return;const g={providedBeanInstances:h,beanClasses:d,id:l,beanInitComparator:lW,beanDestroyComparator:cW,derivedBeans:[sW],destroyCallback:()=>{nP.delete(b),rP.delete(e),yV(l),i?.()}},v=new lG(g);this.registerModuleFeatures(v,u),o(v),v.getBean("syncSvc").start(),r?.(v);const b=v.getBean("gridApi");return rP.set(e,b),nP.set(b,e),b}getRegisteredModules(e,t,o){return oc(PK,void 0,!0),e?.modules?.forEach(r=>oc(r,t)),SV(t,iP(o))}registerModuleFeatures(e,t){const o=e.getBean("registry"),r=e.getBean("apiFunctionSvc");for(const n of t){o.registerModule(n);const i=n.apiFunctions;if(i){const s=Object.keys(i);for(const l of s)r?.addFunction(l,i[l])}}}createProvidedBeans(e,t,o){let r=o?o.frameworkOverrides:null;Ht(r)&&(r=new cR);const n={gridOptions:t,eGridDiv:e,eRootDiv:e,globalListener:o?o.globalListener:null,globalSyncListener:o?o.globalSyncListener:null,frameworkOverrides:r};return o?.providedBeanInstances&&Object.assign(n,o.providedBeanInstances),n}createBeansList(e,t,o){const r={clientSide:"ClientSideRowModel",infinite:"InfiniteRowModel",serverSide:"ServerSideRowModel",viewport:"ViewportRowModel"},n=iP(e),i=r[n];if(!i){rc(201,{rowModelType:n},`Unknown rowModelType ${n}.`);return}if(!FV()){rc(272,void 0,JR());return}if(!e){const l=Object.entries(r).filter(([u,d])=>pm(d,o,u));if(l.length==1){const[u,d]=l[0];if(u!==n){const h={moduleName:d,rowModelType:u};rc(275,h,eP(h));return}}}if(!pm(i,o,n)){const l=hk(),u=`rowModelType = '${n}'`,d=`Missing module ${i}Module for rowModelType ${n}.`;rc(200,{reasonOrId:u,moduleName:i,gridScoped:gm(),gridId:o,rowModelType:n,isUmd:l},d);return}const s=new Set;for(const l of t)for(const u of l.beans??[])s.add(u);return Array.from(s)}};function iP(e){return e??"clientSide"}var zK=class{wrap(e,t,o,r){const n=this.createWrapper(e,r);for(const i of t??[])this.createMethod(n,i,!0);for(const i of o??[])this.createMethod(n,i,!1);return n}createMethod(e,t,o){e.addMethod(t,this.createMethodProxy(e,t,o))}createMethodProxy(e,t,o){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(o&&pe(49,{methodName:t}),null)}}};function Tv(e){return e.get("tooltipShowMode")==="whenTruncated"}var HK={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},Ro="clientSide",so="serverSide",_a="infinite",VK={onGroupExpandedOrCollapsed:[Ro],refreshClientSideRowModel:[Ro],isRowDataEmpty:[Ro],forEachLeafNode:[Ro],forEachNodeAfterFilter:[Ro],forEachNodeAfterFilterAndSort:[Ro],resetRowHeights:[Ro,so],applyTransaction:[Ro],applyTransactionAsync:[Ro],flushAsyncTransactions:[Ro],getBestCostNodeSelection:[Ro],getServerSideSelectionState:[so],setServerSideSelectionState:[so],applyServerSideTransaction:[so],applyServerSideTransactionAsync:[so],applyServerSideRowData:[so],retryServerSideLoads:[so],flushServerSideAsyncTransactions:[so],refreshServerSide:[so],getServerSideGroupLevelState:[so],refreshInfiniteCache:[_a],purgeInfiniteCache:[_a],getInfiniteRowCount:[_a],isLastRowIndexKnown:[_a,so],expandAll:[Ro,so],collapseAll:[Ro,so],onRowHeightChanged:[Ro,so],setRowCount:[_a,so],getCacheBlockState:[_a,so]},GK={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 jK(e,t,o){const r=GK[e];if(r){const{version:i,new:s,old:l,message:u}=r,d=l??e;return(...h)=>{const p=s?`Please use ${s} instead. `:"";return tc(`Since ${i} api.${d} is deprecated. ${p}${u??""}`),t.apply(t,h)}}const n=VK[e];return n?(...i)=>{const s=o.rowModel.getType();if(!n.includes(s)){la(`api.${e} can only be called when gridOptions.rowModelType is ${n.join(" or ")}`);return}return t.apply(t,i)}:t}var WK={detailCellRendererCtrl:"SharedMasterDetail",dndSourceComp:"DragAndDrop",fillHandle:"CellSelection",groupCellRendererCtrl:"GroupCellRenderer",headerFilterCellCtrl:"ColumnFilter",headerGroupCellCtrl:"ColumnGroup",rangeHandle:"CellSelection",tooltipFeature:"Tooltip",highlightTooltipFeature:"Tooltip",tooltipStateManager:"Tooltip",groupStrategy:"RowGrouping",treeGroupStrategy:"TreeData",rowNumberRowResizer:"RowNumbers",singleCell:"EditCore",fullRow:"EditCore",agSetColumnFilterHandler:"SetFilter",agMultiColumnFilterHandler:"MultiFilter",agGroupColumnFilterHandler:"GroupFilter",agNumberColumnFilterHandler:"NumberFilter",agDateColumnFilterHandler:"DateFilter",agTextColumnFilterHandler:"TextFilter"},qK={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},UK={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"},$K=new Set(["colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallDown","smallLeft","smallRight"]),KK=class extends ue{constructor(){super(...arguments),this.beanName="validation"}wireBeans(e){this.gridOptions=e.gridOptions,RV(BK)}warnOnInitialPropertyUpdate(e,t){e==="api"&&HK[t]&&pe(22,{key:t})}processGridOptions(e){this.processOptions(e,UU())}validateApiFunction(e,t){return jK(e,t,this.beans)}missingUserComponent(e,t,o,r){const n=Ea[t];n?this.gos.assertModuleRegistered(n,`AG Grid '${e}' component: ${t}`):pe(101,{propertyName:e,componentName:t,agGridDefaults:o,jsComps:r})}missingDynamicBean(e){const t=WK[e];return t?Qr(200,{...this.gos.getModuleErrorParams(),moduleName:t,reasonOrId:e}):void 0}checkRowEvents(e){ZK.has(e)&&pe(10,{eventType:e})}validateIcon(e){if($K.has(e)&&pe(43,{iconName:e}),qK[e])return;const t=UK[e];if(t){yt(200,{reasonOrId:`icon '${e}'`,moduleName:t,gridScoped:gm(),gridId:this.beans.context.getId(),rowModelType:this.gos.get("rowModelType"),additionalText:"Alternatively, use the CSS icon name directly."});return}pe(134,{iconName:e})}isProvidedUserComp(e){return!!Ea[e]}validateColDef(e){this.processOptions(e,BU())}processOptions(e,t){const{validations:o,deprecations:r,allProperties:n,propertyExceptions:i,objectName:s,docsUrl:l}=t;n&&this.gridOptions.suppressPropertyNamesCheck!==!0&&this.checkProperties(e,[...i??[],...Object.keys(r)],n,s,l);const u=new Set;if(Object.keys(e).forEach(h=>{const p=r[h];if(p){const{message:F,version:R}=p;u.add(`As of v${R}, ${String(h)} is deprecated. ${F??""}`)}const g=e[h];if(g==null||g===!1)return;const v=o[h];if(!v)return;const{dependencies:b,validate:C,supportedRowModels:S,expectedType:k}=v;if(k){const F=typeof g;if(F!==k){u.add(`${String(h)} should be of type '${k}' but received '${F}' (${g}).`);return}}if(S){const F=this.gridOptions.rowModelType??"clientSide";if(!S.includes(F)){u.add(`${String(h)} is not supported with the '${F}' row model. It is only valid with: ${S.join(", ")}.`);return}}if(b){const F=this.checkForRequiredDependencies(h,b,e);if(F){u.add(F);return}}if(C){const F=C(e,this.gridOptions,this.beans);if(F){u.add(F);return}}}),u.size>0)for(const h of u)tc(h)}checkForRequiredDependencies(e,t,o){const n=Object.entries(t).filter(([i,s])=>{const l=o[i];return!s.required.includes(l)});return n.length===0?null:n.map(([i,s])=>`'${String(e)}' requires '${i}' to be one of [${s.required.map(l=>l===null?"null":l===void 0?"undefined":l).join(", ")}]. ${s.reason??""}`).join(`
69
+ `)}checkProperties(e,t,o,r,n){const i=["__ob__","__v_skip","__metadata__"],s=XK(Object.getOwnPropertyNames(e),[...i,...t,...o],o),l=Object.keys(s);for(const u of l){const d=s[u];let h=`invalid ${r} property '${u}' did you mean any of these: ${d.slice(0,8).join(", ")}.`;o.includes("context")&&(h+=`
70
+ If you are trying to annotate ${r} with application data, use the '${r}.context' property instead.`),tc(h)}if(l.length>0&&n){const u=this.beans.frameworkOverrides.getDocLink(n);tc(`to see all the valid ${r} properties please check: ${u}`)}}};function XK(e,t,o){const r={},n=e.filter(i=>!t.some(s=>s===i));if(n.length>0)for(const i of n)r[i]=Hm({inputValue:i,allSuggestions:o}).values;return r}var ZK=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"]),YK={moduleName:"Validation",version:ze,beans:[KK]};function Dv(e){const t=e.sibling;t&&(t.childrenAfterFilter=e.childrenAfterFilter)}var QK=class extends ue{constructor(){super(...arguments),this.beanName="filterStage",this.step="filter",this.refreshProps=["excludeChildrenWhenTreeDataFiltering"]}wireBeans(e){this.filterManager=e.filterManager}execute(e){const t=!!this.filterManager?.isChildFilterPresent();this.beans.formula?.active?this.softFilter(t,e):this.filterNodes(t,e)}filterNodes(e,t){const o=(r,n)=>{r.hasChildren()&&e&&!n?r.childrenAfterFilter=r.childrenAfterGroup.filter(i=>{const s=i.childrenAfterFilter&&i.childrenAfterFilter.length>0,l=i.data&&this.filterManager.doesRowPassFilter({rowNode:i});return s||l}):r.childrenAfterFilter=r.childrenAfterGroup,Dv(r)};if(this.doingTreeDataFiltering()){const r=(i,s)=>{if(i.childrenAfterGroup)for(let l=0;l<i.childrenAfterGroup.length;l++){const u=i.childrenAfterGroup[l],d=s||this.filterManager.doesRowPassFilter({rowNode:u});u.childrenAfterGroup?r(i.childrenAfterGroup[l],d):o(u,d)}o(i,s)},n=i=>r(i,!1);t.executeFromRootNode(n)}else{const r=n=>o(n,!1);t.forEachChangedNodeDepthFirst(r,!0)}}softFilter(e,t){const o=r=>{if(r.childrenAfterFilter=r.childrenAfterGroup,r.hasChildren())for(const n of r.childrenAfterGroup)n.softFiltered=e&&!(n.data&&this.filterManager.doesRowPassFilter({rowNode:n}));Dv(r)};t.forEachChangedNodeDepthFirst(o,!0)}doingTreeDataFiltering(){const{gos:e}=this;return e.get("treeData")&&!e.get("excludeChildrenWhenTreeDataFiltering")}},JK=class extends uv{constructor(){super(...arguments),this.iconCreated=!1}wireComp(e,t,o,r,n){this.comp=e;const i=ac(this,this.beans.context,n);this.eButtonShowMainFilter=o,this.eFloatingFilterBody=r,this.setGui(t,i),this.setupActive(),this.refreshHeaderStyles(),this.setupWidth(i),this.setupLeft(i),this.setupHover(i),this.setupFocus(i),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(i),this.setupUi(),i.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(i);const s=()=>this.onColDefChanged(i);i.addManagedListeners(this.column,{colDefChanged:s}),i.addManagedEventListeners({filterSwitched:({column:l})=>{l===this.column&&s()}}),i.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}getHeaderClassParams(){const{column:e,beans:t}=this,o=e.colDef;return je(t.gos,{colDef:o,column:e,floatingFilter:!0})}setupActive(){const e=this.column.getColDef(),t=!!e.filter,o=!!e.floatingFilter;this.active=t&&o}setupUi(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!this.active||this.iconCreated)return;const e=mi("filter",this.beans,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(e){e.createManagedBean(new fc(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();na(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(e){const{beans:t}=this;if(At(t)===this.eGui)return;const n=Ca(t,this.eGui,null,e.shiftKey);if(n){t.headerNavigation?.scrollToColumn(this.column),e.preventDefault(),n.focus();return}const i=this.findNextColumnWithFloatingFilter(e.shiftKey);i&&t.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:i},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){const t=this.beans.visibleCols;let o=this.column;do if(o=e?t.getColBefore(o):t.getColAfter(o),!o)break;while(!o.getColDef().filter||!o.getColDef().floatingFilter);return o}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();switch(e.key){case te.UP:case te.DOWN:case te.LEFT:case te.RIGHT:if(t)return;hc(e);case te.ENTER:t&&ts(this.eGui)&&e.preventDefault();break;case te.ESCAPE:t||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;const o=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),r=!!e.relatedTarget&&Xi(e.relatedTarget,"ag-floating-filter");if(o&&r&&e.target===this.eGui){const n=this.lastFocusEvent,i=!!(n&&n.key===te.TAB);if(n&&i){const s=n.shiftKey;ts(this.eGui,s)}}this.focusThis()}setupHover(e){this.beans.colHover?.addHeaderFilterColumnHoverListener(e,this.comp,this.column,this.eGui)}setupLeft(e){const t=new cv(this.column,this.eGui,this.beans);e.createManagedBean(t)}setupFilterButton(){this.suppressFilterButton=!this.beans.menuSvc?.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!Vo(this.gos)}setupUserComp(){if(!this.active)return;const e=this.beans.colFilter?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setCompDetails(e)}showParentFilter(){const e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.beans.menuSvc?.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(e){if(!this.active)return;const{beans:{colFilter:t},column:o,gos:r}=this,n=i=>{if(i?.source==="filterDestroyed"&&(!this.isAlive()||!t?.isAlive()))return;const s=this.comp.getFloatingFilterComp();s&&s.then(l=>{if(l){if(r.get("enableFilterHandlers")){const h=i;let p="filter";h?.afterFloatingFilter?p="ui":h?.afterDataChange?p="dataChanged":i?.source==="api"&&(p="api"),this.updateFloatingFilterParams(this.userCompDetails,p);return}const u=t?.getCurrentFloatingFilterParentModel(o),d=i?{...i,columns:i.columns??[],source:i.source==="api"?"api":"columnFilter"}:null;l.onParentModelChanged(u,d)}})};[this.destroySyncListener]=e.addManagedListeners(o,{filterChanged:n}),t?.isFilterActive(o)&&n(null)}setupWidth(e){const t=()=>{const o=`${this.column.getActualWidth()}px`;this.comp.setWidth(o)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupFilterChangedListener(e){this.active&&([this.destroyFilterChangedListener]=e.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){if(!this.suppressFilterButton&&this.comp){const e=!!this.beans.filterManager?.isFilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(e){const t=this.active;this.setupActive();const o=!t&&this.active;t&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());const r=this.beans.colFilter,n=this.active?r?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,i=this.comp.getFloatingFilterComp();!i||!n?this.updateCompDetails(e,n,o):i.then(s=>{!s||r?.areFilterCompsDifferent(this.userCompDetails??null,n)?this.updateCompDetails(e,n,o):this.updateFloatingFilterParams(n,"colDef")})}updateCompDetails(e,t,o){this.isAlive()&&(this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),o&&(this.setupSyncWithFilter(e),this.setupFilterChangedListener(e)))}updateFloatingFilterParams(e,t){if(!e)return;let o=e.params;this.comp.getFloatingFilterComp()?.then(r=>{typeof r?.refresh=="function"&&(this.gos.get("enableFilterHandlers")&&(o={...o,model:qt(this.beans.colFilter?.model??{},this.column.getColId()),source:t}),r.refresh(o))})}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}};function eX(e,t){const o=e.colModel.getCol(t);if(!o){yt(12,{colKey:t});return}e.menuSvc?.showColumnMenu({column:o,positionBy:"auto"})}function tX(e){e.menuSvc?.hidePopupMenu()}var oX={moduleName:"SharedMenu",version:ze,beans:[Nj],apiFunctions:{showColumnMenu:eX,hidePopupMenu:tX}},rX=class extends CG{getDefaultPopupParent(){return this.beans.ctrlsSvc.get("gridCtrl").getGui()}callPostProcessPopup(e,t,o,r,n){const i=this.gos.getCallback("postProcessPopup");if(i){const{column:s,rowNode:l}=e??{};i({column:s,rowNode:l,ePopup:o,type:t,eventSource:r,mouseEvent:n})}}getActivePopups(){return this.popupList.map(e=>e.element)}hasAnchoredPopup(){return this.popupList.some(e=>e.isAnchored)}isStopPropagation(e){return Ln(e)}},Mv={moduleName:"Popup",version:ze,beans:[rX]},nX=".ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}:where(.ag-rtl) .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr) .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-body-wrapper{display:flex;flex-direction:column}:where(.ag-menu:not(.ag-tabs) .ag-filter) .ag-filter-body-wrapper,:where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}:where(.ag-floating-filter-full-body)>div{flex:1 1 auto}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}:where(.ag-input-field-input[type=date]),:where(.ag-input-field-input[type=datetime-local]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-date-floating-filter-wrapper{display:flex}.ag-set-floating-filter-input :where(input)[disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{align-items:unset;background-color:var(--ag-chrome-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;:where(.ag-menu) &{background-color:var(--ag-menu-background-color)}}.ag-filter-separator{border-top:solid var(--ag-border-width) var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-filter-menu) .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));&>*{margin-bottom:var(--ag-widget-vertical-spacing)}:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}";function iX(e){const t=e.filterManager;return!!t?.isColumnFilterPresent()||!!t?.isAggregateFilterPresent()}function sX(e,t){return e.filterManager?.getColumnFilterInstance(t)??Promise.resolve(void 0)}function aX(e,t){const o=e.colModel.getColDefCol(t);if(o)return e.colFilter?.destroyFilter(o,"api")}function lX(e,t){e.frameworkOverrides.wrapIncoming(()=>e.filterManager?.setFilterModel(t))}function cX(e){return e.filterManager?.getFilterModel()??{}}function uX(e,t,o){const{gos:r,colModel:n,colFilter:i}=e;o&&!r.get("enableFilterHandlers")&&(pe(288),o=!1);const s=n.getColDefCol(t);return s?i?.getModelForColumn(s,o)??null:null}function dX(e,t,o){return e.filterManager?.setColumnFilterModel(t,o)??Promise.resolve()}function hX(e,t){const o=e.colModel.getCol(t);if(!o){yt(12,{colKey:t});return}e.menuSvc?.showFilterMenu({column:o,containerType:"columnFilter",positionBy:"auto"})}function fX(e){e.menuSvc?.hideFilterMenu()}function pX(e,t){const o=e.colModel.getCol(t);if(!o){yt(12,{colKey:t});return}return e.colFilter?.getHandler(o,!0)}function gX(e,t){const{colModel:o,colFilter:r,gos:n}=e;if(!n.get("enableFilterHandlers")){pe(287);return}const{colId:i,action:s}=t;if(i){const l=o.getColById(i);l&&r?.updateModel(l,s)}else r?.updateAllModels(s)}var mX={filterHandler:()=>({doesFilterPass:()=>!0})},vX=class extends ue{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={...DF},this.isGlobalButtons=!1,this.activeFilterComps=new Set}postConstruct(){this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)});const e=this.gos,t={...e.get("initialState")?.filter?.filterModel??{}};this.initialModel=t,this.model={...t},e.get("enableFilterHandlers")||delete this.handlerMap.agMultiColumnFilter}refreshModel(){this.onNewRowsLoaded("rowDataUpdated")}setModel(e,t="api",o){const{colModel:r,dataTypeSvc:n,filterManager:i}=this.beans;if(n?.isPendingInference){this.modelUpdates.push({model:e,source:t});return}const s=[],l=this.getModel(!0);if(e){const u=new Set(Object.keys(e));this.allColumnFilters.forEach((d,h)=>{const p=e[h];s.push(this.setModelOnFilterWrapper(d,p)),u.delete(h)}),u.forEach(d=>{const h=r.getColDefCol(d)||r.getCol(d);if(!h){pe(62,{colId:d});return}if(!h.isFilterAllowed()){pe(63,{colId:d});return}const p=this.getOrCreateFilterWrapper(h,!0);if(!p){pe(64,{colId:d});return}s.push(this.setModelOnFilterWrapper(p,e[d],!0))})}else this.model={},this.allColumnFilters.forEach(u=>{s.push(this.setModelOnFilterWrapper(u,null))});Ve.all(s).then(()=>{const u=this.getModel(!0),d=[];this.allColumnFilters.forEach((h,p)=>{const g=l?l[p]:null,v=u?u[p]:null;Lx(g,v)||d.push(h.column)}),d.length>0?i?.onFilterChanged({columns:d,source:t}):o&&this.updateActive("filterChanged")})}getModel(e){const t={},{allColumnFilters:o,initialModel:r,beans:{colModel:n}}=this;if(o.forEach((i,s)=>{const l=this.getModelFromFilterWrapper(i);xe(l)&&(t[s]=l)}),!e)for(const i of Object.keys(r)){const s=r[i];xe(s)&&!o.has(i)&&n.getCol(i)?.isFilterAllowed()&&(t[i]=s)}return t}setState(e,t,o="api"){if(this.state.clear(),t)for(const r of Object.keys(t)){const n=t[r];this.state.set(r,{model:qt(this.model,r),state:n})}this.setModel(e,o,!0)}getState(){const e=this.state;if(!e.size)return;const t={};let o=!1;return e.forEach((r,n)=>{const i=r.state;i!=null&&(o=!0,t[n]=i)}),o?t:void 0}getModelFromFilterWrapper(e){const o=e.column.getColId();if(e.isHandler)return qt(this.model,o);const r=e.filter;return r?typeof r.getModel!="function"?(pe(66),null):r.getModel():qt(this.initialModel,o)}isFilterPresent(){return this.activeColumnFilters.length>0}isAggFilterPresent(){return!!this.activeAggregateFilters.length}disableFilters(){this.initialModel={};const{allColumnFilters:e}=this;return e.size?(e.forEach(t=>this.disposeFilterWrapper(t,"advancedFilterEnabled")),!0):!1}updateActiveFilters(){const e=d=>d?d.isFilterActive?d.isFilterActive():(pe(67),!1):!1,{colModel:t,gos:o}=this.beans,r=!!Cm(o),n=d=>{if(!d.isPrimary())return!0;const p=!t.isPivotActive();return!d.isValueActive()||!p?!1:t.isPivotMode()?!0:r},i=[],s=[],l=(d,h,p)=>{h&&(n(d)?i.push(p):s.push(p))},u=[];return this.allColumnFilters.forEach(d=>{const h=d.column,p=h.getColId();if(d.isHandler)u.push(Ve.resolve().then(()=>{l(h,this.isHandlerActive(h),{colId:p,isHandler:!0,handler:d.handler,handlerParams:d.handlerParams})}));else{const g=fi(d);g&&u.push(g.then(v=>{l(h,e(v),{colId:p,isHandler:!1,comp:v})}))}}),Ve.all(u).then(()=>{this.activeAggregateFilters=i,this.activeColumnFilters=s})}updateFilterFlagInColumns(e,t){const o=[];return this.allColumnFilters.forEach(r=>{const n=r.column;if(r.isHandler)o.push(Ve.resolve().then(()=>{this.setColFilterActive(n,this.isHandlerActive(n),e,t)}));else{const i=fi(r);i&&o.push(i.then(s=>{this.setColFilterActive(n,s.isFilterActive(),e,t)}))}}),this.beans.groupFilter?.updateFilterFlags(e,t),Ve.all(o)}doFiltersPass(e,t,o){const{data:r,aggData:n}=e,i=o?this.activeAggregateFilters:this.activeColumnFilters,s=o?n:r,l=this.model;for(let u=0;u<i.length;u++){const d=i[u],{colId:h,isHandler:p}=d;if(h!==t)if(p){const{handler:g,handlerParams:v}=d;if(!g.doesFilterPass({node:e,data:s,model:qt(l,h),handlerParams:v}))return!1}else{const g=d.comp;if(typeof g.doesFilterPass!="function"){yt(91);continue}if(!g.doesFilterPass({node:e,data:s}))return!1}}return!0}getHandlerParams(e){const t=this.allColumnFilters.get(e.getColId());return t?.isHandler?t.handlerParams:void 0}callOnFilterChangedOutsideRenderCycle(e){const{rowRenderer:t,filterManager:o}=this.beans,r=()=>{this.isAlive()&&o?.onFilterChanged(e)};t.isRefreshInProgress()?setTimeout(r,0):r()}updateBeforeFilterChanged(e={}){const{column:t,additionalEventAttributes:o}=e,r=t?.getColId();return this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",o).then(()=>{this.allColumnFilters.forEach(n=>{const{column:i,isHandler:s}=n;r!==i.getColId()&&(s&&n.handler.onAnyFilterChanged?.(),fi(n,s)?.then(l=>{typeof l?.onAnyFilterChanged=="function"&&l.onAnyFilterChanged()}))}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){return!(this.gos.get("allowShowChangeAfterFilter")??!1)&&this.processingFilterChange}onNewRowsLoaded(e){const t=[];this.allColumnFilters.forEach(o=>{const r=o.isHandler;r&&o.handler.onNewRowsLoaded?.();const n=fi(o,r);n&&t.push(n.then(i=>{i.onNewRowsLoaded?.()}))}),Ve.all(t).then(()=>this.updateActive(e,{afterDataChange:!0}))}updateActive(e,t){this.updateFilterFlagInColumns(e,t).then(()=>this.updateActiveFilters())}createGetValue(e,t){const{filterValueSvc:o,colModel:r}=this.beans;return(n,i)=>{const s=i?r.getCol(i):e;return s?o.getValue(s,n,t):void 0}}isFilterActive(e){const t=this.cachedFilter(e);if(t?.isHandler)return this.isHandlerActive(e);const o=t?.filter;return o?o.isFilterActive():qt(this.initialModel,e.getColId())!=null}isHandlerActive(e){const t=xe(qt(this.model,e.getColId()));if(t)return t;const o=this.beans.groupFilter;return o?.isGroupFilter(e)?o.isFilterActive(e):!1}getOrCreateFilterUi(e){const t=this.getOrCreateFilterWrapper(e,!0);return t?fi(t):null}getFilterUiForDisplay(e){const t=this.getOrCreateFilterWrapper(e,!0);if(!t)return null;const o=fi(t);return o?o.then(r=>({comp:r,params:t.filterUi.filterParams,isHandler:t.isHandler})):null}getHandler(e,t){const o=this.getOrCreateFilterWrapper(e,t);return o?.isHandler?o.handler:void 0}getOrCreateFilterWrapper(e,t){if(!e.isFilterAllowed())return;let o=this.cachedFilter(e);return!o&&t&&(o=this.createFilterWrapper(e),this.setColumnFilterWrapper(e,o)),o}cachedFilter(e){return this.allColumnFilters.get(e.getColId())}getDefaultFilter(e,t=!1){return this.getDefaultFilterFromDataType(()=>this.beans.dataTypeSvc?.getBaseDataType(e),t)}getDefaultFilterFromDataType(e,t=!1){return WV(this.gos)?t?"agSetColumnFloatingFilter":"agSetColumnFilter":GG(e(),t)}getDefaultFloatingFilter(e){return this.getDefaultFilter(e,!0)}createFilterComp(e,t,o,r,n,i){const s=()=>{const d=this.createFilterCompParams(e,n,i),h=r(d,n);return J7(this.beans.userCompFactory,t,h,o)},l=s();return l?{compDetails:l,createFilterUi:d=>(d?s():l).newAgStackInstance()}:null}createFilterInstance(e,t,o,r){const n=this.beans.selectableFilter;n?.isSelectable(t)&&(t=n.getFilterDef(e,t));const{handler:i,handlerParams:s,handlerGenerator:l}=this.createHandler(e,t,o)??{},u=this.createFilterComp(e,t,o,r,!!i,"init");if(!u)return{compDetails:null,createFilterUi:null,handler:i,handlerGenerator:l,handlerParams:s};const{compDetails:d,createFilterUi:h}=u;return this.isGlobalButtons&&(d.params?.buttons?.length||pe(281,{colId:e.getColId()})),{compDetails:d,handler:i,handlerGenerator:l,handlerParams:s,createFilterUi:h}}createBaseFilterParams(e,t){const{filterManager:o,rowModel:r}=this.beans;return je(this.gos,{column:e,colDef:e.getColDef(),getValue:this.createGetValue(e),doesRowPassOtherFilter:t?()=>!0:n=>o?.doesRowPassOtherFilters(e.getColId(),n)??!0,rowModel:r})}createFilterCompParams(e,t,o,r){const n=this.filterChangedCallbackFactory(e),i=this.createBaseFilterParams(e,r);if(i.filterChangedCallback=n,i.filterModifiedCallback=r?()=>{}:s=>this.filterModified(e,s),t){const s=i,l=e.getColId(),u=qt(this.model,l);s.model=u,s.state=this.state.get(l)??{model:u},s.onModelChange=(d,h)=>{this.updateStoredModel(l,d),this.refreshHandlerAndUi(e,d,"ui",!1,h).then(()=>{n({...h,source:"columnFilter"})})},s.onStateChange=d=>{this.updateState(e,d),this.updateOrRefreshFilterUi(e)},s.onAction=(d,h,p)=>{this.updateModel(e,d,h),this.dispatchLocalEvent({type:"filterAction",column:e,action:d,event:p})},s.getHandler=()=>this.getHandler(e,!0),s.onUiChange=d=>this.filterUiChanged(e,d),s.source=o}return i}createFilterUiForHandler(e,t){return t?{created:!1,create:t,filterParams:e.params,compDetails:e}:null}createFilterUiLegacy(e,t,o){const r=t(),n={created:!0,create:t,filterParams:e.params,compDetails:e,promise:r};return r.then(o),n}createFilterWrapper(e){const{compDetails:t,handler:o,handlerGenerator:r,handlerParams:n,createFilterUi:i}=this.createFilterInstance(e,e.getColDef(),this.getDefaultFilter(e),l=>l),s=e.getColId();if(o)return delete this.initialModel[s],o.init?.({...n,source:"init",model:qt(this.model,s)}),{column:e,isHandler:!0,handler:o,handlerGenerator:r,handlerParams:n,filterUi:this.createFilterUiForHandler(t,i)};if(i){const l={column:e,filterUi:null,isHandler:!1};return l.filterUi=this.createFilterUiLegacy(t,i,u=>{l.filter=u??void 0}),l}return{column:e,filterUi:null,isHandler:!1}}createHandlerFunc(e,t,o){const{gos:r,frameworkOverrides:n,registry:i}=this.beans;let s;const l=v=>{const b=v.filter;if(jk(b)){const C=b.handler;return C||(s=b.doesFilterPass,s?()=>({doesFilterPass:s}):void 0)}return typeof b=="string"?b:void 0},u=r.get("enableFilterHandlers"),d=u?l(t):void 0,h=v=>()=>this.createBean(i.createDynamicBean(v,!0));let p,g;if(typeof d=="string"){const v=r.get("filterHandlers")?.[d];v!=null?p=v:DG.has(d)&&(p=h(d),g=d)}else p=d;if(!p){let v;const{compName:b,jsComp:C,fwComp:S}=Kk(n,t);b?v=b:C==null&&S==null&&t.filter===!0&&(v=o),g=this.handlerMap[v],g&&(p=h(g))}return p?{filterHandler:p,handlerNameOrCallback:s??g}:u?(Qi(r)&&pe(277,{colId:e.getColId()}),mX):void 0}createHandler(e,t,o){const r=this.createHandlerFunc(e,t,o);if(!r)return;const n=Fm(this.beans.userCompFactory,t,this.createFilterCompParams(e,!0,"init")),{handlerNameOrCallback:i,filterHandler:s}=r,{handler:l,handlerParams:u}=this.createHandlerFromFunc(e,s,n);return{handler:l,handlerParams:u,handlerGenerator:i??s}}createHandlerFromFunc(e,t,o){const r=e.getColDef(),n=t(je(this.gos,{column:e,colDef:r})),i=this.createHandlerParams(e,o);return{handler:n,handlerParams:i}}createHandlerParams(e,t){const o=e.getColDef(),r=e.getColId(),n=this.filterChangedCallbackFactory(e);return je(this.gos,{colDef:o,column:e,getValue:this.createGetValue(e),doesRowPassOtherFilter:i=>this.beans.filterManager?.doesRowPassOtherFilters(r,i)??!0,onModelChange:(i,s)=>{this.updateStoredModel(r,i),this.refreshHandlerAndUi(e,i,"handler",!1,s).then(()=>{n({...s,source:"columnFilter"})})},filterParams:t})}onColumnsChanged(){const e=[],{colModel:t,filterManager:o,groupFilter:r}=this.beans;this.allColumnFilters.forEach((i,s)=>{let l;i.column.isPrimary()?l=t.getColDefCol(s):l=t.getCol(s),!(l&&l===i.column)&&(e.push(i.column),this.disposeFilterWrapper(i,"columnChanged"),this.disposeColumnListener(s))});const n=r&&e.every(i=>r.isGroupFilter(i));e.length>0&&!n&&o?.onFilterChanged({columns:e,source:"api"})}isFilterAllowed(e){if(!e.isFilterAllowed())return!1;const o=this.beans.groupFilter;return o?.isGroupFilter(e)?o.isFilterAllowed(e):!0}getFloatingFilterCompDetails(e,t){const{userCompFactory:o,frameworkOverrides:r,selectableFilter:n,gos:i}=this.beans,s=v=>{this.getOrCreateFilterUi(e)?.then(C=>{v(Rm(C))})},l=e.getColDef(),u=n?.isSelectable(l)?n.getFilterDef(e,l):l,d=qG(r,u,()=>this.getDefaultFloatingFilter(e))??"agReadOnlyFloatingFilter",h=i.get("enableFilterHandlers"),p=Fm(o,u,this.createFilterCompParams(e,h,"init",!0)),g=je(i,{column:e,filterParams:p,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:s,showParentFilter:t});if(h){const v=g,b=e.getColId(),C=this.filterChangedCallbackFactory(e);v.onUiChange=S=>this.floatingFilterUiChanged(e,S),v.model=qt(this.model,b),v.onModelChange=(S,k)=>{this.updateStoredModel(b,S),this.refreshHandlerAndUi(e,S,"floating",!0,k).then(()=>{C({...k,source:"columnFilter"})})},v.getHandler=()=>this.getHandler(e,!0),v.source="init"}return t9(o,l,g,d)}getCurrentFloatingFilterParentModel(e){return this.getModelFromFilterWrapper(this.cachedFilter(e)??{column:e})}destroyFilterUi(e,t,o,r){const n="paramsUpdated";if(e.isHandler){const i=t.getColId();delete this.initialModel[i],this.state.delete(i);const s=e.filterUi,l=this.createFilterUiForHandler(o,r);e.filterUi=l;const u=this.eventSvc;s?.created?s.promise.then(d=>{this.destroyBean(d),u.dispatchEvent({type:"filterDestroyed",source:n,column:t})}):u.dispatchEvent({type:"filterHandlerDestroyed",source:n,column:t})}else this.destroyFilter(t,n)}destroyFilter(e,t="api"){const o=e.getColId(),r=this.allColumnFilters.get(o);this.disposeColumnListener(o),delete this.initialModel[o],r&&this.disposeFilterWrapper(r,t).then(n=>{n&&this.isAlive()&&this.beans.filterManager?.onFilterChanged({columns:[e],source:"api"})})}disposeColumnListener(e){const t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())}disposeFilterWrapper(e,t){let o=!1;const{column:r,isHandler:n,filterUi:i}=e,s=r.getColId();n&&(o=this.isHandlerActive(r),this.destroyBean(e.handler),delete this.model[s],this.state.delete(s));const l=()=>{this.setColFilterActive(r,!1,"filterDestroyed"),this.allColumnFilters.delete(s),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:t,column:r})};if(i){if(i.created)return i.promise.then(u=>(o=n?o:!!u?.isFilterActive(),this.destroyBean(u),l(),o));l()}return Ve.resolve(o)}filterChangedCallbackFactory(e){return t=>{this.callOnFilterChangedOutsideRenderCycle({additionalEventAttributes:t,columns:[e],column:e,source:t?.source??"columnFilter"})}}filterParamsChanged(e,t="api"){const o=this.allColumnFilters.get(e);if(!o)return;const r=this.beans,n=o.column,i=n.getColDef(),s=n.isFilterAllowed(),l=this.getDefaultFilter(n),u=r.selectableFilter,d=u?.isSelectable(i)?u.getFilterDef(n,i):i,h=s?this.createHandlerFunc(n,d,this.getDefaultFilter(n)):void 0,p=!!h,g=o.isHandler;if(g!=p){this.destroyFilter(n,"paramsUpdated");return}const{compDetails:v,createFilterUi:b}=(s?this.createFilterComp(n,d,l,S=>S,p,"colDef"):null)??{compDetails:null,createFilterUi:null},C=v?.params??Fm(r.userCompFactory,d,this.createFilterCompParams(n,p,"colDef"));if(g){const S=h?.handlerNameOrCallback??h?.filterHandler,k=qt(this.model,e);if(o.handlerGenerator!=S){const F=o.handler,{handler:R,handlerParams:P}=this.createHandlerFromFunc(n,h.filterHandler,C);o.handler=R,o.handlerParams=P,o.handlerGenerator=S,delete this.model[e],R.init?.({...P,source:"init",model:null}),this.destroyBean(F),k!=null&&this.beans.filterManager?.onFilterChanged({columns:[n],source:t})}else{const F=this.createHandlerParams(n,v?.params);o.handlerParams=F,o.handler.refresh?.({...F,source:"colDef",model:k})}}if(this.areFilterCompsDifferent(o.filterUi?.compDetails??null,v)||!o.filterUi||!v){this.destroyFilterUi(o,n,v,b);return}o.filterUi.filterParams=C,fi(o,g)?.then(S=>{(S?.refresh?S.refresh(C):!0)===!1?this.destroyFilterUi(o,n,v,b):this.dispatchLocalEvent({type:"filterParamsChanged",column:n,params:C})})}refreshHandlerAndUi(e,t,o,r,n){const i=this.cachedFilter(e);if(!i)return r&&this.getOrCreateFilterWrapper(e,!0),Ve.resolve();if(!i.isHandler)return Ve.resolve();const{filterUi:s,handler:l,handlerParams:u}=i;return MG(()=>{if(s){const{created:d,filterParams:h}=s;if(d)return s.promise.then(p=>p?{filter:p,filterParams:h}:void 0);s.refreshed=!0}return Ve.resolve(void 0)},l,u,t,this.state.get(e.getColId())??{model:t},o,n)}setColumnFilterWrapper(e,t){const o=e.getColId();this.allColumnFilters.set(o,t),this.allColumnListeners.set(o,this.addManagedListeners(e,{colDefChanged:()=>this.filterParamsChanged(o)})[0])}areFilterCompsDifferent(e,t){if(!t||!e)return!0;const{componentClass:o}=e,{componentClass:r}=t;return!(o===r||o?.render&&r?.render&&o.render===r.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 o=this.getOrCreateFilterUi(t);return o?new Promise(r=>{o.then(n=>{r(Rm(n))})}):Promise.resolve(null)}processFilterModelUpdateQueue(){this.modelUpdates.forEach(({model:e,source:t})=>this.setModel(e,t)),this.modelUpdates=[],this.columnModelUpdates.forEach(({key:e,model:t,resolve:o})=>{this.setModelForColumn(e,t).then(()=>o())}),this.columnModelUpdates=[]}getModelForColumn(e,t){if(t){const{state:r,model:n}=this,i=e.getColId(),s=r.get(i);return s?s.model??null:qt(n,i)}const o=this.cachedFilter(e);return o?this.getModelFromFilterWrapper(o):null}setModelForColumn(e,t){if(this.beans.dataTypeSvc?.isPendingInference){let o=()=>{};const r=new Promise(n=>{o=n});return this.columnModelUpdates.push({key:e,model:t,resolve:o}),r}return new Promise(o=>{this.setModelForColumnLegacy(e,t).then(r=>o(r))})}getStateForColumn(e){return this.state.get(e)??{model:qt(this.model,e)}}setModelForColumnLegacy(e,t){const o=this.beans.colModel.getColDefCol(e),r=o?this.getOrCreateFilterWrapper(o,!0):null;return r?this.setModelOnFilterWrapper(r,t):Ve.resolve()}setColDefPropsForDataType(e,t,o){const r=e.filter,n=r===!0?this.getDefaultFilterFromDataType(()=>t.baseDataType):r;if(typeof n!="string")return;let i,s;const l=this.beans,{filterParams:u,filterValueGetter:d}=e;n==="agMultiColumnFilter"?{filterParams:i,filterValueGetter:s}=l.multiFilter?.getParamsForDataType(u,d,t,o)??{}:{filterParams:i,filterValueGetter:s}=zG(n,u,d,t,o,l,this.getLocaleTextFunc()),e.filterParams=i,s&&(e.filterValueGetter=s)}setColFilterActive(e,t,o,r){e.filterActive!==t&&(e.filterActive=t,e.dispatchColEvent("filterActiveChanged",o)),e.dispatchColEvent("filterChanged",o,r)}setModelOnFilterWrapper(e,t,o){return new Ve(r=>{if(e.isHandler){const i=e.column,s=i.getColId(),l=this.model[s];if(this.updateStoredModel(s,t),o&&t===l){r();return}this.refreshHandlerAndUi(i,t,"api").then(()=>r());return}const n=fi(e);if(n){n.then(i=>{if(typeof i?.setModel!="function"){pe(65),r();return}(i.setModel(t)||Ve.resolve()).then(()=>r())});return}r()})}updateStoredModel(e,t){xe(t)?this.model[e]=t:delete this.model[e];const o=this.state.get(e),r={model:t,state:o?.state};this.state.set(e,r)}filterModified(e,t){this.getOrCreateFilterUi(e)?.then(o=>{this.eventSvc.dispatchEvent({type:"filterModified",column:e,filterInstance:o,...t})})}filterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"filterUiChanged",column:e,...t})}floatingFilterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"floatingFilterUiChanged",column:e,...t})}updateModel(e,t,o){const r=e.getColId(),n=this.cachedFilter(e),i=()=>n?.filterUi;_F({action:t,filterParams:n?.filterUi?.filterParams,getFilterUi:i,getModel:()=>qt(this.model,r),getState:()=>this.state.get(r),updateState:s=>this.updateState(e,s),updateModel:s=>i()?.filterParams?.onModelChange(s,{...o,fromAction:t}),processModelToApply:n?.isHandler?n.handler.processModelToApply?.bind(n.handler):void 0})}updateAllModels(e,t){const o=[];this.allColumnFilters.forEach((r,n)=>{const i=this.beans.colModel.getColDefCol(n);i&&_F({action:e,filterParams:r.filterUi?.filterParams,getFilterUi:()=>r.filterUi,getModel:()=>qt(this.model,n),getState:()=>this.state.get(n),updateState:s=>this.updateState(i,s),updateModel:s=>{this.updateStoredModel(n,s),this.dispatchLocalEvent({type:"filterAction",column:i,action:e}),o.push(this.refreshHandlerAndUi(i,s,"ui"))},processModelToApply:r?.isHandler?r.handler.processModelToApply?.bind(r.handler):void 0})}),o.length&&Ve.all(o).then(()=>{this.callOnFilterChangedOutsideRenderCycle({source:"columnFilter",additionalEventAttributes:t,columns:[]})})}updateOrRefreshFilterUi(e){const t=e.getColId();AF(()=>this.cachedFilter(e)?.filterUi,()=>qt(this.model,t),()=>this.state.get(t))}updateState(e,t){this.state.set(e.getColId(),t),this.dispatchLocalEvent({type:"filterStateChanged",column:e,state:t})}canApplyAll(){const{state:e,model:t,activeFilterComps:o}=this;for(const n of o)if(n.source==="COLUMN_MENU")return!1;let r=!1;for(const n of e.keys()){const i=e.get(n);if(i.valid===!1)return!1;(i.model??null)!==qt(t,n)&&(r=!0)}return r}hasUnappliedModel(e){const{model:t,state:o}=this;return(o.get(e)?.model??null)!==qt(t,e)}setGlobalButtons(e){this.isGlobalButtons=e,this.dispatchLocalEvent({type:"filterGlobalButtons",isGlobal:e})}shouldKeepStateOnDetach(e,t){if(t==="newFiltersToolPanel")return!0;const o=this.beans.filterPanelSvc;return o?.isActive?!!o.getState(e.getColId()):!1}destroy(){super.destroy(),this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"gridDestroyed")),this.allColumnListeners.clear(),this.state.clear(),this.activeFilterComps.clear()}};function bX(e){return!!e.filterManager?.isAnyFilterPresent()}function CX(e,t="api"){e.filterManager?.onFilterChanged({source:t})}var wX=class extends ue{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:r})=>this.onAdvFilterEnabledChanged(r),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],()=>{this.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",()=>{this.updateAggFiltering(),this.onFilterChanged()}),this.quickFilter&&this.addManagedListeners(this.quickFilter,{quickFilterChanged:()=>this.onFilterChanged({source:"quickFilter"})});const{gos:o}=this;this.alwaysPassFilter=o.get("alwaysPassFilter"),this.addManagedPropertyListener("alwaysPassFilter",()=>{this.alwaysPassFilter=o.get("alwaysPassFilter"),this.onFilterChanged({source:"api"})})}isExternalFilterPresentCallback(){const e=this.gos.getCallback("isExternalFilterPresent");return typeof e=="function"&&e({})}doesExternalFilterPass(e){const t=this.gos.get("doesExternalFilterPass");return typeof t=="function"&&t(e)}setFilterState(e,t,o="api"){this.isAdvFilterEnabled()||this.colFilter?.setState(e,t,o)}setFilterModel(e,t="api",o){if(this.isAdvFilterEnabled()){o||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(){Cm(this.gos)&&this.isAnyFilterPresent()&&this.onFilterChanged()}onFilterChanged(e={}){const{source:t,additionalEventAttributes:o,columns:r=[]}=e;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(e):Ve.resolve()).then(()=>{const n={source:t,type:"filterChanged",columns:r};o&&po(n,o),this.eventSvc.dispatchEvent(n),this.colFilter?.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){return!!this.colFilter?.isSuppressFlashingCellsBecauseFiltering()}isQuickFilterPresent(){return!!this.quickFilter?.isFilterPresent()}updateAggFiltering(){this.aggFiltering=!!Cm(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(){pe(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()}},yX=class extends ue{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(e){this.popupSvc=e.popupSvc}hideActiveMenu(){this.hidePopup?.()}showMenuAfterMouseEvent(e,t,o,r){e&&!e.isColumn||this.showPopup(e,n=>{this.popupSvc?.positionPopupUnderMouseEvent({additionalParams:{column:e},type:o,mouseEvent:t,ePopup:n})},o,t.target,Vo(this.gos),r)}showMenuAfterButtonClick(e,t,o,r){if(e&&!e.isColumn)return;let n=-1,i="left";const s=Vo(this.gos);!s&&this.gos.get("enableRtl")&&(n=1,i="right");const l=s?void 0:4*n,u=s?void 0:4;this.showPopup(e,d=>{this.popupSvc?.positionPopupByComponent({type:o,eventSource:t,ePopup:d,nudgeX:l,nudgeY:u,alignSide:i,keepWithinBounds:!0,position:"under",additionalParams:{column:e}})},o,t,s,r)}showPopup(e,t,o,r,n,i){const s=e?this.createBean(new LG(e,"COLUMN_MENU")):void 0;if(this.activeMenu=s,!s?.hasFilter()||!e){yt(57);return}const l=pi({tag:"div",cls:`ag-menu${n?"":" ag-filter-menu"}`,role:"presentation"});[this.tabListener]=this.addManagedElementListeners(l,{keydown:C=>this.trapFocusWithin(C,l)}),l.appendChild(s?.getGui());let u;const d=()=>s?.afterGuiDetached(),h=qV(this.gos)?r??this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,p=C=>{sR(e,!1,"contextMenu");const S=C instanceof KeyboardEvent;this.tabListener&&(this.tabListener=this.tabListener()),S&&r&&Tn(r)&&tF(r)?.focus({preventScroll:!0}),d(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,o,e),i?.()},g=this.getLocaleTextFunc(),v=n&&o!=="columnFilter"?g("ariaLabelColumnMenu","Column Menu"):g("ariaLabelColumnFilter","Column Filter"),b=this.popupSvc?.addPopup({modal:!0,eChild:l,closeOnEsc:!0,closedCallback:p,positionCallback:()=>t(l),anchorToElement:h,ariaLabel:v});b&&(this.hidePopup=u=b.hideFunc),s.afterInit().then(()=>{t(l),s.afterGuiAttached({container:o,hidePopup:u})}),sR(e,!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,o,e)}trapFocusWithin(e,t){e.key!==te.TAB||e.defaultPrevented||Ca(this.beans,t,!1,e.shiftKey)||(e.preventDefault(),ts(t,e.shiftKey))}dispatchVisibleChangedEvent(e,t,o){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:t,column:o??null,columnGroup:null})}isMenuEnabled(e){return e.isFilterAllowed()&&(e.getColDef().menuTabs??["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}},SX=class extends ue{constructor(){super(...arguments),this.beanName="filterValueSvc"}getValue(e,t,o){if(!t)return;const r=e.getColDef(),{selectableFilter:n,valueSvc:i,formula:s}=this.beans,l=o??n?.getFilterValueGetter(e.getColId())??r.filterValueGetter;if(l)return this.executeFilterValueGetter(l,t.data,e,t,r);const u=i.getValue(e,t);return e.isAllowFormula()&&s?.isFormula(u)?s.resolveValue(e,t):u}executeFilterValueGetter(e,t,o,r,n){const{expressionSvc:i,valueSvc:s}=this.beans,l=je(this.gos,{data:t,node:r,column:o,colDef:n,getValue:s.getValueCallback.bind(s,r)});return typeof e=="function"?e(l):i?.evaluate(e,l)}},Av=class{constructor(){this.customFilterOptions={}}init(e,t){this.filterOptions=e.filterOptions??t,this.mapCustomOptions(),this.defaultOption=this.getDefaultItem(e.defaultOption)}refresh(e,t){const o=e.filterOptions??t;this.filterOptions!==o&&(this.filterOptions=o,this.customFilterOptions={},this.mapCustomOptions()),this.defaultOption=this.getDefaultItem(e.defaultOption)}mapCustomOptions(){const{filterOptions:e}=this;if(e)for(const t of e){if(typeof t=="string")continue;const o=[["displayKey"],["displayName"],["predicate","test"]],r=n=>n.some(i=>t[i]!=null)?!0:(pe(72,{keys:n}),!1);if(!o.every(r)){this.filterOptions=e.filter(n=>n===t)||[];continue}this.customFilterOptions[t.displayKey]=t}}getDefaultItem(e){const{filterOptions:t}=this;if(e)return e;if(t.length>=1){const o=t[0];if(typeof o=="string")return o;if(o.displayKey)return o.displayKey;pe(73)}else pe(74)}getCustomOption(e){return this.customFilterOptions[e]}};function sP(e,t,o){return o==null?e.splice(t):e.splice(t,o)}function aP(e){return e==null||typeof e=="string"&&e.trim().length===0}function xX(e){return e==="AND"||e==="OR"?e:"AND"}function kX(e,t,o){if(e==null)return;const{predicate:r}=e;if(r!=null&&!t.some(n=>n==null))return r(t,o)}function FX(e,t){let o=e.length;return o>t&&(e.splice(t),pe(78),o=t),o}function _v(e,t){const o=t.getCustomOption(e);if(o){const{numberOfInputs:n}=o;return n??1}return e&&["empty","notBlank","blank"].indexOf(e)>=0?0:e==="inRange"?2:1}var RX=class extends WG{constructor(e,t,o){super(e,"simple-filter"),this.mapValuesFromModel=t,this.defaultOptions=o,this.eTypes=[],this.eJoinPanels=[],this.eJoinAnds=[],this.eJoinOrs=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}setParams(e){super.setParams(e);const t=new Av;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=xX(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.createFilterListOptions(),Er(this.getGui(),"tabindex",this.isReadOnly()?"-1":null)}onFloatingFilterChanged(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged("immediately",!0)}setTypeFromFloatingFilter(e){this.eTypes.forEach((t,o)=>{const r=o===0?e:this.optionsFactory.defaultOption;t.setValue(r,!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 o=!e.operator,r=!t.operator;if(!o&&r||o&&!r)return!1;let i;if(o){const s=e,l=t;i=this.areSimpleModelsEqual(s,l)}else{const s=e,l=t;i=s.operator===l.operator&&ic(s.conditions,l.conditions,(u,d)=>this.areSimpleModelsEqual(u,d))}return i}setModelIntoUi(e,t){if(e==null)return this.resetUiToDefaults(t),Ve.resolve();if(e.operator){const r=e;let n=r.conditions;n==null&&(n=[],pe(77));const i=FX(n,this.maxNumConditions),s=this.getNumConditions();if(i<s)this.removeConditionsAndOperators(i);else if(i>s)for(let u=s;u<i;u++)this.createJoinOperatorPanel(),this.createOption();const l=r.operator==="OR";this.eJoinAnds.forEach(u=>u.setValue(!l,!0)),this.eJoinOrs.forEach(u=>u.setValue(l,!0)),n.forEach((u,d)=>{this.eTypes[d].setValue(u.type,!0),this.setConditionIntoUi(u,d)})}else{const r=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(r.type,!0),this.setConditionIntoUi(r,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.updateUiVisibility(),t||this.params.onUiChange(this.getUiChangeEventParams()),Ve.resolve()}setNumConditions(e){let t=e.maxNumConditions??2;t<1&&(pe(79),t=1),this.maxNumConditions=t;let o=e.numAlwaysVisibleConditions??1;o<1&&(pe(80),o=1),o>t&&(pe(81),o=t),this.numAlwaysVisibleConditions=o}createOption(){const e=this.getGui(),t=this.createManagedBean(new L9);this.eTypes.push(t),t.addCss("ag-filter-select"),e.appendChild(t.getGui());const o=this.createEValue();this.eConditionBodies.push(o),e.appendChild(o),this.putOptionsIntoDropdown(t),this.resetType(t);const r=this.getNumConditions()-1;this.forEachPositionInput(r,n=>this.resetInput(n)),this.addChangedListeners(t,r)}createJoinOperatorPanel(){const e=pi({tag:"div",cls:"ag-filter-condition"});this.eJoinPanels.push(e);const t=this.createJoinOperator(this.eJoinAnds,e,"and"),o=this.createJoinOperator(this.eJoinOrs,e,"or");this.getGui().appendChild(e);const r=this.eJoinPanels.length-1,n=this.joinOperatorId++;this.resetJoinOperatorAnd(t,r,n),this.resetJoinOperatorOr(o,r,n),this.isReadOnly()||(t.onValueChange(this.listener),o.onValueChange(this.listener))}createJoinOperator(e,t,o){const r=this.createManagedBean(new F9);e.push(r);const n="ag-filter-condition-operator";return r.addCss(n),r.addCss(`${n}-${o}`),t.appendChild(r.getGui()),r}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 o of t)e.addOption(o);e.setDisabled(t.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){const{displayKey:t}=e,o=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:o?this.getLocaleTextFunc()(o.displayKey,o.displayName):this.translate(t)}}createBodyTemplate(){return null}getAgComponents(){return[]}updateUiVisibility(){const e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)}updateNumConditions(){let e=-1,t=!0;for(let o=0;o<this.getNumConditions();o++)this.isConditionUiComplete(o)?e=o:t=!1;if(this.shouldAddNewConditionAtEnd(t))this.createJoinOperatorPanel(),this.createOption();else{const o=this.lastUiCompletePosition??this.getNumConditions()-2;if(e<o){this.removeConditionsAndOperators(o+1);const r=e+1,n=o-r;n>0&&this.removeConditionsAndOperators(r,n),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e}updateConditionStatusesAndValues(e,t){this.eTypes.forEach((r,n)=>{const i=this.isConditionDisabled(n,e);r.setDisabled(i||this.filterListOptions.length<=1),n===1&&(Ql(this.eJoinPanels[0],i),this.eJoinAnds[0].setDisabled(i),this.eJoinOrs[0].setDisabled(i))}),this.eConditionBodies.forEach((r,n)=>{gt(r,this.isConditionBodyVisible(n))});const o=(t??this.getJoinOperator())==="OR";for(const r of this.eJoinAnds)r.setValue(!o,!0);for(const r of this.eJoinOrs)r.setValue(o,!0);this.forEachInput((r,n,i,s)=>{this.setElementDisplayed(r,n<s),this.setElementDisabled(r,this.isConditionDisabled(i,e))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,t){if(e>=this.getNumConditions())return;const{eTypes:o,eConditionBodies:r,eJoinPanels:n,eJoinAnds:i,eJoinOrs:s}=this;this.removeComponents(o,e,t),this.removeElements(r,e,t),this.removeEValues(e,t);const l=Math.max(e-1,0);this.removeElements(n,l,t),this.removeComponents(i,l,t),this.removeComponents(s,l,t)}removeElements(e,t,o){const r=sP(e,t,o);for(const n of r)ia(n)}removeComponents(e,t,o){const r=sP(e,t,o);for(const n of r)ia(n.getGui()),this.destroyBean(n)}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!e?.suppressFocus){let t;if(!this.isReadOnly()){const o=this.getInputs(0)[0];o instanceof wa&&this.isConditionBodyVisible(0)?t=o.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,o=-1,r=!1;const n=this.getJoinOperator();for(let s=this.getNumConditions()-1;s>=0;s--)if(this.isConditionUiComplete(s))t===-1&&(t=s,o=s);else{const l=s>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(s-1),u=s<t;(l||u)&&(this.removeConditionsAndOperators(s,1),r=!0,u&&o--)}let i=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),i=!0),this.shouldAddNewConditionAtEnd(o===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),i=!0),i&&this.updateConditionStatusesAndValues(o,n),r&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=o}getModelAsString(e){return this.params.getHandler()?.getModelAsString?.(e)??""}resetPlaceholder(){const e=this.getLocaleTextFunc(),{filterPlaceholder:t,eTypes:o}=this;this.forEachInput((r,n,i,s)=>{if(!(r instanceof wa))return;const l=n===0&&s>1?"inRangeStart":n===0?"filterOoo":"inRangeEnd",u=n===0&&s>1?e("ariaFilterFromValue","Filter from value"):n===0?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value"),d=o[i].getValue(),h=BF(this,t,l,d);r.setInputPlaceholder(h),r.setInputAriaLabel(u)})}setElementValue(e,t,o){e instanceof wa&&e.setValue(t!=null?String(t):null,!0)}setElementDisplayed(e,t){Gk(e)&&gt(e.getGui(),t)}setElementDisabled(e,t){Gk(e)&&Ql(e.getGui(),t)}attachElementOnChange(e,t){e instanceof wa&&e.onValueChange(t)}forEachInput(e){this.getConditionTypes().forEach((t,o)=>{this.forEachPositionTypeInput(o,t,e)})}forEachPositionInput(e,t){const o=this.getConditionType(e);this.forEachPositionTypeInput(e,o,t)}forEachPositionTypeInput(e,t,o){const r=_v(t,this.optionsFactory),n=this.getInputs(e);for(let i=0;i<n.length;i++){const s=n[i];s!=null&&o(s,i,e,r)}}isConditionDisabled(e,t){return this.isReadOnly()?!0:e===0?!1:e>t+1}isConditionBodyVisible(e){const t=this.getConditionType(e);return _v(t,this.optionsFactory)>0}isConditionUiComplete(e){return!(e>=this.getNumConditions()||this.getConditionType(e)==="empty"||this.getValues(e).some(o=>o==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,o)=>this.resetJoinOperatorAnd(t,o,this.joinOperatorId+o)),this.eJoinOrs.forEach((t,o)=>this.resetJoinOperatorOr(t,o,this.joinOperatorId+o)),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 o=this.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(o).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,o){this.resetJoinOperator(e,t,this.defaultJoinOperator==="AND",this.translate("andCondition"),o)}resetJoinOperatorOr(e,t,o){this.resetJoinOperator(e,t,this.defaultJoinOperator==="OR",this.translate("orCondition"),o)}resetJoinOperator(e,t,o,r,n){this.updateJoinOperatorDisabled(e.setValue(o,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${n}`).setLabel(r),t)}updateJoinOperatorsDisabled(){const e=(t,o)=>this.updateJoinOperatorDisabled(t,o);this.eJoinAnds.forEach(e),this.eJoinOrs.forEach(e)}updateJoinOperatorDisabled(e,t){e.setDisabled(this.isReadOnly()||t>0)}resetInput(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())}setConditionIntoUi(e,t){const o=this.mapValuesFromModel(e,this.optionsFactory);this.forEachInput((r,n,i)=>{i===t&&this.setElementValue(r,o[n]!=null?o[n]:null)})}setValueFromFloatingFilter(e){this.forEachInput((t,o,r)=>{this.setElementValue(t,o===0&&r===0?e:null,!0)})}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,o=>{this.attachElementOnChange(o,this.listener)}))}hasInvalidInputs(){return!1}positionHasInvalidInputs(e){return!1}isReadOnly(){return!!this.params.readOnly}},PX=class extends ue{constructor(e,t){super(),this.mapValuesFromModel=e,this.defaultOptions=t}init(e){const t=e.filterParams,o=new Av;this.optionsFactory=o,o.init(t,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(o,t)),this.updateParams(e),this.validateModel(e)}refresh(e){if(e.source==="colDef"){const t=e.filterParams,o=this.optionsFactory;o.refresh(t,this.defaultOptions),this.filterModelFormatter.updateParams({optionsFactory:o,filterParams:t}),this.updateParams(e)}this.validateModel(e)}updateParams(e){this.params=e}doesFilterPass(e){const t=e.model;if(t==null)return!0;const{operator:o}=t,r=[];if(o){const s=t;r.push(...s.conditions??[])}else r.push(t);const n=o&&o==="OR"?"some":"every",i=this.params.getValue(e.node);return r[n](s=>this.individualConditionPasses(e,s,i))}getModelAsString(e,t){return this.filterModelFormatter.getModelAsString(e,t)??""}validateModel(e){const{model:t,filterParams:{filterOptions:o,maxNumConditions:r}}=e;if(t==null)return;let i=VF(t)?t.conditions:[t];const s=o?.map(h=>typeof h=="string"?h:h.displayKey)??this.defaultOptions;if(!(!i||i.every(h=>s.find(p=>p===h.type)!==void 0))){this.params={...e,model:null},e.onModelChange(null);return}let u=!1;const d=this.filterType;if((i&&!i.every(h=>h.filterType===d)||t.filterType!==d)&&(i=i.map(h=>({...h,filterType:d})),u=!0),typeof r=="number"&&i&&i.length>r&&(i=i.slice(0,r),u=!0),u){const h=i.length>1?{...t,filterType:d,conditions:i}:{...i[0],filterType:d};this.params={...e,model:h},e.onModelChange(h)}}individualConditionPasses(e,t,o){const r=this.optionsFactory,n=this.mapValuesFromModel(t,r),i=r.getCustomOption(t.type),s=kX(i,n,o);return s??(o==null?this.evaluateNullValue(t.type):this.evaluateNonNullValue(n,o,t,e))}},EX={contains:"Contains",notContains:"NotContains",equals:"TextEquals",notEqual:"TextNotEqual",startsWith:"StartsWith",endsWith:"EndsWith",inRange:"InRange"},TX=class extends ue{constructor(e,t,o){super(),this.optionsFactory=e,this.filterParams=t,this.valueFormatter=o}getModelAsString(e,t){const o=this.getLocaleTextFunc(),r=t==="filterToolPanel";if(!e)return r?rn(this,"filterSummaryInactive"):null;if(e.operator!=null){const i=e,l=(i.conditions??[]).map(d=>this.getModelAsString(d,t)),u=i.operator==="AND"?"andCondition":"orCondition";return l.join(` ${rn(this,u)} `)}else{if(e.type==="blank"||e.type==="notBlank")return r?rn(this,e.type==="blank"?"filterSummaryBlank":"filterSummaryNotBlank"):o(e.type,e.type);{const i=e,s=this.optionsFactory.getCustomOption(i.type),{displayKey:l,displayName:u,numberOfInputs:d}=s||{};return l&&u&&d===0?o(l,u):this.conditionToString(i,r,i.type==="inRange"||d===2,l,u)}}}updateParams(e){const{optionsFactory:t,filterParams:o}=e;this.optionsFactory=t,this.filterParams=o}conditionForToolPanel(e,t,o,r,n,i){let s;const l=this.getTypeKey(e);return l&&(s=rn(this,l)),n&&i&&(s=this.getLocaleTextFunc()(n,i)),s!=null?t?`${s} ${rn(this,"filterSummaryInRangeValues",[o(),r()])}`:`${s} ${o()}`:null}getTypeKey(e){const t=this.filterTypeKeys[e];return t?`filterSummary${t}`:null}formatValue(e){const t=this.valueFormatter;return t?t(e??null)??"":String(e)}},DX=class extends ko{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(e){if(!e){this.lastType=this.optionsFactory.defaultOption;return}const t=e.operator;let o;t?o=e.conditions[0]:o=e,this.lastType=o.type}canWeEditAfterModelFromParentFilter(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;const o=e;return this.isTypeEditable(o.type)}init(e){this.params=e;const t=this.gos.get("enableFilterHandlers");if(this.reactive=t,this.setParams(e),t){const o=e;this.onModelUpdated(o.model)}}setParams(e){const t=new Av;this.optionsFactory=t,t.init(e.filterParams,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(t,e.filterParams)),this.setSimpleParams(e,!1)}setSimpleParams(e,t=!0){const o=this.optionsFactory.defaultOption;t||(this.lastType=o),this.readOnly=!!e.filterParams.readOnly;const r=this.isTypeEditable(o);this.setEditable(r)}refresh(e){this.params=e;const t=e,o=this.reactive;if((!o||t.source==="colDef")&&this.updateParams(e),o){const{source:r,model:n}=t;if(r==="dataChanged"||r==="ui")return;this.onModelUpdated(n)}}updateParams(e){const t=this.optionsFactory;t.refresh(e.filterParams,this.defaultOptions),this.setSimpleParams(e),this.filterModelFormatter.updateParams({optionsFactory:t,filterParams:e.filterParams})}onParentModelChanged(e,t){t?.afterFloatingFilter||t?.afterDataChange||this.onModelUpdated(e)}hasSingleInput(e){const t=this.optionsFactory.getCustomOption(e)?.numberOfInputs;return t==null||t==1}isTypeEditable(e){const t=["inRange","empty","blank","notBlank"];return!!e&&!this.readOnly&&this.hasSingleInput(e)&&t.indexOf(e)<0}getAriaLabel(e){return`${this.beans.colNames.getDisplayNameForColumn(e,"header",!0)} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}},MX=class extends ue{constructor(e){super(),this.params=e,this.eInput=Me,this.onValueChanged=()=>{}}setupGui(e){this.eInput=this.createManagedBean(new Vm(this.params?.config));const t=this.eInput.getGui();e.appendChild(t);const o=r=>this.onValueChanged(r);this.addManagedListeners(t,{input:o,keydown:o})}setEditable(e){this.eInput.setDisabled(!e)}getValue(){return this.eInput.getValue()}setValue(e,t){this.eInput.setValue(e,t)}setValueChangedListener(e){this.onValueChanged=e}setParams({ariaLabel:e,autoComplete:t,placeholder:o}){const{eInput:r}=this;r.setInputAriaLabel(e),t!==void 0&&r.setAutoComplete(t),r.toggleCss("ag-floating-filter-search-icon",!!o),r.setInputPlaceholder(o)}};function Iv(e){const t=e?.trim();return t===""?e:t}function lP(e,t){const{filter:o,filterTo:r,type:n}=e||{};return[o||null,r||null].slice(0,_v(n,t))}var AX={tag:"div",ref:"eFloatingFilterInputContainer",cls:"ag-floating-filter-input",role:"presentation"},_X=class extends DX{constructor(){super(...arguments),this.eFloatingFilterInputContainer=Me,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(AX)}onModelUpdated(e){this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.inputSvc.setValue(this.filterModelFormatter.getModelAsString(e))}setParams(e){this.setupFloatingFilterInputService(e),super.setParams(e),this.setTextInputParams(e)}setupFloatingFilterInputService(e){this.inputSvc=this.createFloatingFilterInputService(e),this.inputSvc.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(e){const{inputSvc:t,defaultDebounceMs:o,readOnly:r}=this,{filterPlaceholder:n,column:i,browserAutoComplete:s,filterParams:l}=e,u=this.lastType??this.optionsFactory.defaultOption,d=e.filterParams.filterPlaceholder,h=n===!0?BF(this,d,"filterOoo",u):n||void 0;if(t.setParams({ariaLabel:this.getAriaLabel(i),autoComplete:s??!1,placeholder:h}),this.applyActive=fh(l),!r){const p=IF(l,o);t.setValueChangedListener(An(this,this.syncUpWithParentFilter.bind(this),p))}}updateParams(e){super.updateParams(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){const{inputSvc:t}=this,o=t.getValue();En(this.eFloatingFilterInputContainer),this.destroyBean(t),this.setupFloatingFilterInputService(e),t.setValue(o,!0)}syncUpWithParentFilter(e){const t=e.key===te.ENTER,o=this.reactive;if(o&&this.params.onUiChange(),this.applyActive&&!t)return;const{inputSvc:r,params:n,lastType:i}=this;let s=r.getValue();if(n.filterParams.trimInput&&(s=Iv(s),r.setValue(s,!0)),o){const l=n,u=l.model,d=this.convertValue(s),h=d==null?null:{...u??{filterType:this.filterType,type:i??this.optionsFactory.defaultOption},filter:d};l.onModelChange(h,{afterFloatingFilter:!0})}else n.parentFilterInstance(l=>{l?.onFloatingFilterChanged(i||null,s||null)})}convertValue(e){return e||null}setEditable(e){this.inputSvc.setEditable(e)}},Bv=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],IX=class extends RX{constructor(){super("textFilter",lP,Bv),this.filterType="text",this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}createCondition(e){const t=this.getConditionType(e),o={filterType:this.filterType,type:t},r=this.getValues(e);return r.length>0&&(o.filter=r[0]),r.length>1&&(o.filterTo=r[1]),o}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){const{eValuesFrom:t,eValuesTo:o}=this;return e>=t.length?[null,null]:[t[e],o[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(o,r,n,i)=>{r<i&&t.push(si(o.getValue()))}),t}createEValue(){const e=pi({tag:"div",cls:"ag-filter-body",role:"presentation"}),{eValuesFrom:t,eValuesTo:o}=this;return this.createFromToElement(e,t,"from"),this.createFromToElement(e,o,"to"),e}createFromToElement(e,t,o){const r=this.createManagedBean(new Vm);r.addCss(`ag-filter-${o}`),r.addCss("ag-filter-filter"),t.push(r),e.appendChild(r.getGui())}removeEValues(e,t){const o=i=>this.removeComponents(i,e,t),{eValuesFrom:r,eValuesTo:n}=this;o(r),o(n)}},cP=class extends TX{constructor(){super(...arguments),this.filterTypeKeys=EX}conditionToString(e,t,o,r,n){const{filter:i,filterTo:s,type:l}=e;if(t){const u=h=>()=>rn(this,"filterSummaryTextQuote",[h]),d=this.conditionForToolPanel(l,o,u(i),u(s),r,n);if(d!=null)return d}return o?`${i}-${s}`:i!=null?`${i}`:`${l}`}},BX=({filterOption:e,value:t,filterText:o})=>{if(o==null)return!1;switch(e){case"contains":return t.includes(o);case"notContains":return!t.includes(o);case"equals":return t===o;case"notEqual":return t!=o;case"startsWith":return t.indexOf(o)===0;case"endsWith":{const r=t.lastIndexOf(o);return r>=0&&r===t.length-o.length}default:return!1}},OX=e=>e,LX=e=>e==null?null:e.toString().toLowerCase(),NX=class extends PX{constructor(){super(lP,Bv),this.filterType="text",this.FilterModelFormatterClass=cP}updateParams(e){super.updateParams(e);const t=e.filterParams;this.matcher=t.textMatcher??BX,this.formatter=t.textFormatter??(t.caseSensitive?OX:LX)}evaluateNullValue(e){return e?["notEqual","notContains","blank"].indexOf(e)>=0:!1}evaluateNonNullValue(e,t,o,r){const n=e.map(g=>this.formatter(g))||[],i=this.formatter(t),{api:s,colDef:l,column:u,context:d,filterParams:{textFormatter:h}}=this.params;if(o.type==="blank")return aP(t);if(o.type==="notBlank")return!aP(t);const p={api:s,colDef:l,column:u,context:d,node:r.node,data:r.data,filterOption:o.type,value:i,textFormatter:h};return n.some(g=>this.matcher({...p,filterText:g}))}processModelToApply(e){if(e&&this.params.filterParams.trimInput){const t=o=>{const r={...o},{filter:n,filterTo:i}=o;return n&&(r.filter=Iv(n)??null),i&&(r.filterTo=Iv(i)??null),r};return VF(e)?{...e,conditions:e.conditions.map(t)}:t(e)}return e}},zX=class extends _X{constructor(){super(...arguments),this.FilterModelFormatterClass=cP,this.filterType="text",this.defaultOptions=Bv}createFloatingFilterInputService(){return this.createManagedBean(new MX)}},HX={moduleName:"ClientSideRowModelFilter",version:ze,rowModels:["clientSide"],beans:[QK]},VX={moduleName:"FilterCore",version:ze,beans:[wX],apiFunctions:{isAnyFilterPresent:bX,onFilterChanged:CX},css:[nX],dependsOn:[HX]},GX={moduleName:"FilterValue",version:ze,beans:[SX]},jX={moduleName:"ColumnFilter",version:ze,beans:[vX,yX],dynamicBeans:{headerFilterCellCtrl:JK},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:iX,getColumnFilterInstance:sX,destroyFilter:aX,setFilterModel:lX,getFilterModel:cX,getColumnFilterModel:uX,setColumnFilterModel:dX,showColumnFilter:hX,hideColumnFilter:fX,getColumnFilterHandler:pX,doFilterAction:gX},dependsOn:[VX,Mv,GX,oX]},uP={moduleName:"TextFilter",version:ze,dependsOn:[jX],userComponents:{agTextColumnFilter:{classImp:IX,params:{useForm:!0}},agTextColumnFloatingFilter:zX},dynamicBeans:{agTextColumnFilterHandler:NX}},WX=".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}}",Ov=(e,t,o)=>{const{editModelSvc:r}=e,n=r?.getCellValidationModel()?.getCellValidation(t)?.errorMessages,i=r?.getRowValidationModel().getRowValidation(t)?.errorMessages,s=n||i;return s?.length?s.join(o("tooltipValidationErrorSeparator",". ")):void 0},qX=class extends ue{constructor(){super(...arguments),this.beanName="tooltipSvc"}setupHeaderTooltip(e,t,o,r){e&&t.destroyBean(e);const n=this.gos,i=Tv(n),{column:s,eGui:l}=t,u=s.getColDef();!r&&i&&!u.headerComponent&&(r=Gd(()=>l.querySelector(".ag-header-cell-text")));const d="header",p=this.beans.colNames.getDisplayNameForColumn(s,"header",!0),g=o??p,v={getGui:()=>l,getLocation:()=>d,getTooltipValue:()=>o??u?.headerTooltipValueGetter?.(je(n,{location:d,colDef:u,column:s,value:g,valueFormatted:p}))??u?.headerTooltip,shouldDisplayTooltip:r,getAdditionalParams:()=>({column:s,colDef:s.getColDef()})};let b=this.createTooltipFeature(v);return b&&(b=t.createBean(b),t.setRefreshFunction("tooltip",()=>b.refreshTooltip())),b}setupHeaderGroupTooltip(e,t,o,r){e&&t.destroyBean(e);const n=this.gos,i=Tv(n),{column:s,eGui:l}=t,u=s.getColGroupDef();!r&&i&&!u?.headerGroupComponent&&(r=Gd(()=>l.querySelector(".ag-header-group-text")));const d="headerGroup",p=this.beans.colNames.getDisplayNameForColumnGroup(s,"header"),g=o??p,v={getGui:()=>l,getLocation:()=>d,getTooltipValue:()=>o??u?.headerTooltipValueGetter?.(je(n,{location:d,colDef:u,column:s,value:g,valueFormatted:p}))??u?.headerTooltip,shouldDisplayTooltip:r,getAdditionalParams:()=>{const C={column:s};return u&&(C.colDef=u),C}},b=this.createTooltipFeature(v);return b&&t.createBean(b)}enableCellTooltipFeature(e,t,o){const{beans:r}=this,{gos:n,editSvc:i}=r,{column:s,rowNode:l}=e;let u="cell";const d=()=>{const v=!!!i?.isEditing(e)&&Ov(r,e,this.getLocaleTextFunc());if(v)return u="cellEditor",v;u="cell";const b=s.getColDef(),C=l.data;if(b.tooltipField&&xe(C))return vc(C,b.tooltipField,s.isTooltipFieldContainsDots());const S=b.tooltipValueGetter;return S?S(je(n,{location:"cell",colDef:s.getColDef(),column:s,rowIndex:e.cellPosition.rowIndex,node:l,data:l.data,value:e.value,valueFormatted:e.valueFormatted})):null},h=Tv(n);o||(h&&!e.isCellRenderer()?o=()=>{const g=!!i?.isEditing(e);if(!g&&Ov(r,e,this.getLocaleTextFunc()))return!0;if(!s.isTooltipEnabled())return!1;const C=Gd(()=>{const S=e.eGui;return S.children.length===0?S:S.querySelector(".ag-cell-value")});return!g&&C()}:o=()=>!i?.isEditing(e));const p={getGui:()=>e.eGui,getLocation:()=>u,getTooltipValue:t!=null?()=>t:d,shouldDisplayTooltip:o,getAdditionalParams:()=>({column:s,colDef:s.getColDef(),rowIndex:e.cellPosition.rowIndex,node:l,data:l.data,valueFormatted:e.valueFormatted})};return this.createTooltipFeature(p,r)}setupFullWidthRowTooltip(e,t,o,r){const n={getGui:()=>t.getFullWidthElement(),getTooltipValue:()=>o,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:r},i=this.beans,s=i.context;e&&t.destroyBean(e,s);const l=this.createTooltipFeature(n,i);if(l)return t.createBean(l,s)}setupFormulaTooltip(e){const{beans:t}=this,{context:o,formula:r}=t;if(!this.beans.formula?.active||!e.column.isAllowFormula())return;const n={getGui:()=>e.eGui,getTooltipValue:()=>{const s=r?.getFormulaError(e.column,e.rowNode);return s?s.message:void 0},getLocation:()=>"cellFormula",shouldDisplayTooltip:()=>!!r?.getFormulaError(e.column,e.rowNode)},i=this.createTooltipFeature(n,t);if(i)return e.createBean(i,o)}setupCellEditorTooltip(e,t){const{beans:o}=this,{context:r}=o,n=t.getValidationElement?.(!0)||!t.isPopup?.()&&e.eGui;if(!n)return;const i={getGui:()=>n,getTooltipValue:()=>Ov(o,e,this.getLocaleTextFunc()),getLocation:()=>"cellEditor",shouldDisplayTooltip:()=>{const{editModelSvc:l}=o,u=l?.getRowValidationModel()?.getRowValidationMap(),d=l?.getCellValidationModel()?.getCellValidationMap(),h=!!u&&u.size>0,p=!!d&&d.size>0;return h||p}},s=this.createTooltipFeature(i,o);if(s)return e.createBean(s,r)}initCol(e){const{colDef:t}=e;e.tooltipEnabled=xe(t.tooltipField)||xe(t.tooltipValueGetter)||xe(t.tooltipComponent)}createTooltipFeature(e,t){return this.beans.registry.createDynamicBean("tooltipFeature",!1,e,t)}},UX=class extends mG{createTooltipComp(e,t){e9(this.beans.userCompFactory,e)?.newAgStackInstance().then(t)}setEventHandlers(e){[this.onColumnMovedEventCallback]=this.addManagedEventListeners({columnMoved:e})}clearEventHandlers(){this.onColumnMovedEventCallback?.(),this.onColumnMovedEventCallback=void 0}},$X={moduleName:"Tooltip",version:ze,beans:[qX],dynamicBeans:{tooltipFeature:yF,highlightTooltipFeature:vG,tooltipStateManager:UX},userComponents:{agTooltipComponent:wG},dependsOn:[Mv],css:[WX]},KX=".ag-cell-inline-editing{border:var(--ag-cell-editing-border)!important;border-radius:var(--ag-border-radius);box-shadow:var(--ag-cell-editing-shadow);padding:0;z-index:1;.ag-cell-edit-wrapper,.ag-cell-editor,.ag-cell-wrapper,:where(.ag-cell-editor) .ag-input-field-input,:where(.ag-cell-editor) .ag-wrapper{height:100%;line-height:normal;min-height:100%;width:100%}&.ag-cell-editing-error{border-color:var(--ag-invalid-color)!important}}:where(.ag-popup-editor) .ag-large-text{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0}.ag-large-text-input{display:block;height:auto;padding:var(--ag-cell-horizontal-padding)}:where(.ag-rtl .ag-large-text-input) textarea{resize:none}:where(.ag-ltr) .ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-checkbox-edit{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-row.ag-row-editing-invalid .ag-cell-inline-editing){opacity:.8}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}",XX={tag:"div",cls:"ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit",children:[{tag:"ag-checkbox",ref:"eEditor",role:"presentation"}]},ZX=class extends lR{constructor(){super(XX,[lF]),this.eEditor=Me}initialiseEditor(e){const t=e.value??void 0,o=this.eEditor;o.setValue(t),o.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(t),this.addManagedListeners(o,{fieldValueChanged:n=>this.setAriaLabel(n.selected)})}getValue(){return this.eEditor.getValue()}focusIn(){this.eEditor.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){const t=this.getLocaleTextFunc(),o=$x(t,e),r=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eEditor.setInputAriaLabel(`${r} (${o})`)}getValidationElement(e){return e?this.params.eGridCell:this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{getValidationErrors:t}=e,o=this.getValue();return t?t({value:o,internalErrors:null,cellEditorParams:e}):null}},YX=class extends lR{constructor(e){super(),this.cellEditorInput=e,this.eEditor=Me}initialiseEditor(e){const{cellEditorInput:t}=this;this.setTemplate({tag:"div",cls:"ag-cell-edit-wrapper",children:[t.getTemplate()]},t.getAgComponents());const{eEditor:o}=this,{cellStartedEdit:r,eventKey:n,suppressPreventDefault:i}=e;o.getInputElement().setAttribute("title",""),t.init(o,e);let s,l=!0;r?(this.focusAfterAttached=!0,n===te.BACKSPACE||n===te.DELETE?s="":n&&n.length===1?i?l=!1:s=n:(s=t.getStartValue(),n!==te.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,s=t.getStartValue()),l&&s!=null&&o.setStartValue(s),this.addGuiEventListener("keydown",u=>{const{key:d}=u;(d===te.PAGE_UP||d===te.PAGE_DOWN)&&u.preventDefault()})}afterGuiAttached(){const e=this.getLocaleTextFunc(),t=this.eEditor;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;uc()||t.getFocusableElement().focus();const o=t.getInputElement();this.highlightAllOnFocus?o.select():this.cellEditorInput.setCaret?.()}focusIn(){const{eEditor:e}=this,t=e.getFocusableElement(),o=e.getInputElement();t.focus(),o.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){return this.cellEditorInput.getValidationErrors()}},QX={tag:"ag-input-number-field",ref:"eEditor",cls:"ag-cell-editor"},JX=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return QX}getAgComponents(){return[P9]}init(e,t){this.eEditor=e,this.params=t;const{max:o,min:r,precision:n,step:i}=t;o!=null&&e.setMax(o),r!=null&&e.setMin(r),n!=null&&e.setPrecision(n),i!=null&&e.setStep(i);const s=e.getInputElement();t.preventStepping?e.addManagedElementListeners(s,{keydown:this.preventStepping}):t.showStepperButtons&&s.classList.add("ag-number-field-input-stepper")}getValidationErrors(){const{params:e}=this,{min:t,max:o,getValidationErrors:r}=e,i=this.eEditor.getInputElement().valueAsNumber,s=this.getLocaleTextFunc();let l=[];return typeof i=="number"&&(t!=null&&i<t&&l.push(s("minValueValidation",`Must be greater than or equal to ${t}.`,[String(t)])),o!=null&&i>o&&l.push(s("maxValueValidation",`Must be less than or equal to ${o}.`,[String(o)]))),l.length||(l=null),r?r({value:i,cellEditorParams:e,internalErrors:l}):l}preventStepping(e){(e.key===te.UP||e.key===te.DOWN)&&e.preventDefault()}getValue(){const{eEditor:e,params:t}=this,o=e.getValue();if(!xe(o)&&!xe(t.value))return t.value;let r=t.parseValue(o);if(r==null)return r;if(typeof r=="string"){if(r==="")return null;r=Number(r)}return isNaN(r)?null:r}getStartValue(){return this.params.value}setCaret(){uc()&&this.eEditor.getInputElement().focus({preventScroll:!0})}},eZ=class extends YX{constructor(){super(new JX(()=>this.getLocaleTextFunc()))}};function tZ(e,t,o="auto"){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureColumnVisible(t,o),"ensureVisible")}function oZ(e,t,o){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureIndexVisible(t,o),"ensureVisible")}function rZ(e,t){return e.editModelSvc?.getEditRowDataValue(t,{checkSiblings:!0})}function nZ(e){const t=e.editModelSvc?.getEditMap(),o=[];return t?.forEach((r,n)=>{const{rowIndex:i,rowPinned:s}=n;r.forEach((l,u)=>{const{editorValue:d,pendingValue:h,sourceValue:p,state:g}=l,v=an(l);let b=d??h;b===rr&&(b=void 0);const C={newValue:b,oldValue:p,state:g,column:u,colId:u.getColId(),colKey:u.getColId(),rowIndex:i,rowPinned:s};(g==="editing"||g==="changed"&&v)&&o.push(C)})}),o}function iZ(e,t=!1){const{editSvc:o}=e;if(o?.isBatchEditing()){if(t)for(const r of e.editModelSvc?.getEditPositions()??[])r.state==="editing"&&o.revertSingleCellEdit(r);else vi(e,{persist:!0});Ma(e,void 0,{cancel:t})}else o?.stopEditing(void 0,{cancel:t,source:"edit",forceStop:!t,forceCancel:t})}function sZ(e,t){const o=bt(e,t);return e.editSvc?.isEditing(o)??!1}function aZ(e,t){const{key:o,colKey:r,rowIndex:n,rowPinned:i}=t,{editSvc:s,colModel:l}=e,u=l.getCol(r);if(!u){pe(12,{colKey:r});return}const h=rs(e,{rowIndex:n,rowPinned:i||null});if(!h){pe(290,{rowIndex:n,rowPinned:i});return}if(!s?.isCellEditable({rowNode:h,column:u},"api"))return;i==null&&oZ(e,n),tZ(e,r),s?.startEditing({rowNode:h,column:u},{event:o?new KeyboardEvent("keydown",{key:o}):void 0,source:"api"})}function lZ(e){return e.editSvc?.validateEdit()||null}var cZ={tag:"div",cls:"ag-popup-editor",attrs:{tabindex:"-1"}},uZ=class extends Pm{constructor(e){super(cZ),this.params=e}postConstruct(){Ji(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){const e=this.getGui(),t=this.params,o=r=>{ov(this.gos,r,t.node,t.column,!0)||t.onKeyDown(r)};this.addManagedElementListeners(e,{keydown:o})}};function dZ(e,{column:t},o,r,n="ui"){if(o instanceof KeyboardEvent&&(o.key===te.TAB||o.key===te.ENTER||o.key===te.F2||o.key===te.BACKSPACE&&r))return!0;if(o?.shiftKey&&e.rangeSvc?.getCellRanges().length!=0)return!1;const s=t?.getColDef(),l=hZ(e.gos,s),u=o?.type;return u==="click"&&o?.detail===1&&l===1||u==="dblclick"&&o?.detail===2&&l===2?!0:n==="api"?r??!1:!1}function hZ(e,t){return e.get("suppressClickEdit")===!0?0:e.get("singleClickEdit")===!0||t?.singleClickEdit?1:2}function Lv(e,{rowNode:t,column:o},r="ui"){const n=o.getColDef().editable,i=e.editModelSvc;return o.isColumnFunc(t,n)||!!i&&i.hasEdits({rowNode:t,column:o},{withOpenEditor:!0})}function fZ(e,t,o="ui"){const r=Lv(e,t,o);return r===!0||o==="ui"?r:e.colModel.getCols().some(i=>Lv(e,{rowNode:t.rowNode,column:i},o))}var Ih=(e,t=!1)=>{if(e!==void 0)return an(e)||t&&e.state==="editing"};function dP(e,t,o=!1){return Ih(e.editModelSvc?.getEdit(t),o)}var hP=(e,t,o)=>{if(e)for(let r=0,n=e.length;r<n;++r){const i=e[r];if(i.data&&(Ih(t?.getEdit({rowNode:i,column:o}))||Ih(t?.getEdit({rowNode:i.pinnedSibling,column:o})))||hP(i.childrenAfterGroup,t,o))return!0}};function fP(e,t){const{column:o,rowNode:r}=t;return e.gos.get("groupTotalRow")&&!r?.footer?!1:hP(r?.childrenAfterGroup,e.editModelSvc,o)}function pP(e,{rowNode:t,column:o}){if(t=t.pinnedSibling,!!t)return Ih(e.editModelSvc?.getEdit({rowNode:t,column:o}))}var pZ=class extends ue{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}setComp(e){this.cellComp=e,this.applyCellStyles()}applyCellStyles(){const{cellCtrl:e,editSvc:t,beans:o}=this;if(t?.isBatchEditing()&&t.isEditing()){const n=dP(o,e)||fP(o,e)||pP(o,e);this.applyBatchingStyle(n)}else this.applyBatchingStyle(!1);const r=!!this.editModelSvc?.getCellValidationModel().hasCellValidation(this.cellCtrl);this.cellComp.toggleCss("ag-cell-editing-error",r)}applyBatchingStyle(e){this.cellComp.toggleCss("ag-cell-editing",e??!1),this.cellComp.toggleCss("ag-cell-batch-edit",(e&&this.editSvc?.isBatchEditing())??!1)}},gZ=class extends ue{constructor(e,t){super(),this.rowCtrl=e,this.beans=t,this.gos=t.gos,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}applyRowStyles(){const{rowCtrl:e,editModelSvc:t,beans:o}=this;let r=e.rowNode,n=t?.getEditRow(r);const i=this.editModelSvc?.getRowValidationModel().hasRowValidation({rowNode:r});if(!n&&r.pinnedSibling&&(r=r.pinnedSibling,n=t?.getEditRow(r)),n){const s=Array.from(n.keys()).some(l=>{const u={rowNode:r,column:l};return dP(o,u,!0)||fP(o,u)||pP(o,u)});this.applyStyle(i,s);return}this.applyStyle(i)}applyStyle(e=!1,t=!1){const o=this.editSvc?.isBatchEditing()??!1,r=this.gos.get("editType")==="fullRow";this.rowCtrl?.forEachGui(void 0,({rowComp:n})=>{n.toggleCss("ag-row-editing",r&&t),n.toggleCss("ag-row-batch-edit",r&&t&&o),n.toggleCss("ag-row-inline-editing",t),n.toggleCss("ag-row-not-inline-editing",!t),n.toggleCss("ag-row-editing-invalid",r&&t&&e)})}},mZ=({rowModel:e,pinnedRowModel:t,editModelSvc:o},r)=>{const n=new Set;e.forEachNode(i=>r.has(i)&&n.add(i)),t?.forEachPinnedRow("top",i=>r.has(i)&&n.add(i)),t?.forEachPinnedRow("bottom",i=>r.has(i)&&n.add(i));for(const i of r)n.has(i)||o.removeEdits({rowNode:i});return n},vZ=({editModelSvc:e},t,o)=>{for(const r of t)e?.getEditRow(r)?.forEach((n,i)=>!o.has(i)&&e.removeEdits({rowNode:r,column:i}))},bZ=e=>()=>{const t=new Set(e.colModel.getCols()),o=e.editModelSvc.getEditMap(!0),r=new Set(o.keys());vZ(e,mZ(e,r),t)},CZ=new Set(["undo","redo","paste","bulk","rangeSvc"]),wZ=new Set(["ui","api"]),gP={paste:"api",rangeSvc:"api",fillHandle:"api",cellClear:"api",bulk:"api"},yZ=new Set(Object.keys(gP)),SZ=new Set(["paste","rangeSvc","cellClear","redo","undo"]),Bh={cancel:!0,source:"api"},xZ={cancel:!1,source:"api"},Sc={checkSiblings:!0},xc={force:!0,suppressFlash:!0},kZ=class extends ue{constructor(){super(...arguments),this.beanName="editSvc",this.batch=!1,this.stopping=!1,this.committing=!1}postConstruct(){const{beans:e}=this;this.model=e.editModelSvc,this.valueSvc=e.valueSvc,this.rangeSvc=e.rangeSvc,this.addManagedPropertyListener("editType",({currentValue:r})=>{this.stopEditing(void 0,Bh),this.createStrategy(r)});const t=bZ(e),o=()=>{const r=this.model.getCellValidationModel().getCellValidationMap().size>0,n=this.model.getRowValidationModel().getRowValidationMap().size>0;return r||n?this.stopEditing(void 0,Bh):this.isEditing()&&(this.batch?Ma(e,this.model.getEditPositions()):this.stopEditing(void 0,xZ)),!1};this.addManagedEventListeners({columnPinned:t,columnVisible:t,columnRowGroupChanged:t,rowExpansionStateChanged:t,pinnedRowsChanged:t,displayedRowsChanged:t,sortChanged:o,filterChanged:o,cellFocused:this.onCellFocused.bind(this)})}isBatchEditing(){return this.batch}setBatchEditing(e){e?(this.batch=!0,this.stopEditing(void 0,Bh)):(this.stopEditing(void 0,Bh),this.batch=!1)}createStrategy(e){const{beans:t,gos:o,strategy:r}=this,n=mP(o,e);if(r){if(r.beanName===n)return r;this.destroyStrategy()}return this.strategy=this.createOptionalManagedBean(t.registry.createDynamicBean(n,!0))}destroyStrategy(){this.strategy&&(this.strategy.destroy(),this.strategy=this.destroyBean(this.strategy))}shouldStartEditing(e,t,o,r="ui"){const n=dZ(this.beans,e,t,o,r);return n&&(this.strategy??(this.strategy=this.createStrategy())),n}shouldStopEditing(e,t,o="ui"){return this.strategy?.shouldStop(e,t,o)??null}shouldCancelEditing(e,t,o="ui"){return this.strategy?.shouldCancel(e,t,o)??null}validateEdit(){return x$(this.beans)}isEditing(e,t){return this.model.hasEdits(e,t??Sc)}isRowEditing(e,t){return(e&&this.model.hasRowEdits(e,t))??!1}startEditing(e,t){const{startedEdit:o=!0,event:r=null,source:n="ui",ignoreEventKey:i=!1,silent:s}=t;if(this.strategy??(this.strategy=this.createStrategy()),!this.isCellEditable(e,"api"))return;const l=bt(this.beans,e);if(l&&!l.comp){l.onCompAttachedFuncs.push(()=>this.startEditing(e,t));return}const u=this.shouldStartEditing(e,r,o,n);if(u===!1&&n!=="api"){this.isEditing(e)&&this.stopEditing();return}!this.batch&&this.shouldStopEditing(e,void 0,n)&&!t.continueEditing&&this.stopEditing(void 0,{source:n}),u&&this.batch&&this.dispatchBatchEvent("batchEditingStarted",new Map),this.strategy.start({position:e,event:r,source:n,ignoreEventKey:i,startedEdit:o,silent:s})}stopEditing(e,t){const o=this.prepareStopContext(e,t);if(!o)return!1;this.stopping=!0;let r=!1,{edits:n}=o;try{const i=this.processStopRequest(o);return r||(r=i.res),n=i.edits,this.finishStopEditing({...o,edits:n,params:t,position:e,res:r}),r}finally{this.stopping=!1}}prepareStopContext(e,t){const{event:o,cancel:r,source:n="ui",forceCancel:i,forceStop:s}=t||{};if(yZ.has(n)&&this.batch)return this.bulkRefresh(e),null;const l=this.committing?gP[n]:n;if(!(this.committing||this.isEditing(e)||this.batch&&this.model.hasEdits(e,Sc))||!this.strategy||this.stopping)return null;const d=bt(this.beans,e);d&&(d.onEditorAttachedFuncs=[]);const h=!r&&(!!this.shouldStopEditing(e,o,l)||(this.committing||n==="paste")&&!this.batch)||(s??!1),p=r&&!!this.shouldCancelEditing(e,o,l)||(i??!1);return{cancel:r,cellCtrl:d??void 0,edits:this.model.getEditMap(!0),event:o,forceCancel:i,forceStop:s,position:e,source:n,treatAsSource:l,willCancel:p,willStop:h}}processStopRequest(e){const{event:t,position:o,willCancel:r,willStop:n}=e;return n||r?this.handleStopOrCancel(e):this.shouldHandleMidBatchKey(t,o)?{res:!1,edits:this.handleMidBatchKey(t,o,e)}:(vi(this.beans,{persist:!0}),this.batch&&this.strategy?.cleanupEditors(o),{res:!1,edits:this.model.getEditMap()})}handleStopOrCancel(e){const{beans:t,model:o}=this,{cancel:r,edits:n,event:i,source:s,willCancel:l,willStop:u}=e;vi(t,{persist:!0,isCancelling:l||r,isStopping:u});const d=o.getEditMap(),h=this.processEdits(d,r,s);this.strategy?.stop(r,i),this.clearValidationIfNoOpenEditors();for(const p of h)o.clearEditValue(p);this.bulkRefresh(void 0,n);for(const p of o.getEditPositions(d)){const g=bt(t,p),v=an(p);g?.refreshCell({force:!0,suppressFlash:!v})}return{res:u,edits:d}}shouldHandleMidBatchKey(e,t){return e instanceof KeyboardEvent&&this.batch&&!!this.strategy?.midBatchInputsAllowed(t)&&this.isEditing(t,{withOpenEditor:!0})}handleMidBatchKey(e,t,o){const{beans:r,model:n}=this,{cellCtrl:i,edits:s}=o,{key:l}=e,u=l===te.ENTER,d=l===te.ESCAPE,h=l===te.TAB;return u||h||d?(u||h?vi(r,{persist:!0}):d&&this.revertSingleCellEdit(i),this.batch?this.strategy?.cleanupEditors():Ma(r,n.getEditPositions(),{event:e,cancel:d}),e.preventDefault(),this.bulkRefresh(t,s,{suppressFlash:!0}),n.getEditMap()):s}finishStopEditing({cellCtrl:e,edits:t,params:o,position:r,res:n,willCancel:i,willStop:s}){const l=this.beans;n&&r&&this.model.removeEdits(r),this.navigateAfterEdit(o,e?.cellPosition),Dh(l),this.clearValidationIfNoOpenEditors(),this.bulkRefresh();const{rowRenderer:u,formula:d}=l;i&&u.refreshRows({rowNodes:Array.from(t.keys())}),this.batch&&(d?d.refreshFormulas(!0):u.refreshRows({suppressFlash:!0,force:!0}),n&&s&&this.dispatchBatchEvent("batchEditingStopped",t))}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:o,suppressNavigateAfterEdit:r}=e;if(!(o instanceof KeyboardEvent)||r)return;const{key:i,shiftKey:s}=o,l=this.gos.get("enterNavigatesVerticallyAfterEdit");if(i!==te.ENTER||!l)return;const u=s?te.UP:te.DOWN;this.beans.navigation?.navigateToNextCell(null,u,t,!1)}processEdits(e,t=!1,o){const r=Array.from(e.keys()),n=this.model.getCellValidationModel().getCellValidationMap().size>0||this.model.getRowValidationModel().getRowValidationMap().size>0,i=[];for(const s of r){const l=e.get(s);for(const u of l.keys()){const d=l.get(u),h={rowNode:s,column:u},p=an(d);!t&&p&&!n&&(this.setNodeDataValue(s,u,d.pendingValue,void 0,o)||i.push(h))}}return i}setNodeDataValue(e,t,o,r,n="edit"){const{beans:i}=this,s=bt(i,{rowNode:e,column:t}),l=wZ.has(n)?"edit":n;s&&(s.suppressRefreshCell=!0),this.committing=!0;const u=e.setDataValue(t,o,l);return this.committing=!1,s&&(s.suppressRefreshCell=!1),r&&s?.refreshCell(xc),u}setEditMap(e,t){this.strategy??(this.strategy=this.createStrategy()),this.strategy?.setEditMap(e,t),this.bulkRefresh();let o=xc;t?.forceRefreshOfEditCellsOnly&&(o={...FZ(e),...xc}),this.beans.rowRenderer.refreshCells(o)}dispatchEditValuesChanged({rowNode:e,column:t},o={}){if(!e||!t||!o)return;const{pendingValue:r,sourceValue:n}=o,{rowIndex:i,rowPinned:s,data:l}=e;this.beans.eventSvc.dispatchEvent({type:"cellEditValuesChanged",node:e,rowIndex:i,rowPinned:s,column:t,source:"api",data:l,newValue:r,oldValue:n,value:r,colDef:t.getColDef()})}bulkRefresh(e={},t,o={}){const{beans:r,gos:n}=this,{editModelSvc:i,rowModel:s}=r;Qi(n)&&(e.rowNode&&e.column?this.refCell(e,this.model.getEdit(e),o):t&&i?.getEditMap(!1)?.forEach((l,u)=>{for(const d of l.keys())this.refCell({rowNode:u,column:d},l.get(d),o)}))}refCell({rowNode:e,column:t},o,r={}){const{beans:n,gos:i}=this,s=new Set([e]),l=new Set,u=e.pinnedSibling;u&&s.add(u);const d=e.sibling;d&&l.add(d);let h=e.parent;for(;h;)h.sibling?.footer&&i.get("groupTotalRow")||!h.parent&&h.sibling&&i.get("grandTotalRow")?l.add(h.sibling):l.add(h),h=h.parent;for(const p of s)this.dispatchEditValuesChanged({rowNode:p,column:t},o);for(const p of s)bt(n,{rowNode:p,column:t})?.refreshCell(r);for(const p of l)bt(n,{rowNode:p,column:t})?.refreshCell(r)}stopAllEditing(e=!1,t="ui"){this.isEditing()&&this.stopEditing(void 0,{cancel:e,source:t})}isCellEditable(e,t="ui"){const{rowNode:o}=e,{gos:r,beans:n}=this;if(o.group){if(r.get("treeData")){if(!o.data&&!r.get("enableGroupEdit"))return!1}else if(!r.get("enableGroupEdit"))return!1}const i=mP(r)==="fullRow"?fZ(n,e,t):Lv(n,e,t);return i&&(this.strategy??(this.strategy=this.createStrategy())),i}cellEditingInvalidCommitBlocks(){return this.gos.get("invalidEditValueMode")==="block"}checkNavWithValidation(e,t,o=!0){if(this.hasValidationErrors(e)){const r=bt(this.beans,e);return this.cellEditingInvalidCommitBlocks()?(t?.preventDefault?.(),o&&(!r?.hasBrowserFocus()&&r?.focusCell(),r?.comp?.getCellEditor()?.focusIn?.()),"block-stop"):(r&&this.revertSingleCellEdit(r),"revert-continue")}return"continue"}revertSingleCellEdit(e,t=!1){const o=bt(this.beans,e);o?.comp?.getCellEditor()&&(Ma(this.beans,[e],{silent:!0}),this.model.clearEditValue(e),Ta(this.beans,e,{silent:!0}),ss(this.beans),o?.refreshCell(xc),t&&(o?.focusCell(),o?.comp?.getCellEditor()?.focusIn?.()))}hasValidationErrors(e){ss(this.beans);const t=bt(this.beans,e);t&&(t.refreshCell(xc),t.rowCtrl.rowEditStyleFeature?.applyRowStyles());let o=!1;return e?.rowNode?(o||(o=this.model.getRowValidationModel().hasRowValidation({rowNode:e.rowNode})),e.column&&(o||(o=this.model.getCellValidationModel().hasCellValidation({rowNode:e.rowNode,column:e.column})))):(o||(o=this.model.getCellValidationModel().getCellValidationMap().size>0),o||(o=this.model.getRowValidationModel().getRowValidationMap().size>0)),o}moveToNextCell(e,t,o,r="ui"){let n;const i=this.isEditing(),s=i&&this.checkNavWithValidation(void 0,o)==="block-stop";return e instanceof Cc&&i&&(n=this.strategy?.moveToNextEditingCell(e,t,o,r,s)),n===null||(n=n||!!this.beans.focusSvc.focusedHeader,n===!1&&!s&&this.stopEditing()),n}getCellDataValue({rowNode:e,column:t},o=!0){if(!e||!t)return;let r=this.model.getEdit({rowNode:e,column:t});const n=e.pinnedSibling;if(n){const s=this.model.getEdit({rowNode:n,column:t});s&&(r=s)}const i=o?r?.editorValue??r?.pendingValue:r?.pendingValue;return i===rr||!r?r?.sourceValue??this.valueSvc.getValue(t,e,!1,"api"):i}addStopEditingWhenGridLosesFocus(e){v$(this,this.beans,e)}createPopupEditorWrapper(e){return new uZ(e)}setDataValue(e,t,o){try{if((!this.isEditing()||this.committing)&&!SZ.has(o))return;const{beans:r}=this;this.strategy??(this.strategy=this.createStrategy());const n=this.batch?"ui":this.committing?o??"api":"api";if(!o||CZ.has(o))return Mh(r,e,t,o,void 0,{persist:!0}),this.batch?(this.cleanupEditors(),Dh(r),this.bulkRefresh(),!0):this.setNodeDataValue(e.rowNode,e.column,t,!0,o);const i=this.model.getEdit(e);if(i){if(i.pendingValue===t)return!1;if(i.sourceValue!==t)return Mh(r,e,t,o,void 0,{persist:!0}),this.stopEditing(e,{source:n,suppressNavigateAfterEdit:!0}),!0;if(i.sourceValue===t)return r.editModelSvc?.removeEdits(e),this.dispatchEditValuesChanged(e,{...i,pendingValue:t}),!0}return Mh(r,e,t,o,void 0,{persist:!0}),this.stopEditing(e,{source:n,suppressNavigateAfterEdit:!0}),!0}finally{this.committing=!1}}handleColDefChanged(e){w$(this.beans,e)}destroy(){this.model.clear(),this.destroyStrategy(),super.destroy()}prepDetailsDuringBatch(e,t){const{model:o}=this;if(!this.batch||!o.hasRowEdits(e.rowNode,Sc))return;const{rowNode:n}=e,{compDetails:i,valueToDisplay:s}=t;if(i){const{params:l}=i;return l.data=o.getEditRowDataValue(n,Sc),{compDetails:i}}return{valueToDisplay:s}}cleanupEditors(){this.strategy?.cleanupEditors()}dispatchCellEvent(e,t,o,r){this.strategy?.dispatchCellEvent(e,t,o,r)}dispatchBatchEvent(e,t){this.eventSvc.dispatchEvent(this.createBatchEditEvent(e,t))}createBatchEditEvent(e,t){return je(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},o){if(!o||o.length===0)return;const{beans:r,rangeSvc:n,valueSvc:i}=this,{formula:s}=r;vi(r,{persist:!0});const l=this.model.getEditMap(!0);let u=l.get(e)?.get(t)?.pendingValue;this.batch||this.eventSvc.dispatchEvent({type:"bulkEditingStarted"});const d=s?.isFormula(u)??!1;o.forEach(p=>{const g=p.columns.some(v=>v?.isAllowFormula());if(n?.forEachRowInRange(p,v=>{const b=rs(r,v);if(b===void 0)return;const C=l.get(b)??new Map;let S=u;for(const k of p.columns){if(!k)continue;const F=!!d&&k.isAllowFormula();if(this.isCellEditable({rowNode:b,column:k},"api")){const R=i.getValue(k,b,!0,"api");let P=i.parseValue(k,b??null,S,R);Number.isNaN(P)&&(P=null),C.set(k,{editorValue:void 0,pendingValue:P,sourceValue:R,state:"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}F&&(S=s?.updateFormulaByOffset({value:S,columnDelta:1}))}C.size>0&&l.set(b,C),d&&g&&(u=s?.updateFormulaByOffset({value:u,rowDelta:1}))}),this.setEditMap(l),this.batch){this.cleanupEditors(),Dh(r),this.bulkRefresh();return}this.committing=!0,this.stopEditing(void 0,{source:"bulk"}),this.committing=!1,this.eventSvc.dispatchEvent({type:"bulkEditingStopped",changes:this.toEventChangeList(l)})}),this.bulkRefresh();const h=bt(r,{rowNode:e,column:t});h&&h.focusCell(!0)}createCellStyleFeature(e){return new pZ(e,this.beans)}createRowStyleFeature(e){return new gZ(e,this.beans)}setEditingCells(e,t){const{beans:o}=this,{colModel:r,valueSvc:n}=o,i=new Map;for(let{colId:s,column:l,colKey:u,rowIndex:d,rowPinned:h,newValue:p,state:g}of e){const v=s?r.getCol(s):u?r.getCol(u):l;if(!v)continue;const b=rs(o,{rowIndex:d,rowPinned:h});if(!b)continue;const C=n.getValue(v,b,!0,"api");if(!t?.forceRefreshOfEditCellsOnly&&!an({pendingValue:p,sourceValue:C})&&g!=="editing")continue;let S=i.get(b);S||(S=new Map,i.set(b,S)),p===void 0&&(p=rr),S.set(v,{editorValue:void 0,pendingValue:p,sourceValue:C,state:g??"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}this.setEditMap(i,t)}onCellFocused(e){const t=bt(this.beans,e);if(!t||!this.isEditing(t,Sc))return;const o=this.model.getEdit(t);if(!o||!an(o))return;const n=this.getLocaleTextFunc()("ariaPendingChange","Pending Change");this.beans.ariaAnnounce?.announceValue(n,"pendingChange")}allowedFocusTargetOnValidation(e){return bt(this.beans,e)}};function FZ(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 mP(e,t){return t??e.get("editType")??"singleCell"}var vP=class extends ue{postConstruct(){this.model=this.beans.editModelSvc,this.editSvc=this.beans.editSvc,this.addManagedEventListeners({cellFocused:this.onCellFocusChanged?.bind(this),cellFocusCleared:this.onCellFocusChanged?.bind(this)})}clearEdits(e){this.model.clearEditValue(e)}onCellFocusChanged(e){let t;const o=e.previousParams,{editSvc:r,beans:n}=this,i=e.type==="cellFocused"?e.sourceEvent:null;o&&(t=bt(n,o));const{gos:s,editModelSvc:l}=n,u=e.type==="cellFocusCleared";if(r.isEditing(void 0,{withOpenEditor:!0})){const{column:d,rowIndex:h,rowPinned:p}=e,g={column:d,rowNode:rs(n,{rowIndex:h,rowPinned:p})},v=s.get("invalidEditValueMode")==="block";if(v)return;const b=!v,C=!!l?.getCellValidationModel().hasCellValidation(g),S=b&&C;!(o||u)||r.stopEditing(void 0,{cancel:S,source:u&&b?"api":void 0,event:i})||(r.isBatchEditing()?r.cleanupEditors():r.stopEditing(void 0,{source:"api"}))}t?.refreshCell({suppressFlash:!0,force:!0})}stop(e,t){const o=this.model.getEditPositions(),r={all:[],pass:[],fail:[]};for(const n of o){if(r.all.push(n),(this.model.getCellValidationModel().getCellValidation(n)?.errorMessages?.length??0)>0){r.fail.push(n);continue}r.pass.push(n)}if(e)for(const n of o)bc(this.beans,n,{cancel:e}),this.model.stop(n);else{const n=this.processValidationResults(r);if(n.destroy.length>0)for(const i of n.destroy)bc(this.beans,i,{event:t,cancel:e}),this.model.stop(i);if(n.keep.length>0)for(const i of n.keep){const s=bt(this.beans,i);this.editSvc?.cellEditingInvalidCommitBlocks()||s&&this.editSvc.revertSingleCellEdit(s)}}return!0}cleanupEditors({rowNode:e}={},t){vi(this.beans,{persist:!1});const o=this.model.getEditPositions(),r=[];if(e)for(const n of o)n.rowNode!==e&&r.push(n);else for(const n of o)r.push(n);Ma(this.beans,r),Dh(this.beans,t)}setFocusOutOnEditor(e){e.comp?.getCellEditor()?.focusOut?.()}setFocusInOnEditor(e){const t=e.comp,o=t?.getCellEditor();if(o?.focusIn)o.focusIn();else{const r=this.beans.gos.get("editType")==="fullRow";e.focusCell(r),e.onEditorAttachedFuncs.push(()=>t?.getCellEditor()?.focusIn?.())}}setupEditors(e){const{event:t,ignoreEventKey:o=!1,startedEdit:r,position:n,cells:i=this.model.getEditPositions()}=e,s=t instanceof KeyboardEvent&&!o&&t.key||void 0;C$(this.beans,i,n,s,t,r)}dispatchCellEvent(e,t,o,r){const n=bt(this.beans,e);n&&this.eventSvc.dispatchEvent({...n.createEvent(t??null,o),...r})}dispatchRowEvent(e,t,o){if(o)return;const r=Th(this.beans,e);r&&this.eventSvc.dispatchEvent(r.createRowEvent(t))}shouldStop(e,t,o="ui"){const r=this.editSvc.isBatchEditing();return r&&o==="api"?!0:r&&(o==="ui"||o==="edit")?!1:o==="api"?!0:t instanceof KeyboardEvent&&!r?t.key===te.ENTER:null}shouldCancel(e,t,o="ui"){const r=this.editSvc.isBatchEditing();return!!(t instanceof KeyboardEvent&&!r&&t.key===te.ESCAPE||r&&o==="api"||o==="api")}setEditMap(e,t){t?.update||this.editSvc.stopEditing(void 0,{cancel:!0,source:"api"});const o=[];if(e.forEach((r,n)=>{r.forEach((i,s)=>{i.state==="editing"&&o.push({...i,rowNode:n,column:s})})}),t?.update&&(e=new Map([...this.model.getEditMap(),...e])),this.model?.setEditMap(e),o.length>0){const r=o.at(-1),n=r.pendingValue===rr?void 0:r.pendingValue;this.start({position:r,event:new KeyboardEvent("keydown",{key:n}),source:"api"});const i=bt(this.beans,r);i&&this.setFocusInOnEditor(i)}}destroy(){this.cleanupEditors(),super.destroy()}},RZ=class extends vP{constructor(){super(...arguments),this.beanName="fullRow",this.startedRows=[]}shouldStop(e,t,o="ui"){const{rowNode:r}=e||{};if(!Th(this.beans,{rowNode:this.rowNode}))return!0;const i=super.shouldStop({rowNode:this.rowNode},t,o);return i!==null?i:this.rowNode?r!==this.rowNode:!1}midBatchInputsAllowed({rowNode:e}){return e?this.model.hasEdits({rowNode:e}):!1}clearEdits(e){this.model.clearEditValue(e)}start(e){const{position:t,silent:o,startedEdit:r,event:n,ignoreEventKey:i}=e,{rowNode:s}=t;this.rowNode!==s&&super.cleanupEditors(t);const l=this.beans.visibleCols.allCols,u=[],d=[];for(const h of l)h.isCellEditable(s)&&d.push(h);if(d.length!=0){this.dispatchRowEvent({rowNode:s},"rowEditingStarted",o),this.startedRows.push(s);for(const h of d){const p={rowNode:s,column:h};u.push(p),this.model.hasEdits(p)||this.model.start(p)}this.rowNode=s,this.setupEditors({cells:u,position:t,startedEdit:r,event:n,ignoreEventKey:i})}}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stop(e,t){const{rowNode:o}=this;if(o&&!this.model.hasRowEdits(o))return!1;const r=[];if(e||this.model.getEditMap().forEach((n,i)=>{if(!(!n||n.size===0)){for(const s of n.values())if(an(s)){r.push(i);break}}}),ss(this.beans),!e&&this.editSvc?.checkNavWithValidation({rowNode:o})==="block-stop")return!1;super.stop(e,t);for(const n of r)this.dispatchRowEvent({rowNode:n},"rowValueChanged");return this.cleanupEditors({rowNode:o},!0),this.rowNode=void 0,!0}onCellFocusChanged(e){const{rowIndex:t}=e,o=e.previousParams;if(o?.rowIndex===t||e.sourceEvent instanceof KeyboardEvent)return;const r=bt(this.beans,o);this.gos.get("invalidEditValueMode")==="block"&&r&&(this.model.getCellValidationModel().getCellValidation(r)||this.model.getRowValidationModel().getRowValidation(r))||super.onCellFocusChanged(e)}cleanupEditors(e={},t){super.cleanupEditors(e,t);for(const o of this.startedRows)this.dispatchRowEvent({rowNode:o},"rowEditingStopped"),this.destroyEditorsForRow(o);this.startedRows.length=0}destroyEditorsForRow(e){const t=Th(this.beans,{rowNode:e});if(t)for(const o of t.getAllCellCtrls())o.comp?.getCellEditor()&&bc(this.beans,o,void 0,o)}moveToNextEditingCell(e,t,o,r="ui",n=!1){const i=e.cellPosition;let s;this.model.suspend(!0);try{s=this.beans.navigation?.findNextCellToFocusOn(i,{backwards:t,startEditing:!0,skipToNextEditableCell:!1})}finally{this.model.suspend(!1)}if(s===!1)return null;if(s==null)return!1;const l=s.cellPosition,u=e.isCellEditable(),d=s.isCellEditable(),h=l&&i.rowIndex===l.rowIndex&&i.rowPinned===l.rowPinned;u&&this.setFocusOutOnEditor(e),this.restoreEditors();const p=this.gos.get("suppressStartEditOnTab");return d&&!n?p?s.focusCell(!0,o):(s.comp?.getCellEditor()||Ta(this.beans,s,{event:o,cellStartedEdit:!0}),this.setFocusInOnEditor(s),s.focusCell(!1,o)):(d&&n&&this.setFocusInOnEditor(s),s.focusCell(!0,o)),!h&&!n&&(this.editSvc?.stopEditing({rowNode:e.rowNode},{event:o}),this.cleanupEditors(s,!0),p?s.focusCell(!0,o):this.editSvc.startEditing(s,{startedEdit:!0,event:o,source:r,ignoreEventKey:!0})),e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}restoreEditors(){this.model.getEditMap().forEach((e,t)=>e.forEach(({state:o},r)=>{if(o!=="editing")return;const n=bt(this.beans,{rowNode:t,column:r});n&&!n.comp?.getCellEditor()&&Ta(this.beans,n,{silent:!0})}))}destroy(){super.destroy(),this.rowNode=void 0,this.startedRows.length=0}},PZ=class extends vP{constructor(){super(...arguments),this.beanName="singleCell"}shouldStop(e,t,o="ui"){const r=super.shouldStop(e,t,o);if(r!==null)return r;const{rowNode:n,column:i}=e||{};return(!this.rowNode||!this.column)&&n&&i?null:this.rowNode!==n||this.column!==i}midBatchInputsAllowed(e){return this.model.hasEdits(e)}start(e){const{position:t,startedEdit:o,event:r,ignoreEventKey:n}=e;(this.rowNode!==t.rowNode||this.column!==t.column)&&super.cleanupEditors(),this.rowNode=t.rowNode,this.column=t.column,this.model.start(t),this.setupEditors({cells:[t],position:t,startedEdit:o,event:r,ignoreEventKey:n})}dispatchRowEvent(e,t,o){}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stop(e,t){return super.stop(e,t),this.rowNode=void 0,this.column=void 0,!0}onCellFocusChanged(e){const{colModel:t,editSvc:o}=this.beans,{rowIndex:r,column:n,rowPinned:i}=e,s=rs(this.beans,{rowIndex:r,rowPinned:i}),l=Sv(n),u=t.getCol(l),d=e.previousParams;if(d){const h=Sv(d.column);if(d?.rowIndex===r&&h===l&&d?.rowPinned===i)return}o?.isEditing({rowNode:s,column:u},{withOpenEditor:!0})&&e.type==="cellFocused"||super.onCellFocusChanged(e)}moveToNextEditingCell(e,t,o,r="ui",n=!1){const i=this.beans.focusSvc.getFocusedCell();i&&(e=gc(this.beans,i)??e);const s=e.cellPosition;let l;const u=this.beans.gos.get("editType")==="fullRow";u&&this.model.suspend(!0),n||(e.eGui.focus(),this.editSvc?.stopEditing(e,{source:this.editSvc?.isBatchEditing()?"ui":"api",event:o}));try{l=this.beans.navigation?.findNextCellToFocusOn(s,{backwards:t,startEditing:!0})}finally{u&&this.model.suspend(!1)}if(l===!1)return null;if(l==null)return!1;const d=l.cellPosition,h=e.isCellEditable(),p=l.isCellEditable(),g=d&&s.rowIndex===d.rowIndex&&s.rowPinned===d.rowPinned;h&&!n&&this.setFocusOutOnEditor(e);const v=this.gos.get("suppressStartEditOnTab");if(!g&&!n&&(super.cleanupEditors(l,!0),v?l.focusCell(!0,o):this.editSvc.startEditing(l,{startedEdit:!0,event:o,source:r,ignoreEventKey:!0})),p&&!n){if(l.focusCell(!1,o),v)l.focusCell(!0,o);else if(!l.comp?.getCellEditor()){const b=this.editSvc?.isEditing(l,{withOpenEditor:!0});Ta(this.beans,l,{event:o,cellStartedEdit:!0,silent:b}),this.setFocusInOnEditor(l),this.cleanupEditors(l)}}else p&&n&&this.setFocusInOnEditor(l),l.focusCell(!0,o);return e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}destroy(){super.destroy(),this.rowNode=void 0,this.column=void 0}},bP={moduleName:"EditCore",version:ze,beans:[m$,kZ],apiFunctions:{getEditingCells:nZ,getEditRowValues:rZ,getCellEditorInstances:b$,startEditingCell:aZ,stopEditing:iZ,isEditing:sZ,validateEdit:lZ},dynamicBeans:{singleCell:PZ,fullRow:RZ},dependsOn:[Mv,$X],css:[KX]},CP={moduleName:"NumberEditor",version:ze,userComponents:{agNumberCellEditor:{classImp:eZ}},dependsOn:[bP]},wP={moduleName:"CheckboxEditor",version:ze,userComponents:{agCheckboxCellEditor:ZX},dependsOn:[bP]},EZ=class extends ue{constructor(e){super(),this.rootNode=e,this.nextId=0,this.allNodesMap={},yP(e)}getRowNode(e){return this.allNodesMap[e]}setNewRowData(e){this.dispatchRowDataUpdateStarted(e),this.destroyAllNodes();const t=yP(this.rootNode),o=new Array(e.length);t._leafs=o;let r=0;const n=this.beans.groupStage?.getNestedDataGetter(),i=n?new Set:null,s=(l,u)=>{const d=l.level+1;for(let h=0,p=u.length;h<p;++h){const g=u[h];if(!g)continue;const v=this.createRowNode(g,d);if(v.sourceRowIndex=r,o[r++]=v,i&&!i.has(g)){i.add(g),v.treeParent=l;const b=n(g);b&&s(v,b)}}};s(t,e),o.length=r}destroyAllNodes(){const{selectionSvc:e,pinnedRowModel:t,groupStage:o}=this.beans;e?.reset("rowDataChanged"),t?.isManual()&&t.reset(),o?.clearNonLeafs();const r=this.rootNode._leafs;if(r)for(let n=0,i=r.length;n<i;++n)r[n]._destroy(!1);this.allNodesMap=Object.create(null),this.nextId=0}setImmutableRowData(e,t){const{rootNode:o,gos:r}=this;this.dispatchRowDataUpdateStarted(t);const n=wm(r),i=e.changedRowNodes,{adds:s,updates:l}=i,u=new Set,d=[],h=this.beans.groupStage?.getNestedDataGetter();let p=r.get("suppressMaintainUnsortedOrder")?void 0:!1,g=-1,v=!1;const b=(k,F)=>{if(!p&&p!==void 0){const R=k.sourceRowIndex;p=R<=g,g=R}k.data!==F&&(k.updateData(F),s.has(k)||l.add(k),!k.selectable&&k.isSelected()&&d.push(k))},C=(k,F,R)=>{for(let P=0,T=F.length;P<T;++P){const D=F[P];if(!D)continue;let M=this.getRowNode(n({data:D,level:R}));if(M?(b(M,D),v||(v=!!h&&M.treeParent!==k)):(M=this.createRowNode(D,R),s.add(M)),!h||u.has(M)){u.add(M);continue}u.add(M),M.treeParent=k;const O=h(D);O&&C(M,O,R+1)}};C(o,t,0);const S=this.deleteUnusedNodes(u,i,d,!!e.animate)||p||s.size>0;if(S){const k=o._leafs??(o._leafs=[]);p===void 0?_Z(k,u,i):AZ(k,u)&&(i.reordered=!0)}(S||v||l.size)&&(e.rowDataUpdated=!0,this.deselect(d))}deleteUnusedNodes(e,{removals:t},o,r){const n=this.rootNode._leafs;for(let i=0,s=n.length;i<s;i++){const l=n[i];e.has(l)||this.destroyNode(l,r)&&(t.push(l),l.isSelected()&&o.push(l))}return t.length>0}updateRowData(e,t,o){if(this.dispatchRowDataUpdateStarted(e.add),this.beans.groupStage?.getNestedDataGetter())return pe(268),{remove:[],update:[],add:[]};const r=[],n=wm(this.gos),i=this.executeRemove(n,e,t,r,o),s=this.executeUpdate(n,e,t,r),l=this.executeAdd(e,t);return this.deselect(r),{remove:i,update:s,add:l}}executeRemove(e,{remove:t},{adds:o,updates:r,removals:n},i,s){const l=this.rootNode._leafs,u=l?.length,d=t?.length;if(!d||!u)return[];let h=0,p=u,g=0;const v=new Array(d);for(let b=0;b<d;++b){const C=this.lookupNode(e,t[b]);if(!C)continue;const S=C.sourceRowIndex;S<p&&(p=S),S>g&&(g=S),v[h++]=C,this.destroyNode(C,s)&&(C.isSelected()&&i.push(C),o.delete(C)||(r.delete(C),n.push(C)))}return v.length=h,h&&MZ(l,p,g),v}executeUpdate(e,{update:t},{adds:o,updates:r},n){const i=t?.length;if(!i)return[];const s=new Array(i);let l=0;for(let u=0;u<i;u++){const d=t[u],h=this.lookupNode(e,d);h&&(h.updateData(d),!h.selectable&&h.isSelected()&&n.push(h),s[l++]=h,o.has(h)||r.add(h))}return s.length=l,s}executeAdd(e,t){var o;const r=(o=this.rootNode)._leafs??(o._leafs=[]),n=r.length,i=e.add,s=i?.length;if(!s)return[];const l=n+s;let u=this.sanitizeAddIndex(r,e.addIndex);if(u<n){for(let p=n-1,g=l-1;p>=u;--p){const v=r[p];v.sourceRowIndex=g,r[g--]=v}t.reordered=!0}r.length=l;const d=new Array(s),h=t.adds;for(let p=0;p<s;p++){const g=this.createRowNode(i[p],0);h.add(g),g.sourceRowIndex=u,r[u]=g,d[p]=g,u++}return d}dispatchRowDataUpdateStarted(e){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:e?.length?e[0]:null})}deselect(e){const t="rowDataChanged",o=this.beans.selectionSvc;e.length&&o?.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),o?.updateGroupsFromChildrenSelections?.(t),e.length&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:t,selectedNodes:o?.getSelectedNodes()??null,serverSideState:null})}createRowNode(e,t){const o=new TF(this.beans);o.parent=this.rootNode,o.level=t,o.group=!1,o.expanded=!1,o.setDataAndId(e,String(this.nextId++));const r=o.id,n=this.allNodesMap;return n[r]&&pe(2,{nodeId:r}),n[r]=o,o}destroyNode(e,t){if(!e._destroy(t))return!1;const o=e.id,r=this.allNodesMap;r[o]===e&&delete r[o];const n=e.pinnedSibling;return n&&this.beans.pinnedRowModel?.pinRow(n,null),!0}lookupNode(e,t){if(!e)return DZ(this.rootNode._leafs,t);const o=e({data:t,level:0}),r=this.allNodesMap[o];return r||(yt(4,{id:o}),null)}sanitizeAddIndex(e,t){const o=e.length;if(typeof t!="number"||t<0||t>=o||Number.isNaN(t))return o;t=Math.ceil(t);const r=this.gos;return t>0&&r.get("treeData")&&r.get("getDataPath")&&(t=TZ(e,t)),t}},TZ=(e,t)=>{for(let o=0,r=e.length;o<r;o++)if(e[o]?.rowIndex==t-1)return o+1;return t},yP=e=>{e.group=!0,e.level=-1,e.id="ROOT_NODE_ID",e._leafs?.length!==0&&(e._leafs=[]);const t=[],o=[],r=[],n=[];e.childrenAfterGroup=t,e.childrenAfterSort=o,e.childrenAfterAggFilter=r,e.childrenAfterFilter=n;const i=e.sibling;return i&&(i.childrenAfterGroup=t,i.childrenAfterSort=o,i.childrenAfterAggFilter=r,i.childrenAfterFilter=n,i.childrenMapped=e.childrenMapped),e.updateHasChildren(),e},DZ=(e,t)=>{if(e)for(let o=0,r=e.length;o<r;o++){const n=e[o];if(n.data===t)return n}return yt(5,{data:t}),null},MZ=(e,t,o)=>{t=Math.max(0,t);for(let r=t,n=e.length;r<n;++r){const i=e[r];r<=o&&i.destroyed||(i.sourceRowIndex=t,e[t++]=i)}e.length=t},AZ=(e,t)=>{const o=t.size;e.length=o;let r=0,n=!1,i=!1;for(const s of t){const l=s.sourceRowIndex;l===r?i||(i=n):(l>=0?i=!0:n=!0,s.sourceRowIndex=r,e[r]=s),++r}return i},_Z=(e,t,{adds:o})=>{const r=e.length,n=t.size;n>r&&(e.length=n);let i=0;for(let s=0;s<r;++s){const l=e[s];l.destroyed||(i!==s&&(l.sourceRowIndex=i,e[i]=l),++i)}for(const s of o)s.sourceRowIndex<0&&(s.sourceRowIndex=i,e[i++]=s);e.length=i},IZ=4,BZ=(e,t,o,r,n)=>{const i=t.childrenAfterSort,s=t.childrenAfterAggFilter;if(!s)return i&&i.length>0?i:[];const l=s.length;if(l<=1)return i?.length===l&&(l===0||i[0]===s[0])?i:s.slice();if(!i||l<=IZ)return e.doFullSortInPlace(s.slice(),n);const u=new Map,{updates:d,adds:h}=o,p=[];for(let v=0;v<l;++v){const b=s[v];d.has(b)||h.has(b)||!r.canSkip(b)?(u.set(b,~v),p.push(b)):u.set(b,v)}const g=p.length;return g===0?l===i.length?i:LZ(i,u,p):(p.sort((v,b)=>e.compareRowNodes(n,v,b)||~u.get(v)-~u.get(b)),g===l?p:OZ(e,n,p,i,u,l))},OZ=(e,t,o,r,n,i)=>{const s=new Array(i);let l=0,u=o[l],d,h=-1,p=0,g=0;const v=o.length,b=r.length;for(;;){if(h<0){if(p>=b)break;if(d=r[p++],h=n.get(d)??-1,h<0)continue}if((e.compareRowNodes(t,u,d)||~n.get(u)-h)<0){if(s[g++]=u,++l>=v)break;u=o[l]}else s[g++]=d,h=-1}for(;l<v;)s[g++]=o[l++];if(h<0)return s;for(s[g++]=d;p<b;){const C=r[p++];n.get(C)>=0&&(s[g++]=C)}return s},LZ=(e,t,o)=>{let r=0;o.length=t.size;for(let n=0,i=e.length;n<i;++n){const s=e[n];t.has(s)&&(o[r++]=s)}return o.length=r,o},SP=e=>{const t=e.childrenAfterSort,o=e.sibling;if(o&&(o.childrenAfterSort=t),!!t)for(let r=0,n=t.length-1;r<=n;r++){const i=t[r],s=r===0,l=r===n;i.firstChild!==s&&(i.firstChild=s,i.dispatchRowEvent("firstChildChanged")),i.lastChild!==l&&(i.lastChild=l,i.dispatchRowEvent("lastChildChanged")),i.childIndex!==r&&(i.childIndex=r,i.dispatchRowEvent("childIndexChanged"))}},NZ=class extends ue{constructor(){super(...arguments),this.beanName="sortStage",this.step="sort",this.refreshProps=["postSortRows","groupDisplayType","accentedSort"]}execute(e,t){const o=this.beans.sortSvc.getSortOptions(),r=o.length>0&&!!t&&this.gos.get("deltaSort"),{gos:n,colModel:i,rowGroupColsSvc:s,rowNodeSorter:l,rowRenderer:u,showRowGroupCols:d}=this.beans,h=n.get("groupMaintainOrder"),p=i.getCols().some(F=>F.isRowGroupActive()),g=s?.columns,v=i.isPivotMode(),b=n.getCallback("postSortRows");let C=!1,S;const k=F=>{const R=v&&F.leafGroup;let P=h&&p&&!F.leafGroup;P&&(S??(S=this.shouldSortContainsGroupCols(o)),P&&(P=!S));let T=null;if(P){let D=!1;if(g){const M=F.level+1;M<g.length&&(D=g[M].wasSortExplicitlyRemoved)}D||(T=zZ(F))}else!o.length||R||(r&&t?T=BZ(l,F,t,e,o):T=l.doFullSortInPlace(F.childrenAfterAggFilter.slice(),o));if(T||(T=F.childrenAfterAggFilter?.slice()??[]),C||(C=F.childrenAfterSort?.[0]!==T[0]),F.childrenAfterSort=T,SP(F),b){const D={nodes:F.childrenAfterSort};b(D)}};if(e?.forEachChangedNodeDepthFirst(k),C&&n.get("groupHideOpenParents")){const F=d?.columns;F?.length&&u.refreshCells({columns:F,force:!0})}}shouldSortContainsGroupCols(e){const t=e.length;if(!t)return!1;if(_n(this.gos)){for(let o=0;o<t;++o){const r=e[o].column;if(r.isPrimary()&&r.isRowGroupActive())return!0}return!1}for(let o=0;o<t;++o)if(e[o].column.getColDef().showRowGroup)return!0;return!1}},zZ=e=>{const t=e.childrenAfterSort,o=e.childrenAfterAggFilter,r=t?.length,n=o?.length;if(!r||!n)return null;const i=new Array(n),s=new Set;for(let u=0;u<n;++u)s.add(o[u]);let l=0;for(let u=0;u<r;++u){const d=t[u];s.delete(d)&&(i[l++]=d)}if(s.size===0&&l===r)return t;for(const u of s)i[l++]=u;return i.length=l,i},HZ=class extends ue{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.rowCountReady=!1,this.nodeManager=void 0,this.rowsToDisplay=[],this.formulaRows=[],this.rowDataUpdatedPending=!1,this.asyncTransactions=null,this.asyncTransactionsTimer=0,this.started=!1,this.refreshingModel=!1,this.rowNodesCountReady=!1,this.stages=null,this.stagesRefreshProps=new Map,this.onRowHeightChanged_debounced=An(this,this.onRowHeightChanged.bind(this),100)}postConstruct(){const e=this.beans,t=new TF(e);this.rootNode=t,this.nodeManager=this.createBean(new EZ(t));const o=()=>{this.beans.groupStage?.invalidateGroupCols(),this.refreshModel({step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame")})};this.addManagedEventListeners({newColumnsLoaded:o,columnRowGroupChanged:o,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:()=>this.refreshModel({step:"pivot"}),columnPivotModeChanged:()=>this.refreshModel({step:"group"}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),stylesChanged:this.onGridStylesChanges.bind(this),gridReady:this.onGridReady.bind(this),rowExpansionStateChanged:this.onRowGroupOpened.bind(this)}),this.addPropertyListeners()}addPropertyListeners(){const{beans:e,stagesRefreshProps:t}=this,o=[e.groupStage,e.filterStage,e.pivotStage,e.aggStage,e.sortStage,e.filterAggStage,e.flattenStage].filter(r=>!!r);this.stages=o;for(let r=o.length-1;r>=0;--r){const n=o[r];for(const i of n.refreshProps)t.set(i,r)}this.addManagedPropertyListeners([...t.keys(),"rowData"],r=>{const n=r.changeSet?.properties;n&&this.onPropChange(n)}),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,o,r){let n,i=!1;do{n=!1;const s=this.getRowIndexAtPixel(e),l=this.getRowIndexAtPixel(t),u=Math.max(s,o),d=Math.min(l,r);for(let h=u;h<=d;h++){const p=this.getRow(h);if(p.rowHeightEstimated){const g=Zd(this.beans,p);p.setRowHeight(g.height),n=!0,i=!0}}n&&this.setRowTopAndRowIndex()}while(n);return i}onPropChange(e){const{nodeManager:t,gos:o,beans:r}=this,n=r.groupStage;if(!t)return;const i=new Set(e),s=n?.onPropChange(i);let l;i.has("rowData")?l=o.get("rowData"):s&&(l=n?.extractData()),l&&!Array.isArray(l)&&(l=null,pe(1));const u={step:"nothing",changedProps:i};l&&(!s&&!this.isEmpty()&&l.length>0&&o.exists("getRowId")&&!o.get("resetRowDataOnUpdate")?(u.keepRenderedRows=!0,u.animate=!o.get("suppressAnimationFrame"),u.changedRowNodes=new hv,t.setImmutableRowData(u,l)):(u.rowDataUpdated=!0,u.newData=!0,t.setNewRowData(l),this.rowNodesCountReady=!0));const d=u.rowDataUpdated?"group":this.getRefreshedStage(e);d&&(u.step=d,this.refreshModel(u))}getRefreshedStage(e){const{stages:t,stagesRefreshProps:o}=this;if(!t)return null;const r=t.length;let n=r;for(let i=0,s=e.length;i<s&&n;++i)n=Math.min(n,o.get(e[i])??n);return n<r?t[n].step:null}setRowTopAndRowIndex(e){const{beans:t,rowsToDisplay:o}=this,r=t.environment.getDefaultRowHeight();let n=0;const i=no(this.gos,"normal");for(let s=0,l=o.length;s<l;++s){const u=o[s],d=u.id;if(d!=null&&e?.add(d),u.rowHeight==null){const h=Zd(t,u,i,r);u.setRowHeight(h.height,h.estimated)}u.setRowTop(n),u.setRowIndex(s),n+=u.rowHeight}if(this.beans.formula?.active){const s=this.formulaRows;for(let l=0,u=s.length;l<u;++l){const d=s[l];d.formulaRowIndex=l}}}clearRowTopAndRowIndex(e,t){const o=e.active,r=s=>{s?.id!=null&&!t.has(s.id)&&s.clearRowTopAndRowIndex()},n=s=>{r(s),r(s.detailNode),r(s.sibling);const l=s.childrenAfterGroup;if(!s.hasChildren()||!l)return;const u=s.level==-1;if(!(o&&!u&&!s.expanded))for(let h=0,p=l.length;h<p;++h)n(l[h])},i=this.rootNode;i&&n(i)}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 r=e.sibling?.displayed?1:0;return(e.childrenAfterSort?.length??0)+r}getTopLevelRowDisplayedIndex(e){const{beans:t,rootNode:o,rowsToDisplay:r}=this;if(!o||!r.length||r[0]===o)return e;const i=o.childrenAfterSort,s=u=>{let d=i[u];if(this.gos.get("groupHideOpenParents"))for(;d.expanded&&d.childrenAfterSort&&d.childrenAfterSort.length>0;)d=d.childrenAfterSort[0];return d.rowIndex},l=t.footerSvc;return l?l?.getTopDisplayIndex(r,e,i,s):s(e)}getTopLevelIndexFromDisplayedIndex(e){const{rootNode:t,rowsToDisplay:o}=this;if(!t||!o.length||o[0]===t)return e;let n=this.getRow(e);n.footer&&(n=n.sibling);let i=n.parent;for(;i&&i!==t;)n=i,i=n.parent;const s=t.childrenAfterSort?.indexOf(n)??-1;return s>=0?s: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:ua(this.gos)})}onFilterChanged({afterDataChange:e,columns:t}){if(!e){const r=t.length===0||t.some(n=>n.isPrimary())?"filter":"filter_aggregates";this.refreshModel({step:r,keepRenderedRows:!0,animate:ua(this.gos)})}}onSortChanged(){this.refreshModel({step:"sort",keepRenderedRows:!0,animate:ua(this.gos)})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.beans.colModel.isPivotActive()?"pivot":"aggregate"})}createChangePath(e){const t=new pR(!1,this.rootNode);return t.active=e,t}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;const{changedRowNodes:t,newData:o,rowDataUpdated:r}=e;return!(!t||o||!r||t.removals.length||t.adds.size)}refreshModel(e){const{nodeManager:t,beans:o,eventSvc:r,started:n,refreshingModel:i}=this;if(!t)return;const s=!!e.rowDataUpdated,l=e.changedPath??(e.changedPath=this.createChangePath(!e.newData&&s));if(n&&s&&r.dispatchEvent({type:"rowDataUpdated"}),!n||i||o.colModel.changeEventsDispatching||this.isSuppressModelUpdateAfterUpdateTransaction(e)){this.rowDataUpdatedPending||(this.rowDataUpdatedPending=s);return}switch(this.rowDataUpdatedPending&&(this.rowDataUpdatedPending=!1,e.step="group"),this.refreshingModel=!0,o.masterDetailSvc?.refreshModel(e),s&&e.step!=="group"&&o.colFilter?.refreshModel(),e.step){case"group":this.doGrouping(e);case"filter":this.doFilter(l);case"pivot":this.doPivot(l);case"aggregate":this.doAggregate(l);case"filter_aggregates":this.doFilterAggregates(l);case"sort":this.doSort(l,e.changedRowNodes);case"map":this.doRowsToDisplay()}const u=new Set;this.setRowTopAndRowIndex(u),this.clearRowTopAndRowIndex(l,u),this.refreshingModel=!1,r.dispatchEvent({type:"modelUpdated",animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack})}isEmpty(){return!this.rootNode?._leafs?.length||!this.beans.colModel?.ready}isRowsToRender(){return this.rowsToDisplay.length>0}getOverlayType(){return this.isEmpty()?"noRows":this.beans.filterManager?.isAnyFilterPresent()&&this.getRowCount()===0?"noMatchingRows":null}getNodesInRangeForSelection(e,t){let o=!1,r=!1;const n=[],i=jV(this.gos);return this.forEachNodeAfterFilterAndSort(s=>{if(r)return;if(o&&(s===t||s===e)&&(r=!0,i&&s.group)){xP(n,s);return}if(!o){if(s!==t&&s!==e)return;o=!0,t===e&&(r=!0)}(!s.group||!i)&&n.push(s)}),n}getTopLevelNodes(){return this.rootNode?.childrenAfterGroup??null}getRow(e){return this.rowsToDisplay[e]}getFormulaRow(e){return this.formulaRows[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){const t=this.rowsToDisplay,o=t.length;if(this.isEmpty()||o===0)return-1;let r=0,n=o-1;if(e<=0)return 0;if(t[n].rowTop<=e)return n;let s=-1,l=-1;for(;;){const u=Math.floor((r+n)/2),d=t[u];if(this.isRowInPixel(d,e)||(d.rowTop<e?r=u+1:d.rowTop>e&&(n=u-1),s===r&&l===n))return u;s=r,l=n}}isRowInPixel(e,t){const o=e.rowTop,r=o+e.rowHeight;return o<=t&&r>t}forEachLeafNode(e){const t=this.rootNode?._leafs;if(t)for(let o=0,r=t.length;o<r;++o)e(t[o],o)}forEachNode(e,t=!1){this.depthFirstSearchRowNodes(e,t)}forEachDisplayedNode(e){const t=this.rowsToDisplay;for(let o=0,r=t.length;o<r;++o)e(t[o],o)}forEachNodeAfterFilter(e,t=!1){this.depthFirstSearchRowNodes(e,t,o=>o.childrenAfterAggFilter)}forEachNodeAfterFilterAndSort(e,t=!1){this.depthFirstSearchRowNodes(e,t,o=>o.childrenAfterSort)}forEachPivotNode(e,t,o){const{colModel:r,rowGroupColsSvc:n}=this.beans;if(!r.isPivotMode())return;if(!n?.columns.length){e(this.rootNode,0);return}const i=o?"childrenAfterSort":"childrenAfterGroup";this.depthFirstSearchRowNodes(e,t,s=>s.leafGroup?null:s[i])}depthFirstSearchRowNodes(e,t=!1,o=i=>i.childrenAfterGroup,r=this.rootNode,n=0){let i=n;if(!r)return i;const s=r===this.rootNode;if(s||e(r,i++),r.hasChildren()&&!r.footer){const l=o(r);if(l){const u=this.beans.footerSvc;i=u?.addTotalRows(i,r,e,t,s,"top")??i;for(const d of l)i=this.depthFirstSearchRowNodes(e,t,o,d,i);return u?.addTotalRows(i,r,e,t,s,"bottom")??i}}return i}doAggregate(e){this.rootNode&&this.beans.aggStage?.execute(e)}doFilterAggregates(e){const t=this.rootNode,o=this.beans.filterAggStage;if(o){o.execute(e);return}t.childrenAfterAggFilter=t.childrenAfterFilter}doSort(e,t){const o=this.beans.sortStage;if(o){o.execute(e,t);return}e.forEachChangedNodeDepthFirst(r=>{r.childrenAfterSort=r.childrenAfterAggFilter.slice(0),SP(r)})}doGrouping(e){const t=this.rootNode;if(!t)return;const r=this.beans.groupStage?.execute(e);if(r===void 0){const n=t._leafs;t.childrenAfterGroup=n,t.updateHasChildren();const i=t.sibling;i&&(i.childrenAfterGroup=n)}(r||e.rowDataUpdated)&&this.beans.colFilter?.refreshModel(),!this.rowCountReady&&this.rowNodesCountReady&&(this.rowCountReady=!0,this.eventSvc.dispatchEventOnce({type:"rowCountReady"}))}doFilter(e){const t=this.beans.filterStage;if(t){t.execute(e);return}e.forEachChangedNodeDepthFirst(o=>{o.childrenAfterFilter=o.childrenAfterGroup,Dv(o)},!0)}doPivot(e){this.beans.pivotStage?.execute(e)}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 o=this.gos.get("asyncTransactionWaitMillis");this.asyncTransactionsTimer=setTimeout(()=>this.executeBatchUpdateRowData(),o)}this.asyncTransactions.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){const e=this.asyncTransactionsTimer;e&&(clearTimeout(e),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){const{nodeManager:e,beans:t,eventSvc:o,asyncTransactions:r}=this;if(!e)return;t.valueCache?.onDataChanged();const n=[],i=[],s=new hv,l=!this.gos.get("suppressAnimationFrame");for(const{rowDataTransaction:u,callback:d}of r??[]){this.rowNodesCountReady=!0;const h=e.updateRowData(u,s,l);n.push(h),d&&i.push(d.bind(null,h))}this.commitTransactions(s,l),i.length>0&&setTimeout(()=>{for(let u=0,d=i.length;u<d;u++)i[u]()},0),n.length>0&&o.dispatchEvent({type:"asyncTransactionsFlushed",results:n}),this.asyncTransactionsTimer=0,this.asyncTransactions=null}updateRowData(e){const t=this.nodeManager;if(!t)return null;this.beans.valueCache?.onDataChanged(),this.rowNodesCountReady=!0;const o=new hv,r=!this.gos.get("suppressAnimationFrame"),n=t.updateRowData(e,o,r);return this.commitTransactions(o,r),n}commitTransactions(e,t){this.refreshModel({step:"group",rowDataUpdated:!0,keepRenderedRows:!0,animate:t,changedRowNodes:e,changedPath:this.createChangePath(!0)})}doRowsToDisplay(){const{rootNode:e,beans:t}=this;if(t.formula?.active){const n=e?.childrenAfterSort??[];this.formulaRows=n,this.rowsToDisplay=n.filter(i=>!i.softFiltered);for(const i of this.rowsToDisplay)i.setUiLevel(0);return}const o=t.flattenStage;if(o){this.rowsToDisplay=o.execute();return}const r=this.rootNode.childrenAfterSort??[];for(const n of r)n.setUiLevel(0);this.rowsToDisplay=r}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:!0,keepUndoRedoStack:!0})}resetRowHeights(){const e=this.rootNode;if(!e)return;const t=this.resetRowHeightsForAllRowNodes();e.setRowHeight(e.rowHeight,!0);const o=e.sibling;o?.setRowHeight(o.rowHeight,!0),t&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(t=>{t.setRowHeight(t.rowHeight,!0);const o=t.detailNode;o?.setRowHeight(o.rowHeight,!0);const r=t.sibling;r?.setRowHeight(r.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()}},xP=(e,t)=>{const o=t.childrenAfterGroup;if(o)for(let r=0,n=o.length;r<n;++r){const i=o[r];i.data&&e.push(i),i.group&&xP(e,i)}},kP={moduleName:"ClientSideRowModel",version:ze,rowModels:["clientSide"],beans:[HZ,NZ],dependsOn:[YR]},VZ=class extends ue{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.wasEverActive=!1,this._debouncedCalculateRowHeights=An(this,this.calculateRowHeights.bind(this),1)}requestCheckAutoHeight(){this.wasEverActive&&this._debouncedCalculateRowHeights()}calculateRowHeights(){const{visibleCols:e,rowModel:t,rowSpanSvc:o,pinnedRowModel:r}=this.beans,n=e.autoHeightCols;let i=!1;const s=l=>{const u=l.__autoHeights;let d=Zd(this.beans,l).height;for(const h of n){let p=u?.[h.getColId()];const g=o?.getCellSpan(h,l);if(g){if(g.getLastNode()!==l)continue;if(p=o?.getCellSpan(h,l)?.getLastNodeAutoHeight(),!p)return}if(p==null){if(this.colSpanSkipCell(h,l))continue;return}d=Math.max(p,d)}d!==l.rowHeight&&(l.setRowHeight(d),i=!0)};r?.forEachPinnedRow?.("top",s),r?.forEachPinnedRow?.("bottom",s),t.forEachDisplayedNode?.(s),i&&t.onRowHeightChanged?.()}setRowAutoHeight(e,t,o){if(e.__autoHeights??(e.__autoHeights={}),t==null){delete e.__autoHeights[o.getId()];return}const r=e.__autoHeights[o.getId()];e.__autoHeights[o.getId()]=t,r!==t&&this.requestCheckAutoHeight()}colSpanSkipCell(e,t){const{colModel:o,colViewport:r,visibleCols:n}=this.beans;if(!o.colSpanActive)return!1;let i=[];switch(e.getPinned()){case"left":i=n.getLeftColsForRow(t);break;case"right":i=n.getRightColsForRow(t);break;case null:i=r.getColsWithinViewport(t);break}return!i.includes(e)}setupCellAutoHeight(e,t,o){if(!e.column.isAutoHeight()||!t)return!1;this.wasEverActive=!0;const r=t.parentElement,{rowNode:n,column:i}=e,s=this.beans,l=h=>{if(this.beans.editSvc?.isEditing(e)||!e.isAlive()||!o.isAlive())return;const{paddingTop:p,paddingBottom:g,borderBottomWidth:v,borderTopWidth:b}=Zi(r),C=p+g+v+b,k=t.offsetHeight+C;if(h<5){const R=!Zt(s)?.contains(t),P=k==0;if(R||P){window.setTimeout(()=>l(h+1),0);return}}this.setRowAutoHeight(n,k,i)},u=()=>l(0);u();const d=Dn(s,t,u);return o.addDestroyFunc(()=>{d(),this.setRowAutoHeight(n,void 0,i)}),!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:o}of e)if((!t||this.beans.colModel.colSpanActive)&&(t=this.beans.colViewport.getColsWithinViewport(o).filter(n=>n.isAutoHeight())),t.length!==0){if(!o.__autoHeights)return!1;for(const r of t){const n=o.__autoHeights[r.getColId()];if(!n||o.rowHeight<n)return!1}}return!0}},GZ={moduleName:"RowAutoHeight",version:ze,beans:[VZ]},ao=re.createContext({}),FP=re.createContext("default"),kc=(e,t,o,r)=>{if(!e||e.componentFromFramework||t.isDestroyed())return;const i=e.newAgStackInstance();let s,l,u=!1;return i.then(d=>{if(u){t.destroyBean(d);return}s=d,l=s.getGui(),o.appendChild(l),RP(r,s)}),()=>{u=!0,s&&(l?.remove(),t.destroyBean(s),r&&RP(r,void 0))}},RP=(e,t)=>{if(e)if(e instanceof Function)e(t);else{const o=e;o.current=t}},nr=(...e)=>e.filter(o=>o!=null&&o!=="").join(" "),ir=class TD{constructor(...t){this.classesMap={};for(const o of t)this.classesMap[o]=!0}setClass(t,o){if(!!this.classesMap[t]==o)return this;const n=new TD;return n.classesMap={...this.classesMap},n.classesMap[t]=o,n}toString(){return Object.keys(this.classesMap).filter(o=>this.classesMap[o]).join(" ")}},Ia=e=>{const t=()=>typeof Symbol=="function"&&Symbol.for,o=()=>t()?Symbol.for("react.memo"):60115;return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===o()},Nv=re.version?.split(".")[0],PP=Nv==="16"||Nv==="17";function jZ(){return Nv==="19"}var Oh=!1;function WZ(e){return Oh||setTimeout(()=>Oh=!1,0),Oh=!0,e()}var Fc=(e,t)=>{!PP&&e&&!Oh?LM.flushSync(t):t()},qZ=e=>{PP?e():re.startTransition(e)};function UZ(e,t,o){return re.useSyncExternalStore?re.useSyncExternalStore(e,t):o}function Lh(e,t,o){if(t==null||e==null)return t;if(e===t||t.length===0&&e.length===0)return e;if(o||e.length===0&&t.length>0||e.length>0&&t.length===0)return t;const r=[],n=[],i=new Map,s=new Map;for(let l=0;l<t.length;l++){const u=t[l];s.set(u.instanceId,u)}for(let l=0;l<e.length;l++){const u=e[l];i.set(u.instanceId,u),s.has(u.instanceId)&&r.push(u)}for(let l=0;l<t.length;l++){const u=t[l],d=u.instanceId;i.has(d)||n.push(u)}return r.length===e.length&&n.length===0?e:r.length===0&&n.length===t.length?t:r.length===0?n:n.length===0?r:[...r,...n]}var EP=y.forwardRef((e,t)=>{const{registry:o,context:r}=y.useContext(ao),n=y.useRef(null),i=y.useRef(null),s=y.useRef(null),l=y.useRef(null),u=y.useRef(null),d=y.useRef(),[h,p]=y.useState(),[g,v]=y.useState(),[b,C]=y.useState(),[S,k]=y.useState(()=>new ir),[F,R]=y.useState(()=>new ir("ag-hidden")),[P,T]=y.useState(()=>new ir("ag-hidden")),[D,M]=y.useState(()=>new ir("ag-invisible"));y.useImperativeHandle(t,()=>({refresh(){return!1}})),y.useLayoutEffect(()=>kc(h,r,i.current),[h]);const O=y.useCallback(W=>{if(n.current=W,!W||r.isDestroyed()){d.current=r.destroyBean(d.current);return}const _={setInnerRenderer:(j,L)=>{p(j),C(L)},setChildCount:j=>v(j),toggleCss:(j,L)=>k(N=>N.setClass(j,L)),setContractedDisplayed:j=>T(L=>L.setClass("ag-hidden",!j)),setExpandedDisplayed:j=>R(L=>L.setClass("ag-hidden",!j)),setCheckboxVisible:j=>M(L=>L.setClass("ag-invisible",!j)),setCheckboxSpacing:j=>M(L=>L.setClass("ag-group-checkbox-spacing",j))},V=o.createDynamicBean("groupCellRendererCtrl",!0);V&&(d.current=r.createBean(V),d.current.init(_,W,s.current,l.current,u.current,EP,e))},[]),I=y.useMemo(()=>`ag-cell-wrapper ${S.toString()}`,[S]),z=y.useMemo(()=>`ag-group-expanded ${F.toString()}`,[F]),U=y.useMemo(()=>`ag-group-contracted ${P.toString()}`,[P]),q=y.useMemo(()=>`ag-group-checkbox ${D.toString()}`,[D]),A=h?.componentFromFramework,K=A?h.componentClass:void 0,$=h==null&&b!=null,Z=$l(b);return re.createElement("span",{className:I,ref:O,...e.colDef?{}:{role:d.current?.getCellAriaRole()}},re.createElement("span",{className:z,ref:l}),re.createElement("span",{className:U,ref:u}),re.createElement("span",{className:q,ref:s}),re.createElement("span",{className:"ag-group-value",ref:i},$?Z:A?re.createElement(K,{...h.params}):null),re.createElement("span",{className:"ag-group-child-count"},g))}),TP=EP,zv=y.createContext({setMethods:()=>{}}),$Z=e=>{const{initialProps:t,addUpdateCallback:o,CustomComponentClass:r,setMethods:n}=e,[{key:i,...s},l]=y.useState(t);return y.useEffect(()=>{o(u=>l(u))},[]),re.createElement(zv.Provider,{value:{setMethods:n}},re.createElement(r,{key:i,...s}))},KZ=y.memo($Z),XZ=0;function DP(){return`agPortalKey_${++XZ}`}var MP=class{constructor(e,t,o,r){this.portal=null,this.oldPortal=null,this.reactComponent=e,this.portalManager=t,this.componentType=o,this.suppressFallbackMethods=!!r,this.statelessComponent=this.isStateless(this.reactComponent),this.key=DP(),this.portalKey=DP(),this.instanceCreated=this.isStatelessComponent()?Ve.resolve(!1):new Ve(n=>{this.resolveInstanceCreated=n})}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(),o=document.createElement(t||"div");return o.classList.add("ag-react-container"),e.reactContainer=o,o}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 o=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(!o){setTimeout(()=>this.callMethod(e,t));return}const r=o[e];if(r)return r.apply(o,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 Ve(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=Wi.createPortal(this.reactElement,this.eParentElement,this.portalKey)}createElement(e,t){return y.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 o=this[`${e}Component`];if(!this.suppressFallbackMethods&&o)return o.bind(this)(t)}fallbackMethodAvailable(e){return this.suppressFallbackMethods?!1:!!this[`${e}Component`]}};function Nh(e,t,o){for(const r of e){const n=t[r];n&&(o[r]=n)}}var sr=class extends MP{constructor(){super(...arguments),this.awaitUpdateCallback=new Ve(e=>{this.resolveUpdateCallback=e}),this.wrapperComponent=KZ}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:o=>this.setMethods(o),addUpdateCallback:o=>{this.updateCallback=()=>(o(this.getProps()),new Ve(r=>{setTimeout(()=>{r()})})),this.resolveUpdateCallback()}})}setMethods(e){this.providedMethods=e,Nh(this.getOptionalMethods(),this.providedMethods,this)}getOptionalMethods(){return[]}getProps(){return{...this.sourceParams,key:this.key,ref:this.ref}}refreshProps(){return this.updateCallback?this.updateCallback():new Ve(e=>this.awaitUpdateCallback.then(()=>{this.updateCallback().then(()=>e())}))}},ZZ=class extends sr{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},YZ=class extends sr{refresh(e){this.sourceParams=e,this.refreshProps()}},QZ=class extends sr{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}},JZ=class extends sr{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:o,shake:r}=this;return e.label=t,e.icon=o,e.shake=r,e}},eY=class extends sr{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 Ve(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 Ve(o=>{this.resolveFilterPassCallback=o});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}},tY=class extends sr{constructor(){super(...arguments),this.awaitSetMethodsCallback=new Ve(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 AP(e,t){e.parentFilterInstance(o=>{(o.setModel(t)||Ve.resolve()).then(()=>{e.filterParams.filterChangedCallback()})})}var oY=class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t,this.model=null,this.onModelChange=o=>this.updateModel(o)}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){Nh(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),AP(this.floatingFilterParams,e)}},rY=class extends sr{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(),AP(this.sourceParams,e)}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e}},nY=class extends sr{refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}},iY=class extends sr{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},sY=class extends sr{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}},aY=class extends sr{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},lY=class extends sr{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 Hv(){pe(231)}var cY=1e3,uY=class{constructor(e,t,o){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.refresher=e,this.maxComponentCreationTimeMs=o||cY}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,o){this.portals=[...this.portals,e],this.waitForInstance(t,o),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,o=Date.now()){if(this.destroyed){t(null);return}if(e.rendered())t(e);else{if(Date.now()-o>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate){Fc(!0,()=>this.refresher()),e.rendered()&&t(e);return}window.setTimeout(()=>{this.waitForInstance(e,t,o)})}}},dY=({ctrl:e})=>{const t=e.isAlive(),{context:o}=y.useContext(ao),[r,n]=y.useState(),[i,s]=y.useState(),l=y.useRef(),u=y.useRef(null),d=y.useRef(null),h=y.useRef(null),p=y.useRef(),g=y.useRef();t&&!g.current&&(g.current=new lc(()=>u.current));const v=y.useCallback(k=>{if(u.current=k,!k||!e.isAlive()||o.isDestroyed()){l.current=o.destroyBean(l.current);return}l.current=o.createBean(new va);const F=()=>{const P=e.getSelectAllGui();P&&(d.current?.insertAdjacentElement("afterend",P),l.current.addDestroyFunc(()=>P.remove()))},R={setWidth:P=>{u.current&&(u.current.style.width=P)},toggleCss:(P,T)=>g.current.toggleCss(P,T),setUserStyles:P=>s(P),setAriaSort:P=>{u.current&&(P?K8(u.current,P):X8(u.current))},setUserCompDetails:P=>n(P),getUserCompInstance:()=>p.current||void 0,refreshSelectAllGui:F,removeSelectAllGui:()=>e.getSelectAllGui()?.remove()};e.setComp(R,k,d.current,h.current,l.current),F()},[]);y.useLayoutEffect(()=>kc(r,o,h.current,p),[r]),y.useEffect(()=>{e.setDragSource(u.current)},[r]);const b=y.useMemo(()=>!!(r?.componentFromFramework&&Ia(r.componentClass)),[r]),C=r?.componentFromFramework,S=r?.componentClass;return re.createElement("div",{ref:v,style:i,className:"ag-header-cell",role:"columnheader"},re.createElement("div",{ref:d,className:"ag-header-cell-resize",role:"presentation"}),re.createElement("div",{ref:h,className:"ag-header-cell-comp-wrapper",role:"presentation"},C?b?re.createElement(S,{...r.params}):re.createElement(S,{...r.params,ref:p}):null))},hY=y.memo(dY),fY=class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t}getProps(){return this.floatingFilterParams}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){Nh(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}},pY=({ctrl:e})=>{const{context:t,gos:o}=y.useContext(ao),[r,n]=y.useState(),[i,s]=y.useState(()=>new ir("ag-header-cell","ag-floating-filter")),[l,u]=y.useState(()=>new ir),[d,h]=y.useState(()=>new ir("ag-floating-filter-button","ag-hidden")),[p,g]=y.useState("false"),[v,b]=y.useState(),[,C]=y.useState(1),S=y.useRef(),k=y.useRef(null),F=y.useRef(null),R=y.useRef(null),P=y.useRef(null),T=y.useRef(),D=y.useRef(),M=j=>{j!=null&&T.current&&T.current(j)},O=y.useCallback(j=>{if(k.current=j,!j||!e.isAlive()||t.isDestroyed()){S.current=t.destroyBean(S.current);return}S.current=t.createBean(new va),D.current=new Ve(N=>{T.current=N});const L={toggleCss:(N,Y)=>s(ne=>ne.setClass(N,Y)),setUserStyles:N=>n(N),addOrRemoveBodyCssClass:(N,Y)=>u(ne=>ne.setClass(N,Y)),setButtonWrapperDisplayed:N=>{h(Y=>Y.setClass("ag-hidden",!N)),g(N?"false":"true")},setWidth:N=>{k.current&&(k.current.style.width=N)},setCompDetails:N=>b(N),getFloatingFilterComp:()=>D.current?D.current:null,setMenuIcon:N=>P.current?.appendChild(N)};e.setComp(L,j,P.current,F.current,S.current)},[]);y.useLayoutEffect(()=>kc(v,t,F.current,M),[v]);const I=y.useMemo(()=>i.toString(),[i]),z=y.useMemo(()=>l.toString(),[l]),U=y.useMemo(()=>d.toString(),[d]),q=y.useMemo(()=>!!(v&&v.componentFromFramework&&Ia(v.componentClass)),[v]),A=y.useMemo(()=>o.get("reactiveCustomComponents"),[]),K=y.useMemo(()=>o.get("enableFilterHandlers"),[]),[$,Z]=y.useState();y.useEffect(()=>{if(v?.componentFromFramework)if(A){const j=K?fY:oY,L=new j(v.params,()=>C(N=>N+1));M(L),Z(L)}else Hv()},[v]);const W=$?.getProps(),_=v?.componentFromFramework,V=v?.componentClass;return re.createElement("div",{ref:O,style:r,className:I,role:"gridcell"},re.createElement("div",{ref:F,className:z,role:"presentation"},_?A?W&&re.createElement(zv.Provider,{value:{setMethods:j=>$.setMethods(j)}},re.createElement(V,{...W})):re.createElement(V,{...v.params,ref:q?()=>{}:M}):null),re.createElement("div",{ref:R,"aria-hidden":p,className:U,role:"presentation"},re.createElement("button",{ref:P,type:"button",className:"ag-button ag-floating-filter-button-button",tabIndex:-1})))},gY=y.memo(pY),mY=({ctrl:e})=>{const{context:t}=y.useContext(ao),[o,r]=y.useState(),[n,i]=y.useState(()=>new ir),[s,l]=y.useState(()=>new ir),[u,d]=y.useState("false"),[h,p]=y.useState(),[g,v]=y.useState(),b=y.useRef(),C=y.useRef(null),S=y.useRef(null),k=y.useRef(null),F=y.useRef(),R=y.useCallback(I=>{if(C.current=I,!I||!e.isAlive()||t.isDestroyed()){b.current=t.destroyBean(b.current);return}b.current=t.createBean(new va);const z={setWidth:U=>{C.current&&(C.current.style.width=U)},toggleCss:(U,q)=>i(A=>A.setClass(U,q)),setUserStyles:U=>r(U),setHeaderWrapperHidden:U=>{const q=k.current;q&&(U?q.style.setProperty("display","none"):q.style.removeProperty("display"))},setHeaderWrapperMaxHeight:U=>{const q=k.current;q&&(U!=null?q.style.setProperty("max-height",`${U}px`):q.style.removeProperty("max-height"),q.classList.toggle("ag-header-cell-comp-wrapper-limited-height",U!=null))},setUserCompDetails:U=>v(U),setResizableDisplayed:U=>{l(q=>q.setClass("ag-hidden",!U)),d(U?"false":"true")},setAriaExpanded:U=>p(U),getUserCompInstance:()=>F.current||void 0};e.setComp(z,I,S.current,k.current,b.current)},[]);y.useLayoutEffect(()=>kc(g,t,k.current),[g]),y.useEffect(()=>{C.current&&e.setDragSource(C.current)},[g]);const P=y.useMemo(()=>!!(g?.componentFromFramework&&Ia(g.componentClass)),[g]),T=y.useMemo(()=>"ag-header-group-cell "+n.toString(),[n]),D=y.useMemo(()=>"ag-header-cell-resize "+s.toString(),[s]),M=g?.componentFromFramework,O=g?.componentClass;return re.createElement("div",{ref:R,style:o,className:T,role:"columnheader","aria-expanded":h},re.createElement("div",{ref:k,className:"ag-header-cell-comp-wrapper",role:"presentation"},M?P?re.createElement(O,{...g.params}):re.createElement(O,{...g.params,ref:F}):null),re.createElement("div",{ref:S,"aria-hidden":u,className:D}))},vY=y.memo(mY),bY=({ctrl:e})=>{const{gos:t,context:o}=y.useContext(ao),{topOffset:r,rowHeight:n}=y.useMemo(()=>e.getTopAndHeight(),[]),i=y.useMemo(()=>t.get("tabIndex"),[]),[s,l]=y.useState(()=>e.getAriaRowIndex()),u=e.headerRowClass,[d,h]=y.useState(()=>n+"px"),[p,g]=y.useState(()=>r+"px"),v=y.useRef(null),[b,C]=y.useState(()=>e.getUpdatedHeaderCtrls()),S=y.useRef(),k=y.useRef(null),F=y.useCallback(T=>{if(k.current=T,!T||!e.isAlive()||o.isDestroyed()){S.current=o.destroyBean(S.current);return}S.current=o.createBean(new va);const D={setHeight:M=>h(M),setTop:M=>g(M),setHeaderCtrls:(M,O,I)=>{const z=v.current,U=Lh(z,M,O);U!==z&&(v.current=U,Fc(I,()=>C(U)))},setWidth:M=>{k.current&&(k.current.style.width=M)},setRowIndex:M=>{l(M)}};e.setComp(D,S.current,!1)},[]),R=y.useMemo(()=>({height:d,top:p}),[d,p]),P=y.useCallback(T=>{switch(e.type){case"group":return re.createElement(vY,{ctrl:T,key:T.instanceId});case"filter":return re.createElement(gY,{ctrl:T,key:T.instanceId});default:return re.createElement(hY,{ctrl:T,key:T.instanceId})}},[]);return re.createElement("div",{ref:F,className:u,role:"row",style:R,tabIndex:i,"aria-rowindex":s},b.map(P))},CY=y.memo(bY),wY=({pinned:e})=>{const[t,o]=y.useState(!0),[r,n]=y.useState([]),{context:i}=y.useContext(ao),s=y.useRef(null),l=y.useRef(null),u=y.useRef(),d=e==="left",h=e==="right",p=!d&&!h,g=y.useCallback(C=>{if(s.current=C,!C||i.isDestroyed()){u.current=i.destroyBean(u.current);return}u.current=i.createBean(new Lj(e));const S={setDisplayed:o,setCtrls:k=>n(k),setCenterWidth:k=>{l.current&&(l.current.style.width=k)},setViewportScrollLeft:k=>{s.current&&(s.current.scrollLeft=k)},setPinnedContainerWidth:k=>{s.current&&(s.current.style.width=k,s.current.style.minWidth=k,s.current.style.maxWidth=k)}};u.current.setComp(S,s.current)},[]),v=t?"":"ag-hidden",b=()=>r.map(C=>re.createElement(CY,{ctrl:C,key:C.instanceId}));return d?re.createElement("div",{ref:g,className:"ag-pinned-left-header "+v,"aria-hidden":!t,role:"rowgroup"},b()):h?re.createElement("div",{ref:g,className:"ag-pinned-right-header "+v,"aria-hidden":!t,role:"rowgroup"},b()):p?re.createElement("div",{ref:g,className:"ag-header-viewport "+v,role:"rowgroup",tabIndex:-1},re.createElement("div",{ref:l,className:"ag-header-container",role:"presentation"},b())):null},Vv=y.memo(wY),yY=()=>{const[e,t]=y.useState(()=>new ir),[o,r]=y.useState(),{context:n}=y.useContext(ao),i=y.useRef(null),s=y.useRef(),l=y.useCallback(h=>{if(i.current=h,!h||n.isDestroyed()){s.current=n.destroyBean(s.current);return}s.current=n.createBean(new _j);const p={toggleCss:(g,v)=>t(b=>b.setClass(g,v)),setHeightAndMinHeight:g=>r(g)};s.current.setComp(p,h,h)},[]),u=y.useMemo(()=>"ag-header "+e.toString(),[e]),d=y.useMemo(()=>({height:o,minHeight:o}),[o]);return re.createElement("div",{ref:l,className:u,style:d,role:"presentation"},re.createElement(Vv,{pinned:"left"}),re.createElement(Vv,{pinned:null}),re.createElement(Vv,{pinned:"right"}))},SY=y.memo(yY),xY=(e,t)=>{y.useEffect(()=>{const o=t.current;if(o){const r=o.parentElement;if(r){const n=document.createComment(e);return r.insertBefore(n,o),()=>{n.remove()}}}},[e])},cs=xY,kY=class{constructor(e,t){this.cellEditorParams=e,this.refreshProps=t,this.instanceCreated=new Ve(o=>{this.resolveInstanceCreated=o}),this.onValueChange=o=>this.updateValue(o),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){Nh(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()}},FY=e=>{const t=y.useRef(e),o=y.useRef(),r=y.useRef(!1),n=y.useRef(!1),[,i]=y.useState(0);r.current&&(n.current=!0),y.useEffect(()=>(r.current||(o.current=t.current(),r.current=!0),i(s=>s+1),()=>{n.current&&o.current?.()}),[])},RY=e=>{const[t,o]=y.useState(),r=y.useContext(ao),{context:n,popupSvc:i,gos:s,editSvc:l}=r,{editDetails:u,cellCtrl:d,eParentCell:h}=e;return FY(()=>{const{compDetails:p}=u,g=s.get("stopEditingWhenCellsLoseFocus");let v,b;if(!n.isDestroyed()){b=n.createBean(l.createPopupEditorWrapper(p.params));const C=b.getGui();if(e.jsChildComp){const T=e.jsChildComp.getGui();T&&C.appendChild(T)}const{column:S,rowNode:k}=d,F={column:S,rowNode:k,type:"popupCellEditor",eventSource:h,ePopup:C,position:u.popupPosition,keepWithinBounds:!0},R=i?.positionPopupByComponent.bind(i,F),P=i?.addPopup({modal:g,eChild:C,closeOnEsc:!0,closedCallback:()=>{d.onPopupEditorClosed()},anchorToElement:h,positionCallback:R,ariaOwns:h});v=P?P.hideFunc:void 0,o(b),e.jsChildComp?.afterGuiAttached?.()}return()=>{v?.(),n.destroyBean(b)}}),y.useLayoutEffect(()=>()=>{d.isCellFocused()&&t?.getGui().contains(At(r))&&h.focus({preventScroll:!0})},[t]),t&&e.wrappedContent?Wi.createPortal(e.wrappedContent,t.getGui()):null},_P=y.memo(RY),PY=(e,t,o)=>{const{compProxy:r}=e;o(r);const n=r.getProps(),i=Ia(t);return re.createElement(zv.Provider,{value:{setMethods:s=>r.setMethods(s)}},i?re.createElement(t,{...n}):re.createElement(t,{...n,ref:s=>r.setRef(s)}))},IP=(e,t,o)=>e.compProxy?PY(e,t,o):re.createElement(t,{...e.compDetails.params,ref:o}),EY=(e,t,o,r,n)=>{const i=e.compDetails,s=i.componentClass,l=i.componentFromFramework&&!e.popup,u=i.componentFromFramework&&e.popup,d=!i.componentFromFramework&&e.popup;return l?IP(e,s,t):u?re.createElement(_P,{editDetails:e,cellCtrl:r,eParentCell:o,wrappedContent:IP(e,s,t)}):d&&n?re.createElement(_P,{editDetails:e,cellCtrl:r,eParentCell:o,jsChildComp:n}):null},TY=(e,t,o,r,n,i,s=!1)=>{const{context:l}=y.useContext(ao),u=y.useCallback(()=>{const d=n.current;if(!d)return;const h=d.getGui();h&&h.parentElement&&h.remove(),l.destroyBean(d),n.current=void 0},[]);y.useEffect(()=>{const d=e!=null&&!s,h=e?.compDetails&&!e.compDetails.componentFromFramework,p=t&&o==null;if(!(d&&h&&!p)){u();return}const v=e.compDetails;if(n.current){const C=n.current,k=C.refresh!=null&&e.force==!1?C.refresh(v.params):!1;if(k===!0||k===void 0)return;u()}v.newAgStackInstance().then(C=>{if(!C)return;const S=C.getGui();if(!S)return;(t?o:i.current).appendChild(S),n.current=C})},[e,t,r,s]),y.useEffect(()=>u,[])},BP=TY,DY=({cellCtrl:e,parent:t})=>{const o=y.useRef(),r=y.useMemo(()=>{const{loadingComp:n}=e.getDeferLoadingCellRenderer();return n?{value:void 0,compDetails:n,force:!1}:void 0},[e]);if(BP(r,!1,void 0,1,o,t),r?.compDetails?.componentFromFramework){const n=r.compDetails.componentClass;return re.createElement(n,{...r.compDetails.params})}return re.createElement(re.Fragment,null)},MY=({cellCtrl:e,printLayout:t,editingCell:o})=>{const r=y.useContext(ao),{context:n}=r,{column:{colIdSanitised:i},instanceId:s}=e,l=y.useRef(),[u,d]=y.useState(()=>e.isCellRenderer()?void 0:{compDetails:void 0,value:e.getValueToDisplay(),force:!1}),[h,p]=y.useState(),[g,v]=y.useState(1),[b,C]=y.useState(),[S,k]=y.useState(!1),[F,R]=y.useState(!1),[P,T]=y.useState(!1),[D,M]=y.useState(),O=y.useMemo(()=>e.isForceWrapper(),[e]),I=y.useMemo(()=>e.getCellAriaRole(),[e]),z=y.useRef(null),U=y.useRef(null),q=y.useRef(null),A=y.useRef(),K=y.useRef(),$=y.useRef(),Z=y.useRef([]),W=y.useRef(),_=y.useRef(),[V,j]=y.useState(0),L=y.useCallback(Le=>{_.current=Le,j(ot=>ot+1)},[]),N=u!=null&&(S||P||F)&&(h==null||!!h.popup),Y=O||N,ne=y.useMemo(()=>e.getCellValueClass(),[e]),ge=y.useCallback(Le=>{if(K.current=Le,Le){const ot=Le.isCancelBeforeStart&&Le.isCancelBeforeStart();setTimeout(()=>{ot?(e.stopEditing(!0),e.focusCell(!0)):(e.cellEditorAttached(),e.enableEditorTooltipFeature(Le))})}},[e]),Fe=y.useRef();Fe.current||(Fe.current=new lc(()=>z.current));const We=!!h&&!h.popup;BP(u,Y,_.current,V,A,z,We);const Ge=y.useRef();y.useLayoutEffect(()=>{const Le=Ge.current,ot=u;if(Ge.current=u,Le==null||Le.compDetails==null||ot==null||ot.compDetails==null)return;W.current?.refreshVisibility();const _t=Le.compDetails,ht=ot.compDetails;if(_t.componentClass!=ht.componentClass||q.current?.refresh==null)return;q.current.refresh(ht.params)!=!0&&v(ft=>ft+1)},[u]),y.useLayoutEffect(()=>{if(!(h&&!h.compDetails.componentFromFramework)||n.isDestroyed())return;const ot=h.compDetails,_t=h.popup===!0,ht=ot.newAgStackInstance();return ht.then(Ee=>{if(!Ee)return;const ft=Ee.getGui();ge(Ee),_t||((O?$:z).current?.appendChild(ft),Ee.afterGuiAttached?.()),M(Ee)}),()=>{ht.then(Ee=>{const ft=Ee.getGui();e.disableEditorTooltipFeature(),n.destroyBean(Ee),ge(void 0),M(void 0),ft?.remove()})}},[h]);const Ue=y.useCallback(Le=>{if($.current=Le,!Le||n.isDestroyed()||!e.isAlive()){const ht=Z.current;Z.current=[];for(const Ee of ht)Ee();return}let ot;const _t=ht=>{ht&&(Le.insertAdjacentElement("afterbegin",ht.getGui()),Z.current.push(()=>{ia(ht.getGui()),n.destroyBean(ht),W.current===ot&&(W.current=void 0)}))};S&&_t(e.createSelectionCheckbox()),P&&_t(e.createDndSource()),F&&(ot=e.createRowDragComp(),W.current=ot,ot&&(_t(ot),ot.refreshVisibility()))},[e,n,P,F,S]),Pe=y.useCallback(()=>{const Le=!e.isCellSpanning()||U.current,ot=z.current;if(!ot||!Le||!e||!e.isAlive()||n.isDestroyed()){l.current=n.destroyBean(l.current);return}l.current=n.createBean(new va);const _t={toggleCss:(Ee,ft)=>Fe.current.toggleCss(Ee,ft),setUserStyles:Ee=>C(Ee),getFocusableElement:()=>z.current,setIncludeSelection:Ee=>k(Ee),setIncludeRowDrag:Ee=>R(Ee),setIncludeDndSource:Ee=>T(Ee),getCellEditor:()=>K.current??null,getCellRenderer:()=>q.current??A.current,getParentOfValue:()=>_.current??$.current??z.current,setRenderDetails:(Ee,ft,Yt)=>{const jo=()=>{d(Qt=>Qt?.compDetails!==Ee||Qt?.value!==ft||Qt?.force!==Yt?{value:ft,compDetails:Ee,force:Yt}:Qt)};if(Ee?.params?.deferRender&&!e.rowNode.group){const{loadingComp:Qt,onReady:bi}=e.getDeferLoadingCellRenderer();if(Qt){d({value:void 0,compDetails:Qt,force:!1}),bi.then(()=>qZ(jo));return}}jo()},setEditDetails:(Ee,ft,Yt,jo)=>{if(Ee){let Qt;Ee.componentFromFramework&&(jo?Qt=new kY(Ee.params,()=>v(bi=>bi+1)):Hv()),p({compDetails:Ee,popup:ft,popupPosition:Yt,compProxy:Qt}),ft||d(void 0)}else e.hasBrowserFocus()&&_t.getFocusableElement().focus({preventScroll:!0}),K.current=void 0,p(void 0)},refreshEditStyles:(Ee,ft)=>{if(!z.current)return;const{current:Yt}=Fe;Yt.toggleCss("ag-cell-value",!Y),Yt.toggleCss("ag-cell-inline-editing",!!Ee&&!ft),Yt.toggleCss("ag-cell-popup-editing",!!Ee&&!!ft),Yt.toggleCss("ag-cell-not-inline-editing",!Ee||!!ft)}},ht=$.current||void 0;e.setComp(_t,ot,U.current??void 0,ht,t,o,l.current)},[]),Be=y.useCallback(Le=>{z.current=Le,Pe()},[]),Ne=y.useCallback(Le=>{U.current=Le,Pe()},[]),at=y.useMemo(()=>!!(u?.compDetails?.componentFromFramework&&Ia(u.compDetails.componentClass)),[u]);y.useLayoutEffect(()=>{if(!z.current)return;const{current:Le}=Fe;Le.toggleCss("ag-cell-value",!Y),Le.toggleCss("ag-cell-inline-editing",!!h&&!h.popup),Le.toggleCss("ag-cell-popup-editing",!!h&&!!h.popup),Le.toggleCss("ag-cell-not-inline-editing",!h||!!h.popup)});const Go=()=>{const{compDetails:Le,value:ot}=u;if(!Le)return ot?.toString?.()??ot;if(Le.componentFromFramework){const _t=Le.componentClass;return re.createElement(y.Suspense,{fallback:re.createElement(DY,{cellCtrl:e,parent:z})},at?re.createElement(_t,{...Le.params,key:g}):re.createElement(_t,{...Le.params,key:g,ref:q}))}},Dr=()=>{const Le=()=>u==null?null:Y?re.createElement("span",{role:"presentation",id:`cell-${s}`,className:ne,ref:L},Go()):Go(),ot=_t=>EY(_t,ge,z.current,e,D);return h!=null?h.popup?re.createElement(re.Fragment,null,Le(),ot(h)):ot(h):Le()},us=()=>re.createElement("div",{ref:Be,style:b,role:I,"col-id":i},Y?re.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:Ue},Dr()):Dr());return e.isCellSpanning()?re.createElement("div",{ref:Ne,className:"ag-spanned-cell-wrapper",role:"presentation"},us()):us()},AY=y.memo(MY),_Y=({rowCtrl:e,containerType:t})=>{const{context:o,gos:r,editSvc:n}=y.useContext(ao),i=y.useContext(FP)==="default",s=y.useRef(),l=y.useRef(e.getDomOrder()),u=e.isFullWidth(),d=e.rowNode.displayed,[h,p]=y.useState(()=>d?e.rowNode.getRowIndexString():null),[g,v]=y.useState(()=>e.rowId),[b,C]=y.useState(()=>e.businessKey),[S,k]=y.useState(()=>e.rowStyles),F=y.useRef(null),[R,P]=y.useState(()=>null),[T,D]=y.useState(),[M,O]=y.useState(()=>d?e.getInitialRowTop(t):void 0),[I,z]=y.useState(()=>d?e.getInitialTransform(t):void 0),U=y.useRef(null),q=y.useRef(),A=y.useRef(),K=y.useRef(!1),[$,Z]=y.useState(0);y.useEffect(()=>{if(K.current||!T||$>10)return;const Pe=U.current?.firstChild;Pe?(e.setupDetailRowAutoHeight(Pe),K.current=!0):Z(Be=>Be+1)},[T,$]);const W=y.useRef();W.current||(W.current=new lc(()=>U.current));const _=y.useRef(()=>{}),V=y.useCallback(Pe=>(_.current=Pe,()=>{_.current=()=>{}}),[]),j=UZ(V,()=>F.current,[]),L=i?j:R,N=y.useCallback(Pe=>{if(U.current=Pe,s.current=Pe?o.createBean(new va):o.destroyBean(s.current),!Pe){e.unsetComp(t);return}if(!e.isAlive()||o.isDestroyed())return;const Be={setTop:O,setTransform:z,toggleCss:(Ne,at)=>W.current.toggleCss(Ne,at),setDomOrder:Ne=>l.current=Ne,setRowIndex:p,setRowId:v,setRowBusinessKey:C,setUserStyles:k,setCellCtrls:(Ne,at)=>{const Go=F.current,Dr=Lh(Go,Ne,l.current);Dr!==Go&&(F.current=Dr,i?_.current():Fc(at,()=>P(Dr)))},showFullWidth:Ne=>{A.current=Ne.params,D(Ne)},getFullWidthCellRenderer:()=>q.current,getFullWidthCellRendererParams:()=>A.current,refreshFullWidth:Ne=>{const at=Ne();return A.current=at,We.current?(D(Go=>({...Go,params:at})),!0):!q.current||!q.current.refresh?!1:q.current.refresh(at)}};e.setComp(Be,Pe,t,s.current)},[]);y.useLayoutEffect(()=>kc(T,o,U.current,q),[T]);const Y=y.useMemo(()=>{const Pe={top:M,transform:I};return Object.assign(Pe,S),Pe},[M,I,S]),ne=u&&T?.componentFromFramework,ge=!u&&L!=null,Fe=y.useMemo(()=>!!(T?.componentFromFramework&&Ia(T.componentClass)),[T]),We=y.useRef(!1);y.useEffect(()=>{We.current=Fe&&!!T&&!!r.get("reactiveCustomComponents")},[Fe,T]);const Ge=()=>L?.map(Pe=>re.createElement(AY,{cellCtrl:Pe,editingCell:n?.isEditing(Pe,{withOpenEditor:!0})??!1,printLayout:e.printLayout,key:Pe.instanceId})),Ue=()=>{const Pe=T.componentClass;return Fe?re.createElement(Pe,{...T.params}):re.createElement(Pe,{...T.params,ref:q})};return re.createElement("div",{ref:N,role:"row",style:Y,"row-index":h,"row-id":g,"row-business-key":b},ge?Ge():ne?Ue():null)},OP=y.memo(_Y),IY=({name:e})=>{const{context:t,gos:o}=y.useContext(ao),r=y.useMemo(()=>pc(e),[e]),n=y.useRef(null),i=y.useRef(null),s=y.useRef(null),l=y.useRef([]),u=y.useRef([]),[d,h]=y.useState(()=>[]),p=!!o.get("enableCellSpan")&&!!r.getSpannedRowCtrls,g=y.useRef([]),v=y.useRef([]),[b,C]=y.useState(()=>[]),S=y.useRef(!1),k=y.useRef(),F=y.useMemo(()=>nr("ag-viewport",$F(e)),[e]),R=y.useMemo(()=>nr(xh(e)),[e]),P=y.useMemo(()=>nr("ag-spanning-container",JG(e)),[e]),T=r.type==="center"||p,D=T?n:i;cs(" AG Row Container "+e+" ",D);const M=y.useCallback(()=>{const $=!T||n.current!=null,Z=i.current!=null,W=!p||s.current!=null;return $&&Z&&W},[]),O=y.useCallback(()=>n.current==null&&i.current==null&&s.current==null,[]),I=y.useCallback(()=>{if(O()&&(k.current=t.destroyBean(k.current)),!t.isDestroyed()&&M()){const $=_=>{const V=Lh(u.current,l.current,S.current);V!==u.current&&(u.current=V,Fc(_,()=>h(V)))},Z=_=>{const V=Lh(v.current,g.current,S.current);V!==v.current&&(v.current=V,Fc(_,()=>C(V)))},W={setHorizontalScroll:_=>{n.current&&(n.current.scrollLeft=_)},setViewportHeight:_=>{n.current&&(n.current.style.height=_)},setRowCtrls:({rowCtrls:_,useFlushSync:V})=>{const j=!!V&&l.current.length>0&&_.length>0;l.current=_,$(j)},setSpannedRowCtrls:(_,V)=>{const j=!!V&&g.current.length>0&&_.length>0;g.current=_,Z(j)},setDomOrder:_=>{S.current!=_&&(S.current=_,$(!1))},setContainerWidth:_=>{i.current&&(i.current.style.width=_)},setOffsetTop:_=>{i.current&&(i.current.style.transform=`translateY(${_})`)}};k.current=t.createBean(new cj(e)),k.current.setComp(W,i.current,s.current??void 0,n.current)}},[M,O]),z=y.useCallback($=>{i.current=$,I()},[I]),U=y.useCallback($=>{s.current=$,I()},[I]),q=y.useCallback($=>{n.current=$,I()},[I]),A=()=>re.createElement("div",{className:R,ref:z,role:T?"presentation":"rowgroup"},d.map($=>re.createElement(OP,{rowCtrl:$,containerType:r.type,key:$.instanceId})));if(!T)return A();const K=()=>re.createElement("div",{className:P,ref:U,role:"presentation"},b.map($=>re.createElement(OP,{rowCtrl:$,containerType:r.type,key:$.instanceId})));return re.createElement("div",{className:F,ref:q,role:"rowgroup"},A(),p?K():null)},BY=y.memo(IY),OY=()=>{const e=y.useContext(ao),{context:t,overlays:o}=e,[r,n]=y.useState(""),[i,s]=y.useState(0),[l,u]=y.useState(0),[d,h]=y.useState("0px"),[p,g]=y.useState("0px"),[v,b]=y.useState("100%"),[C,S]=y.useState("0px"),[k,F]=y.useState("0px"),[R,P]=y.useState("100%"),[T,D]=y.useState(!0),[M,O]=y.useState(!0),[I,z]=y.useState(null),[U,q]=y.useState(""),[A,K]=y.useState(null),[$,Z]=y.useState("ag-layout-normal"),W=y.useRef();W.current||(W.current=new lc(()=>_.current));const _=y.useRef(null),V=y.useRef(null),j=y.useRef(null),L=y.useRef(null),N=y.useRef(null),Y=y.useRef(null),ne=y.useRef(null),ge=y.useRef([]),Fe=y.useRef([]);cs(" AG Grid Body ",_),cs(" AG Pinned Top ",V),cs(" AG Sticky Top ",j),cs(" AG Middle ",Y),cs(" AG Pinned Bottom ",ne);const We=y.useCallback(Ee=>{if(_.current=Ee,!Ee||t.isDestroyed()){ge.current=t.destroyBeans(ge.current);for(const lt of Fe.current)lt();Fe.current=[];return}const ft=(lt,lo)=>{lt.appendChild(lo),Fe.current.push(()=>lo.remove())},Yt=lt=>{const lo=t.createBean(new lt);return ge.current.push(lo),lo},jo=(lt,lo,ds)=>{ft(lt,document.createComment(ds)),ft(lt,Yt(lo).getGui())};jo(Ee,mj," AG Fake Horizontal Scroll ");const Qt=o?.getOverlayWrapperCompClass();Qt&&jo(Ee,Qt," AG Overlay Wrapper "),N.current&&jo(N.current,bj," AG Fake Vertical Scroll ");const bi={setRowAnimationCssOnBodyViewport:n,setColumnCount:lt=>{_.current&&U8(_.current,lt)},setRowCount:lt=>{_.current&&W8(_.current,lt)},setTopHeight:s,setBottomHeight:u,setStickyTopHeight:h,setStickyTopTop:g,setStickyTopWidth:b,setTopInvisible:D,setBottomInvisible:O,setColumnMovingCss:(lt,lo)=>W.current.toggleCss(lt,lo),updateLayoutClasses:Z,setAlwaysVerticalScrollClass:z,setPinnedTopBottomOverflowY:q,setCellSelectableCss:(lt,lo)=>K(lo?lt:null),setBodyViewportWidth:lt=>{Y.current&&(Y.current.style.width=lt)},registerBodyViewportResizeListener:lt=>{if(Y.current){const lo=Dn(e,Y.current,lt);Fe.current.push(()=>lo())}},setStickyBottomHeight:S,setStickyBottomBottom:F,setStickyBottomWidth:P,setGridRootRole:lt=>Ee.setAttribute("role",lt)},Oa=t.createBean(new fj);ge.current.push(Oa),Oa.setComp(bi,Ee,Y.current,V.current,ne.current,j.current,L.current)},[]),Ge=y.useMemo(()=>nr("ag-root","ag-unselectable",$),[$]),Ue=y.useMemo(()=>nr("ag-body-viewport",r,$,I,A),[r,$,I,A]),Pe=y.useMemo(()=>nr("ag-body",$),[$]),Be=y.useMemo(()=>nr("ag-floating-top",T?"ag-invisible":null,A),[A,T]),Ne=y.useMemo(()=>nr("ag-sticky-top",A),[A]),at=y.useMemo(()=>nr("ag-sticky-bottom",C==="0px"?"ag-invisible":null,A),[A,C]),Go=y.useMemo(()=>nr("ag-floating-bottom",M?"ag-invisible":null,A),[A,M]),Dr=y.useMemo(()=>({height:i,minHeight:i,overflowY:U}),[i,U]),us=y.useMemo(()=>({height:d,top:p,width:v}),[d,p,v]),Le=y.useMemo(()=>({height:C,bottom:k,width:R}),[C,k,R]),ot=y.useMemo(()=>({height:l,minHeight:l,overflowY:U}),[l,U]),_t=Ee=>re.createElement(BY,{name:Ee,key:`${Ee}-container`}),ht=({section:Ee,children:ft,className:Yt,style:jo})=>re.createElement("div",{ref:Ee,className:Yt,role:"presentation",style:jo},ft.map(_t));return re.createElement("div",{ref:We,className:Ge},re.createElement(SY,null),ht({section:V,className:Be,style:Dr,children:["topLeft","topCenter","topRight","topFullWidth"]}),re.createElement("div",{className:Pe,ref:N,role:"presentation"},ht({section:Y,className:Ue,children:["left","center","right","fullWidth"]})),ht({section:j,className:Ne,style:us,children:["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"]}),ht({section:L,className:at,style:Le,children:["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"]}),ht({section:ne,className:Go,style:ot,children:["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"]}))},LY=y.memo(OY),NY=(e,t)=>{const{children:o,eFocusableElement:r,onTabKeyDown:n,gridCtrl:i,forceFocusOutWhenTabGuardsAreEmpty:s,isEmpty:l}=e,{context:u}=y.useContext(ao),d=y.useRef(null),h=y.useRef(null),p=y.useRef(),g=k=>{const F=k==null?void 0:parseInt(k,10).toString();for(const R of[d,h])F===void 0?R.current?.removeAttribute("tabindex"):R.current?.setAttribute("tabindex",F)};y.useImperativeHandle(t,()=>({forceFocusOutOfContainer(k){p.current?.forceFocusOutOfContainer(k)}}));const v=y.useCallback(()=>{const k=d.current,F=h.current;if(!k&&!F||u.isDestroyed()){p.current=u.destroyBean(p.current);return}if(k&&F){const R={setTabIndex:g};p.current=u.createBean(new oW({comp:R,eTopGuard:k,eBottomGuard:F,eFocusableElement:r,onTabKeyDown:n,forceFocusOutWhenTabGuardsAreEmpty:s,focusInnerElement:P=>i.focusInnerElement(P),isEmpty:l}))}},[]),b=y.useCallback(k=>{d.current=k,v()},[v]),C=y.useCallback(k=>{h.current=k,v()},[v]),S=k=>{const F=k==="top"?Lm.TAB_GUARD_TOP:Lm.TAB_GUARD_BOTTOM;return re.createElement("div",{className:`${Lm.TAB_GUARD} ${F}`,role:"presentation",ref:k==="top"?b:C})};return re.createElement(re.Fragment,null,S("top"),o,S("bottom"))},zY=y.forwardRef(NY),HY=y.memo(zY),VY=({context:e})=>{const[t,o]=y.useState(""),[r,n]=y.useState(""),[i,s]=y.useState(null),[l,u]=y.useState(null),[d,h]=y.useState(!1),[p,g]=y.useState(),v=y.useRef(),b=y.useRef(null),C=y.useRef(),[S,k]=y.useState(null),F=y.useRef(()=>{}),R=y.useRef(),P=y.useRef([]),T=y.useCallback(()=>{},[]);cs(" AG Grid ",b);const D=y.useCallback(q=>{if(b.current=q,v.current=q?e.createBean(new uW):e.destroyBean(v.current),!q||e.isDestroyed())return;const A=v.current;F.current=A.focusInnerElement.bind(A);const K={destroyGridUi:()=>{},setRtlClass:o,forceFocusOutOfContainer:$=>{if(!$&&R.current?.isDisplayed()){R.current.forceFocusOutOfContainer($);return}C.current?.forceFocusOutOfContainer($)},updateLayoutClasses:n,getFocusableContainers:()=>{const $=[],Z=b.current?.querySelector(".ag-root");Z&&$.push({getGui:()=>Z});for(const W of P.current)W.isDisplayed()&&$.push(W);return $},setCursor:s,setUserSelect:u};A.setComp(K,q,q),h(!0)},[]);y.useEffect(()=>{const q=v.current,A=b.current;if(!p||!q||!S||!A||e.isDestroyed())return;const K=[],{watermarkSelector:$,paginationSelector:Z,sideBarSelector:W,statusBarSelector:_,gridHeaderDropZonesSelector:V}=q.getOptionalSelectors(),j=[];if(V){const N=e.createBean(new V.component),Y=N.getGui();A.insertAdjacentElement("afterbegin",Y),j.push(Y),K.push(N)}if(W){const N=e.createBean(new W.component),Y=N.getGui(),ne=S.querySelector(".ag-tab-guard-bottom");ne&&(ne.insertAdjacentElement("beforebegin",Y),j.push(Y)),K.push(N),P.current.push(N)}const L=N=>{const Y=e.createBean(new N),ne=Y.getGui();return A.insertAdjacentElement("beforeend",ne),j.push(ne),K.push(Y),Y};if(_&&L(_.component),Z){const N=L(Z.component);R.current=N,P.current.push(N)}return $&&L($.component),()=>{e.destroyBeans(K);for(const N of j)N.remove()}},[p,S,e]);const M=y.useMemo(()=>nr("ag-root-wrapper",t,r),[t,r]),O=y.useMemo(()=>nr("ag-root-wrapper-body","ag-focus-managed",r),[r]),I=y.useMemo(()=>({userSelect:l??"",WebkitUserSelect:l??"",cursor:i??""}),[l,i]),z=y.useCallback(q=>{C.current=q,g(q!==null)},[]),U=y.useCallback(()=>!v.current?.isFocusable(),[]);return re.createElement("div",{ref:D,className:M,style:I,role:"presentation"},re.createElement("div",{className:O,ref:k,role:"presentation"},d&&S&&!e.isDestroyed()&&re.createElement(ao.Provider,{value:e.getBeans()},re.createElement(HY,{ref:z,eFocusableElement:S,onTabKeyDown:T,gridCtrl:v.current,forceFocusOutWhenTabGuardsAreEmpty:!0,isEmpty:U},re.createElement(LY,null)))))},GY=y.memo(VY),jY=class extends ue{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))}},LP={setGridApi:void 0,maxComponentCreationTimeMs:void 0,children:void 0},WY={gridOptions:void 0,modules:void 0,containerStyle:void 0,className:void 0,passGridApi:void 0,componentWrappingElement:void 0,...LP},NP=new Set(Object.keys(WY)),qY=new Set(Object.keys(LP)),zP=e=>{const t=y.useRef(),o=y.useRef(null),r=y.useRef(null),n=y.useRef([]),i=y.useRef([]),s=y.useRef(e),l=y.useRef(),u=y.useRef(),d=y.useRef(!1),[h,p]=y.useState(void 0),[,g]=y.useState(0),v=y.useRef(),b=R=>{const P=o.current?.classList,T=(D="")=>D.trim().split(/\s+/g).filter(Boolean);if(v.current!==R){for(const D of T(v.current))P?.contains(D)&&P.remove(D);for(const D of T(R))P?.contains(D)||P?.add(D);v.current=R}};y.useLayoutEffect(()=>{b(e.className)},[e.className]);const C=y.useCallback(R=>{if(o.current=R,b(e.className),!R){for(const A of n.current)A();n.current.length=0;return}const P=e.modules||[];r.current||(r.current=new uY(()=>g(A=>A+1),e.componentWrappingElement,e.maxComponentCreationTimeMs),n.current.push(()=>{r.current?.destroy(),r.current=null}));const T=$V(e.gridOptions,e,Object.keys(e).filter(A=>!NP.has(A))),D=()=>{if(d.current){const A=()=>l.current?.shouldQueueUpdates()?void 0:i.current.shift();let K=A();for(;K;)K(),K=A()}},M=new XY(D);l.current=M;const O=new jY,I={providedBeanInstances:{frameworkCompWrapper:new $Y(r.current,T),renderStatus:O},modules:P,frameworkOverrides:M,setThemeOnGridDiv:!0},z=A=>{p(A),A.createBean(O),n.current.push(()=>{A.destroy()}),A.getBean("ctrlsSvc").whenReady({addDestroyFunc:K=>{n.current.push(K)}},()=>{if(A.isDestroyed())return;const K=t.current;K&&e.passGridApi?.(K)})},U=A=>{A.getBean("ctrlsSvc").whenReady({addDestroyFunc:K=>{n.current.push(K)}},()=>{for(const K of i.current)K();i.current.length=0,d.current=!0})},q=new NK;T.gridId??(T.gridId=u.current),t.current=q.create(R,T,z,U,I),n.current.push(()=>{t.current=void 0}),t.current&&(u.current=t.current.getGridId())},[]),S=y.useMemo(()=>({height:"100%",...e.containerStyle||{}}),[e.containerStyle]),k=y.useCallback(R=>{d.current&&!l.current?.shouldQueueUpdates()?R():i.current.push(R)},[]);y.useEffect(()=>{const R=UY(s.current,e);s.current=e,k(()=>{t.current&&KV(R,t.current)})},[e]);const F=!re.useSyncExternalStore||Yd(e,"renderingMode")==="legacy"?"legacy":"default";return re.createElement("div",{style:S,ref:C},re.createElement(FP.Provider,{value:F},h&&!h.isDestroyed()?re.createElement(GY,{key:h.instanceId,context:h}):null,r.current?.getPortals()??null))};function UY(e,t){const o={};for(const r of Object.keys(t)){if(NP.has(r)){qY.has(r)&&pe(274,{prop:r});continue}const n=t[r];e[r]!==n&&(o[r]=n)}return o}var $Y=class extends zK{constructor(e,t){super(),this.parent=e,this.gridOptions=t}createWrapper(e,t){const o=this.gridOptions;if(Yd(o,"reactiveCustomComponents")){const s=(l=>{switch(l){case"filter":return Yd(o,"enableFilterHandlers")?tY:eY;case"floatingFilterComponent":return Yd(o,"enableFilterHandlers")?nY:rY;case"dateComponent":return QZ;case"dragAndDropImageComponent":return JZ;case"loadingOverlayComponent":case"noRowsOverlayComponent":case"activeOverlay":return YZ;case"statusPanel":return aY;case"toolPanel":return lY;case"menuItem":return sY;case"cellRenderer":return ZZ;case"innerHeaderComponent":return iY}})(t.name);if(s)return new s(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":Hv();break}const n=!t.cellRenderer&&t.name!=="toolPanel";return new MP(e,this.parent,t,n)}},KY=y.forwardRef((e,t)=>{const o=y.useContext(ao),{registry:r,context:n,gos:i,rowModel:s}=o,[l,u]=y.useState(()=>new ir),[d,h]=y.useState(()=>new ir),[p,g]=y.useState(),[v,b]=y.useState(),C=y.useRef(),S=y.useRef(null),k=y.useRef(),F=y.useMemo(()=>kV(e.api.getGridId(),p?.rowModelType??"clientSide"),[e]),R=y.useMemo(()=>l.toString()+" ag-details-row",[l]),P=y.useMemo(()=>d.toString()+" ag-details-grid",[d]);t&&y.useImperativeHandle(t,()=>({refresh(){return C.current?.refresh()??!1}})),e.template&&pe(230);const T=y.useCallback(M=>{if(S.current=M,!M||n.isDestroyed()){C.current=n.destroyBean(C.current),k.current?.();return}const O={toggleCss:(z,U)=>u(q=>q.setClass(z,U)),toggleDetailGridCss:(z,U)=>h(q=>q.setClass(z,U)),setDetailGrid:z=>g(z),setRowData:z=>b(z),getGui:()=>S.current},I=r.createDynamicBean("detailCellRendererCtrl",!0);if(I&&(n.createBean(I),I.init(O,e),C.current=I,i.get("detailRowAutoHeight"))){const z=()=>{if(S.current==null)return;const U=S.current.clientHeight;U!=null&&U>0&&setTimeout(()=>{e.node.setRowHeight(U),(Qi(i)||yk(i))&&s.onRowHeightChanged()},0)};k.current=Dn(o,M,z),z()}},[]),D=y.useCallback(M=>{C.current?.registerDetailWithMaster(M)},[]);return re.createElement("div",{className:R,ref:T},p&&re.createElement(zP,{className:P,...p,modules:F,rowData:v,passGridApi:D}))}),XY=class extends cR{constructor(e){super("react"),this.processQueuedUpdates=e,this.queueUpdates=!1,this.renderingEngine="react",this.frameworkComponents={agGroupCellRenderer:TP,agGroupRowRenderer:TP,agDetailCellRenderer:KY},this.wrapIncoming=(t,o)=>o==="ensureVisible"?WZ(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 jZ()}},HP=class extends y.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 re.createElement(zP,{...this.props,passGridApi:this.setGridApi})}};const ZY=Cn(e=>{const{column:t,mockTypes:o,onUpdate:r}=e,[n,i]=re.useState(t.selectedMock?.name||"");re.useEffect(()=>{i(t.selectedMock?.name||"")},[t.selectedMock?.name]);const s=o.filter(l=>l.type.includes(t.mockMatch)&&l.name.toLowerCase().includes(n.toLowerCase())).sort((l,u)=>l.name.localeCompare(u.name));return oe.jsx("div",{style:{width:"100%",minWidth:0,display:"flex",alignItems:"center",height:"100%"},children:oe.jsx(Wl,{disabled:!t.include,clearable:!0,size:"small",placeholder:"Select mock type",selectedOptions:t.selectedMock?[t.selectedMock.name]:[],value:n,onChange:l=>i(l.target.value),style:{width:"100%",minWidth:0},onOptionSelect:(l,u)=>{if(!u.optionValue){t.selectedMock=void 0,t.selectedValues=[],t.fixedValue=void 0,i(""),r(t);return}const d=o.find(h=>h.name===u.optionValue);if(d){const h=t.selectedMock?.name;t.selectedMock=d,h!==d.name&&(t.selectedValues=[],t.fixedValue=void 0),i(d.name),r(t)}},children:s.map(l=>oe.jsx(Gl,{value:l.name,text:l.name,children:l.name},l.name))})})});class YY{table;fields;constructor(t,o){this.table=t,this.fields=o,Bu(this)}get jsonString(){return JSON.stringify(this.fields?.filter(t=>t.include&&t.selectedMock&&!t.selectedMock.fixed).map(t=>({name:t.logicalName,type:t.selectedMock?.mockName||t.selectedMock?.name||"",percentBlank:t.percBlank,...t.selectedMock?.parameters?.reduce((o,r)=>(r.value!==void 0&&(o[r.name]=r.value),o),{})??{},...(t.type==="Picklist"||t.type==="Lookup")&&t.selectedValues.length>0?{values:t.selectedValues.map(o=>o.value),selectionStyle:"random"}:{}}))??[])}}class QY{logicalName;metadataId;type;displayName;include=!1;maxLength;detailsRetrieved=!1;fieldDetails=[];selectedMock;percBlank=0;selectedValues=[];choiceValues=[];parentTable;fixedValue;get dbField(){switch(this.type){case"Lookup":case"Owner":return this.logicalName+"@odata.bind";default:return this.logicalName}}constructor(t,o,r,n){this.logicalName=t,this.metadataId=o,this.type=r,this.displayName=n,Bu(this)}get mockMatch(){switch(this.type){case"String":case"Memo":return"string";case"BigInt":case"Integer":case"Double":case"Decimal":case"Money":return"integer";case"DateTime":return"datetime";case"Boolean":return"boolean";case"Picklist":return"picklist";case"Lookup":return"lookup";default:return"Unknown"}}}class ln{label;value;constructor(t,o){this.label=t,this.value=o}}function JY(e,t){const[o,r]=y.useState(e);return y.useEffect(()=>{const n=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(n)}},[e,t]),o}const eQ=Cn(e=>{const{dvSvc:t,vm:o,utils:r,column:n,onLog:i}=e,[s,l]=y.useState(""),[u,d]=y.useState("Loading..."),[h,p]=y.useState([]),[g,v]=y.useState(!1),[b,C]=y.useState(null),S=JY(s,300);y.useEffect(()=>{s&&s.length>=1&&(i(`Debounced search query: ${s}`,"info"),k(s))},[S]);const k=async R=>{if(i(`Searching for owners with query: ${R}`,"info"),l(R),v(!0),d("Searching..."),R.length<1){v(!1),p([]);return}await t.getLookupValues(n.parentTable?.setName||"",n.parentTable?.primaryNameColumn||"",n.parentTable?.primaryIdColumn||"",R).then(P=>{P.length===0?d("No results found"):(v(!1),p(P))}).catch(P=>{r.alert("Error",`Error searching owners: ${P.message||P}`),v(!1)})},F=(R,P)=>{C(R),l(""),p([]),v(!1),e.updateSelected(new ln(P,R))};return oe.jsxs("div",{style:{position:"relative",width:"100%"},children:[oe.jsx(Pn,{label:`Add ${n.parentTable?.label||"item"}`,children:oe.jsx(Ax,{placeholder:"Search...",value:s,onChange:(R,P)=>l(P.value)})}),g&&oe.jsx("div",{style:{position:"absolute",top:"100%",left:0,right:0,maxHeight:"200px",overflowY:"auto",backgroundColor:$s.colorNeutralBackground1,border:`1px solid ${$s.colorNeutralStroke1}`,borderRadius:"4px",zIndex:1e3,boxShadow:"0 4px 8px rgba(0,0,0,0.1)",padding:"8px"},children:u||"Loading..."}),h.length>0&&s.length>0&&oe.jsx("div",{style:{position:"absolute",top:"100%",left:0,right:0,maxHeight:"200px",overflowY:"auto",backgroundColor:$s.colorNeutralBackground1,border:`1px solid ${$s.colorNeutralStroke1}`,borderRadius:"4px",zIndex:1e3,boxShadow:"0 4px 8px rgba(0,0,0,0.1)"},children:h.map(R=>oe.jsx(ii,{onClick:()=>F(R.value,R.label),style:{cursor:"pointer",backgroundColor:b===R.value?$s.colorNeutralBackground1Hover:$s.colorNeutralBackground1,display:"flex",alignItems:"center",padding:"8px"},children:oe.jsx("div",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:R.label})},R.value))})]})}),tQ=Cn(e=>{const{dvSvc:t,vm:o,dialogOpen:r,column:n,utils:i,onLog:s,onDialogClose:l}=e,[u,d]=re.useState([]);re.useEffect(()=>{(async()=>r&&(n.parentTable||await t.getTableInfo(o.selectedTable.logical,n.logicalName).then(g=>{if(g){const v=o.tables.find(b=>b.logical===g);v?n.parentTable=v:i.alert("No Parent table found",`Parent table ${g} not found in loaded tables.`)}})))()},[r]);const h=(p,{value:g})=>{d(u.filter(v=>v.value!==g))};return oe.jsx(Md,{open:r,onOpenChange:p=>l(),children:oe.jsx(Bd,{children:oe.jsxs(_d,{children:[oe.jsxs(Id,{children:["Configure lookup - ",n.displayName]}),oe.jsx(Od,{children:oe.jsxs("div",{style:{minHeight:"300px"},children:[oe.jsx(eQ,{dvSvc:t,vm:o,utils:i,onLog:s,column:n,updateSelected:p=>{if(n.selectedMock?.fixed){d([p]);return}u.some(g=>g.value===p.value)||d([...u,p])}}),oe.jsx(Pn,{label:`Selected ${n.parentTable?.label||"item"}${n.selectedMock?.fixed?"":"s"}`,children:oe.jsx(Mx,{onDismiss:h,children:u.map(p=>oe.jsx(Dx,{shape:"rounded",dismissible:!0,dismissIcon:{"aria-label":"remove"},media:oe.jsx(xS,{"aria-hidden":!0,name:p.label,color:"colorful"}),value:p.value,title:p.label,primaryText:p.label,children:p.value},p.value))})})]})}),oe.jsxs(Ad,{children:[oe.jsx(So,{appearance:"primary",disabled:u.length===0,onClick:()=>{n.selectedMock?.fixed?n.selectedValues=u.length>0?[u[0]]:[]:n.selectedValues=u,l()},children:"Select"}),oe.jsx(ql,{disableButtonEnhancement:!0,children:oe.jsx(So,{appearance:"secondary",children:"Close"})})]})]})})})}),oQ=Cn(e=>{const{dvSvc:t,vm:o,utils:r,onLog:n,openConfig:i,closeConfig:s,column:l,onUpdate:u}=e,[d,h]=re.useState(i),[p,g]=re.useState({}),[v,b]=re.useState([]),[C,S]=re.useState([]),[k,F]=re.useState(!1),[R,P]=re.useState(),T=!!l.selectedMock?.fixed&&l.mockMatch==="string"&&!!l.selectedMock?.type?.includes("string");re.useEffect(()=>{i?(l.selectedMock?.type!=="lookup"&&h(!0),l.selectedMock?.type==="lookup"&&F(!0)):(h(!1),F(!1),(l.selectedMock?.type==="boolean"||T)&&P(l.fixedValue))},[i,l.selectedMock?.type,l.fixedValue,T]),re.useEffect(()=>{(async()=>{if(l.selectedMock?.type==="picklist"){const z=await t.getChoiceValues(o.selectedTable?.logical||"",l.logicalName);l.choiceValues=z,S(z),l.selectedValues&&l.selectedValues.length>0&&b(l.selectedValues.map(U=>U.value))}else if(l.selectedMock?.type==="boolean"){let z=[];try{z=await t.getBooleanValues(o.selectedTable?.logical||"",l.logicalName)}catch{z=[new ln("False","false"),new ln("True","true")]}if(S(z),l.fixedValue!==void 0){const U=l.fixedValue===!0||`${l.fixedValue}`.toLowerCase()==="true"||`${l.fixedValue}`=="1",q=U?["true","1"]:["false","0"],A=z.find(K=>q.includes(K.value.toLowerCase()));b([A?.value||(U?"true":"false")])}else b([])}})()},[l.selectedMock,t,o.selectedTable?.logical,l.logicalName,l.fixedValue]);function D(){if(l.selectedMock&&l.selectedMock.parameters){const I=l.selectedMock.parameters.map(z=>({...z,value:p[z.name]??z.default}));l.selectedMock={...l.selectedMock,parameters:I}}if(l.selectedMock?.type==="picklist"&&(l.selectedValues=v.map(I=>{const z=l.choiceValues.find(U=>U.value===I);return z||{label:I.toString(),value:I.toString()}})),l.selectedMock?.type==="boolean"){const I=v[0]?.toString().toLowerCase();if(I!==void 0){l.fixedValue=I==="true"||I==="1";const z=C.find(U=>U.value.toLowerCase()===I);l.selectedValues=[z??new ln(l.fixedValue?"True":"False",l.fixedValue?"true":"false")]}else if(l.fixedValue=R,R!==void 0){const z=R?"true":"false",U=C.find(q=>q.value.toLowerCase()===z);l.selectedValues=[U??new ln(R?"True":"False",R?"true":"false")]}}if(T){const I=R!=null?String(R):"";l.fixedValue=I,l.selectedValues=I?[new ln(I,I)]:[]}u(l),h(!1),s()}const M=oe.jsx(Zg,{"aria-label":"Picklist Values",selectionMode:l.selectedMock?.fixed?"single":"multiselect",style:{maxHeight:"200px",overflowY:"auto"},selectedItems:v,onSelectionChange:(I,z)=>b(z.selectedItems),children:C.map(I=>oe.jsx(Yg,{value:I.value,children:I.label},I.value))}),O=oe.jsx(Md,{open:d,onOpenChange:()=>h(!1),children:oe.jsx(Bd,{children:oe.jsxs(_d,{children:[oe.jsxs(Id,{children:["Configure Mock Options - ",l.displayName]}),oe.jsx(Od,{children:oe.jsxs("div",{children:[Array.isArray(l.selectedMock?.parameters)&&l.selectedMock.parameters.map((I,z)=>{const U=I?.name??`param_${z}`,q=I?.description||I?.name||U,A=I?.type,K=I?.default,$=A==="boolean",Z=A==="number"||A==="integer"||A==="decimal";return oe.jsxs("div",{style:{marginBottom:"12px"},children:[$&&oe.jsx(Fd,{label:q,checked:p[U]??K??!1,onChange:(W,_)=>{g({...p,[U]:_.checked})}})," ",Z&&oe.jsx(Pn,{label:q,size:"small",children:oe.jsx(oa,{size:"small",type:Z?"number":"text",value:p[U]??K??"",onChange:W=>{let _=W.target.value;if(Z){const V=parseFloat(W.target.value);_=isNaN(V)?0:V}g({...p,[U]:_})}})}),!$&&!Z&&oe.jsx(Pn,{label:q,children:oe.jsx(oa,{size:"small",type:"text",value:p[U]??K??"",onChange:W=>{g({...p,[U]:W.target.value})}})})]},U)}),l.selectedMock?.type==="boolean"&&oe.jsx(Pn,{label:"Choose Value",children:oe.jsx(Zg,{"aria-label":"Boolean Values",selectionMode:"single",selectedItems:v,onSelectionChange:(I,z)=>b(z.selectedItems),children:C.map(I=>oe.jsx(Yg,{value:I.value,children:I.label},I.value))})}),T&&oe.jsx(Pn,{label:"Enter Fixed String",size:"small",children:oe.jsx(oa,{size:"small",type:"text",value:R??"",onChange:I=>P(I.target.value)})}),l.selectedMock?.type==="picklist"&&oe.jsx("div",{children:M})]})}),oe.jsxs(Ad,{children:[oe.jsx(So,{appearance:"primary",onClick:D,children:"Save"}),oe.jsx(So,{appearance:"secondary",onClick:()=>{h(!1),s()},children:"Cancel"})]})]})})});return oe.jsxs("div",{children:[O,oe.jsx(tQ,{dvSvc:t,vm:o,utils:r,dialogOpen:k,column:l,onLog:n,onDialogClose:s})]})}),rQ=Cn(e=>{const{dvSvc:t,column:o,vm:r,utils:n,onUpdate:i,onLog:s}=e,[l,u]=re.useState(!1),d=!!o.selectedMock?.fixed&&o.mockMatch==="string"&&!!o.selectedMock?.type?.includes("string");re.useEffect(()=>{(!o.include||!o.selectedMock)&&(o.selectedValues.length>0||o.fixedValue!==void 0)&&(o.selectedValues=[],o.fixedValue=void 0,i(o))},[o,o.include,o.selectedMock,o.selectedValues.length,o.fixedValue,i]);const h=o.include&&o.selectedMock&&o.selectedValues.length>0?o.selectedValues.map(p=>p.label).join(", "):o.include&&o.selectedMock?.type==="boolean"&&o.fixedValue!==void 0||o.include&&d&&o.fixedValue!==void 0?String(o.fixedValue):"";return oe.jsxs("div",{style:{verticalAlign:"top"},children:[oe.jsx(oQ,{dvSvc:t,vm:r,utils:n,openConfig:l,closeConfig:()=>u(!1),column:o,onUpdate:i,onLog:s}),oe.jsx(So,{onClick:()=>u(!0),icon:oe.jsx(UO,{}),disabled:!o.include||!o.selectedMock||o.selectedMock.type!=="picklist"&&o.selectedMock.type!=="lookup"&&(!o.selectedMock.parameters||o.selectedMock.parameters.length===0)&&!(o.selectedMock.type==="boolean"&&o.selectedMock.fixed)&&!d,size:"small",style:{marginLeft:"8px"}}),oe.jsx("span",{children:h})]})}),Ba="mockarooSavedConfigs",Rc="mockarooSavedDatasets";fk.registerModules([uP,kP,wP,CP]);const nQ=$p({listbox:{maxHeight:"300px",overflowY:"auto",overflowX:"hidden"},option:{height:"32px"},toolbar:{justifyContent:"space-between"},leftToolbarGroup:{alignItems:"center"}}),iQ=Cv.withParams({headerHeight:"30px"}),sQ=re.memo(rQ),aQ=Cn(e=>{const{connection:t,dvSvc:o,utils:r,viewModel:n,onLog:i}=e,s=nQ(),[l,u]=re.useState(!1),[d,h]=re.useState(n.mockarooApiKey),[p,g]=re.useState(n.selectedTable?.label||""),[v,b]=re.useState(""),[C,S]=re.useState([]),k=re.useRef(!1),[F,R]=re.useState([]);re.useEffect(()=>{t&&R([{headerName:"Column Name",field:"displayName",sortable:!0,sort:"asc",filter:!0,resizable:!0,width:200},{headerName:"Logical",field:"logicalName",sortable:!0,filter:!0,resizable:!0,width:200},{headerName:"Type",field:"type",sortable:!0,filter:!0,resizable:!0,width:200},{headerName:"Include",field:"include",sortable:!0,filter:!0,resizable:!1,width:100,cellEditor:"agCheckboxCellEditor",cellRenderer:"agCheckboxCellRenderer",editable:!0},{headerName:"Mock Type",field:"selectedMock.name",sortable:!0,filter:!0,minWidth:200,resizable:!0,flex:1,cellRenderer:A=>A.data?oe.jsx(ZY,{column:A.data,mockTypes:n.mockTypes,onUpdate:P}):null},{headerName:"Config",headerTooltip:"Additional configuration for the selected mock type",field:"selectedMock.parameters",sortable:!1,filter:!0,resizable:!0,cellRenderer:A=>A.data?oe.jsx(sQ,{dvSvc:o,vm:n,utils:r,column:A.data,onUpdate:P,onLog:i},A.data.logicalName):null},{headerName:"Perc % Blank",field:"percBlank",headerTooltip:"Percentage of blank values to generate for this field",sortable:!0,width:100,cellEditor:"agNumberCellEditor",cellEditorParams:{min:0,max:100},editable:A=>A.data?.selectedMock!==void 0}])},[t,o,n.mockTypes]),re.useEffect(()=>{(async()=>{if(!k.current){if(u(!0),!t){u(!1);return}if(n.selectedTable){if(n.config&&n.config.table.logical===n.selectedTable.logical){u(!1);return}if(n.selectedTable)try{const K=await o.loadConfig(n.selectedTable);n.config=K}catch(K){i("Failed to load configuration","error"),console.error(K)}finally{u(!1)}}else u(!1)}})()},[t,n.selectedTable,o,i]),re.useEffect(()=>{h(n.mockarooApiKey)},[n.mockarooApiKey]),re.useEffect(()=>{g(n.selectedTable?.label||"")},[n.selectedTable]),re.useEffect(()=>{(async()=>{const K=await window.toolboxAPI.settings.get(Ba)||{},$=Object.keys(K).sort((Z,W)=>Z.localeCompare(W));S($)})()},[]);function P(A){}const T=(A,K)=>{if(!K.optionValue){n.selectedTable=void 0,n.config=void 0,g("");return}const $=n.tables.find(Z=>Z.logical===K.optionValue);n.selectedTable=$,g($?.label||"")},D=n.tables.filter(A=>A.label.toLowerCase().includes(p.toLowerCase())||A.logical.toLowerCase().includes(p.toLowerCase()));async function M(){if(!n.selectedTable||!n.config?.fields){window.toolboxAPI.utils.showNotification({title:"No Configuration To Save",body:"Please select a table and configure fields before exporting.",type:"warning"});return}const A=v.trim();if(!A){window.toolboxAPI.utils.showNotification({title:"Config Name Required",body:"Enter a config name before saving.",type:"warning"});return}try{const K={version:1,tableLogical:n.selectedTable.logical,tableLabel:n.selectedTable.label,rowCount:n.rowCount,fields:n.config.fields.filter(W=>W.include).map(W=>({logicalName:W.logicalName,include:W.include,percBlank:W.percBlank,selectedMockName:W.selectedMock?.name,selectedValues:W.selectedValues?.map(_=>({label:_.label,value:_.value}))??[],fixedValue:W.fixedValue,parentTableLogical:W.parentTable?.logical,parentTableSetName:W.parentTable?.setName,parameters:W.selectedMock?.parameters?.reduce((_,V)=>(_[V.name]=V.value,_),{})??{}}))},$=await window.toolboxAPI.settings.get(Ba)||{};$[A]=K,await window.toolboxAPI.settings.set(Ba,$);const Z=Object.keys($).sort((W,_)=>W.localeCompare(_));S(Z),b(A),window.toolboxAPI.utils.showNotification({title:"Configuration Saved",body:`Configuration '${A}' saved to tool settings.`,type:"success"}),i(`Configuration '${A}' saved`,"success")}catch(K){console.error(K),i("Failed to save configuration","error"),window.toolboxAPI.utils.showNotification({title:"Save Failed",body:`Unable to save configuration: ${String(K)}`,type:"error"})}}async function O(A){try{const K=[],$=(A??v).trim();if(!$){window.toolboxAPI.utils.showNotification({title:"Config Name Required",body:"Enter or select a config name before loading.",type:"warning"});return}const W=(await window.toolboxAPI.settings.get(Ba)||{})[$];if(!W){window.toolboxAPI.utils.showNotification({title:"Configuration Not Found",body:`No saved configuration named '${$}'.`,type:"warning"});return}if(!W||!Array.isArray(W.fields)||!W.tableLogical)throw new Error("Invalid configuration format");const _=n.tables.find(Y=>Y.logical===W.tableLogical);if(!_){K.push(`Table '${W.tableLogical}' was not found in this environment.`);const Y=K.join(" ");i(Y,"warning"),window.toolboxAPI.utils.showNotification({title:"Configuration Loaded With Warnings",body:Y,type:"warning",duration:1e4});return}k.current=!0,u(!0),n.selectedTable=_;const V=await o.loadConfig(_),j=new Map(W.fields.map(Y=>[Y.logicalName,Y])),L=new Set((V.fields??[]).map(Y=>Y.logicalName)),N=W.fields.map(Y=>Y.logicalName).filter(Y=>!L.has(Y));if(N.length>0&&K.push(`Fields not found: ${N.join(", ")}.`),V.fields?.forEach(Y=>{const ne=j.get(Y.logicalName);if(ne){if(Y.include=!!ne.include,Y.percBlank=Number.isFinite(ne.percBlank)?ne.percBlank:0,Y.fixedValue=ne.fixedValue,Y.selectedValues=ne.selectedValues?.map(ge=>({label:String(ge.label),value:String(ge.value)}))??[],ne.selectedMockName){const ge=n.mockTypes.find(Fe=>Fe.name===ne.selectedMockName);ge&&(Y.selectedMock={...ge,parameters:ge.parameters?.map(Fe=>({...Fe,value:ne.parameters&&Object.prototype.hasOwnProperty.call(ne.parameters,Fe.name)?String(ne.parameters[Fe.name]??""):Fe.value}))})}if(Y.type==="Lookup"&&ne.parentTableLogical){const ge=n.tables.find(Fe=>Fe.logical===ne.parentTableLogical);ge?Y.parentTable=ge:ne.parentTableSetName&&(Y.parentTable={logical:ne.parentTableLogical,setName:ne.parentTableSetName})}}}),n.config=V,Number.isFinite(W.rowCount)&&W.rowCount>0&&(n.rowCount=W.rowCount),K.length>0){const Y=`Configuration loaded with warnings: ${K.join(" ")}`;i(Y,"warning"),window.toolboxAPI.utils.showNotification({title:"Configuration Loaded With Warnings",body:Y,type:"warning",duration:12e3})}else window.toolboxAPI.utils.showNotification({title:"Configuration Loaded",body:`Loaded saved config '${$}'.`,type:"success"}),i(`Configuration '${$}' loaded`,"success")}catch(K){console.error(K),i("Failed to import configuration","error"),window.toolboxAPI.utils.showNotification({title:"Import Failed",body:`Unable to load configuration: ${String(K)}`,type:"error"})}finally{k.current=!1,u(!1)}}function I(A){n.mockarooApiKey=A,window.toolboxAPI.settings.set("mockarooApiKey",A),window.toolboxAPI.utils.showNotification({title:"Mockaroo API Key Saved",body:"Your Mockaroo API key has been saved successfully.",type:"success"})}const z=oe.jsx(oe.Fragment,{children:oe.jsx("div",{style:{width:"98vw",height:"85vh",position:"relative"},children:oe.jsx(HP,{theme:iQ,rowData:n.config?.fields||[],columnDefs:F,domLayout:"normal"})})}),U=oe.jsx(oe.Fragment,{children:D.map(A=>oe.jsxs(Gl,{value:A.logical,text:`${A.label} [${A.logical}]`,checkIcon:null,children:[oe.jsx("span",{children:A.label}),oe.jsxs("span",{style:{fontSize:"11px",opacity:.75,marginLeft:"6px"},children:["[",A.logical,"]"]})]},A.id))}),q=oe.jsx("div",{style:{overflow:"visible",position:"relative",zIndex:1e3,paddingBottom:"10px"},children:oe.jsxs(Ex,{className:s.toolbar,children:[oe.jsxs(Xg,{className:s.leftToolbarGroup,children:[oe.jsx(Wl,{disabled:!n.tables||n.tables.length===0,placeholder:"Select a table",listbox:{className:s.listbox,style:{maxHeight:"300px"}},positioning:{position:"below",align:"start",offset:{crossAxis:0,mainAxis:4}},onOptionSelect:T,selectedOptions:n.selectedTable?[n.selectedTable.logical]:[],value:p,onChange:A=>g(A.target.value),style:{width:"200px"},size:"small",clearable:!0,children:U}),oe.jsx(So,{size:"small",appearance:"secondary",icon:oe.jsx(KO,{}),"aria-label":"Save Mock Config",title:"Save Mock Config",onClick:M,style:{marginLeft:"8px"}}),oe.jsx(Wl,{size:"small",placeholder:"Saved config",value:v,onChange:A=>b(A.target.value),onOptionSelect:(A,K)=>{const $=K.optionValue||"";b($),$&&O($)},style:{width:"160px",marginLeft:"8px"},listbox:{className:s.listbox,style:{maxHeight:"240px"}},children:C.map(A=>oe.jsx(Gl,{value:A,text:A,children:A},A))})]}),oe.jsxs(Xg,{children:[oe.jsx(Pn,{size:"small",label:"Mockaroo Key",children:oe.jsx(oa,{size:"small",placeholder:"Enter API key",value:d,style:{width:"100px",marginRight:"5px"},onChange:A=>h(A.target.value),onBlur:()=>I(d.trim())})}),oe.jsx(Pn,{size:"small",label:"No. of Rows ",children:oe.jsx(oa,{size:"small",type:"number",width:100,placeholder:"Number of records",value:n.rowCount.toString(),style:{width:"80px"},onChange:A=>{n.rowCount=parseInt(A.target.value)}})})]})]})});return oe.jsxs("div",{style:{overflow:"visible",position:"relative",height:"100%"},children:[q,l&&oe.jsx("div",{style:{padding:"20px"},children:oe.jsx(qg,{label:"Loading configuration..."})}),!l&&n.config&&z]})});fk.registerModules([uP,kP,wP,CP,YK,GZ]);const lQ=Cv.withParams({headerHeight:"30px"}),cQ=Cn(e=>{const{viewModel:t}=e,o=re.useMemo(()=>t.config?.fields?.filter(r=>r.include&&r.selectedMock).map(r=>({headerName:r.displayName||r.logicalName,field:r.logicalName,sortable:!0,filter:!0,resizable:!0,width:200,flex:1,wrapText:!0,autoHeight:!0}))||[],[t.config?.fields]);return oe.jsx("div",{style:{width:"98vw",height:"85vh"},children:oe.jsx(HP,{theme:lQ,rowData:t.data||[],columnDefs:o,domLayout:"autoHeight"})})}),uQ=$p({container:{padding:"12px",display:"flex",flexDirection:"column",gap:"10px",height:"100%",minHeight:0},controls:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"},lists:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px",flex:1,minHeight:0},pane:{border:"1px solid #444",borderRadius:"4px",padding:"8px",minHeight:0,height:"100%",overflowY:"auto"},heading:{fontWeight:"600",marginBottom:"8px"},item:{border:"1px solid #555",borderRadius:"4px",padding:"6px 8px",marginBottom:"6px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",cursor:"grab",backgroundColor:"#1f1f1f"},dropZone:{border:"1px dashed #666",borderRadius:"4px",padding:"10px",textAlign:"center",color:"#aaa",marginTop:"8px"},orderText:{opacity:.8,marginRight:"6px",minWidth:"20px"},itemTextWrap:{display:"flex",flexDirection:"column",minWidth:0},itemTitle:{display:"flex",alignItems:"center",minWidth:0},itemInlineMeta:{opacity:.75,fontSize:"11px",marginLeft:"8px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},itemSubText:{opacity:.75,fontSize:"11px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}),dQ=Cn(e=>{const{viewModel:t,onLog:o,onRunDataset:r,runningDataset:n}=e,i=uQ(),[s,l]=re.useState([]),[u,d]=re.useState([]),[h,p]=re.useState(t.selectedDatasetName||""),[g,v]=re.useState([]),[b,C]=re.useState({}),[S,k]=re.useState(null),F=re.useCallback(async()=>{const M=await window.toolboxAPI.settings.get(Ba)||{},O=await window.toolboxAPI.settings.get(Rc)||{};l(Object.keys(M).sort((z,U)=>z.localeCompare(U)));const I={};Object.entries(M).forEach(([z,U])=>{const q=U.tableLabel||U.tableLogical;I[z]=`${q} [${U.tableLogical}] - ${U.rowCount} rows`}),C(I),d(Object.keys(O).sort((z,U)=>z.localeCompare(U)))},[t]);re.useEffect(()=>{F()},[F]);const R=M=>{S&&(v(O=>{let I=[...O];if(S.source==="available")I.includes(S.name)||(M===void 0||M<0||M>I.length?I.push(S.name):I.splice(M,0,S.name));else{const z=S.index??I.indexOf(S.name);if(z>=0){const[U]=I.splice(z,1);if(M===void 0||M<0||M>I.length)I.push(U);else{const q=z<M?M-1:M;I.splice(q,0,U)}}}return I}),k(null))},P=async()=>{const M=h.trim();if(!M){window.toolboxAPI.utils.showNotification({title:"Dataset Name Required",body:"Enter a dataset name before saving.",type:"warning"});return}if(g.length===0){window.toolboxAPI.utils.showNotification({title:"No Configs In Dataset",body:"Drag one or more saved configs into the ordered list.",type:"warning"});return}const O=g.filter(z=>!s.includes(z));if(O.length>0){window.toolboxAPI.utils.showNotification({title:"Invalid Config Names",body:`These configs were not found: ${O.join(", ")}`,type:"warning"});return}const I=await window.toolboxAPI.settings.get(Rc)||{};I[M]={version:1,configNames:[...g]},await window.toolboxAPI.settings.set(Rc,I),d(Object.keys(I).sort((z,U)=>z.localeCompare(U))),p(M),t.selectedDatasetName=M,window.toolboxAPI.utils.showNotification({title:"Dataset Saved",body:`Dataset '${M}' saved with ${g.length} config(s).`,type:"success"}),o(`Dataset '${M}' saved`,"success")},T=async M=>{const I=(await window.toolboxAPI.settings.get(Rc)||{})[M];p(M),v(I?.configNames||[]),t.selectedDatasetName=M},D=M=>{v(O=>O.filter(I=>I!==M))};return oe.jsxs("div",{className:i.container,children:[oe.jsxs("div",{className:i.controls,children:[oe.jsx(Wl,{size:"small",placeholder:"Dataset",value:h,onChange:M=>{const O=M.target.value;p(O),O||(v([]),t.selectedDatasetName="")},onOptionSelect:(M,O)=>{const I=O.optionValue||"";I?T(I):(p(""),v([]),t.selectedDatasetName="")},style:{width:"220px"},clearable:!0,children:u.map(M=>oe.jsx(Gl,{value:M,text:M,children:M},M))}),oe.jsx(So,{size:"small",appearance:"secondary",onClick:()=>{P()},children:"Save Dataset"}),oe.jsx(So,{size:"small",appearance:"primary",disabled:n||!t.selectedDatasetName,onClick:()=>{r()},children:"Run Dataset"})]}),oe.jsxs("div",{className:i.lists,children:[oe.jsxs("div",{className:i.pane,children:[oe.jsx("div",{className:i.heading,children:"Saved Configs"}),s.map(M=>oe.jsx("div",{className:i.item,draggable:!0,onDragStart:()=>k({source:"available",name:M}),title:"Drag into ordered list",children:oe.jsx("div",{className:i.itemTextWrap,children:oe.jsxs("div",{className:i.itemTitle,children:[oe.jsx("span",{children:M}),oe.jsx("span",{className:i.itemInlineMeta,children:b[M]||"Unknown table"})]})})},M))]}),oe.jsxs("div",{className:i.pane,onDragOver:M=>M.preventDefault(),onDrop:M=>{M.preventDefault(),R()},children:[oe.jsx("div",{className:i.heading,children:"Dataset Order"}),g.map((M,O)=>oe.jsxs("div",{className:i.item,draggable:!0,onDragStart:()=>k({source:"ordered",name:M,index:O}),onDragOver:I=>I.preventDefault(),onDrop:I=>{I.preventDefault(),R(O)},title:"Drag to reorder",children:[oe.jsx("div",{className:i.itemTextWrap,children:oe.jsxs("div",{className:i.itemTitle,children:[oe.jsxs("span",{className:i.orderText,children:[O+1,"."]}),oe.jsx("span",{children:M}),oe.jsx("span",{className:i.itemInlineMeta,children:b[M]||"Unknown table"})]})}),oe.jsx(So,{size:"small",appearance:"subtle",onClick:()=>D(M),children:"Remove"})]},`${M}-${O}`)),g.length===0&&oe.jsx("div",{className:i.dropZone,children:"Drop saved configs here to define order"})]})]})]})}),hQ=$p({listbox:{height:"200px",maxHeight:"20px",overflowX:"hidden"},option:{height:"50px"},button:{marginRight:"8px"},tabEnd:{display:"flex",width:"100%",alignItems:"center",marginLeft:"auto",justifyItems:"end",justifyContent:"flex-end"}}),fQ=Cn(e=>{const{connection:t,dvSvc:o,mckSvc:r,utils:n,isLoading:i,viewModel:s,onLog:l}=e,[u,d]=re.useState(!1),[h,p]=re.useState("config"),[g,v]=re.useState(!1),[b,C]=re.useState(!1),[S,k]=re.useState(!1),F=hQ();re.useEffect(()=>{t&&!u&&s.tables.length===0&&o.loadTables().then(q=>{l("Tables loaded successfully","success"),s.tables=q,d(!0)}).catch(q=>{window.toolboxAPI.utils.showNotification({title:"Error Loading Tables",body:`There was an error loading tables from Dataverse: ${q}`,type:"error",duration:1e4}),l(`Error loading tables: ${q}`,"error")})},[t,o,l,u]),re.useEffect(()=>{if(s.mockTypes.length===0){let q="[]";(async()=>{try{const A=await zD(()=>Promise.resolve().then(()=>xQ),void 0,$f&&$f.tagName.toUpperCase()==="SCRIPT"&&$f.src||new URL("assets/index-peBpplcj.js",document.baseURI).href);q=JSON.stringify((A&&(A.default??A))??[])}catch(A){console.error("Failed to load mocks.json:",A),q="[]"}s.mockTypes=JSON.parse(q).types})()}},[]);const R=(q,A)=>{p(A.value)},P=8;function T(q){try{const A=JSON.parse(q);return Array.isArray(A)?A:[]}catch{return[]}}function D(){const q=s.config?.jsonString??"[]",K=T(q).length>0;if(K){const W=s.mockarooApiKey.trim();if(!W){l("Mockaroo API key is not configured. Please enter your API key.","error"),window.toolboxAPI.utils.showNotification({title:"Mockaroo API Key Missing",body:"Please enter your Mockaroo API key before generating data.",type:"error"});return}if(W.length<P){l("Mockaroo API key appears to be invalid. Please check your API key.","error"),window.toolboxAPI.utils.showNotification({title:"Mockaroo API Key Invalid",body:"The API key looks too short. Please double-check and try again.",type:"error"});return}}const $=s.config?.fields?.filter(W=>W.include&&W.selectedMock?.fixed&&(W.selectedMock.type==="picklist"||W.selectedMock.type==="lookup")&&W.selectedValues.length===0);if($&&$.length>0){const W=$[0];window.toolboxAPI.utils.showNotification({title:"Selection Required",body:`Choose a value for ${W.displayName} before generating data.`,type:"warning"}),l("Generate blocked: fixed picklist/lookup requires a selected value","warning");return}const Z=K?r.getMockData(s.rowCount,q,s.mockarooApiKey):Promise.resolve(Array.from({length:s.rowCount},()=>({})));K||l("No Mockaroo fields selected; generating rows from fixed values only","info"),Z.then(W=>{s.data=W,s.data=s.data.map(_=>({..._,"@odata.type":`Microsoft.Dynamics.CRM.${s.selectedTable?.logical}`,...s.config?.fields?.filter(V=>V.selectedMock?.fixed&&(V.selectedMock.type==="picklist"||V.selectedMock.type==="lookup")).reduce((V,j)=>({...V,[j.logicalName]:j.selectedValues[0].label,[j.logicalName+"_value"]:j.selectedValues[0].value}),{}),...s.config?.fields?.filter(V=>!V.selectedMock?.fixed&&(V.selectedMock?.type==="picklist"||V.selectedMock?.type==="lookup")).reduce((V,j)=>({...V,[j.logicalName+"_value"]:_[j.logicalName],[j.logicalName]:j.selectedValues.find(L=>L.value===_[j.logicalName].toString())?.label}),{}),...s.config?.fields?.filter(V=>V.selectedMock?.fixed&&V.selectedMock?.type!=="picklist"&&V.selectedMock?.type!=="lookup").reduce((V,j)=>({...V,[j.logicalName]:j.fixedValue}),{})})),window.toolboxAPI.utils.showNotification({title:"Mock Data Generated",body:`${s.data.length} mock data generated successfully`,type:"success"}),p("data"),l(`Generated ${s.data.length} mock data records`,"success")}).catch(W=>{window.toolboxAPI.utils.showNotification({title:"Mockaroo Error",body:`Could not generate data: ${W}`,type:"error",duration:8e3}),l(`Failed to generate mock data: ${W}`,"error")})}function M(){v(!0)}async function O(){const q=s.selectedDatasetName?.trim();if(!q){window.toolboxAPI.utils.showNotification({title:"Dataset Not Selected",body:"Select a dataset in the Data Set tab before running.",type:"warning"});return}k(!0);const A=[];let K=0;try{const $=await window.toolboxAPI.settings.get(Rc)||{},Z=await window.toolboxAPI.settings.get(Ba)||{},W=$[q];if(!W||!Array.isArray(W.configNames)||W.configNames.length===0)throw new Error(`Dataset '${q}' was not found or is empty.`);for(const V of W.configNames){const j=Z[V];if(!j){A.push(`Config '${V}' not found.`);continue}const L=s.tables.find(Pe=>Pe.logical===j.tableLogical);if(!L){A.push(`Table '${j.tableLogical}' for config '${V}' was not found.`);continue}const N=await o.loadConfig(L),Y=new Map(j.fields.map(Pe=>[Pe.logicalName,Pe]));N.fields?.forEach(Pe=>{const Be=Y.get(Pe.logicalName);if(Be){if(Pe.include=!!Be.include,Pe.percBlank=Number.isFinite(Be.percBlank)?Be.percBlank:0,Pe.fixedValue=Be.fixedValue,Pe.selectedValues=Be.selectedValues?.map(Ne=>({label:String(Ne.label),value:String(Ne.value)}))??[],Be.selectedMockName){const Ne=s.mockTypes.find(at=>at.name===Be.selectedMockName);Ne&&(Pe.selectedMock={...Ne,parameters:Ne.parameters?.map(at=>({...at,value:Be.parameters&&Object.prototype.hasOwnProperty.call(Be.parameters,at.name)?String(Be.parameters[at.name]??""):at.value}))})}if(Pe.type==="Lookup"&&Be.parentTableLogical){const Ne=s.tables.find(at=>at.logical===Be.parentTableLogical);Ne?Pe.parentTable=Ne:Be.parentTableSetName&&(Pe.parentTable={logical:Be.parentTableLogical,setName:Be.parentTableSetName})}}}),s.selectedTable=L,s.config=N,s.rowCount=Number.isFinite(j.rowCount)&&j.rowCount>0?j.rowCount:10;const ne=s.config?.jsonString??"[]";let ge=[];try{ge=JSON.parse(ne)}catch{ge=[]}const Fe=Array.isArray(ge)&&ge.length>0,We=s.mockarooApiKey.trim();if(Fe&&(!We||We.length<P))throw new Error("Mockaroo API key is required for dataset configs that use Mockaroo fields.");const Ue=(Fe?await r.getMockData(s.rowCount,ne,s.mockarooApiKey):Array.from({length:s.rowCount},()=>({}))).map(Pe=>({...Pe,"@odata.type":`Microsoft.Dynamics.CRM.${L.logical}`,...N.fields?.filter(Be=>Be.selectedMock?.fixed&&(Be.selectedMock.type==="picklist"||Be.selectedMock.type==="lookup")).reduce((Be,Ne)=>({...Be,[Ne.logicalName]:Ne.selectedValues[0]?.label,[Ne.logicalName+"_value"]:Ne.selectedValues[0]?.value}),{}),...N.fields?.filter(Be=>!Be.selectedMock?.fixed&&(Be.selectedMock?.type==="picklist"||Be.selectedMock?.type==="lookup")).reduce((Be,Ne)=>({...Be,[Ne.logicalName+"_value"]:Pe[Ne.logicalName],[Ne.logicalName]:Ne.selectedValues.find(at=>at.value===Pe[Ne.logicalName]?.toString())?.label}),{}),...N.fields?.filter(Be=>Be.selectedMock?.fixed&&Be.selectedMock?.type!=="picklist"&&Be.selectedMock?.type!=="lookup").reduce((Be,Ne)=>({...Be,[Ne.logicalName]:Ne.fixedValue}),{})}));await o.createData(L,N.fields||[],Ue),K+=Ue.length,window.toolboxAPI.utils.showNotification({title:"Dataset Step Complete",body:`${V} completed: ${Ue.length} row(s) created in ${L.label}.`,type:"success",duration:4e3}),l(`Dataset step '${V}' completed (${Ue.length} record(s))`,"success")}const _=A.length>0?`Dataset '${q}' completed with warnings. Created ${K} record(s). ${A.join(" ")}`:`Dataset '${q}' completed. Created ${K} record(s).`;window.toolboxAPI.utils.showNotification({title:A.length>0?"Dataset Completed With Warnings":"Dataset Completed",body:_,type:A.length>0?"warning":"success",duration:12e3}),l(_,A.length>0?"warning":"success"),p("dataset")}catch($){const Z=`Failed to run dataset: ${String($)}`;window.toolboxAPI.utils.showNotification({title:"Dataset Run Failed",body:Z,type:"error"}),l(Z,"error")}finally{k(!1)}}async function I(){C(!0),await o.createData(s.selectedTable,s.config?.fields||[],s.data||[]).then(()=>{window.toolboxAPI.utils.showNotification({title:"Data Created",body:`${s.data?.length} records created successfully`,type:"success"}),l(`Created ${s.data?.length} records in Dataverse`,"success")}).catch(q=>{console.error("Error creating data:",q),window.toolboxAPI.utils.showNotification({title:"Data Creation Error",body:`Not all records could be created. Please check your configuration and the error message: ${q}`,type:"error",duration:1e4})}).finally(()=>{C(!1),v(!1)})}const z=oe.jsx(Md,{open:g,onOpenChange:(q,A)=>v(A.open),children:oe.jsx(Bd,{children:oe.jsxs(_d,{children:[oe.jsx(Id,{children:"Create Data"}),oe.jsxs(Od,{children:[!b&&oe.jsxs("div",{children:["Do you want to create ",s.data?.length," records in the ",s.selectedTable?.label," table?"]}),b&&oe.jsx(qg,{label:"Creating "+s.selectedTable?.label+"(s)"})]}),oe.jsxs(Ad,{children:[oe.jsx(So,{appearance:"primary",disabled:b,onClick:I,children:"Create Data"}),oe.jsx(ql,{disableButtonEnhancement:!0,children:oe.jsx(So,{appearance:"secondary",disabled:b,onClick:()=>v(!1),children:"Cancel"})})]})]})})}),U=oe.jsxs(mx,{selectedValue:h,onTabSelect:R,children:[oe.jsx(Dd,{value:"config",children:"Configuration"}),oe.jsx(Dd,{value:"dataset",children:"Data Set"}),oe.jsx(Dd,{value:"data",disabled:!(s.data&&s.data.length>0),children:"Data"}),h==="config"&&oe.jsx("div",{className:F.tabEnd,children:oe.jsx(Sd,{content:"Generate mock data",relationship:"label",...e,children:oe.jsx(So,{className:F.button,icon:oe.jsx(WO,{}),disabled:(s.config?.fields?.filter(q=>q.include).length??0)===0||!s.mockarooApiKey&&T(s.config?.jsonString??"[]").length>0,onClick:D})})}),h==="data"&&oe.jsx("div",{className:F.tabEnd,children:oe.jsx(Sd,{content:"Create data in Dataverse",relationship:"label",...e,children:oe.jsx(So,{className:F.button,icon:oe.jsx(qO,{}),disabled:(s.config?.fields?.filter(q=>q.include).length??0)===0,onClick:M,"aria-label":"Create Data in Dataverse"})})})]});return oe.jsxs("div",{style:{overflow:"visible",height:"100vh",display:"flex",flexDirection:"column"},children:[U,z,h==="config"&&oe.jsx(aQ,{connection:t,dvSvc:o,utils:n,isLoading:i,viewModel:s,onLog:l}),h==="dataset"&&oe.jsx(dQ,{viewModel:s,onLog:l,onRunDataset:O,runningDataset:S}),h==="data"&&oe.jsx(cQ,{connection:t,dvSvc:o,isLoading:i,viewModel:s,onLog:l})]})});function pQ(){const[e,t]=y.useState(null),[o,r]=y.useState(!0),n=y.useCallback(async()=>{try{const i=await window.toolboxAPI.connections.getActiveConnection();t(i)}catch(i){console.error("Error refreshing connection:",i)}finally{r(!1)}},[]);return y.useEffect(()=>{n()},[n]),{connection:e,isLoading:o,refreshConnection:n}}function gQ(e){y.useEffect(()=>{const t=(o,r)=>{e(r.event,r.data)};return window.toolboxAPI.events.on(t),()=>{}},[e])}function mQ(){const[e,t]=y.useState([]),o=y.useCallback((n,i="info")=>{t(s=>[{timestamp:new Date,message:n,type:i},...s.slice(0,49)])},[]),r=y.useCallback(()=>{t([])},[]);return{logs:e,addLog:o,clearLogs:r}}class vQ{tables=[];selectedTable;mockTypes=[];config;data;dataRows;rowCount=10;mockarooApiKey="";selectedDatasetName="";constructor(){Bu(this)}}class bQ{logical;id;label;setName;primaryNameColumn;primaryIdColumn;constructor(t,o,r,n,i,s){this.logical=t,this.id=o,this.label=r,this.setName=n,this.primaryNameColumn=i,this.primaryIdColumn=s,Bu(this)}}class CQ{connection;dvApi;onLog;constructor(t){this.connection=t.connection,this.dvApi=t.dvApi,this.onLog=t.onLog}async loadTables(){if(!this.connection)throw this.onLog("No connection available","error"),new Error("No connection available");try{return this.onLog("Loading tables from Dataverse...","info"),(await this.dvApi.getAllEntitiesMetadata(["MetadataId","LogicalName","DisplayName","EntitySetName","PrimaryNameAttribute","PrimaryIdAttribute"])).value.map(r=>({logical:r.LogicalName,id:r.MetadataId,label:r.DisplayName?.UserLocalizedLabel?.Label||r.LogicalName,setName:r.EntitySetName,primaryNameColumn:r.PrimaryNameAttribute,primaryIdColumn:r.PrimaryIdAttribute})).sort((r,n)=>r.label.localeCompare(n.label))}catch(t){throw this.onLog(`Error loading tables: ${t}`,"error"),console.error("Error loading tables:",t),t}}async loadConfig(t){if(!this.connection)throw this.onLog("No connection available","error"),new Error("No connection available");try{this.onLog(`Loading configuration for table: ${t.logical}`,"info");const o=await this.dvApi.getEntityRelatedMetadata(t.logical,"Attributes",["MetadataId","LogicalName","DisplayName","AttributeType"]);this.onLog(`Attributes loaded for table: ${t.label}`,"success");const r=o.value.map(i=>new QY(i.LogicalName,i.MetadataId,i.AttributeType,i.DisplayName?.UserLocalizedLabel?.Label||i.LogicalName)).filter(i=>i.type!=="Virtual"&&i.type!=="Customer"&&i.type!=="Owner"&&i.type!=="Uniqueidentifier"&&i.displayName&&!i.displayName.toLowerCase().includes("deprecated"));return new YY(new bQ(t.logical,t.id,t.label,t.setName,t.primaryNameColumn,t.primaryIdColumn),r.sort((i,s)=>i.displayName.localeCompare(s.displayName)))}catch(o){throw this.onLog(`Error loading configuration: ${o}`,"error"),console.error("Error loading configuration:",o),o}}async createData(t,o,r){return new Promise((n,i)=>{if(!this.connection){this.onLog("No connection available","error"),i(new Error("No connection available"));return}if(!t||!r||r.length===0){this.onLog("No table selected or data passed for data creation","error"),i(new Error("No table selected or data passed for data creation"));return}if(!o||o.length===0){this.onLog("No fields selected for data creation","error"),i(new Error("No fields selected for data creation"));return}o.filter(u=>u.selectedMock?.type==="picklist").forEach(u=>{r.forEach(d=>{d[u.logicalName]=d[u.logicalName+"_value"],delete d[u.logicalName+"_value"]})}),o.filter(u=>u.selectedMock?.type==="lookup").forEach(u=>{r.forEach(d=>{d[u.dbField]="/"+u.parentTable?.setName+"("+d[u.logicalName+"_value"]+")",delete d[u.logicalName+"_value"],delete d[u.logicalName]})}),console.log("Data to be created:",E0(r));const s=100,l=[];for(let u=0;u<r.length;u+=s)l.push(E0(r).slice(u,u+s));window.toolboxAPI.utils.executeParallel(()=>Promise.all(l.map(u=>this.dvApi.createMultiple(t.logical,u)))).then(()=>{n()}).catch(u=>{this.onLog(`Error creating data: ${u}`,"error"),console.error("Error creating data:",u),i(u)})})}async getChoiceValues(t,o){if(!this.connection)throw this.onLog("No connection available","error"),new Error("No connection available");try{this.onLog(`Loading picklist values for field: ${o}`,"info");const r=`EntityDefinitions(LogicalName='${t}')/Attributes(LogicalName='${o}')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?$select=LogicalName&$expand=OptionSet`,s=((await this.dvApi.queryData(r)).OptionSet?.Options||[]).map(l=>new ln(l.Label?.UserLocalizedLabel?.Label||"",l.Value.toString()));return this.onLog(`Picklist values loaded for field: ${o}`,"success"),s}catch(r){throw this.onLog(`Error loading picklist values: ${r}`,"error"),console.error("Error loading picklist values:",r),r}}async getBooleanValues(t,o){if(!this.connection)throw this.onLog("No connection available","error"),new Error("No connection available");try{this.onLog(`Loading boolean values for field: ${o}`,"info");const r=`EntityDefinitions(LogicalName='${t}')/Attributes(LogicalName='${o}')/Microsoft.Dynamics.CRM.BooleanAttributeMetadata?$select=LogicalName&$expand=OptionSet`,n=await this.dvApi.queryData(r),i=n.OptionSet?.FalseOption,s=n.OptionSet?.TrueOption,l=[new ln(i?.Label?.UserLocalizedLabel?.Label||"False",String(i?.Value??"false")),new ln(s?.Label?.UserLocalizedLabel?.Label||"True",String(s?.Value??"true"))];return this.onLog(`Boolean values loaded for field: ${o}`,"success"),l}catch(r){throw this.onLog(`Error loading boolean values: ${r}`,"error"),console.error("Error loading boolean values:",r),r}}async getLookupValues(t,o,r,n){return new Promise(async(i,s)=>{if(!this.connection)throw new Error("No connection available");console.log(t,o,r,n);try{this.onLog(`Loading lookup values for field: ${o}`,"info");const l=n.replace(/'/g,"''"),u=await this.dvApi.queryData(`${t}?$filter=contains(${o},'${l}')&$select=${o},${r}&$top=20`);console.log("Lookup Meta:",u),this.onLog(`Lookup values loaded for field: ${o}`,"success"),i(u.value.map(d=>new ln(d[o],d[r])))}catch(l){console.error("Error loading lookup values:",l),s(l)}})}async getTableInfo(t,o){return new Promise(async(r,n)=>{if(!this.connection){this.onLog("No connection available","error"),n(new Error("No connection available"));return}try{let i=`EntityDefinitions(LogicalName='${t}')/Attributes(LogicalName='${o}')/Microsoft.Dynamics.CRM.LookupAttributeMetadata?$select=Targets`;const l=(await this.dvApi.queryData(i)).Targets||[];r(l[0])}catch(i){this.onLog(`Error loading table info: ${i}`,"error"),console.error("Error loading table info:",i),n(i)}})}}class wQ{connection;dvSvc;onLog;constructor(t){this.connection=t.connection,this.dvSvc=t.dvSvc,this.onLog=t.onLog}async getMockData(t,o,r){this.onLog(`Mockaroo config: ${o}`,"info");const n=`https://api.mockaroo.com/api/generate.json?key=${encodeURIComponent(r)}&count=${t}`,i=new Request(n,{method:"POST",headers:{"Content-Type":"application/json"},body:o}),s=await fetch(i);if(!s.ok)throw this.onLog(`Error fetching mock data: ${s.statusText}`,"error"),new Error(`Error fetching mock data: ${s.statusText}`);return this.onLog(`Generating ${t} mock data records...`,"info"),s.json()}}class yQ{onLog;constructor(t){this.onLog=t.onLog}async alert(t,o){return new Promise(r=>{window.toolboxAPI.utils.showNotification({title:t,body:o,type:"error"}),this.onLog(`Alert shown: ${o}`,"error"),r()})}}function SQ(){const{connection:e,isLoading:t,refreshConnection:o}=pQ(),{addLog:r}=mQ(),n=y.useCallback(async(p,g)=>{switch(p){case"connection:updated":case"connection:created":o();break;case"connection:deleted":o();break;case"terminal:output":case"terminal:command:completed":case"terminal:error":break;case"settings:updated":const v=await window.toolboxAPI.utils.getCurrentTheme();document.body.dataset.agThemeMode=v,s(v);break}},[o]);gQ(n);const[i,s]=y.useState("light"),[l]=y.useState(()=>new vQ);y.useEffect(()=>{r("Mockaroo Data Munger mounted")},[]);const u=y.useMemo(()=>e?new CQ({connection:e,dvApi:window.dataverseAPI,onLog:r}):null,[e,r]),d=y.useMemo(()=>u?new wQ({connection:e,dvSvc:u,onLog:r}):null,[e,u,r]),h=y.useMemo(()=>new yQ({onLog:r}),[e,u,r]);return y.useEffect(()=>{(async()=>{const p=await window.toolboxAPI.utils.getCurrentTheme();s(p),document.body.dataset.agThemeMode=p;const g=await window.toolboxAPI.settings.get("mockarooApiKey");g&&(l.mockarooApiKey=g)})()},[]),oe.jsx(F1,{theme:i==="dark"?dO:cO,children:u&&d?oe.jsx(fQ,{connection:e,viewModel:l,dvSvc:u,onLog:r,isLoading:t,mckSvc:d,utils:h}):oe.jsx("div",{children:"Loading..."})})}const Pc=document.getElementById("root");Pc&&!Pc.hasAttribute("data-reactroot-initialized")?(Pc.setAttribute("data-reactroot-initialized","true"),ND.createRoot(Pc).render(oe.jsx(y.StrictMode,{children:oe.jsx(SQ,{})}))):Pc||console.error('Root element not found. Make sure the HTML contains <div id="root"></div>');const VP=JSON.parse(`[{"name":"Address Line 2","type":"string|memo","parameters":[]},{"name":"Airport Code","type":"string|memo","parameters":[]},{"name":"Airport Continent","type":"string|memo","parameters":[]},{"name":"Airport Country Code","type":"string|memo","parameters":[]},{"name":"Airport Elevation (Feet)","type":"string|memo","parameters":[]},{"name":"Airport GPS Code","type":"string|memo","parameters":[]},{"name":"Airport Latitude","type":"string|memo","parameters":[]},{"name":"Airport Longitude","type":"string|memo","parameters":[]},{"name":"Airport Municipality","type":"string|memo","parameters":[]},{"name":"Airport Name","type":"string|memo","parameters":[]},{"name":"Airport Region Code","type":"string|memo","parameters":[]},{"name":"Animal Common Name","type":"string|memo","parameters":[]},{"name":"Animal Scientific Name","type":"string|memo","parameters":[]},{"name":"App Bundle ID","type":"string|memo","parameters":[]},{"name":"App Name","type":"string|memo","parameters":[]},{"name":"App Version","type":"string|memo","parameters":[]},{"name":"Avatar","type":"string|memo","parameters":[{"name":"height","type":"integer","description":"the image height in pixels","default":null},{"name":"width","type":"integer","description":"the image height in pixels","default":null}]},{"name":"Bank City","type":"string|memo","parameters":[]},{"name":"Bank Country Code","type":"string|memo","parameters":[]},{"name":"Bank LEI","type":"string|memo","parameters":[]},{"name":"Bank Name","type":"string|memo","parameters":[]},{"name":"Bank RIAD Code","type":"string|memo","parameters":[]},{"name":"Bank Routing Number","type":"string|memo","parameters":[]},{"name":"Bank State","type":"string|memo","parameters":[]},{"name":"Bank Street Address","type":"string|memo","parameters":[]},{"name":"Bank SWIFT BIC","type":"string|memo","parameters":[]},{"name":"Base64 Image URL","type":"string|memo","parameters":[]},{"name":"Binomial Distribution","type":"integer","parameters":[{"name":"probability","type":"decimal","description":"The probability of success","default":0.5}]},{"name":"Bitcoin Address","type":"string|memo","parameters":[]},{"name":"Blank","type":"string|memo","parameters":[]},{"name":"Boolean","type":"boolean","parameters":[]},{"name":"Buzzword","type":"string|memo","parameters":[]},{"name":"Car Make","type":"string|memo","parameters":[]},{"name":"Car Model","type":"string|memo","parameters":[]},{"name":"Car Model Year","type":"integer","parameters":[]},{"name":"Car VIN","type":"string|memo","parameters":[]},{"name":"Catch Phrase","type":"string|memo","parameters":[]},{"name":"Character Sequence","type":"string|memo","parameters":[{"name":"format","type":"string|memo","description":"A string of characters, digits, and symbols","default":null}]},{"name":"City","type":"string|memo","parameters":[]},{"name":"Color","type":"string|memo","parameters":[]},{"name":"Company Name","type":"string|memo","parameters":[]},{"name":"Construction Heavy Equipment","type":"string|memo","parameters":[]},{"name":"Construction Material","type":"string|memo","parameters":[]},{"name":"Construction Role","type":"string|memo","parameters":[]},{"name":"Construction Standard Cost Code","type":"string|memo","parameters":[]},{"name":"Construction Subcontract Category","type":"string|memo","parameters":[]},{"name":"Construction Trade","type":"string|memo","parameters":[]},{"name":"Country","type":"string|memo","parameters":[{"name":"countries","type":"array","description":"An array of countries to restrict the generated locations to","default":null}]},{"name":"Country Code","type":"string|memo","parameters":[]},{"name":"Credit Card #","type":"string|memo","parameters":[]},{"name":"Credit Card Type","type":"string|memo","parameters":[]},{"name":"Currency","type":"string|memo","parameters":[]},{"name":"Currency Code","type":"string|memo","parameters":[]},{"name":"Custom List","type":"string|integer|float","parameters":[{"name":"values","type":"array","description":"An array of values to pick from. Each value should be a string.","default":null},{"name":"selectionStyle","type":"string|memo","description":null,"values":["random","sequential","weighted","dynamic","cartesian"],"default":"random"},{"name":"distribution","type":"array","description":"When using a weighted distribution, the value should be an array with a single item. For example: <pre>[\\n {\\n \\"frequencies\\": {\\n \\"red\\": \\"1\\",\\n \\"green\\": \\"2\\",\\n \\"blue\\": \\"1\\"\\n }\\n }\\n]</pre> When using a dynamic distribution, each item should be an object with rule in Mockaroo formula syntax and frequencies. For example: <pre>[\\n {\\n \\"rule\\": \\"gender == 'Male'\\",\\n \\"frequencies\\": {\\n \\"red\\": \\"1\\",\\n \\"green\\": \\"2\\",\\n \\"blue\\": \\"1\\"\\n }\\n },\\n {\\n \\"rule\\": \\"gender == 'Female'\\",\\n \\"frequencies\\": {\\n \\"red\\": \\"2\\",\\n \\"green\\": \\"1\\",\\n \\"blue\\": \\"1\\"\\n }\\n }\\n]</pre>","default":null}]},{"name":"Dataset Column","type":"string|integer|float","parameters":[{"name":"dataset","type":"string|memo","description":"The name of a saved dataset","default":null},{"name":"column","type":"string|memo","description":"The name of the column in the saved dataset","default":null},{"name":"selectionStyle","type":"string|memo","description":null,"values":["random","sequential","weighted","dynamic","cartesian"],"default":"random"},{"name":"distribution","type":"array","description":"When using a weighted distribution, the value should be an array with a single item. For example: <pre>[\\n {\\n \\"frequencies\\": {\\n \\"red\\": \\"1\\",\\n \\"green\\": \\"2\\",\\n \\"blue\\": \\"1\\"\\n }\\n }\\n]</pre> When using a dynamic distribution, each item should be an object with rule in Mockaroo formula syntax and frequencies. For example: <pre>[\\n {\\n \\"rule\\": \\"gender == 'Male'\\",\\n \\"frequencies\\": {\\n \\"red\\": \\"1\\",\\n \\"green\\": \\"2\\",\\n \\"blue\\": \\"1\\"\\n }\\n },\\n {\\n \\"rule\\": \\"gender == 'Female'\\",\\n \\"frequencies\\": {\\n \\"red\\": \\"2\\",\\n \\"green\\": \\"1\\",\\n \\"blue\\": \\"1\\"\\n }\\n }\\n]</pre>","default":null}]},{"name":"Datetime","type":"datetime","parameters":[{"name":"min","type":"string|memo","description":"The minimum date in mm/dd/yyyy format.","default":"12/9/2025"},{"name":"max","type":"string|memo","description":"The maximum date in mm/dd/yyyy format.","default":"12/9/2027"},{"name":"format","type":"string|memo","description":"(optional) The format to output. This can be any format directive supported by ruby <a target=\\"_blank\\" href=\\"http://www.ruby-doc.org/core-1.9.3/Time.html#method-i-strftime\\">Time.strftime</a>. Defaults to ISO 8601 format. Example value: \\"2007-11-19T08:37:48-06:00\\".","default":"%FT%T%:z"}]},{"name":"Department (Corporate)","type":"string|memo","parameters":[]},{"name":"Department (Retail)","type":"string|memo","parameters":[]},{"name":"Digit Sequence","type":"string|memo","parameters":[{"name":"format","type":"string|memo","description":"A string of characters, digits, and symbols","default":null}]},{"name":"Domain Name","type":"string|memo","parameters":[]},{"name":"Drug Company","type":"string|memo","parameters":[]},{"name":"Drug Name (Brand)","type":"string|memo","parameters":[]},{"name":"Drug Name (Generic)","type":"string|memo","parameters":[]},{"name":"Dummy Image URL","type":"string|memo","parameters":[{"name":"minHeight","type":"integer","description":"the minimum height in pixels","default":null},{"name":"maxHeight","type":"integer","description":"the maximum height in pixels","default":null},{"name":"minWidth","type":"integer","description":"the minimum width in pixels","default":null},{"name":"maxWidth","type":"integer","description":"the maximum width in pixels","default":null},{"name":"format","type":"string|memo","description":"The image format","values":["random","png","gif","jpg"],"default":null}]},{"name":"DUNS Number","type":"string|memo","parameters":[]},{"name":"EIN","type":"string|memo","parameters":[]},{"name":"Email Address","type":"string|memo","parameters":[]},{"name":"Encrypt","type":"string|memo","parameters":[]},{"name":"Ethereum Address","type":"string|memo","parameters":[]},{"name":"Exponential Distribution","type":"float","parameters":[{"name":"lambda","type":"decimal","description":"The rate parameter","default":1}]},{"name":"Fake Company Name","type":"string|memo","parameters":[]},{"name":"Family Name (Chinese)","type":"string|memo","parameters":[]},{"name":"FDA NDC Code","type":"string|memo","parameters":[]},{"name":"File Name","type":"string|memo","parameters":[]},{"name":"First Name","type":"string|memo","parameters":[]},{"name":"First Name (European)","type":"string|memo","parameters":[]},{"name":"First Name (Female)","type":"string|memo","parameters":[]},{"name":"First Name (Male)","type":"string|memo","parameters":[]},{"name":"Flight Airline Code","type":"string|memo","parameters":[]},{"name":"Flight Airline Name","type":"string|memo","parameters":[]},{"name":"Flight Arrival Airport","type":"string|memo","parameters":[]},{"name":"Flight Arrival Airport Code","type":"string|memo","parameters":[]},{"name":"Flight Arrival City","type":"string|memo","parameters":[]},{"name":"Flight Arrival Country","type":"string|memo","parameters":[]},{"name":"Flight Departure Airport","type":"string|memo","parameters":[]},{"name":"Flight Departure Airport Code","type":"string|memo","parameters":[]},{"name":"Flight Departure City","type":"string|memo","parameters":[]},{"name":"Flight Departure Country","type":"string|memo","parameters":[]},{"name":"Flight Departure Time","type":"string|memo","parameters":[]},{"name":"Flight Duration (Hours)","type":"string|memo","parameters":[]},{"name":"Flight Number","type":"string|memo","parameters":[]},{"name":"Formula","type":"any","parameters":[{"name":"value","type":"string|memo","description":null,"default":null}]},{"name":"Frequency","type":"string|memo","parameters":[]},{"name":"Full Name","type":"string|memo","parameters":[]},{"name":"Gender","type":"string|memo","parameters":[]},{"name":"Gender (abbrev)","type":"string|memo","parameters":[]},{"name":"Gender (Binary)","type":"string|memo","parameters":[]},{"name":"Gender (Facebook)","type":"string|memo","parameters":[]},{"name":"Geometric Distribution","type":"integer","parameters":[{"name":"probability","type":"decimal","description":"The probability of success","default":0.5}]},{"name":"Given Name (Chinese)","type":"string|memo","parameters":[]},{"name":"GUID","type":"string|memo","parameters":[]},{"name":"HCPCS Code","type":"string|memo","parameters":[]},{"name":"HCPCS Name","type":"string|memo","parameters":[]},{"name":"Hex Color","type":"string|memo","parameters":[]},{"name":"Hospital City","type":"string|memo","parameters":[]},{"name":"Hospital Name","type":"string|memo","parameters":[]},{"name":"Hospital NPI","type":"string|memo","parameters":[]},{"name":"Hospital Postal Code","type":"string|memo","parameters":[]},{"name":"Hospital State","type":"string|memo","parameters":[]},{"name":"Hospital Street Address","type":"string|memo","parameters":[]},{"name":"IBAN","type":"string|memo","parameters":[]},{"name":"ICD10 Diagnosis Code","type":"string|memo","parameters":[]},{"name":"ICD10 Dx Desc (Long)","type":"string|memo","parameters":[]},{"name":"ICD10 Dx Desc (Short)","type":"string|memo","parameters":[]},{"name":"ICD10 Proc Desc (Long)","type":"string|memo","parameters":[]},{"name":"ICD10 Proc Desc (Short)","type":"string|memo","parameters":[]},{"name":"ICD10 Procedure Code","type":"string|memo","parameters":[]},{"name":"ICD9 Diagnosis Code","type":"string|memo","parameters":[]},{"name":"ICD9 Dx Desc (Long)","type":"string|memo","parameters":[]},{"name":"ICD9 Dx Desc (Short)","type":"string|memo","parameters":[]},{"name":"ICD9 Proc Desc (Long)","type":"string|memo","parameters":[]},{"name":"ICD9 Proc Desc (Short)","type":"string|memo","parameters":[]},{"name":"ICD9 Procedure Code","type":"string|memo","parameters":[]},{"name":"IP Address v4","type":"string|memo","parameters":[]},{"name":"IP Address v4 CIDR","type":"string|memo","parameters":[]},{"name":"IP Address v6","type":"string|memo","parameters":[]},{"name":"IP Address v6 CIDR","type":"string|memo","parameters":[]},{"name":"ISBN","type":"string|memo","parameters":[]},{"name":"Job Title","type":"string|memo","parameters":[]},{"name":"JSON Array","type":"array","parameters":[{"name":"minItems","type":"integer","description":"The minimum number of items to generate (0 to 100). <a href=\\"/help/json_arrays\\">Help with JSON Arrays...</a>","default":1},{"name":"maxItems","type":"integer","description":"The maximum number of items to generate (0 to 100)","default":5}]},{"name":"Language","type":"string|memo","parameters":[]},{"name":"Language Code","type":"string|memo","parameters":[]},{"name":"Last Name","type":"string|memo","parameters":[]},{"name":"Latitude","type":"float","parameters":[]},{"name":"LinkedIn Skill","type":"string|memo","parameters":[]},{"name":"Longitude","type":"float","parameters":[]},{"name":"MAC Address","type":"string|memo","parameters":[]},{"name":"MD5","type":"string|memo","parameters":[]},{"name":"Medicare Beneficiary ID","type":"string|memo","parameters":[]},{"name":"MIME Type","type":"string|memo","parameters":[]},{"name":"Mobile Device Brand","type":"string|memo","parameters":[]},{"name":"Mobile Device Model","type":"string|memo","parameters":[]},{"name":"Mobile Device OS","type":"string|memo","parameters":[]},{"name":"Mobile Device Release Date","type":"string|memo","parameters":[]},{"name":"Money","type":"string|memo","parameters":[{"name":"min","type":"integer","description":"The minimum value","default":0},{"name":"max","type":"integer","description":"The maximum value","default":10},{"name":"symbol","type":"string|memo","description":"The currency symbol","values":["$","£","€","¥","random","none"],"default":"$"}]},{"name":"MongoDB ObjectID","type":"string|memo","parameters":[]},{"name":"Movie Genres","type":"string|memo","parameters":[]},{"name":"Movie Title","type":"string|memo","parameters":[]},{"name":"Nato Phonetic","type":"string|memo","parameters":[{"name":"min","type":"integer","description":"The minimum number of words","default":10},{"name":"max","type":"integer","description":"The maximum number of words","default":20}]},{"name":"Naughty String","type":"string|memo","parameters":[]},{"name":"NHS Number","type":"string|memo","parameters":[]},{"name":"Normal Distribution","type":"integer|float","parameters":[{"name":"mean","type":"decimal","description":"The mean value for the normal distribution","default":0},{"name":"sd","type":"decimal","description":"The standard deviation for the normal distribution","default":1},{"name":"decimals","type":"integer","description":"The number of decimals places for each generated value","default":2}]},{"name":"Number","type":"integer|float","parameters":[{"name":"min","type":"integer","description":"The minimum value","default":1},{"name":"max","type":"integer","description":"The maximum value","default":100},{"name":"decimals","type":"integer","description":"The number of decimals","default":2}]},{"name":"Paragraphs","type":"string|memo","parameters":[{"name":"min","type":"integer","description":"The minimum number of paragraphs","default":1},{"name":"max","type":"integer","description":"The maximum number of paragraphs","default":3}]},{"name":"Password","type":"string|memo","parameters":[{"name":"min_length","type":"integer","description":"The minimum length of the password","default":8},{"name":"min_upper","type":"integer","description":"The minimum number of upper case letters required.","default":1},{"name":"min_lower","type":"integer","description":"The minimum number of lower case letters required.","default":1},{"name":"min_numbers","type":"integer","description":"The minimum number of numbers required.","default":1},{"name":"min_symbols","type":"integer","description":"The minimum number of symbols required.","default":1}]},{"name":"Password Hash","type":"string|memo","parameters":[]},{"name":"Phone","type":"string|memo","parameters":[{"name":"format","type":"string|memo","description":"The phone number format","values":["###-###-####","(###) ###-####","### ### ####","+# ### ### ####","+# (###) ###-####","+#-###-###-####","#-(###)###-####","##########"],"default":"#-(###)###-####"}]},{"name":"Plant Common Name","type":"string|memo","parameters":[]},{"name":"Plant Family","type":"string|memo","parameters":[]},{"name":"Plant Scientific Name","type":"string|memo","parameters":[]},{"name":"Poisson Distribution","type":"integer","parameters":[{"name":"mean","type":"integer","description":"The mean value for the poisson distribution","default":50}]},{"name":"Postal Code","type":"string|memo","parameters":[]},{"name":"Product Category","type":"string|memo","parameters":[]},{"name":"Product Description","type":"string|memo","parameters":[]},{"name":"Product (Grocery)","type":"string|memo","parameters":[]},{"name":"Product Name","type":"string|memo","parameters":[]},{"name":"Product Price","type":"string|memo","parameters":[]},{"name":"Product Subcategory","type":"string|memo","parameters":[]},{"name":"Race","type":"string|memo","parameters":[]},{"name":"Regular Expression","type":"string|memo","parameters":[{"name":"value","type":"string","description":null,"default":null}]},{"name":"Repeating Element","type":"any","parameters":[{"name":"minElements","type":"integer","description":"The minimum number of elements to generate (0 to 100). <a href=\\"/help/repeated_element\\">Help with Repeated Elements...</a>","default":1},{"name":"maxElements","type":"integer","description":"The maximum number of elements to generate (0 to 100)","default":5}]},{"name":"Row Number","type":"integer","parameters":[]},{"name":"Scenario","type":"integer|float","parameters":[{"name":"scenario","type":"string|memo","description":"The name of a scenario","default":null}]},{"name":"Sentences","type":"string|memo","parameters":[{"name":"min","type":"integer","description":"The minimum number of sentences","default":1},{"name":"max","type":"integer","description":"The maximum number of sentences","default":10}]},{"name":"Sequence","type":"integer","parameters":[{"name":"start","type":"integer","description":"The first number in the sequence","default":1},{"name":"step","type":"integer","description":"The number to add to each subsequent value","default":1},{"name":"repeat","type":"integer","description":"The number of times each value should occur before the step amount is added.","default":1}]},{"name":"SHA1","type":"string|memo","parameters":[]},{"name":"SHA256","type":"string|memo","parameters":[]},{"name":"Shirt Size","type":"string|memo","parameters":[]},{"name":"Short Hex Color","type":"string|memo","parameters":[]},{"name":"Slogan","type":"string|memo","parameters":[]},{"name":"SQL Expression","type":"string|memo","parameters":[{"name":"value","type":"string|memo","description":"SQL code to include verbatim in the generated output","default":null}]},{"name":"SSN","type":"string|memo","parameters":[]},{"name":"State","type":"string|memo","parameters":[{"name":"onlyUSPlaces","type":"boolean","description":"True to restrict locations to the United States","default":false}]},{"name":"State (abbrev)","type":"string|memo","parameters":[{"name":"onlyUSPlaces","type":"boolean","description":"True to restrict locations to the United States","default":false}]},{"name":"Stock Industry","type":"string|memo","parameters":[]},{"name":"Stock Market","type":"string|memo","parameters":[]},{"name":"Stock Market Cap","type":"string|memo","parameters":[]},{"name":"Stock Name","type":"string|memo","parameters":[]},{"name":"Stock Sector","type":"string|memo","parameters":[]},{"name":"Stock Symbol","type":"string|memo","parameters":[]},{"name":"Street Address","type":"string|memo","parameters":[]},{"name":"Street Name","type":"string|memo","parameters":[]},{"name":"Street Number","type":"string|memo","parameters":[]},{"name":"Street Suffix","type":"string|memo","parameters":[]},{"name":"Suffix","type":"string|memo","parameters":[]},{"name":"Template","type":"string|memo","parameters":[{"name":"value","type":"string|memo","description":null,"default":null}]},{"name":"Tezos Account","type":"string|memo","parameters":[]},{"name":"Tezos Block","type":"string|memo","parameters":[]},{"name":"Tezos Contract","type":"string|memo","parameters":[]},{"name":"Tezos Operation","type":"string|memo","parameters":[]},{"name":"Tezos Signature","type":"string|memo","parameters":[]},{"name":"Time","type":"string|memo","parameters":[{"name":"min","type":"string","description":"The minimum time in HH:MM AM/PM format.","default":"12:00 AM"},{"name":"max","type":"string","description":"The maximum time in HH:MM AM/PM format.","default":"11:59 PM"},{"name":"format","type":"string","description":"(optional) The format to output. This can be any format directive supported by ruby <a target=\\"_blank\\" href=\\"http://www.ruby-doc.org/core-1.9.3/Time.html#method-i-strftime\\">Time.strftime</a>. Defaults to ISO 8601 format. Example value: \\"08:37:48\\".","default":"%T"}]},{"name":"Time Zone","type":"string|memo","parameters":[]},{"name":"Title","type":"string|memo","parameters":[]},{"name":"Top Level Domain","type":"string|memo","parameters":[]},{"name":"ULID","type":"string|memo","parameters":[]},{"name":"University","type":"string|memo","parameters":[]},{"name":"URL","type":"string|memo","parameters":[{"name":"includeProtocol","type":"boolean","description":"True to include a protocol in the url","default":true},{"name":"includeHost","type":"boolean","description":"True to include a hostname in the url","default":true},{"name":"includePath","type":"boolean","description":"True to include a path in the url","default":true},{"name":"includeQueryString","type":"boolean","description":"True to include a query string in the url","default":true}]},{"name":"User Agent","type":"string|memo","parameters":[]},{"name":"Username","type":"string|memo","parameters":[]},{"name":"Words","type":"string|memo","parameters":[{"name":"min","type":"integer","description":"The minimum number of words","default":10},{"name":"max","type":"integer","description":"The maximum number of words","default":20}]},{"name":"Fixed Picklist","type":"picklist","fixed":true,"useMockaroo":false},{"name":"Random Picklist","mockName":"Custom List","type":"picklist"},{"name":"Fixed Lookup","type":"lookup","fixed":true,"useMockaroo":false},{"name":"Random Lookup","mockName":"Custom List","type":"lookup"},{"name":"Fixed String","fixed":true,"type":"string|memo","useMockaroo":false},{"name":"Fixed Boolean","fixed":true,"type":"boolean"}]`),xQ=Object.freeze(Object.defineProperty({__proto__:null,default:{types:VP},types:VP},Symbol.toStringTag,{value:"Module"}))})();