|
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3212],{65030:function(e,t,n){n.d(t,{Z:function(){return G}});var r=n(33885),o=n(42978),i=n(75931),a=n(43403),u=n(92310),l=n.n(u),c=n(29301),s=n(76846),f=n(96452),d=n(6089),v=n(80402),p=n(34280),m=n(49658),h=n(59301),g=n(54476),b=n(77900),y=n(8654);function w(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,u=i.content,c=o.x,s=void 0===c?0:c,f=o.y,d=void 0===f?0:f,v=h.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],g=n.points[1],b=m[0],y=m[1],w=g[0],E=g[1];b!==w&&["t","b"].includes(b)?"t"===b?p.top=0:p.bottom=0:p.top=d,y!==E&&["l","r"].includes(y)?"l"===y?p.left=0:p.right=0:p.left=s}return h.createElement("div",{ref:v,className:l()("".concat(t,"-arrow"),a),style:p},u)}function E(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?h.createElement(b.default,(0,g.Z)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return h.createElement("div",{style:{zIndex:r},className:l()("".concat(t,"-mask"),n)})})):null}var Z=h.memo((function(e){return e.children}),(function(e,t){return t.cache}));var x=h.forwardRef((function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,u=e.style,s=e.target,f=e.onVisibleChanged,d=e.open,v=e.keepDom,m=e.fresh,x=e.onClick,C=e.mask,S=e.arrow,N=e.arrowPos,R=e.align,M=e.motion,k=e.maskMotion,_=e.forceRender,P=e.getPopupContainer,I=e.autoDestroy,A=e.portal,T=e.zIndex,D=e.onMouseEnter,z=e.onMouseLeave,O=e.onPointerEnter,L=e.onPointerDownCapture,V=e.ready,j=e.offsetX,H=e.offsetY,F=e.offsetR,W=e.offsetB,B=e.onAlign,K=e.onPrepare,Y=e.stretch,G=e.targetWidth,X=e.targetHeight,U="function"==typeof n?n():n,q=d||v,J=(null==P?void 0:P.length)>0,Q=h.useState(!P||!J),$=(0,o.Z)(Q,2),ee=$[0],te=$[1];if((0,p.Z)((function(){!ee&&J&&s&&te(!0)}),[ee,J,s]),!ee)return null;var ne="auto",re={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(V||!d){var oe,ie=R.points,ae=R.dynamicInset||(null===(oe=R._experimental)||void 0===oe?void 0:oe.dynamicInset),ue=ae&&"r"===ie[0][1],le=ae&&"b"===ie[0][0];ue?(re.right=F,re.left=ne):(re.left=j,re.right=ne),le?(re.bottom=W,re.top=ne):(re.top=H,re.bottom=ne)}var ce={};return Y&&(Y.includes("height")&&X?ce.height=X:Y.includes("minHeight")&&X&&(ce.minHeight=X),Y.includes("width")&&G?ce.width=G:Y.includes("minWidth")&&G&&(ce.minWidth=G)),d||(ce.pointerEvents="none"),h.createElement(A,{open:_||q,getContainer:P&&function(){return P(s)},autoDestroy:I},h.createElement(E,{prefixCls:a,open:d,zIndex:T,mask:C,motion:k}),h.createElement(c.Z,{onResize:B,disabled:!d},(function(e){return h.createElement(b.default,(0,g.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:_,leavedClassName:"".concat(a,"-hidden")},M,{onAppearPrepare:K,onEnterPrepare:K,visible:d,onVisibleChanged:function(e){var t;null==M||null===(t=M.onVisibleChanged)||void 0===t||t.call(M,e),f(e)}}),(function(n,o){var c=n.className,s=n.style,f=l()(a,c,i);return h.createElement("div",{ref:(0,y.sQ)(e,t,o),className:f,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(N.x||0,"px"),"--arrow-y":"".concat(N.y||0,"px")},re),ce),s),{},{boxSizing:"border-box",zIndex:T},u),onMouseEnter:D,onMouseLeave:z,onPointerEnter:O,onClick:x,onPointerDownCapture:L},S&&h.createElement(w,{prefixCls:a,arrow:S,arrowPos:N,align:R}),h.createElement(Z,{cache:!d&&!m},U))}))})))}));var C=h.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,y.Yr)(n),i=h.useCallback((function(e){(0,y.mH)(t,r?r(e):e)}),[r]),a=(0,y.x1)(i,(0,y.C4)(n));return o?h.cloneElement(n,{ref:a}):n})),S=h.createContext(null);function N(e){return e?Array.isArray(e)?e:[e]:[]}function R(e,t,n,r){return h.useMemo((function(){var o=N(null!=n?n:t),i=N(null!=r?r:t),a=new Set(o),u=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[a,u]}),[e,t,n,r])}var M=n(29194);function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function _(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var u,l=i[a];if(k(null===(u=e[l])||void 0===u?void 0:u.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}function P(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function I(e){return e.ownerDocument.defaultView}function A(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=I(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function D(e){return T(parseFloat(e),0)}function z(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=I(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,u=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),s=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,v=e.clientWidth,p=D(i),m=D(a),h=D(u),g=D(l),b=T(Math.round(c.width/d*1e3)/1e3),y=T(Math.round(c.height/s*1e3)/1e3),w=(d-v-h-g)*b,E=(s-f-p-m)*y,Z=p*y,x=m*y,C=h*b,S=g*b,N=0,R=0;if("clip"===r){var M=D(o);N=M*b,R=M*y}var k=c.x+C-N,_=c.y+Z-R,P=k+c.width+2*N-C-S-w,A=_+c.height+2*R-Z-x-E;n.left=Math.max(n.left,k),n.top=Math.max(n.top,_),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,A)}})),n}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function L(e,t){var n=t||[],r=(0,o.Z)(n,2),i=r[0],a=r[1];return[O(e.width,i),O(e.height,a)]}function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function j(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function H(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}function F(e,t,n,i,a,u,l){var c=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[i]||{}}),f=(0,o.Z)(c,2),v=f[0],m=f[1],g=h.useRef(0),b=h.useMemo((function(){return t?A(t):[]}),[t]),y=h.useRef({});e||(y.current={});var w=(0,d.Z)((function(){if(t&&n&&e){var c,f,d,v,p,h=t,g=h.ownerDocument,w=I(h),E=w.getComputedStyle(h).position,Z=h.style.left,x=h.style.top,C=h.style.right,S=h.style.bottom,N=h.style.overflow,R=(0,r.Z)((0,r.Z)({},a[i]),u),k=g.createElement("div");if(null===(c=h.parentElement)||void 0===c||c.appendChild(k),k.style.left="".concat(h.offsetLeft,"px"),k.style.top="".concat(h.offsetTop,"px"),k.style.position=E,k.style.height="".concat(h.offsetHeight,"px"),k.style.width="".concat(h.offsetWidth,"px"),h.style.left="0",h.style.top="0",h.style.right="auto",h.style.bottom="auto",h.style.overflow="hidden",Array.isArray(n))p={x:n[0],y:n[1],width:0,height:0};else{var _,P,A=n.getBoundingClientRect();A.x=null!==(_=A.x)&&void 0!==_?_:A.left,A.y=null!==(P=A.y)&&void 0!==P?P:A.top,p={x:A.x,y:A.y,width:A.width,height:A.height}}var D=h.getBoundingClientRect(),O=w.getComputedStyle(h),F=O.height,W=O.width;D.x=null!==(f=D.x)&&void 0!==f?f:D.left,D.y=null!==(d=D.y)&&void 0!==d?d:D.top;var B=g.documentElement,K=B.clientWidth,Y=B.clientHeight,G=B.scrollWidth,X=B.scrollHeight,U=B.scrollTop,q=B.scrollLeft,J=D.height,Q=D.width,$=p.height,ee=p.width,te={left:0,top:0,right:K,bottom:Y},ne={left:-q,top:-U,right:G-q,bottom:X-U},re=R.htmlRegion,oe="visible",ie="visibleFirst";"scroll"!==re&&re!==ie&&(re=oe);var ae=re===ie,ue=z(ne,b),le=z(te,b),ce=re===oe?le:ue,se=ae?le:ce;h.style.left="auto",h.style.top="auto",h.style.right="0",h.style.bottom="0";var fe=h.getBoundingClientRect();h.style.left=Z,h.style.top=x,h.style.right=C,h.style.bottom=S,h.style.overflow=N,null===(v=h.parentElement)||void 0===v||v.removeChild(k);var de=T(Math.round(Q/parseFloat(W)*1e3)/1e3),ve=T(Math.round(J/parseFloat(F)*1e3)/1e3);if(0===de||0===ve||(0,s.Sh)(n)&&!(0,M.Z)(n))return;var pe=R.offset,me=R.targetOffset,he=L(D,pe),ge=(0,o.Z)(he,2),be=ge[0],ye=ge[1],we=L(p,me),Ee=(0,o.Z)(we,2),Ze=Ee[0],xe=Ee[1];p.x-=Ze,p.y-=xe;var Ce=R.points||[],Se=(0,o.Z)(Ce,2),Ne=Se[0],Re=V(Se[1]),Me=V(Ne),ke=j(p,Re),_e=j(D,Me),Pe=(0,r.Z)({},R),Ie=ke.x-_e.x+be,Ae=ke.y-_e.y+ye;function Nt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ce,r=D.x+e,o=D.y+t,i=r+Q,a=o+J,u=Math.max(r,n.left),l=Math.max(o,n.top),c=Math.min(i,n.right),s=Math.min(a,n.bottom);return Math.max(0,(c-u)*(s-l))}var Te,De,ze,Oe,Le=Nt(Ie,Ae),Ve=Nt(Ie,Ae,le),je=j(p,["t","l"]),He=j(D,["t","l"]),Fe=j(p,["b","r"]),We=j(D,["b","r"]),Be=R.overflow||{},Ke=Be.adjustX,Ye=Be.adjustY,Ge=Be.shiftX,Xe=Be.shiftY,Ue=function(e){return"boolean"==typeof e?e:e>=0};function Rt(){Te=D.y+Ae,De=Te+J,ze=D.x+Ie,Oe=ze+Q}Rt();var qe=Ue(Ye),Je=Me[0]===Re[0];if(qe&&"t"===Me[0]&&(De>se.bottom||y.current.bt)){var Qe=Ae;Je?Qe-=J-$:Qe=je.y-We.y-ye;var $e=Nt(Ie,Qe),et=Nt(Ie,Qe,le);$e>Le||$e===Le&&(!ae||et>=Ve)?(y.current.bt=!0,Ae=Qe,ye=-ye,Pe.points=[H(Me,0),H(Re,0)]):y.current.bt=!1}if(qe&&"b"===Me[0]&&(Te<se.top||y.current.tb)){var tt=Ae;Je?tt+=J-$:tt=Fe.y-He.y-ye;var nt=Nt(Ie,tt),rt=Nt(Ie,tt,le);nt>Le||nt===Le&&(!ae||rt>=Ve)?(y.current.tb=!0,Ae=tt,ye=-ye,Pe.points=[H(Me,0),H(Re,0)]):y.current.tb=!1}var ot=Ue(Ke),it=Me[1]===Re[1];if(ot&&"l"===Me[1]&&(Oe>se.right||y.current.rl)){var at=Ie;it?at-=Q-ee:at=je.x-We.x-be;var ut=Nt(at,Ae),lt=Nt(at,Ae,le);ut>Le||ut===Le&&(!ae||lt>=Ve)?(y.current.rl=!0,Ie=at,be=-be,Pe.points=[H(Me,1),H(Re,1)]):y.current.rl=!1}if(ot&&"r"===Me[1]&&(ze<se.left||y.current.lr)){var ct=Ie;it?ct+=Q-ee:ct=Fe.x-He.x-be;var st=Nt(ct,Ae),ft=Nt(ct,Ae,le);st>Le||st===Le&&(!ae||ft>=Ve)?(y.current.lr=!0,Ie=ct,be=-be,Pe.points=[H(Me,1),H(Re,1)]):y.current.lr=!1}Rt();var dt=!0===Ge?0:Ge;"number"==typeof dt&&(ze<le.left&&(Ie-=ze-le.left-be,p.x+ee<le.left+dt&&(Ie+=p.x-le.left+ee-dt)),Oe>le.right&&(Ie-=Oe-le.right-be,p.x>le.right-dt&&(Ie+=p.x-le.right+dt)));var vt=!0===Xe?0:Xe;"number"==typeof vt&&(Te<le.top&&(Ae-=Te-le.top-ye,p.y+$<le.top+vt&&(Ae+=p.y-le.top+$-vt)),De>le.bottom&&(Ae-=De-le.bottom-ye,p.y>le.bottom-vt&&(Ae+=p.y-le.bottom+vt)));var pt=D.x+Ie,mt=pt+Q,ht=D.y+Ae,gt=ht+J,bt=p.x,yt=bt+ee,wt=p.y,Et=wt+$,Zt=(Math.max(pt,bt)+Math.min(mt,yt))/2-pt,xt=(Math.max(ht,wt)+Math.min(gt,Et))/2-ht;null==l||l(t,Pe);var Ct=fe.right-D.x-(Ie+D.width),St=fe.bottom-D.y-(Ae+D.height);1===de&&(Ie=Math.round(Ie),Ct=Math.round(Ct)),1===ve&&(Ae=Math.round(Ae),St=Math.round(St)),m({ready:!0,offsetX:Ie/de,offsetY:Ae/ve,offsetR:Ct/de,offsetB:St/ve,arrowX:Zt/de,arrowY:xt/ve,scaleX:de,scaleY:ve,align:Pe})}})),E=function(){m((function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})}))};return(0,p.Z)(E,[i]),(0,p.Z)((function(){e||E()}),[e]),[v.ready,v.offsetX,v.offsetY,v.offsetR,v.offsetB,v.arrowX,v.arrowY,v.scaleX,v.scaleY,v.align,function(){g.current+=1;var e=g.current;Promise.resolve().then((function(){g.current===e&&w()}))}]}var W=n(94480);function B(e,t,n,r,o){(0,p.Z)((function(){if(e&&t&&n){var i=n,a=A(t),u=A(i),l=I(i),c=new Set([l].concat((0,W.Z)(a),(0,W.Z)(u)));function s(){r(),o()}return c.forEach((function(e){e.addEventListener("scroll",s,{passive:!0})})),l.addEventListener("resize",s,{passive:!0}),r(),function(){c.forEach((function(e){e.removeEventListener("scroll",s),l.removeEventListener("resize",s)}))}}}),[e,t,n])}n(48736);function K(e,t,n,r,o,i,a,u){var l=h.useRef(e);l.current=e;var c=h.useRef(!1);return h.useEffect((function(){if(t&&r&&(!o||i)){var e=function(){c.current=!1},s=function(e){var t;!l.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||c.current||u(!1)},d=I(r);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",s,!0),d.addEventListener("contextmenu",s,!0);var v=(0,f.A)(n);return v&&(v.addEventListener("mousedown",s,!0),v.addEventListener("contextmenu",s,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",s,!0),d.removeEventListener("contextmenu",s,!0),v&&(v.removeEventListener("mousedown",s,!0),v.removeEventListener("contextmenu",s,!0))}}}),[t,n,r,o,i]),function(){c.current=!0}}var Y=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z,t=h.forwardRef((function(t,n){var a=t.prefixCls,u=void 0===a?"rc-trigger-popup":a,g=t.children,b=t.action,y=void 0===b?"hover":b,w=t.showAction,E=t.hideAction,Z=t.popupVisible,N=t.defaultPopupVisible,M=t.onPopupVisibleChange,k=t.afterPopupVisibleChange,I=t.mouseEnterDelay,A=t.mouseLeaveDelay,T=void 0===A?.1:A,D=t.focusDelay,z=t.blurDelay,O=t.mask,L=t.maskClosable,V=void 0===L||L,j=t.getPopupContainer,H=t.forceRender,W=t.autoDestroy,G=t.destroyPopupOnHide,X=t.popup,U=t.popupClassName,q=t.popupStyle,J=t.popupPlacement,Q=t.builtinPlacements,$=void 0===Q?{}:Q,ee=t.popupAlign,te=t.zIndex,ne=t.stretch,re=t.getPopupClassNameFromAlign,oe=t.fresh,ie=t.alignPoint,ae=t.onPopupClick,ue=t.onPopupAlign,le=t.arrow,ce=t.popupMotion,se=t.maskMotion,fe=t.popupTransitionName,de=t.popupAnimation,ve=t.maskTransitionName,pe=t.maskAnimation,me=t.className,he=t.getTriggerDOMNode,ge=(0,i.Z)(t,Y),be=W||G||!1,ye=h.useState(!1),we=(0,o.Z)(ye,2),Ee=we[0],Ze=we[1];(0,p.Z)((function(){Ze((0,m.Z)())}),[]);var xe=h.useRef({}),Ce=h.useContext(S),Se=h.useMemo((function(){return{registerSubPopup:function(e,t){xe.current[e]=t,null==Ce||Ce.registerSubPopup(e,t)}}}),[Ce]),Ne=(0,v.Z)(),Re=h.useState(null),Me=(0,o.Z)(Re,2),ke=Me[0],_e=Me[1],Pe=h.useRef(null),Ie=(0,d.Z)((function(e){Pe.current=e,(0,s.Sh)(e)&&ke!==e&&_e(e),null==Ce||Ce.registerSubPopup(Ne,e)})),Ae=h.useState(null),Te=(0,o.Z)(Ae,2),De=Te[0],ze=Te[1],Oe=h.useRef(null),Le=(0,d.Z)((function(e){(0,s.Sh)(e)&&De!==e&&(ze(e),Oe.current=e)})),Ve=h.Children.only(g),je=(null==Ve?void 0:Ve.props)||{},He={},Fe=(0,d.Z)((function(e){var t,n,r=De;return(null==r?void 0:r.contains(e))||(null===(t=(0,f.A)(r))||void 0===t?void 0:t.host)===e||e===r||(null==ke?void 0:ke.contains(e))||(null===(n=(0,f.A)(ke))||void 0===n?void 0:n.host)===e||e===ke||Object.values(xe.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),We=P(u,ce,de,fe),Be=P(u,se,pe,ve),Ke=h.useState(N||!1),Ye=(0,o.Z)(Ke,2),Ge=Ye[0],Xe=Ye[1],Ue=null!=Z?Z:Ge,qe=(0,d.Z)((function(e){void 0===Z&&Xe(e)}));(0,p.Z)((function(){Xe(Z||!1)}),[Z]);var Je=h.useRef(Ue);Je.current=Ue;var Qe=h.useRef([]);Qe.current=[];var $e=(0,d.Z)((function(e){var t;qe(e),(null!==(t=Qe.current[Qe.current.length-1])&&void 0!==t?t:Ue)!==e&&(Qe.current.push(e),null==M||M(e))})),et=h.useRef(),tt=function(){clearTimeout(et.current)},nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tt(),0===t?$e(e):et.current=setTimeout((function(){$e(e)}),1e3*t)};h.useEffect((function(){return tt}),[]);var rt=h.useState(!1),ot=(0,o.Z)(rt,2),it=ot[0],at=ot[1];(0,p.Z)((function(e){e&&!Ue||at(!0)}),[Ue]);var ut=h.useState(null),lt=(0,o.Z)(ut,2),ct=lt[0],st=lt[1],ft=h.useState(null),dt=(0,o.Z)(ft,2),vt=dt[0],pt=dt[1],mt=function(e){pt([e.clientX,e.clientY])},ht=F(Ue,ke,ie&&null!==vt?vt:De,J,$,ee,ue),gt=(0,o.Z)(ht,11),bt=gt[0],yt=gt[1],wt=gt[2],Et=gt[3],Zt=gt[4],xt=gt[5],Ct=gt[6],St=gt[7],Nt=gt[8],Rt=gt[9],Mt=gt[10],kt=R(Ee,y,w,E),_t=(0,o.Z)(kt,2),Pt=_t[0],It=_t[1],At=Pt.has("click"),Tt=It.has("click")||It.has("contextMenu"),Dt=(0,d.Z)((function(){it||Mt()}));B(Ue,De,ke,Dt,(function(){Je.current&&ie&&Tt&&nt(!1)})),(0,p.Z)((function(){Dt()}),[vt,J]),(0,p.Z)((function(){!Ue||null!=$&&$[J]||Dt()}),[JSON.stringify(ee)]);var zt=h.useMemo((function(){var e=_($,u,Rt,ie);return l()(e,null==re?void 0:re(Rt))}),[Rt,re,$,u,ie]);h.useImperativeHandle(n,(function(){return{nativeElement:Oe.current,popupElement:Pe.current,forceAlign:Dt}}));var Ot=h.useState(0),Lt=(0,o.Z)(Ot,2),Vt=Lt[0],jt=Lt[1],Ht=h.useState(0),Ft=(0,o.Z)(Ht,2),Wt=Ft[0],Bt=Ft[1],Kt=function(){if(ne&&De){var e=De.getBoundingClientRect();jt(e.width),Bt(e.height)}};function Yt(e,t,n,r){He[e]=function(o){var i;null==r||r(o),nt(t,n);for(var a=arguments.length,u=new Array(a>1?a-1:0),l=1;l<a;l++)u[l-1]=arguments[l];null===(i=je[e])||void 0===i||i.call.apply(i,[je,o].concat(u))}}(0,p.Z)((function(){ct&&(Mt(),ct(),st(null))}),[ct]),(At||Tt)&&(He.onClick=function(e){var t;Je.current&&Tt?nt(!1):!Je.current&&At&&(mt(e),nt(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=je.onClick)||void 0===t||t.call.apply(t,[je,e].concat(r))});var Gt,Xt,Ut=K(Ue,Tt,De,ke,O,V,Fe,nt),qt=Pt.has("hover"),Jt=It.has("hover");qt&&(Yt("onMouseEnter",!0,I,(function(e){mt(e)})),Yt("onPointerEnter",!0,I,(function(e){mt(e)})),Gt=function(e){(Ue||it)&&null!=ke&&ke.contains(e.target)&&nt(!0,I)},ie&&(He.onMouseMove=function(e){var t;null===(t=je.onMouseMove)||void 0===t||t.call(je,e)})),Jt&&(Yt("onMouseLeave",!1,T),Yt("onPointerLeave",!1,T),Xt=function(){nt(!1,T)}),Pt.has("focus")&&Yt("onFocus",!0,D),It.has("focus")&&Yt("onBlur",!1,z),Pt.has("contextMenu")&&(He.onContextMenu=function(e){var t;Je.current&&It.has("contextMenu")?nt(!1):(mt(e),nt(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=je.onContextMenu)||void 0===t||t.call.apply(t,[je,e].concat(r))}),me&&(He.className=l()(je.className,me));var Qt=h.useRef(!1);Qt.current||(Qt.current=H||Ue||it);var $t=(0,r.Z)((0,r.Z)({},je),He),en={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ge[e]&&(en[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=$t[e])||void 0===t||t.call.apply(t,[$t].concat(r)),ge[e].apply(ge,r)})}));var tn=h.cloneElement(Ve,(0,r.Z)((0,r.Z)({},$t),en)),nn={x:xt,y:Ct},rn=le?(0,r.Z)({},!0!==le?le:{}):null;return h.createElement(h.Fragment,null,h.createElement(c.Z,{disabled:!Ue,ref:Le,onResize:function(){Kt(),Dt()}},h.createElement(C,{getTriggerDOMNode:he},tn)),Qt.current&&h.createElement(S.Provider,{value:Se},h.createElement(x,{portal:e,ref:Ie,prefixCls:u,popup:X,className:l()(U,zt),style:q,target:De,onMouseEnter:Gt,onMouseLeave:Xt,onPointerEnter:Gt,zIndex:te,open:Ue,keepDom:it,fresh:oe,onClick:ae,onPointerDownCapture:Ut,mask:O,motion:We,maskMotion:Be,onVisibleChanged:function(e){at(!1),Mt(),null==k||k(e)},onPrepare:function(){return new Promise((function(e){Kt(),st((function(){return e}))}))},forceRender:H,autoDestroy:be,getPopupContainer:j,align:Rt,arrow:rn,arrowPos:nn,ready:bt,offsetX:yt,offsetY:wt,offsetR:Et,offsetB:Zt,onAlign:Dt,stretch:ne,targetWidth:Vt/St,targetHeight:Wt/Nt})))}));return t}(a.Z)},80258:function(e,t,n){n.r(t),n.d(t,{Types:function(){return Z},default:function(){return S}});var r=n(7557),o=n.n(r),i=n(41498),a=n.n(i),u=n(79800),l=n.n(u),c=n(82242),s=n.n(c),f=n(59301),d=n(94171),v=(n(58109),n(37568)),p=n(29787),m=n(13747),h=n(53260),g=n(91689),b=n(7338),y=n(37712),w=v.Z.Search,E={loading:!1,type:"all",page:1,count:0,list:[],keyword:""},Z=function(e){return e[e.GET_LIST=0]="GET_LIST",e[e.CHANGE_KEYWORD=1]="CHANGE_KEYWORD",e[e.CHANGE_PAGE=2]="CHANGE_PAGE",e[e.CHANGE_TYPE=3]="CHANGE_TYPE",e[e.SET_LOADING=4]="SET_LOADING",e}({});function x(e,t){switch(t.type){case Z.GET_LIST:return s()(s()({},e),t.payload);case Z.CHANGE_PAGE:return s()(s()({},e),{},{page:t.payload});case Z.CHANGE_KEYWORD:case Z.CHANGE_TYPE:return s()(s()({},e),t.payload);case Z.SET_LOADING:return s()(s()({},e),{},{loading:t.payload});default:throw new Error}}function C(e){var t=e.data;return(0,y.jsx)("ul",{className:"case-list",children:t.map((function(e){var t;return(0,y.jsx)("li",{children:(0,y.jsxs)("a",{href:"/moop_cases/".concat(e.id),target:"_blank",children:[(0,y.jsx)("img",{src:"".concat(g.Z.IMG_SERVER).concat(e.cover_url),width:120,alt:e.title}),(0,y.jsxs)("div",{className:"info",children:[(0,y.jsxs)("h2",{children:[e.title,null===(t=e.tags)||void 0===t?void 0:t.map((function(e,t){return(0,y.jsx)("span",{className:"label-"+t,children:e.name},e.id)}))]}),(0,y.jsxs)("div",{className:"detail",children:[(0,y.jsx)("div",{className:"flex-container",children:(0,y.jsx)("span",{children:"".concat(e.author_name," ").concat(e.author_school_name)})}),(0,y.jsxs)("div",{className:"sum",children:[(0,y.jsxs)("span",{children:[" ",(0,y.jsx)("i",{className:"fa fa-eye"})," ",e.visited_count," 浏览 "]}),(0,y.jsxs)("span",{children:[" ",(0,y.jsx)("i",{className:"fa fa-thumbs-o-up"})," ",e.praise_count," 赞 "]}),(0,y.jsxs)("span",{children:[" ",(0,y.jsx)("i",{className:"fa fa-download"})," ",e.download_count," 下载 "]})]})]})]})]})},e.id)}))})}var S=(0,h.connect)((function(e){return{user:e.user,globalSetting:e.globalSetting}}))((function(e){e.user;var t,n=e.globalSetting,r=e.dispatch,i=(0,f.useReducer)(x,E),u=l()(i,2),c=u[0],s=u[1],v=c.loading,S=c.page,N=c.list,R=c.keyword,M=c.type,k=c.count;function _(e){s({type:Z.CHANGE_TYPE,payload:{type:e.target.id,page:1}})}return(0,f.useEffect)((function(){return r({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),function(){r({type:"globalSetting/onlyShowBackTopToggle",payload:!0})}}),[]),(0,f.useEffect)((function(){var e=!1;function t(){return t=a()(o()().mark((function t(){var n,r,i;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s({type:Z.SET_LOADING,payload:!0}),t.next=3,(0,d.U2)("libraries.json",{keyword:R,page:S,type:M});case 3:n=t.sent,r=n.libraries,i=n.count,e||s({type:Z.GET_LIST,payload:{count:i,list:r,loading:!1}});case 6:case"end":return t.stop()}}),t)}))),t.apply(this,arguments)}return e||function(){t.apply(this,arguments)}(),function(){e=!0}}),[S,R,M]),(0,y.jsxs)("div",{className:"moop-case",children:[(0,y.jsx)("section",{className:"banner",children:(0,y.jsx)("img",{src:g.Z.IMG_SERVER+"/"+(null==n||null===(t=n.setting)||void 0===t?void 0:t.moop_cases_banner_url),alt:"bg"})}),(0,y.jsxs)("section",{className:"moop-main",children:[(0,y.jsxs)("div",{className:"moop-title",children:[(0,y.jsx)("span",{children:"教学案例"}),(0,y.jsx)(h.Link,{to:"/moop_cases/new",className:"btn-ghost",children:"发布案例"})]}),(0,y.jsxs)("div",{className:"search-input-container",children:[(0,y.jsxs)("div",{className:"flex-container",children:[(0,y.jsx)("a",{id:"all",onClick:_,className:"all"===M?"active":"",children:"全部"}),(0,b.bg)()?(0,y.jsx)("a",{id:"mine",onClick:_,className:"mine"===M?"active":"",children:"我的"}):null]}),(0,y.jsx)(w,{className:"moop-search",defaultValue:R,placeholder:"输入教学案例标题、作者、单位进行检索",onSearch:function(e){s({type:Z.CHANGE_KEYWORD,payload:{keyword:e,page:1}})}})]})]}),(0,y.jsx)(p.Z,{spinning:v,delay:500,children:(0,y.jsx)(C,{data:N})}),(0,y.jsx)("div",{className:"search-footer",children:k>20?(0,y.jsx)(m.Z,{showQuickJumper:!0,current:S,onChange:function(e){document.body.scrollIntoView(),s({type:Z.CHANGE_PAGE,payload:e})},pageSize:20,showSizeChanger:!1,total:k}):null})]})}))},58109:function(){},66003:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(75931),o=n(33885),i=n(76190),a=n(59301),u=["show"];function l(e,t){return a.useMemo((function(){var n={};t&&(n.show="object"===(0,i.Z)(t)&&t.formatter?t.formatter:!!t);var a=n=(0,o.Z)((0,o.Z)({},n),e),l=a.show,c=(0,r.Z)(a,u);return(0,o.Z)((0,o.Z)({},c),{},{show:!!l,showFormatter:"function"==typeof l?l:void 0,strategy:c.strategy||function(e){return e.length}})}),[e,t])}},36901:function(e,t,n){n.r(t),n.d(t,{BaseInput:function(){return f},default:function(){return y}});var r=n(33885),o=n(54476),i=n(20068),a=n(76190),u=n(92310),l=n.n(u),c=n(59301),s=n(30292),f=c.forwardRef((function(e,t){var n,u,f,d=e.inputElement,v=e.children,p=e.prefixCls,m=e.prefix,h=e.suffix,g=e.addonBefore,b=e.addonAfter,y=e.className,w=e.style,E=e.disabled,Z=e.readOnly,x=e.focused,C=e.triggerFocus,S=e.allowClear,N=e.value,R=e.handleReset,M=e.hidden,k=e.classes,_=e.classNames,P=e.dataAttrs,I=e.styles,A=e.components,T=e.onClear,D=null!=v?v:d,z=(null==A?void 0:A.affixWrapper)||"span",O=(null==A?void 0:A.groupWrapper)||"span",L=(null==A?void 0:A.wrapper)||"span",V=(null==A?void 0:A.groupAddon)||"span",j=(0,c.useRef)(null),H=(0,s.X3)(e),F=(0,c.cloneElement)(D,{value:N,className:l()(null===(n=D.props)||void 0===n?void 0:n.className,!H&&(null==_?void 0:_.variant))||null}),W=(0,c.useRef)(null);if(c.useImperativeHandle(t,(function(){return{nativeElement:W.current||j.current}})),H){var B=null;if(S){var K=!E&&!Z&&N,Y="".concat(p,"-clear-icon"),G="object"===(0,a.Z)(S)&&null!=S&&S.clearIcon?S.clearIcon:"✖";B=c.createElement("button",{type:"button",tabIndex:-1,onClick:function(e){null==R||R(e),null==T||T()},onMouseDown:function(e){return e.preventDefault()},className:l()(Y,(0,i.Z)((0,i.Z)({},"".concat(Y,"-hidden"),!K),"".concat(Y,"-has-suffix"),!!h))},G)}var X="".concat(p,"-affix-wrapper"),U=l()(X,(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},"".concat(p,"-disabled"),E),"".concat(X,"-disabled"),E),"".concat(X,"-focused"),x),"".concat(X,"-readonly"),Z),"".concat(X,"-input-with-clear-btn"),h&&S&&N),null==k?void 0:k.affixWrapper,null==_?void 0:_.affixWrapper,null==_?void 0:_.variant),q=(h||S)&&c.createElement("span",{className:l()("".concat(p,"-suffix"),null==_?void 0:_.suffix),style:null==I?void 0:I.suffix},B,h);F=c.createElement(z,(0,o.Z)({className:U,style:null==I?void 0:I.affixWrapper,onClick:function(e){var t;null!==(t=j.current)&&void 0!==t&&t.contains(e.target)&&(null==C||C())}},null==P?void 0:P.affixWrapper,{ref:j}),m&&c.createElement("span",{className:l()("".concat(p,"-prefix"),null==_?void 0:_.prefix),style:null==I?void 0:I.prefix},m),F,q)}if((0,s.He)(e)){var J="".concat(p,"-group"),Q="".concat(J,"-addon"),$="".concat(J,"-wrapper"),ee=l()("".concat(p,"-wrapper"),J,null==k?void 0:k.wrapper,null==_?void 0:_.wrapper),te=l()($,(0,i.Z)({},"".concat($,"-disabled"),E),null==k?void 0:k.group,null==_?void 0:_.groupWrapper);F=c.createElement(O,{className:te,ref:W},c.createElement(L,{className:ee},g&&c.createElement(V,{className:Q},g),F,b&&c.createElement(V,{className:Q},b)))}return c.cloneElement(F,{className:l()(null===(u=F.props)||void 0===u?void 0:u.className,y)||null,style:(0,r.Z)((0,r.Z)({},null===(f=F.props)||void 0===f?void 0:f.style),w),hidden:M})})),d=n(94480),v=n(42978),p=n(75931),m=n(18929),h=n(2738),g=n(66003),b=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],y=(0,c.forwardRef)((function(e,t){var n=e.autoComplete,a=e.onChange,u=e.onFocus,y=e.onBlur,w=e.onPressEnter,E=e.onKeyDown,Z=e.onKeyUp,x=e.prefixCls,C=void 0===x?"rc-input":x,S=e.disabled,N=e.htmlSize,R=e.className,M=e.maxLength,k=e.suffix,_=e.showCount,P=e.count,I=e.type,A=void 0===I?"text":I,T=e.classes,D=e.classNames,z=e.styles,O=e.onCompositionStart,L=e.onCompositionEnd,V=(0,p.Z)(e,b),j=(0,c.useState)(!1),H=(0,v.Z)(j,2),F=H[0],W=H[1],B=(0,c.useRef)(!1),K=(0,c.useRef)(!1),Y=(0,c.useRef)(null),G=(0,c.useRef)(null),X=function(e){Y.current&&(0,s.nH)(Y.current,e)},U=(0,m.Z)(e.defaultValue,{value:e.value}),q=(0,v.Z)(U,2),J=q[0],Q=q[1],$=null==J?"":String(J),ee=(0,c.useState)(null),te=(0,v.Z)(ee,2),ne=te[0],re=te[1],oe=(0,g.Z)(P,_),ie=oe.max||M,ae=oe.strategy($),ue=!!ie&&ae>ie;(0,c.useImperativeHandle)(t,(function(){var e;return{focus:X,blur:function(){var e;null===(e=Y.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=Y.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=Y.current)||void 0===e||e.select()},input:Y.current,nativeElement:(null===(e=G.current)||void 0===e?void 0:e.nativeElement)||Y.current}})),(0,c.useEffect)((function(){K.current&&(K.current=!1),W((function(e){return(!e||!S)&&e}))}),[S]);var le=function(e,t,n){var r,o,i=t;if(!B.current&&oe.exceedFormatter&&oe.max&&oe.strategy(t)>oe.max)t!==(i=oe.exceedFormatter(t,{max:oe.max}))&&re([(null===(r=Y.current)||void 0===r?void 0:r.selectionStart)||0,(null===(o=Y.current)||void 0===o?void 0:o.selectionEnd)||0]);else if("compositionEnd"===n.source)return;Q(i),Y.current&&(0,s.rJ)(Y.current,e,a,i)};(0,c.useEffect)((function(){var e;ne&&(null===(e=Y.current)||void 0===e||e.setSelectionRange.apply(e,(0,d.Z)(ne)))}),[ne]);var ce,se=function(e){le(e,e.target.value,{source:"change"})},fe=function(e){B.current=!1,le(e,e.currentTarget.value,{source:"compositionEnd"}),null==L||L(e)},de=function(e){w&&"Enter"===e.key&&!K.current&&(K.current=!0,w(e)),null==E||E(e)},ve=function(e){"Enter"===e.key&&(K.current=!1),null==Z||Z(e)},pe=function(e){W(!0),null==u||u(e)},me=function(e){K.current&&(K.current=!1),W(!1),null==y||y(e)},he=ue&&"".concat(C,"-out-of-range");return c.createElement(f,(0,o.Z)({},V,{prefixCls:C,className:l()(R,he),handleReset:function(e){Q(""),X(),Y.current&&(0,s.rJ)(Y.current,e,a)},value:$,focused:F,triggerFocus:X,suffix:function(){var e=Number(ie)>0;if(k||oe.show){var t=oe.showFormatter?oe.showFormatter({value:$,count:ae,maxLength:ie}):"".concat(ae).concat(e?" / ".concat(ie):"");return c.createElement(c.Fragment,null,oe.show&&c.createElement("span",{className:l()("".concat(C,"-show-count-suffix"),(0,i.Z)({},"".concat(C,"-show-count-has-suffix"),!!k),null==D?void 0:D.count),style:(0,r.Z)({},null==z?void 0:z.count)},t),k)}return null}(),disabled:S,classes:T,classNames:D,styles:z}),(ce=(0,h.Z)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),c.createElement("input",(0,o.Z)({autoComplete:n},ce,{onChange:se,onFocus:pe,onBlur:me,onKeyDown:de,onKeyUp:ve,className:l()(C,(0,i.Z)({},"".concat(C,"-disabled"),S),null==D?void 0:D.input),style:null==z?void 0:z.input,ref:Y,size:N,type:A,onCompositionStart:function(e){B.current=!0,null==O||O(e)},onCompositionEnd:fe}))))}))},30292:function(e,t,n){function r(e){return!(!e.addonBefore&&!e.addonAfter)}function o(e){return!!(e.prefix||e.suffix||e.allowClear)}function i(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function a(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=i(t,e,r)):n(o=i(t,e,""))}}function u(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}n.d(t,{He:function(){return r},X3:function(){return o},nH:function(){return u},rJ:function(){return a}})},11780:function(e,t,n){n.d(t,{Z:function(){return D}});var r=n(54476),o=n(33885),i=n(42978),a=n(75931),u=n(59301),l=n(92310),c=n.n(l),s=n(29301),f=n(34280),d=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],v=void 0;function p(e,t){var n=e.prefixCls,i=e.invalidate,l=e.item,f=e.renderItem,p=e.responsive,m=e.responsiveDisabled,h=e.registerSize,g=e.itemKey,b=e.className,y=e.style,w=e.children,E=e.display,Z=e.order,x=e.component,C=void 0===x?"div":x,S=(0,a.Z)(e,d),N=p&&!E;function R(e){h(g,e)}u.useEffect((function(){return function(){R(null)}}),[]);var M,k=f&&l!==v?f(l,{index:Z}):w;i||(M={opacity:N?0:1,height:N?0:v,overflowY:N?"hidden":v,order:p?Z:v,pointerEvents:N?"none":v,position:N?"absolute":v});var _={};N&&(_["aria-hidden"]=!0);var P=u.createElement(C,(0,r.Z)({className:c()(!i&&n,b),style:(0,o.Z)((0,o.Z)({},M),y)},_,S,{ref:t}),k);return p&&(P=u.createElement(s.Z,{onResize:function(e){R(e.offsetWidth)},disabled:m},P)),P}var m=u.forwardRef(p);m.displayName="Item";var h=m,g=n(6089),b=n(4676),y=n(16089);function w(){var e=u.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)(0,y.Z)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,b.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function E(e,t){var n=u.useState(t),r=(0,i.Z)(n,2),o=r[0],a=r[1];return[o,(0,g.Z)((function(t){e((function(){a(t)}))}))]}var Z=u.createContext(null),x=["component"],C=["className"],S=["className"],N=function(e,t){var n=u.useContext(Z);if(!n){var o=e.component,i=void 0===o?"div":o,l=(0,a.Z)(e,x);return u.createElement(i,(0,r.Z)({},l,{ref:t}))}var s=n.className,f=(0,a.Z)(n,C),d=e.className,v=(0,a.Z)(e,S);return u.createElement(Z.Provider,{value:null},u.createElement(h,(0,r.Z)({ref:t,className:c()(s,d)},f,v)))},R=u.forwardRef(N);R.displayName="RawItem";var M=R,k=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],_="responsive",P="invalidate";function I(e){return"+ ".concat(e.length," ...")}function A(e,t){var n=e.prefixCls,l=void 0===n?"rc-overflow":n,d=e.data,v=void 0===d?[]:d,p=e.renderItem,m=e.renderRawItem,g=e.itemKey,b=e.itemWidth,y=void 0===b?10:b,x=e.ssr,C=e.style,S=e.className,N=e.maxCount,R=e.renderRest,M=e.renderRawRest,A=e.suffix,T=e.component,D=void 0===T?"div":T,z=e.itemComponent,O=e.onVisibleChange,L=(0,a.Z)(e,k),V="full"===x,j=w(),H=E(j,null),F=(0,i.Z)(H,2),W=F[0],B=F[1],K=W||0,Y=E(j,new Map),G=(0,i.Z)(Y,2),X=G[0],U=G[1],q=E(j,0),J=(0,i.Z)(q,2),Q=J[0],$=J[1],ee=E(j,0),te=(0,i.Z)(ee,2),ne=te[0],re=te[1],oe=E(j,0),ie=(0,i.Z)(oe,2),ae=ie[0],ue=ie[1],le=(0,u.useState)(null),ce=(0,i.Z)(le,2),se=ce[0],fe=ce[1],de=(0,u.useState)(null),ve=(0,i.Z)(de,2),pe=ve[0],me=ve[1],he=u.useMemo((function(){return null===pe&&V?Number.MAX_SAFE_INTEGER:pe||0}),[pe,W]),ge=(0,u.useState)(!1),be=(0,i.Z)(ge,2),ye=be[0],we=be[1],Ee="".concat(l,"-item"),Ze=Math.max(Q,ne),xe=N===_,Ce=v.length&&xe,Se=N===P,Ne=Ce||"number"==typeof N&&v.length>N,Re=(0,u.useMemo)((function(){var e=v;return Ce?e=null===W&&V?v:v.slice(0,Math.min(v.length,K/y)):"number"==typeof N&&(e=v.slice(0,N)),e}),[v,y,W,N,Ce]),Me=(0,u.useMemo)((function(){return Ce?v.slice(he+1):v.slice(Re.length)}),[v,Re,Ce,he]),ke=(0,u.useCallback)((function(e,t){var n;return"function"==typeof g?g(e):null!==(n=g&&(null==e?void 0:e[g]))&&void 0!==n?n:t}),[g]),_e=(0,u.useCallback)(p||function(e){return e},[p]);function Pe(e,t,n){(pe!==e||void 0!==t&&t!==se)&&(me(e),n||(we(e<v.length-1),null==O||O(e)),void 0!==t&&fe(t))}function Ie(e,t){U((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function Ae(e){return X.get(ke(Re[e],e))}(0,f.Z)((function(){if(K&&"number"==typeof Ze&&Re){var e=ae,t=Re.length,n=t-1;if(!t)return void Pe(0,null);for(var r=0;r<t;r+=1){var o=Ae(r);if(V&&(o=o||0),void 0===o){Pe(r-1,void 0,!0);break}if(e+=o,0===n&&e<=K||r===n-1&&e+Ae(n)<=K){Pe(n,null);break}if(e+Ze>K){Pe(r-1,e-o-ae+ne);break}}A&&Ae(0)+ae>K&&fe(null)}}),[K,X,ne,ae,ke,Re]);var Te=ye&&!!Me.length,De={};null!==se&&Ce&&(De={position:"absolute",left:se,top:0});var ze={prefixCls:Ee,responsive:Ce,component:z,invalidate:Se},Oe=m?function(e,t){var n=ke(e,t);return u.createElement(Z.Provider,{key:n,value:(0,o.Z)((0,o.Z)({},ze),{},{order:t,item:e,itemKey:n,registerSize:Ie,display:t<=he})},m(e,t))}:function(e,t){var n=ke(e,t);return u.createElement(h,(0,r.Z)({},ze,{order:t,key:n,item:e,renderItem:_e,itemKey:n,registerSize:Ie,display:t<=he}))},Le={order:Te?he:Number.MAX_SAFE_INTEGER,className:"".concat(Ee,"-rest"),registerSize:function(e,t){re(t),$(ne)},display:Te},Ve=R||I,je=M?u.createElement(Z.Provider,{value:(0,o.Z)((0,o.Z)({},ze),Le)},M(Me)):u.createElement(h,(0,r.Z)({},ze,Le),"function"==typeof Ve?Ve(Me):Ve),He=u.createElement(D,(0,r.Z)({className:c()(!Se&&l,S),style:C,ref:t},L),Re.map(Oe),Ne?je:null,A&&u.createElement(h,(0,r.Z)({},ze,{responsive:xe,responsiveDisabled:!Ce,order:he,className:"".concat(Ee,"-suffix"),registerSize:function(e,t){ue(t)},display:!0,style:De}),A));return xe?u.createElement(s.Z,{onResize:function(e,t){B(t.clientWidth)},disabled:!Ce},He):He}var T=u.forwardRef(A);T.displayName="Overflow",T.Item=M,T.RESPONSIVE=_,T.INVALIDATE=P;var D=T},23425:function(e,t,n){n.d(t,{Z:function(){return Z}});var r=n(20068),o=n(54476),i=n(76190),a=n(33885),u=n(42978),l=n(92310),c=n.n(l),s=n(18929),f=n(10228),d=n(26112),v=(n(48736),n(59301)),p=n(17119),m=[10,20,50,100];var h=function(e){var t=e.pageSizeOptions,n=void 0===t?m:t,r=e.locale,o=e.changeSize,i=e.pageSize,a=e.goButton,l=e.quickGo,c=e.rootPrefixCls,s=e.disabled,d=e.buildOptionText,p=e.showSizeChanger,h=e.sizeChangerRender,g=v.useState(""),b=(0,u.Z)(g,2),y=b[0],w=b[1],E=function(){return!y||Number.isNaN(y)?void 0:Number(y)},Z="function"==typeof d?d:function(e){return"".concat(e," ").concat(r.items_per_page)},x=function(e){""!==y&&(e.keyCode!==f.Z.ENTER&&"click"!==e.type||(w(""),null==l||l(E())))},C="".concat(c,"-options");if(!p&&!l)return null;var S=null,N=null,R=null;return p&&h&&(S=h({disabled:s,size:i,onSizeChange:function(e){null==o||o(Number(e))},"aria-label":r.page_size,className:"".concat(C,"-size-changer"),options:(n.some((function(e){return e.toString()===i.toString()}))?n:n.concat([i]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e){return{label:Z(e),value:e}}))})),l&&(a&&(R="boolean"==typeof a?v.createElement("button",{type:"button",onClick:x,onKeyUp:x,disabled:s,className:"".concat(C,"-quick-jumper-button")},r.jump_to_confirm):v.createElement("span",{onClick:x,onKeyUp:x},a)),N=v.createElement("div",{className:"".concat(C,"-quick-jumper")},r.jump_to,v.createElement("input",{disabled:s,type:"text",value:y,onChange:function(e){w(e.target.value)},onKeyUp:x,onBlur:function(e){a||""===y||(w(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(c,"-item"))>=0)||null==l||l(E()))},"aria-label":r.page}),r.page,R)),v.createElement("li",{className:C},S,N)};var g=function(e){var t=e.rootPrefixCls,n=e.page,o=e.active,i=e.className,a=e.showTitle,u=e.onClick,l=e.onKeyPress,s=e.itemRender,f="".concat(t,"-item"),d=c()(f,"".concat(f,"-").concat(n),(0,r.Z)((0,r.Z)({},"".concat(f,"-active"),o),"".concat(f,"-disabled"),!n),i),p=s(n,"page",v.createElement("a",{rel:"nofollow"},n));return p?v.createElement("li",{title:a?String(n):null,className:d,onClick:function(){u(n)},onKeyDown:function(e){l(e,u,n)},tabIndex:0},p):null},b=function(e,t,n){return n};function y(){}function w(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function E(e,t,n){var r=void 0===e?t:e;return Math.floor((n-1)/r)+1}var Z=function(e){var t=e.prefixCls,n=void 0===t?"rc-pagination":t,l=e.selectPrefixCls,m=void 0===l?"rc-select":l,Z=e.className,x=e.current,C=e.defaultCurrent,S=void 0===C?1:C,N=e.total,R=void 0===N?0:N,M=e.pageSize,k=e.defaultPageSize,_=void 0===k?10:k,P=e.onChange,I=void 0===P?y:P,A=e.hideOnSinglePage,T=e.align,D=e.showPrevNextJumpers,z=void 0===D||D,O=e.showQuickJumper,L=e.showLessItems,V=e.showTitle,j=void 0===V||V,H=e.onShowSizeChange,F=void 0===H?y:H,W=e.locale,B=void 0===W?p.Z:W,K=e.style,Y=e.totalBoundaryShowSizeChanger,G=void 0===Y?50:Y,X=e.disabled,U=e.simple,q=e.showTotal,J=e.showSizeChanger,Q=void 0===J?R>G:J,$=e.sizeChangerRender,ee=e.pageSizeOptions,te=e.itemRender,ne=void 0===te?b:te,re=e.jumpPrevIcon,oe=e.jumpNextIcon,ie=e.prevIcon,ae=e.nextIcon,ue=v.useRef(null),le=(0,s.Z)(10,{value:M,defaultValue:_}),ce=(0,u.Z)(le,2),se=ce[0],fe=ce[1],de=(0,s.Z)(1,{value:x,defaultValue:S,postState:function(e){return Math.max(1,Math.min(e,E(void 0,se,R)))}}),ve=(0,u.Z)(de,2),pe=ve[0],me=ve[1],he=v.useState(pe),ge=(0,u.Z)(he,2),be=ge[0],ye=ge[1];(0,v.useEffect)((function(){ye(pe)}),[pe]);var we=Math.max(1,pe-(L?3:5)),Ee=Math.min(E(void 0,se,R),pe+(L?3:5));function Ze(t,r){var o=t||v.createElement("button",{type:"button","aria-label":r,className:"".concat(n,"-item-link")});return"function"==typeof t&&(o=v.createElement(t,(0,a.Z)({},e))),o}function xe(e){var t=e.target.value,n=E(void 0,se,R);return""===t?t:Number.isNaN(Number(t))?be:t>=n?n:Number(t)}var Ce=R>se&&O;function Se(e){var t=xe(e);switch(t!==be&&ye(t),e.keyCode){case f.Z.ENTER:Ne(t);break;case f.Z.UP:Ne(t-1);break;case f.Z.DOWN:Ne(t+1)}}function Ne(e){if(function(e){return w(e)&&e!==pe&&w(R)&&R>0}(e)&&!X){var t=E(void 0,se,R),n=e;return e>t?n=t:e<1&&(n=1),n!==be&&ye(n),me(n),null==I||I(n,se),n}return pe}var Re=pe>1,Me=pe<E(void 0,se,R);function ke(){Re&&Ne(pe-1)}function _e(){Me&&Ne(pe+1)}function Pe(){Ne(we)}function Ie(){Ne(Ee)}function Ae(e,t){if("Enter"===e.key||e.charCode===f.Z.ENTER||e.keyCode===f.Z.ENTER){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];t.apply(void 0,r)}}function Te(e){"click"!==e.type&&e.keyCode!==f.Z.ENTER||Ne(be)}var De=null,ze=(0,d.Z)(e,{aria:!0,data:!0}),Oe=q&&v.createElement("li",{className:"".concat(n,"-total-text")},q(R,[0===R?0:(pe-1)*se+1,pe*se>R?R:pe*se])),Le=null,Ve=E(void 0,se,R);if(A&&R<=se)return null;var je=[],He={rootPrefixCls:n,onClick:Ne,onKeyPress:Ae,showTitle:j,itemRender:ne,page:-1},Fe=pe-1>0?pe-1:0,We=pe+1<Ve?pe+1:Ve,Be=O&&O.goButton,Ke="object"===(0,i.Z)(U)?U.readOnly:!U,Ye=Be,Ge=null;U&&(Be&&(Ye="boolean"==typeof Be?v.createElement("button",{type:"button",onClick:Te,onKeyUp:Te},B.jump_to_confirm):v.createElement("span",{onClick:Te,onKeyUp:Te},Be),Ye=v.createElement("li",{title:j?"".concat(B.jump_to).concat(pe,"/").concat(Ve):null,className:"".concat(n,"-simple-pager")},Ye)),Ge=v.createElement("li",{title:j?"".concat(pe,"/").concat(Ve):null,className:"".concat(n,"-simple-pager")},Ke?be:v.createElement("input",{type:"text","aria-label":B.jump_to,value:be,disabled:X,onKeyDown:function(e){e.keyCode!==f.Z.UP&&e.keyCode!==f.Z.DOWN||e.preventDefault()},onKeyUp:Se,onChange:Se,onBlur:function(e){Ne(xe(e))},size:3}),v.createElement("span",{className:"".concat(n,"-slash")},"/"),Ve));var Xe=L?1:2;if(Ve<=3+2*Xe){Ve||je.push(v.createElement(g,(0,o.Z)({},He,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var Ue=1;Ue<=Ve;Ue+=1)je.push(v.createElement(g,(0,o.Z)({},He,{key:Ue,page:Ue,active:pe===Ue})))}else{var qe=L?B.prev_3:B.prev_5,Je=L?B.next_3:B.next_5,Qe=ne(we,"jump-prev",Ze(re,"prev page")),$e=ne(Ee,"jump-next",Ze(oe,"next page"));z&&(De=Qe?v.createElement("li",{title:j?qe:null,key:"prev",onClick:Pe,tabIndex:0,onKeyDown:function(e){Ae(e,Pe)},className:c()("".concat(n,"-jump-prev"),(0,r.Z)({},"".concat(n,"-jump-prev-custom-icon"),!!re))},Qe):null,Le=$e?v.createElement("li",{title:j?Je:null,key:"next",onClick:Ie,tabIndex:0,onKeyDown:function(e){Ae(e,Ie)},className:c()("".concat(n,"-jump-next"),(0,r.Z)({},"".concat(n,"-jump-next-custom-icon"),!!oe))},$e):null);var et=Math.max(1,pe-Xe),tt=Math.min(pe+Xe,Ve);pe-1<=Xe&&(tt=1+2*Xe),Ve-pe<=Xe&&(et=Ve-2*Xe);for(var nt=et;nt<=tt;nt+=1)je.push(v.createElement(g,(0,o.Z)({},He,{key:nt,page:nt,active:pe===nt})));if(pe-1>=2*Xe&&3!==pe&&(je[0]=v.cloneElement(je[0],{className:c()("".concat(n,"-item-after-jump-prev"),je[0].props.className)}),je.unshift(De)),Ve-pe>=2*Xe&&pe!==Ve-2){var rt=je[je.length-1];je[je.length-1]=v.cloneElement(rt,{className:c()("".concat(n,"-item-before-jump-next"),rt.props.className)}),je.push(Le)}1!==et&&je.unshift(v.createElement(g,(0,o.Z)({},He,{key:1,page:1}))),tt!==Ve&&je.push(v.createElement(g,(0,o.Z)({},He,{key:Ve,page:Ve})))}var ot=function(e){var t=ne(e,"prev",Ze(ie,"prev page"));return v.isValidElement(t)?v.cloneElement(t,{disabled:!Re}):t}(Fe);if(ot){var it=!Re||!Ve;ot=v.createElement("li",{title:j?B.prev_page:null,onClick:ke,tabIndex:it?null:0,onKeyDown:function(e){Ae(e,ke)},className:c()("".concat(n,"-prev"),(0,r.Z)({},"".concat(n,"-disabled"),it)),"aria-disabled":it},ot)}var at,ut,lt=function(e){var t=ne(e,"next",Ze(ae,"next page"));return v.isValidElement(t)?v.cloneElement(t,{disabled:!Me}):t}(We);lt&&(U?(at=!Me,ut=Re?0:null):ut=(at=!Me||!Ve)?null:0,lt=v.createElement("li",{title:j?B.next_page:null,onClick:_e,tabIndex:ut,onKeyDown:function(e){Ae(e,_e)},className:c()("".concat(n,"-next"),(0,r.Z)({},"".concat(n,"-disabled"),at)),"aria-disabled":at},lt));var ct=c()(n,Z,(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(n,"-start"),"start"===T),"".concat(n,"-center"),"center"===T),"".concat(n,"-end"),"end"===T),"".concat(n,"-simple"),U),"".concat(n,"-disabled"),X));return v.createElement("ul",(0,o.Z)({className:ct,style:K,ref:ue},ze),Oe,ot,U?Ge:je,lt,v.createElement(h,{locale:B,rootPrefixCls:n,disabled:X,selectPrefixCls:m,changeSize:function(e){var t=E(e,se,R),n=pe>t&&0!==t?t:pe;fe(e),ye(n),null==F||F(pe,e),me(n),null==I||I(n,e)},pageSize:se,pageSizeOptions:ee,quickGo:Ce?Ne:null,goButton:Ye,showSizeChanger:Q,sizeChangerRender:$}))}},29301:function(e,t,n){n.d(t,{Z:function(){return x}});var r=n(54476),o=n(59301),i=n(11592),a=(n(48736),n(33885)),u=n(76190),l=n(76846),c=n(8654),s=o.createContext(null);var f=n(76374),d=new Map;var v=new f.Z((function(e){e.forEach((function(e){var t,n=e.target;null===(t=d.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var p=n(67732),m=n(83652),h=n(42403),g=n(158),b=function(e){(0,h.Z)(n,e);var t=(0,g.Z)(n);function n(){return(0,p.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);function y(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),f=o.useRef(null),p=o.useContext(s),m="function"==typeof n,h=m?n(i):n,g=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),y=!m&&o.isValidElement(h)&&(0,c.Yr)(h),w=y?(0,c.C4)(h):null,E=(0,c.x1)(w,i),Z=function(){var e;return(0,l.ZP)(i.current)||(i.current&&"object"===(0,u.Z)(i.current)?(0,l.ZP)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||(0,l.ZP)(f.current)};o.useImperativeHandle(t,(function(){return Z()}));var x=o.useRef(e);x.current=e;var C=o.useCallback((function(e){var t=x.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,u=o.height,l=e.offsetWidth,c=e.offsetHeight,s=Math.floor(i),f=Math.floor(u);if(g.current.width!==s||g.current.height!==f||g.current.offsetWidth!==l||g.current.offsetHeight!==c){var d={width:s,height:f,offsetWidth:l,offsetHeight:c};g.current=d;var v=l===Math.round(i)?i:l,m=c===Math.round(u)?u:c,h=(0,a.Z)((0,a.Z)({},d),{},{offsetWidth:v,offsetHeight:m});null==p||p(h,e,r),n&&Promise.resolve().then((function(){n(h,e)}))}}),[]);return o.useEffect((function(){var e,t,n=Z();return n&&!r&&(e=n,t=C,d.has(e)||(d.set(e,new Set),v.observe(e)),d.get(e).add(t)),function(){return function(e,t){d.has(e)&&(d.get(e).delete(t),d.get(e).size||(v.unobserve(e),d.delete(e)))}(n,C)}}),[i.current,r]),o.createElement(b,{ref:f},y?o.cloneElement(h,{ref:E}):h)}var w=o.forwardRef(y);function E(e,t){var n=e.children;return("function"==typeof n?[n]:(0,i.Z)(n)).map((function(n,i){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return o.createElement(w,(0,r.Z)({},e,{key:a,ref:0===i?t:void 0}),n)}))}var Z=o.forwardRef(E);Z.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(s),u=o.useCallback((function(e,t,o){r.current+=1;var u=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){u===r.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,o)}),[n,a]);return o.createElement(s.Provider,{value:u},t)};var x=Z},6551:function(e,t,n){n.d(t,{ZP:function(){return l}});var r=n(42978),o=n(59301),i=n(47273),a=0,u=(0,i.Z)();function l(e){var t=o.useState(),n=(0,r.Z)(t,2),i=n[0],l=n[1];return o.useEffect((function(){var e;l("rc_select_".concat((u?(e=a,a+=1):e="TEST_OR_SSR",e)))}),[]),e||i}},37463:function(e,t,n){n.d(t,{Ac:function(){return ee},Xo:function(){return ne},Wx:function(){return oe},ZP:function(){return Se},lk:function(){return w}});var r=n(54476),o=n(94480),i=n(20068),a=n(33885),u=n(42978),l=n(75931),c=n(76190),s=n(18929),f=n(48736),d=n(59301),v=n(92310),p=n.n(v),m=n(34280),h=n(49658),g=n(8654),b=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,o=e.children,i=e.onMouseDown,a=e.onClick,u="function"==typeof n?n(r):n;return d.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==i||i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==u?u:d.createElement("span",{className:p()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},o))},y=d.createContext(null);function w(){return d.useContext(y)}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);function r(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return d.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},r]}var Z=n(10228);var x=n(26112),C=n(11780);var S=function(e,t,n){var r=(0,a.Z)((0,a.Z)({},e),n?t:{});return Object.keys(t).forEach((function(n){var o=t[n];"function"==typeof o&&(r[n]=function(){for(var t,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o.apply(void 0,i),null===(t=e[n])||void 0===t?void 0:t.call.apply(t,[e].concat(i))})})),r},N=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],R=function(e,t){var n=e.prefixCls,r=e.id,o=e.inputElement,i=e.autoFocus,u=e.autoComplete,c=e.editable,s=e.activeDescendantId,v=e.value,m=e.open,h=e.attrs,b=(0,l.Z)(e,N),y=o||d.createElement("input",null),w=y,E=w.ref,Z=w.props;return(0,f.Kp)(!("maxLength"in y.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),y=d.cloneElement(y,(0,a.Z)((0,a.Z)((0,a.Z)({type:"search"},S(b,Z,!0)),{},{id:r,ref:(0,g.sQ)(t,E),autoComplete:u||"off",autoFocus:i,className:p()("".concat(n,"-selection-search-input"),null==Z?void 0:Z.className),role:"combobox","aria-expanded":m||!1,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":m?s:void 0},h),{},{value:c?v:"",readOnly:!c,unselectable:c?null:"on",style:(0,a.Z)((0,a.Z)({},Z.style),{},{opacity:c?null:0})}))};var M=d.forwardRef(R);function k(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var _="undefined"!=typeof window&&window.document&&window.document.documentElement;function P(e){return["string","number"].includes((0,c.Z)(e))}function I(e){var t=void 0;return e&&(P(e.title)?t=e.title.toString():P(e.label)&&(t=e.label.toString())),t}function A(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var T=function(e){e.preventDefault(),e.stopPropagation()},D=function(e){var t,n,r=e.id,o=e.prefixCls,a=e.values,l=e.open,c=e.searchValue,s=e.autoClearSearchValue,f=e.inputRef,v=e.placeholder,m=e.disabled,h=e.mode,g=e.showSearch,y=e.autoFocus,w=e.autoComplete,E=e.activeDescendantId,Z=e.tabIndex,S=e.removeIcon,N=e.maxTagCount,R=e.maxTagTextLength,k=e.maxTagPlaceholder,P=void 0===k?function(e){return"+ ".concat(e.length," ...")}:k,D=e.tagRender,z=e.onToggleOpen,O=e.onRemove,L=e.onInputChange,V=e.onInputPaste,j=e.onInputKeyDown,H=e.onInputMouseDown,F=e.onInputCompositionStart,W=e.onInputCompositionEnd,B=e.onInputBlur,K=d.useRef(null),Y=(0,d.useState)(0),G=(0,u.Z)(Y,2),X=G[0],U=G[1],q=(0,d.useState)(!1),J=(0,u.Z)(q,2),Q=J[0],$=J[1],ee="".concat(o,"-selection"),te=l||"multiple"===h&&!1===s||"tags"===h?c:"",ne="tags"===h||"multiple"===h&&!1===s||g&&(l||Q);t=function(){U(K.current.scrollWidth)},n=[te],_?d.useLayoutEffect(t,n):d.useEffect(t,n);var re=function(e,t,n,r,o){return d.createElement("span",{title:I(e),className:p()("".concat(ee,"-item"),(0,i.Z)({},"".concat(ee,"-item-disabled"),n))},d.createElement("span",{className:"".concat(ee,"-item-content")},t),r&&d.createElement(b,{className:"".concat(ee,"-item-remove"),onMouseDown:T,onClick:o,customizeIcon:S},"×"))},oe=function(e,t,n,r,o,i){return d.createElement("span",{onMouseDown:function(e){T(e),z(!l)}},D({label:t,value:e,disabled:n,closable:r,onClose:o,isMaxTag:!!i}))},ie=d.createElement("div",{className:"".concat(ee,"-search"),style:{width:X},onFocus:function(){$(!0)},onBlur:function(){$(!1)}},d.createElement(M,{ref:f,open:l,prefixCls:o,id:r,inputElement:null,disabled:m,autoFocus:y,autoComplete:w,editable:ne,activeDescendantId:E,value:te,onKeyDown:j,onMouseDown:H,onChange:L,onPaste:V,onCompositionStart:F,onCompositionEnd:W,onBlur:B,tabIndex:Z,attrs:(0,x.Z)(e,!0)}),d.createElement("span",{ref:K,className:"".concat(ee,"-search-mirror"),"aria-hidden":!0},te," ")),ae=d.createElement(C.Z,{prefixCls:"".concat(ee,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!m&&!t,i=n;if("number"==typeof R&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>R&&(i="".concat(a.slice(0,R),"..."))}var u=function(t){t&&t.stopPropagation(),O(e)};return"function"==typeof D?oe(r,i,t,o,u):re(e,i,t,o,u)},renderRest:function(e){if(!a.length)return null;var t="function"==typeof P?P(e):P;return"function"==typeof D?oe(void 0,t,!1,!1,void 0,!0):re({title:t},t,!1)},suffix:ie,itemKey:A,maxCount:N});return d.createElement("span",{className:"".concat(ee,"-wrap")},ae,!a.length&&!te&&d.createElement("span",{className:"".concat(ee,"-placeholder")},v))},z=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,a=e.autoFocus,l=e.autoComplete,c=e.activeDescendantId,s=e.mode,f=e.open,v=e.values,p=e.placeholder,m=e.tabIndex,h=e.showSearch,g=e.searchValue,b=e.activeValue,y=e.maxLength,w=e.onInputKeyDown,E=e.onInputMouseDown,Z=e.onInputChange,C=e.onInputPaste,S=e.onInputCompositionStart,N=e.onInputCompositionEnd,R=e.onInputBlur,k=e.title,_=d.useState(!1),P=(0,u.Z)(_,2),A=P[0],T=P[1],D="combobox"===s,z=D||h,O=v[0],L=g||"";D&&b&&!A&&(L=b),d.useEffect((function(){D&&T(!1)}),[D,b]);var V=!("combobox"!==s&&!f&&!h)&&!!L,j=void 0===k?I(O):k,H=d.useMemo((function(){return O?null:d.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:V?{visibility:"hidden"}:void 0},p)}),[O,V,p,n]);return d.createElement("span",{className:"".concat(n,"-selection-wrap")},d.createElement("span",{className:"".concat(n,"-selection-search")},d.createElement(M,{ref:o,prefixCls:n,id:r,open:f,inputElement:t,disabled:i,autoFocus:a,autoComplete:l,editable:z,activeDescendantId:c,value:L,onKeyDown:w,onMouseDown:E,onChange:function(e){T(!0),Z(e)},onPaste:C,onCompositionStart:S,onCompositionEnd:N,onBlur:R,tabIndex:m,attrs:(0,x.Z)(e,!0),maxLength:D?y:void 0})),!D&&O?d.createElement("span",{className:"".concat(n,"-selection-item"),title:j,style:V?{visibility:"hidden"}:void 0},O.label):null,H)},O=function(e,t){var n=(0,d.useRef)(null),o=(0,d.useRef)(!1),i=e.prefixCls,a=e.open,l=e.mode,c=e.showSearch,s=e.tokenWithEnter,f=e.disabled,v=e.prefix,p=e.autoClearSearchValue,m=e.onSearch,h=e.onSearchSubmit,g=e.onToggleOpen,b=e.onInputKeyDown,y=e.onInputBlur,w=e.domRef;d.useImperativeHandle(t,(function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}}));var x=E(0),C=(0,u.Z)(x,2),S=C[0],N=C[1],R=(0,d.useRef)(null),M=function(e){!1!==m(e,!0,o.current)&&g(!0)},k={inputRef:n,onInputKeyDown:function(e){var t,r=e.which,i=n.current instanceof HTMLTextAreaElement;(i||!a||r!==Z.Z.UP&&r!==Z.Z.DOWN||e.preventDefault(),b&&b(e),r!==Z.Z.ENTER||"tags"!==l||o.current||a||null==h||h(e.target.value),i&&!a&&~[Z.Z.UP,Z.Z.DOWN,Z.Z.LEFT,Z.Z.RIGHT].indexOf(r))||(t=r)&&![Z.Z.ESC,Z.Z.SHIFT,Z.Z.BACKSPACE,Z.Z.TAB,Z.Z.WIN_KEY,Z.Z.ALT,Z.Z.META,Z.Z.WIN_KEY_RIGHT,Z.Z.CTRL,Z.Z.SEMICOLON,Z.Z.EQUALS,Z.Z.CAPS_LOCK,Z.Z.CONTEXT_MENU,Z.Z.F1,Z.Z.F2,Z.Z.F3,Z.Z.F4,Z.Z.F5,Z.Z.F6,Z.Z.F7,Z.Z.F8,Z.Z.F9,Z.Z.F10,Z.Z.F11,Z.Z.F12].includes(t)&&g(!0)},onInputMouseDown:function(){N(!0)},onInputChange:function(e){var t=e.target.value;if(s&&R.current&&/[\r\n]/.test(R.current)){var n=R.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,R.current)}R.current=null,M(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");R.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==l&&M(e.target.value)},onInputBlur:y},_="multiple"===l||"tags"===l?d.createElement(D,(0,r.Z)({},e,k)):d.createElement(z,(0,r.Z)({},e,k));return d.createElement("div",{ref:w,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=S();e.target===n.current||t||"combobox"===l&&f||e.preventDefault(),("combobox"===l||c&&t)&&a||(a&&!1!==p&&m("",!0,!1),g())}},v&&d.createElement("div",{className:"".concat(i,"-prefix")},v),_)};var L=d.forwardRef(O),V=n(65030),j=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],H=function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),u=e.children,c=e.popupElement,s=e.animation,f=e.transitionName,v=e.dropdownStyle,m=e.dropdownClassName,h=e.direction,g=void 0===h?"ltr":h,b=e.placement,y=e.builtinPlacements,w=e.dropdownMatchSelectWidth,E=e.dropdownRender,Z=e.dropdownAlign,x=e.getPopupContainer,C=e.empty,S=e.getTriggerDOMNode,N=e.onPopupVisibleChange,R=e.onPopupMouseEnter,M=(0,l.Z)(e,j),k="".concat(n,"-dropdown"),_=c;E&&(_=E(c));var P=d.useMemo((function(){return y||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(w)}),[y,w]),I=s?"".concat(k,"-").concat(s):f,A="number"==typeof w,T=d.useMemo((function(){return A?null:!1===w?"minWidth":"width"}),[w,A]),D=v;A&&(D=(0,a.Z)((0,a.Z)({},D),{},{width:w}));var z=d.useRef(null);return d.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=z.current)||void 0===e?void 0:e.popupElement}}})),d.createElement(V.Z,(0,r.Z)({},M,{showAction:N?["click"]:[],hideAction:N?["click"]:[],popupPlacement:b||("rtl"===g?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:k,popupTransitionName:I,popup:d.createElement("div",{onMouseEnter:R},_),ref:z,stretch:T,popupAlign:Z,popupVisible:o,getPopupContainer:x,popupClassName:p()(m,(0,i.Z)({},"".concat(k,"-empty"),C)),popupStyle:D,getTriggerDOMNode:S,onPopupVisibleChange:N}),u)};var F=d.forwardRef(H),W=n(66712);function B(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function K(e){return void 0!==e&&!Number.isNaN(e)}function Y(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function G(e){var t=(0,a.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,f.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var X=d.createContext(null);function U(e){var t=e.visible,n=e.values;if(!t)return null;return d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes((0,c.Z)(t))?t:n})).join(", ")),n.length>50?", ...":null)}var q=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],J=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Q=function(e){return"tags"===e||"multiple"===e},$=d.forwardRef((function(e,t){var n,f=e.id,v=e.prefixCls,w=e.className,Z=e.showSearch,x=e.tagRender,C=e.direction,S=e.omitDomProps,N=e.displayValues,R=e.onDisplayValuesChange,M=e.emptyOptions,k=e.notFoundContent,_=void 0===k?"Not Found":k,P=e.onClear,I=e.mode,A=e.disabled,T=e.loading,D=e.getInputElement,z=e.getRawInputElement,O=e.open,V=e.defaultOpen,j=e.onDropdownVisibleChange,H=e.activeValue,B=e.onActiveValueChange,Y=e.activeDescendantId,G=e.searchValue,$=e.autoClearSearchValue,ee=e.onSearch,te=e.onSearchSplit,ne=e.tokenSeparators,re=e.allowClear,oe=e.prefix,ie=e.suffixIcon,ae=e.clearIcon,ue=e.OptionList,le=e.animation,ce=e.transitionName,se=e.dropdownStyle,fe=e.dropdownClassName,de=e.dropdownMatchSelectWidth,ve=e.dropdownRender,pe=e.dropdownAlign,me=e.placement,he=e.builtinPlacements,ge=e.getPopupContainer,be=e.showAction,ye=void 0===be?[]:be,we=e.onFocus,Ee=e.onBlur,Ze=e.onKeyUp,xe=e.onKeyDown,Ce=e.onMouseDown,Se=(0,l.Z)(e,q),Ne=Q(I),Re=(void 0!==Z?Z:Ne)||"combobox"===I,Me=(0,a.Z)({},Se);J.forEach((function(e){delete Me[e]})),null==S||S.forEach((function(e){delete Me[e]}));var ke=d.useState(!1),_e=(0,u.Z)(ke,2),Pe=_e[0],Ie=_e[1];d.useEffect((function(){Ie((0,h.Z)())}),[]);var Ae=d.useRef(null),Te=d.useRef(null),De=d.useRef(null),ze=d.useRef(null),Oe=d.useRef(null),Le=d.useRef(!1),Ve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=d.useState(!1),n=(0,u.Z)(t,2),r=n[0],o=n[1],i=d.useRef(null),a=function(){window.clearTimeout(i.current)};return d.useEffect((function(){return a}),[]),[r,function(t,n){a(),i.current=window.setTimeout((function(){o(t),n&&n()}),e)},a]}(),je=(0,u.Z)(Ve,3),He=je[0],Fe=je[1],We=je[2];d.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=ze.current)||void 0===e?void 0:e.focus,blur:null===(t=ze.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Oe.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:Ae.current||Te.current}}));var Be=d.useMemo((function(){var e;if("combobox"!==I)return G;var t=null===(e=N[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[G,I,N]),Ke="combobox"===I&&"function"==typeof D&&D()||null,Ye="function"==typeof z&&z(),Ge=(0,g.x1)(Te,null==Ye||null===(n=Ye.props)||void 0===n?void 0:n.ref),Xe=d.useState(!1),Ue=(0,u.Z)(Xe,2),qe=Ue[0],Je=Ue[1];(0,m.Z)((function(){Je(!0)}),[]);var Qe=(0,s.Z)(!1,{defaultValue:V,value:O}),$e=(0,u.Z)(Qe,2),et=$e[0],tt=$e[1],nt=!!qe&&et,rt=!_&&M;(A||rt&&nt&&"combobox"===I)&&(nt=!1);var ot=!rt&&nt,it=d.useCallback((function(e){var t=void 0!==e?e:!nt;A||(tt(t),nt!==t&&(null==j||j(t)))}),[A,nt,tt,j]),at=d.useMemo((function(){return(ne||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ne]),ut=d.useContext(X)||{},lt=ut.maxCount,ct=ut.rawValues,st=function(e,t,n){if(!(Ne&&K(lt)&&(null==ct?void 0:ct.size)>=lt)){var r=!0,i=e;null==B||B(null);var a=function(e,t,n){if(!t||!t.length)return null;var r=!1,i=function e(t,n){var i=(0,W.Z)(n),a=i[0],u=i.slice(1);if(!a)return[t];var l=t.split(a);return r=r||l.length>1,l.reduce((function(t,n){return[].concat((0,o.Z)(t),(0,o.Z)(e(n,u)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?i.slice(0,n):i:null}(e,ne,K(lt)?lt-ct.size:void 0),u=n?null:a;return"combobox"!==I&&u&&(i="",null==te||te(u),it(!1),r=!1),ee&&Be!==i&&ee(i,{source:t?"typing":"effect"}),r}};d.useEffect((function(){nt||Ne||"combobox"===I||st("",!1,!1)}),[nt]),d.useEffect((function(){et&&A&&tt(!1),A&&!Le.current&&Fe(!1)}),[A]);var ft=E(),dt=(0,u.Z)(ft,2),vt=dt[0],pt=dt[1],mt=d.useRef(!1),ht=d.useRef(!1),gt=[];d.useEffect((function(){return function(){gt.forEach((function(e){return clearTimeout(e)})),gt.splice(0,gt.length)}}),[]);var bt,yt=d.useState({}),wt=(0,u.Z)(yt,2)[1];Ye&&(bt=function(e){it(e)}),function(e,t,n,r){var o=d.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect((function(){function t(t){var n;if(null===(n=o.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),o.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[Ae.current,null===(e=De.current)||void 0===e?void 0:e.getPopupElement()]}),ot,it,!!Ye);var Et,Zt=d.useMemo((function(){return(0,a.Z)((0,a.Z)({},e),{},{notFoundContent:_,open:nt,triggerOpen:ot,id:f,showSearch:Re,multiple:Ne,toggleOpen:it})}),[e,_,ot,nt,f,Re,Ne,it]),xt=!!ie||T;xt&&(Et=d.createElement(b,{className:p()("".concat(v,"-arrow"),(0,i.Z)({},"".concat(v,"-arrow-loading"),T)),customizeIcon:ie,customizeIconProps:{loading:T,searchValue:Be,open:nt,focused:He,showSearch:Re}}));var Ct,St=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,l=d.useMemo((function(){return"object"===(0,c.Z)(r)?r.clearIcon:o||void 0}),[r,o]),s=d.useMemo((function(){return!(i||!r||!n.length&&!a||"combobox"===u&&""===a)}),[r,i,n.length,a,u]);return{allowClear:s,clearIcon:d.createElement(b,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}(v,(function(){var e;null==P||P(),null===(e=ze.current)||void 0===e||e.focus(),R([],{type:"clear",values:N}),st("",!1,!1)}),N,re,ae,A,Be,I),Nt=St.allowClear,Rt=St.clearIcon,Mt=d.createElement(ue,{ref:Oe}),kt=p()(v,w,(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},"".concat(v,"-focused"),He),"".concat(v,"-multiple"),Ne),"".concat(v,"-single"),!Ne),"".concat(v,"-allow-clear"),re),"".concat(v,"-show-arrow"),xt),"".concat(v,"-disabled"),A),"".concat(v,"-loading"),T),"".concat(v,"-open"),nt),"".concat(v,"-customize-input"),Ke),"".concat(v,"-show-search"),Re)),_t=d.createElement(F,{ref:De,disabled:A,prefixCls:v,visible:ot,popupElement:Mt,animation:le,transitionName:ce,dropdownStyle:se,dropdownClassName:fe,direction:C,dropdownMatchSelectWidth:de,dropdownRender:ve,dropdownAlign:pe,placement:me,builtinPlacements:he,getPopupContainer:ge,empty:M,getTriggerDOMNode:function(e){return Te.current||e},onPopupVisibleChange:bt,onPopupMouseEnter:function(){wt({})}},Ye?d.cloneElement(Ye,{ref:Ge}):d.createElement(L,(0,r.Z)({},e,{domRef:Te,prefixCls:v,inputElement:Ke,ref:ze,id:f,prefix:oe,showSearch:Re,autoClearSearchValue:$,mode:I,activeDescendantId:Y,tagRender:x,values:N,open:nt,onToggleOpen:it,activeValue:H,searchValue:Be,onSearch:st,onSearchSubmit:function(e){e&&e.trim()&&ee(e,{source:"submit"})},onRemove:function(e){var t=N.filter((function(t){return t!==e}));R(t,{type:"remove",values:[e]})},tokenWithEnter:at,onInputBlur:function(){mt.current=!1}})));return Ct=Ye?_t:d.createElement("div",(0,r.Z)({className:kt},Me,{ref:Ae,onMouseDown:function(e){var t,n=e.target,r=null===(t=De.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=gt.indexOf(o);-1!==t&>.splice(t,1),We(),Pe||r.contains(document.activeElement)||null===(e=ze.current)||void 0===e||e.focus()}));gt.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),u=1;u<i;u++)a[u-1]=arguments[u];null==Ce||Ce.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=vt(),r=e.key,i="Enter"===r;if(i&&("combobox"!==I&&e.preventDefault(),nt||it(!0)),pt(!!Be),"Backspace"===r&&!n&&Ne&&!Be&&N.length){for(var a=(0,o.Z)(N),u=null,l=a.length-1;l>=0;l-=1){var c=a[l];if(!c.disabled){a.splice(l,1),u=c;break}}u&&R(a,{type:"remove",values:[u]})}for(var s=arguments.length,f=new Array(s>1?s-1:0),d=1;d<s;d++)f[d-1]=arguments[d];!nt||i&&mt.current||(i&&(mt.current=!0),null===(t=Oe.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(f))),null==xe||xe.apply(void 0,[e].concat(f))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;nt&&(null===(o=Oe.current)||void 0===o||o.onKeyUp.apply(o,[e].concat(n))),"Enter"===e.key&&(mt.current=!1),null==Ze||Ze.apply(void 0,[e].concat(n))},onFocus:function(){Fe(!0),A||(we&&!ht.current&&we.apply(void 0,arguments),ye.includes("focus")&&it(!0)),ht.current=!0},onBlur:function(){Le.current=!0,Fe(!1,(function(){ht.current=!1,Le.current=!1,it(!1)})),A||(Be&&("tags"===I?ee(Be,{source:"submit"}):"multiple"===I&&ee("",{source:"blur"})),Ee&&Ee.apply(void 0,arguments))}}),d.createElement(U,{visible:He&&!nt,values:N}),_t,Et,Nt&&Rt),d.createElement(y.Provider,{value:Zt},Ct)}));var ee=$,te=function(){return null};te.isSelectOptGroup=!0;var ne=te,re=function(){return null};re.isSelectOption=!0;var oe=re,ie=n(80547),ae=n(2738),ue=n(48911);var le=["disabled","title","children","style","className"];function ce(e){return"string"==typeof e||"number"==typeof e}var se=function(e,t){var n=w(),a=n.prefixCls,c=n.id,s=n.open,f=n.multiple,v=n.mode,m=n.searchValue,h=n.toggleOpen,g=n.notFoundContent,y=n.onPopupScroll,E=d.useContext(X),C=E.maxCount,S=E.flattenOptions,N=E.onActiveValue,R=E.defaultActiveFirstOption,M=E.onSelect,k=E.menuItemSelectedIcon,_=E.rawValues,P=E.fieldNames,I=E.virtual,A=E.direction,T=E.listHeight,D=E.listItemHeight,z=E.optionRender,O="".concat(a,"-item"),L=(0,ie.Z)((function(){return S}),[s,S],(function(e,t){return t[0]&&e[1]!==t[1]})),V=d.useRef(null),j=d.useMemo((function(){return f&&K(C)&&(null==_?void 0:_.size)>=C}),[f,C,null==_?void 0:_.size]),H=function(e){e.preventDefault()},F=function(e){var t;null===(t=V.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},W=d.useCallback((function(e){return"combobox"!==v&&_.has(e)}),[v,(0,o.Z)(_).toString(),_.size]),B=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=L.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=L[o]||{},a=i.group,u=i.data;if(!a&&(null==u||!u.disabled)&&(W(u.value)||!j))return o}return-1},Y=d.useState((function(){return B(0)})),G=(0,u.Z)(Y,2),U=G[0],q=G[1],J=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];q(e);var n={source:t?"keyboard":"mouse"},r=L[e];r?N(r.value,e,n):N(null,-1,n)};(0,d.useEffect)((function(){J(!1!==R?B(0):-1)}),[L.length,m]);var Q=d.useCallback((function(e){return"combobox"===v?String(e).toLowerCase()===m.toLowerCase():_.has(e)}),[v,m,(0,o.Z)(_).toString(),_.size]);(0,d.useEffect)((function(){var e,t=setTimeout((function(){if(!f&&s&&1===_.size){var e=Array.from(_)[0],t=L.findIndex((function(t){var n=t.data;return m?String(n.value).startsWith(m):n.value===e}));-1!==t&&(J(t),F(t))}}));s&&(null===(e=V.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[s,m]);var $=function(e){void 0!==e&&M(e,{selected:!_.has(e)}),f||h(!1)};if(d.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Z.Z.N:case Z.Z.P:case Z.Z.UP:case Z.Z.DOWN:var r=0;if(t===Z.Z.UP?r=-1:t===Z.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Z.Z.N?r=1:t===Z.Z.P&&(r=-1)),0!==r){var o=B(U+r,r);F(o),J(o,!0)}break;case Z.Z.TAB:case Z.Z.ENTER:var i,a=L[U];!a||null!=a&&null!==(i=a.data)&&void 0!==i&&i.disabled||j?$(void 0):$(a.value),s&&e.preventDefault();break;case Z.Z.ESC:h(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){F(e)}}})),0===L.length)return d.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(O,"-empty"),onMouseDown:H},g);var ee=Object.keys(P).map((function(e){return P[e]})),te=function(e){return e.label};function ne(e,t){return{role:e.group?"presentation":"option",id:"".concat(c,"_list_").concat(t)}}var re=function(e){var t=L[e];if(!t)return null;var n=t.data||{},o=n.value,i=t.group,a=(0,x.Z)(n,!0),u=te(t);return t?d.createElement("div",(0,r.Z)({"aria-label":"string"!=typeof u||i?null:u},a,{key:e},ne(t,e),{"aria-selected":Q(o)}),o):null},oe={role:"listbox",id:"".concat(c,"_list")};return d.createElement(d.Fragment,null,I&&d.createElement("div",(0,r.Z)({},oe,{style:{height:0,width:0,overflow:"hidden"}}),re(U-1),re(U),re(U+1)),d.createElement(ue.Z,{itemKey:"key",ref:V,data:L,height:T,itemHeight:D,fullHeight:!1,onMouseDown:H,onScroll:y,virtual:I,direction:A,innerProps:I?null:oe},(function(e,t){var n=e.group,o=e.groupOption,a=e.data,u=e.label,c=e.value,s=a.key;if(n){var f,v=null!==(f=a.title)&&void 0!==f?f:ce(u)?u.toString():void 0;return d.createElement("div",{className:p()(O,"".concat(O,"-group"),a.className),title:v},void 0!==u?u:s)}var m=a.disabled,h=a.title,g=(a.children,a.style),y=a.className,w=(0,l.Z)(a,le),E=(0,ae.Z)(w,ee),Z=W(c),C=m||!Z&&j,S="".concat(O,"-option"),N=p()(O,S,y,(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},"".concat(S,"-grouped"),o),"".concat(S,"-active"),U===t&&!C),"".concat(S,"-disabled"),C),"".concat(S,"-selected"),Z)),R=te(e),M=!k||"function"==typeof k||Z,_="number"==typeof R?R:R||c,P=ce(_)?_.toString():void 0;return void 0!==h&&(P=h),d.createElement("div",(0,r.Z)({},(0,x.Z)(E),I?{}:ne(e,t),{"aria-selected":Q(c),className:N,title:P,onMouseMove:function(){U===t||C||J(t)},onClick:function(){C||$(c)},style:g}),d.createElement("div",{className:"".concat(S,"-content")},"function"==typeof z?z(e,{index:t}):_),d.isValidElement(k)||Z,M&&d.createElement(b,{className:"".concat(O,"-option-state"),customizeIcon:k,customizeIconProps:{value:c,disabled:C,isSelected:Z}},Z?"✓":null))})))};var fe=d.forwardRef(se);function de(e,t){return k(e).join("").toUpperCase().includes(t)}var ve=n(6551),pe=n(11592),me=["children","value"],he=["children"];function ge(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,u=(0,l.Z)(r,me);return(0,a.Z)({key:n,value:void 0!==i?i:n,children:o},u)}function be(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,pe.Z)(e).map((function(e,n){if(!d.isValidElement(e)||!e.type)return null;var r=e,o=r.type.isSelectOptGroup,i=r.key,u=r.props,c=u.children,s=(0,l.Z)(u,he);return t||!o?ge(e):(0,a.Z)((0,a.Z)({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},s),{},{options:be(c)})})).filter((function(e){return e}))}var ye=function(e,t,n,r,o){return d.useMemo((function(){var i=e;!e&&(i=be(t));var a=new Map,u=new Map,l=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var s=t[c];!s[n.options]||i?(a.set(s[n.value],s),l(u,s,n.label),l(u,s,r),l(u,s,o)):e(s[n.options],!0)}}(i),{options:i,valueOptions:a,labelOptions:u}}),[e,t,n,r,o])};function we(e){var t=d.useRef();t.current=e;var n=d.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var Ee=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Ze=["inputValue"];var xe=d.forwardRef((function(e,t){var n=e.id,f=e.mode,v=e.prefixCls,p=void 0===v?"rc-select":v,m=e.backfill,h=e.fieldNames,g=e.inputValue,b=e.searchValue,y=e.onSearch,w=e.autoClearSearchValue,E=void 0===w||w,Z=e.onSelect,x=e.onDeselect,C=e.dropdownMatchSelectWidth,S=void 0===C||C,N=e.filterOption,R=e.filterSort,M=e.optionFilterProp,_=e.optionLabelProp,P=e.options,I=e.optionRender,A=e.children,T=e.defaultActiveFirstOption,D=e.menuItemSelectedIcon,z=e.virtual,O=e.direction,L=e.listHeight,V=void 0===L?200:L,j=e.listItemHeight,H=void 0===j?20:j,F=e.labelRender,W=e.value,K=e.defaultValue,U=e.labelInValue,q=e.onChange,J=e.maxCount,$=(0,l.Z)(e,Ee),te=(0,ve.ZP)(n),ne=Q(f),re=!(P||!A),oe=d.useMemo((function(){return(void 0!==N||"combobox"!==f)&&N}),[N,f]),ie=d.useMemo((function(){return Y(h,re)}),[JSON.stringify(h),re]),ae=(0,s.Z)("",{value:void 0!==b?b:g,postState:function(e){return e||""}}),ue=(0,u.Z)(ae,2),le=ue[0],ce=ue[1],se=ye(P,A,ie,M,_),pe=se.valueOptions,me=se.labelOptions,he=se.options,ge=d.useCallback((function(e){return k(e).map((function(e){var t,n,r,o,i,a;(function(e){return!e||"object"!==(0,c.Z)(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r);var u,l=pe.get(t);l&&(void 0===n&&(n=null==l?void 0:l[_||ie.label]),void 0===r&&(r=null!==(u=null==l?void 0:l.key)&&void 0!==u?u:t),o=null==l?void 0:l.disabled,i=null==l?void 0:l.title);return{label:n,value:t,key:r,disabled:o,title:i}}))}),[ie,_,pe]),be=(0,s.Z)(K,{value:W}),xe=(0,u.Z)(be,2),Ce=xe[0],Se=xe[1],Ne=d.useMemo((function(){var e,t=ge(ne&&null===Ce?[]:Ce);return"combobox"===f&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[Ce,ge,f,ne]),Re=function(e,t){var n=d.useRef({values:new Map,options:new Map});return[d.useMemo((function(){var r=n.current,o=r.values,i=r.options,u=e.map((function(e){var t;return void 0===e.label?(0,a.Z)((0,a.Z)({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,c=new Map;return u.forEach((function(e){l.set(e.value,e),c.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=l,n.current.options=c,u}),[e,t]),d.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(Ne,pe),Me=(0,u.Z)(Re,2),ke=Me[0],_e=Me[1],Pe=d.useMemo((function(){if(!f&&1===ke.length){var e=ke[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return ke.map((function(e){var t;return(0,a.Z)((0,a.Z)({},e),{},{label:null!==(t="function"==typeof F?F(e):e.label)&&void 0!==t?t:e.value})}))}),[f,ke,F]),Ie=d.useMemo((function(){return new Set(ke.map((function(e){return e.value})))}),[ke]);d.useEffect((function(){if("combobox"===f){var e,t=null===(e=ke[0])||void 0===e?void 0:e.value;ce(function(e){return null!=e}(t)?String(t):"")}}),[ke]);var Ae=we((function(e,t){var n=null!=t?t:e;return(0,i.Z)((0,i.Z)({},ie.value,e),ie.label,n)})),Te=function(e,t,n,r,o){return d.useMemo((function(){if(!n||!1===r)return e;var u=t.options,l=t.label,c=t.value,s=[],f="function"==typeof r,d=n.toUpperCase(),v=f?r:function(e,t){return o?de(t[o],d):t[u]?de(t["children"!==l?l:"label"],d):de(t[c],d)},p=f?function(e){return G(e)}:function(e){return e};return e.forEach((function(e){if(e[u])if(v(n,p(e)))s.push(e);else{var t=e[u].filter((function(e){return v(n,p(e))}));t.length&&s.push((0,a.Z)((0,a.Z)({},e),{},(0,i.Z)({},u,t)))}else v(n,p(e))&&s.push(e)})),s}),[e,r,o,n,t])}(d.useMemo((function(){if("tags"!==f)return he;var e=(0,o.Z)(he);return(0,o.Z)(ke).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return pe.has(e)})(n)||e.push(Ae(n,t.label))})),e}),[Ae,he,pe,ke,f]),ie,le,oe,M),De=d.useMemo((function(){return"tags"!==f||!le||Te.some((function(e){return e[M||"value"]===le}))||Te.some((function(e){return e[ie.value]===le}))?Te:[Ae(le)].concat((0,o.Z)(Te))}),[Ae,M,f,Te,le,ie]),ze=function e(t){return(0,o.Z)(t).sort((function(e,t){return R(e,t,{searchValue:le})})).map((function(t){return Array.isArray(t.options)?(0,a.Z)((0,a.Z)({},t),{},{options:t.options.length>0?e(t.options):t.options}):t}))},Oe=d.useMemo((function(){return R?ze(De):De}),[De,R,le]),Le=d.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=Y(n,!1),a=i.label,u=i.value,l=i.options,c=i.groupLabel;function s(e,t){Array.isArray(e)&&e.forEach((function(e){if(t||!(l in e)){var n=e[u];o.push({key:B(e,o.length),groupOption:t,data:e,label:e[a],value:n})}else{var i=e[c];void 0===i&&r&&(i=e.label),o.push({key:B(e,o.length),group:!0,data:e,label:i}),s(e[l],!0)}}))}return s(e,!1),o}(Oe,{fieldNames:ie,childrenAsData:re})}),[Oe,ie,re]),Ve=function(e){var t=ge(e);if(Se(t),q&&(t.length!==ke.length||t.some((function(e,t){var n;return(null===(n=ke[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=U?t:t.map((function(e){return e.value})),r=t.map((function(e){return G(_e(e.value))}));q(ne?n:n[0],ne?r:r[0])}},je=d.useState(null),He=(0,u.Z)(je,2),Fe=He[0],We=He[1],Be=d.useState(0),Ke=(0,u.Z)(Be,2),Ye=Ke[0],Ge=Ke[1],Xe=void 0!==T?T:"combobox"!==f,Ue=d.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source,o=void 0===r?"keyboard":r;Ge(t),m&&"combobox"===f&&null!==e&&"keyboard"===o&&We(String(e))}),[m,f]),qe=function(e,t,n){var r=function(){var t,n=_e(e);return[U?{label:null==n?void 0:n[ie.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,G(n)]};if(t&&Z){var o=r(),i=(0,u.Z)(o,2),a=i[0],l=i[1];Z(a,l)}else if(!t&&x&&"clear"!==n){var c=r(),s=(0,u.Z)(c,2),f=s[0],d=s[1];x(f,d)}},Je=we((function(e,t){var n,r=!ne||t.selected;n=r?ne?[].concat((0,o.Z)(ke),[e]):[e]:ke.filter((function(t){return t.value!==e})),Ve(n),qe(e,r),"combobox"===f?We(""):Q&&!E||(ce(""),We(""))})),Qe=d.useMemo((function(){var e=!1!==z&&!1!==S;return(0,a.Z)((0,a.Z)({},se),{},{flattenOptions:Le,onActiveValue:Ue,defaultActiveFirstOption:Xe,onSelect:Je,menuItemSelectedIcon:D,rawValues:Ie,fieldNames:ie,virtual:e,direction:O,listHeight:V,listItemHeight:H,childrenAsData:re,maxCount:J,optionRender:I})}),[J,se,Le,Ue,Xe,Je,D,Ie,ie,z,S,O,V,H,re,I]);return d.createElement(X.Provider,{value:Qe},d.createElement(ee,(0,r.Z)({},$,{id:te,prefixCls:p,ref:t,omitDomProps:Ze,mode:f,displayValues:Pe,onDisplayValuesChange:function(e,t){Ve(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){qe(e.value,!1,n)}))},direction:O,searchValue:le,onSearch:function(e,t){if(ce(e),We(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===f&&Ve(e),null==y||y(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat((0,o.Z)(Ie),[n])));Ve(r),qe(n,!0),ce("")}}},autoClearSearchValue:E,onSearchSplit:function(e){var t=e;"tags"!==f&&(t=e.map((function(e){var t=me.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,o.Z)(Ie),(0,o.Z)(t))));Ve(n),n.forEach((function(e){qe(e,!0)}))},dropdownMatchSelectWidth:S,OptionList:fe,emptyOptions:!Le.length,activeValue:Fe,activeDescendantId:"".concat(te,"_list_").concat(Ye)})))}));var Ce=xe;Ce.Option=oe,Ce.OptGroup=ne;var Se=Ce},22711:function(e,t,n){n.r(t),n.d(t,{ResizableTextArea:function(){return R},default:function(){return k}});var r,o=n(54476),i=n(20068),a=n(33885),u=n(94480),l=n(42978),c=n(75931),s=n(92310),f=n.n(s),d=n(36901),v=n(66003),p=n(30292),m=n(18929),h=n(59301),g=n(76190),b=n(29301),y=n(34280),w=n(16089),E="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n",Z=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],x={};function C(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&x[n])return x[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),u=Z.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),l={sizingStyle:u,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(x[n]=l),l}var S=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],N=h.forwardRef((function(e,t){var n=e,u=n.prefixCls,s=n.defaultValue,d=n.value,v=n.autoSize,p=n.onResize,Z=n.className,x=n.style,N=n.disabled,R=n.onChange,M=(n.onInternalAutoSize,(0,c.Z)(n,S)),k=(0,m.Z)(s,{value:d,postState:function(e){return null!=e?e:""}}),_=(0,l.Z)(k,2),P=_[0],I=_[1],A=h.useRef();h.useImperativeHandle(t,(function(){return{textArea:A.current}}));var T=h.useMemo((function(){return v&&"object"===(0,g.Z)(v)?[v.minRows,v.maxRows]:[]}),[v]),D=(0,l.Z)(T,2),z=D[0],O=D[1],L=!!v,V=h.useState(2),j=(0,l.Z)(V,2),H=j[0],F=j[1],W=h.useState(),B=(0,l.Z)(W,2),K=B[0],Y=B[1],G=function(){F(0)};(0,y.Z)((function(){L&&G()}),[d,z,O,L]),(0,y.Z)((function(){if(0===H)F(1);else if(1===H){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),r.setAttribute("name","hiddenTextarea"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var i=C(e,t),a=i.paddingSize,u=i.borderSize,l=i.boxSizing,c=i.sizingStyle;r.setAttribute("style","".concat(c,";").concat(E)),r.value=e.value||e.placeholder||"";var s,f=void 0,d=void 0,v=r.scrollHeight;if("border-box"===l?v+=u:"content-box"===l&&(v-=a),null!==n||null!==o){r.value=" ";var p=r.scrollHeight-a;null!==n&&(f=p*n,"border-box"===l&&(f=f+a+u),v=Math.max(f,v)),null!==o&&(d=p*o,"border-box"===l&&(d=d+a+u),s=v>d?"":"hidden",v=Math.min(d,v))}var m={height:v,overflowY:s,resize:"none"};return f&&(m.minHeight=f),d&&(m.maxHeight=d),m}(A.current,!1,z,O);F(2),Y(e)}else!function(){try{if(document.activeElement===A.current){var e=A.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;A.current.setSelectionRange(t,n),A.current.scrollTop=r}}catch(e){}}()}),[H]);var X=h.useRef(),U=function(){w.Z.cancel(X.current)};h.useEffect((function(){return U}),[]);var q=L?K:null,J=(0,a.Z)((0,a.Z)({},x),q);return 0!==H&&1!==H||(J.overflowY="hidden",J.overflowX="hidden"),h.createElement(b.Z,{onResize:function(e){2===H&&(null==p||p(e),v&&(U(),X.current=(0,w.Z)((function(){G()}))))},disabled:!(v||p)},h.createElement("textarea",(0,o.Z)({},M,{ref:A,style:J,className:f()(u,Z,(0,i.Z)({},"".concat(u,"-disabled"),N)),disabled:N,value:P,onChange:function(e){I(e.target.value),null==R||R(e)}})))})),R=N,M=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],k=h.forwardRef((function(e,t){var n,r=e.defaultValue,s=e.value,g=e.onFocus,b=e.onBlur,y=e.onChange,w=e.allowClear,E=e.maxLength,Z=e.onCompositionStart,x=e.onCompositionEnd,C=e.suffix,S=e.prefixCls,N=void 0===S?"rc-textarea":S,k=e.showCount,_=e.count,P=e.className,I=e.style,A=e.disabled,T=e.hidden,D=e.classNames,z=e.styles,O=e.onResize,L=e.onClear,V=e.onPressEnter,j=e.readOnly,H=e.autoSize,F=e.onKeyDown,W=(0,c.Z)(e,M),B=(0,m.Z)(r,{value:s,defaultValue:r}),K=(0,l.Z)(B,2),Y=K[0],G=K[1],X=null==Y?"":String(Y),U=h.useState(!1),q=(0,l.Z)(U,2),J=q[0],Q=q[1],$=h.useRef(!1),ee=h.useState(null),te=(0,l.Z)(ee,2),ne=te[0],re=te[1],oe=(0,h.useRef)(null),ie=(0,h.useRef)(null),ae=function(){var e;return null===(e=ie.current)||void 0===e?void 0:e.textArea},ue=function(){ae().focus()};(0,h.useImperativeHandle)(t,(function(){var e;return{resizableTextArea:ie.current,focus:ue,blur:function(){ae().blur()},nativeElement:(null===(e=oe.current)||void 0===e?void 0:e.nativeElement)||ae()}})),(0,h.useEffect)((function(){Q((function(e){return!A&&e}))}),[A]);var le=h.useState(null),ce=(0,l.Z)(le,2),se=ce[0],fe=ce[1];h.useEffect((function(){var e;se&&(e=ae()).setSelectionRange.apply(e,(0,u.Z)(se))}),[se]);var de,ve=(0,v.Z)(_,k),pe=null!==(n=ve.max)&&void 0!==n?n:E,me=Number(pe)>0,he=ve.strategy(X),ge=!!pe&&he>pe,be=function(e,t){var n=t;!$.current&&ve.exceedFormatter&&ve.max&&ve.strategy(t)>ve.max&&t!==(n=ve.exceedFormatter(t,{max:ve.max}))&&fe([ae().selectionStart||0,ae().selectionEnd||0]),G(n),(0,p.rJ)(e.currentTarget,e,y,n)},ye=C;ve.show&&(de=ve.showFormatter?ve.showFormatter({value:X,count:he,maxLength:pe}):"".concat(he).concat(me?" / ".concat(pe):""),ye=h.createElement(h.Fragment,null,ye,h.createElement("span",{className:f()("".concat(N,"-data-count"),null==D?void 0:D.count),style:null==z?void 0:z.count},de)));var we=!H&&!k&&!w;return h.createElement(d.BaseInput,{ref:oe,value:X,allowClear:w,handleReset:function(e){G(""),ue(),(0,p.rJ)(ae(),e,y)},suffix:ye,prefixCls:N,classNames:(0,a.Z)((0,a.Z)({},D),{},{affixWrapper:f()(null==D?void 0:D.affixWrapper,(0,i.Z)((0,i.Z)({},"".concat(N,"-show-count"),k),"".concat(N,"-textarea-allow-clear"),w))}),disabled:A,focused:J,className:f()(P,ge&&"".concat(N,"-out-of-range")),style:(0,a.Z)((0,a.Z)({},I),ne&&!we?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof de?de:void 0}},hidden:T,readOnly:j,onClear:L},h.createElement(R,(0,o.Z)({},W,{autoSize:H,maxLength:E,onKeyDown:function(e){"Enter"===e.key&&V&&V(e),null==F||F(e)},onChange:function(e){be(e,e.target.value)},onFocus:function(e){Q(!0),null==g||g(e)},onBlur:function(e){Q(!1),null==b||b(e)},onCompositionStart:function(e){$.current=!0,null==Z||Z(e)},onCompositionEnd:function(e){$.current=!1,be(e,e.currentTarget.value),null==x||x(e)},className:f()(null==D?void 0:D.textarea),style:(0,a.Z)((0,a.Z)({},null==z?void 0:z.textarea),{},{resize:null==I?void 0:I.resize}),disabled:A,prefixCls:N,onResize:function(e){var t;null==O||O(e),null!==(t=ae())&&void 0!==t&&t.style.height&&re(!0)},ref:ie,readOnly:j})))}))},49658:function(e,t){t.Z=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))}},48911:function(e,t,n){n.d(t,{Z:function(){return L}});var r=n(54476),o=n(76190),i=n(33885),a=n(20068),u=n(42978),l=n(75931),c=n(92310),s=n.n(c),f=n(29301),d=n(70425),v=n(34280),p=n(59301),m=n(4676),h=p.forwardRef((function(e,t){var n=e.height,o=e.offsetY,u=e.offsetX,l=e.children,c=e.prefixCls,d=e.onInnerResize,v=e.innerProps,m=e.rtl,h=e.extra,g={},b={display:"flex",flexDirection:"column"};return void 0!==o&&(g={height:n,position:"relative",overflow:"hidden"},b=(0,i.Z)((0,i.Z)({},b),{},(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({transform:"translateY(".concat(o,"px)")},m?"marginRight":"marginLeft",-u),"position","absolute"),"left",0),"right",0),"top",0))),p.createElement("div",{style:g},p.createElement(f.Z,{onResize:function(e){e.offsetHeight&&d&&d()}},p.createElement("div",(0,r.Z)({style:b,className:s()((0,a.Z)({},"".concat(c,"-holder-inner"),c)),ref:t},v),l,h)))}));h.displayName="Filler";var g=h;function b(e){var t=e.children,n=e.setRef,r=p.useCallback((function(e){n(e)}),[]);return p.cloneElement(t,{ref:r})}function y(e,t,n){var r=p.useState(e),o=(0,u.Z)(r,2),i=o[0],a=o[1],l=p.useState(null),c=(0,u.Z)(l,2),s=c[0],f=c[1];return p.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var u={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):u}for(var c=null,s=1!==Math.abs(i-a),f=0;f<o.length;f+=1){var d=l(r[f]);if(d!==l(o[f])){c=f,s=s||d!==l(o[f+1]);break}}return null===c?null:{index:c,multiple:s}}(i||[],e||[],t);void 0!==(null==r?void 0:r.index)&&(null==n||n(r.index),f(e[r.index])),a(e)}),[e]),[s]}var w=n(16089),E="object"===("undefined"==typeof navigator?"undefined":(0,o.Z)(navigator))&&/Firefox/i.test(navigator.userAgent),Z=function(e,t,n,r){var o=(0,p.useRef)(!1),i=(0,p.useRef)(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout((function(){o.current=!1}),50)}var u=(0,p.useRef)({top:e,bottom:t,left:n,right:r});return u.current.top=e,u.current.bottom=t,u.current.left=n,u.current.right=r,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&u.current.left||t>0&&u.current.right:t<0&&u.current.top||t>0&&u.current.bottom;return n&&r?(clearTimeout(i.current),o.current=!1):r&&!o.current||a(),!o.current&&r}};function x(e,t,n,r,o,i,a){var u=(0,p.useRef)(0),l=(0,p.useRef)(null),c=(0,p.useRef)(null),s=(0,p.useRef)(!1),f=Z(t,n,r,o);var d=(0,p.useRef)(null),v=(0,p.useRef)(null);return[function(t){if(e){w.Z.cancel(v.current),v.current=(0,w.Z)((function(){d.current=null}),2);var n=t.deltaX,r=t.deltaY,o=t.shiftKey,p=n,m=r;("sx"===d.current||!d.current&&o&&r&&!n)&&(p=r,m=0,d.current="sx");var h=Math.abs(p),g=Math.abs(m);null===d.current&&(d.current=i&&h>g?"x":"y"),"y"===d.current?function(e,t){if(w.Z.cancel(l.current),!f(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,u.current+=t,c.current=t,E||n.preventDefault(),l.current=(0,w.Z)((function(){var e=s.current?10:1;a(u.current*e,!1),u.current=0})))}}(t,m):function(e,t){a(t,!0),E||e.preventDefault()}(t,p)}},function(t){e&&(s.current=t.detail===c.current)}]}var C=n(67732),S=n(83652),N=function(){function e(){(0,C.Z)(this,e),(0,a.Z)(this,"maps",void 0),(0,a.Z)(this,"id",0),(0,a.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,S.Z)(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function R(e){var t=parseFloat(e);return isNaN(t)?0:t}var M=14/15;function k(e){return Math.floor(Math.pow(e,.5))}function _(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var P=p.forwardRef((function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,l=e.scrollRange,c=e.onStartMove,f=e.onStopMove,d=e.onScroll,v=e.horizontal,m=e.spinSize,h=e.containerSize,g=e.style,b=e.thumbStyle,y=e.showScrollBar,E=p.useState(!1),Z=(0,u.Z)(E,2),x=Z[0],C=Z[1],S=p.useState(null),N=(0,u.Z)(S,2),R=N[0],M=N[1],k=p.useState(null),P=(0,u.Z)(k,2),I=P[0],A=P[1],T=!r,D=p.useRef(),z=p.useRef(),O=p.useState(y),L=(0,u.Z)(O,2),V=L[0],j=L[1],H=p.useRef(),F=function(){!0!==y&&!1!==y&&(clearTimeout(H.current),j(!0),H.current=setTimeout((function(){j(!1)}),3e3))},W=l-h||0,B=h-m||0,K=p.useMemo((function(){return 0===o||0===W?0:o/W*B}),[o,W,B]),Y=p.useRef({top:K,dragging:x,pageY:R,startTop:I});Y.current={top:K,dragging:x,pageY:R,startTop:I};var G=function(e){C(!0),M(_(e,v)),A(Y.current.top),c(),e.stopPropagation(),e.preventDefault()};p.useEffect((function(){var e=function(e){e.preventDefault()},t=D.current,n=z.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",G,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",G)}}),[]);var X=p.useRef();X.current=W;var U=p.useRef();U.current=B,p.useEffect((function(){if(x){var e,t=function(t){var n=Y.current,r=n.dragging,o=n.pageY,i=n.startTop;w.Z.cancel(e);var a=D.current.getBoundingClientRect(),u=h/(v?a.width:a.height);if(r){var l=(_(t,v)-o)*u,c=i;!T&&v?c-=l:c+=l;var s=X.current,f=U.current,p=f?c/f:0,m=Math.ceil(p*s);m=Math.max(m,0),m=Math.min(m,s),e=(0,w.Z)((function(){d(m,v)}))}},n=function(){C(!1),f()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),w.Z.cancel(e)}}}),[x]),p.useEffect((function(){return F(),function(){clearTimeout(H.current)}}),[o]),p.useImperativeHandle(t,(function(){return{delayHidden:F}}));var q="".concat(n,"-scrollbar"),J={position:"absolute",visibility:V?null:"hidden"},Q={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return v?(Object.assign(J,{height:8,left:0,right:0,bottom:0}),Object.assign(Q,(0,a.Z)({height:"100%",width:m},T?"left":"right",K))):(Object.assign(J,(0,a.Z)({width:8,top:0,bottom:0},T?"right":"left",0)),Object.assign(Q,{width:"100%",height:m,top:K})),p.createElement("div",{ref:D,className:s()(q,(0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(q,"-horizontal"),v),"".concat(q,"-vertical"),!v),"".concat(q,"-visible"),V)),style:(0,i.Z)((0,i.Z)({},J),g),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:F},p.createElement("div",{ref:z,className:s()("".concat(q,"-thumb"),(0,a.Z)({},"".concat(q,"-thumb-moving"),x)),style:(0,i.Z)((0,i.Z)({},Q),b),onMouseDown:G}))}));function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,20),Math.floor(n)}var A=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],T=[],D={overflowY:"auto",overflowAnchor:"none"};function z(e,t){var n=e.prefixCls,c=void 0===n?"rc-virtual-list":n,h=e.className,E=e.height,C=e.itemHeight,S=e.fullHeight,z=void 0===S||S,O=e.style,L=e.data,V=e.children,j=e.itemKey,H=e.virtual,F=e.direction,W=e.scrollWidth,B=e.component,K=void 0===B?"div":B,Y=e.onScroll,G=e.onVirtualScroll,X=e.onVisibleChange,U=e.innerProps,q=e.extraRender,J=e.styles,Q=e.showScrollBar,$=void 0===Q?"optional":Q,ee=(0,l.Z)(e,A),te=p.useCallback((function(e){return"function"==typeof j?j(e):null==e?void 0:e[j]}),[j]),ne=function(e,t,n){var r=p.useState(0),o=(0,u.Z)(r,2),i=o[0],a=o[1],l=(0,p.useRef)(new Map),c=(0,p.useRef)(new N),s=(0,p.useRef)(0);function f(){s.current+=1}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];f();var t=function(){var e=!1;l.current.forEach((function(t,n){if(t&&t.offsetParent){var r=t.offsetHeight,o=getComputedStyle(t),i=o.marginTop,a=o.marginBottom,u=r+R(i)+R(a);c.current.get(n)!==u&&(c.current.set(n,u),e=!0)}})),e&&a((function(e){return e+1}))};if(e)t();else{s.current+=1;var n=s.current;Promise.resolve().then((function(){n===s.current&&t()}))}}return(0,p.useEffect)((function(){return f}),[]),[function(r,o){var i=e(r),a=l.current.get(i);o?(l.current.set(i,o),d()):l.current.delete(i),!a!=!o&&(o?null==t||t(r):null==n||n(r))},d,c.current,i]}(te,null,null),re=(0,u.Z)(ne,4),oe=re[0],ie=re[1],ae=re[2],ue=re[3],le=!(!1===H||!E||!C),ce=p.useMemo((function(){return Object.values(ae.maps).reduce((function(e,t){return e+t}),0)}),[ae.id,ae.maps]),se=le&&L&&(Math.max(C*L.length,ce)>E||!!W),fe="rtl"===F,de=s()(c,(0,a.Z)({},"".concat(c,"-rtl"),fe),h),ve=L||T,pe=(0,p.useRef)(),me=(0,p.useRef)(),he=(0,p.useRef)(),ge=(0,p.useState)(0),be=(0,u.Z)(ge,2),ye=be[0],we=be[1],Ee=(0,p.useState)(0),Ze=(0,u.Z)(Ee,2),xe=Ze[0],Ce=Ze[1],Se=(0,p.useState)(!1),Ne=(0,u.Z)(Se,2),Re=Ne[0],Me=Ne[1],ke=function(){Me(!0)},_e=function(){Me(!1)},Pe={getKey:te};function Ie(e){we((function(t){var n=function(e){var t=e;Number.isNaN(Je.current)||(t=Math.min(t,Je.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return pe.current.scrollTop=n,n}))}var Ae=(0,p.useRef)({start:0,end:ve.length}),Te=(0,p.useRef)(),De=y(ve,te),ze=(0,u.Z)(De,1)[0];Te.current=ze;var Oe=p.useMemo((function(){if(!le)return{scrollHeight:void 0,start:0,end:ve.length-1,offset:void 0};var e;if(!se)return{scrollHeight:(null===(e=me.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:ve.length-1,offset:void 0};for(var t,n,r,o=0,i=ve.length,a=0;a<i;a+=1){var u=ve[a],l=te(u),c=ae.get(l),s=o+(void 0===c?C:c);s>=ye&&void 0===t&&(t=a,n=o),s>ye+E&&void 0===r&&(r=a),o=s}return void 0===t&&(t=0,n=0,r=Math.ceil(E/C)),void 0===r&&(r=ve.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,ve.length-1),offset:n}}),[se,le,ye,ve,ue,E]),Le=Oe.scrollHeight,Ve=Oe.start,je=Oe.end,He=Oe.offset;Ae.current.start=Ve,Ae.current.end=je,p.useLayoutEffect((function(){var e=ae.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),r=ve[Ve];if(r&&void 0===n)if(te(r)===t){var o=ae.get(t)-C;Ie((function(e){return e+o}))}}ae.resetRecord()}),[Le]);var Fe=p.useState({width:0,height:E}),We=(0,u.Z)(Fe,2),Be=We[0],Ke=We[1],Ye=(0,p.useRef)(),Ge=(0,p.useRef)(),Xe=p.useMemo((function(){return I(Be.width,W)}),[Be.width,W]),Ue=p.useMemo((function(){return I(Be.height,Le)}),[Be.height,Le]),qe=Le-E,Je=(0,p.useRef)(qe);Je.current=qe;var Qe=ye<=0,$e=ye>=qe,et=xe<=0,tt=xe>=W,nt=Z(Qe,$e,et,tt),rt=function(){return{x:fe?-xe:xe,y:ye}},ot=(0,p.useRef)(rt()),it=(0,d.zX)((function(e){if(G){var t=(0,i.Z)((0,i.Z)({},rt()),e);ot.current.x===t.x&&ot.current.y===t.y||(G(t),ot.current=t)}}));function at(e,t){var n=e;t?((0,m.flushSync)((function(){Ce(n)})),it()):Ie(n)}var ut=function(e){var t=e,n=W?W-Be.width:0;return t=Math.max(t,0),t=Math.min(t,n)},lt=(0,d.zX)((function(e,t){t?((0,m.flushSync)((function(){Ce((function(t){return ut(t+(fe?-e:e))}))})),it()):Ie((function(t){return t+e}))})),ct=x(le,Qe,$e,et,tt,!!W,lt),st=(0,u.Z)(ct,2),ft=st[0],dt=st[1];!function(e,t,n){var r,o=(0,p.useRef)(!1),i=(0,p.useRef)(0),a=(0,p.useRef)(0),u=(0,p.useRef)(null),l=(0,p.useRef)(null),c=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),u=i.current-t,c=a.current-r,s=Math.abs(u)>Math.abs(c);s?i.current=t:a.current=r;var f=n(s,s?u:c,!1,e);f&&e.preventDefault(),clearInterval(l.current),f&&(l.current=setInterval((function(){s?u*=M:c*=M;var e=Math.floor(s?u:c);(!n(s,e,!0)||Math.abs(e)<=.1)&&clearInterval(l.current)}),16))}},s=function(){o.current=!1,r()},f=function(e){r(),1!==e.touches.length||o.current||(o.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),u.current=e.target,u.current.addEventListener("touchmove",c,{passive:!1}),u.current.addEventListener("touchend",s,{passive:!0}))};r=function(){u.current&&(u.current.removeEventListener("touchmove",c),u.current.removeEventListener("touchend",s))},(0,v.Z)((function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",f),r(),clearInterval(l.current)}}),[e])}(le,pe,(function(e,t,n,r){var o=r;return!nt(e,t,n)&&((!o||!o._virtualHandled)&&(o&&(o._virtualHandled=!0),ft({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))})),function(e,t,n){p.useEffect((function(){var r=t.current;if(e&&r){var o,i,a=!1,u=function(){w.Z.cancel(o)},l=function e(){u(),o=(0,w.Z)((function(){n(i),e()}))},c=function(){a=!1,u()},s=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},f=function(e){if(a){var t=_(e,!1),n=r.getBoundingClientRect(),o=n.top,c=n.bottom;t<=o?(i=-k(o-t),l()):t>=c?(i=k(t-c),l()):u()}};return r.addEventListener("mousedown",s),r.ownerDocument.addEventListener("mouseup",c),r.ownerDocument.addEventListener("mousemove",f),r.ownerDocument.addEventListener("dragend",c),function(){r.removeEventListener("mousedown",s),r.ownerDocument.removeEventListener("mouseup",c),r.ownerDocument.removeEventListener("mousemove",f),r.ownerDocument.removeEventListener("dragend",c),u()}}}),[e])}(se,pe,(function(e){Ie((function(t){return t+e}))})),(0,v.Z)((function(){function e(e){var t=Qe&&e.detail<0,n=$e&&e.detail>0;!le||t||n||e.preventDefault()}var t=pe.current;return t.addEventListener("wheel",ft,{passive:!1}),t.addEventListener("DOMMouseScroll",dt,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",ft),t.removeEventListener("DOMMouseScroll",dt),t.removeEventListener("MozMousePixelScroll",e)}}),[le,Qe,$e]),(0,v.Z)((function(){if(W){var e=ut(xe);Ce(e),it({x:e})}}),[Be.width,W]);var vt=function(){var e,t;null===(e=Ye.current)||void 0===e||e.delayHidden(),null===(t=Ge.current)||void 0===t||t.delayHidden()},pt=function(e,t,n,r,a,l,c,s){var f=p.useRef(),d=p.useState(null),m=(0,u.Z)(d,2),h=m[0],g=m[1];return(0,v.Z)((function(){if(h&&h.times<10){if(!e.current)return void g((function(e){return(0,i.Z)({},e)}));l();var o=h.targetAlign,u=h.originAlign,s=h.index,f=h.offset,d=e.current.clientHeight,v=!1,p=o,m=null;if(d){for(var b=o||u,y=0,w=0,E=0,Z=Math.min(t.length-1,s),x=0;x<=Z;x+=1){var C=a(t[x]);w=y;var S=n.get(C);y=E=w+(void 0===S?r:S)}for(var N="top"===b?f:d-f,R=Z;R>=0;R-=1){var M=a(t[R]),k=n.get(M);if(void 0===k){v=!0;break}if((N-=k)<=0)break}switch(b){case"top":m=w-f;break;case"bottom":m=E-d+f;break;default:var _=e.current.scrollTop;w<_?p="top":E>_+d&&(p="bottom")}null!==m&&c(m),m!==h.lastTop&&(v=!0)}v&&g((0,i.Z)((0,i.Z)({},h),{},{times:h.times+1,targetAlign:p,lastTop:m}))}}),[h,e.current]),function(e){if(null!=e){if(w.Z.cancel(f.current),"number"==typeof e)c(e);else if(e&&"object"===(0,o.Z)(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return a(t)===e.key}));var i=e.offset;g({times:0,index:n,offset:void 0===i?0:i,originAlign:r})}}else s()}}(pe,ve,ae,C,te,(function(){return ie(!0)}),Ie,vt);p.useImperativeHandle(t,(function(){return{nativeElement:he.current,getScrollInfo:rt,scrollTo:function(e){var t;(t=e)&&"object"===(0,o.Z)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Ce(ut(e.left)),pt(e.top)):pt(e)}}})),(0,v.Z)((function(){if(X){var e=ve.slice(Ve,je+1);X(e,ve)}}),[Ve,je,ve]);var mt=function(e,t,n,r){var o=p.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),i=(0,u.Z)(o,2),a=i[0],l=i[1];return function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,u=a.get(o),c=a.get(i);if(void 0===u||void 0===c)for(var s=e.length,f=l.length;f<s;f+=1){var d,v=e[f],p=t(v);a.set(p,f);var m=null!==(d=n.get(p))&&void 0!==d?d:r;if(l[f]=(l[f-1]||0)+m,p===o&&(u=f),p===i&&(c=f),void 0!==u&&void 0!==c)break}return{top:l[u-1]||0,bottom:l[c]}}}(ve,te,ae,C),ht=null==q?void 0:q({start:Ve,end:je,virtual:se,offsetX:xe,offsetY:He,rtl:fe,getSize:mt}),gt=function(e,t,n,r,o,i,a,u){var l=u.getKey;return e.slice(t,n+1).map((function(e,n){var u=a(e,t+n,{style:{width:r},offsetX:o}),c=l(e);return p.createElement(b,{key:c,setRef:function(t){return i(e,t)}},u)}))}(ve,Ve,je,W,xe,oe,V,Pe),bt=null;E&&(bt=(0,i.Z)((0,a.Z)({},z?"height":"maxHeight",E),D),le&&(bt.overflowY="hidden",W&&(bt.overflowX="hidden"),Re&&(bt.pointerEvents="none")));var yt={};return fe&&(yt.dir="rtl"),p.createElement("div",(0,r.Z)({ref:he,style:(0,i.Z)((0,i.Z)({},O),{},{position:"relative"}),className:de},yt,ee),p.createElement(f.Z,{onResize:function(e){Ke({width:e.offsetWidth,height:e.offsetHeight})}},p.createElement(K,{className:"".concat(c,"-holder"),style:bt,ref:pe,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==ye&&Ie(t),null==Y||Y(e),it()},onMouseEnter:vt},p.createElement(g,{prefixCls:c,height:Le,offsetX:xe,offsetY:He,scrollWidth:W,onInnerResize:ie,ref:me,innerProps:U,rtl:fe,extra:ht},gt))),se&&Le>E&&p.createElement(P,{ref:Ye,prefixCls:c,scrollOffset:ye,scrollRange:Le,rtl:fe,onScroll:at,onStartMove:ke,onStopMove:_e,spinSize:Ue,containerSize:Be.height,style:null==J?void 0:J.verticalScrollBar,thumbStyle:null==J?void 0:J.verticalScrollBarThumb,showScrollBar:$}),se&&W>Be.width&&p.createElement(P,{ref:Ge,prefixCls:c,scrollOffset:xe,scrollRange:W,rtl:fe,onScroll:at,onStartMove:ke,onStopMove:_e,spinSize:Xe,containerSize:Be.width,horizontal:!0,style:null==J?void 0:J.horizontalScrollBar,thumbStyle:null==J?void 0:J.horizontalScrollBarThumb,showScrollBar:$}))}var O=p.forwardRef(z);O.displayName="List";var L=O},76374:function(e,t,n){var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var u=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function u(){a(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(u,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),s=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},d=b(0,0,0,0);function v(e){return parseFloat(e)||0}function p(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+v(e["border-"+n+"-width"])}),0)}function m(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=f(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=v(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,u=v(r.width),l=v(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==t&&(u-=p(r,"left","right")+i),Math.round(l+a)!==n&&(l-=p(r,"top","bottom")+a)),!function(e){return e===f(e).document.documentElement}(e)){var c=Math.round(u+i)-t,s=Math.round(l+a)-n;1!==Math.abs(c)&&(u-=c),1!==Math.abs(s)&&(l-=s)}return b(o.left,o.top,u,l)}var h="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return o?h(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):m(e):d}function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var y=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(e,t){var n,r,o,i,a,u,l,c=(r=(n=t).x,o=n.y,i=n.width,a=n.height,u="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(u.prototype),s(l,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),l);s(this,{target:e,contentRect:c})},E=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new y(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new w(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Z="undefined"!=typeof WeakMap?new WeakMap:new r,x=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new E(t,n,this);Z.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){x.prototype[e]=function(){var t;return(t=Z.get(this))[e].apply(t,arguments)}}));var C=void 0!==i.ResizeObserver?i.ResizeObserver:x;t.Z=C}}]); |