"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[957],{67487:function(e,t,n){n.d(t,{Z:function(){return l}});var o=n(13428),r=n(2265),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},c=n(46614),l=r.forwardRef(function(e,t){return r.createElement(c.Z,(0,o.Z)({},e,{ref:t,icon:a}))})},2723:function(e,t,n){n.d(t,{Z:function(){return l}});var o=n(13428),r=n(2265),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},c=n(46614),l=r.forwardRef(function(e,t){return r.createElement(c.Z,(0,o.Z)({},e,{ref:t,icon:a}))})},73297:function(e,t,n){n.d(t,{Z:function(){return l}});var o=n(13428),r=n(2265),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},c=n(46614),l=r.forwardRef(function(e,t){return r.createElement(c.Z,(0,o.Z)({},e,{ref:t,icon:a}))})},99412:function(e,t,n){n.d(t,{Z:function(){return l}});var o=n(13428),r=n(2265),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},c=n(46614),l=r.forwardRef(function(e,t){return r.createElement(c.Z,(0,o.Z)({},e,{ref:t,icon:a}))})},72041:function(e,t,n){n.d(t,{Z:function(){return l}});var o=n(13428),r=n(2265),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},c=n(46614),l=r.forwardRef(function(e,t){return r.createElement(c.Z,(0,o.Z)({},e,{ref:t,icon:a}))})},91867:function(e,t,n){n.d(t,{Cn:function(){return s},u6:function(){return c}});var o=n(2265),r=n(54215),a=n(68083);let c=1e3,l={Modal:100,Drawer:100,Popover:100,Popconfirm:100,Tooltip:100,Tour:100},i={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function s(e,t){let[,n]=(0,r.ZP)(),s=o.useContext(a.Z);if(void 0!==t)return[t,t];let u=null!=s?s:0;return e in l?(u+=(s?0:n.zIndexPopupBase)+l[e],u=Math.min(u,n.zIndexPopupBase+c)):u+=i[e],[void 0===s?t:u,u]}},68083:function(e,t,n){var o=n(2265);let r=o.createContext(void 0);t.Z=r},72690:function(e,t,n){var o=n(54215);t.Z=e=>{let[,,,,t]=(0,o.ZP)();return t?`${e}-css-var`:""}},957:function(e,t,n){n.d(t,{ZP:function(){return z}});var o=n(16141),r=n(2265),a=n(43668);let c=r.createContext({});var l=n(19056),i=n(11445),s=n(67487),u=n(2723),f=n(99412),d=n(72041),m=n(7898),v=n(42744),p=n.n(v),E=n(14807),g=n(55189),y=n(91867),N=n(27734),h=n(33563),C=n(43744);let O=e=>{let{componentCls:t,iconCls:n,boxShadow:o,colorText:r,colorSuccess:a,colorError:c,colorWarning:l,colorInfo:i,fontSizeLG:s,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:d,paddingXS:m,borderRadiusLG:v,zIndexPopup:p,contentPadding:E,contentBg:y}=e,h=`${t}-notice`,C=new g.Keyframes("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:m,transform:"translateY(0)",opacity:1}}),O=new g.Keyframes("MessageMoveOut",{"0%":{maxHeight:e.height,padding:m,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:m,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:d,fontSize:s},[`${h}-content`]:{display:"inline-block",padding:E,background:y,borderRadius:v,boxShadow:o,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:c},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},
      ${t}-loading > ${n}`]:{color:i}};return[{[t]:Object.assign(Object.assign({},(0,N.Wf)(e)),{color:r,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:p,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
        ${t}-move-up-appear,
        ${t}-move-up-enter
      `]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`
        ${t}-move-up-appear${t}-move-up-appear-active,
        ${t}-move-up-enter${t}-move-up-enter-active
      `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:O,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${h}-wrapper`]:Object.assign({},S)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},S),{padding:0,textAlign:"start"})}]};var S=(0,h.I$)("Message",e=>{let t=(0,C.TS)(e,{height:150});return[O(t)]},e=>({zIndexPopup:e.zIndexPopupBase+y.u6+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})),M=n(72690),b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)0>t.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let R={info:r.createElement(d.Z,null),success:r.createElement(s.Z,null),error:r.createElement(u.Z,null),warning:r.createElement(f.Z,null),loading:r.createElement(m.Z,null)},x=e=>{let{prefixCls:t,type:n,icon:o,children:a}=e;return r.createElement("div",{className:p()(`${t}-custom-content`,`${t}-${n}`)},o||R[n],r.createElement("span",null,a))};var I=n(73297),P=n(33779);function Z(e){let t;let n=new Promise(n=>{t=e(()=>{n(!0)})}),o=()=>{null==t||t()};return o.then=(e,t)=>n.then(e,t),o.promise=n,o}var _=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)0>t.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let A=e=>{let{children:t,prefixCls:n}=e,o=(0,M.Z)(n),[a,c,l]=S(n,o);return a(r.createElement(E.NotificationProvider,{classNames:{list:p()(c,l,o)}},t))},k=(e,t)=>{let{prefixCls:n,key:o}=t;return r.createElement(A,{prefixCls:n,key:o},e)},T=r.forwardRef((e,t)=>{let{top:n,prefixCls:o,getContainer:a,maxCount:c,duration:i=3,rtl:s,transitionName:u,onAllRemoved:f}=e,{getPrefixCls:d,getPopupContainer:m,message:v,direction:g}=r.useContext(l.E_),y=o||d("message"),N=r.createElement("span",{className:`${y}-close-x`},r.createElement(I.Z,{className:`${y}-close-icon`})),[h,C]=(0,E.useNotification)({prefixCls:y,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>p()({[`${y}-rtl`]:null!=s?s:"rtl"===g}),motion:()=>({motionName:null!=u?u:`${y}-move-up`}),closable:!1,closeIcon:N,duration:i,getContainer:()=>(null==a?void 0:a())||(null==m?void 0:m())||document.body,maxCount:c,onAllRemoved:f,renderNotifications:k});return r.useImperativeHandle(t,()=>Object.assign(Object.assign({},h),{prefixCls:y,message:v})),C}),U=0;function L(e){let t=r.useRef(null);(0,P.ln)("Message");let n=r.useMemo(()=>{let e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:o,prefixCls:a,message:c}=t.current,l=`${a}-notice`,{content:i,icon:s,type:u,key:f,className:d,style:m,onClose:v}=n,E=_(n,["content","icon","type","key","className","style","onClose"]),g=f;return null==g&&(U+=1,g=`antd-message-${U}`),Z(t=>(o(Object.assign(Object.assign({},E),{key:g,content:r.createElement(x,{prefixCls:a,type:u,icon:s},i),placement:"top",className:p()(u&&`${l}-${u}`,d,null==c?void 0:c.className),style:Object.assign(Object.assign({},null==c?void 0:c.style),m),onClose:()=>{null==v||v(),t()}})),()=>{e(g)}))},o={open:n,destroy:n=>{var o;void 0!==n?e(n):null===(o=t.current)||void 0===o||o.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{o[e]=(t,o,r)=>{let a,c;"function"==typeof o?c=o:(a=o,c=r);let l=Object.assign(Object.assign({onClose:c,duration:a},t&&"object"==typeof t&&"content"in t?t:{content:t}),{type:e});return n(l)}}),o},[]);return[n,r.createElement(T,Object.assign({key:"message-holder"},e,{ref:t}))]}let w=null,$=e=>e(),j=[],F={};function H(){let{getContainer:e,duration:t,rtl:n,maxCount:o,top:r}=F,a=(null==e?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:o,top:r}}let K=r.forwardRef((e,t)=>{let{messageConfig:n,sync:o}=e,{getPrefixCls:a}=(0,r.useContext)(l.E_),i=F.prefixCls||a("message"),s=(0,r.useContext)(c),[u,f]=L(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),s.message));return r.useImperativeHandle(t,()=>{let e=Object.assign({},u);return Object.keys(e).forEach(t=>{e[t]=function(){return o(),u[t].apply(u,arguments)}}),{instance:e,sync:o}}),f}),D=r.forwardRef((e,t)=>{let[n,o]=r.useState(H),a=()=>{o(H)};r.useEffect(a,[]);let c=(0,i.globalConfig)(),l=c.getRootPrefixCls(),s=c.getIconPrefixCls(),u=c.getTheme(),f=r.createElement(K,{ref:t,sync:a,messageConfig:n});return r.createElement(i.default,{prefixCls:l,iconPrefixCls:s,theme:u},c.holderRender?c.holderRender(f):f)});function B(){if(!w){let e=document.createDocumentFragment(),t={fragment:e};w=t,$(()=>{(0,a.s)(r.createElement(D,{ref:e=>{let{instance:n,sync:o}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=o,B())})}}),e)});return}w.instance&&(j.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case"open":$(()=>{let t=w.instance.open(Object.assign(Object.assign({},F),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":$(()=>{null==w||w.instance.destroy(e.key)});break;default:$(()=>{var n;let r=(n=w.instance)[t].apply(n,(0,o.Z)(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)})}}),j=[])}let W={open:function(e){let t=Z(t=>{let n;let o={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return j.push(o),()=>{n?$(()=>{n()}):o.skipped=!0}});return B(),t},destroy:function(e){j.push({type:"destroy",key:e}),B()},config:function(e){F=Object.assign(Object.assign({},F),e),$(()=>{var e;null===(e=null==w?void 0:w.sync)||void 0===e||e.call(w)})},useMessage:function(e){return L(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{let{prefixCls:t,className:n,type:o,icon:a,content:c}=e,i=b(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=r.useContext(l.E_),u=t||s("message"),f=(0,M.Z)(u),[d,m,v]=S(u,f);return d(r.createElement(E.Notice,Object.assign({},i,{prefixCls:u,className:p()(n,m,`${u}-notice-pure-panel`,v,f),eventKey:"pure",duration:null,content:r.createElement(x,{prefixCls:u,type:o,icon:a},c)})))}};["success","info","warning","error","loading"].forEach(e=>{W[e]=function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return function(e,t){(0,i.globalConfig)();let n=Z(n=>{let o;let r={type:e,args:t,resolve:n,setCloseFn:e=>{o=e}};return j.push(r),()=>{o?$(()=>{o()}):r.skipped=!0}});return B(),n}(e,n)}});var z=W},14807:function(e,t,n){n.r(t),n.d(t,{Notice:function(){return p},NotificationProvider:function(){return g},useNotification:function(){return R}});var o=n(16141),r=n(98961),a=n(12258),c=n(2265),l=n(10870),i=n(54887),s=n(13428),u=n(21076),f=n(42744),d=n.n(f),m=n(52640),v=n(89017),p=c.forwardRef(function(e,t){var n=e.prefixCls,o=e.style,a=e.className,l=e.duration,i=void 0===l?4.5:l,f=e.eventKey,m=e.content,p=e.closable,E=e.closeIcon,g=e.props,y=e.onClick,N=e.onNoticeClose,h=e.times,C=e.hovering,O=c.useState(!1),S=(0,r.Z)(O,2),M=S[0],b=S[1],R=C||M,x=function(){N(f)};c.useEffect(function(){if(!R&&i>0){var e=setTimeout(function(){x()},1e3*i);return function(){clearTimeout(e)}}},[i,R,h]);var I="".concat(n,"-notice");return c.createElement("div",(0,s.Z)({},g,{ref:t,className:d()(I,a,(0,u.Z)({},"".concat(I,"-closable"),p)),style:o,onMouseEnter:function(e){var t;b(!0),null==g||null===(t=g.onMouseEnter)||void 0===t||t.call(g,e)},onMouseLeave:function(e){var t;b(!1),null==g||null===(t=g.onMouseLeave)||void 0===t||t.call(g,e)},onClick:y}),c.createElement("div",{className:"".concat(I,"-content")},m),p&&c.createElement("a",{tabIndex:0,className:"".concat(I,"-close"),onKeyDown:function(e){("Enter"===e.key||"Enter"===e.code||e.keyCode===v.Z.ENTER)&&x()},onClick:function(e){e.preventDefault(),e.stopPropagation(),x()}},void 0===E?"x":E))}),E=c.createContext({}),g=function(e){var t=e.children,n=e.classNames;return c.createElement(E.Provider,{value:{classNames:n}},t)},y=n(60075),N=function(e){var t,n,o,r={offset:8,threshold:3,gap:16};return e&&"object"===(0,y.Z)(e)&&(r.offset=null!==(t=e.offset)&&void 0!==t?t:8,r.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,r.gap=null!==(o=e.gap)&&void 0!==o?o:16),[!!e,r]},h=["className","style","classNames","styles"],C=function(e){var t,n=e.configList,i=e.placement,f=e.prefixCls,v=e.className,g=e.style,y=e.motion,C=e.onAllNoticeRemoved,O=e.onNoticeClose,S=e.stack,M=(0,c.useContext)(E).classNames,b=(0,c.useRef)({}),R=(0,c.useState)(null),x=(0,r.Z)(R,2),I=x[0],P=x[1],Z=(0,c.useState)([]),_=(0,r.Z)(Z,2),A=_[0],k=_[1],T=n.map(function(e){return{config:e,key:String(e.key)}}),U=N(S),L=(0,r.Z)(U,2),w=L[0],$=L[1],j=$.offset,F=$.threshold,H=$.gap,K=w&&(A.length>0||T.length<=F),D="function"==typeof y?y(i):y;return(0,c.useEffect)(function(){w&&A.length>1&&k(function(e){return e.filter(function(e){return T.some(function(t){return e===t.key})})})},[A,T,w]),(0,c.useEffect)(function(){var e,t;w&&b.current[null===(e=T[T.length-1])||void 0===e?void 0:e.key]&&P(b.current[null===(t=T[T.length-1])||void 0===t?void 0:t.key])},[T,w]),c.createElement(m.CSSMotionList,(0,s.Z)({key:i,className:d()(f,"".concat(f,"-").concat(i),null==M?void 0:M.list,v,(t={},(0,u.Z)(t,"".concat(f,"-stack"),!!w),(0,u.Z)(t,"".concat(f,"-stack-expanded"),K),t)),style:g,keys:T,motionAppear:!0},D,{onAllRemoved:function(){C(i)}}),function(e,t){var n=e.config,r=e.className,u=e.style,m=e.index,v=n.key,E=n.times,g=String(v),y=n.className,N=n.style,C=n.classNames,S=n.styles,R=(0,a.Z)(n,h),x=T.findIndex(function(e){return e.key===g}),P={};if(w){var Z=T.length-1-(x>-1?x:m-1),_="top"===i||"bottom"===i?"-50%":"0";if(Z>0){P.height=K?null===(U=b.current[g])||void 0===U?void 0:U.offsetHeight:null==I?void 0:I.offsetHeight;for(var U,L,$,F,D=0,B=0;B<Z;B++)D+=(null===(F=b.current[T[T.length-1-B].key])||void 0===F?void 0:F.offsetHeight)+H;var W=(K?D:Z*j)*(i.startsWith("top")?1:-1),z=!K&&null!=I&&I.offsetWidth&&null!==(L=b.current[g])&&void 0!==L&&L.offsetWidth?((null==I?void 0:I.offsetWidth)-2*j*(Z<3?Z:3))/(null===($=b.current[g])||void 0===$?void 0:$.offsetWidth):1;P.transform="translate3d(".concat(_,", ").concat(W,"px, 0) scaleX(").concat(z,")")}else P.transform="translate3d(".concat(_,", 0, 0)")}return c.createElement("div",{ref:t,className:d()("".concat(f,"-notice-wrapper"),r,null==C?void 0:C.wrapper),style:(0,l.Z)((0,l.Z)((0,l.Z)({},u),P),null==S?void 0:S.wrapper),onMouseEnter:function(){return k(function(e){return e.includes(g)?e:[].concat((0,o.Z)(e),[g])})},onMouseLeave:function(){return k(function(e){return e.filter(function(e){return e!==g})})}},c.createElement(p,(0,s.Z)({},R,{ref:function(e){x>-1?b.current[g]=e:delete b.current[g]},prefixCls:f,classNames:C,styles:S,className:d()(y,null==M?void 0:M.notice),style:N,times:E,key:v,eventKey:v,onNoticeClose:O,hovering:w&&A.length>0})))})},O=c.forwardRef(function(e,t){var n=e.prefixCls,a=void 0===n?"rc-notification":n,s=e.container,u=e.motion,f=e.maxCount,d=e.className,m=e.style,v=e.onAllRemoved,p=e.stack,E=e.renderNotifications,g=c.useState([]),y=(0,r.Z)(g,2),N=y[0],h=y[1],O=function(e){var t,n=N.find(function(t){return t.key===e});null==n||null===(t=n.onClose)||void 0===t||t.call(n),h(function(t){return t.filter(function(t){return t.key!==e})})};c.useImperativeHandle(t,function(){return{open:function(e){h(function(t){var n,r=(0,o.Z)(t),a=r.findIndex(function(t){return t.key===e.key}),c=(0,l.Z)({},e);return a>=0?(c.times=((null===(n=t[a])||void 0===n?void 0:n.times)||0)+1,r[a]=c):(c.times=0,r.push(c)),f>0&&r.length>f&&(r=r.slice(-f)),r})},close:function(e){O(e)},destroy:function(){h([])}}});var S=c.useState({}),M=(0,r.Z)(S,2),b=M[0],R=M[1];c.useEffect(function(){var e={};N.forEach(function(t){var n=t.placement,o=void 0===n?"topRight":n;o&&(e[o]=e[o]||[],e[o].push(t))}),Object.keys(b).forEach(function(t){e[t]=e[t]||[]}),R(e)},[N]);var x=function(e){R(function(t){var n=(0,l.Z)({},t);return(n[e]||[]).length||delete n[e],n})},I=c.useRef(!1);if(c.useEffect(function(){Object.keys(b).length>0?I.current=!0:I.current&&(null==v||v(),I.current=!1)},[b]),!s)return null;var P=Object.keys(b);return(0,i.createPortal)(c.createElement(c.Fragment,null,P.map(function(e){var t=b[e],n=c.createElement(C,{key:e,configList:t,placement:e,prefixCls:a,className:null==d?void 0:d(e),style:null==m?void 0:m(e),motion:u,onNoticeClose:O,onAllNoticeRemoved:x,stack:p});return E?E(n,{prefixCls:a,key:e}):n})),s)}),S=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],M=function(){return document.body},b=0;function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?M:t,l=e.motion,i=e.prefixCls,s=e.maxCount,u=e.className,f=e.style,d=e.onAllRemoved,m=e.stack,v=e.renderNotifications,p=(0,a.Z)(e,S),E=c.useState(),g=(0,r.Z)(E,2),y=g[0],N=g[1],h=c.useRef(),C=c.createElement(O,{container:y,ref:h,prefixCls:i,motion:l,maxCount:s,className:u,style:f,onAllRemoved:d,stack:m,renderNotifications:v}),R=c.useState([]),x=(0,r.Z)(R,2),I=x[0],P=x[1],Z=c.useMemo(function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.forEach(function(t){t&&Object.keys(t).forEach(function(n){var o=t[n];void 0!==o&&(e[n]=o)})}),e}(p,e);(null===t.key||void 0===t.key)&&(t.key="rc-notification-".concat(b),b+=1),P(function(e){return[].concat((0,o.Z)(e),[{type:"open",config:t}])})},close:function(e){P(function(t){return[].concat((0,o.Z)(t),[{type:"close",key:e}])})},destroy:function(){P(function(e){return[].concat((0,o.Z)(e),[{type:"destroy"}])})}}},[]);return c.useEffect(function(){N(n())}),c.useEffect(function(){h.current&&I.length&&(I.forEach(function(e){switch(e.type){case"open":h.current.open(e.config);break;case"close":h.current.close(e.key);break;case"destroy":h.current.destroy()}}),P(function(e){return e.filter(function(e){return!I.includes(e)})}))},[I]),[Z,C]}},89017:function(e,t){var n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE||e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY||e>=n.A&&e<=n.Z||-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.Z=n}}]);