You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
135 KiB
14 lines
135 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[5650],{65352:function(cn,ot,l){"use strict";l.d(ot,{Z:function(){return St}});var I=l(77321),P=l(52487),m=l(74416),nt=l(43403),j=l(92310),Y=l.n(j),F=l(29301),ue=l(76846),V=l(96452),ve=l(6089),ze=l(80402),be=l(34280),u=l(49658),z=l(59301),it=l(72308),Et=l(77900),at=l(8654);function Re(h){var N=h.prefixCls,p=h.align,O=h.arrow,K=h.arrowPos,G=O||{},ie=G.className,fe=G.content,me=K.x,pe=me===void 0?0:me,Le=K.y,se=Le===void 0?0:Le,Qe=z.useRef();if(!p||!p.points)return null;var Q={position:"absolute"};if(p.autoArrow!==!1){var Be=p.points[0],et=p.points[1],X=Be[0],Ve=Be[1],qe=et[0],Ae=et[1];X===qe||!["t","b"].includes(X)?Q.top=se:X==="t"?Q.top=0:Q.bottom=0,Ve===Ae||!["l","r"].includes(Ve)?Q.left=pe:Ve==="l"?Q.left=0:Q.right=0}return z.createElement("div",{ref:Qe,className:Y()("".concat(N,"-arrow"),ie),style:Q},fe)}function We(h){var N=h.prefixCls,p=h.open,O=h.zIndex,K=h.mask,G=h.motion;return K?z.createElement(Et.default,(0,it.Z)({},G,{motionAppear:!0,visible:p,removeOnLeave:!0}),function(ie){var fe=ie.className;return z.createElement("div",{style:{zIndex:O},className:Y()("".concat(N,"-mask"),fe)})}):null}var $=z.memo(function(h){var N=h.children;return N},function(h,N){return N.cache}),T=$,L=z.forwardRef(function(h,N){var p=h.popup,O=h.className,K=h.prefixCls,G=h.style,ie=h.target,fe=h.onVisibleChanged,me=h.open,pe=h.keepDom,Le=h.fresh,se=h.onClick,Qe=h.mask,Q=h.arrow,Be=h.arrowPos,et=h.align,X=h.motion,Ve=h.maskMotion,qe=h.forceRender,Ae=h.getPopupContainer,rt=h.autoDestroy,ke=h.portal,ae=h.zIndex,ct=h.onMouseEnter,Wt=h.onMouseLeave,Ue=h.onPointerEnter,Fe=h.onPointerDownCapture,_t=h.ready,Ce=h.offsetX,Te=h.offsetY,je=h.offsetR,Pt=h.offsetB,Se=h.onAlign,lt=h.onPrepare,Ye=h.stretch,bt=h.targetWidth,He=h.targetHeight,tn=typeof p=="function"?p():p,pt=me||pe,It=(Ae==null?void 0:Ae.length)>0,Ne=z.useState(!Ae||!It),jt=(0,P.Z)(Ne,2),Tt=jt[0],Ot=jt[1];if((0,be.Z)(function(){!Tt&&It&&ie&&Ot(!0)},[Tt,It,ie]),!Tt)return null;var At="auto",Ft={left:"-1000vw",top:"-1000vh",right:At,bottom:At};if(_t||!me){var Dt,rn=et.points,zt=et.dynamicInset||((Dt=et._experimental)===null||Dt===void 0?void 0:Dt.dynamicInset),Lt=zt&&rn[0][1]==="r",Bt=zt&&rn[0][0]==="b";Lt?(Ft.right=je,Ft.left=At):(Ft.left=Ce,Ft.right=At),Bt?(Ft.bottom=Pt,Ft.top=At):(Ft.top=Te,Ft.bottom=At)}var Xe={};return Ye&&(Ye.includes("height")&&He?Xe.height=He:Ye.includes("minHeight")&&He&&(Xe.minHeight=He),Ye.includes("width")&&bt?Xe.width=bt:Ye.includes("minWidth")&&bt&&(Xe.minWidth=bt)),me||(Xe.pointerEvents="none"),z.createElement(ke,{open:qe||pt,getContainer:Ae&&function(){return Ae(ie)},autoDestroy:rt},z.createElement(We,{prefixCls:K,open:me,zIndex:ae,mask:Qe,motion:Ve}),z.createElement(F.Z,{onResize:Se,disabled:!me},function(Ge){return z.createElement(Et.default,(0,it.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:qe,leavedClassName:"".concat(K,"-hidden")},X,{onAppearPrepare:lt,onEnterPrepare:lt,visible:me,onVisibleChanged:function(yt){var nn;X==null||(nn=X.onVisibleChanged)===null||nn===void 0||nn.call(X,yt),fe(yt)}}),function(Ct,yt){var nn=Ct.className,xn=Ct.style,Yt=Y()(K,nn,O);return z.createElement("div",{ref:(0,at.sQ)(Ge,N,yt),className:Yt,style:(0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)({"--arrow-x":"".concat(Be.x||0,"px"),"--arrow-y":"".concat(Be.y||0,"px")},Ft),Xe),xn),{},{boxSizing:"border-box",zIndex:ae},G),onMouseEnter:ct,onMouseLeave:Wt,onPointerEnter:Ue,onClick:se,onPointerDownCapture:Fe},Q&&z.createElement(Re,{prefixCls:K,arrow:Q,arrowPos:Be,align:et}),z.createElement(T,{cache:!me&&!Le},tn))})}))}),k=L,A=z.forwardRef(function(h,N){var p=h.children,O=h.getTriggerDOMNode,K=(0,at.Yr)(p),G=z.useCallback(function(fe){(0,at.mH)(N,O?O(fe):fe)},[O]),ie=(0,at.x1)(G,(0,at.C4)(p));return K?z.cloneElement(p,{ref:ie}):p}),c=A,te=z.createContext(null),W=te;function de(h){return h?Array.isArray(h)?h:[h]:[]}function Ke(h,N,p,O){return z.useMemo(function(){var K=de(p!=null?p:N),G=de(O!=null?O:N),ie=new Set(K),fe=new Set(G);return h&&(ie.has("hover")&&(ie.delete("hover"),ie.add("click")),fe.has("hover")&&(fe.delete("hover"),fe.add("click"))),[ie,fe]},[h,N,p,O])}var E=l(29194);function g(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],p=arguments.length>2?arguments[2]:void 0;return p?h[0]===N[0]:h[0]===N[0]&&h[1]===N[1]}function R(h,N,p,O){for(var K=p.points,G=Object.keys(h),ie=0;ie<G.length;ie+=1){var fe,me=G[ie];if(g((fe=h[me])===null||fe===void 0?void 0:fe.points,K,O))return"".concat(N,"-placement-").concat(me)}return""}function S(h,N,p,O){return N||(p?{motionName:"".concat(h,"-").concat(p)}:O?{motionName:O}:null)}function M(h){return h.ownerDocument.defaultView}function J(h){for(var N=[],p=h==null?void 0:h.parentElement,O=["hidden","scroll","clip","auto"];p;){var K=M(p).getComputedStyle(p),G=K.overflowX,ie=K.overflowY,fe=K.overflow;[G,ie,fe].some(function(me){return O.includes(me)})&&N.push(p),p=p.parentElement}return N}function w(h){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(h)?N:h}function H(h){return w(parseFloat(h),0)}function he(h,N){var p=(0,I.Z)({},h);return(N||[]).forEach(function(O){if(!(O instanceof HTMLBodyElement||O instanceof HTMLHtmlElement)){var K=M(O).getComputedStyle(O),G=K.overflow,ie=K.overflowClipMargin,fe=K.borderTopWidth,me=K.borderBottomWidth,pe=K.borderLeftWidth,Le=K.borderRightWidth,se=O.getBoundingClientRect(),Qe=O.offsetHeight,Q=O.clientHeight,Be=O.offsetWidth,et=O.clientWidth,X=H(fe),Ve=H(me),qe=H(pe),Ae=H(Le),rt=w(Math.round(se.width/Be*1e3)/1e3),ke=w(Math.round(se.height/Qe*1e3)/1e3),ae=(Be-et-qe-Ae)*rt,ct=(Qe-Q-X-Ve)*ke,Wt=X*ke,Ue=Ve*ke,Fe=qe*rt,_t=Ae*rt,Ce=0,Te=0;if(G==="clip"){var je=H(ie);Ce=je*rt,Te=je*ke}var Pt=se.x+Fe-Ce,Se=se.y+Wt-Te,lt=Pt+se.width+2*Ce-Fe-_t-ae,Ye=Se+se.height+2*Te-Wt-Ue-ct;p.left=Math.max(p.left,Pt),p.top=Math.max(p.top,Se),p.right=Math.min(p.right,lt),p.bottom=Math.min(p.bottom,Ye)}}),p}function _(h){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,p="".concat(N),O=p.match(/^(.*)\%$/);return O?h*(parseFloat(O[1])/100):parseFloat(p)}function ne(h,N){var p=N||[],O=(0,P.Z)(p,2),K=O[0],G=O[1];return[_(h.width,K),_(h.height,G)]}function ce(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[h[0],h[1]]}function we(h,N){var p=N[0],O=N[1],K,G;return p==="t"?G=h.y:p==="b"?G=h.y+h.height:G=h.y+h.height/2,O==="l"?K=h.x:O==="r"?K=h.x+h.width:K=h.x+h.width/2,{x:K,y:G}}function q(h,N){var p={t:"b",b:"t",l:"r",r:"l"};return h.map(function(O,K){return K===N?p[O]||"c":O}).join("")}function U(h,N,p,O,K,G,ie){var fe=z.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:K[O]||{}}),me=(0,P.Z)(fe,2),pe=me[0],Le=me[1],se=z.useRef(0),Qe=z.useMemo(function(){return N?J(N):[]},[N]),Q=z.useRef({}),Be=function(){Q.current={}};h||Be();var et=(0,ve.Z)(function(){if(N&&p&&h){let ln=function(Ht,Jt){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zn,Xn=Ne.x+Ht,Gn=Ne.y+Jt,ta=Xn+Lt,na=Gn+zt,_n=Math.max(Xn,Dn.left),oe=Math.max(Gn,Dn.top),Pe=Math.min(ta,Dn.right),xt=Math.min(na,Dn.bottom);return Math.max(0,(Pe-_n)*(xt-oe))},Tn=function(){mt=Ne.y+B,Mt=mt+zt,wt=Ne.x+y,Nt=wt+Lt};var qe,Ae,rt,ke,ae=N,ct=ae.ownerDocument,Wt=M(ae),Ue=Wt.getComputedStyle(ae),Fe=Ue.width,_t=Ue.height,Ce=Ue.position,Te=ae.style.left,je=ae.style.top,Pt=ae.style.right,Se=ae.style.bottom,lt=ae.style.overflow,Ye=(0,I.Z)((0,I.Z)({},K[O]),G),bt=ct.createElement("div");(qe=ae.parentElement)===null||qe===void 0||qe.appendChild(bt),bt.style.left="".concat(ae.offsetLeft,"px"),bt.style.top="".concat(ae.offsetTop,"px"),bt.style.position=Ce,bt.style.height="".concat(ae.offsetHeight,"px"),bt.style.width="".concat(ae.offsetWidth,"px"),ae.style.left="0",ae.style.top="0",ae.style.right="auto",ae.style.bottom="auto",ae.style.overflow="hidden";var He;if(Array.isArray(p))He={x:p[0],y:p[1],width:0,height:0};else{var tn,pt,It=p.getBoundingClientRect();It.x=(tn=It.x)!==null&&tn!==void 0?tn:It.left,It.y=(pt=It.y)!==null&&pt!==void 0?pt:It.top,He={x:It.x,y:It.y,width:It.width,height:It.height}}var Ne=ae.getBoundingClientRect();Ne.x=(Ae=Ne.x)!==null&&Ae!==void 0?Ae:Ne.left,Ne.y=(rt=Ne.y)!==null&&rt!==void 0?rt:Ne.top;var jt=ct.documentElement,Tt=jt.clientWidth,Ot=jt.clientHeight,At=jt.scrollWidth,Ft=jt.scrollHeight,Dt=jt.scrollTop,rn=jt.scrollLeft,zt=Ne.height,Lt=Ne.width,Bt=He.height,Xe=He.width,Ge={left:0,top:0,right:Tt,bottom:Ot},Ct={left:-rn,top:-Dt,right:At-rn,bottom:Ft-Dt},yt=Ye.htmlRegion,nn="visible",xn="visibleFirst";yt!=="scroll"&&yt!==xn&&(yt=nn);var Yt=yt===xn,Nn=he(Ct,Qe),ft=he(Ge,Qe),Zn=yt===nn?ft:Nn,an=Yt?ft:Zn;ae.style.left="auto",ae.style.top="auto",ae.style.right="0",ae.style.bottom="0";var Xt=ae.getBoundingClientRect();ae.style.left=Te,ae.style.top=je,ae.style.right=Pt,ae.style.bottom=Se,ae.style.overflow=lt,(ke=ae.parentElement)===null||ke===void 0||ke.removeChild(bt);var fn=w(Math.round(Lt/parseFloat(Fe)*1e3)/1e3),Kt=w(Math.round(zt/parseFloat(_t)*1e3)/1e3);if(fn===0||Kt===0||(0,ue.Sh)(p)&&!(0,E.Z)(p))return;var Bn=Ye.offset,An=Ye.targetOffset,Ze=ne(Ne,Bn),$e=(0,P.Z)(Ze,2),s=$e[0],x=$e[1],D=ne(He,An),a=(0,P.Z)(D,2),e=a[0],n=a[1];He.x-=e,He.y-=n;var t=Ye.points||[],i=(0,P.Z)(t,2),r=i[0],o=i[1],f=ce(o),C=ce(r),b=we(He,f),d=we(Ne,C),v=(0,I.Z)({},Ye),y=b.x-d.x+s,B=b.y-d.y+x,ee=ln(y,B),Me=ln(y,B,ft),re=we(He,["t","l"]),le=we(Ne,["t","l"]),Oe=we(He,["b","r"]),ge=we(Ne,["b","r"]),_e=Ye.overflow||{},dt=_e.adjustX,Z=_e.adjustY,Ie=_e.shiftX,Je=_e.shiftY,ut=function(Jt){return typeof Jt=="boolean"?Jt:Jt>=0},mt,Mt,wt,Nt;Tn();var ht=ut(Z),gt=C[0]===f[0];if(ht&&C[0]==="t"&&(Mt>an.bottom||Q.current.bt)){var tt=B;gt?tt-=zt-Bt:tt=re.y-ge.y-x;var Qt=ln(y,tt),dn=ln(y,tt,ft);Qt>ee||Qt===ee&&(!Yt||dn>=Me)?(Q.current.bt=!0,B=tt,x=-x,v.points=[q(C,0),q(f,0)]):Q.current.bt=!1}if(ht&&C[0]==="b"&&(mt<an.top||Q.current.tb)){var qt=B;gt?qt+=zt-Bt:qt=Oe.y-le.y-x;var vn=ln(y,qt),gn=ln(y,qt,ft);vn>ee||vn===ee&&(!Yt||gn>=Me)?(Q.current.tb=!0,B=qt,x=-x,v.points=[q(C,0),q(f,0)]):Q.current.tb=!1}var Vt=ut(dt),en=C[1]===f[1];if(Vt&&C[1]==="l"&&(Nt>an.right||Q.current.rl)){var un=y;en?un-=Lt-Xe:un=re.x-ge.x-s;var pn=ln(un,B),yn=ln(un,B,ft);pn>ee||pn===ee&&(!Yt||yn>=Me)?(Q.current.rl=!0,y=un,s=-s,v.points=[q(C,1),q(f,1)]):Q.current.rl=!1}if(Vt&&C[1]==="r"&&(wt<an.left||Q.current.lr)){var Zt=y;en?Zt+=Lt-Xe:Zt=Oe.x-le.x-s;var hn=ln(Zt,B),bn=ln(Zt,B,ft);hn>ee||hn===ee&&(!Yt||bn>=Me)?(Q.current.lr=!0,y=Zt,s=-s,v.points=[q(C,1),q(f,1)]):Q.current.lr=!1}Tn();var mn=Ie===!0?0:Ie;typeof mn=="number"&&(wt<ft.left&&(y-=wt-ft.left-s,He.x+Xe<ft.left+mn&&(y+=He.x-ft.left+Xe-mn)),Nt>ft.right&&(y-=Nt-ft.right-s,He.x>ft.right-mn&&(y+=He.x-ft.right+mn)));var on=Je===!0?0:Je;typeof on=="number"&&(mt<ft.top&&(B-=mt-ft.top-x,He.y+Bt<ft.top+on&&(B+=He.y-ft.top+Bt-on)),Mt>ft.bottom&&(B-=Mt-ft.bottom-x,He.y>ft.bottom-on&&(B+=He.y-ft.bottom+on)));var Cn=Ne.x+y,zn=Cn+Lt,En=Ne.y+B,Kn=En+zt,Ln=He.x,Hn=Ln+Xe,Pn=He.y,Vn=Pn+Bt,Un=Math.max(Cn,Ln),kn=Math.min(zn,Hn),wn=(Un+kn)/2,jn=wn-Cn,Yn=Math.max(En,Pn),Wn=Math.min(Kn,Vn),$n=(Yn+Wn)/2,Fn=$n-En;ie==null||ie(N,v);var Rn=Xt.right-Ne.x-(y+Ne.width),sn=Xt.bottom-Ne.y-(B+Ne.height);fn===1&&(y=Math.round(y),Rn=Math.round(Rn)),Kt===1&&(B=Math.round(B),sn=Math.round(sn));var In={ready:!0,offsetX:y/fn,offsetY:B/Kt,offsetR:Rn/fn,offsetB:sn/Kt,arrowX:jn/fn,arrowY:Fn/Kt,scaleX:fn,scaleY:Kt,align:v};Le(In)}}),X=function(){se.current+=1;var Ae=se.current;Promise.resolve().then(function(){se.current===Ae&&et()})},Ve=function(){Le(function(Ae){return(0,I.Z)((0,I.Z)({},Ae),{},{ready:!1})})};return(0,be.Z)(Ve,[O]),(0,be.Z)(function(){h||Ve()},[h]),[pe.ready,pe.offsetX,pe.offsetY,pe.offsetR,pe.offsetB,pe.arrowX,pe.arrowY,pe.scaleX,pe.scaleY,pe.align,X]}var ye=l(80702);function De(h,N,p,O,K){(0,be.Z)(function(){if(h&&N&&p){let se=function(){O(),K()};var G=N,ie=p,fe=J(G),me=J(ie),pe=M(ie),Le=new Set([pe].concat((0,ye.Z)(fe),(0,ye.Z)(me)));return Le.forEach(function(Qe){Qe.addEventListener("scroll",se,{passive:!0})}),pe.addEventListener("resize",se,{passive:!0}),O(),function(){Le.forEach(function(Qe){Qe.removeEventListener("scroll",se),pe.removeEventListener("resize",se)})}}},[h,N,p])}var Ee=l(48736);function xe(h,N,p,O,K,G,ie,fe){var me=z.useRef(h);me.current=h;var pe=z.useRef(!1);z.useEffect(function(){if(N&&O&&(!K||G)){var se=function(){pe.current=!1},Qe=function(rt){var ke;me.current&&!ie(((ke=rt.composedPath)===null||ke===void 0||(ke=ke.call(rt))===null||ke===void 0?void 0:ke[0])||rt.target)&&!pe.current&&fe(!1)},Q=M(O);Q.addEventListener("pointerdown",se,!0),Q.addEventListener("mousedown",Qe,!0),Q.addEventListener("contextmenu",Qe,!0);var Be=(0,V.A)(p);if(Be&&(Be.addEventListener("mousedown",Qe,!0),Be.addEventListener("contextmenu",Qe,!0)),0)var et,X,Ve,qe;return function(){Q.removeEventListener("pointerdown",se,!0),Q.removeEventListener("mousedown",Qe,!0),Q.removeEventListener("contextmenu",Qe,!0),Be&&(Be.removeEventListener("mousedown",Qe,!0),Be.removeEventListener("contextmenu",Qe,!0))}}},[N,p,O,K,G]);function Le(){pe.current=!0}return Le}var vt=["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"];function st(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nt.Z,N=z.forwardRef(function(p,O){var K=p.prefixCls,G=K===void 0?"rc-trigger-popup":K,ie=p.children,fe=p.action,me=fe===void 0?"hover":fe,pe=p.showAction,Le=p.hideAction,se=p.popupVisible,Qe=p.defaultPopupVisible,Q=p.onPopupVisibleChange,Be=p.afterPopupVisibleChange,et=p.mouseEnterDelay,X=p.mouseLeaveDelay,Ve=X===void 0?.1:X,qe=p.focusDelay,Ae=p.blurDelay,rt=p.mask,ke=p.maskClosable,ae=ke===void 0?!0:ke,ct=p.getPopupContainer,Wt=p.forceRender,Ue=p.autoDestroy,Fe=p.destroyPopupOnHide,_t=p.popup,Ce=p.popupClassName,Te=p.popupStyle,je=p.popupPlacement,Pt=p.builtinPlacements,Se=Pt===void 0?{}:Pt,lt=p.popupAlign,Ye=p.zIndex,bt=p.stretch,He=p.getPopupClassNameFromAlign,tn=p.fresh,pt=p.alignPoint,It=p.onPopupClick,Ne=p.onPopupAlign,jt=p.arrow,Tt=p.popupMotion,Ot=p.maskMotion,At=p.popupTransitionName,Ft=p.popupAnimation,Dt=p.maskTransitionName,rn=p.maskAnimation,zt=p.className,Lt=p.getTriggerDOMNode,Bt=(0,m.Z)(p,vt),Xe=Ue||Fe||!1,Ge=z.useState(!1),Ct=(0,P.Z)(Ge,2),yt=Ct[0],nn=Ct[1];(0,be.Z)(function(){nn((0,u.Z)())},[]);var xn=z.useRef({}),Yt=z.useContext(W),Nn=z.useMemo(function(){return{registerSubPopup:function(Pe,xt){xn.current[Pe]=xt,Yt==null||Yt.registerSubPopup(Pe,xt)}}},[Yt]),ft=(0,ze.Z)(),Zn=z.useState(null),an=(0,P.Z)(Zn,2),Xt=an[0],fn=an[1],Kt=z.useRef(null),Bn=(0,ve.Z)(function(oe){Kt.current=oe,(0,ue.Sh)(oe)&&Xt!==oe&&fn(oe),Yt==null||Yt.registerSubPopup(ft,oe)}),An=z.useState(null),Ze=(0,P.Z)(An,2),$e=Ze[0],s=Ze[1],x=z.useRef(null),D=(0,ve.Z)(function(oe){(0,ue.Sh)(oe)&&$e!==oe&&(s(oe),x.current=oe)}),a=z.Children.only(ie),e=(a==null?void 0:a.props)||{},n={},t=(0,ve.Z)(function(oe){var Pe,xt,Ut=$e;return(Ut==null?void 0:Ut.contains(oe))||((Pe=(0,V.A)(Ut))===null||Pe===void 0?void 0:Pe.host)===oe||oe===Ut||(Xt==null?void 0:Xt.contains(oe))||((xt=(0,V.A)(Xt))===null||xt===void 0?void 0:xt.host)===oe||oe===Xt||Object.values(xn.current).some(function(kt){return(kt==null?void 0:kt.contains(oe))||oe===kt})}),i=S(G,Tt,Ft,At),r=S(G,Ot,rn,Dt),o=z.useState(Qe||!1),f=(0,P.Z)(o,2),C=f[0],b=f[1],d=se!=null?se:C,v=(0,ve.Z)(function(oe){se===void 0&&b(oe)});(0,be.Z)(function(){b(se||!1)},[se]);var y=z.useRef(d);y.current=d;var B=z.useRef([]);B.current=[];var ee=(0,ve.Z)(function(oe){var Pe;v(oe),((Pe=B.current[B.current.length-1])!==null&&Pe!==void 0?Pe:d)!==oe&&(B.current.push(oe),Q==null||Q(oe))}),Me=z.useRef(),re=function(){clearTimeout(Me.current)},le=function(Pe){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;re(),xt===0?ee(Pe):Me.current=setTimeout(function(){ee(Pe)},xt*1e3)};z.useEffect(function(){return re},[]);var Oe=z.useState(!1),ge=(0,P.Z)(Oe,2),_e=ge[0],dt=ge[1];(0,be.Z)(function(oe){(!oe||d)&&dt(!0)},[d]);var Z=z.useState(null),Ie=(0,P.Z)(Z,2),Je=Ie[0],ut=Ie[1],mt=z.useState(null),Mt=(0,P.Z)(mt,2),wt=Mt[0],Nt=Mt[1],ht=function(Pe){Nt([Pe.clientX,Pe.clientY])},gt=U(d,Xt,pt&&wt!==null?wt:$e,je,Se,lt,Ne),tt=(0,P.Z)(gt,11),Qt=tt[0],dn=tt[1],qt=tt[2],vn=tt[3],gn=tt[4],Vt=tt[5],en=tt[6],un=tt[7],pn=tt[8],yn=tt[9],Zt=tt[10],hn=Ke(yt,me,pe,Le),bn=(0,P.Z)(hn,2),mn=bn[0],on=bn[1],Cn=mn.has("click"),zn=on.has("click")||on.has("contextMenu"),En=(0,ve.Z)(function(){_e||Zt()}),Kn=function(){y.current&&pt&&zn&&le(!1)};De(d,$e,Xt,En,Kn),(0,be.Z)(function(){En()},[wt,je]),(0,be.Z)(function(){d&&!(Se!=null&&Se[je])&&En()},[JSON.stringify(lt)]);var Ln=z.useMemo(function(){var oe=R(Se,G,yn,pt);return Y()(oe,He==null?void 0:He(yn))},[yn,He,Se,G,pt]);z.useImperativeHandle(O,function(){return{nativeElement:x.current,popupElement:Kt.current,forceAlign:En}});var Hn=z.useState(0),Pn=(0,P.Z)(Hn,2),Vn=Pn[0],Un=Pn[1],kn=z.useState(0),wn=(0,P.Z)(kn,2),jn=wn[0],Yn=wn[1],Wn=function(){if(bt&&$e){var Pe=$e.getBoundingClientRect();Un(Pe.width),Yn(Pe.height)}},$n=function(){Wn(),En()},Fn=function(Pe){dt(!1),Zt(),Be==null||Be(Pe)},Rn=function(){return new Promise(function(Pe){Wn(),ut(function(){return Pe})})};(0,be.Z)(function(){Je&&(Zt(),Je(),ut(null))},[Je]);function sn(oe,Pe,xt,Ut){n[oe]=function(kt){var Qn;Ut==null||Ut(kt),le(Pe,xt);for(var qn=arguments.length,On=new Array(qn>1?qn-1:0),ea=1;ea<qn;ea++)On[ea-1]=arguments[ea];(Qn=e[oe])===null||Qn===void 0||Qn.call.apply(Qn,[e,kt].concat(On))}}(Cn||zn)&&(n.onClick=function(oe){var Pe;y.current&&zn?le(!1):!y.current&&Cn&&(ht(oe),le(!0));for(var xt=arguments.length,Ut=new Array(xt>1?xt-1:0),kt=1;kt<xt;kt++)Ut[kt-1]=arguments[kt];(Pe=e.onClick)===null||Pe===void 0||Pe.call.apply(Pe,[e,oe].concat(Ut))});var In=xe(d,zn,$e,Xt,rt,ae,t,le),ln=mn.has("hover"),Tn=on.has("hover"),Ht,Jt;ln&&(sn("onMouseEnter",!0,et,function(oe){ht(oe)}),sn("onPointerEnter",!0,et,function(oe){ht(oe)}),Ht=function(Pe){(d||_e)&&Xt!==null&&Xt!==void 0&&Xt.contains(Pe.target)&&le(!0,et)},pt&&(n.onMouseMove=function(oe){var Pe;(Pe=e.onMouseMove)===null||Pe===void 0||Pe.call(e,oe)})),Tn&&(sn("onMouseLeave",!1,Ve),sn("onPointerLeave",!1,Ve),Jt=function(){le(!1,Ve)}),mn.has("focus")&&sn("onFocus",!0,qe),on.has("focus")&&sn("onBlur",!1,Ae),mn.has("contextMenu")&&(n.onContextMenu=function(oe){var Pe;y.current&&on.has("contextMenu")?le(!1):(ht(oe),le(!0)),oe.preventDefault();for(var xt=arguments.length,Ut=new Array(xt>1?xt-1:0),kt=1;kt<xt;kt++)Ut[kt-1]=arguments[kt];(Pe=e.onContextMenu)===null||Pe===void 0||Pe.call.apply(Pe,[e,oe].concat(Ut))}),zt&&(n.className=Y()(e.className,zt));var Dn=(0,I.Z)((0,I.Z)({},e),n),Xn={},Gn=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Gn.forEach(function(oe){Bt[oe]&&(Xn[oe]=function(){for(var Pe,xt=arguments.length,Ut=new Array(xt),kt=0;kt<xt;kt++)Ut[kt]=arguments[kt];(Pe=Dn[oe])===null||Pe===void 0||Pe.call.apply(Pe,[Dn].concat(Ut)),Bt[oe].apply(Bt,Ut)})});var ta=z.cloneElement(a,(0,I.Z)((0,I.Z)({},Dn),Xn)),na={x:Vt,y:en},_n=jt?(0,I.Z)({},jt!==!0?jt:{}):null;return z.createElement(z.Fragment,null,z.createElement(F.Z,{disabled:!d,ref:D,onResize:$n},z.createElement(c,{getTriggerDOMNode:Lt},ta)),z.createElement(W.Provider,{value:Nn},z.createElement(k,{portal:h,ref:Bn,prefixCls:G,popup:_t,className:Y()(Ce,Ln),style:Te,target:$e,onMouseEnter:Ht,onMouseLeave:Jt,onPointerEnter:Ht,zIndex:Ye,open:d,keepDom:_e,fresh:tn,onClick:It,onPointerDownCapture:In,mask:rt,motion:i,maskMotion:r,onVisibleChanged:Fn,onPrepare:Rn,forceRender:Wt,autoDestroy:Xe,getPopupContainer:ct,align:yn,arrow:_n,arrowPos:na,ready:Qt,offsetX:dn,offsetY:qt,offsetR:vn,offsetB:gn,onAlign:En,stretch:bt,targetWidth:Vn/un,targetHeight:jn/pn})))});return N}var St=st(nt.Z)},19425:function(){"use strict"},799:function(cn,ot,l){"use strict";l.r(ot),l.d(ot,{default:function(){return Re}});var I=l(59301),P=l(44993),m={flex_box_center:"flex_box_center___DHrsr",flex_space_between:"flex_space_between___VeuX0",flex_box_vertical_center:"flex_box_vertical_center___gw9oR",flex_box_center_end:"flex_box_center_end___DyeB2",flex_box_column:"flex_box_column___b77m0",Selecttext:"Selecttext___F1tf1",Updatecount:"Updatecount___VMhwg",Spanradius:"Spanradius___FVSCg"},nt=l(33555),j=l(19425),Y=l(6767),F=l(91882),ue=l(37568),V=l(99571),ve=l(13952),ze=l(89299),be=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,it=(We,$)=>{var T={};for(var L in We)u.call(We,L)&&$.indexOf(L)<0&&(T[L]=We[L]);if(We!=null&&be)for(var L of be(We))$.indexOf(L)<0&&z.call(We,L)&&(T[L]=We[L]);return T},Et=(We,$,T)=>new Promise((L,k)=>{var A=W=>{try{te(T.next(W))}catch(de){k(de)}},c=W=>{try{te(T.throw(W))}catch(de){k(de)}},te=W=>W.done?L(W.value):Promise.resolve(W.value).then(A,c);te((T=T.apply(We,$)).next())});const at=We=>{var $=We,{globalSetting:T,loading:L,dispatch:k}=$,A=it($,["globalSetting","loading","dispatch"]);const[c,te]=(0,I.useState)(),[W,de]=(0,I.useState)(),[Ke,E]=(0,I.useState)(),[g,R]=(0,I.useState)(""),S=(0,I.useRef)(null),[M,J]=(0,I.useState)(""),{identifier:w,Teannameid:H}=(0,P.useParams)(),[he,_]=(0,I.useState)("");(0,I.useEffect)(()=>{function q(){return Et(this,null,function*(){var U,ye,De,Ee;te(yield k({type:"competitions/getHeader",payload:{identifier:w}}));let xe=yield k({type:"competitions/getTeamDetail",payload:{identifier:w,Teannameid:H}});xe&&(de((U=xe==null?void 0:xe.data)==null?void 0:U.name),J(`${(ye=ve.Z)==null?void 0:ye.IMG_SERVER}/${(De=xe==null?void 0:xe.data)==null?void 0:De.team_log}`),_((Ee=xe==null?void 0:xe.data)==null?void 0:Ee.team_log))})}w&&q()},[w]),(0,I.useEffect)(()=>{(0,ze.Dk)("\u5728\u7EBF\u7ADE\u8D5B")});function ne(){E(S.current.getCroppedCanvas().toDataURL())}function ce(){return Et(this,null,function*(){var q,U;if(!W){Y.ZP.info("\u961F\u4F0D\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}let ye=yield k({type:"competitions/UpTeam",payload:{identifier:w,Teannameid:H,name:W,image:((U=(q=S==null?void 0:S.current)==null?void 0:q.getCroppedCanvas())==null?void 0:U.toDataURL("image/jpeg"))||""}});(ye==null?void 0:ye.status)===0&&(Y.ZP.info("\u4FEE\u6539\u6210\u529F"),P.history.push(`/competitions/${w}/detail/enroll`))})}function we(q){const U=q.target.files[0];if(U&&U.size>2*1024*1024){Y.ZP.info("\u4EC5\u652F\u6301\u6587\u4EF6\u5927\u5C0F\u5C0F\u4E8E2M\u7684\u6587\u4EF6");return}var ye=new FileReader;ye.readAsBinaryString(U),ye.onload=()=>{let De=btoa(ye.result);J(`data:${U.type};base64,${De}`)},ye.onerror=function(){}}return I.createElement("div",{className:"edu-container minH500"},I.createElement(F.Z,{className:"mt10",separator:">"},I.createElement(F.Z.Item,null,I.createElement(P.Link,{to:"/competitions/index"},"\u5728\u7EBF\u7ADE\u8D5B")),I.createElement(F.Z.Item,null,I.createElement(P.Link,{to:`/competitions/${w}/`},c&&c.name,c&&c.sub_title?"-"+c&&c.sub_title:null)),I.createElement(F.Z.Item,null,I.createElement(P.Link,{to:`/competitions/${w}/detail/enroll`},"\u62A5\u540D")),I.createElement(F.Z.Item,null,"\u7F16\u8F91\u6218\u961F\u4FE1\u606F")),I.createElement("div",{className:m.Selecttext},"\u7F16\u8F91\u6218\u961F"),I.createElement("div",{className:m.Updatecount},I.createElement("span",{style:{fontSize:"14px",color:"#F73737"}},"*"),"\u961F\u540D\uFF1A",I.createElement("p",{style:{marginTop:"15px",marginLeft:"8px",width:"544px"}},I.createElement(ue.default,{placeholder:"\u8BF7\u8F93\u5165\u961F\u540D",value:W,maxLength:60,addonAfter:W!=null&&W.length?String(W&&W.length)+"/60":"0/60",onChange:q=>de(q.target.value)})),I.createElement("p",{style:{marginTop:"15px",marginLeft:"8px",width:"544px"}},I.createElement("span",null,"LOGO\uFF1A"),I.createElement("label",{id:"uploadBtn",style:{color:"#4DACFF",cursor:"pointer"}},I.createElement("input",{type:"file",className:"sr-only",id:"inputImage",name:"file",accept:"image/*",onChange:we,style:{display:"none"}}),"\u4E0A\u4F20LOGO"),"\xA0",I.createElement("span",null,"(\u652F\u6301jpg\u3001gif\u3001png\u683C\u5F0F\u7684\u56FE\u7247\uFF0C\u5EFA\u8BAE\u6587\u4EF6\u5C0F\u4E8E2M)")),I.createElement("div",{style:{marginTop:"15px",marginLeft:"8px",display:"flex"}},Ke?I.createElement("img",{className:m.Spanradius,src:Ke}):g?I.createElement("img",{className:m.Spanradius}):I.createElement("div",{className:m.Spanradius},W&&W.length>2?W&&W.substring(0,2):W),I.createElement(nt.Z,{style:{width:"320px",height:"320px",marginLeft:"30px",background:"#EEEEEE"},src:M,guides:!1,ref:S,crop:ne}))),I.createElement("div",{style:{marginTop:"15px",marginBottom:"15px"}},I.createElement(V.ZP,{type:"primary",onClick:()=>ce()},"\u786E\u5B9A"),I.createElement(V.ZP,{style:{marginLeft:"15px"}},I.createElement(P.Link,{to:`/competitions/${w}/detail/enroll`},"\u53D6\u6D88"))))};var Re=(0,P.connect)(({loading:We,globalSetting:$})=>({globalSetting:$,loading:We.models.competitions}))(at)},21639:function(cn){(function(ot,l){cn.exports=l()})(this,function(){"use strict";function ot(a,e){var n=Object.keys(a);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(a);e&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),n.push.apply(n,t)}return n}function l(a){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ot(Object(n),!0).forEach(function(t){F(a,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach(function(t){Object.defineProperty(a,t,Object.getOwnPropertyDescriptor(n,t))})}return a}function I(a,e){if(typeof a!="object"||!a)return a;var n=a[Symbol.toPrimitive];if(n!==void 0){var t=n.call(a,e||"default");if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function P(a){var e=I(a,"string");return typeof e=="symbol"?e:e+""}function m(a){"@babel/helpers - typeof";return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(a)}function nt(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function j(a,e){for(var n=0;n<e.length;n++){var t=e[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,P(t.key),t)}}function Y(a,e,n){return e&&j(a.prototype,e),n&&j(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}function F(a,e,n){return e=P(e),e in a?Object.defineProperty(a,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):a[e]=n,a}function ue(a){return V(a)||ve(a)||ze(a)||u()}function V(a){if(Array.isArray(a))return be(a)}function ve(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function ze(a,e){if(a){if(typeof a=="string")return be(a,e);var n=Object.prototype.toString.call(a).slice(8,-1);if(n==="Object"&&a.constructor&&(n=a.constructor.name),n==="Map"||n==="Set")return Array.from(a);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return be(a,e)}}function be(a,e){(e==null||e>a.length)&&(e=a.length);for(var n=0,t=new Array(e);n<e;n++)t[n]=a[n];return t}function u(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=typeof window!="undefined"&&typeof window.document!="undefined",it=z?window:{},Et=z&&it.document.documentElement?"ontouchstart"in it.document.documentElement:!1,at=z?"PointerEvent"in it:!1,Re="cropper",We="all",$="crop",T="move",L="zoom",k="e",A="w",c="s",te="n",W="ne",de="nw",Ke="se",E="sw",g="".concat(Re,"-crop"),R="".concat(Re,"-disabled"),S="".concat(Re,"-hidden"),M="".concat(Re,"-hide"),J="".concat(Re,"-invisible"),w="".concat(Re,"-modal"),H="".concat(Re,"-move"),he="".concat(Re,"Action"),_="".concat(Re,"Preview"),ne="crop",ce="move",we="none",q="crop",U="cropend",ye="cropmove",De="cropstart",Ee="dblclick",xe=Et?"touchstart":"mousedown",vt=Et?"touchmove":"mousemove",st=Et?"touchend touchcancel":"mouseup",St=at?"pointerdown":xe,h=at?"pointermove":vt,N=at?"pointerup pointercancel":st,p="ready",O="resize",K="wheel",G="zoom",ie="image/jpeg",fe=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,me=/^data:/,pe=/^data:image\/jpeg;base64,/,Le=/^img|canvas$/i,se=200,Qe=100,Q={viewMode:0,dragMode:ne,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:se,minContainerHeight:Qe,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},Be='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',et=Number.isNaN||it.isNaN;function X(a){return typeof a=="number"&&!et(a)}var Ve=function(e){return e>0&&e<1/0};function qe(a){return typeof a=="undefined"}function Ae(a){return m(a)==="object"&&a!==null}var rt=Object.prototype.hasOwnProperty;function ke(a){if(!Ae(a))return!1;try{var e=a.constructor,n=e.prototype;return e&&n&&rt.call(n,"isPrototypeOf")}catch(t){return!1}}function ae(a){return typeof a=="function"}var ct=Array.prototype.slice;function Wt(a){return Array.from?Array.from(a):ct.call(a)}function Ue(a,e){return a&&ae(e)&&(Array.isArray(a)||X(a.length)?Wt(a).forEach(function(n,t){e.call(a,n,t,a)}):Ae(a)&&Object.keys(a).forEach(function(n){e.call(a,a[n],n,a)})),a}var Fe=Object.assign||function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i<n;i++)t[i-1]=arguments[i];return Ae(e)&&t.length>0&&t.forEach(function(r){Ae(r)&&Object.keys(r).forEach(function(o){e[o]=r[o]})}),e},_t=/\.\d*(?:0|9){12}\d*$/;function Ce(a){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return _t.test(a)?Math.round(a*e)/e:a}var Te=/^width|height|left|top|marginLeft|marginTop$/;function je(a,e){var n=a.style;Ue(e,function(t,i){Te.test(i)&&X(t)&&(t="".concat(t,"px")),n[i]=t})}function Pt(a,e){return a.classList?a.classList.contains(e):a.className.indexOf(e)>-1}function Se(a,e){if(e){if(X(a.length)){Ue(a,function(t){Se(t,e)});return}if(a.classList){a.classList.add(e);return}var n=a.className.trim();n?n.indexOf(e)<0&&(a.className="".concat(n," ").concat(e)):a.className=e}}function lt(a,e){if(e){if(X(a.length)){Ue(a,function(n){lt(n,e)});return}if(a.classList){a.classList.remove(e);return}a.className.indexOf(e)>=0&&(a.className=a.className.replace(e,""))}}function Ye(a,e,n){if(e){if(X(a.length)){Ue(a,function(t){Ye(t,e,n)});return}n?Se(a,e):lt(a,e)}}var bt=/([a-z\d])([A-Z])/g;function He(a){return a.replace(bt,"$1-$2").toLowerCase()}function tn(a,e){return Ae(a[e])?a[e]:a.dataset?a.dataset[e]:a.getAttribute("data-".concat(He(e)))}function pt(a,e,n){Ae(n)?a[e]=n:a.dataset?a.dataset[e]=n:a.setAttribute("data-".concat(He(e)),n)}function It(a,e){if(Ae(a[e]))try{delete a[e]}catch(n){a[e]=void 0}else if(a.dataset)try{delete a.dataset[e]}catch(n){a.dataset[e]=void 0}else a.removeAttribute("data-".concat(He(e)))}var Ne=/\s\s*/,jt=function(){var a=!1;if(z){var e=!1,n=function(){},t=Object.defineProperty({},"once",{get:function(){return a=!0,e},set:function(r){e=r}});it.addEventListener("test",n,t),it.removeEventListener("test",n,t)}return a}();function Tt(a,e,n){var t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=n;e.trim().split(Ne).forEach(function(r){if(!jt){var o=a.listeners;o&&o[r]&&o[r][n]&&(i=o[r][n],delete o[r][n],Object.keys(o[r]).length===0&&delete o[r],Object.keys(o).length===0&&delete a.listeners)}a.removeEventListener(r,i,t)})}function Ot(a,e,n){var t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=n;e.trim().split(Ne).forEach(function(r){if(t.once&&!jt){var o=a.listeners,f=o===void 0?{}:o;i=function(){delete f[r][n],a.removeEventListener(r,i,t);for(var b=arguments.length,d=new Array(b),v=0;v<b;v++)d[v]=arguments[v];n.apply(a,d)},f[r]||(f[r]={}),f[r][n]&&a.removeEventListener(r,f[r][n],t),f[r][n]=i,a.listeners=f}a.addEventListener(r,i,t)})}function At(a,e,n){var t;return ae(Event)&&ae(CustomEvent)?t=new CustomEvent(e,{detail:n,bubbles:!0,cancelable:!0}):(t=document.createEvent("CustomEvent"),t.initCustomEvent(e,!0,!0,n)),a.dispatchEvent(t)}function Ft(a){var e=a.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}var Dt=it.location,rn=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function zt(a){var e=a.match(rn);return e!==null&&(e[1]!==Dt.protocol||e[2]!==Dt.hostname||e[3]!==Dt.port)}function Lt(a){var e="timestamp=".concat(new Date().getTime());return a+(a.indexOf("?")===-1?"?":"&")+e}function Bt(a){var e=a.rotate,n=a.scaleX,t=a.scaleY,i=a.translateX,r=a.translateY,o=[];X(i)&&i!==0&&o.push("translateX(".concat(i,"px)")),X(r)&&r!==0&&o.push("translateY(".concat(r,"px)")),X(e)&&e!==0&&o.push("rotate(".concat(e,"deg)")),X(n)&&n!==1&&o.push("scaleX(".concat(n,")")),X(t)&&t!==1&&o.push("scaleY(".concat(t,")"));var f=o.length?o.join(" "):"none";return{WebkitTransform:f,msTransform:f,transform:f}}function Xe(a){var e=l({},a),n=0;return Ue(a,function(t,i){delete e[i],Ue(e,function(r){var o=Math.abs(t.startX-r.startX),f=Math.abs(t.startY-r.startY),C=Math.abs(t.endX-r.endX),b=Math.abs(t.endY-r.endY),d=Math.sqrt(o*o+f*f),v=Math.sqrt(C*C+b*b),y=(v-d)/d;Math.abs(y)>Math.abs(n)&&(n=y)})}),n}function Ge(a,e){var n=a.pageX,t=a.pageY,i={endX:n,endY:t};return e?i:l({startX:n,startY:t},i)}function Ct(a){var e=0,n=0,t=0;return Ue(a,function(i){var r=i.startX,o=i.startY;e+=r,n+=o,t+=1}),e/=t,n/=t,{pageX:e,pageY:n}}function yt(a){var e=a.aspectRatio,n=a.height,t=a.width,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",r=Ve(t),o=Ve(n);if(r&&o){var f=n*e;i==="contain"&&f>t||i==="cover"&&f<t?n=t/e:t=n*e}else r?n=t/e:o&&(t=n*e);return{width:t,height:n}}function nn(a){var e=a.width,n=a.height,t=a.degree;if(t=Math.abs(t)%180,t===90)return{width:n,height:e};var i=t%90*Math.PI/180,r=Math.sin(i),o=Math.cos(i),f=e*o+n*r,C=e*r+n*o;return t>90?{width:C,height:f}:{width:f,height:C}}function xn(a,e,n,t){var i=e.aspectRatio,r=e.naturalWidth,o=e.naturalHeight,f=e.rotate,C=f===void 0?0:f,b=e.scaleX,d=b===void 0?1:b,v=e.scaleY,y=v===void 0?1:v,B=n.aspectRatio,ee=n.naturalWidth,Me=n.naturalHeight,re=t.fillColor,le=re===void 0?"transparent":re,Oe=t.imageSmoothingEnabled,ge=Oe===void 0?!0:Oe,_e=t.imageSmoothingQuality,dt=_e===void 0?"low":_e,Z=t.maxWidth,Ie=Z===void 0?1/0:Z,Je=t.maxHeight,ut=Je===void 0?1/0:Je,mt=t.minWidth,Mt=mt===void 0?0:mt,wt=t.minHeight,Nt=wt===void 0?0:wt,ht=document.createElement("canvas"),gt=ht.getContext("2d"),tt=yt({aspectRatio:B,width:Ie,height:ut}),Qt=yt({aspectRatio:B,width:Mt,height:Nt},"cover"),dn=Math.min(tt.width,Math.max(Qt.width,ee)),qt=Math.min(tt.height,Math.max(Qt.height,Me)),vn=yt({aspectRatio:i,width:Ie,height:ut}),gn=yt({aspectRatio:i,width:Mt,height:Nt},"cover"),Vt=Math.min(vn.width,Math.max(gn.width,r)),en=Math.min(vn.height,Math.max(gn.height,o)),un=[-Vt/2,-en/2,Vt,en];return ht.width=Ce(dn),ht.height=Ce(qt),gt.fillStyle=le,gt.fillRect(0,0,dn,qt),gt.save(),gt.translate(dn/2,qt/2),gt.rotate(C*Math.PI/180),gt.scale(d,y),gt.imageSmoothingEnabled=ge,gt.imageSmoothingQuality=dt,gt.drawImage.apply(gt,[a].concat(ue(un.map(function(pn){return Math.floor(Ce(pn))})))),gt.restore(),ht}var Yt=String.fromCharCode;function Nn(a,e,n){var t="";n+=e;for(var i=e;i<n;i+=1)t+=Yt(a.getUint8(i));return t}var ft=/^data:.*,/;function Zn(a){var e=a.replace(ft,""),n=atob(e),t=new ArrayBuffer(n.length),i=new Uint8Array(t);return Ue(i,function(r,o){i[o]=n.charCodeAt(o)}),t}function an(a,e){for(var n=[],t=8192,i=new Uint8Array(a);i.length>0;)n.push(Yt.apply(null,Wt(i.subarray(0,t)))),i=i.subarray(t);return"data:".concat(e,";base64,").concat(btoa(n.join("")))}function Xt(a){var e=new DataView(a),n;try{var t,i,r;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var o=e.byteLength,f=2;f+1<o;){if(e.getUint8(f)===255&&e.getUint8(f+1)===225){i=f;break}f+=1}if(i){var C=i+4,b=i+10;if(Nn(e,C,4)==="Exif"){var d=e.getUint16(b);if(t=d===18761,(t||d===19789)&&e.getUint16(b+2,t)===42){var v=e.getUint32(b+4,t);v>=8&&(r=b+v)}}}if(r){var y=e.getUint16(r,t),B,ee;for(ee=0;ee<y;ee+=1)if(B=r+ee*12+2,e.getUint16(B,t)===274){B+=8,n=e.getUint16(B,t),e.setUint16(B,1,t);break}}}catch(Me){n=1}return n}function fn(a){var e=0,n=1,t=1;switch(a){case 2:n=-1;break;case 3:e=-180;break;case 4:t=-1;break;case 5:e=90,t=-1;break;case 6:e=90;break;case 7:e=90,n=-1;break;case 8:e=-90;break}return{rotate:e,scaleX:n,scaleY:t}}var Kt={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,n=this.options,t=this.container,i=this.cropper,r=Number(n.minContainerWidth),o=Number(n.minContainerHeight);Se(i,S),lt(e,S);var f={width:Math.max(t.offsetWidth,r>=0?r:se),height:Math.max(t.offsetHeight,o>=0?o:Qe)};this.containerData=f,je(i,{width:f.width,height:f.height}),Se(e,S),lt(i,S)},initCanvas:function(){var e=this.containerData,n=this.imageData,t=this.options.viewMode,i=Math.abs(n.rotate)%180===90,r=i?n.naturalHeight:n.naturalWidth,o=i?n.naturalWidth:n.naturalHeight,f=r/o,C=e.width,b=e.height;e.height*f>e.width?t===3?C=e.height*f:b=e.width/f:t===3?b=e.width/f:C=e.height*f;var d={aspectRatio:f,naturalWidth:r,naturalHeight:o,width:C,height:b};this.canvasData=d,this.limited=t===1||t===2,this.limitCanvas(!0,!0),d.width=Math.min(Math.max(d.width,d.minWidth),d.maxWidth),d.height=Math.min(Math.max(d.height,d.minHeight),d.maxHeight),d.left=(e.width-d.width)/2,d.top=(e.height-d.height)/2,d.oldLeft=d.left,d.oldTop=d.top,this.initialCanvasData=Fe({},d)},limitCanvas:function(e,n){var t=this.options,i=this.containerData,r=this.canvasData,o=this.cropBoxData,f=t.viewMode,C=r.aspectRatio,b=this.cropped&&o;if(e){var d=Number(t.minCanvasWidth)||0,v=Number(t.minCanvasHeight)||0;f>1?(d=Math.max(d,i.width),v=Math.max(v,i.height),f===3&&(v*C>d?d=v*C:v=d/C)):f>0&&(d?d=Math.max(d,b?o.width:0):v?v=Math.max(v,b?o.height:0):b&&(d=o.width,v=o.height,v*C>d?d=v*C:v=d/C));var y=yt({aspectRatio:C,width:d,height:v});d=y.width,v=y.height,r.minWidth=d,r.minHeight=v,r.maxWidth=1/0,r.maxHeight=1/0}if(n)if(f>(b?0:1)){var B=i.width-r.width,ee=i.height-r.height;r.minLeft=Math.min(0,B),r.minTop=Math.min(0,ee),r.maxLeft=Math.max(0,B),r.maxTop=Math.max(0,ee),b&&this.limited&&(r.minLeft=Math.min(o.left,o.left+(o.width-r.width)),r.minTop=Math.min(o.top,o.top+(o.height-r.height)),r.maxLeft=o.left,r.maxTop=o.top,f===2&&(r.width>=i.width&&(r.minLeft=Math.min(0,B),r.maxLeft=Math.max(0,B)),r.height>=i.height&&(r.minTop=Math.min(0,ee),r.maxTop=Math.max(0,ee))))}else r.minLeft=-r.width,r.minTop=-r.height,r.maxLeft=i.width,r.maxTop=i.height},renderCanvas:function(e,n){var t=this.canvasData,i=this.imageData;if(n){var r=nn({width:i.naturalWidth*Math.abs(i.scaleX||1),height:i.naturalHeight*Math.abs(i.scaleY||1),degree:i.rotate||0}),o=r.width,f=r.height,C=t.width*(o/t.naturalWidth),b=t.height*(f/t.naturalHeight);t.left-=(C-t.width)/2,t.top-=(b-t.height)/2,t.width=C,t.height=b,t.aspectRatio=o/f,t.naturalWidth=o,t.naturalHeight=f,this.limitCanvas(!0,!1)}(t.width>t.maxWidth||t.width<t.minWidth)&&(t.left=t.oldLeft),(t.height>t.maxHeight||t.height<t.minHeight)&&(t.top=t.oldTop),t.width=Math.min(Math.max(t.width,t.minWidth),t.maxWidth),t.height=Math.min(Math.max(t.height,t.minHeight),t.maxHeight),this.limitCanvas(!1,!0),t.left=Math.min(Math.max(t.left,t.minLeft),t.maxLeft),t.top=Math.min(Math.max(t.top,t.minTop),t.maxTop),t.oldLeft=t.left,t.oldTop=t.top,je(this.canvas,Fe({width:t.width,height:t.height},Bt({translateX:t.left,translateY:t.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var n=this.canvasData,t=this.imageData,i=t.naturalWidth*(n.width/n.naturalWidth),r=t.naturalHeight*(n.height/n.naturalHeight);Fe(t,{width:i,height:r,left:(n.width-i)/2,top:(n.height-r)/2}),je(this.image,Fe({width:t.width,height:t.height},Bt(Fe({translateX:t.left,translateY:t.top},t)))),e&&this.output()},initCropBox:function(){var e=this.options,n=this.canvasData,t=e.aspectRatio||e.initialAspectRatio,i=Number(e.autoCropArea)||.8,r={width:n.width,height:n.height};t&&(n.height*t>n.width?r.height=r.width/t:r.width=r.height*t),this.cropBoxData=r,this.limitCropBox(!0,!0),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),r.width=Math.max(r.minWidth,r.width*i),r.height=Math.max(r.minHeight,r.height*i),r.left=n.left+(n.width-r.width)/2,r.top=n.top+(n.height-r.height)/2,r.oldLeft=r.left,r.oldTop=r.top,this.initialCropBoxData=Fe({},r)},limitCropBox:function(e,n){var t=this.options,i=this.containerData,r=this.canvasData,o=this.cropBoxData,f=this.limited,C=t.aspectRatio;if(e){var b=Number(t.minCropBoxWidth)||0,d=Number(t.minCropBoxHeight)||0,v=f?Math.min(i.width,r.width,r.width+r.left,i.width-r.left):i.width,y=f?Math.min(i.height,r.height,r.height+r.top,i.height-r.top):i.height;b=Math.min(b,i.width),d=Math.min(d,i.height),C&&(b&&d?d*C>b?d=b/C:b=d*C:b?d=b/C:d&&(b=d*C),y*C>v?y=v/C:v=y*C),o.minWidth=Math.min(b,v),o.minHeight=Math.min(d,y),o.maxWidth=v,o.maxHeight=y}n&&(f?(o.minLeft=Math.max(0,r.left),o.minTop=Math.max(0,r.top),o.maxLeft=Math.min(i.width,r.left+r.width)-o.width,o.maxTop=Math.min(i.height,r.top+r.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=i.width-o.width,o.maxTop=i.height-o.height))},renderCropBox:function(){var e=this.options,n=this.containerData,t=this.cropBoxData;(t.width>t.maxWidth||t.width<t.minWidth)&&(t.left=t.oldLeft),(t.height>t.maxHeight||t.height<t.minHeight)&&(t.top=t.oldTop),t.width=Math.min(Math.max(t.width,t.minWidth),t.maxWidth),t.height=Math.min(Math.max(t.height,t.minHeight),t.maxHeight),this.limitCropBox(!1,!0),t.left=Math.min(Math.max(t.left,t.minLeft),t.maxLeft),t.top=Math.min(Math.max(t.top,t.minTop),t.maxTop),t.oldLeft=t.left,t.oldTop=t.top,e.movable&&e.cropBoxMovable&&pt(this.face,he,t.width>=n.width&&t.height>=n.height?T:We),je(this.cropBox,Fe({width:t.width,height:t.height},Bt({translateX:t.left,translateY:t.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),At(this.element,q,this.getData())}},Bn={initPreview:function(){var e=this.element,n=this.crossOrigin,t=this.options.preview,i=n?this.crossOriginUrl:this.url,r=e.alt||"The image to preview",o=document.createElement("img");if(n&&(o.crossOrigin=n),o.src=i,o.alt=r,this.viewBox.appendChild(o),this.viewBoxImage=o,!!t){var f=t;typeof t=="string"?f=e.ownerDocument.querySelectorAll(t):t.querySelector&&(f=[t]),this.previews=f,Ue(f,function(C){var b=document.createElement("img");pt(C,_,{width:C.offsetWidth,height:C.offsetHeight,html:C.innerHTML}),n&&(b.crossOrigin=n),b.src=i,b.alt=r,b.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',C.innerHTML="",C.appendChild(b)})}},resetPreview:function(){Ue(this.previews,function(e){var n=tn(e,_);je(e,{width:n.width,height:n.height}),e.innerHTML=n.html,It(e,_)})},preview:function(){var e=this.imageData,n=this.canvasData,t=this.cropBoxData,i=t.width,r=t.height,o=e.width,f=e.height,C=t.left-n.left-e.left,b=t.top-n.top-e.top;!this.cropped||this.disabled||(je(this.viewBoxImage,Fe({width:o,height:f},Bt(Fe({translateX:-C,translateY:-b},e)))),Ue(this.previews,function(d){var v=tn(d,_),y=v.width,B=v.height,ee=y,Me=B,re=1;i&&(re=y/i,Me=r*re),r&&Me>B&&(re=B/r,ee=i*re,Me=B),je(d,{width:ee,height:Me}),je(d.getElementsByTagName("img")[0],Fe({width:o*re,height:f*re},Bt(Fe({translateX:-C*re,translateY:-b*re},e))))}))}},An={bind:function(){var e=this.element,n=this.options,t=this.cropper;ae(n.cropstart)&&Ot(e,De,n.cropstart),ae(n.cropmove)&&Ot(e,ye,n.cropmove),ae(n.cropend)&&Ot(e,U,n.cropend),ae(n.crop)&&Ot(e,q,n.crop),ae(n.zoom)&&Ot(e,G,n.zoom),Ot(t,St,this.onCropStart=this.cropStart.bind(this)),n.zoomable&&n.zoomOnWheel&&Ot(t,K,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),n.toggleDragModeOnDblclick&&Ot(t,Ee,this.onDblclick=this.dblclick.bind(this)),Ot(e.ownerDocument,h,this.onCropMove=this.cropMove.bind(this)),Ot(e.ownerDocument,N,this.onCropEnd=this.cropEnd.bind(this)),n.responsive&&Ot(window,O,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,n=this.options,t=this.cropper;ae(n.cropstart)&&Tt(e,De,n.cropstart),ae(n.cropmove)&&Tt(e,ye,n.cropmove),ae(n.cropend)&&Tt(e,U,n.cropend),ae(n.crop)&&Tt(e,q,n.crop),ae(n.zoom)&&Tt(e,G,n.zoom),Tt(t,St,this.onCropStart),n.zoomable&&n.zoomOnWheel&&Tt(t,K,this.onWheel,{passive:!1,capture:!0}),n.toggleDragModeOnDblclick&&Tt(t,Ee,this.onDblclick),Tt(e.ownerDocument,h,this.onCropMove),Tt(e.ownerDocument,N,this.onCropEnd),n.responsive&&Tt(window,O,this.onResize)}},Ze={resize:function(){if(!this.disabled){var e=this.options,n=this.container,t=this.containerData,i=n.offsetWidth/t.width,r=n.offsetHeight/t.height,o=Math.abs(i-1)>Math.abs(r-1)?i:r;if(o!==1){var f,C;e.restore&&(f=this.getCanvasData(),C=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(Ue(f,function(b,d){f[d]=b*o})),this.setCropBoxData(Ue(C,function(b,d){C[d]=b*o})))}}},dblclick:function(){this.disabled||this.options.dragMode===we||this.setDragMode(Pt(this.dragBox,g)?ce:ne)},wheel:function(e){var n=this,t=Number(this.options.wheelZoomRatio)||.1,i=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){n.wheeling=!1},50),e.deltaY?i=e.deltaY>0?1:-1:e.wheelDelta?i=-e.wheelDelta/120:e.detail&&(i=e.detail>0?1:-1),this.zoom(-i*t,e)))},cropStart:function(e){var n=e.buttons,t=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(X(n)&&n!==1||X(t)&&t!==0||e.ctrlKey))){var i=this.options,r=this.pointers,o;e.changedTouches?Ue(e.changedTouches,function(f){r[f.identifier]=Ge(f)}):r[e.pointerId||0]=Ge(e),Object.keys(r).length>1&&i.zoomable&&i.zoomOnTouch?o=L:o=tn(e.target,he),fe.test(o)&&At(this.element,De,{originalEvent:e,action:o})!==!1&&(e.preventDefault(),this.action=o,this.cropping=!1,o===$&&(this.cropping=!0,Se(this.dragBox,w)))}},cropMove:function(e){var n=this.action;if(!(this.disabled||!n)){var t=this.pointers;e.preventDefault(),At(this.element,ye,{originalEvent:e,action:n})!==!1&&(e.changedTouches?Ue(e.changedTouches,function(i){Fe(t[i.identifier]||{},Ge(i,!0))}):Fe(t[e.pointerId||0]||{},Ge(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var n=this.action,t=this.pointers;e.changedTouches?Ue(e.changedTouches,function(i){delete t[i.identifier]}):delete t[e.pointerId||0],n&&(e.preventDefault(),Object.keys(t).length||(this.action=""),this.cropping&&(this.cropping=!1,Ye(this.dragBox,w,this.cropped&&this.options.modal)),At(this.element,U,{originalEvent:e,action:n}))}}},$e={change:function(e){var n=this.options,t=this.canvasData,i=this.containerData,r=this.cropBoxData,o=this.pointers,f=this.action,C=n.aspectRatio,b=r.left,d=r.top,v=r.width,y=r.height,B=b+v,ee=d+y,Me=0,re=0,le=i.width,Oe=i.height,ge=!0,_e;!C&&e.shiftKey&&(C=v&&y?v/y:1),this.limited&&(Me=r.minLeft,re=r.minTop,le=Me+Math.min(i.width,t.width,t.left+t.width),Oe=re+Math.min(i.height,t.height,t.top+t.height));var dt=o[Object.keys(o)[0]],Z={x:dt.endX-dt.startX,y:dt.endY-dt.startY},Ie=function(ut){switch(ut){case k:B+Z.x>le&&(Z.x=le-B);break;case A:b+Z.x<Me&&(Z.x=Me-b);break;case te:d+Z.y<re&&(Z.y=re-d);break;case c:ee+Z.y>Oe&&(Z.y=Oe-ee);break}};switch(f){case We:b+=Z.x,d+=Z.y;break;case k:if(Z.x>=0&&(B>=le||C&&(d<=re||ee>=Oe))){ge=!1;break}Ie(k),v+=Z.x,v<0&&(f=A,v=-v,b-=v),C&&(y=v/C,d+=(r.height-y)/2);break;case te:if(Z.y<=0&&(d<=re||C&&(b<=Me||B>=le))){ge=!1;break}Ie(te),y-=Z.y,d+=Z.y,y<0&&(f=c,y=-y,d-=y),C&&(v=y*C,b+=(r.width-v)/2);break;case A:if(Z.x<=0&&(b<=Me||C&&(d<=re||ee>=Oe))){ge=!1;break}Ie(A),v-=Z.x,b+=Z.x,v<0&&(f=k,v=-v,b-=v),C&&(y=v/C,d+=(r.height-y)/2);break;case c:if(Z.y>=0&&(ee>=Oe||C&&(b<=Me||B>=le))){ge=!1;break}Ie(c),y+=Z.y,y<0&&(f=te,y=-y,d-=y),C&&(v=y*C,b+=(r.width-v)/2);break;case W:if(C){if(Z.y<=0&&(d<=re||B>=le)){ge=!1;break}Ie(te),y-=Z.y,d+=Z.y,v=y*C}else Ie(te),Ie(k),Z.x>=0?B<le?v+=Z.x:Z.y<=0&&d<=re&&(ge=!1):v+=Z.x,Z.y<=0?d>re&&(y-=Z.y,d+=Z.y):(y-=Z.y,d+=Z.y);v<0&&y<0?(f=E,y=-y,v=-v,d-=y,b-=v):v<0?(f=de,v=-v,b-=v):y<0&&(f=Ke,y=-y,d-=y);break;case de:if(C){if(Z.y<=0&&(d<=re||b<=Me)){ge=!1;break}Ie(te),y-=Z.y,d+=Z.y,v=y*C,b+=r.width-v}else Ie(te),Ie(A),Z.x<=0?b>Me?(v-=Z.x,b+=Z.x):Z.y<=0&&d<=re&&(ge=!1):(v-=Z.x,b+=Z.x),Z.y<=0?d>re&&(y-=Z.y,d+=Z.y):(y-=Z.y,d+=Z.y);v<0&&y<0?(f=Ke,y=-y,v=-v,d-=y,b-=v):v<0?(f=W,v=-v,b-=v):y<0&&(f=E,y=-y,d-=y);break;case E:if(C){if(Z.x<=0&&(b<=Me||ee>=Oe)){ge=!1;break}Ie(A),v-=Z.x,b+=Z.x,y=v/C}else Ie(c),Ie(A),Z.x<=0?b>Me?(v-=Z.x,b+=Z.x):Z.y>=0&&ee>=Oe&&(ge=!1):(v-=Z.x,b+=Z.x),Z.y>=0?ee<Oe&&(y+=Z.y):y+=Z.y;v<0&&y<0?(f=W,y=-y,v=-v,d-=y,b-=v):v<0?(f=Ke,v=-v,b-=v):y<0&&(f=de,y=-y,d-=y);break;case Ke:if(C){if(Z.x>=0&&(B>=le||ee>=Oe)){ge=!1;break}Ie(k),v+=Z.x,y=v/C}else Ie(c),Ie(k),Z.x>=0?B<le?v+=Z.x:Z.y>=0&&ee>=Oe&&(ge=!1):v+=Z.x,Z.y>=0?ee<Oe&&(y+=Z.y):y+=Z.y;v<0&&y<0?(f=de,y=-y,v=-v,d-=y,b-=v):v<0?(f=E,v=-v,b-=v):y<0&&(f=W,y=-y,d-=y);break;case T:this.move(Z.x,Z.y),ge=!1;break;case L:this.zoom(Xe(o),e),ge=!1;break;case $:if(!Z.x||!Z.y){ge=!1;break}_e=Ft(this.cropper),b=dt.startX-_e.left,d=dt.startY-_e.top,v=r.minWidth,y=r.minHeight,Z.x>0?f=Z.y>0?Ke:W:Z.x<0&&(b-=v,f=Z.y>0?E:de),Z.y<0&&(d-=y),this.cropped||(lt(this.cropBox,S),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}ge&&(r.width=v,r.height=y,r.left=b,r.top=d,this.action=f,this.renderCropBox()),Ue(o,function(Je){Je.startX=Je.endX,Je.startY=Je.endY})}},s={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Se(this.dragBox,w),lt(this.cropBox,S),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Fe({},this.initialImageData),this.canvasData=Fe({},this.initialCanvasData),this.cropBoxData=Fe({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Fe(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),lt(this.dragBox,w),Se(this.cropBox,S)),this},replace:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),n?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,Ue(this.previews,function(t){t.getElementsByTagName("img")[0].src=e}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,lt(this.cropper,R)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Se(this.cropper,R)),this},destroy:function(){var e=this.element;return e[Re]?(e[Re]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,t=this.canvasData,i=t.left,r=t.top;return this.moveTo(qe(e)?e:i+Number(e),qe(n)?n:r+Number(n))},moveTo:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,t=this.canvasData,i=!1;return e=Number(e),n=Number(n),this.ready&&!this.disabled&&this.options.movable&&(X(e)&&(t.left=e,i=!0),X(n)&&(t.top=n,i=!0),i&&this.renderCanvas(!0)),this},zoom:function(e,n){var t=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(t.width*e/t.naturalWidth,null,n)},zoomTo:function(e,n,t){var i=this.options,r=this.canvasData,o=r.width,f=r.height,C=r.naturalWidth,b=r.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&i.zoomable){var d=C*e,v=b*e;if(At(this.element,G,{ratio:e,oldRatio:o/C,originalEvent:t})===!1)return this;if(t){var y=this.pointers,B=Ft(this.cropper),ee=y&&Object.keys(y).length?Ct(y):{pageX:t.pageX,pageY:t.pageY};r.left-=(d-o)*((ee.pageX-B.left-r.left)/o),r.top-=(v-f)*((ee.pageY-B.top-r.top)/f)}else ke(n)&&X(n.x)&&X(n.y)?(r.left-=(d-o)*((n.x-r.left)/o),r.top-=(v-f)*((n.y-r.top)/f)):(r.left-=(d-o)/2,r.top-=(v-f)/2);r.width=d,r.height=v,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),X(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var n=this.imageData.scaleY;return this.scale(e,X(n)?n:1)},scaleY:function(e){var n=this.imageData.scaleX;return this.scale(X(n)?n:1,e)},scale:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,t=this.imageData,i=!1;return e=Number(e),n=Number(n),this.ready&&!this.disabled&&this.options.scalable&&(X(e)&&(t.scaleX=e,i=!0),X(n)&&(t.scaleY=n,i=!0),i&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.options,t=this.imageData,i=this.canvasData,r=this.cropBoxData,o;if(this.ready&&this.cropped){o={x:r.left-i.left,y:r.top-i.top,width:r.width,height:r.height};var f=t.width/t.naturalWidth;if(Ue(o,function(d,v){o[v]=d/f}),e){var C=Math.round(o.y+o.height),b=Math.round(o.x+o.width);o.x=Math.round(o.x),o.y=Math.round(o.y),o.width=b-o.x,o.height=C-o.y}}else o={x:0,y:0,width:0,height:0};return n.rotatable&&(o.rotate=t.rotate||0),n.scalable&&(o.scaleX=t.scaleX||1,o.scaleY=t.scaleY||1),o},setData:function(e){var n=this.options,t=this.imageData,i=this.canvasData,r={};if(this.ready&&!this.disabled&&ke(e)){var o=!1;n.rotatable&&X(e.rotate)&&e.rotate!==t.rotate&&(t.rotate=e.rotate,o=!0),n.scalable&&(X(e.scaleX)&&e.scaleX!==t.scaleX&&(t.scaleX=e.scaleX,o=!0),X(e.scaleY)&&e.scaleY!==t.scaleY&&(t.scaleY=e.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var f=t.width/t.naturalWidth;X(e.x)&&(r.left=e.x*f+i.left),X(e.y)&&(r.top=e.y*f+i.top),X(e.width)&&(r.width=e.width*f),X(e.height)&&(r.height=e.height*f),this.setCropBoxData(r)}return this},getContainerData:function(){return this.ready?Fe({},this.containerData):{}},getImageData:function(){return this.sized?Fe({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,n={};return this.ready&&Ue(["left","top","width","height","naturalWidth","naturalHeight"],function(t){n[t]=e[t]}),n},setCanvasData:function(e){var n=this.canvasData,t=n.aspectRatio;return this.ready&&!this.disabled&&ke(e)&&(X(e.left)&&(n.left=e.left),X(e.top)&&(n.top=e.top),X(e.width)?(n.width=e.width,n.height=e.width/t):X(e.height)&&(n.height=e.height,n.width=e.height*t),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,n;return this.ready&&this.cropped&&(n={left:e.left,top:e.top,width:e.width,height:e.height}),n||{}},setCropBoxData:function(e){var n=this.cropBoxData,t=this.options.aspectRatio,i,r;return this.ready&&this.cropped&&!this.disabled&&ke(e)&&(X(e.left)&&(n.left=e.left),X(e.top)&&(n.top=e.top),X(e.width)&&e.width!==n.width&&(i=!0,n.width=e.width),X(e.height)&&e.height!==n.height&&(r=!0,n.height=e.height),t&&(i?n.height=n.width/t:r&&(n.width=n.height*t)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var n=this.canvasData,t=xn(this.image,this.imageData,n,e);if(!this.cropped)return t;var i=this.getData(e.rounded),r=i.x,o=i.y,f=i.width,C=i.height,b=t.width/Math.floor(n.naturalWidth);b!==1&&(r*=b,o*=b,f*=b,C*=b);var d=f/C,v=yt({aspectRatio:d,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),y=yt({aspectRatio:d,width:e.minWidth||0,height:e.minHeight||0},"cover"),B=yt({aspectRatio:d,width:e.width||(b!==1?t.width:f),height:e.height||(b!==1?t.height:C)}),ee=B.width,Me=B.height;ee=Math.min(v.width,Math.max(y.width,ee)),Me=Math.min(v.height,Math.max(y.height,Me));var re=document.createElement("canvas"),le=re.getContext("2d");re.width=Ce(ee),re.height=Ce(Me),le.fillStyle=e.fillColor||"transparent",le.fillRect(0,0,ee,Me);var Oe=e.imageSmoothingEnabled,ge=Oe===void 0?!0:Oe,_e=e.imageSmoothingQuality;le.imageSmoothingEnabled=ge,_e&&(le.imageSmoothingQuality=_e);var dt=t.width,Z=t.height,Ie=r,Je=o,ut,mt,Mt,wt,Nt,ht;Ie<=-f||Ie>dt?(Ie=0,ut=0,Mt=0,Nt=0):Ie<=0?(Mt=-Ie,Ie=0,ut=Math.min(dt,f+Ie),Nt=ut):Ie<=dt&&(Mt=0,ut=Math.min(f,dt-Ie),Nt=ut),ut<=0||Je<=-C||Je>Z?(Je=0,mt=0,wt=0,ht=0):Je<=0?(wt=-Je,Je=0,mt=Math.min(Z,C+Je),ht=mt):Je<=Z&&(wt=0,mt=Math.min(C,Z-Je),ht=mt);var gt=[Ie,Je,ut,mt];if(Nt>0&&ht>0){var tt=ee/f;gt.push(Mt*tt,wt*tt,Nt*tt,ht*tt)}return le.drawImage.apply(le,[t].concat(ue(gt.map(function(Qt){return Math.floor(Ce(Qt))})))),re},setAspectRatio:function(e){var n=this.options;return!this.disabled&&!qe(e)&&(n.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var n=this.options,t=this.dragBox,i=this.face;if(this.ready&&!this.disabled){var r=e===ne,o=n.movable&&e===ce;e=r||o?e:we,n.dragMode=e,pt(t,he,e),Ye(t,g,r),Ye(t,H,o),n.cropBoxMovable||(pt(i,he,e),Ye(i,g,r),Ye(i,H,o))}return this}},x=it.Cropper,D=function(){function a(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(nt(this,a),!e||!Le.test(e.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=Fe({},Q,ke(n)&&n),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return Y(a,[{key:"init",value:function(){var n=this.element,t=n.tagName.toLowerCase(),i;if(!n[Re]){if(n[Re]=this,t==="img"){if(this.isImg=!0,i=n.getAttribute("src")||"",this.originalUrl=i,!i)return;i=n.src}else t==="canvas"&&window.HTMLCanvasElement&&(i=n.toDataURL());this.load(i)}}},{key:"load",value:function(n){var t=this;if(n){this.url=n,this.imageData={};var i=this.element,r=this.options;if(!r.rotatable&&!r.scalable&&(r.checkOrientation=!1),!r.checkOrientation||!window.ArrayBuffer){this.clone();return}if(me.test(n)){pe.test(n)?this.read(Zn(n)):this.clone();return}var o=new XMLHttpRequest,f=this.clone.bind(this);this.reloading=!0,this.xhr=o,o.onabort=f,o.onerror=f,o.ontimeout=f,o.onprogress=function(){o.getResponseHeader("content-type")!==ie&&o.abort()},o.onload=function(){t.read(o.response)},o.onloadend=function(){t.reloading=!1,t.xhr=null},r.checkCrossOrigin&&zt(n)&&i.crossOrigin&&(n=Lt(n)),o.open("GET",n,!0),o.responseType="arraybuffer",o.withCredentials=i.crossOrigin==="use-credentials",o.send()}}},{key:"read",value:function(n){var t=this.options,i=this.imageData,r=Xt(n),o=0,f=1,C=1;if(r>1){this.url=an(n,ie);var b=fn(r);o=b.rotate,f=b.scaleX,C=b.scaleY}t.rotatable&&(i.rotate=o),t.scalable&&(i.scaleX=f,i.scaleY=C),this.clone()}},{key:"clone",value:function(){var n=this.element,t=this.url,i=n.crossOrigin,r=t;this.options.checkCrossOrigin&&zt(t)&&(i||(i="anonymous"),r=Lt(t)),this.crossOrigin=i,this.crossOriginUrl=r;var o=document.createElement("img");i&&(o.crossOrigin=i),o.src=r||t,o.alt=n.alt||"The image to crop",this.image=o,o.onload=this.start.bind(this),o.onerror=this.stop.bind(this),Se(o,M),n.parentNode.insertBefore(o,n.nextSibling)}},{key:"start",value:function(){var n=this,t=this.image;t.onload=null,t.onerror=null,this.sizing=!0;var i=it.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(it.navigator.userAgent),r=function(b,d){Fe(n.imageData,{naturalWidth:b,naturalHeight:d,aspectRatio:b/d}),n.initialImageData=Fe({},n.imageData),n.sizing=!1,n.sized=!0,n.build()};if(t.naturalWidth&&!i){r(t.naturalWidth,t.naturalHeight);return}var o=document.createElement("img"),f=document.body||document.documentElement;this.sizingImage=o,o.onload=function(){r(o.width,o.height),i||f.removeChild(o)},o.src=t.src,i||(o.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",f.appendChild(o))}},{key:"stop",value:function(){var n=this.image;n.onload=null,n.onerror=null,n.parentNode.removeChild(n),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var n=this.element,t=this.options,i=this.image,r=n.parentNode,o=document.createElement("div");o.innerHTML=Be;var f=o.querySelector(".".concat(Re,"-container")),C=f.querySelector(".".concat(Re,"-canvas")),b=f.querySelector(".".concat(Re,"-drag-box")),d=f.querySelector(".".concat(Re,"-crop-box")),v=d.querySelector(".".concat(Re,"-face"));this.container=r,this.cropper=f,this.canvas=C,this.dragBox=b,this.cropBox=d,this.viewBox=f.querySelector(".".concat(Re,"-view-box")),this.face=v,C.appendChild(i),Se(n,S),r.insertBefore(f,n.nextSibling),lt(i,M),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,Se(d,S),t.guides||Se(d.getElementsByClassName("".concat(Re,"-dashed")),S),t.center||Se(d.getElementsByClassName("".concat(Re,"-center")),S),t.background&&Se(f,"".concat(Re,"-bg")),t.highlight||Se(v,J),t.cropBoxMovable&&(Se(v,H),pt(v,he,We)),t.cropBoxResizable||(Se(d.getElementsByClassName("".concat(Re,"-line")),S),Se(d.getElementsByClassName("".concat(Re,"-point")),S)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),ae(t.ready)&&Ot(n,p,t.ready,{once:!0}),At(n,p)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var n=this.cropper.parentNode;n&&n.removeChild(this.cropper),lt(this.element,S)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=x,a}},{key:"setDefaults",value:function(n){Fe(Q,ke(n)&&n)}}])}();return Fe(D.prototype,Kt,Bn,An,Ze,$e,s),D})},96478:function(cn,ot,l){"use strict";l.d(ot,{Z:function(){return A}});var I=l(72308),P=l(49618),m=l(52487),nt=l(74416),j=l(65352),Y=l(92310),F=l.n(Y),ue=l(8654),V=l(59301),ve=l(10228),ze=l(16089),be=ve.Z.ESC,u=ve.Z.TAB;function z(c){var te=c.visible,W=c.triggerRef,de=c.onVisibleChange,Ke=c.autoFocus,E=c.overlayRef,g=V.useRef(!1),R=function(){if(te){var w,H;(w=W.current)===null||w===void 0||(H=w.focus)===null||H===void 0||H.call(w),de==null||de(!1)}},S=function(){var w;return(w=E.current)!==null&&w!==void 0&&w.focus?(E.current.focus(),g.current=!0,!0):!1},M=function(w){switch(w.keyCode){case be:R();break;case u:{var H=!1;g.current||(H=S()),H?w.preventDefault():R();break}}};V.useEffect(function(){return te?(window.addEventListener("keydown",M),Ke&&(0,ze.Z)(S,3),function(){window.removeEventListener("keydown",M),g.current=!1}):function(){g.current=!1}},[te])}var it=(0,V.forwardRef)(function(c,te){var W=c.overlay,de=c.arrow,Ke=c.prefixCls,E=(0,V.useMemo)(function(){var R;return typeof W=="function"?R=W():R=W,R},[W]),g=(0,ue.sQ)(te,(0,ue.C4)(E));return V.createElement(V.Fragment,null,de&&V.createElement("div",{className:"".concat(Ke,"-arrow")}),V.cloneElement(E,{ref:(0,ue.Yr)(E)?g:void 0}))}),Et=it,at={adjustX:1,adjustY:1},Re=[0,0],We={topLeft:{points:["bl","tl"],overflow:at,offset:[0,-4],targetOffset:Re},top:{points:["bc","tc"],overflow:at,offset:[0,-4],targetOffset:Re},topRight:{points:["br","tr"],overflow:at,offset:[0,-4],targetOffset:Re},bottomLeft:{points:["tl","bl"],overflow:at,offset:[0,4],targetOffset:Re},bottom:{points:["tc","bc"],overflow:at,offset:[0,4],targetOffset:Re},bottomRight:{points:["tr","br"],overflow:at,offset:[0,4],targetOffset:Re}},$=We,T=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function L(c,te){var W,de=c.arrow,Ke=de===void 0?!1:de,E=c.prefixCls,g=E===void 0?"rc-dropdown":E,R=c.transitionName,S=c.animation,M=c.align,J=c.placement,w=J===void 0?"bottomLeft":J,H=c.placements,he=H===void 0?$:H,_=c.getPopupContainer,ne=c.showAction,ce=c.hideAction,we=c.overlayClassName,q=c.overlayStyle,U=c.visible,ye=c.trigger,De=ye===void 0?["hover"]:ye,Ee=c.autoFocus,xe=c.overlay,vt=c.children,st=c.onVisibleChange,St=(0,nt.Z)(c,T),h=V.useState(),N=(0,m.Z)(h,2),p=N[0],O=N[1],K="visible"in c?U:p,G=V.useRef(null),ie=V.useRef(null),fe=V.useRef(null);V.useImperativeHandle(te,function(){return G.current});var me=function(Ve){O(Ve),st==null||st(Ve)};z({visible:K,triggerRef:fe,onVisibleChange:me,autoFocus:Ee,overlayRef:ie});var pe=function(Ve){var qe=c.onOverlayClick;O(!1),qe&&qe(Ve)},Le=function(){return V.createElement(Et,{ref:ie,overlay:xe,prefixCls:g,arrow:Ke})},se=function(){return typeof xe=="function"?Le:Le()},Qe=function(){var Ve=c.minOverlayWidthMatchTrigger,qe=c.alignPoint;return"minOverlayWidthMatchTrigger"in c?Ve:!qe},Q=function(){var Ve=c.openClassName;return Ve!==void 0?Ve:"".concat(g,"-open")},Be=V.cloneElement(vt,{className:F()((W=vt.props)===null||W===void 0?void 0:W.className,K&&Q()),ref:(0,ue.Yr)(vt)?(0,ue.sQ)(fe,(0,ue.C4)(vt)):void 0}),et=ce;return!et&&De.indexOf("contextMenu")!==-1&&(et=["click"]),V.createElement(j.Z,(0,I.Z)({builtinPlacements:he},St,{prefixCls:g,ref:G,popupClassName:F()(we,(0,P.Z)({},"".concat(g,"-show-arrow"),Ke)),popupStyle:q,action:De,showAction:ne,hideAction:et,popupPlacement:w,popupAlign:M,popupTransitionName:R,popupAnimation:S,popupVisible:K,stretch:Qe()?"minWidth":"",popup:se(),onPopupVisibleChange:me,onPopupClick:pe,getPopupContainer:_}),Be)}var k=V.forwardRef(L),A=k},66003:function(cn,ot,l){"use strict";l.d(ot,{Z:function(){return F}});var I=l(74416),P=l(77321),m=l(62853),nt=l(59301),j=["show"];function Y(ue,V){if(!V.max)return!0;var ve=V.strategy(ue);return ve<=V.max}function F(ue,V){return nt.useMemo(function(){var ve={};V&&(ve.show=(0,m.Z)(V)==="object"&&V.formatter?V.formatter:!!V),ve=(0,P.Z)((0,P.Z)({},ve),ue);var ze=ve,be=ze.show,u=(0,I.Z)(ze,j);return(0,P.Z)((0,P.Z)({},u),{},{show:!!be,showFormatter:typeof be=="function"?be:void 0,strategy:u.strategy||function(z){return z.length}})},[ue,V])}},36901:function(cn,ot,l){"use strict";l.r(ot),l.d(ot,{BaseInput:function(){return ve},default:function(){return $}});var I=l(77321),P=l(72308),m=l(49618),nt=l(62853),j=l(92310),Y=l.n(j),F=l(59301),ue=l(30292),V=F.forwardRef(function(T,L){var k,A,c,te=T.inputElement,W=T.children,de=T.prefixCls,Ke=T.prefix,E=T.suffix,g=T.addonBefore,R=T.addonAfter,S=T.className,M=T.style,J=T.disabled,w=T.readOnly,H=T.focused,he=T.triggerFocus,_=T.allowClear,ne=T.value,ce=T.handleReset,we=T.hidden,q=T.classes,U=T.classNames,ye=T.dataAttrs,De=T.styles,Ee=T.components,xe=T.onClear,vt=W!=null?W:te,st=(Ee==null?void 0:Ee.affixWrapper)||"span",St=(Ee==null?void 0:Ee.groupWrapper)||"span",h=(Ee==null?void 0:Ee.wrapper)||"span",N=(Ee==null?void 0:Ee.groupAddon)||"span",p=(0,F.useRef)(null),O=function(rt){var ke;(ke=p.current)!==null&&ke!==void 0&&ke.contains(rt.target)&&(he==null||he())},K=(0,ue.X3)(T),G=(0,F.cloneElement)(vt,{value:ne,className:Y()((k=vt.props)===null||k===void 0?void 0:k.className,!K&&(U==null?void 0:U.variant))||null}),ie=(0,F.useRef)(null);if(F.useImperativeHandle(L,function(){return{nativeElement:ie.current||p.current}}),K){var fe=null;if(_){var me=!J&&!w&&ne,pe="".concat(de,"-clear-icon"),Le=(0,nt.Z)(_)==="object"&&_!==null&&_!==void 0&&_.clearIcon?_.clearIcon:"\u2716";fe=F.createElement("button",{type:"button",tabIndex:-1,onClick:function(rt){ce==null||ce(rt),xe==null||xe()},onMouseDown:function(rt){return rt.preventDefault()},className:Y()(pe,(0,m.Z)((0,m.Z)({},"".concat(pe,"-hidden"),!me),"".concat(pe,"-has-suffix"),!!E))},Le)}var se="".concat(de,"-affix-wrapper"),Qe=Y()(se,(0,m.Z)((0,m.Z)((0,m.Z)((0,m.Z)((0,m.Z)({},"".concat(de,"-disabled"),J),"".concat(se,"-disabled"),J),"".concat(se,"-focused"),H),"".concat(se,"-readonly"),w),"".concat(se,"-input-with-clear-btn"),E&&_&&ne),q==null?void 0:q.affixWrapper,U==null?void 0:U.affixWrapper,U==null?void 0:U.variant),Q=(E||_)&&F.createElement("span",{className:Y()("".concat(de,"-suffix"),U==null?void 0:U.suffix),style:De==null?void 0:De.suffix},fe,E);G=F.createElement(st,(0,P.Z)({className:Qe,style:De==null?void 0:De.affixWrapper,onClick:O},ye==null?void 0:ye.affixWrapper,{ref:p}),Ke&&F.createElement("span",{className:Y()("".concat(de,"-prefix"),U==null?void 0:U.prefix),style:De==null?void 0:De.prefix},Ke),G,Q)}if((0,ue.He)(T)){var Be="".concat(de,"-group"),et="".concat(Be,"-addon"),X="".concat(Be,"-wrapper"),Ve=Y()("".concat(de,"-wrapper"),Be,q==null?void 0:q.wrapper,U==null?void 0:U.wrapper),qe=Y()(X,(0,m.Z)({},"".concat(X,"-disabled"),J),q==null?void 0:q.group,U==null?void 0:U.groupWrapper);G=F.createElement(St,{className:qe,ref:ie},F.createElement(h,{className:Ve},g&&F.createElement(N,{className:et},g),G,R&&F.createElement(N,{className:et},R)))}return F.cloneElement(G,{className:Y()((A=G.props)===null||A===void 0?void 0:A.className,S)||null,style:(0,I.Z)((0,I.Z)({},(c=G.props)===null||c===void 0?void 0:c.style),M),hidden:we})}),ve=V,ze=l(80702),be=l(52487),u=l(74416),z=l(18929),it=l(2738),Et=l(66003),at=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Re=(0,F.forwardRef)(function(T,L){var k=T.autoComplete,A=T.onChange,c=T.onFocus,te=T.onBlur,W=T.onPressEnter,de=T.onKeyDown,Ke=T.onKeyUp,E=T.prefixCls,g=E===void 0?"rc-input":E,R=T.disabled,S=T.htmlSize,M=T.className,J=T.maxLength,w=T.suffix,H=T.showCount,he=T.count,_=T.type,ne=_===void 0?"text":_,ce=T.classes,we=T.classNames,q=T.styles,U=T.onCompositionStart,ye=T.onCompositionEnd,De=(0,u.Z)(T,at),Ee=(0,F.useState)(!1),xe=(0,be.Z)(Ee,2),vt=xe[0],st=xe[1],St=(0,F.useRef)(!1),h=(0,F.useRef)(!1),N=(0,F.useRef)(null),p=(0,F.useRef)(null),O=function(Te){N.current&&(0,ue.nH)(N.current,Te)},K=(0,z.Z)(T.defaultValue,{value:T.value}),G=(0,be.Z)(K,2),ie=G[0],fe=G[1],me=ie==null?"":String(ie),pe=(0,F.useState)(null),Le=(0,be.Z)(pe,2),se=Le[0],Qe=Le[1],Q=(0,Et.Z)(he,H),Be=Q.max||J,et=Q.strategy(me),X=!!Be&&et>Be;(0,F.useImperativeHandle)(L,function(){var Ce;return{focus:O,blur:function(){var je;(je=N.current)===null||je===void 0||je.blur()},setSelectionRange:function(je,Pt,Se){var lt;(lt=N.current)===null||lt===void 0||lt.setSelectionRange(je,Pt,Se)},select:function(){var je;(je=N.current)===null||je===void 0||je.select()},input:N.current,nativeElement:((Ce=p.current)===null||Ce===void 0?void 0:Ce.nativeElement)||N.current}}),(0,F.useEffect)(function(){h.current&&(h.current=!1),st(function(Ce){return Ce&&R?!1:Ce})},[R]);var Ve=function(Te,je,Pt){var Se=je;if(!St.current&&Q.exceedFormatter&&Q.max&&Q.strategy(je)>Q.max){if(Se=Q.exceedFormatter(je,{max:Q.max}),je!==Se){var lt,Ye;Qe([((lt=N.current)===null||lt===void 0?void 0:lt.selectionStart)||0,((Ye=N.current)===null||Ye===void 0?void 0:Ye.selectionEnd)||0])}}else if(Pt.source==="compositionEnd")return;fe(Se),N.current&&(0,ue.rJ)(N.current,Te,A,Se)};(0,F.useEffect)(function(){if(se){var Ce;(Ce=N.current)===null||Ce===void 0||Ce.setSelectionRange.apply(Ce,(0,ze.Z)(se))}},[se]);var qe=function(Te){Ve(Te,Te.target.value,{source:"change"})},Ae=function(Te){St.current=!1,Ve(Te,Te.currentTarget.value,{source:"compositionEnd"}),ye==null||ye(Te)},rt=function(Te){W&&Te.key==="Enter"&&!h.current&&(h.current=!0,W(Te)),de==null||de(Te)},ke=function(Te){Te.key==="Enter"&&(h.current=!1),Ke==null||Ke(Te)},ae=function(Te){st(!0),c==null||c(Te)},ct=function(Te){h.current&&(h.current=!1),st(!1),te==null||te(Te)},Wt=function(Te){fe(""),O(),N.current&&(0,ue.rJ)(N.current,Te,A)},Ue=X&&"".concat(g,"-out-of-range"),Fe=function(){var Te=(0,it.Z)(T,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return F.createElement("input",(0,P.Z)({autoComplete:k},Te,{onChange:qe,onFocus:ae,onBlur:ct,onKeyDown:rt,onKeyUp:ke,className:Y()(g,(0,m.Z)({},"".concat(g,"-disabled"),R),we==null?void 0:we.input),style:q==null?void 0:q.input,ref:N,size:S,type:ne,onCompositionStart:function(Pt){St.current=!0,U==null||U(Pt)},onCompositionEnd:Ae}))},_t=function(){var Te=Number(Be)>0;if(w||Q.show){var je=Q.showFormatter?Q.showFormatter({value:me,count:et,maxLength:Be}):"".concat(et).concat(Te?" / ".concat(Be):"");return F.createElement(F.Fragment,null,Q.show&&F.createElement("span",{className:Y()("".concat(g,"-show-count-suffix"),(0,m.Z)({},"".concat(g,"-show-count-has-suffix"),!!w),we==null?void 0:we.count),style:(0,I.Z)({},q==null?void 0:q.count)},je),w)}return null};return F.createElement(ve,(0,P.Z)({},De,{prefixCls:g,className:Y()(M,Ue),handleReset:Wt,value:me,focused:vt,triggerFocus:O,suffix:_t(),disabled:R,classes:ce,classNames:we,styles:q}),Fe())}),We=Re,$=We},30292:function(cn,ot,l){"use strict";l.d(ot,{He:function(){return I},X3:function(){return P},nH:function(){return j},rJ:function(){return nt}});function I(Y){return!!(Y.addonBefore||Y.addonAfter)}function P(Y){return!!(Y.prefix||Y.suffix||Y.allowClear)}function m(Y,F,ue){var V=F.cloneNode(!0),ve=Object.create(Y,{target:{value:V},currentTarget:{value:V}});return V.value=ue,typeof F.selectionStart=="number"&&typeof F.selectionEnd=="number"&&(V.selectionStart=F.selectionStart,V.selectionEnd=F.selectionEnd),V.setSelectionRange=function(){F.setSelectionRange.apply(F,arguments)},ve}function nt(Y,F,ue,V){if(ue){var ve=F;if(F.type==="click"){ve=m(F,Y,""),ue(ve);return}if(Y.type!=="file"&&V!==void 0){ve=m(F,Y,V),ue(ve);return}ue(ve)}}function j(Y,F){if(Y){Y.focus(F);var ue=F||{},V=ue.cursor;if(V){var ve=Y.value.length;switch(V){case"start":Y.setSelectionRange(0,0);break;case"end":Y.setSelectionRange(ve,ve);break;default:Y.setSelectionRange(0,ve)}}}}},28321:function(cn,ot,l){"use strict";l.d(ot,{iz:function(){return nn},ck:function(){return Se},BW:function(){return ft},sN:function(){return Se},Wd:function(){return Ct},ZP:function(){return $e},Xl:function(){return W}});var I=l(72308),P=l(49618),m=l(77321),nt=l(80702),j=l(52487),Y=l(74416),F=l(92310),ue=l.n(F),V=l(11780),ve=l(18929),ze=l(13697),be=l(48736),u=l(59301),z=l(4676),it=u.createContext(null);function Et(s,x){return s===void 0?null:"".concat(s,"-").concat(x)}function at(s){var x=u.useContext(it);return Et(x,s)}var Re=l(80547),We=["children","locked"],$=u.createContext(null);function T(s,x){var D=(0,m.Z)({},s);return Object.keys(x).forEach(function(a){var e=x[a];e!==void 0&&(D[a]=e)}),D}function L(s){var x=s.children,D=s.locked,a=(0,Y.Z)(s,We),e=u.useContext($),n=(0,Re.Z)(function(){return T(e,a)},[e,a],function(t,i){return!D&&(t[0]!==i[0]||!(0,ze.Z)(t[1],i[1],!0))});return u.createElement($.Provider,{value:n},x)}var k=[],A=u.createContext(null);function c(){return u.useContext(A)}var te=u.createContext(k);function W(s){var x=u.useContext(te);return u.useMemo(function(){return s!==void 0?[].concat((0,nt.Z)(x),[s]):x},[x,s])}var de=u.createContext(null),Ke=u.createContext({}),E=Ke,g=l(29194);function R(s){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,g.Z)(s)){var D=s.nodeName.toLowerCase(),a=["input","select","textarea","button"].includes(D)||s.isContentEditable||D==="a"&&!!s.getAttribute("href"),e=s.getAttribute("tabindex"),n=Number(e),t=null;return e&&!Number.isNaN(n)?t=n:a&&t===null&&(t=0),a&&s.disabled&&(t=null),t!==null&&(t>=0||x&&t<0)}return!1}function S(s){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,D=(0,nt.Z)(s.querySelectorAll("*")).filter(function(a){return R(a,x)});return R(s,x)&&D.unshift(s),D}var M=null;function J(){M=document.activeElement}function w(){M=null}function H(){if(M)try{M.focus()}catch(s){}}function he(s,x){if(x.keyCode===9){var D=S(s),a=D[x.shiftKey?0:D.length-1],e=a===document.activeElement||s===document.activeElement;if(e){var n=D[x.shiftKey?D.length-1:0];n.focus(),x.preventDefault()}}}var _=l(10228),ne=l(16089),ce=_.Z.LEFT,we=_.Z.RIGHT,q=_.Z.UP,U=_.Z.DOWN,ye=_.Z.ENTER,De=_.Z.ESC,Ee=_.Z.HOME,xe=_.Z.END,vt=[q,U,ce,we];function st(s,x,D,a){var e,n="prev",t="next",i="children",r="parent";if(s==="inline"&&a===ye)return{inlineTrigger:!0};var o=(0,P.Z)((0,P.Z)({},q,n),U,t),f=(0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)({},ce,D?t:n),we,D?n:t),U,i),ye,i),C=(0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)({},q,n),U,t),ye,i),De,r),ce,D?i:r),we,D?r:i),b={inline:o,horizontal:f,vertical:C,inlineSub:o,horizontalSub:C,verticalSub:C},d=(e=b["".concat(s).concat(x?"":"Sub")])===null||e===void 0?void 0:e[a];switch(d){case n:return{offset:-1,sibling:!0};case t:return{offset:1,sibling:!0};case r:return{offset:-1,sibling:!1};case i:return{offset:1,sibling:!1};default:return null}}function St(s){for(var x=s;x;){if(x.getAttribute("data-menu-list"))return x;x=x.parentElement}return null}function h(s,x){for(var D=s||document.activeElement;D;){if(x.has(D))return D;D=D.parentElement}return null}function N(s,x){var D=S(s,!0);return D.filter(function(a){return x.has(a)})}function p(s,x,D){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!s)return null;var e=N(s,x),n=e.length,t=e.findIndex(function(i){return D===i});return a<0?t===-1?t=n-1:t-=1:a>0&&(t+=1),t=(t+n)%n,e[t]}var O=function(x,D){var a=new Set,e=new Map,n=new Map;return x.forEach(function(t){var i=document.querySelector("[data-menu-id='".concat(Et(D,t),"']"));i&&(a.add(i),n.set(i,t),e.set(t,i))}),{elements:a,key2element:e,element2key:n}};function K(s,x,D,a,e,n,t,i,r,o){var f=u.useRef(),C=u.useRef();C.current=x;var b=function(){ne.Z.cancel(f.current)};return u.useEffect(function(){return function(){b()}},[]),function(d){var v=d.which;if([].concat(vt,[ye,De,Ee,xe]).includes(v)){var y=n(),B=O(y,a),ee=B,Me=ee.elements,re=ee.key2element,le=ee.element2key,Oe=re.get(x),ge=h(Oe,Me),_e=le.get(ge),dt=st(s,t(_e,!0).length===1,D,v);if(!dt&&v!==Ee&&v!==xe)return;(vt.includes(v)||[Ee,xe].includes(v))&&d.preventDefault();var Z=function(ht){if(ht){var gt=ht,tt=ht.querySelector("a");tt!=null&&tt.getAttribute("href")&&(gt=tt);var Qt=le.get(ht);i(Qt),b(),f.current=(0,ne.Z)(function(){C.current===Qt&>.focus()})}};if([Ee,xe].includes(v)||dt.sibling||!ge){var Ie;!ge||s==="inline"?Ie=e.current:Ie=St(ge);var Je,ut=N(Ie,Me);v===Ee?Je=ut[0]:v===xe?Je=ut[ut.length-1]:Je=p(Ie,Me,ge,dt.offset),Z(Je)}else if(dt.inlineTrigger)r(_e);else if(dt.offset>0)r(_e,!0),b(),f.current=(0,ne.Z)(function(){B=O(y,a);var Nt=ge.getAttribute("aria-controls"),ht=document.getElementById(Nt),gt=p(ht,B.elements);Z(gt)},5);else if(dt.offset<0){var mt=t(_e,!0),Mt=mt[mt.length-2],wt=re.get(Mt);r(Mt,!1),Z(wt)}}o==null||o(d)}}function G(s){Promise.resolve().then(s)}var ie="__RC_UTIL_PATH_SPLIT__",fe=function(x){return x.join(ie)},me=function(x){return x.split(ie)},pe="rc-menu-more";function Le(){var s=u.useState({}),x=(0,j.Z)(s,2),D=x[1],a=(0,u.useRef)(new Map),e=(0,u.useRef)(new Map),n=u.useState([]),t=(0,j.Z)(n,2),i=t[0],r=t[1],o=(0,u.useRef)(0),f=(0,u.useRef)(!1),C=function(){f.current||D({})},b=(0,u.useCallback)(function(re,le){var Oe=fe(le);e.current.set(Oe,re),a.current.set(re,Oe),o.current+=1;var ge=o.current;G(function(){ge===o.current&&C()})},[]),d=(0,u.useCallback)(function(re,le){var Oe=fe(le);e.current.delete(Oe),a.current.delete(re)},[]),v=(0,u.useCallback)(function(re){r(re)},[]),y=(0,u.useCallback)(function(re,le){var Oe=a.current.get(re)||"",ge=me(Oe);return le&&i.includes(ge[0])&&ge.unshift(pe),ge},[i]),B=(0,u.useCallback)(function(re,le){return re.filter(function(Oe){return Oe!==void 0}).some(function(Oe){var ge=y(Oe,!0);return ge.includes(le)})},[y]),ee=function(){var le=(0,nt.Z)(a.current.keys());return i.length&&le.push(pe),le},Me=(0,u.useCallback)(function(re){var le="".concat(a.current.get(re)).concat(ie),Oe=new Set;return(0,nt.Z)(e.current.keys()).forEach(function(ge){ge.startsWith(le)&&Oe.add(e.current.get(ge))}),Oe},[]);return u.useEffect(function(){return function(){f.current=!0}},[]),{registerPath:b,unregisterPath:d,refreshOverflowKeys:v,isSubPathKey:B,getKeyPath:y,getKeys:ee,getSubPathKeys:Me}}function se(s){var x=u.useRef(s);x.current=s;var D=u.useCallback(function(){for(var a,e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return(a=x.current)===null||a===void 0?void 0:a.call.apply(a,[x].concat(n))},[]);return s?D:void 0}var Qe=Math.random().toFixed(5).toString().slice(2),Q=0;function Be(s){var x=(0,ve.Z)(s,{value:s}),D=(0,j.Z)(x,2),a=D[0],e=D[1];return u.useEffect(function(){Q+=1;var n="".concat(Qe,"-").concat(Q);e("rc-menu-uuid-".concat(n))},[]),a}var et=l(96949),X=l(55090),Ve=l(77205),qe=l(38793),Ae=l(2738),rt=l(8654);function ke(s,x,D,a){var e=u.useContext($),n=e.activeKey,t=e.onActive,i=e.onInactive,r={active:n===s};return x||(r.onMouseEnter=function(o){D==null||D({key:s,domEvent:o}),t(s)},r.onMouseLeave=function(o){a==null||a({key:s,domEvent:o}),i(s)}),r}function ae(s){var x=u.useContext($),D=x.mode,a=x.rtl,e=x.inlineIndent;if(D!=="inline")return null;var n=s;return a?{paddingRight:n*e}:{paddingLeft:n*e}}function ct(s){var x=s.icon,D=s.props,a=s.children,e;return x===null||x===!1?null:(typeof x=="function"?e=u.createElement(x,(0,m.Z)({},D)):typeof x!="boolean"&&(e=x),e||a||null)}var Wt=["item"];function Ue(s){var x=s.item,D=(0,Y.Z)(s,Wt);return Object.defineProperty(D,"item",{get:function(){return(0,be.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),x}}),D}var Fe=["title","attribute","elementRef"],_t=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ce=["active"],Te=function(s){(0,Ve.Z)(D,s);var x=(0,qe.Z)(D);function D(){return(0,et.Z)(this,D),x.apply(this,arguments)}return(0,X.Z)(D,[{key:"render",value:function(){var e=this.props,n=e.title,t=e.attribute,i=e.elementRef,r=(0,Y.Z)(e,Fe),o=(0,Ae.Z)(r,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,be.ZP)(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(V.Z.Item,(0,I.Z)({},t,{title:typeof n=="string"?n:void 0},o,{ref:i}))}}]),D}(u.Component),je=u.forwardRef(function(s,x){var D=s.style,a=s.className,e=s.eventKey,n=s.warnKey,t=s.disabled,i=s.itemIcon,r=s.children,o=s.role,f=s.onMouseEnter,C=s.onMouseLeave,b=s.onClick,d=s.onKeyDown,v=s.onFocus,y=(0,Y.Z)(s,_t),B=at(e),ee=u.useContext($),Me=ee.prefixCls,re=ee.onItemClick,le=ee.disabled,Oe=ee.overflowDisabled,ge=ee.itemIcon,_e=ee.selectedKeys,dt=ee.onActive,Z=u.useContext(E),Ie=Z._internalRenderMenuItem,Je="".concat(Me,"-item"),ut=u.useRef(),mt=u.useRef(),Mt=le||t,wt=(0,rt.x1)(x,mt),Nt=W(e),ht=function(Zt){return{key:e,keyPath:(0,nt.Z)(Nt).reverse(),item:ut.current,domEvent:Zt}},gt=i||ge,tt=ke(e,Mt,f,C),Qt=tt.active,dn=(0,Y.Z)(tt,Ce),qt=_e.includes(e),vn=ae(Nt.length),gn=function(Zt){if(!Mt){var hn=ht(Zt);b==null||b(Ue(hn)),re(hn)}},Vt=function(Zt){if(d==null||d(Zt),Zt.which===_.Z.ENTER){var hn=ht(Zt);b==null||b(Ue(hn)),re(hn)}},en=function(Zt){dt(e),v==null||v(Zt)},un={};s.role==="option"&&(un["aria-selected"]=qt);var pn=u.createElement(Te,(0,I.Z)({ref:ut,elementRef:wt,role:o===null?"none":o||"menuitem",tabIndex:t?null:-1,"data-menu-id":Oe&&B?null:B},(0,Ae.Z)(y,["extra"]),dn,un,{component:"li","aria-disabled":t,style:(0,m.Z)((0,m.Z)({},vn),D),className:ue()(Je,(0,P.Z)((0,P.Z)((0,P.Z)({},"".concat(Je,"-active"),Qt),"".concat(Je,"-selected"),qt),"".concat(Je,"-disabled"),Mt),a),onClick:gn,onKeyDown:Vt,onFocus:en}),r,u.createElement(ct,{props:(0,m.Z)((0,m.Z)({},s),{},{isSelected:qt}),icon:gt}));return Ie&&(pn=Ie(pn,s,{selected:qt})),pn});function Pt(s,x){var D=s.eventKey,a=c(),e=W(D);return u.useEffect(function(){if(a)return a.registerPath(D,e),function(){a.unregisterPath(D,e)}},[e]),a?null:u.createElement(je,(0,I.Z)({},s,{ref:x}))}var Se=u.forwardRef(Pt),lt=["className","children"],Ye=function(x,D){var a=x.className,e=x.children,n=(0,Y.Z)(x,lt),t=u.useContext($),i=t.prefixCls,r=t.mode,o=t.rtl;return u.createElement("ul",(0,I.Z)({className:ue()(i,o&&"".concat(i,"-rtl"),"".concat(i,"-sub"),"".concat(i,"-").concat(r==="inline"?"inline":"vertical"),a),role:"menu"},n,{"data-menu-list":!0,ref:D}),e)},bt=u.forwardRef(Ye);bt.displayName="SubMenuList";var He=bt,tn=l(11592);function pt(s,x){return(0,tn.Z)(s).map(function(D,a){if(u.isValidElement(D)){var e,n,t=D.key,i=(e=(n=D.props)===null||n===void 0?void 0:n.eventKey)!==null&&e!==void 0?e:t,r=i==null;r&&(i="tmp_key-".concat([].concat((0,nt.Z)(x),[a]).join("-")));var o={key:i,eventKey:i};return u.cloneElement(D,o)}return D})}var It=l(65352),Ne={adjustX:1,adjustY:1},jt={topLeft:{points:["bl","tl"],overflow:Ne},topRight:{points:["br","tr"],overflow:Ne},bottomLeft:{points:["tl","bl"],overflow:Ne},bottomRight:{points:["tr","br"],overflow:Ne},leftTop:{points:["tr","tl"],overflow:Ne},leftBottom:{points:["br","bl"],overflow:Ne},rightTop:{points:["tl","tr"],overflow:Ne},rightBottom:{points:["bl","br"],overflow:Ne}},Tt={topLeft:{points:["bl","tl"],overflow:Ne},topRight:{points:["br","tr"],overflow:Ne},bottomLeft:{points:["tl","bl"],overflow:Ne},bottomRight:{points:["tr","br"],overflow:Ne},rightTop:{points:["tr","tl"],overflow:Ne},rightBottom:{points:["br","bl"],overflow:Ne},leftTop:{points:["tl","tr"],overflow:Ne},leftBottom:{points:["bl","br"],overflow:Ne}},Ot=null;function At(s,x,D){if(x)return x;if(D)return D[s]||D.other}var Ft={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Dt(s){var x=s.prefixCls,D=s.visible,a=s.children,e=s.popup,n=s.popupStyle,t=s.popupClassName,i=s.popupOffset,r=s.disabled,o=s.mode,f=s.onVisibleChange,C=u.useContext($),b=C.getPopupContainer,d=C.rtl,v=C.subMenuOpenDelay,y=C.subMenuCloseDelay,B=C.builtinPlacements,ee=C.triggerSubMenuAction,Me=C.forceSubMenuRender,re=C.rootClassName,le=C.motion,Oe=C.defaultMotions,ge=u.useState(!1),_e=(0,j.Z)(ge,2),dt=_e[0],Z=_e[1],Ie=d?(0,m.Z)((0,m.Z)({},Tt),B):(0,m.Z)((0,m.Z)({},jt),B),Je=Ft[o],ut=At(o,le,Oe),mt=u.useRef(ut);o!=="inline"&&(mt.current=ut);var Mt=(0,m.Z)((0,m.Z)({},mt.current),{},{leavedClassName:"".concat(x,"-hidden"),removeOnLeave:!1,motionAppear:!0}),wt=u.useRef();return u.useEffect(function(){return wt.current=(0,ne.Z)(function(){Z(D)}),function(){ne.Z.cancel(wt.current)}},[D]),u.createElement(It.Z,{prefixCls:x,popupClassName:ue()("".concat(x,"-popup"),(0,P.Z)({},"".concat(x,"-rtl"),d),t,re),stretch:o==="horizontal"?"minWidth":null,getPopupContainer:b,builtinPlacements:Ie,popupPlacement:Je,popupVisible:dt,popup:e,popupStyle:n,popupAlign:i&&{offset:i},action:r?[]:[ee],mouseEnterDelay:v,mouseLeaveDelay:y,onPopupVisibleChange:f,forceRender:Me,popupMotion:Mt,fresh:!0},a)}var rn=l(77900);function zt(s){var x=s.id,D=s.open,a=s.keyPath,e=s.children,n="inline",t=u.useContext($),i=t.prefixCls,r=t.forceSubMenuRender,o=t.motion,f=t.defaultMotions,C=t.mode,b=u.useRef(!1);b.current=C===n;var d=u.useState(!b.current),v=(0,j.Z)(d,2),y=v[0],B=v[1],ee=b.current?D:!1;u.useEffect(function(){b.current&&B(!1)},[C]);var Me=(0,m.Z)({},At(n,o,f));a.length>1&&(Me.motionAppear=!1);var re=Me.onVisibleChanged;return Me.onVisibleChanged=function(le){return!b.current&&!le&&B(!0),re==null?void 0:re(le)},y?null:u.createElement(L,{mode:n,locked:!b.current},u.createElement(rn.default,(0,I.Z)({visible:ee},Me,{forceRender:r,removeOnLeave:!1,leavedClassName:"".concat(i,"-hidden")}),function(le){var Oe=le.className,ge=le.style;return u.createElement(He,{id:x,className:Oe,style:ge},e)}))}var Lt=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Bt=["active"],Xe=u.forwardRef(function(s,x){var D=s.style,a=s.className,e=s.title,n=s.eventKey,t=s.warnKey,i=s.disabled,r=s.internalPopupClose,o=s.children,f=s.itemIcon,C=s.expandIcon,b=s.popupClassName,d=s.popupOffset,v=s.popupStyle,y=s.onClick,B=s.onMouseEnter,ee=s.onMouseLeave,Me=s.onTitleClick,re=s.onTitleMouseEnter,le=s.onTitleMouseLeave,Oe=(0,Y.Z)(s,Lt),ge=at(n),_e=u.useContext($),dt=_e.prefixCls,Z=_e.mode,Ie=_e.openKeys,Je=_e.disabled,ut=_e.overflowDisabled,mt=_e.activeKey,Mt=_e.selectedKeys,wt=_e.itemIcon,Nt=_e.expandIcon,ht=_e.onItemClick,gt=_e.onOpenChange,tt=_e.onActive,Qt=u.useContext(E),dn=Qt._internalRenderSubMenuItem,qt=u.useContext(de),vn=qt.isSubPathKey,gn=W(),Vt="".concat(dt,"-submenu"),en=Je||i,un=u.useRef(),pn=u.useRef(),yn=f!=null?f:wt,Zt=C!=null?C:Nt,hn=Ie.includes(n),bn=!ut&&hn,mn=vn(Mt,n),on=ke(n,en,re,le),Cn=on.active,zn=(0,Y.Z)(on,Bt),En=u.useState(!1),Kn=(0,j.Z)(En,2),Ln=Kn[0],Hn=Kn[1],Pn=function(Jt){en||Hn(Jt)},Vn=function(Jt){Pn(!0),B==null||B({key:n,domEvent:Jt})},Un=function(Jt){Pn(!1),ee==null||ee({key:n,domEvent:Jt})},kn=u.useMemo(function(){return Cn||(Z!=="inline"?Ln||vn([mt],n):!1)},[Z,Cn,mt,Ln,n,vn]),wn=ae(gn.length),jn=function(Jt){en||(Me==null||Me({key:n,domEvent:Jt}),Z==="inline"&>(n,!hn))},Yn=se(function(Ht){y==null||y(Ue(Ht)),ht(Ht)}),Wn=function(Jt){Z!=="inline"&>(n,Jt)},$n=function(){tt(n)},Fn=ge&&"".concat(ge,"-popup"),Rn=u.useMemo(function(){return u.createElement(ct,{icon:Z!=="horizontal"?Zt:void 0,props:(0,m.Z)((0,m.Z)({},s),{},{isOpen:bn,isSubMenu:!0})},u.createElement("i",{className:"".concat(Vt,"-arrow")}))},[Z,Zt,s,bn,Vt]),sn=u.createElement("div",(0,I.Z)({role:"menuitem",style:wn,className:"".concat(Vt,"-title"),tabIndex:en?null:-1,ref:un,title:typeof e=="string"?e:null,"data-menu-id":ut&&ge?null:ge,"aria-expanded":bn,"aria-haspopup":!0,"aria-controls":Fn,"aria-disabled":en,onClick:jn,onFocus:$n},zn),e,Rn),In=u.useRef(Z);if(Z!=="inline"&&gn.length>1?In.current="vertical":In.current=Z,!ut){var ln=In.current;sn=u.createElement(Dt,{mode:ln,prefixCls:Vt,visible:!r&&bn&&Z!=="inline",popupClassName:b,popupOffset:d,popupStyle:v,popup:u.createElement(L,{mode:ln==="horizontal"?"vertical":ln},u.createElement(He,{id:Fn,ref:pn},o)),disabled:en,onVisibleChange:Wn},sn)}var Tn=u.createElement(V.Z.Item,(0,I.Z)({ref:x,role:"none"},Oe,{component:"li",style:D,className:ue()(Vt,"".concat(Vt,"-").concat(Z),a,(0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)({},"".concat(Vt,"-open"),bn),"".concat(Vt,"-active"),kn),"".concat(Vt,"-selected"),mn),"".concat(Vt,"-disabled"),en)),onMouseEnter:Vn,onMouseLeave:Un}),sn,!ut&&u.createElement(zt,{id:Fn,open:bn,keyPath:gn},o));return dn&&(Tn=dn(Tn,s,{selected:mn,active:kn,open:bn,disabled:en})),u.createElement(L,{onItemClick:Yn,mode:Z==="horizontal"?"vertical":Z,itemIcon:yn,expandIcon:Zt},Tn)}),Ge=u.forwardRef(function(s,x){var D=s.eventKey,a=s.children,e=W(D),n=pt(a,e),t=c();u.useEffect(function(){if(t)return t.registerPath(D,e),function(){t.unregisterPath(D,e)}},[e]);var i;return t?i=n:i=u.createElement(Xe,(0,I.Z)({ref:x},s),n),u.createElement(te.Provider,{value:e},i)}),Ct=Ge,yt=l(62853);function nn(s){var x=s.className,D=s.style,a=u.useContext($),e=a.prefixCls,n=c();return n?null:u.createElement("li",{role:"separator",className:ue()("".concat(e,"-item-divider"),x),style:D})}var xn=["className","title","eventKey","children"],Yt=u.forwardRef(function(s,x){var D=s.className,a=s.title,e=s.eventKey,n=s.children,t=(0,Y.Z)(s,xn),i=u.useContext($),r=i.prefixCls,o="".concat(r,"-item-group");return u.createElement("li",(0,I.Z)({ref:x,role:"presentation"},t,{onClick:function(C){return C.stopPropagation()},className:ue()(o,D)}),u.createElement("div",{role:"presentation",className:"".concat(o,"-title"),title:typeof a=="string"?a:void 0},a),u.createElement("ul",{role:"group",className:"".concat(o,"-list")},n))}),Nn=u.forwardRef(function(s,x){var D=s.eventKey,a=s.children,e=W(D),n=pt(a,e),t=c();return t?n:u.createElement(Yt,(0,I.Z)({ref:x},(0,Ae.Z)(s,["warnKey"])),n)}),ft=Nn,Zn=["label","children","key","type","extra"];function an(s,x,D){var a=x.item,e=x.group,n=x.submenu,t=x.divider;return(s||[]).map(function(i,r){if(i&&(0,yt.Z)(i)==="object"){var o=i,f=o.label,C=o.children,b=o.key,d=o.type,v=o.extra,y=(0,Y.Z)(o,Zn),B=b!=null?b:"tmp-".concat(r);return C||d==="group"?d==="group"?u.createElement(e,(0,I.Z)({key:B},y,{title:f}),an(C,x,D)):u.createElement(n,(0,I.Z)({key:B},y,{title:f}),an(C,x,D)):d==="divider"?u.createElement(t,(0,I.Z)({key:B},y)):u.createElement(a,(0,I.Z)({key:B},y,{extra:v}),f,(!!v||v===0)&&u.createElement("span",{className:"".concat(D,"-item-extra")},v))}return null}).filter(function(i){return i})}function Xt(s,x,D,a,e){var n=s,t=(0,m.Z)({divider:nn,item:Se,group:ft,submenu:Ct},a);return x&&(n=an(x,t,e)),pt(n,D)}var fn=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Kt=[],Bn=u.forwardRef(function(s,x){var D,a=s,e=a.prefixCls,n=e===void 0?"rc-menu":e,t=a.rootClassName,i=a.style,r=a.className,o=a.tabIndex,f=o===void 0?0:o,C=a.items,b=a.children,d=a.direction,v=a.id,y=a.mode,B=y===void 0?"vertical":y,ee=a.inlineCollapsed,Me=a.disabled,re=a.disabledOverflow,le=a.subMenuOpenDelay,Oe=le===void 0?.1:le,ge=a.subMenuCloseDelay,_e=ge===void 0?.1:ge,dt=a.forceSubMenuRender,Z=a.defaultOpenKeys,Ie=a.openKeys,Je=a.activeKey,ut=a.defaultActiveFirst,mt=a.selectable,Mt=mt===void 0?!0:mt,wt=a.multiple,Nt=wt===void 0?!1:wt,ht=a.defaultSelectedKeys,gt=a.selectedKeys,tt=a.onSelect,Qt=a.onDeselect,dn=a.inlineIndent,qt=dn===void 0?24:dn,vn=a.motion,gn=a.defaultMotions,Vt=a.triggerSubMenuAction,en=Vt===void 0?"hover":Vt,un=a.builtinPlacements,pn=a.itemIcon,yn=a.expandIcon,Zt=a.overflowedIndicator,hn=Zt===void 0?"...":Zt,bn=a.overflowedIndicatorPopupClassName,mn=a.getPopupContainer,on=a.onClick,Cn=a.onOpenChange,zn=a.onKeyDown,En=a.openAnimation,Kn=a.openTransitionName,Ln=a._internalRenderMenuItem,Hn=a._internalRenderSubMenuItem,Pn=a._internalComponents,Vn=(0,Y.Z)(a,fn),Un=u.useMemo(function(){return[Xt(b,C,Kt,Pn,n),Xt(b,C,Kt,{},n)]},[b,C,Pn]),kn=(0,j.Z)(Un,2),wn=kn[0],jn=kn[1],Yn=u.useState(!1),Wn=(0,j.Z)(Yn,2),$n=Wn[0],Fn=Wn[1],Rn=u.useRef(),sn=Be(v),In=d==="rtl",ln=(0,ve.Z)(Z,{value:Ie,postState:function(Rt){return Rt||Kt}}),Tn=(0,j.Z)(ln,2),Ht=Tn[0],Jt=Tn[1],Dn=function(Rt){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Sn(){Jt(Rt),Cn==null||Cn(Rt)}$t?(0,z.flushSync)(Sn):Sn()},Xn=u.useState(Ht),Gn=(0,j.Z)(Xn,2),ta=Gn[0],na=Gn[1],_n=u.useRef(!1),oe=u.useMemo(function(){return(B==="inline"||B==="vertical")&&ee?["vertical",ee]:[B,!1]},[B,ee]),Pe=(0,j.Z)(oe,2),xt=Pe[0],Ut=Pe[1],kt=xt==="inline",Qn=u.useState(xt),qn=(0,j.Z)(Qn,2),On=qn[0],ea=qn[1],Ea=u.useState(Ut),da=(0,j.Z)(Ea,2),Sa=da[0],Ma=da[1];u.useEffect(function(){ea(xt),Ma(Ut),_n.current&&(kt?Jt(ta):Dn(Kt))},[xt,Ut]);var Ra=u.useState(0),va=(0,j.Z)(Ra,2),ia=va[0],Da=va[1],la=ia>=wn.length-1||On!=="horizontal"||re;u.useEffect(function(){kt&&na(Ht)},[Ht]),u.useEffect(function(){return _n.current=!0,function(){_n.current=!1}},[]);var Jn=Le(),ha=Jn.registerPath,ma=Jn.unregisterPath,Na=Jn.refreshOverflowKeys,ga=Jn.isSubPathKey,Za=Jn.getKeyPath,pa=Jn.getKeys,Pa=Jn.getSubPathKeys,Ia=u.useMemo(function(){return{registerPath:ha,unregisterPath:ma}},[ha,ma]),Ta=u.useMemo(function(){return{isSubPathKey:ga}},[ga]);u.useEffect(function(){Na(la?Kt:wn.slice(ia+1).map(function(Gt){return Gt.key}))},[ia,la]);var Oa=(0,ve.Z)(Je||ut&&((D=wn[0])===null||D===void 0?void 0:D.key),{value:Je}),ya=(0,j.Z)(Oa,2),aa=ya[0],ua=ya[1],Aa=se(function(Gt){ua(Gt)}),za=se(function(){ua(void 0)});(0,u.useImperativeHandle)(x,function(){return{list:Rn.current,focus:function(Rt){var $t,Sn=pa(),Mn=O(Sn,sn),sa=Mn.elements,ca=Mn.key2element,Ua=Mn.element2key,wa=N(Rn.current,sa),xa=aa!=null?aa:wa[0]?Ua.get(wa[0]):($t=wn.find(function(ja){return!ja.props.disabled}))===null||$t===void 0?void 0:$t.key,ra=ca.get(xa);if(xa&&ra){var fa;ra==null||(fa=ra.focus)===null||fa===void 0||fa.call(ra,Rt)}}}});var La=(0,ve.Z)(ht||[],{value:gt,postState:function(Rt){return Array.isArray(Rt)?Rt:Rt==null?Kt:[Rt]}}),ba=(0,j.Z)(La,2),oa=ba[0],Ba=ba[1],ka=function(Rt){if(Mt){var $t=Rt.key,Sn=oa.includes($t),Mn;Nt?Sn?Mn=oa.filter(function(ca){return ca!==$t}):Mn=[].concat((0,nt.Z)(oa),[$t]):Mn=[$t],Ba(Mn);var sa=(0,m.Z)((0,m.Z)({},Rt),{},{selectedKeys:Mn});Sn?Qt==null||Qt(sa):tt==null||tt(sa)}!Nt&&Ht.length&&On!=="inline"&&Dn(Kt)},Wa=se(function(Gt){on==null||on(Ue(Gt)),ka(Gt)}),Ca=se(function(Gt,Rt){var $t=Ht.filter(function(Mn){return Mn!==Gt});if(Rt)$t.push(Gt);else if(On!=="inline"){var Sn=Pa(Gt);$t=$t.filter(function(Mn){return!Sn.has(Mn)})}(0,ze.Z)(Ht,$t,!0)||Dn($t,!0)}),Fa=function(Rt,$t){var Sn=$t!=null?$t:!Ht.includes(Rt);Ca(Rt,Sn)},Ha=K(On,aa,In,sn,Rn,pa,Za,ua,Fa,zn);u.useEffect(function(){Fn(!0)},[]);var $a=u.useMemo(function(){return{_internalRenderMenuItem:Ln,_internalRenderSubMenuItem:Hn}},[Ln,Hn]),Ka=On!=="horizontal"||re?wn:wn.map(function(Gt,Rt){return u.createElement(L,{key:Gt.key,overflowDisabled:Rt>ia},Gt)}),Va=u.createElement(V.Z,(0,I.Z)({id:v,ref:Rn,prefixCls:"".concat(n,"-overflow"),component:"ul",itemComponent:Se,className:ue()(n,"".concat(n,"-root"),"".concat(n,"-").concat(On),r,(0,P.Z)((0,P.Z)({},"".concat(n,"-inline-collapsed"),Sa),"".concat(n,"-rtl"),In),t),dir:d,style:i,role:"menu",tabIndex:f,data:Ka,renderRawItem:function(Rt){return Rt},renderRawRest:function(Rt){var $t=Rt.length,Sn=$t?wn.slice(-$t):null;return u.createElement(Ct,{eventKey:pe,title:hn,disabled:la,internalPopupClose:$t===0,popupClassName:bn},Sn)},maxCount:On!=="horizontal"||re?V.Z.INVALIDATE:V.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Rt){Da(Rt)},onKeyDown:Ha},Vn));return u.createElement(E.Provider,{value:$a},u.createElement(it.Provider,{value:sn},u.createElement(L,{prefixCls:n,rootClassName:t,mode:On,openKeys:Ht,rtl:In,disabled:Me,motion:$n?vn:null,defaultMotions:$n?gn:null,activeKey:aa,onActive:Aa,onInactive:za,selectedKeys:oa,inlineIndent:qt,subMenuOpenDelay:Oe,subMenuCloseDelay:_e,forceSubMenuRender:dt,builtinPlacements:un,triggerSubMenuAction:en,getPopupContainer:mn,itemIcon:pn,expandIcon:yn,onItemClick:Wa,onOpenChange:Ca},u.createElement(de.Provider,{value:Ta},Va),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(A.Provider,{value:Ia},jn)))))}),An=Bn,Ze=An;Ze.Item=Se,Ze.SubMenu=Ct,Ze.ItemGroup=ft,Ze.Divider=nn;var $e=Ze},11780:function(cn,ot,l){"use strict";l.d(ot,{Z:function(){return J}});var I=l(72308),P=l(77321),m=l(52487),nt=l(74416),j=l(59301),Y=l(92310),F=l.n(Y),ue=l(29301),V=l(34280),ve=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ze=void 0;function be(w,H){var he=w.prefixCls,_=w.invalidate,ne=w.item,ce=w.renderItem,we=w.responsive,q=w.responsiveDisabled,U=w.registerSize,ye=w.itemKey,De=w.className,Ee=w.style,xe=w.children,vt=w.display,st=w.order,St=w.component,h=St===void 0?"div":St,N=(0,nt.Z)(w,ve),p=we&&!vt;function O(me){U(ye,me)}j.useEffect(function(){return function(){O(null)}},[]);var K=ce&&ne!==ze?ce(ne,{index:st}):xe,G;_||(G={opacity:p?0:1,height:p?0:ze,overflowY:p?"hidden":ze,order:we?st:ze,pointerEvents:p?"none":ze,position:p?"absolute":ze});var ie={};p&&(ie["aria-hidden"]=!0);var fe=j.createElement(h,(0,I.Z)({className:F()(!_&&he,De),style:(0,P.Z)((0,P.Z)({},G),Ee)},ie,N,{ref:H}),K);return we&&(fe=j.createElement(ue.Z,{onResize:function(pe){var Le=pe.offsetWidth;O(Le)},disabled:q},fe)),fe}var u=j.forwardRef(be);u.displayName="Item";var z=u,it=l(6089),Et=l(4676),at=l(16089);function Re(w){if(typeof MessageChannel=="undefined")(0,at.Z)(w);else{var H=new MessageChannel;H.port1.onmessage=function(){return w()},H.port2.postMessage(void 0)}}function We(){var w=j.useRef(null),H=function(_){w.current||(w.current=[],Re(function(){(0,Et.unstable_batchedUpdates)(function(){w.current.forEach(function(ne){ne()}),w.current=null})})),w.current.push(_)};return H}function $(w,H){var he=j.useState(H),_=(0,m.Z)(he,2),ne=_[0],ce=_[1],we=(0,it.Z)(function(q){w(function(){ce(q)})});return[ne,we]}var T=j.createContext(null),L=["component"],k=["className"],A=["className"],c=function(H,he){var _=j.useContext(T);if(!_){var ne=H.component,ce=ne===void 0?"div":ne,we=(0,nt.Z)(H,L);return j.createElement(ce,(0,I.Z)({},we,{ref:he}))}var q=_.className,U=(0,nt.Z)(_,k),ye=H.className,De=(0,nt.Z)(H,A);return j.createElement(T.Provider,{value:null},j.createElement(z,(0,I.Z)({ref:he,className:F()(q,ye)},U,De)))},te=j.forwardRef(c);te.displayName="RawItem";var W=te,de=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ke="responsive",E="invalidate";function g(w){return"+ ".concat(w.length," ...")}function R(w,H){var he=w.prefixCls,_=he===void 0?"rc-overflow":he,ne=w.data,ce=ne===void 0?[]:ne,we=w.renderItem,q=w.renderRawItem,U=w.itemKey,ye=w.itemWidth,De=ye===void 0?10:ye,Ee=w.ssr,xe=w.style,vt=w.className,st=w.maxCount,St=w.renderRest,h=w.renderRawRest,N=w.suffix,p=w.component,O=p===void 0?"div":p,K=w.itemComponent,G=w.onVisibleChange,ie=(0,nt.Z)(w,de),fe=Ee==="full",me=We(),pe=$(me,null),Le=(0,m.Z)(pe,2),se=Le[0],Qe=Le[1],Q=se||0,Be=$(me,new Map),et=(0,m.Z)(Be,2),X=et[0],Ve=et[1],qe=$(me,0),Ae=(0,m.Z)(qe,2),rt=Ae[0],ke=Ae[1],ae=$(me,0),ct=(0,m.Z)(ae,2),Wt=ct[0],Ue=ct[1],Fe=$(me,0),_t=(0,m.Z)(Fe,2),Ce=_t[0],Te=_t[1],je=(0,j.useState)(null),Pt=(0,m.Z)(je,2),Se=Pt[0],lt=Pt[1],Ye=(0,j.useState)(null),bt=(0,m.Z)(Ye,2),He=bt[0],tn=bt[1],pt=j.useMemo(function(){return He===null&&fe?Number.MAX_SAFE_INTEGER:He||0},[He,se]),It=(0,j.useState)(!1),Ne=(0,m.Z)(It,2),jt=Ne[0],Tt=Ne[1],Ot="".concat(_,"-item"),At=Math.max(rt,Wt),Ft=st===Ke,Dt=ce.length&&Ft,rn=st===E,zt=Dt||typeof st=="number"&&ce.length>st,Lt=(0,j.useMemo)(function(){var Ze=ce;return Dt?se===null&&fe?Ze=ce:Ze=ce.slice(0,Math.min(ce.length,Q/De)):typeof st=="number"&&(Ze=ce.slice(0,st)),Ze},[ce,De,se,st,Dt]),Bt=(0,j.useMemo)(function(){return Dt?ce.slice(pt+1):ce.slice(Lt.length)},[ce,Lt,Dt,pt]),Xe=(0,j.useCallback)(function(Ze,$e){var s;return typeof U=="function"?U(Ze):(s=U&&(Ze==null?void 0:Ze[U]))!==null&&s!==void 0?s:$e},[U]),Ge=(0,j.useCallback)(we||function(Ze){return Ze},[we]);function Ct(Ze,$e,s){He===Ze&&($e===void 0||$e===Se)||(tn(Ze),s||(Tt(Ze<ce.length-1),G==null||G(Ze)),$e!==void 0&<($e))}function yt(Ze,$e){Qe($e.clientWidth)}function nn(Ze,$e){Ve(function(s){var x=new Map(s);return $e===null?x.delete(Ze):x.set(Ze,$e),x})}function xn(Ze,$e){Ue($e),ke(Wt)}function Yt(Ze,$e){Te($e)}function Nn(Ze){return X.get(Xe(Lt[Ze],Ze))}(0,V.Z)(function(){if(Q&&typeof At=="number"&&Lt){var Ze=Ce,$e=Lt.length,s=$e-1;if(!$e){Ct(0,null);return}for(var x=0;x<$e;x+=1){var D=Nn(x);if(fe&&(D=D||0),D===void 0){Ct(x-1,void 0,!0);break}if(Ze+=D,s===0&&Ze<=Q||x===s-1&&Ze+Nn(s)<=Q){Ct(s,null);break}else if(Ze+At>Q){Ct(x-1,Ze-D-Ce+Wt);break}}N&&Nn(0)+Ce>Q&<(null)}},[Q,X,Wt,Ce,Xe,Lt]);var ft=jt&&!!Bt.length,Zn={};Se!==null&&Dt&&(Zn={position:"absolute",left:Se,top:0});var an={prefixCls:Ot,responsive:Dt,component:K,invalidate:rn},Xt=q?function(Ze,$e){var s=Xe(Ze,$e);return j.createElement(T.Provider,{key:s,value:(0,P.Z)((0,P.Z)({},an),{},{order:$e,item:Ze,itemKey:s,registerSize:nn,display:$e<=pt})},q(Ze,$e))}:function(Ze,$e){var s=Xe(Ze,$e);return j.createElement(z,(0,I.Z)({},an,{order:$e,key:s,item:Ze,renderItem:Ge,itemKey:s,registerSize:nn,display:$e<=pt}))},fn={order:ft?pt:Number.MAX_SAFE_INTEGER,className:"".concat(Ot,"-rest"),registerSize:xn,display:ft},Kt=St||g,Bn=h?j.createElement(T.Provider,{value:(0,P.Z)((0,P.Z)({},an),fn)},h(Bt)):j.createElement(z,(0,I.Z)({},an,fn),typeof Kt=="function"?Kt(Bt):Kt),An=j.createElement(O,(0,I.Z)({className:F()(!rn&&_,vt),style:xe,ref:H},ie),Lt.map(Xt),zt?Bn:null,N&&j.createElement(z,(0,I.Z)({},an,{responsive:Ft,responsiveDisabled:!Dt,order:pt,className:"".concat(Ot,"-suffix"),registerSize:Yt,display:!0,style:Zn}),N));return Ft?j.createElement(ue.Z,{onResize:yt,disabled:!Dt},An):An}var S=j.forwardRef(R);S.displayName="Overflow",S.Item=W,S.RESPONSIVE=Ke,S.INVALIDATE=E;var M=S,J=M},29301:function(cn,ot,l){"use strict";l.d(ot,{Z:function(){return E}});var I=l(72308),P=l(59301),m=l(11592),nt=l(48736),j=l(77321),Y=l(62853),F=l(76846),ue=l(8654),V=P.createContext(null);function ve(g){var R=g.children,S=g.onBatchResize,M=P.useRef(0),J=P.useRef([]),w=P.useContext(V),H=P.useCallback(function(he,_,ne){M.current+=1;var ce=M.current;J.current.push({size:he,element:_,data:ne}),Promise.resolve().then(function(){ce===M.current&&(S==null||S(J.current),J.current=[])}),w==null||w(he,_,ne)},[S,w]);return P.createElement(V.Provider,{value:H},R)}var ze=l(76374),be=new Map;function u(g){g.forEach(function(R){var S,M=R.target;(S=be.get(M))===null||S===void 0||S.forEach(function(J){return J(M)})})}var z=new ze.Z(u),it=null,Et=null;function at(g,R){be.has(g)||(be.set(g,new Set),z.observe(g)),be.get(g).add(R)}function Re(g,R){be.has(g)&&(be.get(g).delete(R),be.get(g).size||(z.unobserve(g),be.delete(g)))}var We=l(96949),$=l(55090),T=l(77205),L=l(38793),k=function(g){(0,T.Z)(S,g);var R=(0,L.Z)(S);function S(){return(0,We.Z)(this,S),R.apply(this,arguments)}return(0,$.Z)(S,[{key:"render",value:function(){return this.props.children}}]),S}(P.Component);function A(g,R){var S=g.children,M=g.disabled,J=P.useRef(null),w=P.useRef(null),H=P.useContext(V),he=typeof S=="function",_=he?S(J):S,ne=P.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),ce=!he&&P.isValidElement(_)&&(0,ue.Yr)(_),we=ce?(0,ue.C4)(_):null,q=(0,ue.x1)(we,J),U=function(){var xe;return(0,F.ZP)(J.current)||(J.current&&(0,Y.Z)(J.current)==="object"?(0,F.ZP)((xe=J.current)===null||xe===void 0?void 0:xe.nativeElement):null)||(0,F.ZP)(w.current)};P.useImperativeHandle(R,function(){return U()});var ye=P.useRef(g);ye.current=g;var De=P.useCallback(function(Ee){var xe=ye.current,vt=xe.onResize,st=xe.data,St=Ee.getBoundingClientRect(),h=St.width,N=St.height,p=Ee.offsetWidth,O=Ee.offsetHeight,K=Math.floor(h),G=Math.floor(N);if(ne.current.width!==K||ne.current.height!==G||ne.current.offsetWidth!==p||ne.current.offsetHeight!==O){var ie={width:K,height:G,offsetWidth:p,offsetHeight:O};ne.current=ie;var fe=p===Math.round(h)?h:p,me=O===Math.round(N)?N:O,pe=(0,j.Z)((0,j.Z)({},ie),{},{offsetWidth:fe,offsetHeight:me});H==null||H(pe,Ee,st),vt&&Promise.resolve().then(function(){vt(pe,Ee)})}},[]);return P.useEffect(function(){var Ee=U();return Ee&&!M&&at(Ee,De),function(){return Re(Ee,De)}},[J.current,M]),P.createElement(k,{ref:w},ce?P.cloneElement(_,{ref:q}):_)}var c=P.forwardRef(A),te=c,W="rc-observer-key";function de(g,R){var S=g.children,M=typeof S=="function"?[S]:(0,m.Z)(S);return M.map(function(J,w){var H=(J==null?void 0:J.key)||"".concat(W,"-").concat(w);return P.createElement(te,(0,I.Z)({},g,{key:H,ref:w===0?R:void 0}),J)})}var Ke=P.forwardRef(de);Ke.Collection=ve;var E=Ke},22711:function(cn,ot,l){"use strict";l.r(ot),l.d(ot,{ResizableTextArea:function(){return Ke},default:function(){return S}});var I=l(72308),P=l(49618),m=l(77321),nt=l(80702),j=l(52487),Y=l(74416),F=l(92310),ue=l.n(F),V=l(36901),ve=l(66003),ze=l(30292),be=l(18929),u=l(59301),z=l(62853),it=l(29301),Et=l(34280),at=l(16089),Re=`
|
|
min-height:0 !important;
|
|
max-height:none !important;
|
|
height:0 !important;
|
|
visibility:hidden !important;
|
|
overflow:hidden !important;
|
|
position:absolute !important;
|
|
z-index:-1000 !important;
|
|
top:0 !important;
|
|
right:0 !important;
|
|
pointer-events: none !important;
|
|
`,We=["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"],$={},T;function L(M){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=M.getAttribute("id")||M.getAttribute("data-reactid")||M.getAttribute("name");if(J&&$[w])return $[w];var H=window.getComputedStyle(M),he=H.getPropertyValue("box-sizing")||H.getPropertyValue("-moz-box-sizing")||H.getPropertyValue("-webkit-box-sizing"),_=parseFloat(H.getPropertyValue("padding-bottom"))+parseFloat(H.getPropertyValue("padding-top")),ne=parseFloat(H.getPropertyValue("border-bottom-width"))+parseFloat(H.getPropertyValue("border-top-width")),ce=We.map(function(q){return"".concat(q,":").concat(H.getPropertyValue(q))}).join(";"),we={sizingStyle:ce,paddingSize:_,borderSize:ne,boxSizing:he};return J&&w&&($[w]=we),we}function k(M){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;T||(T=document.createElement("textarea"),T.setAttribute("tab-index","-1"),T.setAttribute("aria-hidden","true"),T.setAttribute("name","hiddenTextarea"),document.body.appendChild(T)),M.getAttribute("wrap")?T.setAttribute("wrap",M.getAttribute("wrap")):T.removeAttribute("wrap");var he=L(M,J),_=he.paddingSize,ne=he.borderSize,ce=he.boxSizing,we=he.sizingStyle;T.setAttribute("style","".concat(we,";").concat(Re)),T.value=M.value||M.placeholder||"";var q=void 0,U=void 0,ye,De=T.scrollHeight;if(ce==="border-box"?De+=ne:ce==="content-box"&&(De-=_),w!==null||H!==null){T.value=" ";var Ee=T.scrollHeight-_;w!==null&&(q=Ee*w,ce==="border-box"&&(q=q+_+ne),De=Math.max(q,De)),H!==null&&(U=Ee*H,ce==="border-box"&&(U=U+_+ne),ye=De>U?"":"hidden",De=Math.min(U,De))}var xe={height:De,overflowY:ye,resize:"none"};return q&&(xe.minHeight=q),U&&(xe.maxHeight=U),xe}var A=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],c=0,te=1,W=2,de=u.forwardRef(function(M,J){var w=M,H=w.prefixCls,he=w.defaultValue,_=w.value,ne=w.autoSize,ce=w.onResize,we=w.className,q=w.style,U=w.disabled,ye=w.onChange,De=w.onInternalAutoSize,Ee=(0,Y.Z)(w,A),xe=(0,be.Z)(he,{value:_,postState:function(ct){return ct!=null?ct:""}}),vt=(0,j.Z)(xe,2),st=vt[0],St=vt[1],h=function(ct){St(ct.target.value),ye==null||ye(ct)},N=u.useRef();u.useImperativeHandle(J,function(){return{textArea:N.current}});var p=u.useMemo(function(){return ne&&(0,z.Z)(ne)==="object"?[ne.minRows,ne.maxRows]:[]},[ne]),O=(0,j.Z)(p,2),K=O[0],G=O[1],ie=!!ne,fe=function(){try{if(document.activeElement===N.current){var ct=N.current,Wt=ct.selectionStart,Ue=ct.selectionEnd,Fe=ct.scrollTop;N.current.setSelectionRange(Wt,Ue),N.current.scrollTop=Fe}}catch(_t){}},me=u.useState(W),pe=(0,j.Z)(me,2),Le=pe[0],se=pe[1],Qe=u.useState(),Q=(0,j.Z)(Qe,2),Be=Q[0],et=Q[1],X=function(){se(c)};(0,Et.Z)(function(){ie&&X()},[_,K,G,ie]),(0,Et.Z)(function(){if(Le===c)se(te);else if(Le===te){var ae=k(N.current,!1,K,G);se(W),et(ae)}else fe()},[Le]);var Ve=u.useRef(),qe=function(){at.Z.cancel(Ve.current)},Ae=function(ct){Le===W&&(ce==null||ce(ct),ne&&(qe(),Ve.current=(0,at.Z)(function(){X()})))};u.useEffect(function(){return qe},[]);var rt=ie?Be:null,ke=(0,m.Z)((0,m.Z)({},q),rt);return(Le===c||Le===te)&&(ke.overflowY="hidden",ke.overflowX="hidden"),u.createElement(it.Z,{onResize:Ae,disabled:!(ne||ce)},u.createElement("textarea",(0,I.Z)({},Ee,{ref:N,style:ke,className:ue()(H,we,(0,P.Z)({},"".concat(H,"-disabled"),U)),disabled:U,value:st,onChange:h})))}),Ke=de,E=["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"],g=u.forwardRef(function(M,J){var w,H=M.defaultValue,he=M.value,_=M.onFocus,ne=M.onBlur,ce=M.onChange,we=M.allowClear,q=M.maxLength,U=M.onCompositionStart,ye=M.onCompositionEnd,De=M.suffix,Ee=M.prefixCls,xe=Ee===void 0?"rc-textarea":Ee,vt=M.showCount,st=M.count,St=M.className,h=M.style,N=M.disabled,p=M.hidden,O=M.classNames,K=M.styles,G=M.onResize,ie=M.onClear,fe=M.onPressEnter,me=M.readOnly,pe=M.autoSize,Le=M.onKeyDown,se=(0,Y.Z)(M,E),Qe=(0,be.Z)(H,{value:he,defaultValue:H}),Q=(0,j.Z)(Qe,2),Be=Q[0],et=Q[1],X=Be==null?"":String(Be),Ve=u.useState(!1),qe=(0,j.Z)(Ve,2),Ae=qe[0],rt=qe[1],ke=u.useRef(!1),ae=u.useState(null),ct=(0,j.Z)(ae,2),Wt=ct[0],Ue=ct[1],Fe=(0,u.useRef)(null),_t=(0,u.useRef)(null),Ce=function(){var Ge;return(Ge=_t.current)===null||Ge===void 0?void 0:Ge.textArea},Te=function(){Ce().focus()};(0,u.useImperativeHandle)(J,function(){var Xe;return{resizableTextArea:_t.current,focus:Te,blur:function(){Ce().blur()},nativeElement:((Xe=Fe.current)===null||Xe===void 0?void 0:Xe.nativeElement)||Ce()}}),(0,u.useEffect)(function(){rt(function(Xe){return!N&&Xe})},[N]);var je=u.useState(null),Pt=(0,j.Z)(je,2),Se=Pt[0],lt=Pt[1];u.useEffect(function(){if(Se){var Xe;(Xe=Ce()).setSelectionRange.apply(Xe,(0,nt.Z)(Se))}},[Se]);var Ye=(0,ve.Z)(st,vt),bt=(w=Ye.max)!==null&&w!==void 0?w:q,He=Number(bt)>0,tn=Ye.strategy(X),pt=!!bt&&tn>bt,It=function(Ge,Ct){var yt=Ct;!ke.current&&Ye.exceedFormatter&&Ye.max&&Ye.strategy(Ct)>Ye.max&&(yt=Ye.exceedFormatter(Ct,{max:Ye.max}),Ct!==yt&<([Ce().selectionStart||0,Ce().selectionEnd||0])),et(yt),(0,ze.rJ)(Ge.currentTarget,Ge,ce,yt)},Ne=function(Ge){ke.current=!0,U==null||U(Ge)},jt=function(Ge){ke.current=!1,It(Ge,Ge.currentTarget.value),ye==null||ye(Ge)},Tt=function(Ge){It(Ge,Ge.target.value)},Ot=function(Ge){Ge.key==="Enter"&&fe&&fe(Ge),Le==null||Le(Ge)},At=function(Ge){rt(!0),_==null||_(Ge)},Ft=function(Ge){rt(!1),ne==null||ne(Ge)},Dt=function(Ge){et(""),Te(),(0,ze.rJ)(Ce(),Ge,ce)},rn=De,zt;Ye.show&&(Ye.showFormatter?zt=Ye.showFormatter({value:X,count:tn,maxLength:bt}):zt="".concat(tn).concat(He?" / ".concat(bt):""),rn=u.createElement(u.Fragment,null,rn,u.createElement("span",{className:ue()("".concat(xe,"-data-count"),O==null?void 0:O.count),style:K==null?void 0:K.count},zt)));var Lt=function(Ge){var Ct;G==null||G(Ge),(Ct=Ce())!==null&&Ct!==void 0&&Ct.style.height&&Ue(!0)},Bt=!pe&&!vt&&!we;return u.createElement(V.BaseInput,{ref:Fe,value:X,allowClear:we,handleReset:Dt,suffix:rn,prefixCls:xe,classNames:(0,m.Z)((0,m.Z)({},O),{},{affixWrapper:ue()(O==null?void 0:O.affixWrapper,(0,P.Z)((0,P.Z)({},"".concat(xe,"-show-count"),vt),"".concat(xe,"-textarea-allow-clear"),we))}),disabled:N,focused:Ae,className:ue()(St,pt&&"".concat(xe,"-out-of-range")),style:(0,m.Z)((0,m.Z)({},h),Wt&&!Bt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof zt=="string"?zt:void 0}},hidden:p,readOnly:me,onClear:ie},u.createElement(Ke,(0,I.Z)({},se,{autoSize:pe,maxLength:q,onKeyDown:Ot,onChange:Tt,onFocus:At,onBlur:Ft,onCompositionStart:Ne,onCompositionEnd:jt,className:ue()(O==null?void 0:O.textarea),style:(0,m.Z)((0,m.Z)({},K==null?void 0:K.textarea),{},{resize:h==null?void 0:h.resize}),disabled:N,prefixCls:xe,onResize:Lt,ref:_t,readOnly:me})))}),R=g,S=R},29125:function(cn,ot,l){"use strict";l.d(ot,{G:function(){return nt},Z:function(){return Re}});var I=l(92310),P=l.n(I),m=l(59301);function nt(We){var $=We.children,T=We.prefixCls,L=We.id,k=We.overlayInnerStyle,A=We.bodyClassName,c=We.className,te=We.style;return m.createElement("div",{className:P()("".concat(T,"-content"),c),style:te},m.createElement("div",{className:P()("".concat(T,"-inner"),A),id:L,role:"tooltip",style:k},typeof $=="function"?$():$))}var j=l(72308),Y=l(77321),F=l(74416),ue=l(65352),V={shiftX:64,adjustY:1},ve={adjustX:1,shiftY:!0},ze=[0,0],be={left:{points:["cr","cl"],overflow:ve,offset:[-4,0],targetOffset:ze},right:{points:["cl","cr"],overflow:ve,offset:[4,0],targetOffset:ze},top:{points:["bc","tc"],overflow:V,offset:[0,-4],targetOffset:ze},bottom:{points:["tc","bc"],overflow:V,offset:[0,4],targetOffset:ze},topLeft:{points:["bl","tl"],overflow:V,offset:[0,-4],targetOffset:ze},leftTop:{points:["tr","tl"],overflow:ve,offset:[-4,0],targetOffset:ze},topRight:{points:["br","tr"],overflow:V,offset:[0,-4],targetOffset:ze},rightTop:{points:["tl","tr"],overflow:ve,offset:[4,0],targetOffset:ze},bottomRight:{points:["tr","br"],overflow:V,offset:[0,4],targetOffset:ze},rightBottom:{points:["bl","br"],overflow:ve,offset:[4,0],targetOffset:ze},bottomLeft:{points:["tl","bl"],overflow:V,offset:[0,4],targetOffset:ze},leftBottom:{points:["br","bl"],overflow:ve,offset:[-4,0],targetOffset:ze}},u=null,z=l(80402),it=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Et=function($,T){var L=$.overlayClassName,k=$.trigger,A=k===void 0?["hover"]:k,c=$.mouseEnterDelay,te=c===void 0?0:c,W=$.mouseLeaveDelay,de=W===void 0?.1:W,Ke=$.overlayStyle,E=$.prefixCls,g=E===void 0?"rc-tooltip":E,R=$.children,S=$.onVisibleChange,M=$.afterVisibleChange,J=$.transitionName,w=$.animation,H=$.motion,he=$.placement,_=he===void 0?"right":he,ne=$.align,ce=ne===void 0?{}:ne,we=$.destroyTooltipOnHide,q=we===void 0?!1:we,U=$.defaultVisible,ye=$.getTooltipContainer,De=$.overlayInnerStyle,Ee=$.arrowContent,xe=$.overlay,vt=$.id,st=$.showArrow,St=st===void 0?!0:st,h=$.classNames,N=$.styles,p=(0,F.Z)($,it),O=(0,z.Z)(vt),K=(0,m.useRef)(null);(0,m.useImperativeHandle)(T,function(){return K.current});var G=(0,Y.Z)({},p);"visible"in $&&(G.popupVisible=$.visible);var ie=function(){return m.createElement(nt,{key:"content",prefixCls:g,id:O,bodyClassName:h==null?void 0:h.body,overlayInnerStyle:(0,Y.Z)((0,Y.Z)({},De),N==null?void 0:N.body)},xe)},fe=function(){var pe=m.Children.only(R),Le=(pe==null?void 0:pe.props)||{},se=(0,Y.Z)((0,Y.Z)({},Le),{},{"aria-describedby":xe?O:null});return m.cloneElement(R,se)};return m.createElement(ue.Z,(0,j.Z)({popupClassName:P()(L,h==null?void 0:h.root),prefixCls:g,popup:ie,action:A,builtinPlacements:be,popupPlacement:_,ref:K,popupAlign:ce,getPopupContainer:ye,onPopupVisibleChange:S,afterPopupVisibleChange:M,popupTransitionName:J,popupAnimation:w,popupMotion:H,defaultPopupVisible:U,autoDestroy:q,mouseLeaveDelay:de,popupStyle:(0,Y.Z)((0,Y.Z)({},Ke),N==null?void 0:N.root),mouseEnterDelay:te,arrow:St},G),fe())},at=(0,m.forwardRef)(Et),Re=at},49658:function(cn,ot){"use strict";ot.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var l=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(l)||/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(l==null?void 0:l.substr(0,4))}},33555:function(cn,ot,l){"use strict";var I;I={value:!0},ot.Z=void 0;var P=Y(l(59301)),m=j(l(12708)),nt=j(l(21639));function j(L){return L&&L.__esModule?L:{default:L}}function Y(L){if(L&&L.__esModule)return L;var k={};if(L!=null){for(var A in L)if(Object.prototype.hasOwnProperty.call(L,A)){var c=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(L,A):{};c.get||c.set?Object.defineProperty(k,A,c):k[A]=L[A]}}return k.default=L,k}function F(L){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(A){return typeof A}:F=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},F(L)}function ue(L,k,A){return k in L?Object.defineProperty(L,k,{value:A,enumerable:!0,configurable:!0,writable:!0}):L[k]=A,L}function V(){return V=Object.assign||function(L){for(var k=1;k<arguments.length;k++){var A=arguments[k];for(var c in A)Object.prototype.hasOwnProperty.call(A,c)&&(L[c]=A[c])}return L},V.apply(this,arguments)}function ve(L,k){if(!(L instanceof k))throw new TypeError("Cannot call a class as a function")}function ze(L,k){for(var A=0;A<k.length;A++){var c=k[A];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(L,c.key,c)}}function be(L,k,A){return k&&ze(L.prototype,k),A&&ze(L,A),L}function u(L,k){return k&&(F(k)==="object"||typeof k=="function")?k:z(L)}function z(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function it(L){return it=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},it(L)}function Et(L,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(k&&k.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),k&&at(L,k)}function at(L,k){return at=Object.setPrototypeOf||function(c,te){return c.__proto__=te,c},at(L,k)}var Re=["dragMode","aspectRatio","data","crop","viewMode","preview","responsive","restore","checkCrossOrigin","checkOrientation","modal","guides","center","highlight","background","autoCrop","autoCropArea","movable","rotatable","scalable","zoomable","zoomOnTouch","zoomOnWheel","wheelZoomRatio","cropBoxMovable","cropBoxResizable","toggleDragModeOnDblclick","minContainerWidth","minContainerHeight","minCanvasWidth","minCanvasHeight","minCropBoxWidth","minCropBoxHeight","ready","cropstart","cropmove","cropend","zoom"],We=Re.slice(4),$=function(L){Et(k,L);function k(){return ve(this,k),u(this,it(k).apply(this,arguments))}return be(k,[{key:"componentDidMount",value:function(){var c=this,te=Object.keys(this.props).filter(function(W){return Re.indexOf(W)!==-1}).reduce(function(W,de){return V({},W,ue({},de,c.props[de]))},{});this.cropper=new nt.default(this.img,te)}},{key:"UNSAFE_componentWillReceiveProps",value:function(c){var te=this;c.src!==this.props.src&&this.cropper.reset().clear().replace(c.src),c.aspectRatio!==this.props.aspectRatio&&this.setAspectRatio(c.aspectRatio),c.data!==this.props.data&&this.setData(c.data),c.dragMode!==this.props.dragMode&&this.setDragMode(c.dragMode),c.cropBoxData!==this.props.cropBoxData&&this.setCropBoxData(c.cropBoxData),c.canvasData!==this.props.canvasData&&this.setCanvasData(c.canvasData),c.moveTo!==this.props.moveTo&&(c.moveTo.length>1?this.moveTo(c.moveTo[0],c.moveTo[1]):this.moveTo(c.moveTo[0])),c.zoomTo!==this.props.zoomTo&&this.zoomTo(c.zoomTo),c.rotateTo!==this.props.rotateTo&&this.rotateTo(c.rotateTo),c.scaleX!==this.props.scaleX&&this.scaleX(c.scaleX),c.scaleY!==this.props.scaleY&&this.scaleY(c.scaleY),c.enable!==this.props.enable&&(c.enable?this.enable():this.disable()),Object.keys(c).forEach(function(W){var de=c[W]!==te.props[W],Ke=We.indexOf(W)!==-1;if(typeof c[W]=="function"&&typeof te.props[W]=="function"&&(de=c[W].toString()!==te.props[W].toString()),de&&Ke)throw new Error("prop: ".concat(W," can't be change after componentDidMount"))})}},{key:"componentWillUnmount",value:function(){this.img&&(this.cropper.destroy(),delete this.img,delete this.cropper)}},{key:"setDragMode",value:function(c){return this.cropper.setDragMode(c)}},{key:"setAspectRatio",value:function(c){return this.cropper.setAspectRatio(c)}},{key:"getCroppedCanvas",value:function(c){return this.cropper.getCroppedCanvas(c)}},{key:"setCropBoxData",value:function(c){return this.cropper.setCropBoxData(c)}},{key:"getCropBoxData",value:function(){return this.cropper.getCropBoxData()}},{key:"setCanvasData",value:function(c){return this.cropper.setCanvasData(c)}},{key:"getCanvasData",value:function(){return this.cropper.getCanvasData()}},{key:"getImageData",value:function(){return this.cropper.getImageData()}},{key:"getContainerData",value:function(){return this.cropper.getContainerData()}},{key:"setData",value:function(c){return this.cropper.setData(c)}},{key:"getData",value:function(c){return this.cropper.getData(c)}},{key:"crop",value:function(){return this.cropper.crop()}},{key:"move",value:function(c,te){return this.cropper.move(c,te)}},{key:"moveTo",value:function(c,te){return this.cropper.moveTo(c,te)}},{key:"zoom",value:function(c){return this.cropper.zoom(c)}},{key:"zoomTo",value:function(c){return this.cropper.zoomTo(c)}},{key:"rotate",value:function(c){return this.cropper.rotate(c)}},{key:"rotateTo",value:function(c){return this.cropper.rotateTo(c)}},{key:"enable",value:function(){return this.cropper.enable()}},{key:"disable",value:function(){return this.cropper.disable()}},{key:"reset",value:function(){return this.cropper.reset()}},{key:"clear",value:function(){return this.cropper.clear()}},{key:"replace",value:function(c,te){return this.cropper.replace(c,te)}},{key:"scale",value:function(c,te){return this.cropper.scale(c,te)}},{key:"scaleX",value:function(c){return this.cropper.scaleX(c)}},{key:"scaleY",value:function(c){return this.cropper.scaleY(c)}},{key:"render",value:function(){var c=this,te=this.props,W=te.src,de=te.alt,Ke=te.crossOrigin,E=te.style,g=te.className;return P.default.createElement("div",{style:E,className:g},P.default.createElement("img",{crossOrigin:Ke,ref:function(S){c.img=S},src:W,alt:de===void 0?"picture":de,style:{opacity:0}}))}}]),k}(P.Component);$.propTypes={style:m.default.object,className:m.default.string,crossOrigin:m.default.string,src:m.default.string,alt:m.default.string,aspectRatio:m.default.number,dragMode:m.default.oneOf(["crop","move","none"]),data:m.default.shape({x:m.default.number,y:m.default.number,width:m.default.number,height:m.default.number,rotate:m.default.number,scaleX:m.default.number,scaleY:m.default.number}),scaleX:m.default.number,scaleY:m.default.number,enable:m.default.bool,cropBoxData:m.default.shape({left:m.default.number,top:m.default.number,width:m.default.number,height:m.default.number}),canvasData:m.default.shape({left:m.default.number,top:m.default.number,width:m.default.number,height:m.default.number}),zoomTo:m.default.number,moveTo:m.default.arrayOf(m.default.number),rotateTo:m.default.number,viewMode:m.default.oneOf([0,1,2,3]),preview:m.default.string,responsive:m.default.bool,restore:m.default.bool,checkCrossOrigin:m.default.bool,checkOrientation:m.default.bool,modal:m.default.bool,guides:m.default.bool,center:m.default.bool,highlight:m.default.bool,background:m.default.bool,autoCrop:m.default.bool,autoCropArea:m.default.number,movable:m.default.bool,rotatable:m.default.bool,scalable:m.default.bool,zoomable:m.default.bool,zoomOnTouch:m.default.bool,zoomOnWheel:m.default.bool,wheelZoomRatio:m.default.number,cropBoxMovable:m.default.bool,cropBoxResizable:m.default.bool,toggleDragModeOnDblclick:m.default.bool,minContainerWidth:m.default.number,minContainerHeight:m.default.number,minCanvasWidth:m.default.number,minCanvasHeight:m.default.number,minCropBoxWidth:m.default.number,minCropBoxHeight:m.default.number,ready:m.default.func,cropstart:m.default.func,cropmove:m.default.func,cropend:m.default.func,crop:m.default.func,zoom:m.default.func},$.defaultProps={src:null,dragMode:"crop",data:null,scaleX:1,scaleY:1,enable:!0,zoomTo:1,rotateTo:0};var T=$;ot.Z=T},76374:function(cn,ot,l){"use strict";var I=function(){if(typeof Map!="undefined")return Map;function E(g,R){var S=-1;return g.some(function(M,J){return M[0]===R?(S=J,!0):!1}),S}return function(){function g(){this.__entries__=[]}return Object.defineProperty(g.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),g.prototype.get=function(R){var S=E(this.__entries__,R),M=this.__entries__[S];return M&&M[1]},g.prototype.set=function(R,S){var M=E(this.__entries__,R);~M?this.__entries__[M][1]=S:this.__entries__.push([R,S])},g.prototype.delete=function(R){var S=this.__entries__,M=E(S,R);~M&&S.splice(M,1)},g.prototype.has=function(R){return!!~E(this.__entries__,R)},g.prototype.clear=function(){this.__entries__.splice(0)},g.prototype.forEach=function(R,S){S===void 0&&(S=null);for(var M=0,J=this.__entries__;M<J.length;M++){var w=J[M];R.call(S,w[1],w[0])}},g}()}(),P=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,m=function(){return typeof l.g!="undefined"&&l.g.Math===Math?l.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),nt=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(m):function(E){return setTimeout(function(){return E(Date.now())},1e3/60)}}(),j=2;function Y(E,g){var R=!1,S=!1,M=0;function J(){R&&(R=!1,E()),S&&H()}function w(){nt(J)}function H(){var he=Date.now();if(R){if(he-M<j)return;S=!0}else R=!0,S=!1,setTimeout(w,g);M=he}return H}var F=20,ue=["top","right","bottom","left","width","height","size","weight"],V=typeof MutationObserver!="undefined",ve=function(){function E(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Y(this.refresh.bind(this),F)}return E.prototype.addObserver=function(g){~this.observers_.indexOf(g)||this.observers_.push(g),this.connected_||this.connect_()},E.prototype.removeObserver=function(g){var R=this.observers_,S=R.indexOf(g);~S&&R.splice(S,1),!R.length&&this.connected_&&this.disconnect_()},E.prototype.refresh=function(){var g=this.updateObservers_();g&&this.refresh()},E.prototype.updateObservers_=function(){var g=this.observers_.filter(function(R){return R.gatherActive(),R.hasActive()});return g.forEach(function(R){return R.broadcastActive()}),g.length>0},E.prototype.connect_=function(){!P||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),V?(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(){!P||!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(g){var R=g.propertyName,S=R===void 0?"":R,M=ue.some(function(J){return!!~S.indexOf(J)});M&&this.refresh()},E.getInstance=function(){return this.instance_||(this.instance_=new E),this.instance_},E.instance_=null,E}(),ze=function(E,g){for(var R=0,S=Object.keys(g);R<S.length;R++){var M=S[R];Object.defineProperty(E,M,{value:g[M],enumerable:!1,writable:!1,configurable:!0})}return E},be=function(E){var g=E&&E.ownerDocument&&E.ownerDocument.defaultView;return g||m},u=k(0,0,0,0);function z(E){return parseFloat(E)||0}function it(E){for(var g=[],R=1;R<arguments.length;R++)g[R-1]=arguments[R];return g.reduce(function(S,M){var J=E["border-"+M+"-width"];return S+z(J)},0)}function Et(E){for(var g=["top","right","bottom","left"],R={},S=0,M=g;S<M.length;S++){var J=M[S],w=E["padding-"+J];R[J]=z(w)}return R}function at(E){var g=E.getBBox();return k(0,0,g.width,g.height)}function Re(E){var g=E.clientWidth,R=E.clientHeight;if(!g&&!R)return u;var S=be(E).getComputedStyle(E),M=Et(S),J=M.left+M.right,w=M.top+M.bottom,H=z(S.width),he=z(S.height);if(S.boxSizing==="border-box"&&(Math.round(H+J)!==g&&(H-=it(S,"left","right")+J),Math.round(he+w)!==R&&(he-=it(S,"top","bottom")+w)),!$(E)){var _=Math.round(H+J)-g,ne=Math.round(he+w)-R;Math.abs(_)!==1&&(H-=_),Math.abs(ne)!==1&&(he-=ne)}return k(M.left,M.top,H,he)}var We=function(){return typeof SVGGraphicsElement!="undefined"?function(E){return E instanceof be(E).SVGGraphicsElement}:function(E){return E instanceof be(E).SVGElement&&typeof E.getBBox=="function"}}();function $(E){return E===be(E).document.documentElement}function T(E){return P?We(E)?at(E):Re(E):u}function L(E){var g=E.x,R=E.y,S=E.width,M=E.height,J=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,w=Object.create(J.prototype);return ze(w,{x:g,y:R,width:S,height:M,top:R,right:g+S,bottom:M+R,left:g}),w}function k(E,g,R,S){return{x:E,y:g,width:R,height:S}}var A=function(){function E(g){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=k(0,0,0,0),this.target=g}return E.prototype.isActive=function(){var g=T(this.target);return this.contentRect_=g,g.width!==this.broadcastWidth||g.height!==this.broadcastHeight},E.prototype.broadcastRect=function(){var g=this.contentRect_;return this.broadcastWidth=g.width,this.broadcastHeight=g.height,g},E}(),c=function(){function E(g,R){var S=L(R);ze(this,{target:g,contentRect:S})}return E}(),te=function(){function E(g,R,S){if(this.activeObservations_=[],this.observations_=new I,typeof g!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=g,this.controller_=R,this.callbackCtx_=S}return E.prototype.observe=function(g){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(g instanceof be(g).Element))throw new TypeError('parameter 1 is not of type "Element".');var R=this.observations_;R.has(g)||(R.set(g,new A(g)),this.controller_.addObserver(this),this.controller_.refresh())}},E.prototype.unobserve=function(g){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(g instanceof be(g).Element))throw new TypeError('parameter 1 is not of type "Element".');var R=this.observations_;R.has(g)&&(R.delete(g),R.size||this.controller_.removeObserver(this))}},E.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},E.prototype.gatherActive=function(){var g=this;this.clearActive(),this.observations_.forEach(function(R){R.isActive()&&g.activeObservations_.push(R)})},E.prototype.broadcastActive=function(){if(this.hasActive()){var g=this.callbackCtx_,R=this.activeObservations_.map(function(S){return new c(S.target,S.broadcastRect())});this.callback_.call(g,R,g),this.clearActive()}},E.prototype.clearActive=function(){this.activeObservations_.splice(0)},E.prototype.hasActive=function(){return this.activeObservations_.length>0},E}(),W=typeof WeakMap!="undefined"?new WeakMap:new I,de=function(){function E(g){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 R=ve.getInstance(),S=new te(g,R,this);W.set(this,S)}return E}();["observe","unobserve","disconnect"].forEach(function(E){de.prototype[E]=function(){var g;return(g=W.get(this))[E].apply(g,arguments)}});var Ke=function(){return typeof m.ResizeObserver!="undefined"?m.ResizeObserver:de}();ot.Z=Ke}}]);
|