-1?d.current[m]=e:delete d.current[m]},prefixCls:r,classNames:$,styles:E,className:g()(w,null==u?void 0:u.notice),style:x,times:h,key:f,eventKey:f,onNoticeClose:s,hovering:O&&S.length>0})))})},e4=h.forwardRef(function(e,t){var n=e.prefixCls,r=void 0===n?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,l=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=h.useState([]),p=(0,eL.Z)(f,2),m=p[0],g=p[1],v=function(e){var t,n=m.find(function(t){return t.key===e});null==n||null==(t=n.onClose)||t.call(n),g(function(t){return t.filter(function(t){return t.key!==e})})};h.useImperativeHandle(t,function(){return{open:function(e){g(function(t){var n,r=(0,y.Z)(t),o=r.findIndex(function(t){return t.key===e.key}),i=(0,eH.Z)({},e);return o>=0?(i.times=((null==(n=t[o])?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i)),a>0&&r.length>a&&(r=r.slice(-a)),r})},close:function(e){v(e)},destroy:function(){g([])}}});var b=h.useState({}),w=(0,eL.Z)(b,2),x=w[0],S=w[1];h.useEffect(function(){var e={};m.forEach(function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))}),Object.keys(x).forEach(function(t){e[t]=e[t]||[]}),S(e)},[m]);var k=function(e){S(function(t){var n=(0,eH.Z)({},t);return(n[e]||[]).length||delete n[e],n})},C=h.useRef(!1);if(h.useEffect(function(){Object.keys(x).length>0?C.current=!0:C.current&&(null==c||c(),C.current=!1)},[x]),!o)return null;var $=Object.keys(x);return(0,eF.createPortal)(h.createElement(h.Fragment,null,$.map(function(e){var t=x[e],n=h.createElement(e2,{key:e,configList:t,placement:e,prefixCls:r,className:null==l?void 0:l(e),style:null==s?void 0:s(e),motion:i,onNoticeClose:v,onAllNoticeRemoved:k,stack:u});return d?d(n,{prefixCls:r,key:e}):n})),o)});var e3=n(56790),e5=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],e8=function(){return document.body},e6=0;function e7(){for(var e={},t=arguments.length,n=Array(t),r=0;r{let{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,G.bf)(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},Ml=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),Ms=e=>{let{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Y.Wf)(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ma(e)),Ml(e))}},Mc=e=>({starColor:e.yellow6,starSize:.5*e.controlHeightLG,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),Mu=(0,k.I$)("Rate",e=>[Ms((0,eI.IX)(e,{}))],Mc);var Md=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o