text: (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4492],{34492:function(be,A,f){"use strict";f.r(A),f.d(A,{default:function(){return me}});var C=f(22122),S=f(28481),i=f(67294),B=f.t(i,2),k=f(2016),d=f(28991),g=f(94184),h=f.n(g),O=f(15105);function Z(){var t=(0,d.Z)({},B);return t.useId}var te=0;function T(){}function fe(t){var l=i.useState("ssr-id"),r=(0,S.Z)(l,2),n=r[0],a=r[1],e=Z(),o=e==null?void 0:e();return i.useEffect(function(){if(!e){var c=te;te+=1,a("rc_unique_".concat(c))}},[]),t||o||n}var H=f(94999),ne=f(64217),j=f(63441);function y(t){var l=t.prefixCls,r=t.style,n=t.visible,a=t.maskProps,e=t.motionName;return i.createElement(j.default,{key:"mask",visible:n,motionName:e,leavedClassName:"".concat(l,"-mask-hidden")},function(o){var c=o.className,v=o.style;return i.createElement("div",(0,C.Z)({style:(0,d.Z)((0,d.Z)({},v),r),className:h()("".concat(l,"-mask"),c)},a))})}function K(t,l,r){var n=l;return!n&&r&&(n="".concat(t,"-").concat(r)),n}function U(t,l){var r=t["page".concat(l?"Y":"X","Offset")],n="scroll".concat(l?"Top":"Left");if(typeof r!="number"){var a=t.document;r=a.documentElement[n],typeof r!="number"&&(r=a.body[n])}return r}function de(t){var l=t.getBoundingClientRect(),r={left:l.left,top:l.top},n=t.ownerDocument,a=n.defaultView||n.parentWindow;return r.left+=U(a),r.top+=U(a,!0),r}var X=i.memo(function(t){var l=t.children;return l},function(t,l){var r=l.shouldUpdate;return!r}),oe={width:0,height:0,overflow:"hidden",outline:"none"},p=i.forwardRef(function(t,l){var r=t.closable,n=t.prefixCls,a=t.width,e=t.height,o=t.footer,c=t.title,v=t.closeIcon,u=t.style,s=t.className,m=t.visible,b=t.forceRender,V=t.bodyStyle,he=t.bodyProps,Y=t.children,F=t.destroyOnClose,re=t.modalRender,ge=t.motionName,ae=t.ariaId,Ce=t.onClose,ie=t.onVisibleChanged,le=t.onMouseDown,ye=t.onMouseUp,G=t.mousePosition,W=(0,i.useRef)(),J=(0,i.useRef)(),ce=(0,i.useRef)();i.useImperativeHandle(l,function(){return{focus:function(){var N;(N=W.current)===null||N===void 0||N.focus()},changeActive:function(N){var x=document,I=x.activeElement;N&&I===J.current?W.current.focus():!N&&I===W.current&&J.current.focus()}}});var pe=i.useState(),se=(0,S.Z)(pe,2),D=se[0],Q=se[1],$={};a!==void 0&&($.width=a),e!==void 0&&($.height=e),D&&($.transformOrigin=D);function ue(){var R=de(ce.current);Q(G?"".concat(G.x-R.left,"px ").concat(G.y-R.top,"px"):"")}var q;o&&(q=i.createElement("div",{className:"".concat(n,"-footer")},o));var M;c&&(M=i.createElement("div",{className:"".concat(n,"-header")},i.createElement("div",{className:"".concat(n,"-title"),id:ae},c)));var _;r&&(_=i.createElement("button",{type:"button",onClick:Ce,"aria-label":"Close",className:"".concat(n,"-close")},v||i.createElement("span",{className:"".concat(n,"-close-x")})));var ee=i.createElement("div",{className:"".concat(n,"-content")},_,M,i.createElement("div",(0,C.Z)({className:"".concat(n,"-body"),style:V},he),Y),q);return i.createElement(j.default,{visible:m,onVisibleChanged:ie,onAppearPrepare:ue,onEnterPrepare:ue,forceRender:b,motionName:ge,removeOnLeave:F,ref:ce},function(R,N){var x=R.className,I=R.style;return i.createElement("div",{key:"dialog-element",role:"dialog","aria-modal":"true",ref:N,style:(0,d.Z)((0,d.Z)((0,d.Z)({},I),u),$),className:h()(n,s,x),onMouseDown:le,onMouseUp:ye},i.createElement("div",{tabIndex:0,ref:W,style:oe,"aria-hidden":"true"}),i.createElement(X,{shouldUpdate:m||b},re?re(ee):ee),i.createElement("div",{tabIndex:0,ref:J,style:oe,"aria-hidden":"true"}))})});p.displayName="Content";var P=p;function ve(t){var l=t.prefixCls,r=l===void 0?"rc-dialog":l,n=t.zIndex,a=t.visible,e=a===void 0?!1:a,o=t.keyboard,c=o===void 0?!0:o,v=t.focusTriggerAfterClose,u=v===void 0?!0:v,s=t.scrollLocker,m=t.title,b=t.wrapStyle,V=t.wrapClassName,he=t.wrapProps,Y=t.onClose,F=t.afterClose,re=t.transitionName,ge=t.animation,ae=t.closable,Ce=ae===void 0?!0:ae,ie=t.mask,le=ie===void 0?!0:ie,ye=t.maskTransitionName,G=t.maskAnimation,W=t.maskClosable,J=W===void 0?!0:W,ce=t.maskStyle,pe=t.maskProps,se=t.rootClassName,D=(0,i.useRef)(),Q=(0,i.useRef)(),$=(0,i.useRef)(),ue=i.useState(e),q=(0,S.Z)(ue,2),M=q[0],_=q[1],ee=fe();function R(E){if(E){if(!(0,H.Z)(Q.current,document.activeElement)){var z;D.current=document.activeElement,(z=$.current)===null||z===void 0||z.focus()}}else{if(_(!1),le&&D.current&&u){try{D.current.focus({preventScroll:!0})}catch(Re){}D.current=null}M&&(F==null||F())}}function N(E){Y==null||Y(E)}var x=(0,i.useRef)(!1),I=(0,i.useRef)(),Ee=function(){clearTimeout(I.current),x.current=!0},ke=function(){I.current=setTimeout(function(){x.current=!1})},Ne=null;J&&(Ne=function(z){x.current?x.current=!1:Q.current===z.target&&N(z)});function Se(E){if(c&&E.keyCode===O.Z.ESC){E.stopPropagation(),N(E);return}e&&E.keyCode===O.Z.TAB&&$.current.changeActive(!E.shiftKey)}return(0,i.useEffect)(function(){return e&&_(!0),function(){}},[e]),(0,i.useEffect)(function(){return function(){clearTimeout(I.current)}},[]),(0,i.useEffect)(function(){return M?(s==null||s.lock(),s==null?void 0:s.unLock):function(){}},[M,s]),i.createElement("div",(0,C.Z)({className:h()("".concat(r,"-root"),se)},(0,ne.Z)(t,{data:!0})),i.createElement(y,{prefixCls:r,visible:le&&e,motionName:K(r,ye,G),style:(0,d.Z)({zIndex:n},ce),maskProps:pe}),i.createElement("div",(0,C.Z)({tabIndex:-1,onKeyDown:Se,className:h()("".concat(r,"-wrap"),V),ref:Q,onClick:Ne,"aria-labelledby":m?ee:null,style:(0,d.Z)((0,d.Z)({zIndex:n},b),{},{display:M?null:"none"})},he),i.createElement(P,(0,C.Z)({},t,{onMouseDown:Ee,onMouseUp:ke,ref:$,closable:Ce,ariaId:ee,prefixCls:r,visible:e,onClose:N,onVisibleChanged:R,motionName:K(r,re,ge)}))))}var L=function(l){var r=l.visible,n=l.getContainer,a=l.forceRender,e=l.destroyOnClose,o=e===void 0?!1:e,c=l.afterClose,v=i.useState(r),u=(0,S.Z)(v,2),s=u[0],m=u[1];return i.useEffect(function(){r&&m(!0)},[r]),n===!1?i.createElement(ve,(0,C.Z)({},l,{getOpenCount:function(){return 2}})):!a&&o&&!s?null:i.createElement(k.Z,{visible:r,forceRender:a,getContainer:n},function(b){return i.createElement(ve,(0,C.Z)({},l,{destroyOnClose:o,afterClose:function(){c==null||c(),m(!1)}},b))})};L.displayName="Dialog";var w=L,me=w},2016:function(be,A,f){"use strict";f.d(A,{Z:function(){return t}});var C=f(6610),S=f(5991),i=f(10379),B=f(44144),k=f(90484),d=f(67294),g=f(75164),h=f(59015),O=f(98924),Z=f(74204);function te(l){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!l)return{};var n=r.element,a=n===void 0?document.body:n,e={},o=Object.keys(l);return o.forEach(function(c){e[c]=a.style[c]}),o.forEach(function(c){a.style[c]=l[c]}),e}var T=te;function fe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var H={},ne=function(l){if(!(!fe()&&!l)){var r="ant-scrolling-effect",n=new RegExp("".concat(r),"g"),a=document.body.className;if(l){if(!n.test(a))return;T(H),H={},document.body.className=a.replace(n,"").trim();return}var e=(0,Z.Z)();if(e&&(H=T({position:"relative",width:"calc(100% - ".concat(e,"px)")}),!n.test(a))){var o="".concat(a," ").concat(r);document.body.className=o.trim()}}},j=f(85061),y=[],K="ant-scrolling-effect",U=new RegExp("".concat(K),"g"),de=0,X=new Map,oe=(0,S.Z)(function l(r){var n=this;(0,C.Z)(this,l),this.lockTarget=void 0,this.options=void 0,this.getContainer=function(){var a;return(a=n.options)===null||a===void 0?void 0:a.container},this.reLock=function(a){var e=y.find(function(o){var c=o.target;return c===n.lockTarget});e&&n.unLock(),n.options=a,e&&(e.options=a,n.lock())},this.lock=function(){var a;if(!y.some(function(u){var s=u.target;return s===n.lockTarget})){if(y.some(function(u){var s,m=u.options;return(m==null?void 0:m.container)===((s=n.options)===null||s===void 0?void 0:s.container)})){y=[].concat((0,j.Z)(y),[{target:n.lockTarget,options:n.options}]);return}var e=0,o=((a=n.options)===null||a===void 0?void 0:a.container)||document.body;(o===document.body&&window.innerWidth-document.documentElement.clientWidth>0||o.scrollHeight>o.clientHeight)&&(e=(0,Z.Z)());var c=o.className;if(y.filter(function(u){var s,m=u.options;return(m==null?void 0:m.container)===((s=n.options)===null||s===void 0?void 0:s.container)}).length===0&&X.set(o,T({width:e!==0?"calc(100% - ".concat(e,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:o})),!U.test(c)){var v="".concat(c," ").concat(K);o.className=v.trim()}y=[].concat((0,j.Z)(y),[{target:n.lockTarget,options:n.options}])}},this.unLock=function(){var a,e=y.find(function(v){var u=v.target;return u===n.lockTarget});if(y=y.filter(function(v){var u=v.target;return u!==n.lockTarget}),!(!e||y.some(function(v){var u,s=v.options;return(s==null?void 0:s.container)===((u=e.options)===null||u===void 0?void 0:u.container)}))){var o=((a=n.options)===null||a===void 0?void 0:a.container)||document.body,c=o.className;!U.test(c)||(T(X.get(o),{element:o}),X.delete(o),o.className=o.className.replace(U,"").trim())}},this.lockTarget=de++,this.options=r}),p=0,P=(0,O.Z)();function ve(){return 0}var L={},w=function(r){if(!P)return null;if(r){if(typeof r=="string")return document.querySelectorAll(r)[0];if(typeof r=="function")return r();if((0,k.Z)(r)==="object"&&r instanceof window.HTMLElement)return r}return document.body},me=function(l){(0,i.Z)(n,l);var r=(0,B.Z)(n);function n(a){var e;return(0,C.Z)(this,n),e=r.call(this,a),e.container=void 0,e.componentRef=d.createRef(),e.rafId=void 0,e.scrollLocker=void 0,e.renderComponent=void 0,e.updateScrollLocker=function(o){var c=o||{},v=c.visible,u=e.props,s=u.getContainer,m=u.visible;m&&m!==v&&P&&w(s)!==e.scrollLocker.getContainer()&&e.scrollLocker.reLock({container:w(s)})},e.updateOpenCount=function(o){var c=o||{},v=c.visible,u=c.getContainer,s=e.props,m=s.visible,b=s.getContainer;m!==v&&P&&w(b)===document.body&&(m&&!v?p+=1:o&&(p-=1));var V=typeof b=="function"&&typeof u=="function";(V?b.toString()!==u.toString():b!==u)&&e.removeCurrentContainer()},e.attachToParent=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(o||e.container&&!e.container.parentNode){var c=w(e.props.getContainer);return c?(c.appendChild(e.container),!0):!1}return!0},e.getContainer=function(){return P?(e.container||(e.container=document.createElement("div"),e.attachToParent(!0)),e.setWrapperClassName(),e.container):null},e.setWrapperClassName=function(){var o=e.props.wrapperClassName;e.container&&o&&o!==e.container.className&&(e.container.className=o)},e.removeCurrentContainer=function(){var o,c;(o=e.container)===null||o===void 0||(c=o.parentNode)===null||c===void 0||c.removeChild(e.container)},e.switchScrollingEffect=function(){p===1&&!Object.keys(L).length?(ne(),L=T({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):p||(T(L),L={},ne(!0))},e.scrollLocker=new oe({container:w(a.getContainer)}),e}return(0,S.Z)(n,[{key:"componentDidMount",value:function(){var e=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=(0,g.Z)(function(){e.forceUpdate()}))}},{key:"componentDidUpdate",value:function(e){this.updateOpenCount(e),this.updateScrollLocker(e),this.setWrapperClassName(),this.attachToParent()}},{key:"componentWillUnmount",value:function(){var e=this.props,o=e.visible,c=e.getContainer;P&&w(c)===document.body&&(p=o&&p?p-1:p),this.removeCurrentContainer(),g.Z.cancel(this.rafId)}},{key:"render",value:function(){var e=this.props,o=e.children,c=e.forceRender,v=e.visible,u=null,s={getOpenCount:function(){return p},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(c||v||this.componentRef.current)&&(u=d.createElement(h.Z,{getContainer:this.getContainer,ref:this.componentRef},o(s))),u}}]),n}(d.Component),t=me},74204:function(be,A,f){"use strict";f.d(A,{Z:function(){return S},o:function(){return B}});var C;function S(k){if(typeof document=="undefined")return 0;if(k||C===void 0){var d=document.createElement("div");d.style.width="100%",d.style.height="200px";var g=document.createElement("div"),h=g.style;h.position="absolute",h.top="0",h.left="0",h.pointerEvents="none",h.visibility="hidden",h.width="200px",h.height="150px",h.overflow="hidden",g.appendChild(d),document.body.appendChild(g);var O=d.offsetWidth;g.style.overflow="scroll";var Z=d.offsetWidth;O===Z&&(Z=g.clientWidth),document.body.removeChild(g),C=O-Z}return C}function i(k){var d=k.match(/^(.*)px$/),g=Number(d==null?void 0:d[1]);return Number.isNaN(g)?S():g}function B(k){if(typeof document=="undefined"||!k||!(k instanceof Element))return{width:0,height:0};var d=getComputedStyle(k,"::-webkit-scrollbar"),g=d.width,h=d.height;return{width:i(g),height:i(h)}}}}]);
  