@zealicsolutions/web-ui 1.0.121 → 1.0.122

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -9627,7 +9627,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",n=r.toS
9627
9627
  *
9628
9628
  * This source code is licensed under the MIT license found in the
9629
9629
  * LICENSE file in the root directory of this source tree.
9630
- */!function(e){"production"===process.env.NODE_ENV?e.exports=function(){if(edt)return rdt;edt=1;var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case o:case a:case n:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case h:case p:case i:return e;default:return f}}case r:return f}}}return e=Symbol.for("react.module.reference"),rdt.ContextConsumer=s,rdt.ContextProvider=i,rdt.Element=t,rdt.ForwardRef=c,rdt.Fragment=o,rdt.Lazy=h,rdt.Memo=p,rdt.Portal=r,rdt.Profiler=a,rdt.StrictMode=n,rdt.Suspense=u,rdt.SuspenseList=d,rdt.isAsyncMode=function(){return!1},rdt.isConcurrentMode=function(){return!1},rdt.isContextConsumer=function(e){return m(e)===s},rdt.isContextProvider=function(e){return m(e)===i},rdt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},rdt.isForwardRef=function(e){return m(e)===c},rdt.isFragment=function(e){return m(e)===o},rdt.isLazy=function(e){return m(e)===h},rdt.isMemo=function(e){return m(e)===p},rdt.isPortal=function(e){return m(e)===r},rdt.isProfiler=function(e){return m(e)===a},rdt.isStrictMode=function(e){return m(e)===n},rdt.isSuspense=function(e){return m(e)===u},rdt.isSuspenseList=function(e){return m(e)===d},rdt.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===a||t===n||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===i||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},rdt.typeOf=m,rdt}():e.exports=(odt||(odt=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var m=e.type;switch(m){case o:case a:case n:case u:case d:return m;default:var v=m&&m.$$typeof;switch(v){case l:case s:case c:case h:case p:case i:return v;default:return f}}case r:return f}}}e=Symbol.for("react.module.reference");var v=s,y=i,g=t,x=c,b=o,w=h,k=p,_=r,C=a,M=n,S=u,D=d,O=!1,P=!1;ndt.ContextConsumer=v,ndt.ContextProvider=y,ndt.Element=g,ndt.ForwardRef=x,ndt.Fragment=b,ndt.Lazy=w,ndt.Memo=k,ndt.Portal=_,ndt.Profiler=C,ndt.StrictMode=M,ndt.Suspense=S,ndt.SuspenseList=D,ndt.isAsyncMode=function(e){return O||(O=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},ndt.isConcurrentMode=function(e){return P||(P=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},ndt.isContextConsumer=function(e){return m(e)===s},ndt.isContextProvider=function(e){return m(e)===i},ndt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ndt.isForwardRef=function(e){return m(e)===c},ndt.isFragment=function(e){return m(e)===o},ndt.isLazy=function(e){return m(e)===h},ndt.isMemo=function(e){return m(e)===p},ndt.isPortal=function(e){return m(e)===r},ndt.isProfiler=function(e){return m(e)===a},ndt.isStrictMode=function(e){return m(e)===n},ndt.isSuspense=function(e){return m(e)===u},ndt.isSuspenseList=function(e){return m(e)===d},ndt.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===a||t===n||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===i||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},ndt.typeOf=m}()),ndt)}(tdt);var adt=Symbol.for("react.element"),idt=Symbol.for("react.transitional.element"),sdt=Symbol.for("react.fragment");var ldt=Number(e.version.split(".")[0]),cdt=function(e,t){"function"==typeof e?e(t):"object"===fut(e)&&e&&"current"in e&&(e.current=t)},udt=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=t.filter(Boolean);return o.length<=1?o[0]:function(e){t.forEach(function(t){cdt(t,e)})}},ddt=function(e){var t,r;if(!e)return!1;if(pdt(e)&&ldt>=19)return!0;var o=tdt.exports.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===tdt.exports.ForwardRef)&&!!("function"!=typeof e||null!==(r=e.prototype)&&void 0!==r&&r.render||e.$$typeof===tdt.exports.ForwardRef)};function pdt(t){return e.isValidElement(t)&&!((r=t)&&"object"===fut(r)&&(r.$$typeof===adt||r.$$typeof===idt)&&r.type===sdt);var r}var hdt=s.createContext({}),fdt=function(){kut(t,s.Component);var e=Mut(t);function t(){return xut(this,t),e.apply(this,arguments)}return wut(t,[{key:"render",value:function(){return this.props.children}}]),t}();function mdt(e){var t=s.useRef();t.current=e;var r=s.useCallback(function(){for(var e,r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))},[]);return r}function vdt(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var ydt="test"!==process.env.NODE_ENV&&vdt()?s.useLayoutEffect:s.useEffect,gdt=function(e,t){var r=s.useRef(!0);ydt(function(){return e(r.current)},t),ydt(function(){return r.current=!1,function(){r.current=!0}},[])};function xdt(e){var t=s.useRef(!1),r=Zut(s.useState(e),2),o=r[0],n=r[1];return s.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[o,function(e,r){r&&t.current||n(e)}]}function bdt(e){return function(e){if(Array.isArray(e))return Yut(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Xut(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var wdt={},kdt=[];function _dt(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var r=kdt.reduce(function(e,t){return t(null!=e?e:"","warning")},t);r&&console.error("Warning: ".concat(r))}}function Cdt(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var r=kdt.reduce(function(e,t){return t(null!=e?e:"","note")},t);r&&console.warn("Note: ".concat(r))}}function Mdt(e,t,r){t||wdt[r]||(e(!1,r),wdt[r]=!0)}function Sdt(e,t){Mdt(_dt,e,t)}Sdt.preMessage=function(e){kdt.push(e)},Sdt.resetWarned=function(){wdt={}},Sdt.noteOnce=function(e,t){Mdt(Cdt,e,t)};var Ddt="none",Odt="appear",Pdt="enter",Edt="leave",jdt="none",Tdt="prepare",Ndt="start",Rdt="active",Fdt="end",zdt="prepared";function Idt(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}var Adt,Ldt,Bdt,Vdt=(Adt=vdt(),Ldt="undefined"!=typeof window?window:{},Bdt={animationend:Idt("Animation","AnimationEnd"),transitionend:Idt("Transition","TransitionEnd")},Adt&&("AnimationEvent"in Ldt||delete Bdt.animationend.animation,"TransitionEvent"in Ldt||delete Bdt.transitionend.transition),Bdt),Hdt={};if(vdt()){var qdt=document.createElement("div");Hdt=qdt.style}var $dt={};function Wdt(e){if($dt[e])return $dt[e];var t=Vdt[e];if(t)for(var r=Object.keys(t),o=r.length,n=0;n<o;n+=1){var a=r[n];if(Object.prototype.hasOwnProperty.call(t,a)&&a in Hdt)return $dt[e]=t[a],$dt[e]}return""}var Udt=Wdt("animationend"),Gdt=Wdt("transitionend"),Kdt=!(!Udt||!Gdt),Ydt=Udt||"animationend",Xdt=Gdt||"transitionend";function Zdt(e,t){if(!e)return null;if("object"===fut(e)){var r=t.replace(/-\w/g,function(e){return e[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}var Qdt=vdt()?e.useLayoutEffect:e.useEffect,Jdt=function(e){return+setTimeout(e,16)},ept=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Jdt=function(e){return window.requestAnimationFrame(e)},ept=function(e){return window.cancelAnimationFrame(e)});var tpt=0,rpt=new Map;function opt(e){rpt.delete(e)}var npt=function(e){var t=tpt+=1;return function r(o){if(0===o)opt(t),e();else{var n=Jdt(function(){r(o-1)});rpt.set(t,n)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};npt.cancel=function(e){var t=rpt.get(e);return opt(e),ept(t)},"production"!==process.env.NODE_ENV&&(npt.ids=function(){return rpt});var apt=[Tdt,Ndt,Rdt,Fdt],ipt=[Tdt,zdt],spt=!1;function lpt(e){return e===Rdt||e===Fdt}var cpt=function(e,t,r){var o=Zut(xdt(jdt),2),n=o[0],a=o[1],i=function(){var e=s.useRef(null);function t(){npt.cancel(e.current)}return s.useEffect(function(){return function(){t()}},[]),[function r(o){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=npt(function(){n<=1?o({isCanceled:function(){return a!==e.current}}):r(o,n-1)});e.current=a},t]}(),l=Zut(i,2),c=l[0],u=l[1];var d=t?ipt:apt;return Qdt(function(){if(n!==jdt&&n!==Fdt){var e=d.indexOf(n),t=d[e+1],o=r(n);o===spt?a(t,!0):t&&c(function(e){function r(){e.isCanceled()||a(t,!0)}!0===o?r():Promise.resolve(o).then(r)})}},[e,n]),s.useEffect(function(){return function(){u()}},[]),[function(){a(Tdt,!0)},n]};function upt(t,r,o,n){var a,i,l,c,u=n.motionEnter,d=void 0===u||u,p=n.motionAppear,h=void 0===p||p,f=n.motionLeave,m=void 0===f||f,v=n.motionDeadline,y=n.motionLeaveImmediately,g=n.onAppearPrepare,x=n.onEnterPrepare,b=n.onLeavePrepare,w=n.onAppearStart,k=n.onEnterStart,_=n.onLeaveStart,C=n.onAppearActive,M=n.onEnterActive,S=n.onLeaveActive,D=n.onAppearEnd,O=n.onEnterEnd,P=n.onLeaveEnd,E=n.onVisibleChanged,j=Zut(xdt(),2),T=j[0],N=j[1],R=(a=Ddt,i=s.useReducer(function(e){return e+1},0),l=Zut(i,2)[1],c=s.useRef(a),[mdt(function(){return c.current}),mdt(function(e){c.current="function"==typeof e?e(c.current):e,l()})]),F=Zut(R,2),z=F[0],I=F[1],A=Zut(xdt(null),2),L=A[0],B=A[1],V=z(),H=e.useRef(!1),q=e.useRef(null);function $(){return o()}var W=e.useRef(!1);function U(){I(Ddt),B(null,!0)}var G=mdt(function(e){var t=z();if(t!==Ddt){var r=$();if(!e||e.deadline||e.target===r){var o,n=W.current;t===Odt&&n?o=null==D?void 0:D(r,e):t===Pdt&&n?o=null==O?void 0:O(r,e):t===Edt&&n&&(o=null==P?void 0:P(r,e)),n&&!1!==o&&U()}}}),K=function(t){var r=e.useRef();function o(e){e&&(e.removeEventListener(Xdt,t),e.removeEventListener(Ydt,t))}return s.useEffect(function(){return function(){o(r.current)}},[]),[function(e){r.current&&r.current!==e&&o(r.current),e&&e!==r.current&&(e.addEventListener(Xdt,t),e.addEventListener(Ydt,t),r.current=e)},o]}(G),Y=Zut(K,1)[0],X=function(e){switch(e){case Odt:return vut(vut(vut({},Tdt,g),Ndt,w),Rdt,C);case Pdt:return vut(vut(vut({},Tdt,x),Ndt,k),Rdt,M);case Edt:return vut(vut(vut({},Tdt,b),Ndt,_),Rdt,S);default:return{}}},Z=s.useMemo(function(){return X(V)},[V]),Q=Zut(cpt(V,!t,function(e){if(e===Tdt){var t=Z[Tdt];return t?t($()):spt}var r;ee in Z&&B((null===(r=Z[ee])||void 0===r?void 0:r.call(Z,$(),null))||null);return ee===Rdt&&V!==Ddt&&(Y($()),v>0&&(clearTimeout(q.current),q.current=setTimeout(function(){G({deadline:!0})},v))),ee===zdt&&U(),true}),2),J=Q[0],ee=Q[1],te=lpt(ee);W.current=te;var re=e.useRef(null);Qdt(function(){if(!H.current||re.current!==r){N(r);var e,o=H.current;H.current=!0,!o&&r&&h&&(e=Odt),o&&r&&d&&(e=Pdt),(o&&!r&&m||!o&&y&&!r&&m)&&(e=Edt);var n=X(e);e&&(t||n[Tdt])?(I(e),J()):I(Ddt),re.current=r}},[r]),e.useEffect(function(){(V===Odt&&!h||V===Pdt&&!d||V===Edt&&!m)&&I(Ddt)},[h,d,m]),e.useEffect(function(){return function(){H.current=!1,clearTimeout(q.current)}},[]);var oe=s.useRef(!1);e.useEffect(function(){T&&(oe.current=!0),void 0!==T&&V===Ddt&&((oe.current||T)&&(null==E||E(T)),oe.current=!0)},[T,V]);var ne=L;return Z[Tdt]&&ee===Ndt&&(ne=gut({transition:"none"},ne)),[V,ee,ne,null!=T?T:r]}var dpt=function(t){var r=t;"object"===fut(t)&&(r=t.transitionSupport);var o=s.forwardRef(function(t,o){var n=t.visible,a=void 0===n||n,i=t.removeOnLeave,l=void 0===i||i,c=t.forceRender,u=t.children,d=t.motionName,p=t.leavedClassName,h=t.eventProps,f=function(e,t){return!(!e.motionName||!r||!1===t)}(t,s.useContext(hdt).motion),m=e.useRef(),v=e.useRef();var y=Zut(upt(f,a,function(){try{return m.current instanceof HTMLElement?m.current:Jut(v.current)}catch(e){return null}},t),4),g=y[0],x=y[1],b=y[2],w=y[3],k=s.useRef(w);w&&(k.current=!0);var _,C=s.useCallback(function(e){m.current=e,cdt(o,e)},[o]),M=gut(gut({},h),{},{visible:a});if(u)if(g===Ddt)_=w?u(gut({},M),C):!l&&k.current&&p?u(gut(gut({},M),{},{className:p}),C):c||!l&&!p?u(gut(gut({},M),{},{style:{display:"none"}}),C):null;else{var S;x===Tdt?S="prepare":lpt(x)?S="active":x===Ndt&&(S="start");var D=Zdt(d,"".concat(g,"-").concat(S));_=u(gut(gut({},M),{},{className:Qat(Zdt(d,g),vut(vut({},D,D&&S),d,"string"==typeof d)),style:b}),C)}else _=null;if(s.isValidElement(_)&&ddt(_)){var O=function(e){if(e&&pdt(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null}(_);O||(_=s.cloneElement(_,{ref:C}))}return s.createElement(fdt,{ref:v},_)});return o.displayName="CSSMotion",o}(Kdt),ppt="add",hpt="keep",fpt="remove",mpt="removed";function vpt(e){var t;return gut(gut({},t=e&&"object"===fut(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function ypt(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(vpt)}var gpt=["component","children","onVisibleChanged","onAllRemoved"],xpt=["status"],bpt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var wpt=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dpt,t=function(){kut(r,s.Component);var t=Mut(r);function r(){var e;xut(this,r);for(var o=arguments.length,n=new Array(o),a=0;a<o;a++)n[a]=arguments[a];return vut(Ss(e=t.call.apply(t,[this].concat(n))),"state",{keyEntities:[]}),vut(Ss(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:gut(gut({},e),{},{status:mpt})})}},function(){0===e.state.keyEntities.filter(function(e){return e.status!==mpt}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return wut(r,[{key:"render",value:function(){var t=this,r=this.state.keyEntities,o=this.props,n=o.component,a=o.children,i=o.onVisibleChanged;o.onAllRemoved;var l=hut(o,gpt),c=n||s.Fragment,u={};return bpt.forEach(function(e){u[e]=l[e],delete l[e]}),delete l.keys,s.createElement(c,l,r.map(function(r,o){var n=r.status,l=hut(r,xpt),c=n===ppt||n===hpt;return s.createElement(e,S({},u,{key:l.key,visible:c,eventProps:l,onVisibleChanged:function(e){null==i||i(e,{key:l.key}),e||t.removeKey(l.key)}}),function(e,t){return a(gut(gut({},e),{},{index:o}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.keys,o=t.keyEntities,n=ypt(r),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[],o=0,n=t.length,a=ypt(e),i=ypt(t);a.forEach(function(e){for(var t=!1,a=o;a<n;a+=1){var s=i[a];if(s.key===e.key){o<a&&(r=r.concat(i.slice(o,a).map(function(e){return gut(gut({},e),{},{status:ppt})})),o=a),r.push(gut(gut({},s),{},{status:hpt})),o+=1,t=!0;break}}t||r.push(gut(gut({},e),{},{status:fpt}))}),o<n&&(r=r.concat(i.slice(o).map(function(e){return gut(gut({},e),{},{status:ppt})})));var s={};r.forEach(function(e){var t=e.key;s[t]=(s[t]||0)+1});var l=Object.keys(s).filter(function(e){return s[e]>1});return l.forEach(function(e){r=r.filter(function(t){var r=t.key,o=t.status;return r!==e||o!==fpt}),r.forEach(function(t){t.key===e&&(t.status=hpt)})}),r}(o,n);return{keyEntities:a.filter(function(e){var t=o.find(function(t){var r=t.key;return e.key===r});return!t||t.status!==mpt||e.status!==fpt})}}}]),r}();return vut(t,"defaultProps",{component:"div"}),t}(Kdt),kpt=function(){kut(r,e.Component);var t=Mut(r);function r(){var e;xut(this,r);for(var o=arguments.length,n=new Array(o),a=0;a<o;a++)n[a]=arguments[a];return(e=t.call.apply(t,[this].concat(n))).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var r=e.props,o=r.onClose,n=r.noticeKey;o&&o(n)},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout(function(){e.close()},1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return wut(r,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.updateMark!==e.updateMark||this.props.visible!==e.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e=this,t=this.props,r=t.prefixCls,o=t.className,n=t.closable,a=t.closeIcon,i=t.style,l=t.onClick,c=t.children,d=t.holder,p="".concat(r,"-notice"),h=Object.keys(this.props).reduce(function(t,r){return"data-"!==r.substr(0,5)&&"aria-"!==r.substr(0,5)&&"role"!==r||(t[r]=e.props[r]),t},{}),f=s.createElement("div",S({className:Qat(p,o,vut({},"".concat(p,"-closable"),n)),style:i,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:l},h),s.createElement("div",{className:"".concat(p,"-content")},c),n?s.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(p,"-close")},a||s.createElement("span",{className:"".concat(p,"-close-x")})):null);return d?u.default.createPortal(f,d):f}}]),r}();kpt.defaultProps={onClose:function(){},duration:1.5};var _pt=["getContainer"],Cpt=0,Mpt=Date.now();function Spt(){var e=Cpt;return Cpt+=1,"rcNotification_".concat(Mpt,"_").concat(e)}var Dpt=function(){kut(r,e.Component);var t=Mut(r);function r(){var e;xut(this,r);for(var o=arguments.length,n=new Array(o),a=0;a<o;a++)n[a]=arguments[a];return(e=t.call.apply(t,[this].concat(n))).state={notices:[]},e.hookRefs=new Map,e.add=function(t,r){var o=t.key||Spt(),n=gut(gut({},t),{},{key:o}),a=e.props.maxCount;e.setState(function(e){var t=e.notices,i=t.map(function(e){return e.notice.key}).indexOf(o),s=t.concat();return-1!==i?s.splice(i,1,{notice:n,holderCallback:r}):(a&&t.length>=a&&(n.key=s[0].notice.key,n.updateMark=Spt(),n.userPassKey=o,s.shift()),s.push({notice:n,holderCallback:r})),{notices:s}})},e.remove=function(t){e.setState(function(e){return{notices:e.notices.filter(function(e){var r=e.notice,o=r.key;return(r.userPassKey||o)!==t})}})},e.noticePropsMap={},e}return wut(r,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,r=e.animation,o=this.props.transitionName;return!o&&r&&(o="".concat(t,"-").concat(r)),o}},{key:"render",value:function(){var e=this,t=this.state.notices,r=this.props,o=r.prefixCls,n=r.className,a=r.closeIcon,i=r.style,l=[];return t.forEach(function(r,n){var i=r.notice,s=r.holderCallback,c=n===t.length-1?i.updateMark:void 0,u=i.key,d=i.userPassKey,p=gut(gut(gut({prefixCls:o,closeIcon:a},i),i.props),{},{key:u,noticeKey:d||u,updateMark:c,onClose:function(t){var r;e.remove(t),null===(r=i.onClose)||void 0===r||r.call(i)},onClick:i.onClick,children:i.content});l.push(u),e.noticePropsMap[u]={props:p,holderCallback:s}}),s.createElement("div",{className:Qat(o,n),style:i},s.createElement(wpt,{keys:l,motionName:this.getTransitionName(),onVisibleChanged:function(t,r){var o=r.key;t||delete e.noticePropsMap[o]}},function(t){var r=t.key,n=t.className,a=t.style,i=t.visible,l=e.noticePropsMap[r],c=l.props,u=l.holderCallback;return u?s.createElement("div",{key:r,className:Qat(n,"".concat(o,"-hook-holder")),style:gut({},a),ref:function(t){void 0!==r&&(t?(e.hookRefs.set(r,t),u(t,c)):e.hookRefs.delete(r))}}):s.createElement(kpt,S({},c,{className:Qat(n,null==c?void 0:c.className),style:gut(gut({},a),null==c?void 0:c.style),visible:i}))}))}}]),r}();Dpt.newInstance=void 0,Dpt.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},Dpt.newInstance=function(e,t){var r=e||{},o=r.getContainer,n=hut(r,_pt),a=document.createElement("div");o?o().appendChild(a):document.body.appendChild(a);var i=!1;function l(e){i||(i=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){!function(e){Kut.apply(this,arguments)}(a),a.parentNode&&a.parentNode.removeChild(a)},useNotification:function(){return t=e,r=s.useRef({}),o=Zut(s.useState([]),2),n=o[0],a=o[1],[function(e){var o=!0;t.add(e,function(e,t){var n=t.key;if(e&&(!r.current[n]||o)){var i=s.createElement(kpt,S({},t,{holder:e}));r.current[n]=i,a(function(e){var r=e.findIndex(function(e){return e.key===t.key});if(-1===r)return[].concat(bdt(e),[i]);var o=bdt(e);return o[r]=i,o})}o=!1})},s.createElement(s.Fragment,null,n)];var t,r,o,n,a}}))}"test"===process.env.NODE_ENV&&e.TEST_RENDER?e.TEST_RENDER(s.createElement(Dpt,S({},n,{ref:l}))):$ut(s.createElement(Dpt,S({},n,{ref:l})),a)};var Opt,Ppt,Ept,jpt=mt.colors,Tpt=mt.fonts,Npt=mt.sizes,Rpt=Lt.span(Opt||(Opt=te(["\n color: ",";\n ",";\n"],["\n color: ",";\n ",";\n"])),function(e){return e.textColor},Tpt.L),Fpt=Lt.div(Ppt||(Ppt=te(["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"],["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"])),Npt.XL,Npt.M,Npt.XL),zpt=Lt.div(Ept||(Ept=te(["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"],["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"])),ut(Npt.XL),function(e){return e.backgroundColor}),Ipt=function(e){var t=e.type,r=e.message,o=function(e){switch(e){case"success":return{icon:"Check",backgroundColor:jpt.green,textColor:jpt.greenShade};case"error":return{icon:"Close",backgroundColor:jpt.red,textColor:jpt.redShade};case"warning":return{icon:"Warning",backgroundColor:jpt.yellow,textColor:jpt.yellowShade,iconColor:jpt.yellowShade,iconSize:18};case"infoTierOne":return{icon:"Bell",backgroundColor:jpt.blue,textColor:jpt.blueShade,iconSize:18};case"infoTierTwo":return{icon:"Bell",backgroundColor:jpt.gray2,textColor:ht(jpt.gray2),iconSize:18};default:return{icon:"Bell",backgroundColor:jpt.blue,textColor:jpt.blueShade}}}(t),n=o.icon,a=o.iconColor,i=o.textColor,s=o.backgroundColor,l=o.iconSize;return ct(Fpt,{children:[lt(zpt,X({backgroundColor:s},{children:lt(rC,{size:l||32,name:n,color:a||jpt.white})})),lt(Rpt,X({textColor:i},{children:r}))]})},Apt=null;Dpt.newInstance({maxCount:2},function(e){return Apt=e});var Lpt=function(e){var t=e.message,r=e.type,o=void 0===r?"success":r,n=e.duration,a=void 0===n?2.5:n;return null==Apt?void 0:Apt.notice({content:lt(Ipt,{message:t,type:o}),className:"toast-".concat(o),closable:!0,closeIcon:lt(rC,{name:"Close"}),duration:a})};function Bpt(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}function Vpt(e,t,r,o){var n=u.default.unstable_batchedUpdates?function(e){u.default.unstable_batchedUpdates(r,e)}:r;return null!=e&&e.addEventListener&&e.addEventListener(t,n,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,n,o)}}}var Hpt=e.forwardRef(function(t,r){var o=t.didUpdate,n=t.getContainer,a=t.children,i=e.useRef(),s=e.useRef();e.useImperativeHandle(r,function(){return{}});var l=e.useRef(!1);return!l.current&&vdt()&&(s.current=n(),i.current=s.current.parentNode,l.current=!0),e.useEffect(function(){null==o||o(t)}),e.useEffect(function(){return null===s.current.parentNode&&null!==i.current&&i.current.appendChild(s.current),function(){var e;null===(e=s.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(s.current)}},[]),s.current?u.default.createPortal(a,s.current):null});function qpt(e,t,r){return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var $pt;function Wpt(e){var t=e.prefixCls,r=e.motion,o=e.animation,n=e.transitionName;return r||(o?{motionName:"".concat(t,"-").concat(o)}:n?{motionName:n}:null)}function Upt(e){var t=e.prefixCls,r=e.visible,o=e.zIndex,n=e.mask,a=e.maskMotion,i=e.maskAnimation,l=e.maskTransitionName;if(!n)return null;var c={};return(a||l||i)&&(c=gut({motionAppear:!0},Wpt({motion:a,prefixCls:t,transitionName:l,animation:i}))),s.createElement(dpt,S({},c,{visible:r,removeOnLeave:!0}),function(e){var r=e.className;return s.createElement("div",{style:{zIndex:o},className:Qat("".concat(t,"-mask"),r)})})}function Gpt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function Kpt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gpt(Object(r),!0).forEach(function(t){Xpt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gpt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ypt(e){return Ypt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ypt(e)}function Xpt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Zpt={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function Qpt(){if(void 0!==$pt)return $pt;$pt="";var e=document.createElement("p").style;for(var t in Zpt)t+"Transform"in e&&($pt=t);return $pt}function Jpt(){return Qpt()?"".concat(Qpt(),"TransitionProperty"):"transitionProperty"}function eht(){return Qpt()?"".concat(Qpt(),"Transform"):"transform"}function tht(e,t){var r=Jpt();r&&(e.style[r]=t,"transitionProperty"!==r&&(e.style.transitionProperty=t))}function rht(e,t){var r=eht();r&&(e.style[r]=t,"transform"!==r&&(e.style.transform=t))}var oht,nht=/matrix\((.*)\)/,aht=/matrix3d\((.*)\)/;function iht(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function sht(e,t,r){var o=r;if("object"!==Ypt(t))return void 0!==o?("number"==typeof o&&(o="".concat(o,"px")),void(e.style[t]=o)):oht(e,t);for(var n in t)t.hasOwnProperty(n)&&sht(e,n,t[n])}function lht(e,t){var r=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof r){var n=e.document;"number"!=typeof(r=n.documentElement[o])&&(r=n.body[o])}return r}function cht(e){return lht(e)}function uht(e){return lht(e,!0)}function dht(e){var t=function(e){var t,r,o,n=e.ownerDocument,a=n.body,i=n&&n.documentElement;return t=e.getBoundingClientRect(),r=Math.floor(t.left),o=Math.floor(t.top),{left:r-=i.clientLeft||a.clientLeft||0,top:o-=i.clientTop||a.clientTop||0}}(e),r=e.ownerDocument,o=r.defaultView||r.parentWindow;return t.left+=cht(o),t.top+=uht(o),t}function pht(e){return null!=e&&e==e.window}function hht(e){return pht(e)?e.document:9===e.nodeType?e:e.ownerDocument}var fht=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),mht=/^(top|right|bottom|left)$/,vht="currentStyle",yht="runtimeStyle",ght="left";function xht(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function bht(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function wht(e,t,r){"static"===sht(e,"position")&&(e.style.position="relative");var o=-999,n=-999,a=xht("left",r),i=xht("top",r),s=bht(a),l=bht(i);"left"!==a&&(o=999),"top"!==i&&(n=999);var c="",u=dht(e);("left"in t||"top"in t)&&(c=function(e){return e.style.transitionProperty||e.style[Jpt()]}(e)||"",tht(e,"none")),"left"in t&&(e.style[s]="",e.style[a]="".concat(o,"px")),"top"in t&&(e.style[l]="",e.style[i]="".concat(n,"px")),iht(e);var d=dht(e),p={};for(var h in t)if(t.hasOwnProperty(h)){var f=xht(h,r),m="left"===h?o:n,v=u[h]-d[h];p[f]=f===h?m+v:m-v}sht(e,p),iht(e),("left"in t||"top"in t)&&tht(e,c);var y={};for(var g in t)if(t.hasOwnProperty(g)){var x=xht(g,r),b=t[g]-u[g];y[x]=g===x?p[x]+b:p[x]-b}sht(e,y)}function kht(e,t){var r=dht(e),o=function(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("transform")||t.getPropertyValue(eht());if(r&&"none"!==r){var o=r.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}(e),n={x:o.x,y:o.y};"left"in t&&(n.x=o.x+t.left-r.left),"top"in t&&(n.y=o.y+t.top-r.top),function(e,t){var r=window.getComputedStyle(e,null),o=r.getPropertyValue("transform")||r.getPropertyValue(eht());if(o&&"none"!==o){var n,a=o.match(nht);a?((n=(a=a[1]).split(",").map(function(e){return parseFloat(e,10)}))[4]=t.x,n[5]=t.y,rht(e,"matrix(".concat(n.join(","),")"))):((n=o.match(aht)[1].split(",").map(function(e){return parseFloat(e,10)}))[12]=t.x,n[13]=t.y,rht(e,"matrix3d(".concat(n.join(","),")")))}else rht(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,n)}function _ht(e,t){for(var r=0;r<e.length;r++)t(e[r])}function Cht(e){return"border-box"===oht(e,"boxSizing")}"undefined"!=typeof window&&(oht=window.getComputedStyle?function(e,t,r){var o=r,n="",a=hht(e);return(o=o||a.defaultView.getComputedStyle(e,null))&&(n=o.getPropertyValue(t)||o[t]),n}:function(e,t){var r=e[vht]&&e[vht][t];if(fht.test(r)&&!mht.test(t)){var o=e.style,n=o[ght],a=e[yht][ght];e[yht][ght]=e[vht][ght],o[ght]="fontSize"===t?"1em":r||0,r=o.pixelLeft+"px",o[ght]=n,e[yht][ght]=a}return""===r?"auto":r});var Mht=["margin","border","padding"];function Sht(e,t,r){var o,n,a,i=0;for(n=0;n<t.length;n++)if(o=t[n])for(a=0;a<r.length;a++){var s=void 0;s="border"===o?"".concat(o).concat(r[a],"Width"):o+r[a],i+=parseFloat(oht(e,s))||0}return i}var Dht={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function Oht(e,t,r){var o=r;if(pht(e))return"width"===t?Dht.viewportWidth(e):Dht.viewportHeight(e);if(9===e.nodeType)return"width"===t?Dht.docWidth(e):Dht.docHeight(e);var n="width"===t?["Left","Right"]:["Top","Bottom"],a="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),i=Cht(e),s=0;(null==a||a<=0)&&(a=void 0,(null==(s=oht(e,t))||Number(s)<0)&&(s=e.style[t]||0),s=Math.floor(parseFloat(s))||0),void 0===o&&(o=i?1:-1);var l=void 0!==a||i,c=a||s;return-1===o?l?c-Sht(e,["border","padding"],n):s:l?1===o?c:c+(2===o?-Sht(e,["border"],n):Sht(e,["margin"],n)):s+Sht(e,Mht.slice(o),n)}_ht(["Width","Height"],function(e){Dht["doc".concat(e)]=function(t){var r=t.document;return Math.max(r.documentElement["scroll".concat(e)],r.body["scroll".concat(e)],Dht["viewport".concat(e)](r))},Dht["viewport".concat(e)]=function(t){var r="client".concat(e),o=t.document,n=o.body,a=o.documentElement[r];return"CSS1Compat"===o.compatMode&&a||n&&n[r]||a}});var Pht={position:"absolute",visibility:"hidden",display:"block"};function Eht(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,n=t[0];return 0!==n.offsetWidth?o=Oht.apply(void 0,t):function(e,t,r){var o,n={},a=e.style;for(o in t)t.hasOwnProperty(o)&&(n[o]=a[o],a[o]=t[o]);for(o in r.call(e),t)t.hasOwnProperty(o)&&(a[o]=n[o])}(n,Pht,function(){o=Oht.apply(void 0,t)}),o}function jht(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}_ht(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);Dht["outer".concat(t)]=function(t,r){return t&&Eht(t,e,r?0:1)};var r="width"===e?["Left","Right"]:["Top","Bottom"];Dht[e]=function(t,o){var n=o;return void 0!==n?t?(Cht(t)&&(n+=Sht(t,["padding","border"],r)),sht(t,e,n)):void 0:t&&Eht(t,e,-1)}});var Tht={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:hht,offset:function(e,t,r){if(void 0===t)return dht(e);!function(e,t,r){if(r.ignoreShake){var o=dht(e),n=o.left.toFixed(0),a=o.top.toFixed(0),i=t.left.toFixed(0),s=t.top.toFixed(0);if(n===i&&a===s)return}r.useCssRight||r.useCssBottom?wht(e,t,r):r.useCssTransform&&eht()in document.body.style?kht(e,t):wht(e,t,r)}(e,t,r||{})},isWindow:pht,each:_ht,css:sht,clone:function(e){var t,r={};for(t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(r.overflow[t]=e.overflow[t]);return r},mix:jht,getWindowScrollLeft:function(e){return cht(e)},getWindowScrollTop:function(e){return uht(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)Tht.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};jht(Tht,Dht);var Nht=Tht.getParent;function Rht(e){if(Tht.isWindow(e)||9===e.nodeType)return null;var t,r=Tht.getDocument(e).body,o=Tht.css(e,"position");if(!("fixed"===o||"absolute"===o))return"html"===e.nodeName.toLowerCase()?null:Nht(e);for(t=Nht(e);t&&t!==r&&9!==t.nodeType;t=Nht(t))if("static"!==(o=Tht.css(t,"position")))return t;return null}var Fht=Tht.getParent;function zht(e,t){for(var r={left:0,right:1/0,top:0,bottom:1/0},o=Rht(e),n=Tht.getDocument(e),a=n.defaultView||n.parentWindow,i=n.body,s=n.documentElement;o;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===o.clientWidth||o===i||o===s||"visible"===Tht.css(o,"overflow")){if(o===i||o===s)break}else{var l=Tht.offset(o);l.left+=o.clientLeft,l.top+=o.clientTop,r.top=Math.max(r.top,l.top),r.right=Math.min(r.right,l.left+o.clientWidth),r.bottom=Math.min(r.bottom,l.top+o.clientHeight),r.left=Math.max(r.left,l.left)}o=Rht(o)}var c=null;Tht.isWindow(e)||9===e.nodeType||(c=e.style.position,"absolute"===Tht.css(e,"position")&&(e.style.position="fixed"));var u=Tht.getWindowScrollLeft(a),d=Tht.getWindowScrollTop(a),p=Tht.viewportWidth(a),h=Tht.viewportHeight(a),f=s.scrollWidth,m=s.scrollHeight,v=window.getComputedStyle(i);if("hidden"===v.overflowX&&(f=a.innerWidth),"hidden"===v.overflowY&&(m=a.innerHeight),e.style&&(e.style.position=c),t||function(e){if(Tht.isWindow(e)||9===e.nodeType)return!1;var t=Tht.getDocument(e),r=t.body,o=null;for(o=Fht(e);o&&o!==r&&o!==t;o=Fht(o))if("fixed"===Tht.css(o,"position"))return!0;return!1}(e))r.left=Math.max(r.left,u),r.top=Math.max(r.top,d),r.right=Math.min(r.right,u+p),r.bottom=Math.min(r.bottom,d+h);else{var y=Math.max(f,u+p);r.right=Math.min(r.right,y);var g=Math.max(m,d+h);r.bottom=Math.min(r.bottom,g)}return r.top>=0&&r.left>=0&&r.bottom>r.top&&r.right>r.left?r:null}function Iht(e){var t,r,o;if(Tht.isWindow(e)||9===e.nodeType){var n=Tht.getWindow(e);t={left:Tht.getWindowScrollLeft(n),top:Tht.getWindowScrollTop(n)},r=Tht.viewportWidth(n),o=Tht.viewportHeight(n)}else t=Tht.offset(e),r=Tht.outerWidth(e),o=Tht.outerHeight(e);return t.width=r,t.height=o,t}function Aht(e,t){var r=t.charAt(0),o=t.charAt(1),n=e.width,a=e.height,i=e.left,s=e.top;return"c"===r?s+=a/2:"b"===r&&(s+=a),"c"===o?i+=n/2:"r"===o&&(i+=n),{left:i,top:s}}function Lht(e,t,r,o,n){var a=Aht(t,r[1]),i=Aht(e,r[0]),s=[i.left-a.left,i.top-a.top];return{left:Math.round(e.left-s[0]+o[0]-n[0]),top:Math.round(e.top-s[1]+o[1]-n[1])}}function Bht(e,t,r){return e.left<r.left||e.left+t.width>r.right}function Vht(e,t,r){return e.top<r.top||e.top+t.height>r.bottom}function Hht(e,t,r){var o=[];return Tht.each(e,function(e){o.push(e.replace(t,function(e){return r[e]}))}),o}function qht(e,t){return e[t]=-e[t],e}function $ht(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Wht(e,t){e[0]=$ht(e[0],t.width),e[1]=$ht(e[1],t.height)}function Uht(e,t,r,o){var n=r.points,a=r.offset||[0,0],i=r.targetOffset||[0,0],s=r.overflow,l=r.source||e;a=[].concat(a),i=[].concat(i);var c={},u=0,d=zht(l,!(!(s=s||{})||!s.alwaysByViewport)),p=Iht(l);Wht(a,p),Wht(i,t);var h=Lht(p,t,n,a,i),f=Tht.merge(p,h);if(d&&(s.adjustX||s.adjustY)&&o){if(s.adjustX&&Bht(h,p,d)){var m=Hht(n,/[lr]/gi,{l:"r",r:"l"}),v=qht(a,0),y=qht(i,0);(function(e,t,r){return e.left>r.right||e.left+t.width<r.left})(Lht(p,t,m,v,y),p,d)||(u=1,n=m,a=v,i=y)}if(s.adjustY&&Vht(h,p,d)){var g=Hht(n,/[tb]/gi,{t:"b",b:"t"}),x=qht(a,1),b=qht(i,1);(function(e,t,r){return e.top>r.bottom||e.top+t.height<r.top})(Lht(p,t,g,x,b),p,d)||(u=1,n=g,a=x,i=b)}u&&(h=Lht(p,t,n,a,i),Tht.mix(f,h));var w=Bht(h,p,d),k=Vht(h,p,d);if(w||k){var _=n;w&&(_=Hht(n,/[lr]/gi,{l:"r",r:"l"})),k&&(_=Hht(n,/[tb]/gi,{t:"b",b:"t"})),n=_,a=r.offset||[0,0],i=r.targetOffset||[0,0]}c.adjustX=s.adjustX&&w,c.adjustY=s.adjustY&&k,(c.adjustX||c.adjustY)&&(f=function(e,t,r,o){var n=Tht.clone(e),a={width:t.width,height:t.height};return o.adjustX&&n.left<r.left&&(n.left=r.left),o.resizeWidth&&n.left>=r.left&&n.left+a.width>r.right&&(a.width-=n.left+a.width-r.right),o.adjustX&&n.left+a.width>r.right&&(n.left=Math.max(r.right-a.width,r.left)),o.adjustY&&n.top<r.top&&(n.top=r.top),o.resizeHeight&&n.top>=r.top&&n.top+a.height>r.bottom&&(a.height-=n.top+a.height-r.bottom),o.adjustY&&n.top+a.height>r.bottom&&(n.top=Math.max(r.bottom-a.height,r.top)),Tht.mix(n,a)}(h,p,d,c))}return f.width!==p.width&&Tht.css(l,"width",Tht.width(l)+f.width-p.width),f.height!==p.height&&Tht.css(l,"height",Tht.height(l)+f.height-p.height),Tht.offset(l,{left:f.left,top:f.top},{useCssRight:r.useCssRight,useCssBottom:r.useCssBottom,useCssTransform:r.useCssTransform,ignoreShake:r.ignoreShake}),{points:n,offset:a,targetOffset:i,overflow:c}}function Ght(e,t,r){var o=r.target||t,n=Iht(o),a=!function(e,t){var r=zht(e,t),o=Iht(e);return!r||o.left+o.width<=r.left||o.top+o.height<=r.top||o.left>=r.right||o.top>=r.bottom}(o,r.overflow&&r.overflow.alwaysByViewport);return Uht(e,n,r,a)}Ght.__getOffsetParent=Rht,Ght.__getVisibleRectForElement=zht;function Kht(e,t){var r=null,o=null;var n=new Jst(function(e){var n=Zut(e,1)[0].target;if(document.documentElement.contains(n)){var a=n.getBoundingClientRect(),i=a.width,s=a.height,l=Math.floor(i),c=Math.floor(s);r===l&&o===c||Promise.resolve().then(function(){t({width:l,height:c})}),r=l,o=c}});return e&&n.observe(e),function(){n.disconnect()}}function Yht(e){return"function"!=typeof e?null:e()}function Xht(e){return"object"===fut(e)&&e?e:null}var Zht=function(e,t){var r=e.children,o=e.disabled,n=e.target,a=e.align,i=e.onAlign,s=e.monitorWindowResize,c=e.monitorBufferTime,u=void 0===c?0:c,d=l.default.useRef({}),p=l.default.useRef(),h=l.default.Children.only(r),f=l.default.useRef({});f.current.disabled=o,f.current.target=n,f.current.align=a,f.current.onAlign=i;var m=function(e,t){var r=l.default.useRef(!1),o=l.default.useRef(null);function n(){window.clearTimeout(o.current)}return[function a(i){if(n(),r.current&&!0!==i)o.current=window.setTimeout(function(){r.current=!1,a()},t);else{if(!1===e(i))return;r.current=!0,o.current=window.setTimeout(function(){r.current=!1},t)}},function(){r.current=!1,n()}]}(function(){var e=f.current,t=e.disabled,r=e.target,o=e.align,n=e.onAlign,a=p.current;if(!t&&r&&a){var i,s=Yht(r),l=Xht(r);d.current.element=s,d.current.point=l,d.current.align=o;var c=document.activeElement;return s&&function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,o=t.height;if(r||o)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect(),a=n.width,i=n.height;if(a||i)return!0}}return!1}(s)?i=Ght(a,s,o):l&&(i=function(e,t,r){var o,n,a=Tht.getDocument(e),i=a.defaultView||a.parentWindow,s=Tht.getWindowScrollLeft(i),l=Tht.getWindowScrollTop(i),c=Tht.viewportWidth(i),u=Tht.viewportHeight(i),d={left:o="pageX"in t?t.pageX:s+t.clientX,top:n="pageY"in t?t.pageY:l+t.clientY,width:0,height:0},p=o>=0&&o<=s+c&&n>=0&&n<=l+u,h=[r.points[0],"cc"];return Uht(e,d,Kpt(Kpt({},r),{},{points:h}),p)}(a,l,o)),function(e,t){e!==document.activeElement&&Bpt(t,e)&&"function"==typeof e.focus&&e.focus()}(c,a),n&&i&&n(a,i),!0}return!1},u),v=Zut(m,2),y=v[0],g=v[1],x=Zut(l.default.useState(),2),b=x[0],w=x[1],k=Zut(l.default.useState(),2),_=k[0],C=k[1];return gdt(function(){w(Yht(n)),C(Xht(n))}),l.default.useEffect(function(){d.current.element===b&&function(e,t){return e===t||!(!e||!t)&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY)}(d.current.point,_)&&function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=o.has(t);if(Sdt(!i,"Warning: There may be circular references"),i)return!1;if(t===n)return!0;if(r&&a>1)return!1;o.add(t);var s=a+1;if(Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],n[l],s))return!1;return!0}if(t&&n&&"object"===fut(t)&&"object"===fut(n)){var c=Object.keys(t);return c.length===Object.keys(n).length&&c.every(function(r){return e(t[r],n[r],s)})}return!1}(e,t)}(d.current.align,a)||y()}),l.default.useEffect(function(){return Kht(p.current,y)},[p.current]),l.default.useEffect(function(){return Kht(b,y)},[b]),l.default.useEffect(function(){o?g():y()},[o]),l.default.useEffect(function(){if(s)return Vpt(window,"resize",y).remove},[s]),l.default.useEffect(function(){return function(){g()}},[]),l.default.useImperativeHandle(t,function(){return{forceAlign:function(){return y(!0)}}}),l.default.isValidElement(h)&&(h=l.default.cloneElement(h,{ref:udt(h.ref,p)})),h},Qht=l.default.forwardRef(Zht);Qht.displayName="Align";var Jht=["measure","alignPre","align",null,"motion"],eft=s.forwardRef(function(t,r){var o=t.visible,n=t.prefixCls,a=t.className,i=t.style,l=t.children,c=t.zIndex,u=t.stretch,d=t.destroyPopupOnHide,p=t.forceRender,h=t.align,f=t.point,m=t.getRootDomNode,v=t.getClassNameFromAlign,y=t.onAlign,g=t.onMouseEnter,x=t.onMouseLeave,b=t.onMouseDown,w=t.onTouchStart,k=t.onClick,_=e.useRef(),C=e.useRef(),M=Zut(e.useState(),2),D=M[0],O=M[1],P=function(e){var t=Zut(s.useState({width:0,height:0}),2),r=t[0],o=t[1],n=s.useMemo(function(){var t={};if(e){var o=r.width,n=r.height;-1!==e.indexOf("height")&&n?t.height=n:-1!==e.indexOf("minHeight")&&n&&(t.minHeight=n),-1!==e.indexOf("width")&&o?t.width=o:-1!==e.indexOf("minWidth")&&o&&(t.minWidth=o)}return t},[e,r]);return[n,function(e){var t=e.offsetWidth,r=e.offsetHeight,n=e.getBoundingClientRect(),a=n.width,i=n.height;Math.abs(t-a)<1&&Math.abs(r-i)<1&&(t=a,r=i),o({width:t,height:r})}]}(u),E=Zut(P,2),j=E[0],T=E[1];var N=function(t,r){var o=Zut(xdt(null),2),n=o[0],a=o[1],i=e.useRef();function s(e){a(e,!0)}function l(){npt.cancel(i.current)}return e.useEffect(function(){s("measure")},[t]),e.useEffect(function(){"measure"===n&&r(),n&&(i.current=npt(zut(Rut().mark(function e(){var t,r;return Rut().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=Jht.indexOf(n),(r=Jht[t+1])&&-1!==t&&s(r);case 3:case"end":return e.stop()}},e)}))))},[n]),e.useEffect(function(){return function(){l()}},[]),[n,function(e){l(),i.current=npt(function(){s(function(e){switch(n){case"align":return"motion";case"motion":return"stable"}return e}),null==e||e()})}]}(o,function(){u&&T(m())}),R=Zut(N,2),F=R[0],z=R[1],I=Zut(e.useState(0),2),A=I[0],L=I[1],B=e.useRef();function V(){var e;null===(e=_.current)||void 0===e||e.forceAlign()}function H(e,t){var r=v(t);D!==r&&O(r),L(function(e){return e+1}),"align"===F&&(null==y||y(e,t))}gdt(function(){"alignPre"===F&&L(0)},[F]),gdt(function(){"align"===F&&(A<3?V():z(function(){var e;null===(e=B.current)||void 0===e||e.call(B)}))},[A]);var q=gut({},Wpt(t));function $(){return new Promise(function(e){B.current=e})}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(e){var t=q[e];q[e]=function(e,r){return z(),null==t?void 0:t(e,r)}}),s.useEffect(function(){q.motionName||"motion"!==F||z()},[q.motionName,F]),s.useImperativeHandle(r,function(){return{forceAlign:V,getElement:function(){return C.current}}});var W=gut(gut({},j),{},{zIndex:c,opacity:"motion"!==F&&"stable"!==F&&o?0:void 0,pointerEvents:o||"stable"===F?void 0:"none"},i),U=!0;null==h||!h.points||"align"!==F&&"stable"!==F||(U=!1);var G=l;return s.Children.count(l)>1&&(G=s.createElement("div",{className:"".concat(n,"-content")},l)),s.createElement(dpt,S({visible:o,ref:C,leavedClassName:"".concat(n,"-hidden")},q,{onAppearPrepare:$,onEnterPrepare:$,removeOnLeave:d,forceRender:p}),function(e,t){var r=e.className,o=e.style,i=Qat(n,a,D,r);return s.createElement(Qht,{target:f||m,key:"popup",ref:_,monitorWindowResize:!0,disabled:U,align:h,onAlign:H},s.createElement("div",{ref:t,className:i,onMouseEnter:g,onMouseLeave:x,onMouseDownCapture:b,onTouchStartCapture:w,onClick:k,style:gut(gut({},o),W)},G))})});eft.displayName="PopupInner";var tft=s.forwardRef(function(e,t){var r=e.prefixCls,o=e.visible,n=e.zIndex,a=e.children,i=e.mobile,l=(i=void 0===i?{}:i).popupClassName,c=i.popupStyle,u=i.popupMotion,d=void 0===u?{}:u,p=i.popupRender,h=e.onClick,f=s.useRef();s.useImperativeHandle(t,function(){return{forceAlign:function(){},getElement:function(){return f.current}}});var m=gut({zIndex:n},c),v=a;return s.Children.count(a)>1&&(v=s.createElement("div",{className:"".concat(r,"-content")},a)),p&&(v=p(v)),s.createElement(dpt,S({visible:o,ref:f,removeOnLeave:!0},d),function(e,t){var o=e.className,n=e.style,a=Qat(r,l,o);return s.createElement("div",{ref:t,className:a,onClick:h,style:gut(gut({},n),m)},v)})});tft.displayName="MobilePopupInner";var rft=["visible","mobile"],oft=s.forwardRef(function(t,r){var o=t.visible,n=t.mobile,a=hut(t,rft),i=Zut(e.useState(o),2),l=i[0],c=i[1],u=Zut(e.useState(!1),2),d=u[0],p=u[1],h=gut(gut({},a),{},{visible:l});e.useEffect(function(){c(o),o&&n&&p(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())},[o,n]);var f=d?s.createElement(tft,S({},h,{mobile:n,ref:r})):s.createElement(eft,S({},h,{ref:r}));return s.createElement("div",null,s.createElement(Upt,h),f)});oft.displayName="Popup";var nft=s.createContext(null);function aft(){}function ift(){return""}function sft(e){return e?e.ownerDocument:window.document}var lft=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var cft=function(e){var t=function(){kut(r,s.Component);var t=Mut(r);function r(e){var o,n;return xut(this,r),vut(Ss(o=t.call(this,e)),"popupRef",s.createRef()),vut(Ss(o),"triggerRef",s.createRef()),vut(Ss(o),"portalContainer",void 0),vut(Ss(o),"attachId",void 0),vut(Ss(o),"clickOutsideHandler",void 0),vut(Ss(o),"touchOutsideHandler",void 0),vut(Ss(o),"contextMenuOutsideHandler1",void 0),vut(Ss(o),"contextMenuOutsideHandler2",void 0),vut(Ss(o),"mouseDownTimeout",void 0),vut(Ss(o),"focusTime",void 0),vut(Ss(o),"preClickTime",void 0),vut(Ss(o),"preTouchTime",void 0),vut(Ss(o),"delayTimer",void 0),vut(Ss(o),"hasPopupMouseDown",void 0),vut(Ss(o),"onMouseEnter",function(e){var t=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",e),o.delaySetPopupVisible(!0,t,t?null:e)}),vut(Ss(o),"onMouseMove",function(e){o.fireEvents("onMouseMove",e),o.setPoint(e)}),vut(Ss(o),"onMouseLeave",function(e){o.fireEvents("onMouseLeave",e),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)}),vut(Ss(o),"onPopupMouseEnter",function(){o.clearDelayTimer()}),vut(Ss(o),"onPopupMouseLeave",function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&Bpt(null===(t=o.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)}),vut(Ss(o),"onFocus",function(e){o.fireEvents("onFocus",e),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))}),vut(Ss(o),"onMouseDown",function(e){o.fireEvents("onMouseDown",e),o.preClickTime=Date.now()}),vut(Ss(o),"onTouchStart",function(e){o.fireEvents("onTouchStart",e),o.preTouchTime=Date.now()}),vut(Ss(o),"onBlur",function(e){o.fireEvents("onBlur",e),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)}),vut(Ss(o),"onContextMenu",function(e){e.preventDefault(),o.fireEvents("onContextMenu",e),o.setPopupVisible(!0,e)}),vut(Ss(o),"onContextMenuClose",function(){o.isContextMenuToShow()&&o.close()}),vut(Ss(o),"onClick",function(e){if(o.fireEvents("onClick",e),o.focusTime){var t;if(o.preClickTime&&o.preTouchTime?t=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?t=o.preClickTime:o.preTouchTime&&(t=o.preTouchTime),Math.abs(t-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!o.state.popupVisible;(o.isClickToHide()&&!r||r&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,e)}),vut(Ss(o),"onPopupMouseDown",function(){var e;(o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout(function(){o.hasPopupMouseDown=!1},0),o.context)&&(e=o.context).onPopupMouseDown.apply(e,arguments)}),vut(Ss(o),"onDocumentClick",function(e){if(!o.props.mask||o.props.maskClosable){var t=e.target,r=o.getRootDomNode(),n=o.getPopupDomNode();Bpt(r,t)&&!o.isContextMenuOnly()||Bpt(n,t)||o.hasPopupMouseDown||o.close()}}),vut(Ss(o),"getRootDomNode",function(){var e=o.props.getTriggerDOMNode;if(e)return e(o.triggerRef.current);try{var t=Jut(o.triggerRef.current);if(t)return t}catch(e){}return u.default.findDOMNode(Ss(o))}),vut(Ss(o),"getPopupClassNameFromAlign",function(e){var t=[],r=o.props,n=r.popupPlacement,a=r.builtinPlacements,i=r.prefixCls,s=r.alignPoint,l=r.getPopupClassNameFromAlign;return n&&a&&t.push(function(e,t,r,o){for(var n=r.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s=a[i];if(qpt(e[s].points,n,o))return"".concat(t,"-placement-").concat(s)}return""}(a,i,e,s)),l&&t.push(l(e)),t.join(" ")}),vut(Ss(o),"getComponent",function(){var e=o.props,t=e.prefixCls,r=e.destroyPopupOnHide,n=e.popupClassName,a=e.onPopupAlign,i=e.popupMotion,l=e.popupAnimation,c=e.popupTransitionName,u=e.popupStyle,d=e.mask,p=e.maskAnimation,h=e.maskTransitionName,f=e.maskMotion,m=e.zIndex,v=e.popup,y=e.stretch,g=e.alignPoint,x=e.mobile,b=e.forceRender,w=e.onPopupClick,k=o.state,_=k.popupVisible,C=k.point,M=o.getPopupAlign(),D={};return o.isMouseEnterToShow()&&(D.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(D.onMouseLeave=o.onPopupMouseLeave),D.onMouseDown=o.onPopupMouseDown,D.onTouchStart=o.onPopupMouseDown,s.createElement(oft,S({prefixCls:t,destroyPopupOnHide:r,visible:_,point:g&&C,className:n,align:M,onAlign:a,animation:l,getClassNameFromAlign:o.getPopupClassNameFromAlign},D,{stretch:y,getRootDomNode:o.getRootDomNode,style:u,mask:d,zIndex:m,transitionName:c,maskAnimation:p,maskTransitionName:h,maskMotion:f,ref:o.popupRef,motion:i,mobile:x,forceRender:b,onClick:w}),"function"==typeof v?v():v)}),vut(Ss(o),"attachParent",function(e){npt.cancel(o.attachId);var t,r=o.props,n=r.getPopupContainer,a=r.getDocument,i=o.getRootDomNode();n?(i||0===n.length)&&(t=n(i)):t=a(o.getRootDomNode()).body,t?t.appendChild(e):o.attachId=npt(function(){o.attachParent(e)})}),vut(Ss(o),"getContainer",function(){if(!o.portalContainer){var e=(0,o.props.getDocument)(o.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",o.portalContainer=e}return o.attachParent(o.portalContainer),o.portalContainer}),vut(Ss(o),"setPoint",function(e){o.props.alignPoint&&e&&o.setState({point:{pageX:e.pageX,pageY:e.pageY}})}),vut(Ss(o),"handlePortalUpdate",function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)}),vut(Ss(o),"triggerContextValue",{onPopupMouseDown:o.onPopupMouseDown}),n="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,o.state={prevPopupVisible:n,popupVisible:n},lft.forEach(function(e){o["fire".concat(e)]=function(t){o.fireEvents(e,t)}}),o}return wut(r,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Vpt(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Vpt(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Vpt(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Vpt(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),npt.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,r=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,r){return gut(gut({},e[t]||{}),r)}(o,t,r):r}},{key:"setPopupVisible",value:function(e,t){var r=this.props.alignPoint,o=this.state.popupVisible;this.clearDelayTimer(),o!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:o}),this.props.onPopupVisibleChange(e)),r&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,r){var o=this,n=1e3*t;if(this.clearDelayTimer(),n){var a=r?{pageX:r.pageX,pageY:r.pageY}:null;this.delayTimer=window.setTimeout(function(){o.setPopupVisible(e,a),o.clearDelayTimer()},n)}else this.setPopupVisible(e,r)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,r=this.props;return t[e]&&r[e]?this["fire".concat(e)]:t[e]||r[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,r=e.showAction;return-1!==t.indexOf("click")||-1!==r.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,r=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==r.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,r=e.hideAction;return-1!==t.indexOf("click")||-1!==r.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,r=e.showAction;return-1!==t.indexOf("hover")||-1!==r.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,r=e.hideAction;return-1!==t.indexOf("hover")||-1!==r.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,r=e.showAction;return-1!==t.indexOf("focus")||-1!==r.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,r=e.hideAction;return-1!==t.indexOf("focus")||-1!==r.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var r=this.props.children.props[e];r&&r(t);var o=this.props[e];o&&o(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,r=this.props,o=r.children,n=r.forceRender,a=r.alignPoint,i=r.className,l=r.autoDestroy,c=s.Children.only(o),u={key:"trigger"};this.isContextMenuToShow()?u.onContextMenu=this.onContextMenu:u.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(u.onClick=this.onClick,u.onMouseDown=this.onMouseDown,u.onTouchStart=this.onTouchStart):(u.onClick=this.createTwoChains("onClick"),u.onMouseDown=this.createTwoChains("onMouseDown"),u.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(u.onMouseEnter=this.onMouseEnter,a&&(u.onMouseMove=this.onMouseMove)):u.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?u.onMouseLeave=this.onMouseLeave:u.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(u.onFocus=this.onFocus,u.onBlur=this.onBlur):(u.onFocus=this.createTwoChains("onFocus"),u.onBlur=this.createTwoChains("onBlur"));var d=Qat(c&&c.props&&c.props.className,i);d&&(u.className=d);var p=gut({},u);ddt(c)&&(p.ref=udt(this.triggerRef,c.ref));var h,f=s.cloneElement(c,p);return(t||this.popupRef.current||n)&&(h=s.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&l&&(h=null),s.createElement(nft.Provider,{value:this.triggerContextValue},f,h)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.popupVisible,o={};return void 0!==r&&t.popupVisible!==r&&(o.popupVisible=r,o.prevPopupVisible=t.popupVisible),o}}]),r}();return vut(t,"contextType",nft),vut(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:ift,getDocument:sft,onPopupVisibleChange:aft,afterPopupVisibleChange:aft,onPopupAlign:aft,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}(Hpt),uft={adjustX:1,adjustY:1},dft=[0,0],pft={left:{points:["cr","cl"],overflow:uft,offset:[-4,0],targetOffset:dft},right:{points:["cl","cr"],overflow:uft,offset:[4,0],targetOffset:dft},top:{points:["bc","tc"],overflow:uft,offset:[0,-4],targetOffset:dft},bottom:{points:["tc","bc"],overflow:uft,offset:[0,4],targetOffset:dft},topLeft:{points:["bl","tl"],overflow:uft,offset:[0,-4],targetOffset:dft},leftTop:{points:["tr","tl"],overflow:uft,offset:[-4,0],targetOffset:dft},topRight:{points:["br","tr"],overflow:uft,offset:[0,-4],targetOffset:dft},rightTop:{points:["tl","tr"],overflow:uft,offset:[4,0],targetOffset:dft},bottomRight:{points:["tr","br"],overflow:uft,offset:[0,4],targetOffset:dft},rightBottom:{points:["bl","br"],overflow:uft,offset:[4,0],targetOffset:dft},bottomLeft:{points:["tl","bl"],overflow:uft,offset:[0,4],targetOffset:dft},leftBottom:{points:["br","bl"],overflow:uft,offset:[-4,0],targetOffset:dft}};function hft(e){var t=e.showArrow,r=e.arrowContent,o=e.children,n=e.prefixCls,a=e.id,i=e.overlayInnerStyle,l=e.className,c=e.style;return s.createElement("div",{className:Qat("".concat(n,"-content"),l),style:c},!1!==t&&s.createElement("div",{className:"".concat(n,"-arrow"),key:"arrow"},r),s.createElement("div",{className:"".concat(n,"-inner"),id:a,role:"tooltip",style:i},"function"==typeof o?o():o))}var fft,mft,vft,yft,gft=function(t,r){var o=t.overlayClassName,n=t.trigger,a=void 0===n?["hover"]:n,i=t.mouseEnterDelay,l=void 0===i?0:i,c=t.mouseLeaveDelay,u=void 0===c?.1:c,d=t.overlayStyle,p=t.prefixCls,h=void 0===p?"rc-tooltip":p,f=t.children,m=t.onVisibleChange,v=t.afterVisibleChange,y=t.transitionName,g=t.animation,x=t.motion,b=t.placement,w=void 0===b?"right":b,k=t.align,_=void 0===k?{}:k,C=t.destroyTooltipOnHide,M=void 0!==C&&C,D=t.defaultVisible,O=t.getTooltipContainer,P=t.overlayInnerStyle,E=t.arrowContent,j=t.overlay,T=t.id,N=t.showArrow,R=hut(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),F=e.useRef(null);e.useImperativeHandle(r,function(){return F.current});var z=gut({},R);"visible"in t&&(z.popupVisible=t.visible);var I=!1,A=!1;if("boolean"==typeof M)I=M;else if(M&&"object"===fut(M)){var L=M.keepParent;I=!0===L,A=!1===L}return s.createElement(cft,S({popupClassName:o,prefixCls:h,popup:function(){return s.createElement(hft,{showArrow:N,arrowContent:E,key:"content",prefixCls:h,id:T,overlayInnerStyle:P},j)},action:a,builtinPlacements:pft,popupPlacement:w,ref:F,popupAlign:_,getPopupContainer:O,onPopupVisibleChange:m,afterPopupVisibleChange:v,popupTransitionName:y,popupAnimation:g,popupMotion:x,defaultPopupVisible:D,destroyPopupOnHide:I,autoDestroy:A,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l},z),f)},xft=e.forwardRef(gft),bft=Lt.div(mft||(mft=te(["\n ",";\n"],["\n ",";\n"])),function(e){var t=e.theme,r=t.colors,o=t.sizes,n=t.fonts,a=e.$styles;return Et(fft||(fft=te(["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n ",";\n }\n }\n "],["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n ",";\n }\n }\n "])),o.S,r.indigo,r.white,o.S,n.S,a)}),wft={DEFAULT:"Minus",ERROR:"Close",SUCCESS:"Check"},kft=function(e){var t=e.text,r=e.status,o=function(e){var t=Qe().colors;switch(e){case"SUCCESS":return{color:t.greenShade,backgroundColor:t.greenTint,borderColor:"transparent"};case"ERROR":return{color:t.redShade,backgroundColor:t.redTint,borderColor:"transparent"};default:return{color:t.gray2,backgroundColor:"transparent",borderColor:t.gray3}}}(r),n=o.backgroundColor,a=o.color,i=o.borderColor,s=Qe().sizes;return ct(_ft,X({style:{backgroundColor:n,borderColor:i}},{children:[lt(rC,{size:s.M,name:wft[r],color:a}),lt(G_,{width:"S"}),lt(K_,X({variant:"M",color:a},{children:t}))]}))},_ft=Lt.div(yft||(yft=te(["\n ","\n"],["\n ","\n"])),function(e){var t=e.theme.sizes;return Et(vft||(vft=te(["\n display: flex;\n width: fit-content;\n align-items: center;\n border-radius: ","px;\n border: 1.5px solid transparent;\n padding: ","px ","px ","px ","px;\n "],["\n display: flex;\n width: fit-content;\n align-items: center;\n border-radius: ","px;\n border: 1.5px solid transparent;\n padding: ","px ","px ","px ","px;\n "])),t.M,t.XS,t.M,t.XS,t.S)}),Cft={id:"controlsLayout",tool:"custom",titleKey:"config.datagrid.group.controlsLayout",collapsible:!0,initiallyExpanded:!1,pathBase:"props.toolbarContainer.sx",fields:[{type:"number",captureName:"controlHeight",labelKey:"config.datagrid.controls.height",defaultValue:44},{type:"number",captureName:"searchWidth",labelKey:"config.datagrid.controls.searchWidth",defaultValue:360},{type:"number",captureName:"columnGap",labelKey:"config.datagrid.controls.columnGap",defaultValue:1},{type:"number",captureName:"marginTop",labelKey:"config.datagrid.controls.marginTop",defaultValue:1}]},Mft={id:"densityToggleStyles",tool:"custom",titleKey:"config.datagrid.group.densityToggleStyles",collapsible:!0,initiallyExpanded:!1,pathBase:"props.densityToggleContainer.sx",fields:[{type:"color",captureName:"backgroundColor",labelKey:"config.datagrid.density.background"},{type:"color",captureName:"selectedBackgroundColor",labelKey:"config.datagrid.density.selectedBackground"},{type:"color",captureName:"selectedTextColor",labelKey:"config.datagrid.density.selectedTextColor"},{type:"number",captureName:"borderRadius",labelKey:"config.datagrid.density.borderRadius",defaultValue:10}]},Sft={id:"exportButtonStyles",tool:"custom",titleKey:"config.datagrid.group.exportButtonStyles",collapsible:!0,initiallyExpanded:!1,pathBase:"props.exportButton.sx",fields:[{type:"color",captureName:"backgroundColor",labelKey:"config.datagrid.export.background"},{type:"color",captureName:"borderColor",labelKey:"config.datagrid.export.borderColor"},{type:"color",captureName:"iconColor",labelKey:"config.datagrid.export.iconColor"},{type:"number",captureName:"borderRadius",labelKey:"config.datagrid.export.borderRadius",defaultValue:8}]},Dft={id:"quickFilters",tool:"dataGridQuickFilters",titleKey:"config.datagrid.group.quickFilters",collapsible:!0,initiallyExpanded:!1,pathBase:"toolbar.quickFilters",toolConfig:{columnsDependencyPath:"dataRetrievalConfig.columns",fields:[{type:"text",captureName:"label",labelKey:"config.datagrid.quickFilters.label"},{type:"text",captureName:"columnField",labelKey:"config.datagrid.quickFilters.columnField"},{type:"text",captureName:"value",labelKey:"config.datagrid.quickFilters.value"},{type:"color",captureName:"color",labelKey:"config.datagrid.quickFilters.color"}]}},Oft={id:"quickFiltersStyles",tool:"custom",titleKey:"config.datagrid.group.quickFiltersStyles",collapsible:!0,initiallyExpanded:!1,pathBase:"props.quickFiltersGroup.sx",fields:[{type:"color",captureName:"chipBackgroundColor",labelKey:"config.datagrid.quickFilters.chipBackground"},{type:"color",captureName:"chipTextColor",labelKey:"config.datagrid.quickFilters.chipText"},{type:"color",captureName:"chipBorderColor",labelKey:"config.datagrid.quickFilters.chipBorder"},{type:"number",captureName:"chipBorderRadius",labelKey:"config.datagrid.quickFilters.chipBorderRadius",defaultValue:10},{type:"number",captureName:"chipGap",labelKey:"config.datagrid.quickFilters.chipGap",defaultValue:8},{type:"color",captureName:"selectedChipColor",labelKey:"config.datagrid.quickFilters.selectedChipColor"}]},Pft={id:"searchControl",tool:"custom",titleKey:"config.datagrid.group.searchControl",collapsible:!0,initiallyExpanded:!1,pathBase:"toolbar.searchControl",fields:[{type:"text",captureName:"placeholder",labelKey:"config.datagrid.search.placeholder",defaultValue:"Search"},{type:"switch",captureName:"autoFocus",labelKey:"config.datagrid.search.autoFocus",defaultValue:!1},{type:"number",captureName:"borderRadius",labelKey:"config.datagrid.search.borderRadius",defaultValue:2},{type:"color",captureName:"backgroundColor",labelKey:"config.datagrid.search.background"},{type:"color",captureName:"borderColor",labelKey:"config.datagrid.search.borderColor"}]},Eft={id:"styles",tool:"custom",titleKey:"config.datagrid.group.styles",collapsible:!0,initiallyExpanded:!1,pathBase:"props.dataGrid.sx",fields:[{type:"color",captureName:"backgroundColor",labelKey:"config.datagrid.styles.background",defaultValue:"#FFFFFF"},{type:"color",captureName:"headerBackgroundColor",labelKey:"config.datagrid.styles.headerBackground"},{type:"number",captureName:"headerFontSize",labelKey:"config.datagrid.styles.headerFontSize"},{type:"color",captureName:"rowHoverColor",labelKey:"config.datagrid.styles.rowHoverColor"},{type:"number",captureName:"rowHeight",labelKey:"config.datagrid.styles.rowHeight"},{type:"number",captureName:"rowGap",labelKey:"config.datagrid.styles.rowGap"}]},jft={id:"toolbar",tool:"custom",titleKey:"config.datagrid.group.toolbar",collapsible:!0,initiallyExpanded:!1,pathBase:"toolbar",fields:[{type:"select",captureName:"densityDefault",labelKey:"config.datagrid.toolbar.densityDefault",defaultValue:"comfortable",options:[{id:"compact",labelKey:"config.datagrid.toolbar.view.compact"},{id:"comfortable",labelKey:"config.datagrid.toolbar.view.comfortable"}]},{type:"switch",captureName:"densityToggle",labelKey:"config.datagrid.toolbar.densityToggle",defaultValue:!0},{type:"switch",captureName:"search",labelKey:"config.datagrid.toolbar.search",defaultValue:!0},{type:"switch",captureName:"exportCsv",labelKey:"config.datagrid.toolbar.exportCsv",defaultValue:!0}]},Tft={id:"toolbarStyles",tool:"custom",titleKey:"config.datagrid.group.toolbarStyles",collapsible:!0,initiallyExpanded:!1,pathBase:"props.toolbarContainer.sx",fields:[{type:"color",captureName:"backgroundColor",labelKey:"config.datagrid.toolbarStyles.background"},{type:"color",captureName:"borderColor",labelKey:"config.datagrid.toolbarStyles.borderColor"},{type:"number",captureName:"borderRadius",labelKey:"config.datagrid.toolbarStyles.borderRadius",defaultValue:8},{type:"number",captureName:"gap",labelKey:"config.datagrid.toolbarStyles.gap",defaultValue:1.5}]},Nft={id:"wrapperStyles",tool:"custom",titleKey:"config.datagrid.group.wrapperStyles",collapsible:!0,initiallyExpanded:!1,pathBase:"props.dataGridWrapper.sx",fields:[{type:"color",captureName:"backgroundColor",labelKey:"config.datagrid.wrapper.background"},{type:"color",captureName:"borderColor",labelKey:"config.datagrid.wrapper.borderColor"},{type:"number",captureName:"borderRadius",labelKey:"config.datagrid.wrapper.borderRadius",defaultValue:8},{type:"number",captureName:"paddingX",labelKey:"config.datagrid.wrapper.paddingX",defaultValue:0},{type:"number",captureName:"paddingY",labelKey:"config.datagrid.wrapper.paddingY",defaultValue:0},{type:"number",captureName:"elevation",labelKey:"config.datagrid.wrapper.elevation",defaultValue:0},{type:"number",captureName:"marginX",labelKey:"config.datagrid.wrapper.marginX",defaultValue:0},{type:"number",captureName:"marginY",labelKey:"config.datagrid.wrapper.marginY",defaultValue:0},{type:"text",captureName:"boxShadow",labelKey:"config.datagrid.wrapper.boxShadow"}]},Rft={component:"DataGridOrganism",version:"1.4.0",toolGroups:[{id:"view",tool:"dataGridListConfigurator",titleKey:"config.datagrid.group.view",collapsible:!0,initiallyExpanded:!0,pathBase:"view",defaultView:"listView",toolConfig:{basePathAliasKey:"meta.pathAliases.dataGridView",templates:[{id:"custom",label:"Custom",labelKey:"config.datagrid.list.template.custom"},{id:"studyCard",label:"Study card",labelKey:"config.datagrid.list.template.studyCard"},{id:"subjectCard",label:"Subject card",labelKey:"config.datagrid.list.template.subjectCard"},{id:"visitCard",label:"Visit card",labelKey:"config.datagrid.list.template.visitCard"},{id:"visitCardCheck",label:"Visit card (check)",labelKey:"config.datagrid.list.template.visitCardCheck"},{id:"fourItems",label:"4 items view",labelKey:"config.datagrid.list.template.fourItems"},{id:"compact",label:"Compact",labelKey:"config.datagrid.list.template.compact"},{id:"mediaLeft",label:"Media left",labelKey:"config.datagrid.list.template.mediaLeft"},{id:"titleSubtitleMeta",label:"Title + subtitle + meta",labelKey:"config.datagrid.list.template.titleSubtitleMeta"},{id:"twoColumn",label:"Two column",labelKey:"config.datagrid.list.template.twoColumn"}]}},{id:"columns",tool:"dataGridColumns",titleKey:"config.datagrid.group.columns",collapsible:!0,initiallyExpanded:!0,pathBase:"dataRetrievalConfig.columns"},Dft,jft,Cft,{id:"rootWrapperStyles",tool:"custom",titleKey:"config.datagrid.group.rootWrapperStyles",collapsible:!0,initiallyExpanded:!1,pathBase:"props.rootContainer.sx",fields:[{type:"color",captureName:"backgroundColor",labelKey:"config.datagrid.rootWrapper.background"},{type:"number",captureName:"paddingX",labelKey:"config.datagrid.rootWrapper.paddingX",defaultValue:0},{type:"number",captureName:"paddingY",labelKey:"config.datagrid.rootWrapper.paddingY",defaultValue:0},{type:"number",captureName:"marginX",labelKey:"config.datagrid.rootWrapper.marginX",defaultValue:0},{type:"number",captureName:"marginY",labelKey:"config.datagrid.rootWrapper.marginY",defaultValue:0}]},Nft,{id:"listItemStyles",tool:"custom",titleKey:"config.datagrid.group.listItemStyles",collapsible:!0,initiallyExpanded:!1,pathBase:"props.listItem.sx",fields:[{type:"color",captureName:"backgroundColor",labelKey:"config.datagrid.listItem.background"},{type:"color",captureName:"borderColor",labelKey:"config.datagrid.listItem.borderColor"},{type:"number",captureName:"borderRadius",labelKey:"config.datagrid.listItem.borderRadius",defaultValue:12},{type:"number",captureName:"paddingX",labelKey:"config.datagrid.listItem.paddingX",defaultValue:10},{type:"number",captureName:"paddingY",labelKey:"config.datagrid.listItem.paddingY",defaultValue:10},{type:"number",captureName:"marginX",labelKey:"config.datagrid.listItem.marginX",defaultValue:0},{type:"number",captureName:"marginY",labelKey:"config.datagrid.listItem.marginY",defaultValue:0},{type:"text",captureName:"boxShadow",labelKey:"config.datagrid.listItem.boxShadow"}]},Tft,Oft,Pft,Mft,Sft,Eft]},Fft=(e,t,r)=>{if(1===t.length&&t[0]===r){let t=!1;try{const r={};e(r)===r&&(t=!0)}catch{}if(t){let e;try{throw new Error}catch(t){({stack:e}=t)}console.warn("The result function returned its own inputs without modification. e.g\n`createSelector([state => state.todos], todos => todos)`\nThis could lead to inefficient memoization and unnecessary re-renders.\nEnsure transformation logic is in the result function, and extraction logic is in the input selectors.",{stack:e})}}},zft=(e,t,r)=>{const{memoize:o,memoizeOptions:n}=t,{inputSelectorResults:a,inputSelectorResultsCopy:i}=e,s=o(()=>({}),...n);if(!(s.apply(null,a)===s.apply(null,i))){let e;try{throw new Error}catch(t){({stack:e}=t)}console.warn("An input selector returned a different result when passed same arguments.\nThis means your output selector will likely run more frequently than intended.\nAvoid returning a new reference inside your input selector, e.g.\n`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)`",{arguments:r,firstInputs:a,secondInputs:i,stack:e})}},Ift={inputStabilityCheck:"once",identityFunctionCheck:"once"},Aft=Symbol("NOT_FOUND");var Lft=e=>Array.isArray(e)?e:[e];function Bft(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${r}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Vft(e,t){const r=[],{length:o}=e;for(let n=0;n<o;n++)r.push(e[n].apply(null,t));return r}var Hft=(e,t)=>e===t;function qft(e,t){const r="object"==typeof t?t:{equalityCheck:t},{equalityCheck:o=Hft,maxSize:n=1,resultEqualityCheck:a}=r,i=function(e){return function(t,r){if(null===t||null===r||t.length!==r.length)return!1;const{length:o}=t;for(let n=0;n<o;n++)if(!e(t[n],r[n]))return!1;return!0}}(o);let s=0;const l=n<=1?function(e){let t;return{get:r=>t&&e(t.key,r)?t.value:Aft,put(e,r){t={key:e,value:r}},getEntries:()=>t?[t]:[],clear(){t=void 0}}}(i):function(e,t){let r=[];function o(e){const o=r.findIndex(r=>t(e,r.key));if(o>-1){const e=r[o];return o>0&&(r.splice(o,1),r.unshift(e)),e.value}return Aft}return{get:o,put:function(t,n){o(t)===Aft&&(r.unshift({key:t,value:n}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(n,i);function c(){let t=l.get(arguments);if(t===Aft){if(t=e.apply(null,arguments),s++,a){const e=l.getEntries().find(e=>a(e.value,t));e&&(t=e.value,0!==s&&s--)}l.put(arguments,t)}return t}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>s,c.resetResultsCount=()=>{s=0},c}var $ft="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function Wft(){return{s:0,v:void 0,o:null,p:null}}function Uft(e,t={}){let r={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:o}=t;let n,a=0;function i(){let t=r;const{length:i}=arguments;for(let e=0,r=i;e<r;e++){const r=arguments[e];if("function"==typeof r||"object"==typeof r&&null!==r){let e=t.o;null===e&&(t.o=e=new WeakMap);const o=e.get(r);void 0===o?(t=Wft(),e.set(r,t)):t=o}else{let e=t.p;null===e&&(t.p=e=new Map);const o=e.get(r);void 0===o?(t=Wft(),e.set(r,t)):t=o}}const s=t;let l;if(1===t.s)l=t.v;else if(l=e.apply(null,arguments),a++,o){const e=n?.deref?.()??n;null!=e&&o(e,l)&&(l=e,0!==a&&a--);n="object"==typeof l&&null!==l||"function"==typeof l?new $ft(l):l}return s.s=1,s.v=l,l}return i.clearCache=()=>{r={s:0,v:void 0,o:null,p:null},i.resetResultsCount()},i.resultsCount=()=>a,i.resetResultsCount=()=>{a=0},i}function Gft(e,...t){const r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,o=(...e)=>{let t,o=0,n=0,a={},i=e.pop();"object"==typeof i&&(a=i,i=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const s={...r,...a},{memoize:l,memoizeOptions:c=[],argsMemoize:u=Uft,argsMemoizeOptions:d=[],devModeChecks:p={}}=s,h=Lft(c),f=Lft(d),m=Bft(e),v=l(function(){return o++,i.apply(null,arguments)},...h);let y=!0;const g=u(function(){n++;const e=Vft(m,arguments);if(t=v.apply(null,e),"production"!==process.env.NODE_ENV){const{identityFunctionCheck:r,inputStabilityCheck:o}=((e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:o}={...Ift,...t};return{identityFunctionCheck:{shouldRun:"always"===r||"once"===r&&e,run:Fft},inputStabilityCheck:{shouldRun:"always"===o||"once"===o&&e,run:zft}}})(y,p);if(r.shouldRun&&r.run(i,e,t),o.shouldRun){const t=Vft(m,arguments);o.run({inputSelectorResults:e,inputSelectorResultsCopy:t},{memoize:l,memoizeOptions:h},arguments)}y&&(y=!1)}return t},...f);return Object.assign(g,{resultFunc:i,memoizedResultFunc:v,dependencies:m,dependencyRecomputations:()=>n,resetDependencyRecomputations:()=>{n=0},lastResult:()=>t,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:l,argsMemoize:u})};return Object.assign(o,{withTypes:()=>o}),o}var Kft=Gft(Uft),Yft=Object.assign((e,t=Kft)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const r=Object.keys(e),o=r.map(t=>e[t]),n=t(o,(...e)=>e.reduce((e,t,o)=>(e[r[o]]=t,e),{}));return n},{withTypes:()=>Yft});const Xft=Gft({memoize:qft,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});class Zft{static create(e){return new Zft(e)}constructor(e){this.state=void 0,this.listeners=void 0,this.subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),this.getSnapshot=()=>this.state,this.update=e=>{this.state!==e&&(this.state=e,this.listeners.forEach(t=>t(e)))},this.state=e,this.listeners=new Set}apply(e){for(const t in e)if(!Object.is(this.state[t],e[t]))return void this.update(S({},this.state,e))}set(e,t){Object.is(this.state[e],t)||this.update(S({},this.state,{[e]:t}))}}const Qft=(...e)=>{const t=((e,t,r,o,n,a,...i)=>{if(i.length>0)throw new Error("Unsupported number of selectors");let s;if(e&&t&&r&&o&&n&&a)s=(i,s,l,c)=>{const u=e(i,s,l,c),d=t(i,s,l,c),p=r(i,s,l,c),h=o(i,s,l,c),f=n(i,s,l,c);return a(u,d,p,h,f,s,l,c)};else if(e&&t&&r&&o&&n)s=(a,i,s,l)=>{const c=e(a,i,s,l),u=t(a,i,s,l),d=r(a,i,s,l),p=o(a,i,s,l);return n(c,u,d,p,i,s,l)};else if(e&&t&&r&&o)s=(n,a,i,s)=>{const l=e(n,a,i,s),c=t(n,a,i,s),u=r(n,a,i,s);return o(l,c,u,a,i,s)};else if(e&&t&&r)s=(o,n,a,i)=>{const s=e(o,n,a,i),l=t(o,n,a,i);return r(s,l,n,a,i)};else if(e&&t)s=(r,o,n,a)=>{const i=e(r,o,n,a);return t(i,o,n,a)};else{if(!e)throw new Error("Missing arguments");s=e}return s})(...e);return(e,r,o,n)=>t(tmt(e),r,o,n)},Jft=(...e)=>{const t=((...e)=>{const t=new WeakMap;let r=1;const o=e[e.length-1],n=e.length-1||1,a=Math.max(o.length-n,0);if(a>3)throw new Error("Unsupported number of arguments");return(n,i,s,l)=>{let c=n.__cacheKey__;c||(c={id:r},n.__cacheKey__=c,r+=1);let u=t.get(c);if(!u){let r=e;const n=[void 0,void 0,void 0];switch(a){case 0:break;case 1:r=[...e.slice(0,-1),()=>n[0],o];break;case 2:r=[...e.slice(0,-1),()=>n[0],()=>n[1],o];break;case 3:r=[...e.slice(0,-1),()=>n[0],()=>n[1],()=>n[2],o];break;default:throw new Error("Unsupported number of arguments")}u=Xft(...r),u.selectorArgs=n,t.set(c,u)}switch(a){case 3:u.selectorArgs[2]=l;case 2:u.selectorArgs[1]=s;case 1:u.selectorArgs[0]=i}switch(a){case 0:return u(n);case 1:return u(n,i);case 2:return u(n,i,s);case 3:return u(n,i,s,l);default:throw new Error("unreachable")}}})(...e);return(e,r,o,n)=>t(tmt(e),r,o,n)},emt=e=>(t,r)=>e(tmt(t),r);function tmt(e){return"current"in e?e.current.state:e}const rmt=emt(e=>e.dimensions),omt=Qft(rmt,e=>e.columnsTotalWidth),nmt=Qft(rmt,e=>e.rowHeight),amt=Qft(rmt,e=>e.contentSize.height),imt=Qft(rmt,e=>e.hasScrollX),smt=Qft(rmt,e=>e.hasScrollY),lmt=Qft(rmt,e=>e.columnsTotalWidth<e.viewportOuterSize.width),cmt=Qft(rmt,e=>e.headerHeight),umt=Qft(rmt,e=>e.groupHeaderHeight),dmt=Qft(rmt,e=>e.headerFilterHeight),pmt=Qft(rmt,e=>e.hasScrollX?e.scrollbarSize:0),hmt=Qft(rmt,e=>e.hasScrollY?e.scrollbarSize:0),fmt=Qft(rmt,pmt,(e,t)=>{const r=e.viewportOuterSize.height-e.minimumSize.height>0;return!(0===t&&!r)});var mmt=parseInt(s.version,10);const vmt=e=>{if(mmt>=19){const t=t=>e(t,t.ref??null);return t.displayName=e.displayName??e.name,t}return s.forwardRef(e)};"production"!==process.env.NODE_ENV&&(vmt.displayName="forwardRef");const ymt=s.createContext(void 0);"production"!==process.env.NODE_ENV&&(ymt.displayName="GridRootPropsContext");const gmt=()=>{const e=s.useContext(ymt);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},xmt={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",noColumnsOverlayLabel:"No columns",noColumnsOverlayManageColumns:"Manage columns",emptyPivotOverlayLabel:"Add fields to rows, columns, and values to create a pivot table",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",toolbarPivot:"Pivot",toolbarAssistant:"AI Assistant",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",headerFilterClear:"Clear filter",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuAriaLabel:e=>`${e} column menu`,columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnMenuManagePivot:"Manage pivot",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>1!==e?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",paginationRowsPerPage:"Rows per page:",paginationDisplayedRows:({from:e,to:t,count:r,estimated:o})=>{if(!o)return`${e}–${t} of ${-1!==r?r:`more than ${t}`}`;return`${e}–${t} of ${-1!==r?r:o&&o>t?`around ${o}`:`more than ${t}`}`},paginationItemAriaLabel:e=>"first"===e?"Go to first page":"last"===e?"Go to last page":"next"===e?"Go to next page":"Go to previous page",rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size",pivotToggleLabel:"Pivot",pivotRows:"Rows",pivotColumns:"Columns",pivotValues:"Values",pivotCloseButton:"Close pivot settings",pivotSearchButton:"Search fields",pivotSearchControlPlaceholder:"Search fields",pivotSearchControlLabel:"Search fields",pivotSearchControlClear:"Clear search",pivotNoFields:"No fields",pivotMenuMoveUp:"Move up",pivotMenuMoveDown:"Move down",pivotMenuMoveToTop:"Move to top",pivotMenuMoveToBottom:"Move to bottom",pivotMenuRows:"Rows",pivotMenuColumns:"Columns",pivotMenuValues:"Values",pivotMenuOptions:"Field options",pivotMenuAddToRows:"Add to Rows",pivotMenuAddToColumns:"Add to Columns",pivotMenuAddToValues:"Add to Values",pivotMenuRemove:"Remove",pivotDragToRows:"Drag here to create rows",pivotDragToColumns:"Drag here to create columns",pivotDragToValues:"Drag here to create values",pivotYearColumnHeaderName:"(Year)",pivotQuarterColumnHeaderName:"(Quarter)",aiAssistantPanelTitle:"AI Assistant",aiAssistantPanelClose:"Close AI Assistant",aiAssistantPanelNewConversation:"New conversation",aiAssistantPanelConversationHistory:"Conversation history",aiAssistantPanelEmptyConversation:"No prompt history",aiAssistantSuggestions:"Suggestions",promptFieldLabel:"Prompt",promptFieldPlaceholder:"Type a prompt…",promptFieldPlaceholderWithRecording:"Type or record a prompt…",promptFieldPlaceholderListening:"Listening for prompt…",promptFieldSpeechRecognitionNotSupported:"Speech recognition is not supported in this browser",promptFieldSend:"Send",promptFieldRecord:"Record",promptFieldStopRecording:"Stop recording",promptRerun:"Run again",promptProcessing:"Processing…",promptAppliedChanges:"Applied changes",promptChangeGroupDescription:e=>`Group by ${e}`,promptChangeAggregationLabel:(e,t)=>`${e} (${t})`,promptChangeAggregationDescription:(e,t)=>`Aggregate ${e} (${t})`,promptChangeFilterLabel:(e,t,r)=>"is any of"===t?`${e} is any of: ${r}`:`${e} ${t} ${r}`,promptChangeFilterDescription:(e,t,r)=>"is any of"===t?`Filter where ${e} is any of: ${r}`:`Filter where ${e} ${t} ${r}`,promptChangeSortDescription:(e,t)=>`Sort by ${e} (${t})`,promptChangePivotEnableLabel:"Pivot",promptChangePivotEnableDescription:"Enable pivot",promptChangePivotColumnsLabel:e=>`Columns (${e})`,promptChangePivotColumnsDescription:(e,t)=>`${e}${t?` (${t})`:""}`,promptChangePivotRowsLabel:e=>`Rows (${e})`,promptChangePivotValuesLabel:e=>`Values (${e})`,promptChangePivotValuesDescription:(e,t)=>`${e} (${t})`};function bmt(e){return Go("MuiDataGrid",e)}const wmt=Ko("MuiDataGrid",["aiAssistantPanel","aiAssistantPanelHeader","aiAssistantPanelTitleContainer","aiAssistantPanelTitle","aiAssistantPanelBody","aiAssistantPanelEmptyText","aiAssistantPanelFooter","aiAssistantPanelConversation","aiAssistantPanelConversationList","aiAssistantPanelConversationTitle","aiAssistantPanelSuggestions","aiAssistantPanelSuggestionsList","aiAssistantPanelSuggestionsItem","aiAssistantPanelSuggestionsLabel","actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","aggregationRowOverlayWrapper","autoHeight","autosizing","mainContent","withSidePanel","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","collapsible","collapsibleTrigger","collapsibleIcon","collapsiblePanel","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--lastUnpinned","columnHeader--siblingFocused","columnHeader--filter","columnHeaderFilterInput","columnHeaderFilterOperatorLabel","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","columnsManagementScrollArea","columnsManagementEmptyText","container--top","container--bottom","detailPanel","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hiddenContent","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dropAbove","row--dropBelow","row--beingDragged","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowReorderIcon","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea--up","scrollArea--down","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--borderBottom","scrollbarFiller--pinnedRight","selectedRowCount","sortButton","sortIcon","shadowScrollArea","sidebar","sidebarHeader","toolbarContainer","toolbar","toolbarLabel","toolbarDivider","toolbarFilterList","toolbarQuickFilter","toolbarQuickFilterTrigger","toolbarQuickFilterControl","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pivotPanelAvailableFields","pivotPanelField","pivotPanelField--sorted","pivotPanelFieldActionContainer","pivotPanelFieldCheckbox","pivotPanelFieldDragIcon","pivotPanelFieldList","pivotPanelFieldName","pivotPanelHeader","pivotPanelPlaceholder","pivotPanelScrollArea","pivotPanelSearchContainer","pivotPanelSection","pivotPanelSectionTitle","pivotPanelSections","pivotPanelSwitch","pivotPanelSwitchLabel","prompt","promptContent","promptText","promptFeedback","promptChangeList","promptChangesToggle","promptChangesToggleIcon","promptIcon","promptIconContainer","promptError","promptAction"]);let kmt=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}({});const _mt=s.createContext(void 0);function Cmt(){const e=s.useContext(_mt);if(void 0===e)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join("\n"));return e}"production"!==process.env.NODE_ENV&&(_mt.displayName="GridApiContext");class Mmt{constructor(e=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=e}register(e,t,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{"function"==typeof t&&t(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(e){const t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}reset(){this.timeouts&&(this.timeouts.forEach((e,t)=>{this.unregister({cleanupToken:t})}),this.timeouts=void 0)}}class Smt{constructor(){this.registry=new FinalizationRegistry(e=>{"function"==typeof e&&e()})}register(e,t,r){this.registry.register(e,t,r)}unregister(e){this.registry.unregister(e)}reset(){}}class Dmt{static create(){return new Dmt}}const Omt={current:"undefined"!=typeof FinalizationRegistry?new Smt:new Mmt};let Pmt=0;function Emt(e,t,r,o){const n=s.useState(Dmt.create)[0],a=s.useRef(null),i=s.useRef(null);i.current=r;const l=s.useRef(null);if(!a.current&&i.current){const r=(e,t,r)=>{t.defaultMuiPrevented||i.current?.(e,t,r)};a.current=e.current.subscribeEvent(t,r,o),Pmt+=1,l.current={cleanupToken:Pmt},Omt.current.register(n,()=>{a.current?.(),a.current=null,l.current=null},l.current)}else!i.current&&a.current&&(a.current(),a.current=null,l.current&&(Omt.current.unregister(l.current),l.current=null));s.useEffect(()=>{if(!a.current&&i.current){const r=(e,t,r)=>{t.defaultMuiPrevented||i.current?.(e,t,r)};a.current=e.current.subscribeEvent(t,r,o)}return l.current&&Omt.current&&(Omt.current.unregister(l.current),l.current=null),()=>{a.current?.(),a.current=null}},[e,t,o])}const jmt={isFirst:!0};function Tmt(e,t,r){Emt(e,t,r,jmt)}var Nmt,Rmt={exports:{}},Fmt={};var zmt,Imt={};
9630
+ */!function(e){"production"===process.env.NODE_ENV?e.exports=function(){if(edt)return rdt;edt=1;var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case o:case a:case n:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case h:case p:case i:return e;default:return f}}case r:return f}}}return e=Symbol.for("react.module.reference"),rdt.ContextConsumer=s,rdt.ContextProvider=i,rdt.Element=t,rdt.ForwardRef=c,rdt.Fragment=o,rdt.Lazy=h,rdt.Memo=p,rdt.Portal=r,rdt.Profiler=a,rdt.StrictMode=n,rdt.Suspense=u,rdt.SuspenseList=d,rdt.isAsyncMode=function(){return!1},rdt.isConcurrentMode=function(){return!1},rdt.isContextConsumer=function(e){return m(e)===s},rdt.isContextProvider=function(e){return m(e)===i},rdt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},rdt.isForwardRef=function(e){return m(e)===c},rdt.isFragment=function(e){return m(e)===o},rdt.isLazy=function(e){return m(e)===h},rdt.isMemo=function(e){return m(e)===p},rdt.isPortal=function(e){return m(e)===r},rdt.isProfiler=function(e){return m(e)===a},rdt.isStrictMode=function(e){return m(e)===n},rdt.isSuspense=function(e){return m(e)===u},rdt.isSuspenseList=function(e){return m(e)===d},rdt.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===a||t===n||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===i||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},rdt.typeOf=m,rdt}():e.exports=(odt||(odt=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var m=e.type;switch(m){case o:case a:case n:case u:case d:return m;default:var v=m&&m.$$typeof;switch(v){case l:case s:case c:case h:case p:case i:return v;default:return f}}case r:return f}}}e=Symbol.for("react.module.reference");var v=s,y=i,g=t,x=c,b=o,w=h,k=p,_=r,C=a,M=n,S=u,D=d,O=!1,P=!1;ndt.ContextConsumer=v,ndt.ContextProvider=y,ndt.Element=g,ndt.ForwardRef=x,ndt.Fragment=b,ndt.Lazy=w,ndt.Memo=k,ndt.Portal=_,ndt.Profiler=C,ndt.StrictMode=M,ndt.Suspense=S,ndt.SuspenseList=D,ndt.isAsyncMode=function(e){return O||(O=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},ndt.isConcurrentMode=function(e){return P||(P=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},ndt.isContextConsumer=function(e){return m(e)===s},ndt.isContextProvider=function(e){return m(e)===i},ndt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ndt.isForwardRef=function(e){return m(e)===c},ndt.isFragment=function(e){return m(e)===o},ndt.isLazy=function(e){return m(e)===h},ndt.isMemo=function(e){return m(e)===p},ndt.isPortal=function(e){return m(e)===r},ndt.isProfiler=function(e){return m(e)===a},ndt.isStrictMode=function(e){return m(e)===n},ndt.isSuspense=function(e){return m(e)===u},ndt.isSuspenseList=function(e){return m(e)===d},ndt.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===a||t===n||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===i||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},ndt.typeOf=m}()),ndt)}(tdt);var adt=Symbol.for("react.element"),idt=Symbol.for("react.transitional.element"),sdt=Symbol.for("react.fragment");var ldt=Number(e.version.split(".")[0]),cdt=function(e,t){"function"==typeof e?e(t):"object"===fut(e)&&e&&"current"in e&&(e.current=t)},udt=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=t.filter(Boolean);return o.length<=1?o[0]:function(e){t.forEach(function(t){cdt(t,e)})}},ddt=function(e){var t,r;if(!e)return!1;if(pdt(e)&&ldt>=19)return!0;var o=tdt.exports.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===tdt.exports.ForwardRef)&&!!("function"!=typeof e||null!==(r=e.prototype)&&void 0!==r&&r.render||e.$$typeof===tdt.exports.ForwardRef)};function pdt(t){return e.isValidElement(t)&&!((r=t)&&"object"===fut(r)&&(r.$$typeof===adt||r.$$typeof===idt)&&r.type===sdt);var r}var hdt=s.createContext({}),fdt=function(){kut(t,s.Component);var e=Mut(t);function t(){return xut(this,t),e.apply(this,arguments)}return wut(t,[{key:"render",value:function(){return this.props.children}}]),t}();function mdt(e){var t=s.useRef();t.current=e;var r=s.useCallback(function(){for(var e,r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))},[]);return r}function vdt(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var ydt="test"!==process.env.NODE_ENV&&vdt()?s.useLayoutEffect:s.useEffect,gdt=function(e,t){var r=s.useRef(!0);ydt(function(){return e(r.current)},t),ydt(function(){return r.current=!1,function(){r.current=!0}},[])};function xdt(e){var t=s.useRef(!1),r=Zut(s.useState(e),2),o=r[0],n=r[1];return s.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[o,function(e,r){r&&t.current||n(e)}]}function bdt(e){return function(e){if(Array.isArray(e))return Yut(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Xut(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var wdt={},kdt=[];function _dt(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var r=kdt.reduce(function(e,t){return t(null!=e?e:"","warning")},t);r&&console.error("Warning: ".concat(r))}}function Cdt(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var r=kdt.reduce(function(e,t){return t(null!=e?e:"","note")},t);r&&console.warn("Note: ".concat(r))}}function Mdt(e,t,r){t||wdt[r]||(e(!1,r),wdt[r]=!0)}function Sdt(e,t){Mdt(_dt,e,t)}Sdt.preMessage=function(e){kdt.push(e)},Sdt.resetWarned=function(){wdt={}},Sdt.noteOnce=function(e,t){Mdt(Cdt,e,t)};var Ddt="none",Odt="appear",Pdt="enter",Edt="leave",jdt="none",Tdt="prepare",Ndt="start",Rdt="active",Fdt="end",zdt="prepared";function Idt(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}var Adt,Ldt,Bdt,Vdt=(Adt=vdt(),Ldt="undefined"!=typeof window?window:{},Bdt={animationend:Idt("Animation","AnimationEnd"),transitionend:Idt("Transition","TransitionEnd")},Adt&&("AnimationEvent"in Ldt||delete Bdt.animationend.animation,"TransitionEvent"in Ldt||delete Bdt.transitionend.transition),Bdt),Hdt={};if(vdt()){var qdt=document.createElement("div");Hdt=qdt.style}var $dt={};function Wdt(e){if($dt[e])return $dt[e];var t=Vdt[e];if(t)for(var r=Object.keys(t),o=r.length,n=0;n<o;n+=1){var a=r[n];if(Object.prototype.hasOwnProperty.call(t,a)&&a in Hdt)return $dt[e]=t[a],$dt[e]}return""}var Udt=Wdt("animationend"),Gdt=Wdt("transitionend"),Kdt=!(!Udt||!Gdt),Ydt=Udt||"animationend",Xdt=Gdt||"transitionend";function Zdt(e,t){if(!e)return null;if("object"===fut(e)){var r=t.replace(/-\w/g,function(e){return e[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}var Qdt=vdt()?e.useLayoutEffect:e.useEffect,Jdt=function(e){return+setTimeout(e,16)},ept=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Jdt=function(e){return window.requestAnimationFrame(e)},ept=function(e){return window.cancelAnimationFrame(e)});var tpt=0,rpt=new Map;function opt(e){rpt.delete(e)}var npt=function(e){var t=tpt+=1;return function r(o){if(0===o)opt(t),e();else{var n=Jdt(function(){r(o-1)});rpt.set(t,n)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};npt.cancel=function(e){var t=rpt.get(e);return opt(e),ept(t)},"production"!==process.env.NODE_ENV&&(npt.ids=function(){return rpt});var apt=[Tdt,Ndt,Rdt,Fdt],ipt=[Tdt,zdt],spt=!1;function lpt(e){return e===Rdt||e===Fdt}var cpt=function(e,t,r){var o=Zut(xdt(jdt),2),n=o[0],a=o[1],i=function(){var e=s.useRef(null);function t(){npt.cancel(e.current)}return s.useEffect(function(){return function(){t()}},[]),[function r(o){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=npt(function(){n<=1?o({isCanceled:function(){return a!==e.current}}):r(o,n-1)});e.current=a},t]}(),l=Zut(i,2),c=l[0],u=l[1];var d=t?ipt:apt;return Qdt(function(){if(n!==jdt&&n!==Fdt){var e=d.indexOf(n),t=d[e+1],o=r(n);o===spt?a(t,!0):t&&c(function(e){function r(){e.isCanceled()||a(t,!0)}!0===o?r():Promise.resolve(o).then(r)})}},[e,n]),s.useEffect(function(){return function(){u()}},[]),[function(){a(Tdt,!0)},n]};function upt(t,r,o,n){var a,i,l,c,u=n.motionEnter,d=void 0===u||u,p=n.motionAppear,h=void 0===p||p,f=n.motionLeave,m=void 0===f||f,v=n.motionDeadline,y=n.motionLeaveImmediately,g=n.onAppearPrepare,x=n.onEnterPrepare,b=n.onLeavePrepare,w=n.onAppearStart,k=n.onEnterStart,_=n.onLeaveStart,C=n.onAppearActive,M=n.onEnterActive,S=n.onLeaveActive,D=n.onAppearEnd,O=n.onEnterEnd,P=n.onLeaveEnd,E=n.onVisibleChanged,j=Zut(xdt(),2),T=j[0],N=j[1],R=(a=Ddt,i=s.useReducer(function(e){return e+1},0),l=Zut(i,2)[1],c=s.useRef(a),[mdt(function(){return c.current}),mdt(function(e){c.current="function"==typeof e?e(c.current):e,l()})]),F=Zut(R,2),z=F[0],I=F[1],A=Zut(xdt(null),2),L=A[0],B=A[1],V=z(),H=e.useRef(!1),q=e.useRef(null);function $(){return o()}var W=e.useRef(!1);function U(){I(Ddt),B(null,!0)}var G=mdt(function(e){var t=z();if(t!==Ddt){var r=$();if(!e||e.deadline||e.target===r){var o,n=W.current;t===Odt&&n?o=null==D?void 0:D(r,e):t===Pdt&&n?o=null==O?void 0:O(r,e):t===Edt&&n&&(o=null==P?void 0:P(r,e)),n&&!1!==o&&U()}}}),K=function(t){var r=e.useRef();function o(e){e&&(e.removeEventListener(Xdt,t),e.removeEventListener(Ydt,t))}return s.useEffect(function(){return function(){o(r.current)}},[]),[function(e){r.current&&r.current!==e&&o(r.current),e&&e!==r.current&&(e.addEventListener(Xdt,t),e.addEventListener(Ydt,t),r.current=e)},o]}(G),Y=Zut(K,1)[0],X=function(e){switch(e){case Odt:return vut(vut(vut({},Tdt,g),Ndt,w),Rdt,C);case Pdt:return vut(vut(vut({},Tdt,x),Ndt,k),Rdt,M);case Edt:return vut(vut(vut({},Tdt,b),Ndt,_),Rdt,S);default:return{}}},Z=s.useMemo(function(){return X(V)},[V]),Q=Zut(cpt(V,!t,function(e){if(e===Tdt){var t=Z[Tdt];return t?t($()):spt}var r;ee in Z&&B((null===(r=Z[ee])||void 0===r?void 0:r.call(Z,$(),null))||null);return ee===Rdt&&V!==Ddt&&(Y($()),v>0&&(clearTimeout(q.current),q.current=setTimeout(function(){G({deadline:!0})},v))),ee===zdt&&U(),true}),2),J=Q[0],ee=Q[1],te=lpt(ee);W.current=te;var re=e.useRef(null);Qdt(function(){if(!H.current||re.current!==r){N(r);var e,o=H.current;H.current=!0,!o&&r&&h&&(e=Odt),o&&r&&d&&(e=Pdt),(o&&!r&&m||!o&&y&&!r&&m)&&(e=Edt);var n=X(e);e&&(t||n[Tdt])?(I(e),J()):I(Ddt),re.current=r}},[r]),e.useEffect(function(){(V===Odt&&!h||V===Pdt&&!d||V===Edt&&!m)&&I(Ddt)},[h,d,m]),e.useEffect(function(){return function(){H.current=!1,clearTimeout(q.current)}},[]);var oe=s.useRef(!1);e.useEffect(function(){T&&(oe.current=!0),void 0!==T&&V===Ddt&&((oe.current||T)&&(null==E||E(T)),oe.current=!0)},[T,V]);var ne=L;return Z[Tdt]&&ee===Ndt&&(ne=gut({transition:"none"},ne)),[V,ee,ne,null!=T?T:r]}var dpt=function(t){var r=t;"object"===fut(t)&&(r=t.transitionSupport);var o=s.forwardRef(function(t,o){var n=t.visible,a=void 0===n||n,i=t.removeOnLeave,l=void 0===i||i,c=t.forceRender,u=t.children,d=t.motionName,p=t.leavedClassName,h=t.eventProps,f=function(e,t){return!(!e.motionName||!r||!1===t)}(t,s.useContext(hdt).motion),m=e.useRef(),v=e.useRef();var y=Zut(upt(f,a,function(){try{return m.current instanceof HTMLElement?m.current:Jut(v.current)}catch(e){return null}},t),4),g=y[0],x=y[1],b=y[2],w=y[3],k=s.useRef(w);w&&(k.current=!0);var _,C=s.useCallback(function(e){m.current=e,cdt(o,e)},[o]),M=gut(gut({},h),{},{visible:a});if(u)if(g===Ddt)_=w?u(gut({},M),C):!l&&k.current&&p?u(gut(gut({},M),{},{className:p}),C):c||!l&&!p?u(gut(gut({},M),{},{style:{display:"none"}}),C):null;else{var S;x===Tdt?S="prepare":lpt(x)?S="active":x===Ndt&&(S="start");var D=Zdt(d,"".concat(g,"-").concat(S));_=u(gut(gut({},M),{},{className:Qat(Zdt(d,g),vut(vut({},D,D&&S),d,"string"==typeof d)),style:b}),C)}else _=null;if(s.isValidElement(_)&&ddt(_)){var O=function(e){if(e&&pdt(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null}(_);O||(_=s.cloneElement(_,{ref:C}))}return s.createElement(fdt,{ref:v},_)});return o.displayName="CSSMotion",o}(Kdt),ppt="add",hpt="keep",fpt="remove",mpt="removed";function vpt(e){var t;return gut(gut({},t=e&&"object"===fut(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function ypt(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(vpt)}var gpt=["component","children","onVisibleChanged","onAllRemoved"],xpt=["status"],bpt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var wpt=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dpt,t=function(){kut(r,s.Component);var t=Mut(r);function r(){var e;xut(this,r);for(var o=arguments.length,n=new Array(o),a=0;a<o;a++)n[a]=arguments[a];return vut(Ss(e=t.call.apply(t,[this].concat(n))),"state",{keyEntities:[]}),vut(Ss(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:gut(gut({},e),{},{status:mpt})})}},function(){0===e.state.keyEntities.filter(function(e){return e.status!==mpt}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return wut(r,[{key:"render",value:function(){var t=this,r=this.state.keyEntities,o=this.props,n=o.component,a=o.children,i=o.onVisibleChanged;o.onAllRemoved;var l=hut(o,gpt),c=n||s.Fragment,u={};return bpt.forEach(function(e){u[e]=l[e],delete l[e]}),delete l.keys,s.createElement(c,l,r.map(function(r,o){var n=r.status,l=hut(r,xpt),c=n===ppt||n===hpt;return s.createElement(e,S({},u,{key:l.key,visible:c,eventProps:l,onVisibleChanged:function(e){null==i||i(e,{key:l.key}),e||t.removeKey(l.key)}}),function(e,t){return a(gut(gut({},e),{},{index:o}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.keys,o=t.keyEntities,n=ypt(r),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[],o=0,n=t.length,a=ypt(e),i=ypt(t);a.forEach(function(e){for(var t=!1,a=o;a<n;a+=1){var s=i[a];if(s.key===e.key){o<a&&(r=r.concat(i.slice(o,a).map(function(e){return gut(gut({},e),{},{status:ppt})})),o=a),r.push(gut(gut({},s),{},{status:hpt})),o+=1,t=!0;break}}t||r.push(gut(gut({},e),{},{status:fpt}))}),o<n&&(r=r.concat(i.slice(o).map(function(e){return gut(gut({},e),{},{status:ppt})})));var s={};r.forEach(function(e){var t=e.key;s[t]=(s[t]||0)+1});var l=Object.keys(s).filter(function(e){return s[e]>1});return l.forEach(function(e){r=r.filter(function(t){var r=t.key,o=t.status;return r!==e||o!==fpt}),r.forEach(function(t){t.key===e&&(t.status=hpt)})}),r}(o,n);return{keyEntities:a.filter(function(e){var t=o.find(function(t){var r=t.key;return e.key===r});return!t||t.status!==mpt||e.status!==fpt})}}}]),r}();return vut(t,"defaultProps",{component:"div"}),t}(Kdt),kpt=function(){kut(r,e.Component);var t=Mut(r);function r(){var e;xut(this,r);for(var o=arguments.length,n=new Array(o),a=0;a<o;a++)n[a]=arguments[a];return(e=t.call.apply(t,[this].concat(n))).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var r=e.props,o=r.onClose,n=r.noticeKey;o&&o(n)},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout(function(){e.close()},1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return wut(r,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.updateMark!==e.updateMark||this.props.visible!==e.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e=this,t=this.props,r=t.prefixCls,o=t.className,n=t.closable,a=t.closeIcon,i=t.style,l=t.onClick,c=t.children,d=t.holder,p="".concat(r,"-notice"),h=Object.keys(this.props).reduce(function(t,r){return"data-"!==r.substr(0,5)&&"aria-"!==r.substr(0,5)&&"role"!==r||(t[r]=e.props[r]),t},{}),f=s.createElement("div",S({className:Qat(p,o,vut({},"".concat(p,"-closable"),n)),style:i,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:l},h),s.createElement("div",{className:"".concat(p,"-content")},c),n?s.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(p,"-close")},a||s.createElement("span",{className:"".concat(p,"-close-x")})):null);return d?u.default.createPortal(f,d):f}}]),r}();kpt.defaultProps={onClose:function(){},duration:1.5};var _pt=["getContainer"],Cpt=0,Mpt=Date.now();function Spt(){var e=Cpt;return Cpt+=1,"rcNotification_".concat(Mpt,"_").concat(e)}var Dpt=function(){kut(r,e.Component);var t=Mut(r);function r(){var e;xut(this,r);for(var o=arguments.length,n=new Array(o),a=0;a<o;a++)n[a]=arguments[a];return(e=t.call.apply(t,[this].concat(n))).state={notices:[]},e.hookRefs=new Map,e.add=function(t,r){var o=t.key||Spt(),n=gut(gut({},t),{},{key:o}),a=e.props.maxCount;e.setState(function(e){var t=e.notices,i=t.map(function(e){return e.notice.key}).indexOf(o),s=t.concat();return-1!==i?s.splice(i,1,{notice:n,holderCallback:r}):(a&&t.length>=a&&(n.key=s[0].notice.key,n.updateMark=Spt(),n.userPassKey=o,s.shift()),s.push({notice:n,holderCallback:r})),{notices:s}})},e.remove=function(t){e.setState(function(e){return{notices:e.notices.filter(function(e){var r=e.notice,o=r.key;return(r.userPassKey||o)!==t})}})},e.noticePropsMap={},e}return wut(r,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,r=e.animation,o=this.props.transitionName;return!o&&r&&(o="".concat(t,"-").concat(r)),o}},{key:"render",value:function(){var e=this,t=this.state.notices,r=this.props,o=r.prefixCls,n=r.className,a=r.closeIcon,i=r.style,l=[];return t.forEach(function(r,n){var i=r.notice,s=r.holderCallback,c=n===t.length-1?i.updateMark:void 0,u=i.key,d=i.userPassKey,p=gut(gut(gut({prefixCls:o,closeIcon:a},i),i.props),{},{key:u,noticeKey:d||u,updateMark:c,onClose:function(t){var r;e.remove(t),null===(r=i.onClose)||void 0===r||r.call(i)},onClick:i.onClick,children:i.content});l.push(u),e.noticePropsMap[u]={props:p,holderCallback:s}}),s.createElement("div",{className:Qat(o,n),style:i},s.createElement(wpt,{keys:l,motionName:this.getTransitionName(),onVisibleChanged:function(t,r){var o=r.key;t||delete e.noticePropsMap[o]}},function(t){var r=t.key,n=t.className,a=t.style,i=t.visible,l=e.noticePropsMap[r],c=l.props,u=l.holderCallback;return u?s.createElement("div",{key:r,className:Qat(n,"".concat(o,"-hook-holder")),style:gut({},a),ref:function(t){void 0!==r&&(t?(e.hookRefs.set(r,t),u(t,c)):e.hookRefs.delete(r))}}):s.createElement(kpt,S({},c,{className:Qat(n,null==c?void 0:c.className),style:gut(gut({},a),null==c?void 0:c.style),visible:i}))}))}}]),r}();Dpt.newInstance=void 0,Dpt.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},Dpt.newInstance=function(e,t){var r=e||{},o=r.getContainer,n=hut(r,_pt),a=document.createElement("div");o?o().appendChild(a):document.body.appendChild(a);var i=!1;function l(e){i||(i=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){!function(e){Kut.apply(this,arguments)}(a),a.parentNode&&a.parentNode.removeChild(a)},useNotification:function(){return t=e,r=s.useRef({}),o=Zut(s.useState([]),2),n=o[0],a=o[1],[function(e){var o=!0;t.add(e,function(e,t){var n=t.key;if(e&&(!r.current[n]||o)){var i=s.createElement(kpt,S({},t,{holder:e}));r.current[n]=i,a(function(e){var r=e.findIndex(function(e){return e.key===t.key});if(-1===r)return[].concat(bdt(e),[i]);var o=bdt(e);return o[r]=i,o})}o=!1})},s.createElement(s.Fragment,null,n)];var t,r,o,n,a}}))}"test"===process.env.NODE_ENV&&e.TEST_RENDER?e.TEST_RENDER(s.createElement(Dpt,S({},n,{ref:l}))):$ut(s.createElement(Dpt,S({},n,{ref:l})),a)};var Opt,Ppt,Ept,jpt=mt.colors,Tpt=mt.fonts,Npt=mt.sizes,Rpt=Lt.span(Opt||(Opt=te(["\n color: ",";\n ",";\n"],["\n color: ",";\n ",";\n"])),function(e){return e.textColor},Tpt.L),Fpt=Lt.div(Ppt||(Ppt=te(["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"],["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"])),Npt.XL,Npt.M,Npt.XL),zpt=Lt.div(Ept||(Ept=te(["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"],["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"])),ut(Npt.XL),function(e){return e.backgroundColor}),Ipt=function(e){var t=e.type,r=e.message,o=function(e){switch(e){case"success":return{icon:"Check",backgroundColor:jpt.green,textColor:jpt.greenShade};case"error":return{icon:"Close",backgroundColor:jpt.red,textColor:jpt.redShade};case"warning":return{icon:"Warning",backgroundColor:jpt.yellow,textColor:jpt.yellowShade,iconColor:jpt.yellowShade,iconSize:18};case"infoTierOne":return{icon:"Bell",backgroundColor:jpt.blue,textColor:jpt.blueShade,iconSize:18};case"infoTierTwo":return{icon:"Bell",backgroundColor:jpt.gray2,textColor:ht(jpt.gray2),iconSize:18};default:return{icon:"Bell",backgroundColor:jpt.blue,textColor:jpt.blueShade}}}(t),n=o.icon,a=o.iconColor,i=o.textColor,s=o.backgroundColor,l=o.iconSize;return ct(Fpt,{children:[lt(zpt,X({backgroundColor:s},{children:lt(rC,{size:l||32,name:n,color:a||jpt.white})})),lt(Rpt,X({textColor:i},{children:r}))]})},Apt=null;Dpt.newInstance({maxCount:2},function(e){return Apt=e});var Lpt=function(e){var t=e.message,r=e.type,o=void 0===r?"success":r,n=e.duration,a=void 0===n?2.5:n;return null==Apt?void 0:Apt.notice({content:lt(Ipt,{message:t,type:o}),className:"toast-".concat(o),closable:!0,closeIcon:lt(rC,{name:"Close"}),duration:a})};function Bpt(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}function Vpt(e,t,r,o){var n=u.default.unstable_batchedUpdates?function(e){u.default.unstable_batchedUpdates(r,e)}:r;return null!=e&&e.addEventListener&&e.addEventListener(t,n,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,n,o)}}}var Hpt=e.forwardRef(function(t,r){var o=t.didUpdate,n=t.getContainer,a=t.children,i=e.useRef(),s=e.useRef();e.useImperativeHandle(r,function(){return{}});var l=e.useRef(!1);return!l.current&&vdt()&&(s.current=n(),i.current=s.current.parentNode,l.current=!0),e.useEffect(function(){null==o||o(t)}),e.useEffect(function(){return null===s.current.parentNode&&null!==i.current&&i.current.appendChild(s.current),function(){var e;null===(e=s.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(s.current)}},[]),s.current?u.default.createPortal(a,s.current):null});function qpt(e,t,r){return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var $pt;function Wpt(e){var t=e.prefixCls,r=e.motion,o=e.animation,n=e.transitionName;return r||(o?{motionName:"".concat(t,"-").concat(o)}:n?{motionName:n}:null)}function Upt(e){var t=e.prefixCls,r=e.visible,o=e.zIndex,n=e.mask,a=e.maskMotion,i=e.maskAnimation,l=e.maskTransitionName;if(!n)return null;var c={};return(a||l||i)&&(c=gut({motionAppear:!0},Wpt({motion:a,prefixCls:t,transitionName:l,animation:i}))),s.createElement(dpt,S({},c,{visible:r,removeOnLeave:!0}),function(e){var r=e.className;return s.createElement("div",{style:{zIndex:o},className:Qat("".concat(t,"-mask"),r)})})}function Gpt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function Kpt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gpt(Object(r),!0).forEach(function(t){Xpt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gpt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ypt(e){return Ypt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ypt(e)}function Xpt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Zpt={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function Qpt(){if(void 0!==$pt)return $pt;$pt="";var e=document.createElement("p").style;for(var t in Zpt)t+"Transform"in e&&($pt=t);return $pt}function Jpt(){return Qpt()?"".concat(Qpt(),"TransitionProperty"):"transitionProperty"}function eht(){return Qpt()?"".concat(Qpt(),"Transform"):"transform"}function tht(e,t){var r=Jpt();r&&(e.style[r]=t,"transitionProperty"!==r&&(e.style.transitionProperty=t))}function rht(e,t){var r=eht();r&&(e.style[r]=t,"transform"!==r&&(e.style.transform=t))}var oht,nht=/matrix\((.*)\)/,aht=/matrix3d\((.*)\)/;function iht(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function sht(e,t,r){var o=r;if("object"!==Ypt(t))return void 0!==o?("number"==typeof o&&(o="".concat(o,"px")),void(e.style[t]=o)):oht(e,t);for(var n in t)t.hasOwnProperty(n)&&sht(e,n,t[n])}function lht(e,t){var r=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof r){var n=e.document;"number"!=typeof(r=n.documentElement[o])&&(r=n.body[o])}return r}function cht(e){return lht(e)}function uht(e){return lht(e,!0)}function dht(e){var t=function(e){var t,r,o,n=e.ownerDocument,a=n.body,i=n&&n.documentElement;return t=e.getBoundingClientRect(),r=Math.floor(t.left),o=Math.floor(t.top),{left:r-=i.clientLeft||a.clientLeft||0,top:o-=i.clientTop||a.clientTop||0}}(e),r=e.ownerDocument,o=r.defaultView||r.parentWindow;return t.left+=cht(o),t.top+=uht(o),t}function pht(e){return null!=e&&e==e.window}function hht(e){return pht(e)?e.document:9===e.nodeType?e:e.ownerDocument}var fht=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),mht=/^(top|right|bottom|left)$/,vht="currentStyle",yht="runtimeStyle",ght="left";function xht(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function bht(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function wht(e,t,r){"static"===sht(e,"position")&&(e.style.position="relative");var o=-999,n=-999,a=xht("left",r),i=xht("top",r),s=bht(a),l=bht(i);"left"!==a&&(o=999),"top"!==i&&(n=999);var c="",u=dht(e);("left"in t||"top"in t)&&(c=function(e){return e.style.transitionProperty||e.style[Jpt()]}(e)||"",tht(e,"none")),"left"in t&&(e.style[s]="",e.style[a]="".concat(o,"px")),"top"in t&&(e.style[l]="",e.style[i]="".concat(n,"px")),iht(e);var d=dht(e),p={};for(var h in t)if(t.hasOwnProperty(h)){var f=xht(h,r),m="left"===h?o:n,v=u[h]-d[h];p[f]=f===h?m+v:m-v}sht(e,p),iht(e),("left"in t||"top"in t)&&tht(e,c);var y={};for(var g in t)if(t.hasOwnProperty(g)){var x=xht(g,r),b=t[g]-u[g];y[x]=g===x?p[x]+b:p[x]-b}sht(e,y)}function kht(e,t){var r=dht(e),o=function(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("transform")||t.getPropertyValue(eht());if(r&&"none"!==r){var o=r.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}(e),n={x:o.x,y:o.y};"left"in t&&(n.x=o.x+t.left-r.left),"top"in t&&(n.y=o.y+t.top-r.top),function(e,t){var r=window.getComputedStyle(e,null),o=r.getPropertyValue("transform")||r.getPropertyValue(eht());if(o&&"none"!==o){var n,a=o.match(nht);a?((n=(a=a[1]).split(",").map(function(e){return parseFloat(e,10)}))[4]=t.x,n[5]=t.y,rht(e,"matrix(".concat(n.join(","),")"))):((n=o.match(aht)[1].split(",").map(function(e){return parseFloat(e,10)}))[12]=t.x,n[13]=t.y,rht(e,"matrix3d(".concat(n.join(","),")")))}else rht(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,n)}function _ht(e,t){for(var r=0;r<e.length;r++)t(e[r])}function Cht(e){return"border-box"===oht(e,"boxSizing")}"undefined"!=typeof window&&(oht=window.getComputedStyle?function(e,t,r){var o=r,n="",a=hht(e);return(o=o||a.defaultView.getComputedStyle(e,null))&&(n=o.getPropertyValue(t)||o[t]),n}:function(e,t){var r=e[vht]&&e[vht][t];if(fht.test(r)&&!mht.test(t)){var o=e.style,n=o[ght],a=e[yht][ght];e[yht][ght]=e[vht][ght],o[ght]="fontSize"===t?"1em":r||0,r=o.pixelLeft+"px",o[ght]=n,e[yht][ght]=a}return""===r?"auto":r});var Mht=["margin","border","padding"];function Sht(e,t,r){var o,n,a,i=0;for(n=0;n<t.length;n++)if(o=t[n])for(a=0;a<r.length;a++){var s=void 0;s="border"===o?"".concat(o).concat(r[a],"Width"):o+r[a],i+=parseFloat(oht(e,s))||0}return i}var Dht={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function Oht(e,t,r){var o=r;if(pht(e))return"width"===t?Dht.viewportWidth(e):Dht.viewportHeight(e);if(9===e.nodeType)return"width"===t?Dht.docWidth(e):Dht.docHeight(e);var n="width"===t?["Left","Right"]:["Top","Bottom"],a="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),i=Cht(e),s=0;(null==a||a<=0)&&(a=void 0,(null==(s=oht(e,t))||Number(s)<0)&&(s=e.style[t]||0),s=Math.floor(parseFloat(s))||0),void 0===o&&(o=i?1:-1);var l=void 0!==a||i,c=a||s;return-1===o?l?c-Sht(e,["border","padding"],n):s:l?1===o?c:c+(2===o?-Sht(e,["border"],n):Sht(e,["margin"],n)):s+Sht(e,Mht.slice(o),n)}_ht(["Width","Height"],function(e){Dht["doc".concat(e)]=function(t){var r=t.document;return Math.max(r.documentElement["scroll".concat(e)],r.body["scroll".concat(e)],Dht["viewport".concat(e)](r))},Dht["viewport".concat(e)]=function(t){var r="client".concat(e),o=t.document,n=o.body,a=o.documentElement[r];return"CSS1Compat"===o.compatMode&&a||n&&n[r]||a}});var Pht={position:"absolute",visibility:"hidden",display:"block"};function Eht(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,n=t[0];return 0!==n.offsetWidth?o=Oht.apply(void 0,t):function(e,t,r){var o,n={},a=e.style;for(o in t)t.hasOwnProperty(o)&&(n[o]=a[o],a[o]=t[o]);for(o in r.call(e),t)t.hasOwnProperty(o)&&(a[o]=n[o])}(n,Pht,function(){o=Oht.apply(void 0,t)}),o}function jht(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}_ht(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);Dht["outer".concat(t)]=function(t,r){return t&&Eht(t,e,r?0:1)};var r="width"===e?["Left","Right"]:["Top","Bottom"];Dht[e]=function(t,o){var n=o;return void 0!==n?t?(Cht(t)&&(n+=Sht(t,["padding","border"],r)),sht(t,e,n)):void 0:t&&Eht(t,e,-1)}});var Tht={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:hht,offset:function(e,t,r){if(void 0===t)return dht(e);!function(e,t,r){if(r.ignoreShake){var o=dht(e),n=o.left.toFixed(0),a=o.top.toFixed(0),i=t.left.toFixed(0),s=t.top.toFixed(0);if(n===i&&a===s)return}r.useCssRight||r.useCssBottom?wht(e,t,r):r.useCssTransform&&eht()in document.body.style?kht(e,t):wht(e,t,r)}(e,t,r||{})},isWindow:pht,each:_ht,css:sht,clone:function(e){var t,r={};for(t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(r.overflow[t]=e.overflow[t]);return r},mix:jht,getWindowScrollLeft:function(e){return cht(e)},getWindowScrollTop:function(e){return uht(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)Tht.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};jht(Tht,Dht);var Nht=Tht.getParent;function Rht(e){if(Tht.isWindow(e)||9===e.nodeType)return null;var t,r=Tht.getDocument(e).body,o=Tht.css(e,"position");if(!("fixed"===o||"absolute"===o))return"html"===e.nodeName.toLowerCase()?null:Nht(e);for(t=Nht(e);t&&t!==r&&9!==t.nodeType;t=Nht(t))if("static"!==(o=Tht.css(t,"position")))return t;return null}var Fht=Tht.getParent;function zht(e,t){for(var r={left:0,right:1/0,top:0,bottom:1/0},o=Rht(e),n=Tht.getDocument(e),a=n.defaultView||n.parentWindow,i=n.body,s=n.documentElement;o;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===o.clientWidth||o===i||o===s||"visible"===Tht.css(o,"overflow")){if(o===i||o===s)break}else{var l=Tht.offset(o);l.left+=o.clientLeft,l.top+=o.clientTop,r.top=Math.max(r.top,l.top),r.right=Math.min(r.right,l.left+o.clientWidth),r.bottom=Math.min(r.bottom,l.top+o.clientHeight),r.left=Math.max(r.left,l.left)}o=Rht(o)}var c=null;Tht.isWindow(e)||9===e.nodeType||(c=e.style.position,"absolute"===Tht.css(e,"position")&&(e.style.position="fixed"));var u=Tht.getWindowScrollLeft(a),d=Tht.getWindowScrollTop(a),p=Tht.viewportWidth(a),h=Tht.viewportHeight(a),f=s.scrollWidth,m=s.scrollHeight,v=window.getComputedStyle(i);if("hidden"===v.overflowX&&(f=a.innerWidth),"hidden"===v.overflowY&&(m=a.innerHeight),e.style&&(e.style.position=c),t||function(e){if(Tht.isWindow(e)||9===e.nodeType)return!1;var t=Tht.getDocument(e),r=t.body,o=null;for(o=Fht(e);o&&o!==r&&o!==t;o=Fht(o))if("fixed"===Tht.css(o,"position"))return!0;return!1}(e))r.left=Math.max(r.left,u),r.top=Math.max(r.top,d),r.right=Math.min(r.right,u+p),r.bottom=Math.min(r.bottom,d+h);else{var y=Math.max(f,u+p);r.right=Math.min(r.right,y);var g=Math.max(m,d+h);r.bottom=Math.min(r.bottom,g)}return r.top>=0&&r.left>=0&&r.bottom>r.top&&r.right>r.left?r:null}function Iht(e){var t,r,o;if(Tht.isWindow(e)||9===e.nodeType){var n=Tht.getWindow(e);t={left:Tht.getWindowScrollLeft(n),top:Tht.getWindowScrollTop(n)},r=Tht.viewportWidth(n),o=Tht.viewportHeight(n)}else t=Tht.offset(e),r=Tht.outerWidth(e),o=Tht.outerHeight(e);return t.width=r,t.height=o,t}function Aht(e,t){var r=t.charAt(0),o=t.charAt(1),n=e.width,a=e.height,i=e.left,s=e.top;return"c"===r?s+=a/2:"b"===r&&(s+=a),"c"===o?i+=n/2:"r"===o&&(i+=n),{left:i,top:s}}function Lht(e,t,r,o,n){var a=Aht(t,r[1]),i=Aht(e,r[0]),s=[i.left-a.left,i.top-a.top];return{left:Math.round(e.left-s[0]+o[0]-n[0]),top:Math.round(e.top-s[1]+o[1]-n[1])}}function Bht(e,t,r){return e.left<r.left||e.left+t.width>r.right}function Vht(e,t,r){return e.top<r.top||e.top+t.height>r.bottom}function Hht(e,t,r){var o=[];return Tht.each(e,function(e){o.push(e.replace(t,function(e){return r[e]}))}),o}function qht(e,t){return e[t]=-e[t],e}function $ht(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Wht(e,t){e[0]=$ht(e[0],t.width),e[1]=$ht(e[1],t.height)}function Uht(e,t,r,o){var n=r.points,a=r.offset||[0,0],i=r.targetOffset||[0,0],s=r.overflow,l=r.source||e;a=[].concat(a),i=[].concat(i);var c={},u=0,d=zht(l,!(!(s=s||{})||!s.alwaysByViewport)),p=Iht(l);Wht(a,p),Wht(i,t);var h=Lht(p,t,n,a,i),f=Tht.merge(p,h);if(d&&(s.adjustX||s.adjustY)&&o){if(s.adjustX&&Bht(h,p,d)){var m=Hht(n,/[lr]/gi,{l:"r",r:"l"}),v=qht(a,0),y=qht(i,0);(function(e,t,r){return e.left>r.right||e.left+t.width<r.left})(Lht(p,t,m,v,y),p,d)||(u=1,n=m,a=v,i=y)}if(s.adjustY&&Vht(h,p,d)){var g=Hht(n,/[tb]/gi,{t:"b",b:"t"}),x=qht(a,1),b=qht(i,1);(function(e,t,r){return e.top>r.bottom||e.top+t.height<r.top})(Lht(p,t,g,x,b),p,d)||(u=1,n=g,a=x,i=b)}u&&(h=Lht(p,t,n,a,i),Tht.mix(f,h));var w=Bht(h,p,d),k=Vht(h,p,d);if(w||k){var _=n;w&&(_=Hht(n,/[lr]/gi,{l:"r",r:"l"})),k&&(_=Hht(n,/[tb]/gi,{t:"b",b:"t"})),n=_,a=r.offset||[0,0],i=r.targetOffset||[0,0]}c.adjustX=s.adjustX&&w,c.adjustY=s.adjustY&&k,(c.adjustX||c.adjustY)&&(f=function(e,t,r,o){var n=Tht.clone(e),a={width:t.width,height:t.height};return o.adjustX&&n.left<r.left&&(n.left=r.left),o.resizeWidth&&n.left>=r.left&&n.left+a.width>r.right&&(a.width-=n.left+a.width-r.right),o.adjustX&&n.left+a.width>r.right&&(n.left=Math.max(r.right-a.width,r.left)),o.adjustY&&n.top<r.top&&(n.top=r.top),o.resizeHeight&&n.top>=r.top&&n.top+a.height>r.bottom&&(a.height-=n.top+a.height-r.bottom),o.adjustY&&n.top+a.height>r.bottom&&(n.top=Math.max(r.bottom-a.height,r.top)),Tht.mix(n,a)}(h,p,d,c))}return f.width!==p.width&&Tht.css(l,"width",Tht.width(l)+f.width-p.width),f.height!==p.height&&Tht.css(l,"height",Tht.height(l)+f.height-p.height),Tht.offset(l,{left:f.left,top:f.top},{useCssRight:r.useCssRight,useCssBottom:r.useCssBottom,useCssTransform:r.useCssTransform,ignoreShake:r.ignoreShake}),{points:n,offset:a,targetOffset:i,overflow:c}}function Ght(e,t,r){var o=r.target||t,n=Iht(o),a=!function(e,t){var r=zht(e,t),o=Iht(e);return!r||o.left+o.width<=r.left||o.top+o.height<=r.top||o.left>=r.right||o.top>=r.bottom}(o,r.overflow&&r.overflow.alwaysByViewport);return Uht(e,n,r,a)}Ght.__getOffsetParent=Rht,Ght.__getVisibleRectForElement=zht;function Kht(e,t){var r=null,o=null;var n=new Jst(function(e){var n=Zut(e,1)[0].target;if(document.documentElement.contains(n)){var a=n.getBoundingClientRect(),i=a.width,s=a.height,l=Math.floor(i),c=Math.floor(s);r===l&&o===c||Promise.resolve().then(function(){t({width:l,height:c})}),r=l,o=c}});return e&&n.observe(e),function(){n.disconnect()}}function Yht(e){return"function"!=typeof e?null:e()}function Xht(e){return"object"===fut(e)&&e?e:null}var Zht=function(e,t){var r=e.children,o=e.disabled,n=e.target,a=e.align,i=e.onAlign,s=e.monitorWindowResize,c=e.monitorBufferTime,u=void 0===c?0:c,d=l.default.useRef({}),p=l.default.useRef(),h=l.default.Children.only(r),f=l.default.useRef({});f.current.disabled=o,f.current.target=n,f.current.align=a,f.current.onAlign=i;var m=function(e,t){var r=l.default.useRef(!1),o=l.default.useRef(null);function n(){window.clearTimeout(o.current)}return[function a(i){if(n(),r.current&&!0!==i)o.current=window.setTimeout(function(){r.current=!1,a()},t);else{if(!1===e(i))return;r.current=!0,o.current=window.setTimeout(function(){r.current=!1},t)}},function(){r.current=!1,n()}]}(function(){var e=f.current,t=e.disabled,r=e.target,o=e.align,n=e.onAlign,a=p.current;if(!t&&r&&a){var i,s=Yht(r),l=Xht(r);d.current.element=s,d.current.point=l,d.current.align=o;var c=document.activeElement;return s&&function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,o=t.height;if(r||o)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect(),a=n.width,i=n.height;if(a||i)return!0}}return!1}(s)?i=Ght(a,s,o):l&&(i=function(e,t,r){var o,n,a=Tht.getDocument(e),i=a.defaultView||a.parentWindow,s=Tht.getWindowScrollLeft(i),l=Tht.getWindowScrollTop(i),c=Tht.viewportWidth(i),u=Tht.viewportHeight(i),d={left:o="pageX"in t?t.pageX:s+t.clientX,top:n="pageY"in t?t.pageY:l+t.clientY,width:0,height:0},p=o>=0&&o<=s+c&&n>=0&&n<=l+u,h=[r.points[0],"cc"];return Uht(e,d,Kpt(Kpt({},r),{},{points:h}),p)}(a,l,o)),function(e,t){e!==document.activeElement&&Bpt(t,e)&&"function"==typeof e.focus&&e.focus()}(c,a),n&&i&&n(a,i),!0}return!1},u),v=Zut(m,2),y=v[0],g=v[1],x=Zut(l.default.useState(),2),b=x[0],w=x[1],k=Zut(l.default.useState(),2),_=k[0],C=k[1];return gdt(function(){w(Yht(n)),C(Xht(n))}),l.default.useEffect(function(){d.current.element===b&&function(e,t){return e===t||!(!e||!t)&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY)}(d.current.point,_)&&function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=o.has(t);if(Sdt(!i,"Warning: There may be circular references"),i)return!1;if(t===n)return!0;if(r&&a>1)return!1;o.add(t);var s=a+1;if(Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],n[l],s))return!1;return!0}if(t&&n&&"object"===fut(t)&&"object"===fut(n)){var c=Object.keys(t);return c.length===Object.keys(n).length&&c.every(function(r){return e(t[r],n[r],s)})}return!1}(e,t)}(d.current.align,a)||y()}),l.default.useEffect(function(){return Kht(p.current,y)},[p.current]),l.default.useEffect(function(){return Kht(b,y)},[b]),l.default.useEffect(function(){o?g():y()},[o]),l.default.useEffect(function(){if(s)return Vpt(window,"resize",y).remove},[s]),l.default.useEffect(function(){return function(){g()}},[]),l.default.useImperativeHandle(t,function(){return{forceAlign:function(){return y(!0)}}}),l.default.isValidElement(h)&&(h=l.default.cloneElement(h,{ref:udt(h.ref,p)})),h},Qht=l.default.forwardRef(Zht);Qht.displayName="Align";var Jht=["measure","alignPre","align",null,"motion"],eft=s.forwardRef(function(t,r){var o=t.visible,n=t.prefixCls,a=t.className,i=t.style,l=t.children,c=t.zIndex,u=t.stretch,d=t.destroyPopupOnHide,p=t.forceRender,h=t.align,f=t.point,m=t.getRootDomNode,v=t.getClassNameFromAlign,y=t.onAlign,g=t.onMouseEnter,x=t.onMouseLeave,b=t.onMouseDown,w=t.onTouchStart,k=t.onClick,_=e.useRef(),C=e.useRef(),M=Zut(e.useState(),2),D=M[0],O=M[1],P=function(e){var t=Zut(s.useState({width:0,height:0}),2),r=t[0],o=t[1],n=s.useMemo(function(){var t={};if(e){var o=r.width,n=r.height;-1!==e.indexOf("height")&&n?t.height=n:-1!==e.indexOf("minHeight")&&n&&(t.minHeight=n),-1!==e.indexOf("width")&&o?t.width=o:-1!==e.indexOf("minWidth")&&o&&(t.minWidth=o)}return t},[e,r]);return[n,function(e){var t=e.offsetWidth,r=e.offsetHeight,n=e.getBoundingClientRect(),a=n.width,i=n.height;Math.abs(t-a)<1&&Math.abs(r-i)<1&&(t=a,r=i),o({width:t,height:r})}]}(u),E=Zut(P,2),j=E[0],T=E[1];var N=function(t,r){var o=Zut(xdt(null),2),n=o[0],a=o[1],i=e.useRef();function s(e){a(e,!0)}function l(){npt.cancel(i.current)}return e.useEffect(function(){s("measure")},[t]),e.useEffect(function(){"measure"===n&&r(),n&&(i.current=npt(zut(Rut().mark(function e(){var t,r;return Rut().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=Jht.indexOf(n),(r=Jht[t+1])&&-1!==t&&s(r);case 3:case"end":return e.stop()}},e)}))))},[n]),e.useEffect(function(){return function(){l()}},[]),[n,function(e){l(),i.current=npt(function(){s(function(e){switch(n){case"align":return"motion";case"motion":return"stable"}return e}),null==e||e()})}]}(o,function(){u&&T(m())}),R=Zut(N,2),F=R[0],z=R[1],I=Zut(e.useState(0),2),A=I[0],L=I[1],B=e.useRef();function V(){var e;null===(e=_.current)||void 0===e||e.forceAlign()}function H(e,t){var r=v(t);D!==r&&O(r),L(function(e){return e+1}),"align"===F&&(null==y||y(e,t))}gdt(function(){"alignPre"===F&&L(0)},[F]),gdt(function(){"align"===F&&(A<3?V():z(function(){var e;null===(e=B.current)||void 0===e||e.call(B)}))},[A]);var q=gut({},Wpt(t));function $(){return new Promise(function(e){B.current=e})}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(e){var t=q[e];q[e]=function(e,r){return z(),null==t?void 0:t(e,r)}}),s.useEffect(function(){q.motionName||"motion"!==F||z()},[q.motionName,F]),s.useImperativeHandle(r,function(){return{forceAlign:V,getElement:function(){return C.current}}});var W=gut(gut({},j),{},{zIndex:c,opacity:"motion"!==F&&"stable"!==F&&o?0:void 0,pointerEvents:o||"stable"===F?void 0:"none"},i),U=!0;null==h||!h.points||"align"!==F&&"stable"!==F||(U=!1);var G=l;return s.Children.count(l)>1&&(G=s.createElement("div",{className:"".concat(n,"-content")},l)),s.createElement(dpt,S({visible:o,ref:C,leavedClassName:"".concat(n,"-hidden")},q,{onAppearPrepare:$,onEnterPrepare:$,removeOnLeave:d,forceRender:p}),function(e,t){var r=e.className,o=e.style,i=Qat(n,a,D,r);return s.createElement(Qht,{target:f||m,key:"popup",ref:_,monitorWindowResize:!0,disabled:U,align:h,onAlign:H},s.createElement("div",{ref:t,className:i,onMouseEnter:g,onMouseLeave:x,onMouseDownCapture:b,onTouchStartCapture:w,onClick:k,style:gut(gut({},o),W)},G))})});eft.displayName="PopupInner";var tft=s.forwardRef(function(e,t){var r=e.prefixCls,o=e.visible,n=e.zIndex,a=e.children,i=e.mobile,l=(i=void 0===i?{}:i).popupClassName,c=i.popupStyle,u=i.popupMotion,d=void 0===u?{}:u,p=i.popupRender,h=e.onClick,f=s.useRef();s.useImperativeHandle(t,function(){return{forceAlign:function(){},getElement:function(){return f.current}}});var m=gut({zIndex:n},c),v=a;return s.Children.count(a)>1&&(v=s.createElement("div",{className:"".concat(r,"-content")},a)),p&&(v=p(v)),s.createElement(dpt,S({visible:o,ref:f,removeOnLeave:!0},d),function(e,t){var o=e.className,n=e.style,a=Qat(r,l,o);return s.createElement("div",{ref:t,className:a,onClick:h,style:gut(gut({},n),m)},v)})});tft.displayName="MobilePopupInner";var rft=["visible","mobile"],oft=s.forwardRef(function(t,r){var o=t.visible,n=t.mobile,a=hut(t,rft),i=Zut(e.useState(o),2),l=i[0],c=i[1],u=Zut(e.useState(!1),2),d=u[0],p=u[1],h=gut(gut({},a),{},{visible:l});e.useEffect(function(){c(o),o&&n&&p(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())},[o,n]);var f=d?s.createElement(tft,S({},h,{mobile:n,ref:r})):s.createElement(eft,S({},h,{ref:r}));return s.createElement("div",null,s.createElement(Upt,h),f)});oft.displayName="Popup";var nft=s.createContext(null);function aft(){}function ift(){return""}function sft(e){return e?e.ownerDocument:window.document}var lft=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var cft=function(e){var t=function(){kut(r,s.Component);var t=Mut(r);function r(e){var o,n;return xut(this,r),vut(Ss(o=t.call(this,e)),"popupRef",s.createRef()),vut(Ss(o),"triggerRef",s.createRef()),vut(Ss(o),"portalContainer",void 0),vut(Ss(o),"attachId",void 0),vut(Ss(o),"clickOutsideHandler",void 0),vut(Ss(o),"touchOutsideHandler",void 0),vut(Ss(o),"contextMenuOutsideHandler1",void 0),vut(Ss(o),"contextMenuOutsideHandler2",void 0),vut(Ss(o),"mouseDownTimeout",void 0),vut(Ss(o),"focusTime",void 0),vut(Ss(o),"preClickTime",void 0),vut(Ss(o),"preTouchTime",void 0),vut(Ss(o),"delayTimer",void 0),vut(Ss(o),"hasPopupMouseDown",void 0),vut(Ss(o),"onMouseEnter",function(e){var t=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",e),o.delaySetPopupVisible(!0,t,t?null:e)}),vut(Ss(o),"onMouseMove",function(e){o.fireEvents("onMouseMove",e),o.setPoint(e)}),vut(Ss(o),"onMouseLeave",function(e){o.fireEvents("onMouseLeave",e),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)}),vut(Ss(o),"onPopupMouseEnter",function(){o.clearDelayTimer()}),vut(Ss(o),"onPopupMouseLeave",function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&Bpt(null===(t=o.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)}),vut(Ss(o),"onFocus",function(e){o.fireEvents("onFocus",e),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))}),vut(Ss(o),"onMouseDown",function(e){o.fireEvents("onMouseDown",e),o.preClickTime=Date.now()}),vut(Ss(o),"onTouchStart",function(e){o.fireEvents("onTouchStart",e),o.preTouchTime=Date.now()}),vut(Ss(o),"onBlur",function(e){o.fireEvents("onBlur",e),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)}),vut(Ss(o),"onContextMenu",function(e){e.preventDefault(),o.fireEvents("onContextMenu",e),o.setPopupVisible(!0,e)}),vut(Ss(o),"onContextMenuClose",function(){o.isContextMenuToShow()&&o.close()}),vut(Ss(o),"onClick",function(e){if(o.fireEvents("onClick",e),o.focusTime){var t;if(o.preClickTime&&o.preTouchTime?t=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?t=o.preClickTime:o.preTouchTime&&(t=o.preTouchTime),Math.abs(t-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!o.state.popupVisible;(o.isClickToHide()&&!r||r&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,e)}),vut(Ss(o),"onPopupMouseDown",function(){var e;(o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout(function(){o.hasPopupMouseDown=!1},0),o.context)&&(e=o.context).onPopupMouseDown.apply(e,arguments)}),vut(Ss(o),"onDocumentClick",function(e){if(!o.props.mask||o.props.maskClosable){var t=e.target,r=o.getRootDomNode(),n=o.getPopupDomNode();Bpt(r,t)&&!o.isContextMenuOnly()||Bpt(n,t)||o.hasPopupMouseDown||o.close()}}),vut(Ss(o),"getRootDomNode",function(){var e=o.props.getTriggerDOMNode;if(e)return e(o.triggerRef.current);try{var t=Jut(o.triggerRef.current);if(t)return t}catch(e){}return u.default.findDOMNode(Ss(o))}),vut(Ss(o),"getPopupClassNameFromAlign",function(e){var t=[],r=o.props,n=r.popupPlacement,a=r.builtinPlacements,i=r.prefixCls,s=r.alignPoint,l=r.getPopupClassNameFromAlign;return n&&a&&t.push(function(e,t,r,o){for(var n=r.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s=a[i];if(qpt(e[s].points,n,o))return"".concat(t,"-placement-").concat(s)}return""}(a,i,e,s)),l&&t.push(l(e)),t.join(" ")}),vut(Ss(o),"getComponent",function(){var e=o.props,t=e.prefixCls,r=e.destroyPopupOnHide,n=e.popupClassName,a=e.onPopupAlign,i=e.popupMotion,l=e.popupAnimation,c=e.popupTransitionName,u=e.popupStyle,d=e.mask,p=e.maskAnimation,h=e.maskTransitionName,f=e.maskMotion,m=e.zIndex,v=e.popup,y=e.stretch,g=e.alignPoint,x=e.mobile,b=e.forceRender,w=e.onPopupClick,k=o.state,_=k.popupVisible,C=k.point,M=o.getPopupAlign(),D={};return o.isMouseEnterToShow()&&(D.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(D.onMouseLeave=o.onPopupMouseLeave),D.onMouseDown=o.onPopupMouseDown,D.onTouchStart=o.onPopupMouseDown,s.createElement(oft,S({prefixCls:t,destroyPopupOnHide:r,visible:_,point:g&&C,className:n,align:M,onAlign:a,animation:l,getClassNameFromAlign:o.getPopupClassNameFromAlign},D,{stretch:y,getRootDomNode:o.getRootDomNode,style:u,mask:d,zIndex:m,transitionName:c,maskAnimation:p,maskTransitionName:h,maskMotion:f,ref:o.popupRef,motion:i,mobile:x,forceRender:b,onClick:w}),"function"==typeof v?v():v)}),vut(Ss(o),"attachParent",function(e){npt.cancel(o.attachId);var t,r=o.props,n=r.getPopupContainer,a=r.getDocument,i=o.getRootDomNode();n?(i||0===n.length)&&(t=n(i)):t=a(o.getRootDomNode()).body,t?t.appendChild(e):o.attachId=npt(function(){o.attachParent(e)})}),vut(Ss(o),"getContainer",function(){if(!o.portalContainer){var e=(0,o.props.getDocument)(o.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",o.portalContainer=e}return o.attachParent(o.portalContainer),o.portalContainer}),vut(Ss(o),"setPoint",function(e){o.props.alignPoint&&e&&o.setState({point:{pageX:e.pageX,pageY:e.pageY}})}),vut(Ss(o),"handlePortalUpdate",function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)}),vut(Ss(o),"triggerContextValue",{onPopupMouseDown:o.onPopupMouseDown}),n="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,o.state={prevPopupVisible:n,popupVisible:n},lft.forEach(function(e){o["fire".concat(e)]=function(t){o.fireEvents(e,t)}}),o}return wut(r,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Vpt(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Vpt(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Vpt(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Vpt(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),npt.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,r=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,r){return gut(gut({},e[t]||{}),r)}(o,t,r):r}},{key:"setPopupVisible",value:function(e,t){var r=this.props.alignPoint,o=this.state.popupVisible;this.clearDelayTimer(),o!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:o}),this.props.onPopupVisibleChange(e)),r&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,r){var o=this,n=1e3*t;if(this.clearDelayTimer(),n){var a=r?{pageX:r.pageX,pageY:r.pageY}:null;this.delayTimer=window.setTimeout(function(){o.setPopupVisible(e,a),o.clearDelayTimer()},n)}else this.setPopupVisible(e,r)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,r=this.props;return t[e]&&r[e]?this["fire".concat(e)]:t[e]||r[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,r=e.showAction;return-1!==t.indexOf("click")||-1!==r.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,r=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==r.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,r=e.hideAction;return-1!==t.indexOf("click")||-1!==r.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,r=e.showAction;return-1!==t.indexOf("hover")||-1!==r.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,r=e.hideAction;return-1!==t.indexOf("hover")||-1!==r.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,r=e.showAction;return-1!==t.indexOf("focus")||-1!==r.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,r=e.hideAction;return-1!==t.indexOf("focus")||-1!==r.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var r=this.props.children.props[e];r&&r(t);var o=this.props[e];o&&o(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,r=this.props,o=r.children,n=r.forceRender,a=r.alignPoint,i=r.className,l=r.autoDestroy,c=s.Children.only(o),u={key:"trigger"};this.isContextMenuToShow()?u.onContextMenu=this.onContextMenu:u.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(u.onClick=this.onClick,u.onMouseDown=this.onMouseDown,u.onTouchStart=this.onTouchStart):(u.onClick=this.createTwoChains("onClick"),u.onMouseDown=this.createTwoChains("onMouseDown"),u.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(u.onMouseEnter=this.onMouseEnter,a&&(u.onMouseMove=this.onMouseMove)):u.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?u.onMouseLeave=this.onMouseLeave:u.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(u.onFocus=this.onFocus,u.onBlur=this.onBlur):(u.onFocus=this.createTwoChains("onFocus"),u.onBlur=this.createTwoChains("onBlur"));var d=Qat(c&&c.props&&c.props.className,i);d&&(u.className=d);var p=gut({},u);ddt(c)&&(p.ref=udt(this.triggerRef,c.ref));var h,f=s.cloneElement(c,p);return(t||this.popupRef.current||n)&&(h=s.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&l&&(h=null),s.createElement(nft.Provider,{value:this.triggerContextValue},f,h)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.popupVisible,o={};return void 0!==r&&t.popupVisible!==r&&(o.popupVisible=r,o.prevPopupVisible=t.popupVisible),o}}]),r}();return vut(t,"contextType",nft),vut(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:ift,getDocument:sft,onPopupVisibleChange:aft,afterPopupVisibleChange:aft,onPopupAlign:aft,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}(Hpt),uft={adjustX:1,adjustY:1},dft=[0,0],pft={left:{points:["cr","cl"],overflow:uft,offset:[-4,0],targetOffset:dft},right:{points:["cl","cr"],overflow:uft,offset:[4,0],targetOffset:dft},top:{points:["bc","tc"],overflow:uft,offset:[0,-4],targetOffset:dft},bottom:{points:["tc","bc"],overflow:uft,offset:[0,4],targetOffset:dft},topLeft:{points:["bl","tl"],overflow:uft,offset:[0,-4],targetOffset:dft},leftTop:{points:["tr","tl"],overflow:uft,offset:[-4,0],targetOffset:dft},topRight:{points:["br","tr"],overflow:uft,offset:[0,-4],targetOffset:dft},rightTop:{points:["tl","tr"],overflow:uft,offset:[4,0],targetOffset:dft},bottomRight:{points:["tr","br"],overflow:uft,offset:[0,4],targetOffset:dft},rightBottom:{points:["bl","br"],overflow:uft,offset:[4,0],targetOffset:dft},bottomLeft:{points:["tl","bl"],overflow:uft,offset:[0,4],targetOffset:dft},leftBottom:{points:["br","bl"],overflow:uft,offset:[-4,0],targetOffset:dft}};function hft(e){var t=e.showArrow,r=e.arrowContent,o=e.children,n=e.prefixCls,a=e.id,i=e.overlayInnerStyle,l=e.className,c=e.style;return s.createElement("div",{className:Qat("".concat(n,"-content"),l),style:c},!1!==t&&s.createElement("div",{className:"".concat(n,"-arrow"),key:"arrow"},r),s.createElement("div",{className:"".concat(n,"-inner"),id:a,role:"tooltip",style:i},"function"==typeof o?o():o))}var fft,mft,vft,yft,gft=function(t,r){var o=t.overlayClassName,n=t.trigger,a=void 0===n?["hover"]:n,i=t.mouseEnterDelay,l=void 0===i?0:i,c=t.mouseLeaveDelay,u=void 0===c?.1:c,d=t.overlayStyle,p=t.prefixCls,h=void 0===p?"rc-tooltip":p,f=t.children,m=t.onVisibleChange,v=t.afterVisibleChange,y=t.transitionName,g=t.animation,x=t.motion,b=t.placement,w=void 0===b?"right":b,k=t.align,_=void 0===k?{}:k,C=t.destroyTooltipOnHide,M=void 0!==C&&C,D=t.defaultVisible,O=t.getTooltipContainer,P=t.overlayInnerStyle,E=t.arrowContent,j=t.overlay,T=t.id,N=t.showArrow,R=hut(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),F=e.useRef(null);e.useImperativeHandle(r,function(){return F.current});var z=gut({},R);"visible"in t&&(z.popupVisible=t.visible);var I=!1,A=!1;if("boolean"==typeof M)I=M;else if(M&&"object"===fut(M)){var L=M.keepParent;I=!0===L,A=!1===L}return s.createElement(cft,S({popupClassName:o,prefixCls:h,popup:function(){return s.createElement(hft,{showArrow:N,arrowContent:E,key:"content",prefixCls:h,id:T,overlayInnerStyle:P},j)},action:a,builtinPlacements:pft,popupPlacement:w,ref:F,popupAlign:_,getPopupContainer:O,onPopupVisibleChange:m,afterPopupVisibleChange:v,popupTransitionName:y,popupAnimation:g,popupMotion:x,defaultPopupVisible:D,destroyPopupOnHide:I,autoDestroy:A,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l},z),f)},xft=e.forwardRef(gft),bft=Lt.div(mft||(mft=te(["\n ",";\n"],["\n ",";\n"])),function(e){var t=e.theme,r=t.colors,o=t.sizes,n=t.fonts,a=e.$styles;return Et(fft||(fft=te(["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n ",";\n }\n }\n "],["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n ",";\n }\n }\n "])),o.S,r.indigo,r.white,o.S,n.S,a)}),wft={DEFAULT:"Minus",ERROR:"Close",SUCCESS:"Check"},kft=function(e){var t=e.text,r=e.status,o=function(e){var t=Qe().colors;switch(e){case"SUCCESS":return{color:t.greenShade,backgroundColor:t.greenTint,borderColor:"transparent"};case"ERROR":return{color:t.redShade,backgroundColor:t.redTint,borderColor:"transparent"};default:return{color:t.gray2,backgroundColor:"transparent",borderColor:t.gray3}}}(r),n=o.backgroundColor,a=o.color,i=o.borderColor,s=Qe().sizes;return ct(_ft,X({style:{backgroundColor:n,borderColor:i}},{children:[lt(rC,{size:s.M,name:wft[r],color:a}),lt(G_,{width:"S"}),lt(K_,X({variant:"M",color:a},{children:t}))]}))},_ft=Lt.div(yft||(yft=te(["\n ","\n"],["\n ","\n"])),function(e){var t=e.theme.sizes;return Et(vft||(vft=te(["\n display: flex;\n width: fit-content;\n align-items: center;\n border-radius: ","px;\n border: 1.5px solid transparent;\n padding: ","px ","px ","px ","px;\n "],["\n display: flex;\n width: fit-content;\n align-items: center;\n border-radius: ","px;\n border: 1.5px solid transparent;\n padding: ","px ","px ","px ","px;\n "])),t.M,t.XS,t.M,t.XS,t.S)}),Cft={id:"controlsLayout",tool:"custom",titleKey:"config.datagrid.group.controlsLayout",collapsible:!0,initiallyExpanded:!1,pathBase:"props.toolbarContainer.sx",fields:[{type:"number",captureName:"controlHeight",labelKey:"config.datagrid.controls.height",defaultValue:44},{type:"number",captureName:"searchWidth",labelKey:"config.datagrid.controls.searchWidth",defaultValue:360},{type:"number",captureName:"columnGap",labelKey:"config.datagrid.controls.columnGap",defaultValue:1},{type:"number",captureName:"marginTop",labelKey:"config.datagrid.controls.marginTop",defaultValue:1}]},Mft={id:"densityToggleStyles",tool:"custom",titleKey:"config.datagrid.group.densityToggleStyles",collapsible:!0,initiallyExpanded:!1,pathBase:"props.densityToggleContainer.sx",fields:[{type:"color",captureName:"backgroundColor",labelKey:"config.datagrid.density.background"},{type:"color",captureName:"selectedBackgroundColor",labelKey:"config.datagrid.density.selectedBackground"},{type:"color",captureName:"selectedTextColor",labelKey:"config.datagrid.density.selectedTextColor"},{type:"number",captureName:"borderRadius",labelKey:"config.datagrid.density.borderRadius",defaultValue:10}]},Sft={id:"exportButtonStyles",tool:"custom",titleKey:"config.datagrid.group.exportButtonStyles",collapsible:!0,initiallyExpanded:!1,pathBase:"props.exportButton.sx",fields:[{type:"color",captureName:"backgroundColor",labelKey:"config.datagrid.export.background"},{type:"color",captureName:"borderColor",labelKey:"config.datagrid.export.borderColor"},{type:"color",captureName:"iconColor",labelKey:"config.datagrid.export.iconColor"},{type:"number",captureName:"borderRadius",labelKey:"config.datagrid.export.borderRadius",defaultValue:8}]},Dft={id:"quickFilters",tool:"dataGridQuickFilters",titleKey:"config.datagrid.group.quickFilters",collapsible:!0,initiallyExpanded:!1,pathBase:"toolbar.quickFilters",toolConfig:{columnsDependencyPath:"dataRetrievalConfig.columns",fields:[{type:"text",captureName:"label",labelKey:"config.datagrid.quickFilters.label"},{type:"text",captureName:"columnField",labelKey:"config.datagrid.quickFilters.columnField"},{type:"text",captureName:"value",labelKey:"config.datagrid.quickFilters.value"},{type:"color",captureName:"color",labelKey:"config.datagrid.quickFilters.color"}]}},Oft={id:"quickFiltersStyles",tool:"custom",titleKey:"config.datagrid.group.quickFiltersStyles",collapsible:!0,initiallyExpanded:!1,pathBase:"props.quickFiltersGroup.sx",fields:[{type:"color",captureName:"chipBackgroundColor",labelKey:"config.datagrid.quickFilters.chipBackground"},{type:"color",captureName:"chipTextColor",labelKey:"config.datagrid.quickFilters.chipText"},{type:"color",captureName:"chipBorderColor",labelKey:"config.datagrid.quickFilters.chipBorder"},{type:"number",captureName:"chipBorderRadius",labelKey:"config.datagrid.quickFilters.chipBorderRadius",defaultValue:10},{type:"number",captureName:"chipGap",labelKey:"config.datagrid.quickFilters.chipGap",defaultValue:8},{type:"color",captureName:"selectedChipColor",labelKey:"config.datagrid.quickFilters.selectedChipColor"}]},Pft={id:"searchControl",tool:"custom",titleKey:"config.datagrid.group.searchControl",collapsible:!0,initiallyExpanded:!1,pathBase:"toolbar.searchControl",fields:[{type:"text",captureName:"placeholder",labelKey:"config.datagrid.search.placeholder",defaultValue:"Search"},{type:"switch",captureName:"autoFocus",labelKey:"config.datagrid.search.autoFocus",defaultValue:!1},{type:"number",captureName:"borderRadius",labelKey:"config.datagrid.search.borderRadius",defaultValue:2},{type:"color",captureName:"backgroundColor",labelKey:"config.datagrid.search.background"},{type:"color",captureName:"borderColor",labelKey:"config.datagrid.search.borderColor"}]},Eft={id:"styles",tool:"custom",titleKey:"config.datagrid.group.styles",collapsible:!0,initiallyExpanded:!1,pathBase:"props.dataGrid.sx",fields:[{type:"color",captureName:"backgroundColor",labelKey:"config.datagrid.styles.background",defaultValue:"#FFFFFF"},{type:"color",captureName:"headerBackgroundColor",labelKey:"config.datagrid.styles.headerBackground"},{type:"number",captureName:"headerFontSize",labelKey:"config.datagrid.styles.headerFontSize"},{type:"color",captureName:"rowHoverColor",labelKey:"config.datagrid.styles.rowHoverColor"},{type:"number",captureName:"rowHeight",labelKey:"config.datagrid.styles.rowHeight"},{type:"number",captureName:"rowGap",labelKey:"config.datagrid.styles.rowGap"}]},jft={id:"toolbar",tool:"custom",titleKey:"config.datagrid.group.toolbar",collapsible:!0,initiallyExpanded:!1,pathBase:"toolbar",fields:[{type:"select",captureName:"densityDefault",labelKey:"config.datagrid.toolbar.densityDefault",defaultValue:"comfortable",options:[{id:"compact",labelKey:"config.datagrid.toolbar.view.compact"},{id:"comfortable",labelKey:"config.datagrid.toolbar.view.comfortable"}]},{type:"switch",captureName:"densityToggle",labelKey:"config.datagrid.toolbar.densityToggle",defaultValue:!0},{type:"switch",captureName:"search",labelKey:"config.datagrid.toolbar.search",defaultValue:!0},{type:"switch",captureName:"exportCsv",labelKey:"config.datagrid.toolbar.exportCsv",defaultValue:!0}]},Tft={id:"toolbarStyles",tool:"custom",titleKey:"config.datagrid.group.toolbarStyles",collapsible:!0,initiallyExpanded:!1,pathBase:"props.toolbarContainer.sx",fields:[{type:"color",captureName:"backgroundColor",labelKey:"config.datagrid.toolbarStyles.background"},{type:"color",captureName:"borderColor",labelKey:"config.datagrid.toolbarStyles.borderColor"},{type:"number",captureName:"borderRadius",labelKey:"config.datagrid.toolbarStyles.borderRadius",defaultValue:8},{type:"number",captureName:"gap",labelKey:"config.datagrid.toolbarStyles.gap",defaultValue:1.5}]},Nft={id:"wrapperStyles",tool:"custom",titleKey:"config.datagrid.group.wrapperStyles",collapsible:!0,initiallyExpanded:!1,pathBase:"props.dataGridWrapper.sx",fields:[{type:"color",captureName:"backgroundColor",labelKey:"config.datagrid.wrapper.background"},{type:"color",captureName:"borderColor",labelKey:"config.datagrid.wrapper.borderColor"},{type:"number",captureName:"borderRadius",labelKey:"config.datagrid.wrapper.borderRadius",defaultValue:8},{type:"number",captureName:"paddingX",labelKey:"config.datagrid.wrapper.paddingX",defaultValue:0},{type:"number",captureName:"paddingY",labelKey:"config.datagrid.wrapper.paddingY",defaultValue:0},{type:"number",captureName:"elevation",labelKey:"config.datagrid.wrapper.elevation",defaultValue:0},{type:"number",captureName:"marginX",labelKey:"config.datagrid.wrapper.marginX",defaultValue:0},{type:"number",captureName:"marginY",labelKey:"config.datagrid.wrapper.marginY",defaultValue:0},{type:"text",captureName:"boxShadow",labelKey:"config.datagrid.wrapper.boxShadow"}]},Rft={component:"DataGridOrganism",version:"1.4.0",toolGroups:[{id:"view",tool:"dataGridListConfigurator",titleKey:"config.datagrid.group.view",collapsible:!0,initiallyExpanded:!0,pathBase:"view",defaultView:"listView",toolConfig:{basePathAliasKey:"meta.pathAliases.dataGridView",templates:[{id:"custom",label:"Custom",labelKey:"config.datagrid.list.template.custom"},{id:"studyCard",label:"Study card",labelKey:"config.datagrid.list.template.studyCard"},{id:"subjectCard",label:"Subject card",labelKey:"config.datagrid.list.template.subjectCard"},{id:"visitCard",label:"Visit card",labelKey:"config.datagrid.list.template.visitCard"},{id:"visitCardCheck",label:"Visit card (check)",labelKey:"config.datagrid.list.template.visitCardCheck"},{id:"fourItems",label:"4 items view",labelKey:"config.datagrid.list.template.fourItems"},{id:"applicationCard",label:"Application card",labelKey:"config.datagrid.list.template.applicationCard"},{id:"compact",label:"Compact",labelKey:"config.datagrid.list.template.compact"},{id:"mediaLeft",label:"Media left",labelKey:"config.datagrid.list.template.mediaLeft"},{id:"titleSubtitleMeta",label:"Title + subtitle + meta",labelKey:"config.datagrid.list.template.titleSubtitleMeta"},{id:"twoColumn",label:"Two column",labelKey:"config.datagrid.list.template.twoColumn"}]}},{id:"columns",tool:"dataGridColumns",titleKey:"config.datagrid.group.columns",collapsible:!0,initiallyExpanded:!0,pathBase:"dataRetrievalConfig.columns"},Dft,jft,Cft,{id:"rootWrapperStyles",tool:"custom",titleKey:"config.datagrid.group.rootWrapperStyles",collapsible:!0,initiallyExpanded:!1,pathBase:"props.rootContainer.sx",fields:[{type:"color",captureName:"backgroundColor",labelKey:"config.datagrid.rootWrapper.background"},{type:"number",captureName:"paddingX",labelKey:"config.datagrid.rootWrapper.paddingX",defaultValue:0},{type:"number",captureName:"paddingY",labelKey:"config.datagrid.rootWrapper.paddingY",defaultValue:0},{type:"number",captureName:"marginX",labelKey:"config.datagrid.rootWrapper.marginX",defaultValue:0},{type:"number",captureName:"marginY",labelKey:"config.datagrid.rootWrapper.marginY",defaultValue:0}]},Nft,{id:"listItemStyles",tool:"custom",titleKey:"config.datagrid.group.listItemStyles",collapsible:!0,initiallyExpanded:!1,pathBase:"props.listItem.sx",fields:[{type:"color",captureName:"backgroundColor",labelKey:"config.datagrid.listItem.background"},{type:"color",captureName:"borderColor",labelKey:"config.datagrid.listItem.borderColor"},{type:"number",captureName:"borderRadius",labelKey:"config.datagrid.listItem.borderRadius",defaultValue:12},{type:"number",captureName:"paddingX",labelKey:"config.datagrid.listItem.paddingX",defaultValue:10},{type:"number",captureName:"paddingY",labelKey:"config.datagrid.listItem.paddingY",defaultValue:10},{type:"number",captureName:"marginX",labelKey:"config.datagrid.listItem.marginX",defaultValue:0},{type:"number",captureName:"marginY",labelKey:"config.datagrid.listItem.marginY",defaultValue:0},{type:"text",captureName:"boxShadow",labelKey:"config.datagrid.listItem.boxShadow"}]},Tft,Oft,Pft,Mft,Sft,Eft]},Fft=(e,t,r)=>{if(1===t.length&&t[0]===r){let t=!1;try{const r={};e(r)===r&&(t=!0)}catch{}if(t){let e;try{throw new Error}catch(t){({stack:e}=t)}console.warn("The result function returned its own inputs without modification. e.g\n`createSelector([state => state.todos], todos => todos)`\nThis could lead to inefficient memoization and unnecessary re-renders.\nEnsure transformation logic is in the result function, and extraction logic is in the input selectors.",{stack:e})}}},zft=(e,t,r)=>{const{memoize:o,memoizeOptions:n}=t,{inputSelectorResults:a,inputSelectorResultsCopy:i}=e,s=o(()=>({}),...n);if(!(s.apply(null,a)===s.apply(null,i))){let e;try{throw new Error}catch(t){({stack:e}=t)}console.warn("An input selector returned a different result when passed same arguments.\nThis means your output selector will likely run more frequently than intended.\nAvoid returning a new reference inside your input selector, e.g.\n`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)`",{arguments:r,firstInputs:a,secondInputs:i,stack:e})}},Ift={inputStabilityCheck:"once",identityFunctionCheck:"once"},Aft=Symbol("NOT_FOUND");var Lft=e=>Array.isArray(e)?e:[e];function Bft(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${r}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Vft(e,t){const r=[],{length:o}=e;for(let n=0;n<o;n++)r.push(e[n].apply(null,t));return r}var Hft=(e,t)=>e===t;function qft(e,t){const r="object"==typeof t?t:{equalityCheck:t},{equalityCheck:o=Hft,maxSize:n=1,resultEqualityCheck:a}=r,i=function(e){return function(t,r){if(null===t||null===r||t.length!==r.length)return!1;const{length:o}=t;for(let n=0;n<o;n++)if(!e(t[n],r[n]))return!1;return!0}}(o);let s=0;const l=n<=1?function(e){let t;return{get:r=>t&&e(t.key,r)?t.value:Aft,put(e,r){t={key:e,value:r}},getEntries:()=>t?[t]:[],clear(){t=void 0}}}(i):function(e,t){let r=[];function o(e){const o=r.findIndex(r=>t(e,r.key));if(o>-1){const e=r[o];return o>0&&(r.splice(o,1),r.unshift(e)),e.value}return Aft}return{get:o,put:function(t,n){o(t)===Aft&&(r.unshift({key:t,value:n}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(n,i);function c(){let t=l.get(arguments);if(t===Aft){if(t=e.apply(null,arguments),s++,a){const e=l.getEntries().find(e=>a(e.value,t));e&&(t=e.value,0!==s&&s--)}l.put(arguments,t)}return t}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>s,c.resetResultsCount=()=>{s=0},c}var $ft="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function Wft(){return{s:0,v:void 0,o:null,p:null}}function Uft(e,t={}){let r={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:o}=t;let n,a=0;function i(){let t=r;const{length:i}=arguments;for(let e=0,r=i;e<r;e++){const r=arguments[e];if("function"==typeof r||"object"==typeof r&&null!==r){let e=t.o;null===e&&(t.o=e=new WeakMap);const o=e.get(r);void 0===o?(t=Wft(),e.set(r,t)):t=o}else{let e=t.p;null===e&&(t.p=e=new Map);const o=e.get(r);void 0===o?(t=Wft(),e.set(r,t)):t=o}}const s=t;let l;if(1===t.s)l=t.v;else if(l=e.apply(null,arguments),a++,o){const e=n?.deref?.()??n;null!=e&&o(e,l)&&(l=e,0!==a&&a--);n="object"==typeof l&&null!==l||"function"==typeof l?new $ft(l):l}return s.s=1,s.v=l,l}return i.clearCache=()=>{r={s:0,v:void 0,o:null,p:null},i.resetResultsCount()},i.resultsCount=()=>a,i.resetResultsCount=()=>{a=0},i}function Gft(e,...t){const r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,o=(...e)=>{let t,o=0,n=0,a={},i=e.pop();"object"==typeof i&&(a=i,i=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const s={...r,...a},{memoize:l,memoizeOptions:c=[],argsMemoize:u=Uft,argsMemoizeOptions:d=[],devModeChecks:p={}}=s,h=Lft(c),f=Lft(d),m=Bft(e),v=l(function(){return o++,i.apply(null,arguments)},...h);let y=!0;const g=u(function(){n++;const e=Vft(m,arguments);if(t=v.apply(null,e),"production"!==process.env.NODE_ENV){const{identityFunctionCheck:r,inputStabilityCheck:o}=((e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:o}={...Ift,...t};return{identityFunctionCheck:{shouldRun:"always"===r||"once"===r&&e,run:Fft},inputStabilityCheck:{shouldRun:"always"===o||"once"===o&&e,run:zft}}})(y,p);if(r.shouldRun&&r.run(i,e,t),o.shouldRun){const t=Vft(m,arguments);o.run({inputSelectorResults:e,inputSelectorResultsCopy:t},{memoize:l,memoizeOptions:h},arguments)}y&&(y=!1)}return t},...f);return Object.assign(g,{resultFunc:i,memoizedResultFunc:v,dependencies:m,dependencyRecomputations:()=>n,resetDependencyRecomputations:()=>{n=0},lastResult:()=>t,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:l,argsMemoize:u})};return Object.assign(o,{withTypes:()=>o}),o}var Kft=Gft(Uft),Yft=Object.assign((e,t=Kft)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const r=Object.keys(e),o=r.map(t=>e[t]),n=t(o,(...e)=>e.reduce((e,t,o)=>(e[r[o]]=t,e),{}));return n},{withTypes:()=>Yft});const Xft=Gft({memoize:qft,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});class Zft{static create(e){return new Zft(e)}constructor(e){this.state=void 0,this.listeners=void 0,this.subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),this.getSnapshot=()=>this.state,this.update=e=>{this.state!==e&&(this.state=e,this.listeners.forEach(t=>t(e)))},this.state=e,this.listeners=new Set}apply(e){for(const t in e)if(!Object.is(this.state[t],e[t]))return void this.update(S({},this.state,e))}set(e,t){Object.is(this.state[e],t)||this.update(S({},this.state,{[e]:t}))}}const Qft=(...e)=>{const t=((e,t,r,o,n,a,...i)=>{if(i.length>0)throw new Error("Unsupported number of selectors");let s;if(e&&t&&r&&o&&n&&a)s=(i,s,l,c)=>{const u=e(i,s,l,c),d=t(i,s,l,c),p=r(i,s,l,c),h=o(i,s,l,c),f=n(i,s,l,c);return a(u,d,p,h,f,s,l,c)};else if(e&&t&&r&&o&&n)s=(a,i,s,l)=>{const c=e(a,i,s,l),u=t(a,i,s,l),d=r(a,i,s,l),p=o(a,i,s,l);return n(c,u,d,p,i,s,l)};else if(e&&t&&r&&o)s=(n,a,i,s)=>{const l=e(n,a,i,s),c=t(n,a,i,s),u=r(n,a,i,s);return o(l,c,u,a,i,s)};else if(e&&t&&r)s=(o,n,a,i)=>{const s=e(o,n,a,i),l=t(o,n,a,i);return r(s,l,n,a,i)};else if(e&&t)s=(r,o,n,a)=>{const i=e(r,o,n,a);return t(i,o,n,a)};else{if(!e)throw new Error("Missing arguments");s=e}return s})(...e);return(e,r,o,n)=>t(tmt(e),r,o,n)},Jft=(...e)=>{const t=((...e)=>{const t=new WeakMap;let r=1;const o=e[e.length-1],n=e.length-1||1,a=Math.max(o.length-n,0);if(a>3)throw new Error("Unsupported number of arguments");return(n,i,s,l)=>{let c=n.__cacheKey__;c||(c={id:r},n.__cacheKey__=c,r+=1);let u=t.get(c);if(!u){let r=e;const n=[void 0,void 0,void 0];switch(a){case 0:break;case 1:r=[...e.slice(0,-1),()=>n[0],o];break;case 2:r=[...e.slice(0,-1),()=>n[0],()=>n[1],o];break;case 3:r=[...e.slice(0,-1),()=>n[0],()=>n[1],()=>n[2],o];break;default:throw new Error("Unsupported number of arguments")}u=Xft(...r),u.selectorArgs=n,t.set(c,u)}switch(a){case 3:u.selectorArgs[2]=l;case 2:u.selectorArgs[1]=s;case 1:u.selectorArgs[0]=i}switch(a){case 0:return u(n);case 1:return u(n,i);case 2:return u(n,i,s);case 3:return u(n,i,s,l);default:throw new Error("unreachable")}}})(...e);return(e,r,o,n)=>t(tmt(e),r,o,n)},emt=e=>(t,r)=>e(tmt(t),r);function tmt(e){return"current"in e?e.current.state:e}const rmt=emt(e=>e.dimensions),omt=Qft(rmt,e=>e.columnsTotalWidth),nmt=Qft(rmt,e=>e.rowHeight),amt=Qft(rmt,e=>e.contentSize.height),imt=Qft(rmt,e=>e.hasScrollX),smt=Qft(rmt,e=>e.hasScrollY),lmt=Qft(rmt,e=>e.columnsTotalWidth<e.viewportOuterSize.width),cmt=Qft(rmt,e=>e.headerHeight),umt=Qft(rmt,e=>e.groupHeaderHeight),dmt=Qft(rmt,e=>e.headerFilterHeight),pmt=Qft(rmt,e=>e.hasScrollX?e.scrollbarSize:0),hmt=Qft(rmt,e=>e.hasScrollY?e.scrollbarSize:0),fmt=Qft(rmt,pmt,(e,t)=>{const r=e.viewportOuterSize.height-e.minimumSize.height>0;return!(0===t&&!r)});var mmt=parseInt(s.version,10);const vmt=e=>{if(mmt>=19){const t=t=>e(t,t.ref??null);return t.displayName=e.displayName??e.name,t}return s.forwardRef(e)};"production"!==process.env.NODE_ENV&&(vmt.displayName="forwardRef");const ymt=s.createContext(void 0);"production"!==process.env.NODE_ENV&&(ymt.displayName="GridRootPropsContext");const gmt=()=>{const e=s.useContext(ymt);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},xmt={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",noColumnsOverlayLabel:"No columns",noColumnsOverlayManageColumns:"Manage columns",emptyPivotOverlayLabel:"Add fields to rows, columns, and values to create a pivot table",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",toolbarPivot:"Pivot",toolbarAssistant:"AI Assistant",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",headerFilterClear:"Clear filter",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuAriaLabel:e=>`${e} column menu`,columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnMenuManagePivot:"Manage pivot",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>1!==e?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",paginationRowsPerPage:"Rows per page:",paginationDisplayedRows:({from:e,to:t,count:r,estimated:o})=>{if(!o)return`${e}–${t} of ${-1!==r?r:`more than ${t}`}`;return`${e}–${t} of ${-1!==r?r:o&&o>t?`around ${o}`:`more than ${t}`}`},paginationItemAriaLabel:e=>"first"===e?"Go to first page":"last"===e?"Go to last page":"next"===e?"Go to next page":"Go to previous page",rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size",pivotToggleLabel:"Pivot",pivotRows:"Rows",pivotColumns:"Columns",pivotValues:"Values",pivotCloseButton:"Close pivot settings",pivotSearchButton:"Search fields",pivotSearchControlPlaceholder:"Search fields",pivotSearchControlLabel:"Search fields",pivotSearchControlClear:"Clear search",pivotNoFields:"No fields",pivotMenuMoveUp:"Move up",pivotMenuMoveDown:"Move down",pivotMenuMoveToTop:"Move to top",pivotMenuMoveToBottom:"Move to bottom",pivotMenuRows:"Rows",pivotMenuColumns:"Columns",pivotMenuValues:"Values",pivotMenuOptions:"Field options",pivotMenuAddToRows:"Add to Rows",pivotMenuAddToColumns:"Add to Columns",pivotMenuAddToValues:"Add to Values",pivotMenuRemove:"Remove",pivotDragToRows:"Drag here to create rows",pivotDragToColumns:"Drag here to create columns",pivotDragToValues:"Drag here to create values",pivotYearColumnHeaderName:"(Year)",pivotQuarterColumnHeaderName:"(Quarter)",aiAssistantPanelTitle:"AI Assistant",aiAssistantPanelClose:"Close AI Assistant",aiAssistantPanelNewConversation:"New conversation",aiAssistantPanelConversationHistory:"Conversation history",aiAssistantPanelEmptyConversation:"No prompt history",aiAssistantSuggestions:"Suggestions",promptFieldLabel:"Prompt",promptFieldPlaceholder:"Type a prompt…",promptFieldPlaceholderWithRecording:"Type or record a prompt…",promptFieldPlaceholderListening:"Listening for prompt…",promptFieldSpeechRecognitionNotSupported:"Speech recognition is not supported in this browser",promptFieldSend:"Send",promptFieldRecord:"Record",promptFieldStopRecording:"Stop recording",promptRerun:"Run again",promptProcessing:"Processing…",promptAppliedChanges:"Applied changes",promptChangeGroupDescription:e=>`Group by ${e}`,promptChangeAggregationLabel:(e,t)=>`${e} (${t})`,promptChangeAggregationDescription:(e,t)=>`Aggregate ${e} (${t})`,promptChangeFilterLabel:(e,t,r)=>"is any of"===t?`${e} is any of: ${r}`:`${e} ${t} ${r}`,promptChangeFilterDescription:(e,t,r)=>"is any of"===t?`Filter where ${e} is any of: ${r}`:`Filter where ${e} ${t} ${r}`,promptChangeSortDescription:(e,t)=>`Sort by ${e} (${t})`,promptChangePivotEnableLabel:"Pivot",promptChangePivotEnableDescription:"Enable pivot",promptChangePivotColumnsLabel:e=>`Columns (${e})`,promptChangePivotColumnsDescription:(e,t)=>`${e}${t?` (${t})`:""}`,promptChangePivotRowsLabel:e=>`Rows (${e})`,promptChangePivotValuesLabel:e=>`Values (${e})`,promptChangePivotValuesDescription:(e,t)=>`${e} (${t})`};function bmt(e){return Go("MuiDataGrid",e)}const wmt=Ko("MuiDataGrid",["aiAssistantPanel","aiAssistantPanelHeader","aiAssistantPanelTitleContainer","aiAssistantPanelTitle","aiAssistantPanelBody","aiAssistantPanelEmptyText","aiAssistantPanelFooter","aiAssistantPanelConversation","aiAssistantPanelConversationList","aiAssistantPanelConversationTitle","aiAssistantPanelSuggestions","aiAssistantPanelSuggestionsList","aiAssistantPanelSuggestionsItem","aiAssistantPanelSuggestionsLabel","actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","aggregationRowOverlayWrapper","autoHeight","autosizing","mainContent","withSidePanel","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","collapsible","collapsibleTrigger","collapsibleIcon","collapsiblePanel","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--lastUnpinned","columnHeader--siblingFocused","columnHeader--filter","columnHeaderFilterInput","columnHeaderFilterOperatorLabel","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","columnsManagementScrollArea","columnsManagementEmptyText","container--top","container--bottom","detailPanel","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hiddenContent","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dropAbove","row--dropBelow","row--beingDragged","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowReorderIcon","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea--up","scrollArea--down","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--borderBottom","scrollbarFiller--pinnedRight","selectedRowCount","sortButton","sortIcon","shadowScrollArea","sidebar","sidebarHeader","toolbarContainer","toolbar","toolbarLabel","toolbarDivider","toolbarFilterList","toolbarQuickFilter","toolbarQuickFilterTrigger","toolbarQuickFilterControl","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pivotPanelAvailableFields","pivotPanelField","pivotPanelField--sorted","pivotPanelFieldActionContainer","pivotPanelFieldCheckbox","pivotPanelFieldDragIcon","pivotPanelFieldList","pivotPanelFieldName","pivotPanelHeader","pivotPanelPlaceholder","pivotPanelScrollArea","pivotPanelSearchContainer","pivotPanelSection","pivotPanelSectionTitle","pivotPanelSections","pivotPanelSwitch","pivotPanelSwitchLabel","prompt","promptContent","promptText","promptFeedback","promptChangeList","promptChangesToggle","promptChangesToggleIcon","promptIcon","promptIconContainer","promptError","promptAction"]);let kmt=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}({});const _mt=s.createContext(void 0);function Cmt(){const e=s.useContext(_mt);if(void 0===e)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join("\n"));return e}"production"!==process.env.NODE_ENV&&(_mt.displayName="GridApiContext");class Mmt{constructor(e=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=e}register(e,t,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{"function"==typeof t&&t(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(e){const t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}reset(){this.timeouts&&(this.timeouts.forEach((e,t)=>{this.unregister({cleanupToken:t})}),this.timeouts=void 0)}}class Smt{constructor(){this.registry=new FinalizationRegistry(e=>{"function"==typeof e&&e()})}register(e,t,r){this.registry.register(e,t,r)}unregister(e){this.registry.unregister(e)}reset(){}}class Dmt{static create(){return new Dmt}}const Omt={current:"undefined"!=typeof FinalizationRegistry?new Smt:new Mmt};let Pmt=0;function Emt(e,t,r,o){const n=s.useState(Dmt.create)[0],a=s.useRef(null),i=s.useRef(null);i.current=r;const l=s.useRef(null);if(!a.current&&i.current){const r=(e,t,r)=>{t.defaultMuiPrevented||i.current?.(e,t,r)};a.current=e.current.subscribeEvent(t,r,o),Pmt+=1,l.current={cleanupToken:Pmt},Omt.current.register(n,()=>{a.current?.(),a.current=null,l.current=null},l.current)}else!i.current&&a.current&&(a.current(),a.current=null,l.current&&(Omt.current.unregister(l.current),l.current=null));s.useEffect(()=>{if(!a.current&&i.current){const r=(e,t,r)=>{t.defaultMuiPrevented||i.current?.(e,t,r)};a.current=e.current.subscribeEvent(t,r,o)}return l.current&&Omt.current&&(Omt.current.unregister(l.current),l.current=null),()=>{a.current?.(),a.current=null}},[e,t,o])}const jmt={isFirst:!0};function Tmt(e,t,r){Emt(e,t,r,jmt)}var Nmt,Rmt={exports:{}},Fmt={};var zmt,Imt={};
9631
9631
  /**
9632
9632
  * @license React
9633
9633
  * use-sync-external-store-shim.development.js