1"use strict";(self.webpackChunkmy_webpack_project=self.webpackChunkmy_webpack_project||[]).push([[3294],{88303(e,n,t){const o=t(39471).createContext({});t.d(n,["B",0,o])},2628(e,n,t){t.d(n,{$T:()=>h,ph:()=>A,hN:()=>R});var o=t(71555),c=t(96046),r=t(30462),a=t(39471),i=t(12888),s=t(19834),l=t(82195),u=t(53718),f=t(87073),v=t.n(f),d=t(39105),m=t(60901),y=t(83282),p=t(5832);const h=a.forwardRef(function(e,n){var t=e.prefixCls,o=e.style,r=e.className,i=e.duration,s=void 0===i?4.5:i,f=e.showProgress,d=e.pauseOnHover,h=void 0===d||d,k=e.eventKey,A=e.content,g=e.closable,N=e.closeIcon,E=void 0===N?"x":N,C=e.props,x=e.onClick,b=e.onNoticeClose,w=e.times,R=e.hovering,S=a.useState(!1),M=(0,c.A)(S,2),j=M[0],I=M[1],F=a.useState(0),H=(0,c.A)(F,2),L=H[0],O=H[1],W=a.useState(0),_=(0,c.A)(W,2),D=_[0],P=_[1],T=R||j,K=s>0&&f,q=function(){b(k)};a.useEffect(function(){if(!T&&s>0){var e=Date.now()-D,n=setTimeout(function(){q()},1e3*s-D);return function(){h&&clearTimeout(n),P(Date.now()-e)}}},[s,T,w]),a.useEffect(function(){if(!T&&K&&(h||0===D)){var e,n=performance.now();return function t(){cancelAnimationFrame(e),e=requestAnimationFrame(function(e){var o=e+D-n,c=Math.min(o/(1e3*s),1);O(100*c),c<1&&t()})}(),function(){h&&cancelAnimationFrame(e)}}},[s,D,T,K,w]);var B=a.useMemo(function(){return"object"===(0,m.A)(g)&&null!==g?g:g?{closeIcon:E}:{}},[g,E]),X=(0,p.A)(B,!0),$=100-(!L||L<0?0:L>100?100:L),z="".concat(t,"-notice");return a.createElement("div",(0,l.A)({},C,{ref:n,className:v()(z,r,(0,u.A)({},"".concat(z,"-closable"),g)),style:o,onMouseEnter:function(e){var n;I(!0),null==C||null===(n=C.onMouseEnter)||void 0===n||n.call(C,e)},onMouseLeave:function(e){var n;I(!1),null==C||null===(n=C.onMouseLeave)||void 0===n||n.call(C,e)},onClick:x}),a.createElement("div",{className:"".concat(z,"-content")},A),g&&a.createElement("a",(0,l.A)({tabIndex:0,className:"".concat(z,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==y.A.ENTER||q()},"aria-label":"Close"},X,{onClick:function(e){e.preventDefault(),e.stopPropagation(),q()}}),B.closeIcon),K&&a.createElement("progress",{className:"".concat(z,"-progress"),max:"100",value:$},$+"%"))});var k=a.createContext({});const A=function(e){var n=e.children,t=e.classNames;return a.createElement(k.Provider,{value:{classNames:t}},n)};var g=["className","style","classNames","styles"];const N=function(e){var n,t,s,f,y,p=e.configList,A=e.placement,N=e.prefixCls,E=e.className,C=e.style,x=e.motion,b=e.onAllNoticeRemoved,w=e.onNoticeClose,R=e.stack,S=(0,a.useContext)(k).classNames,M=(0,a.useRef)({}),j=(0,a.useState)(null),I=(0,c.A)(j,2),F=I[0],H=I[1],L=(0,a.useState)([]),O=(0,c.A)(L,2),W=O[0],_=O[1],D=p.map(function(e){return{config:e,key:String(e.key)}}),P=(y={offset:8,threshold:3,gap:16},(n=R)&&"object"===(0,m.A)(n)&&(y.offset=null!==(t=n.offset)&&void 0!==t?t:8,y.threshold=null!==(s=n.threshold)&&void 0!==s?s:3,y.gap=null!==(f=n.gap)&&void 0!==f?f:16),[!!n,y]),T=(0,c.A)(P,2),K=T[0],q=T[1],B=q.offset,X=q.threshold,$=q.gap,z=K&&(W.length>0||D.length<=X),G="function"==typeof x?x(A):x;return(0,a.useEffect)(function(){K&&W.length>1&&_(function(e){return e.filter(function(e){return D.some(function(n){var t=n.key;return e===t})})})},[W,D,K]),(0,a.useEffect)(function(){var e,n;K&&M.current[null===(e=D[D.length-1])||void 0===e?void 0:e.key]&&H(M.current[null===(n=D[D.length-1])||void 0===n?void 0:n.key])},[D,K]),a.createElement(d.aF,(0,l.A)({key:A,className:v()(N,"".concat(N,"-").concat(A),null==S?void 0:S.list,E,(0,u.A)((0,u.A)({},"".concat(N,"-stack"),!!K),"".concat(N,"-stack-expanded"),z)),style:C,keys:D,motionAppear:!0},G,{onAllRemoved:function(){b(A)}}),function(e,n){var t=e.config,c=e.className,s=e.style,u=e.index,f=t,d=f.key,m=f.times,y=String(d),p=t,k=p.className,E=p.style,C=p.classNames,x=p.styles,b=(0,r.A)(p,g),R=D.findIndex(function(e){return e.key===y}),j={};if(K){var I=D.length-1-(R>-1?R:u-1),H="top"===A||"bottom"===A?"-50%":"0";if(I>0){var L,O,P;j.height=z?null===(L=M.current[y])||void 0===L?void 0:L.offsetHeight:null==F?void 0:F.offsetHeight;for(var T=0,q=0;q<I;q++){var X;T+=(null===(X=M.current[D[D.length-1-q].key])||void 0===X?void 0:X.offsetHeight)+$}var G=(z?T:I*B)*(A.startsWith("top")?1:-1),J=!z&&null!=F&&F.offsetWidth&&null!==(O=M.current[y])&&void 0!==O&&O.offsetWidth?((null==F?void 0:F.offsetWidth)-2*B*(I<3?I:3))/(null===(P=M.current[y])||void 0===P?void 0:P.offsetWidth):1;j.transform="translate3d(".concat(H,", ").concat(G,"px, 0) scaleX(").concat(J,")")}else j.transform="translate3d(".concat(H,", 0, 0)")}return a.createElement("div",{ref:n,className:v()("".concat(N,"-notice-wrapper"),c,null==C?void 0:C.wrapper),style:(0,i.A)((0,i.A)((0,i.A)({},s),j),null==x?void 0:x.wrapper),onMouseEnter:function(){return _(function(e){return e.includes(y)?e:[].concat((0,o.A)(e),[y])})},onMouseLeave:function(){return _(function(e){return e.filter(function(e){return e!==y})})}},a.createElement(h,(0,l.A)({},b,{ref:function(e){R>-1?M.current[y]=e:delete M.current[y]},prefixCls:N,classNames:C,styles:x,className:v()(k,null==S?void 0:S.notice),style:E,times:m,key:d,eventKey:d,onNoticeClose:w,hovering:K&&W.length>0})))})},E=a.forwardRef(function(e,n){var t=e.prefixCls,r=void 0===t?"rc-notification":t,l=e.container,u=e.motion,f=e.maxCount,v=e.className,d=e.style,m=e.onAllRemoved,y=e.stack,p=e.renderNotifications,h=a.useState([]),k=(0,c.A)(h,2),A=k[0],g=k[1],E=function(e){var n,t=A.find(function(n){return n.key===e});null==t||null===(n=t.onClose)||void 0===n||n.call(t),g(function(n){return n.filter(function(n){return n.key!==e})})};a.useImperativeHandle(n,function(){return{open:function(e){g(function(n){var t,c=(0,o.A)(n),r=c.findIndex(function(n){return n.key===e.key}),a=(0,i.A)({},e);return r>
1=0?(a.times=((null===(t=n[r])||void 0===t?void 0:t.times)||0)+1,c[r]=a):(a.times=0,c.push(a)),f>0&&c.length>f&&(c=c.slice(-f)),c})},close:function(e){E(e)},destroy:function(){g([])}}});var C=a.useState({}),x=(0,c.A)(C,2),b=x[0],w=x[1];a.useEffect(function(){var e={};A.forEach(function(n){var t=n.placement,o=void 0===t?"topRight":t;o&&(e[o]=e[o]||[],e[o].push(n))}),Object.keys(b).forEach(function(n){e[n]=e[n]||[]}),w(e)},[A]);var R=function(e){w(function(n){var t=(0,i.A)({},n);return(t[e]||[]).length||delete t[e],t})},S=a.useRef(!1);if(a.useEffect(function(){Object.keys(b).length>0?S.current=!0:S.current&&(null==m||m(),S.current=!1)},[b]),!l)return null;var M=Object.keys(b);return(0,s.createPortal)(a.createElement(a.Fragment,null,M.map(function(e){var n=b[e],t=a.createElement(N,{key:e,configList:n,placement:e,prefixCls:r,className:null==v?void 0:v(e),style:null==d?void 0:d(e),motion:u,onNoticeClose:E,onAllNoticeRemoved:R,stack:y});return p?p(t,{prefixCls:r,key:e}):t})),l)});var C=t(30863),x=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],b=function(){return document.body},w=0;function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getContainer,t=void 0===n?b:n,i=e.motion,s=e.prefixCls,l=e.maxCount,u=e.className,f=e.style,v=e.onAllRemoved,d=e.stack,m=e.renderNotifications,y=(0,r.A)(e,x),p=a.useState(),h=(0,c.A)(p,2),k=h[0],A=h[1],g=a.useRef(),N=a.createElement(E,{container:k,ref:g,prefixCls:s,motion:i,maxCount:l,className:u,style:f,onAllRemoved:v,stack:d,renderNotifications:m}),R=a.useState([]),S=(0,c.A)(R,2),M=S[0],j=S[1],I=(0,C._q)(function(e){var n=function(){for(var e={},n=arguments.length,t=new Array(n),o=0;o<n;o++)t[o]=arguments[o];return t.forEach(function(n){n&&Object.keys(n).forEach(function(t){var o=n[t];void 0!==o&&(e[t]=o)})}),e}(y,e);null!==n.key&&void 0!==n.key||(n.key="rc-notification-".concat(w),w+=1),j(function(e){return[].concat((0,o.A)(e),[{type:"open",config:n}])})}),F=a.useMemo(function(){return{open:I,close:function(e){j(function(n){return[].concat((0,o.A)(n),[{type:"close",key:e}])})},destroy:function(){j(function(e){return[].concat((0,o.A)(e),[{type:"destroy"}])})}}},[]);return a.useEffect(function(){A(t())}),a.useEffect(function(){var e,n;g.current&&M.length&&(M.forEach(function(e){switch(e.type){case"open":g.current.open(e.config);break;case"close":g.current.close(e.key);break;case"destroy":g.current.destroy()}}),j(function(t){return e===t&&n||(e=t,n=t.filter(function(e){return!M.includes(e)})),n}))},[M]),[F,N]}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.